@univerjs-pro/collaboration-client 0.2.12 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4f35dc=_0x1935;(function(_0x2ea0aa,_0x140c22){const _0xd471d=_0x1935,_0x28452a=_0x2ea0aa();while(!![]){try{const _0x246830=-parseInt(_0xd471d(0x1a4))/0x1*(-parseInt(_0xd471d(0x518))/0x2)+-parseInt(_0xd471d(0x470))/0x3+parseInt(_0xd471d(0x431))/0x4*(parseInt(_0xd471d(0x161))/0x5)+parseInt(_0xd471d(0x38d))/0x6*(-parseInt(_0xd471d(0x26e))/0x7)+-parseInt(_0xd471d(0x3c1))/0x8*(-parseInt(_0xd471d(0x4d6))/0x9)+-parseInt(_0xd471d(0x37e))/0xa+-parseInt(_0xd471d(0x34e))/0xb*(-parseInt(_0xd471d(0x468))/0xc);if(_0x246830===_0x140c22)break;else _0x28452a['push'](_0x28452a['shift']());}catch(_0x1a077f){_0x28452a['push'](_0x28452a['shift']());}}}(_0x2d86,0x440aa));var Ht=Object[_0x4f35dc(0x305)],kt=(_0x5ca6c0,_0x1e6f06,_0x1f9481)=>_0x1e6f06 in _0x5ca6c0?Ht(_0x5ca6c0,_0x1e6f06,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f9481}):_0x5ca6c0[_0x1e6f06]=_0x1f9481,d=(_0x44e21b,_0x188098,_0x14a59a)=>kt(_0x44e21b,typeof _0x188098!='symbol'?_0x188098+'':_0x188098,_0x14a59a);Object[_0x4f35dc(0x305)](exports,Symbol[_0x4f35dc(0x3ee)],{'value':_0x4f35dc(0x126)});const a=require(_0x4f35dc(0x1f8)),v=require('rxjs'),E=require('rxjs/operators'),Y=require(_0x4f35dc(0x426)),M=require(_0x4f35dc(0x35c)),U=require('@univerjs/network'),_=require(_0x4f35dc(0x352)),Bt=require(_0x4f35dc(0x207)),w=require(_0x4f35dc(0x514)),C=require(_0x4f35dc(0x444)),L=require('@univerjs/drawing'),b=require(_0x4f35dc(0x2cc)),Xe=require(_0x4f35dc(0x296)),xe=require('lodash/debounce'),Q=require(_0x4f35dc(0x237)),P=require(_0x4f35dc(0x448)),Vt=require('clsx'),Ft=require('@univerjs/rpc'),ct='SNAPSHOT_SERVER_URL_KEY',Wt=_0x4f35dc(0x363),lt=_0x4f35dc(0x3ad),ht='SEND_CHANGESET_TIMEOUT',Gt=0x7d0,_t=_0x4f35dc(0x2d4),Yt=_0x4f35dc(0x21a),ut=_0x4f35dc(0x368),Kt=0x7530,He=_0x4f35dc(0x33c),dt=0x2710,St='RETRY_CONNECTING_INTERVAL',Xt=0x4e20,vt=_0x4f35dc(0x197),qt=0x3,mt=_0x4f35dc(0x511),zt=0x3e8,ft=_0x4f35dc(0x16e),Jt=_0x4f35dc(0x131),gt=_0x4f35dc(0x29b),Zt=_0x4f35dc(0x2fe);var It=(_0x2bedad=>(_0x2bedad[_0x2bedad['UNDEFINED']=0x0]=_0x4f35dc(0x3ce),_0x2bedad[_0x2bedad['OK']=0x1]='OK',_0x2bedad[_0x2bedad[_0x4f35dc(0x44f)]=0x2]=_0x4f35dc(0x44f),_0x2bedad[_0x2bedad[_0x4f35dc(0x165)]=0x3]=_0x4f35dc(0x165),_0x2bedad[_0x2bedad[_0x4f35dc(0x244)]=0x4]=_0x4f35dc(0x244),_0x2bedad[_0x2bedad[_0x4f35dc(0x4d7)]=0x5]=_0x4f35dc(0x4d7),_0x2bedad[_0x2bedad[_0x4f35dc(0x3bb)]=0x6]=_0x4f35dc(0x3bb),_0x2bedad[_0x2bedad[_0x4f35dc(0x2b2)]=0x7]=_0x4f35dc(0x2b2),_0x2bedad[_0x2bedad['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x2bedad[_0x2bedad['COMPLETION_FINISHED']=0x9]=_0x4f35dc(0x311),_0x2bedad[_0x2bedad['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2bedad[_0x2bedad[_0x4f35dc(0x3b7)]=0x1771]=_0x4f35dc(0x3b7),_0x2bedad[_0x2bedad[_0x4f35dc(0x4f1)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2bedad[_0x2bedad['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x2bedad[_0x2bedad[_0x4f35dc(0x3c6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2bedad[_0x2bedad[_0x4f35dc(0x384)]=0x1b5b]=_0x4f35dc(0x384),_0x2bedad[_0x2bedad[_0x4f35dc(0x1f0)]=0x1b5c]=_0x4f35dc(0x1f0),_0x2bedad[_0x2bedad[_0x4f35dc(0x418)]=0x1f41]=_0x4f35dc(0x418),_0x2bedad[_0x2bedad['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4f35dc(0x44e),_0x2bedad[_0x2bedad[_0x4f35dc(0x2a8)]=0x232a]=_0x4f35dc(0x2a8),_0x2bedad[_0x2bedad['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2bedad[_0x2bedad[_0x4f35dc(0x487)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2bedad[_0x2bedad[_0x4f35dc(0x1c7)]=0x232d]=_0x4f35dc(0x1c7),_0x2bedad[_0x2bedad[_0x4f35dc(0x3bd)]=0x2711]=_0x4f35dc(0x3bd),_0x2bedad[_0x2bedad['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4f35dc(0x309),_0x2bedad[_0x2bedad[_0x4f35dc(0x280)]=0x2713]=_0x4f35dc(0x280),_0x2bedad[_0x2bedad['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2bedad[_0x2bedad[_0x4f35dc(0x13e)]=-0x1]=_0x4f35dc(0x13e),_0x2bedad))(It||{}),A=(_0x11b4bc=>(_0x11b4bc[_0x11b4bc['UNIVER_UNKNOWN']=0x0]=_0x4f35dc(0x43a),_0x11b4bc[_0x11b4bc['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x11b4bc[_0x11b4bc[_0x4f35dc(0x396)]=0x2]='UNIVER_SHEET',_0x11b4bc[_0x11b4bc[_0x4f35dc(0x346)]=0x3]=_0x4f35dc(0x346),_0x11b4bc[_0x11b4bc[_0x4f35dc(0x31a)]=0x4]=_0x4f35dc(0x31a),_0x11b4bc[_0x11b4bc['UNRECOGNIZED']=-0x1]=_0x4f35dc(0x13e),_0x11b4bc))(A||{}),T=(_0x19c037=>(_0x19c037[_0x19c037[_0x4f35dc(0x3db)]=0x0]=_0x4f35dc(0x3db),_0x19c037[_0x19c037[_0x4f35dc(0x1fa)]=0x1]=_0x4f35dc(0x1fa),_0x19c037[_0x19c037[_0x4f35dc(0x26d)]=0x2]=_0x4f35dc(0x26d),_0x19c037[_0x19c037['LEAVE']=0x3]=_0x4f35dc(0x235),_0x19c037[_0x19c037['INGEST']=0x4]='INGEST',_0x19c037[_0x19c037[_0x4f35dc(0x4fd)]=0x5]=_0x4f35dc(0x4fd),_0x19c037[_0x19c037[_0x4f35dc(0x3b9)]=0x6]=_0x4f35dc(0x3b9),_0x19c037[_0x19c037['UNRECOGNIZED']=-0x1]=_0x4f35dc(0x13e),_0x19c037))(T||{}),ke=(_0x20b9cf=>(_0x20b9cf[_0x20b9cf[_0x4f35dc(0x48b)]=0x0]=_0x4f35dc(0x48b),_0x20b9cf[_0x20b9cf['OK']=0x1]='OK',_0x20b9cf[_0x20b9cf[_0x4f35dc(0x12e)]=0x2]=_0x4f35dc(0x12e),_0x20b9cf[_0x20b9cf[_0x4f35dc(0x13e)]=-0x1]=_0x4f35dc(0x13e),_0x20b9cf))(ke||{}),pt=(_0x2d8d96=>(_0x2d8d96[_0x2d8d96[_0x4f35dc(0x3e7)]=0x0]='Undefined',_0x2d8d96[_0x2d8d96['HttpImport']=0x1]='HttpImport',_0x2d8d96[_0x2d8d96[_0x4f35dc(0x257)]=0x2]=_0x4f35dc(0x257),_0x2d8d96[_0x2d8d96[_0x4f35dc(0x350)]=0x3]='UnitEmbedded',_0x2d8d96[_0x2d8d96['UnitSnapshot']=0x4]=_0x4f35dc(0x369),_0x2d8d96[_0x2d8d96[_0x4f35dc(0x13e)]=-0x1]=_0x4f35dc(0x13e),_0x2d8d96))(pt||{});function Ct(_0x3344eb){const _0x2523e0=_0x4f35dc;var _0x12ab21,_0x5f3095,_0xce58c2,_0x9933da;const _0x2cb9ef=_0x3344eb['data'],_0x2b2106=JSON[_0x2523e0(0x4b0)](_0x2cb9ef);switch(_0x2b2106[_0x2523e0(0x243)]){case T[_0x2523e0(0x4fd)]:case T['HELLO']:{const _0x2227f1=_0x2b2106['infoRsp'];return{..._0x2b2106,'data':_0x2227f1,'cmd':_0x2b2106[_0x2523e0(0x243)]};}case T[_0x2523e0(0x26d)]:{const _0x540597=_0x2b2106[_0x2523e0(0x3f0)];return{..._0x2b2106,'data':_0x540597,'cmd':_0x2b2106[_0x2523e0(0x243)]};}case T[_0x2523e0(0x3b9)]:{const _0x559280=_0x2b2106[_0x2523e0(0x4da)];switch(_0x559280[_0x2523e0(0x510)]){case _[_0x2523e0(0x2a7)][_0x2523e0(0x1a6)]:return{..._0x2b2106,'data':{..._0x559280,'data':(_0x12ab21=_0x559280['permissionRejEvent'])==null?void 0x0:_0x12ab21['cs']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)]['CHANGESET_ACK']:return{..._0x2b2106,'data':{..._0x559280,'data':(_0x5f3095=_0x559280[_0x2523e0(0x41e)])==null?void 0x0:_0x5f3095['cs']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x1d1)]:return{..._0x2b2106,'data':{..._0x559280,'data':(_0xce58c2=_0x559280[_0x2523e0(0x517)])==null?void 0x0:_0xce58c2['cs']},'cmd':_0x2b2106['cmd']};case _[_0x2523e0(0x2a7)][_0x2523e0(0x3be)]:return{..._0x2b2106,'data':{..._0x559280,'data':(_0x9933da=_0x559280[_0x2523e0(0x342)])==null?void 0x0:_0x9933da['cs']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x491)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x393)]},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _['CollaborationEvent'][_0x2523e0(0x1bb)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x31b)]},'cmd':_0x2b2106['cmd']};case _[_0x2523e0(0x2a7)][_0x2523e0(0x230)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280['leaveEvent']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x22f)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x513)]},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x2523e0(0x2a7)][_0x2523e0(0x313)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280['liveShareOperation']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x19e)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x513)]},'cmd':_0x2b2106['cmd']};case _['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2b2106,'data':_0x559280,'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x484)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280['commentUpdateEvent']},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)]['UPDATE_PERMISSION_OBJ']:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x1b0)]},'cmd':_0x2b2106[_0x2523e0(0x243)]};case _[_0x2523e0(0x2a7)][_0x2523e0(0x2e7)]:return{..._0x2b2106,'data':{..._0x559280,'data':_0x559280[_0x2523e0(0x247)]},'cmd':_0x2b2106['cmd']};default:return _0x2b2106;}}default:return _0x2b2106;}}function Et(_0x2751c6){const _0x2dc5cc=_0x4f35dc;switch(_0x2751c6[_0x2dc5cc(0x243)]){case T[_0x2dc5cc(0x4fd)]:case T[_0x2dc5cc(0x1fa)]:return JSON[_0x2dc5cc(0x2b4)]({'cmd':_0x2751c6[_0x2dc5cc(0x243)],'routeKey':_0x2751c6[_0x2dc5cc(0x476)]});case T['INGEST']:{let _0x25c2ef;switch(_0x2751c6['data']['eventID']){case _[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x491)]:{_0x25c2ef={'eventID':_['CollaborationEvent'][_0x2dc5cc(0x491)],'updateCursorEvent':_0x2751c6[_0x2dc5cc(0x48a)]['data']};break;}case _['CollaborationEvent']['USERS_LEAVE']:{_0x25c2ef={'eventID':_['CollaborationEvent'][_0x2dc5cc(0x230)],'leaveEvent':_0x2751c6[_0x2dc5cc(0x48a)]['data']};break;}case _[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x1bb)]:{_0x25c2ef={'eventID':_[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x1bb)],'joinEvent':_0x2751c6[_0x2dc5cc(0x48a)][_0x2dc5cc(0x48a)]};break;}case _['CollaborationEvent'][_0x2dc5cc(0x22f)]:{_0x25c2ef={'eventID':_[_0x2dc5cc(0x2a7)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2751c6[_0x2dc5cc(0x48a)]['data']};break;}case _[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x313)]:{_0x25c2ef={'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x2751c6['data'][_0x2dc5cc(0x48a)]};break;}case _[_0x2dc5cc(0x2a7)]['LIVESHARE_TERMINATE']:{_0x25c2ef={'eventID':_[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x19e)],'liveShareTerminate':_0x2751c6[_0x2dc5cc(0x48a)]['data']};break;}case _[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x18a)]:{_0x25c2ef={'eventID':_[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x18a)],'liveShareRequestHost':_0x2751c6[_0x2dc5cc(0x48a)][_0x2dc5cc(0x48a)]};break;}case _[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x46b)]:{_0x25c2ef={'eventID':_[_0x2dc5cc(0x2a7)][_0x2dc5cc(0x46b)]};break;}default:_0x25c2ef={'eventID':_0x2751c6[_0x2dc5cc(0x48a)][_0x2dc5cc(0x510)]};}return JSON[_0x2dc5cc(0x2b4)]({'cmd':_0x2751c6[_0x2dc5cc(0x243)],'routeKey':_0x2751c6[_0x2dc5cc(0x476)],'collaMsg':_0x25c2ef});}case T[_0x2dc5cc(0x26d)]:return JSON[_0x2dc5cc(0x2b4)]({'cmd':_0x2751c6[_0x2dc5cc(0x243)],'routeKey':_0x2751c6[_0x2dc5cc(0x476)],'joinReq':_0x2751c6['data']});case T[_0x2dc5cc(0x235)]:return JSON['stringify']({'cmd':_0x2751c6[_0x2dc5cc(0x243)],'routeKey':_0x2751c6[_0x2dc5cc(0x476)],'leaveReq':_0x2751c6[_0x2dc5cc(0x48a)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Qt=Object[_0x4f35dc(0x305)],es=Object[_0x4f35dc(0x21c)],ts=(_0x9d2b52,_0x50f2ac,_0x5eb810,_0x5be986)=>{const _0xad705f=_0x4f35dc;for(var _0x2a5564=_0x5be986>0x1?void 0x0:_0x5be986?es(_0x50f2ac,_0x5eb810):_0x50f2ac,_0x2ba9cf=_0x9d2b52[_0xad705f(0x3a9)]-0x1,_0x313a9d;_0x2ba9cf>=0x0;_0x2ba9cf--)(_0x313a9d=_0x9d2b52[_0x2ba9cf])&&(_0x2a5564=(_0x5be986?_0x313a9d(_0x50f2ac,_0x5eb810,_0x2a5564):_0x313a9d(_0x2a5564))||_0x2a5564);return _0x5be986&&_0x2a5564&&Qt(_0x50f2ac,_0x5eb810,_0x2a5564),_0x2a5564;},ne=(_0xef635e,_0x5bddf2)=>(_0x21a6b3,_0x4edb61)=>_0x5bddf2(_0x21a6b3,_0x4edb61,_0xef635e);const Be=a['createIdentifier']('univer-pro.collaboration-client-socket-service');function ss(_0x1af9aa,_0x2710e5,_0x5985ac){const _0x567f92=_0x4f35dc;return _0x1af9aa+'/'+_0x2710e5+_0x567f92(0x41f)+_0x5985ac+_0x567f92(0x2c8);}exports[_0x4f35dc(0x4f0)]=class{constructor(_0x526a6d,_0x340df7,_0xa5cbbe,_0x35abad,_0x20399f){const _0x370c23=_0x4f35dc;this[_0x370c23(0x2c2)]=_0x526a6d,this[_0x370c23(0x229)]=_0x340df7,this[_0x370c23(0x19a)]=_0xa5cbbe,this[_0x370c23(0x289)]=_0x35abad,this[_0x370c23(0x401)]=_0x20399f;}[_0x4f35dc(0x2db)](_0x55d3fc){const _0x37a9af=_0x4f35dc,_0x1bfb27=this['_ws'][_0x37a9af(0x2db)](_0x55d3fc);if(!_0x1bfb27)throw new Error(_0x37a9af(0x27a));const _0x4aead8=new a[(_0x37a9af(0x30d))](),_0x4d3b5c=new v[(_0x37a9af(0x4eb))]();_0x4aead8[_0x37a9af(0x3e5)](_0x1bfb27[_0x37a9af(0x21d)][_0x37a9af(0x4df)](_0x121120=>_0x4d3b5c['next'](_0x121120))),_0x4aead8[_0x37a9af(0x3e5)](a['toDisposable'](()=>_0x4d3b5c[_0x37a9af(0x331)]()));const _0x2430da=new v[(_0x37a9af(0x4eb))]();_0x4aead8[_0x37a9af(0x3e5)](_0x1bfb27[_0x37a9af(0x1f6)][_0x37a9af(0x4df)](_0x13df84=>_0x2430da[_0x37a9af(0x245)](_0x13df84))),_0x4aead8[_0x37a9af(0x3e5)](a['toDisposable'](()=>_0x2430da['complete']()));const _0x32b3c2=new v[(_0x37a9af(0x4eb))]();_0x4aead8['add'](_0x1bfb27['message$'][_0x37a9af(0x4df)](_0x3e1a8c=>{const _0x5d7d4f=Ct(_0x3e1a8c);_0x32b3c2['next'](_0x5d7d4f);})),_0x4aead8['add'](a[_0x37a9af(0x456)](()=>_0x32b3c2[_0x37a9af(0x331)]()));const _0x50d156=()=>{const _0x2cd3f4=_0x37a9af;_0x2430da[_0x2cd3f4(0x245)](new Event(_0x2cd3f4(0x2e4))),_0x4d3b5c[_0x2cd3f4(0x245)](new CloseEvent(_0x2cd3f4(0x2e4))),_0x526cbf[_0x2cd3f4(0x232)]();},_0x526cbf={'memberID':'','close$':_0x4d3b5c[_0x37a9af(0x366)](),'error$':_0x2430da['asObservable'](),'open$':_0x1bfb27[_0x37a9af(0x240)],'message$':_0x32b3c2[_0x37a9af(0x366)](),'send':_0x3eaca7=>{const _0xb02a89=_0x37a9af;if(_0x3eaca7[_0xb02a89(0x243)]===T[_0xb02a89(0x2ab)]){if(_0x3eaca7[_0xb02a89(0x48a)][_0xb02a89(0x510)]===_[_0xb02a89(0x2a7)][_0xb02a89(0x2d2)]){this[_0xb02a89(0x324)](_0x526cbf,_0x3eaca7['data'])[_0xb02a89(0x4c5)](_0x1e568f=>{const _0x3f02f0=_0xb02a89;this[_0x3f02f0(0x289)][_0x3f02f0(0x22c)](_0x1e568f),_0x50d156();});return;}if(_0x3eaca7[_0xb02a89(0x48a)][_0xb02a89(0x510)]===_['CollaborationEvent'][_0xb02a89(0x1ef)]){const _0x1bac75=_0x3eaca7[_0xb02a89(0x48a)];this[_0xb02a89(0x216)](_0x1bac75)[_0xb02a89(0x120)](_0x402ac3=>{const _0x5c2394=_0xb02a89;_0x32b3c2[_0x5c2394(0x245)]({'cmd':T['RECV'],'code':ke['OK'],'routeKey':_0x1bac75[_0x5c2394(0x48a)][_0x5c2394(0x26b)],'routeType':'','data':{'eventID':_[_0x5c2394(0x2a7)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x402ac3}}});})[_0xb02a89(0x4c5)](_0x1bde90=>{const _0x5e0d03=_0xb02a89;this[_0x5e0d03(0x289)][_0x5e0d03(0x22c)](_0x1bde90),_0x50d156();});return;}}_0x1bfb27['send'](Et(_0x3eaca7));},'close':()=>{const _0x27b777=_0x37a9af;_0x1bfb27[_0x27b777(0x232)](),_0x4aead8[_0x27b777(0x3cc)]();}};return _0x526cbf;}async[_0x4f35dc(0x324)](_0x34e965,_0x32b0f1){const _0x522bc6=_0x4f35dc;var _0x51a3c3;const {unitType:_0x276cbb,unitID:_0x234907,changeset:_0x3d1702}=_0x32b0f1[_0x522bc6(0x48a)],_0xcf249c={'unitID':_0x234907,'memberID':_0x34e965[_0x522bc6(0x1fc)],'type':_0x276cbb,'changeset':_['parseChangesetToProtocol'](_0x3d1702)},_0x593ef5=ss((_0x51a3c3=this[_0x522bc6(0x19a)][_0x522bc6(0x3ac)](ft))!=null?_0x51a3c3:Jt,_0x276cbb,_0x234907);try{await this[_0x522bc6(0x2c2)][_0x522bc6(0x46e)](_0x593ef5,{'body':_0xcf249c});}catch(_0xaea38a){throw this[_0x522bc6(0x289)][_0x522bc6(0x22c)](_0x522bc6(0x273),'submit\x20changeset\x20error!'),_0xaea38a;}}async[_0x4f35dc(0x216)](_0x254c6a){const _0x53c171=_0x4f35dc,{unitID:_0x393e48,from:_0x3f3756,to:_0x5e3033,unitType:_0x85f3d9}=_0x254c6a[_0x53c171(0x48a)];return(await this[_0x53c171(0x401)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x393e48,'type':_0x85f3d9,'from':_0x3f3756,'to':_0x5e3033}))[_0x53c171(0x507)];}},exports['CollaborationSocketService']=ts([ne(0x0,a[_0x4f35dc(0x1ac)](U['HTTPService'])),ne(0x1,a['Inject'](U[_0x4f35dc(0x399)])),ne(0x2,a[_0x4f35dc(0x301)]),ne(0x3,a[_0x4f35dc(0x428)]),ne(0x4,_[_0x4f35dc(0x2ba)])],exports['CollaborationSocketService']);class Ve{constructor(){const _0xb25a91=_0x4f35dc;d(this,_0xb25a91(0x463),new v[(_0xb25a91(0x4eb))]()),d(this,'commentUpdate$',this['_commentUpdate$'][_0xb25a91(0x366)]());}['onCommentUpdate'](_0x48cb9f){const _0x536506=_0x4f35dc;this[_0x536506(0x463)]['next'](_0x48cb9f);}}var is=Object['defineProperty'],ns=Object[_0x4f35dc(0x21c)],rs=(_0x500e13,_0x701735,_0x1d55c6,_0x4e014e)=>{const _0xd34820=_0x4f35dc;for(var _0x198f95=_0x4e014e>0x1?void 0x0:_0x4e014e?ns(_0x701735,_0x1d55c6):_0x701735,_0x58bdbc=_0x500e13[_0xd34820(0x3a9)]-0x1,_0x2ddda0;_0x58bdbc>=0x0;_0x58bdbc--)(_0x2ddda0=_0x500e13[_0x58bdbc])&&(_0x198f95=(_0x4e014e?_0x2ddda0(_0x701735,_0x1d55c6,_0x198f95):_0x2ddda0(_0x198f95))||_0x198f95);return _0x4e014e&&_0x198f95&&is(_0x701735,_0x1d55c6,_0x198f95),_0x198f95;},qe=(_0xde2754,_0xe2c76f)=>(_0x540adc,_0x4bcf7a)=>_0xe2c76f(_0x540adc,_0x4bcf7a,_0xde2754);let K=class extends a['Disposable']{constructor(_0x319882,_0x1e17f4){const _0xe19f9=_0x4f35dc;super(),d(this,'_roomMembers',new Map()),(this[_0xe19f9(0x16d)]=_0x319882,this[_0xe19f9(0x37c)]=_0x1e17f4,this[_0xe19f9(0x14d)](a['toDisposable'](v[_0xe19f9(0x2b0)](this[_0xe19f9(0x16d)][_0xe19f9(0x274)](a[_0xe19f9(0x1f9)][_0xe19f9(0x396)])[_0xe19f9(0x49c)](E[_0xe19f9(0x201)](_0x5ad2d3=>_0x5ad2d3[_0xe19f9(0x402)]())),this['_univerInstanceService'][_0xe19f9(0x274)](a['UniverInstanceType']['UNIVER_DOC'])[_0xe19f9(0x49c)](E[_0xe19f9(0x201)](_0x2f150f=>_0x2f150f[_0xe19f9(0x402)]())),this[_0xe19f9(0x16d)][_0xe19f9(0x274)](a[_0xe19f9(0x1f9)][_0xe19f9(0x346)])[_0xe19f9(0x49c)](E['map'](_0x1fb6f0=>_0x1fb6f0[_0xe19f9(0x402)]())))[_0xe19f9(0x4df)](_0x41a7ed=>this['_removeRoom'](_0x41a7ed)))));}[_0x4f35dc(0x464)](_0x35cd9e){this['_userManagerService']['setCurrentUser'](_0x35cd9e);}[_0x4f35dc(0x486)](){const _0x34a9cb=_0x4f35dc;return this[_0x34a9cb(0x37c)][_0x34a9cb(0x486)]();}[_0x4f35dc(0x3b1)](_0x7ad8da,_0x492e52){const _0x824983=_0x4f35dc;let _0x1a0b25=this[_0x824983(0x39d)][_0x824983(0x20a)](_0x7ad8da);_0x1a0b25||(_0x1a0b25=new os(),this['_roomMembers'][_0x824983(0x4fa)](_0x7ad8da,_0x1a0b25)),_0x1a0b25[_0x824983(0x3b1)](_0x492e52);}['removeMember'](_0x35b324,_0xd29d94){const _0x5cf97d=_0x4f35dc,_0x45c138=this[_0x5cf97d(0x39d)]['get'](_0x35b324);_0x45c138&&_0x45c138[_0x5cf97d(0x33a)](_0xd29d94);}[_0x4f35dc(0x477)](_0x3f5870){return this['_roomMembers']['get'](_0x3f5870);}[_0x4f35dc(0x25e)](_0x49aa63,_0xa7203e){const _0x17851b=_0x4f35dc,_0x3fc40a=this['_roomMembers'][_0x17851b(0x20a)](_0x49aa63);if(_0x3fc40a)return _0x3fc40a[_0x17851b(0x25e)](_0xa7203e);}[_0x4f35dc(0x1ad)](_0x363891){const _0x111802=_0x4f35dc,_0x7d4723=this[_0x111802(0x39d)][_0x111802(0x20a)](_0x363891);_0x7d4723&&(_0x7d4723['dispose'](),this['_roomMembers'][_0x111802(0x424)](_0x363891));}[_0x4f35dc(0x3cc)](){const _0x1c4a8e=_0x4f35dc;this[_0x1c4a8e(0x39d)][_0x1c4a8e(0x155)](_0x34f36f=>_0x34f36f[_0x1c4a8e(0x3cc)]()),this[_0x1c4a8e(0x39d)]['clear']();}};K=rs([qe(0x0,a[_0x4f35dc(0x2e8)]),qe(0x1,a[_0x4f35dc(0x1ac)](a['UserManagerService']))],K);class os extends a[_0x4f35dc(0x188)]{constructor(){const _0x3358ac=_0x4f35dc;super(...arguments),d(this,_0x3358ac(0x1aa),new Map());}[_0x4f35dc(0x3cc)](){const _0x36114d=_0x4f35dc;this[_0x36114d(0x1aa)][_0x36114d(0x19f)]();}[_0x4f35dc(0x3b1)](_0x7817ec){const _0x43d70e=_0x4f35dc;this[_0x43d70e(0x1aa)][_0x43d70e(0x4fa)](_0x7817ec[_0x43d70e(0x1fc)],_0x7817ec);}[_0x4f35dc(0x33a)](_0x290fdb){const _0x3eff3b=_0x4f35dc;this[_0x3eff3b(0x1aa)][_0x3eff3b(0x424)](_0x290fdb);}[_0x4f35dc(0x25e)](_0x121bae){const _0x5f336b=_0x4f35dc;return this['_members'][_0x5f336b(0x20a)](_0x121bae);}}const as=_0x4f35dc(0x17c);function cs(_0x44c341){const _0x337d1b=_0x4f35dc;return JSON['stringify'](_0x44c341)[_0x337d1b(0x3a9)];}var ls=Object[_0x4f35dc(0x305)],hs=Object['getOwnPropertyDescriptor'],_s=(_0x4c6c3f,_0x25a9c4,_0x11255c,_0x4cd445)=>{for(var _0x57a695=_0x4cd445>0x1?void 0x0:_0x4cd445?hs(_0x25a9c4,_0x11255c):_0x25a9c4,_0x47ff6f=_0x4c6c3f['length']-0x1,_0x26eb95;_0x47ff6f>=0x0;_0x47ff6f--)(_0x26eb95=_0x4c6c3f[_0x47ff6f])&&(_0x57a695=(_0x4cd445?_0x26eb95(_0x25a9c4,_0x11255c,_0x57a695):_0x26eb95(_0x57a695))||_0x57a695);return _0x4cd445&&_0x57a695&&ls(_0x25a9c4,_0x11255c,_0x57a695),_0x57a695;},k=(_0xe05eea,_0x5f37cb)=>(_0xf42325,_0x16696d)=>_0x5f37cb(_0xf42325,_0x16696d,_0xe05eea),j=(_0x49174c=>(_0x49174c[_0x49174c[_0x4f35dc(0x125)]=0x0]=_0x4f35dc(0x125),_0x49174c[_0x49174c['JOINING']=0x1]=_0x4f35dc(0x467),_0x49174c[_0x49174c[_0x4f35dc(0x291)]=0x2]=_0x4f35dc(0x291),_0x49174c[_0x49174c[_0x4f35dc(0x156)]=0x3]='ONLINE',_0x49174c))(j||{});exports[_0x4f35dc(0x17b)]=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x3b206d,_0x184c5f,_0x229847,_0x32e1c8,_0x5894c8,_0x5620d5,_0x4689ca,_0x74d07c,_0x28f48a,_0xf64a89){const _0x2af319=_0x4f35dc;super(),d(this,'_sessionStatus$',new v[(_0x2af319(0x36c))](0x0)),d(this,_0x2af319(0x321),this[_0x2af319(0x34f)][_0x2af319(0x366)]()),d(this,_0x2af319(0x4ec),new v[(_0x2af319(0x4eb))]()),d(this,_0x2af319(0x251),this[_0x2af319(0x4ec)]['asObservable']()),d(this,_0x2af319(0x2a5)),d(this,'_socketMessageSubscription'),d(this,'_collaborationTimeoutTimer'),d(this,_0x2af319(0x12c),!0x1),d(this,_0x2af319(0x1df),null),(this['_unitID']=_0x3b206d,this['_logService']=_0x229847,this[_0x2af319(0x2cb)]=_0x32e1c8,this['_messageService']=_0x5894c8,this[_0x2af319(0x19a)]=_0x5620d5,this[_0x2af319(0x312)]=_0x4689ca,this['_memberService']=_0x74d07c,this[_0x2af319(0x191)]=_0x28f48a,this[_0x2af319(0x3d2)]=_0xf64a89,this['_shouldReportTelemetry']=!!this[_0x2af319(0x3d2)],_0x184c5f['pipe'](v[_0x2af319(0x39c)](this[_0x2af319(0x364)]))[_0x2af319(0x4df)](_0x41e08c=>{const _0x4bb3fd=_0x2af319;var _0xb533e1;typeof _0x41e08c>'u'||(this[_0x4bb3fd(0x2a5)]=_0x41e08c,_0x41e08c?(this['_joinRoom'](_0x41e08c),this[_0x4bb3fd(0x253)]=this[_0x4bb3fd(0x2a5)][_0x4bb3fd(0x348)][_0x4bb3fd(0x4df)](_0x53d1b1=>{const _0x35a4b6=_0x4bb3fd;_0x53d1b1[_0x35a4b6(0x476)]===this['_unitID']&&this[_0x35a4b6(0x1c8)](_0x53d1b1);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4bb3fd(0x34f)]['next'](0x2),(_0xb533e1=this[_0x4bb3fd(0x253)])==null||_0xb533e1[_0x4bb3fd(0x3cd)](),this['_socketMessageSubscription']=null));}),this[_0x2af319(0x14d)](this[_0x2af319(0x2cb)][_0x2af319(0x376)](()=>{const _0x31e071=_0x2af319;var _0x4a1862;(_0x4a1862=this['_socket'])==null||_0x4a1862['send']({'cmd':T[_0x31e071(0x235)],'data':{'roomID':this[_0x31e071(0x4bf)]}});})));}get[_0x4f35dc(0x15b)](){const _0x76205c=_0x4f35dc;return this[_0x76205c(0x34f)]['getValue']();}[_0x4f35dc(0x15a)](){const _0xd7ecc6=_0x4f35dc;var _0x332b66,_0x4deab6;return(_0x4deab6=(_0x332b66=this[_0xd7ecc6(0x2a5)])==null?void 0x0:_0x332b66[_0xd7ecc6(0x1fc)])!=null?_0x4deab6:null;}[_0x4f35dc(0x3cc)](){const _0x14ebe3=_0x4f35dc;super[_0x14ebe3(0x3cc)](),this[_0x14ebe3(0x364)][_0x14ebe3(0x245)](),this['dispose$'][_0x14ebe3(0x331)]();}[_0x4f35dc(0x232)](){const _0x58a907=_0x4f35dc;var _0x358bc4,_0x3e7b5c;this[_0x58a907(0x446)](),(_0x358bc4=this['_socket'])==null||_0x358bc4[_0x58a907(0x2da)]({'cmd':T['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x3e7b5c=this[_0x58a907(0x2a5)])==null||_0x3e7b5c[_0x58a907(0x232)](),this[_0x58a907(0x4ec)][_0x58a907(0x331)](),this[_0x58a907(0x34f)][_0x58a907(0x331)](),this[_0x58a907(0x3cc)]();}[_0x4f35dc(0x1c8)](_0x40b794){const _0x26dec1=_0x4f35dc;_0x40b794[_0x26dec1(0x243)]===T[_0x26dec1(0x26d)]?this[_0x26dec1(0x2bc)](_0x40b794):_0x40b794[_0x26dec1(0x243)]===T[_0x26dec1(0x3b9)]&&this['_onRecvEvent'](_0x40b794);}[_0x4f35dc(0x436)](_0x5064fe){const _0x2e9715=_0x4f35dc;this[_0x2e9715(0x34f)][_0x2e9715(0x245)](0x1),_0x5064fe[_0x2e9715(0x2da)]({'cmd':T[_0x2e9715(0x26d)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x2e9715(0x4bf)]}]}});}[_0x4f35dc(0x2bc)](_0x49ab6b){const _0x4b88f1=_0x4f35dc;var _0x5034c3;if(_0x49ab6b[_0x4b88f1(0x1b5)]===ke[_0x4b88f1(0x12e)]){this[_0x4b88f1(0x3a4)][_0x4b88f1(0x50c)]({'type':Y[_0x4b88f1(0x4b1)]['Warning'],'content':this[_0x4b88f1(0x312)]['t'](_0x4b88f1(0x4a0))}),this['_sessionStatus$'][_0x4b88f1(0x245)](0x2);return;}this[_0x4b88f1(0x34f)][_0x4b88f1(0x245)](0x3);const _0x28db63=(_0x5034c3=_0x49ab6b[_0x4b88f1(0x48a)][_0x4b88f1(0x36a)][this[_0x4b88f1(0x4bf)]])==null?void 0x0:_0x5034c3[_0x4b88f1(0x49f)];_0x28db63&&_0x28db63[_0x4b88f1(0x155)](_0x465ab6=>this[_0x4b88f1(0x32a)][_0x4b88f1(0x3b1)](this[_0x4b88f1(0x4bf)],_0x465ab6));}['_onRecvEvent'](_0xca422a){const _0x520ab8=_0x4f35dc;try{const _0x57285a=_0xca422a[_0x520ab8(0x48a)];switch(_0x57285a[_0x520ab8(0x510)]){case _[_0x520ab8(0x2a7)]['USERS_ENTER']:this[_0x520ab8(0x414)](_0x57285a),this[_0x520ab8(0x4ec)]['next'](_0x57285a);break;case _[_0x520ab8(0x2a7)][_0x520ab8(0x230)]:this['_onUserLeave'](_0x57285a),this[_0x520ab8(0x4ec)][_0x520ab8(0x245)](_0x57285a);break;case _[_0x520ab8(0x2a7)][_0x520ab8(0x1bc)]:this[_0x520ab8(0x33f)](),this[_0x520ab8(0x1f2)](),this[_0x520ab8(0x4ec)][_0x520ab8(0x245)](_0x57285a);break;case _[_0x520ab8(0x2a7)][_0x520ab8(0x385)]:this[_0x520ab8(0x289)][_0x520ab8(0x22c)](_0x520ab8(0x189)+JSON[_0x520ab8(0x2b4)](_0x57285a)),this[_0x520ab8(0x4ec)][_0x520ab8(0x245)](_0x57285a);break;case _['CollaborationEvent'][_0x520ab8(0x484)]:this['_commentService'][_0x520ab8(0x2a3)](_0x57285a['data']),this['_event$'][_0x520ab8(0x245)](_0x57285a);break;default:this[_0x520ab8(0x4ec)][_0x520ab8(0x245)](_0x57285a);}}catch(_0x287521){this[_0x520ab8(0x289)]['error'](_0x287521,_0xca422a);}}[_0x4f35dc(0x414)](_0x5dc615){const _0x3c827e=_0x4f35dc;this[_0x3c827e(0x32a)]['updateMember'](this[_0x3c827e(0x4bf)],_0x5dc615[_0x3c827e(0x48a)]);}[_0x4f35dc(0x1a1)](_0x1ef22d){const _0x5a8e92=_0x4f35dc;this[_0x5a8e92(0x32a)][_0x5a8e92(0x33a)](this[_0x5a8e92(0x4bf)],_0x1ef22d[_0x5a8e92(0x48a)]['memberID']);}async['send'](_0x1456aa,_0x536bcf){const _0x324e13=_0x4f35dc;if(this[_0x324e13(0x15b)]!==0x3||!this[_0x324e13(0x2a5)])throw new Error(_0x324e13(0x1a7));try{_0x1456aa[_0x324e13(0x510)]===_[_0x324e13(0x2a7)][_0x324e13(0x2d2)]&&(this[_0x324e13(0x37f)](),this[_0x324e13(0x263)](_0x1456aa)),this['_socket'][_0x324e13(0x2da)]({'cmd':T[_0x324e13(0x2ab)],'routeKey':_0x536bcf,'routeType':'','data':_0x1456aa});}catch(_0x50ca59){this[_0x324e13(0x289)][_0x324e13(0x22c)](_0x50ca59);}}['_scheduleCollaborationTimeoutTimer'](){const _0x45fb81=_0x4f35dc;var _0x104c72;this[_0x45fb81(0x292)]=window['setTimeout'](()=>{const _0x1b63c5=_0x45fb81;this[_0x1b63c5(0x292)]=null,this[_0x1b63c5(0x3a4)][_0x1b63c5(0x50c)]({'type':Y['MessageType'][_0x1b63c5(0x45b)],'content':this[_0x1b63c5(0x312)]['t'](_0x1b63c5(0x421))});},(_0x104c72=this[_0x45fb81(0x19a)]['getConfig'](He))!=null?_0x104c72:dt);}[_0x4f35dc(0x1f2)](){const _0xa00271=_0x4f35dc;this[_0xa00271(0x292)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x4f35dc(0x263)](_0x13d816){const _0xcf6722=_0x4f35dc;if(!this[_0xcf6722(0x12c)])return;const {data:_0x15265b}=_0x13d816,{unitID:_0x5e7377,changeset:_0x13b07f}=_0x15265b,{mutations:_0xaec628,type:_0x2e1192}=_0x13b07f;this[_0xcf6722(0x1df)]={'unitId':_0x5e7377,'type':_0x2e1192,'startTime':performance[_0xcf6722(0x353)](),'stopTime':0x0,'duration':0x0,'size':cs(_0xaec628)};}[_0x4f35dc(0x33f)](){const _0x1c6ca6=_0x4f35dc;if(this[_0x1c6ca6(0x12c)]){if(!this[_0x1c6ca6(0x1df)]){this[_0x1c6ca6(0x289)][_0x1c6ca6(0x22c)](_0x1c6ca6(0x273),_0x1c6ca6(0x47a));return;}this[_0x1c6ca6(0x1df)][_0x1c6ca6(0x267)]=performance[_0x1c6ca6(0x353)](),this[_0x1c6ca6(0x1df)]['duration']=this[_0x1c6ca6(0x1df)][_0x1c6ca6(0x267)]-this['_telemetryInfo']['startTime'],this[_0x1c6ca6(0x3d2)][_0x1c6ca6(0x2f5)](as,this[_0x1c6ca6(0x1df)]),this[_0x1c6ca6(0x1df)]=null;}}[_0x4f35dc(0x446)](){const _0xb0b227=_0x4f35dc;this[_0xb0b227(0x1df)]=null;}},exports['CollaborationSession']=_s([k(0x2,a[_0x4f35dc(0x428)]),k(0x3,M[_0x4f35dc(0x2d1)]),k(0x4,M[_0x4f35dc(0x1dc)]),k(0x5,a['IConfigService']),k(0x6,a['Inject'](a[_0x4f35dc(0x43c)])),k(0x7,a[_0x4f35dc(0x1ac)](K)),k(0x8,a['Inject'](Ve)),k(0x9,a[_0x4f35dc(0x445)](Bt['ITelemetryService']))],exports[_0x4f35dc(0x17b)]);var us=Object[_0x4f35dc(0x305)],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x2912a0,_0x1e6c2a,_0x196f6e,_0x190a8f)=>{const _0x2176a9=_0x4f35dc;for(var _0x478dc1=_0x190a8f>0x1?void 0x0:_0x190a8f?ds(_0x1e6c2a,_0x196f6e):_0x1e6c2a,_0x38c027=_0x2912a0[_0x2176a9(0x3a9)]-0x1,_0x535c6b;_0x38c027>=0x0;_0x38c027--)(_0x535c6b=_0x2912a0[_0x38c027])&&(_0x478dc1=(_0x190a8f?_0x535c6b(_0x1e6c2a,_0x196f6e,_0x478dc1):_0x535c6b(_0x478dc1))||_0x478dc1);return _0x190a8f&&_0x478dc1&&us(_0x1e6c2a,_0x196f6e,_0x478dc1),_0x478dc1;},z=(_0x1ca575,_0x32ad92)=>(_0x5cffad,_0x5a2cf5)=>_0x32ad92(_0x5cffad,_0x5a2cf5,_0x1ca575);exports[_0x4f35dc(0x4a3)]=class extends a[_0x4f35dc(0x188)]{constructor(_0x1e66f3,_0x3867a7,_0x3817ab,_0x1ab25f,_0x4f7424,_0x165851){const _0x316a1f=_0x4f35dc;super(),d(this,'_socket$',new v[(_0x316a1f(0x36c))](void 0x0)),d(this,_0x316a1f(0x3d7),this[_0x316a1f(0x469)][_0x316a1f(0x366)]()),d(this,'_sessions',new Map()),d(this,_0x316a1f(0x4f8),new v[(_0x316a1f(0x36c))](j['IDLE'])),d(this,'status$',this['_status$'][_0x316a1f(0x366)]()),d(this,_0x316a1f(0x179),!0x1),d(this,_0x316a1f(0x1cf)),d(this,_0x316a1f(0x226),0x0),d(this,_0x316a1f(0x3ae)),d(this,_0x316a1f(0x498)),(this[_0x316a1f(0x183)]=_0x1e66f3,this['_localeService']=_0x3867a7,this['_messageService']=_0x3817ab,this['_logService']=_0x1ab25f,this['_configService']=_0x4f7424,this[_0x316a1f(0x139)]=_0x165851);}get[_0x4f35dc(0x2a5)](){const _0x71f4a9=_0x4f35dc;return this[_0x71f4a9(0x469)][_0x71f4a9(0x181)]();}[_0x4f35dc(0x3cc)](){const _0x50c5c8=_0x4f35dc;super[_0x50c5c8(0x3cc)](),this[_0x50c5c8(0x392)][_0x50c5c8(0x155)](_0x18d925=>_0x18d925[_0x50c5c8(0x3cc)]()),this[_0x50c5c8(0x392)][_0x50c5c8(0x19f)](),this[_0x50c5c8(0x4f8)][_0x50c5c8(0x331)]();}async[_0x4f35dc(0x14b)](_0x3335ff){const _0x52a68e=_0x4f35dc;if(this[_0x52a68e(0x392)][_0x52a68e(0x34a)](_0x3335ff))return this[_0x52a68e(0x392)][_0x52a68e(0x20a)](_0x3335ff);this[_0x52a68e(0x4cc)]();const _0x1ac95f=this[_0x52a68e(0x183)][_0x52a68e(0x239)](exports[_0x52a68e(0x17b)],_0x3335ff,this[_0x52a68e(0x469)][_0x52a68e(0x366)]());return this[_0x52a68e(0x392)]['set'](_0x3335ff,_0x1ac95f),_0x1ac95f;}['closeSession'](_0x259eab){const _0x5acbef=_0x4f35dc;var _0x35ad7e;const _0x13edcf=this[_0x5acbef(0x392)][_0x5acbef(0x20a)](_0x259eab);_0x13edcf&&(this[_0x5acbef(0x392)][_0x5acbef(0x424)](_0x259eab),_0x13edcf['close']()),this[_0x5acbef(0x392)][_0x5acbef(0x2bd)]||(_0x35ad7e=this[_0x5acbef(0x2a5)])==null||_0x35ad7e[_0x5acbef(0x232)]();}[_0x4f35dc(0x493)](){const _0x422535=_0x4f35dc;this[_0x422535(0x226)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x422535(0x1cf)]),this[_0x422535(0x1cf)]=null),this[_0x422535(0x3e6)]();}[_0x4f35dc(0x1de)](){const _0x579719=_0x4f35dc;var _0x22b819;const _0x451a47=(_0x22b819=this[_0x579719(0x19a)][_0x579719(0x3ac)](_t))!=null?_0x22b819:Yt;return this[_0x579719(0x139)][_0x579719(0x2db)](_0x451a47);}[_0x4f35dc(0x4cc)](){const _0x134674=_0x4f35dc;try{const _0x3b09a5=this[_0x134674(0x1de)]();if(_0x3b09a5){const _0x519e05=_0x3b09a5[_0x134674(0x2da)];_0x3b09a5[_0x134674(0x2da)]=_0x5e721e=>(this['_rescheduleHeartbeat'](),_0x519e05['apply'](_0x3b09a5,[_0x5e721e])),_0x3b09a5['message$']['subscribe'](_0x46bfc6=>this[_0x134674(0x1f4)](_0x3b09a5,_0x46bfc6)),_0x3b09a5['error$']['pipe'](E[_0x134674(0x3b2)](0x1))[_0x134674(0x4df)](_0x5eb7a9=>this['_logService']['error'](_0x134674(0x42a),_0x5eb7a9)),_0x3b09a5[_0x134674(0x240)][_0x134674(0x49c)](E[_0x134674(0x3b2)](0x1))[_0x134674(0x4df)](()=>{this['_onConnectionOpen'](_0x3b09a5);}),_0x3b09a5[_0x134674(0x21d)][_0x134674(0x49c)](E[_0x134674(0x3b2)](0x1))['subscribe'](_0x4ec32d=>{const _0x15c124=_0x134674;this['_logService'][_0x15c124(0x33b)](_0x15c124(0x297),'socket\x20close',_0x4ec32d),this[_0x15c124(0x496)]();});}}catch(_0x5649d8){this[_0x134674(0x289)]['error'](_0x5649d8),this[_0x134674(0x496)]();}}['_onConnectionOpen'](_0xb3815e){const _0x56b62b=_0x4f35dc;this[_0x56b62b(0x289)][_0x56b62b(0x33b)](_0x56b62b(0x297),_0x56b62b(0x21f)),_0xb3815e[_0x56b62b(0x2da)]({'cmd':T['HELLO']}),this[_0x56b62b(0x3b0)](),this[_0x56b62b(0x3f8)]();}[_0x4f35dc(0x3f8)](){const _0x593d4a=_0x4f35dc,_0x4e6591=()=>{const _0x3d2896=_0x1935;this[_0x3d2896(0x494)](),this['_listenToOnlineEvent'](),window[_0x3d2896(0x35f)](_0x3d2896(0x2e6),_0x4e6591);};window['addEventListener'](_0x593d4a(0x2e6),_0x4e6591);}[_0x4f35dc(0x494)](){const _0x16482f=_0x4f35dc;this[_0x16482f(0x179)]=!0x1,this[_0x16482f(0x4f8)][_0x16482f(0x245)](j[_0x16482f(0x291)]),this[_0x16482f(0x469)][_0x16482f(0x245)](null),this[_0x16482f(0x2cd)](),this[_0x16482f(0x35b)]();}[_0x4f35dc(0x496)](){const _0xe77f9b=_0x4f35dc;var _0x465bdb;this['_onOffline'](),this[_0xe77f9b(0x226)]<((_0x465bdb=this['_configService'][_0xe77f9b(0x3ac)](vt))!=null?_0x465bdb:qt)?(this[_0xe77f9b(0x3a4)]['show']({'key':_0xe77f9b(0x481),'type':Y[_0xe77f9b(0x4b1)]['Warning'],'content':this[_0xe77f9b(0x312)]['t'](_0xe77f9b(0x34d))}),this[_0xe77f9b(0x3e6)]()):(this[_0xe77f9b(0x3a4)][_0xe77f9b(0x50c)]({'key':_0xe77f9b(0x481),'type':Y[_0xe77f9b(0x4b1)][_0xe77f9b(0x45b)],'content':this[_0xe77f9b(0x312)]['t'](_0xe77f9b(0x30e))}),this[_0xe77f9b(0x1c1)]());}[_0x4f35dc(0x1c1)](){const _0x3b437e=_0x4f35dc,_0x31af60=()=>{const _0x49b085=_0x1935;this[_0x49b085(0x493)](),window[_0x49b085(0x35f)]('online',_0x31af60);};window[_0x3b437e(0x17d)](_0x3b437e(0x3f5),_0x31af60),this[_0x3b437e(0x469)][_0x3b437e(0x49c)](E[_0x3b437e(0x404)](_0x58f46f=>!!_0x58f46f),E[_0x3b437e(0x3b2)](0x1))[_0x3b437e(0x4df)](()=>{const _0x461dcb=_0x3b437e;window[_0x461dcb(0x35f)](_0x461dcb(0x3f5),_0x31af60);});}[_0x4f35dc(0x3e6)](){const _0x485c57=_0x4f35dc;var _0x4d686b;const _0x11535d=this['_retryCount'],_0x1629c1=_0x11535d===0x0?0x0:((_0x4d686b=this[_0x485c57(0x19a)][_0x485c57(0x3ac)](St))!=null?_0x4d686b:Xt)*0x2**_0x11535d;this[_0x485c57(0x1cf)]=window['setTimeout'](()=>{const _0x28218d=_0x485c57;clearTimeout(this[_0x28218d(0x1cf)]),this[_0x28218d(0x1cf)]=null,this[_0x28218d(0x4cc)]();},_0x1629c1),this['_retryCount']+=0x1;}[_0x4f35dc(0x1f4)](_0x27e673,_0x3d29fe){const _0x394cdc=_0x4f35dc,{cmd:_0x5da699}=_0x3d29fe;_0x5da699===T[_0x394cdc(0x1fa)]&&!this[_0x394cdc(0x179)]&&(_0x27e673[_0x394cdc(0x1fc)]=_0x3d29fe[_0x394cdc(0x48a)][_0x394cdc(0x1fc)],this['_socket$'][_0x394cdc(0x245)](_0x27e673),this[_0x394cdc(0x4f8)][_0x394cdc(0x245)](j['ONLINE']),this[_0x394cdc(0x179)]=!0x0),_0x5da699===T[_0x394cdc(0x4fd)]&&this['_clearTimeoutTimer'](),this[_0x394cdc(0x3b0)]();}['_rescheduleHeartbeat'](){const _0x19ff2c=_0x4f35dc;var _0x5b23d9;this[_0x19ff2c(0x35b)](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x19ff2c(0x433)](),(_0x5b23d9=this['_configService'][_0x19ff2c(0x3ac)](ut))!=null?_0x5b23d9:Kt);}[_0x4f35dc(0x433)](){const _0x3b32dd=_0x4f35dc;this['_socket'][_0x3b32dd(0x2da)]({'cmd':T[_0x3b32dd(0x4fd)]}),this[_0x3b32dd(0x1e5)]();}[_0x4f35dc(0x1e5)](){const _0x244d35=_0x4f35dc;var _0x26a35c;this[_0x244d35(0x498)]=window[_0x244d35(0x44b)](()=>this[_0x244d35(0x496)](),(_0x26a35c=this[_0x244d35(0x19a)][_0x244d35(0x3ac)](He))!=null?_0x26a35c:dt);}[_0x4f35dc(0x35b)](){const _0x2c334a=_0x4f35dc;this[_0x2c334a(0x3ae)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x2f0612=_0x4f35dc;this[_0x2f0612(0x498)]!=null&&(clearTimeout(this[_0x2f0612(0x498)]),this[_0x2f0612(0x498)]=null);}},exports[_0x4f35dc(0x4a3)]=Ss([z(0x0,a[_0x4f35dc(0x1ac)](a['Injector'])),z(0x1,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x43c)])),z(0x2,M['IMessageService']),z(0x3,a[_0x4f35dc(0x428)]),z(0x4,a[_0x4f35dc(0x301)]),z(0x5,Be)],exports[_0x4f35dc(0x4a3)]);var vs=Object[_0x4f35dc(0x305)],ms=Object[_0x4f35dc(0x21c)],fs=(_0x5b54e0,_0x4e9fac,_0x4c837c,_0x3732d3)=>{const _0x2d1046=_0x4f35dc;for(var _0x3f7fc6=_0x3732d3>0x1?void 0x0:_0x3732d3?ms(_0x4e9fac,_0x4c837c):_0x4e9fac,_0x374b22=_0x5b54e0[_0x2d1046(0x3a9)]-0x1,_0x404d06;_0x374b22>=0x0;_0x374b22--)(_0x404d06=_0x5b54e0[_0x374b22])&&(_0x3f7fc6=(_0x3732d3?_0x404d06(_0x4e9fac,_0x4c837c,_0x3f7fc6):_0x404d06(_0x3f7fc6))||_0x3f7fc6);return _0x3732d3&&_0x3f7fc6&&vs(_0x4e9fac,_0x4c837c,_0x3f7fc6),_0x3f7fc6;},ze=(_0x52e582,_0x583a95)=>(_0x37a7b7,_0x376620)=>_0x583a95(_0x37a7b7,_0x376620,_0x52e582);let fe=class{constructor(_0x2e436b,_0x3eb879){const _0x1a9f5a=_0x4f35dc;this[_0x1a9f5a(0x183)]=_0x2e436b,this[_0x1a9f5a(0x2c0)]=_0x3eb879;}[_0x4f35dc(0x316)](_0x1b98d7){const _0x4564d7=_0x4f35dc;this[_0x4564d7(0x1cb)](_0x1b98d7),this[_0x4564d7(0x1d0)](_0x1b98d7);}[_0x4f35dc(0x425)](_0x186d37){const _0xa20511=_0x4f35dc,_0x550382=this[_0xa20511(0x183)][_0xa20511(0x20a)](w['IMEInputManagerService']),{redoCache:_0x337142}=_0x550382[_0xa20511(0x1e2)]();if(_0x337142[_0xa20511(0x3a9)]===0x0)return _0x186d37;let _0x5e10a2=a['Tools'][_0xa20511(0x3fd)](_0x186d37[_0xa20511(0x24a)][0x0]);for(let _0x2e3dc4=0x0;_0x2e3dc4<_0x337142[_0xa20511(0x3a9)];_0x2e3dc4++){const _0x48cca3={'id':'doc.mutation.rich-text-editing','params':{..._0x337142[_0x2e3dc4]}},_0x755231=this[_0xa20511(0x2c0)][_0xa20511(0x1cd)](_0x5e10a2,_0x48cca3,!0x1);if(_[_0xa20511(0x4d3)](_0x755231))throw _0x755231[_0xa20511(0x22c)];_0x5e10a2=_0x755231[_0xa20511(0x246)];}return{...a[_0xa20511(0x374)][_0xa20511(0x3fd)](_0x186d37),'mutations':[_0x5e10a2]};}['_transformUndoRedoStack'](_0x5c72cb){const _0x231927=_0x4f35dc,_0x284f5a=this[_0x231927(0x183)][_0x231927(0x20a)](w[_0x231927(0x14e)]),{undoCache:_0x3af80d,redoCache:_0x5501ab}=_0x284f5a[_0x231927(0x1e2)]();if(_0x3af80d[_0x231927(0x3a9)]===0x0||_0x5501ab[_0x231927(0x3a9)]===0x0)return;const _0x1668a7=[],_0x30cd11=[];let _0x182b69=a['Tools'][_0x231927(0x3fd)](_0x5c72cb['mutations'][0x0]),_0x8940e1=a['Tools'][_0x231927(0x3fd)](_0x5c72cb[_0x231927(0x24a)][0x0]);for(let _0x432beb=_0x3af80d[_0x231927(0x3a9)]-0x1;_0x432beb>=0x0;_0x432beb--){const _0x203503={'id':_0x231927(0x38b),'params':{..._0x3af80d[_0x432beb]}},_0x1756d8={'id':_0x231927(0x38b),'params':{..._0x5501ab[_0x432beb]}},_0x4dd05d=this[_0x231927(0x2c0)][_0x231927(0x1cd)](_0x182b69,_0x203503,!0x1),_0x282bc6=this[_0x231927(0x2c0)][_0x231927(0x1cd)](_0x8940e1,_0x1756d8,!0x1);if(_['isTransformMutationFailure'](_0x4dd05d))throw _0x4dd05d[_0x231927(0x22c)];if(_['isTransformMutationFailure'](_0x282bc6))throw _0x282bc6[_0x231927(0x22c)];_0x1668a7[_0x231927(0x358)](_0x4dd05d[_0x231927(0x3c7)][_0x231927(0x1e1)]),_0x30cd11['unshift'](_0x282bc6[_0x231927(0x3c7)]['params']),_0x182b69=_0x4dd05d[_0x231927(0x246)],_0x8940e1=_0x282bc6[_0x231927(0x246)];}_0x284f5a[_0x231927(0x2f7)]({'undoCache':_0x1668a7,'redoCache':_0x30cd11});}[_0x4f35dc(0x1d0)](_0x5b343b){const _0x4efcc7=_0x4f35dc,_0x5d061d=this[_0x4efcc7(0x183)][_0x4efcc7(0x20a)](w[_0x4efcc7(0x14e)]),_0x52f785=_0x5d061d[_0x4efcc7(0x505)]();if(_0x52f785==null)return;const _0x549d6d=[{'id':_0x4efcc7(0x38b),'params':{'unitId':_0x5b343b['unitID'],'actions':null,'textRanges':[_0x52f785]}}],_0x107032=this['_transformService']['transformMutationsWithChangeset'](_0x5b343b,_0x549d6d);if(!_[_0x4efcc7(0x46f)](_0x107032))throw _0x107032[_0x4efcc7(0x22c)];const _0x2c9b4e=_0x107032[_0x4efcc7(0x3c7)][0x0]['params'][_0x4efcc7(0x2e0)];Array['isArray'](_0x2c9b4e)&&_0x2c9b4e['length']&&_0x5d061d[_0x4efcc7(0x2ea)](_0x2c9b4e[0x0]);}};fe=fs([ze(0x0,a['Inject'](a[_0x4f35dc(0x37b)])),ze(0x1,_[_0x4f35dc(0x329)])],fe);var gs=Object['defineProperty'],Is=Object[_0x4f35dc(0x21c)],ps=(_0x2d39a3,_0x5804b8,_0x2560bc,_0x5832c9)=>{for(var _0x252cbd=_0x5832c9>0x1?void 0x0:_0x5832c9?Is(_0x5804b8,_0x2560bc):_0x5804b8,_0x13c6a6=_0x2d39a3['length']-0x1,_0x422c17;_0x13c6a6>=0x0;_0x13c6a6--)(_0x422c17=_0x2d39a3[_0x13c6a6])&&(_0x252cbd=(_0x5832c9?_0x422c17(_0x5804b8,_0x2560bc,_0x252cbd):_0x422c17(_0x252cbd))||_0x252cbd);return _0x5832c9&&_0x252cbd&&gs(_0x5804b8,_0x2560bc,_0x252cbd),_0x252cbd;},re=(_0x523bcc,_0x1f3b1e)=>(_0x31c328,_0x27df4b)=>_0x1f3b1e(_0x31c328,_0x27df4b,_0x523bcc);exports[_0x4f35dc(0x29a)]=class extends a[_0x4f35dc(0x188)]{constructor(_0x475cb3,_0x168774,_0x1d3dff,_0x4819b9,_0x46b76a){const _0x2cd0fb=_0x4f35dc;super(),d(this,_0x2cd0fb(0x520),new Map()),d(this,_0x2cd0fb(0x17e),new Map()),d(this,_0x2cd0fb(0x15c),!0x1),(this['_configService']=_0x475cb3,this[_0x2cd0fb(0x38a)]=_0x168774,this[_0x2cd0fb(0x2cb)]=_0x1d3dff,this['_localeService']=_0x4819b9,this['_revisionService']=_0x46b76a,this[_0x2cd0fb(0x218)]());}[_0x4f35dc(0x1d7)](){const _0x4aa68d=_0x4f35dc;this[_0x4aa68d(0x15c)]=!0x0;}['enableLocalCache'](){const _0x38b5a9=_0x4f35dc;this[_0x38b5a9(0x15c)]=!0x1;}['dispose'](){const _0x395534=_0x4f35dc;this[_0x395534(0x1ab)]()[_0x395534(0x120)](()=>super[_0x395534(0x3cc)]());}async[_0x4f35dc(0x47b)](_0x32b023){const _0x47a6fc=_0x4f35dc;return this['_disabled']?null:this[_0x47a6fc(0x38a)][_0x47a6fc(0x478)](Je(_0x32b023));}async[_0x4f35dc(0x4ed)](_0x87f360,_0x4c1041){const _0x16e903=_0x4f35dc;return!!this['_localStorageService'][_0x16e903(0x447)](_0x87f360,_0x4c1041);}[_0x4f35dc(0x389)](_0x40a8ec,_0x4fd5c7,_0xbc2311,_0x310c01){const _0x4f5571=_0x4f35dc,_0x1bb125=this[_0x4f5571(0x1e0)][_0x4f5571(0x1ee)](_0x40a8ec);this[_0x4f5571(0x520)][_0x4f5571(0x4fa)](_0x40a8ec,{'unitID':_0x40a8ec,'type':_0x4fd5c7,'awaitingChangeset':_0xbc2311,'mutations':_0x310c01,'rev':_0x1bb125}),this[_0x4f5571(0x17e)][_0x4f5571(0x34a)](_0x40a8ec)||this['_scheduleSaving'](_0x40a8ec);}['_scheduleSaving'](_0x45f5e6){const _0x2257ff=_0x4f35dc,_0x491e8b=this[_0x2257ff(0x47c)]();_0x491e8b===0x0?this[_0x2257ff(0x23f)](_0x45f5e6):this['_saveTaskMap'][_0x2257ff(0x4fa)](_0x45f5e6,setTimeout(()=>this['_saveCache'](_0x45f5e6),_0x491e8b));}['_getSaveTimeout'](){const _0x2f6b13=_0x4f35dc;var _0x1eb2ae;return(_0x1eb2ae=this[_0x2f6b13(0x19a)][_0x2f6b13(0x3ac)](mt))!=null?_0x1eb2ae:zt;}[_0x4f35dc(0x23f)](_0x2ef0bd){const _0x13d4e4=_0x4f35dc,_0x19e5fb=this['_saveTaskMap']['get'](_0x2ef0bd);return _0x19e5fb!==void 0x0&&window['clearTimeout'](_0x19e5fb),this[_0x13d4e4(0x38a)][_0x13d4e4(0x447)](Je(_0x2ef0bd),this[_0x13d4e4(0x520)]['get'](_0x2ef0bd))[_0x13d4e4(0x120)](()=>this[_0x13d4e4(0x17e)][_0x13d4e4(0x424)](_0x2ef0bd));}async[_0x4f35dc(0x1ab)](){const _0x441c53=_0x4f35dc,_0xb62bab=[];this['_saveTaskMap']['forEach']((_0x55e99f,_0x3f3270)=>{const _0x929771=_0x1935;window[_0x929771(0x2ca)](_0x55e99f),_0xb62bab[_0x929771(0x268)](this[_0x929771(0x23f)](_0x3f3270)[_0x929771(0x120)](()=>{this['_saveTaskMap']['delete'](_0x3f3270);}));}),await Promise[_0x441c53(0x1d5)](_0xb62bab);}['_setupBeforeClosingHandler'](){const _0x21736d=_0x4f35dc;this[_0x21736d(0x14d)](this[_0x21736d(0x2cb)][_0x21736d(0x4b6)](()=>{const _0x4ef923=_0x21736d;if(this[_0x4ef923(0x17e)][_0x4ef923(0x2bd)])return this['_localeService']['t'](_0x4ef923(0x450));}));}},exports[_0x4f35dc(0x29a)]=ps([re(0x0,a[_0x4f35dc(0x301)]),re(0x1,a[_0x4f35dc(0x3a5)]),re(0x2,M[_0x4f35dc(0x2d1)]),re(0x3,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x43c)])),re(0x4,a['Inject'](_[_0x4f35dc(0x4b2)]))],exports[_0x4f35dc(0x29a)]);function Je(_0x28a744){const _0x169134=_0x4f35dc;return _0x169134(0x29c)+_0x28a744;}var Cs=Object[_0x4f35dc(0x305)],Es=Object[_0x4f35dc(0x21c)],bs=(_0x355ba6,_0x35621b,_0x3e1673,_0x1429e4)=>{const _0xd5dd7c=_0x4f35dc;for(var _0x14c2d6=_0x1429e4>0x1?void 0x0:_0x1429e4?Es(_0x35621b,_0x3e1673):_0x35621b,_0x1399fc=_0x355ba6[_0xd5dd7c(0x3a9)]-0x1,_0x13197c;_0x1399fc>=0x0;_0x1399fc--)(_0x13197c=_0x355ba6[_0x1399fc])&&(_0x14c2d6=(_0x1429e4?_0x13197c(_0x35621b,_0x3e1673,_0x14c2d6):_0x13197c(_0x14c2d6))||_0x14c2d6);return _0x1429e4&&_0x14c2d6&&Cs(_0x35621b,_0x3e1673,_0x14c2d6),_0x14c2d6;},Re=(_0x402656,_0x2e36da)=>(_0x1871c9,_0x1ac296)=>_0x2e36da(_0x1871c9,_0x1ac296,_0x402656);function Ts(_0x5863ca){const _0x53257b=_0x4f35dc,{unitID:_0x2e7e13,mutations:_0x27a22f}=_0x5863ca;return{'unitId':_0x2e7e13,'subUnitId':_0x27a22f[0x0][_0x53257b(0x1e1)][_0x53257b(0x176)]};}let ge=class{constructor(_0x194c15,_0x3368cb,_0x51516c){const _0x3de4f3=_0x4f35dc;this[_0x3de4f3(0x183)]=_0x194c15,this[_0x3de4f3(0x2c0)]=_0x3368cb,this[_0x3de4f3(0x1ff)]=_0x51516c;}[_0x4f35dc(0x153)](_0x32e8a9){const _0x428249=_0x4f35dc;var _0x43c542,_0x32b4a0,_0x3cdcc2,_0x205689,_0x41981d;const _0x4b3e25=this['_injector']['get'](C['SheetsSelectionsService']),{unitId:_0x4725c6,subUnitId:_0x194eb4}=Ts(_0x32e8a9),_0x3d4b1c=_0x4b3e25[_0x428249(0x51a)](_0x4725c6)['getCurrentSelections'](),_0x154e05=(_0x32b4a0=(_0x43c542=this[_0x428249(0x1ff)][_0x428249(0x466)](_0x4725c6))==null?void 0x0:_0x43c542[_0x428249(0x23e)]())==null?void 0x0:_0x32b4a0['getSheetId']();if(_0x3d4b1c['length']===0x0||!_0x4725c6||!_0x194eb4)return;const _0x452328=[{'id':C[_0x428249(0x479)]['id'],'params':{'unitId':_0x4725c6,'subUnitId':_0x154e05,'selections':a[_0x428249(0x374)]['deepClone'](_0x3d4b1c)}}],_0x58bdfb=this['_transformService'][_0x428249(0x377)](_0x32e8a9,_0x452328);if(!_[_0x428249(0x46f)](_0x58bdfb))throw _0x58bdfb[_0x428249(0x22c)];const _0x1b5be2=(_0x41981d=(_0x205689=(_0x3cdcc2=_0x58bdfb[_0x428249(0x3c7)][0x0])==null?void 0x0:_0x3cdcc2['params'])==null?void 0x0:_0x205689[_0x428249(0x152)])!=null?_0x41981d:_0x3d4b1c;Array[_0x428249(0x13c)](_0x1b5be2)&&_0x1b5be2[_0x428249(0x3a9)]&&this['_injector']['get'](a[_0x428249(0x3ed)])[_0x428249(0x3dc)](C['SetSelectionsOperation']['id'],{'unitId':_0x4725c6,'subUnitId':_0x194eb4,'selections':_0x1b5be2});}};ge=bs([Re(0x0,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),Re(0x1,_[_0x4f35dc(0x329)]),Re(0x2,a[_0x4f35dc(0x2e8)])],ge);const Ce=a[_0x4f35dc(0x2ff)]('univer-pro.collaboration-client.single-active-unit-service');var bt=(_0x25be9c=>(_0x25be9c[_0x25be9c[_0x4f35dc(0x3c5)]=0x0]=_0x4f35dc(0x3c5),_0x25be9c[_0x25be9c[_0x4f35dc(0x27f)]=0x1]=_0x4f35dc(0x27f),_0x25be9c))(bt||{});const Ze=0x7530,Qe=_0x4f35dc(0x406);class Rs extends a['Disposable']{constructor(){const _0x16a84c=_0x4f35dc;super(),d(this,_0x16a84c(0x4ee),a[_0x16a84c(0x374)][_0x16a84c(0x2a6)]()),d(this,_0x16a84c(0x503),new Set()),d(this,_0x16a84c(0x2eb),new Map()),d(this,'_heartbeatTimer',null),d(this,_0x16a84c(0x2f1),new Map()),d(this,_0x16a84c(0x3ba),new Map()),this['_init']();}[_0x4f35dc(0x3cc)](){const _0x33a391=_0x4f35dc;super[_0x33a391(0x3cc)](),this['_clearOtherTimers'][_0x33a391(0x155)]((_0x208b8b,_0x396530)=>this[_0x33a391(0x132)](_0x396530)),this[_0x33a391(0x3ec)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4f35dc(0x4af)](_0x2056b0){const _0x2e0dcd=_0x4f35dc;return this[_0x2e0dcd(0x1d9)](_0x2056b0)[_0x2e0dcd(0x49c)](v[_0x2e0dcd(0x483)]());}[_0x4f35dc(0x180)](_0xf8484b){const _0x31ca56=_0x4f35dc;this[_0x31ca56(0x503)][_0x31ca56(0x2bd)]===0x0&&this[_0x31ca56(0x24b)](),this[_0x31ca56(0x503)][_0x31ca56(0x3e5)](_0xf8484b),this['_send']({'type':0x0,'memberID':this[_0x31ca56(0x4ee)],'unitIDs':[_0xf8484b],'isForwarded':!0x1});}['disposeUnit'](_0x42f10b){const _0x52df56=_0x4f35dc;this[_0x52df56(0x503)]['delete'](_0x42f10b),this['_selfUnitIDs'][_0x52df56(0x2bd)]===0x0&&this[_0x52df56(0x3ec)]&&window[_0x52df56(0x1e7)](this[_0x52df56(0x3ec)]);}[_0x4f35dc(0x18b)](){const _0x5d8bf7=_0x4f35dc;this['disposeWithMe'](a[_0x5d8bf7(0x456)](v['fromEvent'](window,_0x5d8bf7(0x349))[_0x5d8bf7(0x4df)](_0x4bd4a8=>{const _0x6968ca=_0x5d8bf7;if(_0x4bd4a8['key']!==Qe||!_0x4bd4a8[_0x6968ca(0x1d8)])return;const _0x132dd3=JSON[_0x6968ca(0x4b0)](_0x4bd4a8[_0x6968ca(0x1d8)]);this['_handleEvent'](_0x132dd3);}))),window['addEventListener']('unload',()=>this[_0x5d8bf7(0x485)]({'type':0x1,'memberID':this[_0x5d8bf7(0x4ee)],'unitIDs':Array[_0x5d8bf7(0x1fb)](this['_selfUnitIDs'])}));}[_0x4f35dc(0x449)](_0x31692e){const _0x10c6e6=_0x4f35dc;switch(_0x31692e[_0x10c6e6(0x419)]){case 0x0:this['_handleJoinEvent'](_0x31692e);break;case 0x1:this['_handleLeaveEvent'](_0x31692e);break;case 0x2:this['_handleHeartbeatEvent'](_0x31692e);break;}}['_handleJoinEvent'](_0x2e1f2a){const _0x336b45=_0x4f35dc,{unitIDs:_0x3272b7,memberID:_0xba71c4,isForwarded:_0x20c4b3}=_0x2e1f2a;_0x3272b7[_0x336b45(0x155)](_0x593558=>{const _0x2e9e34=_0x336b45;if(!_0x20c4b3&&this[_0x2e9e34(0x2eb)][_0x2e9e34(0x34a)](_0x593558)&&this[_0x2e9e34(0x1d9)](_0x593558)['next'](0x1),!this[_0x2e9e34(0x2eb)]['has'](_0x593558)||!this['_unitOnClients'][_0x2e9e34(0x20a)](_0x593558)['has'](_0xba71c4)){const _0x3add8e=this[_0x2e9e34(0x2eb)]['get'](_0x593558)||new Set();_0x3add8e[_0x2e9e34(0x3e5)](_0xba71c4),this[_0x2e9e34(0x2eb)][_0x2e9e34(0x4fa)](_0x593558,_0x3add8e),this[_0x2e9e34(0x2fa)](_0xba71c4);}}),_0x20c4b3||this[_0x336b45(0x485)]({'type':0x0,'memberID':this[_0x336b45(0x4ee)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4f35dc(0x2fa)](_0x359ca2){const _0x51e24d=_0x4f35dc;this[_0x51e24d(0x132)](_0x359ca2);const _0x300d1b=window[_0x51e24d(0x44b)](()=>{const _0x4579e5=_0x51e24d;this[_0x4579e5(0x2eb)][_0x4579e5(0x155)](_0x461376=>{_0x461376['delete'](_0x359ca2);});},Ze*0x2);this[_0x51e24d(0x2f1)][_0x51e24d(0x4fa)](_0x359ca2,_0x300d1b);}[_0x4f35dc(0x132)](_0x291501){const _0xe98a1e=_0x4f35dc;if(this[_0xe98a1e(0x2f1)][_0xe98a1e(0x34a)](_0x291501)){const _0x36cb5a=this[_0xe98a1e(0x2f1)][_0xe98a1e(0x20a)](_0x291501);_0x36cb5a&&window[_0xe98a1e(0x2ca)](_0x36cb5a),this[_0xe98a1e(0x2f1)]['set'](_0x291501,null);}}[_0x4f35dc(0x45f)](_0x593d82){const _0x928ee=_0x4f35dc,{memberID:_0x533395,unitIDs:_0xa2fb01}=_0x593d82;_0xa2fb01[_0x928ee(0x155)](_0x3ff997=>{const _0x551a78=_0x928ee;var _0x339be8;const _0x1cdc71=this[_0x551a78(0x2eb)][_0x551a78(0x20a)](_0x3ff997);_0x1cdc71&&(_0x1cdc71['delete'](_0x533395),(_0x339be8=this['_ensureSubject'](_0x3ff997))==null||_0x339be8[_0x551a78(0x245)](_0x1cdc71['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x533395);}[_0x4f35dc(0x4ca)](_0x2e6ff8){const _0x304b89=_0x4f35dc;this[_0x304b89(0x2fa)](_0x2e6ff8[_0x304b89(0x1fc)]);}[_0x4f35dc(0x485)](_0x543f29){const _0x3bd72f=_0x4f35dc;localStorage[_0x3bd72f(0x447)](Qe,JSON[_0x3bd72f(0x2b4)](_0x543f29));}[_0x4f35dc(0x24b)](){const _0x67a5c7=_0x4f35dc;this[_0x67a5c7(0x3ec)]=window['setInterval'](()=>{const _0x178658=_0x67a5c7;this[_0x178658(0x485)]({'type':0x2,'memberID':this[_0x178658(0x4ee)]});},Ze);}[_0x4f35dc(0x1d9)](_0x174c7e){const _0x5ef985=_0x4f35dc;return this['_unitStatus']['has'](_0x174c7e)||this['_unitStatus'][_0x5ef985(0x4fa)](_0x174c7e,new v[(_0x5ef985(0x36c))](0x0)),this[_0x5ef985(0x3ba)][_0x5ef985(0x20a)](_0x174c7e);}}function Tt(_0x1b74be){let _0x50417b='';for(const _0x53a681 of _0x1b74be){const {startOffset:_0x154448,endOffset:_0x138158,isActive:_0x3a7648}=_0x53a681;_0x50417b['length']&&(_0x50417b+=','),_0x50417b+=_0x154448+':'+_0x138158+':'+(_0x3a7648?'1':'0');}return _0x50417b;}function Os(_0x4f6211){const _0x4dc1e9=_0x4f35dc,_0x4b6502=_0x4f6211['split'](','),_0x5bdbd0=[];for(const _0x45461f of _0x4b6502){const [_0x6bdf8c,_0x297527,_0x287ffb]=_0x45461f[_0x4dc1e9(0x28d)](':');_0x5bdbd0[_0x4dc1e9(0x268)]({'startOffset':Number(_0x6bdf8c),'endOffset':Number(_0x297527),'collapsed':_0x6bdf8c===_0x297527,'isActive':_0x287ffb==='1'});}return _0x5bdbd0[_0x4dc1e9(0x3eb)](_0x2a0a3c=>_0x2a0a3c[_0x4dc1e9(0x134)])||(_0x5bdbd0[0x0][_0x4dc1e9(0x134)]=!0x0),_0x5bdbd0;}class Fe extends a[_0x4f35dc(0x1fe)]{constructor(){const _0x208d79=_0x4f35dc;super(...arguments),d(this,_0x208d79(0x4dc),new v[(_0x208d79(0x36c))](null)),d(this,_0x208d79(0x33e),this['_collabCursorState$'][_0x208d79(0x366)]());}[_0x4f35dc(0x11e)](_0x14a089){const {unitID:_0x13f4aa,memberID:_0x2ac415,textRanges:_0x5a86e0}=_0x14a089,_0x4e2cbb=Tt(_0x5a86e0),_0x15c022={'unitID':_0x13f4aa,'memberID':_0x2ac415,'selection':_0x4e2cbb};this['_collabCursorState$']['next'](_0x15c022);}}var Ds=Object['defineProperty'],ys=Object['getOwnPropertyDescriptor'],Ps=(_0x1a0600,_0x5ae1cc,_0x4a1ea3,_0x571607)=>{const _0x595bf8=_0x4f35dc;for(var _0x37786b=_0x571607>0x1?void 0x0:_0x571607?ys(_0x5ae1cc,_0x4a1ea3):_0x5ae1cc,_0xf7076a=_0x1a0600[_0x595bf8(0x3a9)]-0x1,_0x339472;_0xf7076a>=0x0;_0xf7076a--)(_0x339472=_0x1a0600[_0xf7076a])&&(_0x37786b=(_0x571607?_0x339472(_0x5ae1cc,_0x4a1ea3,_0x37786b):_0x339472(_0x37786b))||_0x37786b);return _0x571607&&_0x37786b&&Ds(_0x5ae1cc,_0x4a1ea3,_0x37786b),_0x37786b;},et=(_0x57ae5e,_0x2104b7)=>(_0x4886b1,_0x509e20)=>_0x2104b7(_0x4886b1,_0x509e20,_0x57ae5e);let Ie=class{constructor(_0x42774c,_0x390d29){const _0x189056=_0x4f35dc;this['_injector']=_0x42774c,this[_0x189056(0x2c0)]=_0x390d29;}[_0x4f35dc(0x153)](_0x3078f4){const _0x5bc28b=_0x4f35dc;var _0x3284f8;const _0x52c584=this[_0x5bc28b(0x183)]['get'](w['TextSelectionManagerService']),_0x5e9da6=(_0x3284f8=_0x52c584[_0x5bc28b(0x4a8)]())!=null?_0x3284f8:[],_0x3b346a=_0x5e9da6==null?void 0x0:_0x5e9da6['map'](w['serializeDocRange']);if(_0x3b346a[_0x5bc28b(0x3a9)]===0x0)return;const _0x469e21=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3078f4['unitID'],'actions':null,'textRanges':_0x3b346a}}],_0x2e2568=this['_transformService'][_0x5bc28b(0x377)](_0x3078f4,_0x469e21);if(!_['isTransformMutationsWithChangesetSuccess'](_0x2e2568))throw _0x2e2568[_0x5bc28b(0x22c)];const _0x3b326b=_0x2e2568['m2Prime'][0x0][_0x5bc28b(0x1e1)][_0x5bc28b(0x2e0)];Array['isArray'](_0x3b326b)&&_0x3b326b[_0x5bc28b(0x3a9)]&&_0x52c584[_0x5bc28b(0x375)](_0x3b326b,!0x1);}};Ie=Ps([et(0x0,a[_0x4f35dc(0x1ac)](a['Injector'])),et(0x1,_[_0x4f35dc(0x329)])],Ie);const ws=new Set([C[_0x4f35dc(0x36b)]['id']]);function tt(_0x385fa0,_0x203ac1,_0x8b9c87,_0x31df85,_0x21b17c){const _0x2571de=_0x4f35dc;var _0x4a13b1,_0x54a975,_0x19bf16,_0x46abfd;const _0x34c52f=[];for(const _0x29d2ce of _0x385fa0)if(ws[_0x2571de(0x34a)](_0x29d2ce['id'])){if(_0x34c52f['length']>0x0)break;_0x34c52f['push'](_0x29d2ce);break;}else _0x34c52f[_0x2571de(0x268)](_0x29d2ce);const _0x3331ac=(_0x54a975=(_0x4a13b1=_0x21b17c[_0x2571de(0x486)]())==null?void 0x0:_0x4a13b1['userID'])!=null?_0x54a975:'unknown',_0x2a70d0=(_0x46abfd=(_0x19bf16=_0x21b17c[_0x2571de(0x486)]())==null?void 0x0:_0x19bf16[_0x2571de(0x1fc)])!=null?_0x46abfd:'unknown';return{'changeset':{'unitID':_0x203ac1,'type':_['mapDocumentTypeToUniverType'](_0x8b9c87[_0x2571de(0x35e)](_0x203ac1)),'baseRev':_0x31df85[_0x2571de(0x1ee)](_0x203ac1),'revision':0x0,'userID':_0x3331ac,'memberID':_0x2a70d0,'mutations':_0x34c52f},'pendingMutations':_0x385fa0[_0x2571de(0x223)](_0x34c52f[_0x2571de(0x3a9)])};}function Us(_0x405945,_0x2b99c4,_0x2cba7e,_0x1b4825,_0x5a8065){const _0x557579=_0x4f35dc;var _0x12d3a8,_0x5371b3,_0x1604e5,_0x701d13;const _0x3b1dfd=[_0x405945[_0x557579(0x453)]((_0x3c2606,_0x4e3feb)=>{const _0x41cf66=_0x557579;var _0x4e320c;const {id:_0x50b519}=_0x3c2606,{id:_0x24dac6,type:_0x47eba9}=_0x4e3feb,_0x158362=(_0x4e320c=_0x3c2606[_0x41cf66(0x1e1)])!=null?_0x4e320c:{'actions':null},_0x406499=_0x4e3feb[_0x41cf66(0x1e1)];if(_0x50b519&&_0x50b519!==_0x24dac6)throw new Error(_0x41cf66(0x3d3)+_0x50b519+_0x41cf66(0x220)+_0x24dac6+'.');return{..._0x3c2606,'id':_0x24dac6,'type':_0x47eba9,'params':{'unitId':_0x406499[_0x41cf66(0x284)],'textRanges':_0x406499[_0x41cf66(0x2e0)],'actions':a[_0x41cf66(0x4e9)][_0x41cf66(0x18f)](_0x158362[_0x41cf66(0x37d)],_0x406499[_0x41cf66(0x37d)])}};},{})],_0x470a90=(_0x5371b3=(_0x12d3a8=_0x5a8065['getCurrentUser']())==null?void 0x0:_0x12d3a8['userID'])!=null?_0x5371b3:_0x557579(0x1e3),_0x4c539f=(_0x701d13=(_0x1604e5=_0x5a8065['getCurrentUser']())==null?void 0x0:_0x1604e5[_0x557579(0x1fc)])!=null?_0x701d13:_0x557579(0x1e3);return{'changeset':{'unitID':_0x2b99c4,'type':_[_0x557579(0x1f7)](_0x2cba7e[_0x557579(0x35e)](_0x2b99c4)),'baseRev':_0x1b4825['getCurrentRevForDocument'](_0x2b99c4),'revision':0x0,'userID':_0x470a90,'memberID':_0x4c539f,'mutations':_0x3b1dfd},'pendingMutations':[]};}const Ns={'id':C[_0x4f35dc(0x3b5)]['id'],'type':a[_0x4f35dc(0x48c)]['MUTATION'],'params':{}};var Ms=Object[_0x4f35dc(0x305)],Ls=Object[_0x4f35dc(0x21c)],X=(_0x58d1f9,_0xce0883,_0x1bb21a,_0xc5ef28)=>{const _0x254b09=_0x4f35dc;for(var _0x3d6343=_0xc5ef28>0x1?void 0x0:_0xc5ef28?Ls(_0xce0883,_0x1bb21a):_0xce0883,_0x53e64f=_0x58d1f9[_0x254b09(0x3a9)]-0x1,_0x99f421;_0x53e64f>=0x0;_0x53e64f--)(_0x99f421=_0x58d1f9[_0x53e64f])&&(_0x3d6343=(_0xc5ef28?_0x99f421(_0xce0883,_0x1bb21a,_0x3d6343):_0x99f421(_0x3d6343))||_0x3d6343);return _0xc5ef28&&_0x3d6343&&Ms(_0xce0883,_0x1bb21a,_0x3d6343),_0x3d6343;},f=(_0x1fb221,_0xeff0f)=>(_0x8e229f,_0x32d399)=>_0xeff0f(_0x8e229f,_0x32d399,_0x1fb221),y=(_0x1e6798=>(_0x1e6798[_0x4f35dc(0x4db)]=_0x4f35dc(0x22e),_0x1e6798[_0x4f35dc(0x4c3)]=_0x4f35dc(0x333),_0x1e6798[_0x4f35dc(0x391)]=_0x4f35dc(0x430),_0x1e6798['AWAITING']='awaiting',_0x1e6798[_0x4f35dc(0x4d4)]=_0x4f35dc(0x225),_0x1e6798[_0x4f35dc(0x2ac)]=_0x4f35dc(0x382),_0x1e6798[_0x4f35dc(0x2ee)]=_0x4f35dc(0x174),_0x1e6798[_0x4f35dc(0x291)]=_0x4f35dc(0x2e6),_0x1e6798))(y||{});class q{constructor(_0x47249a,_0x3272a2,_0x48bbf5,_0x2e1e4f,_0xf48211,_0x165f3f,_0x38d543,_0x58121a,_0x5d5377){const _0x85c0a3=_0x4f35dc;d(this,_0x85c0a3(0x322),null),d(this,_0x85c0a3(0x2e3),[]),(this[_0x85c0a3(0x26b)]=_0x47249a,this[_0x85c0a3(0x419)]=_0x3272a2,this[_0x85c0a3(0x508)]=_0xf48211,this[_0x85c0a3(0x1eb)]=_0x165f3f,this[_0x85c0a3(0x1c3)]=_0x38d543,this[_0x85c0a3(0x1e0)]=_0x58121a,this['_localCacheService']=_0x5d5377,this[_0x85c0a3(0x322)]=_0x48bbf5,this[_0x85c0a3(0x2e3)]=_0x2e1e4f);}[_0x4f35dc(0x3a6)](_0x4c8833){const _0x1db728=_0x4f35dc,_0x20b888=this[_0x1db728(0x1e0)]['getCurrentRevForDocument'](this[_0x1db728(0x26b)]);return _0x4c8833[_0x1db728(0x4c7)]>_0x20b888+0x1?(this[_0x1db728(0x508)][_0x1db728(0x20e)]({'from':_0x20b888,'to':_0x4c8833['revision']-0x1}),!0x0):!0x1;}[_0x4f35dc(0x25c)](_0x257667){const _0x3120d3=_0x4f35dc;this[_0x3120d3(0x1c3)][_0x3120d3(0x32c)](this[_0x3120d3(0x26b)],_0x257667);}[_0x4f35dc(0x281)](_0xf93265){const _0x1be70f=_0x4f35dc;var _0x2060b3,_0x43c807;(_0x43c807=(_0x2060b3=this[_0x1be70f(0x508)])[_0x1be70f(0x50f)])==null||_0x43c807[_0x1be70f(0x400)](_0x2060b3,_0xf93265);}[_0x4f35dc(0x459)](_0x2639dd){const _0x1c96fc=_0x4f35dc;var _0x5081f3,_0x388a0f;return(_0x388a0f=(_0x5081f3=this['_handler'])['onTransformIME'])==null?void 0x0:_0x388a0f[_0x1c96fc(0x400)](_0x5081f3,_0x2639dd);}[_0x4f35dc(0x35a)](_0x54e313){const _0x50a733=_0x4f35dc;var _0x333182,_0x25541a,_0x500f9f;return(_0x500f9f=(_0x25541a=(_0x333182=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x25541a[_0x50a733(0x400)](_0x333182,_0x54e313))!=null?_0x500f9f:_0x54e313;}[_0x4f35dc(0x43d)](_0x2fae4c){const _0xab057b=_0x4f35dc;var _0x48865d,_0x3625be;if(this['type']===A[_0xab057b(0x4fb)]){const {unitID:_0x3475fd,mutations:_0x157d83,memberID:_0x416cd3}=_0x2fae4c,_0x255ab7=_0x157d83[0x0][_0xab057b(0x1e1)]['textRanges'];Array[_0xab057b(0x13c)](_0x255ab7)&&_0x255ab7[_0xab057b(0x3a9)]>0x0&&((_0x3625be=(_0x48865d=this['_handler'])[_0xab057b(0x454)])==null||_0x3625be[_0xab057b(0x400)](_0x48865d,{'unitID':_0x3475fd,'memberID':_0x416cd3,'textRanges':_0x255ab7}));}}[_0x4f35dc(0x42f)](){const _0x1f52df=_0x4f35dc;this[_0x1f52df(0x423)][_0x1f52df(0x389)](this['unitID'],this['type'],this[_0x1f52df(0x322)],this[_0x1f52df(0x2e3)]);}[_0x4f35dc(0x465)](){const _0x1f1be5=_0x4f35dc;return this['_revisionService'][_0x1f1be5(0x1ee)](this[_0x1f1be5(0x26b)]);}[_0x4f35dc(0x146)](){const _0x48c191=_0x4f35dc;this[_0x48c191(0x1e0)][_0x48c191(0x328)](this[_0x48c191(0x26b)]);}['_executeRemoteChangeset'](_0x25c0a6){const _0x984bad=_0x4f35dc;var _0x283a2a;const _0x955751=this['_transformRemoteChangesetByIMECache'](_0x25c0a6),_0x353632=a['sequenceExecute'](_0x955751[_0x984bad(0x24a)],this[_0x984bad(0x1eb)],{'fromCollab':!0x0});if(!_0x353632[_0x984bad(0x351)])throw _0x353632[_0x984bad(0x22c)]instanceof Error?_0x353632['error']:new Error((_0x283a2a=_0x353632[_0x984bad(0x22c)])!=null?_0x283a2a:_0x984bad(0x1bf));this['_transformIMECache'](_0x955751),this[_0x984bad(0x25c)](_0x25c0a6),this[_0x984bad(0x281)](_0x955751),this['_syncEditingCollabCursor'](_0x955751),this['_incrementRevisionNumber']();}}let te=class extends q{constructor(_0x420dc4,_0x4215eb,_0x594611,_0x48eb08,_0x2f317d,_0x3f4ee0,_0x1ec099,_0x1271fc,_0x239756,_0x6af61c){const _0x4edd0c=_0x4f35dc;super(_0x420dc4,_0x4215eb,null,[],_0x594611,_0x1271fc,_0x1ec099,_0x48eb08,_0x2f317d),d(this,'status',_0x4edd0c(0x333)),(this['_injector']=_0x3f4ee0,this[_0x4edd0c(0x289)]=_0x239756,this[_0x4edd0c(0x2c0)]=_0x6af61c);}[_0x4f35dc(0x2b1)](_0x4f2f1d){const _0x26ee00=_0x4f35dc,_0x5e219f=this[_0x26ee00(0x183)][_0x26ee00(0x239)](x,this['unitID'],this[_0x26ee00(0x419)],[_0x4f2f1d],this[_0x26ee00(0x508)]);return _0x5e219f[_0x26ee00(0x411)](),_0x5e219f['_updateLocalCache'](),_0x5e219f;}['onRemoteChangeset'](_0x125b5b){const _0x526594=_0x4f35dc;if(this['_checkMissing'](_0x125b5b))return this[_0x526594(0x183)]['createInstance']($,this[_0x526594(0x26b)],this[_0x526594(0x419)],null,[],null,[_0x125b5b],this[_0x526594(0x508)]);try{const _0x8e17ef=this['_transformService']['transformMutationsWithChangeset'](_0x125b5b,[Ns]);if(_[_0x526594(0x46f)](_0x8e17ef)){const {c1Prime:_0x5a77a3}=_0x8e17ef;return this[_0x526594(0x16c)](_0x5a77a3),this;}throw _0x8e17ef[_0x526594(0x22c)];}catch(_0x44d83b){return this['_logService']['error'](_0x44d83b),this['_onConflict'](!0x1);}}[_0x4f35dc(0x136)](_0x5da343){const _0x4a0573=_0x4f35dc;return this['_injector'][_0x4a0573(0x239)](V,this['unitID'],this['type'],null,[],this[_0x4a0573(0x508)],_0x5da343);}[_0x4f35dc(0x47f)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x4f35dc(0x1c6)](){const _0x13e104=_0x4f35dc;throw new Error(_0x13e104(0x3d1));}['toggleOffline'](){const _0x35f8ac=_0x4f35dc;return this[_0x35f8ac(0x183)][_0x35f8ac(0x239)](F,this[_0x35f8ac(0x26b)],this[_0x35f8ac(0x419)],null,[],this['_handler']);}[_0x4f35dc(0x29f)](){return this;}[_0x4f35dc(0x1cc)](){const _0x186c10=_0x4f35dc;throw new Error(_0x186c10(0x51c));}[_0x4f35dc(0x3fa)](){const _0x1dc501=_0x4f35dc,_0x33bf92=this[_0x1dc501(0x1e0)]['getCurrentRevForDocument'](this['unitID']);return this[_0x1dc501(0x508)]['onMissingChangesets']({'from':_0x33bf92,'to':0x0}),this[_0x1dc501(0x183)]['createInstance']($,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};te=X([f(0x3,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x4b2)])),f(0x4,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),f(0x5,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),f(0x6,a[_0x4f35dc(0x2b9)]),f(0x7,a[_0x4f35dc(0x3ed)]),f(0x8,a[_0x4f35dc(0x428)]),f(0x9,_[_0x4f35dc(0x329)])],te);let x=class extends q{constructor(_0x25fb01,_0x258df4,_0x18b99b,_0x1f47d4,_0x2d9f83,_0x126a61,_0x261c9c,_0x1bc9d0,_0x3aee6a,_0x2026bd,_0x25e637,_0x1acec5,_0x445a64,_0x143d37){const _0x11c213=_0x4f35dc;super(_0x25fb01,_0x258df4,null,_0x18b99b,_0x1f47d4,_0x2026bd,_0x143d37,_0x126a61,_0x261c9c),d(this,_0x11c213(0x307),_0x11c213(0x430)),d(this,_0x11c213(0x41d),null),d(this,_0x11c213(0x308),null),(this[_0x11c213(0x183)]=_0x2d9f83,this[_0x11c213(0x32a)]=_0x1bc9d0,this['_logService']=_0x3aee6a,this[_0x11c213(0x19a)]=_0x25e637,this[_0x11c213(0x2c0)]=_0x1acec5,this['_univerInstanceService']=_0x445a64);}[_0x4f35dc(0x2b1)](_0x290ddc){const _0x5210fe=_0x4f35dc;return this['_pendingMutations'][_0x5210fe(0x268)](_0x290ddc),this[_0x5210fe(0x42f)](),this;}[_0x4f35dc(0x4c0)](_0x261974){const _0x106346=_0x4f35dc;if(this[_0x106346(0x3a6)](_0x261974))return this[_0x106346(0x2c5)](),this[_0x106346(0x183)][_0x106346(0x239)]($,this[_0x106346(0x26b)],this[_0x106346(0x419)],null,this[_0x106346(0x2e3)],null,[_0x261974],this[_0x106346(0x508)]);try{const _0x3f702a=this[_0x106346(0x2c0)][_0x106346(0x377)](_0x261974,this[_0x106346(0x2e3)]);if(_[_0x106346(0x46f)](_0x3f702a)){const {c1Prime:_0x584ce5,m2Prime:_0x42b7d1}=_0x3f702a;this[_0x106346(0x16c)](_0x584ce5);const _0x16d313=this[_0x106346(0x183)]['createInstance'](x,this[_0x106346(0x26b)],this[_0x106346(0x419)],_0x42b7d1,this['_handler']);return this[_0x106346(0x2c5)](),_0x16d313[_0x106346(0x411)](this[_0x106346(0x41d)]?Math[_0x106346(0x1c5)](0x0,new Date()[_0x106346(0x48d)]()-this[_0x106346(0x41d)]):this[_0x106346(0x25f)]()),_0x16d313;}throw _0x3f702a[_0x106346(0x22c)];}catch(_0xc39739){return this['_logService'][_0x106346(0x22c)](_0xc39739),this[_0x106346(0x136)](!0x1);}}[_0x4f35dc(0x47f)](){const _0x5e7cb1=_0x4f35dc;throw new Error(_0x5e7cb1(0x1a5));}[_0x4f35dc(0x1c6)](){const _0x45abe7=_0x4f35dc;throw new Error(_0x45abe7(0x194));}[_0x4f35dc(0x2dd)](){const _0x437517=_0x4f35dc;return this[_0x437517(0x2c5)](),this['_injector'][_0x437517(0x239)](F,this[_0x437517(0x26b)],this[_0x437517(0x419)],null,this[_0x437517(0x2e3)],this[_0x437517(0x508)]);}[_0x4f35dc(0x29f)](){return this;}[_0x4f35dc(0x411)](_0x187f8d){const _0x1e6147=_0x4f35dc,_0x48d116=_0x187f8d!=null?_0x187f8d:this[_0x1e6147(0x25f)]();this['_scheduleTimestamp']=new Date()[_0x1e6147(0x48d)](),this[_0x1e6147(0x308)]=window[_0x1e6147(0x44b)](()=>{const _0x341ccc=_0x1e6147;this[_0x341ccc(0x2c5)]();let _0x392f5b=null;switch(this['type']){case A['UNIVER_SHEET']:{_0x392f5b=tt(this[_0x341ccc(0x2e3)],this['unitID'],this[_0x341ccc(0x16d)],this[_0x341ccc(0x1e0)],this[_0x341ccc(0x32a)]);break;}case A[_0x341ccc(0x4fb)]:{this[_0x341ccc(0x2e3)][_0x341ccc(0x3e9)](_0x35ba1a=>_0x35ba1a['id']===w[_0x341ccc(0x4a4)]['id'])?_0x392f5b=Us(this[_0x341ccc(0x2e3)],this[_0x341ccc(0x26b)],this[_0x341ccc(0x16d)],this[_0x341ccc(0x1e0)],this[_0x341ccc(0x32a)]):_0x392f5b=tt(this[_0x341ccc(0x2e3)],this[_0x341ccc(0x26b)],this[_0x341ccc(0x16d)],this[_0x341ccc(0x1e0)],this[_0x341ccc(0x32a)]);break;}default:throw new Error(_0x341ccc(0x192)+this[_0x341ccc(0x419)]+_0x341ccc(0x4b4));}const {changeset:_0x588507,pendingMutations:_0x6e8217}=_0x392f5b;this[_0x341ccc(0x508)]['onSendChangeset'](_0x588507);const _0x5f42b5=_0x6e8217['length']?this[_0x341ccc(0x183)][_0x341ccc(0x239)](H,this['unitID'],this[_0x341ccc(0x419)],_0x588507,_0x6e8217,this[_0x341ccc(0x508)]):this[_0x341ccc(0x183)][_0x341ccc(0x239)](B,this['unitID'],this['type'],_0x588507,this['_handler']);_0x5f42b5['_updateLocalCache'](),this[_0x341ccc(0x508)][_0x341ccc(0x442)](this,_0x5f42b5);},_0x48d116);}[_0x4f35dc(0x25f)](){const _0x35c6c1=_0x4f35dc;var _0x8c015f;return(_0x8c015f=this['_configService'][_0x35c6c1(0x3ac)](ht))!=null?_0x8c015f:Gt;}[_0x4f35dc(0x1cc)](){const _0x9dd9de=_0x4f35dc;throw new Error(_0x9dd9de(0x2b7));}[_0x4f35dc(0x2c5)](){const _0x5e7159=_0x4f35dc;this['_sendingTimer']!=null&&(clearTimeout(this[_0x5e7159(0x308)]),this[_0x5e7159(0x308)]=null);}['_onConflict'](_0x5c108d){const _0x5888b0=_0x4f35dc;return this[_0x5888b0(0x2c5)](),this[_0x5888b0(0x183)]['createInstance'](V,this[_0x5888b0(0x26b)],this['type'],null,this['_pendingMutations'],this[_0x5888b0(0x508)],_0x5c108d);}};x=X([f(0x4,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),f(0x5,a['Inject'](_[_0x4f35dc(0x4b2)])),f(0x6,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),f(0x7,a['Inject'](K)),f(0x8,a[_0x4f35dc(0x428)]),f(0x9,a[_0x4f35dc(0x3ed)]),f(0xa,a[_0x4f35dc(0x301)]),f(0xb,_[_0x4f35dc(0x329)]),f(0xc,a[_0x4f35dc(0x2e8)]),f(0xd,a[_0x4f35dc(0x2b9)])],x);let B=class extends q{constructor(_0x1a0ea3,_0x2661b1,_0x5893cd,_0x51c6ca,_0x43c85a,_0x24bfd2,_0x1628db,_0x441f67,_0x158f11,_0x317b7e,_0x1a19c2){const _0x596a=_0x4f35dc;super(_0x1a0ea3,_0x2661b1,_0x5893cd,[],_0x51c6ca,_0x441f67,_0x1a19c2,_0x24bfd2,_0x1628db),d(this,_0x596a(0x307),_0x596a(0x167)),(this[_0x596a(0x183)]=_0x43c85a,this[_0x596a(0x289)]=_0x158f11,this[_0x596a(0x2c0)]=_0x317b7e);}[_0x4f35dc(0x2b1)](_0x2d7d44){const _0x423a0f=_0x4f35dc,_0x1a00e5=this[_0x423a0f(0x183)][_0x423a0f(0x239)](H,this[_0x423a0f(0x26b)],this[_0x423a0f(0x419)],this['_awaitingChangeset'],[_0x2d7d44],this['_handler']);return _0x1a00e5[_0x423a0f(0x42f)](),_0x1a00e5;}[_0x4f35dc(0x4c0)](_0xe22c7d){const _0x414482=_0x4f35dc;if(this[_0x414482(0x3a6)](_0xe22c7d))return this[_0x414482(0x183)]['createInstance']($,this[_0x414482(0x26b)],this[_0x414482(0x419)],this['_awaitingChangeset'],[],null,[_0xe22c7d],this[_0x414482(0x508)]);try{const _0xd769b3=this[_0x414482(0x2c0)]['transformChangesets']([_0xe22c7d],[this[_0x414482(0x322)]],!0x1);if(_['isTransformChangesetsSuccess'](_0xd769b3)){const {c1Prime:_0x200836,c2Prime:_0x4758c4}=_0xd769b3;this[_0x414482(0x16c)](_0x200836[0x0]),_0x4758c4[0x0][_0x414482(0x23a)]=this[_0x414482(0x465)]();const _0x49e438=this['_injector'][_0x414482(0x239)](B,this[_0x414482(0x26b)],this['type'],_0x4758c4[0x0],this[_0x414482(0x508)]);return _0x49e438[_0x414482(0x42f)](),_0x49e438;}return this['_onConflict'](!0x1);}catch(_0x34aea){return this[_0x414482(0x289)][_0x414482(0x22c)](_0x34aea),this[_0x414482(0x136)](!0x1);}}[_0x4f35dc(0x47f)](_0xa83194){const _0x4f8561=_0x4f35dc,_0x3f097a=this[_0x4f8561(0x1e0)][_0x4f8561(0x1ee)](this['unitID']);if(_0xa83194['revision']<_0x3f097a-0x1)return this;if(this['_checkMissing'](_0xa83194))return this[_0x4f8561(0x183)][_0x4f8561(0x239)]($,this[_0x4f8561(0x26b)],this[_0x4f8561(0x419)],null,[],this['_awaitingChangeset'],[],this[_0x4f8561(0x508)]);this[_0x4f8561(0x146)]();const _0xdf5669=this[_0x4f8561(0x183)][_0x4f8561(0x239)](te,this[_0x4f8561(0x26b)],this[_0x4f8561(0x419)],this[_0x4f8561(0x508)]);return _0xdf5669[_0x4f8561(0x42f)](),_0xdf5669;}[_0x4f35dc(0x1c6)](_0x3b39f0){const _0x17c815=_0x4f35dc;return this[_0x17c815(0x136)](!!(_0x3b39f0!=null&&_0x3b39f0['isPermissionRej']));}[_0x4f35dc(0x2dd)](){const _0x2b0998=_0x4f35dc;return this[_0x2b0998(0x183)][_0x2b0998(0x239)](F,this[_0x2b0998(0x26b)],this[_0x2b0998(0x419)],this[_0x2b0998(0x322)],[],this[_0x2b0998(0x508)]);}['toggleOnline'](){return this;}[_0x4f35dc(0x1cc)](){const _0x2fd6d8=_0x4f35dc;this[_0x2fd6d8(0x508)]['onSendChangeset'](this[_0x2fd6d8(0x322)]);}[_0x4f35dc(0x136)](_0x5cc829){const _0x1a4dae=_0x4f35dc;return this[_0x1a4dae(0x183)][_0x1a4dae(0x239)](V,this['unitID'],this[_0x1a4dae(0x419)],this['_awaitingChangeset'],[],this['_handler'],_0x5cc829);}};B=X([f(0x4,a['Inject'](a['Injector'])),f(0x5,a[_0x4f35dc(0x1ac)](_['RevisionService'])),f(0x6,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),f(0x7,a['ICommandService']),f(0x8,a[_0x4f35dc(0x428)]),f(0x9,_[_0x4f35dc(0x329)]),f(0xa,a[_0x4f35dc(0x2b9)])],B);let H=class extends q{constructor(_0x147f2f,_0x392eed,_0x18325c,_0x554c66,_0xdeb96f,_0x11f982,_0x4dab8b,_0x481c5e,_0x3625d6,_0x83ca22,_0x358a6c,_0x253e6b){const _0x45d605=_0x4f35dc;super(_0x147f2f,_0x392eed,_0x18325c,_0x554c66,_0xdeb96f,_0x3625d6,_0x253e6b,_0x4dab8b,_0x481c5e),d(this,_0x45d605(0x307),_0x45d605(0x225)),(this[_0x45d605(0x183)]=_0x11f982,this[_0x45d605(0x289)]=_0x83ca22,this[_0x45d605(0x2c0)]=_0x358a6c);}[_0x4f35dc(0x2b1)](_0x36b0f1){const _0x276fec=_0x4f35dc;return this[_0x276fec(0x2e3)][_0x276fec(0x268)](_0x36b0f1),this;}['onRemoteChangeset'](_0xe4ead9){const _0x3eb9c3=_0x4f35dc;if(this['_checkMissing'](_0xe4ead9))return this['_injector'][_0x3eb9c3(0x239)]($,this[_0x3eb9c3(0x26b)],this[_0x3eb9c3(0x419)],this['_awaitingChangeset'],this[_0x3eb9c3(0x2e3)],null,[_0xe4ead9],this[_0x3eb9c3(0x508)]);try{const _0x4c83fd=this[_0x3eb9c3(0x2c0)][_0x3eb9c3(0x3a1)]([_0xe4ead9],[this[_0x3eb9c3(0x322)]],!0x1);if(_[_0x3eb9c3(0x4d0)](_0x4c83fd)){const {c1Prime:_0x282c22,c2Prime:_0x8d2138}=_0x4c83fd,_0x2bc3be=this[_0x3eb9c3(0x2c0)][_0x3eb9c3(0x377)](_0x282c22[0x0],this[_0x3eb9c3(0x2e3)]);if(_[_0x3eb9c3(0x46f)](_0x2bc3be)){const {c1Prime:_0x3b2b61,m2Prime:_0x43f8fe}=_0x2bc3be;return this[_0x3eb9c3(0x16c)](_0x3b2b61),_0x8d2138[0x0][_0x3eb9c3(0x23a)]=this['_getCurrentRevision'](),this[_0x3eb9c3(0x183)][_0x3eb9c3(0x239)](H,this[_0x3eb9c3(0x26b)],this[_0x3eb9c3(0x419)],_0x8d2138[0x0],_0x43f8fe,this[_0x3eb9c3(0x508)]);}throw _0x2bc3be['error'];}throw _0x4c83fd[_0x3eb9c3(0x22c)];}catch(_0x32ab61){return this['_logService'][_0x3eb9c3(0x22c)](_0x32ab61),this[_0x3eb9c3(0x136)](!0x1);}}[_0x4f35dc(0x47f)](_0x3b0505){const _0xfdae88=_0x4f35dc;if(this[_0xfdae88(0x3a6)](_0x3b0505))return this[_0xfdae88(0x183)][_0xfdae88(0x239)]($,this[_0xfdae88(0x26b)],this[_0xfdae88(0x419)],null,this[_0xfdae88(0x2e3)],this[_0xfdae88(0x322)],[],this['_handler']);this[_0xfdae88(0x146)]();const _0x1deed2=this[_0xfdae88(0x183)]['createInstance'](x,this[_0xfdae88(0x26b)],this['type'],this[_0xfdae88(0x2e3)],this[_0xfdae88(0x508)]);return _0x1deed2[_0xfdae88(0x411)](),_0x1deed2[_0xfdae88(0x42f)](),_0x1deed2;}[_0x4f35dc(0x1c6)](_0x9d1891){const _0x47aaad=_0x4f35dc;return this[_0x47aaad(0x136)](!!(_0x9d1891!=null&&_0x9d1891[_0x47aaad(0x357)]));}[_0x4f35dc(0x2dd)](){const _0x537bc0=_0x4f35dc;return this[_0x537bc0(0x183)]['createInstance'](F,this[_0x537bc0(0x26b)],this[_0x537bc0(0x419)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x4f35dc(0x29f)](){return this;}[_0x4f35dc(0x1cc)](){const _0x1d8ead=_0x4f35dc;this[_0x1d8ead(0x508)][_0x1d8ead(0x151)](this[_0x1d8ead(0x322)]);}[_0x4f35dc(0x136)](_0x5400b3){const _0x280789=_0x4f35dc;return this[_0x280789(0x183)][_0x280789(0x239)](V,this[_0x280789(0x26b)],this[_0x280789(0x419)],null,this[_0x280789(0x2e3)],this['_handler'],_0x5400b3);}};H=X([f(0x5,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),f(0x6,a['Inject'](_[_0x4f35dc(0x4b2)])),f(0x7,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),f(0x8,a[_0x4f35dc(0x3ed)]),f(0x9,a[_0x4f35dc(0x428)]),f(0xa,_['ITransformService']),f(0xb,a[_0x4f35dc(0x2b9)])],H);let V=class extends q{constructor(_0x5392b0,_0x2e8d12,_0x3d1783,_0x227b70,_0x6d5abc,_0x4574a6=!0x1,_0x59adf6,_0x41bb31,_0xa584cf,_0x20c12a,_0xe1468d,_0x109f04,_0x4260a4){const _0xdbdb0e=_0x4f35dc;super(_0x5392b0,_0x2e8d12,_0x3d1783,_0x227b70,_0x6d5abc,_0x41bb31,_0xa584cf,_0xe1468d,_0x20c12a),d(this,'status','conflict'),(this[_0xdbdb0e(0x4de)]=_0x4574a6,this[_0xdbdb0e(0x31e)]=_0x59adf6,this[_0xdbdb0e(0x312)]=_0x109f04,this[_0xdbdb0e(0x1e8)]=_0x4260a4,this[_0xdbdb0e(0x1d3)](),this[_0xdbdb0e(0x266)](),this['_disableEditing']());}[_0x4f35dc(0x2b1)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x4f35dc(0x1c6)](){return this;}[_0x4f35dc(0x2dd)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x404822=_0x4f35dc;throw new Error(_0x404822(0x3f6));}[_0x4f35dc(0x266)](){const _0x54d3bc=_0x4f35dc;this[_0x54d3bc(0x423)]['updateOfflineData'](this['unitID'],this['type'],null,[]);}[_0x4f35dc(0x1d3)](){const _0xc623f9=_0x4f35dc;this[_0xc623f9(0x4de)]?this[_0xc623f9(0x1e8)][_0xc623f9(0x50c)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0xc623f9(0x312)]['t'](_0xc623f9(0x3d8)),'type':_0xc623f9(0x22c),'duration':0x0}):this[_0xc623f9(0x1e8)][_0xc623f9(0x50c)]({'title':this[_0xc623f9(0x312)]['t'](_0xc623f9(0x2c4)),'content':this[_0xc623f9(0x312)]['t'](_0xc623f9(0x142)),'type':_0xc623f9(0x22c),'duration':0x0});}[_0x4f35dc(0x2c9)](){const _0x32d0da=_0x4f35dc;this[_0x32d0da(0x31e)][_0x32d0da(0x30f)](new C[(_0x32d0da(0x41a))](this[_0x32d0da(0x26b)])['id'],!0x1);}};V=X([f(0x6,a['Inject'](a['IPermissionService'])),f(0x7,a[_0x4f35dc(0x3ed)]),f(0x8,a[_0x4f35dc(0x2b9)]),f(0x9,a['Inject'](exports[_0x4f35dc(0x29a)])),f(0xa,a[_0x4f35dc(0x1ac)](_['RevisionService'])),f(0xb,a[_0x4f35dc(0x1ac)](a['LocaleService'])),f(0xc,M[_0x4f35dc(0x20b)])],V);let F=class extends q{constructor(_0x9746e6,_0x1eced3,_0x475322,_0x8a037d,_0x5624a4,_0x433a17,_0x48ea0f,_0xb78061,_0x4a329a,_0x245c93){const _0x4dae82=_0x4f35dc;super(_0x9746e6,_0x1eced3,_0x475322,_0x8a037d,_0x5624a4,_0x4a329a,_0x245c93,_0x48ea0f,_0xb78061),d(this,_0x4dae82(0x307),_0x4dae82(0x2e6)),this[_0x4dae82(0x183)]=_0x433a17;}[_0x4f35dc(0x2b1)](_0x401d2d){return this['_pendingMutations']['push'](_0x401d2d),this['_updateLocalCache'](),this;}[_0x4f35dc(0x4c0)](_0x3654e4){const _0x5bd259=_0x4f35dc;throw new Error(_0x5bd259(0x327));}[_0x4f35dc(0x47f)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x4f35dc(0x1c6)](){const _0x5a034b=_0x4f35dc;throw new Error(_0x5a034b(0x21b));}['toggleOffline'](){return this;}[_0x4f35dc(0x29f)](){const _0x4b1b08=_0x4f35dc,{_injector:_0x319166,_pendingMutations:_0x207900,_awaitingChangeset:_0x43759b,unitID:_0x28e647,_handler:_0x887614,type:_0x5c8f59}=this,_0x2304c1=Rt(_0x319166,_0x28e647,_0x5c8f59,_0x43759b,_0x207900,_0x887614);return _0x2304c1 instanceof x?_0x2304c1['_schedule']():(_0x2304c1 instanceof H||_0x2304c1 instanceof B)&&_0x2304c1[_0x4b1b08(0x1cc)](),_0x2304c1;}[_0x4f35dc(0x1cc)](){const _0x2f879c=_0x4f35dc;throw new Error(_0x2f879c(0x32b));}};F=X([f(0x5,a[_0x4f35dc(0x1ac)](a['Injector'])),f(0x6,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x4b2)])),f(0x7,a[_0x4f35dc(0x1ac)](exports['LocalCacheService'])),f(0x8,a[_0x4f35dc(0x3ed)]),f(0x9,a[_0x4f35dc(0x2b9)])],F);let $=class extends q{constructor(_0x3d72d4,_0x5d8e70,_0x416f01,_0x2320e0,_0x5325cc,_0x167789,_0x283766,_0x5c3bf8,_0xadc03c,_0x27ba18,_0x54a813,_0x2c652f,_0x3d982c,_0x49e3f0){const _0x12dc5b=_0x4f35dc;super(_0x3d72d4,_0x5d8e70,_0x416f01,_0x2320e0,_0x283766,_0x2c652f,_0x3d982c,_0xadc03c,_0x27ba18),d(this,_0x12dc5b(0x307),_0x12dc5b(0x382)),(this[_0x12dc5b(0x3e2)]=_0x5325cc,this[_0x12dc5b(0x340)]=_0x167789,this[_0x12dc5b(0x183)]=_0x5c3bf8,this[_0x12dc5b(0x289)]=_0x54a813,this[_0x12dc5b(0x2c0)]=_0x49e3f0);}[_0x4f35dc(0x162)](_0x217c37){const _0x572df5=_0x4f35dc;try{const _0x3d909e=[..._0x217c37,...this[_0x572df5(0x340)]],_0x15d198=[this['_awaitingChangeset']||this[_0x572df5(0x3e2)]][_0x572df5(0x404)](_0x4b35a6=>!!_0x4b35a6);let _0x2bcc07,_0x54f1a3;if(_0x15d198[_0x572df5(0x3a9)]){const _0x50a41c=this[_0x572df5(0x2c0)]['transformChangesets'](_0x3d909e,_0x15d198,!0x1);if(!_[_0x572df5(0x4d0)](_0x50a41c))throw _0x50a41c[_0x572df5(0x22c)];_0x2bcc07=_0x50a41c['c1Prime'],_0x54f1a3=_0x50a41c['c2Prime'];}else _0x2bcc07=_0x3d909e,_0x54f1a3=[];let _0x78aeda=this[_0x572df5(0x2e3)];_0x2bcc07[_0x572df5(0x155)](_0x236efb=>{const _0x5bfc03=_0x572df5;let _0x1d60d8;if(_0x78aeda[_0x5bfc03(0x3a9)]){const _0x412143=this[_0x5bfc03(0x2c0)][_0x5bfc03(0x377)](_0x236efb,_0x78aeda);if(!_['isTransformMutationsWithChangesetSuccess'](_0x412143))throw _0x412143[_0x5bfc03(0x22c)];_0x1d60d8=_0x412143[_0x5bfc03(0x407)],_0x78aeda=_0x412143[_0x5bfc03(0x3c7)];}else _0x1d60d8=_0x236efb;this['_executeRemoteChangeset'](_0x1d60d8);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0x572df5(0x322)]&&_0x54f1a3[_0x572df5(0x3a9)]&&(_0x54f1a3[0x0][_0x572df5(0x23a)]=this[_0x572df5(0x465)]());let _0x4e27fd;if(this['_awaitingChangeset']&&_0x78aeda[_0x572df5(0x3a9)]!==0x0)_0x4e27fd=this[_0x572df5(0x183)]['createInstance'](H,this[_0x572df5(0x26b)],this[_0x572df5(0x419)],_0x54f1a3[0x0],_0x78aeda,this[_0x572df5(0x508)]);else{if(this[_0x572df5(0x322)]&&_0x78aeda[_0x572df5(0x3a9)]===0x0)_0x54f1a3[0x0][_0x572df5(0x23a)]=this[_0x572df5(0x465)](),_0x4e27fd=this[_0x572df5(0x183)][_0x572df5(0x239)](B,this[_0x572df5(0x26b)],this[_0x572df5(0x419)],_0x54f1a3[0x0],this['_handler']);else{if(_0x78aeda['length']!==0x0){const _0x21f3a8=this[_0x572df5(0x183)]['createInstance'](x,this['unitID'],this[_0x572df5(0x419)],_0x78aeda,this[_0x572df5(0x508)]);_0x21f3a8[_0x572df5(0x411)](),_0x4e27fd=_0x21f3a8;}else _0x4e27fd=this[_0x572df5(0x183)][_0x572df5(0x239)](te,this[_0x572df5(0x26b)],this[_0x572df5(0x419)],this[_0x572df5(0x508)]);}}return _0x4e27fd['_updateLocalCache'](),_0x4e27fd;}catch(_0x1120a9){return this[_0x572df5(0x289)][_0x572df5(0x22c)]('[FetchMissState]',_0x572df5(0x50d),_0x1120a9),this[_0x572df5(0x183)][_0x572df5(0x239)](V,this[_0x572df5(0x26b)],this[_0x572df5(0x419)],this['_awaitingChangeset'],this[_0x572df5(0x2e3)],this['_handler'],!0x1);}}[_0x4f35dc(0x1cc)](){const _0x779384=_0x4f35dc;throw new Error(_0x779384(0x432));}[_0x4f35dc(0x2b1)](_0x234991){const _0x37e4b3=_0x4f35dc;return this[_0x37e4b3(0x2e3)][_0x37e4b3(0x268)](_0x234991),this;}['onRemoteChangeset'](_0xb2965c){const _0x2b5c6a=_0x4f35dc;return this[_0x2b5c6a(0x340)][_0x2b5c6a(0x268)](_0xb2965c),this;}[_0x4f35dc(0x47f)](_0x5286df){const _0x5e1bc9=_0x4f35dc;if(this['_awaitingChangeset'])return this[_0x5e1bc9(0x3e2)]=this[_0x5e1bc9(0x322)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4f35dc(0x1c6)](_0x5962bb){const _0x1c718b=_0x4f35dc;return this[_0x1c718b(0x136)](!!(_0x5962bb!=null&&_0x5962bb[_0x1c718b(0x357)]));}[_0x4f35dc(0x2dd)](){const _0x22fbae=_0x4f35dc;return this[_0x22fbae(0x183)][_0x22fbae(0x239)](F,this[_0x22fbae(0x26b)],this[_0x22fbae(0x419)],this[_0x22fbae(0x322)],this[_0x22fbae(0x2e3)],this[_0x22fbae(0x508)]);}[_0x4f35dc(0x29f)](){return this;}[_0x4f35dc(0x136)](_0x58e9a8){const _0x3ba8e8=_0x4f35dc;return this['_injector']['createInstance'](V,this[_0x3ba8e8(0x26b)],this[_0x3ba8e8(0x419)],this['_awaitingChangeset'],this[_0x3ba8e8(0x2e3)],this[_0x3ba8e8(0x508)],_0x58e9a8);}};$=X([f(0x7,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),f(0x8,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x4b2)])),f(0x9,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),f(0xa,a['ILogService']),f(0xb,a[_0x4f35dc(0x3ed)]),f(0xc,a[_0x4f35dc(0x2b9)]),f(0xd,_[_0x4f35dc(0x329)])],$);function Rt(_0x51c364,_0x1a8105,_0x5afb61,_0x2f7608,_0x325bba,_0x196c1e){const _0x4b28e6=_0x4f35dc;return _0x2f7608&&_0x325bba[_0x4b28e6(0x3a9)]?_0x51c364[_0x4b28e6(0x239)](H,_0x1a8105,_0x5afb61,_0x2f7608,_0x325bba,_0x196c1e):_0x2f7608?_0x51c364[_0x4b28e6(0x239)](B,_0x1a8105,_0x5afb61,_0x2f7608,_0x196c1e):_0x325bba['length']?_0x51c364[_0x4b28e6(0x239)](x,_0x1a8105,_0x5afb61,_0x325bba,_0x196c1e):_0x51c364[_0x4b28e6(0x239)](te,_0x1a8105,_0x5afb61,_0x196c1e);}var As=Object[_0x4f35dc(0x305)],js=Object[_0x4f35dc(0x21c)],We=(_0x1684c0,_0x2ca63d,_0x155db8,_0x101b41)=>{const _0x59adab=_0x4f35dc;for(var _0x12ef7f=_0x101b41>0x1?void 0x0:_0x101b41?js(_0x2ca63d,_0x155db8):_0x2ca63d,_0x28d4f9=_0x1684c0[_0x59adab(0x3a9)]-0x1,_0xc05415;_0x28d4f9>=0x0;_0x28d4f9--)(_0xc05415=_0x1684c0[_0x28d4f9])&&(_0x12ef7f=(_0x101b41?_0xc05415(_0x2ca63d,_0x155db8,_0x12ef7f):_0xc05415(_0x12ef7f))||_0x12ef7f);return _0x101b41&&_0x12ef7f&&As(_0x2ca63d,_0x155db8,_0x12ef7f),_0x12ef7f;},p=(_0x43c7f8,_0x12ab3)=>(_0x2f7e9d,_0x51d246)=>_0x12ab3(_0x2f7e9d,_0x51d246,_0x43c7f8);exports[_0x4f35dc(0x2df)]=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x400c92,_0x5af34e,_0x3d0ab7,_0x4e6878,_0x19a4b9,_0x35308a,_0x487e49,_0x24b5b1,_0xfa537d,_0x305c70,_0xae1ac2,_0x1bc3d2,_0x3574c1){const _0x39016e=_0x4f35dc;super(),d(this,_0x39016e(0x490),new v[(_0x39016e(0x36c))](null)),d(this,_0x39016e(0x202),this[_0x39016e(0x490)][_0x39016e(0x366)]()),d(this,_0x39016e(0x3c0)),d(this,_0x39016e(0x1b7),!0x1),d(this,'status$',this[_0x39016e(0x202)][_0x39016e(0x49c)](v[_0x39016e(0x201)](_0x8f8988=>_0x8f8988?_0x8f8988[_0x39016e(0x307)]:y['OFFLINE']),v['shareReplay'](0x1))),d(this,_0x39016e(0x15f),!0x1),d(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x400c92,this[_0x39016e(0x2ec)]=_0x5af34e,this['_type']=_0x3d0ab7,this[_0x39016e(0x183)]=_0x4e6878,this[_0x39016e(0x423)]=_0x19a4b9,this[_0x39016e(0x4f7)]=_0x35308a,this[_0x39016e(0x312)]=_0x487e49,this['_revisionService']=_0x24b5b1,this[_0x39016e(0x289)]=_0xfa537d,this[_0x39016e(0x1eb)]=_0x305c70,this[_0x39016e(0x3a4)]=_0xae1ac2,this[_0x39016e(0x31e)]=_0x1bc3d2,this[_0x39016e(0x149)]=_0x3574c1);}get[_0x4f35dc(0x4f2)](){const _0x4bbbc1=_0x4f35dc;return this[_0x4bbbc1(0x3c0)];}async[_0x4f35dc(0x219)](){const _0x5e3c12=_0x4f35dc;if(this[_0x5e3c12(0x4f2)])throw new Error(_0x5e3c12(0x336));await this[_0x5e3c12(0x18b)]();}[_0x4f35dc(0x21e)](){const _0x5cdfbb=_0x4f35dc;return this['_collaborationPaused']=!0x0,a[_0x5cdfbb(0x456)](()=>{const _0x1cb2c0=_0x5cdfbb;this[_0x1cb2c0(0x1b7)]=!0x1,this[_0x1cb2c0(0x4c4)]();});}[_0x4f35dc(0x127)](_0xe4620d){const _0x34154b=_0x4f35dc;this[_0x34154b(0x3c0)]=_0xe4620d,this[_0x34154b(0x490)][_0x34154b(0x245)](_0xe4620d);}async[_0x4f35dc(0x18b)](){const _0x1eaa23=_0x4f35dc;var _0xaa9de0;this['_updateState'](await this[_0x1eaa23(0x4f9)]()),this[_0x1eaa23(0x149)]&&((_0xaa9de0=this[_0x1eaa23(0x149)])==null||_0xaa9de0['editingUnit'](this[_0x1eaa23(0x26b)]),this[_0x1eaa23(0x14d)](this['_singleActiveUnitService'][_0x1eaa23(0x4af)](this[_0x1eaa23(0x26b)])[_0x1eaa23(0x4df)](_0x275fc5=>{const _0x315eed=_0x1eaa23;this['_logService']['debug']('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x275fc5),_0x275fc5===bt['OTHER_CLIENTS_EDITING']?(this[_0x315eed(0x3a4)][_0x315eed(0x50c)]({'content':this['_localeService']['t'](_0x315eed(0x3e1)),'type':Y[_0x315eed(0x4b1)][_0x315eed(0x338)]}),this[_0x315eed(0x31e)]['updatePermissionPoint'](new C[(_0x315eed(0x41a))](this['unitID'])['id'],!0x1)):this[_0x315eed(0x31e)][_0x315eed(0x30f)](new C[(_0x315eed(0x41a))](this[_0x315eed(0x26b)])['id'],!0x0);})));let _0x67ac1d=!0x1;return this['disposeWithMe'](this[_0x1eaa23(0x2ec)][_0x1eaa23(0x321)][_0x1eaa23(0x4df)](_0x3333bf=>{const _0x2ff3b2=_0x1eaa23;_0x3333bf===j[_0x2ff3b2(0x156)]?this[_0x2ff3b2(0x3e4)](_0x67ac1d):_0x3333bf===j[_0x2ff3b2(0x291)]&&(_0x67ac1d=!0x0,this[_0x2ff3b2(0x4c1)]());})),this[_0x1eaa23(0x14d)](this['session'][_0x1eaa23(0x251)][_0x1eaa23(0x4df)](_0x23edcc=>{const _0x5f3e26=_0x1eaa23;try{switch(_0x23edcc[_0x5f3e26(0x510)]){case _[_0x5f3e26(0x2a7)]['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_[_0x5f3e26(0x249)](_0x23edcc['data']));break;}case _[_0x5f3e26(0x2a7)]['CHANGESET_ACK']:{this['_onRemoteACK'](_0x23edcc[_0x5f3e26(0x48a)]);break;}case _[_0x5f3e26(0x2a7)][_0x5f3e26(0x3be)]:{this[_0x5f3e26(0x480)]();break;}case _[_0x5f3e26(0x2a7)][_0x5f3e26(0x177)]:{this[_0x5f3e26(0x4e5)](_0x23edcc[_0x5f3e26(0x48a)][_0x5f3e26(0x507)][_0x5f3e26(0x201)](_0x8e768e=>_[_0x5f3e26(0x249)](_0x8e768e)));break;}case _[_0x5f3e26(0x2a7)][_0x5f3e26(0x1a6)]:this[_0x5f3e26(0x480)]({'isPermissionRej':!0x0});}}catch(_0x1be396){throw console['error']('Error\x20on\x20receiving\x20event',_0x1be396),_0x1be396;}})),this[_0x1eaa23(0x3c0)];}[_0x4f35dc(0x187)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x43ddcc=_0x4f35dc;if(this[_0x43ddcc(0x15f)])throw new Error(_0x43ddcc(0x3e8));this['_transitionLocked']=!0x0;}[_0x4f35dc(0x11f)](_0x44f2aa){const _0x54e71a=_0x4f35dc;this[_0x54e71a(0x489)](),this[_0x54e71a(0x127)](this[_0x54e71a(0x3c0)][_0x54e71a(0x2b1)](_0x44f2aa)),this[_0x54e71a(0x187)]();}['_onRemoteChangeset'](_0x21fd5b){const _0x2640c2=_0x4f35dc;if(!(_0x21fd5b[_0x2640c2(0x4c7)]<=this[_0x2640c2(0x1e0)][_0x2640c2(0x1ee)](this[_0x2640c2(0x26b)]))){if(this[_0x2640c2(0x1b7)]){this['_remoteChangesetQueue'][_0x2640c2(0x268)](_0x21fd5b);return;}this[_0x2640c2(0x4c2)](_0x21fd5b);}}[_0x4f35dc(0x4c4)](){const _0x38d306=_0x4f35dc;this[_0x38d306(0x140)][_0x38d306(0x155)](_0x4f7d3d=>this[_0x38d306(0x4c2)](_0x4f7d3d)),this['_remoteChangesetQueue']=[];}[_0x4f35dc(0x4c2)](_0x3d1acc){const _0x468445=_0x4f35dc,_0x334019=this[_0x468445(0x4f7)][_0x468445(0x2d0)][_0x468445(0x4a7)](this['_compressMutationService'][_0x468445(0x2d0)][_0x468445(0x2f6)]()['COMPRESS_MUTATION_APPLY'])(_0x3d1acc[_0x468445(0x24a)],null)||_0x3d1acc[_0x468445(0x24a)],_0x5034e6={..._0x3d1acc,'mutations':_0x334019};this['_lockTransition'](),this[_0x468445(0x127)](this[_0x468445(0x3c0)][_0x468445(0x4c0)](_0x5034e6)),this[_0x468445(0x187)]();}[_0x4f35dc(0x373)](_0x4d8d92){const _0x2b54da=_0x4f35dc;this[_0x2b54da(0x489)](),this[_0x2b54da(0x127)](this[_0x2b54da(0x3c0)][_0x2b54da(0x47f)](_0x4d8d92)),this[_0x2b54da(0x187)]();}[_0x4f35dc(0x480)](_0x31b95b){const _0xcf3db7=_0x4f35dc;this[_0xcf3db7(0x489)](),this[_0xcf3db7(0x127)](this['_state']['onRemoteRej'](_0x31b95b)),this['_unlockTransition']();}[_0x4f35dc(0x4e5)](_0x7eedff){const _0x563a4d=_0x4f35dc;if(!(this[_0x563a4d(0x3c0)]instanceof $))throw new TypeError(_0x563a4d(0x31f));const _0x5191f4=_0x7eedff[_0x563a4d(0x201)](_0xfc81e9=>{const _0xb2b172=_0x563a4d,_0x104e25=this[_0xb2b172(0x4f7)]['interceptor'][_0xb2b172(0x4a7)](this[_0xb2b172(0x4f7)][_0xb2b172(0x2d0)][_0xb2b172(0x2f6)]()[_0xb2b172(0x4d1)])(_0xfc81e9['mutations'],null)||_0xfc81e9['mutations'];return{..._0xfc81e9,'mutations':_0x104e25};});this[_0x563a4d(0x489)](),this[_0x563a4d(0x127)](this[_0x563a4d(0x3c0)][_0x563a4d(0x162)](_0x5191f4)),this[_0x563a4d(0x187)]();}[_0x4f35dc(0x4c1)](){const _0x13df5b=_0x4f35dc;this['_lockTransition'](),this[_0x13df5b(0x127)](this[_0x13df5b(0x3c0)]['toggleOffline']()),this[_0x13df5b(0x187)]();}['_toggleOnline'](_0x46fdb8=!0x1){const _0x5025cd=_0x4f35dc;this[_0x5025cd(0x489)](),this['_updateState'](this[_0x5025cd(0x3c0)][_0x5025cd(0x29f)]()),this[_0x5025cd(0x187)]();const _0x2e0d64=this[_0x5025cd(0x3c0)];_0x46fdb8&&_0x2e0d64 instanceof te&&(this['_lockTransition'](),this[_0x5025cd(0x127)](_0x2e0d64[_0x5025cd(0x3fa)]()),this['_unlockTransition']());}async[_0x4f35dc(0x4f9)](){return new Promise(_0x43a81f=>{const _0x5dd37b=_0x1935;this['session'][_0x5dd37b(0x321)]['pipe'](v[_0x5dd37b(0x3b2)](0x1))[_0x5dd37b(0x4df)](async _0xd761f7=>{const _0x4f040f=_0x5dd37b;_0x43a81f(await this['_createInitialStateImpl'](_0xd761f7===j[_0x4f040f(0x156)]));});});}['_createHandler'](){const _0x7a2596=_0x4f35dc,_0x4860cf=this[_0x7a2596(0x26b)];return{'onStateChange':(_0xc3b092,_0x3ce4e6)=>{const _0x210305=_0x7a2596;if(_0xc3b092!==this['_state'])throw new Error(_0x210305(0x16a)+_0xc3b092[_0x210305(0x307)]+_0x210305(0x208)+_0x3ce4e6[_0x210305(0x307)]+_0x210305(0x343)+this[_0x210305(0x3c0)][_0x210305(0x307)]);this[_0x210305(0x127)](_0x3ce4e6);},'onSendChangeset':_0x33cd5b=>{const _0x258e48=_0x7a2596,_0x15cdfe={'eventID':_[_0x258e48(0x2a7)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x33cd5b['unitID'],'unitType':this['_type'],'changeset':_0x33cd5b,'memberID':this[_0x258e48(0x2ec)][_0x258e48(0x15a)]()}};this['session'][_0x258e48(0x2da)](_0x15cdfe,this[_0x258e48(0x26b)]);},'onMissingChangesets':({from:_0x1c3da3,to:_0xd90eca})=>{const _0xd58dfe=_0x7a2596;this[_0xd58dfe(0x289)]['debug'](_0xd58dfe(0x133),_0xd58dfe(0x3bf)+_0x1c3da3+_0xd58dfe(0x236)+_0xd90eca);const _0xa710cf={'eventID':_[_0xd58dfe(0x2a7)][_0xd58dfe(0x1ef)],'data':{'unitID':_0x4860cf,'unitType':this[_0xd58dfe(0x277)],'from':_0x1c3da3,'to':_0xd90eca}};this[_0xd58dfe(0x2ec)]['send'](_0xa710cf,this[_0xd58dfe(0x26b)]);}};}async[_0x4f35dc(0x2c7)](_0x46948e){const _0x97d1de=_0x4f35dc;var _0x1df03a,_0x16fec1;const _0xbcee9f=await this['_localCacheService'][_0x97d1de(0x47b)](this[_0x97d1de(0x26b)]),_0xe218ee=(_0x1df03a=_0xbcee9f==null?void 0x0:_0xbcee9f['mutations'])!=null?_0x1df03a:[],_0x12b35d=(_0x16fec1=_0xbcee9f==null?void 0x0:_0xbcee9f[_0x97d1de(0x222)])!=null?_0x16fec1:null,_0x57d949=this[_0x97d1de(0x26b)];try{this[_0x97d1de(0x2f0)](_0x12b35d,_0xe218ee);}catch(_0x1d1565){this[_0x97d1de(0x289)][_0x97d1de(0x22c)](_0x1d1565);}const _0x337424=this['_createHandler']();if(_0x46948e){const _0x3a3af6=Rt(this['_injector'],_0x57d949,this['_type'],_0x12b35d,_0xe218ee,_0x337424);return _0x3a3af6 instanceof x?_0x3a3af6[_0x97d1de(0x411)]():(_0x3a3af6 instanceof H||_0x3a3af6 instanceof B)&&_0x3a3af6[_0x97d1de(0x1cc)](),_0x3a3af6;}return this[_0x97d1de(0x183)][_0x97d1de(0x239)](F,_0x57d949,this['_type'],_0x12b35d,_0xe218ee,_0x337424);}[_0x4f35dc(0x2f0)](_0x557409,_0x310765){const _0x22bdd4=_0x4f35dc;var _0x9ecaa8,_0x48e96b;const _0x4f973a=this[_0x22bdd4(0x4f7)]['interceptor'][_0x22bdd4(0x4a7)](this[_0x22bdd4(0x4f7)][_0x22bdd4(0x2d0)]['getInterceptPoints']()[_0x22bdd4(0x4d1)]);(_0x9ecaa8=_0x4f973a((_0x557409==null?void 0x0:_0x557409['mutations'])||[],null))==null||_0x9ecaa8['forEach'](_0x56a1bf=>this[_0x22bdd4(0x1eb)][_0x22bdd4(0x3dc)](_0x56a1bf['id'],_0x56a1bf[_0x22bdd4(0x1e1)])),(_0x48e96b=_0x4f973a(_0x310765||[],null))==null||_0x48e96b[_0x22bdd4(0x155)](_0x27879f=>this[_0x22bdd4(0x1eb)][_0x22bdd4(0x3dc)](_0x27879f['id'],_0x27879f['params']));}},exports[_0x4f35dc(0x2df)]=We([p(0x3,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),p(0x4,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),p(0x5,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x330)])),p(0x6,a[_0x4f35dc(0x1ac)](a['LocaleService'])),p(0x7,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x4b2)])),p(0x8,a[_0x4f35dc(0x428)]),p(0x9,a[_0x4f35dc(0x3ed)]),p(0xa,M['IMessageService']),p(0xb,a['IPermissionService']),p(0xc,a['Optional'](Ce))],exports[_0x4f35dc(0x2df)]),exports[_0x4f35dc(0x39e)]=class extends exports[_0x4f35dc(0x2df)]{constructor(_0x27c529,_0x4cdf8f,_0x3fa22c,_0x35449e,_0x2f35f4,_0x16b262,_0xd47e55,_0x473305,_0x3b24df,_0x26dcc1,_0x47da5b,_0xde5c93,_0x25a65e,_0x578c32,_0x4de832,_0x4fe8a3,_0x42fa16){const _0x133c6e=_0x4f35dc;super(_0x27c529,_0x3fa22c,_0x4cdf8f,_0x35449e,_0x2f35f4,_0x16b262,_0xd47e55,_0x473305,_0x25a65e,_0x578c32,_0x4de832,_0x4fe8a3,_0x42fa16),this[_0x133c6e(0x26b)]=_0x27c529,this['type']=_0x4cdf8f,this[_0x133c6e(0x25a)]=_0x3b24df,this[_0x133c6e(0x315)]=_0x26dcc1,this[_0x133c6e(0x405)]=_0x47da5b,this[_0x133c6e(0x3b4)]=_0xde5c93;}[_0x4f35dc(0x1a3)](){const _0x488a6e=_0x4f35dc,_0x5f1c28=super[_0x488a6e(0x1a3)]();return _0x5f1c28[_0x488a6e(0x2fb)]=_0x17d86f=>this[_0x488a6e(0x315)][_0x488a6e(0x316)](_0x17d86f),_0x5f1c28[_0x488a6e(0x50f)]=_0x1a7c7b=>this[_0x488a6e(0x405)][_0x488a6e(0x153)](_0x1a7c7b),_0x5f1c28['onSyncEditingCollabCursor']=_0x476135=>this[_0x488a6e(0x3b4)][_0x488a6e(0x11e)](_0x476135),_0x5f1c28[_0x488a6e(0x50a)]=_0x4262e0=>this['_docTransformIMECacheService'][_0x488a6e(0x425)](_0x4262e0),_0x5f1c28;}async['_init'](){const _0x274a6d=_0x4f35dc,_0x413507=await super[_0x274a6d(0x18b)]();return this[_0x274a6d(0x14d)](this[_0x274a6d(0x1eb)][_0x274a6d(0x361)]((_0x10e00b,_0x17869b)=>{const _0x47680f=_0x274a6d;if(_0x10e00b[_0x47680f(0x419)]!==a[_0x47680f(0x48c)][_0x47680f(0x213)]||_0x17869b!=null&&_0x17869b[_0x47680f(0x362)]||_0x17869b!=null&&_0x17869b[_0x47680f(0x408)])return;const _0x2f6430=_0x10e00b[_0x47680f(0x1e1)];if((_0x2f6430==null?void 0x0:_0x2f6430[_0x47680f(0x284)])!==this[_0x47680f(0x26b)])return;let _0x3f7ba0=_0x10e00b;if(_0x3f7ba0['id']===w[_0x47680f(0x4a4)]['id']){const _0xaa31e=_0x3f7ba0[_0x47680f(0x1e1)];_0x3f7ba0={'id':w['RichTextEditingMutation']['id'],'type':a['CommandType'][_0x47680f(0x213)],'params':{'unitId':_0xaa31e[_0x47680f(0x284)],'actions':_0xaa31e['actions'],'textRanges':null}};}const _0x5be78a=this[_0x47680f(0x4f7)][_0x47680f(0x2d0)][_0x47680f(0x4a7)](this[_0x47680f(0x4f7)][_0x47680f(0x2d0)][_0x47680f(0x2f6)]()[_0x47680f(0x457)])([_0x3f7ba0],null)||[_0x3f7ba0];this['_onLocalMutation'](_0x5be78a[0x0]);})),_0x413507;}},exports[_0x4f35dc(0x39e)]=We([p(0x3,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),p(0x4,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),p(0x5,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x330)])),p(0x6,a[_0x4f35dc(0x1ac)](a['LocaleService'])),p(0x7,a['Inject'](_[_0x4f35dc(0x4b2)])),p(0x8,a['Inject'](w[_0x4f35dc(0x49a)])),p(0x9,a['Inject'](fe)),p(0xa,a[_0x4f35dc(0x1ac)](Ie)),p(0xb,a[_0x4f35dc(0x1ac)](Fe)),p(0xc,a[_0x4f35dc(0x428)]),p(0xd,a[_0x4f35dc(0x3ed)]),p(0xe,M['IMessageService']),p(0xf,a['IPermissionService']),p(0x10,a[_0x4f35dc(0x445)](Ce))],exports['DocCollaborationEntity']),exports[_0x4f35dc(0x3aa)]=class extends exports['CollaborationEntity']{constructor(_0x167213,_0x2430f0,_0x143ad5,_0x43715f,_0x5b17a8,_0x55ee7b,_0x2cc590,_0x5d0f19,_0x404a2c,_0x1214d4,_0x4f7364,_0x5cbe23,_0x16bab3,_0x2c2425){const _0x9a0155=_0x4f35dc;super(_0x167213,_0x143ad5,_0x2430f0,_0x43715f,_0x5b17a8,_0x55ee7b,_0x2cc590,_0x5d0f19,_0x1214d4,_0x4f7364,_0x5cbe23,_0x16bab3,_0x2c2425),this['unitID']=_0x167213,this[_0x9a0155(0x419)]=_0x2430f0,this[_0x9a0155(0x160)]=_0x404a2c;}[_0x4f35dc(0x1a3)](){const _0x2e54f9=_0x4f35dc,_0x401142=super['_createHandler']();return _0x401142[_0x2e54f9(0x50f)]=_0x596367=>this[_0x2e54f9(0x160)][_0x2e54f9(0x153)](_0x596367),_0x401142;}async[_0x4f35dc(0x18b)](){const _0x413b22=_0x4f35dc,_0x5501d7=await super[_0x413b22(0x18b)]();return this['disposeWithMe'](this[_0x413b22(0x1eb)][_0x413b22(0x361)]((_0x449582,_0x5cf726)=>{const _0x35033f=_0x413b22;if(_0x449582[_0x35033f(0x419)]!==a[_0x35033f(0x48c)][_0x35033f(0x213)]||_0x5cf726!=null&&_0x5cf726[_0x35033f(0x362)]||_0x5cf726!=null&&_0x5cf726[_0x35033f(0x408)])return;const _0x342e02=_0x449582['params'];if((_0x342e02==null?void 0x0:_0x342e02[_0x35033f(0x284)])!==this[_0x35033f(0x26b)])return;const _0x78bbb8=_0x449582,_0x2e4b2d=this[_0x35033f(0x4f7)][_0x35033f(0x2d0)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x35033f(0x2d0)]['getInterceptPoints']()[_0x35033f(0x457)])([_0x78bbb8],null)||[_0x78bbb8];this[_0x35033f(0x11f)](_0x2e4b2d[0x0]);})),_0x5501d7;}},exports[_0x4f35dc(0x3aa)]=We([p(0x3,a['Inject'](a['Injector'])),p(0x4,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x29a)])),p(0x5,a[_0x4f35dc(0x1ac)](_['CompressMutationService'])),p(0x6,a[_0x4f35dc(0x1ac)](a['LocaleService'])),p(0x7,a['Inject'](_['RevisionService'])),p(0x8,a['Inject'](ge)),p(0x9,a['ILogService']),p(0xa,a['ICommandService']),p(0xb,M[_0x4f35dc(0x1dc)]),p(0xc,a[_0x4f35dc(0x415)]),p(0xd,a[_0x4f35dc(0x445)](Ce))],exports['SheetCollaborationEntity']);var $s=Object[_0x4f35dc(0x305)],xs=Object[_0x4f35dc(0x21c)],Hs=(_0x2ca0ab,_0x5f4c49,_0x176768,_0x183eb2)=>{for(var _0x18d090=_0x183eb2>0x1?void 0x0:_0x183eb2?xs(_0x5f4c49,_0x176768):_0x5f4c49,_0x1dc1e0=_0x2ca0ab['length']-0x1,_0x17c34f;_0x1dc1e0>=0x0;_0x1dc1e0--)(_0x17c34f=_0x2ca0ab[_0x1dc1e0])&&(_0x18d090=(_0x183eb2?_0x17c34f(_0x5f4c49,_0x176768,_0x18d090):_0x17c34f(_0x18d090))||_0x18d090);return _0x183eb2&&_0x18d090&&$s(_0x5f4c49,_0x176768,_0x18d090),_0x18d090;},Oe=(_0x582b92,_0x4ca1c5)=>(_0x2a0670,_0x35ca9b)=>_0x4ca1c5(_0x2a0670,_0x35ca9b,_0x582b92);exports['CollaborationController']=class extends a[_0x4f35dc(0x1fe)]{constructor(_0xf11f35,_0x5da3cf,_0xdd8f82){const _0x21c89b=_0x4f35dc;super(),d(this,'_entities',new Map()),d(this,_0x21c89b(0x26c),new v[(_0x21c89b(0x4eb))]()),(this[_0x21c89b(0x183)]=_0xf11f35,this[_0x21c89b(0x355)]=_0x5da3cf,this[_0x21c89b(0x16d)]=_0xdd8f82,this[_0x21c89b(0x18b)]());}[_0x4f35dc(0x3cc)](){const _0x8f1b17=_0x4f35dc;super[_0x8f1b17(0x3cc)](),this['_entities']['forEach'](_0x4b6ca5=>_0x4b6ca5[_0x8f1b17(0x3cc)]()),this[_0x8f1b17(0x164)][_0x8f1b17(0x19f)]();}[_0x4f35dc(0x135)](_0xcab59){const _0x134dee=_0x4f35dc;var _0x2d604c;return(_0x2d604c=this[_0x134dee(0x164)][_0x134dee(0x20a)](_0xcab59))!=null?_0x2d604c:null;}[_0x4f35dc(0x248)](_0x2aa768){const _0x463d6a=_0x4f35dc,_0x37cea3=this['getCollabEntity'](_0x2aa768);return _0x37cea3?v['of'](_0x37cea3):this[_0x463d6a(0x26c)][_0x463d6a(0x49c)](E[_0x463d6a(0x404)](_0x2608e9=>_0x2608e9['unitID']===_0x2aa768));}[_0x4f35dc(0x18b)](){const _0xfc7671=_0x4f35dc;this[_0xfc7671(0x16d)][_0xfc7671(0x283)](a[_0xfc7671(0x1f9)][_0xfc7671(0x396)])[_0xfc7671(0x49c)](v['takeUntil'](this[_0xfc7671(0x364)]),E[_0xfc7671(0x4d9)](0x10))[_0xfc7671(0x4df)](async _0x5b7f16=>{const _0x293f26=_0xfc7671,_0x3d1ed4=_0x5b7f16[_0x293f26(0x402)](),_0x4c8f72=await this[_0x293f26(0x260)](_0x3d1ed4,A['UNIVER_SHEET']);this[_0x293f26(0x164)]['set'](_0x3d1ed4,_0x4c8f72);}),this[_0xfc7671(0x16d)]['getTypeOfUnitAdded$'](a[_0xfc7671(0x1f9)]['UNIVER_DOC'])[_0xfc7671(0x49c)](v[_0xfc7671(0x39c)](this[_0xfc7671(0x364)]),E[_0xfc7671(0x4d9)](0x10))[_0xfc7671(0x49c)](E['filter'](_0x2b32b0=>!_0x2b32b0[_0xfc7671(0x402)]()[_0xfc7671(0x40c)]('__')))['subscribe'](async _0x5cac9d=>{const _0x432a3f=_0xfc7671,_0x4dcb11=_0x5cac9d['getUnitId'](),_0x4ea67d=await this['_startCollaboration'](_0x4dcb11,A[_0x432a3f(0x4fb)]);this[_0x432a3f(0x164)][_0x432a3f(0x4fa)](_0x4dcb11,_0x4ea67d);}),v[_0xfc7671(0x2b0)](this[_0xfc7671(0x16d)][_0xfc7671(0x274)](a[_0xfc7671(0x1f9)][_0xfc7671(0x396)]),this[_0xfc7671(0x16d)][_0xfc7671(0x274)](a[_0xfc7671(0x1f9)][_0xfc7671(0x4fb)]))['pipe'](v[_0xfc7671(0x39c)](this['dispose$']))[_0xfc7671(0x4df)](_0x555369=>{const _0x734f36=_0xfc7671,_0xf4d555=_0x555369[_0x734f36(0x402)](),_0x2d83ec=this[_0x734f36(0x164)][_0x734f36(0x20a)](_0xf4d555);_0x2d83ec&&(_0x2d83ec['dispose'](),this['_entities'][_0x734f36(0x424)](_0xf4d555));});}async['_startCollaboration'](_0x2b7d6a,_0x43a7b8){const _0x1f768b=_0x4f35dc,_0x10d8ad=await this['_collabSessionService']['requireSession'](_0x2b7d6a),_0x12d4b8=this[_0x1f768b(0x183)][_0x1f768b(0x239)](this[_0x1f768b(0x271)](_0x43a7b8),_0x2b7d6a,_0x43a7b8,_0x10d8ad);return await _0x12d4b8[_0x1f768b(0x219)](),this[_0x1f768b(0x26c)][_0x1f768b(0x245)](_0x12d4b8),_0x12d4b8;}[_0x4f35dc(0x271)](_0x49652d){const _0x5ade18=_0x4f35dc;switch(_0x49652d){case A[_0x5ade18(0x4fb)]:return exports['DocCollaborationEntity'];case A[_0x5ade18(0x396)]:return exports[_0x5ade18(0x3aa)];default:throw new Error(_0x5ade18(0x3df)+_0x49652d);}}},exports[_0x4f35dc(0x3a3)]=Hs([Oe(0x0,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),Oe(0x1,a[_0x4f35dc(0x1ac)](exports['CollaborationSessionService'])),Oe(0x2,a[_0x4f35dc(0x2e8)])],exports['CollaborationController']);const st=[_0x4f35dc(0x3e3),_0x4f35dc(0x1ec),_0x4f35dc(0x36e),_0x4f35dc(0x22b),_0x4f35dc(0x3ff),_0x4f35dc(0x276)];class Ge extends a[_0x4f35dc(0x188)]{constructor(){const _0x74caf=_0x4f35dc;super(...arguments),d(this,_0x74caf(0x51b),new Map()),d(this,'_colorIndex',0x0);}[_0x4f35dc(0x4bd)](_0x4ae02f){const _0x29f294=_0x4f35dc;if(this[_0x29f294(0x51b)][_0x29f294(0x34a)](_0x4ae02f))return this[_0x29f294(0x51b)][_0x29f294(0x20a)](_0x4ae02f);const _0xaebdb7=st[this[_0x29f294(0x387)]];return this[_0x29f294(0x387)]=(this[_0x29f294(0x387)]+0x1)%st[_0x29f294(0x3a9)],this['_assignedColors'][_0x29f294(0x4fa)](_0x4ae02f,_0xaebdb7),_0xaebdb7;}}var ks=Object['defineProperty'],Bs=Object[_0x4f35dc(0x21c)],Vs=(_0x10d04f,_0x57703a,_0x321f2c,_0x38bc6f)=>{const _0x228130=_0x4f35dc;for(var _0x5212e2=_0x38bc6f>0x1?void 0x0:_0x38bc6f?Bs(_0x57703a,_0x321f2c):_0x57703a,_0x130113=_0x10d04f[_0x228130(0x3a9)]-0x1,_0xbd58;_0x130113>=0x0;_0x130113--)(_0xbd58=_0x10d04f[_0x130113])&&(_0x5212e2=(_0x38bc6f?_0xbd58(_0x57703a,_0x321f2c,_0x5212e2):_0xbd58(_0x5212e2))||_0x5212e2);return _0x38bc6f&&_0x5212e2&&ks(_0x57703a,_0x321f2c,_0x5212e2),_0x5212e2;},J=(_0x144657,_0x5acf54)=>(_0x15888a,_0x5f5bd9)=>_0x5acf54(_0x15888a,_0x5f5bd9,_0x144657);const Fs=0x12c,Ws=0x64,Gs=()=>{let _0x973d67=[],_0x209294=!0x1;return _0xe4b084=>{const _0x1713be=_0x1935;_0x973d67[_0x1713be(0x268)](_0xe4b084),_0x209294||(_0x209294=!0x0,setTimeout(()=>{_0x973d67['forEach'](_0x59bed5=>_0x59bed5()),_0x973d67=[],_0x209294=!0x1;}));};};let Le=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x5d2479,_0x237c82,_0x5b2f9c,_0x33abb6,_0x5de05c,_0x34f024,_0x254333,_0x39bfee){const _0x16968c=_0x4f35dc;super(),d(this,_0x16968c(0x1d4),!0x1),d(this,'_init',!0x1),d(this,_0x16968c(0x46d),new v[(_0x16968c(0x36c))](new Map())),d(this,_0x16968c(0x443),this[_0x16968c(0x46d)]['asObservable']()),d(this,_0x16968c(0x123),new v[(_0x16968c(0x36c))]([])),d(this,_0x16968c(0x42d),this[_0x16968c(0x123)][_0x16968c(0x49c)](v[_0x16968c(0x317)](Fs))),d(this,_0x16968c(0x47d),xe((_0x4c7a18,_0x47fb63)=>{const _0x5a6326=_0x16968c,_0x266cc0={'eventID':_['CollaborationEvent'][_0x5a6326(0x491)],'data':{'unitID':this[_0x5a6326(0x26b)],'memberID':this['_session']['getMemberID'](),'selection':Xe['serializeRangeWithSheet'](_0x4c7a18,_0x47fb63[_0x5a6326(0x4ff)])}};this[_0x5a6326(0x254)][_0x5a6326(0x2da)](_0x266cc0,this['unitID']);},Ws)),(this[_0x16968c(0x26b)]=_0x5d2479,this[_0x16968c(0x254)]=_0x237c82,this['_injector']=_0x5b2f9c,this['_colorAssignService']=_0x33abb6,this[_0x16968c(0x32a)]=_0x5de05c,this[_0x16968c(0x16d)]=_0x34f024,this['_commandService']=_0x254333,this[_0x16968c(0x196)]=_0x39bfee);}get[_0x4f35dc(0x45e)](){const _0x1fe899=_0x4f35dc;return this['_cursorInfo$'][_0x1fe899(0x181)]();}get['roomMembers'](){const _0x2d4185=_0x4f35dc;return this[_0x2d4185(0x123)][_0x2d4185(0x181)]();}[_0x4f35dc(0x3cc)](){const _0x29dac0=_0x4f35dc;super[_0x29dac0(0x3cc)](),this['_cursorInfo$'][_0x29dac0(0x245)](new Map()),this[_0x29dac0(0x46d)][_0x29dac0(0x331)](),this[_0x29dac0(0x123)][_0x29dac0(0x245)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x9ff60e=_0x4f35dc;this[_0x9ff60e(0x18b)]||(this[_0x9ff60e(0x18b)]=!0x0,this[_0x9ff60e(0x254)]['sessionStatus$']['pipe'](v[_0x9ff60e(0x39c)](this[_0x9ff60e(0x364)]))[_0x9ff60e(0x4df)](_0xae5491=>{const _0x3df02a=_0x9ff60e;_0xae5491===j['ONLINE']?this[_0x3df02a(0x3e4)]():this[_0x3df02a(0x4c1)]();}),this['_session']['event$'][_0x9ff60e(0x49c)](v[_0x9ff60e(0x39c)](this[_0x9ff60e(0x364)]))[_0x9ff60e(0x4df)](_0x3821a0=>{const _0x31362d=_0x9ff60e,_0x19ea7a=_0x3821a0[_0x31362d(0x510)];_0x19ea7a===_[_0x31362d(0x2a7)][_0x31362d(0x491)]&&this['_onCursorUpdate'](_0x3821a0),_0x19ea7a===_[_0x31362d(0x2a7)]['USERS_LEAVE']&&this[_0x31362d(0x500)](_0x3821a0);}),this[_0x9ff60e(0x28f)](),this[_0x9ff60e(0x14d)](this[_0x9ff60e(0x1eb)][_0x9ff60e(0x361)](_0x113fe4=>{const _0x3b411d=_0x9ff60e;if(this[_0x3b411d(0x1d4)]&&_0x113fe4['id']===C[_0x3b411d(0x479)]['id']&&_0x113fe4[_0x3b411d(0x1e1)]['unitId']===this[_0x3b411d(0x26b)]){const _0x5379e0=_0x113fe4[_0x3b411d(0x1e1)];this[_0x3b411d(0x47d)](_0x5379e0['subUnitId'],_0x5379e0['selections'][0x0]);}})));}[_0x4f35dc(0x129)](_0x1fc37b){const _0x4210c7=_0x4f35dc;var _0x5a6bcb,_0x57c06c;const {memberID:_0x6057d6,selection:_0x368077}=_0x1fc37b[_0x4210c7(0x48a)],{sheetName:_0xe40198,range:_0x53fc45}=Xe[_0x4210c7(0x427)](_0x368077),_0x38d383={'name':(_0x57c06c=(_0x5a6bcb=this[_0x4210c7(0x32a)][_0x4210c7(0x25e)](this[_0x4210c7(0x26b)],_0x6057d6))==null?void 0x0:_0x5a6bcb[_0x4210c7(0x3bc)])!=null?_0x57c06c:_0x4210c7(0x36d),'range':this['_getMergeRange'](_0xe40198,_0x53fc45),'sheetID':_0xe40198,'color':this[_0x4210c7(0x3af)][_0x4210c7(0x4bd)](_0x6057d6),'selection':_0x368077},_0x1eefc2=this[_0x4210c7(0x45e)];_0x1eefc2[_0x4210c7(0x4fa)](_0x6057d6,_0x38d383),this[_0x4210c7(0x46d)][_0x4210c7(0x245)](_0x1eefc2);}[_0x4f35dc(0x500)](_0x3eb8a7){const _0xabc806=_0x4f35dc,{memberID:_0x24620a}=_0x3eb8a7[_0xabc806(0x48a)],_0x1faa5c=this['cursorInfo'];_0x1faa5c['delete'](_0x24620a),this[_0xabc806(0x46d)][_0xabc806(0x245)](_0x1faa5c);}[_0x4f35dc(0x302)](_0x34245f,_0x3c2bf7){const _0x19388e=_0x4f35dc;var _0x13d167,_0x2da526;const _0x4406f4=(_0x2da526=(_0x13d167=this['_univerInstanceService'][_0x19388e(0x18c)](this[_0x19388e(0x26b)]))==null?void 0x0:_0x13d167[_0x19388e(0x299)](_0x34245f))==null?void 0x0:_0x2da526[_0x19388e(0x2d6)]();return(_0x4406f4==null?void 0x0:_0x4406f4[_0x19388e(0x20f)](_0xbbb986=>a[_0x19388e(0x437)]['contains'](_0xbbb986,_0x3c2bf7)))||_0x3c2bf7;}[_0x4f35dc(0x28f)](){const _0x3c1f90=_0x4f35dc,_0x45bf24=new a[(_0x3c1f90(0x30d))](),_0x55e7af=Gs(),_0x50afd8=()=>{const _0x41735d=_0x3c1f90;_0x45bf24[_0x41735d(0x3cc)]();const _0x4f9651=(_0x5675ba,_0x5723b7,_0x554ad1,_0x3f3d25)=>{const _0x3e104f=_0x41735d;let _0xd93a0a=[];switch(_0x5675ba['id']){case C[_0x3e104f(0x238)]['DeleteRangeMoveLeftCommandId']:{_0xd93a0a=C[_0x3e104f(0x4f3)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x41b)]:{_0xd93a0a=C[_0x3e104f(0x1a0)](_0x5675ba,_0x3f3d25);break;}case C['EffectRefRangId'][_0x3e104f(0x44a)]:{_0xd93a0a=C[_0x3e104f(0x461)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x300)]:{_0xd93a0a=C[_0x3e104f(0x294)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x228)]:{_0xd93a0a=C[_0x3e104f(0x395)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x287)]:{_0xd93a0a=C[_0x3e104f(0x259)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x40b)]:{_0xd93a0a=C[_0x3e104f(0x2b6)](_0x5675ba,_0x3f3d25);break;}case C[_0x3e104f(0x238)][_0x3e104f(0x4ef)]:{_0xd93a0a=C[_0x3e104f(0x38e)](_0x5675ba,_0x3f3d25);break;}case C['EffectRefRangId'][_0x3e104f(0x3f7)]:{_0xd93a0a=C[_0x3e104f(0x185)](_0x5675ba,_0x3f3d25);break;}}const _0x1546e5=C[_0x3e104f(0x1a8)](_0xd93a0a,_0x3f3d25),_0x645a80=this['cursorInfo'][_0x3e104f(0x20a)](_0x5723b7);if(_0x645a80&&_0x1546e5){const _0x807490={..._0x645a80,'range':_0x1546e5};this[_0x3e104f(0x45e)][_0x3e104f(0x4fa)](_0x5723b7,_0x807490),_0x55e7af(()=>{const _0x1d6f7b=_0x3e104f,_0x5acec8=this['_refRangeService'][_0x1d6f7b(0x3ea)](_0x1546e5,_0x44f0f0=>(_0x5acec8[_0x1d6f7b(0x3cc)](),_0x4f9651(_0x44f0f0,_0x5723b7,_0x554ad1,_0x1546e5)));_0x45bf24['add'](_0x5acec8);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x503f8e,_0x26ff48)=>{const _0xe588f7=_0x41735d,{range:_0x2cd917,sheetID:_0x51f90e}=_0x503f8e,_0x1f921e=this['_refRangeService'][_0xe588f7(0x3ea)](_0x2cd917,_0x173c6b=>(_0x1f921e[_0xe588f7(0x3cc)](),_0x4f9651(_0x173c6b,_0x26ff48,_0x51f90e,_0x2cd917)));_0x45bf24[_0xe588f7(0x3e5)](_0x1f921e);});};this[_0x3c1f90(0x14d)](a[_0x3c1f90(0x456)](this[_0x3c1f90(0x46d)][_0x3c1f90(0x4df)](()=>{_0x50afd8();})));}['_toggleOnline'](){const _0x37a5a4=_0x4f35dc;var _0x10adb9,_0x37a4f3;if(this['_online']=!0x0,((_0x10adb9=this['_univerInstanceService'][_0x37a5a4(0x42e)]())==null?void 0x0:_0x10adb9['getUnitId']())!==this[_0x37a5a4(0x26b)])return;const _0x17ef2c=(_0x37a4f3=this[_0x37a5a4(0x183)][_0x37a5a4(0x20a)](C[_0x37a5a4(0x49e)])[_0x37a5a4(0x1e4)]())==null?void 0x0:_0x37a4f3[0x0],_0xa56922=this['_univerInstanceService'][_0x37a5a4(0x26a)](a[_0x37a5a4(0x1f9)][_0x37a5a4(0x396)])[_0x37a5a4(0x23e)]();_0x17ef2c&&_0xa56922&&this[_0x37a5a4(0x47d)](_0xa56922[_0x37a5a4(0x27c)](),_0x17ef2c);}[_0x4f35dc(0x4c1)](){const _0x592e11=_0x4f35dc;this[_0x592e11(0x1d4)]=!0x1;}};Le=Vs([J(0x2,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),J(0x3,a[_0x4f35dc(0x1ac)](Ge)),J(0x4,a[_0x4f35dc(0x1ac)](K)),J(0x5,a[_0x4f35dc(0x2e8)]),J(0x6,a[_0x4f35dc(0x3ed)]),J(0x7,a[_0x4f35dc(0x1ac)](C['RefRangeService']))],Le);var Ys=Object[_0x4f35dc(0x305)],Ks=Object[_0x4f35dc(0x21c)],Xs=(_0x5368e0,_0x4aae54,_0x11dc00,_0x27a50c)=>{const _0x6ee7d7=_0x4f35dc;for(var _0x94743b=_0x27a50c>0x1?void 0x0:_0x27a50c?Ks(_0x4aae54,_0x11dc00):_0x4aae54,_0x5c9a01=_0x5368e0[_0x6ee7d7(0x3a9)]-0x1,_0x390f01;_0x5c9a01>=0x0;_0x5c9a01--)(_0x390f01=_0x5368e0[_0x5c9a01])&&(_0x94743b=(_0x27a50c?_0x390f01(_0x4aae54,_0x11dc00,_0x94743b):_0x390f01(_0x94743b))||_0x94743b);return _0x27a50c&&_0x94743b&&Ys(_0x4aae54,_0x11dc00,_0x94743b),_0x94743b;},G=(_0x33955b,_0xc6a87a)=>(_0x13cc1d,_0x342f90)=>_0xc6a87a(_0x13cc1d,_0x342f90,_0x33955b);const qs=0x12c,zs=0x64;let Ae=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x4029c8,_0x1da150,_0x260d60,_0x3d8181,_0x5cf819,_0x2322fc,_0x33e1d8,_0x4df1a7,_0x1f7f8f){const _0x205870=_0x4f35dc;super(),d(this,'_online',!0x1),d(this,_0x205870(0x18b),!0x1),d(this,'_cursorInfo$',new v[(_0x205870(0x36c))](new Map())),d(this,_0x205870(0x443),this[_0x205870(0x46d)][_0x205870(0x366)]()),d(this,_0x205870(0x123),new v['BehaviorSubject']([])),d(this,'roomMembers$',this[_0x205870(0x123)][_0x205870(0x49c)](v['debounceTime'](qs))),d(this,_0x205870(0x47d),xe(_0x33faac=>{const _0x23a33a=_0x205870,_0x1f0580={'eventID':_[_0x23a33a(0x2a7)][_0x23a33a(0x491)],'data':{'unitID':this[_0x23a33a(0x26b)],'memberID':this['_session'][_0x23a33a(0x15a)](),'selection':Tt(_0x33faac)}};this[_0x23a33a(0x254)][_0x23a33a(0x2da)](_0x1f0580,this[_0x23a33a(0x26b)]);},zs)),(this[_0x205870(0x26b)]=_0x4029c8,this[_0x205870(0x254)]=_0x1da150,this[_0x205870(0x183)]=_0x260d60,this[_0x205870(0x3af)]=_0x3d8181,this[_0x205870(0x32a)]=_0x5cf819,this[_0x205870(0x325)]=_0x2322fc,this['_transformService']=_0x33e1d8,this['_univerInstanceService']=_0x4df1a7,this[_0x205870(0x1eb)]=_0x1f7f8f);}get[_0x4f35dc(0x45e)](){const _0x3a6d61=_0x4f35dc;return this[_0x3a6d61(0x46d)][_0x3a6d61(0x181)]();}get[_0x4f35dc(0x3a8)](){const _0x2e2c71=_0x4f35dc;return this[_0x2e2c71(0x123)][_0x2e2c71(0x181)]();}[_0x4f35dc(0x3cc)](){const _0x23abdd=_0x4f35dc;super[_0x23abdd(0x3cc)](),this['_cursorInfo$'][_0x23abdd(0x245)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x23abdd(0x245)]([]),this[_0x23abdd(0x123)]['complete']();}[_0x4f35dc(0x219)](){const _0x3c78da=_0x4f35dc;this[_0x3c78da(0x18b)]||(this[_0x3c78da(0x18b)]=!0x0,this[_0x3c78da(0x254)]['sessionStatus$'][_0x3c78da(0x49c)](v[_0x3c78da(0x39c)](this[_0x3c78da(0x364)]))[_0x3c78da(0x4df)](_0x38dd12=>{const _0x21fcb2=_0x3c78da;_0x38dd12===j[_0x21fcb2(0x156)]?this[_0x21fcb2(0x3e4)]():this[_0x21fcb2(0x4c1)]();}),this[_0x3c78da(0x254)]['event$'][_0x3c78da(0x49c)](v[_0x3c78da(0x39c)](this[_0x3c78da(0x364)]))[_0x3c78da(0x4df)](_0x89d5b=>{const _0x63cf4=_0x3c78da,_0xee7608=_0x89d5b[_0x63cf4(0x510)];_0xee7608===_[_0x63cf4(0x2a7)][_0x63cf4(0x491)]&&this[_0x63cf4(0x129)](_0x89d5b),_0xee7608===_[_0x63cf4(0x2a7)][_0x63cf4(0x230)]&&this[_0x63cf4(0x500)](_0x89d5b);}),this[_0x3c78da(0x14d)](this[_0x3c78da(0x1eb)][_0x3c78da(0x361)](_0x1b6a93=>{const _0x1281a0=_0x3c78da,_0x1fda4d=_0x1b6a93[_0x1281a0(0x1e1)];_0x1fda4d!=null&&this[_0x1281a0(0x1d4)]&&_0x1b6a93['id']===w[_0x1281a0(0x50e)]['id']&&_0x1fda4d[_0x1281a0(0x284)]===this[_0x1281a0(0x26b)]&&_0x1fda4d[_0x1281a0(0x516)]===!0x1&&this[_0x1281a0(0x47d)](_0x1fda4d['ranges']);})),this[_0x3c78da(0x325)][_0x3c78da(0x33e)][_0x3c78da(0x49c)](v['takeUntil'](this[_0x3c78da(0x364)]))['subscribe'](_0x2bd7a0=>{const _0x3e2d3f=_0x3c78da;if((_0x2bd7a0==null?void 0x0:_0x2bd7a0[_0x3e2d3f(0x26b)])!==this['unitID'])return;const _0x590c77={'eventID':_['CollaborationEvent'][_0x3e2d3f(0x491)],'data':_0x2bd7a0};this[_0x3e2d3f(0x129)](_0x590c77);}),this[_0x3c78da(0x14d)](this[_0x3c78da(0x1eb)][_0x3c78da(0x361)](_0x3750ee=>{const _0x676892=_0x3c78da;if(_0x3750ee['params']==null)return;const _0x41f014=_0x3750ee[_0x676892(0x1e1)];if(_0x3750ee['id']!==w[_0x676892(0x4a4)]['id']||_0x41f014[_0x676892(0x284)]!==this[_0x676892(0x26b)])return;const _0x6a8fcb={'id':_0x676892(0x38b),'params':_0x41f014},_0x5d90d7=this[_0x676892(0x45e)];for(const [_0x50abbd,_0x5c5068]of _0x5d90d7){const _0x8217ab={'id':_0x676892(0x38b),'params':{'unitId':this[_0x676892(0x26b)],'actions':null,'textRanges':_0x5c5068['ranges']}},_0x324b4d=this[_0x676892(0x2c0)][_0x676892(0x1cd)](_0x6a8fcb,_0x8217ab,!0x1);if(_[_0x676892(0x4d3)](_0x324b4d))throw _0x324b4d[_0x676892(0x22c)];_0x5d90d7['set'](_0x50abbd,{..._0x5c5068,'ranges':_0x324b4d[_0x676892(0x3c7)][_0x676892(0x1e1)]['textRanges']});}queueMicrotask(()=>{const _0x3326ef=_0x676892;this[_0x3326ef(0x46d)][_0x3326ef(0x245)](_0x5d90d7);});})));}[_0x4f35dc(0x129)](_0x2baa5b){const _0x20d8c3=_0x4f35dc;var _0x2ec6ce,_0x1ed8ab;const {memberID:_0x189fcb,selection:_0x447481}=_0x2baa5b[_0x20d8c3(0x48a)],_0xded4da=Os(_0x447481),_0x5829ff=(_0x1ed8ab=(_0x2ec6ce=this[_0x20d8c3(0x32a)][_0x20d8c3(0x25e)](this[_0x20d8c3(0x26b)],_0x189fcb))==null?void 0x0:_0x2ec6ce[_0x20d8c3(0x3bc)])!=null?_0x1ed8ab:_0x20d8c3(0x36d),_0x5d52b0={'color':this[_0x20d8c3(0x3af)][_0x20d8c3(0x4bd)](_0x189fcb),'name':_0x5829ff,'ranges':_0xded4da},_0x2b2458=this[_0x20d8c3(0x45e)];_0x2b2458[_0x20d8c3(0x4fa)](_0x189fcb,_0x5d52b0),this[_0x20d8c3(0x46d)][_0x20d8c3(0x245)](_0x2b2458);}['_onCursorDelete'](_0x21fd76){const _0x28f5a1=_0x4f35dc,{memberID:_0x52037c}=_0x21fd76['data'],_0x1a7461=this[_0x28f5a1(0x45e)];_0x1a7461['delete'](_0x52037c),this[_0x28f5a1(0x46d)][_0x28f5a1(0x245)](_0x1a7461);}['_toggleOnline'](){const _0x36d732=_0x4f35dc;var _0x1e8169;if(this[_0x36d732(0x1d4)]=!0x0,((_0x1e8169=this[_0x36d732(0x16d)][_0x36d732(0x42e)]())==null?void 0x0:_0x1e8169[_0x36d732(0x402)]())!==this['unitID'])return;const _0x3932c9=this['_injector'][_0x36d732(0x20a)](w[_0x36d732(0x502)])[_0x36d732(0x4a8)](),_0x4b072f=_0x3932c9==null?void 0x0:_0x3932c9[_0x36d732(0x201)](w['serializeDocRange']);Array[_0x36d732(0x13c)](_0x4b072f)&&_0x4b072f[_0x36d732(0x3a9)]>0x0&&this[_0x36d732(0x47d)](_0x4b072f);}[_0x4f35dc(0x4c1)](){const _0x49f740=_0x4f35dc;this[_0x49f740(0x1d4)]=!0x1;}};Ae=Xs([G(0x2,a['Inject'](a[_0x4f35dc(0x37b)])),G(0x3,a[_0x4f35dc(0x1ac)](Ge)),G(0x4,a[_0x4f35dc(0x1ac)](K)),G(0x5,a['Inject'](Fe)),G(0x6,_[_0x4f35dc(0x329)]),G(0x7,a[_0x4f35dc(0x2e8)]),G(0x8,a[_0x4f35dc(0x3ed)])],Ae);var Js=Object[_0x4f35dc(0x305)],Zs=Object['getOwnPropertyDescriptor'],Qs=(_0x2330e0,_0x484b20,_0x21aa70,_0x43473b)=>{const _0x1b2427=_0x4f35dc;for(var _0x2d1251=_0x43473b>0x1?void 0x0:_0x43473b?Zs(_0x484b20,_0x21aa70):_0x484b20,_0x258f67=_0x2330e0[_0x1b2427(0x3a9)]-0x1,_0x3919c3;_0x258f67>=0x0;_0x258f67--)(_0x3919c3=_0x2330e0[_0x258f67])&&(_0x2d1251=(_0x43473b?_0x3919c3(_0x484b20,_0x21aa70,_0x2d1251):_0x3919c3(_0x2d1251))||_0x2d1251);return _0x43473b&&_0x2d1251&&Js(_0x484b20,_0x21aa70,_0x2d1251),_0x2d1251;},De=(_0x168f82,_0x2197ab)=>(_0x5f36a6,_0x21aa0b)=>_0x2197ab(_0x5f36a6,_0x21aa0b,_0x168f82);let ee=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x24613b,_0x2c6ccc,_0x522ad4){const _0x20d946=_0x4f35dc;super(),d(this,_0x20d946(0x164),new Map()),d(this,_0x20d946(0x26c),new v[(_0x20d946(0x4eb))]()),(this[_0x20d946(0x16d)]=_0x24613b,this[_0x20d946(0x183)]=_0x2c6ccc,this[_0x20d946(0x355)]=_0x522ad4,this['_init']());}['dispose'](){const _0x2d74c8=_0x4f35dc;super['dispose'](),this[_0x2d74c8(0x26c)][_0x2d74c8(0x331)](),this[_0x2d74c8(0x164)]['forEach'](_0xb344c3=>_0xb344c3[_0x2d74c8(0x3cc)]());}['getCollabCursors$'](_0x25f6fa){const _0x3de7fe=_0x4f35dc;return this[_0x3de7fe(0x164)][_0x3de7fe(0x34a)](_0x25f6fa)?this['_entities'][_0x3de7fe(0x20a)](_0x25f6fa)[_0x3de7fe(0x443)]:this[_0x3de7fe(0x26c)]['pipe'](v[_0x3de7fe(0x404)](_0x1d5a78=>_0x1d5a78['unitID']===_0x25f6fa),v[_0x3de7fe(0x137)](_0x13c827=>_0x13c827[_0x3de7fe(0x443)]));}[_0x4f35dc(0x18b)](){const _0x3af9bc=_0x4f35dc;this[_0x3af9bc(0x16d)][_0x3af9bc(0x283)](a[_0x3af9bc(0x1f9)][_0x3af9bc(0x396)])['pipe'](v[_0x3af9bc(0x39c)](this[_0x3af9bc(0x364)]))['subscribe'](async _0x40d64c=>{const _0x4d3e89=_0x3af9bc,_0x56903f=_0x40d64c[_0x4d3e89(0x402)](),_0x1eb558=await this[_0x4d3e89(0x378)](_0x56903f);this['_entityInit$'][_0x4d3e89(0x245)](_0x1eb558),this['_entities'][_0x4d3e89(0x4fa)](_0x56903f,_0x1eb558);}),this[_0x3af9bc(0x16d)][_0x3af9bc(0x283)](a[_0x3af9bc(0x1f9)]['UNIVER_DOC'])['pipe'](v[_0x3af9bc(0x39c)](this[_0x3af9bc(0x364)]))[_0x3af9bc(0x49c)](v[_0x3af9bc(0x404)](_0xaad4a6=>!_0xaad4a6['getUnitId']()[_0x3af9bc(0x40c)]('__')))[_0x3af9bc(0x4df)](async _0x2679d0=>{const _0x25e1b5=_0x3af9bc,_0x313e1c=_0x2679d0['getUnitId'](),_0x1b4eac=await this[_0x25e1b5(0x1af)](_0x313e1c);this[_0x25e1b5(0x26c)][_0x25e1b5(0x245)](_0x1b4eac),this[_0x25e1b5(0x164)][_0x25e1b5(0x4fa)](_0x313e1c,_0x1b4eac);}),v[_0x3af9bc(0x2b0)](this['_univerInstanceService'][_0x3af9bc(0x274)](a[_0x3af9bc(0x1f9)][_0x3af9bc(0x4fb)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3af9bc(0x1f9)][_0x3af9bc(0x396)]))['pipe'](v['takeUntil'](this[_0x3af9bc(0x364)]))['subscribe'](_0x340335=>{const _0x2ffb8a=_0x3af9bc,_0x570c03=_0x340335[_0x2ffb8a(0x402)](),_0x8caf69=this[_0x2ffb8a(0x164)][_0x2ffb8a(0x20a)](_0x570c03);_0x8caf69&&(_0x8caf69[_0x2ffb8a(0x3cc)](),this[_0x2ffb8a(0x164)]['delete'](_0x570c03));});}async['_startSheetCollabCursor'](_0x4ca11f){const _0xcda6b3=_0x4f35dc,_0x505730=await this[_0xcda6b3(0x355)][_0xcda6b3(0x14b)](_0x4ca11f),_0xabaca8=this[_0xcda6b3(0x183)]['createInstance'](Le,_0x4ca11f,_0x505730);return _0xabaca8[_0xcda6b3(0x219)](),_0xabaca8;}async[_0x4f35dc(0x1af)](_0xb435e9){const _0x465053=_0x4f35dc,_0x3cb400=await this['_collabSessionService']['requireSession'](_0xb435e9),_0xebd36=this[_0x465053(0x183)][_0x465053(0x239)](Ae,_0xb435e9,_0x3cb400);return _0xebd36[_0x465053(0x219)](),_0xebd36;}};ee=Qs([a[_0x4f35dc(0x439)](a[_0x4f35dc(0x2ae)]['Starting'],ee),De(0x0,a[_0x4f35dc(0x2e8)]),De(0x1,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),De(0x2,a['Inject'](exports[_0x4f35dc(0x4a3)]))],ee);const he=0x14,it=0xc8,ye=0x4,ei=0x5;function ti(_0x2b9563,_0x4c06ac){const _0x2283ae=_0x4f35dc;let {radius:_0x4dd1ad,width:_0x23558a,height:_0x593988}=_0x4c06ac;_0x4dd1ad=_0x4dd1ad!=null?_0x4dd1ad:0x0,_0x23558a=_0x23558a!=null?_0x23558a:0x1e,_0x593988=_0x593988!=null?_0x593988:0x1e;let _0x4601c8=0x0,_0x1578ce=0x0,_0x2ed0c7=0x0;_0x4601c8=_0x1578ce=_0x2ed0c7=Math[_0x2283ae(0x182)](_0x4dd1ad,_0x23558a/0x2,_0x593988/0x2),_0x2b9563[_0x2283ae(0x46a)](),_0x2b9563[_0x2283ae(0x147)](_0x4601c8,0x0),_0x2b9563[_0x2283ae(0x383)](_0x23558a-_0x1578ce,0x0),_0x2b9563['arc'](_0x23558a-_0x1578ce,_0x1578ce,_0x1578ce,Math['PI']*0x3/0x2,0x0,!0x1),_0x2b9563['lineTo'](_0x23558a,_0x593988-_0x2ed0c7),_0x2b9563[_0x2283ae(0x335)](_0x23558a-_0x2ed0c7,_0x593988-_0x2ed0c7,_0x2ed0c7,0x0,Math['PI']/0x2,!0x1),_0x2b9563[_0x2283ae(0x383)](0x0,_0x593988),_0x2b9563[_0x2283ae(0x383)](0x0,_0x4601c8),_0x2b9563[_0x2283ae(0x335)](_0x4601c8,_0x4601c8,_0x4601c8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2b9563[_0x2283ae(0x2d9)](),_0x4c06ac[_0x2283ae(0x3a0)]&&(_0x2b9563[_0x2283ae(0x145)](),_0x2b9563['fillStyle']=_0x4c06ac[_0x2283ae(0x3a0)],_0x4c06ac['fillRule']===_0x2283ae(0x512)?_0x2b9563[_0x2283ae(0x3a0)](_0x2283ae(0x512)):_0x2b9563[_0x2283ae(0x3a0)](),_0x2b9563['restore']());}class Ee extends b[_0x4f35dc(0x2f2)]{constructor(_0xe9650c,_0x3cd69c){const _0x1a0ec8=_0x4f35dc;super(_0xe9650c,_0x3cd69c),d(this,_0x1a0ec8(0x29e)),d(this,_0x1a0ec8(0x49b)),(this[_0x1a0ec8(0x29e)]=_0x3cd69c==null?void 0x0:_0x3cd69c[_0x1a0ec8(0x29e)],this[_0x1a0ec8(0x49b)]=_0x3cd69c==null?void 0x0:_0x3cd69c['text']);}static[_0x4f35dc(0x265)](_0x11fbbe,_0x4d9831){const _0x545c3b=_0x4f35dc,{text:_0x31f3a1,color:_0x1c188e}=_0x4d9831;_0x11fbbe[_0x545c3b(0x145)](),_0x11fbbe[_0x545c3b(0x49d)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x9b0d33=_0x11fbbe['measureText'](_0x31f3a1)[_0x545c3b(0x293)],_0x477a1c=Math[_0x545c3b(0x182)](_0x9b0d33+0x2*ye,it);ti(_0x11fbbe,{'height':he,'radius':0x4,'width':_0x477a1c,'fill':_0x1c188e,'evented':!0x1}),_0x11fbbe[_0x545c3b(0x50b)]=_0x545c3b(0x3f9);const _0x2dde25=ye,_0x5ab475=he-ei,_0x1a049f=it-0x2*ye;if(_0x9b0d33>_0x1a049f){let _0x29e11d='',_0x3bd820=0x0;for(const _0x5aabf5 of _0x31f3a1){const _0xdb6594=_0x11fbbe[_0x545c3b(0x261)](_0x5aabf5)[_0x545c3b(0x293)];if(_0x3bd820+_0xdb6594<=_0x1a049f-_0x11fbbe[_0x545c3b(0x261)]('...')[_0x545c3b(0x293)])_0x29e11d+=_0x5aabf5,_0x3bd820+=_0xdb6594;else{_0x29e11d+=_0x545c3b(0x2b5);break;}}_0x11fbbe[_0x545c3b(0x150)](_0x29e11d,_0x2dde25,_0x5ab475);}else _0x11fbbe[_0x545c3b(0x150)](_0x31f3a1,_0x2dde25,_0x5ab475);_0x11fbbe[_0x545c3b(0x458)]();}[_0x4f35dc(0x519)](_0x5eedd1){const _0x377333=_0x4f35dc;Ee[_0x377333(0x265)](_0x5eedd1,this);}}const si=0x1,ii=1.5;function _0x1935(_0x2c278e,_0x1ce651){const _0x2d8673=_0x2d86();return _0x1935=function(_0x1935e0,_0x35540f){_0x1935e0=_0x1935e0-0x11e;let _0xd48263=_0x2d8673[_0x1935e0];return _0xd48263;},_0x1935(_0x2c278e,_0x1ce651);}class Ot extends b[_0x4f35dc(0x2f2)]{constructor(_0x3d2c2d,_0x445404){const _0x1c39b0=_0x4f35dc;super(_0x3d2c2d,_0x445404),d(this,_0x1c39b0(0x1c0)),d(this,_0x1c39b0(0x4e7),!0x1),d(this,_0x1c39b0(0x38f)),d(this,_0x1c39b0(0x27b),''),d(this,'_labelPosition','top'),d(this,_0x1c39b0(0x206)),(_0x445404&&this[_0x1c39b0(0x298)](_0x445404),this['onPointerEnter$'][_0x1c39b0(0x4e4)](()=>this[_0x1c39b0(0x298)]({'hovered':!0x0})),this['onPointerLeave$'][_0x1c39b0(0x4e4)](()=>this[_0x1c39b0(0x298)]({'hovered':!0x1})));}['setShapeProps'](_0x1c1508){const _0x4a3583=_0x4f35dc;var _0x76b4db,_0x154153,_0x141d85,_0x62e959,_0x345cbd,_0x31421d;this[_0x4a3583(0x1c0)]=(_0x76b4db=_0x1c1508['color'])!=null?_0x76b4db:this['_color'],this[_0x4a3583(0x4e7)]=(_0x154153=_0x1c1508[_0x4a3583(0x3f1)])!=null?_0x154153:this[_0x4a3583(0x4e7)],this[_0x4a3583(0x38f)]=(_0x141d85=_0x1c1508[_0x4a3583(0x4ff)])!=null?_0x141d85:this[_0x4a3583(0x38f)],this[_0x4a3583(0x27b)]=(_0x62e959=_0x1c1508[_0x4a3583(0x3bc)])!=null?_0x62e959:this[_0x4a3583(0x27b)],this[_0x4a3583(0x4d5)]=(_0x345cbd=_0x1c1508[_0x4a3583(0x1d2)])!=null?_0x345cbd:this[_0x4a3583(0x4d5)],this[_0x4a3583(0x206)]=(_0x31421d=_0x1c1508[_0x4a3583(0x22a)])!=null?_0x31421d:this[_0x4a3583(0x206)],this['transformByState']({'width':_0x1c1508[_0x4a3583(0x293)],'height':_0x1c1508['height']});}[_0x4f35dc(0x371)](_0x129e2c){const _0x1e3ca3=_0x4f35dc,{row:_0x25ef20,column:_0x49e3e4}=_0x129e2c;if(_0x25ef20>=this[_0x1e3ca3(0x38f)][_0x1e3ca3(0x1c9)]&&_0x25ef20<=this[_0x1e3ca3(0x38f)][_0x1e3ca3(0x4e3)]&&_0x49e3e4>=this[_0x1e3ca3(0x38f)][_0x1e3ca3(0x40a)]&&_0x49e3e4<=this[_0x1e3ca3(0x38f)][_0x1e3ca3(0x130)]){this[_0x1e3ca3(0x298)]({'hovered':!0x0});return;}this[_0x1e3ca3(0x298)]({'hovered':!0x1});}[_0x4f35dc(0x337)](_0x9f3ac){return!0x1;}['_draw'](_0x275ec8){const _0x3b8087=_0x4f35dc;b['Rect'][_0x3b8087(0x265)](_0x275ec8,{'width':this[_0x3b8087(0x293)],'height':this['height'],'strokeWidth':ii,'stroke':this[_0x3b8087(0x1c0)],'evented':!0x1,'fill':this[_0x3b8087(0x206)]}),this[_0x3b8087(0x4e7)]&&(_0x275ec8[_0x3b8087(0x145)](),_0x275ec8[_0x3b8087(0x198)](0x1,0x0,0x0,0x1,this[_0x3b8087(0x293)],this['_labelPosition']==='bottom'?0x0:-he),Ee[_0x3b8087(0x265)](_0x275ec8,{'text':this[_0x3b8087(0x27b)],'color':this[_0x3b8087(0x1c0)]}),_0x275ec8[_0x3b8087(0x458)]());}}var ni=Object[_0x4f35dc(0x305)],ri=Object['getOwnPropertyDescriptor'],oi=(_0x1b120e,_0x463ed2,_0x278bc4,_0x4dc968)=>{const _0x432273=_0x4f35dc;for(var _0x2d98ef=_0x4dc968>0x1?void 0x0:_0x4dc968?ri(_0x463ed2,_0x278bc4):_0x463ed2,_0x3f2e04=_0x1b120e[_0x432273(0x3a9)]-0x1,_0x2705bc;_0x3f2e04>=0x0;_0x3f2e04--)(_0x2705bc=_0x1b120e[_0x3f2e04])&&(_0x2d98ef=(_0x4dc968?_0x2705bc(_0x463ed2,_0x278bc4,_0x2d98ef):_0x2705bc(_0x2d98ef))||_0x2d98ef);return _0x4dc968&&_0x2d98ef&&ni(_0x463ed2,_0x278bc4,_0x2d98ef),_0x2d98ef;},Pe=(_0x3a2e1d,_0x56bde1)=>(_0x54b0be,_0x549e82)=>_0x56bde1(_0x54b0be,_0x549e82,_0x3a2e1d);const ai=0x1389;let je=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x82854d,_0x1109ee,_0x401df9,_0x4051e3){const _0x25ef38=_0x4f35dc;super(),d(this,_0x25ef38(0x4ad),new Set()),d(this,_0x25ef38(0x46c),null),(this[_0x25ef38(0x462)]=_0x82854d,this[_0x25ef38(0x1ae)]=_0x1109ee,this[_0x25ef38(0x452)]=_0x401df9,this[_0x25ef38(0x2d5)]=_0x4051e3,this[_0x25ef38(0x18b)]());}[_0x4f35dc(0x18b)](){const _0x58ff5c=_0x4f35dc;this[_0x58ff5c(0x1ae)][_0x58ff5c(0x360)][_0x58ff5c(0x49c)](E[_0x58ff5c(0x39c)](this[_0x58ff5c(0x364)]),E['switchMap'](_0x22aef9=>{const _0xb90899=_0x58ff5c;if(_0x22aef9){const _0x47546a=_0x22aef9[_0xb90899(0x168)];return v[_0xb90899(0x390)](this[_0xb90899(0x452)][_0xb90899(0x173)](this[_0xb90899(0x462)][_0xb90899(0x284)]),this['_themeService']['currentTheme$'])[_0xb90899(0x49c)](E[_0xb90899(0x201)](([_0x49f6b0,_0x30f600])=>{const _0xad5b39=_0xb90899,_0x50b79e=new Map();return _0x49f6b0[_0xad5b39(0x155)]((_0x24acd0,_0x3d9ad9)=>{const _0x148dce=_0xad5b39;if(_0x24acd0[_0x148dce(0x25b)]===_0x47546a){const _0x230155={..._0x24acd0};_0x230155['color']=_0x30f600[_0x24acd0[_0x148dce(0x29e)]],_0x50b79e[_0x148dce(0x4fa)](_0x3d9ad9,_0x230155);}}),{'skeleton':_0x22aef9,'cursors':_0x50b79e};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x58ff5c(0x4df)](({skeleton:_0x5a393f,cursors:_0x213da3})=>{const _0x3cd100=_0x58ff5c;this[_0x3cd100(0x16f)](),_0x5a393f&&this[_0x3cd100(0x30a)](_0x5a393f,_0x213da3);}),this[_0x58ff5c(0x1ae)][_0x58ff5c(0x360)]['subscribe'](_0x3fb68e=>{const _0x74bd44=_0x58ff5c;if(_0x3fb68e==null)return;const {skeleton:_0x125552}=_0x3fb68e,{scene:_0x17a7b7}=this[_0x74bd44(0x462)];_0x17a7b7['onPointerMove$'][_0x74bd44(0x4e4)](xe(_0x22833f=>{const _0x57cf79=_0x74bd44;var _0x17aa06,_0x32cca7;const {offsetX:_0xf1d09b,offsetY:_0x3c276b}=_0x22833f,{x:_0x1936b9,y:_0x102ed3}=_0x17a7b7[_0x57cf79(0x410)](b[_0x57cf79(0x1b4)][_0x57cf79(0x121)]([_0xf1d09b,_0x3c276b])),{scaleX:_0x3dad80,scaleY:_0x3a6ba1}=_0x17a7b7[_0x57cf79(0x4c8)](),_0x31e6d9=_0x17a7b7[_0x57cf79(0x4e6)](Q[_0x57cf79(0x2de)][_0x57cf79(0x3b3)]),_0x57eb6e=_0x17a7b7['getVpScrollXYInfoByPosToVp'](b[_0x57cf79(0x1b4)][_0x57cf79(0x121)]([_0x1936b9,_0x102ed3]),_0x31e6d9),_0xb7c090=_0x125552['getCellPositionByOffset'](_0xf1d09b,_0x3c276b,_0x3dad80,_0x3a6ba1,_0x57eb6e);((_0x17aa06=this[_0x57cf79(0x46c)])==null?void 0x0:_0x17aa06['column'])===_0xb7c090['column']&&((_0x32cca7=this['_lastPointer'])==null?void 0x0:_0x32cca7[_0x57cf79(0x4bb)])===_0xb7c090['row']||this['_cursors'][_0x57cf79(0x155)](_0x2a36b6=>{const _0x25fa45=_0x57cf79;_0x2a36b6[_0x25fa45(0x371)](_0xb7c090);});},0x64));});}[_0x4f35dc(0x30a)](_0x2ad64b,_0x191ac3){const _0x9d6ab=_0x4f35dc;var _0x84bf44;const _0x48d17b=(_0x84bf44=this[_0x9d6ab(0x1ae)][_0x9d6ab(0x332)]())==null?void 0x0:_0x84bf44[_0x9d6ab(0x372)];if(!_0x48d17b)return;const _0x401563=this[_0x9d6ab(0x122)]();if(!_0x401563)return;this[_0x9d6ab(0x4ad)][_0x9d6ab(0x155)](_0x168bf2=>{const _0x4c1e3a=_0x9d6ab;_0x168bf2[_0x4c1e3a(0x256)]();});const {scene:_0x37622b}=_0x401563,_0x503221=ci(Array['from'](_0x191ac3[_0x9d6ab(0x215)]()))[_0x9d6ab(0x201)](_0x30bc9e=>{const _0x5d4e63=_0x9d6ab,{color:_0x2e7f9b,range:_0x3fadbc,name:_0x142ea4,selection:_0x398d23,sheetID:_0x33456d}=_0x30bc9e,{startColumn:_0x5a080c,startRow:_0x50fc31,endColumn:_0x5208e4,endRow:_0x1433d9}=_0x3fadbc,_0x2b34a6=Q['getCoordByCell'](_0x50fc31,_0x5a080c,_0x37622b,_0x48d17b),_0x1ce119=Q[_0x5d4e63(0x45c)](_0x1433d9,_0x5208e4,_0x37622b,_0x48d17b),{columnHeaderHeightAndMarginTop:_0x422da0}=_0x48d17b,{startX:_0x17ec0e,startY:_0x27036a}=_0x2b34a6,{endX:_0x1efd47,endY:_0x2d0648}=_0x1ce119,_0x4532d2=_0x1efd47-_0x17ec0e,_0x2afa2a=_0x2d0648-_0x27036a,_0x56b881={'labelPosition':_0x27036a-_0x422da0>=he?_0x5d4e63(0x422):_0x5d4e63(0x413),'sheetID':_0x33456d,'range':_0x3fadbc,'color':_0x2e7f9b,'name':_0x142ea4,'selection':_0x398d23,'left':_0x17ec0e,'top':_0x27036a,'width':_0x4532d2,'height':_0x2afa2a,'evented':!0x1,'zIndex':ai};return new Ot(_0x142ea4,_0x56b881);});_0x37622b[_0x9d6ab(0x143)](_0x503221,si),this['_cursors']=new Set(_0x503221);}[_0x4f35dc(0x16f)](){const _0x14ca5b=_0x4f35dc;var _0x573640;(_0x573640=this[_0x14ca5b(0x4ad)])==null||_0x573640[_0x14ca5b(0x155)](_0x41b201=>_0x41b201[_0x14ca5b(0x3cc)]());}['_getSheetObject'](){const _0x45df03=_0x4f35dc;return Q[_0x45df03(0x3cb)](this[_0x45df03(0x462)][_0x45df03(0x39b)],this[_0x45df03(0x462)]);}};je=oi([Pe(0x1,a[_0x4f35dc(0x1ac)](Q[_0x4f35dc(0x438)])),Pe(0x2,a[_0x4f35dc(0x1ac)](ee)),Pe(0x3,a['Inject'](a['ThemeService']))],je);function ci(_0x9ad1f7){const _0x1f076e=_0x4f35dc,_0x1111da=new Map();return _0x9ad1f7['forEach'](_0x2195b5=>{const _0xeffe36=_0x1935;if(_0x1111da[_0xeffe36(0x34a)](_0x2195b5[_0xeffe36(0x4c6)])){const _0x16261f=_0x1111da['get'](_0x2195b5[_0xeffe36(0x4c6)]);_0x16261f[_0xeffe36(0x3bc)]+=',\x20'+_0x2195b5[_0xeffe36(0x3bc)];}else _0x1111da[_0xeffe36(0x4fa)](_0x2195b5[_0xeffe36(0x4c6)],_0x2195b5);}),Array[_0x1f076e(0x1fb)](_0x1111da[_0x1f076e(0x215)]());}var N=function(){const _0x4cd528=_0x4f35dc;return N=Object[_0x4cd528(0x1a9)]||function(_0x42dfed){const _0xa5a8cc=_0x4cd528;for(var _0x2fe242,_0x4db2fe=0x1,_0x1362bd=arguments[_0xa5a8cc(0x3a9)];_0x4db2fe<_0x1362bd;_0x4db2fe++){_0x2fe242=arguments[_0x4db2fe];for(var _0x1b72ff in _0x2fe242)Object[_0xa5a8cc(0x195)]['hasOwnProperty'][_0xa5a8cc(0x400)](_0x2fe242,_0x1b72ff)&&(_0x42dfed[_0x1b72ff]=_0x2fe242[_0x1b72ff]);}return _0x42dfed;},N[_0x4cd528(0x184)](this,arguments);},li=function(_0x571621,_0x4b252b){const _0xab41fb=_0x4f35dc;var _0x46ee64={};for(var _0x4924ce in _0x571621)Object[_0xab41fb(0x195)]['hasOwnProperty'][_0xab41fb(0x400)](_0x571621,_0x4924ce)&&_0x4b252b['indexOf'](_0x4924ce)<0x0&&(_0x46ee64[_0x4924ce]=_0x571621[_0x4924ce]);if(_0x571621!=null&&typeof Object[_0xab41fb(0x252)]==_0xab41fb(0x39a)){for(var _0x452ce3=0x0,_0x4924ce=Object[_0xab41fb(0x252)](_0x571621);_0x452ce3<_0x4924ce[_0xab41fb(0x3a9)];_0x452ce3++)_0x4b252b[_0xab41fb(0x4fc)](_0x4924ce[_0x452ce3])<0x0&&Object[_0xab41fb(0x195)][_0xab41fb(0x157)]['call'](_0x571621,_0x4924ce[_0x452ce3])&&(_0x46ee64[_0x4924ce[_0x452ce3]]=_0x571621[_0x4924ce[_0x452ce3]]);}return _0x46ee64;},Ye=P[_0x4f35dc(0x23b)](function(_0x80dc56,_0x4c1b05){const _0x569118=_0x4f35dc;var _0x525f66=_0x80dc56[_0x569118(0x440)],_0x2172a8=_0x80dc56['id'],_0x4acbf5=_0x80dc56[_0x569118(0x12f)],_0x49720f=_0x80dc56[_0x569118(0x1bd)],_0x4db502=li(_0x80dc56,[_0x569118(0x440),'id',_0x569118(0x12f),_0x569118(0x1bd)]),_0x8efb28=_0x569118(0x24f)[_0x569118(0x2a2)](_0x2172a8,'\x20')[_0x569118(0x2a2)](_0x4acbf5||'')[_0x569118(0x28b)](),_0x4ba9b6=P['useRef']('_'[_0x569118(0x2a2)](ui()));return Dt(_0x525f66,''[_0x569118(0x2a2)](_0x2172a8),{'defIds':_0x525f66[_0x569118(0x3a2)],'idSuffix':_0x4ba9b6[_0x569118(0x270)]},N({'ref':_0x4c1b05,'className':_0x8efb28},_0x4db502),_0x49720f);});function Dt(_0x48e081,_0x2c7ab9,_0x3ffa83,_0x4a02f8,_0x481047){const _0x2fcb64=_0x4f35dc;return P['createElement'](_0x48e081[_0x2fcb64(0x41c)],N(N({'key':_0x2c7ab9},hi(_0x48e081,_0x3ffa83,_0x481047)),_0x4a02f8),(_i(_0x48e081,_0x3ffa83)['children']||[])[_0x2fcb64(0x201)](function(_0x1e35b6,_0x338c02){const _0x358ea0=_0x2fcb64;return Dt(_0x1e35b6,''['concat'](_0x2c7ab9,'-')['concat'](_0x48e081[_0x358ea0(0x41c)],'-')[_0x358ea0(0x2a2)](_0x338c02),_0x3ffa83,void 0x0,_0x481047);}));}function hi(_0x536079,_0x4b5fec,_0x1f845d){const _0x4095a8=_0x4f35dc;var _0xc88ea3=N({},_0x536079['attrs']);_0x1f845d!=null&&_0x1f845d[_0x4095a8(0x2d8)]&&_0xc88ea3[_0x4095a8(0x3a0)]===_0x4095a8(0x2d8)&&(_0xc88ea3[_0x4095a8(0x3a0)]=_0x1f845d[_0x4095a8(0x2d8)]);var _0x21b234=_0x4b5fec['defIds'];return!_0x21b234||_0x21b234[_0x4095a8(0x3a9)]===0x0||(_0x536079['tag']==='use'&&_0xc88ea3[_0x4095a8(0x2cf)]&&(_0xc88ea3[_0x4095a8(0x2cf)]=_0xc88ea3[_0x4095a8(0x2cf)]+_0x4b5fec[_0x4095a8(0x435)]),Object[_0x4095a8(0x2fd)](_0xc88ea3)['forEach'](function(_0x1dcd8b){const _0x33ff5f=_0x4095a8;var _0x2ac69b=_0x1dcd8b[0x0],_0x26296b=_0x1dcd8b[0x1];typeof _0x26296b==_0x33ff5f(0x4cd)&&(_0xc88ea3[_0x2ac69b]=_0x26296b[_0x33ff5f(0x278)](/url\(#(.*)\)/,_0x33ff5f(0x4ba)[_0x33ff5f(0x2a2)](_0x4b5fec[_0x33ff5f(0x435)],')')));})),_0xc88ea3;}function _i(_0x77e7f,_0x2fc204){const _0x5c2f75=_0x4f35dc;var _0x5c1074,_0x2a5b23=_0x2fc204[_0x5c2f75(0x3a2)];return!_0x2a5b23||_0x2a5b23[_0x5c2f75(0x3a9)]===0x0?_0x77e7f:_0x77e7f['tag']==='defs'&&(!((_0x5c1074=_0x77e7f[_0x5c2f75(0x3da)])===null||_0x5c1074===void 0x0)&&_0x5c1074[_0x5c2f75(0x3a9)])?N(N({},_0x77e7f),{'children':_0x77e7f[_0x5c2f75(0x3da)]['map'](function(_0x293153){const _0x3bb3a1=_0x5c2f75;return typeof _0x293153[_0x3bb3a1(0x1db)]['id']==_0x3bb3a1(0x4cd)&&_0x2a5b23&&_0x2a5b23[_0x3bb3a1(0x4fc)](_0x293153['attrs']['id'])>-0x1?N(N({},_0x293153),{'attrs':N(N({},_0x293153['attrs']),{'id':_0x293153[_0x3bb3a1(0x1db)]['id']+_0x2fc204[_0x3bb3a1(0x435)]})}):_0x293153;})}):_0x77e7f;}function ui(){const _0xb209b7=_0x4f35dc;return Math[_0xb209b7(0x28a)]()[_0xb209b7(0x16b)](0x24)['substring'](0x2,0x8);}Ye[_0x4f35dc(0x148)]=_0x4f35dc(0x3c4);var di={'tag':_0x4f35dc(0x29d),'attrs':{'fill':_0x4f35dc(0x4a6),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4f35dc(0x128)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x4f35dc(0x434),'attrs':{'stroke':_0x4f35dc(0x1be),'d':_0x4f35dc(0x354),'strokeLinecap':'round','strokeLinejoin':_0x4f35dc(0x2bf),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4f35dc(0x1ed),'attrs':{'id':_0x4f35dc(0x2a9)},'children':[{'tag':_0x4f35dc(0x434),'attrs':{'fill':_0x4f35dc(0x159),'d':_0x4f35dc(0x2a0)}}]}]}],'defIds':[_0x4f35dc(0x2a9)]},yt=P[_0x4f35dc(0x23b)](function(_0x20d4a5,_0x295ec0){const _0x140cc0=_0x4f35dc;return P[_0x140cc0(0x13a)](Ye,Object['assign']({},_0x20d4a5,{'id':'off-line-single','ref':_0x295ec0,'icon':di}));});yt[_0x4f35dc(0x148)]='OffLineSingle';var Si={'tag':_0x4f35dc(0x29d),'attrs':{'fill':'none','viewBox':_0x4f35dc(0x4ab),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4f35dc(0x4e2)},'children':[{'tag':'path','attrs':{'stroke':_0x4f35dc(0x1be),'d':_0x4f35dc(0x499),'strokeLinecap':_0x4f35dc(0x2bf),'strokeLinejoin':_0x4f35dc(0x2bf),'strokeWidth':1.2}}]},{'tag':_0x4f35dc(0x25d),'attrs':{},'children':[{'tag':_0x4f35dc(0x1ed),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4f35dc(0x434),'attrs':{'fill':_0x4f35dc(0x159),'d':_0x4f35dc(0x2a0),'transform':_0x4f35dc(0x4a9)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Pt=P[_0x4f35dc(0x23b)](function(_0x5ab866,_0x3332f7){const _0x1a41cf=_0x4f35dc;return P[_0x1a41cf(0x13a)](Ye,Object[_0x1a41cf(0x1a9)]({},_0x5ab866,{'id':'on-line-single','ref':_0x3332f7,'icon':Si}));});Pt['displayName']=_0x4f35dc(0x295);const vi='univer-online-status-icon',mi=_0x4f35dc(0x4a1),fi='univer-online-status',gi=_0x4f35dc(0x1e6),Ii=_0x4f35dc(0x42b),oe={'onlineStatusIcon':vi,'onlineStatusTitle':mi,'onlineStatus':fi,'online':gi,'offline':Ii};function pi(_0xc8c12c){const _0x4b1804=_0x4f35dc;switch(_0xc8c12c){case y[_0x4b1804(0x291)]:return _0x4b1804(0x365);case y[_0x4b1804(0x2ee)]:return _0x4b1804(0x200);case y[_0x4b1804(0x2ac)]:return _0x4b1804(0x27d);case y[_0x4b1804(0x4db)]:return _0x4b1804(0x455);case y[_0x4b1804(0x391)]:case y['AWAITING']:case y['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case y[_0x4b1804(0x4c3)]:return'collabStatus.synced';}}function wt(_0x2ba2c3){const _0x1db061=_0x4f35dc,{status$:_0x394361}=_0x2ba2c3,_0x42fe10=M[_0x1db061(0x4f6)](_0x394361,y[_0x1db061(0x4db)]),_0x372002=a[_0x1db061(0x306)](a[_0x1db061(0x43c)]),_0x30aa07=a[_0x1db061(0x306)](exports[_0x1db061(0x4a3)]),_0x491c4f=_0x42fe10!==y['OFFLINE'],_0x19c9a0=_0x372002['t'](pi(_0x42fe10)),_0xa21414=Vt(oe[_0x1db061(0x18e)],{[oe['online']]:_0x491c4f,[oe[_0x1db061(0x2e6)]]:!_0x491c4f}),_0xd4b0d7=_0x491c4f?P[_0x1db061(0x13a)](Pt,null):P[_0x1db061(0x13a)](yt,null),_0x3c7efa=P[_0x1db061(0x4ae)](()=>{const _0x6a6d8a=_0x1db061;_0x491c4f||_0x30aa07[_0x6a6d8a(0x493)]();},[_0x491c4f,_0x30aa07]);function _0x2f38ff(){const _0x4079aa=_0x1db061;return P[_0x4079aa(0x13a)](_0x4079aa(0x4a5),{'className':_0xa21414,'onClick':_0x3c7efa},P[_0x4079aa(0x13a)](_0x4079aa(0x4a5),{'className':oe[_0x4079aa(0x3ca)]},_0xd4b0d7),P['createElement']('div',{'className':oe[_0x4079aa(0x4b5)]},_0x19c9a0));}return _0x491c4f?_0x2f38ff():P[_0x1db061(0x13a)](Y[_0x1db061(0x1fd)],{'title':_0x372002['t'](_0x1db061(0x158))},_0x2f38ff());}var Ci=Object[_0x4f35dc(0x305)],Ei=Object[_0x4f35dc(0x21c)],bi=(_0x14979e,_0x5c598e,_0x14b9f4,_0x11c5d1)=>{const _0x353e10=_0x4f35dc;for(var _0x5ceb0c=_0x11c5d1>0x1?void 0x0:_0x11c5d1?Ei(_0x5c598e,_0x14b9f4):_0x5c598e,_0x74462d=_0x14979e[_0x353e10(0x3a9)]-0x1,_0x3c4057;_0x74462d>=0x0;_0x74462d--)(_0x3c4057=_0x14979e[_0x74462d])&&(_0x5ceb0c=(_0x11c5d1?_0x3c4057(_0x5c598e,_0x14b9f4,_0x5ceb0c):_0x3c4057(_0x5ceb0c))||_0x5ceb0c);return _0x11c5d1&&_0x5ceb0c&&Ci(_0x5c598e,_0x14b9f4,_0x5ceb0c),_0x5ceb0c;},_e=(_0x187375,_0x179467)=>(_0x1f0456,_0x45179f)=>_0x179467(_0x1f0456,_0x45179f,_0x187375);exports[_0x4f35dc(0x345)]=class extends a['Disposable']{constructor(_0x432491,_0xef17d8,_0x5b46fb,_0x247c1b){const _0x5b6740=_0x4f35dc;super(),d(this,'_status$',new v[(_0x5b6740(0x36c))](y[_0x5b6740(0x4db)])),(this[_0x5b6740(0x16d)]=_0x432491,this['_uiPartsService']=_0xef17d8,this['_injector']=_0x5b46fb,this[_0x5b6740(0x515)]=_0x247c1b,this[_0x5b6740(0x233)](),this[_0x5b6740(0x242)]());}[_0x4f35dc(0x242)](){const _0x34adf6=_0x4f35dc;this['disposeWithMe'](this[_0x34adf6(0x16d)][_0x34adf6(0x3ef)]['pipe'](v['switchMap'](()=>{const _0x3247a7=_0x34adf6,_0x56edbc=this['_univerInstanceService'][_0x3247a7(0x42e)]();return _0x56edbc?this[_0x3247a7(0x515)]['getCollabEntity$'](_0x56edbc[_0x3247a7(0x402)]()):v['of'](null);}),v[_0x34adf6(0x137)](_0x14781b=>_0x14781b?_0x14781b[_0x34adf6(0x370)]:v['of'](y[_0x34adf6(0x4db)])))[_0x34adf6(0x4df)](_0x3d855b=>{const _0x2e7e57=_0x34adf6;this[_0x2e7e57(0x4f8)][_0x2e7e57(0x245)](_0x3d855b);}));}[_0x4f35dc(0x233)](){const _0x6fa778=_0x4f35dc;this[_0x6fa778(0x14d)](this['_uiPartsService'][_0x6fa778(0x163)](M[_0x6fa778(0x417)][_0x6fa778(0x14a)],()=>a[_0x6fa778(0x19c)](Ti({'status$':this[_0x6fa778(0x4f8)][_0x6fa778(0x366)]()}),this[_0x6fa778(0x183)])));}},exports[_0x4f35dc(0x345)]=bi([_e(0x0,a[_0x4f35dc(0x2e8)]),_e(0x1,M[_0x4f35dc(0x397)]),_e(0x2,a['Inject'](a[_0x4f35dc(0x37b)])),_e(0x3,a[_0x4f35dc(0x1ac)](exports[_0x4f35dc(0x3a3)]))],exports[_0x4f35dc(0x345)]);function Ti(_0x310dd3){const {status$:_0x108ca9}=_0x310dd3;return function(){return P['createElement'](wt,{'status$':_0x108ca9});};}function _0x2d86(){const _0x2ed87d=['roomMembers','length','SheetCollaborationEntity','_clearRedo','getConfig','SNAPSHOT_URL_KEY','_sendHeartbeatTimer','_colorAssignService','_rescheduleHeartbeat','updateMember','take','VIEW_MAIN','_docSyncEditingCollabCursorService','EmptyMutation','headers','SNAPSHOT_INVALID_SNAPSHOT','_httpService','RECV','_unitStatus','ALREADY_EXISTS','name','YUUMI_UNABLE_LOAD_URL','CHANGESET_REJ','fetching\x20missing\x20changesets\x20from\x20','_state','8zAUwsN','image/png','_loadDoc','UniverIcon','NO_OTHER_CLIENTS_EDITING','APPLY_NON_SEQUENTIAL_REVISION','m2Prime','_eventUnsubscribe','_renderManagerService','onlineStatusIcon','getSheetObject','dispose','unsubscribe','UNDEFINED','resize','image/jpeg','[SyncedState]:\x20received\x20rejection.','_telemetryService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','TEXT_RANGE_LAYER_INDEX','encodeURIComponent','getSheetBlock','socket$','permission.content','enableAuthServer','children','UNKNOWN_CMD','executeCommand','_cursorShapes','body','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getSkeleton','collaboration.single-unit.warning','_acknowledgedAwaitingChangeset','purple300','_toggleOnline','add','_tryReconnect','Undefined','[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.','every','registerRefRange','some','_heartbeatTimer','ICommandService','toStringTag','focused$','joinRsp','hovered','concatMap','_undoStacks','getColor','online','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','RemoveRowCommandId','_listenToOfflineEvent','#FFF','fetchMiss','refreshPermission','_collaborationSessionService','deepClone','ThemeService','blue400','call','_snapshotServerService','getUnitId','IRemoteInstanceService','filter','_docTransformSelectionsService','ACTIVE_UNIT_EVENT_CHANNEL','c1Prime','onlyLocal','DataLoaderController','startColumn','MoveRangeCommandId','startsWith','b64DecodeUnicode','_registerRenderDependencies','IAuthzIoService','getRelativeToViewportCoord','_schedule','getResourcesRequest','bottom','_onUserJoin','IPermissionService','CollaborationStatus','BuiltInUIPart','CONNECTOR_DATA_TOO_LARGE','type','WorkbookEditablePermission','DeleteRangeMoveUpCommandId','tag','_scheduleTimestamp','csAckEvent','/unit/','_drawAnchor','session.collaboration-timeout','top','_localCacheService','delete','transformRemoteChangeset','@univerjs/design','deserializeRangeWithSheet','ILogService','_snapshotService','[CollaborationSessionService]:\x20socket\x20error','univer-offline','collab-text-anchor-','roomMembers$','getFocusedUnit','_updateLocalCache','pending','8LCrkzP','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sendHeartbeat','path','idSuffix','_joinRoom','Rectangle','SheetSkeletonManagerService','OnLifecycle','UNIVER_UNKNOWN','unitId\x20is\x20not\x20found','LocaleService','_syncEditingCollabCursor','_getSignURL','_getUploadFileURL','icon','getImageSourceCache','onStateChange','cursorInfo$','@univerjs/sheets','Optional','_throwTelemetryCollaborationNewChangeset','setItem','react','_handleEvent','InsertColCommandId','setTimeout','ICollaborationSocketService','Ready','LICENSE_MAX_UNITS_EXCEEDED','INTERNAL_ERROR','collaboration-client.offline-data-not-saved','replaceState','_collabCursorController','reduce','onSyncEditingCollabCursor','collabStatus.notCollab','toDisposable','COMPRESS_MUTATION_SEND','restore','_transformIMECache','objects','Error','getCoordByCell','IImageIoService','cursorInfo','_handleLeaveEvent','mergeOverrideWithDependencies','handleInsertCol','_context','_commentUpdate$','setCurrentUser','_getCurrentRevision','getUnit','JOINING','3924oycuEm','_socket$','beginPath','LIVESHARE_FETCH_OPERATIONS','_lastPointer','_cursorInfo$','post','isTransformMutationsWithChangesetSuccess','1223262VTfJkW','confirm','collaboration.closeRoom','_render','collaboratorID','change$','routeKey','getRoom','getItem','SetSelectionsOperation','telemetry\x20info\x20is\x20not\x20initialized','loadOfflineData','_getSaveTimeout','_updateLocalCursor','_substituteUndoStack','onRemoteAck','_onRemoteRejected','collaboration-session-retry','_decreaseWaiting','distinctUntilChanged','COMMENT_UPDATE','_send','getCurrentUser','LICENSE_EXPORT_SIZE_EXCEEDED','url','_lockTransition','data','UNKNOWN_CODE','CommandType','getTime','_registerDependencies','create','_state$','UPDATE_CURSOR','IContextService','reconnect','_onOffline','searchParams','_onConnectionFailed','_replaceFileID','_timeoutTimer','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','DocStateChangeManagerService','text','pipe','font','SheetsSelectionsService','members','session.room-full','univer-online-status-title','_updateSubUnitFromURLParams','CollaborationSessionService','RichTextEditingMutation','div','none','fetchThroughInterceptors','getDocRanges','translate(.97)','_change$','0\x200\x2017\x2016','saveImage','_cursors','useCallback','getUnitStatus$','parse','MessageType','RevisionService','_docSkeletonManagerService','\x20in\x20_schedule.','onlineStatusTitle','registerBeforeClose','setParam','enableOfflineEditing','saveSheetBlock','url(#$1','row','SessionStatus','assignAColorForMemberID','/collaborator','_unitID','onRemoteChangeset','_toggleOffline','_applyRemoteChangeset','SYNCED','_exhaustRemoteChangesetQueue','catch','selection','revision','getAncestorScale','override','_handleHeartbeatEvent','_getUndoStack','_tryEnsureSocket','string','findNodePositionByCharIndex','flatMap','isTransformChangesetsSuccess','COMPRESS_MUTATION_APPLY','/-/object/list','isTransformMutationFailure','AWAITING_WITH_PENDING','_labelPosition','4061961qKYpXu','UNAUTHENTICATED','onPointerEnter$','delay','collaMsg','NOT_COLLAB','_collabCursorState$','put','_isPermissionRej','subscribe','ImageUploadStatusType','file','url(#on-line-single_clip0_910_349)','endRow','subscribeEvent','_onFetchMissResult','getViewport','_hovered','_drawRectRange','JSONX','_getRedoStack','Subject','_event$','saveOfflineData','_id','RemoveColCommandId','CollaborationSocketService','SNAPSHOT_HAS_BEEN_REMOVED','state','handleDeleteRangeMoveLeft','getParam','/fetchmissing?from=','useObservable','_compressMutationService','_status$','_createInitialState','set','UNIVER_DOC','indexOf','HEARTBEAT','append','range','_onCursorDelete','list','TextSelectionManagerService','_selfUnitIDs','[DataLoaderController]','getActiveRange','HTTPRequest','changesets','_handler','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','onTransformRemoteChangesetByIMECache','fillStyle','show','failed\x20to\x20apply\x20missed\x20changesets!','SetTextSelectionsOperation','onTransformSelections','eventID','LOCAL_CACHE_INTERVAL','evenodd','liveShareNewHost','@univerjs/docs','_collaborationController','isEditing','newCsEvent','6BMqCRG','_draw','getWorkbookSelections','_assignedColors','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','registerHTTPInterceptor','FileId','deleteCollaborator','_cachedData','COLORS','syncEditingCollabCursor','_onLocalMutation','then','FromArray','_getSheetObject','_roomMembers$','COLLAB_SUBMIT_CHANGESET_URL_KEY','IDLE','Module','_updateState','1em','_onCursorUpdate','_initCommandExecutedListener','_shapes','_shouldReportTelemetry','objectID','FAIL','className','endColumn','/universer-api/comb','_removeClearOtherTimer','[CollaborationEntity]','isActive','getCollabEntity','_onConflict','switchMap','_HTTPService','_socketService','createElement','Plugin','isArray','SnapshotService','UNRECOGNIZED','fromEventSubject','_remoteChangesetQueue','UNIVER_COLLABORATION_CLIENT_PLUGIN','conflict.content','addObjects','Steady','save','_incrementRevisionNumber','moveTo','displayName','_singleActiveUnitService','HEADER_MENU','requireSession','isInternalEditorID','disposeWithMe','IMEInputManagerService','ImageSourceType','fillText','onSendChangeset','selections','transformSelections','registerRenderModule','forEach','ONLINE','propertyIsEnumerable','collab-client.tooltip.reconnect','#fff','getMemberID','sessionStatus','_disabled','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','ERROR_EXCEED_SIZE','_transitionLocked','_sheetTransformSelectionsService','100035ZuECuX','onMissedChangesetFetched','registerComponent','_entities','PERMISSION_DENIED','includes','awaiting','sheetId','UUID','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','toString','_executeRemoteChangeset','_univerInstanceService','COLLAB_SUBMIT_CHANGESET_URL','_removeCollabCursors','objectActions','onRendered','href','getCollabCursors$','conflict','DEFAULT_FILE_NAME','subUnitId','PSEUDO_FETCH_MISSING_RESULT','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_socketReady','addObject','CollaborationSession','collaboration_new_changeset','addEventListener','_saveTaskMap','_drawTextRange','editingUnit','getValue','min','_injector','apply','handleIRemoveRow','_getAPIPrefix','_unlockTransition','Disposable','save\x20fail\x20reason\x20is\x20','LIVESHARE_REQUEST_HOST','_init','getUniverSheetInstance','image/bmp','onlineStatus','compose','_getSnapshotAPIPrefix','_commentService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','pushState','[PendingState]:\x20received\x20rejection.','prototype','_refRangeService','RETRY_CONNECTING_MAX_COUNT','transform','location','_configService','UPDATE_PERMISSION_OBJ','connectInjector','black','LIVESHARE_TERMINATE','clear','handleDeleteRangeMoveUp','_onUserLeave','getOffsetConfig','_createHandler','50711emghEA','[PendingState]:\x20received\x20acknowledgement.','PERMISSION_REJ','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','runRefRangeMutations','assign','_members','exhaustSavingTask','Inject','_removeRoom','_sheetSkeletonManagerService','_startDocCollabCursor','updatePermissionObjEvent','XHRHTTPImplementation','UniverCollaborationClientPlugin','/rev/','Vector2','code','_transformStack','_collaborationPaused','_cursor','[UniverCollaborationClientPlugin]','Starting','USERS_ENTER','CHANGESET_ACK','extend','currentColor','[CollaborationState]:\x20apply\x20error!','_color','_listenToOnlineEvent','localeService','_undoRedoService','Rect','max','onRemoteRej','LICENSE_DISTRO_REJECTED','_onCombEvent','startRow','HEARTBEAT_INTERVAL_KEY','_transformUndoRedoStack','resend','transformMutation','throttleTime','_retryConnectingTimer','_transformPreviousActiveRange','NEW_CHANGESETS','labelPosition','_showConflictNotification','_online','all','SnapshotServerOverHTTPService','disableLocalCache','newValue','_ensureSubject','_waitCount','attrs','IMessageService','json','_createSocket','_telemetryInfo','_revisionService','params','getUndoRedoMutationParamsCache','unknown','getCurrentSelections','_waitForHeartbeatResponse','univer-online','clearInterval','_notificationService','collaboration-client.config','RegularPolygon','_commandService','jiqing500','clipPath','getCurrentRevForDocument','FETCH_MISSING','APPLY_PERMISSION_DENIED','deserializeToCombResponse','_clearCollaborationTimeoutTimer','_getScale','_onMessage','collab-text-range-','error$','mapDocumentTypeToUniverType','@univerjs/core','UniverInstanceType','HELLO','from','memberID','Tooltip','RxDisposable','_instanceService','collabStatus.conflict','map','state$','ImageIoService','SheetCollabCursorShape','loadDoc','_backgroundColor','@univerjs/telemetry','\x0aAfter:\x20','/block/','get','INotificationService','SUCCUSS','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','onMissingChangesets','find','_setupSubUnitSync','?size=','listRoles','MUTATION','AuthzIoHttpService','values','_fetchMissChangesets','resolve','_setupBeforeClosingHandler','init','ws://127.0.0.1:8000/universer-api/comb/connect','[OfflineState]:\x20received\x20rejection.','getOwnPropertyDescriptor','close$','pauseCollaboration','socket\x20open.','\x20-\x20','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','awaitingChangeset','slice','SetWorksheetActivateCommand','awaiting_with_pending','_retryCount','_initUnitPermissionChange','InsertRangeMoveRightCommandId','_ws','backgroundColor','red300','error','initWorkbookPermissionChange','not_collab','LIVESHARE_NEW_HOST','USERS_LEAVE','SNAPSHOT_SERVER_URL_KEY','close','_initStatusComponent','encode','LEAVE','\x20to\x20','@univerjs/sheets-ui','EffectRefRangId','createInstance','baseRev','forwardRef','_anchor','/-/object/-/batch_allowed','getActiveSheet','_saveCache','open$','setWaitCount','_initStatusListener','cmd','NOT_FOUND','next','m1Prime','shouldCloseConn','getCollabEntity$','parseProtocolChangeset','mutations','_scheduleHeartbeat','_hover','UniverCollaborationPlugin','_handleHover','univerjs-icon\x20univerjs-icon-','patch','event$','getOwnPropertySymbols','_socketMessageSubscription','_session','_loadSheet','makeDirty','HttpExport','urlChange$','handleInsertRow','_docStateChangeManagerService','sheetID','_transformUndoredo','defs','getMember','_getSendChangesetTimeout','_startCollaboration','measureText','BASE64','_startTelemetryCollaborationNewChangeset','roles','drawWith','_clearLocalCache','stopTime','push','_imageSourceCache','getCurrentUnitForType','unitID','_entityInit$','JOIN','7UALZOx','_updateURLWithCurrentState','current','_getCtorByUniverType','_document','[CollaborationSession]','getTypeOfUnitDisposed$','IHTTPImplementation','gold400','_type','replace','update','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_name','getSheetId','collabStatus.fetchMiss','updateCollaborator','OTHER_CLIENTS_EDITING','YUUMI_RATE_OVER_LIMIT','_transformSelections','/object/','getTypeOfUnitAdded$','unitId','getUnhiddenWorksheets','responseType','InsertRowCommandId','_docSkeleton','_logService','random','trim','_initResize','split','enableSingleActiveInstanceLock','_onRefRangeChange','_initCloseConn','OFFLINE','_collaborationTimeoutTimer','width','handleInsertRangeMoveDown','OnLineSingle','@univerjs/engine-formula','[CollaborationSessionService]','setShapeProps','getSheetBySheetId','LocalCacheService','LOGIN_URL_KEY','unit-cache-','svg','color','toggleOnline','M0\x200H16V16H0z','SetDocZoomRatioOperation','concat','onCommentUpdate','&to=','_socket','generateRandomId','CollaborationEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','off-line-single_clip0_910_343','requestParams','INGEST','FETCH_MISS','/universer-api/file/{fileID}/sign-url','LifecycleStages','_initModules','merge','appendMutation','INVALID_ARGUMENT','socketService','stringify','...','handleMoveRange','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','EXCHANGE_SIGN_URL_SERVER_URL_KEY','IUndoRedoService','ISnapshotServerService','isTransformMutationsWithChangesetFailure','_onJoinRoomEvent','size','objectType','round','_transformService','currentTheme$','_http','LocalUndoRedoService','conflict.title','_clearScheduledTask','SheetPermissionInitController','_createInitialStateImpl','/new_changes','_disableEditing','clearTimeout','_beforeCloseService','@univerjs/engine-render','_clearTimeoutTimer','_getLoginPath','xlink:href','interceptor','IBeforeCloseService','SUBMIT_CHANGESET','title','COLLAB_WEB_SOCKET_URL','_themeService','getMergeData','_scene','colorChannel1','closePath','send','createSocket','CollaborationStatusDisplay','toggleOffline','VIEWPORT_KEY','CollaborationEntity','textRanges','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/universer-api/snapshot/','_pendingMutations','connection\x20error','activeSheet$','offline','SHOULD_CLOSE_CONN','IUniverInstanceService','onload','setActiveRange','_unitOnClients','session','_textBubble','CONFLICT','ERROR_IMAGE','_replayCachedMutations','_clearOtherTimers','Shape','LOCAL_CACHE_INTERVAL_KEY','collab-rect-range-','capture','getInterceptPoints','setUndoRedoMutationParamsCache','/object','AUTHZ_URL_KEY','_scheduleClearOtherTimer','onTransformIME','SEND_CHANGESET_TIMEOUT_KEY','entries','/universer-api/oidc/authpage','createIdentifier','InsertRangeMoveDownCommandId','IConfigService','_getMergeRange','readAsDataURL','_initMergeInterceptor','defineProperty','useDependency','status','_sendingTimer','YUUMI_URL_COL_OUT_OF_RANGE','_updateCollabCursors','batchAllowed','originalMeta','DisposableCollection','session.connection-failed','updatePermissionPoint','[CollaborationUndoRedoService]','COMPLETION_FINISHED','_localeService','LIVESHARE_OPERATION','/universer-api/authz','_docTransformIMECacheService','transformIMECache','debounceTime','MergeInterceptorFactory','_redoStacks','UNIVER_PROJECT','joinEvent','reject','setAlpha','_permissionService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_getAPIPrefixPath','sessionStatus$','_awaitingChangeset','fromEvent','_submitChangeset','_syncEditingCollabCursorService','_updateStatus','[OfflineState]:\x20received\x20changeset.','incrementRevForDocument','ITransformService','_memberService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','transformUndoRedo','_clearUndo','_refreshCollabCursors','_hideTimer','CompressMutationService','complete','getCurrent','synced','_anchorDot','arc','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','triggerDblclick','Warning','allowed','removeMember','debug','HEARTBEAT_TIMEOUT','history','collabCursorState$','_stopTelemetryCollaborationNewChangeset','_queuedRemoteChangesets','HTTPService','csRejEvent','\x0aCurrent:\x20','subunit','DesktopCollaborationStatusDisplayController','UNIVER_SLIDE','popstate','message$','storage','has','shareReplay','collaborators','session.will-retry','16852Vihkgk','_sessionStatus$','UnitEmbedded','result','@univerjs-pro/collaboration','now','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','_collabSessionService','_getAnchorBounding','isPermissionRej','unshift','_substituteRedoStack','_transformRemoteChangesetByIMECache','_clearHeartbeatTimer','@univerjs/ui','POST','getUnitType','removeEventListener','currentSkeleton$','onCommandExecuted','fromCollab','/universer-api/snapshot','dispose$','collabStatus.offline','asObservable','src','HEARTBEAT_INTERVAL','UnitSnapshot','roomInfos','InsertSheetMutation','BehaviorSubject','Unknown\x20user','verdancy600','_urlService','status$','onMouseMove','skeleton','_onRemoteACK','Tools','replaceTextRanges','registerOnClose','transformMutationsWithChangeset','_startSheetCollabCursor','Workbook','pluginName','Injector','_userManagerService','actions','4475210QsVNIY','_scheduleCollaborationTimeoutTimer','IURLService','loadSheet','fetch_missing','lineTo','APPLY_REVISION_CONFILICT','MSG_FOR_ERROR','toRgbString','_colorIndex','_config','updateOfflineData','_localStorageService','doc.mutation.rich-text-editing','rgba(255,\x20255,\x20255,\x200.01)','62802OXLvSq','handleIRemoveCol','_range','combineLatest','PENDING','_sessions','updateCursorEvent','snapshot','handleInsertRangeMoveRight','UNIVER_SHEET','IUIPartsService','COLLAB_WEB_SOCKET_URL_KEY','WebSocketService','function','unit','takeUntil','_roomMembers','DocCollaborationEntity','getRangePointData','fill','transformChangesets','defIds','CollaborationController','_messageService','ILocalStorageService','_checkMissing','DependentOn'];_0x2d86=function(){return _0x2ed87d;};return _0x2d86();}const Ke=a['createIdentifier']('uni.network.url-service');var Ri=Object[_0x4f35dc(0x305)],Oi=Object[_0x4f35dc(0x21c)],Di=(_0x42adf3,_0x3a1304,_0x206dae,_0x3a53bc)=>{const _0xfecd08=_0x4f35dc;for(var _0x49da75=_0x3a53bc>0x1?void 0x0:_0x3a53bc?Oi(_0x3a1304,_0x206dae):_0x3a1304,_0xf564da=_0x42adf3[_0xfecd08(0x3a9)]-0x1,_0x338ad7;_0xf564da>=0x0;_0xf564da--)(_0x338ad7=_0x42adf3[_0xf564da])&&(_0x49da75=(_0x3a53bc?_0x338ad7(_0x3a1304,_0x206dae,_0x49da75):_0x338ad7(_0x49da75))||_0x49da75);return _0x3a53bc&&_0x49da75&&Ri(_0x3a1304,_0x206dae,_0x49da75),_0x49da75;},Z=(_0x5bcd25,_0x4248a2)=>(_0x565ef2,_0x325a6c)=>_0x4248a2(_0x565ef2,_0x325a6c,_0x5bcd25);exports[_0x4f35dc(0x409)]=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x36f050,_0x4b7911,_0x43d4d8,_0x4e4387,_0x1827bb,_0x19c96b){const _0x2ff7e3=_0x4f35dc;super(),this[_0x2ff7e3(0x36f)]=_0x36f050,this['_logService']=_0x4b7911,this[_0x2ff7e3(0x1eb)]=_0x43d4d8,this[_0x2ff7e3(0x423)]=_0x4e4387,this[_0x2ff7e3(0x429)]=_0x1827bb,_0x19c96b?_0x19c96b==null||_0x19c96b['whenReady']()['then'](()=>this['_init']()):(this[_0x2ff7e3(0x289)][_0x2ff7e3(0x33b)](_0x2ff7e3(0x504),_0x2ff7e3(0x221)),this['_init']());}async[_0x4f35dc(0x18b)](){const _0x12fbf6=_0x4f35dc,_0x2ca849=this['_urlService']['getParam'](_0x12fbf6(0x39b)),_0x3a3c09=this[_0x12fbf6(0x36f)][_0x12fbf6(0x4f4)](_0x12fbf6(0x419));if(!_0x2ca849||!_0x3a3c09){this[_0x12fbf6(0x289)][_0x12fbf6(0x33b)](_0x12fbf6(0x504),_0x12fbf6(0x20d));return;}switch(Number(_0x3a3c09)){case A[_0x12fbf6(0x396)]:{const _0x2933da=await this[_0x12fbf6(0x255)](_0x2ca849);this[_0x12fbf6(0x210)](_0x2933da);break;}case A['UNIVER_DOC']:{await this[_0x12fbf6(0x3c3)](_0x2ca849);break;}default:{this[_0x12fbf6(0x289)][_0x12fbf6(0x22c)](_0x12fbf6(0x504),_0x12fbf6(0x2e1));break;}}}async[_0x4f35dc(0x210)](_0x2451f8){const _0x3ab09b=_0x4f35dc;await this[_0x3ab09b(0x4a2)](_0x2451f8),_0x2451f8[_0x3ab09b(0x2e5)][_0x3ab09b(0x49c)](v[_0x3ab09b(0x39c)](this[_0x3ab09b(0x364)]))['subscribe'](_0x47686f=>{const _0x3e8a76=_0x3ab09b;_0x47686f&&this[_0x3e8a76(0x26f)](_0x47686f);}),this[_0x3ab09b(0x36f)]['urlChange$']['pipe'](v[_0x3ab09b(0x39c)](this['dispose$']))[_0x3ab09b(0x4df)](()=>this[_0x3ab09b(0x4a2)](_0x2451f8));}[_0x4f35dc(0x26f)](_0xf5f907,_0x18b63e=!0x1){const _0x21597b=_0x4f35dc,_0x124575=this[_0x21597b(0x36f)][_0x21597b(0x4f4)](_0x21597b(0x344));_0xf5f907[_0x21597b(0x27c)]()!==_0x124575&&this[_0x21597b(0x36f)][_0x21597b(0x4b7)](_0x21597b(0x344),_0xf5f907[_0x21597b(0x27c)](),_0x18b63e);}async[_0x4f35dc(0x4a2)](_0x40c988){const _0x4af23a=_0x4f35dc;var _0x4f4292;const _0x1e1db0=this[_0x4af23a(0x36f)][_0x4af23a(0x4f4)](_0x4af23a(0x344));if(!_0x1e1db0||!_0x40c988[_0x4af23a(0x299)](_0x1e1db0)){const _0x1774b2=_0x40c988[_0x4af23a(0x285)]()[0x0],_0x260664=_0x40c988[_0x4af23a(0x299)](_0x1774b2);if(!_0x260664)return;this[_0x4af23a(0x26f)](_0x260664,!0x0),await this['_commandService'][_0x4af23a(0x3dc)](C[_0x4af23a(0x224)]['id'],{'unitId':_0x40c988[_0x4af23a(0x402)](),'subUnitId':_0x1774b2});return;}((_0x4f4292=_0x40c988[_0x4af23a(0x23e)]())==null?void 0x0:_0x4f4292[_0x4af23a(0x27c)]())!==_0x1e1db0&&await this[_0x4af23a(0x1eb)][_0x4af23a(0x3dc)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x40c988[_0x4af23a(0x402)](),'subUnitId':_0x1e1db0});}async[_0x4f35dc(0x255)](_0x122cfa){const _0x174c2d=_0x4f35dc;let _0x5b2b1a=0x0;const _0x3d7821=await this[_0x174c2d(0x423)]['loadOfflineData'](_0x122cfa);return _0x3d7821&&(_0x3d7821['awaitingChangeset']||_0x3d7821[_0x174c2d(0x24a)][_0x174c2d(0x3a9)]!==0x0)&&(_0x5b2b1a=_0x3d7821['rev']),_0x5b2b1a===0x0&&this['_logService'][_0x174c2d(0x33b)](_0x174c2d(0x504),_0x174c2d(0x178)),this['_snapshotService'][_0x174c2d(0x381)](_0x122cfa,_0x5b2b1a);}async['_loadDoc'](_0x143115){const _0x3e81c1=_0x4f35dc;let _0x42c680=0x0;const _0x5cd333=await this['_localCacheService'][_0x3e81c1(0x47b)](_0x143115);return _0x5cd333&&(_0x5cd333[_0x3e81c1(0x222)]||_0x5cd333[_0x3e81c1(0x24a)][_0x3e81c1(0x3a9)]!==0x0)&&(_0x42c680=_0x5cd333['rev']),_0x42c680===0x0&&this['_logService'][_0x3e81c1(0x33b)]('[DataLoaderController]',_0x3e81c1(0x178)),this['_snapshotService'][_0x3e81c1(0x205)](_0x143115,_0x42c680);}},exports[_0x4f35dc(0x409)]=Di([a[_0x4f35dc(0x439)](a[_0x4f35dc(0x2ae)][_0x4f35dc(0x1ba)],exports[_0x4f35dc(0x409)]),Z(0x0,Ke),Z(0x1,a[_0x4f35dc(0x428)]),Z(0x2,a[_0x4f35dc(0x3ed)]),Z(0x3,a['Inject'](exports[_0x4f35dc(0x29a)])),Z(0x4,a[_0x4f35dc(0x1ac)](_[_0x4f35dc(0x13d)])),Z(0x5,a['Optional'](Ft[_0x4f35dc(0x403)]))],exports[_0x4f35dc(0x409)]);var yi=Object[_0x4f35dc(0x305)],Pi=Object[_0x4f35dc(0x21c)],wi=(_0x3f18e8,_0x44a1cb,_0x596262,_0x2f37c)=>{for(var _0x5b7c5b=_0x2f37c>0x1?void 0x0:_0x2f37c?Pi(_0x44a1cb,_0x596262):_0x44a1cb,_0xc2b748=_0x3f18e8['length']-0x1,_0x56f735;_0xc2b748>=0x0;_0xc2b748--)(_0x56f735=_0x3f18e8[_0xc2b748])&&(_0x5b7c5b=(_0x2f37c?_0x56f735(_0x44a1cb,_0x596262,_0x5b7c5b):_0x56f735(_0x5b7c5b))||_0x5b7c5b);return _0x2f37c&&_0x5b7c5b&&yi(_0x44a1cb,_0x596262,_0x5b7c5b),_0x5b7c5b;},nt=(_0x5d2808,_0x340f9f)=>(_0x3d34b9,_0x382a23)=>_0x340f9f(_0x3d34b9,_0x382a23,_0x5d2808);const Ui=_0x4f35dc(0x175),Ni='Univer';let Se=class extends a[_0x4f35dc(0x188)]{constructor(_0x5c82a0,_0x4bff6f){super(),this['_univerInstanceService']=_0x5c82a0,this['_configService']=_0x4bff6f,this['_init']();}[_0x4f35dc(0x18b)](){const _0x48157d=_0x4f35dc;this[_0x48157d(0x14d)](a[_0x48157d(0x456)](this[_0x48157d(0x16d)][_0x48157d(0x3ef)][_0x48157d(0x4df)](()=>{const _0x20b785=_0x48157d;var _0x2db30c;const _0x2402de=this[_0x20b785(0x16d)][_0x20b785(0x42e)]();let _0x12737c=(_0x2db30c=this[_0x20b785(0x19a)]['getConfig'](Ui))!=null?_0x2db30c:Ni;_0x2402de instanceof a[_0x20b785(0x379)]&&(_0x12737c=_0x2402de[_0x20b785(0x3bc)]),document[_0x20b785(0x2d3)]=_0x12737c;})));}};Se=wi([a[_0x4f35dc(0x439)](a['LifecycleStages'][_0x4f35dc(0x44d)],Se),nt(0x0,a['IUniverInstanceService']),nt(0x1,a[_0x4f35dc(0x301)])],Se);var Mi=Object[_0x4f35dc(0x305)],Li=Object[_0x4f35dc(0x21c)],Ai=(_0x309d92,_0x141a14,_0x39f2a1,_0x3c2aa1)=>{const _0xa92d8f=_0x4f35dc;for(var _0x15000d=_0x3c2aa1>0x1?void 0x0:_0x3c2aa1?Li(_0x141a14,_0x39f2a1):_0x141a14,_0x2385b1=_0x309d92[_0xa92d8f(0x3a9)]-0x1,_0x1089f7;_0x2385b1>=0x0;_0x2385b1--)(_0x1089f7=_0x309d92[_0x2385b1])&&(_0x15000d=(_0x3c2aa1?_0x1089f7(_0x141a14,_0x39f2a1,_0x15000d):_0x1089f7(_0x15000d))||_0x15000d);return _0x3c2aa1&&_0x15000d&&Mi(_0x141a14,_0x39f2a1,_0x15000d),_0x15000d;},rt=(_0x2440d2,_0x360750)=>(_0xf48d1a,_0x5a43ff)=>_0x360750(_0xf48d1a,_0x5a43ff,_0x2440d2);exports[_0x4f35dc(0x1d6)]=class{constructor(_0x341512,_0x4b73eb){const _0x3880b8=_0x4f35dc;this[_0x3880b8(0x19a)]=_0x341512,this[_0x3880b8(0x3b8)]=_0x4b73eb;}async['getUnitOnRev'](_0x595039,_0x3353d4){const _0x5fa1a7=_0x4f35dc;var _0xe1c887;const {unitID:_0x2860b6,type:_0x4c970f,revision:_0x15c2d5=0x0}=_0x3353d4,_0x22b9ff=this[_0x5fa1a7(0x190)]()+'/'+_0x4c970f+'/unit/'+_0x2860b6+_0x5fa1a7(0x1b3)+_0x15c2d5,_0x4f2c65=(await this['_httpService'][_0x5fa1a7(0x20a)](_0x22b9ff))[_0x5fa1a7(0x3de)],_0x4f1e90=(_0xe1c887=_0x4f2c65[_0x5fa1a7(0x394)])==null?void 0x0:_0xe1c887['workbook'];if(_0x4f1e90){const _0x3f15e9=_0x4f1e90==null?void 0x0:_0x4f1e90['originalMeta'],_0x1bc23f=_['textEncoder'][_0x5fa1a7(0x234)](_[_0x5fa1a7(0x40d)](_0x3f15e9));_0x4f1e90[_0x5fa1a7(0x30c)]=_0x1bc23f,Object[_0x5fa1a7(0x2fd)](_0x4f1e90['sheets'])[_0x5fa1a7(0x155)](([,_0x1d0a3f])=>{const _0x39ce74=_0x5fa1a7,_0x562b9e=_0x1d0a3f[_0x39ce74(0x30c)],_0x87638b=_['textEncoder'][_0x39ce74(0x234)](_['b64DecodeUnicode'](_0x562b9e));_0x1d0a3f[_0x39ce74(0x30c)]=_0x87638b;});}return _0x4f2c65;}async[_0x4f35dc(0x3d6)](_0x145a66,_0x1ffdc2){const _0x4308fc=_0x4f35dc,{unitID:_0x67792f,type:_0xc83269,blockID:_0x2524bd}=_0x1ffdc2,_0x1d90dd=this[_0x4308fc(0x186)]()+'/'+_0xc83269+_0x4308fc(0x41f)+_0x67792f+_0x4308fc(0x209)+_0x2524bd;return(await this[_0x4308fc(0x3b8)][_0x4308fc(0x20a)](_0x1d90dd))[_0x4308fc(0x3de)];}async['fetchMissingChangesets'](_0x1d31f5,_0x572048){const _0x304fd1=_0x4f35dc,{unitID:_0x531159,type:_0x80af41,from:_0x35c566,to:_0x2375a4}=_0x572048,_0x130b5d=this['_getAPIPrefix']()+'/'+_0x80af41+_0x304fd1(0x41f)+_0x531159+_0x304fd1(0x4f5)+_0x35c566+_0x304fd1(0x2a4)+_0x2375a4;return(await this[_0x304fd1(0x3b8)]['get'](_0x130b5d))[_0x304fd1(0x3de)];}['_getSnapshotAPIPrefix'](){const _0x10c0a0=_0x4f35dc;var _0x1006fa;return(_0x1006fa=this[_0x10c0a0(0x19a)]['getConfig'](lt))!=null?_0x1006fa:this[_0x10c0a0(0x186)]();}[_0x4f35dc(0x186)](){const _0x265bd2=_0x4f35dc;var _0x5747a5;return(_0x5747a5=this[_0x265bd2(0x19a)]['getConfig'](ct))!=null?_0x5747a5:Wt;}async[_0x4f35dc(0x412)](_0x27168b,_0x45cfd8){const _0xca96c9=_0x4f35dc,_0x47dc1a=_0xca96c9(0x2e2)+_0x45cfd8[_0xca96c9(0x419)]+_0xca96c9(0x41f)+_0x45cfd8[_0xca96c9(0x26b)]+'/resources';return(await this['_httpService'][_0xca96c9(0x20a)](_0x47dc1a,{'params':{'resourceId':JSON['stringify'](_0x45cfd8['resourceIDs'])}}))[_0xca96c9(0x3de)];}['saveSnapshot'](){const _0x57065b=_0x4f35dc;throw new Error(_0x57065b(0x15d));}[_0x4f35dc(0x4b9)](){const _0x352d59=_0x4f35dc;throw new Error(_0x352d59(0x15d));}['saveChangeset'](){const _0x55cb8d=_0x4f35dc;throw new Error(_0x55cb8d(0x15d));}},exports[_0x4f35dc(0x1d6)]=Ai([rt(0x0,a['IConfigService']),rt(0x1,a[_0x4f35dc(0x1ac)](U[_0x4f35dc(0x341)]))],exports[_0x4f35dc(0x1d6)]);var ji=Object[_0x4f35dc(0x305)],$i=Object[_0x4f35dc(0x21c)],xi=(_0x1a2e0b,_0x41c6e5,_0xf7b3b4,_0x490ff1)=>{const _0x2bc6b4=_0x4f35dc;for(var _0x2d6afa=_0x490ff1>0x1?void 0x0:_0x490ff1?$i(_0x41c6e5,_0xf7b3b4):_0x41c6e5,_0x38baca=_0x1a2e0b[_0x2bc6b4(0x3a9)]-0x1,_0x57aa10;_0x38baca>=0x0;_0x38baca--)(_0x57aa10=_0x1a2e0b[_0x38baca])&&(_0x2d6afa=(_0x490ff1?_0x57aa10(_0x41c6e5,_0xf7b3b4,_0x2d6afa):_0x57aa10(_0x2d6afa))||_0x2d6afa);return _0x490ff1&&_0x2d6afa&&ji(_0x41c6e5,_0xf7b3b4,_0x2d6afa),_0x2d6afa;},ae=(_0x12dbac,_0xd3e5ef)=>(_0x350376,_0x5423cc)=>_0xd3e5ef(_0x350376,_0x5423cc,_0x12dbac);let $e=class extends a[_0x4f35dc(0x2c3)]{constructor(_0x52c6d4,_0x241249,_0x34aaae,_0x448734,_0x4bb30f){const _0x5de5dc=_0x4f35dc;super(_0x52c6d4,_0x241249,_0x34aaae),this[_0x5de5dc(0x2c0)]=_0x448734,this[_0x5de5dc(0x289)]=_0x4bb30f;}[_0x4f35dc(0x32c)](_0x3d902f,_0x26b826){const _0x54e9d9=_0x4f35dc,_0x38552c=this[_0x54e9d9(0x4cb)](_0x3d902f);if(_0x38552c)try{const _0x1ea033=this[_0x54e9d9(0x1b6)](_0x38552c,_0x26b826);this['_substituteUndoStack'](_0x3d902f,_0x1ea033);}catch(_0x5a0f20){this[_0x54e9d9(0x289)]['error']('[CollaborationUndoRedoService]',_0x5a0f20),this['_clearUndo'](_0x3d902f);}const _0x4490bc=this[_0x54e9d9(0x4ea)](_0x3d902f);if(_0x4490bc)try{const _0x2a2f2a=this[_0x54e9d9(0x1b6)](_0x4490bc,_0x26b826);this[_0x54e9d9(0x359)](_0x3d902f,_0x2a2f2a);}catch(_0x55a29b){this[_0x54e9d9(0x289)][_0x54e9d9(0x22c)](_0x55a29b),this['_clearRedo'](_0x3d902f);}}[_0x4f35dc(0x32d)](_0x52766f){const _0x1129bd=_0x4f35dc,_0x2390e4=this['_getUndoStack'](_0x52766f);_0x2390e4&&(_0x2390e4[_0x1129bd(0x3a9)]=0x0,this[_0x1129bd(0x326)]());}[_0x4f35dc(0x3ab)](_0x14550b){const _0x36620a=_0x4f35dc,_0x18b8a0=this['_getRedoStack'](_0x14550b);_0x18b8a0&&(_0x18b8a0['length']=0x0,this[_0x36620a(0x326)]());}[_0x4f35dc(0x47e)](_0x5918dd,_0x38645e){const _0x5e1b47=_0x4f35dc;this[_0x5e1b47(0x3f3)][_0x5e1b47(0x4fa)](_0x5918dd,_0x38645e),this[_0x5e1b47(0x326)]();}['_substituteRedoStack'](_0x24f02b,_0xc23efc){const _0x95676b=_0x4f35dc;this[_0x95676b(0x319)][_0x95676b(0x4fa)](_0x24f02b,_0xc23efc),this['_updateStatus']();}[_0x4f35dc(0x1b6)](_0x76a55b,_0x44870c){const _0x447f5d=_0x4f35dc,_0x4fd2fa=[];let _0x16ada5=_0x44870c,_0x154dbc=_0x44870c;for(let _0x7d27fa=_0x76a55b[_0x447f5d(0x3a9)]-0x1;_0x7d27fa>=0x0;_0x7d27fa--){const {unitID:_0x388b9a,undoMutations:_0x278e5a,redoMutations:_0x268720}=_0x76a55b[_0x7d27fa],_0x5993a0=this['_transformService'][_0x447f5d(0x377)](_0x16ada5,_0x278e5a),_0x34dd7b=this[_0x447f5d(0x2c0)][_0x447f5d(0x377)](_0x154dbc,_0x268720);if(_[_0x447f5d(0x2bb)](_0x5993a0)||_['isTransformMutationsWithChangesetFailure'](_0x34dd7b)){this[_0x447f5d(0x289)][_0x447f5d(0x22c)](_0x447f5d(0x310),'transformStack\x20failed!',_0x5993a0,_0x34dd7b);break;}_0x16ada5=_0x5993a0['c1Prime'],_0x154dbc=_0x34dd7b[_0x447f5d(0x407)],_0x4fd2fa[_0x447f5d(0x268)]({'unitID':_0x388b9a,'undoMutations':_0x5993a0[_0x447f5d(0x3c7)],'redoMutations':_0x34dd7b[_0x447f5d(0x3c7)]});}return _0x4fd2fa['reverse']();}};$e=xi([ae(0x0,a[_0x4f35dc(0x2e8)]),ae(0x1,a[_0x4f35dc(0x3ed)]),ae(0x2,a[_0x4f35dc(0x492)]),ae(0x3,_[_0x4f35dc(0x329)]),ae(0x4,a[_0x4f35dc(0x428)])],$e);class Ut extends a[_0x4f35dc(0x1fe)]{constructor(){const _0x48f161=_0x4f35dc;super(),d(this,_0x48f161(0x258)),this['urlChange$']=v[_0x48f161(0x323)](window,_0x48f161(0x347))[_0x48f161(0x49c)](v[_0x48f161(0x39c)](this[_0x48f161(0x364)]),v[_0x48f161(0x34b)](0x1),v['mapTo'](void 0x0));}['setParam'](_0x5b83ce,_0xfbb5d7,_0x521c91=!0x1){const _0x480c70=_0x4f35dc,_0xb969e6=new URL(window[_0x480c70(0x199)]['href']);_0xb969e6[_0x480c70(0x495)]['set'](_0x5b83ce,_0xfbb5d7),_0x521c91?window['history'][_0x480c70(0x451)]('','',_0xb969e6[_0x480c70(0x16b)]()):window[_0x480c70(0x33d)]['pushState']('','',_0xb969e6[_0x480c70(0x16b)]());}['removeParam'](_0x116d4c,_0xaf5713=!0x1){const _0xb9c882=_0x4f35dc,_0x4a975b=new URL(window[_0xb9c882(0x199)]['href']);_0x4a975b['searchParams']['delete'](_0x116d4c),_0xaf5713?window[_0xb9c882(0x33d)][_0xb9c882(0x451)]('','',_0x4a975b[_0xb9c882(0x16b)]()):window[_0xb9c882(0x33d)][_0xb9c882(0x193)]('','',_0x4a975b[_0xb9c882(0x16b)]());}[_0x4f35dc(0x4f4)](_0x3f1e70){const _0x396be1=_0x4f35dc;var _0x3884e4;return(_0x3884e4=new URL(window[_0x396be1(0x199)][_0x396be1(0x172)])['searchParams'][_0x396be1(0x20a)](_0x3f1e70))!=null?_0x3884e4:void 0x0;}}const we=_0x4f35dc(0x42c),Hi=_0x4f35dc(0x1f5),ki=_0x4f35dc(0x2f4),ce=0x6,Bi=1.5,Ue=0x4,Vi=1.5,Fi=_0x4f35dc(0x38c);class ot{constructor(_0x54b0f7,_0x14a538,_0x90678c,_0x4606f3){const _0x2e851d=_0x4f35dc;d(this,_0x2e851d(0x12b),[]),d(this,_0x2e851d(0x23c),null),d(this,_0x2e851d(0x2ed),null),d(this,_0x2e851d(0x334),null),d(this,_0x2e851d(0x32f),null),d(this,_0x2e851d(0x3c8),null),(this[_0x2e851d(0x1b8)]=_0x54b0f7,this[_0x2e851d(0x2d7)]=_0x14a538,this[_0x2e851d(0x288)]=_0x90678c,this[_0x2e851d(0x272)]=_0x4606f3,this[_0x2e851d(0x473)]());}set[_0x4f35dc(0x24c)](_0x13c022){const _0x54a632=_0x4f35dc;_0x13c022?(this[_0x54a632(0x334)]&&this[_0x54a632(0x334)]['hide'](),this[_0x54a632(0x2ed)]&&this[_0x54a632(0x2ed)][_0x54a632(0x50c)]()):(this['_anchorDot']&&this['_anchorDot']['show'](),this['_textBubble']&&this[_0x54a632(0x2ed)]['hide']());}[_0x4f35dc(0x3cc)](){const _0x36f626=_0x4f35dc;for(const _0x12c9c3 of this['_shapes'])_0x12c9c3['dispose']();this[_0x36f626(0x2ed)]&&this[_0x36f626(0x2ed)][_0x36f626(0x3cc)](),this[_0x36f626(0x334)]&&this[_0x36f626(0x334)]['dispose'](),this[_0x36f626(0x23c)]&&this['_anchor']['dispose'](),this[_0x36f626(0x3c8)]&&this['_eventUnsubscribe']();}[_0x4f35dc(0x473)](){const _0x5280cd=_0x4f35dc;var _0x14ff8a;const {_docSkeleton:_0x5c5c4f,_document:_0x100a42}=this,{color:_0xa96cb8,name:_0x10c19f,ranges:_0x67d242}=this[_0x5280cd(0x1b8)],_0x5dfc33=_0x100a42[_0x5280cd(0x1a2)](),{docsLeft:_0x4e3bc3,docsTop:_0x44efc9}=_0x5dfc33,_0x5cdf62=new b['NodePositionConvertToCursor'](_0x5dfc33,_0x5c5c4f);for(const {startOffset:_0x3ec901,endOffset:_0x94077,collapsed:_0x52cf3c,isActive:_0x5c04a2}of _0x67d242){const _0x9206a8=_0x5c5c4f['findNodePositionByCharIndex'](_0x3ec901),_0x3a6431=_0x5c5c4f[_0x5280cd(0x4ce)](_0x94077);if(_0x5c04a2){const {contentBoxPointGroup:_0x576b56}=_0x5cdf62[_0x5280cd(0x39f)](_0x3a6431,_0x3a6431);if(_0x576b56['length']===0x0)continue;this[_0x5280cd(0x420)](_0xa96cb8,_0x576b56,_0x4e3bc3,_0x44efc9,_0x10c19f),this[_0x5280cd(0x3c8)]=this[_0x5280cd(0x24e)]();}if(!_0x52cf3c&&_0x9206a8&&_0x3a6431){if(b['isValidRectRange'](_0x9206a8,_0x3a6431)){const _0x4696aa=new b['NodePositionConvertToRectRange'](_0x5dfc33,_0x5c5c4f),{pointGroup:_0xd60c0c}=(_0x14ff8a=_0x4696aa[_0x5280cd(0x39f)](_0x9206a8,_0x3a6431))!=null?_0x14ff8a:{};if(_0xd60c0c==null||_0xd60c0c[_0x5280cd(0x3a9)]===0x0)continue;this[_0x5280cd(0x4e8)](_0xa96cb8,_0xd60c0c,_0x4e3bc3,_0x44efc9);}else{const {contentBoxPointGroup:_0x114907}=_0x5cdf62[_0x5280cd(0x39f)](_0x9206a8,_0x3a6431);if(_0x114907['length']===0x0)continue;this[_0x5280cd(0x17f)](_0xa96cb8,_0x114907,_0x4e3bc3,_0x44efc9);}}}}[_0x4f35dc(0x420)](_0x936ac6,_0x4feabd,_0x1c8b00,_0x2e6958,_0x2a591f){const _0x49a479=_0x4f35dc,_0x3e3be8=this[_0x49a479(0x356)](_0x4feabd),{left:_0x57e6e7,top:_0x2551da,height:_0x2b97ab}=_0x3e3be8,_0xe10dfc=this[_0x49a479(0x1f3)](),_0x12991e=Vi/_0xe10dfc,_0x12e642=new b[(_0x49a479(0x1c4))](we+a['Tools'][_0x49a479(0x2a6)](ce),{'left':_0x57e6e7+_0x1c8b00-_0x12991e,'top':_0x2551da+_0x2e6958,'height':_0x2b97ab,'width':Bi,'fill':_0x936ac6||b['getColor'](a[_0x49a479(0x521)][_0x49a479(0x19d)],0x0),'strokeWidth':_0x12991e,'stroke':Fi,'evented':!0x0});this[_0x49a479(0x23c)]=_0x12e642,this[_0x49a479(0x2d7)][_0x49a479(0x17a)](_0x12e642,b['TEXT_RANGE_LAYER_INDEX']);const _0x1ff48f=new b['Rect'](we+a[_0x49a479(0x374)][_0x49a479(0x2a6)](ce),{'left':_0x57e6e7+_0x1c8b00-_0x12991e,'top':_0x2551da+_0x2e6958-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x936ac6||b[_0x49a479(0x3f4)](a[_0x49a479(0x521)][_0x49a479(0x19d)],0x0),'strokeWidth':0x0,'stroke':_0x936ac6||b[_0x49a479(0x3f4)](a[_0x49a479(0x521)][_0x49a479(0x19d)],0x0),'evented':!0x1});this[_0x49a479(0x334)]=_0x1ff48f,this[_0x49a479(0x2d7)]['addObject'](_0x1ff48f,b[_0x49a479(0x3d4)]);const _0x4e707c=new Ee(we+a[_0x49a479(0x374)][_0x49a479(0x2a6)](ce),{'left':_0x57e6e7+_0x1c8b00-_0x12991e,'top':_0x2551da+_0x2e6958-he,'text':_0x2a591f,'color':_0x936ac6});this['_textBubble']=_0x4e707c,this[_0x49a479(0x2d7)][_0x49a479(0x17a)](_0x4e707c,b[_0x49a479(0x3d4)]),this[_0x49a479(0x24c)]=!0x1;}['_handleHover'](){const _0x59efc8=_0x4f35dc,_0x29e627=this[_0x59efc8(0x23c)][_0x59efc8(0x4d8)][_0x59efc8(0x4e4)](()=>{this['_hover']=!0x0;}),_0x3d58e6=this['_anchor']['onPointerLeave$'][_0x59efc8(0x4e4)](()=>{const _0x131c59=_0x59efc8;this[_0x131c59(0x32f)]&&clearTimeout(this['_hideTimer']),this[_0x131c59(0x32f)]=setTimeout(()=>{const _0x520183=_0x131c59;this[_0x520183(0x24c)]=!0x1;},0x7d0);});return()=>{const _0x20f23d=_0x59efc8;_0x29e627[_0x20f23d(0x3cd)](),_0x3d58e6[_0x20f23d(0x3cd)]();};}[_0x4f35dc(0x17f)](_0x74ce8,_0x5eba90,_0x3c8874,_0x58d3ba){const _0x2e0728=_0x4f35dc,_0xe72f05=new a['ColorKit'](_0x74ce8)[_0x2e0728(0x31d)](0.2)[_0x2e0728(0x386)](),_0x50165c=new b[(_0x2e0728(0x1ea))](Hi+a['Tools'][_0x2e0728(0x2a6)](ce),{'pointsGroup':_0x5eba90,'fill':_0xe72f05||b[_0x2e0728(0x3f4)](a[_0x2e0728(0x521)][_0x2e0728(0x19d)],0.2),'left':_0x3c8874,'top':_0x58d3ba,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2e0728(0x12b)]['push'](_0x50165c),this[_0x2e0728(0x2d7)][_0x2e0728(0x17a)](_0x50165c,b[_0x2e0728(0x3d4)]);}['_drawRectRange'](_0x56cc32,_0x567134,_0x2d8c9f,_0x309633){const _0x4be42d=_0x4f35dc,_0x164ddc=new a['ColorKit'](_0x56cc32)[_0x4be42d(0x31d)](0.2)[_0x4be42d(0x386)](),_0x414809=new b[(_0x4be42d(0x1ea))](ki+a[_0x4be42d(0x374)]['generateRandomId'](ce),{'pointsGroup':_0x567134,'fill':_0x164ddc||b[_0x4be42d(0x3f4)](a[_0x4be42d(0x521)][_0x4be42d(0x19d)],0.2),'left':_0x2d8c9f,'top':_0x309633,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4be42d(0x12b)][_0x4be42d(0x268)](_0x414809),this['_scene'][_0x4be42d(0x17a)](_0x414809,b['TEXT_RANGE_LAYER_INDEX']);}[_0x4f35dc(0x356)](_0x30452e){const _0x68e7b0=_0x30452e[0x0],_0x32a233=_0x68e7b0[0x0],_0x8a72f5=_0x68e7b0[0x2],{x:_0x5c80a4,y:_0x31e114}=_0x32a233,{x:_0x5d29bc,y:_0x3336bc}=_0x8a72f5;return{'left':_0x5c80a4,'top':_0x31e114,'width':_0x5d29bc-_0x5c80a4,'height':_0x3336bc-_0x31e114};}['_getScale'](){const _0x4efac5=_0x4f35dc,{scaleX:_0x38f552,scaleY:_0x453643}=this[_0x4efac5(0x2d7)][_0x4efac5(0x4c8)]();return Math['max'](_0x38f552,_0x453643);}}var Wi=Object['defineProperty'],Gi=Object[_0x4f35dc(0x21c)],Yi=(_0x1ca3a3,_0x4965e6,_0x1a8158,_0x2d0cc6)=>{const _0x59f159=_0x4f35dc;for(var _0x1deee9=_0x2d0cc6>0x1?void 0x0:_0x2d0cc6?Gi(_0x4965e6,_0x1a8158):_0x4965e6,_0x1f12f3=_0x1ca3a3[_0x59f159(0x3a9)]-0x1,_0x2d4510;_0x1f12f3>=0x0;_0x1f12f3--)(_0x2d4510=_0x1ca3a3[_0x1f12f3])&&(_0x1deee9=(_0x2d0cc6?_0x2d4510(_0x4965e6,_0x1a8158,_0x1deee9):_0x2d4510(_0x1deee9))||_0x1deee9);return _0x2d0cc6&&_0x1deee9&&Wi(_0x4965e6,_0x1a8158,_0x1deee9),_0x1deee9;},ue=(_0x478a24,_0x3e81f9)=>(_0x15d8a1,_0x184f02)=>_0x3e81f9(_0x15d8a1,_0x184f02,_0x478a24);let ve=class extends a[_0x4f35dc(0x1fe)]{constructor(_0xa1df83,_0x156c0a,_0x296f15,_0x3f743f,_0x283ad0){const _0x18c265=_0x4f35dc;super(),d(this,_0x18c265(0x3dd),[]),d(this,'_cursors',[]),(this['_context']=_0xa1df83,this[_0x18c265(0x4b3)]=_0x156c0a,this[_0x18c265(0x452)]=_0x296f15,this['_commandService']=_0x3f743f,this[_0x18c265(0x2d5)]=_0x283ad0,this[_0x18c265(0x18b)]());}[_0x4f35dc(0x18b)](){const _0x11c4eb=_0x4f35dc,_0x41198c=this[_0x11c4eb(0x462)][_0x11c4eb(0x284)],_0x4c650e=this['_docSkeletonManagerService'];this[_0x11c4eb(0x14d)](v[_0x11c4eb(0x390)]([this['_collabCursorController'][_0x11c4eb(0x173)](_0x41198c),this['_themeService'][_0x11c4eb(0x2c1)]])[_0x11c4eb(0x49c)](E[_0x11c4eb(0x201)](([_0x43401f,_0x1e3ae6])=>({'skeleton':_0x4c650e[_0x11c4eb(0x3e0)](),'cursors':[..._0x43401f['values']()][_0x11c4eb(0x4cf)](_0x2f206d=>({..._0x2f206d,'color':_0x1e3ae6[_0x2f206d[_0x11c4eb(0x29e)]]}))})))[_0x11c4eb(0x4df)](_0x2ae920=>{const _0x429871=_0x11c4eb;if(this[_0x429871(0x16f)](),_0x2ae920){const {skeleton:_0x2b91fe,cursors:_0xe5ad97}=_0x2ae920;this[_0x429871(0x30a)](_0x2b91fe,_0xe5ad97);}})),this[_0x11c4eb(0x28c)](),this[_0x11c4eb(0x12a)]();}[_0x4f35dc(0x30a)](_0x54486c,_0x544cb2){const _0x3797a2=_0x4f35dc,{scene:_0x18b489,mainComponent:_0x39abca}=this['_context'],_0x522db1=_0x544cb2['map'](_0x49a8be=>new ot(_0x49a8be,_0x18b489,_0x54486c,_0x39abca));this[_0x3797a2(0x3dd)]=_0x522db1,this[_0x3797a2(0x4ad)]=_0x544cb2;}[_0x4f35dc(0x32e)](){const _0x16a794=_0x4f35dc;this['_removeCollabCursors']();const {scene:_0x366f11,mainComponent:_0x3eded2}=this[_0x16a794(0x462)],_0xf73d39=this[_0x16a794(0x4b3)][_0x16a794(0x3e0)](),_0x3f0f15=this[_0x16a794(0x4ad)][_0x16a794(0x201)](_0xda14cb=>new ot(_0xda14cb,_0x366f11,_0xf73d39,_0x3eded2));this[_0x16a794(0x3dd)]=_0x3f0f15;}['_removeCollabCursors'](){const _0x1ae0db=_0x4f35dc;this[_0x1ae0db(0x3dd)][_0x1ae0db(0x155)](_0x163a9a=>_0x163a9a[_0x1ae0db(0x3cc)]()),this[_0x1ae0db(0x3dd)]=[];}[_0x4f35dc(0x12a)](){const _0x372c4c=_0x4f35dc,_0x12c7a4=[w[_0x372c4c(0x2a1)]['id']];this[_0x372c4c(0x14d)](this['_commandService']['onCommandExecuted'](_0x383914=>{const _0x2c0fd3=_0x372c4c;_0x12c7a4['includes'](_0x383914['id'])&&_0x383914[_0x2c0fd3(0x1e1)][_0x2c0fd3(0x284)]===this[_0x2c0fd3(0x462)][_0x2c0fd3(0x284)]&&this[_0x2c0fd3(0x32e)]();}));}[_0x4f35dc(0x28c)](){const _0x104ba9=_0x4f35dc;this[_0x104ba9(0x14d)](a[_0x104ba9(0x13f)](this[_0x104ba9(0x462)]['engine']['onTransformChange$'])['pipe'](E['filter'](_0x504352=>_0x504352[_0x104ba9(0x419)]===b['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x104ba9(0x3cf)]),E[_0x104ba9(0x1ce)](0x10))['subscribe'](()=>{const _0x4f302c=_0x104ba9;this[_0x4f302c(0x32e)]();}));}};ve=Yi([a[_0x4f35dc(0x439)](a['LifecycleStages'][_0x4f35dc(0x144)],ve),ue(0x1,a[_0x4f35dc(0x1ac)](w['DocSkeletonManagerService'])),ue(0x2,a['Inject'](ee)),ue(0x3,a[_0x4f35dc(0x3ed)]),ue(0x4,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x3fe)]))],ve);var Ki=Object[_0x4f35dc(0x305)],Xi=Object['getOwnPropertyDescriptor'],qi=(_0x4a632d,_0x23e635,_0x286743,_0x2977f2)=>{const _0x517d7a=_0x4f35dc;for(var _0xc08306=_0x2977f2>0x1?void 0x0:_0x2977f2?Xi(_0x23e635,_0x286743):_0x23e635,_0x15b2a6=_0x4a632d[_0x517d7a(0x3a9)]-0x1,_0x1ceed8;_0x15b2a6>=0x0;_0x15b2a6--)(_0x1ceed8=_0x4a632d[_0x15b2a6])&&(_0xc08306=(_0x2977f2?_0x1ceed8(_0x23e635,_0x286743,_0xc08306):_0x1ceed8(_0xc08306))||_0xc08306);return _0x2977f2&&_0xc08306&&Ki(_0x23e635,_0x286743,_0xc08306),_0xc08306;},Ne=(_0x35462b,_0x1cbeb1)=>(_0x4c7467,_0x3a70be)=>_0x1cbeb1(_0x4c7467,_0x3a70be,_0x35462b);let pe=class{constructor(_0x4148df,_0x3233d9,_0x248542){const _0xc76f76=_0x4f35dc;this['_configService']=_0x4148df,this[_0xc76f76(0x3b8)]=_0x3233d9,this[_0xc76f76(0x1c2)]=_0x248542,this[_0xc76f76(0x219)]();}['init'](){const _0x4b7841=_0x4f35dc;this['_httpService'][_0x4b7841(0x51d)]({'priority':0x1,'interceptor':(_0x9de232,_0x3af5c5)=>_0x3af5c5(_0x9de232)[_0x4b7841(0x49c)](v[_0x4b7841(0x3f2)](async _0x57155e=>{const _0x251401=_0x4b7841,_0x400e47=_0x57155e;if(_0x400e47[_0x251401(0x307)]===0x191&&window[_0x251401(0x471)](this[_0x251401(0x1c2)]['t']('auth.needGotoLoginAlert'))){const _0x29473f=window[_0x251401(0x3d5)](window[_0x251401(0x199)]['href']);window[_0x251401(0x199)][_0x251401(0x172)]=this[_0x251401(0x2ce)]()+'?url='+_0x29473f;}return _0x400e47;}))});}[_0x4f35dc(0x2ce)](){const _0x4e7f32=_0x4f35dc;var _0x23deaa;return(_0x23deaa=this[_0x4e7f32(0x19a)][_0x4e7f32(0x3ac)](gt))!=null?_0x23deaa:Zt;}};pe=qi([Ne(0x0,a['IConfigService']),Ne(0x1,a[_0x4f35dc(0x1ac)](U[_0x4f35dc(0x341)])),Ne(0x2,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x43c)]))],pe);var zi=Object[_0x4f35dc(0x305)],Ji=Object[_0x4f35dc(0x21c)],Zi=(_0x448ddf,_0x3ffd31,_0x340143,_0x464c79)=>{for(var _0x42c910=_0x464c79>0x1?void 0x0:_0x464c79?Ji(_0x3ffd31,_0x340143):_0x3ffd31,_0x220807=_0x448ddf['length']-0x1,_0x4b43e5;_0x220807>=0x0;_0x220807--)(_0x4b43e5=_0x448ddf[_0x220807])&&(_0x42c910=(_0x464c79?_0x4b43e5(_0x3ffd31,_0x340143,_0x42c910):_0x4b43e5(_0x42c910))||_0x42c910);return _0x464c79&&_0x42c910&&zi(_0x3ffd31,_0x340143,_0x42c910),_0x42c910;},at=(_0x17671d,_0x10e489)=>(_0x3a2135,_0x4a4ec2)=>_0x10e489(_0x3a2135,_0x4a4ec2,_0x17671d);const Nt='AUTHZ_URL_KEY',Qi=_0x4f35dc(0x314);exports['AuthzIoHttpService']=class extends a[_0x4f35dc(0x188)]{constructor(_0x3170f3,_0x979352){const _0xc257a0=_0x4f35dc;super(),this['_HTTPService']=_0x3170f3,this[_0xc257a0(0x19a)]=_0x979352,this[_0xc257a0(0x304)]();}['_initMergeInterceptor'](){const _0x36f4df=_0x4f35dc,_0x106246=this;this[_0x36f4df(0x14d)](this[_0x36f4df(0x138)][_0x36f4df(0x51d)]({'priority':0x3e7,'interceptor':U[_0x36f4df(0x318)]({'isMatch'(_0x19c72d){const _0x1cff4d=_0x36f4df;var _0x10264a;if(_0x19c72d['method']===_0x1cff4d(0x35d)&&((_0x10264a=_0x19c72d['requestParams'])!=null&&_0x10264a[_0x1cff4d(0x3de)])){const {objectID:_0x3860e0,objectType:_0x82d4d8}=_0x19c72d['requestParams']['body']||{};if(!_0x3860e0||_0x82d4d8===void 0x0)return!0x1;const _0x1e0978=_0x106246[_0x1cff4d(0x320)]()+'/'+_0x82d4d8+_0x1cff4d(0x282)+_0x3860e0+'/allowed';if(_0x19c72d[_0x1cff4d(0x488)]===_0x1e0978)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x38ac1f){const _0xafc3b1=_0x36f4df;var _0x5e9514;return(_0x5e9514=_0x38ac1f[_0xafc3b1(0x2aa)])==null?void 0x0:_0x5e9514['body'];},'mergeParamsToRequest'(_0x539b4b,_0x875044){const _0x45a98b=_0x36f4df,_0x18dccf=_0x106246['_getAPIPrefixPath']()+_0x45a98b(0x23d),_0xbf8325=_0x539b4b[_0x45a98b(0x453)]((_0xbe7bef,_0x3e8dbb)=>{const _0x19fe0b=_0x45a98b,{unitID:_0x26f086,objectID:_0x26d5db,objectType:_0x263311,actions:_0x3b17e3}=_0x3e8dbb;return _0xbe7bef[_0x26f086]||(_0xbe7bef[_0x26f086]={}),_0xbe7bef[_0x26f086][_0x26d5db]||(_0xbe7bef[_0x26f086][_0x26d5db]={'objectID':_0x26d5db,'objectType':_0x263311,'actions':[]}),_0xbe7bef[_0x26f086][_0x26d5db][_0x19fe0b(0x37d)][_0x19fe0b(0x268)](..._0x3b17e3),_0xbe7bef;},{}),_0x51ede6=[];for(const _0x38c728 in _0xbf8325)for(const _0x2cf667 in _0xbf8325[_0x38c728]){const {actions:_0x1f8b8b,objectType:_0x4c8b90}=_0xbf8325[_0x38c728][_0x2cf667],_0x262a66=[...new Set(_0x1f8b8b)];_0x51ede6['push']({'unitID':_0x38c728,'objectID':_0x2cf667,'objectType':_0x4c8b90,'actions':_0x262a66});}return new U[(_0x45a98b(0x506))](_0x45a98b(0x35d),_0x18dccf,{'headers':_0x875044[_0x45a98b(0x3b6)],'withCredentials':_0x875044['withCredentials'],'responseType':_0x875044[_0x45a98b(0x286)],'body':{'requests':_0x51ede6}});}},{'distributeResult'(_0x296e9d,_0x26bd85){const {objectActions:_0xfa3006}=_0x296e9d;return _0x26bd85['map'](_0x3d9904=>{const _0x558aa0=_0x1935,{unitID:_0x3ae878,objectID:_0x3a5eff,actions:_0x5eedac}=_0x3d9904,_0xd126c1=_0xfa3006[_0x558aa0(0x20f)](_0x4abf1c=>_0x4abf1c[_0x558aa0(0x26b)]===_0x3ae878&&_0x4abf1c['objectID']===_0x3a5eff),_0x1710e9=_0x5eedac[_0x558aa0(0x201)](_0x373c4e=>_0xd126c1==null?void 0x0:_0xd126c1[_0x558aa0(0x37d)][_0x558aa0(0x20f)](_0x4b4ba8=>_0x4b4ba8['action']===_0x373c4e))[_0x558aa0(0x404)](_0x5a7ed2=>!!_0x5a7ed2);return{'config':_0x3d9904,'result':{'actions':_0x1710e9,'error':_0x296e9d[_0x558aa0(0x22c)]}};});}})}));}[_0x4f35dc(0x320)](){const _0x47a8b3=_0x4f35dc;var _0x4e5602;return(_0x4e5602=this[_0x47a8b3(0x19a)][_0x47a8b3(0x3ac)](Nt))!=null?_0x4e5602:Qi;}async[_0x4f35dc(0x48f)](_0x822428){const _0x231216=_0x4f35dc,_0x13665f=this[_0x231216(0x320)]()+'/'+_0x822428[_0x231216(0x2be)]+_0x231216(0x2f8);return(await this['_HTTPService'][_0x231216(0x46e)](_0x13665f,{'body':_0x822428}))[_0x231216(0x3de)][_0x231216(0x12d)]||'';}async[_0x4f35dc(0x501)](_0x25cef4){const _0x3d0eb6=_0x4f35dc,_0x336eab=this['_getAPIPrefixPath']()+_0x3d0eb6(0x4d2);return(await this['_HTTPService'][_0x3d0eb6(0x46e)](_0x336eab,{'body':_0x25cef4}))[_0x3d0eb6(0x3de)][_0x3d0eb6(0x45a)];}async[_0x4f35dc(0x279)](_0xb64377){const _0x203fab=_0x4f35dc,_0x2a9838=this[_0x203fab(0x320)]()+'/'+_0xb64377[_0x203fab(0x2be)]+_0x203fab(0x282)+_0xb64377[_0x203fab(0x12d)];await this[_0x203fab(0x138)][_0x203fab(0x4dd)](_0x2a9838,{'body':_0xb64377});}async[_0x4f35dc(0x339)](_0x376377){const _0x1530ec=_0x4f35dc,_0x59cfcb=this[_0x1530ec(0x320)]()+'/'+_0x376377[_0x1530ec(0x2be)]+_0x1530ec(0x282)+_0x376377[_0x1530ec(0x12d)]+'/allowed';return(await this[_0x1530ec(0x138)][_0x1530ec(0x46e)](_0x59cfcb,{'body':_0x376377}))[_0x1530ec(0x3de)]['actions'];}async[_0x4f35dc(0x30b)](_0x14387e){const _0x2e016a=_0x4f35dc,_0x2a2645=this['_getAPIPrefixPath']()+_0x2e016a(0x23d);return(await this[_0x2e016a(0x138)][_0x2e016a(0x46e)](_0x2a2645,{'body':{'requests':_0x14387e}}))[_0x2e016a(0x3de)][_0x2e016a(0x170)];}async[_0x4f35dc(0x212)](_0xe3cf4c){const _0x5c3134=_0x4f35dc,_0x110422=this['_getAPIPrefixPath']()+'/'+_0xe3cf4c['objectType']+'/role',_0xcaded7=await this[_0x5c3134(0x138)][_0x5c3134(0x46e)](_0x110422,{'body':_0xe3cf4c});return{'roles':_0xcaded7[_0x5c3134(0x3de)][_0x5c3134(0x264)],'actions':_0xcaded7[_0x5c3134(0x3de)][_0x5c3134(0x37d)]};}async[_0x4f35dc(0x51f)](_0x592f69){const _0x2c2b2c=_0x4f35dc,_0x570fdf=this[_0x2c2b2c(0x320)]()+_0x2c2b2c(0x4be);await this['_HTTPService'][_0x2c2b2c(0x424)](_0x570fdf,{'params':{'collaboratorID':_0x592f69[_0x2c2b2c(0x474)],'objectID':_0x592f69[_0x2c2b2c(0x12d)],'unitID':_0x592f69[_0x2c2b2c(0x26b)]}});}async[_0x4f35dc(0x27e)](_0x4dea3e){const _0x18c213=_0x4f35dc,_0x429edf=this['_getAPIPrefixPath']()+_0x18c213(0x4be);await this[_0x18c213(0x138)][_0x18c213(0x250)](_0x429edf,{'body':_0x4dea3e});}async['createCollaborator'](_0x2498ce){const _0xd2fe7c=_0x4f35dc,_0x5cb09b=this[_0xd2fe7c(0x320)]()+_0xd2fe7c(0x4be);await this[_0xd2fe7c(0x138)][_0xd2fe7c(0x46e)](_0x5cb09b,{'body':_0x2498ce});}async['listCollaborators'](_0x13b5be){const _0x712aec=_0x4f35dc,_0xa2dc1e=this[_0x712aec(0x320)]()+_0x712aec(0x4be);return(await this[_0x712aec(0x138)][_0x712aec(0x20a)](_0xa2dc1e,{'params':{'objectID':_0x13b5be[_0x712aec(0x12d)],'unitID':_0x13b5be[_0x712aec(0x26b)]}}))[_0x712aec(0x3de)][_0x712aec(0x34c)];}async['putCollaborators'](_0x103554){const _0x2fa142=_0x4f35dc,_0x3a6844=this[_0x2fa142(0x320)]()+_0x2fa142(0x4be);await this[_0x2fa142(0x138)]['put'](_0x3a6844,{'body':_0x103554});}},exports[_0x4f35dc(0x214)]=Zi([at(0x0,a[_0x4f35dc(0x1ac)](U[_0x4f35dc(0x341)])),at(0x1,a[_0x4f35dc(0x1ac)](a['IConfigService']))],exports[_0x4f35dc(0x214)]);var en=Object[_0x4f35dc(0x305)],tn=Object[_0x4f35dc(0x21c)],sn=(_0x3b06ef,_0x193531,_0x1e1ae1,_0x26b318)=>{const _0x57b7f2=_0x4f35dc;for(var _0x59f293=_0x26b318>0x1?void 0x0:_0x26b318?tn(_0x193531,_0x1e1ae1):_0x193531,_0x4f1028=_0x3b06ef[_0x57b7f2(0x3a9)]-0x1,_0x1863e6;_0x4f1028>=0x0;_0x4f1028--)(_0x1863e6=_0x3b06ef[_0x4f1028])&&(_0x59f293=(_0x26b318?_0x1863e6(_0x193531,_0x1e1ae1,_0x59f293):_0x1863e6(_0x59f293))||_0x59f293);return _0x26b318&&_0x59f293&&en(_0x193531,_0x1e1ae1,_0x59f293),_0x59f293;},Me=(_0x1f9d91,_0x4cd460)=>(_0x1c376e,_0x9532d5)=>_0x4cd460(_0x1c376e,_0x9532d5,_0x1f9d91);const nn=[_0x4f35dc(0x3c2),_0x4f35dc(0x3d0),'image/jpg','image/gif',_0x4f35dc(0x18d)],rn=0x5*0x400*0x400,on=_0x4f35dc(0x509),an='/universer-api/stream/file/upload',cn=_0x4f35dc(0x2b8),ln=_0x4f35dc(0x2ad);exports['ImageIoService']=class{constructor(_0x4b71cf,_0x2497ce,_0x22a79b){const _0xd3cb93=_0x4f35dc;d(this,_0xd3cb93(0x1da),0x0),d(this,_0xd3cb93(0x4aa),new v[(_0xd3cb93(0x4eb))]()),d(this,_0xd3cb93(0x475),this[_0xd3cb93(0x4aa)]),d(this,_0xd3cb93(0x269),new Map()),(this[_0xd3cb93(0x3b8)]=_0x4b71cf,this[_0xd3cb93(0x19a)]=_0x2497ce,this['_univerInstanceService']=_0x22a79b);}[_0x4f35dc(0x241)](_0x637d00){const _0x50935b=_0x4f35dc;this[_0x50935b(0x1da)]=_0x637d00,this[_0x50935b(0x4aa)][_0x50935b(0x245)](_0x637d00);}[_0x4f35dc(0x441)](_0xb3fcb8,_0xd83da9){const _0x2c7ebb=_0x4f35dc;if(_0xd83da9===L[_0x2c7ebb(0x14f)][_0x2c7ebb(0x262)]){const _0x4ad31a=new Image();return _0x4ad31a[_0x2c7ebb(0x367)]=_0xb3fcb8,_0x4ad31a;}return this[_0x2c7ebb(0x269)]['get'](_0xb3fcb8);}['addImageSourceCache'](_0xf19f0e,_0x4c984a,_0x5abf56){const _0x56aa5a=_0x4f35dc;_0x4c984a===L[_0x56aa5a(0x14f)][_0x56aa5a(0x262)]||_0x5abf56==null||this[_0x56aa5a(0x269)]['set'](_0xf19f0e,_0x5abf56);}async['getImage'](_0x372ede){const _0x3d3ff0=_0x4f35dc;try{const _0x55ea11=this['_replaceFileID'](this[_0x3d3ff0(0x43e)](),''+_0x372ede),_0x3fc473=(await this[_0x3d3ff0(0x3b8)]['get'](_0x55ea11))[_0x3d3ff0(0x3de)];return _0x3fc473[_0x3d3ff0(0x22c)]&&_0x3fc473['error'][_0x3d3ff0(0x1b5)]===It['OK']?Promise[_0x3d3ff0(0x217)](_0x3fc473['url']):Promise[_0x3d3ff0(0x31c)](_0x3fc473[_0x3d3ff0(0x22c)]);}catch(_0x20e929){return Promise[_0x3d3ff0(0x31c)](_0x20e929);}}async[_0x4f35dc(0x4ac)](_0x5066f2){const _0x1a82ff=_0x4f35dc;let _0x1a8220='';if(!nn[_0x1a82ff(0x166)](_0x5066f2['type']))return this['_decreaseWaiting'](),Promise[_0x1a82ff(0x31c)](new Error(L[_0x1a82ff(0x4e0)]['ERROR_IMAGE_TYPE']));if(_0x5066f2[_0x1a82ff(0x2bd)]>rn)return this[_0x1a82ff(0x482)](),Promise[_0x1a82ff(0x31c)](new Error(L[_0x1a82ff(0x4e0)][_0x1a82ff(0x15e)]));try{const _0x3753f1=new FormData();_0x3753f1[_0x1a82ff(0x4fe)](_0x1a82ff(0x4e1),_0x5066f2);const _0x19ff42=this[_0x1a82ff(0x16d)][_0x1a82ff(0x42e)](),_0x3baad8=_0x19ff42==null?void 0x0:_0x19ff42[_0x1a82ff(0x402)]();if(!_0x3baad8)throw new Error(_0x1a82ff(0x43b));const _0x10479a=this[_0x1a82ff(0x43f)]()+_0x1a82ff(0x211)+_0x5066f2[_0x1a82ff(0x2bd)][_0x1a82ff(0x16b)]()+'&source='+pt['UnitEmbedded']+'&assign='+encodeURIComponent(_0x3baad8),_0x75177f=await(await fetch(_0x10479a,{'method':_0x1a82ff(0x35d),'body':_0x3753f1}))[_0x1a82ff(0x1dd)]();if(typeof _0x75177f[_0x1a82ff(0x51e)]!=_0x1a82ff(0x4cd))return this[_0x1a82ff(0x482)](),Promise['reject'](new Error(L[_0x1a82ff(0x4e0)][_0x1a82ff(0x2ef)]));_0x1a8220=_0x75177f[_0x1a82ff(0x51e)];}catch{return this[_0x1a82ff(0x482)](),Promise['reject'](new Error(L[_0x1a82ff(0x4e0)][_0x1a82ff(0x2ef)]));}return new Promise((_0x5a4640,_0x5da070)=>{const _0x2c9e5c=_0x1a82ff,_0x24e310=new FileReader();_0x24e310[_0x2c9e5c(0x303)](_0x5066f2),_0x24e310[_0x2c9e5c(0x2e9)]=_0x260678=>{const _0x3893a9=_0x2c9e5c;var _0x166478;const _0x6bf4a=(_0x166478=_0x260678['target'])==null?void 0x0:_0x166478[_0x3893a9(0x351)];if(_0x6bf4a==null){this[_0x3893a9(0x482)](),_0x5da070(new Error(L[_0x3893a9(0x4e0)][_0x3893a9(0x2ef)]));return;}const _0x988b19=a['Tools'][_0x3893a9(0x2a6)](0x6);_0x5a4640({'imageId':_0x988b19,'imageSourceType':L[_0x3893a9(0x14f)][_0x3893a9(0x169)],'source':_0x1a8220,'base64Cache':_0x6bf4a,'status':L[_0x3893a9(0x4e0)][_0x3893a9(0x20c)]}),this[_0x3893a9(0x482)]();};});}['_getUploadFileURL'](){const _0x36beaf=_0x4f35dc;var _0x5cbec8;return(_0x5cbec8=this[_0x36beaf(0x19a)][_0x36beaf(0x3ac)](on))!=null?_0x5cbec8:an;}[_0x4f35dc(0x43e)](){const _0x40cb39=_0x4f35dc;var _0x5d99f2;return(_0x5d99f2=this[_0x40cb39(0x19a)][_0x40cb39(0x3ac)](cn))!=null?_0x5d99f2:ln;}[_0x4f35dc(0x497)](_0x4befde,_0x3f2413){const _0x3a453b=_0x4f35dc;return _0x4befde[_0x3a453b(0x278)]('{fileID}',_0x3f2413);}['_decreaseWaiting'](){const _0x29480e=_0x4f35dc;this[_0x29480e(0x1da)]-=0x1,this[_0x29480e(0x4aa)][_0x29480e(0x245)](this[_0x29480e(0x1da)]);}},exports[_0x4f35dc(0x203)]=sn([Me(0x0,a[_0x4f35dc(0x1ac)](U[_0x4f35dc(0x341)])),Me(0x1,a[_0x4f35dc(0x301)]),Me(0x2,a['Inject'](a[_0x4f35dc(0x2e8)]))],exports['ImageIoService']);var hn=Object[_0x4f35dc(0x305)],_n=Object[_0x4f35dc(0x21c)],un=(_0x46c618,_0x9333d7,_0x22ece6,_0x44a742)=>{const _0x4dfd4b=_0x4f35dc;for(var _0x200fff=_0x44a742>0x1?void 0x0:_0x44a742?_n(_0x9333d7,_0x22ece6):_0x9333d7,_0x2ad82e=_0x46c618[_0x4dfd4b(0x3a9)]-0x1,_0x575ac5;_0x2ad82e>=0x0;_0x2ad82e--)(_0x575ac5=_0x46c618[_0x2ad82e])&&(_0x200fff=(_0x44a742?_0x575ac5(_0x9333d7,_0x22ece6,_0x200fff):_0x575ac5(_0x200fff))||_0x200fff);return _0x44a742&&_0x200fff&&hn(_0x9333d7,_0x22ece6,_0x200fff),_0x200fff;},le=(_0x2b44c4,_0x1651a7)=>(_0x2c86b3,_0x3b73a0)=>_0x1651a7(_0x2c86b3,_0x3b73a0,_0x2b44c4);let me=class extends a[_0x4f35dc(0x1fe)]{constructor(_0x7c1cd6,_0x4dcde9,_0xe2aa5e,_0x5a7583,_0x2213bc){const _0x47bd76=_0x4f35dc;super(),this['_injector']=_0x7c1cd6,this[_0x47bd76(0x16d)]=_0x4dcde9,this[_0x47bd76(0x31e)]=_0xe2aa5e,this[_0x47bd76(0x3fc)]=_0x5a7583,this[_0x47bd76(0x312)]=_0x2213bc,this['_initUnitPermissionChange'](),this[_0x47bd76(0x290)]();}['_initCloseConn'](){const _0x39cdae=_0x4f35dc,_0x339fd1=async _0x589863=>{const _0x141674=_0x1935;(await this[_0x141674(0x3fc)][_0x141674(0x14b)](_0x589863))['event$'][_0x141674(0x49c)](E[_0x141674(0x404)](_0x18b76e=>_0x18b76e[_0x141674(0x510)]===_[_0x141674(0x2a7)][_0x141674(0x2e7)]),E[_0x141674(0x39c)](this['dispose$']))[_0x141674(0x4df)](_0x5020d1=>{const _0x3dc913=_0x141674,_0x17af4f=_0x5020d1,{reason:_0x40b60d}=_0x17af4f['data'];this[_0x3dc913(0x183)][_0x3dc913(0x20a)](M[_0x3dc913(0x1dc)])[_0x3dc913(0x50c)]({'type':Y[_0x3dc913(0x4b1)]['Error'],'content':this[_0x3dc913(0x312)]['t'](_0x3dc913(0x472))+'('+_0x40b60d+')'}),this[_0x3dc913(0x31e)]['updatePermissionPoint'](new C[(_0x3dc913(0x41a))](_0x589863)['id'],!0x1),this[_0x3dc913(0x3fc)]['closeSession'](_0x589863);});};v[_0x39cdae(0x2b0)](this[_0x39cdae(0x16d)]['getTypeOfUnitAdded$'](a[_0x39cdae(0x1f9)][_0x39cdae(0x396)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x39cdae(0x1f9)][_0x39cdae(0x4fb)]))[_0x39cdae(0x49c)](E['map'](_0x4efe0e=>_0x4efe0e[_0x39cdae(0x402)]()),E['filter'](_0xe25db3=>!a[_0x39cdae(0x14c)](_0xe25db3)),E['takeUntil'](this['dispose$']))['subscribe'](_0x370622=>{_0x339fd1(_0x370622);});}[_0x4f35dc(0x227)](){const _0x33ae6b=_0x4f35dc,_0x11f85d=async _0x115e09=>{const _0x123b91=_0x1935;(await this[_0x123b91(0x3fc)]['requireSession'](_0x115e09))[_0x123b91(0x251)][_0x123b91(0x49c)](E[_0x123b91(0x404)](_0xe1bfc=>_0xe1bfc[_0x123b91(0x510)]===_['CollaborationEvent'][_0x123b91(0x19b)]),E['takeUntil'](this[_0x123b91(0x364)]))[_0x123b91(0x4df)](_0x22beac=>{const _0x3b1ca6=_0x123b91,_0x1c8334=_0x22beac,{objectId:_0x331e46}=_0x1c8334[_0x3b1ca6(0x48a)],_0x1700da=this[_0x3b1ca6(0x183)][_0x3b1ca6(0x20a)](Q[_0x3b1ca6(0x2c6)]);_0x331e46===_0x115e09?_0x1700da[_0x3b1ca6(0x22d)](_0x115e09):_0x1700da[_0x3b1ca6(0x3fb)](_0x115e09,_0x331e46);});};v['merge'](this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x33ae6b(0x1f9)][_0x33ae6b(0x396)]),this[_0x33ae6b(0x16d)][_0x33ae6b(0x283)](a[_0x33ae6b(0x1f9)][_0x33ae6b(0x4fb)]))[_0x33ae6b(0x49c)](E[_0x33ae6b(0x201)](_0x407db2=>_0x407db2[_0x33ae6b(0x402)]()),E[_0x33ae6b(0x404)](_0x152459=>!a[_0x33ae6b(0x14c)](_0x152459)),E[_0x33ae6b(0x39c)](this['dispose$']))['subscribe'](_0x52a025=>{_0x11f85d(_0x52a025);});}};me=un([a[_0x4f35dc(0x439)](a[_0x4f35dc(0x2ae)][_0x4f35dc(0x1ba)],me),le(0x0,a['Inject'](a[_0x4f35dc(0x37b)])),le(0x1,a['IUniverInstanceService']),le(0x2,a[_0x4f35dc(0x415)]),le(0x3,a[_0x4f35dc(0x1ac)](exports['CollaborationSessionService'])),le(0x4,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x43c)]))],me);const dn=_0x4f35dc(0x1e9);var Mt=Object['defineProperty'],Sn=Object[_0x4f35dc(0x21c)],vn=(_0xcf645e,_0x3c81c7,_0x4c4e66)=>_0x3c81c7 in _0xcf645e?Mt(_0xcf645e,_0x3c81c7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c4e66}):_0xcf645e[_0x3c81c7]=_0x4c4e66,mn=(_0x13ef5e,_0x5a1699,_0x46c168,_0x5d1ef3)=>{const _0x2f7232=_0x4f35dc;for(var _0x15d78d=_0x5d1ef3>0x1?void 0x0:_0x5d1ef3?Sn(_0x5a1699,_0x46c168):_0x5a1699,_0x280b52=_0x13ef5e[_0x2f7232(0x3a9)]-0x1,_0x5b55ea;_0x280b52>=0x0;_0x280b52--)(_0x5b55ea=_0x13ef5e[_0x280b52])&&(_0x15d78d=(_0x5d1ef3?_0x5b55ea(_0x5a1699,_0x46c168,_0x15d78d):_0x5b55ea(_0x15d78d))||_0x15d78d);return _0x5d1ef3&&_0x15d78d&&Mt(_0x5a1699,_0x46c168,_0x15d78d),_0x15d78d;},de=(_0x501fb9,_0x24a142)=>(_0x159e84,_0x65fb35)=>_0x24a142(_0x159e84,_0x65fb35,_0x501fb9),fn=(_0x2f9f36,_0x1c964f,_0x378e3f)=>vn(_0x2f9f36,_0x1c964f+'',_0x378e3f);const gn=_0x4f35dc(0x141);exports[_0x4f35dc(0x1b2)]=class extends a[_0x4f35dc(0x13b)]{constructor(_0x285daa={},_0x531a0d,_0x306175,_0x2e211d,_0xda62d1){const _0xb5711e=_0x4f35dc;super(),this[_0xb5711e(0x388)]=_0x285daa,this[_0xb5711e(0x289)]=_0x531a0d,this['_renderManagerService']=_0x306175,this[_0xb5711e(0x183)]=_0x2e211d,this['_configService']=_0xda62d1;const {..._0x65878e}=this[_0xb5711e(0x388)];this[_0xb5711e(0x19a)]['setConfig'](dn,_0x65878e);}['onStarting'](){const _0x128156=_0x4f35dc;this[_0x128156(0x48e)]();}[_0x4f35dc(0x171)](){const _0x1801c0=_0x4f35dc;this[_0x1801c0(0x40e)]();}[_0x4f35dc(0x48e)](){const _0x197f1f=_0x4f35dc;var _0x5d47b3,_0x304838,_0x1a125f,_0x182fb4;this[_0x197f1f(0x183)][_0x197f1f(0x34a)](a[_0x197f1f(0x2b9)])&&this[_0x197f1f(0x289)][_0x197f1f(0x22c)](_0x197f1f(0x1b9),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x41f1a5=[[a[_0x197f1f(0x2b9)],{'useClass':$e}],[exports[_0x197f1f(0x4a3)]],[Ge],[U[_0x197f1f(0x341)]],[Ke,{'useClass':Ut}],[K],[exports['LocalCacheService']],[U[_0x197f1f(0x399)]],[ge],[Ie],[fe],[Fe],[pe],[Ve],[me],[Be,{'useClass':(_0x304838=(_0x5d47b3=this[_0x197f1f(0x388)])==null?void 0x0:_0x5d47b3[_0x197f1f(0x2b3)])!=null?_0x304838:exports[_0x197f1f(0x4f0)]}],[U[_0x197f1f(0x275)],{'useClass':U[_0x197f1f(0x1b1)]}],[_['ISnapshotServerService'],{'useClass':exports['SnapshotServerOverHTTPService']}],[a[_0x197f1f(0x40f)],{'useClass':exports[_0x197f1f(0x214)]}],[L[_0x197f1f(0x45d)],{'useClass':exports[_0x197f1f(0x203)]}],[exports[_0x197f1f(0x3a3)]],[exports['DataLoaderController']],[exports[_0x197f1f(0x345)]],[Se],[ee]];(_0x1a125f=this[_0x197f1f(0x388)])!=null&&_0x1a125f[_0x197f1f(0x28e)]&&_0x41f1a5['push']([Ce,{'useClass':Rs}]),_0x41f1a5=a[_0x197f1f(0x460)](_0x41f1a5,(_0x182fb4=this[_0x197f1f(0x388)])==null?void 0x0:_0x182fb4[_0x197f1f(0x4c9)]),_0x41f1a5[_0x197f1f(0x155)](_0x1068a7=>this[_0x197f1f(0x183)]['add'](_0x1068a7)),this[_0x197f1f(0x2af)]();}[_0x4f35dc(0x40e)](){const _0x3f9ea8=_0x4f35dc;this['disposeWithMe'](this[_0x3f9ea8(0x3c9)]['registerRenderModule'](a[_0x3f9ea8(0x1f9)][_0x3f9ea8(0x4fb)],[ve])),this[_0x3f9ea8(0x14d)](this['_renderManagerService'][_0x3f9ea8(0x154)](a[_0x3f9ea8(0x1f9)][_0x3f9ea8(0x396)],[je]));}[_0x4f35dc(0x2af)](){const _0x26bc3e=_0x4f35dc;var _0x3b9c41,_0x3adcab;this[_0x26bc3e(0x183)]['get'](U[_0x26bc3e(0x341)])[_0x26bc3e(0x51d)]({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x3b9c41=this[_0x26bc3e(0x388)])!=null&&_0x3b9c41[_0x26bc3e(0x4b8)]||this[_0x26bc3e(0x183)]['get'](exports[_0x26bc3e(0x29a)])[_0x26bc3e(0x1d7)](),(_0x3adcab=this[_0x26bc3e(0x388)])!=null&&_0x3adcab[_0x26bc3e(0x3d9)]&&this['_injector'][_0x26bc3e(0x20a)](pe),this[_0x26bc3e(0x183)]['get'](exports[_0x26bc3e(0x3a3)]),this[_0x26bc3e(0x183)]['has'](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x26bc3e(0x183)]['get'](exports[_0x26bc3e(0x345)]);}},fn(exports[_0x4f35dc(0x1b2)],_0x4f35dc(0x37a),gn),exports['UniverCollaborationClientPlugin']=mn([a[_0x4f35dc(0x3a7)](_[_0x4f35dc(0x24d)]),de(0x1,a[_0x4f35dc(0x428)]),de(0x2,b['IRenderManagerService']),de(0x3,a[_0x4f35dc(0x1ac)](a[_0x4f35dc(0x37b)])),de(0x4,a['IConfigService'])],exports[_0x4f35dc(0x1b2)]),exports[_0x4f35dc(0x2f9)]=Nt,exports[_0x4f35dc(0x124)]=ft,exports[_0x4f35dc(0x398)]=_t,exports[_0x4f35dc(0x416)]=y,exports[_0x4f35dc(0x2dc)]=wt,exports['CommentService']=Ve,exports[_0x4f35dc(0x1ca)]=ut,exports['HEARTBEAT_TIMEOUT_KEY']=He,exports[_0x4f35dc(0x44c)]=Be,exports[_0x4f35dc(0x380)]=Ke,exports[_0x4f35dc(0x2f3)]=mt,exports[_0x4f35dc(0x29b)]=gt,exports['RETRY_CONNECTING_INTERVAL_KEY']=St,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=vt,exports[_0x4f35dc(0x2fc)]=ht,exports[_0x4f35dc(0x231)]=ct,exports['SNAPSHOT_URL_KEY']=lt,exports[_0x4f35dc(0x4bc)]=j,exports[_0x4f35dc(0x204)]=Ot,exports['WebURLService']=Ut,exports[_0x4f35dc(0x1f1)]=Ct,exports['serializeCombRequest']=Et;
1
+ 'use strict';const _0x786505=_0x4876;(function(_0x2dd58c,_0x253744){const _0x1592a8=_0x4876,_0xeab0ab=_0x2dd58c();while(!![]){try{const _0x48d9f2=parseInt(_0x1592a8(0x1aa))/0x1*(parseInt(_0x1592a8(0x250))/0x2)+-parseInt(_0x1592a8(0x330))/0x3*(-parseInt(_0x1592a8(0x1b1))/0x4)+parseInt(_0x1592a8(0x237))/0x5*(-parseInt(_0x1592a8(0x4c4))/0x6)+-parseInt(_0x1592a8(0x3ed))/0x7+-parseInt(_0x1592a8(0x38a))/0x8+-parseInt(_0x1592a8(0x49b))/0x9+parseInt(_0x1592a8(0x21d))/0xa;if(_0x48d9f2===_0x253744)break;else _0xeab0ab['push'](_0xeab0ab['shift']());}catch(_0x193456){_0xeab0ab['push'](_0xeab0ab['shift']());}}}(_0x6026,0xa38f0));var kt=Object[_0x786505(0x36b)],Bt=(_0x3fc602,_0x4bbd44,_0x13430c)=>_0x4bbd44 in _0x3fc602?kt(_0x3fc602,_0x4bbd44,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13430c}):_0x3fc602[_0x4bbd44]=_0x13430c,d=(_0x7c5d11,_0x1e09bf,_0x75765b)=>Bt(_0x7c5d11,typeof _0x1e09bf!='symbol'?_0x1e09bf+'':_0x1e09bf,_0x75765b);Object[_0x786505(0x36b)](exports,Symbol[_0x786505(0x20b)],{'value':'Module'});const a=require('@univerjs/core'),v=require(_0x786505(0x3d8)),E=require(_0x786505(0x2ee)),K=require(_0x786505(0x3ff)),M=require(_0x786505(0x534)),w=require(_0x786505(0x484)),_=require(_0x786505(0x51e)),Vt=require(_0x786505(0x287)),B=require(_0x786505(0x189)),C=require(_0x786505(0x34a)),U=require(_0x786505(0x3f0)),R=require(_0x786505(0x1f7)),L=require(_0x786505(0x43a)),Je=require(_0x786505(0x2b6)),ke=require(_0x786505(0x2cd)),ee=require('@univerjs/sheets-ui'),P=require(_0x786505(0x17d)),Ft=require(_0x786505(0x35d)),Wt=require(_0x786505(0x209)),lt=_0x786505(0x4e0),Gt=_0x786505(0x4b0),ht=_0x786505(0x1c9),_t=_0x786505(0x22c),Yt=0x7d0,ut='COLLAB_WEB_SOCKET_URL',Kt='ws://127.0.0.1:8000/universer-api/comb/connect',dt='HEARTBEAT_INTERVAL',Xt=0x7530,Be=_0x786505(0x575),St=0x4e20,vt=_0x786505(0x489),qt=0x4e20,mt=_0x786505(0x2f3),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',zt=0x3e8,gt=_0x786505(0x504),Zt=_0x786505(0x40b),It=_0x786505(0x2a4),Qt=_0x786505(0x41f);var pt=(_0x2b206a=>(_0x2b206a[_0x2b206a['UNDEFINED']=0x0]=_0x786505(0x3c4),_0x2b206a[_0x2b206a['OK']=0x1]='OK',_0x2b206a[_0x2b206a[_0x786505(0x335)]=0x2]=_0x786505(0x335),_0x2b206a[_0x2b206a[_0x786505(0x16a)]=0x3]='PERMISSION_DENIED',_0x2b206a[_0x2b206a[_0x786505(0x2fa)]=0x4]=_0x786505(0x2fa),_0x2b206a[_0x2b206a['UNAUTHENTICATED']=0x5]=_0x786505(0x26e),_0x2b206a[_0x2b206a['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2b206a[_0x2b206a[_0x786505(0x4e6)]=0x7]='INVALID_ARGUMENT',_0x2b206a[_0x2b206a[_0x786505(0x469)]=0x8]=_0x786505(0x469),_0x2b206a[_0x2b206a['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x2b206a[_0x2b206a[_0x786505(0x1f9)]=0x1389]=_0x786505(0x1f9),_0x2b206a[_0x2b206a['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x786505(0x42a),_0x2b206a[_0x2b206a[_0x786505(0x3d9)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2b206a[_0x2b206a['APPLY_REJECT']=0x1b59]=_0x786505(0x303),_0x2b206a[_0x2b206a['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2b206a[_0x2b206a['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2b206a[_0x2b206a['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x786505(0x4be),_0x2b206a[_0x2b206a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2b206a[_0x2b206a[_0x786505(0x214)]=0x2329]=_0x786505(0x214),_0x2b206a[_0x2b206a[_0x786505(0x32f)]=0x232a]=_0x786505(0x32f),_0x2b206a[_0x2b206a['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2b206a[_0x2b206a[_0x786505(0x510)]=0x232c]=_0x786505(0x510),_0x2b206a[_0x2b206a[_0x786505(0x221)]=0x232d]=_0x786505(0x221),_0x2b206a[_0x2b206a['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x786505(0x17f),_0x2b206a[_0x2b206a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2b206a[_0x2b206a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x786505(0x47e),_0x2b206a[_0x2b206a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x786505(0x191),_0x2b206a[_0x2b206a[_0x786505(0x21c)]=-0x1]='UNRECOGNIZED',_0x2b206a))(pt||{}),A=(_0x4d6197=>(_0x4d6197[_0x4d6197[_0x786505(0x3be)]=0x0]='UNIVER_UNKNOWN',_0x4d6197[_0x4d6197[_0x786505(0x170)]=0x1]=_0x786505(0x170),_0x4d6197[_0x4d6197[_0x786505(0x4ac)]=0x2]='UNIVER_SHEET',_0x4d6197[_0x4d6197[_0x786505(0x342)]=0x3]=_0x786505(0x342),_0x4d6197[_0x4d6197['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x4d6197[_0x4d6197[_0x786505(0x21c)]=-0x1]=_0x786505(0x21c),_0x4d6197))(A||{}),b=(_0x5715ce=>(_0x5715ce[_0x5715ce[_0x786505(0x2ea)]=0x0]=_0x786505(0x2ea),_0x5715ce[_0x5715ce['HELLO']=0x1]='HELLO',_0x5715ce[_0x5715ce[_0x786505(0x37b)]=0x2]='JOIN',_0x5715ce[_0x5715ce[_0x786505(0x285)]=0x3]='LEAVE',_0x5715ce[_0x5715ce[_0x786505(0x216)]=0x4]=_0x786505(0x216),_0x5715ce[_0x5715ce[_0x786505(0x211)]=0x5]=_0x786505(0x211),_0x5715ce[_0x5715ce[_0x786505(0x522)]=0x6]=_0x786505(0x522),_0x5715ce[_0x5715ce[_0x786505(0x21c)]=-0x1]=_0x786505(0x21c),_0x5715ce))(b||{}),Ve=(_0x25c846=>(_0x25c846[_0x25c846[_0x786505(0x43c)]=0x0]='UNKNOWN_CODE',_0x25c846[_0x25c846['OK']=0x1]='OK',_0x25c846[_0x25c846[_0x786505(0x174)]=0x2]=_0x786505(0x174),_0x25c846[_0x25c846['UNRECOGNIZED']=-0x1]=_0x786505(0x21c),_0x25c846))(Ve||{}),Ct=(_0x4ceb96=>(_0x4ceb96[_0x4ceb96[_0x786505(0x4a7)]=0x0]=_0x786505(0x4a7),_0x4ceb96[_0x4ceb96[_0x786505(0x2fc)]=0x1]=_0x786505(0x2fc),_0x4ceb96[_0x4ceb96[_0x786505(0x573)]=0x2]='HttpExport',_0x4ceb96[_0x4ceb96[_0x786505(0x3cb)]=0x3]=_0x786505(0x3cb),_0x4ceb96[_0x4ceb96[_0x786505(0x514)]=0x4]='UnitSnapshot',_0x4ceb96[_0x4ceb96[_0x786505(0x21c)]=-0x1]=_0x786505(0x21c),_0x4ceb96))(Ct||{});function Et(_0x561fc2){const _0x34c795=_0x786505;var _0x2c0c12,_0x5591b4,_0x5628bd,_0x4410b4;const _0x2229e0=_0x561fc2[_0x34c795(0x521)],_0x25c37e=JSON[_0x34c795(0x3a1)](_0x2229e0);switch(_0x25c37e['cmd']){case b['HEARTBEAT']:case b[_0x34c795(0x447)]:{const _0x591321=_0x25c37e['infoRsp'];return{..._0x25c37e,'data':_0x591321,'cmd':_0x25c37e[_0x34c795(0x3ea)]};}case b[_0x34c795(0x37b)]:{const _0x3829b0=_0x25c37e[_0x34c795(0x492)];return{..._0x25c37e,'data':_0x3829b0,'cmd':_0x25c37e[_0x34c795(0x3ea)]};}case b[_0x34c795(0x522)]:{const _0x36035e=_0x25c37e[_0x34c795(0x517)];switch(_0x36035e['eventID']){case _['CollaborationEvent'][_0x34c795(0x442)]:return{..._0x25c37e,'data':{..._0x36035e,'data':(_0x2c0c12=_0x36035e[_0x34c795(0x325)])==null?void 0x0:_0x2c0c12['cs']},'cmd':_0x25c37e[_0x34c795(0x3ea)]};case _['CollaborationEvent']['CHANGESET_ACK']:return{..._0x25c37e,'data':{..._0x36035e,'data':(_0x5591b4=_0x36035e[_0x34c795(0x511)])==null?void 0x0:_0x5591b4['cs']},'cmd':_0x25c37e[_0x34c795(0x3ea)]};case _[_0x34c795(0x3f5)][_0x34c795(0x2a8)]:return{..._0x25c37e,'data':{..._0x36035e,'data':(_0x5628bd=_0x36035e[_0x34c795(0x3c1)])==null?void 0x0:_0x5628bd['cs']},'cmd':_0x25c37e[_0x34c795(0x3ea)]};case _[_0x34c795(0x3f5)][_0x34c795(0x23f)]:return{..._0x25c37e,'data':{..._0x36035e,'data':(_0x4410b4=_0x36035e[_0x34c795(0x15c)])==null?void 0x0:_0x4410b4['cs']},'cmd':_0x25c37e[_0x34c795(0x3ea)]};case _[_0x34c795(0x3f5)][_0x34c795(0x390)]:return{..._0x25c37e,'data':{..._0x36035e,'data':_0x36035e[_0x34c795(0x2f2)]},'cmd':_0x25c37e['cmd']};case _[_0x34c795(0x3f5)][_0x34c795(0x3d7)]:return{..._0x25c37e,'data':{..._0x36035e,'data':_0x36035e[_0x34c795(0x22b)]},'cmd':_0x25c37e['cmd']};case _[_0x34c795(0x3f5)][_0x34c795(0x2f4)]:return{..._0x25c37e,'data':{..._0x36035e,'data':_0x36035e[_0x34c795(0x2cc)]},'cmd':_0x25c37e[_0x34c795(0x3ea)]};case _[_0x34c795(0x3f5)][_0x34c795(0x16e)]:return{..._0x25c37e,'data':{..._0x36035e,'data':_0x36035e[_0x34c795(0x355)]},'cmd':_0x25c37e[_0x34c795(0x3ea)]};case _[_0x34c795(0x3f5)][_0x34c795(0x3c3)]:case _[_0x34c795(0x3f5)][_0x34c795(0x370)]:return{..._0x25c37e,'data':{..._0x36035e,'data':_0x36035e[_0x34c795(0x3b9)]},'cmd':_0x25c37e[_0x34c795(0x3ea)]};case _['CollaborationEvent'][_0x34c795(0x1d4)]:return{..._0x25c37e,'data':{..._0x36035e,'data':_0x36035e[_0x34c795(0x355)]},'cmd':_0x25c37e[_0x34c795(0x3ea)]};case _[_0x34c795(0x3f5)][_0x34c795(0x4c0)]:return{..._0x25c37e,'data':_0x36035e,'cmd':_0x25c37e['cmd']};case _[_0x34c795(0x3f5)]['COMMENT_UPDATE']:return{..._0x25c37e,'data':{..._0x36035e,'data':_0x36035e[_0x34c795(0x3d6)]},'cmd':_0x25c37e['cmd']};case _[_0x34c795(0x3f5)]['UPDATE_PERMISSION_OBJ']:return{..._0x25c37e,'data':{..._0x36035e,'data':_0x36035e[_0x34c795(0x1b3)]},'cmd':_0x25c37e[_0x34c795(0x3ea)]};case _[_0x34c795(0x3f5)][_0x34c795(0x527)]:return{..._0x25c37e,'data':{..._0x36035e,'data':_0x36035e[_0x34c795(0x279)]},'cmd':_0x25c37e[_0x34c795(0x3ea)]};default:return _0x25c37e;}}default:return _0x25c37e;}}function bt(_0x38cfe1){const _0x3ab5bc=_0x786505;switch(_0x38cfe1[_0x3ab5bc(0x3ea)]){case b[_0x3ab5bc(0x211)]:case b[_0x3ab5bc(0x447)]:return JSON['stringify']({'cmd':_0x38cfe1[_0x3ab5bc(0x3ea)],'routeKey':_0x38cfe1[_0x3ab5bc(0x540)]});case b['INGEST']:{let _0x13218b;switch(_0x38cfe1[_0x3ab5bc(0x521)][_0x3ab5bc(0x1b2)]){case _[_0x3ab5bc(0x3f5)][_0x3ab5bc(0x390)]:{_0x13218b={'eventID':_[_0x3ab5bc(0x3f5)]['UPDATE_CURSOR'],'updateCursorEvent':_0x38cfe1[_0x3ab5bc(0x521)][_0x3ab5bc(0x521)]};break;}case _[_0x3ab5bc(0x3f5)][_0x3ab5bc(0x2f4)]:{_0x13218b={'eventID':_[_0x3ab5bc(0x3f5)][_0x3ab5bc(0x2f4)],'leaveEvent':_0x38cfe1['data'][_0x3ab5bc(0x521)]};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x13218b={'eventID':_[_0x3ab5bc(0x3f5)]['USERS_ENTER'],'joinEvent':_0x38cfe1[_0x3ab5bc(0x521)]['data']};break;}case _['CollaborationEvent'][_0x3ab5bc(0x16e)]:{_0x13218b={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x38cfe1[_0x3ab5bc(0x521)]['data']};break;}case _[_0x3ab5bc(0x3f5)]['LIVESHARE_OPERATION']:{_0x13218b={'eventID':_[_0x3ab5bc(0x3f5)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x38cfe1[_0x3ab5bc(0x521)][_0x3ab5bc(0x521)]};break;}case _['CollaborationEvent'][_0x3ab5bc(0x1d4)]:{_0x13218b={'eventID':_[_0x3ab5bc(0x3f5)][_0x3ab5bc(0x1d4)],'liveShareTerminate':_0x38cfe1[_0x3ab5bc(0x521)][_0x3ab5bc(0x521)]};break;}case _[_0x3ab5bc(0x3f5)]['LIVESHARE_REQUEST_HOST']:{_0x13218b={'eventID':_[_0x3ab5bc(0x3f5)][_0x3ab5bc(0x3dc)],'liveShareRequestHost':_0x38cfe1['data'][_0x3ab5bc(0x521)]};break;}case _[_0x3ab5bc(0x3f5)][_0x3ab5bc(0x3c3)]:{_0x13218b={'eventID':_[_0x3ab5bc(0x3f5)][_0x3ab5bc(0x3c3)]};break;}default:_0x13218b={'eventID':_0x38cfe1[_0x3ab5bc(0x521)][_0x3ab5bc(0x1b2)]};}return JSON[_0x3ab5bc(0x301)]({'cmd':_0x38cfe1[_0x3ab5bc(0x3ea)],'routeKey':_0x38cfe1['routeKey'],'collaMsg':_0x13218b});}case b['JOIN']:return JSON['stringify']({'cmd':_0x38cfe1[_0x3ab5bc(0x3ea)],'routeKey':_0x38cfe1[_0x3ab5bc(0x540)],'joinReq':_0x38cfe1[_0x3ab5bc(0x521)]});case b[_0x3ab5bc(0x285)]:return JSON['stringify']({'cmd':_0x38cfe1[_0x3ab5bc(0x3ea)],'routeKey':_0x38cfe1[_0x3ab5bc(0x540)],'leaveReq':_0x38cfe1['data']});default:throw new Error(_0x3ab5bc(0x2ef));}}var es=Object['defineProperty'],ts=Object[_0x786505(0x1b8)],ss=(_0x166c7e,_0x57cf15,_0x3fcf3b,_0x35e140)=>{for(var _0x1d6385=_0x35e140>0x1?void 0x0:_0x35e140?ts(_0x57cf15,_0x3fcf3b):_0x57cf15,_0x329e9d=_0x166c7e['length']-0x1,_0x56bff2;_0x329e9d>=0x0;_0x329e9d--)(_0x56bff2=_0x166c7e[_0x329e9d])&&(_0x1d6385=(_0x35e140?_0x56bff2(_0x57cf15,_0x3fcf3b,_0x1d6385):_0x56bff2(_0x1d6385))||_0x1d6385);return _0x35e140&&_0x1d6385&&es(_0x57cf15,_0x3fcf3b,_0x1d6385),_0x1d6385;},re=(_0x408ae1,_0x3fb677)=>(_0x45ab67,_0x21b831)=>_0x3fb677(_0x45ab67,_0x21b831,_0x408ae1);const Fe=a[_0x786505(0x2e4)](_0x786505(0x545));function is(_0x59a2a2,_0x6d2836,_0xe4efd2){const _0x1f7f1a=_0x786505;return _0x59a2a2+'/'+_0x6d2836+_0x1f7f1a(0x464)+_0xe4efd2+_0x1f7f1a(0x25d);}exports[_0x786505(0x334)]=class extends a['Disposable']{constructor(_0x185f40,_0x4fd7cf,_0x5d7eaa,_0x1e518c,_0x1097e1){const _0x29998f=_0x786505;super(),this['_http']=_0x185f40,this[_0x29998f(0x1d5)]=_0x4fd7cf,this[_0x29998f(0x48f)]=_0x5d7eaa,this[_0x29998f(0x26f)]=_0x1e518c,this[_0x29998f(0x515)]=_0x1097e1;}['createSocket'](_0x23615f){const _0x12b9db=_0x786505,_0x79b9d9=this[_0x12b9db(0x1d5)][_0x12b9db(0x1ba)](_0x23615f);if(!_0x79b9d9)throw new Error(_0x12b9db(0x2b8));const _0x265dbd=new a[(_0x12b9db(0x391))](),_0x36cc25=new v['Subject']();_0x265dbd[_0x12b9db(0x1a1)](_0x79b9d9[_0x12b9db(0x3b3)][_0x12b9db(0x369)](_0xc9760e=>_0x36cc25[_0x12b9db(0x3c0)](_0xc9760e))),_0x265dbd[_0x12b9db(0x1a1)](a[_0x12b9db(0x261)](()=>_0x36cc25[_0x12b9db(0x385)]()));const _0x4bcca3=new v[(_0x12b9db(0x246))]();_0x265dbd[_0x12b9db(0x1a1)](_0x79b9d9['error$'][_0x12b9db(0x369)](_0x400f9a=>_0x4bcca3[_0x12b9db(0x3c0)](_0x400f9a))),_0x265dbd[_0x12b9db(0x1a1)](a['toDisposable'](()=>_0x4bcca3['complete']()));const _0x5730ca=new v['Subject']();_0x265dbd[_0x12b9db(0x1a1)](_0x79b9d9['message$'][_0x12b9db(0x369)](_0x3f71f8=>{const _0x2a8992=_0x12b9db,_0x476096=Et(_0x3f71f8);_0x5730ca[_0x2a8992(0x3c0)](_0x476096);})),_0x265dbd[_0x12b9db(0x1a1)](a[_0x12b9db(0x261)](()=>_0x5730ca[_0x12b9db(0x385)]()));let _0x2cbb81;const _0x1d8da6=()=>{const _0x10d608=_0x12b9db;_0x4bcca3[_0x10d608(0x3c0)](new Event(_0x10d608(0x4fe))),_0x36cc25[_0x10d608(0x3c0)](new CloseEvent(_0x10d608(0x4fe))),_0x2cbb81[_0x10d608(0x378)]();};return _0x2cbb81={'memberID':'','close$':_0x36cc25[_0x12b9db(0x1e2)](),'error$':_0x4bcca3['asObservable'](),'open$':_0x79b9d9[_0x12b9db(0x20d)],'message$':_0x5730ca[_0x12b9db(0x1e2)](),'send':_0x30bd34=>{const _0x48f44c=_0x12b9db;if(_0x30bd34[_0x48f44c(0x3ea)]===b[_0x48f44c(0x216)]){if(_0x30bd34[_0x48f44c(0x521)][_0x48f44c(0x1b2)]===_[_0x48f44c(0x3f5)][_0x48f44c(0x547)]){this['_submitChangeset'](_0x2cbb81,_0x30bd34[_0x48f44c(0x521)])['catch'](_0x2746f3=>{const _0x1055f5=_0x48f44c;this[_0x1055f5(0x26f)][_0x1055f5(0x3e2)](_0x2746f3),_0x1d8da6();});return;}if(_0x30bd34[_0x48f44c(0x521)][_0x48f44c(0x1b2)]===_[_0x48f44c(0x3f5)][_0x48f44c(0x19b)]){const _0x3ee951=_0x30bd34[_0x48f44c(0x521)];this['_fetchMissChangesets'](_0x3ee951)[_0x48f44c(0x282)](_0x2232f8=>{const _0x22be95=_0x48f44c;_0x5730ca['next']({'cmd':b[_0x22be95(0x522)],'code':Ve['OK'],'routeKey':_0x3ee951[_0x22be95(0x521)][_0x22be95(0x1e0)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x22be95(0x213)],'data':{'changesets':_0x2232f8}}});})[_0x48f44c(0x3fa)](_0x36174f=>{this['_logService']['error'](_0x36174f),_0x1d8da6();});return;}}_0x79b9d9['send'](bt(_0x30bd34));},'close':()=>{const _0x1b0df2=_0x12b9db;_0x79b9d9[_0x1b0df2(0x378)](),_0x265dbd['dispose']();}},_0x2cbb81;}async[_0x786505(0x25c)](_0x589e64,_0x4b3403){const _0x2f2057=_0x786505;var _0x19cd62;const {unitType:_0x47a5f0,unitID:_0x28c44d,changeset:_0x3b0370}=_0x4b3403[_0x2f2057(0x521)],_0x714f72={'unitID':_0x28c44d,'memberID':_0x589e64[_0x2f2057(0x30f)],'type':_0x47a5f0,'changeset':_['parseChangesetToProtocol'](_0x3b0370)},_0x39192d=is((_0x19cd62=this[_0x2f2057(0x48f)][_0x2f2057(0x487)](gt))!=null?_0x19cd62:Zt,_0x47a5f0,_0x28c44d);try{await this[_0x2f2057(0x1eb)][_0x2f2057(0x2fe)](_0x39192d,{'body':_0x714f72});}catch(_0xd2a34){throw this[_0x2f2057(0x26f)][_0x2f2057(0x3e2)](_0x2f2057(0x1b6),_0x2f2057(0x36a)),_0xd2a34;}}async[_0x786505(0x386)](_0x234a46){const _0x3eef52=_0x786505,{unitID:_0x4a3ab9,from:_0x37e67f,to:_0x596431,unitType:_0x251819}=_0x234a46[_0x3eef52(0x521)];return(await this[_0x3eef52(0x515)][_0x3eef52(0x4fd)]({'metadata':void 0x0},{'unitID':_0x4a3ab9,'type':_0x251819,'from':_0x37e67f,'to':_0x596431}))[_0x3eef52(0x460)];}},exports[_0x786505(0x334)]=ss([re(0x0,a['Inject'](w[_0x786505(0x43b)])),re(0x1,a[_0x786505(0x449)](w[_0x786505(0x292)])),re(0x2,a[_0x786505(0x2a9)]),re(0x3,a['ILogService']),re(0x4,_[_0x786505(0x33b)])],exports[_0x786505(0x334)]);const ns='collaboration_new_changeset';function rs(_0x419c07){const _0x4849cd=_0x786505;return JSON[_0x4849cd(0x301)](_0x419c07)[_0x4849cd(0x31e)];}class We{constructor(){const _0x550220=_0x786505;d(this,'_commentUpdate$',new v[(_0x550220(0x246))]()),d(this,_0x550220(0x4a6),this[_0x550220(0x531)]['asObservable']());}['onCommentUpdate'](_0xee5bc5){const _0x589c98=_0x786505;this[_0x589c98(0x531)][_0x589c98(0x3c0)](_0xee5bc5);}}var os=Object['defineProperty'],as=Object[_0x786505(0x1b8)],cs=(_0x3ee72b,_0x22a38d,_0x1534e5,_0x261377)=>{const _0xe9a534=_0x786505;for(var _0xdf2eb9=_0x261377>0x1?void 0x0:_0x261377?as(_0x22a38d,_0x1534e5):_0x22a38d,_0x425001=_0x3ee72b[_0xe9a534(0x31e)]-0x1,_0xbc0c46;_0x425001>=0x0;_0x425001--)(_0xbc0c46=_0x3ee72b[_0x425001])&&(_0xdf2eb9=(_0x261377?_0xbc0c46(_0x22a38d,_0x1534e5,_0xdf2eb9):_0xbc0c46(_0xdf2eb9))||_0xdf2eb9);return _0x261377&&_0xdf2eb9&&os(_0x22a38d,_0x1534e5,_0xdf2eb9),_0xdf2eb9;},ze=(_0x25b8f6,_0x2cfab9)=>(_0x12dac3,_0x2e6651)=>_0x2cfab9(_0x12dac3,_0x2e6651,_0x25b8f6);let X=class extends a[_0x786505(0x498)]{constructor(_0x279f47,_0x3906b2){const _0x1e9475=_0x786505;super(),d(this,_0x1e9475(0x2bb),new Map()),(this[_0x1e9475(0x163)]=_0x279f47,this['_userManagerService']=_0x3906b2,this['disposeWithMe'](a['toDisposable'](v['merge'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x1e9475(0x3fc)]['UNIVER_SHEET'])['pipe'](E[_0x1e9475(0x2f0)](_0x27ceb3=>_0x27ceb3[_0x1e9475(0x3b6)]())),this['_univerInstanceService'][_0x1e9475(0x340)](a[_0x1e9475(0x3fc)][_0x1e9475(0x170)])[_0x1e9475(0x33c)](E['map'](_0x1ab6d2=>_0x1ab6d2['getUnitId']())),this[_0x1e9475(0x163)][_0x1e9475(0x340)](a[_0x1e9475(0x3fc)][_0x1e9475(0x342)])[_0x1e9475(0x33c)](E[_0x1e9475(0x2f0)](_0x19525f=>_0x19525f[_0x1e9475(0x3b6)]())))['subscribe'](_0x1a134e=>this[_0x1e9475(0x4b9)](_0x1a134e)))));}[_0x786505(0x46f)](_0xcfc97){const _0x581549=_0x786505;this[_0x581549(0x526)][_0x581549(0x46f)](_0xcfc97);}[_0x786505(0x195)](){const _0x142581=_0x786505;return this[_0x142581(0x526)]['getCurrentUser']();}['updateMember'](_0x95b08f,_0x2ff113){const _0xd496b6=_0x786505;let _0x55daba=this['_roomMembers']['get'](_0x95b08f);_0x55daba||(_0x55daba=new ls(),this[_0xd496b6(0x2bb)][_0xd496b6(0x3a3)](_0x95b08f,_0x55daba)),_0x55daba[_0xd496b6(0x546)](_0x2ff113);}[_0x786505(0x201)](_0x59e165,_0x50f470){const _0x50d1d3=_0x786505,_0x39fe41=this[_0x50d1d3(0x2bb)][_0x50d1d3(0x471)](_0x59e165);_0x39fe41&&_0x39fe41[_0x50d1d3(0x201)](_0x50f470);}[_0x786505(0x508)](_0x389a69){const _0x15f72a=_0x786505;return this[_0x15f72a(0x2bb)][_0x15f72a(0x471)](_0x389a69);}['getMember'](_0x2a7996,_0x463868){const _0x1a8727=_0x786505,_0x23d03f=this['_roomMembers'][_0x1a8727(0x471)](_0x2a7996);if(_0x23d03f)return _0x23d03f[_0x1a8727(0x4db)](_0x463868);}[_0x786505(0x4b9)](_0x35a1a1){const _0x1feafb=_0x786505,_0x1223a1=this['_roomMembers'][_0x1feafb(0x471)](_0x35a1a1);_0x1223a1&&(_0x1223a1[_0x1feafb(0x36f)](),this[_0x1feafb(0x2bb)]['delete'](_0x35a1a1));}[_0x786505(0x36f)](){const _0x5ecd69=_0x786505;this['_roomMembers'][_0x5ecd69(0x476)](_0x223e41=>_0x223e41['dispose']()),this[_0x5ecd69(0x2bb)][_0x5ecd69(0x2bd)]();}};X=cs([ze(0x0,a[_0x786505(0x244)]),ze(0x1,a[_0x786505(0x449)](a[_0x786505(0x4c3)]))],X);class ls extends a['Disposable']{constructor(){const _0x3ff5db=_0x786505;super(...arguments),d(this,_0x3ff5db(0x4f8),new Map());}[_0x786505(0x36f)](){const _0x45678e=_0x786505;this[_0x45678e(0x4f8)]['clear']();}[_0x786505(0x546)](_0xea0734){const _0x116ea2=_0x786505;this[_0x116ea2(0x4f8)][_0x116ea2(0x3a3)](_0xea0734[_0x116ea2(0x30f)],_0xea0734);}[_0x786505(0x201)](_0x3739be){const _0x14f772=_0x786505;this[_0x14f772(0x4f8)][_0x14f772(0x27c)](_0x3739be);}['getMember'](_0x393ff9){const _0x639368=_0x786505;return this[_0x639368(0x4f8)]['get'](_0x393ff9);}}var hs=Object[_0x786505(0x36b)],_s=Object[_0x786505(0x1b8)],us=(_0x806f3d,_0x1b28e4,_0x28f759,_0x202c69)=>{for(var _0x362a96=_0x202c69>0x1?void 0x0:_0x202c69?_s(_0x1b28e4,_0x28f759):_0x1b28e4,_0x40b786=_0x806f3d['length']-0x1,_0x277a6f;_0x40b786>=0x0;_0x40b786--)(_0x277a6f=_0x806f3d[_0x40b786])&&(_0x362a96=(_0x202c69?_0x277a6f(_0x1b28e4,_0x28f759,_0x362a96):_0x277a6f(_0x362a96))||_0x362a96);return _0x202c69&&_0x362a96&&hs(_0x1b28e4,_0x28f759,_0x362a96),_0x362a96;},k=(_0x156801,_0x3e3318)=>(_0x1c5361,_0x49aa40)=>_0x3e3318(_0x1c5361,_0x49aa40,_0x156801),j=(_0x19a30a=>(_0x19a30a[_0x19a30a[_0x786505(0x420)]=0x0]=_0x786505(0x420),_0x19a30a[_0x19a30a['JOINING']=0x1]='JOINING',_0x19a30a[_0x19a30a[_0x786505(0x1a8)]=0x2]='OFFLINE',_0x19a30a[_0x19a30a[_0x786505(0x50d)]=0x3]=_0x786505(0x50d),_0x19a30a))(j||{});exports['CollaborationSession']=class extends a[_0x786505(0x304)]{constructor(_0x578161,_0x3bb8c3,_0x185662,_0x2c6bd2,_0x216425,_0x31e445,_0x50ad7b,_0x8ee46c,_0x80f26b,_0x105944){const _0x5a43d3=_0x786505;super(),d(this,_0x5a43d3(0x40c),new v[(_0x5a43d3(0x518))](0x0)),d(this,_0x5a43d3(0x1ef),this[_0x5a43d3(0x40c)]['asObservable']()),d(this,_0x5a43d3(0x375),new v['Subject']()),d(this,'event$',this[_0x5a43d3(0x375)][_0x5a43d3(0x1e2)]()),d(this,_0x5a43d3(0x172)),d(this,_0x5a43d3(0x229)),d(this,_0x5a43d3(0x1d6)),d(this,'_shouldReportTelemetry',!0x1),d(this,'_telemetryInfo',null),(this[_0x5a43d3(0x1b7)]=_0x578161,this['_logService']=_0x185662,this[_0x5a43d3(0x45f)]=_0x2c6bd2,this[_0x5a43d3(0x2ff)]=_0x216425,this[_0x5a43d3(0x48f)]=_0x31e445,this[_0x5a43d3(0x336)]=_0x50ad7b,this[_0x5a43d3(0x328)]=_0x8ee46c,this[_0x5a43d3(0x36e)]=_0x80f26b,this[_0x5a43d3(0x249)]=_0x105944,this[_0x5a43d3(0x31f)]=!!this[_0x5a43d3(0x249)],_0x3bb8c3[_0x5a43d3(0x33c)](v[_0x5a43d3(0x15b)](this[_0x5a43d3(0x225)]))[_0x5a43d3(0x369)](_0x5d9fa6=>{const _0x2a0ba6=_0x5a43d3;var _0xeec7d4;typeof _0x5d9fa6>'u'||(this[_0x2a0ba6(0x172)]=_0x5d9fa6,_0x5d9fa6?(this[_0x2a0ba6(0x506)](_0x5d9fa6),this[_0x2a0ba6(0x229)]=_0x5d9fa6[_0x2a0ba6(0x197)][_0x2a0ba6(0x369)](_0x1a850e=>{const _0x181f52=_0x2a0ba6;_0x1a850e[_0x181f52(0x540)]===this['_unitID']&&this['_onCombEvent'](_0x1a850e);})):(this[_0x2a0ba6(0x4af)](),this['_sessionStatus$'][_0x2a0ba6(0x3c0)](0x2),(_0xeec7d4=this[_0x2a0ba6(0x229)])==null||_0xeec7d4[_0x2a0ba6(0x302)](),this[_0x2a0ba6(0x229)]=null));}),this[_0x5a43d3(0x364)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x15f453=_0x5a43d3;var _0x28e2f1;(_0x28e2f1=this[_0x15f453(0x172)])==null||_0x28e2f1['send']({'cmd':b[_0x15f453(0x285)],'data':{'roomID':this[_0x15f453(0x1b7)]}});})));}get['sessionStatus'](){const _0x1af7ba=_0x786505;return this['_sessionStatus$'][_0x1af7ba(0x176)]();}[_0x786505(0x4e2)](){const _0x515eaf=_0x786505;var _0x37131d,_0x2aeb0a;return(_0x2aeb0a=(_0x37131d=this['_socket'])==null?void 0x0:_0x37131d[_0x515eaf(0x30f)])!=null?_0x2aeb0a:null;}[_0x786505(0x36f)](){const _0x199e2d=_0x786505;super['dispose'](),this[_0x199e2d(0x225)][_0x199e2d(0x3c0)](),this[_0x199e2d(0x225)][_0x199e2d(0x385)]();}['close'](){const _0x1ea6d4=_0x786505;var _0x22e1e5,_0x10410a;this['_throwTelemetryCollaborationNewChangeset'](),(_0x22e1e5=this['_socket'])==null||_0x22e1e5[_0x1ea6d4(0x248)]({'cmd':b[_0x1ea6d4(0x285)],'data':{'roomID':this['_unitID']}}),(_0x10410a=this[_0x1ea6d4(0x172)])==null||_0x10410a[_0x1ea6d4(0x378)](),this[_0x1ea6d4(0x375)]['complete'](),this[_0x1ea6d4(0x40c)][_0x1ea6d4(0x385)](),this[_0x1ea6d4(0x36f)]();}[_0x786505(0x4a5)](_0x35d6e5){const _0x55b251=_0x786505;_0x35d6e5[_0x55b251(0x3ea)]===b[_0x55b251(0x37b)]?this[_0x55b251(0x56e)](_0x35d6e5):_0x35d6e5[_0x55b251(0x3ea)]===b[_0x55b251(0x522)]&&this[_0x55b251(0x399)](_0x35d6e5);}[_0x786505(0x506)](_0x363e73){const _0x1a4122=_0x786505;this[_0x1a4122(0x40c)]['next'](0x1),_0x363e73[_0x1a4122(0x248)]({'cmd':b[_0x1a4122(0x37b)],'routeKey':this[_0x1a4122(0x1b7)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x52d4fd){const _0x55d090=_0x786505;var _0x1bc45b;if(_0x52d4fd[_0x55d090(0x46d)]===Ve[_0x55d090(0x174)]){this['_messageService'][_0x55d090(0x4fc)]({'type':K['MessageType'][_0x55d090(0x1ac)],'content':this[_0x55d090(0x336)]['t'](_0x55d090(0x570))}),this['_sessionStatus$'][_0x55d090(0x3c0)](0x2);return;}this['_sessionStatus$'][_0x55d090(0x3c0)](0x3);const _0x57ff2e=(_0x1bc45b=_0x52d4fd[_0x55d090(0x521)][_0x55d090(0x320)][this[_0x55d090(0x1b7)]])==null?void 0x0:_0x1bc45b[_0x55d090(0x3a8)];_0x57ff2e&&_0x57ff2e[_0x55d090(0x476)](_0x5d9fdd=>this[_0x55d090(0x328)][_0x55d090(0x546)](this[_0x55d090(0x1b7)],_0x5d9fdd));}[_0x786505(0x399)](_0x1dc174){const _0xa2358=_0x786505;try{const _0x459d32=_0x1dc174[_0xa2358(0x521)];switch(_0x459d32[_0xa2358(0x1b2)]){case _[_0xa2358(0x3f5)][_0xa2358(0x3d7)]:this[_0xa2358(0x2d9)](_0x459d32),this[_0xa2358(0x375)][_0xa2358(0x3c0)](_0x459d32);break;case _[_0xa2358(0x3f5)][_0xa2358(0x2f4)]:this['_onUserLeave'](_0x459d32),this[_0xa2358(0x375)][_0xa2358(0x3c0)](_0x459d32);break;case _[_0xa2358(0x3f5)][_0xa2358(0x28d)]:this[_0xa2358(0x475)](),this[_0xa2358(0x417)](),this[_0xa2358(0x375)]['next'](_0x459d32);break;case _[_0xa2358(0x3f5)][_0xa2358(0x4c0)]:this[_0xa2358(0x26f)]['error'](_0xa2358(0x332)+JSON[_0xa2358(0x301)](_0x459d32)),this[_0xa2358(0x375)]['next'](_0x459d32);break;case _['CollaborationEvent']['COMMENT_UPDATE']:this[_0xa2358(0x36e)][_0xa2358(0x1de)](_0x459d32[_0xa2358(0x521)]),this[_0xa2358(0x375)][_0xa2358(0x3c0)](_0x459d32);break;default:this[_0xa2358(0x375)][_0xa2358(0x3c0)](_0x459d32);}}catch(_0x1b3727){this['_logService']['error'](_0x1b3727,_0x1dc174);}}[_0x786505(0x2d9)](_0x4d7c9d){const _0x46b2a9=_0x786505;this[_0x46b2a9(0x328)]['updateMember'](this[_0x46b2a9(0x1b7)],_0x4d7c9d[_0x46b2a9(0x521)]);}[_0x786505(0x3cf)](_0x2cfc4d){const _0x22fcac=_0x786505;this['_memberService']['removeMember'](this[_0x22fcac(0x1b7)],_0x2cfc4d[_0x22fcac(0x521)][_0x22fcac(0x30f)]);}async[_0x786505(0x248)](_0x128f51,_0xd7434b){const _0x58e7c2=_0x786505;if(this[_0x58e7c2(0x2bc)]!==0x3||!this[_0x58e7c2(0x172)])throw new Error(_0x58e7c2(0x324));try{_0x128f51[_0x58e7c2(0x1b2)]===_[_0x58e7c2(0x3f5)][_0x58e7c2(0x547)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x58e7c2(0x1f3)](_0x128f51)),this['_socket'][_0x58e7c2(0x248)]({'cmd':b[_0x58e7c2(0x216)],'routeKey':_0xd7434b,'routeType':'','data':_0x128f51});}catch(_0x3ed220){this[_0x58e7c2(0x26f)][_0x58e7c2(0x3e2)](_0x3ed220);}}[_0x786505(0x4c5)](){const _0x1cd6e2=_0x786505;var _0x44bd13;this[_0x1cd6e2(0x1d6)]=window[_0x1cd6e2(0x24d)](()=>{const _0x41f6f9=_0x1cd6e2;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x41f6f9(0x4fc)]({'type':K[_0x41f6f9(0x4f6)][_0x41f6f9(0x2c5)],'content':this[_0x41f6f9(0x336)]['t']('session.collaboration-timeout')});},(_0x44bd13=this['_configService'][_0x1cd6e2(0x487)](Be))!=null?_0x44bd13:St);}[_0x786505(0x417)](){const _0x43086c=_0x786505;this[_0x43086c(0x1d6)]&&(clearTimeout(this[_0x43086c(0x1d6)]),this['_collaborationTimeoutTimer']=null);}[_0x786505(0x1f3)](_0x4d5ba8){const _0x652405=_0x786505;if(!this[_0x652405(0x31f)])return;const {data:_0x43f694}=_0x4d5ba8,{unitID:_0x5efa77,changeset:_0x26c8f2}=_0x43f694,{mutations:_0x3bc841,type:_0x2e5eee}=_0x26c8f2;this[_0x652405(0x49c)]={'unitId':_0x5efa77,'type':_0x2e5eee,'startTime':performance[_0x652405(0x1a6)](),'stopTime':0x0,'duration':0x0,'size':rs(_0x3bc841)};}[_0x786505(0x475)](){const _0x27c7eb=_0x786505;if(this[_0x27c7eb(0x31f)]){if(!this['_telemetryInfo']){this[_0x27c7eb(0x26f)][_0x27c7eb(0x3e2)](_0x27c7eb(0x1b6),_0x27c7eb(0x34e));return;}this[_0x27c7eb(0x49c)][_0x27c7eb(0x262)]=performance[_0x27c7eb(0x1a6)](),this[_0x27c7eb(0x49c)][_0x27c7eb(0x425)]=this[_0x27c7eb(0x49c)][_0x27c7eb(0x262)]-this[_0x27c7eb(0x49c)][_0x27c7eb(0x3f7)],this[_0x27c7eb(0x249)][_0x27c7eb(0x55d)](ns,this[_0x27c7eb(0x49c)]),this[_0x27c7eb(0x49c)]=null;}}[_0x786505(0x4af)](){const _0x156f11=_0x786505;this[_0x156f11(0x49c)]=null;}},exports['CollaborationSession']=us([k(0x2,a[_0x786505(0x435)]),k(0x3,M[_0x786505(0x4b4)]),k(0x4,M['IMessageService']),k(0x5,a['IConfigService']),k(0x6,a['Inject'](a[_0x786505(0x4a1)])),k(0x7,a[_0x786505(0x449)](X)),k(0x8,a[_0x786505(0x449)](We)),k(0x9,a[_0x786505(0x47d)](Vt[_0x786505(0x2a0)]))],exports[_0x786505(0x33a)]);var ds=Object[_0x786505(0x36b)],Ss=Object['getOwnPropertyDescriptor'],vs=(_0x4a7be1,_0x2f50dd,_0x7b8ced,_0x49e059)=>{const _0x148f7b=_0x786505;for(var _0x54b55c=_0x49e059>0x1?void 0x0:_0x49e059?Ss(_0x2f50dd,_0x7b8ced):_0x2f50dd,_0x580566=_0x4a7be1[_0x148f7b(0x31e)]-0x1,_0x1b94c3;_0x580566>=0x0;_0x580566--)(_0x1b94c3=_0x4a7be1[_0x580566])&&(_0x54b55c=(_0x49e059?_0x1b94c3(_0x2f50dd,_0x7b8ced,_0x54b55c):_0x1b94c3(_0x54b55c))||_0x54b55c);return _0x49e059&&_0x54b55c&&ds(_0x2f50dd,_0x7b8ced,_0x54b55c),_0x54b55c;},z=(_0x2c5905,_0x4bb971)=>(_0x4cd552,_0x450a3c)=>_0x4bb971(_0x4cd552,_0x450a3c,_0x2c5905);exports[_0x786505(0x321)]=class extends a[_0x786505(0x498)]{constructor(_0x4a57c8,_0x39dae4,_0x109c1e,_0x524587,_0x422f58,_0x2ad883){const _0x49314f=_0x786505;super(),d(this,'_socket$',new v['BehaviorSubject'](void 0x0)),d(this,_0x49314f(0x532),this[_0x49314f(0x372)][_0x49314f(0x1e2)]()),d(this,'_candidateSocket',null),d(this,_0x49314f(0x1fa),new Map()),d(this,_0x49314f(0x3ad),new v[(_0x49314f(0x518))](j[_0x49314f(0x420)])),d(this,_0x49314f(0x28f),this[_0x49314f(0x3ad)]['asObservable']()),d(this,'_socketReady',!0x1),d(this,_0x49314f(0x233)),d(this,_0x49314f(0x412),0x0),d(this,_0x49314f(0x478)),d(this,_0x49314f(0x4d4)),(this[_0x49314f(0x1c7)]=_0x4a57c8,this[_0x49314f(0x336)]=_0x39dae4,this['_messageService']=_0x109c1e,this[_0x49314f(0x26f)]=_0x524587,this[_0x49314f(0x48f)]=_0x422f58,this[_0x49314f(0x1bc)]=_0x2ad883);}get[_0x786505(0x172)](){const _0x5efa64=_0x786505;return this[_0x5efa64(0x372)][_0x5efa64(0x176)]();}['dispose'](){const _0x1571dd=_0x786505;super[_0x1571dd(0x36f)](),this[_0x1571dd(0x1fa)]['forEach'](_0x5021af=>_0x5021af[_0x1571dd(0x36f)]()),this['_sessions'][_0x1571dd(0x2bd)](),this[_0x1571dd(0x3ad)]['complete']();}async['requireSession'](_0x12389b){const _0x4c9afb=_0x786505;if(this['_sessions'][_0x4c9afb(0x479)](_0x12389b))return this[_0x4c9afb(0x1fa)]['get'](_0x12389b);this[_0x4c9afb(0x3e4)]();const _0x1e692e=this[_0x4c9afb(0x1c7)][_0x4c9afb(0x400)](exports['CollaborationSession'],_0x12389b,this[_0x4c9afb(0x372)]['asObservable']());return this[_0x4c9afb(0x1fa)][_0x4c9afb(0x3a3)](_0x12389b,_0x1e692e),_0x1e692e;}[_0x786505(0x1d3)](_0x3085e0){const _0x460490=_0x786505;var _0x149d7e;const _0xf92358=this[_0x460490(0x1fa)]['get'](_0x3085e0);_0xf92358&&(this[_0x460490(0x1fa)]['delete'](_0x3085e0),_0xf92358[_0x460490(0x378)]()),this[_0x460490(0x1fa)][_0x460490(0x200)]||(_0x149d7e=this[_0x460490(0x172)])==null||_0x149d7e[_0x460490(0x378)]();}[_0x786505(0x529)](){const _0x3ea5b6=_0x786505;this['_retryCount']=0x0,this[_0x3ea5b6(0x233)]!=null&&(clearTimeout(this[_0x3ea5b6(0x233)]),this[_0x3ea5b6(0x233)]=null),this[_0x3ea5b6(0x407)]();}[_0x786505(0x54f)](){const _0x1b03d9=_0x786505;var _0xe9ae29;const _0x246009=(_0xe9ae29=this[_0x1b03d9(0x48f)][_0x1b03d9(0x487)](ut))!=null?_0xe9ae29:Kt,_0x9e2c8f=this[_0x1b03d9(0x1bc)][_0x1b03d9(0x1ba)](_0x246009);return this['_candidateSocket']=_0x9e2c8f,_0x9e2c8f;}['_tryEnsureSocket'](){const _0x584ba2=_0x786505;var _0x2a4038,_0x571e6d;try{const _0x1ce7db=(_0x571e6d=(_0x2a4038=this['_socket'])!=null?_0x2a4038:this[_0x584ba2(0x2f5)])!=null?_0x571e6d:this['_createSocket']();if(_0x1ce7db){const _0x4309fe=_0x1ce7db[_0x584ba2(0x248)];_0x1ce7db['send']=_0x2cc7a4=>(this[_0x584ba2(0x2ec)](),_0x4309fe[_0x584ba2(0x463)](_0x1ce7db,[_0x2cc7a4])),_0x1ce7db[_0x584ba2(0x197)]['subscribe'](_0x4df9d4=>this[_0x584ba2(0x563)](_0x1ce7db,_0x4df9d4)),_0x1ce7db[_0x584ba2(0x401)][_0x584ba2(0x33c)](E[_0x584ba2(0x3ec)](0x1))[_0x584ba2(0x369)](_0x290e54=>this[_0x584ba2(0x26f)]['error'](_0x584ba2(0x1fb),_0x290e54)),_0x1ce7db[_0x584ba2(0x20d)][_0x584ba2(0x33c)](E[_0x584ba2(0x3ec)](0x1))[_0x584ba2(0x369)](()=>{this['_onConnectionOpen'](_0x1ce7db);}),_0x1ce7db[_0x584ba2(0x3b3)]['pipe'](E[_0x584ba2(0x3ec)](0x1))[_0x584ba2(0x369)](_0x3f1d72=>{const _0x20b82d=_0x584ba2;this[_0x20b82d(0x26f)][_0x20b82d(0x3e7)](_0x20b82d(0x162),_0x20b82d(0x284),_0x3f1d72),this[_0x20b82d(0x410)]();});}}catch(_0x269683){this[_0x584ba2(0x26f)][_0x584ba2(0x3e2)](_0x269683),this[_0x584ba2(0x410)]();}}[_0x786505(0x39e)](_0x174459){const _0x5139d1=_0x786505;this[_0x5139d1(0x26f)][_0x5139d1(0x3e7)]('[CollaborationSessionService]',_0x5139d1(0x505)),_0x174459['send']({'cmd':b[_0x5139d1(0x447)]}),this[_0x5139d1(0x2ec)](),this[_0x5139d1(0x4f2)]();}[_0x786505(0x4f2)](){const _0x245d19=_0x786505,_0x343533=()=>{const _0x31f42e=_0x4876;this[_0x31f42e(0x500)](),this[_0x31f42e(0x2b0)](),window[_0x31f42e(0x46c)](_0x31f42e(0x264),_0x343533);};window[_0x245d19(0x448)](_0x245d19(0x264),_0x343533);}[_0x786505(0x500)](){const _0x29324d=_0x786505;this[_0x29324d(0x1e5)]=!0x1,this['_status$'][_0x29324d(0x3c0)](j['OFFLINE']),this[_0x29324d(0x372)][_0x29324d(0x3c0)](null),this[_0x29324d(0x318)](),this[_0x29324d(0x466)]();}['_onConnectionFailed'](){const _0x3e1e65=_0x786505;var _0x3a7181;this[_0x3e1e65(0x500)](),this[_0x3e1e65(0x412)]<((_0x3a7181=this['_configService']['getConfig'](mt))!=null?_0x3a7181:Jt)?(this['_messageService']['show']({'key':_0x3e1e65(0x2c3),'type':K['MessageType']['Warning'],'content':this[_0x3e1e65(0x336)]['t'](_0x3e1e65(0x3de))}),this[_0x3e1e65(0x407)]()):(this['_messageService'][_0x3e1e65(0x4fc)]({'key':_0x3e1e65(0x2c3),'type':K['MessageType'][_0x3e1e65(0x2c5)],'content':this[_0x3e1e65(0x336)]['t'](_0x3e1e65(0x1fe))}),this[_0x3e1e65(0x2b0)]());}[_0x786505(0x2b0)](){const _0x10d052=_0x786505,_0x82badc=()=>{const _0x5c6f41=_0x4876;this['reconnect'](),window[_0x5c6f41(0x46c)](_0x5c6f41(0x52c),_0x82badc);};window[_0x10d052(0x448)](_0x10d052(0x52c),_0x82badc),this['_socket$'][_0x10d052(0x33c)](E[_0x10d052(0x3a7)](_0x5a9ba3=>!!_0x5a9ba3),E[_0x10d052(0x3ec)](0x1))[_0x10d052(0x369)](()=>{const _0x7380ab=_0x10d052;window[_0x7380ab(0x46c)](_0x7380ab(0x52c),_0x82badc);});}[_0x786505(0x407)](){const _0x1b37e3=_0x786505;var _0x235834;const _0xea4979=this[_0x1b37e3(0x412)],_0x4694bb=_0xea4979===0x0?0x0:((_0x235834=this[_0x1b37e3(0x48f)][_0x1b37e3(0x487)](vt))!=null?_0x235834:qt)*0x2**_0xea4979;this[_0x1b37e3(0x233)]=window[_0x1b37e3(0x24d)](()=>{const _0x213f17=_0x1b37e3;clearTimeout(this[_0x213f17(0x233)]),this[_0x213f17(0x233)]=null,this[_0x213f17(0x3e4)]();},_0x4694bb),this[_0x1b37e3(0x412)]+=0x1;}[_0x786505(0x563)](_0x3e72a8,_0x23e213){const _0x5641df=_0x786505,{cmd:_0x46a890}=_0x23e213;_0x46a890===b[_0x5641df(0x447)]&&!this[_0x5641df(0x1e5)]&&(_0x3e72a8[_0x5641df(0x30f)]=_0x23e213[_0x5641df(0x521)][_0x5641df(0x30f)],this[_0x5641df(0x372)]['next'](_0x3e72a8),this[_0x5641df(0x3ad)][_0x5641df(0x3c0)](j['ONLINE']),this[_0x5641df(0x1e5)]=!0x0,this['_candidateSocket']=null),_0x46a890===b[_0x5641df(0x211)]&&this[_0x5641df(0x318)](),this['_rescheduleHeartbeat']();}[_0x786505(0x2ec)](){const _0x4dd6b6=_0x786505;var _0x11e930;this[_0x4dd6b6(0x466)](),this['_sendHeartbeatTimer']=window[_0x4dd6b6(0x24d)](()=>this[_0x4dd6b6(0x50f)](),(_0x11e930=this['_configService'][_0x4dd6b6(0x487)](dt))!=null?_0x11e930:Xt);}[_0x786505(0x50f)](){const _0x1a9a2b=_0x786505;this[_0x1a9a2b(0x172)][_0x1a9a2b(0x248)]({'cmd':b[_0x1a9a2b(0x211)]}),this['_waitForHeartbeatResponse']();}[_0x786505(0x2d3)](){const _0x46b088=_0x786505;var _0x18a220;this[_0x46b088(0x4d4)]=window[_0x46b088(0x24d)](()=>this[_0x46b088(0x410)](),(_0x18a220=this[_0x46b088(0x48f)][_0x46b088(0x487)](Be))!=null?_0x18a220:St);}[_0x786505(0x466)](){const _0xb4380f=_0x786505;this[_0xb4380f(0x478)]!=null&&(clearTimeout(this[_0xb4380f(0x478)]),this['_sendHeartbeatTimer']=null);}[_0x786505(0x318)](){const _0x33e3bf=_0x786505;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x33e3bf(0x4d4)]),this[_0x33e3bf(0x4d4)]=null);}},exports['CollaborationSessionService']=vs([z(0x0,a[_0x786505(0x449)](a[_0x786505(0x430)])),z(0x1,a[_0x786505(0x449)](a[_0x786505(0x4a1)])),z(0x2,M[_0x786505(0x578)]),z(0x3,a[_0x786505(0x435)]),z(0x4,a[_0x786505(0x2a9)]),z(0x5,Fe)],exports[_0x786505(0x321)]);var ms=Object[_0x786505(0x36b)],fs=Object[_0x786505(0x1b8)],gs=(_0x3c4745,_0x582d34,_0x1c2a03,_0x484d5c)=>{for(var _0x3e7117=_0x484d5c>0x1?void 0x0:_0x484d5c?fs(_0x582d34,_0x1c2a03):_0x582d34,_0x1be8b1=_0x3c4745['length']-0x1,_0x153c47;_0x1be8b1>=0x0;_0x1be8b1--)(_0x153c47=_0x3c4745[_0x1be8b1])&&(_0x3e7117=(_0x484d5c?_0x153c47(_0x582d34,_0x1c2a03,_0x3e7117):_0x153c47(_0x3e7117))||_0x3e7117);return _0x484d5c&&_0x3e7117&&ms(_0x582d34,_0x1c2a03,_0x3e7117),_0x3e7117;},Oe=(_0x1ea6a0,_0x20e57c)=>(_0x5c1a79,_0xdbae45)=>_0x20e57c(_0x5c1a79,_0xdbae45,_0x1ea6a0);let ge=class{constructor(_0x35d0ff,_0xb6a8ca,_0x104189){const _0x831dc0=_0x786505;this['_injector']=_0x35d0ff,this[_0x831dc0(0x4fa)]=_0xb6a8ca,this['_renderManagerService']=_0x104189;}[_0x786505(0x4da)](_0x58c41a){const _0xfa6605=_0x786505;this[_0xfa6605(0x4fb)](_0x58c41a),this[_0xfa6605(0x263)](_0x58c41a);}[_0x786505(0x218)](_0x5354ff){const _0x513d74=_0x786505,{unitID:_0x29fbee}=_0x5354ff,_0x2e3193=this[_0x513d74(0x1ed)][_0x513d74(0x3fd)](_0x29fbee)[_0x513d74(0x32b)](U['DocIMEInputManagerService']),{redoCache:_0x552bc1}=_0x2e3193[_0x513d74(0x15d)]();if(_0x552bc1[_0x513d74(0x31e)]===0x0)return _0x5354ff;let _0x5eaaf5=a[_0x513d74(0x3f9)][_0x513d74(0x4ca)](_0x5354ff['mutations'][0x0]);for(let _0x47f167=0x0;_0x47f167<_0x552bc1[_0x513d74(0x31e)];_0x47f167++){const _0x4ccd6f={'id':'doc.mutation.rich-text-editing','params':{..._0x552bc1[_0x47f167]}},_0x3b681c=this[_0x513d74(0x4fa)][_0x513d74(0x49a)](_0x5eaaf5,_0x4ccd6f,!0x1);if(_['isTransformMutationFailure'](_0x3b681c))throw _0x3b681c[_0x513d74(0x3e2)];_0x5eaaf5=_0x3b681c[_0x513d74(0x2a7)];}return{...a[_0x513d74(0x3f9)][_0x513d74(0x4ca)](_0x5354ff),'mutations':[_0x5eaaf5]};}[_0x786505(0x4fb)](_0xe40cde){const _0x279813=_0x786505,{unitID:_0x3580ae}=_0xe40cde,_0x143759=this[_0x279813(0x1ed)][_0x279813(0x3fd)](_0x3580ae)[_0x279813(0x32b)](U[_0x279813(0x202)]),{undoCache:_0x46419f,redoCache:_0x4432b7}=_0x143759[_0x279813(0x15d)]();if(_0x46419f[_0x279813(0x31e)]===0x0||_0x4432b7['length']===0x0)return;const _0x47354b=[],_0x23e1fc=[];let _0xa15537=a[_0x279813(0x3f9)][_0x279813(0x4ca)](_0xe40cde[_0x279813(0x485)][0x0]),_0x2b114f=a[_0x279813(0x3f9)][_0x279813(0x4ca)](_0xe40cde[_0x279813(0x485)][0x0]);for(let _0x45a9e4=_0x46419f[_0x279813(0x31e)]-0x1;_0x45a9e4>=0x0;_0x45a9e4--){const _0x1cc88c={'id':_0x279813(0x243),'params':{..._0x46419f[_0x45a9e4]}},_0x49e29f={'id':_0x279813(0x243),'params':{..._0x4432b7[_0x45a9e4]}},_0x179b6c=this['_transformService']['transformMutation'](_0xa15537,_0x1cc88c,!0x1),_0x41ab54=this[_0x279813(0x4fa)][_0x279813(0x49a)](_0x2b114f,_0x49e29f,!0x1);if(_[_0x279813(0x300)](_0x179b6c))throw _0x179b6c[_0x279813(0x3e2)];if(_[_0x279813(0x300)](_0x41ab54))throw _0x41ab54[_0x279813(0x3e2)];_0x47354b['unshift'](_0x179b6c['m2Prime'][_0x279813(0x33e)]),_0x23e1fc['unshift'](_0x41ab54['m2Prime'][_0x279813(0x33e)]),_0xa15537=_0x179b6c[_0x279813(0x2a7)],_0x2b114f=_0x41ab54[_0x279813(0x2a7)];}_0x143759[_0x279813(0x26d)]({'undoCache':_0x47354b,'redoCache':_0x23e1fc});}[_0x786505(0x263)](_0x4afcf1){const _0x1e03b9=_0x786505,{unitID:_0x168f4}=_0x4afcf1,_0xc5c4ac=this[_0x1e03b9(0x1ed)][_0x1e03b9(0x3fd)](_0x168f4)[_0x1e03b9(0x32b)](U['DocIMEInputManagerService']),_0x4b4253=_0xc5c4ac[_0x1e03b9(0x456)]();if(_0x4b4253==null)return;const _0x2f10ad=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4afcf1['unitID'],'actions':null,'textRanges':[_0x4b4253]}}],_0x45f841=this[_0x1e03b9(0x4fa)][_0x1e03b9(0x333)](_0x4afcf1,_0x2f10ad);if(!_['isTransformMutationsWithChangesetSuccess'](_0x45f841))throw _0x45f841[_0x1e03b9(0x3e2)];const _0x465128=_0x45f841[_0x1e03b9(0x3e5)][0x0][_0x1e03b9(0x33e)][_0x1e03b9(0x31b)];Array[_0x1e03b9(0x184)](_0x465128)&&_0x465128[_0x1e03b9(0x31e)]&&_0xc5c4ac[_0x1e03b9(0x4ad)](_0x465128[0x0]);}};ge=gs([Oe(0x0,a[_0x786505(0x449)](a[_0x786505(0x430)])),Oe(0x1,_['ITransformService']),Oe(0x2,R[_0x786505(0x50a)])],ge);var Is=Object[_0x786505(0x36b)],ps=Object[_0x786505(0x1b8)],Cs=(_0x20550c,_0x44b094,_0x3a0864,_0xf59ae1)=>{const _0x44cfae=_0x786505;for(var _0x18158d=_0xf59ae1>0x1?void 0x0:_0xf59ae1?ps(_0x44b094,_0x3a0864):_0x44b094,_0x3b196d=_0x20550c[_0x44cfae(0x31e)]-0x1,_0x5ba9da;_0x3b196d>=0x0;_0x3b196d--)(_0x5ba9da=_0x20550c[_0x3b196d])&&(_0x18158d=(_0xf59ae1?_0x5ba9da(_0x44b094,_0x3a0864,_0x18158d):_0x5ba9da(_0x18158d))||_0x18158d);return _0xf59ae1&&_0x18158d&&Is(_0x44b094,_0x3a0864,_0x18158d),_0x18158d;},oe=(_0x5ede9f,_0x1d2637)=>(_0xc57994,_0x5441ab)=>_0x1d2637(_0xc57994,_0x5441ab,_0x5ede9f);exports['LocalCacheService']=class extends a['Disposable']{constructor(_0x719d20,_0x18cf03,_0x13674f,_0x55c032,_0x2fca00){const _0x19e38f=_0x786505;super(),d(this,_0x19e38f(0x297),new Map()),d(this,'_saveTaskMap',new Map()),d(this,'_disabled',!0x1),(this[_0x19e38f(0x48f)]=_0x719d20,this[_0x19e38f(0x53d)]=_0x18cf03,this[_0x19e38f(0x45f)]=_0x13674f,this[_0x19e38f(0x336)]=_0x55c032,this[_0x19e38f(0x2db)]=_0x2fca00,this[_0x19e38f(0x558)]());}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x786505(0x493)](){const _0x2e9434=_0x786505;this[_0x2e9434(0x295)]=!0x1;}[_0x786505(0x36f)](){const _0x32ba7=_0x786505;this['exhaustSavingTask']()[_0x32ba7(0x282)](()=>super[_0x32ba7(0x36f)]());}async[_0x786505(0x32d)](_0x55a909){const _0x40fa30=_0x786505;return this[_0x40fa30(0x295)]?null:this[_0x40fa30(0x53d)][_0x40fa30(0x22a)](Ze(_0x55a909));}async[_0x786505(0x18a)](_0x28f2b6,_0x516b92){const _0x407777=_0x786505;return!!this[_0x407777(0x53d)][_0x407777(0x29b)](_0x28f2b6,_0x516b92);}[_0x786505(0x3b4)](_0x543844,_0xbae3e3,_0x2a2d20,_0x5940e7){const _0x3eddc4=_0x786505,_0x4bab61=this['_revisionService'][_0x3eddc4(0x24a)](_0x543844);this[_0x3eddc4(0x297)]['set'](_0x543844,{'unitID':_0x543844,'type':_0xbae3e3,'awaitingChangeset':_0x2a2d20,'mutations':_0x5940e7,'rev':_0x4bab61}),this[_0x3eddc4(0x15a)]['has'](_0x543844)||this['_scheduleSaving'](_0x543844);}[_0x786505(0x23d)](_0x268b0d){const _0x34f9ab=_0x786505,_0x19b338=this[_0x34f9ab(0x537)]();_0x19b338===0x0?this[_0x34f9ab(0x40e)](_0x268b0d):this['_saveTaskMap'][_0x34f9ab(0x3a3)](_0x268b0d,setTimeout(()=>this[_0x34f9ab(0x40e)](_0x268b0d),_0x19b338));}[_0x786505(0x537)](){const _0x3a9f65=_0x786505;var _0x3b154d;return(_0x3b154d=this[_0x3a9f65(0x48f)][_0x3a9f65(0x487)](ft))!=null?_0x3b154d:zt;}['_saveCache'](_0x223269){const _0x472e04=_0x786505,_0xc2201d=this['_saveTaskMap']['get'](_0x223269);return _0xc2201d!==void 0x0&&window[_0x472e04(0x1a0)](_0xc2201d),this[_0x472e04(0x53d)]['setItem'](Ze(_0x223269),this['_cachedData'][_0x472e04(0x471)](_0x223269))[_0x472e04(0x282)](()=>this[_0x472e04(0x15a)][_0x472e04(0x27c)](_0x223269));}async[_0x786505(0x4b1)](){const _0x524c31=_0x786505,_0x5dced3=[];this[_0x524c31(0x15a)][_0x524c31(0x476)]((_0x5ad35f,_0x1aa54a)=>{const _0x516591=_0x524c31;window['clearTimeout'](_0x5ad35f),_0x5dced3[_0x516591(0x577)](this[_0x516591(0x40e)](_0x1aa54a)[_0x516591(0x282)](()=>{const _0x27f895=_0x516591;this[_0x27f895(0x15a)]['delete'](_0x1aa54a);}));}),await Promise[_0x524c31(0x16d)](_0x5dced3);}[_0x786505(0x558)](){const _0x3c4101=_0x786505;this[_0x3c4101(0x364)](this[_0x3c4101(0x45f)]['registerBeforeClose'](()=>{const _0x387da9=_0x3c4101;if(this[_0x387da9(0x15a)][_0x387da9(0x200)])return this['_localeService']['t'](_0x387da9(0x308));}));}},exports[_0x786505(0x37f)]=Cs([oe(0x0,a[_0x786505(0x2a9)]),oe(0x1,a[_0x786505(0x434)]),oe(0x2,M[_0x786505(0x4b4)]),oe(0x3,a[_0x786505(0x449)](a[_0x786505(0x4a1)])),oe(0x4,a['Inject'](_[_0x786505(0x2c2)]))],exports['LocalCacheService']);function Ze(_0x2c8b38){const _0x189570=_0x786505;return _0x189570(0x28c)+_0x2c8b38;}var Es=Object['defineProperty'],bs=Object[_0x786505(0x1b8)],Ts=(_0x465582,_0x3c5fc5,_0x22627b,_0x120a98)=>{const _0x49e855=_0x786505;for(var _0x4d1a5c=_0x120a98>0x1?void 0x0:_0x120a98?bs(_0x3c5fc5,_0x22627b):_0x3c5fc5,_0x360617=_0x465582[_0x49e855(0x31e)]-0x1,_0x4cc987;_0x360617>=0x0;_0x360617--)(_0x4cc987=_0x465582[_0x360617])&&(_0x4d1a5c=(_0x120a98?_0x4cc987(_0x3c5fc5,_0x22627b,_0x4d1a5c):_0x4cc987(_0x4d1a5c))||_0x4d1a5c);return _0x120a98&&_0x4d1a5c&&Es(_0x3c5fc5,_0x22627b,_0x4d1a5c),_0x4d1a5c;},De=(_0x45e74d,_0x49ee44)=>(_0x155e9e,_0x2691e5)=>_0x49ee44(_0x155e9e,_0x2691e5,_0x45e74d);function Rs(_0x52086e){const _0x5d0262=_0x786505,{unitID:_0x5a210a,mutations:_0x3f4e38}=_0x52086e;return{'unitId':_0x5a210a,'subUnitId':_0x3f4e38[0x0][_0x5d0262(0x33e)][_0x5d0262(0x1bf)]};}let Ie=class{constructor(_0x512f00,_0x213e8c,_0x35d818){const _0x21c94e=_0x786505;this['_injector']=_0x512f00,this[_0x21c94e(0x4fa)]=_0x213e8c,this[_0x21c94e(0x338)]=_0x35d818;}['transformSelections'](_0x549225){const _0x493c73=_0x786505;var _0x193d20,_0x1491e3,_0x182424,_0x2b086c,_0x44f046;const _0x3fdb8f=this[_0x493c73(0x1c7)][_0x493c73(0x471)](C['SheetsSelectionsService']),{unitId:_0x1204ec,subUnitId:_0x32a04f}=Rs(_0x549225),_0x9b222a=_0x3fdb8f['getWorkbookSelections'](_0x1204ec)[_0x493c73(0x180)](),_0x213f37=(_0x1491e3=(_0x193d20=this['_instanceService'][_0x493c73(0x238)](_0x1204ec))==null?void 0x0:_0x193d20['getActiveSheet']())==null?void 0x0:_0x1491e3['getSheetId']();if(_0x9b222a['length']===0x0||!_0x1204ec||!_0x32a04f)return;const _0xb82869=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x1204ec,'subUnitId':_0x213f37,'selections':a[_0x493c73(0x3f9)]['deepClone'](_0x9b222a)}}],_0x1e7aa2=this[_0x493c73(0x4fa)]['transformMutationsWithChangeset'](_0x549225,_0xb82869);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1e7aa2))throw _0x1e7aa2[_0x493c73(0x3e2)];const _0x4b1871=(_0x44f046=(_0x2b086c=(_0x182424=_0x1e7aa2[_0x493c73(0x3e5)][0x0])==null?void 0x0:_0x182424['params'])==null?void 0x0:_0x2b086c[_0x493c73(0x45c)])!=null?_0x44f046:_0x9b222a;Array['isArray'](_0x4b1871)&&_0x4b1871[_0x493c73(0x31e)]&&this[_0x493c73(0x1c7)][_0x493c73(0x471)](a[_0x493c73(0x368)])[_0x493c73(0x365)](C[_0x493c73(0x42e)]['id'],{'unitId':_0x1204ec,'subUnitId':_0x32a04f,'selections':_0x4b1871});}};Ie=Ts([De(0x0,a['Inject'](a[_0x786505(0x430)])),De(0x1,_['ITransformService']),De(0x2,a['IUniverInstanceService'])],Ie);const Ee=a['createIdentifier'](_0x786505(0x22d));var Tt=(_0x4b78da=>(_0x4b78da[_0x4b78da['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x786505(0x322),_0x4b78da[_0x4b78da[_0x786505(0x367)]=0x1]=_0x786505(0x367),_0x4b78da))(Tt||{});function _0x6026(){const _0x39f4de=['encode','IAuthzIoService','_stopTelemetryCollaborationNewChangeset','forEach','conflict','_sendHeartbeatTimer','has','useCallback','_updateStatus','reject','Optional','YUUMI_RATE_OVER_LIMIT','_docSkeletonManagerService','_updateSubUnitFromURLParams','Rect','onPointerLeave$','isTransformChangesetsSuccess','@univerjs/network','mutations','deleteCollaborator','getConfig','CONFLICT','RETRY_CONNECTING_INTERVAL','responseType','getSheetObject','target','call','InsertRangeMoveRightCommandId','_configService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','fromEventSubject','joinRsp','enableLocalCache','_updateLocalCache','_drawAnchor','newValue','FETCH_MISS','Disposable','_getMergeRange','transformMutation','11824632FEvhxL','_telemetryInfo','_colorIndex','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','put','onCommandExecuted','LocaleService','sequenceExecute','from','[UniverCollaborationClientPlugin]','_onCombEvent','commentUpdate$','Undefined','DataLoaderController','bottom','FromArray','getSheetId','UNIVER_SHEET','setActiveRange','[OfflineState]:\x20received\x20rejection.','_throwTelemetryCollaborationNewChangeset','/universer-api/snapshot','exhaustSavingTask','getCollabEntity$','function','IBeforeCloseService','_notificationService','red300','throttleTime','awaiting_with_pending','_removeRoom','CollaborationEntity','IUIPartsService','save','storage','APPLY_PERMISSION_DENIED','find','MSG_FOR_ERROR','idSuffix','_isPermissionRej','UserManagerService','114wjFExm','_scheduleCollaborationTimeoutTimer','registerRefRange','\x20in\x20_schedule.','_cursorShapes','transformStack\x20failed!','deepClone','NOT_COLLAB','isPermissionRej','_acknowledgedAwaitingChangeset','list','_getAPIPrefix','RemoveColCommandId','listCollaborators','hide','SheetSkeletonManagerService','_timeoutTimer','getSheetBySheetId','_context','concat','DocSelectionManagerService','_docTransformSelectionsService','transformIMECache','getMember','_unlockTransition','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','distinctUntilChanged','_anchor','SNAPSHOT_SERVER_URL_KEY','objectType','getMemberID','sheetID','focused$','_initMergeInterceptor','INVALID_ARGUMENT','_state$','useObservable','_updateState','includes','collabStatus.notCollab','/rev/','Univer','_sheetSkeletonManagerService','_unitStatus','assignAColorForMemberID','DesktopCollaborationStatusDisplayController','_listenToOfflineEvent','_range','baseRev','_getScale','MessageType','_onCursorUpdate','_members','_httpService','_transformService','_transformUndoRedoStack','show','fetchMissingChangesets','connection\x20error','&to=','_onOffline','getImageSourceCache','_getAnchorBounding','_cursor','COLLAB_SUBMIT_CHANGESET_URL','socket\x20open.','_joinRoom','colorChannel1','getRoom','withCredentials','IRenderManagerService','COMPRESS_MUTATION_APPLY','objectID','ONLINE','currentColor','_sendHeartbeat','LICENSE_EXPORT_SIZE_EXCEEDED','csAckEvent','font','onSyncEditingCollabCursor','UnitSnapshot','_snapshotServerService','lineTo','collaMsg','BehaviorSubject','unload','findNodePositionByCharIndex','split','_sheetTransformSelectionsService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','@univerjs-pro/collaboration','_initResize','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','data','RECV','_onRemoteACK','fillText','_textBubble','_userManagerService','SHOULD_CLOSE_CONN','closePath','reconnect','AUTHZ_URL_KEY','Workbook','online','state','isTransformMutationsWithChangesetSuccess','enableOfflineEditing','override','_commentUpdate$','socket$','[SyncedState]:\x20received\x20acknowledgement.','@univerjs/ui','replace','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_getSaveTimeout','onSendChangeset','_toggleOnline','getActiveSheet','serializeRangeWithSheet','isValidRectRange','_localStorageService','method','name','routeKey','M0\x200H16V16H0z','_transformStack','_hovered','onRemoteChangeset','univer-pro.collaboration-client-socket-service','updateMember','SUBMIT_CHANGESET','_collaborationController','attrs','_scene','_drawTextRange','_themeService','requireSession','_handleLeaveEvent','_createSocket','enableSingleActiveInstanceLock','batchAllowed','IUndoRedoService','RETRY_CONNECTING_INTERVAL_KEY','_sendingTimer','serializeCombRequest','[OfflineState]:\x20received\x20acknowledgement.','onRemoteAck','_setupBeforeClosingHandler','onload','_ensureSubject','DeleteRangeMoveLeftCommandId','ACTIVE_UNIT_EVENT_CHANNEL','capture','EffectRefRangId','activeSheet$','\x20to\x20','conflict.content','_showConflictNotification','_onMessage','fill','onPointerEnter$','isActive','subunit','replaceTextRanges','column','_heartbeatTimer','_clearScheduledTask','encodeURIComponent','_updateCollabCursors','_onJoinRoomEvent','fromEvent','session.room-full','Shape','change$','HttpExport','toggleOnline','HEARTBEAT_TIMEOUT','_loadSheet','push','IMessageService','synced','_saveTaskMap','takeUntil','csRejEvent','getUndoRedoMutationParamsCache','color','SnapshotServerOverHTTPService','permission.content','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[CollaborationSessionService]','_univerInstanceService','fetching\x20missing\x20changesets\x20from\x20','_transformUndoredo','currentSkeleton$','reduce','_localCacheService','drawWith','PERMISSION_DENIED','getInterceptPoints','_HTTPService','all','LIVESHARE_NEW_HOST','_refreshCollabCursors','UNIVER_DOC','LocalUndoRedoService','_socket','_getRedoStack','FAIL','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getValue','url(#off-line-single_clip0_910_343)','SetTextSelectionsOperation','getAncestorScale','_transformRemoteChangesetByIMECache','NodePositionConvertToCursor','debounceTime','react','_updateLocalCursor','YUUMI_UNABLE_LOAD_URL','getCurrentSelections','status','TRANSFORM_CHANGE_OBSERVABLE_TYPE','saveImage','isArray','handleInsertCol','_handler','userID','_transformSelections','@univerjs/docs','saveOfflineData','forwardRef','isEditing','_shapes','black','_registerRenderDependencies','UPDATE_PERMISSION_OBJ','YUUMI_SUBSCRIPTION_NOT_FOUND','socketService','univer-online-status-icon','[OfflineState]:\x20received\x20changeset.','getCurrentUser','_type','message$','pending','_pendingMutations','_render','FETCH_MISSING','0\x200\x2017\x2016','title','POST','c2Prime','clearTimeout','add','_clearRedo','urlChange$','top','cursorInfo','now','_scheduleTimestamp','OFFLINE','collaborators','34OFEURU','propertyIsEnumerable','Warning','collab-text-anchor-','_createInitialState','getCellPositionByOffset','CommentService','221008iaDWYj','eventID','updatePermissionObjEvent','RefRangeService','CollaborationController','[CollaborationSession]','_unitID','getOwnPropertyDescriptor','moveTo','createSocket','\x20-\x20','_socketService','loadSheet','_initCloseConn','subUnitId','selection','getMergeData','_getCtorByUniverType','/role','originalMeta','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','height','_injector','/allowed','SNAPSHOT_URL_KEY','getUnitType','init','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','useRef','ThresholdInterceptorFactory','requestParams','DeleteRangeMoveUpCommandId','onTransformChange$','transformSelections','closeSession','LIVESHARE_TERMINATE','_ws','_collaborationTimeoutTimer','onTransformSelections','[CollaborationUndoRedoService]','extend','onMissingChangesets','SessionStatus','_initStatusComponent','use','onCommentUpdate','\x0aCurrent:\x20','unitID','flatMap','asObservable','onlineStatusIcon','actions','_socketReady','editingUnit','_decreaseWaiting','_labelPosition','unitId','_send','_http','onStateChange','_renderManagerService','awaitingChangeset','sessionStatus$','UUID','jiqing500','addObjects','_startTelemetryCollaborationNewChangeset','_imageSourceCache','getCurrent','_createInitialStateImpl','@univerjs/engine-render','startColumn','CHANGESET_REVISION_CONFILICT','_sessions','[CollaborationSessionService]:\x20socket\x20error','getUniverSheetInstance','arc','session.connection-failed','ThemeService','size','removeMember','DocIMEInputManagerService','onStarting','_initCommandExecutedListener','_onConflict','getUnhiddenWorksheets','fetchThroughInterceptors','_createHandler','@univerjs/rpc','transformUndoRedo','toStringTag','max','open$','_cursorInfo$','onMouseMove','_removeCollabCursors','HEARTBEAT','onlineStatus','PSEUDO_FETCH_MISSING_RESULT','LICENSE_MAX_UNITS_EXCEEDED','_session','INGEST','_syncEditingCollabCursorService','transformRemoteChangeset','fetchMiss','SetWorksheetActivateCommand','handleInsertRangeMoveDown','UNRECOGNIZED','40485090WBFyfO','WorkbookEditablePermission','location','onMissedChangesetFetched','LICENSE_DISTRO_REJECTED','_getSnapshotAPIPrefix','incrementRevForDocument','_drawRectRange','dispose$','refreshPermission','body','snapshot','_socketMessageSubscription','getItem','joinEvent','SEND_CHANGESET_TIMEOUT','univer-pro.collaboration-client.single-active-unit-service','univer-online','transformChangesets','_disableEditing','clearInterval','handleDeleteRangeMoveLeft','_retryConnectingTimer','OnLifecycle','updateCollaborator','_id','119455KxFtZK','getUnit','getParam','registerRenderModule','Starting','_commandService','_scheduleSaving','path','CHANGESET_REJ','/block/','trim','[DataLoaderController]','doc.mutation.rich-text-editing','IUniverInstanceService','url(#on-line-single_clip0_910_349)','Subject','_onRemoteRejected','send','_telemetryService','getCurrentRevForDocument','getVpScrollXYInfoByPosToVp','IContextService','setTimeout','/object','conflict.title','10992cwmVPz','_initModules','/universer-api/stream/file/upload','_collaborationPaused','onlyLocal','_awaitingChangeset','switchMap','_init','handleIRemoveCol','?size=','entries','/universer-api/authz','_submitChangeset','/new_changes','_getLoginPath','getCollabEntity','history','toDisposable','stopTime','_transformPreviousActiveRange','offline','RETRY_CONNECTING_MAX_COUNT_KEY','0\x200\x2016\x2016','_getUploadFileURL','_singleActiveUnitService','defIds','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','resend','&source=','setUndoRedoMutationParamsCache','UNAUTHENTICATED','_logService','on-line-single_clip0_910_349','AWAITING','ImageIoService','handleDeleteRangeMoveUp','setShapeProps','univerjs-icon\x20univerjs-icon-','ITransformService','[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.','hasOwnProperty','shouldCloseConn','_checkMissing','url(#$1','delete','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','fetch_missing','workbook','collab-rect-range-','EmptyMutation','then','_undoStacks','socket\x20close','LEAVE','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs/telemetry','defs','width','roomMembers','MUTATION','unit-cache-','CHANGESET_ACK','unknown','status$','_getSignURL','Plugin','WebSocketService','shareReplay','toString','_disabled','className','_cachedData','append','pushState','getColor','setItem','_loadDoc','_startSheetCollabCursor','#fff','/object/','ITelemetryService','_roomMembers$','_compressMutationService','prototype','LOGIN_URL_KEY','cursorInfo$','assign','m1Prime','NEW_CHANGESETS','IConfigService','handleIRemoveRow','revision','rev','handleInsertRow','url','collaboration.closeRoom','_listenToOnlineEvent','_docStateChangeManagerService','src','slice','resolve','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs/engine-formula','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','evenodd','image/gif','_roomMembers','sessionStatus','clear','indexOf','createElement','_onRemoteChangeset','runRefRangeMutations','RevisionService','collaboration-session-retry','off-line-single_clip0_910_343','Error','univer-online-status-title','_colorAssignService','_scheduleClearOtherTimer','onlineStatusTitle','collabCursorState$','/-/object/-/batch_allowed','leaveEvent','lodash/debounce','auth.needGotoLoginAlert','COLLAB_WEB_SOCKET_URL_KEY','fromCollab','_collabCursorState$','listRoles','_waitForHeartbeatResponse','_incrementRevisionNumber','IRemoteInstanceService','range','every','setConfig','_onUserJoin','startsWith','_revisionService','FileId','_onFetchMissResult','ERROR_EXCEED_SIZE','getCoordByCell','saveSnapshot','_replaceFileID','_registerDependencies','Vector2','createIdentifier','_queuedRemoteChangesets','_initUnitPermissionChange','IPermissionService','SYNCED','svg','UNKNOWN_CMD','isInternalEditorID','_rescheduleHeartbeat','UniverIcon','rxjs/operators','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','map','_draw','updateCursorEvent','RETRY_CONNECTING_MAX_COUNT','USERS_LEAVE','_candidateSocket','result','mapTo','onTransformRemoteChangesetByIMECache','_backgroundColor','NOT_FOUND','OnLineSingle','HttpImport','file','post','_messageService','isTransformMutationFailure','stringify','unsubscribe','APPLY_REJECT','RxDisposable','create','href','ERROR_IMAGE','collaboration-client.offline-data-not-saved','round','_docSkeleton','VIEWPORT_KEY','_toggleOffline','putCollaborators','_color','memberID','Unknown\x20user','_docTransformIMECacheService','...','_lastPointer','concatMap','toggleOffline','_state','DocCollaborationEntity','_clearTimeoutTimer','\x0aAfter:\x20','getOwnPropertySymbols','textRanges','registerHTTPInterceptor','{fileID}','length','_shouldReportTelemetry','roomInfos','CollaborationSessionService','NO_OTHER_CLIENTS_EDITING','onRemoteRej','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','permissionRejEvent','InsertColCommandId','_scheduleHeartbeat','_memberService','_transformIMECache','RegularPolygon','with','objectActions','loadOfflineData','_uiPartsService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','3OPJkXI','UniverCollaborationClientPlugin','save\x20fail\x20reason\x20is\x20','transformMutationsWithChangeset','CollaborationSocketService','INTERNAL_ERROR','_localeService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_instanceService','_getAPIPrefixPath','CollaborationSession','ISnapshotServerService','pipe','backgroundColor','params','image/jpeg','getTypeOfUnitDisposed$','roles','UNIVER_SLIDE','replaceState','Error\x20on\x20receiving\x20event','syncEditingCollabCursor','_config','clipPath','createCollaborator','localeService','@univerjs/sheets','mapDocumentTypeToUniverType','event$','InsertRangeMoveDownCommandId','telemetry\x20info\x20is\x20not\x20initialized','beginPath','none','_handleEvent','COLORS','UNIVER_COLLABORATION_CLIENT_PLUGIN','LOCAL_CACHE_INTERVAL_KEY','liveShareNewHost','_collabSessionService','_getUndoStack','hovered','ImageSourceType','row','getDocRanges','COLLAB_SUBMIT_CHANGESET_URL_KEY','clsx','confirm','_docSyncEditingCollabCursorService','triggerDblclick','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','_removeClearOtherTimer','displayName','disposeWithMe','executeCommand','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','OTHER_CLIENTS_EDITING','ICommandService','subscribe','submit\x20changeset\x20error!','defineProperty','_exhaustRemoteChangesetQueue','WebURLService','_commentService','dispose','LIVESHARE_OPERATION','_hideTimer','_socket$','_updateURLWithCurrentState','_setupSubUnitSync','_event$','_applyRemoteChangeset','roomMembers$','close','_handleHover','_initStatusListener','JOIN','_onRefRangeChange','tag','_startCollaboration','LocalCacheService','_substituteUndoStack','_getSheetObject','string','ICollaborationSocketService','awaiting','complete','_fetchMissChangesets','getFocusedUnit','getSheetBlock','appendMutation','4937120bGfdyw','ERROR_IMAGE_TYPE','json','[CollaborationEntity]','initWorkbookPermissionChange','_executeRemoteChangeset','UPDATE_CURSOR','DisposableCollection','update','_entityInit$','subscribeEvent','_redoStacks','getSkeleton','objects','_eventUnsubscribe','_onRecvEvent','RichTextEditingMutation','type','_onCursorDelete','_clearUndo','_onConnectionOpen','setInterval','session','parse','_replayCachedMutations','set','collab-client.tooltip.reconnect','HTTPRequest','HEARTBEAT_INTERVAL_KEY','filter','members','_syncEditingCollabCursor','endColumn','_permissionService','_selfUnitIDs','_status$','on-line-single','getImage','_urlService','SnapshotService','AuthzIoHttpService','close$','updateOfflineData','div','getUnitId','combineLatest','transform','liveShareOperation','_clearOtherTimers','xlink:href','ranges','_refRangeService','UNIVER_UNKNOWN','addObject','next','newCsEvent','_online','LIVESHARE_FETCH_OPERATIONS','UNDEFINED','image/bmp','skeleton','/-/object/list','_transitionLocked','OffLineSingle','CompressMutationService','UnitEmbedded','isTransformMutationsWithChangesetFailure','searchParams','NodePositionConvertToRectRange','_onUserLeave','b64DecodeUnicode','reverse','BASE64','makeDirty','allowed','VIEW_MAIN','commentUpdateEvent','USERS_ENTER','rxjs','SNAPSHOT_HAS_BEEN_REMOVED','InsertSheetMutation','substring','LIVESHARE_REQUEST_HOST','delay','session.will-retry','fillStyle','disposeUnit','_entities','error','LifecycleStages','_tryEnsureSocket','m2Prime','getUnitStatus$','debug','_handleJoinEvent','rgba(255,\x20255,\x20255,\x200.01)','cmd','c1Prime','take','8650404vJxlxJ','TEXT_RANGE_LAYER_INDEX','/fetchmissing?from=','@univerjs/docs-ui','_getCurrentRevision','values','permission.title','_anchorDot','CollaborationEvent','current','startTime','saveChangeset','Tools','catch','_snapshotService','UniverInstanceType','getRenderById','enableAuthServer','@univerjs/design','createInstance','error$','interceptor','onPointerMove$','univer-offline','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_hover','_tryReconnect','Tooltip','_handleHeartbeatEvent','labelPosition','/universer-api/comb','_sessionStatus$','CollaborationStatusDisplay','_saveCache','_waitCount','_onConnectionFailed','HEADER_MENU','_retryCount','[PendingState]:\x20received\x20rejection.','COMPRESS_MUTATION_SEND','merge','_unitOnClients','_clearCollaborationTimeoutTimer','blue400','/collaborator','SetDocZoomRatioOperation','text','DEFAULT_FILE_NAME','SheetCollaborationEntity','getRangePointData','/universer-api/oidc/authpage','IDLE','icon','restore','setParam','_remoteChangesetQueue','duration','_clearLocalCache','MergeInterceptorFactory','PENDING','state$','SNAPSHOT_INVALID_SNAPSHOT','AWAITING_WITH_PENDING','_getSendChangesetTimeout','1em','SetSelectionsOperation','contains','Injector','generateRandomId','collaboratorID','_assignedColors','ILocalStorageService','ILogService','_onLocalMutation','/universer-api/file/{fileID}/sign-url','mergeOverrideWithDependencies','measureText','@univerjs/drawing','HTTPService','UNKNOWN_CODE','updatePermissionPoint','getTypeOfUnitAdded$','loadDoc','saveSheetBlock','Ready','PERMISSION_REJ','_lockTransition','UniverCollaborationPlugin','endRow','ColorKit','HELLO','addEventListener','Inject','onTransformIME','CommandType','children','SheetPermissionInitController','getCurrentUnitForType','uni.network.url-service','pauseCollaboration','getCollabCursors$','&assign=','_collabCursorController','_schedule','HEARTBEAT_TIMEOUT_KEY','getActiveRange','currentTheme$','transformByState','?url=','_change$','textEncoder','selections','unit','_name','_beforeCloseService','changesets','_startDocCollabCursor','getTime','apply','/unit/','readAsDataURL','_clearHeartbeatTimer','_substituteRedoStack','ImageUploadStatusType','TOO_MANY_REQUESTS','_cursors','EXCHANGE_SIGN_URL_SERVER_URL_KEY','removeEventListener','code','_collaborationSessionService','setCurrentUser','INotificationService','get','random'];_0x6026=function(){return _0x39f4de;};return _0x6026();}const Qe=0x7530,et=_0x786505(0x55c);class Os extends a[_0x786505(0x498)]{constructor(){const _0x18726a=_0x786505;super(),d(this,'_id',a[_0x18726a(0x3f9)]['generateRandomId']()),d(this,'_selfUnitIDs',new Set()),d(this,_0x18726a(0x416),new Map()),d(this,_0x18726a(0x56a),null),d(this,'_clearOtherTimers',new Map()),d(this,_0x18726a(0x4ef),new Map()),this[_0x18726a(0x257)]();}[_0x786505(0x36f)](){const _0x2a1369=_0x786505;super[_0x2a1369(0x36f)](),this['_clearOtherTimers'][_0x2a1369(0x476)]((_0x51bde4,_0x82921b)=>this['_removeClearOtherTimer'](_0x82921b)),this[_0x2a1369(0x56a)]&&window[_0x2a1369(0x231)](this[_0x2a1369(0x56a)]);}['getUnitStatus$'](_0x3f8f89){const _0x14efd1=_0x786505;return this[_0x14efd1(0x55a)](_0x3f8f89)['pipe'](v[_0x14efd1(0x4de)]());}[_0x786505(0x1e6)](_0x153753){const _0x298859=_0x786505;this[_0x298859(0x3ac)]['size']===0x0&&this[_0x298859(0x327)](),this[_0x298859(0x3ac)]['add'](_0x153753),this[_0x298859(0x1ea)]({'type':0x0,'memberID':this[_0x298859(0x236)],'unitIDs':[_0x153753],'isForwarded':!0x1});}[_0x786505(0x3e0)](_0x57ba2c){const _0x580809=_0x786505;this[_0x580809(0x3ac)][_0x580809(0x27c)](_0x57ba2c),this['_selfUnitIDs'][_0x580809(0x200)]===0x0&&this['_heartbeatTimer']&&window[_0x580809(0x231)](this['_heartbeatTimer']);}['_init'](){const _0x20c322=_0x786505;this[_0x20c322(0x364)](a[_0x20c322(0x261)](v[_0x20c322(0x56f)](window,_0x20c322(0x4bd))[_0x20c322(0x369)](_0x13c5a6=>{const _0x13cfec=_0x20c322;if(_0x13c5a6['key']!==et||!_0x13c5a6['newValue'])return;const _0xda0537=JSON['parse'](_0x13c5a6[_0x13cfec(0x496)]);this[_0x13cfec(0x351)](_0xda0537);}))),window[_0x20c322(0x448)](_0x20c322(0x519),()=>this[_0x20c322(0x1ea)]({'type':0x1,'memberID':this[_0x20c322(0x236)],'unitIDs':Array[_0x20c322(0x4a3)](this['_selfUnitIDs'])}));}[_0x786505(0x351)](_0x1eafda){const _0x425560=_0x786505;switch(_0x1eafda[_0x425560(0x39b)]){case 0x0:this[_0x425560(0x3e8)](_0x1eafda);break;case 0x1:this[_0x425560(0x54e)](_0x1eafda);break;case 0x2:this[_0x425560(0x409)](_0x1eafda);break;}}['_handleJoinEvent'](_0x54d11a){const _0x2d3024=_0x786505,{unitIDs:_0x137d39,memberID:_0x2070e1,isForwarded:_0x12223f}=_0x54d11a;_0x137d39['forEach'](_0xa33f7b=>{const _0x507f77=_0x4876;if(!_0x12223f&&this[_0x507f77(0x416)][_0x507f77(0x479)](_0xa33f7b)&&this[_0x507f77(0x55a)](_0xa33f7b)[_0x507f77(0x3c0)](0x1),!this[_0x507f77(0x416)][_0x507f77(0x479)](_0xa33f7b)||!this['_unitOnClients'][_0x507f77(0x471)](_0xa33f7b)['has'](_0x2070e1)){const _0x2f5cb2=this[_0x507f77(0x416)]['get'](_0xa33f7b)||new Set();_0x2f5cb2[_0x507f77(0x1a1)](_0x2070e1),this[_0x507f77(0x416)]['set'](_0xa33f7b,_0x2f5cb2),this[_0x507f77(0x2c8)](_0x2070e1);}}),_0x12223f||this[_0x2d3024(0x1ea)]({'type':0x0,'memberID':this[_0x2d3024(0x236)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x786505(0x2c8)](_0x296bfd){const _0x22ce49=_0x786505;this[_0x22ce49(0x362)](_0x296bfd);const _0x191d6c=window[_0x22ce49(0x24d)](()=>{const _0xb7c37b=_0x22ce49;this[_0xb7c37b(0x416)][_0xb7c37b(0x476)](_0x5c1a1d=>{const _0x11e038=_0xb7c37b;_0x5c1a1d[_0x11e038(0x27c)](_0x296bfd);});},Qe*0x2);this[_0x22ce49(0x3ba)]['set'](_0x296bfd,_0x191d6c);}[_0x786505(0x362)](_0xb331c){const _0x10e2e6=_0x786505;if(this['_clearOtherTimers']['has'](_0xb331c)){const _0x20398f=this['_clearOtherTimers'][_0x10e2e6(0x471)](_0xb331c);_0x20398f&&window['clearTimeout'](_0x20398f),this[_0x10e2e6(0x3ba)][_0x10e2e6(0x3a3)](_0xb331c,null);}}[_0x786505(0x54e)](_0x2e8cde){const _0x5adf2e=_0x786505,{memberID:_0x2178a4,unitIDs:_0x52b7fa}=_0x2e8cde;_0x52b7fa[_0x5adf2e(0x476)](_0x398b64=>{const _0xddb1fa=_0x5adf2e;var _0x5772b2;const _0x3d3c9c=this['_unitOnClients'][_0xddb1fa(0x471)](_0x398b64);_0x3d3c9c&&(_0x3d3c9c['delete'](_0x2178a4),(_0x5772b2=this[_0xddb1fa(0x55a)](_0x398b64))==null||_0x5772b2['next'](_0x3d3c9c[_0xddb1fa(0x200)]===0x0?0x0:0x1));}),this[_0x5adf2e(0x362)](_0x2178a4);}[_0x786505(0x409)](_0x3a2370){const _0x251716=_0x786505;this[_0x251716(0x2c8)](_0x3a2370[_0x251716(0x30f)]);}[_0x786505(0x1ea)](_0x31b1a7){const _0x16a98e=_0x786505;localStorage[_0x16a98e(0x29b)](et,JSON[_0x16a98e(0x301)](_0x31b1a7));}[_0x786505(0x327)](){const _0x62cf75=_0x786505;this[_0x62cf75(0x56a)]=window[_0x62cf75(0x39f)](()=>{const _0x272fa5=_0x62cf75;this[_0x272fa5(0x1ea)]({'type':0x2,'memberID':this['_id']});},Qe);}[_0x786505(0x55a)](_0xb2f2e4){const _0x34a78c=_0x786505;return this[_0x34a78c(0x4ef)][_0x34a78c(0x479)](_0xb2f2e4)||this[_0x34a78c(0x4ef)][_0x34a78c(0x3a3)](_0xb2f2e4,new v[(_0x34a78c(0x518))](0x0)),this[_0x34a78c(0x4ef)][_0x34a78c(0x471)](_0xb2f2e4);}}function Rt(_0x1ef936){let _0x33be49='';for(const _0xbf5291 of _0x1ef936){const {startOffset:_0x2db136,endOffset:_0x42cefd,isActive:_0x341d2f}=_0xbf5291;_0x33be49['length']&&(_0x33be49+=','),_0x33be49+=_0x2db136+':'+_0x42cefd+':'+(_0x341d2f?'1':'0');}return _0x33be49;}function Ds(_0x592d31){const _0x7d2344=_0x786505,_0xa5b6ba=_0x592d31[_0x7d2344(0x51b)](','),_0x39798b=[];for(const _0x5ae61b of _0xa5b6ba){const [_0x30fb20,_0x53f198,_0x3dbdf4]=_0x5ae61b[_0x7d2344(0x51b)](':');_0x39798b[_0x7d2344(0x577)]({'startOffset':Number(_0x30fb20),'endOffset':Number(_0x53f198),'collapsed':_0x30fb20===_0x53f198,'isActive':_0x3dbdf4==='1'});}return _0x39798b['some'](_0x2d89ae=>_0x2d89ae[_0x7d2344(0x566)])||(_0x39798b[0x0]['isActive']=!0x0),_0x39798b;}class Ge extends a[_0x786505(0x304)]{constructor(){const _0x190b08=_0x786505;super(...arguments),d(this,_0x190b08(0x2d1),new v[(_0x190b08(0x518))](null)),d(this,_0x190b08(0x2ca),this['_collabCursorState$'][_0x190b08(0x1e2)]());}[_0x786505(0x345)](_0x1c71b5){const _0x4dc8f4=_0x786505,{unitID:_0x5ada94,memberID:_0x5b1921,textRanges:_0x518ed1}=_0x1c71b5,_0x3730ec=Rt(_0x518ed1),_0x473a40={'unitID':_0x5ada94,'memberID':_0x5b1921,'selection':_0x3730ec};this[_0x4dc8f4(0x2d1)][_0x4dc8f4(0x3c0)](_0x473a40);}}var ys=Object[_0x786505(0x36b)],Ps=Object[_0x786505(0x1b8)],ws=(_0x5c14c1,_0xecba0e,_0x39d47e,_0x52e4b7)=>{const _0x30689d=_0x786505;for(var _0x5bc964=_0x52e4b7>0x1?void 0x0:_0x52e4b7?Ps(_0xecba0e,_0x39d47e):_0xecba0e,_0x2da162=_0x5c14c1[_0x30689d(0x31e)]-0x1,_0x2de51f;_0x2da162>=0x0;_0x2da162--)(_0x2de51f=_0x5c14c1[_0x2da162])&&(_0x5bc964=(_0x52e4b7?_0x2de51f(_0xecba0e,_0x39d47e,_0x5bc964):_0x2de51f(_0x5bc964))||_0x5bc964);return _0x52e4b7&&_0x5bc964&&ys(_0xecba0e,_0x39d47e,_0x5bc964),_0x5bc964;},tt=(_0x5230eb,_0x590d75)=>(_0x3675ba,_0x565328)=>_0x590d75(_0x3675ba,_0x565328,_0x5230eb);let pe=class{constructor(_0x57e0ad,_0x58f0b5){const _0x31de9b=_0x786505;this[_0x31de9b(0x1c7)]=_0x57e0ad,this['_transformService']=_0x58f0b5;}[_0x786505(0x1d2)](_0x49086c){const _0x24aab1=_0x786505;var _0x19bf0e;const _0x7b30c0=this[_0x24aab1(0x1c7)]['get'](B['DocSelectionManagerService']),_0x5c0706=(_0x19bf0e=_0x7b30c0[_0x24aab1(0x35b)]())!=null?_0x19bf0e:[];if(_0x5c0706['length']===0x0)return;const _0x3c9578=[{'id':_0x24aab1(0x243),'params':{'unitId':_0x49086c[_0x24aab1(0x1e0)],'actions':null,'textRanges':_0x5c0706}}],_0x29f24a=this[_0x24aab1(0x4fa)][_0x24aab1(0x333)](_0x49086c,_0x3c9578);if(!_[_0x24aab1(0x52e)](_0x29f24a))throw _0x29f24a[_0x24aab1(0x3e2)];const _0x5bd490=_0x29f24a['m2Prime'][0x0]['params'][_0x24aab1(0x31b)];Array[_0x24aab1(0x184)](_0x5bd490)&&_0x5bd490['length']&&_0x7b30c0[_0x24aab1(0x568)](_0x5bd490,!0x1);}};pe=ws([tt(0x0,a[_0x786505(0x449)](a['Injector'])),tt(0x1,_[_0x786505(0x276)])],pe);const Us=new Set([C[_0x786505(0x3da)]['id']]);function st(_0x15c56e,_0x5b7a42,_0x86d088,_0x5f26b9,_0x432320){const _0x3b3eef=_0x786505;var _0x3524ef,_0x2a3b23,_0x45d51d,_0xe02573;const _0x3beedb=[];for(const _0x4d6e5c of _0x15c56e)if(Us[_0x3b3eef(0x479)](_0x4d6e5c['id'])){if(_0x3beedb[_0x3b3eef(0x31e)]>0x0)break;_0x3beedb[_0x3b3eef(0x577)](_0x4d6e5c);break;}else _0x3beedb['push'](_0x4d6e5c);const _0x2ef8c1=(_0x2a3b23=(_0x3524ef=_0x432320['getCurrentUser']())==null?void 0x0:_0x3524ef['userID'])!=null?_0x2a3b23:_0x3b3eef(0x28e),_0xc3d8b7=(_0xe02573=(_0x45d51d=_0x432320[_0x3b3eef(0x195)]())==null?void 0x0:_0x45d51d[_0x3b3eef(0x30f)])!=null?_0xe02573:_0x3b3eef(0x28e);return{'changeset':{'unitID':_0x5b7a42,'type':_[_0x3b3eef(0x34b)](_0x86d088['getUnitType'](_0x5b7a42)),'baseRev':_0x5f26b9[_0x3b3eef(0x24a)](_0x5b7a42),'revision':0x0,'userID':_0x2ef8c1,'memberID':_0xc3d8b7,'mutations':_0x3beedb},'pendingMutations':_0x15c56e[_0x3b3eef(0x2b3)](_0x3beedb['length'])};}function Ns(_0x4e1d39,_0x7273e4,_0x3db07c,_0x2ff48c,_0x484a8c){const _0x7dc56a=_0x786505;var _0x1876e4,_0x56b9cd,_0x534095,_0x524e4b;const _0x3a83c7=[_0x4e1d39[_0x7dc56a(0x167)]((_0x54b366,_0x1a41ae)=>{const _0x310499=_0x7dc56a;var _0x2c2c3b;const {id:_0x51fe47}=_0x54b366,{id:_0x425f08,type:_0x2cf2fa}=_0x1a41ae,_0x194578=(_0x2c2c3b=_0x54b366[_0x310499(0x33e)])!=null?_0x2c2c3b:{'actions':null},_0x3de017=_0x1a41ae[_0x310499(0x33e)];if(_0x51fe47&&_0x51fe47!==_0x425f08)throw new Error(_0x310499(0x2b7)+_0x51fe47+_0x310499(0x1bb)+_0x425f08+'.');return{..._0x54b366,'id':_0x425f08,'type':_0x2cf2fa,'params':{'unitId':_0x3de017['unitId'],'textRanges':_0x3de017['textRanges'],'actions':a['JSONX']['compose'](_0x194578[_0x310499(0x1e4)],_0x3de017[_0x310499(0x1e4)])}};},{})],_0x2719f8=(_0x56b9cd=(_0x1876e4=_0x484a8c[_0x7dc56a(0x195)]())==null?void 0x0:_0x1876e4[_0x7dc56a(0x187)])!=null?_0x56b9cd:'unknown',_0x58d356=(_0x524e4b=(_0x534095=_0x484a8c[_0x7dc56a(0x195)]())==null?void 0x0:_0x534095[_0x7dc56a(0x30f)])!=null?_0x524e4b:_0x7dc56a(0x28e);return{'changeset':{'unitID':_0x7273e4,'type':_[_0x7dc56a(0x34b)](_0x3db07c[_0x7dc56a(0x1ca)](_0x7273e4)),'baseRev':_0x2ff48c[_0x7dc56a(0x24a)](_0x7273e4),'revision':0x0,'userID':_0x2719f8,'memberID':_0x58d356,'mutations':_0x3a83c7},'pendingMutations':[]};}const Ms={'id':C[_0x786505(0x281)]['id'],'type':a[_0x786505(0x44b)][_0x786505(0x28b)],'params':{}};var Ls=Object[_0x786505(0x36b)],As=Object[_0x786505(0x1b8)],q=(_0xb7a346,_0x2cfacc,_0x25dfb1,_0x41c007)=>{const _0x37a321=_0x786505;for(var _0x4694d8=_0x41c007>0x1?void 0x0:_0x41c007?As(_0x2cfacc,_0x25dfb1):_0x2cfacc,_0x4b6c42=_0xb7a346[_0x37a321(0x31e)]-0x1,_0x576b03;_0x4b6c42>=0x0;_0x4b6c42--)(_0x576b03=_0xb7a346[_0x4b6c42])&&(_0x4694d8=(_0x41c007?_0x576b03(_0x2cfacc,_0x25dfb1,_0x4694d8):_0x576b03(_0x4694d8))||_0x4694d8);return _0x41c007&&_0x4694d8&&Ls(_0x2cfacc,_0x25dfb1,_0x4694d8),_0x4694d8;},f=(_0x411780,_0x47c81c)=>(_0x22d341,_0x3d4a0d)=>_0x47c81c(_0x22d341,_0x3d4a0d,_0x411780),y=(_0xbe2078=>(_0xbe2078[_0x786505(0x4cb)]='not_collab',_0xbe2078[_0x786505(0x2e8)]=_0x786505(0x579),_0xbe2078[_0x786505(0x428)]=_0x786505(0x198),_0xbe2078[_0x786505(0x271)]=_0x786505(0x384),_0xbe2078[_0x786505(0x42b)]=_0x786505(0x4b8),_0xbe2078[_0x786505(0x497)]=_0x786505(0x27e),_0xbe2078[_0x786505(0x488)]=_0x786505(0x477),_0xbe2078['OFFLINE']=_0x786505(0x264),_0xbe2078))(y||{});class J{constructor(_0x1c639a,_0x53c42d,_0x20fe04,_0x58c96f,_0x471a9d,_0x37b532,_0x33958f,_0x448b18,_0x47a1c6){const _0x15ba5e=_0x786505;d(this,_0x15ba5e(0x255),null),d(this,_0x15ba5e(0x199),[]),(this[_0x15ba5e(0x1e0)]=_0x1c639a,this[_0x15ba5e(0x39b)]=_0x53c42d,this[_0x15ba5e(0x186)]=_0x471a9d,this['_commandService']=_0x37b532,this['_undoRedoService']=_0x33958f,this['_revisionService']=_0x448b18,this['_localCacheService']=_0x47a1c6,this[_0x15ba5e(0x255)]=_0x20fe04,this[_0x15ba5e(0x199)]=_0x58c96f);}[_0x786505(0x27a)](_0x292d52){const _0x29328b=_0x786505,_0x44a829=this[_0x29328b(0x2db)]['getCurrentRevForDocument'](this[_0x29328b(0x1e0)]);return _0x292d52[_0x29328b(0x2ab)]>_0x44a829+0x1?(this[_0x29328b(0x186)][_0x29328b(0x1da)]({'from':_0x44a829,'to':_0x292d52[_0x29328b(0x2ab)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x5e7752){const _0x52bce2=_0x786505;this['_undoRedoService'][_0x52bce2(0x20a)](this[_0x52bce2(0x1e0)],_0x5e7752);}[_0x786505(0x188)](_0x56041e){const _0x41ca5d=_0x786505;var _0x3b0865,_0x401d15;(_0x401d15=(_0x3b0865=this[_0x41ca5d(0x186)])[_0x41ca5d(0x1d7)])==null||_0x401d15[_0x41ca5d(0x48d)](_0x3b0865,_0x56041e);}[_0x786505(0x329)](_0x2556af){const _0x46d77a=_0x786505;var _0x37cac5,_0x3c5e24;return(_0x3c5e24=(_0x37cac5=this[_0x46d77a(0x186)])[_0x46d77a(0x44a)])==null?void 0x0:_0x3c5e24[_0x46d77a(0x48d)](_0x37cac5,_0x2556af);}[_0x786505(0x17a)](_0x21739c){const _0x3e0aa9=_0x786505;var _0x59c96b,_0x3d3832,_0x206c75;return(_0x206c75=(_0x3d3832=(_0x59c96b=this[_0x3e0aa9(0x186)])[_0x3e0aa9(0x2f8)])==null?void 0x0:_0x3d3832[_0x3e0aa9(0x48d)](_0x59c96b,_0x21739c))!=null?_0x206c75:_0x21739c;}[_0x786505(0x3a9)](_0x1cff69){const _0x1c0bb9=_0x786505;var _0x5d934d,_0x31374f;if(this[_0x1c0bb9(0x39b)]===A['UNIVER_DOC']){const {unitID:_0x416b79,mutations:_0x17ab7e,memberID:_0x21b44a}=_0x1cff69,_0x3e9e75=_0x17ab7e[0x0][_0x1c0bb9(0x33e)][_0x1c0bb9(0x31b)];Array[_0x1c0bb9(0x184)](_0x3e9e75)&&_0x3e9e75[_0x1c0bb9(0x31e)]>0x0&&((_0x31374f=(_0x5d934d=this[_0x1c0bb9(0x186)])[_0x1c0bb9(0x513)])==null||_0x31374f['call'](_0x5d934d,{'unitID':_0x416b79,'memberID':_0x21b44a,'textRanges':_0x3e9e75}));}}[_0x786505(0x494)](){const _0x2e9fa4=_0x786505;this['_localCacheService'][_0x2e9fa4(0x3b4)](this[_0x2e9fa4(0x1e0)],this[_0x2e9fa4(0x39b)],this['_awaitingChangeset'],this[_0x2e9fa4(0x199)]);}[_0x786505(0x3f1)](){const _0x53e5c7=_0x786505;return this['_revisionService']['getCurrentRevForDocument'](this[_0x53e5c7(0x1e0)]);}[_0x786505(0x2d4)](){const _0x33500b=_0x786505;this['_revisionService'][_0x33500b(0x223)](this['unitID']);}[_0x786505(0x38f)](_0x56e571){const _0x3b1b71=_0x786505;var _0x1d0e2f;const _0x9d5c3a=this[_0x3b1b71(0x17a)](_0x56e571),_0x52d659=a[_0x3b1b71(0x4a2)](_0x9d5c3a[_0x3b1b71(0x485)],this[_0x3b1b71(0x23c)],{'fromCollab':!0x0});if(!_0x52d659[_0x3b1b71(0x2f6)])throw _0x52d659[_0x3b1b71(0x3e2)]instanceof Error?_0x52d659['error']:new Error((_0x1d0e2f=_0x52d659['error'])!=null?_0x1d0e2f:'[CollaborationState]:\x20apply\x20error!');this[_0x3b1b71(0x329)](_0x9d5c3a),this[_0x3b1b71(0x165)](_0x56e571),this['_transformSelections'](_0x9d5c3a),this[_0x3b1b71(0x3a9)](_0x9d5c3a),this['_incrementRevisionNumber']();}}let se=class extends J{constructor(_0x171816,_0x3d2321,_0x2d6625,_0x1aeeca,_0x189b55,_0x24b574,_0x1a4610,_0x2c08d4,_0x329e4a,_0x8a5f1d){const _0x5b70d7=_0x786505;super(_0x171816,_0x3d2321,null,[],_0x2d6625,_0x2c08d4,_0x1a4610,_0x1aeeca,_0x189b55),d(this,_0x5b70d7(0x181),_0x5b70d7(0x579)),(this[_0x5b70d7(0x1c7)]=_0x24b574,this[_0x5b70d7(0x26f)]=_0x329e4a,this[_0x5b70d7(0x4fa)]=_0x8a5f1d);}[_0x786505(0x389)](_0x23f24d){const _0x4427be=_0x786505,_0x31a4cb=this['_injector'][_0x4427be(0x400)](H,this[_0x4427be(0x1e0)],this['type'],[_0x23f24d],this[_0x4427be(0x186)]);return _0x31a4cb[_0x4427be(0x454)](),_0x31a4cb['_updateLocalCache'](),_0x31a4cb;}[_0x786505(0x544)](_0x26ffb1){const _0x760f80=_0x786505;if(this[_0x760f80(0x27a)](_0x26ffb1))return this['_injector'][_0x760f80(0x400)]($,this[_0x760f80(0x1e0)],this[_0x760f80(0x39b)],null,[],null,[_0x26ffb1],this['_handler']);try{const _0x19226a=this[_0x760f80(0x4fa)]['transformMutationsWithChangeset'](_0x26ffb1,[Ms]);if(_['isTransformMutationsWithChangesetSuccess'](_0x19226a)){const {c1Prime:_0x5b990f}=_0x19226a;return this[_0x760f80(0x38f)](_0x5b990f),this;}throw _0x19226a[_0x760f80(0x3e2)];}catch(_0x5a10fa){return this[_0x760f80(0x26f)][_0x760f80(0x3e2)](_0x5a10fa),this['_onConflict'](!0x1);}}[_0x786505(0x205)](_0x273361){const _0x21b8dd=_0x786505;return this[_0x21b8dd(0x1c7)]['createInstance'](F,this['unitID'],this[_0x21b8dd(0x39b)],null,[],this['_handler'],_0x273361);}[_0x786505(0x557)](){const _0x907b1c=_0x786505;throw new Error(_0x907b1c(0x533));}[_0x786505(0x323)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x786505(0x315)](){const _0x5972d5=_0x786505;return this[_0x5972d5(0x1c7)]['createInstance'](W,this[_0x5972d5(0x1e0)],this[_0x5972d5(0x39b)],null,[],this[_0x5972d5(0x186)]);}[_0x786505(0x574)](){return this;}[_0x786505(0x26b)](){const _0x18b266=_0x786505;throw new Error(_0x18b266(0x4dd));}[_0x786505(0x219)](){const _0x3dcb95=_0x786505,_0xaf0843=this[_0x3dcb95(0x2db)][_0x3dcb95(0x24a)](this[_0x3dcb95(0x1e0)]);return this[_0x3dcb95(0x186)][_0x3dcb95(0x1da)]({'from':_0xaf0843,'to':0x0}),this[_0x3dcb95(0x1c7)]['createInstance']($,this[_0x3dcb95(0x1e0)],this['type'],null,[],null,[],this[_0x3dcb95(0x186)]);}};se=q([f(0x3,a[_0x786505(0x449)](_[_0x786505(0x2c2)])),f(0x4,a[_0x786505(0x449)](exports[_0x786505(0x37f)])),f(0x5,a[_0x786505(0x449)](a['Injector'])),f(0x6,a[_0x786505(0x552)]),f(0x7,a[_0x786505(0x368)]),f(0x8,a[_0x786505(0x435)]),f(0x9,_['ITransformService'])],se);let H=class extends J{constructor(_0x286d32,_0x12ccc6,_0x26b184,_0x2d756f,_0x18153c,_0x225f30,_0x3645d5,_0x5a9099,_0xd4dc0b,_0x17dc27,_0x3e7315,_0x292d11,_0x4bbd71,_0x3f5094){const _0x14f171=_0x786505;super(_0x286d32,_0x12ccc6,null,_0x26b184,_0x2d756f,_0x17dc27,_0x3f5094,_0x225f30,_0x3645d5),d(this,_0x14f171(0x181),_0x14f171(0x198)),d(this,_0x14f171(0x1a7),null),d(this,_0x14f171(0x554),null),(this[_0x14f171(0x1c7)]=_0x18153c,this['_memberService']=_0x5a9099,this['_logService']=_0xd4dc0b,this['_configService']=_0x3e7315,this['_transformService']=_0x292d11,this[_0x14f171(0x163)]=_0x4bbd71);}['appendMutation'](_0x19313b){const _0x2eedec=_0x786505;return this[_0x2eedec(0x199)][_0x2eedec(0x577)](_0x19313b),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x202462){const _0x250ab7=_0x786505;if(this[_0x250ab7(0x27a)](_0x202462))return this[_0x250ab7(0x56b)](),this[_0x250ab7(0x1c7)]['createInstance']($,this[_0x250ab7(0x1e0)],this['type'],null,this[_0x250ab7(0x199)],null,[_0x202462],this[_0x250ab7(0x186)]);try{const _0x4340f3=this[_0x250ab7(0x4fa)][_0x250ab7(0x333)](_0x202462,this['_pendingMutations']);if(_[_0x250ab7(0x52e)](_0x4340f3)){const {c1Prime:_0x209d24,m2Prime:_0x1a5318}=_0x4340f3;this[_0x250ab7(0x38f)](_0x209d24);const _0x33283a=this['_injector'][_0x250ab7(0x400)](H,this['unitID'],this[_0x250ab7(0x39b)],_0x1a5318,this['_handler']);return this[_0x250ab7(0x56b)](),_0x33283a[_0x250ab7(0x454)](this[_0x250ab7(0x1a7)]?Math[_0x250ab7(0x20c)](0x0,new Date()[_0x250ab7(0x462)]()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x33283a;}throw _0x4340f3['error'];}catch(_0x5a3377){return this[_0x250ab7(0x26f)][_0x250ab7(0x3e2)](_0x5a3377),this[_0x250ab7(0x205)](!0x1);}}[_0x786505(0x557)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x786505(0x323)](){const _0x26dcf5=_0x786505;throw new Error(_0x26dcf5(0x413));}[_0x786505(0x315)](){const _0x939844=_0x786505;return this[_0x939844(0x56b)](),this[_0x939844(0x1c7)][_0x939844(0x400)](W,this[_0x939844(0x1e0)],this[_0x939844(0x39b)],null,this[_0x939844(0x199)],this['_handler']);}[_0x786505(0x574)](){return this;}[_0x786505(0x454)](_0x3b10aa){const _0x2adbd1=_0x786505,_0x2160e6=_0x3b10aa!=null?_0x3b10aa:this[_0x2adbd1(0x42c)]();this[_0x2adbd1(0x1a7)]=new Date()['getTime'](),this[_0x2adbd1(0x554)]=window[_0x2adbd1(0x24d)](()=>{const _0x4534af=_0x2adbd1;this[_0x4534af(0x56b)]();let _0x492b1d=null;switch(this[_0x4534af(0x39b)]){case A[_0x4534af(0x4ac)]:{_0x492b1d=st(this[_0x4534af(0x199)],this[_0x4534af(0x1e0)],this[_0x4534af(0x163)],this['_revisionService'],this['_memberService']);break;}case A[_0x4534af(0x170)]:{this[_0x4534af(0x199)][_0x4534af(0x2d7)](_0x41ad30=>_0x41ad30['id']===B[_0x4534af(0x39a)]['id'])?_0x492b1d=Ns(this[_0x4534af(0x199)],this['unitID'],this[_0x4534af(0x163)],this['_revisionService'],this[_0x4534af(0x328)]):_0x492b1d=st(this[_0x4534af(0x199)],this[_0x4534af(0x1e0)],this[_0x4534af(0x163)],this['_revisionService'],this[_0x4534af(0x328)]);break;}default:throw new Error(_0x4534af(0x175)+this[_0x4534af(0x39b)]+_0x4534af(0x4c7));}const {changeset:_0x3ae474,pendingMutations:_0x1a7445}=_0x492b1d;this[_0x4534af(0x186)][_0x4534af(0x538)](_0x3ae474);const _0x405de3=_0x1a7445[_0x4534af(0x31e)]?this[_0x4534af(0x1c7)]['createInstance'](x,this[_0x4534af(0x1e0)],this['type'],_0x3ae474,_0x1a7445,this[_0x4534af(0x186)]):this[_0x4534af(0x1c7)][_0x4534af(0x400)](V,this['unitID'],this[_0x4534af(0x39b)],_0x3ae474,this['_handler']);_0x405de3[_0x4534af(0x494)](),this['_handler'][_0x4534af(0x1ec)](this,_0x405de3);},_0x2160e6);}[_0x786505(0x42c)](){const _0x246f3d=_0x786505;var _0x587fe7;return(_0x587fe7=this[_0x246f3d(0x48f)][_0x246f3d(0x487)](_t))!=null?_0x587fe7:Yt;}[_0x786505(0x26b)](){const _0x2be46c=_0x786505;throw new Error(_0x2be46c(0x26a));}[_0x786505(0x56b)](){const _0x49c1e7=_0x786505;this[_0x49c1e7(0x554)]!=null&&(clearTimeout(this[_0x49c1e7(0x554)]),this[_0x49c1e7(0x554)]=null);}[_0x786505(0x205)](_0x45898b){const _0x3d29ce=_0x786505;return this[_0x3d29ce(0x56b)](),this['_injector'][_0x3d29ce(0x400)](F,this[_0x3d29ce(0x1e0)],this[_0x3d29ce(0x39b)],null,this[_0x3d29ce(0x199)],this[_0x3d29ce(0x186)],_0x45898b);}};H=q([f(0x4,a['Inject'](a[_0x786505(0x430)])),f(0x5,a[_0x786505(0x449)](_[_0x786505(0x2c2)])),f(0x6,a[_0x786505(0x449)](exports[_0x786505(0x37f)])),f(0x7,a['Inject'](X)),f(0x8,a[_0x786505(0x435)]),f(0x9,a[_0x786505(0x368)]),f(0xa,a['IConfigService']),f(0xb,_['ITransformService']),f(0xc,a[_0x786505(0x244)]),f(0xd,a[_0x786505(0x552)])],H);let V=class extends J{constructor(_0x39dd10,_0x3423cb,_0xdcbc2e,_0xa1ee39,_0x5d776c,_0x3d2962,_0x420b80,_0x43e6f1,_0x4027d1,_0x3e98af,_0x22ced5){const _0xed2caf=_0x786505;super(_0x39dd10,_0x3423cb,_0xdcbc2e,[],_0xa1ee39,_0x43e6f1,_0x22ced5,_0x3d2962,_0x420b80),d(this,'status','awaiting'),(this[_0xed2caf(0x1c7)]=_0x5d776c,this[_0xed2caf(0x26f)]=_0x4027d1,this[_0xed2caf(0x4fa)]=_0x3e98af);}['appendMutation'](_0x135b6c){const _0x48dd5f=_0x786505,_0x2c0b88=this[_0x48dd5f(0x1c7)][_0x48dd5f(0x400)](x,this[_0x48dd5f(0x1e0)],this[_0x48dd5f(0x39b)],this[_0x48dd5f(0x255)],[_0x135b6c],this['_handler']);return _0x2c0b88[_0x48dd5f(0x494)](),_0x2c0b88;}[_0x786505(0x544)](_0x3da41d){const _0x21b37c=_0x786505;if(this[_0x21b37c(0x27a)](_0x3da41d))return this['_injector'][_0x21b37c(0x400)]($,this[_0x21b37c(0x1e0)],this[_0x21b37c(0x39b)],this[_0x21b37c(0x255)],[],null,[_0x3da41d],this['_handler']);try{const _0x452507=this[_0x21b37c(0x4fa)]['transformChangesets']([_0x3da41d],[this[_0x21b37c(0x255)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x452507)){const {c1Prime:_0x41fdac,c2Prime:_0xf28c4a}=_0x452507;this[_0x21b37c(0x38f)](_0x41fdac[0x0]),_0xf28c4a[0x0][_0x21b37c(0x4f4)]=this[_0x21b37c(0x3f1)]();const _0x3b5f6e=this['_injector'][_0x21b37c(0x400)](V,this[_0x21b37c(0x1e0)],this[_0x21b37c(0x39b)],_0xf28c4a[0x0],this[_0x21b37c(0x186)]);return _0x3b5f6e['_updateLocalCache'](),_0x3b5f6e;}return this[_0x21b37c(0x205)](!0x1);}catch(_0x42506b){return this[_0x21b37c(0x26f)][_0x21b37c(0x3e2)](_0x42506b),this[_0x21b37c(0x205)](!0x1);}}[_0x786505(0x557)](_0x25b7d7){const _0x2d1d5d=_0x786505,_0xd0bab1=this['_revisionService']['getCurrentRevForDocument'](this['unitID']);if(_0x25b7d7['revision']<_0xd0bab1-0x1)return this;if(this[_0x2d1d5d(0x27a)](_0x25b7d7))return this[_0x2d1d5d(0x1c7)][_0x2d1d5d(0x400)]($,this[_0x2d1d5d(0x1e0)],this[_0x2d1d5d(0x39b)],null,[],this[_0x2d1d5d(0x255)],[],this[_0x2d1d5d(0x186)]);this[_0x2d1d5d(0x2d4)]();const _0x45ee09=this[_0x2d1d5d(0x1c7)][_0x2d1d5d(0x400)](se,this[_0x2d1d5d(0x1e0)],this[_0x2d1d5d(0x39b)],this['_handler']);return _0x45ee09[_0x2d1d5d(0x494)](),_0x45ee09;}[_0x786505(0x323)](_0x82c526){const _0x1a3f5a=_0x786505;return this[_0x1a3f5a(0x205)](!!(_0x82c526!=null&&_0x82c526[_0x1a3f5a(0x4cc)]));}[_0x786505(0x315)](){const _0x446699=_0x786505;return this[_0x446699(0x1c7)][_0x446699(0x400)](W,this[_0x446699(0x1e0)],this[_0x446699(0x39b)],this[_0x446699(0x255)],[],this[_0x446699(0x186)]);}[_0x786505(0x574)](){return this;}['resend'](){const _0x3f3f3c=_0x786505;this['_handler'][_0x3f3f3c(0x538)](this[_0x3f3f3c(0x255)]);}[_0x786505(0x205)](_0x4153ee){const _0x1d0c7c=_0x786505;return this[_0x1d0c7c(0x1c7)]['createInstance'](F,this[_0x1d0c7c(0x1e0)],this['type'],this[_0x1d0c7c(0x255)],[],this[_0x1d0c7c(0x186)],_0x4153ee);}};V=q([f(0x4,a[_0x786505(0x449)](a['Injector'])),f(0x5,a['Inject'](_[_0x786505(0x2c2)])),f(0x6,a[_0x786505(0x449)](exports['LocalCacheService'])),f(0x7,a['ICommandService']),f(0x8,a[_0x786505(0x435)]),f(0x9,_['ITransformService']),f(0xa,a['IUndoRedoService'])],V);let x=class extends J{constructor(_0x3d18c5,_0x4c22da,_0x3de632,_0x21c18c,_0x351316,_0x4511d8,_0x16bf6a,_0x4c2055,_0x421657,_0x4321c0,_0x259ee0,_0x15bad5){const _0x299b73=_0x786505;super(_0x3d18c5,_0x4c22da,_0x3de632,_0x21c18c,_0x351316,_0x421657,_0x15bad5,_0x16bf6a,_0x4c2055),d(this,_0x299b73(0x181),_0x299b73(0x4b8)),(this['_injector']=_0x4511d8,this[_0x299b73(0x26f)]=_0x4321c0,this[_0x299b73(0x4fa)]=_0x259ee0);}[_0x786505(0x389)](_0x589d82){const _0x5d780e=_0x786505;return this[_0x5d780e(0x199)][_0x5d780e(0x577)](_0x589d82),this;}[_0x786505(0x544)](_0x40b035){const _0xa16c2b=_0x786505;if(this['_checkMissing'](_0x40b035))return this[_0xa16c2b(0x1c7)][_0xa16c2b(0x400)]($,this[_0xa16c2b(0x1e0)],this[_0xa16c2b(0x39b)],this[_0xa16c2b(0x255)],this[_0xa16c2b(0x199)],null,[_0x40b035],this['_handler']);try{const _0x5e6219=this[_0xa16c2b(0x4fa)][_0xa16c2b(0x22f)]([_0x40b035],[this['_awaitingChangeset']],!0x1);if(_[_0xa16c2b(0x483)](_0x5e6219)){const {c1Prime:_0x35599c,c2Prime:_0x3fb251}=_0x5e6219,_0xcd8d6a=this[_0xa16c2b(0x4fa)][_0xa16c2b(0x333)](_0x35599c[0x0],this[_0xa16c2b(0x199)]);if(_[_0xa16c2b(0x52e)](_0xcd8d6a)){const {c1Prime:_0x3a66c6,m2Prime:_0x3c97bd}=_0xcd8d6a;return this[_0xa16c2b(0x38f)](_0x3a66c6),_0x3fb251[0x0][_0xa16c2b(0x4f4)]=this[_0xa16c2b(0x3f1)](),this['_injector'][_0xa16c2b(0x400)](x,this[_0xa16c2b(0x1e0)],this[_0xa16c2b(0x39b)],_0x3fb251[0x0],_0x3c97bd,this[_0xa16c2b(0x186)]);}throw _0xcd8d6a[_0xa16c2b(0x3e2)];}throw _0x5e6219[_0xa16c2b(0x3e2)];}catch(_0x5399ca){return this['_logService']['error'](_0x5399ca),this[_0xa16c2b(0x205)](!0x1);}}['onRemoteAck'](_0x578fa4){const _0x3db4a8=_0x786505;if(this[_0x3db4a8(0x27a)](_0x578fa4))return this[_0x3db4a8(0x1c7)][_0x3db4a8(0x400)]($,this[_0x3db4a8(0x1e0)],this[_0x3db4a8(0x39b)],null,this[_0x3db4a8(0x199)],this[_0x3db4a8(0x255)],[],this[_0x3db4a8(0x186)]);this['_incrementRevisionNumber']();const _0x56d8fd=this['_injector'][_0x3db4a8(0x400)](H,this['unitID'],this[_0x3db4a8(0x39b)],this[_0x3db4a8(0x199)],this[_0x3db4a8(0x186)]);return _0x56d8fd[_0x3db4a8(0x454)](),_0x56d8fd[_0x3db4a8(0x494)](),_0x56d8fd;}['onRemoteRej'](_0x416d1){const _0x409561=_0x786505;return this[_0x409561(0x205)](!!(_0x416d1!=null&&_0x416d1[_0x409561(0x4cc)]));}[_0x786505(0x315)](){const _0x390adc=_0x786505;return this['_injector'][_0x390adc(0x400)](W,this[_0x390adc(0x1e0)],this[_0x390adc(0x39b)],this[_0x390adc(0x255)],this[_0x390adc(0x199)],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x1e6ee1=_0x786505;this['_handler'][_0x1e6ee1(0x538)](this[_0x1e6ee1(0x255)]);}[_0x786505(0x205)](_0x4d61cc){const _0x42a097=_0x786505;return this[_0x42a097(0x1c7)][_0x42a097(0x400)](F,this[_0x42a097(0x1e0)],this[_0x42a097(0x39b)],null,this[_0x42a097(0x199)],this[_0x42a097(0x186)],_0x4d61cc);}};x=q([f(0x5,a[_0x786505(0x449)](a[_0x786505(0x430)])),f(0x6,a['Inject'](_[_0x786505(0x2c2)])),f(0x7,a[_0x786505(0x449)](exports[_0x786505(0x37f)])),f(0x8,a[_0x786505(0x368)]),f(0x9,a[_0x786505(0x435)]),f(0xa,_['ITransformService']),f(0xb,a[_0x786505(0x552)])],x);let F=class extends J{constructor(_0x3bad93,_0xf85c70,_0x2bc324,_0x58b3ca,_0x26e273,_0x23cc8e=!0x1,_0x64c1e3,_0x5e7559,_0x37bf15,_0xf6f607,_0x25b471,_0xcdbfdb,_0x57ea32){const _0xdb449f=_0x786505;super(_0x3bad93,_0xf85c70,_0x2bc324,_0x58b3ca,_0x26e273,_0x5e7559,_0x37bf15,_0x25b471,_0xf6f607),d(this,_0xdb449f(0x181),_0xdb449f(0x477)),(this['_isPermissionRej']=_0x23cc8e,this[_0xdb449f(0x3ab)]=_0x64c1e3,this[_0xdb449f(0x336)]=_0xcdbfdb,this['_notificationService']=_0x57ea32,this[_0xdb449f(0x562)](),this[_0xdb449f(0x426)](),this[_0xdb449f(0x230)]());}[_0x786505(0x389)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x786505(0x323)](){return this;}[_0x786505(0x315)](){return this;}[_0x786505(0x574)](){return this;}['resend'](){const _0x5c423e=_0x786505;throw new Error(_0x5c423e(0x286));}[_0x786505(0x426)](){const _0x4e1e18=_0x786505;this['_localCacheService'][_0x4e1e18(0x3b4)](this['unitID'],this[_0x4e1e18(0x39b)],null,[]);}[_0x786505(0x562)](){const _0x4877eb=_0x786505;this[_0x4877eb(0x4c2)]?this[_0x4877eb(0x4b5)][_0x4877eb(0x4fc)]({'title':this[_0x4877eb(0x336)]['t'](_0x4877eb(0x3f3)),'content':this[_0x4877eb(0x336)]['t'](_0x4877eb(0x160)),'type':_0x4877eb(0x3e2),'duration':0x0}):this[_0x4877eb(0x4b5)]['show']({'title':this[_0x4877eb(0x336)]['t'](_0x4877eb(0x24f)),'content':this[_0x4877eb(0x336)]['t'](_0x4877eb(0x561)),'type':_0x4877eb(0x3e2),'duration':0x0});}[_0x786505(0x230)](){const _0x553a19=_0x786505;this[_0x553a19(0x3ab)][_0x553a19(0x43d)](new C[(_0x553a19(0x21e))](this[_0x553a19(0x1e0)])['id'],!0x1);}};F=q([f(0x6,a['Inject'](a[_0x786505(0x2e7)])),f(0x7,a[_0x786505(0x368)]),f(0x8,a[_0x786505(0x552)]),f(0x9,a[_0x786505(0x449)](exports['LocalCacheService'])),f(0xa,a['Inject'](_['RevisionService'])),f(0xb,a[_0x786505(0x449)](a['LocaleService'])),f(0xc,M[_0x786505(0x470)])],F);let W=class extends J{constructor(_0x17853e,_0x3c6e58,_0x14e4b6,_0x2b0ea4,_0x598ab4,_0x1ef576,_0x7a518b,_0x12b4ab,_0x2480bc,_0x5539a1){const _0x4ca8d8=_0x786505;super(_0x17853e,_0x3c6e58,_0x14e4b6,_0x2b0ea4,_0x598ab4,_0x2480bc,_0x5539a1,_0x7a518b,_0x12b4ab),d(this,_0x4ca8d8(0x181),_0x4ca8d8(0x264)),this[_0x4ca8d8(0x1c7)]=_0x1ef576;}[_0x786505(0x389)](_0x216a20){const _0x1f6f12=_0x786505;return this[_0x1f6f12(0x199)][_0x1f6f12(0x577)](_0x216a20),this[_0x1f6f12(0x494)](),this;}[_0x786505(0x544)](_0x1a6ee8){const _0x1c9f78=_0x786505;throw new Error(_0x1c9f78(0x194));}[_0x786505(0x557)](){const _0x285346=_0x786505;throw new Error(_0x285346(0x556));}[_0x786505(0x323)](){const _0x47eb5c=_0x786505;throw new Error(_0x47eb5c(0x4ae));}[_0x786505(0x315)](){return this;}['toggleOnline'](){const _0xffd7a2=_0x786505,{_injector:_0x179f10,_pendingMutations:_0x4f6d28,_awaitingChangeset:_0x275d74,unitID:_0x8b40ab,_handler:_0x35adbe,type:_0x17f373}=this,_0x1b0b05=Ot(_0x179f10,_0x8b40ab,_0x17f373,_0x275d74,_0x4f6d28,_0x35adbe);return _0x1b0b05 instanceof H?_0x1b0b05[_0xffd7a2(0x454)]():(_0x1b0b05 instanceof x||_0x1b0b05 instanceof V)&&_0x1b0b05[_0xffd7a2(0x26b)](),_0x1b0b05;}['resend'](){const _0x2175e7=_0x786505;throw new Error(_0x2175e7(0x2b5));}};W=q([f(0x5,a['Inject'](a[_0x786505(0x430)])),f(0x6,a['Inject'](_[_0x786505(0x2c2)])),f(0x7,a['Inject'](exports['LocalCacheService'])),f(0x8,a[_0x786505(0x368)]),f(0x9,a[_0x786505(0x552)])],W);let $=class extends J{constructor(_0x2d98c3,_0x2ae08e,_0x3bd6e7,_0x4a3e5a,_0x567add,_0x5aac62,_0x12164c,_0x315c5,_0x3a15d4,_0x28759a,_0x4e877e,_0x37a4ff,_0x39d2f8,_0x155ad4){const _0x237608=_0x786505;super(_0x2d98c3,_0x2ae08e,_0x3bd6e7,_0x4a3e5a,_0x12164c,_0x37a4ff,_0x39d2f8,_0x3a15d4,_0x28759a),d(this,_0x237608(0x181),_0x237608(0x27e)),(this[_0x237608(0x4cd)]=_0x567add,this[_0x237608(0x2e5)]=_0x5aac62,this[_0x237608(0x1c7)]=_0x315c5,this[_0x237608(0x26f)]=_0x4e877e,this['_transformService']=_0x155ad4);}['onMissedChangesetFetched'](_0x287b08){const _0x43dfac=_0x786505;try{const _0x4128a2=[..._0x287b08,...this[_0x43dfac(0x2e5)]],_0x3650fa=[this[_0x43dfac(0x255)]||this[_0x43dfac(0x4cd)]][_0x43dfac(0x3a7)](_0x31b057=>!!_0x31b057);let _0xc6db0f,_0x5a1dff;if(_0x3650fa[_0x43dfac(0x31e)]){const _0x22fc56=this[_0x43dfac(0x4fa)][_0x43dfac(0x22f)](_0x4128a2,_0x3650fa,!0x1);if(!_['isTransformChangesetsSuccess'](_0x22fc56))throw _0x22fc56['error'];_0xc6db0f=_0x22fc56['c1Prime'],_0x5a1dff=_0x22fc56[_0x43dfac(0x19f)];}else _0xc6db0f=_0x4128a2,_0x5a1dff=[];let _0x5549da=this[_0x43dfac(0x199)];_0xc6db0f[_0x43dfac(0x476)](_0x3a508d=>{const _0x4380df=_0x43dfac;let _0x4f9b3;if(_0x5549da[_0x4380df(0x31e)]){const _0x416354=this[_0x4380df(0x4fa)][_0x4380df(0x333)](_0x3a508d,_0x5549da);if(!_[_0x4380df(0x52e)](_0x416354))throw _0x416354[_0x4380df(0x3e2)];_0x4f9b3=_0x416354[_0x4380df(0x3eb)],_0x5549da=_0x416354['m2Prime'];}else _0x4f9b3=_0x3a508d;this['_executeRemoteChangeset'](_0x4f9b3);}),this[_0x43dfac(0x4cd)]&&this[_0x43dfac(0x2d4)](),this[_0x43dfac(0x255)]&&_0x5a1dff[_0x43dfac(0x31e)]&&(_0x5a1dff[0x0][_0x43dfac(0x4f4)]=this[_0x43dfac(0x3f1)]());let _0x5e1cbe;if(this[_0x43dfac(0x255)]&&_0x5549da[_0x43dfac(0x31e)]!==0x0)_0x5e1cbe=this['_injector'][_0x43dfac(0x400)](x,this[_0x43dfac(0x1e0)],this[_0x43dfac(0x39b)],_0x5a1dff[0x0],_0x5549da,this['_handler']);else{if(this['_awaitingChangeset']&&_0x5549da[_0x43dfac(0x31e)]===0x0)_0x5a1dff[0x0][_0x43dfac(0x4f4)]=this['_getCurrentRevision'](),_0x5e1cbe=this['_injector']['createInstance'](V,this[_0x43dfac(0x1e0)],this['type'],_0x5a1dff[0x0],this['_handler']);else{if(_0x5549da[_0x43dfac(0x31e)]!==0x0){const _0x2bc62a=this[_0x43dfac(0x1c7)][_0x43dfac(0x400)](H,this['unitID'],this['type'],_0x5549da,this[_0x43dfac(0x186)]);_0x2bc62a['_schedule'](),_0x5e1cbe=_0x2bc62a;}else _0x5e1cbe=this[_0x43dfac(0x1c7)][_0x43dfac(0x400)](se,this[_0x43dfac(0x1e0)],this[_0x43dfac(0x39b)],this[_0x43dfac(0x186)]);}}return _0x5e1cbe[_0x43dfac(0x494)](),_0x5e1cbe;}catch(_0x4adf1e){return this[_0x43dfac(0x26f)][_0x43dfac(0x3e2)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x4adf1e),this[_0x43dfac(0x1c7)]['createInstance'](F,this['unitID'],this[_0x43dfac(0x39b)],this[_0x43dfac(0x255)],this[_0x43dfac(0x199)],this[_0x43dfac(0x186)],!0x1);}}[_0x786505(0x26b)](){const _0x48fa61=_0x786505;throw new Error(_0x48fa61(0x1c5));}['appendMutation'](_0x3ec214){const _0x2c1cd9=_0x786505;return this[_0x2c1cd9(0x199)][_0x2c1cd9(0x577)](_0x3ec214),this;}[_0x786505(0x544)](_0x5e3b8f){const _0x4da8f9=_0x786505;return this[_0x4da8f9(0x2e5)][_0x4da8f9(0x577)](_0x5e3b8f),this;}[_0x786505(0x557)](_0x16ea62){const _0x540b01=_0x786505;if(this['_awaitingChangeset'])return this[_0x540b01(0x4cd)]=this[_0x540b01(0x255)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x786505(0x323)](_0x499d99){const _0x325457=_0x786505;return this[_0x325457(0x205)](!!(_0x499d99!=null&&_0x499d99['isPermissionRej']));}[_0x786505(0x315)](){const _0x4a3597=_0x786505;return this['_injector']['createInstance'](W,this[_0x4a3597(0x1e0)],this['type'],this[_0x4a3597(0x255)],this[_0x4a3597(0x199)],this[_0x4a3597(0x186)]);}['toggleOnline'](){return this;}[_0x786505(0x205)](_0x56c91f){const _0x1e132e=_0x786505;return this[_0x1e132e(0x1c7)][_0x1e132e(0x400)](F,this['unitID'],this[_0x1e132e(0x39b)],this[_0x1e132e(0x255)],this['_pendingMutations'],this['_handler'],_0x56c91f);}};$=q([f(0x7,a['Inject'](a[_0x786505(0x430)])),f(0x8,a['Inject'](_[_0x786505(0x2c2)])),f(0x9,a['Inject'](exports['LocalCacheService'])),f(0xa,a[_0x786505(0x435)]),f(0xb,a[_0x786505(0x368)]),f(0xc,a[_0x786505(0x552)]),f(0xd,_[_0x786505(0x276)])],$);function Ot(_0x134611,_0x283a3e,_0x55133a,_0x259993,_0x4f66cc,_0x47412a){const _0x418bcf=_0x786505;return _0x259993&&_0x4f66cc[_0x418bcf(0x31e)]?_0x134611[_0x418bcf(0x400)](x,_0x283a3e,_0x55133a,_0x259993,_0x4f66cc,_0x47412a):_0x259993?_0x134611[_0x418bcf(0x400)](V,_0x283a3e,_0x55133a,_0x259993,_0x47412a):_0x4f66cc[_0x418bcf(0x31e)]?_0x134611[_0x418bcf(0x400)](H,_0x283a3e,_0x55133a,_0x4f66cc,_0x47412a):_0x134611['createInstance'](se,_0x283a3e,_0x55133a,_0x47412a);}var js=Object[_0x786505(0x36b)],$s=Object[_0x786505(0x1b8)],Ye=(_0x5f4661,_0x33929b,_0x4cb048,_0x656c21)=>{const _0x21c4bc=_0x786505;for(var _0x16a414=_0x656c21>0x1?void 0x0:_0x656c21?$s(_0x33929b,_0x4cb048):_0x33929b,_0x5cdf98=_0x5f4661[_0x21c4bc(0x31e)]-0x1,_0x528239;_0x5cdf98>=0x0;_0x5cdf98--)(_0x528239=_0x5f4661[_0x5cdf98])&&(_0x16a414=(_0x656c21?_0x528239(_0x33929b,_0x4cb048,_0x16a414):_0x528239(_0x16a414))||_0x16a414);return _0x656c21&&_0x16a414&&js(_0x33929b,_0x4cb048,_0x16a414),_0x16a414;},p=(_0x49627c,_0x19a32e)=>(_0x13efa0,_0x51e161)=>_0x19a32e(_0x13efa0,_0x51e161,_0x49627c);exports[_0x786505(0x4ba)]=class extends a[_0x786505(0x304)]{constructor(_0x5656ed,_0x2c43a8,_0x27890f,_0x1eca8d,_0xacf9f6,_0x2a3a77,_0x49bb98,_0x2eb380,_0x1e75a2,_0x591546,_0x520bbf,_0x583874,_0x2d6687){const _0x511458=_0x786505;super(),d(this,_0x511458(0x4e7),new v['BehaviorSubject'](null)),d(this,'state$',this[_0x511458(0x4e7)]['asObservable']()),d(this,'_state'),d(this,'_collaborationPaused',!0x1),d(this,_0x511458(0x28f),this[_0x511458(0x429)]['pipe'](v[_0x511458(0x2f0)](_0x5a39b5=>_0x5a39b5?_0x5a39b5[_0x511458(0x181)]:y[_0x511458(0x1a8)]),v['shareReplay'](0x1))),d(this,_0x511458(0x3c8),!0x1),d(this,_0x511458(0x424),[]),(this[_0x511458(0x1e0)]=_0x5656ed,this[_0x511458(0x3a0)]=_0x2c43a8,this[_0x511458(0x196)]=_0x27890f,this[_0x511458(0x1c7)]=_0x1eca8d,this[_0x511458(0x168)]=_0xacf9f6,this['_compressMutationService']=_0x2a3a77,this[_0x511458(0x336)]=_0x49bb98,this[_0x511458(0x2db)]=_0x2eb380,this['_logService']=_0x1e75a2,this[_0x511458(0x23c)]=_0x591546,this['_messageService']=_0x520bbf,this[_0x511458(0x3ab)]=_0x583874,this['_singleActiveUnitService']=_0x2d6687);}get[_0x786505(0x52d)](){const _0x12aee4=_0x786505;return this[_0x12aee4(0x316)];}async[_0x786505(0x1cb)](){const _0x8f14af=_0x786505;if(this[_0x8f14af(0x52d)])throw new Error(_0x8f14af(0x405));await this['_init']();}[_0x786505(0x450)](){const _0x2c2617=_0x786505;return this[_0x2c2617(0x253)]=!0x0,a[_0x2c2617(0x261)](()=>{const _0x566d15=_0x2c2617;this[_0x566d15(0x253)]=!0x1,this[_0x566d15(0x36c)]();});}[_0x786505(0x4e9)](_0x3d297c){const _0x135d32=_0x786505;this[_0x135d32(0x316)]=_0x3d297c,this['_state$'][_0x135d32(0x3c0)](_0x3d297c);}async['_init'](){const _0x473ad2=_0x786505;var _0x13a293;this['_updateState'](await this[_0x473ad2(0x1ae)]()),this[_0x473ad2(0x268)]&&((_0x13a293=this['_singleActiveUnitService'])==null||_0x13a293['editingUnit'](this[_0x473ad2(0x1e0)]),this[_0x473ad2(0x364)](this[_0x473ad2(0x268)][_0x473ad2(0x3e6)](this[_0x473ad2(0x1e0)])[_0x473ad2(0x369)](_0x3fea72=>{const _0x53f3e8=_0x473ad2;this[_0x53f3e8(0x26f)][_0x53f3e8(0x3e7)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x3fea72),_0x3fea72===Tt[_0x53f3e8(0x367)]?(this[_0x53f3e8(0x2ff)][_0x53f3e8(0x4fc)]({'content':this[_0x53f3e8(0x336)]['t']('collaboration.single-unit.warning'),'type':K[_0x53f3e8(0x4f6)][_0x53f3e8(0x1ac)]}),this[_0x53f3e8(0x3ab)][_0x53f3e8(0x43d)](new C['WorkbookEditablePermission'](this[_0x53f3e8(0x1e0)])['id'],!0x1)):this[_0x53f3e8(0x3ab)][_0x53f3e8(0x43d)](new C['WorkbookEditablePermission'](this[_0x53f3e8(0x1e0)])['id'],!0x0);})));let _0x46f2dd=!0x1;return this[_0x473ad2(0x364)](this[_0x473ad2(0x3a0)]['sessionStatus$']['subscribe'](_0x2029c2=>{const _0x292172=_0x473ad2;_0x2029c2===j['ONLINE']?this[_0x292172(0x539)](_0x46f2dd):_0x2029c2===j[_0x292172(0x1a8)]&&(_0x46f2dd=!0x0,this[_0x292172(0x30c)]());})),this[_0x473ad2(0x364)](this[_0x473ad2(0x3a0)][_0x473ad2(0x34c)][_0x473ad2(0x369)](_0x22daaf=>{const _0x361629=_0x473ad2;try{switch(_0x22daaf[_0x361629(0x1b2)]){case _['CollaborationEvent'][_0x361629(0x2a8)]:{this[_0x361629(0x2c0)](_['parseProtocolChangeset'](_0x22daaf[_0x361629(0x521)]));break;}case _[_0x361629(0x3f5)][_0x361629(0x28d)]:{this[_0x361629(0x523)](_0x22daaf[_0x361629(0x521)]);break;}case _[_0x361629(0x3f5)]['CHANGESET_REJ']:{this[_0x361629(0x247)]();break;}case _[_0x361629(0x3f5)][_0x361629(0x213)]:{this[_0x361629(0x2dd)](_0x22daaf[_0x361629(0x521)][_0x361629(0x460)][_0x361629(0x2f0)](_0x3e2610=>_['parseProtocolChangeset'](_0x3e2610)));break;}case _[_0x361629(0x3f5)]['PERMISSION_REJ']:this[_0x361629(0x247)]({'isPermissionRej':!0x0});}}catch(_0x3d0078){throw console[_0x361629(0x3e2)](_0x361629(0x344),_0x3d0078),_0x3d0078;}})),this[_0x473ad2(0x316)];}[_0x786505(0x4dc)](){const _0x35939a=_0x786505;this[_0x35939a(0x3c8)]=!0x1;}[_0x786505(0x443)](){const _0x35fea4=_0x786505;if(this[_0x35fea4(0x3c8)])throw new Error(_0x35fea4(0x277));this[_0x35fea4(0x3c8)]=!0x0;}['_onLocalMutation'](_0x55159d){const _0x2668d6=_0x786505;this[_0x2668d6(0x443)](),this['_updateState'](this[_0x2668d6(0x316)][_0x2668d6(0x389)](_0x55159d)),this[_0x2668d6(0x4dc)]();}[_0x786505(0x2c0)](_0x478bd5){const _0x1fb473=_0x786505;if(!(_0x478bd5[_0x1fb473(0x2ab)]<=this[_0x1fb473(0x2db)][_0x1fb473(0x24a)](this['unitID']))){if(this[_0x1fb473(0x253)]){this['_remoteChangesetQueue'][_0x1fb473(0x577)](_0x478bd5);return;}this[_0x1fb473(0x376)](_0x478bd5);}}[_0x786505(0x36c)](){const _0x3fea49=_0x786505;this[_0x3fea49(0x424)][_0x3fea49(0x476)](_0x4d61c8=>this['_applyRemoteChangeset'](_0x4d61c8)),this[_0x3fea49(0x424)]=[];}[_0x786505(0x376)](_0x962886){const _0x38b90c=_0x786505,_0x4d1412=this[_0x38b90c(0x2a2)]['interceptor'][_0x38b90c(0x207)](this[_0x38b90c(0x2a2)][_0x38b90c(0x402)][_0x38b90c(0x16b)]()[_0x38b90c(0x50b)])(_0x962886[_0x38b90c(0x485)],null)||_0x962886['mutations'],_0x58961b={..._0x962886,'mutations':_0x4d1412};this[_0x38b90c(0x443)](),this[_0x38b90c(0x4e9)](this[_0x38b90c(0x316)][_0x38b90c(0x544)](_0x58961b)),this[_0x38b90c(0x4dc)]();}[_0x786505(0x523)](_0x21bbd9){const _0x5194b4=_0x786505;this['_lockTransition'](),this[_0x5194b4(0x4e9)](this[_0x5194b4(0x316)][_0x5194b4(0x557)](_0x21bbd9)),this[_0x5194b4(0x4dc)]();}[_0x786505(0x247)](_0x31a26e){const _0x5f4f28=_0x786505;this[_0x5f4f28(0x443)](),this[_0x5f4f28(0x4e9)](this['_state']['onRemoteRej'](_0x31a26e)),this[_0x5f4f28(0x4dc)]();}[_0x786505(0x2dd)](_0x22e71b){const _0x4b189c=_0x786505;if(!(this[_0x4b189c(0x316)]instanceof $))throw new TypeError(_0x4b189c(0x520));const _0x40e44b=_0x22e71b[_0x4b189c(0x2f0)](_0xba1968=>{const _0x3e34ea=_0x4b189c,_0x29f9f9=this['_compressMutationService'][_0x3e34ea(0x402)][_0x3e34ea(0x207)](this[_0x3e34ea(0x2a2)]['interceptor'][_0x3e34ea(0x16b)]()['COMPRESS_MUTATION_APPLY'])(_0xba1968[_0x3e34ea(0x485)],null)||_0xba1968[_0x3e34ea(0x485)];return{..._0xba1968,'mutations':_0x29f9f9};});this[_0x4b189c(0x443)](),this[_0x4b189c(0x4e9)](this['_state'][_0x4b189c(0x220)](_0x40e44b)),this['_unlockTransition']();}[_0x786505(0x30c)](){const _0x59d50c=_0x786505;this[_0x59d50c(0x443)](),this[_0x59d50c(0x4e9)](this[_0x59d50c(0x316)][_0x59d50c(0x315)]()),this[_0x59d50c(0x4dc)]();}['_toggleOnline'](_0x3a4f6f=!0x1){const _0x183d7c=_0x786505;this[_0x183d7c(0x443)](),this[_0x183d7c(0x4e9)](this[_0x183d7c(0x316)][_0x183d7c(0x574)]()),this['_unlockTransition']();const _0x214cec=this[_0x183d7c(0x316)];_0x3a4f6f&&_0x214cec instanceof se&&(this['_lockTransition'](),this[_0x183d7c(0x4e9)](_0x214cec[_0x183d7c(0x219)]()),this[_0x183d7c(0x4dc)]());}async[_0x786505(0x1ae)](){return new Promise(_0x4c822d=>{const _0x128979=_0x4876;this['session'][_0x128979(0x1ef)][_0x128979(0x33c)](v[_0x128979(0x3ec)](0x1))['subscribe'](async _0x293674=>{const _0x4afa1e=_0x128979;_0x4c822d(await this[_0x4afa1e(0x1f6)](_0x293674===j[_0x4afa1e(0x50d)]));});});}['_createHandler'](){const _0x1c8855=this['unitID'];return{'onStateChange':(_0x4fe699,_0x49ec97)=>{const _0x3b5d6d=_0x4876;if(_0x4fe699!==this['_state'])throw new Error(_0x3b5d6d(0x161)+_0x4fe699[_0x3b5d6d(0x181)]+_0x3b5d6d(0x319)+_0x49ec97[_0x3b5d6d(0x181)]+_0x3b5d6d(0x1df)+this[_0x3b5d6d(0x316)][_0x3b5d6d(0x181)]);this[_0x3b5d6d(0x4e9)](_0x49ec97);},'onSendChangeset':_0x45ca2d=>{const _0x26527c=_0x4876,_0x34ad46={'eventID':_[_0x26527c(0x3f5)][_0x26527c(0x547)],'data':{'unitID':_0x45ca2d['unitID'],'unitType':this[_0x26527c(0x196)],'changeset':_0x45ca2d,'memberID':this[_0x26527c(0x3a0)][_0x26527c(0x4e2)]()}};this[_0x26527c(0x3a0)][_0x26527c(0x248)](_0x34ad46,this[_0x26527c(0x1e0)]);},'onMissingChangesets':({from:_0x1f9902,to:_0x3da773})=>{const _0x54be16=_0x4876;this[_0x54be16(0x26f)][_0x54be16(0x3e7)](_0x54be16(0x38d),_0x54be16(0x164)+_0x1f9902+_0x54be16(0x560)+_0x3da773);const _0x284e94={'eventID':_[_0x54be16(0x3f5)][_0x54be16(0x19b)],'data':{'unitID':_0x1c8855,'unitType':this[_0x54be16(0x196)],'from':_0x1f9902,'to':_0x3da773}};this['session'][_0x54be16(0x248)](_0x284e94,this[_0x54be16(0x1e0)]);}};}async[_0x786505(0x1f6)](_0x44cb52){const _0x1ce325=_0x786505;var _0x7f5a56,_0x320741;const _0x12e2d8=await this[_0x1ce325(0x168)][_0x1ce325(0x32d)](this['unitID']),_0x2e0236=(_0x7f5a56=_0x12e2d8==null?void 0x0:_0x12e2d8[_0x1ce325(0x485)])!=null?_0x7f5a56:[],_0x11480a=(_0x320741=_0x12e2d8==null?void 0x0:_0x12e2d8[_0x1ce325(0x1ee)])!=null?_0x320741:null,_0x28f9c9=this['unitID'];try{this[_0x1ce325(0x3a2)](_0x11480a,_0x2e0236);}catch(_0x4fbcbb){this['_logService'][_0x1ce325(0x3e2)](_0x4fbcbb);}const _0x42d3d6=this[_0x1ce325(0x208)]();if(_0x44cb52){const _0x5ea6f4=Ot(this[_0x1ce325(0x1c7)],_0x28f9c9,this[_0x1ce325(0x196)],_0x11480a,_0x2e0236,_0x42d3d6);return _0x5ea6f4 instanceof H?_0x5ea6f4[_0x1ce325(0x454)]():(_0x5ea6f4 instanceof x||_0x5ea6f4 instanceof V)&&_0x5ea6f4[_0x1ce325(0x26b)](),_0x5ea6f4;}return this[_0x1ce325(0x1c7)][_0x1ce325(0x400)](W,_0x28f9c9,this[_0x1ce325(0x196)],_0x11480a,_0x2e0236,_0x42d3d6);}[_0x786505(0x3a2)](_0x1b0953,_0x181b40){const _0x55c77e=_0x786505;var _0x3e0cab,_0x7f10aa;const _0x528a99=this['_compressMutationService'][_0x55c77e(0x402)][_0x55c77e(0x207)](this[_0x55c77e(0x2a2)][_0x55c77e(0x402)]['getInterceptPoints']()[_0x55c77e(0x50b)]);(_0x3e0cab=_0x528a99((_0x1b0953==null?void 0x0:_0x1b0953[_0x55c77e(0x485)])||[],null))==null||_0x3e0cab[_0x55c77e(0x476)](_0x4fb3d8=>this['_commandService']['executeCommand'](_0x4fb3d8['id'],_0x4fb3d8[_0x55c77e(0x33e)])),(_0x7f10aa=_0x528a99(_0x181b40||[],null))==null||_0x7f10aa[_0x55c77e(0x476)](_0x3f1c86=>this['_commandService'][_0x55c77e(0x365)](_0x3f1c86['id'],_0x3f1c86[_0x55c77e(0x33e)]));}},exports[_0x786505(0x4ba)]=Ye([p(0x3,a[_0x786505(0x449)](a[_0x786505(0x430)])),p(0x4,a[_0x786505(0x449)](exports[_0x786505(0x37f)])),p(0x5,a[_0x786505(0x449)](_[_0x786505(0x3ca)])),p(0x6,a[_0x786505(0x449)](a[_0x786505(0x4a1)])),p(0x7,a[_0x786505(0x449)](_['RevisionService'])),p(0x8,a[_0x786505(0x435)]),p(0x9,a[_0x786505(0x368)]),p(0xa,M[_0x786505(0x578)]),p(0xb,a[_0x786505(0x2e7)]),p(0xc,a[_0x786505(0x47d)](Ee))],exports[_0x786505(0x4ba)]),exports[_0x786505(0x317)]=class extends exports['CollaborationEntity']{constructor(_0x3df789,_0x13696e,_0x91cb03,_0x2819a5,_0x4b7fec,_0x367f0e,_0x17de29,_0x446a61,_0xb328a7,_0xd76398,_0x3d0af3,_0xba53fa,_0x33a193,_0x24c410,_0x2a79f7,_0x310fb2,_0x1abae2){const _0x5b93d6=_0x786505;super(_0x3df789,_0x91cb03,_0x13696e,_0x2819a5,_0x4b7fec,_0x367f0e,_0x17de29,_0x446a61,_0x33a193,_0x24c410,_0x2a79f7,_0x310fb2,_0x1abae2),this['unitID']=_0x3df789,this[_0x5b93d6(0x39b)]=_0x13696e,this[_0x5b93d6(0x2b1)]=_0xb328a7,this['_docTransformIMECacheService']=_0xd76398,this[_0x5b93d6(0x4d9)]=_0x3d0af3,this[_0x5b93d6(0x35f)]=_0xba53fa;}[_0x786505(0x208)](){const _0x568d33=_0x786505,_0x40c968=super[_0x568d33(0x208)]();return _0x40c968[_0x568d33(0x44a)]=_0x45e08c=>this[_0x568d33(0x311)][_0x568d33(0x4da)](_0x45e08c),_0x40c968[_0x568d33(0x1d7)]=_0x4e4af6=>this['_docTransformSelectionsService'][_0x568d33(0x1d2)](_0x4e4af6),_0x40c968['onSyncEditingCollabCursor']=_0x2a350f=>this[_0x568d33(0x35f)][_0x568d33(0x345)](_0x2a350f),_0x40c968[_0x568d33(0x2f8)]=_0x161118=>this[_0x568d33(0x311)][_0x568d33(0x218)](_0x161118),_0x40c968;}async[_0x786505(0x257)](){const _0x212f16=_0x786505,_0x4ec8fb=await super[_0x212f16(0x257)]();return this[_0x212f16(0x364)](this['_commandService'][_0x212f16(0x4a0)]((_0x4f0553,_0x3831c3)=>{const _0x422131=_0x212f16;if(_0x4f0553[_0x422131(0x39b)]!==a['CommandType'][_0x422131(0x28b)]||_0x3831c3!=null&&_0x3831c3[_0x422131(0x2d0)]||_0x3831c3!=null&&_0x3831c3[_0x422131(0x254)])return;const _0x364936=_0x4f0553['params'];if((_0x364936==null?void 0x0:_0x364936[_0x422131(0x1e9)])!==this[_0x422131(0x1e0)])return;let _0x414556=_0x4f0553;if(_0x414556['id']===B[_0x422131(0x39a)]['id']){const _0x1ed733=_0x414556[_0x422131(0x33e)];_0x414556={'id':B['RichTextEditingMutation']['id'],'type':a[_0x422131(0x44b)][_0x422131(0x28b)],'params':{'unitId':_0x1ed733[_0x422131(0x1e9)],'actions':_0x1ed733['actions'],'textRanges':null}};}const _0x934f93=this[_0x422131(0x2a2)]['interceptor'][_0x422131(0x207)](this[_0x422131(0x2a2)][_0x422131(0x402)][_0x422131(0x16b)]()[_0x422131(0x414)])([_0x414556],null)||[_0x414556];this[_0x422131(0x436)](_0x934f93[0x0]);})),_0x4ec8fb;}},exports[_0x786505(0x317)]=Ye([p(0x3,a[_0x786505(0x449)](a[_0x786505(0x430)])),p(0x4,a[_0x786505(0x449)](exports['LocalCacheService'])),p(0x5,a[_0x786505(0x449)](_['CompressMutationService'])),p(0x6,a[_0x786505(0x449)](a[_0x786505(0x4a1)])),p(0x7,a[_0x786505(0x449)](_[_0x786505(0x2c2)])),p(0x8,a[_0x786505(0x449)](U['DocStateChangeManagerService'])),p(0x9,a['Inject'](ge)),p(0xa,a[_0x786505(0x449)](pe)),p(0xb,a['Inject'](Ge)),p(0xc,a[_0x786505(0x435)]),p(0xd,a[_0x786505(0x368)]),p(0xe,M[_0x786505(0x578)]),p(0xf,a['IPermissionService']),p(0x10,a[_0x786505(0x47d)](Ee))],exports[_0x786505(0x317)]),exports[_0x786505(0x41d)]=class extends exports[_0x786505(0x4ba)]{constructor(_0x936670,_0x549d11,_0x3542d3,_0x3db853,_0x73c1e7,_0x3cf938,_0x5dfb50,_0x4ee1fb,_0x364346,_0x57705e,_0x4d844b,_0x48164e,_0x5c1a75,_0x4de2b5){const _0x57e239=_0x786505;super(_0x936670,_0x3542d3,_0x549d11,_0x3db853,_0x73c1e7,_0x3cf938,_0x5dfb50,_0x4ee1fb,_0x57705e,_0x4d844b,_0x48164e,_0x5c1a75,_0x4de2b5),this['unitID']=_0x936670,this[_0x57e239(0x39b)]=_0x549d11,this['_sheetTransformSelectionsService']=_0x364346;}['_createHandler'](){const _0x999957=_0x786505,_0x2141bc=super[_0x999957(0x208)]();return _0x2141bc[_0x999957(0x1d7)]=_0x1681b5=>this[_0x999957(0x51c)][_0x999957(0x1d2)](_0x1681b5),_0x2141bc;}async[_0x786505(0x257)](){const _0x2bdc0b=_0x786505,_0x246bbd=await super[_0x2bdc0b(0x257)]();return this['disposeWithMe'](this['_commandService'][_0x2bdc0b(0x4a0)]((_0x5ef5d1,_0x2d686c)=>{const _0x3a1dfa=_0x2bdc0b;if(_0x5ef5d1['type']!==a['CommandType']['MUTATION']||_0x2d686c!=null&&_0x2d686c['fromCollab']||_0x2d686c!=null&&_0x2d686c[_0x3a1dfa(0x254)])return;const _0x5560c7=_0x5ef5d1[_0x3a1dfa(0x33e)];if((_0x5560c7==null?void 0x0:_0x5560c7[_0x3a1dfa(0x1e9)])!==this[_0x3a1dfa(0x1e0)])return;const _0x4ddb5f=_0x5ef5d1,_0x5f9235=this[_0x3a1dfa(0x2a2)][_0x3a1dfa(0x402)][_0x3a1dfa(0x207)](this[_0x3a1dfa(0x2a2)]['interceptor'][_0x3a1dfa(0x16b)]()[_0x3a1dfa(0x414)])([_0x4ddb5f],null)||[_0x4ddb5f];this[_0x3a1dfa(0x436)](_0x5f9235[0x0]);})),_0x246bbd;}},exports['SheetCollaborationEntity']=Ye([p(0x3,a[_0x786505(0x449)](a[_0x786505(0x430)])),p(0x4,a[_0x786505(0x449)](exports[_0x786505(0x37f)])),p(0x5,a[_0x786505(0x449)](_[_0x786505(0x3ca)])),p(0x6,a[_0x786505(0x449)](a[_0x786505(0x4a1)])),p(0x7,a[_0x786505(0x449)](_[_0x786505(0x2c2)])),p(0x8,a[_0x786505(0x449)](Ie)),p(0x9,a[_0x786505(0x435)]),p(0xa,a[_0x786505(0x368)]),p(0xb,M[_0x786505(0x578)]),p(0xc,a['IPermissionService']),p(0xd,a[_0x786505(0x47d)](Ee))],exports['SheetCollaborationEntity']);var Hs=Object[_0x786505(0x36b)],xs=Object[_0x786505(0x1b8)],ks=(_0x4a8a4d,_0x4df1e3,_0x5d932a,_0x3a182a)=>{const _0x2c7207=_0x786505;for(var _0x2d0719=_0x3a182a>0x1?void 0x0:_0x3a182a?xs(_0x4df1e3,_0x5d932a):_0x4df1e3,_0x114402=_0x4a8a4d[_0x2c7207(0x31e)]-0x1,_0x99a709;_0x114402>=0x0;_0x114402--)(_0x99a709=_0x4a8a4d[_0x114402])&&(_0x2d0719=(_0x3a182a?_0x99a709(_0x4df1e3,_0x5d932a,_0x2d0719):_0x99a709(_0x2d0719))||_0x2d0719);return _0x3a182a&&_0x2d0719&&Hs(_0x4df1e3,_0x5d932a,_0x2d0719),_0x2d0719;},ye=(_0x232b68,_0x5f108c)=>(_0x69a772,_0x3509ac)=>_0x5f108c(_0x69a772,_0x3509ac,_0x232b68);exports['CollaborationController']=class extends a[_0x786505(0x304)]{constructor(_0x3da910,_0x418900,_0x16aee4){const _0xb74f56=_0x786505;super(),d(this,'_entities',new Map()),d(this,_0xb74f56(0x393),new v['Subject']()),(this[_0xb74f56(0x1c7)]=_0x3da910,this[_0xb74f56(0x356)]=_0x418900,this['_univerInstanceService']=_0x16aee4,this[_0xb74f56(0x257)]());}['dispose'](){const _0x145c09=_0x786505;super[_0x145c09(0x36f)](),this['_entities'][_0x145c09(0x476)](_0x50fd60=>_0x50fd60[_0x145c09(0x36f)]()),this['_entities']['clear']();}[_0x786505(0x25f)](_0x5788cb){const _0x32a02c=_0x786505;var _0x75c589;return(_0x75c589=this[_0x32a02c(0x3e1)]['get'](_0x5788cb))!=null?_0x75c589:null;}[_0x786505(0x4b2)](_0x30f36e){const _0x2df78b=_0x786505,_0x376992=this['getCollabEntity'](_0x30f36e);return _0x376992?v['of'](_0x376992):this['_entityInit$'][_0x2df78b(0x33c)](E[_0x2df78b(0x3a7)](_0x226c93=>_0x226c93[_0x2df78b(0x1e0)]===_0x30f36e));}[_0x786505(0x257)](){const _0x3e26e4=_0x786505;this[_0x3e26e4(0x163)][_0x3e26e4(0x43e)](a[_0x3e26e4(0x3fc)][_0x3e26e4(0x4ac)])[_0x3e26e4(0x33c)](v[_0x3e26e4(0x15b)](this[_0x3e26e4(0x225)]),E[_0x3e26e4(0x3dd)](0x10))[_0x3e26e4(0x369)](async _0x256cd0=>{const _0x50a7fa=_0x3e26e4,_0x40226c=_0x256cd0[_0x50a7fa(0x3b6)](),_0x31e324=await this[_0x50a7fa(0x37e)](_0x40226c,A[_0x50a7fa(0x4ac)]);this[_0x50a7fa(0x3e1)]['set'](_0x40226c,_0x31e324);}),this['_univerInstanceService'][_0x3e26e4(0x43e)](a['UniverInstanceType'][_0x3e26e4(0x170)])[_0x3e26e4(0x33c)](v[_0x3e26e4(0x15b)](this[_0x3e26e4(0x225)]),E[_0x3e26e4(0x3dd)](0x10))[_0x3e26e4(0x33c)](E[_0x3e26e4(0x3a7)](_0x2a9a9f=>!_0x2a9a9f[_0x3e26e4(0x3b6)]()[_0x3e26e4(0x2da)]('__')))['subscribe'](async _0x184a96=>{const _0x872b5e=_0x3e26e4,_0x7e4b4=_0x184a96[_0x872b5e(0x3b6)](),_0x3b7396=await this[_0x872b5e(0x37e)](_0x7e4b4,A[_0x872b5e(0x170)]);this['_entities'][_0x872b5e(0x3a3)](_0x7e4b4,_0x3b7396);}),v['merge'](this['_univerInstanceService'][_0x3e26e4(0x340)](a[_0x3e26e4(0x3fc)][_0x3e26e4(0x4ac)]),this[_0x3e26e4(0x163)][_0x3e26e4(0x340)](a[_0x3e26e4(0x3fc)][_0x3e26e4(0x170)]))['pipe'](v[_0x3e26e4(0x15b)](this['dispose$']))[_0x3e26e4(0x369)](_0x57bdd4=>{const _0xfc082b=_0x3e26e4,_0x5c2235=_0x57bdd4[_0xfc082b(0x3b6)](),_0x1bc27b=this[_0xfc082b(0x3e1)][_0xfc082b(0x471)](_0x5c2235);_0x1bc27b&&(_0x1bc27b[_0xfc082b(0x36f)](),this[_0xfc082b(0x3e1)][_0xfc082b(0x27c)](_0x5c2235));});}async[_0x786505(0x37e)](_0x1586b3,_0x3bc00c){const _0x108fd7=_0x786505,_0x51093e=await this[_0x108fd7(0x356)][_0x108fd7(0x54d)](_0x1586b3),_0xae269a=this[_0x108fd7(0x1c7)][_0x108fd7(0x400)](this[_0x108fd7(0x1c2)](_0x3bc00c),_0x1586b3,_0x3bc00c,_0x51093e);return await _0xae269a['init'](),this['_entityInit$']['next'](_0xae269a),_0xae269a;}[_0x786505(0x1c2)](_0x3b659c){const _0x2020cc=_0x786505;switch(_0x3b659c){case A['UNIVER_DOC']:return exports[_0x2020cc(0x317)];case A[_0x2020cc(0x4ac)]:return exports[_0x2020cc(0x41d)];default:throw new Error(_0x2020cc(0x49e)+_0x3b659c);}}},exports[_0x786505(0x1b5)]=ks([ye(0x0,a[_0x786505(0x449)](a[_0x786505(0x430)])),ye(0x1,a[_0x786505(0x449)](exports[_0x786505(0x321)])),ye(0x2,a[_0x786505(0x244)])],exports['CollaborationController']);const it=['purple300',_0x786505(0x1f1),'verdancy600',_0x786505(0x4b6),_0x786505(0x418),'gold400'];class Ke extends a[_0x786505(0x498)]{constructor(){const _0xd7240d=_0x786505;super(...arguments),d(this,_0xd7240d(0x433),new Map()),d(this,_0xd7240d(0x49d),0x0);}[_0x786505(0x4f0)](_0x16c40f){const _0x14350c=_0x786505;if(this[_0x14350c(0x433)]['has'](_0x16c40f))return this[_0x14350c(0x433)]['get'](_0x16c40f);const _0x2f4d08=it[this['_colorIndex']];return this['_colorIndex']=(this[_0x14350c(0x49d)]+0x1)%it[_0x14350c(0x31e)],this[_0x14350c(0x433)][_0x14350c(0x3a3)](_0x16c40f,_0x2f4d08),_0x2f4d08;}}var Bs=Object[_0x786505(0x36b)],Vs=Object[_0x786505(0x1b8)],Fs=(_0x21c04e,_0x32c256,_0x102b35,_0x17fd99)=>{for(var _0x111019=_0x17fd99>0x1?void 0x0:_0x17fd99?Vs(_0x32c256,_0x102b35):_0x32c256,_0x232f4e=_0x21c04e['length']-0x1,_0x31da85;_0x232f4e>=0x0;_0x232f4e--)(_0x31da85=_0x21c04e[_0x232f4e])&&(_0x111019=(_0x17fd99?_0x31da85(_0x32c256,_0x102b35,_0x111019):_0x31da85(_0x111019))||_0x111019);return _0x17fd99&&_0x111019&&Bs(_0x32c256,_0x102b35,_0x111019),_0x111019;},Z=(_0xca650e,_0x1d679b)=>(_0x12a3b6,_0x5e423a)=>_0x1d679b(_0x12a3b6,_0x5e423a,_0xca650e);const Ws=0x12c,Gs=0x64,Ys=()=>{let _0x27da3e=[],_0x3194ee=!0x1;return _0x381783=>{const _0x31c6f0=_0x4876;_0x27da3e[_0x31c6f0(0x577)](_0x381783),_0x3194ee||(_0x3194ee=!0x0,setTimeout(()=>{const _0x28f3f3=_0x31c6f0;_0x27da3e[_0x28f3f3(0x476)](_0x1e545a=>_0x1e545a()),_0x27da3e=[],_0x3194ee=!0x1;}));};};let je=class extends a[_0x786505(0x304)]{constructor(_0x144b75,_0x4325a5,_0x25bfcc,_0x5d1634,_0x56a395,_0xe1b50f,_0x3e6440,_0x51ae7f){const _0x4a0a78=_0x786505;super(),d(this,_0x4a0a78(0x3c2),!0x1),d(this,'_init',!0x1),d(this,_0x4a0a78(0x20e),new v['BehaviorSubject'](new Map())),d(this,_0x4a0a78(0x2a5),this[_0x4a0a78(0x20e)][_0x4a0a78(0x1e2)]()),d(this,_0x4a0a78(0x2a1),new v[(_0x4a0a78(0x518))]([])),d(this,_0x4a0a78(0x377),this['_roomMembers$'][_0x4a0a78(0x33c)](v[_0x4a0a78(0x17c)](Ws))),d(this,_0x4a0a78(0x17e),ke((_0x5069b2,_0x538743)=>{const _0x322f09=_0x4a0a78,_0x14d654={'eventID':_[_0x322f09(0x3f5)][_0x322f09(0x390)],'data':{'unitID':this['unitID'],'memberID':this[_0x322f09(0x215)][_0x322f09(0x4e2)](),'selection':Je[_0x322f09(0x53b)](_0x5069b2,_0x538743[_0x322f09(0x2d6)])}};this[_0x322f09(0x215)]['send'](_0x14d654,this[_0x322f09(0x1e0)]);},Gs)),(this[_0x4a0a78(0x1e0)]=_0x144b75,this[_0x4a0a78(0x215)]=_0x4325a5,this['_injector']=_0x25bfcc,this[_0x4a0a78(0x2c7)]=_0x5d1634,this[_0x4a0a78(0x328)]=_0x56a395,this['_univerInstanceService']=_0xe1b50f,this[_0x4a0a78(0x23c)]=_0x3e6440,this[_0x4a0a78(0x3bd)]=_0x51ae7f);}get[_0x786505(0x1a5)](){const _0x3af750=_0x786505;return this[_0x3af750(0x20e)]['getValue']();}get['roomMembers'](){const _0x489972=_0x786505;return this[_0x489972(0x2a1)][_0x489972(0x176)]();}['dispose'](){const _0x2d5c27=_0x786505;super[_0x2d5c27(0x36f)](),this[_0x2d5c27(0x20e)][_0x2d5c27(0x3c0)](new Map()),this[_0x2d5c27(0x20e)][_0x2d5c27(0x385)](),this['_roomMembers$']['next']([]),this[_0x2d5c27(0x2a1)][_0x2d5c27(0x385)]();}[_0x786505(0x1cb)](){const _0xe39b3f=_0x786505;this['_init']||(this[_0xe39b3f(0x257)]=!0x0,this[_0xe39b3f(0x215)][_0xe39b3f(0x1ef)][_0xe39b3f(0x33c)](v[_0xe39b3f(0x15b)](this[_0xe39b3f(0x225)]))[_0xe39b3f(0x369)](_0x191711=>{const _0xd371d6=_0xe39b3f;_0x191711===j[_0xd371d6(0x50d)]?this[_0xd371d6(0x539)]():this['_toggleOffline']();}),this[_0xe39b3f(0x215)][_0xe39b3f(0x34c)][_0xe39b3f(0x33c)](v[_0xe39b3f(0x15b)](this['dispose$']))[_0xe39b3f(0x369)](_0x2eef9c=>{const _0x2896dc=_0xe39b3f,_0xffaf70=_0x2eef9c[_0x2896dc(0x1b2)];_0xffaf70===_['CollaborationEvent'][_0x2896dc(0x390)]&&this[_0x2896dc(0x4f7)](_0x2eef9c),_0xffaf70===_[_0x2896dc(0x3f5)][_0x2896dc(0x2f4)]&&this['_onCursorDelete'](_0x2eef9c);}),this[_0xe39b3f(0x37c)](),this[_0xe39b3f(0x364)](this[_0xe39b3f(0x23c)][_0xe39b3f(0x4a0)](_0x1ab14a=>{const _0x1bb0ef=_0xe39b3f;if(this[_0x1bb0ef(0x3c2)]&&_0x1ab14a['id']===C[_0x1bb0ef(0x42e)]['id']&&_0x1ab14a[_0x1bb0ef(0x33e)]['unitId']===this[_0x1bb0ef(0x1e0)]){const _0x44be3b=_0x1ab14a[_0x1bb0ef(0x33e)];this[_0x1bb0ef(0x17e)](_0x44be3b[_0x1bb0ef(0x1bf)],_0x44be3b[_0x1bb0ef(0x45c)][0x0]);}})));}['_onCursorUpdate'](_0x399485){const _0x3dd15c=_0x786505;var _0x120cdd,_0x75805f;const {memberID:_0x4bb98a,selection:_0x293739}=_0x399485[_0x3dd15c(0x521)],{sheetName:_0x1f9a0e,range:_0x13b25d}=Je['deserializeRangeWithSheet'](_0x293739),_0x3703ff={'name':(_0x75805f=(_0x120cdd=this[_0x3dd15c(0x328)][_0x3dd15c(0x4db)](this[_0x3dd15c(0x1e0)],_0x4bb98a))==null?void 0x0:_0x120cdd['name'])!=null?_0x75805f:_0x3dd15c(0x310),'range':this[_0x3dd15c(0x499)](_0x1f9a0e,_0x13b25d),'sheetID':_0x1f9a0e,'color':this[_0x3dd15c(0x2c7)][_0x3dd15c(0x4f0)](_0x4bb98a),'selection':_0x293739},_0x340924=this['cursorInfo'];_0x340924[_0x3dd15c(0x3a3)](_0x4bb98a,_0x3703ff),this[_0x3dd15c(0x20e)][_0x3dd15c(0x3c0)](_0x340924);}['_onCursorDelete'](_0x15173a){const _0x17d2c9=_0x786505,{memberID:_0x398250}=_0x15173a[_0x17d2c9(0x521)],_0x2df9f3=this['cursorInfo'];_0x2df9f3[_0x17d2c9(0x27c)](_0x398250),this[_0x17d2c9(0x20e)][_0x17d2c9(0x3c0)](_0x2df9f3);}[_0x786505(0x499)](_0x295258,_0x37ff9c){const _0x4d550d=_0x786505;var _0x626269,_0x24b7f3;const _0x1a0b05=(_0x24b7f3=(_0x626269=this[_0x4d550d(0x163)][_0x4d550d(0x1fc)](this['unitID']))==null?void 0x0:_0x626269['getSheetBySheetId'](_0x295258))==null?void 0x0:_0x24b7f3[_0x4d550d(0x1c1)]();return(_0x1a0b05==null?void 0x0:_0x1a0b05[_0x4d550d(0x4bf)](_0x244e8d=>a['Rectangle'][_0x4d550d(0x42f)](_0x244e8d,_0x37ff9c)))||_0x37ff9c;}[_0x786505(0x37c)](){const _0x3ea3c2=_0x786505,_0x2776c9=new a[(_0x3ea3c2(0x391))](),_0x27cd26=Ys(),_0x201c90=()=>{const _0x743be=_0x3ea3c2;_0x2776c9[_0x743be(0x36f)]();const _0x17f477=(_0x2d00b0,_0x299e03,_0x4db453,_0x2cc867)=>{const _0x5e2ea4=_0x743be;let _0x5ccd77=[];switch(_0x2d00b0['id']){case C[_0x5e2ea4(0x55e)][_0x5e2ea4(0x55b)]:{_0x5ccd77=C[_0x5e2ea4(0x232)](_0x2d00b0,_0x2cc867);break;}case C['EffectRefRangId'][_0x5e2ea4(0x1d0)]:{_0x5ccd77=C[_0x5e2ea4(0x273)](_0x2d00b0,_0x2cc867);break;}case C[_0x5e2ea4(0x55e)][_0x5e2ea4(0x326)]:{_0x5ccd77=C[_0x5e2ea4(0x185)](_0x2d00b0,_0x2cc867);break;}case C[_0x5e2ea4(0x55e)][_0x5e2ea4(0x34d)]:{_0x5ccd77=C[_0x5e2ea4(0x21b)](_0x2d00b0,_0x2cc867);break;}case C['EffectRefRangId'][_0x5e2ea4(0x48e)]:{_0x5ccd77=C['handleInsertRangeMoveRight'](_0x2d00b0,_0x2cc867);break;}case C[_0x5e2ea4(0x55e)]['InsertRowCommandId']:{_0x5ccd77=C[_0x5e2ea4(0x2ad)](_0x2d00b0,_0x2cc867);break;}case C['EffectRefRangId']['MoveRangeCommandId']:{_0x5ccd77=C['handleMoveRange'](_0x2d00b0,_0x2cc867);break;}case C[_0x5e2ea4(0x55e)][_0x5e2ea4(0x4d0)]:{_0x5ccd77=C[_0x5e2ea4(0x258)](_0x2d00b0,_0x2cc867);break;}case C[_0x5e2ea4(0x55e)]['RemoveRowCommandId']:{_0x5ccd77=C[_0x5e2ea4(0x2aa)](_0x2d00b0,_0x2cc867);break;}}const _0x4817b5=C[_0x5e2ea4(0x2c1)](_0x5ccd77,_0x2cc867),_0x403cfb=this[_0x5e2ea4(0x1a5)]['get'](_0x299e03);if(_0x403cfb&&_0x4817b5){const _0x271d44={..._0x403cfb,'range':_0x4817b5};this[_0x5e2ea4(0x1a5)][_0x5e2ea4(0x3a3)](_0x299e03,_0x271d44),_0x27cd26(()=>{const _0x46495c=_0x5e2ea4,_0x49cf7d=this[_0x46495c(0x3bd)][_0x46495c(0x4c6)](_0x4817b5,_0x229643=>(_0x49cf7d[_0x46495c(0x36f)](),_0x17f477(_0x229643,_0x299e03,_0x4db453,_0x4817b5)));_0x2776c9[_0x46495c(0x1a1)](_0x49cf7d);});}return{'redos':[],'undos':[]};};this[_0x743be(0x1a5)][_0x743be(0x476)]((_0x2825fc,_0x22e514)=>{const _0x48a5b8=_0x743be,{range:_0x2f072b,sheetID:_0x58153a}=_0x2825fc,_0x25a147=this[_0x48a5b8(0x3bd)]['registerRefRange'](_0x2f072b,_0x475c66=>(_0x25a147['dispose'](),_0x17f477(_0x475c66,_0x22e514,_0x58153a,_0x2f072b)));_0x2776c9[_0x48a5b8(0x1a1)](_0x25a147);});};this[_0x3ea3c2(0x364)](a[_0x3ea3c2(0x261)](this['_cursorInfo$'][_0x3ea3c2(0x369)](()=>{_0x201c90();})));}[_0x786505(0x539)](){const _0x38684e=_0x786505;var _0x4801e7,_0x23b259;if(this[_0x38684e(0x3c2)]=!0x0,((_0x4801e7=this[_0x38684e(0x163)][_0x38684e(0x387)]())==null?void 0x0:_0x4801e7[_0x38684e(0x3b6)]())!==this['unitID'])return;const _0x51c35e=(_0x23b259=this[_0x38684e(0x1c7)]['get'](C['SheetsSelectionsService'])[_0x38684e(0x180)]())==null?void 0x0:_0x23b259[0x0],_0x30a8c4=this[_0x38684e(0x163)][_0x38684e(0x44e)](a[_0x38684e(0x3fc)]['UNIVER_SHEET'])[_0x38684e(0x53a)]();_0x51c35e&&_0x30a8c4&&this[_0x38684e(0x17e)](_0x30a8c4[_0x38684e(0x4ab)](),_0x51c35e);}['_toggleOffline'](){const _0x52ac76=_0x786505;this[_0x52ac76(0x3c2)]=!0x1;}};je=Fs([Z(0x2,a['Inject'](a[_0x786505(0x430)])),Z(0x3,a[_0x786505(0x449)](Ke)),Z(0x4,a['Inject'](X)),Z(0x5,a[_0x786505(0x244)]),Z(0x6,a[_0x786505(0x368)]),Z(0x7,a['Inject'](C[_0x786505(0x1b4)]))],je);var Ks=Object[_0x786505(0x36b)],Xs=Object[_0x786505(0x1b8)],qs=(_0x52f71e,_0x3d7796,_0x4f77fc,_0x45f72d)=>{for(var _0x504ec4=_0x45f72d>0x1?void 0x0:_0x45f72d?Xs(_0x3d7796,_0x4f77fc):_0x3d7796,_0x3040cc=_0x52f71e['length']-0x1,_0x494aab;_0x3040cc>=0x0;_0x3040cc--)(_0x494aab=_0x52f71e[_0x3040cc])&&(_0x504ec4=(_0x45f72d?_0x494aab(_0x3d7796,_0x4f77fc,_0x504ec4):_0x494aab(_0x504ec4))||_0x504ec4);return _0x45f72d&&_0x504ec4&&Ks(_0x3d7796,_0x4f77fc,_0x504ec4),_0x504ec4;},Y=(_0x2a79eb,_0x3f19bf)=>(_0x3e8c35,_0x96fc7d)=>_0x3f19bf(_0x3e8c35,_0x96fc7d,_0x2a79eb);const Js=0x12c,zs=0x64;let $e=class extends a[_0x786505(0x304)]{constructor(_0x29342b,_0x66eee,_0x47cfac,_0x564132,_0x3e841c,_0x9ad3b4,_0x32377a,_0x97a316,_0x40afda){const _0x595653=_0x786505;super(),d(this,_0x595653(0x3c2),!0x1),d(this,'_init',!0x1),d(this,'_cursorInfo$',new v[(_0x595653(0x518))](new Map())),d(this,_0x595653(0x2a5),this[_0x595653(0x20e)][_0x595653(0x1e2)]()),d(this,_0x595653(0x2a1),new v[(_0x595653(0x518))]([])),d(this,_0x595653(0x377),this[_0x595653(0x2a1)][_0x595653(0x33c)](v[_0x595653(0x17c)](Js))),d(this,_0x595653(0x17e),ke(_0x119c3a=>{const _0x570a3a=_0x595653,_0x3625b6={'eventID':_['CollaborationEvent'][_0x570a3a(0x390)],'data':{'unitID':this[_0x570a3a(0x1e0)],'memberID':this[_0x570a3a(0x215)]['getMemberID'](),'selection':Rt(_0x119c3a)}};this[_0x570a3a(0x215)][_0x570a3a(0x248)](_0x3625b6,this[_0x570a3a(0x1e0)]);},zs)),(this[_0x595653(0x1e0)]=_0x29342b,this['_session']=_0x66eee,this[_0x595653(0x1c7)]=_0x47cfac,this[_0x595653(0x2c7)]=_0x564132,this[_0x595653(0x328)]=_0x3e841c,this[_0x595653(0x217)]=_0x9ad3b4,this[_0x595653(0x4fa)]=_0x32377a,this['_univerInstanceService']=_0x97a316,this['_commandService']=_0x40afda);}get[_0x786505(0x1a5)](){const _0x140541=_0x786505;return this[_0x140541(0x20e)]['getValue']();}get[_0x786505(0x28a)](){const _0x6ce940=_0x786505;return this[_0x6ce940(0x2a1)][_0x6ce940(0x176)]();}['dispose'](){const _0x562fa2=_0x786505;super[_0x562fa2(0x36f)](),this[_0x562fa2(0x20e)]['next'](new Map()),this[_0x562fa2(0x20e)]['complete'](),this['_roomMembers$'][_0x562fa2(0x3c0)]([]),this[_0x562fa2(0x2a1)][_0x562fa2(0x385)]();}[_0x786505(0x1cb)](){const _0x48471b=_0x786505;this[_0x48471b(0x257)]||(this['_init']=!0x0,this['_session'][_0x48471b(0x1ef)]['pipe'](v[_0x48471b(0x15b)](this[_0x48471b(0x225)]))[_0x48471b(0x369)](_0x3ce3c8=>{const _0x4b0fce=_0x48471b;_0x3ce3c8===j[_0x4b0fce(0x50d)]?this[_0x4b0fce(0x539)]():this[_0x4b0fce(0x30c)]();}),this[_0x48471b(0x215)]['event$']['pipe'](v[_0x48471b(0x15b)](this['dispose$']))[_0x48471b(0x369)](_0xd796ac=>{const _0xa184b5=_0x48471b,_0x2a9edb=_0xd796ac[_0xa184b5(0x1b2)];_0x2a9edb===_[_0xa184b5(0x3f5)]['UPDATE_CURSOR']&&this[_0xa184b5(0x4f7)](_0xd796ac),_0x2a9edb===_[_0xa184b5(0x3f5)][_0xa184b5(0x2f4)]&&this[_0xa184b5(0x39c)](_0xd796ac);}),this[_0x48471b(0x364)](this[_0x48471b(0x23c)][_0x48471b(0x4a0)](_0x38b7a7=>{const _0x2c6299=_0x48471b,_0x4a0758=_0x38b7a7[_0x2c6299(0x33e)];_0x4a0758!=null&&this[_0x2c6299(0x3c2)]&&_0x38b7a7['id']===B[_0x2c6299(0x178)]['id']&&_0x4a0758[_0x2c6299(0x1e9)]===this[_0x2c6299(0x1e0)]&&_0x4a0758[_0x2c6299(0x18c)]===!0x1&&this['_updateLocalCursor'](_0x4a0758['ranges']);})),this['_syncEditingCollabCursorService'][_0x48471b(0x2ca)][_0x48471b(0x33c)](v[_0x48471b(0x15b)](this[_0x48471b(0x225)]))[_0x48471b(0x369)](_0x3197e5=>{const _0x1d3bcb=_0x48471b;if((_0x3197e5==null?void 0x0:_0x3197e5[_0x1d3bcb(0x1e0)])!==this[_0x1d3bcb(0x1e0)])return;const _0x58fa75={'eventID':_[_0x1d3bcb(0x3f5)][_0x1d3bcb(0x390)],'data':_0x3197e5};this[_0x1d3bcb(0x4f7)](_0x58fa75);}),this[_0x48471b(0x364)](this[_0x48471b(0x23c)][_0x48471b(0x4a0)](_0x4bd361=>{const _0x2dca88=_0x48471b;if(_0x4bd361['params']==null)return;const _0x27aa29=_0x4bd361[_0x2dca88(0x33e)];if(_0x4bd361['id']!==B[_0x2dca88(0x39a)]['id']||_0x27aa29[_0x2dca88(0x1e9)]!==this[_0x2dca88(0x1e0)])return;const _0x48d043={'id':_0x2dca88(0x243),'params':_0x27aa29},_0x32fce1=this[_0x2dca88(0x1a5)];for(const [_0x16c791,_0x5d9653]of _0x32fce1){const _0x43e5e3={'id':_0x2dca88(0x243),'params':{'unitId':this[_0x2dca88(0x1e0)],'actions':null,'textRanges':_0x5d9653[_0x2dca88(0x3bc)]}},_0xe8e67e=this[_0x2dca88(0x4fa)][_0x2dca88(0x49a)](_0x48d043,_0x43e5e3,!0x1);if(_[_0x2dca88(0x300)](_0xe8e67e))throw _0xe8e67e[_0x2dca88(0x3e2)];_0x32fce1[_0x2dca88(0x3a3)](_0x16c791,{..._0x5d9653,'ranges':_0xe8e67e[_0x2dca88(0x3e5)][_0x2dca88(0x33e)][_0x2dca88(0x31b)]});}queueMicrotask(()=>{const _0x57f6d4=_0x2dca88;this[_0x57f6d4(0x20e)]['next'](_0x32fce1);});})));}[_0x786505(0x4f7)](_0x5ccea0){const _0x1b943d=_0x786505;var _0x4874f7,_0x537331;const {memberID:_0x5e3837,selection:_0x4c3fce}=_0x5ccea0[_0x1b943d(0x521)],_0x49f828=Ds(_0x4c3fce),_0x60f96=(_0x537331=(_0x4874f7=this[_0x1b943d(0x328)][_0x1b943d(0x4db)](this[_0x1b943d(0x1e0)],_0x5e3837))==null?void 0x0:_0x4874f7['name'])!=null?_0x537331:'Unknown\x20user',_0x101409={'color':this[_0x1b943d(0x2c7)][_0x1b943d(0x4f0)](_0x5e3837),'name':_0x60f96,'ranges':_0x49f828},_0x65fccf=this[_0x1b943d(0x1a5)];_0x65fccf['set'](_0x5e3837,_0x101409),this[_0x1b943d(0x20e)][_0x1b943d(0x3c0)](_0x65fccf);}[_0x786505(0x39c)](_0x3f34e3){const _0x5091ca=_0x786505,{memberID:_0x4182cc}=_0x3f34e3[_0x5091ca(0x521)],_0x50cc9e=this[_0x5091ca(0x1a5)];_0x50cc9e['delete'](_0x4182cc),this['_cursorInfo$']['next'](_0x50cc9e);}[_0x786505(0x539)](){const _0x961091=_0x786505;var _0xcba885;if(this['_online']=!0x0,((_0xcba885=this[_0x961091(0x163)]['getFocusedUnit']())==null?void 0x0:_0xcba885[_0x961091(0x3b6)]())!==this[_0x961091(0x1e0)])return;const _0x2b59cc=this[_0x961091(0x1c7)][_0x961091(0x471)](B[_0x961091(0x4d8)])['getDocRanges']();Array['isArray'](_0x2b59cc)&&_0x2b59cc[_0x961091(0x31e)]>0x0&&this[_0x961091(0x17e)](_0x2b59cc);}[_0x786505(0x30c)](){this['_online']=!0x1;}};$e=qs([Y(0x2,a['Inject'](a[_0x786505(0x430)])),Y(0x3,a[_0x786505(0x449)](Ke)),Y(0x4,a['Inject'](X)),Y(0x5,a['Inject'](Ge)),Y(0x6,_[_0x786505(0x276)]),Y(0x7,a[_0x786505(0x244)]),Y(0x8,a['ICommandService'])],$e);var Zs=Object[_0x786505(0x36b)],Qs=Object[_0x786505(0x1b8)],ei=(_0x31e616,_0xcc1c3b,_0x2a30cd,_0x419522)=>{const _0x58bdfe=_0x786505;for(var _0x29b884=_0x419522>0x1?void 0x0:_0x419522?Qs(_0xcc1c3b,_0x2a30cd):_0xcc1c3b,_0x500ae0=_0x31e616[_0x58bdfe(0x31e)]-0x1,_0x5a184d;_0x500ae0>=0x0;_0x500ae0--)(_0x5a184d=_0x31e616[_0x500ae0])&&(_0x29b884=(_0x419522?_0x5a184d(_0xcc1c3b,_0x2a30cd,_0x29b884):_0x5a184d(_0x29b884))||_0x29b884);return _0x419522&&_0x29b884&&Zs(_0xcc1c3b,_0x2a30cd,_0x29b884),_0x29b884;},Pe=(_0x192a3b,_0x5105f1)=>(_0x58c291,_0x250e2e)=>_0x5105f1(_0x58c291,_0x250e2e,_0x192a3b);let te=class extends a['RxDisposable']{constructor(_0x2326f9,_0xcc41eb,_0xc42e4){const _0x27ddab=_0x786505;super(),d(this,_0x27ddab(0x3e1),new Map()),d(this,_0x27ddab(0x393),new v[(_0x27ddab(0x246))]()),(this['_univerInstanceService']=_0x2326f9,this[_0x27ddab(0x1c7)]=_0xcc41eb,this[_0x27ddab(0x356)]=_0xc42e4,this[_0x27ddab(0x257)]());}['dispose'](){const _0x1a6af2=_0x786505;super[_0x1a6af2(0x36f)](),this[_0x1a6af2(0x393)][_0x1a6af2(0x385)](),this[_0x1a6af2(0x3e1)][_0x1a6af2(0x476)](_0x8e410f=>_0x8e410f[_0x1a6af2(0x36f)]());}['getCollabCursors$'](_0x1db13a){const _0x28e6e9=_0x786505;return this[_0x28e6e9(0x3e1)][_0x28e6e9(0x479)](_0x1db13a)?this[_0x28e6e9(0x3e1)]['get'](_0x1db13a)[_0x28e6e9(0x2a5)]:this[_0x28e6e9(0x393)][_0x28e6e9(0x33c)](v['filter'](_0xab793f=>_0xab793f[_0x28e6e9(0x1e0)]===_0x1db13a),v[_0x28e6e9(0x256)](_0x3acdac=>_0x3acdac[_0x28e6e9(0x2a5)]));}[_0x786505(0x257)](){const _0x2452b7=_0x786505;this[_0x2452b7(0x163)][_0x2452b7(0x43e)](a[_0x2452b7(0x3fc)][_0x2452b7(0x4ac)])['pipe'](v[_0x2452b7(0x15b)](this['dispose$']))['subscribe'](async _0x1fd789=>{const _0x3783a1=_0x2452b7,_0x47803d=_0x1fd789['getUnitId'](),_0x4ca00f=await this[_0x3783a1(0x29d)](_0x47803d);this[_0x3783a1(0x393)][_0x3783a1(0x3c0)](_0x4ca00f),this[_0x3783a1(0x3e1)][_0x3783a1(0x3a3)](_0x47803d,_0x4ca00f);}),this['_univerInstanceService'][_0x2452b7(0x43e)](a['UniverInstanceType'][_0x2452b7(0x170)])['pipe'](v[_0x2452b7(0x15b)](this[_0x2452b7(0x225)]))[_0x2452b7(0x33c)](v['filter'](_0x392d0b=>!_0x392d0b[_0x2452b7(0x3b6)]()[_0x2452b7(0x2da)]('__')))['subscribe'](async _0x5e27f5=>{const _0x56c7d6=_0x2452b7,_0xc8a125=_0x5e27f5['getUnitId'](),_0x4c98dd=await this[_0x56c7d6(0x461)](_0xc8a125);this[_0x56c7d6(0x393)][_0x56c7d6(0x3c0)](_0x4c98dd),this[_0x56c7d6(0x3e1)][_0x56c7d6(0x3a3)](_0xc8a125,_0x4c98dd);}),v[_0x2452b7(0x415)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC']),this[_0x2452b7(0x163)][_0x2452b7(0x340)](a[_0x2452b7(0x3fc)][_0x2452b7(0x4ac)]))[_0x2452b7(0x33c)](v[_0x2452b7(0x15b)](this[_0x2452b7(0x225)]))[_0x2452b7(0x369)](_0x3ce45a=>{const _0x21a659=_0x2452b7,_0x39d90c=_0x3ce45a[_0x21a659(0x3b6)](),_0x54b54=this[_0x21a659(0x3e1)][_0x21a659(0x471)](_0x39d90c);_0x54b54&&(_0x54b54[_0x21a659(0x36f)](),this['_entities'][_0x21a659(0x27c)](_0x39d90c));});}async[_0x786505(0x29d)](_0x1942cc){const _0x5ea576=_0x786505,_0x49e41c=await this['_collabSessionService']['requireSession'](_0x1942cc),_0x1efa05=this[_0x5ea576(0x1c7)][_0x5ea576(0x400)](je,_0x1942cc,_0x49e41c);return _0x1efa05[_0x5ea576(0x1cb)](),_0x1efa05;}async[_0x786505(0x461)](_0x46d8fd){const _0x43914a=_0x786505,_0x1737ab=await this[_0x43914a(0x356)]['requireSession'](_0x46d8fd),_0x267483=this['_injector'][_0x43914a(0x400)]($e,_0x46d8fd,_0x1737ab);return _0x267483['init'](),_0x267483;}};te=ei([a['OnLifecycle'](a[_0x786505(0x3e3)]['Starting'],te),Pe(0x0,a[_0x786505(0x244)]),Pe(0x1,a[_0x786505(0x449)](a['Injector'])),Pe(0x2,a[_0x786505(0x449)](exports[_0x786505(0x321)]))],te);const _e=0x14,nt=0xc8,we=0x4,ti=0x5;function si(_0x270c56,_0x1bb7bb){const _0x8c1aff=_0x786505;let {radius:_0x4ea977,width:_0x2f7776,height:_0x13a2b1}=_0x1bb7bb;_0x4ea977=_0x4ea977!=null?_0x4ea977:0x0,_0x2f7776=_0x2f7776!=null?_0x2f7776:0x1e,_0x13a2b1=_0x13a2b1!=null?_0x13a2b1:0x1e;let _0x46c75f=0x0,_0x1c56cd=0x0,_0x10880b=0x0;_0x46c75f=_0x1c56cd=_0x10880b=Math['min'](_0x4ea977,_0x2f7776/0x2,_0x13a2b1/0x2),_0x270c56[_0x8c1aff(0x34f)](),_0x270c56[_0x8c1aff(0x1b9)](_0x46c75f,0x0),_0x270c56['lineTo'](_0x2f7776-_0x1c56cd,0x0),_0x270c56[_0x8c1aff(0x1fd)](_0x2f7776-_0x1c56cd,_0x1c56cd,_0x1c56cd,Math['PI']*0x3/0x2,0x0,!0x1),_0x270c56[_0x8c1aff(0x516)](_0x2f7776,_0x13a2b1-_0x10880b),_0x270c56[_0x8c1aff(0x1fd)](_0x2f7776-_0x10880b,_0x13a2b1-_0x10880b,_0x10880b,0x0,Math['PI']/0x2,!0x1),_0x270c56[_0x8c1aff(0x516)](0x0,_0x13a2b1),_0x270c56[_0x8c1aff(0x516)](0x0,_0x46c75f),_0x270c56[_0x8c1aff(0x1fd)](_0x46c75f,_0x46c75f,_0x46c75f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x270c56[_0x8c1aff(0x528)](),_0x1bb7bb['fill']&&(_0x270c56[_0x8c1aff(0x4bc)](),_0x270c56[_0x8c1aff(0x3df)]=_0x1bb7bb['fill'],_0x1bb7bb['fillRule']===_0x8c1aff(0x2b9)?_0x270c56[_0x8c1aff(0x564)](_0x8c1aff(0x2b9)):_0x270c56['fill'](),_0x270c56['restore']());}class be extends R[_0x786505(0x571)]{constructor(_0x40ba3d,_0x43537c){const _0x584610=_0x786505;super(_0x40ba3d,_0x43537c),d(this,'color'),d(this,_0x584610(0x41b)),(this[_0x584610(0x15e)]=_0x43537c==null?void 0x0:_0x43537c[_0x584610(0x15e)],this[_0x584610(0x41b)]=_0x43537c==null?void 0x0:_0x43537c['text']);}static[_0x786505(0x169)](_0x1a192c,_0x26bf53){const _0xf3b09f=_0x786505,{text:_0x26a490,color:_0x555a2d}=_0x26bf53;_0x1a192c['save'](),_0x1a192c[_0xf3b09f(0x512)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1d8183=_0x1a192c[_0xf3b09f(0x439)](_0x26a490)[_0xf3b09f(0x289)],_0x3702b4=Math['min'](_0x1d8183+0x2*we,nt);si(_0x1a192c,{'height':_e,'radius':0x4,'width':_0x3702b4,'fill':_0x555a2d,'evented':!0x1}),_0x1a192c[_0xf3b09f(0x3df)]='#FFF';const _0x199e73=we,_0xeb5976=_e-ti,_0x491b57=nt-0x2*we;if(_0x1d8183>_0x491b57){let _0xb8bf05='',_0x984c30=0x0;for(const _0x45465c of _0x26a490){const _0x4e2a1f=_0x1a192c[_0xf3b09f(0x439)](_0x45465c)[_0xf3b09f(0x289)];if(_0x984c30+_0x4e2a1f<=_0x491b57-_0x1a192c[_0xf3b09f(0x439)]('...')[_0xf3b09f(0x289)])_0xb8bf05+=_0x45465c,_0x984c30+=_0x4e2a1f;else{_0xb8bf05+=_0xf3b09f(0x312);break;}}_0x1a192c[_0xf3b09f(0x524)](_0xb8bf05,_0x199e73,_0xeb5976);}else _0x1a192c['fillText'](_0x26a490,_0x199e73,_0xeb5976);_0x1a192c[_0xf3b09f(0x422)]();}['_draw'](_0x28b97a){const _0xf84569=_0x786505;be[_0xf84569(0x169)](_0x28b97a,this);}}const ii=0x1,ni=1.5;class Dt extends R[_0x786505(0x571)]{constructor(_0x13f81c,_0xc06c13){const _0x377aeb=_0x786505;super(_0x13f81c,_0xc06c13),d(this,_0x377aeb(0x30e)),d(this,'_hovered',!0x1),d(this,_0x377aeb(0x4f3)),d(this,_0x377aeb(0x45e),''),d(this,_0x377aeb(0x1e8),_0x377aeb(0x1a4)),d(this,_0x377aeb(0x2f9)),(_0xc06c13&&this[_0x377aeb(0x274)](_0xc06c13),this['onPointerEnter$'][_0x377aeb(0x394)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x377aeb(0x482)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x786505(0x274)](_0x5b1e75){const _0x4ab461=_0x786505;var _0x5c0353,_0x4e77bc,_0x28c315,_0x23cd4c,_0x3d8244,_0x3c7c75;this['_color']=(_0x5c0353=_0x5b1e75[_0x4ab461(0x15e)])!=null?_0x5c0353:this['_color'],this[_0x4ab461(0x543)]=(_0x4e77bc=_0x5b1e75[_0x4ab461(0x358)])!=null?_0x4e77bc:this['_hovered'],this['_range']=(_0x28c315=_0x5b1e75[_0x4ab461(0x2d6)])!=null?_0x28c315:this[_0x4ab461(0x4f3)],this[_0x4ab461(0x45e)]=(_0x23cd4c=_0x5b1e75['name'])!=null?_0x23cd4c:this['_name'],this['_labelPosition']=(_0x3d8244=_0x5b1e75[_0x4ab461(0x40a)])!=null?_0x3d8244:this[_0x4ab461(0x1e8)],this[_0x4ab461(0x2f9)]=(_0x3c7c75=_0x5b1e75[_0x4ab461(0x33d)])!=null?_0x3c7c75:this['_backgroundColor'],this[_0x4ab461(0x458)]({'width':_0x5b1e75[_0x4ab461(0x289)],'height':_0x5b1e75['height']});}[_0x786505(0x20f)](_0x1602da){const _0x52e9af=_0x786505,{row:_0x3e1b65,column:_0x31554c}=_0x1602da;if(_0x3e1b65>=this['_range']['startRow']&&_0x3e1b65<=this['_range'][_0x52e9af(0x445)]&&_0x31554c>=this['_range'][_0x52e9af(0x1f8)]&&_0x31554c<=this[_0x52e9af(0x4f3)][_0x52e9af(0x3aa)]){this[_0x52e9af(0x274)]({'hovered':!0x0});return;}this[_0x52e9af(0x274)]({'hovered':!0x1});}[_0x786505(0x360)](_0x4daa81){return!0x1;}[_0x786505(0x2f1)](_0x6abbae){const _0x730814=_0x786505;R[_0x730814(0x481)]['drawWith'](_0x6abbae,{'width':this[_0x730814(0x289)],'height':this[_0x730814(0x1c6)],'strokeWidth':ni,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x730814(0x2f9)]}),this[_0x730814(0x543)]&&(_0x6abbae['save'](),_0x6abbae[_0x730814(0x3b8)](0x1,0x0,0x0,0x1,this[_0x730814(0x289)],this[_0x730814(0x1e8)]===_0x730814(0x4a9)?0x0:-_e),be[_0x730814(0x169)](_0x6abbae,{'text':this[_0x730814(0x45e)],'color':this['_color']}),_0x6abbae[_0x730814(0x422)]());}}var ri=Object[_0x786505(0x36b)],oi=Object[_0x786505(0x1b8)],ai=(_0x178691,_0x892279,_0x452d20,_0x5bfaca)=>{const _0x34b2ea=_0x786505;for(var _0x5437de=_0x5bfaca>0x1?void 0x0:_0x5bfaca?oi(_0x892279,_0x452d20):_0x892279,_0x45ab2d=_0x178691[_0x34b2ea(0x31e)]-0x1,_0x54628e;_0x45ab2d>=0x0;_0x45ab2d--)(_0x54628e=_0x178691[_0x45ab2d])&&(_0x5437de=(_0x5bfaca?_0x54628e(_0x892279,_0x452d20,_0x5437de):_0x54628e(_0x5437de))||_0x5437de);return _0x5bfaca&&_0x5437de&&ri(_0x892279,_0x452d20,_0x5437de),_0x5437de;},Ue=(_0x20fe36,_0x2ae84d)=>(_0x4706c1,_0x7c7d34)=>_0x2ae84d(_0x4706c1,_0x7c7d34,_0x20fe36);const ci=0x1389;let He=class extends a[_0x786505(0x304)]{constructor(_0x3f2c6d,_0x1bc928,_0x1e6708,_0x147d1b){const _0x336850=_0x786505;super(),d(this,_0x336850(0x46a),new Set()),d(this,_0x336850(0x313),null),(this[_0x336850(0x4d6)]=_0x3f2c6d,this[_0x336850(0x4ee)]=_0x1bc928,this[_0x336850(0x453)]=_0x1e6708,this['_themeService']=_0x147d1b,this['_init']());}[_0x786505(0x257)](){const _0x7a6911=_0x786505;this[_0x7a6911(0x4ee)][_0x7a6911(0x166)][_0x7a6911(0x33c)](E[_0x7a6911(0x15b)](this[_0x7a6911(0x225)]),E[_0x7a6911(0x256)](_0x22cc26=>{const _0x4c7411=_0x7a6911;if(_0x22cc26){const _0x8f056c=_0x22cc26['sheetId'];return v['combineLatest'](this['_collabCursorController'][_0x4c7411(0x451)](this[_0x4c7411(0x4d6)][_0x4c7411(0x1e9)]),this[_0x4c7411(0x54c)]['currentTheme$'])[_0x4c7411(0x33c)](E[_0x4c7411(0x2f0)](([_0x4f965b,_0x1c5615])=>{const _0x3edadb=_0x4c7411,_0x2205f8=new Map();return _0x4f965b[_0x3edadb(0x476)]((_0x423da5,_0x2a2edc)=>{const _0x13bc9d=_0x3edadb;if(_0x423da5[_0x13bc9d(0x4e3)]===_0x8f056c){const _0x3e6eff={..._0x423da5};_0x3e6eff[_0x13bc9d(0x15e)]=_0x1c5615[_0x423da5[_0x13bc9d(0x15e)]],_0x2205f8[_0x13bc9d(0x3a3)](_0x2a2edc,_0x3e6eff);}}),{'skeleton':_0x22cc26,'cursors':_0x2205f8};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1b33f8,cursors:_0x430c69})=>{this['_removeCollabCursors'](),_0x1b33f8&&this['_updateCollabCursors'](_0x1b33f8,_0x430c69);}),this[_0x7a6911(0x4ee)][_0x7a6911(0x166)][_0x7a6911(0x369)](_0x26055d=>{const _0x307762=_0x7a6911;if(_0x26055d==null)return;const {skeleton:_0x21455f}=_0x26055d,{scene:_0xdd740b}=this[_0x307762(0x4d6)];_0xdd740b[_0x307762(0x403)][_0x307762(0x394)](ke(_0x482d13=>{const _0x13d682=_0x307762;var _0x1bdc3c,_0x33bece;const {offsetX:_0x500da0,offsetY:_0x3c37bc}=_0x482d13,{x:_0x5039cc,y:_0x320a5c}=_0xdd740b['getRelativeToViewportCoord'](R['Vector2'][_0x13d682(0x4aa)]([_0x500da0,_0x3c37bc])),{scaleX:_0x268bc0,scaleY:_0x46d457}=_0xdd740b[_0x13d682(0x179)](),_0x5f5054=_0xdd740b['getViewport'](ee[_0x13d682(0x30b)][_0x13d682(0x3d5)]),_0xb25375=_0xdd740b[_0x13d682(0x24b)](R[_0x13d682(0x2e3)]['FromArray']([_0x5039cc,_0x320a5c]),_0x5f5054),_0x387a2e=_0x21455f[_0x13d682(0x1af)](_0x500da0,_0x3c37bc,_0x268bc0,_0x46d457,_0xb25375);((_0x1bdc3c=this[_0x13d682(0x313)])==null?void 0x0:_0x1bdc3c[_0x13d682(0x569)])===_0x387a2e['column']&&((_0x33bece=this[_0x13d682(0x313)])==null?void 0x0:_0x33bece[_0x13d682(0x35a)])===_0x387a2e['row']||this[_0x13d682(0x46a)][_0x13d682(0x476)](_0x23cfeb=>{_0x23cfeb['onMouseMove'](_0x387a2e);});},0x64));});}[_0x786505(0x56d)](_0x22e623,_0x113895){const _0x27a9ab=_0x786505;var _0x2848b3;const _0x2fd492=(_0x2848b3=this[_0x27a9ab(0x4ee)][_0x27a9ab(0x1f5)]())==null?void 0x0:_0x2848b3[_0x27a9ab(0x3c6)];if(!_0x2fd492)return;const _0x6a1a3a=this[_0x27a9ab(0x381)]();if(!_0x6a1a3a)return;this[_0x27a9ab(0x46a)][_0x27a9ab(0x476)](_0x3ff3ed=>{const _0x3b9e76=_0x27a9ab;_0x3ff3ed[_0x3b9e76(0x3d3)]();});const {scene:_0x1000d4}=_0x6a1a3a,_0x51d973=li(Array[_0x27a9ab(0x4a3)](_0x113895[_0x27a9ab(0x3f2)]()))[_0x27a9ab(0x2f0)](_0x343e6b=>{const _0x3527f4=_0x27a9ab,{color:_0x447fae,range:_0x383da5,name:_0x439e44,selection:_0x1e9852,sheetID:_0x5aba90}=_0x343e6b,{startColumn:_0x51c13e,startRow:_0x3017c7,endColumn:_0x35bb2b,endRow:_0x3cc5d6}=_0x383da5,_0x3619b6=ee[_0x3527f4(0x2df)](_0x3017c7,_0x51c13e,_0x1000d4,_0x2fd492),_0x1dfb66=ee['getCoordByCell'](_0x3cc5d6,_0x35bb2b,_0x1000d4,_0x2fd492),{columnHeaderHeightAndMarginTop:_0x4066e4}=_0x2fd492,{startX:_0x5dd590,startY:_0x553d09}=_0x3619b6,{endX:_0xc27839,endY:_0x1f732e}=_0x1dfb66,_0x2832e2=_0xc27839-_0x5dd590,_0x2640fb=_0x1f732e-_0x553d09,_0x7e36a8={'labelPosition':_0x553d09-_0x4066e4>=_e?_0x3527f4(0x1a4):_0x3527f4(0x4a9),'sheetID':_0x5aba90,'range':_0x383da5,'color':_0x447fae,'name':_0x439e44,'selection':_0x1e9852,'left':_0x5dd590,'top':_0x553d09,'width':_0x2832e2,'height':_0x2640fb,'evented':!0x1,'zIndex':ci};return new Dt(_0x439e44,_0x7e36a8);});_0x1000d4[_0x27a9ab(0x1f2)](_0x51d973,ii),this['_cursors']=new Set(_0x51d973);}[_0x786505(0x210)](){const _0x44dc62=_0x786505;var _0x5a0134;(_0x5a0134=this['_cursors'])==null||_0x5a0134[_0x44dc62(0x476)](_0x53e6c6=>_0x53e6c6[_0x44dc62(0x36f)]());}[_0x786505(0x381)](){const _0x3006a1=_0x786505;return ee[_0x3006a1(0x48b)](this[_0x3006a1(0x4d6)][_0x3006a1(0x45d)],this[_0x3006a1(0x4d6)]);}};He=ai([Ue(0x1,a[_0x786505(0x449)](ee[_0x786505(0x4d3)])),Ue(0x2,a[_0x786505(0x449)](te)),Ue(0x3,a[_0x786505(0x449)](a['ThemeService']))],He);function li(_0x3fa949){const _0x5b45d4=_0x786505,_0x11ae77=new Map();return _0x3fa949[_0x5b45d4(0x476)](_0x32bd5f=>{const _0x20075f=_0x5b45d4;if(_0x11ae77[_0x20075f(0x479)](_0x32bd5f['selection'])){const _0x103613=_0x11ae77[_0x20075f(0x471)](_0x32bd5f[_0x20075f(0x1c0)]);_0x103613[_0x20075f(0x53f)]+=',\x20'+_0x32bd5f[_0x20075f(0x53f)];}else _0x11ae77[_0x20075f(0x3a3)](_0x32bd5f[_0x20075f(0x1c0)],_0x32bd5f);}),Array[_0x5b45d4(0x4a3)](_0x11ae77['values']());}var N=function(){const _0x17b6c7=_0x786505;return N=Object[_0x17b6c7(0x2a6)]||function(_0x117b6f){const _0x391afb=_0x17b6c7;for(var _0xb15299,_0x1f3f68=0x1,_0x786d9b=arguments[_0x391afb(0x31e)];_0x1f3f68<_0x786d9b;_0x1f3f68++){_0xb15299=arguments[_0x1f3f68];for(var _0x4abd15 in _0xb15299)Object['prototype'][_0x391afb(0x278)]['call'](_0xb15299,_0x4abd15)&&(_0x117b6f[_0x4abd15]=_0xb15299[_0x4abd15]);}return _0x117b6f;},N[_0x17b6c7(0x463)](this,arguments);},hi=function(_0x1d19d0,_0x44161c){const _0x58aa75=_0x786505;var _0x1738f3={};for(var _0x2559bd in _0x1d19d0)Object[_0x58aa75(0x2a3)][_0x58aa75(0x278)][_0x58aa75(0x48d)](_0x1d19d0,_0x2559bd)&&_0x44161c[_0x58aa75(0x2be)](_0x2559bd)<0x0&&(_0x1738f3[_0x2559bd]=_0x1d19d0[_0x2559bd]);if(_0x1d19d0!=null&&typeof Object['getOwnPropertySymbols']==_0x58aa75(0x4b3)){for(var _0x4b57ca=0x0,_0x2559bd=Object[_0x58aa75(0x31a)](_0x1d19d0);_0x4b57ca<_0x2559bd[_0x58aa75(0x31e)];_0x4b57ca++)_0x44161c[_0x58aa75(0x2be)](_0x2559bd[_0x4b57ca])<0x0&&Object[_0x58aa75(0x2a3)][_0x58aa75(0x1ab)]['call'](_0x1d19d0,_0x2559bd[_0x4b57ca])&&(_0x1738f3[_0x2559bd[_0x4b57ca]]=_0x1d19d0[_0x2559bd[_0x4b57ca]]);}return _0x1738f3;},Xe=P['forwardRef'](function(_0x485278,_0x53bd62){const _0x226d19=_0x786505;var _0x2bb05=_0x485278['icon'],_0x2817dd=_0x485278['id'],_0x5b8e9f=_0x485278[_0x226d19(0x296)],_0x96be7=_0x485278[_0x226d19(0x1d9)],_0x2dc1d7=hi(_0x485278,[_0x226d19(0x421),'id',_0x226d19(0x296),_0x226d19(0x1d9)]),_0x31482d=_0x226d19(0x275)[_0x226d19(0x4d7)](_0x2817dd,'\x20')[_0x226d19(0x4d7)](_0x5b8e9f||'')[_0x226d19(0x241)](),_0x5d8992=P[_0x226d19(0x1cd)]('_'[_0x226d19(0x4d7)](di()));return yt(_0x2bb05,''['concat'](_0x2817dd),{'defIds':_0x2bb05[_0x226d19(0x269)],'idSuffix':_0x5d8992[_0x226d19(0x3f6)]},N({'ref':_0x53bd62,'className':_0x31482d},_0x2dc1d7),_0x96be7);});function yt(_0x4f9dc1,_0x4229e0,_0x163d4f,_0x1c8bda,_0x56756a){const _0x87fd57=_0x786505;return P[_0x87fd57(0x2bf)](_0x4f9dc1['tag'],N(N({'key':_0x4229e0},_i(_0x4f9dc1,_0x163d4f,_0x56756a)),_0x1c8bda),(ui(_0x4f9dc1,_0x163d4f)[_0x87fd57(0x44c)]||[])[_0x87fd57(0x2f0)](function(_0xd14c10,_0x5e78b3){const _0x321e4e=_0x87fd57;return yt(_0xd14c10,''[_0x321e4e(0x4d7)](_0x4229e0,'-')[_0x321e4e(0x4d7)](_0x4f9dc1[_0x321e4e(0x37d)],'-')[_0x321e4e(0x4d7)](_0x5e78b3),_0x163d4f,void 0x0,_0x56756a);}));}function _i(_0x36ac56,_0x100733,_0x573db4){const _0x116665=_0x786505;var _0x31b6b0=N({},_0x36ac56[_0x116665(0x549)]);_0x573db4!=null&&_0x573db4[_0x116665(0x507)]&&_0x31b6b0[_0x116665(0x564)]===_0x116665(0x507)&&(_0x31b6b0[_0x116665(0x564)]=_0x573db4[_0x116665(0x507)]);var _0xc087a8=_0x100733['defIds'];return!_0xc087a8||_0xc087a8['length']===0x0||(_0x36ac56['tag']===_0x116665(0x1dd)&&_0x31b6b0['xlink:href']&&(_0x31b6b0[_0x116665(0x3bb)]=_0x31b6b0[_0x116665(0x3bb)]+_0x100733[_0x116665(0x4c1)]),Object['entries'](_0x31b6b0)[_0x116665(0x476)](function(_0x403897){const _0x5af5b1=_0x116665;var _0x22df7f=_0x403897[0x0],_0x1db3f0=_0x403897[0x1];typeof _0x1db3f0==_0x5af5b1(0x382)&&(_0x31b6b0[_0x22df7f]=_0x1db3f0[_0x5af5b1(0x535)](/url\(#(.*)\)/,_0x5af5b1(0x27b)[_0x5af5b1(0x4d7)](_0x100733[_0x5af5b1(0x4c1)],')')));})),_0x31b6b0;}function ui(_0x6bf508,_0x39917){const _0x370906=_0x786505;var _0x558bbe,_0x3ff87b=_0x39917[_0x370906(0x269)];return!_0x3ff87b||_0x3ff87b[_0x370906(0x31e)]===0x0?_0x6bf508:_0x6bf508[_0x370906(0x37d)]===_0x370906(0x288)&&(!((_0x558bbe=_0x6bf508[_0x370906(0x44c)])===null||_0x558bbe===void 0x0)&&_0x558bbe[_0x370906(0x31e)])?N(N({},_0x6bf508),{'children':_0x6bf508[_0x370906(0x44c)]['map'](function(_0x47ba67){const _0x207ff8=_0x370906;return typeof _0x47ba67[_0x207ff8(0x549)]['id']==_0x207ff8(0x382)&&_0x3ff87b&&_0x3ff87b[_0x207ff8(0x2be)](_0x47ba67[_0x207ff8(0x549)]['id'])>-0x1?N(N({},_0x47ba67),{'attrs':N(N({},_0x47ba67[_0x207ff8(0x549)]),{'id':_0x47ba67[_0x207ff8(0x549)]['id']+_0x39917[_0x207ff8(0x4c1)]})}):_0x47ba67;})}):_0x6bf508;}function di(){const _0x580d26=_0x786505;return Math[_0x580d26(0x472)]()['toString'](0x24)[_0x580d26(0x3db)](0x2,0x8);}Xe['displayName']=_0x786505(0x2ed);var Si={'tag':_0x786505(0x2e9),'attrs':{'fill':_0x786505(0x350),'viewBox':_0x786505(0x266),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x786505(0x177)},'children':[{'tag':_0x786505(0x23e),'attrs':{'stroke':_0x786505(0x50e),'d':_0x786505(0x361),'strokeLinecap':'round','strokeLinejoin':_0x786505(0x309),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x786505(0x347),'attrs':{'id':_0x786505(0x2c4)},'children':[{'tag':_0x786505(0x23e),'attrs':{'fill':_0x786505(0x29e),'d':_0x786505(0x541)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Pt=P['forwardRef'](function(_0xbcf91c,_0x2be394){const _0x1db2f7=_0x786505;return P[_0x1db2f7(0x2bf)](Xe,Object[_0x1db2f7(0x2a6)]({},_0xbcf91c,{'id':'off-line-single','ref':_0x2be394,'icon':Si}));});Pt[_0x786505(0x363)]=_0x786505(0x3c9);var vi={'tag':'svg','attrs':{'fill':_0x786505(0x350),'viewBox':_0x786505(0x19c),'width':_0x786505(0x42d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x786505(0x245)},'children':[{'tag':_0x786505(0x23e),'attrs':{'stroke':_0x786505(0x50e),'d':_0x786505(0x1cc),'strokeLinecap':_0x786505(0x309),'strokeLinejoin':_0x786505(0x309),'strokeWidth':1.2}}]},{'tag':_0x786505(0x288),'attrs':{},'children':[{'tag':_0x786505(0x347),'attrs':{'id':_0x786505(0x270)},'children':[{'tag':'path','attrs':{'fill':_0x786505(0x29e),'d':_0x786505(0x541),'transform':'translate(.97)'}}]}]}],'defIds':[_0x786505(0x270)]},wt=P[_0x786505(0x18b)](function(_0x13e151,_0x3d5503){const _0x591020=_0x786505;return P['createElement'](Xe,Object[_0x591020(0x2a6)]({},_0x13e151,{'id':_0x591020(0x3ae),'ref':_0x3d5503,'icon':vi}));});wt['displayName']=_0x786505(0x2fb);const mi=_0x786505(0x193),fi=_0x786505(0x2c6),gi='univer-online-status',Ii=_0x786505(0x22e),pi=_0x786505(0x404),ae={'onlineStatusIcon':mi,'onlineStatusTitle':fi,'onlineStatus':gi,'online':Ii,'offline':pi};function Ci(_0x5304e1){const _0x456f69=_0x786505;switch(_0x5304e1){case y[_0x456f69(0x1a8)]:return'collabStatus.offline';case y[_0x456f69(0x488)]:return'collabStatus.conflict';case y['FETCH_MISS']:return'collabStatus.fetchMiss';case y[_0x456f69(0x4cb)]:return _0x456f69(0x4eb);case y['PENDING']:case y['AWAITING']:case y[_0x456f69(0x42b)]:return'collabStatus.syncing';case y[_0x456f69(0x2e8)]:return'collabStatus.synced';}}function Ut(_0x4fb9a3){const _0x9156b5=_0x786505,{status$:_0x40f098}=_0x4fb9a3,_0x463920=M[_0x9156b5(0x4e8)](_0x40f098,y[_0x9156b5(0x4cb)]),_0x16ce0a=a['useDependency'](a[_0x9156b5(0x4a1)]),_0x56a82b=a['useDependency'](exports['CollaborationSessionService']),_0xe94abe=_0x463920!==y[_0x9156b5(0x1a8)],_0x2e048f=_0x16ce0a['t'](Ci(_0x463920)),_0x2821f4=Ft(ae[_0x9156b5(0x212)],{[ae[_0x9156b5(0x52c)]]:_0xe94abe,[ae[_0x9156b5(0x264)]]:!_0xe94abe}),_0x5b896f=_0xe94abe?P[_0x9156b5(0x2bf)](wt,null):P[_0x9156b5(0x2bf)](Pt,null),_0x358c2d=P[_0x9156b5(0x47a)](()=>{const _0x25d3ae=_0x9156b5;_0xe94abe||_0x56a82b[_0x25d3ae(0x529)]();},[_0xe94abe,_0x56a82b]);function _0x486762(){const _0xf5df32=_0x9156b5;return P[_0xf5df32(0x2bf)]('div',{'className':_0x2821f4,'onClick':_0x358c2d},P[_0xf5df32(0x2bf)](_0xf5df32(0x3b5),{'className':ae[_0xf5df32(0x1e3)]},_0x5b896f),P[_0xf5df32(0x2bf)]('div',{'className':ae[_0xf5df32(0x2c9)]},_0x2e048f));}return _0xe94abe?_0x486762():P[_0x9156b5(0x2bf)](K[_0x9156b5(0x408)],{'title':_0x16ce0a['t'](_0x9156b5(0x3a4))},_0x486762());}var Ei=Object[_0x786505(0x36b)],bi=Object['getOwnPropertyDescriptor'],Ti=(_0x5ed664,_0x1b5c65,_0x4cc385,_0x13cfde)=>{const _0xaf0d44=_0x786505;for(var _0x1ac2f9=_0x13cfde>0x1?void 0x0:_0x13cfde?bi(_0x1b5c65,_0x4cc385):_0x1b5c65,_0xe52b3f=_0x5ed664[_0xaf0d44(0x31e)]-0x1,_0x3a3ddc;_0xe52b3f>=0x0;_0xe52b3f--)(_0x3a3ddc=_0x5ed664[_0xe52b3f])&&(_0x1ac2f9=(_0x13cfde?_0x3a3ddc(_0x1b5c65,_0x4cc385,_0x1ac2f9):_0x3a3ddc(_0x1ac2f9))||_0x1ac2f9);return _0x13cfde&&_0x1ac2f9&&Ei(_0x1b5c65,_0x4cc385,_0x1ac2f9),_0x1ac2f9;},ue=(_0xef0b53,_0x28f773)=>(_0x3c431d,_0x4f312c)=>_0x28f773(_0x3c431d,_0x4f312c,_0xef0b53);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x786505(0x498)]{constructor(_0x2b776b,_0x37f670,_0x1d6c2e,_0x1b263b){const _0x38f2ad=_0x786505;super(),d(this,_0x38f2ad(0x3ad),new v[(_0x38f2ad(0x518))](y[_0x38f2ad(0x4cb)])),(this[_0x38f2ad(0x163)]=_0x2b776b,this[_0x38f2ad(0x32e)]=_0x37f670,this['_injector']=_0x1d6c2e,this[_0x38f2ad(0x548)]=_0x1b263b,this[_0x38f2ad(0x1dc)](),this[_0x38f2ad(0x37a)]());}['_initStatusListener'](){const _0x4788ec=_0x786505;this['disposeWithMe'](this[_0x4788ec(0x163)][_0x4788ec(0x4e4)][_0x4788ec(0x33c)](v[_0x4788ec(0x256)](()=>{const _0x2d6947=_0x4788ec,_0x50f3a1=this['_univerInstanceService'][_0x2d6947(0x387)]();return _0x50f3a1?this[_0x2d6947(0x548)][_0x2d6947(0x4b2)](_0x50f3a1[_0x2d6947(0x3b6)]()):v['of'](null);}),v[_0x4788ec(0x256)](_0x444fce=>_0x444fce?_0x444fce[_0x4788ec(0x28f)]:v['of'](y[_0x4788ec(0x4cb)])))[_0x4788ec(0x369)](_0x4af520=>{const _0x121602=_0x4788ec;this[_0x121602(0x3ad)][_0x121602(0x3c0)](_0x4af520);}));}['_initStatusComponent'](){const _0x246b83=_0x786505;this[_0x246b83(0x364)](this[_0x246b83(0x32e)]['registerComponent'](M['BuiltInUIPart'][_0x246b83(0x411)],()=>a['connectInjector'](Ri({'status$':this[_0x246b83(0x3ad)][_0x246b83(0x1e2)]()}),this[_0x246b83(0x1c7)])));}},exports['DesktopCollaborationStatusDisplayController']=Ti([ue(0x0,a['IUniverInstanceService']),ue(0x1,M[_0x786505(0x4bb)]),ue(0x2,a[_0x786505(0x449)](a[_0x786505(0x430)])),ue(0x3,a[_0x786505(0x449)](exports[_0x786505(0x1b5)]))],exports['DesktopCollaborationStatusDisplayController']);function Ri(_0x10e494){const {status$:_0xe1de7f}=_0x10e494;return function(){const _0x19037c=_0x4876;return P[_0x19037c(0x2bf)](Ut,{'status$':_0xe1de7f});};}const qe=a[_0x786505(0x2e4)](_0x786505(0x44f));var Oi=Object['defineProperty'],Di=Object['getOwnPropertyDescriptor'],yi=(_0x528b65,_0x57071c,_0x3f702d,_0x1eb4c2)=>{const _0x4cfe16=_0x786505;for(var _0x240049=_0x1eb4c2>0x1?void 0x0:_0x1eb4c2?Di(_0x57071c,_0x3f702d):_0x57071c,_0x1665b3=_0x528b65[_0x4cfe16(0x31e)]-0x1,_0x403e26;_0x1665b3>=0x0;_0x1665b3--)(_0x403e26=_0x528b65[_0x1665b3])&&(_0x240049=(_0x1eb4c2?_0x403e26(_0x57071c,_0x3f702d,_0x240049):_0x403e26(_0x240049))||_0x240049);return _0x1eb4c2&&_0x240049&&Oi(_0x57071c,_0x3f702d,_0x240049),_0x240049;},Q=(_0x27417d,_0x14e33d)=>(_0x77c170,_0x1e4128)=>_0x14e33d(_0x77c170,_0x1e4128,_0x27417d);exports['DataLoaderController']=class extends a[_0x786505(0x304)]{constructor(_0x2f7e3c,_0x2a9567,_0x32edea,_0x4da946,_0x31b310,_0x55a8c2){const _0x5d6664=_0x786505;super(),this['_urlService']=_0x2f7e3c,this[_0x5d6664(0x26f)]=_0x2a9567,this[_0x5d6664(0x23c)]=_0x32edea,this[_0x5d6664(0x168)]=_0x4da946,this[_0x5d6664(0x3fb)]=_0x31b310,_0x55a8c2?_0x55a8c2==null||_0x55a8c2['whenReady']()[_0x5d6664(0x282)](()=>this[_0x5d6664(0x257)]()):(this[_0x5d6664(0x26f)][_0x5d6664(0x3e7)](_0x5d6664(0x242),_0x5d6664(0x490)),this[_0x5d6664(0x257)]());}async['_init'](){const _0x370faa=_0x786505,_0x1815f9=this[_0x370faa(0x3b0)][_0x370faa(0x239)](_0x370faa(0x45d)),_0x6b13d9=this[_0x370faa(0x3b0)]['getParam'](_0x370faa(0x39b));if(!_0x1815f9||!_0x6b13d9){this[_0x370faa(0x26f)][_0x370faa(0x3e7)](_0x370faa(0x242),_0x370faa(0x366));return;}switch(Number(_0x6b13d9)){case A['UNIVER_SHEET']:{const _0x30598b=await this[_0x370faa(0x576)](_0x1815f9);this['_setupSubUnitSync'](_0x30598b);break;}case A[_0x370faa(0x170)]:{await this['_loadDoc'](_0x1815f9);break;}default:{this['_logService'][_0x370faa(0x3e2)](_0x370faa(0x242),_0x370faa(0x51d));break;}}}async[_0x786505(0x374)](_0x15dc77){const _0x21f5a2=_0x786505;await this[_0x21f5a2(0x480)](_0x15dc77),_0x15dc77[_0x21f5a2(0x55f)][_0x21f5a2(0x33c)](v[_0x21f5a2(0x15b)](this['dispose$']))['subscribe'](_0x56b23e=>{const _0x5249cc=_0x21f5a2;_0x56b23e&&this[_0x5249cc(0x373)](_0x56b23e);}),this[_0x21f5a2(0x3b0)][_0x21f5a2(0x1a3)][_0x21f5a2(0x33c)](v[_0x21f5a2(0x15b)](this[_0x21f5a2(0x225)]))[_0x21f5a2(0x369)](()=>this['_updateSubUnitFromURLParams'](_0x15dc77));}[_0x786505(0x373)](_0x45eb06,_0x2506e7=!0x1){const _0x2f9c2d=_0x786505,_0x129c0f=this['_urlService']['getParam']('subunit');_0x45eb06[_0x2f9c2d(0x4ab)]()!==_0x129c0f&&this[_0x2f9c2d(0x3b0)][_0x2f9c2d(0x423)](_0x2f9c2d(0x567),_0x45eb06[_0x2f9c2d(0x4ab)](),_0x2506e7);}async[_0x786505(0x480)](_0x2c68ed){const _0x78045d=_0x786505;var _0x775211;const _0x426eb5=this['_urlService'][_0x78045d(0x239)]('subunit');if(!_0x426eb5||!_0x2c68ed['getSheetBySheetId'](_0x426eb5)){const _0x421365=_0x2c68ed[_0x78045d(0x206)]()[0x0],_0x5c6e08=_0x2c68ed[_0x78045d(0x4d5)](_0x421365);if(!_0x5c6e08)return;this[_0x78045d(0x373)](_0x5c6e08,!0x0),await this[_0x78045d(0x23c)][_0x78045d(0x365)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x2c68ed['getUnitId'](),'subUnitId':_0x421365});return;}((_0x775211=_0x2c68ed[_0x78045d(0x53a)]())==null?void 0x0:_0x775211[_0x78045d(0x4ab)]())!==_0x426eb5&&await this[_0x78045d(0x23c)][_0x78045d(0x365)](C[_0x78045d(0x21a)]['id'],{'unitId':_0x2c68ed[_0x78045d(0x3b6)](),'subUnitId':_0x426eb5});}async['_loadSheet'](_0x590b9e){const _0x3a310b=_0x786505;let _0x72e661=0x0;const _0x2995b8=await this[_0x3a310b(0x168)][_0x3a310b(0x32d)](_0x590b9e);return _0x2995b8&&(_0x2995b8[_0x3a310b(0x1ee)]||_0x2995b8[_0x3a310b(0x485)][_0x3a310b(0x31e)]!==0x0)&&(_0x72e661=_0x2995b8[_0x3a310b(0x2ac)]),_0x72e661===0x0&&this[_0x3a310b(0x26f)][_0x3a310b(0x3e7)](_0x3a310b(0x242),_0x3a310b(0x27d)),this[_0x3a310b(0x3fb)][_0x3a310b(0x1bd)](_0x590b9e,_0x72e661);}async[_0x786505(0x29c)](_0x29ab9d){const _0x37acae=_0x786505;let _0x2fcace=0x0;const _0x3a1373=await this[_0x37acae(0x168)][_0x37acae(0x32d)](_0x29ab9d);return _0x3a1373&&(_0x3a1373[_0x37acae(0x1ee)]||_0x3a1373[_0x37acae(0x485)][_0x37acae(0x31e)]!==0x0)&&(_0x2fcace=_0x3a1373[_0x37acae(0x2ac)]),_0x2fcace===0x0&&this[_0x37acae(0x26f)][_0x37acae(0x3e7)](_0x37acae(0x242),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x37acae(0x43f)](_0x29ab9d,_0x2fcace);}},exports[_0x786505(0x4a8)]=yi([a['OnLifecycle'](a['LifecycleStages'][_0x786505(0x23b)],exports[_0x786505(0x4a8)]),Q(0x0,qe),Q(0x1,a[_0x786505(0x435)]),Q(0x2,a[_0x786505(0x368)]),Q(0x3,a[_0x786505(0x449)](exports[_0x786505(0x37f)])),Q(0x4,a[_0x786505(0x449)](_[_0x786505(0x3b1)])),Q(0x5,a[_0x786505(0x47d)](Wt[_0x786505(0x2d5)]))],exports[_0x786505(0x4a8)]);var Pi=Object[_0x786505(0x36b)],wi=Object[_0x786505(0x1b8)],Ui=(_0x2052ae,_0x43528c,_0xc741e1,_0x10e150)=>{for(var _0x33d389=_0x10e150>0x1?void 0x0:_0x10e150?wi(_0x43528c,_0xc741e1):_0x43528c,_0x4faf4a=_0x2052ae['length']-0x1,_0x26a39f;_0x4faf4a>=0x0;_0x4faf4a--)(_0x26a39f=_0x2052ae[_0x4faf4a])&&(_0x33d389=(_0x10e150?_0x26a39f(_0x43528c,_0xc741e1,_0x33d389):_0x26a39f(_0x33d389))||_0x33d389);return _0x10e150&&_0x33d389&&Pi(_0x43528c,_0xc741e1,_0x33d389),_0x33d389;},rt=(_0x67deab,_0x4e5db3)=>(_0x25cc06,_0x2183a9)=>_0x4e5db3(_0x25cc06,_0x2183a9,_0x67deab);const Ni=_0x786505(0x41c),Mi=_0x786505(0x4ed);let ve=class extends a[_0x786505(0x498)]{constructor(_0x33e135,_0x3b7cfc){const _0xf3bf47=_0x786505;super(),this[_0xf3bf47(0x163)]=_0x33e135,this['_configService']=_0x3b7cfc,this[_0xf3bf47(0x257)]();}[_0x786505(0x257)](){const _0x5e9284=_0x786505;this['disposeWithMe'](a[_0x5e9284(0x261)](this['_univerInstanceService'][_0x5e9284(0x4e4)]['subscribe'](()=>{const _0x5c4495=_0x5e9284;var _0x3e482f;const _0x36012e=this['_univerInstanceService'][_0x5c4495(0x387)]();let _0x4c4276=(_0x3e482f=this['_configService']['getConfig'](Ni))!=null?_0x3e482f:Mi;_0x36012e instanceof a[_0x5c4495(0x52b)]&&(_0x4c4276=_0x36012e[_0x5c4495(0x53f)]),document[_0x5c4495(0x19d)]=_0x4c4276;})));}};ve=Ui([a[_0x786505(0x234)](a[_0x786505(0x3e3)][_0x786505(0x441)],ve),rt(0x0,a[_0x786505(0x244)]),rt(0x1,a[_0x786505(0x2a9)])],ve);var Li=Object[_0x786505(0x36b)],Ai=Object[_0x786505(0x1b8)],ji=(_0x15dceb,_0x1705d8,_0x3625f8,_0x33b832)=>{for(var _0x1637f2=_0x33b832>0x1?void 0x0:_0x33b832?Ai(_0x1705d8,_0x3625f8):_0x1705d8,_0x592c7f=_0x15dceb['length']-0x1,_0x218710;_0x592c7f>=0x0;_0x592c7f--)(_0x218710=_0x15dceb[_0x592c7f])&&(_0x1637f2=(_0x33b832?_0x218710(_0x1705d8,_0x3625f8,_0x1637f2):_0x218710(_0x1637f2))||_0x1637f2);return _0x33b832&&_0x1637f2&&Li(_0x1705d8,_0x3625f8,_0x1637f2),_0x1637f2;},ot=(_0x1ced82,_0x6d3965)=>(_0xb7a28f,_0x3beab7)=>_0x6d3965(_0xb7a28f,_0x3beab7,_0x1ced82);exports[_0x786505(0x15f)]=class{constructor(_0x82722d,_0x4bc402){const _0xc8404f=_0x786505;this[_0xc8404f(0x48f)]=_0x82722d,this['_httpService']=_0x4bc402;}async['getUnitOnRev'](_0x2b4159,_0x1737f2){const _0x3cba80=_0x786505;var _0x292ea7;const {unitID:_0xe9d7ed,type:_0x4fd3fe,revision:_0x374ffa=0x0}=_0x1737f2,_0x324099=this[_0x3cba80(0x222)]()+'/'+_0x4fd3fe+_0x3cba80(0x464)+_0xe9d7ed+_0x3cba80(0x4ec)+_0x374ffa,_0x15236d=(await this[_0x3cba80(0x4f9)][_0x3cba80(0x471)](_0x324099))[_0x3cba80(0x227)],_0x340c5d=(_0x292ea7=_0x15236d[_0x3cba80(0x228)])==null?void 0x0:_0x292ea7[_0x3cba80(0x27f)];if(_0x340c5d){const _0x3b130d=_0x340c5d==null?void 0x0:_0x340c5d[_0x3cba80(0x1c4)],_0x524ff1=_[_0x3cba80(0x45b)][_0x3cba80(0x473)](_['b64DecodeUnicode'](_0x3b130d));_0x340c5d[_0x3cba80(0x1c4)]=_0x524ff1,Object[_0x3cba80(0x25a)](_0x340c5d['sheets'])[_0x3cba80(0x476)](([,_0x35094d])=>{const _0x4bff04=_0x3cba80,_0xfbc8b4=_0x35094d[_0x4bff04(0x1c4)],_0x47b97b=_[_0x4bff04(0x45b)][_0x4bff04(0x473)](_[_0x4bff04(0x3d0)](_0xfbc8b4));_0x35094d[_0x4bff04(0x1c4)]=_0x47b97b;});}return _0x15236d;}async[_0x786505(0x388)](_0x4ea766,_0x198de6){const _0x196cc9=_0x786505,{unitID:_0x503025,type:_0x249c84,blockID:_0x119ac5}=_0x198de6,_0x23e2e=this[_0x196cc9(0x4cf)]()+'/'+_0x249c84+_0x196cc9(0x464)+_0x503025+_0x196cc9(0x240)+_0x119ac5;return(await this[_0x196cc9(0x4f9)][_0x196cc9(0x471)](_0x23e2e))[_0x196cc9(0x227)];}async['fetchMissingChangesets'](_0x1d4be7,_0x523312){const _0x24a484=_0x786505,{unitID:_0x38f1ce,type:_0x597ad4,from:_0xb3252e,to:_0x40293b}=_0x523312,_0x565092=this[_0x24a484(0x4cf)]()+'/'+_0x597ad4+_0x24a484(0x464)+_0x38f1ce+_0x24a484(0x3ef)+_0xb3252e+_0x24a484(0x4ff)+_0x40293b;return(await this[_0x24a484(0x4f9)][_0x24a484(0x471)](_0x565092))['body'];}[_0x786505(0x222)](){const _0x3d9c45=_0x786505;var _0x10c0cb;return(_0x10c0cb=this['_configService'][_0x3d9c45(0x487)](ht))!=null?_0x10c0cb:this['_getAPIPrefix']();}[_0x786505(0x4cf)](){const _0x1d4c87=_0x786505;var _0x3e9d7d;return(_0x3e9d7d=this[_0x1d4c87(0x48f)]['getConfig'](lt))!=null?_0x3e9d7d:Gt;}async['getResourcesRequest'](_0x267274,_0x4dd088){const _0x487b6f=_0x786505,_0x1222b1='/universer-api/snapshot/'+_0x4dd088[_0x487b6f(0x39b)]+_0x487b6f(0x464)+_0x4dd088[_0x487b6f(0x1e0)]+'/resources';return(await this[_0x487b6f(0x4f9)][_0x487b6f(0x471)](_0x1222b1,{'params':{'resourceId':JSON[_0x487b6f(0x301)](_0x4dd088['resourceIDs'])}}))[_0x487b6f(0x227)];}[_0x786505(0x2e0)](){const _0x386009=_0x786505;throw new Error(_0x386009(0x337));}[_0x786505(0x440)](){const _0x29c342=_0x786505;throw new Error(_0x29c342(0x337));}[_0x786505(0x3f8)](){const _0xc58442=_0x786505;throw new Error(_0xc58442(0x337));}},exports[_0x786505(0x15f)]=ji([ot(0x0,a[_0x786505(0x2a9)]),ot(0x1,a[_0x786505(0x449)](w[_0x786505(0x43b)]))],exports['SnapshotServerOverHTTPService']);var $i=Object[_0x786505(0x36b)],Hi=Object[_0x786505(0x1b8)],xi=(_0x59f14a,_0x28c360,_0x4f94b0,_0x198b80)=>{const _0x33b4ef=_0x786505;for(var _0x5a91c5=_0x198b80>0x1?void 0x0:_0x198b80?Hi(_0x28c360,_0x4f94b0):_0x28c360,_0xe8d0ff=_0x59f14a[_0x33b4ef(0x31e)]-0x1,_0x4315c6;_0xe8d0ff>=0x0;_0xe8d0ff--)(_0x4315c6=_0x59f14a[_0xe8d0ff])&&(_0x5a91c5=(_0x198b80?_0x4315c6(_0x28c360,_0x4f94b0,_0x5a91c5):_0x4315c6(_0x5a91c5))||_0x5a91c5);return _0x198b80&&_0x5a91c5&&$i(_0x28c360,_0x4f94b0,_0x5a91c5),_0x5a91c5;},ce=(_0x178810,_0x5b8a88)=>(_0x228a58,_0x5d37da)=>_0x5b8a88(_0x228a58,_0x5d37da,_0x178810);let xe=class extends a[_0x786505(0x171)]{constructor(_0x3d4a24,_0x47ed29,_0x289f20,_0x3a3bf2,_0x4d3aa7){super(_0x3d4a24,_0x47ed29,_0x289f20),this['_transformService']=_0x3a3bf2,this['_logService']=_0x4d3aa7;}[_0x786505(0x20a)](_0x2eef86,_0x42bbd5){const _0x3b2a7d=_0x786505,_0x92417c=this[_0x3b2a7d(0x357)](_0x2eef86);if(_0x92417c)try{const _0x50f763=this['_transformStack'](_0x92417c,_0x42bbd5);this['_substituteUndoStack'](_0x2eef86,_0x50f763);}catch(_0x336aa6){this[_0x3b2a7d(0x26f)][_0x3b2a7d(0x3e2)](_0x3b2a7d(0x1d8),_0x336aa6),this['_clearUndo'](_0x2eef86);}const _0x290e90=this['_getRedoStack'](_0x2eef86);if(_0x290e90)try{const _0x57f73b=this[_0x3b2a7d(0x542)](_0x290e90,_0x42bbd5);this[_0x3b2a7d(0x467)](_0x2eef86,_0x57f73b);}catch(_0x7334e2){this[_0x3b2a7d(0x26f)][_0x3b2a7d(0x3e2)](_0x7334e2),this[_0x3b2a7d(0x1a2)](_0x2eef86);}}[_0x786505(0x39d)](_0x2b6008){const _0x5162ca=_0x786505,_0x2f3e37=this[_0x5162ca(0x357)](_0x2b6008);_0x2f3e37&&(_0x2f3e37[_0x5162ca(0x31e)]=0x0,this[_0x5162ca(0x47b)]());}[_0x786505(0x1a2)](_0x5ed02a){const _0x3a89c6=_0x786505,_0x170ad6=this[_0x3a89c6(0x173)](_0x5ed02a);_0x170ad6&&(_0x170ad6[_0x3a89c6(0x31e)]=0x0,this[_0x3a89c6(0x47b)]());}[_0x786505(0x380)](_0x52df87,_0xe1b63b){const _0x1e1615=_0x786505;this[_0x1e1615(0x283)][_0x1e1615(0x3a3)](_0x52df87,_0xe1b63b),this['_updateStatus']();}['_substituteRedoStack'](_0x59c10f,_0x37431c){const _0x4ad557=_0x786505;this[_0x4ad557(0x395)]['set'](_0x59c10f,_0x37431c),this[_0x4ad557(0x47b)]();}[_0x786505(0x542)](_0x42b09f,_0x20dc01){const _0x4cd381=_0x786505,_0x312313=[];let _0x1c1cdd=_0x20dc01,_0x145fe1=_0x20dc01;for(let _0x2c6c8a=_0x42b09f['length']-0x1;_0x2c6c8a>=0x0;_0x2c6c8a--){const {unitID:_0x541d74,undoMutations:_0x2c4fe2,redoMutations:_0x22bf3d}=_0x42b09f[_0x2c6c8a],_0x76c655=this[_0x4cd381(0x4fa)][_0x4cd381(0x333)](_0x1c1cdd,_0x2c4fe2),_0x3852b8=this[_0x4cd381(0x4fa)][_0x4cd381(0x333)](_0x145fe1,_0x22bf3d);if(_[_0x4cd381(0x3cc)](_0x76c655)||_[_0x4cd381(0x3cc)](_0x3852b8)){this['_logService'][_0x4cd381(0x3e2)](_0x4cd381(0x1d8),_0x4cd381(0x4c9),_0x76c655,_0x3852b8);break;}_0x1c1cdd=_0x76c655[_0x4cd381(0x3eb)],_0x145fe1=_0x3852b8[_0x4cd381(0x3eb)],_0x312313[_0x4cd381(0x577)]({'unitID':_0x541d74,'undoMutations':_0x76c655['m2Prime'],'redoMutations':_0x3852b8['m2Prime']});}return _0x312313[_0x4cd381(0x3d1)]();}};xe=xi([ce(0x0,a[_0x786505(0x244)]),ce(0x1,a[_0x786505(0x368)]),ce(0x2,a[_0x786505(0x24c)]),ce(0x3,_[_0x786505(0x276)]),ce(0x4,a[_0x786505(0x435)])],xe);class Nt extends a[_0x786505(0x304)]{constructor(){const _0x4f8db3=_0x786505;super(),d(this,'urlChange$'),this[_0x4f8db3(0x1a3)]=v[_0x4f8db3(0x56f)](window,'popstate')[_0x4f8db3(0x33c)](v[_0x4f8db3(0x15b)](this[_0x4f8db3(0x225)]),v[_0x4f8db3(0x293)](0x1),v[_0x4f8db3(0x2f7)](void 0x0));}['setParam'](_0x16c455,_0x41809b,_0x8f610f=!0x1){const _0x1a8e27=_0x786505,_0xa672a7=new URL(window[_0x1a8e27(0x21f)][_0x1a8e27(0x306)]);_0xa672a7[_0x1a8e27(0x3cd)][_0x1a8e27(0x3a3)](_0x16c455,_0x41809b),_0x8f610f?window['history']['replaceState']('','',_0xa672a7['toString']()):window[_0x1a8e27(0x260)][_0x1a8e27(0x299)]('','',_0xa672a7[_0x1a8e27(0x294)]());}['removeParam'](_0x33ad52,_0x4b74b7=!0x1){const _0x965c8=_0x786505,_0x77865=new URL(window[_0x965c8(0x21f)]['href']);_0x77865[_0x965c8(0x3cd)][_0x965c8(0x27c)](_0x33ad52),_0x4b74b7?window['history'][_0x965c8(0x343)]('','',_0x77865[_0x965c8(0x294)]()):window[_0x965c8(0x260)][_0x965c8(0x299)]('','',_0x77865[_0x965c8(0x294)]());}[_0x786505(0x239)](_0x5a84ff){const _0x5aded8=_0x786505;var _0x5a8de9;return(_0x5a8de9=new URL(window['location'][_0x5aded8(0x306)])[_0x5aded8(0x3cd)][_0x5aded8(0x471)](_0x5a84ff))!=null?_0x5a8de9:void 0x0;}}const Ne=_0x786505(0x1ad),ki='collab-text-range-',Bi=_0x786505(0x280),le=0x6,Vi=1.5,Me=0x4,Fi=1.5,Wi=_0x786505(0x3e9);class at{constructor(_0x5b547d,_0x37ebcb,_0x4a997a,_0x52eddc){const _0x63e1a9=_0x786505;d(this,'_shapes',[]),d(this,'_anchor',null),d(this,_0x63e1a9(0x525),null),d(this,_0x63e1a9(0x3f4),null),d(this,_0x63e1a9(0x371),null),d(this,_0x63e1a9(0x398),null),(this['_cursor']=_0x5b547d,this['_scene']=_0x37ebcb,this[_0x63e1a9(0x30a)]=_0x4a997a,this['_document']=_0x52eddc,this[_0x63e1a9(0x19a)]());}set[_0x786505(0x406)](_0x476775){const _0x1c8a6b=_0x786505;_0x476775?(this['_anchorDot']&&this['_anchorDot']['hide'](),this[_0x1c8a6b(0x525)]&&this[_0x1c8a6b(0x525)]['show']()):(this[_0x1c8a6b(0x3f4)]&&this[_0x1c8a6b(0x3f4)][_0x1c8a6b(0x4fc)](),this[_0x1c8a6b(0x525)]&&this[_0x1c8a6b(0x525)][_0x1c8a6b(0x4d2)]());}[_0x786505(0x36f)](){const _0x3ff2db=_0x786505;for(const _0x575466 of this[_0x3ff2db(0x18d)])_0x575466['dispose']();this['_textBubble']&&this['_textBubble'][_0x3ff2db(0x36f)](),this[_0x3ff2db(0x3f4)]&&this[_0x3ff2db(0x3f4)][_0x3ff2db(0x36f)](),this[_0x3ff2db(0x4df)]&&this[_0x3ff2db(0x4df)][_0x3ff2db(0x36f)](),this[_0x3ff2db(0x398)]&&this[_0x3ff2db(0x398)]();}['_render'](){const _0x42c198=_0x786505;var _0x50b793;const {_docSkeleton:_0x116220,_document:_0x50b291}=this,{color:_0x478f4b,name:_0x9d6333,ranges:_0x1f3e2d}=this[_0x42c198(0x503)],_0x4d3998=_0x50b291['getOffsetConfig'](),{docsLeft:_0x2b2c10,docsTop:_0x32f960}=_0x4d3998,_0x1b90eb=new U[(_0x42c198(0x17b))](_0x4d3998,_0x116220);for(const {startOffset:_0x3cea87,endOffset:_0x1a03d8,collapsed:_0x53f554,isActive:_0x4dc4ed}of _0x1f3e2d){const _0x12e0a0=_0x116220[_0x42c198(0x51a)](_0x3cea87),_0x4678dc=_0x116220['findNodePositionByCharIndex'](_0x1a03d8);if(_0x4dc4ed){const {contentBoxPointGroup:_0x2eafde}=_0x1b90eb[_0x42c198(0x41e)](_0x4678dc,_0x4678dc);if(_0x2eafde[_0x42c198(0x31e)]===0x0)continue;this[_0x42c198(0x495)](_0x478f4b,_0x2eafde,_0x2b2c10,_0x32f960,_0x9d6333),this[_0x42c198(0x398)]=this[_0x42c198(0x379)]();}if(!_0x53f554&&_0x12e0a0&&_0x4678dc){if(U[_0x42c198(0x53c)](_0x12e0a0,_0x4678dc)){const _0x42de29=new U[(_0x42c198(0x3ce))](_0x4d3998,_0x116220),{pointGroup:_0xe5bfed}=(_0x50b793=_0x42de29[_0x42c198(0x41e)](_0x12e0a0,_0x4678dc))!=null?_0x50b793:{};if(_0xe5bfed==null||_0xe5bfed[_0x42c198(0x31e)]===0x0)continue;this[_0x42c198(0x224)](_0x478f4b,_0xe5bfed,_0x2b2c10,_0x32f960);}else{const {contentBoxPointGroup:_0xf835ff}=_0x1b90eb['getRangePointData'](_0x12e0a0,_0x4678dc);if(_0xf835ff['length']===0x0)continue;this[_0x42c198(0x54b)](_0x478f4b,_0xf835ff,_0x2b2c10,_0x32f960);}}}}[_0x786505(0x495)](_0x448d5d,_0x4baf46,_0x48da78,_0x2ccad9,_0x218153){const _0x37bff3=_0x786505,_0x155c95=this[_0x37bff3(0x502)](_0x4baf46),{left:_0x7d1ada,top:_0x5e7979,height:_0x514820}=_0x155c95,_0x4721d4=this['_getScale'](),_0x4b1af3=Fi/_0x4721d4,_0x306e58=new R[(_0x37bff3(0x481))](Ne+a['Tools'][_0x37bff3(0x431)](le),{'left':_0x7d1ada+_0x48da78-_0x4b1af3,'top':_0x5e7979+_0x2ccad9,'height':_0x514820,'width':Vi,'fill':_0x448d5d||R[_0x37bff3(0x29a)](a[_0x37bff3(0x352)][_0x37bff3(0x18e)],0x0),'strokeWidth':_0x4b1af3,'stroke':Wi,'evented':!0x0});this['_anchor']=_0x306e58,this[_0x37bff3(0x54a)]['addObject'](_0x306e58,U[_0x37bff3(0x3ee)]);const _0x349ccb=new R[(_0x37bff3(0x481))](Ne+a['Tools']['generateRandomId'](le),{'left':_0x7d1ada+_0x48da78-_0x4b1af3,'top':_0x5e7979+_0x2ccad9-Me/0x2,'height':Me,'width':Me,'fill':_0x448d5d||R[_0x37bff3(0x29a)](a[_0x37bff3(0x352)][_0x37bff3(0x18e)],0x0),'strokeWidth':0x0,'stroke':_0x448d5d||R[_0x37bff3(0x29a)](a[_0x37bff3(0x352)]['black'],0x0),'evented':!0x1});this[_0x37bff3(0x3f4)]=_0x349ccb,this['_scene'][_0x37bff3(0x3bf)](_0x349ccb,U[_0x37bff3(0x3ee)]);const _0xf4815f=new be(Ne+a[_0x37bff3(0x3f9)][_0x37bff3(0x431)](le),{'left':_0x7d1ada+_0x48da78-_0x4b1af3,'top':_0x5e7979+_0x2ccad9-_e,'text':_0x218153,'color':_0x448d5d});this[_0x37bff3(0x525)]=_0xf4815f,this[_0x37bff3(0x54a)][_0x37bff3(0x3bf)](_0xf4815f,U[_0x37bff3(0x3ee)]),this['_hover']=!0x1;}[_0x786505(0x379)](){const _0x29da79=_0x786505,_0x1fc679=this['_anchor'][_0x29da79(0x565)]['subscribeEvent'](()=>{const _0x18c429=_0x29da79;this[_0x18c429(0x406)]=!0x0;}),_0x36336c=this[_0x29da79(0x4df)][_0x29da79(0x482)][_0x29da79(0x394)](()=>{const _0x27e162=_0x29da79;this[_0x27e162(0x371)]&&clearTimeout(this['_hideTimer']),this[_0x27e162(0x371)]=setTimeout(()=>{const _0x1373a1=_0x27e162;this[_0x1373a1(0x406)]=!0x1;},0x7d0);});return()=>{const _0x53d92f=_0x29da79;_0x1fc679[_0x53d92f(0x302)](),_0x36336c[_0x53d92f(0x302)]();};}['_drawTextRange'](_0x5363a4,_0x12f449,_0x4ee8ac,_0x360b2d){const _0x4a50cc=_0x786505,_0xccec01=new a[(_0x4a50cc(0x446))](_0x5363a4)['setAlpha'](0.2)['toRgbString'](),_0x5d33a2=new R['RegularPolygon'](ki+a[_0x4a50cc(0x3f9)][_0x4a50cc(0x431)](le),{'pointsGroup':_0x12f449,'fill':_0xccec01||R[_0x4a50cc(0x29a)](a['COLORS'][_0x4a50cc(0x18e)],0.2),'left':_0x4ee8ac,'top':_0x360b2d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a50cc(0x18d)][_0x4a50cc(0x577)](_0x5d33a2),this[_0x4a50cc(0x54a)][_0x4a50cc(0x3bf)](_0x5d33a2,U[_0x4a50cc(0x3ee)]);}[_0x786505(0x224)](_0x4bd2f7,_0x4c1e97,_0x142ebe,_0x347eab){const _0x2d5aeb=_0x786505,_0x3bc608=new a[(_0x2d5aeb(0x446))](_0x4bd2f7)['setAlpha'](0.2)['toRgbString'](),_0x667761=new R[(_0x2d5aeb(0x32a))](Bi+a[_0x2d5aeb(0x3f9)][_0x2d5aeb(0x431)](le),{'pointsGroup':_0x4c1e97,'fill':_0x3bc608||R[_0x2d5aeb(0x29a)](a['COLORS']['black'],0.2),'left':_0x142ebe,'top':_0x347eab,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2d5aeb(0x577)](_0x667761),this[_0x2d5aeb(0x54a)]['addObject'](_0x667761,U[_0x2d5aeb(0x3ee)]);}[_0x786505(0x502)](_0x351410){const _0x266072=_0x351410[0x0],_0x4f4f02=_0x266072[0x0],_0x5adcac=_0x266072[0x2],{x:_0x32be80,y:_0x4d39f}=_0x4f4f02,{x:_0x369a7a,y:_0x4d0728}=_0x5adcac;return{'left':_0x32be80,'top':_0x4d39f,'width':_0x369a7a-_0x32be80,'height':_0x4d0728-_0x4d39f};}[_0x786505(0x4f5)](){const _0xd64959=_0x786505,{scaleX:_0x4fe6ad,scaleY:_0x41a391}=this[_0xd64959(0x54a)][_0xd64959(0x179)]();return Math[_0xd64959(0x20c)](_0x4fe6ad,_0x41a391);}}var Gi=Object['defineProperty'],Yi=Object[_0x786505(0x1b8)],Ki=(_0x128422,_0x53f1bd,_0x395396,_0x119887)=>{const _0x2ba33c=_0x786505;for(var _0x73ca80=_0x119887>0x1?void 0x0:_0x119887?Yi(_0x53f1bd,_0x395396):_0x53f1bd,_0x4062a8=_0x128422[_0x2ba33c(0x31e)]-0x1,_0x1ae12d;_0x4062a8>=0x0;_0x4062a8--)(_0x1ae12d=_0x128422[_0x4062a8])&&(_0x73ca80=(_0x119887?_0x1ae12d(_0x53f1bd,_0x395396,_0x73ca80):_0x1ae12d(_0x73ca80))||_0x73ca80);return _0x119887&&_0x73ca80&&Gi(_0x53f1bd,_0x395396,_0x73ca80),_0x73ca80;},de=(_0x335042,_0x21cf45)=>(_0x3f2d78,_0x4b750c)=>_0x21cf45(_0x3f2d78,_0x4b750c,_0x335042);function _0x4876(_0x373a36,_0x507d43){const _0x60269c=_0x6026();return _0x4876=function(_0x4876a7,_0x1b1047){_0x4876a7=_0x4876a7-0x15a;let _0x48b8e3=_0x60269c[_0x4876a7];return _0x48b8e3;},_0x4876(_0x373a36,_0x507d43);}let me=class extends a[_0x786505(0x304)]{constructor(_0x5c9d9f,_0x259180,_0x187aa8,_0x3b0f83,_0x50a02d){const _0x4d7eef=_0x786505;super(),d(this,_0x4d7eef(0x4c8),[]),d(this,_0x4d7eef(0x46a),[]),(this[_0x4d7eef(0x4d6)]=_0x5c9d9f,this['_docSkeletonManagerService']=_0x259180,this[_0x4d7eef(0x453)]=_0x187aa8,this['_commandService']=_0x3b0f83,this[_0x4d7eef(0x54c)]=_0x50a02d,this[_0x4d7eef(0x257)]());}[_0x786505(0x257)](){const _0x23e09f=_0x786505,_0x255a70=this['_context'][_0x23e09f(0x1e9)],_0x2f9384=this[_0x23e09f(0x47f)];this[_0x23e09f(0x364)](v[_0x23e09f(0x3b7)]([this[_0x23e09f(0x453)][_0x23e09f(0x451)](_0x255a70),this[_0x23e09f(0x54c)][_0x23e09f(0x457)]])['pipe'](E[_0x23e09f(0x2f0)](([_0x42c775,_0x5766ff])=>({'skeleton':_0x2f9384[_0x23e09f(0x396)](),'cursors':[..._0x42c775[_0x23e09f(0x3f2)]()][_0x23e09f(0x1e1)](_0x12fdfb=>({..._0x12fdfb,'color':_0x5766ff[_0x12fdfb[_0x23e09f(0x15e)]]}))})))[_0x23e09f(0x369)](_0x226c43=>{if(this['_removeCollabCursors'](),_0x226c43){const {skeleton:_0x26c9e9,cursors:_0x3bfd32}=_0x226c43;this['_updateCollabCursors'](_0x26c9e9,_0x3bfd32);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x786505(0x56d)](_0x19585d,_0xd774cf){const _0x3f8faf=_0x786505,{scene:_0x54c6fe,mainComponent:_0x4fbeb1}=this[_0x3f8faf(0x4d6)],_0x420489=_0xd774cf['map'](_0x35c59a=>new at(_0x35c59a,_0x54c6fe,_0x19585d,_0x4fbeb1));this[_0x3f8faf(0x4c8)]=_0x420489,this[_0x3f8faf(0x46a)]=_0xd774cf;}[_0x786505(0x16f)](){const _0x57e6fd=_0x786505;this[_0x57e6fd(0x210)]();const {scene:_0x3f1aa2,mainComponent:_0x52903b}=this['_context'],_0x2d039c=this[_0x57e6fd(0x47f)]['getSkeleton'](),_0x13be8f=this[_0x57e6fd(0x46a)][_0x57e6fd(0x2f0)](_0xb6db8c=>new at(_0xb6db8c,_0x3f1aa2,_0x2d039c,_0x52903b));this['_cursorShapes']=_0x13be8f;}[_0x786505(0x210)](){const _0x5d0615=_0x786505;this[_0x5d0615(0x4c8)]['forEach'](_0x5c69e2=>_0x5c69e2[_0x5d0615(0x36f)]()),this[_0x5d0615(0x4c8)]=[];}[_0x786505(0x204)](){const _0x4990f4=_0x786505,_0xbc8b50=[U[_0x4990f4(0x41a)]['id']];this[_0x4990f4(0x364)](this[_0x4990f4(0x23c)][_0x4990f4(0x4a0)](_0x3131b2=>{const _0x11732f=_0x4990f4;_0xbc8b50[_0x11732f(0x4ea)](_0x3131b2['id'])&&_0x3131b2[_0x11732f(0x33e)]['unitId']===this[_0x11732f(0x4d6)][_0x11732f(0x1e9)]&&this[_0x11732f(0x16f)]();}));}[_0x786505(0x51f)](){const _0x214525=_0x786505;this[_0x214525(0x364)](a[_0x214525(0x491)](this[_0x214525(0x4d6)]['engine'][_0x214525(0x1d1)])[_0x214525(0x33c)](E[_0x214525(0x3a7)](_0x5f9362=>_0x5f9362[_0x214525(0x39b)]===R[_0x214525(0x182)]['resize']),E[_0x214525(0x4b7)](0x10))[_0x214525(0x369)](()=>{const _0x4b898d=_0x214525;this[_0x4b898d(0x16f)]();}));}};me=Ki([a[_0x786505(0x234)](a[_0x786505(0x3e3)]['Steady'],me),de(0x1,a[_0x786505(0x449)](B['DocSkeletonManagerService'])),de(0x2,a[_0x786505(0x449)](te)),de(0x3,a[_0x786505(0x368)]),de(0x4,a[_0x786505(0x449)](a[_0x786505(0x1ff)]))],me);var Xi=Object[_0x786505(0x36b)],qi=Object[_0x786505(0x1b8)],Ji=(_0x19677d,_0x217e61,_0x3e4fd6,_0x176987)=>{const _0x24b488=_0x786505;for(var _0x57cc62=_0x176987>0x1?void 0x0:_0x176987?qi(_0x217e61,_0x3e4fd6):_0x217e61,_0x5f5d7a=_0x19677d[_0x24b488(0x31e)]-0x1,_0x5d5baa;_0x5f5d7a>=0x0;_0x5f5d7a--)(_0x5d5baa=_0x19677d[_0x5f5d7a])&&(_0x57cc62=(_0x176987?_0x5d5baa(_0x217e61,_0x3e4fd6,_0x57cc62):_0x5d5baa(_0x57cc62))||_0x57cc62);return _0x176987&&_0x57cc62&&Xi(_0x217e61,_0x3e4fd6,_0x57cc62),_0x57cc62;},Le=(_0x5b6af7,_0x5d71a7)=>(_0x544925,_0x513c62)=>_0x5d71a7(_0x544925,_0x513c62,_0x5b6af7);let Ce=class{constructor(_0x1c7ffe,_0x42d6f7,_0x34bd90){const _0x5cfa12=_0x786505;this[_0x5cfa12(0x48f)]=_0x1c7ffe,this[_0x5cfa12(0x4f9)]=_0x42d6f7,this['localeService']=_0x34bd90,this[_0x5cfa12(0x1cb)]();}[_0x786505(0x1cb)](){const _0x2e02b2=_0x786505;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x1c150d,_0x333fd5)=>_0x333fd5(_0x1c150d)[_0x2e02b2(0x33c)](v[_0x2e02b2(0x314)](async _0x59219a=>{const _0x456b30=_0x2e02b2,_0x158654=_0x59219a;if(_0x158654['status']===0x191&&window[_0x456b30(0x35e)](this[_0x456b30(0x349)]['t'](_0x456b30(0x2ce)))){const _0x4e16e3=window[_0x456b30(0x56c)](window[_0x456b30(0x21f)][_0x456b30(0x306)]);window[_0x456b30(0x21f)][_0x456b30(0x306)]=this[_0x456b30(0x25e)]()+_0x456b30(0x459)+_0x4e16e3;}return _0x158654;}))});}[_0x786505(0x25e)](){const _0x2afbc9=_0x786505;var _0x4b71e4;return(_0x4b71e4=this[_0x2afbc9(0x48f)][_0x2afbc9(0x487)](It))!=null?_0x4b71e4:Qt;}};Ce=Ji([Le(0x0,a[_0x786505(0x2a9)]),Le(0x1,a['Inject'](w['HTTPService'])),Le(0x2,a[_0x786505(0x449)](a['LocaleService']))],Ce);var zi=Object[_0x786505(0x36b)],Zi=Object[_0x786505(0x1b8)],Qi=(_0x59ef2d,_0x4a3bf3,_0x3654e4,_0x55fcb0)=>{for(var _0x27aca3=_0x55fcb0>0x1?void 0x0:_0x55fcb0?Zi(_0x4a3bf3,_0x3654e4):_0x4a3bf3,_0x44a3be=_0x59ef2d['length']-0x1,_0x3df8d1;_0x44a3be>=0x0;_0x44a3be--)(_0x3df8d1=_0x59ef2d[_0x44a3be])&&(_0x27aca3=(_0x55fcb0?_0x3df8d1(_0x4a3bf3,_0x3654e4,_0x27aca3):_0x3df8d1(_0x27aca3))||_0x27aca3);return _0x55fcb0&&_0x27aca3&&zi(_0x4a3bf3,_0x3654e4,_0x27aca3),_0x27aca3;},ct=(_0x38ebc8,_0x3ff743)=>(_0x109e07,_0x1d3852)=>_0x3ff743(_0x109e07,_0x1d3852,_0x38ebc8);const Mt=_0x786505(0x52a),en=_0x786505(0x25b);exports[_0x786505(0x3b2)]=class extends a[_0x786505(0x498)]{constructor(_0x262a51,_0x12ad14){const _0xfb8d3d=_0x786505;super(),this[_0xfb8d3d(0x16c)]=_0x262a51,this[_0xfb8d3d(0x48f)]=_0x12ad14,this[_0xfb8d3d(0x4e5)]();}[_0x786505(0x4e5)](){const _0x5df991=_0x786505,_0x41dd23=this;this[_0x5df991(0x364)](this[_0x5df991(0x16c)][_0x5df991(0x31c)]({'priority':0x3e7,'interceptor':w[_0x5df991(0x427)]({'isMatch'(_0x2495b4){const _0x1d608a=_0x5df991;var _0x4139eb;if(_0x2495b4[_0x1d608a(0x53e)]===_0x1d608a(0x19e)&&((_0x4139eb=_0x2495b4[_0x1d608a(0x1cf)])!=null&&_0x4139eb[_0x1d608a(0x227)])){const {objectID:_0xfbdd5a,objectType:_0x2bbfbd}=_0x2495b4[_0x1d608a(0x1cf)]['body']||{};if(!_0xfbdd5a||_0x2bbfbd===void 0x0)return!0x1;const _0x537833=_0x41dd23['_getAPIPrefixPath']()+'/'+_0x2bbfbd+_0x1d608a(0x29f)+_0xfbdd5a+'/allowed';if(_0x2495b4[_0x1d608a(0x2ae)]===_0x537833)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2f60f0){const _0x145e61=_0x5df991;var _0x51b034;return(_0x51b034=_0x2f60f0[_0x145e61(0x1cf)])==null?void 0x0:_0x51b034[_0x145e61(0x227)];},'mergeParamsToRequest'(_0x2f2a02,_0x18aeb1){const _0x29fbe3=_0x5df991,_0x33ce62=_0x41dd23[_0x29fbe3(0x339)]()+_0x29fbe3(0x2cb),_0x2f1efa=_0x2f2a02[_0x29fbe3(0x167)]((_0x12f004,_0x37b9f8)=>{const _0x2c585b=_0x29fbe3,{unitID:_0x55d5c8,objectID:_0x43f6cb,objectType:_0x2941d2,actions:_0x387773}=_0x37b9f8;return _0x12f004[_0x55d5c8]||(_0x12f004[_0x55d5c8]={}),_0x12f004[_0x55d5c8][_0x43f6cb]||(_0x12f004[_0x55d5c8][_0x43f6cb]={'objectID':_0x43f6cb,'objectType':_0x2941d2,'actions':[]}),_0x12f004[_0x55d5c8][_0x43f6cb][_0x2c585b(0x1e4)][_0x2c585b(0x577)](..._0x387773),_0x12f004;},{}),_0x2553da=[];for(const _0x548ca4 in _0x2f1efa)for(const _0x128e72 in _0x2f1efa[_0x548ca4]){const {actions:_0x547ce6,objectType:_0x1845aa}=_0x2f1efa[_0x548ca4][_0x128e72],_0x337c8c=[...new Set(_0x547ce6)];_0x2553da[_0x29fbe3(0x577)]({'unitID':_0x548ca4,'objectID':_0x128e72,'objectType':_0x1845aa,'actions':_0x337c8c});}return new w[(_0x29fbe3(0x3a5))]('POST',_0x33ce62,{'headers':_0x18aeb1['headers'],'withCredentials':_0x18aeb1[_0x29fbe3(0x509)],'responseType':_0x18aeb1[_0x29fbe3(0x48a)],'body':{'requests':_0x2553da}});}},{'distributeResult'(_0x53fba8,_0x4374c1){const _0x2656c8=_0x5df991,{objectActions:_0x4959bb}=_0x53fba8;return _0x4374c1[_0x2656c8(0x2f0)](_0x28b699=>{const _0x291973=_0x2656c8,{unitID:_0x1d3bdc,objectID:_0x4a37a2,actions:_0x1f4723}=_0x28b699,_0x485088=_0x4959bb[_0x291973(0x4bf)](_0x3c979e=>_0x3c979e['unitID']===_0x1d3bdc&&_0x3c979e[_0x291973(0x50c)]===_0x4a37a2),_0xd9aef8=_0x1f4723[_0x291973(0x2f0)](_0x290372=>_0x485088==null?void 0x0:_0x485088[_0x291973(0x1e4)]['find'](_0x5bbb93=>_0x5bbb93['action']===_0x290372))[_0x291973(0x3a7)](_0x491e36=>!!_0x491e36);return{'config':_0x28b699,'result':{'actions':_0xd9aef8,'error':_0x53fba8[_0x291973(0x3e2)]}};});}})}));}['_getAPIPrefixPath'](){const _0x5dcdf6=_0x786505;var _0x257be3;return(_0x257be3=this[_0x5dcdf6(0x48f)][_0x5dcdf6(0x487)](Mt))!=null?_0x257be3:en;}async[_0x786505(0x305)](_0x2c8630){const _0x5683b9=_0x786505,_0x138b8f=this[_0x5683b9(0x339)]()+'/'+_0x2c8630['objectType']+_0x5683b9(0x24e);return(await this[_0x5683b9(0x16c)]['post'](_0x138b8f,{'body':_0x2c8630}))[_0x5683b9(0x227)][_0x5683b9(0x50c)]||'';}async[_0x786505(0x4ce)](_0x40ac46){const _0xbe595d=_0x786505,_0x1eddd4=this[_0xbe595d(0x339)]()+_0xbe595d(0x3c7);return(await this['_HTTPService'][_0xbe595d(0x2fe)](_0x1eddd4,{'body':_0x40ac46}))[_0xbe595d(0x227)][_0xbe595d(0x397)];}async[_0x786505(0x392)](_0x3a2daf){const _0x48673c=_0x786505,_0x4193fa=this[_0x48673c(0x339)]()+'/'+_0x3a2daf[_0x48673c(0x4e1)]+_0x48673c(0x29f)+_0x3a2daf[_0x48673c(0x50c)];await this[_0x48673c(0x16c)][_0x48673c(0x49f)](_0x4193fa,{'body':_0x3a2daf});}async[_0x786505(0x3d4)](_0x5eda3){const _0x39984a=_0x786505,_0x3c8989=this[_0x39984a(0x339)]()+'/'+_0x5eda3['objectType']+_0x39984a(0x29f)+_0x5eda3[_0x39984a(0x50c)]+_0x39984a(0x1c8);return(await this['_HTTPService'][_0x39984a(0x2fe)](_0x3c8989,{'body':_0x5eda3}))[_0x39984a(0x227)][_0x39984a(0x1e4)];}async[_0x786505(0x551)](_0x27d221){const _0x1efbb4=_0x786505,_0x37fc6c=this[_0x1efbb4(0x339)]()+'/-/object/-/batch_allowed';return(await this[_0x1efbb4(0x16c)][_0x1efbb4(0x2fe)](_0x37fc6c,{'body':{'requests':_0x27d221}}))[_0x1efbb4(0x227)][_0x1efbb4(0x32c)];}async[_0x786505(0x2d2)](_0x2a7bfc){const _0x3630b6=_0x786505,_0x5b62cb=this[_0x3630b6(0x339)]()+'/'+_0x2a7bfc[_0x3630b6(0x4e1)]+_0x3630b6(0x1c3),_0x1223e5=await this['_HTTPService'][_0x3630b6(0x2fe)](_0x5b62cb,{'body':_0x2a7bfc});return{'roles':_0x1223e5[_0x3630b6(0x227)][_0x3630b6(0x341)],'actions':_0x1223e5['body'][_0x3630b6(0x1e4)]};}async[_0x786505(0x486)](_0x1d4038){const _0x5968eb=_0x786505,_0x262f41=this[_0x5968eb(0x339)]()+_0x5968eb(0x419);await this[_0x5968eb(0x16c)][_0x5968eb(0x27c)](_0x262f41,{'params':{'collaboratorID':_0x1d4038[_0x5968eb(0x432)],'objectID':_0x1d4038[_0x5968eb(0x50c)],'unitID':_0x1d4038['unitID']}});}async[_0x786505(0x235)](_0x11a31a){const _0x298730=_0x786505,_0x8b418a=this[_0x298730(0x339)]()+'/collaborator';await this[_0x298730(0x16c)]['patch'](_0x8b418a,{'body':_0x11a31a});}async[_0x786505(0x348)](_0xf1adde){const _0x2ad943=_0x786505,_0x318693=this[_0x2ad943(0x339)]()+_0x2ad943(0x419);await this['_HTTPService'][_0x2ad943(0x2fe)](_0x318693,{'body':_0xf1adde});}async[_0x786505(0x4d1)](_0x43a02c){const _0x50327e=_0x786505,_0x5e9e06=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x50327e(0x16c)][_0x50327e(0x471)](_0x5e9e06,{'params':{'objectID':_0x43a02c[_0x50327e(0x50c)],'unitID':_0x43a02c[_0x50327e(0x1e0)]}}))[_0x50327e(0x227)][_0x50327e(0x1a9)];}async[_0x786505(0x30d)](_0x456b4d){const _0x55a6f4=_0x786505,_0x5cb976=this['_getAPIPrefixPath']()+_0x55a6f4(0x419);await this[_0x55a6f4(0x16c)][_0x55a6f4(0x49f)](_0x5cb976,{'body':_0x456b4d});}},exports[_0x786505(0x3b2)]=Qi([ct(0x0,a[_0x786505(0x449)](w[_0x786505(0x43b)])),ct(0x1,a[_0x786505(0x449)](a['IConfigService']))],exports[_0x786505(0x3b2)]);var tn=Object[_0x786505(0x36b)],sn=Object['getOwnPropertyDescriptor'],nn=(_0x3dc63f,_0xecca8a,_0x470c43,_0x4a968d)=>{const _0x24a895=_0x786505;for(var _0x2e5267=_0x4a968d>0x1?void 0x0:_0x4a968d?sn(_0xecca8a,_0x470c43):_0xecca8a,_0x23b1ce=_0x3dc63f[_0x24a895(0x31e)]-0x1,_0x788c60;_0x23b1ce>=0x0;_0x23b1ce--)(_0x788c60=_0x3dc63f[_0x23b1ce])&&(_0x2e5267=(_0x4a968d?_0x788c60(_0xecca8a,_0x470c43,_0x2e5267):_0x788c60(_0x2e5267))||_0x2e5267);return _0x4a968d&&_0x2e5267&&tn(_0xecca8a,_0x470c43,_0x2e5267),_0x2e5267;},Ae=(_0x158ba3,_0x341dd8)=>(_0x1d65af,_0x37a391)=>_0x341dd8(_0x1d65af,_0x37a391,_0x158ba3);const rn=['image/png',_0x786505(0x33f),'image/jpg',_0x786505(0x2ba),_0x786505(0x3c5)],on=0x5*0x400*0x400,an='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',cn=_0x786505(0x252),ln=_0x786505(0x46b),hn=_0x786505(0x437);exports['ImageIoService']=class{constructor(_0x5542a6,_0x58c75f,_0x41d158){const _0x215808=_0x786505;d(this,_0x215808(0x40f),0x0),d(this,_0x215808(0x45a),new v[(_0x215808(0x246))]()),d(this,_0x215808(0x572),this[_0x215808(0x45a)]),d(this,_0x215808(0x1f4),new Map()),(this[_0x215808(0x4f9)]=_0x5542a6,this[_0x215808(0x48f)]=_0x58c75f,this[_0x215808(0x163)]=_0x41d158);}['setWaitCount'](_0x1ce54a){const _0x394f0e=_0x786505;this[_0x394f0e(0x40f)]=_0x1ce54a,this[_0x394f0e(0x45a)]['next'](_0x1ce54a);}[_0x786505(0x501)](_0x33b5c7,_0x5ecde5){const _0x45190c=_0x786505;if(_0x5ecde5===L[_0x45190c(0x359)][_0x45190c(0x3d2)]){const _0x2d78ba=new Image();return _0x2d78ba[_0x45190c(0x2b2)]=_0x33b5c7,_0x2d78ba;}return this[_0x45190c(0x1f4)][_0x45190c(0x471)](_0x33b5c7);}['addImageSourceCache'](_0x1a2791,_0x140440,_0x4582ab){const _0x497198=_0x786505;_0x140440===L[_0x497198(0x359)]['BASE64']||_0x4582ab==null||this[_0x497198(0x1f4)]['set'](_0x1a2791,_0x4582ab);}async[_0x786505(0x3af)](_0x2dc61d){const _0x2786d6=_0x786505;try{const _0x109f62=this[_0x2786d6(0x2e1)](this[_0x2786d6(0x290)](),''+_0x2dc61d),_0x17b6ae=(await this[_0x2786d6(0x4f9)][_0x2786d6(0x471)](_0x109f62))[_0x2786d6(0x227)];return _0x17b6ae[_0x2786d6(0x3e2)]&&_0x17b6ae['error'][_0x2786d6(0x46d)]===pt['OK']?Promise[_0x2786d6(0x2b4)](_0x17b6ae['url']):Promise[_0x2786d6(0x47c)](_0x17b6ae['error']);}catch(_0x1d4c3a){return Promise[_0x2786d6(0x47c)](_0x1d4c3a);}}async[_0x786505(0x183)](_0x1913a6){const _0x433128=_0x786505;let _0x58540a='';if(!rn[_0x433128(0x4ea)](_0x1913a6[_0x433128(0x39b)]))return this[_0x433128(0x1e7)](),Promise[_0x433128(0x47c)](new Error(L['ImageUploadStatusType'][_0x433128(0x38b)]));if(_0x1913a6[_0x433128(0x200)]>on)return this[_0x433128(0x1e7)](),Promise[_0x433128(0x47c)](new Error(L[_0x433128(0x468)][_0x433128(0x2de)]));try{const _0x33957e=new FormData();_0x33957e[_0x433128(0x298)](_0x433128(0x2fd),_0x1913a6);const _0x1d8968=this[_0x433128(0x163)][_0x433128(0x387)](),_0x40c327=_0x1d8968==null?void 0x0:_0x1d8968[_0x433128(0x3b6)]();if(!_0x40c327)throw new Error('unitId\x20is\x20not\x20found');const _0x11265a=this['_getUploadFileURL']()+_0x433128(0x259)+_0x1913a6[_0x433128(0x200)][_0x433128(0x294)]()+_0x433128(0x26c)+Ct[_0x433128(0x3cb)]+_0x433128(0x452)+encodeURIComponent(_0x40c327),_0x1db522=await(await fetch(_0x11265a,{'method':_0x433128(0x19e),'body':_0x33957e}))[_0x433128(0x38c)]();if(typeof _0x1db522[_0x433128(0x2dc)]!=_0x433128(0x382))return this[_0x433128(0x1e7)](),Promise['reject'](new Error(L[_0x433128(0x468)][_0x433128(0x307)]));_0x58540a=_0x1db522[_0x433128(0x2dc)];}catch{return this[_0x433128(0x1e7)](),Promise['reject'](new Error(L[_0x433128(0x468)]['ERROR_IMAGE']));}return new Promise((_0xf2bc46,_0x108298)=>{const _0x5af215=_0x433128,_0x345226=new FileReader();_0x345226[_0x5af215(0x465)](_0x1913a6),_0x345226[_0x5af215(0x559)]=_0x4a898e=>{const _0xed61c6=_0x5af215;var _0x19ffe3;const _0x52e820=(_0x19ffe3=_0x4a898e[_0xed61c6(0x48c)])==null?void 0x0:_0x19ffe3[_0xed61c6(0x2f6)];if(_0x52e820==null){this['_decreaseWaiting'](),_0x108298(new Error(L[_0xed61c6(0x468)][_0xed61c6(0x307)]));return;}const _0x1c1e98=a[_0xed61c6(0x3f9)][_0xed61c6(0x431)](0x6);_0xf2bc46({'imageId':_0x1c1e98,'imageSourceType':L[_0xed61c6(0x359)][_0xed61c6(0x1f0)],'source':_0x58540a,'base64Cache':_0x52e820,'status':L[_0xed61c6(0x468)]['SUCCUSS']}),this[_0xed61c6(0x1e7)]();};});}[_0x786505(0x267)](){const _0x552273=_0x786505;var _0x2bbbd4;return(_0x2bbbd4=this[_0x552273(0x48f)][_0x552273(0x487)](an))!=null?_0x2bbbd4:cn;}[_0x786505(0x290)](){const _0x41fad6=_0x786505;var _0x5c5c32;return(_0x5c5c32=this['_configService'][_0x41fad6(0x487)](ln))!=null?_0x5c5c32:hn;}[_0x786505(0x2e1)](_0x1688f5,_0x116452){const _0xc15eca=_0x786505;return _0x1688f5[_0xc15eca(0x535)](_0xc15eca(0x31d),_0x116452);}[_0x786505(0x1e7)](){const _0x285239=_0x786505;this[_0x285239(0x40f)]-=0x1,this[_0x285239(0x45a)]['next'](this[_0x285239(0x40f)]);}},exports[_0x786505(0x272)]=nn([Ae(0x0,a[_0x786505(0x449)](w[_0x786505(0x43b)])),Ae(0x1,a['IConfigService']),Ae(0x2,a['Inject'](a[_0x786505(0x244)]))],exports[_0x786505(0x272)]);var _n=Object[_0x786505(0x36b)],un=Object[_0x786505(0x1b8)],dn=(_0x5bade0,_0x2739bf,_0x1f02c5,_0x18ea63)=>{const _0xaa4b1b=_0x786505;for(var _0x55e4cf=_0x18ea63>0x1?void 0x0:_0x18ea63?un(_0x2739bf,_0x1f02c5):_0x2739bf,_0x37f118=_0x5bade0[_0xaa4b1b(0x31e)]-0x1,_0x46b647;_0x37f118>=0x0;_0x37f118--)(_0x46b647=_0x5bade0[_0x37f118])&&(_0x55e4cf=(_0x18ea63?_0x46b647(_0x2739bf,_0x1f02c5,_0x55e4cf):_0x46b647(_0x55e4cf))||_0x55e4cf);return _0x18ea63&&_0x55e4cf&&_n(_0x2739bf,_0x1f02c5,_0x55e4cf),_0x55e4cf;},he=(_0x2f1532,_0xe76745)=>(_0x1743df,_0x21bf78)=>_0xe76745(_0x1743df,_0x21bf78,_0x2f1532);let fe=class extends a['RxDisposable']{constructor(_0x391bf3,_0x4c3212,_0x4b7e4b,_0x34eb45,_0x2d24ba){const _0x38b416=_0x786505;super(),this[_0x38b416(0x1c7)]=_0x391bf3,this[_0x38b416(0x163)]=_0x4c3212,this['_permissionService']=_0x4b7e4b,this[_0x38b416(0x46e)]=_0x34eb45,this[_0x38b416(0x336)]=_0x2d24ba,this[_0x38b416(0x2e6)](),this[_0x38b416(0x1be)]();}[_0x786505(0x1be)](){const _0x59c378=_0x786505,_0x48ae75=async _0x533103=>{const _0x2a582d=_0x4876;(await this[_0x2a582d(0x46e)]['requireSession'](_0x533103))[_0x2a582d(0x34c)]['pipe'](E[_0x2a582d(0x3a7)](_0x17aa04=>_0x17aa04[_0x2a582d(0x1b2)]===_[_0x2a582d(0x3f5)][_0x2a582d(0x527)]),E['takeUntil'](this['dispose$']))['subscribe'](_0xacf5b5=>{const _0x22d413=_0x2a582d,_0x4a9ace=_0xacf5b5,{reason:_0x1e5767}=_0x4a9ace[_0x22d413(0x521)];this[_0x22d413(0x1c7)]['get'](M[_0x22d413(0x578)])[_0x22d413(0x4fc)]({'type':K[_0x22d413(0x4f6)][_0x22d413(0x2c5)],'content':this[_0x22d413(0x336)]['t'](_0x22d413(0x2af))+'('+_0x1e5767+')'}),this[_0x22d413(0x3ab)][_0x22d413(0x43d)](new C[(_0x22d413(0x21e))](_0x533103)['id'],!0x1),this[_0x22d413(0x46e)][_0x22d413(0x1d3)](_0x533103);});};v[_0x59c378(0x415)](this[_0x59c378(0x163)][_0x59c378(0x43e)](a[_0x59c378(0x3fc)][_0x59c378(0x4ac)]),this[_0x59c378(0x163)][_0x59c378(0x43e)](a[_0x59c378(0x3fc)][_0x59c378(0x170)]))[_0x59c378(0x33c)](E[_0x59c378(0x2f0)](_0x2782b7=>_0x2782b7[_0x59c378(0x3b6)]()),E[_0x59c378(0x3a7)](_0x18f04b=>!a[_0x59c378(0x2eb)](_0x18f04b)),E[_0x59c378(0x15b)](this[_0x59c378(0x225)]))[_0x59c378(0x369)](_0x42d4f9=>{_0x48ae75(_0x42d4f9);});}[_0x786505(0x2e6)](){const _0x30c7de=_0x786505,_0x3e7f03=async _0x2c4793=>{const _0x33efae=_0x4876;(await this['_collaborationSessionService'][_0x33efae(0x54d)](_0x2c4793))[_0x33efae(0x34c)][_0x33efae(0x33c)](E[_0x33efae(0x3a7)](_0xda0458=>_0xda0458['eventID']===_[_0x33efae(0x3f5)][_0x33efae(0x190)]),E[_0x33efae(0x15b)](this['dispose$']))[_0x33efae(0x369)](_0x188325=>{const _0x3094c7=_0x33efae,_0xde9b2a=_0x188325,{objectId:_0x131cd2}=_0xde9b2a[_0x3094c7(0x521)],_0x3abb50=this[_0x3094c7(0x1c7)]['get'](ee[_0x3094c7(0x44d)]);_0x131cd2===_0x2c4793?_0x3abb50[_0x3094c7(0x38e)](_0x2c4793):_0x3abb50[_0x3094c7(0x226)](_0x2c4793,_0x131cd2);});};v[_0x30c7de(0x415)](this[_0x30c7de(0x163)][_0x30c7de(0x43e)](a[_0x30c7de(0x3fc)][_0x30c7de(0x4ac)]),this[_0x30c7de(0x163)][_0x30c7de(0x43e)](a[_0x30c7de(0x3fc)][_0x30c7de(0x170)]))[_0x30c7de(0x33c)](E[_0x30c7de(0x2f0)](_0x4c8e08=>_0x4c8e08['getUnitId']()),E[_0x30c7de(0x3a7)](_0x21f47d=>!a[_0x30c7de(0x2eb)](_0x21f47d)),E[_0x30c7de(0x15b)](this[_0x30c7de(0x225)]))['subscribe'](_0x5598bb=>{_0x3e7f03(_0x5598bb);});}};fe=dn([a[_0x786505(0x234)](a[_0x786505(0x3e3)][_0x786505(0x23b)],fe),he(0x0,a[_0x786505(0x449)](a['Injector'])),he(0x1,a[_0x786505(0x244)]),he(0x2,a[_0x786505(0x2e7)]),he(0x3,a['Inject'](exports[_0x786505(0x321)])),he(0x4,a[_0x786505(0x449)](a[_0x786505(0x4a1)]))],fe);const Sn='collaboration-client.config';var Lt=Object[_0x786505(0x36b)],vn=Object[_0x786505(0x1b8)],mn=(_0x3e7486,_0x3b1872,_0x229179)=>_0x3b1872 in _0x3e7486?Lt(_0x3e7486,_0x3b1872,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x229179}):_0x3e7486[_0x3b1872]=_0x229179,fn=(_0x4ca011,_0x4939ec,_0x40ba1c,_0x55174f)=>{const _0x2bc97e=_0x786505;for(var _0x2b3787=_0x55174f>0x1?void 0x0:_0x55174f?vn(_0x4939ec,_0x40ba1c):_0x4939ec,_0x3af5dd=_0x4ca011[_0x2bc97e(0x31e)]-0x1,_0x5d506d;_0x3af5dd>=0x0;_0x3af5dd--)(_0x5d506d=_0x4ca011[_0x3af5dd])&&(_0x2b3787=(_0x55174f?_0x5d506d(_0x4939ec,_0x40ba1c,_0x2b3787):_0x5d506d(_0x2b3787))||_0x2b3787);return _0x55174f&&_0x2b3787&&Lt(_0x4939ec,_0x40ba1c,_0x2b3787),_0x2b3787;},Se=(_0x5a6405,_0x5ceec0)=>(_0x47401a,_0x1da018)=>_0x5ceec0(_0x47401a,_0x1da018,_0x5a6405),gn=(_0x2705a7,_0x2bf00c,_0x4e7ee1)=>mn(_0x2705a7,_0x2bf00c+'',_0x4e7ee1);const In=_0x786505(0x353);exports['UniverCollaborationClientPlugin']=class extends a[_0x786505(0x291)]{constructor(_0x5d93d6={},_0x48a6fe,_0x20985d,_0x5020fa,_0x1abdd1){const _0xa41a5=_0x786505;super(),this['_config']=_0x5d93d6,this[_0xa41a5(0x26f)]=_0x48a6fe,this['_renderManagerService']=_0x20985d,this[_0xa41a5(0x1c7)]=_0x5020fa,this[_0xa41a5(0x48f)]=_0x1abdd1;const {..._0x45dfa0}=this[_0xa41a5(0x346)];this[_0xa41a5(0x48f)][_0xa41a5(0x2d8)](Sn,_0x45dfa0);}[_0x786505(0x203)](){this['_registerDependencies']();}['onRendered'](){const _0x12ef49=_0x786505;this[_0x12ef49(0x18f)]();}[_0x786505(0x2e2)](){const _0x21c728=_0x786505;var _0x214eee,_0x1016d0,_0x3c9300,_0xcef852;this[_0x21c728(0x1c7)][_0x21c728(0x479)](a[_0x21c728(0x552)])&&this[_0x21c728(0x26f)][_0x21c728(0x3e2)](_0x21c728(0x4a4),_0x21c728(0x536));let _0x59df8a=[[a[_0x21c728(0x552)],{'useClass':xe}],[exports['CollaborationSessionService']],[Ke],[w[_0x21c728(0x43b)]],[qe,{'useClass':Nt}],[X],[exports[_0x21c728(0x37f)]],[w[_0x21c728(0x292)]],[Ie],[pe],[ge],[Ge],[Ce],[We],[fe],[Fe,{'useClass':(_0x1016d0=(_0x214eee=this[_0x21c728(0x346)])==null?void 0x0:_0x214eee[_0x21c728(0x192)])!=null?_0x1016d0:exports['CollaborationSocketService']}],[w['IHTTPImplementation'],{'useClass':w['XHRHTTPImplementation']}],[_[_0x21c728(0x33b)],{'useClass':exports[_0x21c728(0x15f)]}],[a[_0x21c728(0x474)],{'useClass':exports[_0x21c728(0x3b2)]}],[L['IImageIoService'],{'useClass':exports[_0x21c728(0x272)]}],[exports[_0x21c728(0x1b5)]],[exports[_0x21c728(0x4a8)]],[exports[_0x21c728(0x4f1)]],[ve],[te]];(_0x3c9300=this[_0x21c728(0x346)])!=null&&_0x3c9300[_0x21c728(0x550)]&&_0x59df8a['push']([Ee,{'useClass':Os}]),_0x59df8a=a[_0x21c728(0x438)](_0x59df8a,(_0xcef852=this[_0x21c728(0x346)])==null?void 0x0:_0xcef852[_0x21c728(0x530)]),_0x59df8a[_0x21c728(0x476)](_0xebb227=>this[_0x21c728(0x1c7)][_0x21c728(0x1a1)](_0xebb227)),this[_0x21c728(0x251)]();}[_0x786505(0x18f)](){const _0x332780=_0x786505;this[_0x332780(0x364)](this[_0x332780(0x1ed)][_0x332780(0x23a)](a[_0x332780(0x3fc)]['UNIVER_DOC'],[me])),this[_0x332780(0x364)](this[_0x332780(0x1ed)][_0x332780(0x23a)](a[_0x332780(0x3fc)]['UNIVER_SHEET'],[He]));}[_0x786505(0x251)](){const _0x4f20ce=_0x786505;var _0x4d5c17,_0x412709;this['_injector']['get'](w[_0x4f20ce(0x43b)])[_0x4f20ce(0x31c)]({'priority':0x14,'interceptor':w[_0x4f20ce(0x1ce)]({'maxParallel':0x6})}),(_0x4d5c17=this[_0x4f20ce(0x346)])!=null&&_0x4d5c17[_0x4f20ce(0x52f)]||this['_injector'][_0x4f20ce(0x471)](exports[_0x4f20ce(0x37f)])['disableLocalCache'](),(_0x412709=this[_0x4f20ce(0x346)])!=null&&_0x412709[_0x4f20ce(0x3fe)]&&this[_0x4f20ce(0x1c7)][_0x4f20ce(0x471)](Ce),this['_injector']['get'](exports['CollaborationController']),this[_0x4f20ce(0x1c7)]['has'](exports[_0x4f20ce(0x4f1)])&&this[_0x4f20ce(0x1c7)][_0x4f20ce(0x471)](exports[_0x4f20ce(0x4f1)]);}},gn(exports[_0x786505(0x331)],'pluginName',In),exports[_0x786505(0x331)]=fn([a['DependentOn'](_[_0x786505(0x444)]),Se(0x1,a[_0x786505(0x435)]),Se(0x2,R[_0x786505(0x50a)]),Se(0x3,a['Inject'](a[_0x786505(0x430)])),Se(0x4,a[_0x786505(0x2a9)])],exports[_0x786505(0x331)]),exports['AUTHZ_URL_KEY']=Mt,exports[_0x786505(0x35c)]=gt,exports[_0x786505(0x2cf)]=ut,exports['CollaborationStatus']=y,exports[_0x786505(0x40d)]=Ut,exports[_0x786505(0x1b0)]=We,exports[_0x786505(0x3a6)]=dt,exports[_0x786505(0x455)]=Be,exports[_0x786505(0x383)]=Fe,exports['IURLService']=qe,exports[_0x786505(0x354)]=ft,exports[_0x786505(0x2a4)]=It,exports[_0x786505(0x553)]=vt,exports[_0x786505(0x265)]=mt,exports['SEND_CHANGESET_TIMEOUT_KEY']=_t,exports[_0x786505(0x4e0)]=lt,exports['SNAPSHOT_URL_KEY']=ht,exports[_0x786505(0x1db)]=j,exports['SheetCollabCursorShape']=Dt,exports[_0x786505(0x36d)]=Nt,exports['deserializeToCombResponse']=Et,exports[_0x786505(0x555)]=bt;