@univerjs-pro/collaboration-client 0.1.12 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/locale/en-US.json +32 -0
- package/lib/locale/ru-RU.json +32 -0
- package/lib/locale/zh-CN.json +32 -0
- package/lib/types/config/config.d.ts +44 -0
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +3 -3
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +2 -2
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +17 -12
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +5 -5
- package/lib/types/index.d.ts +6 -8
- package/lib/types/locale/ru-RU.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +4 -0
- package/lib/types/plugin.d.ts +4 -4
- package/lib/types/services/auth-server/auth-server.service.d.ts +0 -4
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +29 -0
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -7
- package/lib/types/services/image-remote/image-io.service.d.ts +31 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +0 -5
- package/lib/types/services/member/member.service.d.ts +9 -3
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +2 -6
- package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +49 -32
- package/lib/types/locale/index.d.ts +0 -2
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x147aa9=_0x5bd1;(function(_0x1abd81,_0x289f83){const _0x414865=_0x5bd1,_0x3e7434=_0x1abd81();while(!![]){try{const _0x48ba20=parseInt(_0x414865(0x4c2))/0x1+-parseInt(_0x414865(0x363))/0x2*(parseInt(_0x414865(0x43a))/0x3)+parseInt(_0x414865(0x2a3))/0x4*(parseInt(_0x414865(0x455))/0x5)+parseInt(_0x414865(0x339))/0x6+parseInt(_0x414865(0x406))/0x7*(-parseInt(_0x414865(0x1fc))/0x8)+-parseInt(_0x414865(0x1fa))/0x9+-parseInt(_0x414865(0x2c3))/0xa;if(_0x48ba20===_0x289f83)break;else _0x3e7434['push'](_0x3e7434['shift']());}catch(_0x27e17a){_0x3e7434['push'](_0x3e7434['shift']());}}}(_0x35f8,0xbb3f6));var Mt=Object[_0x147aa9(0x451)],wt=(_0x2dc1da,_0x2ba325,_0x211787)=>_0x2ba325 in _0x2dc1da?Mt(_0x2dc1da,_0x2ba325,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x211787}):_0x2dc1da[_0x2ba325]=_0x211787,d=(_0x490468,_0x4e0433,_0x871621)=>(wt(_0x490468,typeof _0x4e0433!=_0x147aa9(0x422)?_0x4e0433+'':_0x4e0433,_0x871621),_0x871621);Object[_0x147aa9(0x451)](exports,Symbol[_0x147aa9(0x349)],{'value':_0x147aa9(0x273)});const a=require(_0x147aa9(0x4c4)),ae=require('@univerjs/design'),N=require('@univerjs/ui'),_=require(_0x147aa9(0x355)),h=require('@wendellhu/redi'),v=require(_0x147aa9(0x45f)),T=require('rxjs/operators'),U=require(_0x147aa9(0x495)),A=require(_0x147aa9(0x454)),p=require(_0x147aa9(0x207)),Ge=require(_0x147aa9(0x33d)),je=require(_0x147aa9(0x2b9)),R=require(_0x147aa9(0x2f5)),oe=require('@univerjs/sheets-ui'),it=require(_0x147aa9(0x2b2)),M=require(_0x147aa9(0x33c)),Lt=require('clsx'),Ut=require(_0x147aa9(0x436));var k=(_0x5be8fe=>(_0x5be8fe[_0x5be8fe[_0x147aa9(0x442)]=0x0]=_0x147aa9(0x442),_0x5be8fe[_0x5be8fe[_0x147aa9(0x374)]=0x1]=_0x147aa9(0x374),_0x5be8fe[_0x5be8fe['UNIVER_SHEET']=0x2]=_0x147aa9(0x2af),_0x5be8fe[_0x5be8fe[_0x147aa9(0x2d7)]=0x3]='UNIVER_SLIDE',_0x5be8fe[_0x5be8fe[_0x147aa9(0x3db)]=-0x1]=_0x147aa9(0x3db),_0x5be8fe))(k||{}),b=(_0x8ae74a=>(_0x8ae74a[_0x8ae74a[_0x147aa9(0x375)]=0x0]=_0x147aa9(0x375),_0x8ae74a[_0x8ae74a[_0x147aa9(0x2a7)]=0x1]=_0x147aa9(0x2a7),_0x8ae74a[_0x8ae74a['JOIN']=0x2]=_0x147aa9(0x458),_0x8ae74a[_0x8ae74a['LEAVE']=0x3]=_0x147aa9(0x3fa),_0x8ae74a[_0x8ae74a[_0x147aa9(0x217)]=0x4]='INGEST',_0x8ae74a[_0x8ae74a[_0x147aa9(0x482)]=0x5]=_0x147aa9(0x482),_0x8ae74a[_0x8ae74a[_0x147aa9(0x181)]=0x6]=_0x147aa9(0x181),_0x8ae74a[_0x8ae74a['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x8ae74a))(b||{}),Pe=(_0x272fa0=>(_0x272fa0[_0x272fa0[_0x147aa9(0x434)]=0x0]=_0x147aa9(0x434),_0x272fa0[_0x272fa0['OK']=0x1]='OK',_0x272fa0[_0x272fa0[_0x147aa9(0x3c3)]=0x2]=_0x147aa9(0x3c3),_0x272fa0[_0x272fa0[_0x147aa9(0x3db)]=-0x1]=_0x147aa9(0x3db),_0x272fa0))(Pe||{}),Nt=(_0x4ab877,_0x3f1cf7,_0x3e5d8c,_0x5ea778)=>{const _0x4de3f4=_0x147aa9;for(var _0x5ef9c6=_0x3f1cf7,_0x132b85=_0x4ab877[_0x4de3f4(0x3f5)]-0x1,_0x5ec20b;_0x132b85>=0x0;_0x132b85--)(_0x5ec20b=_0x4ab877[_0x132b85])&&(_0x5ef9c6=_0x5ec20b(_0x5ef9c6)||_0x5ef9c6);return _0x5ef9c6;},At=(_0x33af86,_0x2c2a62)=>(_0x57f1a7,_0x504546)=>_0x2c2a62(_0x57f1a7,_0x504546,_0x33af86);let V=class extends a['Disposable']{constructor(_0x503724){const _0x25344d=_0x147aa9;super(),d(this,'_roomMembers',new Map()),d(this,_0x25344d(0x445),null),(this[_0x25344d(0x40c)]=_0x503724,this[_0x25344d(0x305)](a[_0x25344d(0x4b3)](v[_0x25344d(0x258)](this[_0x25344d(0x40c)][_0x25344d(0x263)](a[_0x25344d(0x223)][_0x25344d(0x2af)])[_0x25344d(0x2e4)](T[_0x25344d(0x26d)](_0x27b667=>_0x27b667['getUnitId']())),this['_univerInstanceService'][_0x25344d(0x263)](a[_0x25344d(0x223)]['UNIVER_DOC'])['pipe'](T[_0x25344d(0x26d)](_0x539ed0=>_0x539ed0[_0x25344d(0x483)]())),this[_0x25344d(0x40c)][_0x25344d(0x263)](a[_0x25344d(0x223)][_0x25344d(0x2d7)])[_0x25344d(0x2e4)](T[_0x25344d(0x26d)](_0x522559=>_0x522559['getUnitId']())))[_0x25344d(0x2d2)](_0x1fef8e=>this[_0x25344d(0x358)](_0x1fef8e)))));}[_0x147aa9(0x447)](_0x25d63e){const _0x124314=_0x147aa9;this[_0x124314(0x445)]=_0x25d63e;}[_0x147aa9(0x3bf)](){const _0x2c492e=_0x147aa9;return this[_0x2c492e(0x445)];}[_0x147aa9(0x4bd)](_0x3ac8db,_0x22b906){const _0x5b3143=_0x147aa9;let _0x35ea8e=this[_0x5b3143(0x352)][_0x5b3143(0x1f9)](_0x3ac8db);_0x35ea8e||(_0x35ea8e=new kt(),this[_0x5b3143(0x352)][_0x5b3143(0x2c0)](_0x3ac8db,_0x35ea8e)),_0x35ea8e[_0x5b3143(0x4bd)](_0x22b906);}['removeMember'](_0x22584d,_0x2f2dad){const _0x3244d6=_0x147aa9,_0x50ad54=this[_0x3244d6(0x352)]['get'](_0x22584d);_0x50ad54&&_0x50ad54[_0x3244d6(0x42e)](_0x2f2dad);}[_0x147aa9(0x292)](_0x567344){const _0x38753e=_0x147aa9;return this[_0x38753e(0x352)][_0x38753e(0x1f9)](_0x567344);}[_0x147aa9(0x249)](_0x22d51b,_0x53d8af){const _0x24639f=_0x147aa9,_0x394ad5=this[_0x24639f(0x352)][_0x24639f(0x1f9)](_0x22d51b);if(_0x394ad5)return _0x394ad5[_0x24639f(0x249)](_0x53d8af);}[_0x147aa9(0x358)](_0x3a9675){const _0x472d03=_0x147aa9,_0x8197a4=this[_0x472d03(0x352)][_0x472d03(0x1f9)](_0x3a9675);_0x8197a4&&(_0x8197a4[_0x472d03(0x35b)](),this[_0x472d03(0x352)][_0x472d03(0x392)](_0x3a9675));}[_0x147aa9(0x35b)](){const _0x3fed67=_0x147aa9;this[_0x3fed67(0x352)][_0x3fed67(0x1f0)](_0x30dca1=>_0x30dca1['dispose']()),this[_0x3fed67(0x352)][_0x3fed67(0x1cf)]();}};V=Nt([At(0x0,a['IUniverInstanceService'])],V);class kt extends a[_0x147aa9(0x2a4)]{constructor(){const _0x4d0a6b=_0x147aa9;super(...arguments),d(this,_0x4d0a6b(0x412),new Map());}[_0x147aa9(0x35b)](){const _0x12667c=_0x147aa9;this[_0x12667c(0x412)][_0x12667c(0x1cf)]();}['updateMember'](_0x5c1762){const _0x4d301a=_0x147aa9;this[_0x4d301a(0x412)]['set'](_0x5c1762[_0x4d301a(0x21c)],_0x5c1762);}[_0x147aa9(0x42e)](_0x13e6ee){const _0x3b4fde=_0x147aa9;this[_0x3b4fde(0x412)][_0x3b4fde(0x392)](_0x13e6ee);}['getMember'](_0xb22c06){const _0x325f29=_0x147aa9;return this[_0x325f29(0x412)][_0x325f29(0x1f9)](_0xb22c06);}}function nt(_0x1524ec){const _0x341cf4=_0x147aa9;var _0x59ebd5,_0x598789,_0x3a5a32;const _0x1605cb=_0x1524ec[_0x341cf4(0x233)],_0x54950a=JSON[_0x341cf4(0x4cd)](_0x1605cb);switch(_0x54950a[_0x341cf4(0x3ac)]){case b['HEARTBEAT']:case b['HELLO']:{const _0x2fffb1=_0x54950a[_0x341cf4(0x28d)];return{..._0x54950a,'data':_0x2fffb1,'cmd':_0x54950a[_0x341cf4(0x3ac)]};}case b[_0x341cf4(0x458)]:{const _0xe3a7ef=_0x54950a['joinRsp'];return{..._0x54950a,'data':_0xe3a7ef,'cmd':_0x54950a[_0x341cf4(0x3ac)]};}case b[_0x341cf4(0x181)]:{const _0x27db28=_0x54950a[_0x341cf4(0x350)];switch(_0x27db28[_0x341cf4(0x450)]){case _[_0x341cf4(0x2dd)][_0x341cf4(0x3d5)]:return{..._0x54950a,'data':{..._0x27db28,'data':(_0x59ebd5=_0x27db28[_0x341cf4(0x4a9)])==null?void 0x0:_0x59ebd5['cs']},'cmd':_0x54950a['cmd']};case _[_0x341cf4(0x2dd)][_0x341cf4(0x276)]:return{..._0x54950a,'data':{..._0x27db28,'data':(_0x598789=_0x27db28['newCsEvent'])==null?void 0x0:_0x598789['cs']},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)]['CHANGESET_REJ']:return{..._0x54950a,'data':{..._0x27db28,'data':(_0x3a5a32=_0x27db28[_0x341cf4(0x393)])==null?void 0x0:_0x3a5a32['cs']},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)][_0x341cf4(0x47e)]:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28[_0x341cf4(0x1ae)]},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)][_0x341cf4(0x476)]:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28[_0x341cf4(0x30c)]},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)][_0x341cf4(0x24f)]:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28[_0x341cf4(0x34e)]},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)]['LIVESHARE_NEW_HOST']:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28[_0x341cf4(0x42c)]},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)][_0x341cf4(0x35c)]:case _[_0x341cf4(0x2dd)]['LIVESHARE_OPERATION']:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28['liveShareOperation']},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)]['LIVESHARE_TERMINATE']:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28[_0x341cf4(0x42c)]},'cmd':_0x54950a['cmd']};case _[_0x341cf4(0x2dd)][_0x341cf4(0x26a)]:return{..._0x54950a,'data':_0x27db28,'cmd':_0x54950a[_0x341cf4(0x3ac)]};default:return _0x54950a;}}default:return _0x54950a;}}function rt(_0x576627){const _0x38fd8b=_0x147aa9;switch(_0x576627[_0x38fd8b(0x3ac)]){case b['HEARTBEAT']:case b[_0x38fd8b(0x2a7)]:return JSON[_0x38fd8b(0x2e6)]({'cmd':_0x576627[_0x38fd8b(0x3ac)],'routeKey':_0x576627[_0x38fd8b(0x3df)]});case b[_0x38fd8b(0x217)]:{let _0x54eadf;switch(_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x450)]){case _[_0x38fd8b(0x2dd)][_0x38fd8b(0x47e)]:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)]['UPDATE_CURSOR'],'updateCursorEvent':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x233)]};break;}case _[_0x38fd8b(0x2dd)][_0x38fd8b(0x24f)]:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)][_0x38fd8b(0x24f)],'leaveEvent':_0x576627['data']['data']};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)][_0x38fd8b(0x476)],'joinEvent':_0x576627[_0x38fd8b(0x233)]['data']};break;}case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)][_0x38fd8b(0x2c9)],'liveShareNewHost':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x233)]};break;}case _[_0x38fd8b(0x2dd)][_0x38fd8b(0x3c0)]:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x233)]};break;}case _['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x54eadf={'eventID':_['CollaborationEvent'][_0x38fd8b(0x1c9)],'liveShareTerminate':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x233)]};break;}case _['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)][_0x38fd8b(0x1ac)],'liveShareRequestHost':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x233)]};break;}case _['CollaborationEvent'][_0x38fd8b(0x35c)]:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)][_0x38fd8b(0x35c)]};break;}default:_0x54eadf={'eventID':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x450)]};}return JSON[_0x38fd8b(0x2e6)]({'cmd':_0x576627[_0x38fd8b(0x3ac)],'routeKey':_0x576627[_0x38fd8b(0x3df)],'collaMsg':_0x54eadf});}case b[_0x38fd8b(0x458)]:return JSON[_0x38fd8b(0x2e6)]({'cmd':_0x576627[_0x38fd8b(0x3ac)],'routeKey':_0x576627['routeKey'],'joinReq':_0x576627[_0x38fd8b(0x233)]});case b['LEAVE']:return JSON[_0x38fd8b(0x2e6)]({'cmd':_0x576627[_0x38fd8b(0x3ac)],'routeKey':_0x576627[_0x38fd8b(0x3df)],'leaveReq':_0x576627[_0x38fd8b(0x233)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var $t=(_0x4e820d,_0x3857b1,_0x30f333,_0x34ca40)=>{const _0x2e46f6=_0x147aa9;for(var _0x4c169f=_0x3857b1,_0x2de358=_0x4e820d[_0x2e46f6(0x3f5)]-0x1,_0x344dea;_0x2de358>=0x0;_0x2de358--)(_0x344dea=_0x4e820d[_0x2de358])&&(_0x4c169f=_0x344dea(_0x4c169f)||_0x4c169f);return _0x4c169f;},ee=(_0x496f85,_0x3b3d17)=>(_0x2f4235,_0x130639)=>_0x3b3d17(_0x2f4235,_0x130639,_0x496f85);const xe=h[_0x147aa9(0x311)](_0x147aa9(0x45a)),ot='COLLAB_SUBMIT_CHANGESET_URL',jt=_0x147aa9(0x174);function Pt(_0x3adc29,_0x1a8815,_0x5421e6){const _0x590fcf=_0x147aa9;return _0x3adc29+'/'+_0x1a8815+_0x590fcf(0x3e8)+_0x5421e6+_0x590fcf(0x4c0);}exports[_0x147aa9(0x2b3)]=class{constructor(_0x178137,_0x490b50,_0x17617f,_0x36cfe7,_0x12fe43){const _0xaa693b=_0x147aa9;this[_0xaa693b(0x38a)]=_0x178137,this[_0xaa693b(0x25c)]=_0x490b50,this['_configService']=_0x17617f,this[_0xaa693b(0x17c)]=_0x36cfe7,this[_0xaa693b(0x3b6)]=_0x12fe43;}[_0x147aa9(0x1bb)](_0x1901e2){const _0x27dc4a=_0x147aa9,_0x32e09b=this['_ws'][_0x27dc4a(0x1bb)](_0x1901e2);if(!_0x32e09b)throw new Error(_0x27dc4a(0x225));const _0x2484eb=new a[(_0x27dc4a(0x230))](),_0x48c680=new v[(_0x27dc4a(0x43c))]();_0x2484eb[_0x27dc4a(0x3c1)](a[_0x27dc4a(0x4b3)](_0x32e09b[_0x27dc4a(0x1f1)][_0x27dc4a(0x2d2)](_0x102dea=>_0x48c680['next'](_0x102dea)))),_0x2484eb[_0x27dc4a(0x3c1)](a[_0x27dc4a(0x4b3)](()=>_0x48c680['complete']()));const _0x53d986=new v['Subject']();_0x2484eb[_0x27dc4a(0x3c1)](a[_0x27dc4a(0x4b3)](_0x32e09b[_0x27dc4a(0x268)][_0x27dc4a(0x2d2)](_0x360fae=>_0x53d986[_0x27dc4a(0x20f)](_0x360fae)))),_0x2484eb[_0x27dc4a(0x3c1)](a[_0x27dc4a(0x4b3)](()=>_0x53d986[_0x27dc4a(0x1d7)]()));const _0x5d9a2c=new v[(_0x27dc4a(0x43c))]();_0x2484eb['add'](a[_0x27dc4a(0x4b3)](_0x32e09b[_0x27dc4a(0x3a7)][_0x27dc4a(0x2d2)](_0x5150ae=>{const _0x1f5da0=nt(_0x5150ae);_0x5d9a2c['next'](_0x1f5da0);}))),_0x2484eb['add'](a['toDisposable'](()=>_0x5d9a2c[_0x27dc4a(0x1d7)]()));const _0x38e0e1=()=>{const _0xc90a53=_0x27dc4a;_0x53d986[_0xc90a53(0x20f)](new Event(_0xc90a53(0x404))),_0x48c680['next'](new CloseEvent(_0xc90a53(0x404))),_0x3c0c44[_0xc90a53(0x191)]();},_0x3c0c44={'memberID':'','close$':_0x48c680['asObservable'](),'error$':_0x53d986[_0x27dc4a(0x36f)](),'open$':_0x32e09b[_0x27dc4a(0x3d0)],'message$':_0x5d9a2c[_0x27dc4a(0x36f)](),'send':_0x259bfe=>{const _0x292820=_0x27dc4a;if(_0x259bfe[_0x292820(0x3ac)]===b['INGEST']){if(_0x259bfe['data'][_0x292820(0x450)]===_[_0x292820(0x2dd)][_0x292820(0x1ab)]){this[_0x292820(0x3c9)](_0x3c0c44,_0x259bfe[_0x292820(0x233)])[_0x292820(0x2ab)](_0x29de62=>{const _0x4e7153=_0x292820;this[_0x4e7153(0x17c)]['error'](_0x29de62),_0x38e0e1();});return;}if(_0x259bfe[_0x292820(0x233)][_0x292820(0x450)]===_[_0x292820(0x2dd)]['FETCH_MISSING']){const _0x557fa2=_0x259bfe[_0x292820(0x233)];this[_0x292820(0x4b2)](_0x557fa2)[_0x292820(0x41f)](_0x71d274=>{const _0x33ca53=_0x292820;_0x5d9a2c[_0x33ca53(0x20f)]({'cmd':b[_0x33ca53(0x181)],'code':Pe['OK'],'routeKey':_0x557fa2[_0x33ca53(0x233)][_0x33ca53(0x25a)],'routeType':'','data':{'eventID':_[_0x33ca53(0x2dd)][_0x33ca53(0x410)],'data':{'changesets':_0x71d274}}});})[_0x292820(0x2ab)](_0x1304e1=>{const _0x310a30=_0x292820;this[_0x310a30(0x17c)][_0x310a30(0x172)](_0x1304e1),_0x38e0e1();});return;}}_0x32e09b[_0x292820(0x35d)](rt(_0x259bfe));},'close':()=>{const _0x2b224b=_0x27dc4a;_0x32e09b[_0x2b224b(0x191)](),_0x2484eb['dispose']();}};return _0x3c0c44;}async['_submitChangeset'](_0x16b6df,_0x149543){const _0x252717=_0x147aa9;var _0x11740c;const {unitType:_0x3ea3ca,unitID:_0x3c9a41,changeset:_0x145828}=_0x149543[_0x252717(0x233)],_0x3a4d4a={'unitID':_0x3c9a41,'memberID':_0x16b6df[_0x252717(0x21c)],'type':_0x3ea3ca,'changeset':_[_0x252717(0x28b)](_0x145828)},_0xdd42c0=Pt((_0x11740c=this[_0x252717(0x266)][_0x252717(0x262)](ot))!=null?_0x11740c:jt,_0x3ea3ca,_0x3c9a41);try{await this[_0x252717(0x38a)]['post'](_0xdd42c0,{'body':_0x3a4d4a});}catch(_0x59ee89){throw this['_logService'][_0x252717(0x172)](_0x252717(0x255),_0x252717(0x323)),_0x59ee89;}}async['_fetchMissChangesets'](_0x3e4953){const _0x4d5d91=_0x147aa9,{unitID:_0x2d0797,from:_0x3ad09d,to:_0x269b48,unitType:_0x3609d5}=_0x3e4953[_0x4d5d91(0x233)];return(await this[_0x4d5d91(0x3b6)][_0x4d5d91(0x25b)]({'metadata':void 0x0},{'unitID':_0x2d0797,'type':_0x3609d5,'from':_0x3ad09d,'to':_0x269b48}))[_0x4d5d91(0x333)];}},exports[_0x147aa9(0x2b3)]=$t([ee(0x0,h[_0x147aa9(0x23d)](A[_0x147aa9(0x40b)])),ee(0x1,h[_0x147aa9(0x23d)](A[_0x147aa9(0x195)])),ee(0x2,a[_0x147aa9(0x1d5)]),ee(0x3,a[_0x147aa9(0x4be)]),ee(0x4,a[_0x147aa9(0x3a5)])],exports[_0x147aa9(0x2b3)]);var at=(_0x5c504a,_0x215229,_0x1de129,_0x40eeac)=>{const _0x3a0da6=_0x147aa9;for(var _0x4b67ec=_0x215229,_0x4497fd=_0x5c504a[_0x3a0da6(0x3f5)]-0x1,_0x586ce9;_0x4497fd>=0x0;_0x4497fd--)(_0x586ce9=_0x5c504a[_0x4497fd])&&(_0x4b67ec=_0x586ce9(_0x4b67ec)||_0x4b67ec);return _0x4b67ec;},w=(_0x2ca116,_0x32fee5)=>(_0x655a2a,_0x2db11a)=>_0x32fee5(_0x655a2a,_0x2db11a,_0x2ca116),W=(_0x1cb2d6=>(_0x1cb2d6[_0x1cb2d6[_0x147aa9(0x3f8)]=0x0]=_0x147aa9(0x3f8),_0x1cb2d6[_0x1cb2d6[_0x147aa9(0x180)]=0x1]=_0x147aa9(0x180),_0x1cb2d6[_0x1cb2d6['OFFLINE']=0x2]=_0x147aa9(0x253),_0x1cb2d6[_0x1cb2d6['ONLINE']=0x3]=_0x147aa9(0x20a),_0x1cb2d6))(W||{});const ct='COLLAB_WEB_SOCKET_URL',xt=_0x147aa9(0x48f),lt=_0x147aa9(0x212),Ht=0x7530,He=_0x147aa9(0x2b5),ht=0x2710,Bt=_0x147aa9(0x18e),Ft=0x4e20,Wt=_0x147aa9(0x452),Vt=0x3;exports['CollaborationSession']=class extends a['RxDisposable']{constructor(_0x469d5c,_0x2f680a,_0x18a6cd,_0x14fe86,_0x194871,_0x38d89a,_0x4c2195,_0x384b9a){const _0x1a04d0=_0x147aa9;super(),d(this,_0x1a04d0(0x47c),new v[(_0x1a04d0(0x470))](0x0)),d(this,_0x1a04d0(0x2ed),this[_0x1a04d0(0x47c)][_0x1a04d0(0x36f)]()),d(this,_0x1a04d0(0x46b),new v[(_0x1a04d0(0x43c))]()),d(this,'event$',this[_0x1a04d0(0x46b)][_0x1a04d0(0x36f)]()),d(this,_0x1a04d0(0x3d4)),d(this,'_socketMessageSubscription'),d(this,_0x1a04d0(0x1e9)),(this[_0x1a04d0(0x1da)]=_0x469d5c,this[_0x1a04d0(0x17c)]=_0x18a6cd,this[_0x1a04d0(0x473)]=_0x14fe86,this[_0x1a04d0(0x1dd)]=_0x194871,this[_0x1a04d0(0x266)]=_0x38d89a,this[_0x1a04d0(0x1d9)]=_0x4c2195,this[_0x1a04d0(0x293)]=_0x384b9a,_0x2f680a[_0x1a04d0(0x2e4)](T[_0x1a04d0(0x2f7)](this['dispose$']))[_0x1a04d0(0x2d2)](_0xcdd7aa=>{const _0x36dbd7=_0x1a04d0;var _0x4cb361;typeof _0xcdd7aa>'u'||(this[_0x36dbd7(0x3d4)]=_0xcdd7aa,_0xcdd7aa?(this[_0x36dbd7(0x38d)](_0xcdd7aa),this[_0x36dbd7(0x218)]=this[_0x36dbd7(0x3d4)][_0x36dbd7(0x3a7)][_0x36dbd7(0x2d2)](_0x45a9ff=>{const _0x1bf624=_0x36dbd7;_0x45a9ff[_0x1bf624(0x3df)]===this[_0x1bf624(0x1da)]&&this[_0x1bf624(0x4a2)](_0x45a9ff);})):(this['_sessionStatus$'][_0x36dbd7(0x20f)](0x2),(_0x4cb361=this[_0x36dbd7(0x218)])==null||_0x4cb361[_0x36dbd7(0x294)](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x1a04d0(0x1d6)](()=>{const _0x4001d8=_0x1a04d0;var _0x797a1b;(_0x797a1b=this['_socket'])==null||_0x797a1b[_0x4001d8(0x35d)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x4001d8(0x1da)]}});})));}get[_0x147aa9(0x43e)](){const _0x39e159=_0x147aa9;return this[_0x39e159(0x47c)]['getValue']();}[_0x147aa9(0x287)](){const _0xf548b1=_0x147aa9;var _0x530209,_0x36f13e;return(_0x36f13e=(_0x530209=this[_0xf548b1(0x3d4)])==null?void 0x0:_0x530209[_0xf548b1(0x21c)])!=null?_0x36f13e:null;}['dispose'](){const _0x538dcb=_0x147aa9;super[_0x538dcb(0x35b)](),this[_0x538dcb(0x498)][_0x538dcb(0x20f)](),this['dispose$'][_0x538dcb(0x1d7)]();}[_0x147aa9(0x4a2)](_0x513b68){const _0x2a549b=_0x147aa9;_0x513b68[_0x2a549b(0x3ac)]===b[_0x2a549b(0x458)]?this[_0x2a549b(0x41d)](_0x513b68):_0x513b68[_0x2a549b(0x3ac)]===b[_0x2a549b(0x181)]&&this[_0x2a549b(0x1e1)](_0x513b68);}['_joinRoom'](_0x314f05){const _0x22c6d5=_0x147aa9;this['_sessionStatus$']['next'](0x1),_0x314f05[_0x22c6d5(0x35d)]({'cmd':b[_0x22c6d5(0x458)],'routeKey':this[_0x22c6d5(0x1da)],'routeType':'','data':{'rooms':[{'roomID':this[_0x22c6d5(0x1da)]}]}});}[_0x147aa9(0x41d)](_0x494032){const _0x317275=_0x147aa9;var _0x3a1022;if(_0x494032[_0x317275(0x466)]===Pe[_0x317275(0x3c3)]){this[_0x317275(0x1dd)]['show']({'type':ae[_0x317275(0x475)][_0x317275(0x2fd)],'content':this[_0x317275(0x1d9)]['t']('session.room-full')}),this[_0x317275(0x47c)][_0x317275(0x20f)](0x2);return;}this[_0x317275(0x47c)][_0x317275(0x20f)](0x3);const _0x50bd7e=(_0x3a1022=_0x494032['data'][_0x317275(0x407)][this[_0x317275(0x1da)]])==null?void 0x0:_0x3a1022['members'];_0x50bd7e&&_0x50bd7e[_0x317275(0x1f0)](_0x2dfde2=>this[_0x317275(0x293)][_0x317275(0x4bd)](this[_0x317275(0x1da)],_0x2dfde2));}[_0x147aa9(0x1e1)](_0x4cae00){const _0x2697e6=_0x147aa9;try{const _0x29393b=_0x4cae00[_0x2697e6(0x233)];switch(_0x29393b[_0x2697e6(0x450)]){case _[_0x2697e6(0x2dd)]['USERS_ENTER']:this[_0x2697e6(0x1b6)](_0x29393b),this[_0x2697e6(0x46b)][_0x2697e6(0x20f)](_0x29393b);break;case _['CollaborationEvent']['USERS_LEAVE']:this['_onUserLeave'](_0x29393b),this[_0x2697e6(0x46b)][_0x2697e6(0x20f)](_0x29393b);break;case _[_0x2697e6(0x2dd)]['CHANGESET_ACK']:this[_0x2697e6(0x49a)](),this[_0x2697e6(0x46b)][_0x2697e6(0x20f)](_0x29393b);break;case _[_0x2697e6(0x2dd)][_0x2697e6(0x26a)]:this[_0x2697e6(0x17c)]['error'](_0x2697e6(0x277)+JSON[_0x2697e6(0x2e6)](_0x29393b)),this[_0x2697e6(0x46b)][_0x2697e6(0x20f)](_0x29393b);break;default:this['_event$'][_0x2697e6(0x20f)](_0x29393b);}}catch(_0x7f8d78){this[_0x2697e6(0x17c)][_0x2697e6(0x172)](_0x7f8d78,_0x4cae00);}}['_onUserJoin'](_0x4f24d3){const _0x18dcd0=_0x147aa9;this['_memberService'][_0x18dcd0(0x4bd)](this[_0x18dcd0(0x1da)],_0x4f24d3[_0x18dcd0(0x233)]);}['_onUserLeave'](_0x11b146){const _0xaa13df=_0x147aa9;this[_0xaa13df(0x293)]['removeMember'](this[_0xaa13df(0x1da)],_0x11b146[_0xaa13df(0x233)]['memberID']);}async[_0x147aa9(0x35d)](_0x331b7e,_0x62f96){const _0x486c3e=_0x147aa9;if(this[_0x486c3e(0x43e)]!==0x3||!this['_socket'])throw new Error(_0x486c3e(0x22b));try{_0x331b7e[_0x486c3e(0x450)]===_['CollaborationEvent'][_0x486c3e(0x276)]&&this[_0x486c3e(0x3aa)](),this[_0x486c3e(0x3d4)][_0x486c3e(0x35d)]({'cmd':b['INGEST'],'routeKey':_0x62f96,'routeType':'','data':_0x331b7e});}catch(_0x1f8a05){this[_0x486c3e(0x17c)][_0x486c3e(0x172)](_0x1f8a05);}}[_0x147aa9(0x3aa)](){const _0x1a225f=_0x147aa9;var _0x52adda;this['_collaborationTimeoutTimer']=window[_0x1a225f(0x3ea)](()=>{const _0x599299=_0x1a225f;this[_0x599299(0x1e9)]=null,this[_0x599299(0x1dd)][_0x599299(0x1a1)]({'type':ae[_0x599299(0x475)][_0x599299(0x295)],'content':this['_localeService']['t'](_0x599299(0x20c))});},(_0x52adda=this['_configService'][_0x1a225f(0x262)](He))!=null?_0x52adda:ht);}[_0x147aa9(0x49a)](){const _0x51e97e=_0x147aa9;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x51e97e(0x1e9)]=null);}},exports[_0x147aa9(0x1d0)]=at([w(0x2,a[_0x147aa9(0x4be)]),w(0x3,N[_0x147aa9(0x4a5)]),w(0x4,N[_0x147aa9(0x3c5)]),w(0x5,a[_0x147aa9(0x1d5)]),w(0x6,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),w(0x7,h[_0x147aa9(0x23d)](V))],exports[_0x147aa9(0x1d0)]),exports[_0x147aa9(0x327)]=class extends a[_0x147aa9(0x2a4)]{constructor(_0x365406,_0x4a219e,_0x3f4e35,_0x6cb6b1,_0x4dc858,_0x3323f8){const _0x5b66f4=_0x147aa9;super(),d(this,'_socket$',new v['BehaviorSubject'](void 0x0)),d(this,'_sessions',new Map()),d(this,'_status$',new v[(_0x5b66f4(0x470))](0x0)),d(this,_0x5b66f4(0x209),this[_0x5b66f4(0x3bb)][_0x5b66f4(0x36f)]()),d(this,_0x5b66f4(0x284),!0x1),d(this,_0x5b66f4(0x460)),d(this,_0x5b66f4(0x332)),d(this,'_retryConnectingTimer'),d(this,_0x5b66f4(0x343),0x0),(this[_0x5b66f4(0x17d)]=_0x365406,this['_localeService']=_0x4a219e,this[_0x5b66f4(0x1dd)]=_0x3f4e35,this[_0x5b66f4(0x17c)]=_0x6cb6b1,this[_0x5b66f4(0x266)]=_0x4dc858,this['_socketService']=_0x3323f8);}get['_socket'](){const _0x4d74d9=_0x147aa9;return this['_socket$'][_0x4d74d9(0x290)]();}[_0x147aa9(0x35b)](){const _0x162b99=_0x147aa9;super[_0x162b99(0x35b)](),this[_0x162b99(0x3bc)][_0x162b99(0x1f0)](_0x5ba3e6=>_0x5ba3e6[_0x162b99(0x35b)]()),this[_0x162b99(0x3bc)][_0x162b99(0x1cf)](),this[_0x162b99(0x3bb)]['complete']();}async[_0x147aa9(0x2dc)](_0x1fe951){const _0x2aacd9=_0x147aa9;if(this['_sessions']['has'](_0x1fe951))return this[_0x2aacd9(0x3bc)][_0x2aacd9(0x1f9)](_0x1fe951);this[_0x2aacd9(0x480)]();const _0x3ff94c=this[_0x2aacd9(0x17d)]['createInstance'](exports[_0x2aacd9(0x1d0)],_0x1fe951,this[_0x2aacd9(0x27e)][_0x2aacd9(0x36f)]());return this[_0x2aacd9(0x3bc)][_0x2aacd9(0x2c0)](_0x1fe951,_0x3ff94c),_0x3ff94c;}[_0x147aa9(0x2a0)](){const _0x32cce4=_0x147aa9;var _0x17a0bb;const _0x408f27=(_0x17a0bb=this['_configService']['getConfig'](ct))!=null?_0x17a0bb:xt;return this['_socketService'][_0x32cce4(0x1bb)](_0x408f27);}[_0x147aa9(0x480)](){const _0xae8b7c=_0x147aa9;try{const _0x3bec7d=this[_0xae8b7c(0x2a0)]();if(_0x3bec7d){const _0x4ece66=_0x3bec7d[_0xae8b7c(0x35d)];_0x3bec7d['send']=_0x4440e0=>(this['_rescheduleHeartbeatEvent'](),_0x4ece66[_0xae8b7c(0x3b5)](_0x3bec7d,[_0x4440e0])),_0x3bec7d[_0xae8b7c(0x3a7)][_0xae8b7c(0x2d2)](_0x51e734=>this[_0xae8b7c(0x397)](_0x3bec7d,_0x51e734)),_0x3bec7d[_0xae8b7c(0x268)][_0xae8b7c(0x2e4)](T['take'](0x1))['subscribe'](_0x3bf16b=>this['_logService']['error'](_0xae8b7c(0x322),_0x3bf16b)),_0x3bec7d['open$']['pipe'](T[_0xae8b7c(0x3e2)](0x1))[_0xae8b7c(0x2d2)](()=>{const _0x109d2d=_0xae8b7c;this[_0x109d2d(0x17a)](_0x3bec7d);}),_0x3bec7d[_0xae8b7c(0x1f1)][_0xae8b7c(0x2e4)](T[_0xae8b7c(0x3e2)](0x1))[_0xae8b7c(0x2d2)](_0x14183f=>{const _0x4333bc=_0xae8b7c;this['_logService']['debug'](_0x4333bc(0x3e7),_0x4333bc(0x341),_0x14183f),this[_0x4333bc(0x370)]();});}}catch(_0x17c552){this[_0xae8b7c(0x17c)][_0xae8b7c(0x172)](_0x17c552),this[_0xae8b7c(0x370)]();}}[_0x147aa9(0x17a)](_0x31a1c9){const _0x43c29a=_0x147aa9;this['_logService']['debug'](_0x43c29a(0x3e7),_0x43c29a(0x3b2)),_0x31a1c9[_0x43c29a(0x35d)]({'cmd':b[_0x43c29a(0x2a7)]}),this[_0x43c29a(0x479)]();}[_0x147aa9(0x370)](){const _0xa4208b=_0x147aa9;var _0x51b753;this['_status$'][_0xa4208b(0x20f)](0x2),this[_0xa4208b(0x27e)][_0xa4208b(0x20f)](null),this[_0xa4208b(0x39c)](),this[_0xa4208b(0x2f1)](),this['_socketReady']=!0x1,this[_0xa4208b(0x343)]<((_0x51b753=this[_0xa4208b(0x266)][_0xa4208b(0x262)](Wt))!=null?_0x51b753:Vt)?(this[_0xa4208b(0x44d)](this[_0xa4208b(0x343)]),this['_retryCount']+=0x1):this[_0xa4208b(0x1dd)][_0xa4208b(0x1a1)]({'type':ae[_0xa4208b(0x475)][_0xa4208b(0x295)],'content':this[_0xa4208b(0x1d9)]['t'](_0xa4208b(0x1bc))});}[_0x147aa9(0x44d)](_0x41569b){const _0x906331=_0x147aa9;var _0x5619a3;const _0x4d0333=((_0x5619a3=this[_0x906331(0x266)][_0x906331(0x262)](Bt))!=null?_0x5619a3:Ft)*0x2**_0x41569b;this[_0x906331(0x1dd)][_0x906331(0x1a1)]({'type':ae['MessageType'][_0x906331(0x2fd)],'content':this[_0x906331(0x1d9)]['t'](_0x906331(0x1eb))}),this[_0x906331(0x178)]=setTimeout(()=>{const _0x364575=_0x906331;this['_tryEnsureSocket'](),clearTimeout(this[_0x364575(0x178)]),this[_0x364575(0x178)]=null;},_0x4d0333);}['_rescheduleHeartbeatEvent'](){const _0x1151ff=_0x147aa9;var _0x37e533;this[_0x1151ff(0x2f1)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x1151ff(0x385)](),(_0x37e533=this[_0x1151ff(0x266)][_0x1151ff(0x262)](lt))!=null?_0x37e533:Ht);}['_sendHeartbeat'](){const _0x545e87=_0x147aa9;this[_0x545e87(0x3d4)][_0x545e87(0x35d)]({'cmd':b[_0x545e87(0x482)]}),this['_waitForHeartbeatResponse']();}[_0x147aa9(0x2f0)](){const _0x4f6dd8=_0x147aa9;var _0x4d8167;this[_0x4f6dd8(0x332)]=setTimeout(()=>this[_0x4f6dd8(0x370)](),(_0x4d8167=this['_configService'][_0x4f6dd8(0x262)](He))!=null?_0x4d8167:ht);}['_onMessage'](_0x462964,_0x3a7d98){const _0x3dc690=_0x147aa9,{cmd:_0x5bfd49}=_0x3a7d98;_0x5bfd49===b['HELLO']&&!this[_0x3dc690(0x284)]&&(_0x462964[_0x3dc690(0x21c)]=_0x3a7d98['data'][_0x3dc690(0x21c)],this['_socket$'][_0x3dc690(0x20f)](_0x462964),this[_0x3dc690(0x3bb)][_0x3dc690(0x20f)](0x3),this[_0x3dc690(0x284)]=!0x0),_0x5bfd49===b[_0x3dc690(0x482)]&&this[_0x3dc690(0x39c)](),this[_0x3dc690(0x479)]();}[_0x147aa9(0x2f1)](){const _0x2ec323=_0x147aa9;this[_0x2ec323(0x460)]!=null&&(clearTimeout(this[_0x2ec323(0x460)]),this[_0x2ec323(0x460)]=null);}[_0x147aa9(0x39c)](){const _0x6a0485=_0x147aa9;this[_0x6a0485(0x332)]!=null&&(clearTimeout(this[_0x6a0485(0x332)]),this[_0x6a0485(0x332)]=null);}},exports[_0x147aa9(0x327)]=at([w(0x0,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),w(0x1,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),w(0x2,N['IMessageService']),w(0x3,a[_0x147aa9(0x4be)]),w(0x4,a[_0x147aa9(0x1d5)]),w(0x5,xe)],exports['CollaborationSessionService']);var Gt=(_0x4d16a9,_0x2ff3ad,_0xd8996,_0x12904a)=>{for(var _0x25ce19=_0x2ff3ad,_0x18fba7=_0x4d16a9['length']-0x1,_0x118d3e;_0x18fba7>=0x0;_0x18fba7--)(_0x118d3e=_0x4d16a9[_0x18fba7])&&(_0x25ce19=_0x118d3e(_0x25ce19)||_0x25ce19);return _0x25ce19;},te=(_0x1c4b38,_0x4d0cb9)=>(_0x519944,_0x5448ed)=>_0x4d0cb9(_0x519944,_0x5448ed,_0x1c4b38);const ut=_0x147aa9(0x1ca),Yt=0x3e8;exports[_0x147aa9(0x2b0)]=class extends a[_0x147aa9(0x2a4)]{constructor(_0x25a7ac,_0x39172b,_0xd9cbec,_0x177074,_0x284641){const _0x2ddb75=_0x147aa9;super(),d(this,_0x2ddb75(0x291),new Map()),d(this,_0x2ddb75(0x3da),new Map()),d(this,'_disabled',!0x1),(this[_0x2ddb75(0x266)]=_0x25a7ac,this['_localStorageService']=_0x39172b,this['_beforeCloseService']=_0xd9cbec,this[_0x2ddb75(0x1d9)]=_0x177074,this['_revisionService']=_0x284641,this[_0x2ddb75(0x4c9)]());}[_0x147aa9(0x39e)](){const _0x2231ff=_0x147aa9;this[_0x2231ff(0x19b)]=!0x0;}[_0x147aa9(0x1ea)](){this['_disabled']=!0x1;}['dispose'](){const _0x454ddc=_0x147aa9;this[_0x454ddc(0x395)]()[_0x454ddc(0x41f)](()=>super[_0x454ddc(0x35b)]());}async[_0x147aa9(0x32f)](_0x21c798){const _0x45acc9=_0x147aa9;return this[_0x45acc9(0x19b)]?null:this['_localStorageService'][_0x45acc9(0x49b)](Ye(_0x21c798));}async[_0x147aa9(0x1e2)](_0x43c51e,_0x873feb){const _0x43adb4=_0x147aa9;return!!this[_0x43adb4(0x29f)][_0x43adb4(0x4b6)](_0x43c51e,_0x873feb);}['updateOfflineData'](_0x502d29,_0x3df04b,_0x1e9d18,_0x1ecf7d){const _0x4c20ab=_0x147aa9,_0x1e14eb=this[_0x4c20ab(0x3c6)]['getCurrentRevForDocument'](_0x502d29);this[_0x4c20ab(0x291)][_0x4c20ab(0x2c0)](_0x502d29,{'unitID':_0x502d29,'type':_0x3df04b,'awaitingChangeset':_0x1e9d18,'mutations':_0x1ecf7d,'rev':_0x1e14eb}),this[_0x4c20ab(0x3da)]['has'](_0x502d29)||this[_0x4c20ab(0x2ee)](_0x502d29);}['_scheduleSaving'](_0x553f6a){const _0x17d953=_0x147aa9,_0x5a2004=this[_0x17d953(0x2de)]();_0x5a2004===0x0?this[_0x17d953(0x4b1)](_0x553f6a):this[_0x17d953(0x3da)]['set'](_0x553f6a,setTimeout(()=>this[_0x17d953(0x4b1)](_0x553f6a),_0x5a2004));}[_0x147aa9(0x2de)](){const _0x3db59c=_0x147aa9;var _0x512a57;return(_0x512a57=this[_0x3db59c(0x266)][_0x3db59c(0x262)](ut))!=null?_0x512a57:Yt;}[_0x147aa9(0x4b1)](_0x16ea02){const _0x30c98e=_0x147aa9,_0x52f5f6=this[_0x30c98e(0x3da)][_0x30c98e(0x1f9)](_0x16ea02);return _0x52f5f6!==void 0x0&&window['clearTimeout'](_0x52f5f6),this[_0x30c98e(0x29f)]['setItem'](Ye(_0x16ea02),this[_0x30c98e(0x291)][_0x30c98e(0x1f9)](_0x16ea02))[_0x30c98e(0x41f)](()=>this['_saveTaskMap'][_0x30c98e(0x392)](_0x16ea02));}async[_0x147aa9(0x395)](){const _0x296a14=_0x147aa9,_0x53a421=[];this[_0x296a14(0x3da)][_0x296a14(0x1f0)]((_0x39593f,_0x2b27d6)=>{const _0x4e3fd1=_0x296a14;window[_0x4e3fd1(0x3f9)](_0x39593f),_0x53a421[_0x4e3fd1(0x4ad)](this[_0x4e3fd1(0x4b1)](_0x2b27d6)[_0x4e3fd1(0x41f)](()=>{const _0x3c993a=_0x4e3fd1;this[_0x3c993a(0x3da)][_0x3c993a(0x392)](_0x2b27d6);}));}),await Promise[_0x296a14(0x3f1)](_0x53a421);}[_0x147aa9(0x4c9)](){const _0x395aa7=_0x147aa9;this[_0x395aa7(0x305)](this[_0x395aa7(0x473)]['registerBeforeClose'](()=>{const _0x2f0ed4=_0x395aa7;if(this[_0x2f0ed4(0x3da)][_0x2f0ed4(0x2e0)])return this[_0x2f0ed4(0x1d9)]['t'](_0x2f0ed4(0x2ce));}));}},exports['LocalCacheService']=Gt([te(0x0,a['IConfigService']),te(0x1,a[_0x147aa9(0x238)]),te(0x2,N[_0x147aa9(0x4a5)]),te(0x3,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),te(0x4,h[_0x147aa9(0x23d)](_[_0x147aa9(0x1a3)]))],exports[_0x147aa9(0x2b0)]);function Ye(_0xb40b64){return'unit-cache-'+_0xb40b64;}const Ce=h[_0x147aa9(0x311)](_0x147aa9(0x30e));var _t=(_0x1268a0=>(_0x1268a0[_0x1268a0[_0x147aa9(0x39b)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x1268a0[_0x1268a0[_0x147aa9(0x2f8)]=0x1]=_0x147aa9(0x2f8),_0x1268a0))(_t||{});const Ke=0x7530,qe=_0x147aa9(0x2b4);class Kt extends a['Disposable']{constructor(){const _0x5056e9=_0x147aa9;super(),d(this,_0x5056e9(0x1be),a['Tools'][_0x5056e9(0x214)]()),d(this,'_selfUnitIDs',new Set()),d(this,_0x5056e9(0x4b9),new Map()),d(this,'_heartbeatTimer',null),d(this,'_clearOtherTimers',new Map()),d(this,'_unitStatus',new Map()),this[_0x5056e9(0x41a)]();}[_0x147aa9(0x35b)](){const _0x1413f7=_0x147aa9;super[_0x1413f7(0x35b)](),this[_0x1413f7(0x2bf)][_0x1413f7(0x1f0)]((_0x296af3,_0x1750c7)=>this['_removeClearOtherTimer'](_0x1750c7)),this[_0x1413f7(0x175)]&&window[_0x1413f7(0x1b1)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x26a2d2){const _0x5e76d0=_0x147aa9;return this[_0x5e76d0(0x220)](_0x26a2d2)['pipe'](v[_0x5e76d0(0x1c5)]());}['editingUnit'](_0x4d6558){const _0x57f8d3=_0x147aa9;this[_0x57f8d3(0x439)][_0x57f8d3(0x2e0)]===0x0&&this[_0x57f8d3(0x213)](),this[_0x57f8d3(0x439)]['add'](_0x4d6558),this[_0x57f8d3(0x3b3)]({'type':0x0,'memberID':this[_0x57f8d3(0x1be)],'unitID':_0x4d6558});}[_0x147aa9(0x16b)](_0x48ca15){const _0x1ef098=_0x147aa9;this[_0x1ef098(0x439)][_0x1ef098(0x392)](_0x48ca15),this[_0x1ef098(0x439)][_0x1ef098(0x2e0)]===0x0&&this[_0x1ef098(0x175)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x147aa9(0x41a)](){const _0x2d6d16=_0x147aa9;this[_0x2d6d16(0x305)](a[_0x2d6d16(0x4b3)](v[_0x2d6d16(0x164)](window,_0x2d6d16(0x2bd))[_0x2d6d16(0x2d2)](_0x59c121=>{const _0x239705=_0x2d6d16;if(_0x59c121['key']!==qe||!_0x59c121[_0x239705(0x49e)])return;const _0x3e6c7b=JSON[_0x239705(0x4cd)](_0x59c121[_0x239705(0x49e)]);this[_0x239705(0x29c)](_0x3e6c7b);}))),window[_0x2d6d16(0x310)](_0x2d6d16(0x2eb),()=>this[_0x2d6d16(0x3b3)]({'type':0x1,'memberID':this[_0x2d6d16(0x1be)],'unitIDs':Array[_0x2d6d16(0x160)](this[_0x2d6d16(0x439)])}));}[_0x147aa9(0x29c)](_0x552910){const _0x3636ea=_0x147aa9;switch(_0x552910['type']){case 0x0:this[_0x3636ea(0x356)](_0x552910);break;case 0x1:this[_0x3636ea(0x36b)](_0x552910);break;case 0x2:this[_0x3636ea(0x417)](_0x552910);break;}}[_0x147aa9(0x356)](_0x403837){const _0x197f47=_0x147aa9,{unitID:_0x265833,memberID:_0x599794}=_0x403837;if(!this[_0x197f47(0x4b9)][_0x197f47(0x24a)](_0x265833)||!this[_0x197f47(0x4b9)][_0x197f47(0x1f9)](_0x265833)['has'](_0x599794)){const _0x1a167c=this[_0x197f47(0x4b9)]['get'](_0x265833)||new Set();_0x1a167c['add'](_0x599794),this[_0x197f47(0x4b9)][_0x197f47(0x2c0)](_0x265833,_0x1a167c),this[_0x197f47(0x1c7)](_0x599794),this['_send']({'type':0x0,'memberID':this[_0x197f47(0x1be)],'unitID':_0x265833});}else this[_0x197f47(0x220)](_0x265833)['next'](0x1);}[_0x147aa9(0x1c7)](_0x22ac53){const _0x3eb4aa=_0x147aa9;this[_0x3eb4aa(0x1e3)](_0x22ac53);const _0x2107c5=window[_0x3eb4aa(0x3ea)](()=>{this['_unitOnClients']['forEach'](_0x4fdfa9=>{const _0x5bc834=_0x5bd1;_0x4fdfa9[_0x5bc834(0x392)](_0x22ac53);});},Ke*0x2);this[_0x3eb4aa(0x2bf)][_0x3eb4aa(0x2c0)](_0x22ac53,_0x2107c5);}[_0x147aa9(0x1e3)](_0x180997){const _0x6ef934=_0x147aa9;if(this[_0x6ef934(0x2bf)]['has'](_0x180997)){const _0x493fcf=this['_clearOtherTimers'][_0x6ef934(0x1f9)](_0x180997);_0x493fcf&&window[_0x6ef934(0x3f9)](_0x493fcf),this[_0x6ef934(0x2bf)][_0x6ef934(0x2c0)](_0x180997,null);}}['_handleLeaveEvent'](_0xc08b4a){const _0x1508cd=_0x147aa9,{memberID:_0x4cdba7,unitIDs:_0x456bd8}=_0xc08b4a;_0x456bd8[_0x1508cd(0x1f0)](_0x6d615f=>{const _0xe4256b=_0x1508cd;var _0x6cb9c8;const _0x4cf6aa=this['_unitOnClients']['get'](_0x6d615f);_0x4cf6aa&&(_0x4cf6aa[_0xe4256b(0x392)](_0x4cdba7),(_0x6cb9c8=this[_0xe4256b(0x220)](_0x6d615f))==null||_0x6cb9c8['next'](_0x4cf6aa[_0xe4256b(0x2e0)]===0x0?0x0:0x1));}),this[_0x1508cd(0x1e3)](_0x4cdba7);}[_0x147aa9(0x417)](_0x376fa7){const _0x5d7cac=_0x147aa9;this['_scheduleClearOtherTimer'](_0x376fa7[_0x5d7cac(0x21c)]);}[_0x147aa9(0x3b3)](_0x5b87ab){const _0x5bc4dd=_0x147aa9;localStorage[_0x5bc4dd(0x4b6)](qe,JSON['stringify'](_0x5b87ab));}[_0x147aa9(0x213)](){const _0x1c85f2=_0x147aa9;this[_0x1c85f2(0x175)]=window[_0x1c85f2(0x4ac)](()=>{const _0x2d9ef9=_0x1c85f2;this[_0x2d9ef9(0x3b3)]({'type':0x2,'memberID':this[_0x2d9ef9(0x1be)]});},Ke);}[_0x147aa9(0x220)](_0x98ea01){const _0x1a7d31=_0x147aa9;return this[_0x1a7d31(0x3e3)][_0x1a7d31(0x24a)](_0x98ea01)||this['_unitStatus']['set'](_0x98ea01,new v[(_0x1a7d31(0x470))](0x0)),this['_unitStatus'][_0x1a7d31(0x1f9)](_0x98ea01);}}var qt=(_0x2d258f,_0x132d20,_0x58c670,_0x46f3e8)=>{const _0x266ea8=_0x147aa9;for(var _0xfc1408=_0x132d20,_0xbdade9=_0x2d258f[_0x266ea8(0x3f5)]-0x1,_0x492aef;_0xbdade9>=0x0;_0xbdade9--)(_0x492aef=_0x2d258f[_0xbdade9])&&(_0xfc1408=_0x492aef(_0xfc1408)||_0xfc1408);return _0xfc1408;},Xe=(_0x15b2b7,_0x48bec1)=>(_0x1d96e2,_0x253651)=>_0x48bec1(_0x1d96e2,_0x253651,_0x15b2b7);let Se=class{constructor(_0x961782,_0x439ec3){const _0x18bed8=_0x147aa9;this[_0x18bed8(0x17d)]=_0x961782,this[_0x18bed8(0x306)]=_0x439ec3;}[_0x147aa9(0x485)](_0x506e71){const _0x12dedd=_0x147aa9;this['_transformUndoRedoStack'](_0x506e71),this[_0x12dedd(0x3fc)](_0x506e71);}['transformRemoteChangeset'](_0x30916b){const _0x8ebc9b=_0x147aa9,_0x3453aa=this['_injector']['get'](U[_0x8ebc9b(0x3b9)]),{redoCache:_0x470908}=_0x3453aa[_0x8ebc9b(0x250)]();if(_0x470908[_0x8ebc9b(0x3f5)]===0x0)return _0x30916b;let _0x54c9a3=a[_0x8ebc9b(0x2bb)]['deepClone'](_0x30916b[_0x8ebc9b(0x2a1)][0x0]);for(let _0x42a873=0x0;_0x42a873<_0x470908[_0x8ebc9b(0x3f5)];_0x42a873++){const _0x533e60={'id':_0x8ebc9b(0x1a6),'params':{..._0x470908[_0x42a873]}},_0x24b7d1=this['_transformService'][_0x8ebc9b(0x1ec)](_0x54c9a3,_0x533e60,!0x1);if(_[_0x8ebc9b(0x3e1)](_0x24b7d1))throw _0x24b7d1['error'];_0x54c9a3=_0x24b7d1[_0x8ebc9b(0x387)];}return{...a[_0x8ebc9b(0x2bb)][_0x8ebc9b(0x1de)](_0x30916b),'mutations':[_0x54c9a3]};}['_transformUndoRedoStack'](_0x3424d7){const _0x4dc8d6=_0x147aa9,_0x193eb9=this[_0x4dc8d6(0x17d)][_0x4dc8d6(0x1f9)](U['IMEInputManagerService']),{undoCache:_0x1176df,redoCache:_0x117a13}=_0x193eb9['getUndoRedoMutationParamsCache']();if(_0x1176df['length']===0x0||_0x117a13[_0x4dc8d6(0x3f5)]===0x0)return;const _0x424280=[],_0x320e49=[];let _0x11380d=a[_0x4dc8d6(0x2bb)][_0x4dc8d6(0x1de)](_0x3424d7[_0x4dc8d6(0x2a1)][0x0]),_0x1f686f=a[_0x4dc8d6(0x2bb)][_0x4dc8d6(0x1de)](_0x3424d7[_0x4dc8d6(0x2a1)][0x0]);for(let _0x3de008=_0x1176df[_0x4dc8d6(0x3f5)]-0x1;_0x3de008>=0x0;_0x3de008--){const _0x518a7f={'id':_0x4dc8d6(0x1a6),'params':{..._0x1176df[_0x3de008]}},_0x2b6600={'id':_0x4dc8d6(0x1a6),'params':{..._0x117a13[_0x3de008]}},_0x513dd0=this[_0x4dc8d6(0x306)][_0x4dc8d6(0x1ec)](_0x11380d,_0x518a7f,!0x1),_0x2c59f9=this[_0x4dc8d6(0x306)][_0x4dc8d6(0x1ec)](_0x1f686f,_0x2b6600,!0x1);if(_['isTransformMutationFailure'](_0x513dd0))throw _0x513dd0[_0x4dc8d6(0x172)];if(_[_0x4dc8d6(0x3e1)](_0x2c59f9))throw _0x2c59f9[_0x4dc8d6(0x172)];_0x424280[_0x4dc8d6(0x472)](_0x513dd0[_0x4dc8d6(0x1cd)][_0x4dc8d6(0x325)]),_0x320e49[_0x4dc8d6(0x472)](_0x2c59f9[_0x4dc8d6(0x1cd)]['params']),_0x11380d=_0x513dd0[_0x4dc8d6(0x387)],_0x1f686f=_0x2c59f9[_0x4dc8d6(0x387)];}_0x193eb9['setUndoRedoMutationParamsCache']({'undoCache':_0x424280,'redoCache':_0x320e49});}[_0x147aa9(0x3fc)](_0x23d8cc){const _0x50da65=_0x147aa9,_0x46def7=this[_0x50da65(0x17d)][_0x50da65(0x1f9)](U['IMEInputManagerService']),_0x37aec3=_0x46def7[_0x50da65(0x280)]();if(_0x37aec3==null)return;const _0x29212a=[{'id':_0x50da65(0x1a6),'params':{'unitId':_0x23d8cc[_0x50da65(0x25a)],'actions':[],'textRanges':[_0x37aec3]}}],_0x1b3128=this[_0x50da65(0x306)][_0x50da65(0x21a)](_0x23d8cc,_0x29212a);if(!_[_0x50da65(0x242)](_0x1b3128))throw _0x1b3128[_0x50da65(0x172)];const _0x413361=_0x1b3128[_0x50da65(0x1cd)][0x0][_0x50da65(0x325)][_0x50da65(0x25f)];Array['isArray'](_0x413361)&&_0x413361[_0x50da65(0x3f5)]&&_0x46def7['setActiveRange'](_0x413361[0x0]);}};Se=qt([Xe(0x0,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),Xe(0x1,_[_0x147aa9(0x2ad)])],Se);var Xt=(_0x461a30,_0x552c42,_0x6a8533,_0x164cd7)=>{const _0x12df39=_0x147aa9;for(var _0x48e63a=_0x552c42,_0x1ed685=_0x461a30[_0x12df39(0x3f5)]-0x1,_0x4ccc25;_0x1ed685>=0x0;_0x1ed685--)(_0x4ccc25=_0x461a30[_0x1ed685])&&(_0x48e63a=_0x4ccc25(_0x48e63a)||_0x48e63a);return _0x48e63a;},Je=(_0x266d4b,_0xa345a0)=>(_0x832228,_0x105282)=>_0xa345a0(_0x832228,_0x105282,_0x266d4b);let ve=class{constructor(_0x4b8fc3,_0x3cb627){const _0x78e0b2=_0x147aa9;this[_0x78e0b2(0x17d)]=_0x4b8fc3,this[_0x78e0b2(0x306)]=_0x3cb627;}[_0x147aa9(0x3f0)](_0xc35dc4){const _0x624137=_0x147aa9;var _0x30cb8b;const _0xb1e295=this[_0x624137(0x17d)][_0x624137(0x1f9)](U[_0x624137(0x216)]),_0x48f4dc=(_0x30cb8b=_0xb1e295[_0x624137(0x326)]())!=null?_0x30cb8b:[],_0x50b25d=_0x48f4dc==null?void 0x0:_0x48f4dc[_0x624137(0x26d)](U[_0x624137(0x32c)]);if(_0x50b25d[_0x624137(0x3f5)]===0x0)return;const _0x1d441e=[{'id':_0x624137(0x1a6),'params':{'unitId':_0xc35dc4[_0x624137(0x25a)],'actions':[],'textRanges':_0x50b25d}}],_0x3dace0=this[_0x624137(0x306)][_0x624137(0x21a)](_0xc35dc4,_0x1d441e);if(!_['isTransformMutationsWithChangesetSuccess'](_0x3dace0))throw _0x3dace0[_0x624137(0x172)];const _0x34ce36=_0x3dace0[_0x624137(0x1cd)][0x0][_0x624137(0x325)][_0x624137(0x25f)];Array[_0x624137(0x488)](_0x34ce36)&&_0x34ce36[_0x624137(0x3f5)]&&_0xb1e295[_0x624137(0x409)](_0x34ce36,!0x1);}};ve=Xt([Je(0x0,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),Je(0x1,_['ITransformService'])],ve);function dt(_0x37b34f){const _0x108070=_0x147aa9;let _0x449144='';for(const _0x2ff133 of _0x37b34f){const {startOffset:_0x3abeef,endOffset:_0x3f85ca,isActive:_0xfb93c0}=_0x2ff133;_0x449144[_0x108070(0x3f5)]&&(_0x449144+=','),_0x449144+=_0x3abeef+':'+_0x3f85ca+':'+(_0xfb93c0?'1':'0');}return _0x449144;}function Jt(_0x720155){const _0x28acfb=_0x147aa9,_0x1026f5=_0x720155[_0x28acfb(0x46f)](','),_0x1701d6=[];for(const _0x15557f of _0x1026f5){const [_0x264de7,_0x384b3c,_0x347709]=_0x15557f[_0x28acfb(0x46f)](':');_0x1701d6[_0x28acfb(0x4ad)]({'startOffset':Number(_0x264de7),'endOffset':Number(_0x384b3c),'collapsed':_0x264de7===_0x384b3c,'isActive':_0x347709==='1'});}return _0x1701d6[_0x28acfb(0x1e6)](_0x443136=>_0x443136[_0x28acfb(0x2b6)])||(_0x1701d6[0x0][_0x28acfb(0x2b6)]=!0x0),_0x1701d6;}class Be extends a[_0x147aa9(0x169)]{constructor(){const _0x4f7169=_0x147aa9;super(...arguments),d(this,_0x4f7169(0x398),new v['BehaviorSubject'](null)),d(this,'collabCursorState$',this[_0x4f7169(0x398)][_0x4f7169(0x36f)]());}[_0x147aa9(0x464)](_0x79e8c){const _0x47e223=_0x147aa9,{unitID:_0x5d7487,memberID:_0x45f84c,textRanges:_0x524649}=_0x79e8c,_0x362b16=dt(_0x524649),_0x262fa1={'unitID':_0x5d7487,'memberID':_0x45f84c,'selection':_0x362b16};this[_0x47e223(0x398)][_0x47e223(0x20f)](_0x262fa1);}}var zt=(_0x733c9,_0x5865dd,_0x197835,_0x17867f)=>{const _0x2bdf53=_0x147aa9;for(var _0x2ab696=_0x5865dd,_0x3c1bf8=_0x733c9[_0x2bdf53(0x3f5)]-0x1,_0x4333f7;_0x3c1bf8>=0x0;_0x3c1bf8--)(_0x4333f7=_0x733c9[_0x3c1bf8])&&(_0x2ab696=_0x4333f7(_0x2ab696)||_0x2ab696);return _0x2ab696;},ze=(_0x4bb1c4,_0x49c973)=>(_0x3fd01e,_0x4584fc)=>_0x49c973(_0x3fd01e,_0x4584fc,_0x4bb1c4);let fe=class{constructor(_0x4a48e0,_0x19dc73){const _0x1a5563=_0x147aa9;this['_injector']=_0x4a48e0,this[_0x1a5563(0x306)]=_0x19dc73;}[_0x147aa9(0x3f0)](_0xb721e0){const _0x35889d=_0x147aa9;var _0x4b6316,_0xc81813,_0xf55ca8,_0x11e730;const _0x275ece=this[_0x35889d(0x17d)][_0x35889d(0x1f9)](p['SelectionManagerService']),{pluginName:_0x491b08,unitId:_0x119c3e,sheetId:_0x4706bb}=_0x275ece[_0x35889d(0x44b)]()||{},_0x145edc=(_0x4b6316=_0x275ece[_0x35889d(0x326)]())!=null?_0x4b6316:[];if(_0x145edc[_0x35889d(0x3f5)]===0x0||!_0x491b08||!_0x119c3e||!_0x4706bb)return;const _0x575b4e=[{'id':p[_0x35889d(0x170)]['id'],'params':{'unitId':_0x119c3e,'subUnitId':_0x4706bb,'pluginName':_0x491b08,'selections':a[_0x35889d(0x2bb)][_0x35889d(0x1de)](_0x145edc)}}],_0x51a20d=this[_0x35889d(0x306)]['transformMutationsWithChangeset'](_0xb721e0,_0x575b4e);if(!_[_0x35889d(0x242)](_0x51a20d))throw _0x51a20d['error'];const _0x318f2e=(_0x11e730=(_0xf55ca8=(_0xc81813=_0x51a20d[_0x35889d(0x1cd)][0x0])==null?void 0x0:_0xc81813[_0x35889d(0x325)])==null?void 0x0:_0xf55ca8[_0x35889d(0x490)])!=null?_0x11e730:_0x145edc;Array[_0x35889d(0x488)](_0x318f2e)&&_0x318f2e['length']&&this['_injector'][_0x35889d(0x1f9)](a[_0x35889d(0x496)])['executeCommand'](p[_0x35889d(0x170)]['id'],{'unitId':_0x119c3e,'subUnitId':_0x4706bb,'pluginName':_0x491b08,'selections':_0x318f2e});}};fe=zt([ze(0x0,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),ze(0x1,_[_0x147aa9(0x2ad)])],fe);const Qt=new Set([p[_0x147aa9(0x494)]['id']]);function Zt(_0x2f26e5,_0x10096f,_0x1245b5,_0x39de17,_0x4e9e0f){const _0x130f62=_0x147aa9;var _0x5be657,_0x500221,_0x560a15,_0x4f13f6;const _0x59b608=[];for(const _0x59ff83 of _0x2f26e5)if(Qt[_0x130f62(0x24a)](_0x59ff83['id'])){if(_0x59b608['length']>0x0)break;_0x59b608[_0x130f62(0x4ad)](_0x59ff83);break;}else _0x59b608[_0x130f62(0x4ad)](_0x59ff83);const _0x1119ff=(_0x500221=(_0x5be657=_0x4e9e0f[_0x130f62(0x3bf)]())==null?void 0x0:_0x5be657[_0x130f62(0x21d)])!=null?_0x500221:'unknown',_0xee4531=(_0x4f13f6=(_0x560a15=_0x4e9e0f[_0x130f62(0x3bf)]())==null?void 0x0:_0x560a15[_0x130f62(0x21c)])!=null?_0x4f13f6:'unknown';return{'changeset':{'unitID':_0x10096f,'type':_['mapDocumentTypeToUniverType'](_0x1245b5[_0x130f62(0x16c)](_0x10096f)),'baseRev':_0x39de17[_0x130f62(0x26b)](_0x10096f),'revision':0x0,'userID':_0x1119ff,'memberID':_0xee4531,'mutations':_0x59b608},'pendingMutations':_0x2f26e5[_0x130f62(0x2e2)](_0x59b608[_0x130f62(0x3f5)])};}function es(_0xb7b21c,_0x5e472d,_0x505cb4,_0x1057bd,_0x2b287d){const _0x583c43=_0x147aa9;var _0xacf61b,_0x238231,_0x1c0810,_0x457c80;const _0x20d37e=[_0xb7b21c[_0x583c43(0x408)]((_0x1cd2cf,_0x51c8d3)=>{const _0x5780f9=_0x583c43;var _0x5ee560;const {id:_0x13d9e4}=_0x1cd2cf,{id:_0x27596a,type:_0x4fe142}=_0x51c8d3,_0x5c77e9=(_0x5ee560=_0x1cd2cf[_0x5780f9(0x325)])!=null?_0x5ee560:{'actions':[]},_0x2181ae=_0x51c8d3[_0x5780f9(0x325)];if(_0x13d9e4&&_0x13d9e4!==_0x27596a)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x13d9e4+_0x5780f9(0x297)+_0x27596a+'.');return{..._0x1cd2cf,'id':_0x27596a,'type':_0x4fe142,'params':{'unitId':_0x2181ae['unitId'],'textRanges':_0x2181ae[_0x5780f9(0x25f)],'actions':a[_0x5780f9(0x239)]['compose'](_0x5c77e9[_0x5780f9(0x288)],_0x2181ae[_0x5780f9(0x288)])}};},{})],_0x5ff859=(_0x238231=(_0xacf61b=_0x2b287d[_0x583c43(0x3bf)]())==null?void 0x0:_0xacf61b[_0x583c43(0x21d)])!=null?_0x238231:_0x583c43(0x228),_0x20014c=(_0x457c80=(_0x1c0810=_0x2b287d[_0x583c43(0x3bf)]())==null?void 0x0:_0x1c0810['memberID'])!=null?_0x457c80:_0x583c43(0x228);return{'changeset':{'unitID':_0x5e472d,'type':_[_0x583c43(0x18f)](_0x505cb4[_0x583c43(0x16c)](_0x5e472d)),'baseRev':_0x1057bd[_0x583c43(0x26b)](_0x5e472d),'revision':0x0,'userID':_0x5ff859,'memberID':_0x20014c,'mutations':_0x20d37e},'pendingMutations':[]};}var Y=(_0x279009,_0x413142,_0x7b5ca8,_0x3ac42b)=>{const _0x56347e=_0x147aa9;for(var _0x53ced5=_0x413142,_0x233736=_0x279009[_0x56347e(0x3f5)]-0x1,_0x10d785;_0x233736>=0x0;_0x233736--)(_0x10d785=_0x279009[_0x233736])&&(_0x53ced5=_0x10d785(_0x53ced5)||_0x53ced5);return _0x53ced5;},f=(_0x5e0eb0,_0x4d5cd6)=>(_0x50f6dd,_0x39339d)=>_0x4d5cd6(_0x50f6dd,_0x39339d,_0x5e0eb0);const gt=_0x147aa9(0x22a),ts=0x7d0;var D=(_0x308009=>(_0x308009[_0x147aa9(0x449)]='not_collab',_0x308009['SYNCED']=_0x147aa9(0x247),_0x308009[_0x147aa9(0x30b)]=_0x147aa9(0x2e7),_0x308009[_0x147aa9(0x424)]='awaiting',_0x308009[_0x147aa9(0x4a7)]='awaiting_with_pending',_0x308009[_0x147aa9(0x183)]=_0x147aa9(0x3c7),_0x308009[_0x147aa9(0x283)]=_0x147aa9(0x3a9),_0x308009[_0x147aa9(0x253)]=_0x147aa9(0x1f7),_0x308009))(D||{});class K{constructor(_0x201d87,_0x407b4a,_0x353138,_0x4c810b,_0x193660,_0x358f35,_0x4ef084,_0x1e7030,_0x182e06){const _0x9f51ae=_0x147aa9;d(this,'_awaitingChangeset',null),d(this,_0x9f51ae(0x206),[]),(this[_0x9f51ae(0x25a)]=_0x201d87,this[_0x9f51ae(0x444)]=_0x407b4a,this[_0x9f51ae(0x24b)]=_0x193660,this[_0x9f51ae(0x48e)]=_0x358f35,this[_0x9f51ae(0x48d)]=_0x4ef084,this[_0x9f51ae(0x3c6)]=_0x1e7030,this['_localCacheService']=_0x182e06,this[_0x9f51ae(0x1cc)]=_0x353138,this[_0x9f51ae(0x206)]=_0x4c810b);}['_checkMissing'](_0xa92f70){const _0x5a9c83=_0x147aa9,_0x274ac7=this[_0x5a9c83(0x3c6)][_0x5a9c83(0x26b)](this[_0x5a9c83(0x25a)]);return _0xa92f70[_0x5a9c83(0x377)]>_0x274ac7+0x1?(this[_0x5a9c83(0x24b)][_0x5a9c83(0x1bd)]({'from':_0x274ac7,'to':_0xa92f70['revision']-0x1}),!0x0):!0x1;}[_0x147aa9(0x4cb)](_0x331411){const _0x36b2e7=_0x147aa9;this[_0x36b2e7(0x48d)][_0x36b2e7(0x3f3)](this[_0x36b2e7(0x25a)],_0x331411);}[_0x147aa9(0x1fe)](_0x389706){const _0x49126f=_0x147aa9;var _0x7cef44,_0x1c2ff8;(_0x1c2ff8=(_0x7cef44=this[_0x49126f(0x24b)])[_0x49126f(0x2f6)])==null||_0x1c2ff8['call'](_0x7cef44,_0x389706);}['_transformIMECache'](_0x5e905d){const _0x4bbab7=_0x147aa9;var _0x8de80b,_0x19d9bf;return(_0x19d9bf=(_0x8de80b=this[_0x4bbab7(0x24b)])['onTransformIME'])==null?void 0x0:_0x19d9bf[_0x4bbab7(0x354)](_0x8de80b,_0x5e905d);}['_transformRemoteChangesetByIMECache'](_0x5b75e7){const _0x2847a0=_0x147aa9;var _0xddbfde,_0x1be4f1,_0x849d85;return(_0x849d85=(_0x1be4f1=(_0xddbfde=this[_0x2847a0(0x24b)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1be4f1[_0x2847a0(0x354)](_0xddbfde,_0x5b75e7))!=null?_0x849d85:_0x5b75e7;}[_0x147aa9(0x384)](_0x929945){const _0x1f54b1=_0x147aa9;var _0x109659,_0x38f5c3;if(this[_0x1f54b1(0x444)]===k[_0x1f54b1(0x374)]){const {unitID:_0x5a9be7,mutations:_0x3dd28a,memberID:_0x105469}=_0x929945,_0x49fb07=_0x3dd28a[0x0][_0x1f54b1(0x325)][_0x1f54b1(0x25f)];Array[_0x1f54b1(0x488)](_0x49fb07)&&_0x49fb07[_0x1f54b1(0x3f5)]>0x0&&((_0x38f5c3=(_0x109659=this[_0x1f54b1(0x24b)])[_0x1f54b1(0x3c8)])==null||_0x38f5c3[_0x1f54b1(0x354)](_0x109659,{'unitID':_0x5a9be7,'memberID':_0x105469,'textRanges':_0x49fb07}));}}[_0x147aa9(0x265)](){const _0x3294f9=_0x147aa9;this[_0x3294f9(0x3fe)][_0x3294f9(0x35f)](this[_0x3294f9(0x25a)],this[_0x3294f9(0x444)],this[_0x3294f9(0x1cc)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x2756ff=_0x147aa9;return this['_revisionService'][_0x2756ff(0x26b)](this[_0x2756ff(0x25a)]);}[_0x147aa9(0x1ed)](){const _0x39b2cd=_0x147aa9;this[_0x39b2cd(0x3c6)][_0x39b2cd(0x224)](this[_0x39b2cd(0x25a)]);}[_0x147aa9(0x47a)](_0x367a9c){const _0x182569=_0x147aa9;var _0x684b39;const _0x2e0ac2=this[_0x182569(0x279)](_0x367a9c),_0x19171f=a[_0x182569(0x301)](_0x2e0ac2[_0x182569(0x2a1)],this[_0x182569(0x48e)],{'fromCollab':!0x0});if(!_0x19171f['result'])throw _0x19171f[_0x182569(0x172)]instanceof Error?_0x19171f[_0x182569(0x172)]:new Error((_0x684b39=_0x19171f[_0x182569(0x172)])!=null?_0x684b39:_0x182569(0x47f));this['_transformIMECache'](_0x2e0ac2),this[_0x182569(0x4cb)](_0x367a9c),this[_0x182569(0x1fe)](_0x2e0ac2),this[_0x182569(0x384)](_0x2e0ac2),this[_0x182569(0x1ed)]();}}let ce=class extends K{constructor(_0x23dcbf,_0x1893b6,_0x3525a9,_0x365b0d,_0x1c435d,_0x25bb11,_0x7d3d2d,_0xe09dc9,_0x323ab0){const _0x17dc22=_0x147aa9;super(_0x23dcbf,_0x1893b6,null,[],_0x3525a9,_0xe09dc9,_0x7d3d2d,_0x365b0d,_0x1c435d),d(this,'status','synced'),(this[_0x17dc22(0x17d)]=_0x25bb11,this['_logService']=_0x323ab0);}[_0x147aa9(0x328)](_0x1528d7){const _0x50510d=_0x147aa9,_0x5d58d0=this[_0x50510d(0x17d)][_0x50510d(0x229)]($,this[_0x50510d(0x25a)],this[_0x50510d(0x444)],[_0x1528d7],this[_0x50510d(0x24b)]);return _0x5d58d0[_0x50510d(0x2b1)](),_0x5d58d0[_0x50510d(0x265)](),_0x5d58d0;}['onRemoteChangeset'](_0x28bf25){const _0x4d81ea=_0x147aa9;if(this['_checkMissing'](_0x28bf25))return this[_0x4d81ea(0x17d)][_0x4d81ea(0x229)](P,this[_0x4d81ea(0x25a)],this[_0x4d81ea(0x444)],null,[],null,[_0x28bf25],this[_0x4d81ea(0x24b)]);try{return this[_0x4d81ea(0x47a)](_0x28bf25),this;}catch(_0x5a4d7e){return this[_0x4d81ea(0x17c)][_0x4d81ea(0x172)](_0x4d81ea(0x215),_0x5a4d7e),this;}}[_0x147aa9(0x3e9)](){const _0x2ba2f5=_0x147aa9;throw new Error(_0x2ba2f5(0x275));}['onRemoteRej'](){const _0x413ee3=_0x147aa9;throw new Error(_0x413ee3(0x383));}['toggleOffline'](){const _0x119457=_0x147aa9;return this['_injector'][_0x119457(0x229)](B,this[_0x119457(0x25a)],this[_0x119457(0x444)],null,[],this[_0x119457(0x24b)]);}[_0x147aa9(0x4aa)](){return this;}[_0x147aa9(0x165)](){const _0xab3f19=_0x147aa9;throw new Error(_0xab3f19(0x2a5));}};ce=Y([f(0x3,h['Inject'](_['RevisionService'])),f(0x4,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),f(0x5,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),f(0x6,a[_0x147aa9(0x44a)]),f(0x7,a[_0x147aa9(0x496)]),f(0x8,a['ILogService'])],ce);let $=class extends K{constructor(_0x1ad463,_0x192c01,_0x1eeeb6,_0x44f6cb,_0x542e48,_0x4c0c82,_0x59970d,_0xeff609,_0x567783,_0x5119a6,_0x393a40,_0x1eda54,_0x18d1e2,_0x4df86e){const _0x1fba3e=_0x147aa9;super(_0x1ad463,_0x192c01,null,_0x1eeeb6,_0x44f6cb,_0x5119a6,_0x4df86e,_0x4c0c82,_0x59970d),d(this,_0x1fba3e(0x27f),_0x1fba3e(0x2e7)),d(this,_0x1fba3e(0x25e),null),d(this,_0x1fba3e(0x315),null),(this['_injector']=_0x542e48,this[_0x1fba3e(0x293)]=_0xeff609,this[_0x1fba3e(0x17c)]=_0x567783,this['_configService']=_0x393a40,this[_0x1fba3e(0x306)]=_0x1eda54,this[_0x1fba3e(0x40c)]=_0x18d1e2);}[_0x147aa9(0x328)](_0x51886a){const _0x1b2e8c=_0x147aa9;return this[_0x1b2e8c(0x206)][_0x1b2e8c(0x4ad)](_0x51886a),this['_updateLocalCache'](),this;}[_0x147aa9(0x2c7)](_0x104cbb){const _0x3b1bb9=_0x147aa9;if(this[_0x3b1bb9(0x18a)](_0x104cbb))return this[_0x3b1bb9(0x38e)](),this[_0x3b1bb9(0x17d)][_0x3b1bb9(0x229)](P,this[_0x3b1bb9(0x25a)],this[_0x3b1bb9(0x444)],null,this['_pendingMutations'],null,[_0x104cbb],this['_handler']);try{const _0x19f860=this[_0x3b1bb9(0x306)][_0x3b1bb9(0x21a)](_0x104cbb,this[_0x3b1bb9(0x206)]);if(_[_0x3b1bb9(0x242)](_0x19f860)){const {c1Prime:_0x18843d,m2Prime:_0x50bfcc}=_0x19f860;this[_0x3b1bb9(0x47a)](_0x18843d);const _0x5acc11=this[_0x3b1bb9(0x17d)][_0x3b1bb9(0x229)]($,this['unitID'],this[_0x3b1bb9(0x444)],_0x50bfcc,this[_0x3b1bb9(0x24b)]);return this[_0x3b1bb9(0x38e)](),_0x5acc11[_0x3b1bb9(0x2b1)](this['_scheduleTimestamp']?Math[_0x3b1bb9(0x3b0)](0x0,new Date()[_0x3b1bb9(0x33a)]()-this[_0x3b1bb9(0x25e)]):this[_0x3b1bb9(0x31e)]()),_0x5acc11;}throw _0x19f860[_0x3b1bb9(0x172)];}catch(_0x19c2c7){return this[_0x3b1bb9(0x17c)][_0x3b1bb9(0x172)](_0x19c2c7),this[_0x3b1bb9(0x27a)]();}}[_0x147aa9(0x3e9)](){const _0x3db060=_0x147aa9;throw new Error(_0x3db060(0x20d));}[_0x147aa9(0x459)](){const _0xf99c35=_0x147aa9;throw new Error(_0xf99c35(0x431));}[_0x147aa9(0x226)](){const _0x18879c=_0x147aa9;return this[_0x18879c(0x38e)](),this[_0x18879c(0x17d)][_0x18879c(0x229)](B,this['unitID'],this['type'],null,this[_0x18879c(0x206)],this[_0x18879c(0x24b)]);}['toggleOnline'](){return this;}[_0x147aa9(0x2b1)](_0x959662){const _0x161aa4=_0x147aa9;_0x959662=_0x959662!=null?_0x959662:this[_0x161aa4(0x31e)](),this[_0x161aa4(0x25e)]=new Date()['getTime'](),this['_sendingTimer']=setTimeout(()=>{const _0x56a4d6=_0x161aa4;this[_0x56a4d6(0x38e)]();let _0x4f8160=null;switch(this['type']){case k['UNIVER_SHEET']:{_0x4f8160=Zt(this[_0x56a4d6(0x206)],this['unitID'],this[_0x56a4d6(0x40c)],this['_revisionService'],this[_0x56a4d6(0x293)]);break;}case k[_0x56a4d6(0x374)]:{_0x4f8160=es(this[_0x56a4d6(0x206)],this[_0x56a4d6(0x25a)],this[_0x56a4d6(0x40c)],this[_0x56a4d6(0x3c6)],this[_0x56a4d6(0x293)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x56a4d6(0x444)]+'\x20in\x20_schedule.');}const {changeset:_0x3dfa18,pendingMutations:_0x377e54}=_0x4f8160;this[_0x56a4d6(0x24b)][_0x56a4d6(0x3be)](_0x3dfa18);const _0x252e71=_0x377e54[_0x56a4d6(0x3f5)]?this[_0x56a4d6(0x17d)][_0x56a4d6(0x229)](j,this[_0x56a4d6(0x25a)],this[_0x56a4d6(0x444)],_0x3dfa18,_0x377e54,this[_0x56a4d6(0x24b)]):this[_0x56a4d6(0x17d)][_0x56a4d6(0x229)](H,this['unitID'],this['type'],_0x3dfa18,this[_0x56a4d6(0x24b)]);_0x252e71['_updateLocalCache'](),this[_0x56a4d6(0x24b)][_0x56a4d6(0x19c)](this,_0x252e71);},_0x959662);}[_0x147aa9(0x31e)](){const _0xd764d7=_0x147aa9;var _0x4def1d;return(_0x4def1d=this[_0xd764d7(0x266)][_0xd764d7(0x262)](gt))!=null?_0x4def1d:ts;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x147aa9(0x38e)](){const _0x12db3e=_0x147aa9;this[_0x12db3e(0x315)]!=null&&(clearTimeout(this[_0x12db3e(0x315)]),this[_0x12db3e(0x315)]=null);}[_0x147aa9(0x27a)](){const _0x18dc44=_0x147aa9;return this['_clearScheduledTask'](),this['_injector'][_0x18dc44(0x229)](G,this[_0x18dc44(0x25a)],this['type'],null,this['_pendingMutations'],this[_0x18dc44(0x24b)]);}};$=Y([f(0x4,h['Inject'](h[_0x147aa9(0x461)])),f(0x5,h['Inject'](_[_0x147aa9(0x1a3)])),f(0x6,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),f(0x7,h['Inject'](V)),f(0x8,a[_0x147aa9(0x4be)]),f(0x9,a[_0x147aa9(0x496)]),f(0xa,a[_0x147aa9(0x1d5)]),f(0xb,_[_0x147aa9(0x2ad)]),f(0xc,a[_0x147aa9(0x25d)]),f(0xd,a[_0x147aa9(0x44a)])],$);let H=class extends K{constructor(_0x4326e6,_0x73a3,_0x3659f8,_0x23aec5,_0x44e3a6,_0x2919b5,_0x11d560,_0x9188eb,_0x44750c,_0x1b14ee,_0x25ee67){const _0x26d592=_0x147aa9;super(_0x4326e6,_0x73a3,_0x3659f8,[],_0x23aec5,_0x9188eb,_0x25ee67,_0x2919b5,_0x11d560),d(this,_0x26d592(0x27f),_0x26d592(0x303)),(this['_injector']=_0x44e3a6,this[_0x26d592(0x17c)]=_0x44750c,this[_0x26d592(0x306)]=_0x1b14ee);}[_0x147aa9(0x328)](_0x53034d){const _0xf692=_0x147aa9,_0x47190a=this[_0xf692(0x17d)][_0xf692(0x229)](j,this[_0xf692(0x25a)],this[_0xf692(0x444)],this['_awaitingChangeset'],[_0x53034d],this[_0xf692(0x24b)]);return _0x47190a[_0xf692(0x265)](),_0x47190a;}[_0x147aa9(0x2c7)](_0x247d9f){const _0x926503=_0x147aa9;if(this[_0x926503(0x18a)](_0x247d9f))return this[_0x926503(0x17d)]['createInstance'](P,this[_0x926503(0x25a)],this[_0x926503(0x444)],this[_0x926503(0x1cc)],[],null,[_0x247d9f],this[_0x926503(0x24b)]);try{const _0x15cd90=this[_0x926503(0x306)][_0x926503(0x41e)]([_0x247d9f],[this[_0x926503(0x1cc)]],!0x1);if(_[_0x926503(0x37a)](_0x15cd90)){const {c1Prime:_0x31c9c6,c2Prime:_0x1e171e}=_0x15cd90;this[_0x926503(0x47a)](_0x31c9c6[0x0]),_0x1e171e[0x0][_0x926503(0x49c)]=this[_0x926503(0x367)]();const _0x55b7ee=this[_0x926503(0x17d)][_0x926503(0x229)](H,this[_0x926503(0x25a)],this['type'],_0x1e171e[0x0],this[_0x926503(0x24b)]);return _0x55b7ee[_0x926503(0x265)](),_0x55b7ee;}return this[_0x926503(0x27a)]();}catch(_0x44c4a1){return this[_0x926503(0x17c)][_0x926503(0x172)](_0x44c4a1),this[_0x926503(0x27a)]();}}[_0x147aa9(0x3e9)](_0x4a21ee){const _0x1ba233=_0x147aa9,_0x346df7=this[_0x1ba233(0x3c6)][_0x1ba233(0x26b)](this['unitID']);if(_0x4a21ee[_0x1ba233(0x377)]<_0x346df7-0x1)return this;if(this['_checkMissing'](_0x4a21ee))return this[_0x1ba233(0x17d)][_0x1ba233(0x229)](P,this[_0x1ba233(0x25a)],this[_0x1ba233(0x444)],null,[],this[_0x1ba233(0x1cc)],[],this['_handler']);this[_0x1ba233(0x1ed)]();const _0xc11292=this['_injector'][_0x1ba233(0x229)](ce,this[_0x1ba233(0x25a)],this['type'],this[_0x1ba233(0x24b)]);return _0xc11292[_0x1ba233(0x265)](),_0xc11292;}['onRemoteRej'](){const _0x3d35bd=_0x147aa9;return this[_0x3d35bd(0x27a)]();}[_0x147aa9(0x226)](){const _0x1feef2=_0x147aa9;return this['_injector'][_0x1feef2(0x229)](B,this['unitID'],this[_0x1feef2(0x444)],this[_0x1feef2(0x1cc)],[],this['_handler']);}[_0x147aa9(0x4aa)](){return this;}[_0x147aa9(0x165)](){const _0x32ee0e=_0x147aa9;this[_0x32ee0e(0x24b)][_0x32ee0e(0x3be)](this[_0x32ee0e(0x1cc)]);}[_0x147aa9(0x27a)](){const _0x498a8b=_0x147aa9;return this[_0x498a8b(0x17d)][_0x498a8b(0x229)](G,this[_0x498a8b(0x25a)],this[_0x498a8b(0x444)],this[_0x498a8b(0x1cc)],[],this[_0x498a8b(0x24b)]);}};H=Y([f(0x4,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),f(0x5,h[_0x147aa9(0x23d)](_[_0x147aa9(0x1a3)])),f(0x6,h['Inject'](exports[_0x147aa9(0x2b0)])),f(0x7,a[_0x147aa9(0x496)]),f(0x8,a[_0x147aa9(0x4be)]),f(0x9,_['ITransformService']),f(0xa,a[_0x147aa9(0x44a)])],H);let j=class extends K{constructor(_0x174bc8,_0x46cb29,_0x55c512,_0x117fa3,_0x5f30d4,_0x4266c2,_0x3d3775,_0x8b3aa5,_0x3dd526,_0x65bab0,_0x3a7a77,_0x1e1c8c){const _0x447294=_0x147aa9;super(_0x174bc8,_0x46cb29,_0x55c512,_0x117fa3,_0x5f30d4,_0x3dd526,_0x1e1c8c,_0x3d3775,_0x8b3aa5),d(this,_0x447294(0x27f),_0x447294(0x44e)),(this['_injector']=_0x4266c2,this['_logService']=_0x65bab0,this[_0x447294(0x306)]=_0x3a7a77);}[_0x147aa9(0x328)](_0x2107e5){const _0x1e9c90=_0x147aa9;return this['_pendingMutations'][_0x1e9c90(0x4ad)](_0x2107e5),this;}[_0x147aa9(0x2c7)](_0x25bc80){const _0x57576c=_0x147aa9;if(this[_0x57576c(0x18a)](_0x25bc80))return this[_0x57576c(0x17d)]['createInstance'](P,this[_0x57576c(0x25a)],this[_0x57576c(0x444)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x25bc80],this[_0x57576c(0x24b)]);try{const _0x20c8c2=this['_transformService']['transformChangesets']([_0x25bc80],[this['_awaitingChangeset']],!0x1);if(_[_0x57576c(0x37a)](_0x20c8c2)){const {c1Prime:_0x47a750,c2Prime:_0x19295c}=_0x20c8c2,_0x3c5dd1=this[_0x57576c(0x306)][_0x57576c(0x21a)](_0x47a750[0x0],this['_pendingMutations']);if(_[_0x57576c(0x242)](_0x3c5dd1)){const {c1Prime:_0x1df98e,m2Prime:_0x450b58}=_0x3c5dd1;return this[_0x57576c(0x47a)](_0x1df98e),_0x19295c[0x0][_0x57576c(0x49c)]=this[_0x57576c(0x367)](),this['_injector'][_0x57576c(0x229)](j,this[_0x57576c(0x25a)],this[_0x57576c(0x444)],_0x19295c[0x0],_0x450b58,this[_0x57576c(0x24b)]);}throw _0x3c5dd1[_0x57576c(0x172)];}throw _0x20c8c2[_0x57576c(0x172)];}catch(_0x4f27de){return this['_logService'][_0x57576c(0x172)](_0x4f27de),this[_0x57576c(0x27a)]();}}['onRemoteAck'](_0x1c66ab){const _0x18dba9=_0x147aa9;if(this[_0x18dba9(0x18a)](_0x1c66ab))return this['_injector'][_0x18dba9(0x229)](P,this[_0x18dba9(0x25a)],this[_0x18dba9(0x444)],null,this[_0x18dba9(0x206)],this[_0x18dba9(0x1cc)],[],this[_0x18dba9(0x24b)]);this[_0x18dba9(0x1ed)]();const _0x2ce752=this[_0x18dba9(0x17d)][_0x18dba9(0x229)]($,this[_0x18dba9(0x25a)],this[_0x18dba9(0x444)],this[_0x18dba9(0x206)],this['_handler']);return _0x2ce752[_0x18dba9(0x2b1)](),_0x2ce752[_0x18dba9(0x265)](),_0x2ce752;}[_0x147aa9(0x459)](){return this['_onConflict']();}[_0x147aa9(0x226)](){const _0x475ea6=_0x147aa9;return this[_0x475ea6(0x17d)][_0x475ea6(0x229)](B,this[_0x475ea6(0x25a)],this['type'],this[_0x475ea6(0x1cc)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x147aa9(0x165)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}[_0x147aa9(0x27a)](){const _0x15c9c1=_0x147aa9;return this['_injector']['createInstance'](G,this[_0x15c9c1(0x25a)],this[_0x15c9c1(0x444)],null,this[_0x15c9c1(0x206)],this[_0x15c9c1(0x24b)]);}};j=Y([f(0x5,h['Inject'](h[_0x147aa9(0x461)])),f(0x6,h['Inject'](_[_0x147aa9(0x1a3)])),f(0x7,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),f(0x8,a[_0x147aa9(0x496)]),f(0x9,a['ILogService']),f(0xa,_[_0x147aa9(0x2ad)]),f(0xb,a[_0x147aa9(0x44a)])],j);function _0x5bd1(_0x18603b,_0x5597f7){const _0x35f874=_0x35f8();return _0x5bd1=function(_0x5bd1d0,_0x486666){_0x5bd1d0=_0x5bd1d0-0x160;let _0x3241ac=_0x35f874[_0x5bd1d0];return _0x3241ac;},_0x5bd1(_0x18603b,_0x5597f7);}let G=class extends K{constructor(_0x39d9fc,_0x3cb9e8,_0x3ebef3,_0x38f1ec,_0x3bf4fd,_0x43b3b7,_0x130439,_0xdc04b,_0x26615f,_0x538a61,_0x45dd4e,_0x36ebdf){const _0x4028d6=_0x147aa9;super(_0x39d9fc,_0x3cb9e8,_0x3ebef3,_0x38f1ec,_0x3bf4fd,_0x130439,_0xdc04b,_0x538a61,_0x26615f),d(this,_0x4028d6(0x27f),_0x4028d6(0x3a9)),(this[_0x4028d6(0x3dd)]=_0x43b3b7,this[_0x4028d6(0x1d9)]=_0x45dd4e,this[_0x4028d6(0x1a9)]=_0x36ebdf,this[_0x4028d6(0x3ed)](),this[_0x4028d6(0x36d)](),this[_0x4028d6(0x4bc)]());}['appendMutation'](){return this;}[_0x147aa9(0x2c7)](){return this;}['onRemoteAck'](){return this;}[_0x147aa9(0x459)](){return this;}['toggleOffline'](){return this;}[_0x147aa9(0x4aa)](){return this;}[_0x147aa9(0x165)](){const _0xe46a9b=_0x147aa9;throw new Error(_0xe46a9b(0x433));}[_0x147aa9(0x36d)](){const _0x15003a=_0x147aa9;this[_0x15003a(0x3fe)][_0x15003a(0x35f)](this[_0x15003a(0x25a)],this[_0x15003a(0x444)],null,[]);}[_0x147aa9(0x3ed)](){const _0x4e6735=_0x147aa9;this[_0x4e6735(0x1a9)]['show']({'title':this[_0x4e6735(0x1d9)]['t'](_0x4e6735(0x18b)),'content':this[_0x4e6735(0x1d9)]['t'](_0x4e6735(0x435)),'type':_0x4e6735(0x172),'duration':0x0});}[_0x147aa9(0x4bc)](){this['_univerPermissionService']['setEditable'](this['unitID'],!0x1);}};G=Y([f(0x5,h[_0x147aa9(0x23d)](a[_0x147aa9(0x23b)])),f(0x6,a['ICommandService']),f(0x7,a[_0x147aa9(0x44a)]),f(0x8,h['Inject'](exports[_0x147aa9(0x2b0)])),f(0x9,h[_0x147aa9(0x23d)](_[_0x147aa9(0x1a3)])),f(0xa,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),f(0xb,N[_0x147aa9(0x1e5)])],G);let B=class extends K{constructor(_0xad197e,_0x35878e,_0x59da86,_0x47c0dd,_0x16fce8,_0x664e12,_0x218c16,_0x1ee99c,_0x562e79,_0x113485){const _0x20b1bf=_0x147aa9;super(_0xad197e,_0x35878e,_0x59da86,_0x47c0dd,_0x16fce8,_0x562e79,_0x113485,_0x218c16,_0x1ee99c),d(this,_0x20b1bf(0x27f),'offline'),this[_0x20b1bf(0x17d)]=_0x664e12;}[_0x147aa9(0x328)](_0x20d43c){const _0x3fea94=_0x147aa9;return this[_0x3fea94(0x206)][_0x3fea94(0x4ad)](_0x20d43c),this[_0x3fea94(0x265)](),this;}['onRemoteChangeset'](_0x19d661){const _0x1de15e=_0x147aa9;throw new Error(_0x1de15e(0x49d));}[_0x147aa9(0x3e9)](){const _0x2982ac=_0x147aa9;throw new Error(_0x2982ac(0x34d));}['onRemoteRej'](){const _0x46f54b=_0x147aa9;throw new Error(_0x46f54b(0x16e));}[_0x147aa9(0x226)](){return this;}['toggleOnline'](){const _0x338012=_0x147aa9,{_injector:_0x4eda24,_pendingMutations:_0x112d94,_awaitingChangeset:_0x1ba101,unitID:_0x15a1f0,_handler:_0x547a67,type:_0x46970c}=this,_0x54574f=St(_0x4eda24,_0x15a1f0,_0x46970c,_0x1ba101,_0x112d94,_0x547a67);return _0x54574f instanceof $?_0x54574f[_0x338012(0x2b1)]():(_0x54574f instanceof j||_0x54574f instanceof H)&&_0x54574f['resend'](),_0x54574f;}[_0x147aa9(0x165)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};B=Y([f(0x5,h['Inject'](h[_0x147aa9(0x461)])),f(0x6,h['Inject'](_[_0x147aa9(0x1a3)])),f(0x7,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),f(0x8,a['ICommandService']),f(0x9,a[_0x147aa9(0x44a)])],B);let P=class extends K{constructor(_0x3beea5,_0x4cedd8,_0x447624,_0x52e282,_0x4e3e57,_0x352695,_0x53383e,_0x42a354,_0xaac615,_0x1118d6,_0x45d3ce,_0x4c426e,_0x30b59d,_0x2da13c){const _0x279126=_0x147aa9;super(_0x3beea5,_0x4cedd8,_0x447624,_0x52e282,_0x53383e,_0x4c426e,_0x30b59d,_0xaac615,_0x1118d6),d(this,'status',_0x279126(0x3c7)),(this[_0x279126(0x38b)]=_0x4e3e57,this['_queuedRemoteChangesets']=_0x352695,this[_0x279126(0x17d)]=_0x42a354,this[_0x279126(0x17c)]=_0x45d3ce,this[_0x279126(0x306)]=_0x2da13c);}['onMissedChangesetFetched'](_0x3250dc){const _0x5b0396=_0x147aa9;try{const _0x2c88ae=[..._0x3250dc,...this[_0x5b0396(0x1ef)]],_0x3dfb62=[this[_0x5b0396(0x1cc)]||this[_0x5b0396(0x38b)]]['filter'](_0x2a2756=>!!_0x2a2756);let _0x139308,_0x28d193;if(_0x3dfb62[_0x5b0396(0x3f5)]){const _0xf40063=this['_transformService'][_0x5b0396(0x41e)](_0x2c88ae,_0x3dfb62,!0x1);if(!_[_0x5b0396(0x37a)](_0xf40063))throw _0xf40063[_0x5b0396(0x172)];_0x139308=_0xf40063[_0x5b0396(0x252)],_0x28d193=_0xf40063['c2Prime'];}else _0x139308=_0x2c88ae,_0x28d193=[];let _0x2a5b57=this[_0x5b0396(0x206)];_0x139308['forEach'](_0x4d339b=>{const _0x3471fc=_0x5b0396;let _0x319389;if(_0x2a5b57[_0x3471fc(0x3f5)]){const _0x3c8ecd=this[_0x3471fc(0x306)][_0x3471fc(0x21a)](_0x4d339b,_0x2a5b57);if(!_[_0x3471fc(0x242)](_0x3c8ecd))throw _0x3c8ecd[_0x3471fc(0x172)];_0x319389=_0x3c8ecd['c1Prime'],_0x2a5b57=_0x3c8ecd[_0x3471fc(0x1cd)];}else _0x319389=_0x4d339b;this[_0x3471fc(0x47a)](_0x319389);}),this[_0x5b0396(0x38b)]&&this[_0x5b0396(0x1ed)](),this['_awaitingChangeset']&&_0x28d193[_0x5b0396(0x3f5)]&&(_0x28d193[0x0][_0x5b0396(0x49c)]=this[_0x5b0396(0x367)]());let _0x9f9c8d;if(this[_0x5b0396(0x1cc)]&&_0x2a5b57[_0x5b0396(0x3f5)]!==0x0)_0x9f9c8d=this[_0x5b0396(0x17d)][_0x5b0396(0x229)](j,this[_0x5b0396(0x25a)],this[_0x5b0396(0x444)],_0x28d193[0x0],_0x2a5b57,this[_0x5b0396(0x24b)]);else{if(this[_0x5b0396(0x1cc)]&&_0x2a5b57['length']===0x0)_0x28d193[0x0][_0x5b0396(0x49c)]=this[_0x5b0396(0x367)](),_0x9f9c8d=this[_0x5b0396(0x17d)][_0x5b0396(0x229)](H,this[_0x5b0396(0x25a)],this[_0x5b0396(0x444)],_0x28d193[0x0],this[_0x5b0396(0x24b)]);else{if(_0x2a5b57[_0x5b0396(0x3f5)]!==0x0){const _0x3ae141=this[_0x5b0396(0x17d)][_0x5b0396(0x229)]($,this['unitID'],this['type'],_0x2a5b57,this[_0x5b0396(0x24b)]);_0x3ae141[_0x5b0396(0x2b1)](),_0x9f9c8d=_0x3ae141;}else _0x9f9c8d=this[_0x5b0396(0x17d)]['createInstance'](ce,this['unitID'],this[_0x5b0396(0x444)],this['_handler']);}}return _0x9f9c8d['_updateLocalCache'](),_0x9f9c8d;}catch(_0x4fde58){return this[_0x5b0396(0x17c)][_0x5b0396(0x172)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x4fde58),this[_0x5b0396(0x17d)]['createInstance'](G,this[_0x5b0396(0x25a)],this[_0x5b0396(0x444)],this['_awaitingChangeset'],this[_0x5b0396(0x206)],this['_handler']);}}[_0x147aa9(0x165)](){const _0x11265b=_0x147aa9;throw new Error(_0x11265b(0x405));}[_0x147aa9(0x328)](_0x319ff4){const _0x3870bc=_0x147aa9;return this[_0x3870bc(0x206)][_0x3870bc(0x4ad)](_0x319ff4),this;}[_0x147aa9(0x2c7)](_0x15d1da){const _0x5a5649=_0x147aa9;return this['_queuedRemoteChangesets'][_0x5a5649(0x4ad)](_0x15d1da),this;}[_0x147aa9(0x3e9)](_0x405b2f){const _0x46bcec=_0x147aa9;if(this[_0x46bcec(0x1cc)])return this[_0x46bcec(0x38b)]=this[_0x46bcec(0x1cc)],this[_0x46bcec(0x1cc)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x147aa9(0x459)](){const _0x59de69=_0x147aa9;return this[_0x59de69(0x27a)]();}['toggleOffline'](){const _0x5929ed=_0x147aa9;return this[_0x5929ed(0x17d)][_0x5929ed(0x229)](B,this[_0x5929ed(0x25a)],this[_0x5929ed(0x444)],this[_0x5929ed(0x1cc)],this[_0x5929ed(0x206)],this[_0x5929ed(0x24b)]);}[_0x147aa9(0x4aa)](){return this;}[_0x147aa9(0x27a)](){const _0x547362=_0x147aa9;return this[_0x547362(0x17d)][_0x547362(0x229)](G,this['unitID'],this[_0x547362(0x444)],this[_0x547362(0x1cc)],this['_pendingMutations'],this[_0x547362(0x24b)]);}};P=Y([f(0x7,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),f(0x8,h['Inject'](_[_0x147aa9(0x1a3)])),f(0x9,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),f(0xa,a[_0x147aa9(0x4be)]),f(0xb,a['ICommandService']),f(0xc,a[_0x147aa9(0x44a)]),f(0xd,_['ITransformService'])],P);function St(_0x671a95,_0x2f03ec,_0x2191b2,_0x3af90e,_0x56c93c,_0x1ba7dd){const _0x28ae32=_0x147aa9;return _0x3af90e&&_0x56c93c[_0x28ae32(0x3f5)]?_0x671a95[_0x28ae32(0x229)](j,_0x2f03ec,_0x2191b2,_0x3af90e,_0x56c93c,_0x1ba7dd):_0x3af90e?_0x671a95['createInstance'](H,_0x2f03ec,_0x2191b2,_0x3af90e,_0x1ba7dd):_0x56c93c['length']?_0x671a95[_0x28ae32(0x229)]($,_0x2f03ec,_0x2191b2,_0x56c93c,_0x1ba7dd):_0x671a95[_0x28ae32(0x229)](ce,_0x2f03ec,_0x2191b2,_0x1ba7dd);}var pe=(_0x40ad1b,_0xd8a7bd,_0x3e3bc7,_0x53ca30)=>{const _0x569b6d=_0x147aa9;for(var _0x55290f=_0xd8a7bd,_0x1fed96=_0x40ad1b[_0x569b6d(0x3f5)]-0x1,_0xc43728;_0x1fed96>=0x0;_0x1fed96--)(_0xc43728=_0x40ad1b[_0x1fed96])&&(_0x55290f=_0xc43728(_0x55290f)||_0x55290f);return _0x55290f;},I=(_0x46a963,_0x5d3b5e)=>(_0x412b8d,_0xd70a28)=>_0x5d3b5e(_0x412b8d,_0xd70a28,_0x46a963);exports['CollaborationController']=class extends a[_0x147aa9(0x169)]{constructor(_0x4fc033,_0x12e862,_0x506d15){const _0xc5c133=_0x147aa9;super(),d(this,_0xc5c133(0x39f),new Map()),d(this,_0xc5c133(0x1b0),new v[(_0xc5c133(0x43c))]()),(this[_0xc5c133(0x17d)]=_0x4fc033,this['_collabSessionService']=_0x12e862,this[_0xc5c133(0x40c)]=_0x506d15,this[_0xc5c133(0x41a)]());}[_0x147aa9(0x35b)](){const _0x234bcf=_0x147aa9;super[_0x234bcf(0x35b)](),this[_0x234bcf(0x39f)][_0x234bcf(0x1f0)](_0x4be96c=>_0x4be96c[_0x234bcf(0x35b)]()),this['_entities'][_0x234bcf(0x1cf)]();}[_0x147aa9(0x296)](_0x34a2b0){const _0x7dc9ae=_0x147aa9;var _0x11ff01;return(_0x11ff01=this[_0x7dc9ae(0x39f)][_0x7dc9ae(0x1f9)](_0x34a2b0))!=null?_0x11ff01:null;}['getCollabEntity$'](_0x455fac){const _0xeca197=_0x147aa9,_0x19c855=this[_0xeca197(0x296)](_0x455fac);return _0x19c855?v['of'](_0x19c855):this['_entityInit$'][_0xeca197(0x2e4)](T[_0xeca197(0x211)](_0x192d03=>_0x192d03[_0xeca197(0x25a)]===_0x455fac));}[_0x147aa9(0x41a)](){const _0x4c8d5b=_0x147aa9;this[_0x4c8d5b(0x40c)][_0x4c8d5b(0x362)](a[_0x4c8d5b(0x223)][_0x4c8d5b(0x2af)])[_0x4c8d5b(0x2e4)](v['takeUntil'](this[_0x4c8d5b(0x498)]),T[_0x4c8d5b(0x340)](0x10))[_0x4c8d5b(0x2d2)](async _0x2206fc=>{const _0x14b457=_0x4c8d5b,_0x328cb2=_0x2206fc['getUnitId'](),_0xca8b81=await this[_0x14b457(0x31f)](_0x328cb2,k['UNIVER_SHEET']);this[_0x14b457(0x39f)]['set'](_0x328cb2,_0xca8b81);}),this[_0x4c8d5b(0x40c)][_0x4c8d5b(0x362)](a[_0x4c8d5b(0x223)][_0x4c8d5b(0x374)])['pipe'](v[_0x4c8d5b(0x2f7)](this[_0x4c8d5b(0x498)]),T[_0x4c8d5b(0x340)](0x10))[_0x4c8d5b(0x2e4)](T['filter'](_0x4d4dda=>!_0x4d4dda['getUnitId']()['startsWith']('__')))[_0x4c8d5b(0x2d2)](async _0x5c6983=>{const _0x494a8b=_0x4c8d5b,_0x37b186=_0x5c6983[_0x494a8b(0x483)](),_0x2b7ced=await this[_0x494a8b(0x31f)](_0x37b186,k['UNIVER_DOC']);this[_0x494a8b(0x39f)]['set'](_0x37b186,_0x2b7ced);}),v[_0x4c8d5b(0x258)](this[_0x4c8d5b(0x40c)][_0x4c8d5b(0x263)](a[_0x4c8d5b(0x223)][_0x4c8d5b(0x2af)]),this['_univerInstanceService'][_0x4c8d5b(0x263)](a[_0x4c8d5b(0x223)][_0x4c8d5b(0x374)]))[_0x4c8d5b(0x2e4)](v[_0x4c8d5b(0x2f7)](this[_0x4c8d5b(0x498)]))[_0x4c8d5b(0x2d2)](_0x4f381e=>{const _0x4b3867=_0x4c8d5b,_0x4ffcda=_0x4f381e['getUnitId'](),_0xd495d5=this[_0x4b3867(0x39f)][_0x4b3867(0x1f9)](_0x4ffcda);_0xd495d5&&(_0xd495d5[_0x4b3867(0x35b)](),this['_entities']['delete'](_0x4ffcda));});}async[_0x147aa9(0x31f)](_0x34173f,_0x44affb){const _0x346bd1=_0x147aa9,_0x2551dd=await this[_0x346bd1(0x3fb)][_0x346bd1(0x2dc)](_0x34173f),_0x3e640b=this['_injector']['createInstance'](this[_0x346bd1(0x168)](_0x44affb),_0x34173f,_0x44affb,_0x2551dd);return await _0x3e640b[_0x346bd1(0x24e)](),this['_entityInit$'][_0x346bd1(0x20f)](_0x3e640b),_0x3e640b;}[_0x147aa9(0x168)](_0x101a6f){const _0x21565c=_0x147aa9;switch(_0x101a6f){case k[_0x21565c(0x374)]:return Le;case k[_0x21565c(0x2af)]:return Ue;default:throw new Error(_0x21565c(0x4b4)+_0x101a6f);}}},exports[_0x147aa9(0x2d0)]=pe([a[_0x147aa9(0x4b5)](a[_0x147aa9(0x28e)][_0x147aa9(0x26c)],exports['CollaborationController']),I(0x0,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),I(0x1,h[_0x147aa9(0x23d)](exports['CollaborationSessionService'])),I(0x2,a[_0x147aa9(0x25d)])],exports['CollaborationController']);let me=class extends a[_0x147aa9(0x169)]{constructor(_0x287576,_0xd81b87,_0x26a541,_0x34a3ba,_0x2f8dde,_0x341474,_0x3713bd,_0x299ced,_0x3969c3,_0xd40e0f,_0x3d8e9c,_0x1ac754,_0x30ef34){const _0x42a005=_0x147aa9;super(),d(this,_0x42a005(0x1c1),new v['BehaviorSubject'](null)),d(this,_0x42a005(0x43b),this['_state$']['asObservable']()),d(this,_0x42a005(0x179)),d(this,_0x42a005(0x27d),!0x1),d(this,_0x42a005(0x209),this[_0x42a005(0x43b)][_0x42a005(0x2e4)](T[_0x42a005(0x26d)](_0x447094=>_0x447094?_0x447094[_0x42a005(0x27f)]:D['OFFLINE']),T[_0x42a005(0x428)](0x1))),d(this,_0x42a005(0x441),!0x1),d(this,_0x42a005(0x4af),[]),(this[_0x42a005(0x25a)]=_0x287576,this['_type']=_0xd81b87,this[_0x42a005(0x316)]=_0x26a541,this[_0x42a005(0x17d)]=_0x34a3ba,this['_localCacheService']=_0x2f8dde,this[_0x42a005(0x3dd)]=_0x341474,this[_0x42a005(0x37d)]=_0x3713bd,this[_0x42a005(0x1d9)]=_0x299ced,this[_0x42a005(0x3c6)]=_0x3969c3,this[_0x42a005(0x17c)]=_0xd40e0f,this[_0x42a005(0x48e)]=_0x3d8e9c,this['_messageService']=_0x1ac754,this[_0x42a005(0x2cb)]=_0x30ef34);}get[_0x147aa9(0x371)](){return this['_state'];}async['init'](){const _0xbf1746=_0x147aa9;if(this[_0xbf1746(0x371)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0xbf1746(0x41a)]();}[_0x147aa9(0x420)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x5a8385=_0x5bd1;this[_0x5a8385(0x27d)]=!0x1,this[_0x5a8385(0x177)]();});}[_0x147aa9(0x188)](_0x25f77a){const _0x59dcb1=_0x147aa9;this[_0x59dcb1(0x179)]=_0x25f77a,this[_0x59dcb1(0x1c1)][_0x59dcb1(0x20f)](_0x25f77a);}async[_0x147aa9(0x41a)](){const _0x4712f6=_0x147aa9;var _0x3bddea;return this[_0x4712f6(0x188)](await this['_createInitialState']()),this[_0x4712f6(0x2cb)]&&((_0x3bddea=this[_0x4712f6(0x2cb)])==null||_0x3bddea[_0x4712f6(0x314)](this[_0x4712f6(0x25a)]),this[_0x4712f6(0x305)](a['toDisposable'](this['_singleActiveUnitService'][_0x4712f6(0x1f6)](this[_0x4712f6(0x25a)])[_0x4712f6(0x2d2)](_0x22929e=>{const _0x8d54f0=_0x4712f6;this[_0x8d54f0(0x17c)][_0x8d54f0(0x2e8)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x22929e),_0x22929e===_t[_0x8d54f0(0x2f8)]?(this[_0x8d54f0(0x1dd)][_0x8d54f0(0x1a1)]({'content':this['_localeService']['t'](_0x8d54f0(0x3af)),'type':ae[_0x8d54f0(0x475)][_0x8d54f0(0x2fd)]}),this[_0x8d54f0(0x3dd)][_0x8d54f0(0x308)](this[_0x8d54f0(0x25a)],!0x1)):this['_univerPermissionService']['setEditable'](this[_0x8d54f0(0x25a)],!0x0);})))),this[_0x4712f6(0x305)](a['toDisposable'](this['_session'][_0x4712f6(0x2ed)][_0x4712f6(0x2d2)](_0x5a1363=>{const _0x501c18=_0x4712f6;_0x5a1363===W['ONLINE']?this[_0x501c18(0x3e6)]():_0x5a1363===W['OFFLINE']&&this[_0x501c18(0x402)]();}))),this[_0x4712f6(0x305)](a[_0x4712f6(0x4b3)](this[_0x4712f6(0x316)][_0x4712f6(0x309)][_0x4712f6(0x2d2)](_0x59c6dd=>{const _0x3dcbbe=_0x4712f6;try{const _0xd28812=_0x59c6dd[_0x3dcbbe(0x450)];_0xd28812===_[_0x3dcbbe(0x2dd)][_0x3dcbbe(0x276)]?this[_0x3dcbbe(0x463)](_['parseProtocolChangeset'](_0x59c6dd[_0x3dcbbe(0x233)])):_0xd28812===_[_0x3dcbbe(0x2dd)][_0x3dcbbe(0x3d5)]?this[_0x3dcbbe(0x196)](_0x59c6dd[_0x3dcbbe(0x233)]):_0xd28812===_['CollaborationEvent'][_0x3dcbbe(0x348)]?this[_0x3dcbbe(0x193)]():_0xd28812===_[_0x3dcbbe(0x2dd)][_0x3dcbbe(0x410)]&&this[_0x3dcbbe(0x259)](_0x59c6dd[_0x3dcbbe(0x233)][_0x3dcbbe(0x333)][_0x3dcbbe(0x26d)](_0x545c9c=>_[_0x3dcbbe(0x1bf)](_0x545c9c)));}catch(_0x18c5c7){throw console[_0x3dcbbe(0x172)]('Error\x20on\x20receiving\x20event',_0x18c5c7),_0x18c5c7;}}))),this[_0x4712f6(0x179)];}[_0x147aa9(0x26e)](){const _0x31965d=_0x147aa9;this[_0x31965d(0x441)]=!0x1;}[_0x147aa9(0x414)](){const _0x3aa5ca=_0x147aa9;if(this[_0x3aa5ca(0x441)])throw new Error(_0x3aa5ca(0x448));this[_0x3aa5ca(0x441)]=!0x0;}['_onLocalMutation'](_0x477d9f){const _0xcd20f2=_0x147aa9;this[_0xcd20f2(0x414)](),this[_0xcd20f2(0x188)](this[_0xcd20f2(0x179)][_0xcd20f2(0x328)](_0x477d9f)),this[_0xcd20f2(0x26e)]();}[_0x147aa9(0x463)](_0x51db39){const _0x41e14e=_0x147aa9;if(!(_0x51db39[_0x41e14e(0x377)]<=this[_0x41e14e(0x3c6)][_0x41e14e(0x26b)](this[_0x41e14e(0x25a)]))){if(this[_0x41e14e(0x27d)]){this['_remoteChangesetQueue'][_0x41e14e(0x4ad)](_0x51db39);return;}this[_0x41e14e(0x3d7)](_0x51db39);}}[_0x147aa9(0x177)](){const _0x50096c=_0x147aa9;this[_0x50096c(0x4af)][_0x50096c(0x1f0)](_0x362921=>this[_0x50096c(0x3d7)](_0x362921)),this[_0x50096c(0x4af)]=[];}[_0x147aa9(0x3d7)](_0x5f3f90){const _0x5538e2=_0x147aa9,_0x4e0a81=this[_0x5538e2(0x37d)][_0x5538e2(0x1b4)][_0x5538e2(0x29b)](this['_compressMutationService'][_0x5538e2(0x1b4)][_0x5538e2(0x30d)]()['COMPRESS_MUTATION_APPLY'])(_0x5f3f90['mutations'],null)||_0x5f3f90['mutations'],_0x377949={..._0x5f3f90,'mutations':_0x4e0a81};this[_0x5538e2(0x414)](),this[_0x5538e2(0x188)](this[_0x5538e2(0x179)]['onRemoteChangeset'](_0x377949)),this[_0x5538e2(0x26e)]();}['_onRemoteACK'](_0x6c8c76){const _0x2c910f=_0x147aa9;this[_0x2c910f(0x414)](),this['_updateState'](this[_0x2c910f(0x179)][_0x2c910f(0x3e9)](_0x6c8c76)),this[_0x2c910f(0x26e)]();}['_onRemoteRejected'](){const _0x23ddf6=_0x147aa9;this[_0x23ddf6(0x414)](),this['_updateState'](this[_0x23ddf6(0x179)][_0x23ddf6(0x459)]()),this[_0x23ddf6(0x26e)]();}['_onFetchMissResult'](_0xc0dd33){const _0x7f6d38=_0x147aa9;if(!(this[_0x7f6d38(0x179)]instanceof P))throw new TypeError(_0x7f6d38(0x344));const _0x2679e1=_0xc0dd33[_0x7f6d38(0x26d)](_0x26ca20=>{const _0x3a9578=_0x7f6d38,_0x41d123=this[_0x3a9578(0x37d)]['interceptor'][_0x3a9578(0x29b)](this[_0x3a9578(0x37d)][_0x3a9578(0x1b4)][_0x3a9578(0x30d)]()[_0x3a9578(0x261)])(_0x26ca20['mutations'],null)||_0x26ca20['mutations'];return{..._0x26ca20,'mutations':_0x41d123};});this[_0x7f6d38(0x414)](),this[_0x7f6d38(0x188)](this[_0x7f6d38(0x179)]['onMissedChangesetFetched'](_0x2679e1)),this[_0x7f6d38(0x26e)]();}[_0x147aa9(0x402)](){const _0x4e86dd=_0x147aa9;this[_0x4e86dd(0x414)](),this[_0x4e86dd(0x188)](this['_state'][_0x4e86dd(0x226)]()),this[_0x4e86dd(0x26e)]();}[_0x147aa9(0x3e6)](){const _0x564a04=_0x147aa9;this['_lockTransition'](),this[_0x564a04(0x188)](this[_0x564a04(0x179)][_0x564a04(0x4aa)]()),this[_0x564a04(0x26e)]();}async[_0x147aa9(0x3ba)](){return new Promise(_0xfdfdae=>{const _0x3a50df=_0x5bd1;this[_0x3a50df(0x316)][_0x3a50df(0x2ed)][_0x3a50df(0x2e4)](T[_0x3a50df(0x3e2)](0x1))[_0x3a50df(0x2d2)](async _0x421e5f=>{const _0x2abab0=_0x3a50df;_0xfdfdae(await this[_0x2abab0(0x1d3)](_0x421e5f===W[_0x2abab0(0x20a)]));});});}[_0x147aa9(0x171)](){const _0x1010ea=this['unitID'];return{'onStateChange':(_0x2b2aaa,_0x398b37)=>{const _0x4c4471=_0x5bd1;if(_0x2b2aaa!==this[_0x4c4471(0x179)])throw new Error(_0x4c4471(0x29d)+_0x2b2aaa[_0x4c4471(0x27f)]+_0x4c4471(0x324)+_0x398b37['status']+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x4c4471(0x188)](_0x398b37);},'onSendChangeset':_0x1f4362=>{const _0x2f49f8=_0x5bd1,_0xe04822={'eventID':_['CollaborationEvent'][_0x2f49f8(0x1ab)],'data':{'unitID':_0x1f4362[_0x2f49f8(0x25a)],'unitType':this['_type'],'changeset':_0x1f4362,'memberID':this['_session'][_0x2f49f8(0x287)]()}};this['_session']['send'](_0xe04822,this[_0x2f49f8(0x25a)]);},'onMissingChangesets':({from:_0x4d8592,to:_0x4aad84})=>{const _0x172790=_0x5bd1;this[_0x172790(0x17c)][_0x172790(0x2e8)](_0x172790(0x198),'fetching\x20missing\x20changesets\x20from\x20'+_0x4d8592+_0x172790(0x4c1)+_0x4aad84);const _0x184a0e={'eventID':_[_0x172790(0x2dd)][_0x172790(0x235)],'data':{'unitID':_0x1010ea,'unitType':this[_0x172790(0x2ea)],'from':_0x4d8592,'to':_0x4aad84}};this[_0x172790(0x316)][_0x172790(0x35d)](_0x184a0e,this[_0x172790(0x25a)]);}};}async[_0x147aa9(0x1d3)](_0x2a29ee){const _0x16ae2f=_0x147aa9;var _0x47d0d8,_0x8b7ddd;const _0x128cf9=await this[_0x16ae2f(0x3fe)]['loadOfflineData'](this[_0x16ae2f(0x25a)]),_0x5c37e9=(_0x47d0d8=_0x128cf9==null?void 0x0:_0x128cf9[_0x16ae2f(0x2a1)])!=null?_0x47d0d8:[],_0x375afe=(_0x8b7ddd=_0x128cf9==null?void 0x0:_0x128cf9['awaitingChangeset'])!=null?_0x8b7ddd:null,_0x4e967e=this['unitID'];try{this[_0x16ae2f(0x205)](_0x375afe,_0x5c37e9);}catch(_0x3b7930){this[_0x16ae2f(0x17c)][_0x16ae2f(0x172)](_0x3b7930);}const _0x4b1ce6=this[_0x16ae2f(0x171)]();if(_0x2a29ee){const _0x409796=St(this['_injector'],_0x4e967e,this[_0x16ae2f(0x2ea)],_0x375afe,_0x5c37e9,_0x4b1ce6);return _0x409796 instanceof $?_0x409796['_schedule']():(_0x409796 instanceof j||_0x409796 instanceof H)&&_0x409796['resend'](),_0x409796;}return this['_injector'][_0x16ae2f(0x229)](B,_0x4e967e,this['_type'],_0x375afe,_0x5c37e9,_0x4b1ce6);}[_0x147aa9(0x205)](_0x54c6a3,_0x2c7a31){const _0x31cea0=_0x147aa9;var _0x4562b5,_0x18e935;const _0x4fec37=this[_0x31cea0(0x37d)]['interceptor']['fetchThroughInterceptors'](this[_0x31cea0(0x37d)][_0x31cea0(0x1b4)][_0x31cea0(0x30d)]()[_0x31cea0(0x261)]);(_0x4562b5=_0x4fec37((_0x54c6a3==null?void 0x0:_0x54c6a3[_0x31cea0(0x2a1)])||[],null))==null||_0x4562b5[_0x31cea0(0x1f0)](_0x1c4a9f=>this['_commandService'][_0x31cea0(0x1fd)](_0x1c4a9f['id'],_0x1c4a9f[_0x31cea0(0x325)])),(_0x18e935=_0x4fec37(_0x2c7a31||[],null))==null||_0x18e935[_0x31cea0(0x1f0)](_0xa45ad9=>this['_commandService'][_0x31cea0(0x1fd)](_0xa45ad9['id'],_0xa45ad9['params']));}};me=pe([I(0x3,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),I(0x4,h['Inject'](exports[_0x147aa9(0x2b0)])),I(0x5,h[_0x147aa9(0x23d)](a[_0x147aa9(0x23b)])),I(0x6,h['Inject'](_[_0x147aa9(0x3f2)])),I(0x7,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),I(0x8,h[_0x147aa9(0x23d)](_[_0x147aa9(0x1a3)])),I(0x9,a[_0x147aa9(0x4be)]),I(0xa,a[_0x147aa9(0x496)]),I(0xb,N[_0x147aa9(0x3c5)]),I(0xc,h[_0x147aa9(0x2e5)](Ce))],me);let Le=class extends me{constructor(_0x1fad60,_0x25c736,_0x1453d1,_0xdeaa6d,_0x480b8a,_0x5a0ece,_0x317c78,_0x40fa41,_0x3718aa,_0x27499c,_0x3fd9e1,_0x4fbb57,_0x112cdf,_0x63ef44,_0xaa2753,_0x438b46,_0x3c327){const _0xc4a5b5=_0x147aa9;super(_0x1fad60,_0x25c736,_0x1453d1,_0xdeaa6d,_0x480b8a,_0x5a0ece,_0x317c78,_0x40fa41,_0x3718aa,_0x63ef44,_0xaa2753,_0x438b46,_0x3c327),this['unitID']=_0x1fad60,this[_0xc4a5b5(0x444)]=_0x25c736,this[_0xc4a5b5(0x4c6)]=_0x1453d1,this['_docStateChangeManagerService']=_0x27499c,this[_0xc4a5b5(0x3d9)]=_0x3fd9e1,this[_0xc4a5b5(0x28f)]=_0x4fbb57,this[_0xc4a5b5(0x379)]=_0x112cdf;}[_0x147aa9(0x171)](){const _0x5904af=_0x147aa9,_0x2406ae=super[_0x5904af(0x171)]();return _0x2406ae[_0x5904af(0x3fd)]=_0x28222c=>this[_0x5904af(0x3d9)]['transformIMECache'](_0x28222c),_0x2406ae[_0x5904af(0x2f6)]=_0x5ab8ca=>this['_docTransformSelectionsService']['transformSelections'](_0x5ab8ca),_0x2406ae[_0x5904af(0x3c8)]=_0x46daa1=>this[_0x5904af(0x379)][_0x5904af(0x464)](_0x46daa1),_0x2406ae[_0x5904af(0x497)]=_0x44f0e6=>this[_0x5904af(0x3d9)][_0x5904af(0x32a)](_0x44f0e6),_0x2406ae;}async[_0x147aa9(0x41a)](){const _0x55cea6=_0x147aa9,_0x3954a4=await super[_0x55cea6(0x41a)]();return this[_0x55cea6(0x21f)][_0x55cea6(0x29a)]['pipe'](v[_0x55cea6(0x2f7)](this[_0x55cea6(0x498)]))[_0x55cea6(0x2d2)](_0x4ce12a=>{const _0x31b1d6=_0x55cea6;if(_0x4ce12a==null)return;const {unitId:_0x427cfe,redoState:_0x462429,commandId:_0x11b2e6}=_0x4ce12a;if(_0x427cfe!==this['unitID'])return;const _0x8fc526={'id':_0x11b2e6,'type':a[_0x31b1d6(0x1ee)][_0x31b1d6(0x16d)],'params':{'unitId':_0x427cfe,'actions':_0x462429[_0x31b1d6(0x288)],'textRanges':null}};this['_onLocalMutation'](_0x8fc526);}),_0x3954a4;}};Le=pe([I(0x3,h['Inject'](h[_0x147aa9(0x461)])),I(0x4,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),I(0x5,h[_0x147aa9(0x23d)](a['UniverPermissionService'])),I(0x6,h[_0x147aa9(0x23d)](_['CompressMutationService'])),I(0x7,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),I(0x8,h[_0x147aa9(0x23d)](_['RevisionService'])),I(0x9,h[_0x147aa9(0x23d)](U['DocStateChangeManagerService'])),I(0xa,h[_0x147aa9(0x23d)](Se)),I(0xb,h[_0x147aa9(0x23d)](ve)),I(0xc,h[_0x147aa9(0x23d)](Be)),I(0xd,a[_0x147aa9(0x4be)]),I(0xe,a[_0x147aa9(0x496)]),I(0xf,N[_0x147aa9(0x3c5)]),I(0x10,h[_0x147aa9(0x2e5)](Ce))],Le);let Ue=class extends me{constructor(_0x28ef29,_0x53c309,_0x36b3cf,_0x516710,_0x50ed64,_0x19babc,_0x5d8103,_0x4038c4,_0x407ff6,_0x57a280,_0x529c6c,_0xf9cf3d,_0x306e12,_0x535ad9){const _0x15d8e1=_0x147aa9;super(_0x28ef29,_0x53c309,_0x36b3cf,_0x516710,_0x50ed64,_0x19babc,_0x5d8103,_0x4038c4,_0x407ff6,_0x529c6c,_0xf9cf3d,_0x306e12,_0x535ad9),this[_0x15d8e1(0x25a)]=_0x28ef29,this[_0x15d8e1(0x444)]=_0x53c309,this['session']=_0x36b3cf,this[_0x15d8e1(0x31d)]=_0x57a280;}[_0x147aa9(0x171)](){const _0xcf405c=_0x147aa9,_0x5f29ab=super[_0xcf405c(0x171)]();return _0x5f29ab[_0xcf405c(0x2f6)]=_0x4fa09e=>this[_0xcf405c(0x31d)][_0xcf405c(0x3f0)](_0x4fa09e),_0x5f29ab;}async[_0x147aa9(0x41a)](){const _0x4cfc71=_0x147aa9,_0x456ddb=await super[_0x4cfc71(0x41a)]();return this[_0x4cfc71(0x305)](this['_commandService'][_0x4cfc71(0x1a4)]((_0x531bd7,_0x3cf021)=>{const _0x1972bc=_0x4cfc71;if(_0x531bd7[_0x1972bc(0x444)]!==a[_0x1972bc(0x1ee)][_0x1972bc(0x16d)]||_0x3cf021!=null&&_0x3cf021[_0x1972bc(0x42d)]||_0x3cf021!=null&&_0x3cf021['onlyLocal'])return;const _0xa55d7d=_0x531bd7['params'];if((_0xa55d7d==null?void 0x0:_0xa55d7d[_0x1972bc(0x400)])!==this[_0x1972bc(0x25a)])return;const _0x3f4635=_0x531bd7,_0x5c1643=this[_0x1972bc(0x37d)][_0x1972bc(0x1b4)][_0x1972bc(0x29b)](this[_0x1972bc(0x37d)]['interceptor']['getInterceptPoints']()[_0x1972bc(0x18d)])([_0x3f4635],null)||[_0x3f4635];this[_0x1972bc(0x307)](_0x5c1643[0x0]);})),_0x456ddb;}};Ue=pe([I(0x3,h[_0x147aa9(0x23d)](h['Injector'])),I(0x4,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),I(0x5,h['Inject'](a[_0x147aa9(0x23b)])),I(0x6,h[_0x147aa9(0x23d)](_[_0x147aa9(0x3f2)])),I(0x7,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),I(0x8,h[_0x147aa9(0x23d)](_['RevisionService'])),I(0x9,h[_0x147aa9(0x23d)](fe)),I(0xa,a[_0x147aa9(0x4be)]),I(0xb,a[_0x147aa9(0x496)]),I(0xc,N['IMessageService']),I(0xd,h['Optional'](Ce))],Ue);const Qe=['purple300','jiqing500',_0x147aa9(0x1aa),_0x147aa9(0x462),_0x147aa9(0x1d8),_0x147aa9(0x2c8)];class Fe extends a[_0x147aa9(0x2a4)]{constructor(){const _0xcb8f4b=_0x147aa9;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0xcb8f4b(0x2bc),0x0);}[_0x147aa9(0x219)](_0x48a8a1){const _0x225e0d=_0x147aa9;if(this[_0x225e0d(0x29e)][_0x225e0d(0x24a)](_0x48a8a1))return this[_0x225e0d(0x29e)][_0x225e0d(0x1f9)](_0x48a8a1);const _0x15090a=Qe[this[_0x225e0d(0x2bc)]];return this[_0x225e0d(0x2bc)]=(this[_0x225e0d(0x2bc)]+0x1)%Qe['length'],this[_0x225e0d(0x29e)][_0x225e0d(0x2c0)](_0x48a8a1,_0x15090a),_0x15090a;}}var ss=(_0x4ab687,_0xe27b02,_0x5081e0,_0x13aea7)=>{const _0x23f877=_0x147aa9;for(var _0x3c6f32=_0xe27b02,_0xb3d67=_0x4ab687[_0x23f877(0x3f5)]-0x1,_0x522577;_0xb3d67>=0x0;_0xb3d67--)(_0x522577=_0x4ab687[_0xb3d67])&&(_0x3c6f32=_0x522577(_0x3c6f32)||_0x3c6f32);return _0x3c6f32;},q=(_0x15b2cf,_0x5f36fc)=>(_0x3ab26b,_0x19e480)=>_0x5f36fc(_0x3ab26b,_0x19e480,_0x15b2cf);const is=0x12c,ns=0x64,rs=()=>{let _0x4d9aa3=[],_0x17f100=!0x1;return _0x16a916=>{const _0x2bfeff=_0x5bd1;_0x4d9aa3[_0x2bfeff(0x4ad)](_0x16a916),_0x17f100||(_0x17f100=!0x0,setTimeout(()=>{const _0x511c34=_0x2bfeff;_0x4d9aa3[_0x511c34(0x1f0)](_0x35279a=>_0x35279a()),_0x4d9aa3=[],_0x17f100=!0x1;}));};};let Ne=class extends a[_0x147aa9(0x169)]{constructor(_0x1c1212,_0x530bb6,_0x11caad,_0xf9bcd0,_0x21c238,_0x48ef40,_0x28ba05,_0x26e498){const _0x340a09=_0x147aa9;super(),d(this,'_online',!0x1),d(this,_0x340a09(0x41a),!0x1),d(this,_0x340a09(0x336),new v[(_0x340a09(0x470))](new Map())),d(this,'cursorInfo$',this[_0x340a09(0x336)][_0x340a09(0x36f)]()),d(this,'_roomMembers$',new v[(_0x340a09(0x470))]([])),d(this,_0x340a09(0x3b4),this[_0x340a09(0x43f)][_0x340a09(0x2e4)](v[_0x340a09(0x27b)](is))),d(this,_0x340a09(0x42a),je((_0x3bfa03,_0x46868e)=>{const _0x103a24=_0x340a09,_0x2c2fbc={'eventID':_[_0x103a24(0x2dd)][_0x103a24(0x47e)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x103a24(0x287)](),'selection':Ge[_0x103a24(0x2f4)](_0x3bfa03,_0x46868e[_0x103a24(0x4cc)])}};this['_session'][_0x103a24(0x35d)](_0x2c2fbc,this[_0x103a24(0x25a)]);},ns)),(this[_0x340a09(0x25a)]=_0x1c1212,this[_0x340a09(0x316)]=_0x530bb6,this[_0x340a09(0x17d)]=_0x11caad,this[_0x340a09(0x22d)]=_0xf9bcd0,this['_memberService']=_0x21c238,this[_0x340a09(0x40c)]=_0x48ef40,this[_0x340a09(0x48e)]=_0x28ba05,this[_0x340a09(0x260)]=_0x26e498);}get[_0x147aa9(0x23a)](){const _0x4f14c5=_0x147aa9;return this[_0x4f14c5(0x336)][_0x4f14c5(0x290)]();}get[_0x147aa9(0x182)](){const _0x55f65c=_0x147aa9;return this[_0x55f65c(0x43f)]['getValue']();}[_0x147aa9(0x35b)](){const _0x20932a=_0x147aa9;super['dispose'](),this['_cursorInfo$'][_0x20932a(0x20f)](new Map()),this[_0x20932a(0x336)]['complete'](),this[_0x20932a(0x43f)]['next']([]),this['_roomMembers$']['complete']();}[_0x147aa9(0x24e)](){const _0x3fa61f=_0x147aa9;this['_init']||(this[_0x3fa61f(0x41a)]=!0x0,this['_session'][_0x3fa61f(0x2ed)][_0x3fa61f(0x2e4)](v[_0x3fa61f(0x2f7)](this[_0x3fa61f(0x498)]))[_0x3fa61f(0x2d2)](_0x2bf341=>{const _0x1d63c0=_0x3fa61f;_0x2bf341===W[_0x1d63c0(0x20a)]?this['_toggleOnline']():this[_0x1d63c0(0x402)]();}),this[_0x3fa61f(0x316)][_0x3fa61f(0x309)][_0x3fa61f(0x2e4)](v[_0x3fa61f(0x2f7)](this[_0x3fa61f(0x498)]))[_0x3fa61f(0x2d2)](_0xed5fc1=>{const _0x189a60=_0x3fa61f,_0x58f405=_0xed5fc1[_0x189a60(0x450)];_0x58f405===_[_0x189a60(0x2dd)][_0x189a60(0x47e)]&&this[_0x189a60(0x240)](_0xed5fc1),_0x58f405===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x189a60(0x256)](_0xed5fc1);}),this['_onRefRangeChange'](),this[_0x3fa61f(0x305)](this[_0x3fa61f(0x48e)][_0x3fa61f(0x1a4)](_0xaa93e2=>{const _0x410de8=_0x3fa61f;if(this[_0x410de8(0x347)]&&_0xaa93e2['id']===p[_0x410de8(0x170)]['id']&&_0xaa93e2[_0x410de8(0x325)][_0x410de8(0x400)]===this['unitID']){const _0x59ce98=_0xaa93e2[_0x410de8(0x325)];this[_0x410de8(0x42a)](_0x59ce98['subUnitId'],_0x59ce98[_0x410de8(0x490)][0x0]);}})));}[_0x147aa9(0x240)](_0x272d47){const _0x4ddcfd=_0x147aa9;var _0x55eef9,_0x2bebd1;const {memberID:_0xd9f49c,selection:_0x506cf0}=_0x272d47['data'],{sheetName:_0x36f23c,range:_0xede96a}=Ge['deserializeRangeWithSheet'](_0x506cf0),_0x1098e5={'name':(_0x2bebd1=(_0x55eef9=this[_0x4ddcfd(0x293)][_0x4ddcfd(0x249)](this[_0x4ddcfd(0x25a)],_0xd9f49c))==null?void 0x0:_0x55eef9[_0x4ddcfd(0x342)])!=null?_0x2bebd1:'Unknown\x20user','range':this['_getMergeRange'](_0x36f23c,_0xede96a),'sheetID':_0x36f23c,'color':this[_0x4ddcfd(0x22d)]['assignAColorForMemberID'](_0xd9f49c),'selection':_0x506cf0},_0x3e8d70=this[_0x4ddcfd(0x23a)];_0x3e8d70[_0x4ddcfd(0x2c0)](_0xd9f49c,_0x1098e5),this[_0x4ddcfd(0x336)][_0x4ddcfd(0x20f)](_0x3e8d70);}[_0x147aa9(0x256)](_0x4362fa){const _0x46bb90=_0x147aa9,{memberID:_0x457562}=_0x4362fa[_0x46bb90(0x233)],_0x375ea3=this['cursorInfo'];_0x375ea3[_0x46bb90(0x392)](_0x457562),this[_0x46bb90(0x336)][_0x46bb90(0x20f)](_0x375ea3);}[_0x147aa9(0x3b7)](_0x325d3e,_0x20453c){const _0x35eb82=_0x147aa9;var _0x57f073,_0x308bc0;const _0x3043e6=(_0x308bc0=(_0x57f073=this[_0x35eb82(0x40c)][_0x35eb82(0x20e)](this[_0x35eb82(0x25a)]))==null?void 0x0:_0x57f073['getSheetBySheetId'](_0x325d3e))==null?void 0x0:_0x308bc0[_0x35eb82(0x22e)]();return(_0x3043e6==null?void 0x0:_0x3043e6[_0x35eb82(0x373)](_0x2f1e99=>a[_0x35eb82(0x446)][_0x35eb82(0x257)](_0x2f1e99,_0x20453c)))||_0x20453c;}[_0x147aa9(0x37f)](){const _0x49915e=_0x147aa9,_0x3f7522=new a['DisposableCollection'](),_0x3b7cfc=rs(),_0x561ac2=()=>{const _0x184149=_0x5bd1;_0x3f7522[_0x184149(0x35b)]();const _0x404564=(_0x3d0466,_0x106a24,_0x3ace80,_0x79f075)=>{const _0x4dc081=_0x184149;let _0x48705c=[];switch(_0x3d0466['id']){case p[_0x4dc081(0x438)][_0x4dc081(0x24d)]:{_0x48705c=p[_0x4dc081(0x364)](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)][_0x4dc081(0x320)]:{_0x48705c=p[_0x4dc081(0x289)](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)][_0x4dc081(0x281)]:{_0x48705c=p[_0x4dc081(0x389)](_0x3d0466,_0x79f075);break;}case p['EffectRefRangId'][_0x4dc081(0x1a5)]:{_0x48705c=p[_0x4dc081(0x3ce)](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)]['InsertRangeMoveRightCommandId']:{_0x48705c=p['handleInsertRangeMoveRight'](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)][_0x4dc081(0x317)]:{_0x48705c=p[_0x4dc081(0x204)](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)][_0x4dc081(0x33e)]:{_0x48705c=p[_0x4dc081(0x3bd)](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)][_0x4dc081(0x32e)]:{_0x48705c=p[_0x4dc081(0x3d1)](_0x3d0466,_0x79f075);break;}case p['EffectRefRangId'][_0x4dc081(0x40a)]:{_0x48705c=p['handleIRemoveRow'](_0x3d0466,_0x79f075);break;}}const _0x57b5eb=p['runRefRangeMutations'](_0x48705c,_0x79f075),_0x400b92=this[_0x4dc081(0x23a)]['get'](_0x106a24);if(_0x400b92&&_0x57b5eb){const _0x30c445={..._0x400b92,'range':_0x57b5eb};this['cursorInfo']['set'](_0x106a24,_0x30c445),_0x3b7cfc(()=>{const _0x1c9437=_0x4dc081,_0x1b885a=this[_0x1c9437(0x260)]['registerRefRange'](_0x57b5eb,_0x4c7473=>(_0x1b885a[_0x1c9437(0x35b)](),_0x404564(_0x4c7473,_0x106a24,_0x3ace80,_0x57b5eb)));_0x3f7522[_0x1c9437(0x3c1)](_0x1b885a);});}return{'redos':[],'undos':[]};};this[_0x184149(0x23a)]['forEach']((_0x54a51e,_0x575729)=>{const _0x153a86=_0x184149,{range:_0x9e5b5b,sheetID:_0x53c98d}=_0x54a51e,_0x1cfcea=this['_refRangeService']['registerRefRange'](_0x9e5b5b,_0x247ece=>(_0x1cfcea[_0x153a86(0x35b)](),_0x404564(_0x247ece,_0x575729,_0x53c98d,_0x9e5b5b)));_0x3f7522[_0x153a86(0x3c1)](_0x1cfcea);});};this[_0x49915e(0x305)](a[_0x49915e(0x4b3)](this['_cursorInfo$'][_0x49915e(0x2d2)](()=>{_0x561ac2();})));}[_0x147aa9(0x3e6)](){const _0x56bfa4=_0x147aa9;var _0x568e1e,_0x2a3be5;if(this[_0x56bfa4(0x347)]=!0x0,((_0x568e1e=this[_0x56bfa4(0x40c)][_0x56bfa4(0x210)]())==null?void 0x0:_0x568e1e[_0x56bfa4(0x483)]())!==this[_0x56bfa4(0x25a)])return;const _0x5847b5=(_0x2a3be5=this[_0x56bfa4(0x17d)][_0x56bfa4(0x1f9)](p[_0x56bfa4(0x3a2)])[_0x56bfa4(0x326)]())==null?void 0x0:_0x2a3be5[0x0];_0x5847b5&&this[_0x56bfa4(0x42a)](this[_0x56bfa4(0x40c)][_0x56bfa4(0x28a)](a['UniverInstanceType'][_0x56bfa4(0x2af)])[_0x56bfa4(0x43d)]()[_0x56bfa4(0x1a2)](),_0x5847b5);}['_toggleOffline'](){const _0x2507ce=_0x147aa9;this[_0x2507ce(0x347)]=!0x1;}};Ne=ss([q(0x2,h['Inject'](h[_0x147aa9(0x461)])),q(0x3,h[_0x147aa9(0x23d)](Fe)),q(0x4,h['Inject'](V)),q(0x5,a[_0x147aa9(0x25d)]),q(0x6,a['ICommandService']),q(0x7,h['Inject'](p[_0x147aa9(0x359)]))],Ne);var os=(_0x5583c5,_0x1ea773,_0x199fb3,_0x4ad39a)=>{for(var _0x3f1918=_0x1ea773,_0x47a3a7=_0x5583c5['length']-0x1,_0x5d456f;_0x47a3a7>=0x0;_0x47a3a7--)(_0x5d456f=_0x5583c5[_0x47a3a7])&&(_0x3f1918=_0x5d456f(_0x3f1918)||_0x3f1918);return _0x3f1918;},F=(_0x5e939c,_0x5e67fb)=>(_0x5d55a4,_0x34249e)=>_0x5e67fb(_0x5d55a4,_0x34249e,_0x5e939c);const as=0x12c,cs=0x64;let Ae=class extends a['RxDisposable']{constructor(_0x51163e,_0x18d338,_0x3af592,_0x57d6d6,_0x585dba,_0x1785b8,_0x19dd03,_0xc4dab8,_0x48a524){const _0x408ebf=_0x147aa9;super(),d(this,_0x408ebf(0x347),!0x1),d(this,'_init',!0x1),d(this,_0x408ebf(0x336),new v[(_0x408ebf(0x470))](new Map())),d(this,_0x408ebf(0x467),this[_0x408ebf(0x336)][_0x408ebf(0x36f)]()),d(this,'_roomMembers$',new v['BehaviorSubject']([])),d(this,'roomMembers$',this[_0x408ebf(0x43f)][_0x408ebf(0x2e4)](v[_0x408ebf(0x27b)](as))),d(this,_0x408ebf(0x42a),je(_0x2ea601=>{const _0x5540c4=_0x408ebf,_0x519807={'eventID':_[_0x5540c4(0x2dd)][_0x5540c4(0x47e)],'data':{'unitID':this[_0x5540c4(0x25a)],'memberID':this[_0x5540c4(0x316)][_0x5540c4(0x287)](),'selection':dt(_0x2ea601)}};this[_0x5540c4(0x316)]['send'](_0x519807,this['unitID']);},cs)),(this[_0x408ebf(0x25a)]=_0x51163e,this[_0x408ebf(0x316)]=_0x18d338,this['_injector']=_0x3af592,this['_colorAssignService']=_0x57d6d6,this['_memberService']=_0x585dba,this[_0x408ebf(0x478)]=_0x1785b8,this[_0x408ebf(0x306)]=_0x19dd03,this[_0x408ebf(0x40c)]=_0xc4dab8,this[_0x408ebf(0x48e)]=_0x48a524);}get[_0x147aa9(0x23a)](){const _0x340a6c=_0x147aa9;return this[_0x340a6c(0x336)]['getValue']();}get[_0x147aa9(0x182)](){const _0x149983=_0x147aa9;return this[_0x149983(0x43f)][_0x149983(0x290)]();}['dispose'](){const _0x17f8b5=_0x147aa9;super[_0x17f8b5(0x35b)](),this[_0x17f8b5(0x336)]['next'](new Map()),this['_cursorInfo$'][_0x17f8b5(0x1d7)](),this[_0x17f8b5(0x43f)]['next']([]),this[_0x17f8b5(0x43f)]['complete']();}[_0x147aa9(0x24e)](){const _0x371c59=_0x147aa9;this[_0x371c59(0x41a)]||(this[_0x371c59(0x41a)]=!0x0,this['_session']['sessionStatus$'][_0x371c59(0x2e4)](v[_0x371c59(0x2f7)](this['dispose$']))[_0x371c59(0x2d2)](_0x371e5f=>{const _0x35441a=_0x371c59;_0x371e5f===W[_0x35441a(0x20a)]?this[_0x35441a(0x3e6)]():this[_0x35441a(0x402)]();}),this[_0x371c59(0x316)][_0x371c59(0x309)]['pipe'](v[_0x371c59(0x2f7)](this[_0x371c59(0x498)]))[_0x371c59(0x2d2)](_0xab4c35=>{const _0xeedd36=_0x371c59,_0x173e22=_0xab4c35[_0xeedd36(0x450)];_0x173e22===_['CollaborationEvent'][_0xeedd36(0x47e)]&&this[_0xeedd36(0x240)](_0xab4c35),_0x173e22===_['CollaborationEvent'][_0xeedd36(0x24f)]&&this['_onCursorDelete'](_0xab4c35);}),this[_0x371c59(0x305)](this[_0x371c59(0x48e)]['onCommandExecuted'](_0x59056c=>{const _0x40daf3=_0x371c59,_0x52caf6=_0x59056c[_0x40daf3(0x325)];_0x52caf6!=null&&this['_online']&&_0x59056c['id']===U[_0x40daf3(0x376)]['id']&&_0x52caf6[_0x40daf3(0x400)]===this[_0x40daf3(0x25a)]&&_0x52caf6[_0x40daf3(0x413)]===!0x1&&this[_0x40daf3(0x42a)](_0x52caf6[_0x40daf3(0x38c)]);})),this[_0x371c59(0x478)][_0x371c59(0x4ce)][_0x371c59(0x2e4)](v['takeUntil'](this[_0x371c59(0x498)]))[_0x371c59(0x2d2)](_0x1cc13d=>{const _0x21724f=_0x371c59;if((_0x1cc13d==null?void 0x0:_0x1cc13d['unitID'])!==this[_0x21724f(0x25a)])return;const _0x248c18={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x1cc13d};this[_0x21724f(0x240)](_0x248c18);}),this[_0x371c59(0x305)](this[_0x371c59(0x48e)][_0x371c59(0x1a4)](_0x2330e1=>{const _0x2278e6=_0x371c59;if(_0x2330e1[_0x2278e6(0x325)]==null)return;const _0x5f4544=_0x2330e1[_0x2278e6(0x325)];if(_0x2330e1['id']!==U[_0x2278e6(0x2a6)]['id']||_0x5f4544[_0x2278e6(0x400)]!==this[_0x2278e6(0x25a)])return;const _0x377a89={'id':_0x2278e6(0x1a6),'params':_0x5f4544},_0x1cd301=this[_0x2278e6(0x23a)];for(const [_0x2ccf66,_0x3f954c]of _0x1cd301){const _0x564a54={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2278e6(0x25a)],'actions':[],'textRanges':_0x3f954c[_0x2278e6(0x38c)]}},_0x34cd89=this[_0x2278e6(0x306)][_0x2278e6(0x1ec)](_0x377a89,_0x564a54,!0x1);if(_[_0x2278e6(0x3e1)](_0x34cd89))throw _0x34cd89[_0x2278e6(0x172)];_0x1cd301['set'](_0x2ccf66,{..._0x3f954c,'ranges':_0x34cd89['m2Prime']['params'][_0x2278e6(0x25f)]});}queueMicrotask(()=>{const _0x4d0888=_0x2278e6;this[_0x4d0888(0x336)][_0x4d0888(0x20f)](_0x1cd301);});})));}['_onCursorUpdate'](_0x2d11dd){const _0x33378a=_0x147aa9;var _0x19333b,_0x76f547;const {memberID:_0x487ae6,selection:_0x48ef62}=_0x2d11dd[_0x33378a(0x233)],_0x357f59=Jt(_0x48ef62),_0x312f32=(_0x76f547=(_0x19333b=this[_0x33378a(0x293)][_0x33378a(0x249)](this[_0x33378a(0x25a)],_0x487ae6))==null?void 0x0:_0x19333b[_0x33378a(0x342)])!=null?_0x76f547:_0x33378a(0x382),_0x2d7156={'color':this[_0x33378a(0x22d)][_0x33378a(0x219)](_0x487ae6),'name':_0x312f32,'ranges':_0x357f59},_0x57fec6=this['cursorInfo'];_0x57fec6['set'](_0x487ae6,_0x2d7156),this['_cursorInfo$']['next'](_0x57fec6);}[_0x147aa9(0x256)](_0x58e2f3){const _0x25b571=_0x147aa9,{memberID:_0x4da7ec}=_0x58e2f3[_0x25b571(0x233)],_0x4be126=this[_0x25b571(0x23a)];_0x4be126[_0x25b571(0x392)](_0x4da7ec),this[_0x25b571(0x336)]['next'](_0x4be126);}[_0x147aa9(0x3e6)](){const _0x54a2a0=_0x147aa9;var _0x534d0f;if(this['_online']=!0x0,((_0x534d0f=this[_0x54a2a0(0x40c)][_0x54a2a0(0x210)]())==null?void 0x0:_0x534d0f['getUnitId']())!==this['unitID'])return;const _0x9e83b4=this['_injector'][_0x54a2a0(0x1f9)](U[_0x54a2a0(0x216)])[_0x54a2a0(0x326)](),_0x3d48db=_0x9e83b4==null?void 0x0:_0x9e83b4[_0x54a2a0(0x26d)](U[_0x54a2a0(0x32c)]);Array[_0x54a2a0(0x488)](_0x3d48db)&&_0x3d48db[_0x54a2a0(0x3f5)]>0x0&&this[_0x54a2a0(0x42a)](_0x3d48db);}['_toggleOffline'](){const _0x2fddb2=_0x147aa9;this[_0x2fddb2(0x347)]=!0x1;}};Ae=os([F(0x2,h[_0x147aa9(0x23d)](h['Injector'])),F(0x3,h[_0x147aa9(0x23d)](Fe)),F(0x4,h[_0x147aa9(0x23d)](V)),F(0x5,h['Inject'](Be)),F(0x6,_[_0x147aa9(0x2ad)]),F(0x7,a['IUniverInstanceService']),F(0x8,a[_0x147aa9(0x496)])],Ae);var ls=(_0x3eab93,_0xda8d49,_0x210b13,_0x5226d3)=>{const _0xbd3919=_0x147aa9;for(var _0x534e48=_0xda8d49,_0x1fdc8d=_0x3eab93[_0xbd3919(0x3f5)]-0x1,_0x2d5c15;_0x1fdc8d>=0x0;_0x1fdc8d--)(_0x2d5c15=_0x3eab93[_0x1fdc8d])&&(_0x534e48=_0x2d5c15(_0x534e48)||_0x534e48);return _0x534e48;},Re=(_0x19db79,_0xfb7c8b)=>(_0x3f28db,_0x418ed7)=>_0xfb7c8b(_0x3f28db,_0x418ed7,_0x19db79);let J=class extends a[_0x147aa9(0x169)]{constructor(_0x352676,_0x15a7ea,_0x2d1c03){const _0x931727=_0x147aa9;super(),d(this,_0x931727(0x39f),new Map()),d(this,_0x931727(0x1b0),new v[(_0x931727(0x43c))]()),(this[_0x931727(0x40c)]=_0x352676,this['_injector']=_0x15a7ea,this[_0x931727(0x3fb)]=_0x2d1c03,this[_0x931727(0x41a)]());}[_0x147aa9(0x35b)](){const _0x5558fa=_0x147aa9;super[_0x5558fa(0x35b)](),this[_0x5558fa(0x1b0)]['complete'](),this['_entities'][_0x5558fa(0x1f0)](_0x4353de=>_0x4353de['dispose']());}[_0x147aa9(0x353)](_0x575023){const _0x3ce4b6=_0x147aa9;return this['_entities'][_0x3ce4b6(0x24a)](_0x575023)?this[_0x3ce4b6(0x39f)][_0x3ce4b6(0x1f9)](_0x575023)[_0x3ce4b6(0x467)]:this[_0x3ce4b6(0x1b0)]['pipe'](v[_0x3ce4b6(0x211)](_0x5c42c5=>_0x5c42c5[_0x3ce4b6(0x25a)]===_0x575023),v[_0x3ce4b6(0x418)](_0x353eba=>_0x353eba[_0x3ce4b6(0x467)]));}[_0x147aa9(0x41a)](){const _0x4d6ed6=_0x147aa9;this['_univerInstanceService'][_0x4d6ed6(0x362)](a[_0x4d6ed6(0x223)][_0x4d6ed6(0x2af)])[_0x4d6ed6(0x2e4)](v['takeUntil'](this[_0x4d6ed6(0x498)]))['subscribe'](async _0x35d7e8=>{const _0x12cf0c=_0x4d6ed6,_0x34baac=_0x35d7e8['getUnitId'](),_0x2a9174=await this[_0x12cf0c(0x22f)](_0x34baac);this['_entityInit$'][_0x12cf0c(0x20f)](_0x2a9174),this[_0x12cf0c(0x39f)][_0x12cf0c(0x2c0)](_0x34baac,_0x2a9174);}),this[_0x4d6ed6(0x40c)][_0x4d6ed6(0x362)](a[_0x4d6ed6(0x223)][_0x4d6ed6(0x374)])[_0x4d6ed6(0x2e4)](v[_0x4d6ed6(0x2f7)](this[_0x4d6ed6(0x498)]))[_0x4d6ed6(0x2e4)](v[_0x4d6ed6(0x211)](_0x4a110e=>!_0x4a110e['getUnitId']()[_0x4d6ed6(0x4a3)]('__')))['subscribe'](async _0xca5fcb=>{const _0x540c58=_0x4d6ed6,_0x5910b6=_0xca5fcb['getUnitId'](),_0x5fa242=await this['_startDocCollabCursor'](_0x5910b6);this[_0x540c58(0x1b0)][_0x540c58(0x20f)](_0x5fa242),this['_entities'][_0x540c58(0x2c0)](_0x5910b6,_0x5fa242);}),v[_0x4d6ed6(0x258)](this[_0x4d6ed6(0x40c)][_0x4d6ed6(0x263)](a[_0x4d6ed6(0x223)]['UNIVER_DOC']),this[_0x4d6ed6(0x40c)]['getTypeOfUnitDisposed$'](a[_0x4d6ed6(0x223)]['UNIVER_SHEET']))[_0x4d6ed6(0x2e4)](v['takeUntil'](this[_0x4d6ed6(0x498)]))['subscribe'](_0xc2e76b=>{const _0x59ad29=_0x4d6ed6,_0x242b9f=_0xc2e76b[_0x59ad29(0x483)](),_0x1fe472=this['_entities'][_0x59ad29(0x1f9)](_0x242b9f);_0x1fe472&&(_0x1fe472[_0x59ad29(0x35b)](),this['_entities']['delete'](_0x242b9f));});}async[_0x147aa9(0x22f)](_0x52d096){const _0x560fdc=_0x147aa9,_0x42e9d4=await this[_0x560fdc(0x3fb)]['requireSession'](_0x52d096),_0x460a2c=this[_0x560fdc(0x17d)][_0x560fdc(0x229)](Ne,_0x52d096,_0x42e9d4);return _0x460a2c[_0x560fdc(0x24e)](),_0x460a2c;}async['_startDocCollabCursor'](_0x4b08ed){const _0x28838c=_0x147aa9,_0x4e71e4=await this[_0x28838c(0x3fb)]['requireSession'](_0x4b08ed),_0x5ccaea=this[_0x28838c(0x17d)][_0x28838c(0x229)](Ae,_0x4b08ed,_0x4e71e4);return _0x5ccaea['init'](),_0x5ccaea;}};J=ls([a[_0x147aa9(0x4b5)](a[_0x147aa9(0x28e)][_0x147aa9(0x26c)],J),Re(0x0,a['IUniverInstanceService']),Re(0x1,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),Re(0x2,h[_0x147aa9(0x23d)](exports['CollaborationSessionService']))],J);const le=0x14,Ze=0xc8,ye=0x4,hs=0x5;function us(_0x5eb330,_0x52f61d){const _0x4ab5f5=_0x147aa9;let {radius:_0x177949,width:_0x4c9824,height:_0x12f251}=_0x52f61d;_0x177949=_0x177949!=null?_0x177949:0x0,_0x4c9824=_0x4c9824!=null?_0x4c9824:0x1e,_0x12f251=_0x12f251!=null?_0x12f251:0x1e;let _0x377de8=0x0,_0x1973ed=0x0,_0x1db37a=0x0;_0x377de8=_0x1973ed=_0x1db37a=Math[_0x4ab5f5(0x2ba)](_0x177949,_0x4c9824/0x2,_0x12f251/0x2),_0x5eb330[_0x4ab5f5(0x499)](),_0x5eb330[_0x4ab5f5(0x34b)](_0x377de8,0x0),_0x5eb330['lineTo'](_0x4c9824-_0x1973ed,0x0),_0x5eb330[_0x4ab5f5(0x3ca)](_0x4c9824-_0x1973ed,_0x1973ed,_0x1973ed,Math['PI']*0x3/0x2,0x0,!0x1),_0x5eb330[_0x4ab5f5(0x40f)](_0x4c9824,_0x12f251-_0x1db37a),_0x5eb330[_0x4ab5f5(0x3ca)](_0x4c9824-_0x1db37a,_0x12f251-_0x1db37a,_0x1db37a,0x0,Math['PI']/0x2,!0x1),_0x5eb330['lineTo'](0x0,_0x12f251),_0x5eb330[_0x4ab5f5(0x40f)](0x0,_0x377de8),_0x5eb330[_0x4ab5f5(0x3ca)](_0x377de8,_0x377de8,_0x377de8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5eb330[_0x4ab5f5(0x2ae)](),_0x52f61d[_0x4ab5f5(0x19a)]&&(_0x5eb330[_0x4ab5f5(0x246)](),_0x5eb330[_0x4ab5f5(0x1f4)]=_0x52f61d[_0x4ab5f5(0x19a)],_0x52f61d[_0x4ab5f5(0x3b1)]===_0x4ab5f5(0x2b8)?_0x5eb330[_0x4ab5f5(0x19a)](_0x4ab5f5(0x2b8)):_0x5eb330[_0x4ab5f5(0x19a)](),_0x5eb330['restore']());}class Ee extends R[_0x147aa9(0x3d6)]{constructor(_0x11c09c,_0xb0056c){const _0x139851=_0x147aa9;super(_0x11c09c,_0xb0056c),d(this,_0x139851(0x2ec)),d(this,_0x139851(0x427)),(this[_0x139851(0x2ec)]=_0xb0056c==null?void 0x0:_0xb0056c[_0x139851(0x2ec)],this['text']=_0xb0056c==null?void 0x0:_0xb0056c[_0x139851(0x427)]);}static['drawWith'](_0x19f75f,_0x3bc343){const _0x3ca4f6=_0x147aa9,{text:_0x223d3f,color:_0x4ccaa0}=_0x3bc343;_0x19f75f[_0x3ca4f6(0x246)](),_0x19f75f[_0x3ca4f6(0x4bf)]=_0x3ca4f6(0x2cc);const _0x26c071=_0x19f75f['measureText'](_0x223d3f)[_0x3ca4f6(0x31b)],_0x18b203=Math['min'](_0x26c071+0x2*ye,Ze);us(_0x19f75f,{'height':le,'radius':0x4,'width':_0x18b203,'fill':_0x4ccaa0,'evented':!0x1}),_0x19f75f['fillStyle']='#FFF';const _0x44581d=ye,_0x479b73=le-hs,_0x3388b9=Ze-0x2*ye;if(_0x26c071>_0x3388b9){let _0x4f29d3='',_0x517ab2=0x0;for(const _0x443448 of _0x223d3f){const _0x2aa041=_0x19f75f[_0x3ca4f6(0x19d)](_0x443448)[_0x3ca4f6(0x31b)];if(_0x517ab2+_0x2aa041<=_0x3388b9-_0x19f75f[_0x3ca4f6(0x19d)](_0x3ca4f6(0x1f2))[_0x3ca4f6(0x31b)])_0x4f29d3+=_0x443448,_0x517ab2+=_0x2aa041;else{_0x4f29d3+='...';break;}}_0x19f75f['fillText'](_0x4f29d3,_0x44581d,_0x479b73);}else _0x19f75f[_0x3ca4f6(0x46d)](_0x223d3f,_0x44581d,_0x479b73);_0x19f75f[_0x3ca4f6(0x4c3)]();}[_0x147aa9(0x36a)](_0x54d89f){const _0x1f8d4a=_0x147aa9;Ee[_0x1f8d4a(0x3dc)](_0x54d89f,this);}}const _s=0x1,ds=1.5;class gs extends R['Shape']{constructor(_0xf47538,_0x21c8e4){const _0x2c6fdb=_0x147aa9;super(_0xf47538,_0x21c8e4),d(this,_0x2c6fdb(0x338)),d(this,_0x2c6fdb(0x21b),!0x1),d(this,'_range'),d(this,_0x2c6fdb(0x1c8),''),d(this,'_labelPosition',_0x2c6fdb(0x4bb)),(_0x21c8e4&&this[_0x2c6fdb(0x300)](_0x21c8e4),this[_0x2c6fdb(0x492)]['add'](()=>this[_0x2c6fdb(0x300)]({'hovered':!0x0})),this['onPointerLeaveObserver']['add'](()=>this[_0x2c6fdb(0x300)]({'hovered':!0x1})));}['setShapeProps'](_0x50c368){const _0x3c91ed=_0x147aa9;var _0x2878cd,_0x57ef15,_0x534cd3,_0x520126,_0x529ce9;this[_0x3c91ed(0x338)]=(_0x2878cd=_0x50c368['color'])!=null?_0x2878cd:this[_0x3c91ed(0x338)],this['_hovered']=(_0x57ef15=_0x50c368[_0x3c91ed(0x361)])!=null?_0x57ef15:this[_0x3c91ed(0x21b)],this[_0x3c91ed(0x41b)]=(_0x534cd3=_0x50c368[_0x3c91ed(0x4cc)])!=null?_0x534cd3:this[_0x3c91ed(0x41b)],this['_name']=(_0x520126=_0x50c368['name'])!=null?_0x520126:this[_0x3c91ed(0x1c8)],this[_0x3c91ed(0x45d)]=(_0x529ce9=_0x50c368[_0x3c91ed(0x430)])!=null?_0x529ce9:this[_0x3c91ed(0x45d)],this[_0x3c91ed(0x2c6)]({'width':_0x50c368[_0x3c91ed(0x31b)],'height':_0x50c368[_0x3c91ed(0x2d5)]});}['onMouseMove'](_0x5c8b9f){const _0x37c871=_0x147aa9,{row:_0x34489d,column:_0x49af8c}=_0x5c8b9f;if(_0x34489d>=this['_range']['startRow']&&_0x34489d<=this['_range']['endRow']&&_0x49af8c>=this[_0x37c871(0x41b)][_0x37c871(0x493)]&&_0x49af8c<=this[_0x37c871(0x41b)][_0x37c871(0x360)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x37c871(0x300)]({'hovered':!0x1});}['triggerDblclick'](_0x1f0b11){return!0x1;}[_0x147aa9(0x36a)](_0x16d371){const _0x46f1a7=_0x147aa9;R[_0x46f1a7(0x319)][_0x46f1a7(0x3dc)](_0x16d371,{'width':this['width'],'height':this['height'],'strokeWidth':ds,'stroke':this[_0x46f1a7(0x338)],'evented':!0x1}),this[_0x46f1a7(0x21b)]&&(_0x16d371[_0x46f1a7(0x246)](),_0x16d371[_0x46f1a7(0x237)](0x1,0x0,0x0,0x1,this[_0x46f1a7(0x31b)],this[_0x46f1a7(0x45d)]===_0x46f1a7(0x197)?0x0:-le),Ee[_0x46f1a7(0x3dc)](_0x16d371,{'text':this[_0x46f1a7(0x1c8)],'color':this[_0x46f1a7(0x338)]}),_0x16d371[_0x46f1a7(0x4c3)]());}}var Ss=(_0x6a2f2,_0x44debe,_0x295483,_0x4ed3c4)=>{const _0x32b8d0=_0x147aa9;for(var _0x501bc0=_0x44debe,_0xe045b2=_0x6a2f2[_0x32b8d0(0x3f5)]-0x1,_0x388207;_0xe045b2>=0x0;_0xe045b2--)(_0x388207=_0x6a2f2[_0xe045b2])&&(_0x501bc0=_0x388207(_0x501bc0)||_0x501bc0);return _0x501bc0;},se=(_0x1e056e,_0x3c8967)=>(_0x33a856,_0x53ff3f)=>_0x3c8967(_0x33a856,_0x53ff3f,_0x1e056e);let _e=class extends a['RxDisposable']{constructor(_0x1d32ef,_0x3c89e7,_0x4fd9e6,_0x23dd22,_0x4c8935){const _0x466c62=_0x147aa9;super(),d(this,_0x466c62(0x251),new Set()),d(this,'_lastPointer',null),(this['_collabCursorController']=_0x1d32ef,this[_0x466c62(0x40c)]=_0x3c89e7,this[_0x466c62(0x330)]=_0x4fd9e6,this[_0x466c62(0x3de)]=_0x23dd22,this[_0x466c62(0x245)]=_0x4c8935,this[_0x466c62(0x41a)]());}[_0x147aa9(0x41a)](){const _0x555868=_0x147aa9;this[_0x555868(0x3de)][_0x555868(0x39a)]['pipe'](T['takeUntil'](this[_0x555868(0x498)]),T['switchMap'](_0x5e41ea=>{const _0x4d79ed=_0x555868;if(_0x5e41ea){const _0x2506ae=_0x5e41ea['sheetId'];return v[_0x4d79ed(0x3f7)](this[_0x4d79ed(0x3cc)][_0x4d79ed(0x353)](_0x5e41ea['unitId']),this[_0x4d79ed(0x245)]['currentTheme$'])['pipe'](T['map'](([_0x3b089b,_0x13fdfb])=>{const _0xd63cc9=_0x4d79ed,_0x2aca64=new Map();return _0x3b089b[_0xd63cc9(0x1f0)]((_0x2cd237,_0xa020ee)=>{const _0xea2f79=_0xd63cc9;if(_0x2cd237[_0xea2f79(0x351)]===_0x2506ae){const _0x4e381a={..._0x2cd237};_0x4e381a[_0xea2f79(0x2ec)]=_0x13fdfb[_0x2cd237['color']],_0x2aca64[_0xea2f79(0x2c0)](_0xa020ee,_0x4e381a);}}),{'skeleton':_0x5e41ea,'cursors':_0x2aca64};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x555868(0x2d2)](({skeleton:_0x54a6fd,cursors:_0x246182})=>{const _0x3d979e=_0x555868;this[_0x3d979e(0x3a4)](),_0x54a6fd&&this[_0x3d979e(0x2f3)](_0x54a6fd,_0x246182);}),this['_sheetSkeletonManagerService'][_0x555868(0x39a)]['subscribe'](_0x26b261=>{const _0x1b42b0=_0x555868;if(_0x26b261==null)return;const {unitId:_0x5cf002,skeleton:_0x1cc77f}=_0x26b261,_0x3d2860=this[_0x1b42b0(0x330)][_0x1b42b0(0x42f)](_0x5cf002);if(_0x3d2860==null)return;const {scene:_0x1fa04c}=_0x3d2860;_0x1fa04c[_0x1b42b0(0x366)][_0x1b42b0(0x3c1)](je(_0x5588d0=>{const _0x569f08=_0x1b42b0;var _0x2be082,_0x97b675;const {offsetX:_0x2c03bc,offsetY:_0x1d9952}=_0x5588d0,{x:_0x495516,y:_0x507138}=_0x1fa04c[_0x569f08(0x1ce)](R['Vector2'][_0x569f08(0x190)]([_0x2c03bc,_0x1d9952])),{scaleX:_0x2f7a4d,scaleY:_0x2245a5}=_0x1fa04c['getAncestorScale'](),_0x34b3eb=_0x1fa04c[_0x569f08(0x453)](oe['VIEWPORT_KEY'][_0x569f08(0x24c)]),_0x2c8f8e=_0x1fa04c[_0x569f08(0x163)](R[_0x569f08(0x17f)]['FromArray']([_0x495516,_0x507138]),_0x34b3eb),_0x2b0c80=_0x1cc77f['getCellPositionByOffset'](_0x2c03bc,_0x1d9952,_0x2f7a4d,_0x2245a5,_0x2c8f8e);((_0x2be082=this[_0x569f08(0x270)])==null?void 0x0:_0x2be082[_0x569f08(0x1f8)])===_0x2b0c80[_0x569f08(0x1f8)]&&((_0x97b675=this['_lastPointer'])==null?void 0x0:_0x97b675['row'])===_0x2b0c80['row']||this['_cursors']['forEach'](_0x5db6b9=>{_0x5db6b9['onMouseMove'](_0x2b0c80);});},0x64));});}[_0x147aa9(0x2f3)](_0x49dc51,_0x4ca142){const _0x1bcfe7=_0x147aa9;var _0x40799d;const _0x535424=(_0x40799d=this[_0x1bcfe7(0x3de)][_0x1bcfe7(0x44b)]())==null?void 0x0:_0x40799d[_0x1bcfe7(0x4a8)];if(!_0x535424)return;const _0x880dba=this['_getSheetObject']();if(!_0x880dba)return;this[_0x1bcfe7(0x251)]['forEach'](_0x40f7aa=>{const _0x4f1aec=_0x1bcfe7;_0x40f7aa[_0x4f1aec(0x429)]();});const {scene:_0x483e1c}=_0x880dba,_0x5d61f5=vs(Array[_0x1bcfe7(0x160)](_0x4ca142[_0x1bcfe7(0x274)]()))[_0x1bcfe7(0x26d)](_0x5e4720=>{const _0x1d76b2=_0x1bcfe7,{color:_0x1a8c9a,range:_0x1dbf78,name:_0x28d407,selection:_0x587ec5,sheetID:_0x268d8f}=_0x5e4720,{startColumn:_0x2b9c45,startRow:_0x27087f,endColumn:_0x540606,endRow:_0x570e9d}=_0x1dbf78,_0xc1d92d=oe[_0x1d76b2(0x1b2)](_0x27087f,_0x2b9c45,_0x483e1c,_0x535424),_0x260927=oe[_0x1d76b2(0x1b2)](_0x570e9d,_0x540606,_0x483e1c,_0x535424),{columnHeaderHeightAndMarginTop:_0x301af2}=_0x535424,{startX:_0x14465a,startY:_0x579ac2}=_0xc1d92d,{endX:_0x5f3aa8,endY:_0x40be36}=_0x260927,_0x33ecfd=_0x5f3aa8-_0x14465a,_0x5e53b8=_0x40be36-_0x579ac2,_0x126514={'labelPosition':_0x579ac2-_0x301af2>=le?'top':'bottom','sheetID':_0x268d8f,'range':_0x1dbf78,'color':_0x1a8c9a,'name':_0x28d407,'selection':_0x587ec5,'left':_0x14465a,'top':_0x579ac2,'width':_0x33ecfd,'height':_0x5e53b8,'evented':!0x1};return new gs(_0x28d407,_0x126514);});_0x483e1c[_0x1bcfe7(0x282)](_0x5d61f5,_s),this[_0x1bcfe7(0x251)]=new Set(_0x5d61f5);}[_0x147aa9(0x3a4)](){const _0x4bff8b=_0x147aa9;var _0x3d0db2;(_0x3d0db2=this[_0x4bff8b(0x251)])==null||_0x3d0db2[_0x4bff8b(0x1f0)](_0x12736b=>_0x12736b[_0x4bff8b(0x35b)]());}[_0x147aa9(0x331)](){const _0xfc001=_0x147aa9;return oe[_0xfc001(0x19f)](this[_0xfc001(0x40c)],this['_renderManagerService']);}};_e=Ss([a[_0x147aa9(0x4b5)](a['LifecycleStages'][_0x147aa9(0x48b)],_e),se(0x0,h[_0x147aa9(0x23d)](J)),se(0x1,a[_0x147aa9(0x25d)]),se(0x2,R[_0x147aa9(0x1d2)]),se(0x3,h[_0x147aa9(0x23d)](oe[_0x147aa9(0x419)])),se(0x4,h['Inject'](a[_0x147aa9(0x437)]))],_e);function vs(_0x4b9f19){const _0x571ade=_0x147aa9,_0x491372=new Map();return _0x4b9f19['forEach'](_0x3d438b=>{const _0x173a81=_0x5bd1;if(_0x491372[_0x173a81(0x24a)](_0x3d438b[_0x173a81(0x234)])){const _0x13422a=_0x491372['get'](_0x3d438b[_0x173a81(0x234)]);_0x13422a['name']+=',\x20'+_0x3d438b[_0x173a81(0x342)];}else _0x491372['set'](_0x3d438b[_0x173a81(0x234)],_0x3d438b);}),Array[_0x571ade(0x160)](_0x491372[_0x571ade(0x274)]());}var L=function(){const _0x568841=_0x147aa9;return L=Object[_0x568841(0x2b7)]||function(_0x13a252){const _0x2f1874=_0x568841;for(var _0x448627,_0x259824=0x1,_0x459f3b=arguments['length'];_0x259824<_0x459f3b;_0x259824++){_0x448627=arguments[_0x259824];for(var _0x15c74d in _0x448627)Object[_0x2f1874(0x465)][_0x2f1874(0x2cf)][_0x2f1874(0x354)](_0x448627,_0x15c74d)&&(_0x13a252[_0x15c74d]=_0x448627[_0x15c74d]);}return _0x13a252;},L[_0x568841(0x3b5)](this,arguments);},fs=function(_0x367975,_0x419ec2){const _0x5e6677=_0x147aa9;var _0x5363a1={};for(var _0x155471 in _0x367975)Object['prototype']['hasOwnProperty'][_0x5e6677(0x354)](_0x367975,_0x155471)&&_0x419ec2['indexOf'](_0x155471)<0x0&&(_0x5363a1[_0x155471]=_0x367975[_0x155471]);if(_0x367975!=null&&typeof Object[_0x5e6677(0x17b)]==_0x5e6677(0x271)){for(var _0x2725ef=0x0,_0x155471=Object[_0x5e6677(0x17b)](_0x367975);_0x2725ef<_0x155471['length'];_0x2725ef++)_0x419ec2[_0x5e6677(0x31a)](_0x155471[_0x2725ef])<0x0&&Object['prototype'][_0x5e6677(0x1ba)][_0x5e6677(0x354)](_0x367975,_0x155471[_0x2725ef])&&(_0x5363a1[_0x155471[_0x2725ef]]=_0x367975[_0x155471[_0x2725ef]]);}return _0x5363a1;},We=M[_0x147aa9(0x378)](function(_0x20688f,_0x4f82eb){const _0x4de3f6=_0x147aa9;var _0x5acf28=_0x20688f[_0x4de3f6(0x380)],_0x19256d=_0x20688f['id'],_0x44bf03=_0x20688f[_0x4de3f6(0x3f6)],_0x4ba739=_0x20688f[_0x4de3f6(0x337)],_0x560059=fs(_0x20688f,[_0x4de3f6(0x380),'id',_0x4de3f6(0x3f6),'extend']),_0x1f736d=_0x4de3f6(0x161)['concat'](_0x19256d,'\x20')[_0x4de3f6(0x3ec)](_0x44bf03||'')[_0x4de3f6(0x23e)](),_0x3d120c=M[_0x4de3f6(0x334)]('_'[_0x4de3f6(0x3ec)](Cs()));return vt(_0x5acf28,''[_0x4de3f6(0x3ec)](_0x19256d),{'defIds':_0x5acf28[_0x4de3f6(0x4ba)],'idSuffix':_0x3d120c[_0x4de3f6(0x381)]},L({'ref':_0x4f82eb,'className':_0x1f736d},_0x560059),_0x4ba739);});function vt(_0x26053b,_0x26c5be,_0x482d22,_0x5b7655,_0x49b128){const _0x5117e7=_0x147aa9;return M['createElement'](_0x26053b[_0x5117e7(0x232)],L(L({'key':_0x26c5be},ms(_0x26053b,_0x482d22,_0x49b128)),_0x5b7655),(Is(_0x26053b,_0x482d22)['children']||[])['map'](function(_0x35eae4,_0x154a10){const _0xcbaac6=_0x5117e7;return vt(_0x35eae4,''[_0xcbaac6(0x3ec)](_0x26c5be,'-')[_0xcbaac6(0x3ec)](_0x26053b[_0xcbaac6(0x232)],'-')[_0xcbaac6(0x3ec)](_0x154a10),_0x482d22,void 0x0,_0x49b128);}));}function ms(_0x55114c,_0x5e33d0,_0x1cf7a1){const _0x4c0c21=_0x147aa9;var _0x19cbaa=L({},_0x55114c[_0x4c0c21(0x2c5)]);_0x1cf7a1!=null&&_0x1cf7a1['colorChannel1']&&_0x19cbaa[_0x4c0c21(0x19a)]===_0x4c0c21(0x46c)&&(_0x19cbaa[_0x4c0c21(0x19a)]=_0x1cf7a1[_0x4c0c21(0x46c)]);var _0x5cc6ac=_0x5e33d0[_0x4c0c21(0x4ba)];return!_0x5cc6ac||_0x5cc6ac[_0x4c0c21(0x3f5)]===0x0||(_0x55114c[_0x4c0c21(0x232)]===_0x4c0c21(0x4a0)&&_0x19cbaa[_0x4c0c21(0x36c)]&&(_0x19cbaa[_0x4c0c21(0x36c)]=_0x19cbaa[_0x4c0c21(0x36c)]+_0x5e33d0['idSuffix']),Object[_0x4c0c21(0x4a6)](_0x19cbaa)[_0x4c0c21(0x1f0)](function(_0x3241c9){const _0x392df5=_0x4c0c21;var _0x104711=_0x3241c9[0x0],_0x42161b=_0x3241c9[0x1];typeof _0x42161b==_0x392df5(0x2ac)&&(_0x19cbaa[_0x104711]=_0x42161b[_0x392df5(0x47d)](/url\(#(.*)\)/,_0x392df5(0x1ad)[_0x392df5(0x3ec)](_0x5e33d0[_0x392df5(0x34a)],')')));})),_0x19cbaa;}function Is(_0x546187,_0x3979b6){const _0x585920=_0x147aa9;var _0x467776,_0x292d39=_0x3979b6['defIds'];return!_0x292d39||_0x292d39[_0x585920(0x3f5)]===0x0?_0x546187:_0x546187['tag']==='defs'&&(!((_0x467776=_0x546187[_0x585920(0x21e)])===null||_0x467776===void 0x0)&&_0x467776['length'])?L(L({},_0x546187),{'children':_0x546187[_0x585920(0x21e)][_0x585920(0x26d)](function(_0x5ad9ff){const _0x1e0e46=_0x585920;return typeof _0x5ad9ff['attrs']['id']==_0x1e0e46(0x2ac)&&_0x292d39&&_0x292d39['indexOf'](_0x5ad9ff[_0x1e0e46(0x2c5)]['id'])>-0x1?L(L({},_0x5ad9ff),{'attrs':L(L({},_0x5ad9ff[_0x1e0e46(0x2c5)]),{'id':_0x5ad9ff['attrs']['id']+_0x3979b6[_0x1e0e46(0x34a)]})}):_0x5ad9ff;})}):_0x546187;}function Cs(){const _0x322eea=_0x147aa9;return Math[_0x322eea(0x286)]()[_0x322eea(0x3a8)](0x24)[_0x322eea(0x30f)](0x2,0x8);}We[_0x147aa9(0x391)]=_0x147aa9(0x30a);var ps={'tag':_0x147aa9(0x33f),'attrs':{'fill':'none','viewBox':_0x147aa9(0x299),'width':_0x147aa9(0x4ca),'height':_0x147aa9(0x4ca)},'children':[{'tag':'g','attrs':{'clipPath':_0x147aa9(0x2d3)},'children':[{'tag':_0x147aa9(0x411),'attrs':{'stroke':_0x147aa9(0x1b8),'d':_0x147aa9(0x1c3),'strokeLinecap':_0x147aa9(0x202),'strokeLinejoin':_0x147aa9(0x202),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x147aa9(0x192),'attrs':{'id':_0x147aa9(0x167)},'children':[{'tag':'path','attrs':{'fill':_0x147aa9(0x46a),'d':_0x147aa9(0x3c4)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ft=M[_0x147aa9(0x378)](function(_0x5481f9,_0x243791){const _0x5c6091=_0x147aa9;return M['createElement'](We,Object[_0x5c6091(0x2b7)]({},_0x5481f9,{'id':_0x5c6091(0x16a),'ref':_0x243791,'icon':ps}));});ft['displayName']=_0x147aa9(0x318);var Es={'tag':_0x147aa9(0x33f),'attrs':{'fill':_0x147aa9(0x396),'viewBox':_0x147aa9(0x1c4),'width':_0x147aa9(0x4ca),'height':_0x147aa9(0x4ca)},'children':[{'tag':'g','attrs':{'clipPath':_0x147aa9(0x1b5)},'children':[{'tag':_0x147aa9(0x411),'attrs':{'stroke':'currentColor','d':_0x147aa9(0x45e),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x147aa9(0x411),'attrs':{'fill':_0x147aa9(0x46a),'d':_0x147aa9(0x3c4),'transform':_0x147aa9(0x386)}}]}]}],'defIds':[_0x147aa9(0x1b7)]},mt=M[_0x147aa9(0x378)](function(_0x623ecd,_0x3c7e91){const _0xaf6eb3=_0x147aa9;return M[_0xaf6eb3(0x2aa)](We,Object[_0xaf6eb3(0x2b7)]({},_0x623ecd,{'id':_0xaf6eb3(0x4c7),'ref':_0x3c7e91,'icon':Es}));});mt[_0x147aa9(0x391)]=_0x147aa9(0x3cb);const bs=_0x147aa9(0x357),Ts=_0x147aa9(0x1df),Rs=_0x147aa9(0x254),ys='univer-online',Os=_0x147aa9(0x42b),ie={'onlineStatusIcon':bs,'onlineStatusTitle':Ts,'onlineStatus':Rs,'online':ys,'offline':Os};function Ds(_0x5ad2b8){const _0x29168b=_0x147aa9;switch(_0x5ad2b8){case D[_0x29168b(0x253)]:return _0x29168b(0x2a9);case D[_0x29168b(0x283)]:return _0x29168b(0x368);case D[_0x29168b(0x183)]:return _0x29168b(0x2d1);case D[_0x29168b(0x449)]:return'collabStatus.notCollab';case D[_0x29168b(0x30b)]:case D[_0x29168b(0x424)]:case D[_0x29168b(0x4a7)]:return'collabStatus.syncing';case D[_0x29168b(0x388)]:return _0x29168b(0x474);}}function It(_0x59e802){const _0x712e0b=_0x147aa9,{status$:_0x95615c}=_0x59e802,_0x9ad4ef=N[_0x712e0b(0x443)](_0x95615c,D['NOT_COLLAB']),_0x6630dd=it['useDependency'](a[_0x712e0b(0x2fc)]),_0x1632ed=_0x9ad4ef!==D[_0x712e0b(0x253)],_0x3c2f2c=_0x6630dd['t'](Ds(_0x9ad4ef)),_0x4ecd9f=Lt(ie['onlineStatus'],{[ie['online']]:_0x1632ed,[ie['offline']]:!_0x1632ed}),_0x4c53f3=_0x1632ed?M['createElement'](mt,null):M[_0x712e0b(0x2aa)](ft,null);return M[_0x712e0b(0x2aa)](_0x712e0b(0x2f9),{'className':_0x4ecd9f},M['createElement'](_0x712e0b(0x2f9),{'className':ie[_0x712e0b(0x199)]},_0x4c53f3),M[_0x712e0b(0x2aa)]('div',{'className':ie[_0x712e0b(0x3ff)]},_0x3c2f2c));}var Ms=(_0x151c2c,_0xfbb2a,_0x3c7b52,_0x1ee291)=>{const _0x2de771=_0x147aa9;for(var _0x2eaa48=_0xfbb2a,_0x58afbe=_0x151c2c[_0x2de771(0x3f5)]-0x1,_0x1a9eca;_0x58afbe>=0x0;_0x58afbe--)(_0x1a9eca=_0x151c2c[_0x58afbe])&&(_0x2eaa48=_0x1a9eca(_0x2eaa48)||_0x2eaa48);return _0x2eaa48;},he=(_0x1894e4,_0x19e855)=>(_0x5e5090,_0x51e2ab)=>_0x19e855(_0x5e5090,_0x51e2ab,_0x1894e4);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x147aa9(0x2a4)]{constructor(_0x1a7143,_0xeb6281,_0x157b0c,_0xc28edb){const _0xc293d7=_0x147aa9;super(),d(this,'_status$',new v[(_0xc293d7(0x470))](D[_0xc293d7(0x449)])),(this[_0xc293d7(0x40c)]=_0x1a7143,this['_uiPartsService']=_0xeb6281,this[_0xc293d7(0x17d)]=_0x157b0c,this[_0xc293d7(0x3a1)]=_0xc28edb,this[_0xc293d7(0x298)](),this[_0xc293d7(0x34f)]());}[_0x147aa9(0x298)](){const _0x16251e=_0x147aa9;this['disposeWithMe'](this[_0x16251e(0x365)][_0x16251e(0x486)](N[_0x16251e(0x491)][_0x16251e(0x346)],()=>it[_0x16251e(0x27c)](ws({'status$':this['_status$'][_0x16251e(0x36f)]()}),this['_injector'])));}[_0x147aa9(0x34f)](){const _0x12763b=_0x147aa9;this['disposeWithMe'](a['toDisposable'](this[_0x12763b(0x40c)][_0x12763b(0x23f)]['pipe'](v['switchMap'](()=>{const _0x4ed61b=_0x12763b,_0x4009df=this[_0x4ed61b(0x40c)][_0x4ed61b(0x210)]();return _0x4009df?this['_collaborationController'][_0x4ed61b(0x3cf)](_0x4009df[_0x4ed61b(0x483)]()):v['of'](null);}),v['switchMap'](_0x2bfb07=>_0x2bfb07?_0x2bfb07['status$']:v['of'](D[_0x12763b(0x449)])))['subscribe'](_0x254ab4=>{const _0x5c780b=_0x12763b;this[_0x5c780b(0x3bb)][_0x5c780b(0x20f)](_0x254ab4);})));}},exports[_0x147aa9(0x2df)]=Ms([a[_0x147aa9(0x4b5)](a[_0x147aa9(0x28e)]['Starting'],exports[_0x147aa9(0x2df)]),he(0x0,a[_0x147aa9(0x25d)]),he(0x1,N['IUIPartsService']),he(0x2,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),he(0x3,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2d0)]))],exports['DesktopCollaborationStatusDisplayController']);function ws(_0x5636d1){const {status$:_0x2970b9}=_0x5636d1;return function(){return M['createElement'](It,{'status$':_0x2970b9});};}const Ve=h[_0x147aa9(0x311)](_0x147aa9(0x401));var Ls=(_0x2d9c23,_0xa63f3,_0x4b9212,_0x40974f)=>{const _0x26c157=_0x147aa9;for(var _0x32f953=_0xa63f3,_0x2a0051=_0x2d9c23[_0x26c157(0x3f5)]-0x1,_0x3f4012;_0x2a0051>=0x0;_0x2a0051--)(_0x3f4012=_0x2d9c23[_0x2a0051])&&(_0x32f953=_0x3f4012(_0x32f953)||_0x32f953);return _0x32f953;},X=(_0x3210d8,_0x2a7502)=>(_0x444cbc,_0x24d631)=>_0x2a7502(_0x444cbc,_0x24d631,_0x3210d8);exports[_0x147aa9(0x1d1)]=class extends a[_0x147aa9(0x169)]{constructor(_0x123764,_0x3fc40d,_0x58a39b,_0x501a2a,_0x218131,_0x288f22){const _0x550d3e=_0x147aa9;super(),this[_0x550d3e(0x1f5)]=_0x123764,this[_0x550d3e(0x17c)]=_0x3fc40d,this[_0x550d3e(0x48e)]=_0x58a39b,this['_localCacheService']=_0x501a2a,this[_0x550d3e(0x3c2)]=_0x218131,_0x288f22?_0x288f22==null||_0x288f22['whenReady']()[_0x550d3e(0x41f)](()=>this[_0x550d3e(0x41a)]()):(this[_0x550d3e(0x17c)][_0x550d3e(0x2e8)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x147aa9(0x41a)](){const _0x3f39dd=_0x147aa9,_0x5d6364=this[_0x3f39dd(0x1f5)][_0x3f39dd(0x2db)](_0x3f39dd(0x4a4)),_0x3af820=this['_urlService']['getParam'](_0x3f39dd(0x444));if(!_0x5d6364||!_0x3af820){this[_0x3f39dd(0x17c)][_0x3f39dd(0x2e8)](_0x3f39dd(0x208),_0x3f39dd(0x16f));return;}switch(Number(_0x3af820)){case k[_0x3f39dd(0x2af)]:{const _0x197874=await this[_0x3f39dd(0x4c8)](_0x5d6364);this[_0x3f39dd(0x2ff)](_0x197874);break;}case k[_0x3f39dd(0x374)]:{await this[_0x3f39dd(0x227)](_0x5d6364);break;}default:{this[_0x3f39dd(0x17c)][_0x3f39dd(0x172)](_0x3f39dd(0x208),_0x3f39dd(0x194));break;}}}async['_setupSubUnitSync'](_0x22ecf8){const _0x358a04=_0x147aa9;await this[_0x358a04(0x44f)](_0x22ecf8),_0x22ecf8[_0x358a04(0x35e)][_0x358a04(0x2e4)](v[_0x358a04(0x2f7)](this[_0x358a04(0x498)]))[_0x358a04(0x2d2)](_0xb466f1=>{const _0x290eca=_0x358a04;_0xb466f1&&this[_0x290eca(0x2e1)](_0xb466f1);}),this[_0x358a04(0x1f5)][_0x358a04(0x28c)][_0x358a04(0x2e4)](v[_0x358a04(0x2f7)](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x22ecf8));}['_updateURLWithCurrentState'](_0x1edec5,_0x100189=!0x1){const _0x123904=_0x147aa9,_0x5346a1=this[_0x123904(0x1f5)]['getParam'](_0x123904(0x426));_0x1edec5[_0x123904(0x1a2)]()!==_0x5346a1&&this[_0x123904(0x1f5)][_0x123904(0x2fe)](_0x123904(0x426),_0x1edec5[_0x123904(0x1a2)](),_0x100189);}async[_0x147aa9(0x44f)](_0x1d0ad4){const _0x1b4090=_0x147aa9,_0xa3bf77=this[_0x1b4090(0x1f5)][_0x1b4090(0x2db)](_0x1b4090(0x426));if(!_0xa3bf77||!_0x1d0ad4[_0x1b4090(0x37e)](_0xa3bf77)){this[_0x1b4090(0x2e1)](_0x1d0ad4['getActiveSheet'](),!0x0);return;}_0x1d0ad4[_0x1b4090(0x43d)]()[_0x1b4090(0x1a2)]()!==_0xa3bf77&&await this[_0x1b4090(0x48e)][_0x1b4090(0x1fd)](p[_0x1b4090(0x2e9)]['id'],{'unitId':_0x1d0ad4[_0x1b4090(0x483)](),'subUnitId':_0xa3bf77});}async[_0x147aa9(0x4c8)](_0x5b80a0){const _0x517bc=_0x147aa9;let _0x48bce3=0x0;const _0x1e9fd3=await this[_0x517bc(0x3fe)][_0x517bc(0x32f)](_0x5b80a0);return _0x1e9fd3&&(_0x1e9fd3[_0x517bc(0x421)]||_0x1e9fd3['mutations']['length']!==0x0)&&(_0x48bce3=_0x1e9fd3[_0x517bc(0x416)]),_0x48bce3===0x0&&this[_0x517bc(0x17c)][_0x517bc(0x2e8)]('[DataLoaderController]',_0x517bc(0x3ad)),this['_snapshotService'][_0x517bc(0x40d)](_0x5b80a0,_0x48bce3);}async[_0x147aa9(0x227)](_0x39df0f){const _0x52ef0a=_0x147aa9;let _0x2f6eae=0x0;const _0x17d3f0=await this[_0x52ef0a(0x3fe)][_0x52ef0a(0x32f)](_0x39df0f);return _0x17d3f0&&(_0x17d3f0[_0x52ef0a(0x421)]||_0x17d3f0[_0x52ef0a(0x2a1)][_0x52ef0a(0x3f5)]!==0x0)&&(_0x2f6eae=_0x17d3f0[_0x52ef0a(0x416)]),_0x2f6eae===0x0&&this['_logService']['debug'](_0x52ef0a(0x208),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x52ef0a(0x3c2)][_0x52ef0a(0x248)](_0x39df0f,_0x2f6eae);}},exports[_0x147aa9(0x1d1)]=Ls([a['OnLifecycle'](a[_0x147aa9(0x28e)]['Starting'],exports['DataLoaderController']),X(0x0,Ve),X(0x1,a[_0x147aa9(0x4be)]),X(0x2,a[_0x147aa9(0x496)]),X(0x3,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),X(0x4,h[_0x147aa9(0x23d)](_[_0x147aa9(0x48a)])),X(0x5,h[_0x147aa9(0x2e5)](Ut[_0x147aa9(0x4a1)]))],exports[_0x147aa9(0x1d1)]);var Us=(_0x528db4,_0x17e0b5,_0x378f2d,_0x2a1ce9)=>{const _0x344a23=_0x147aa9;for(var _0x3050ac=_0x17e0b5,_0x341cc9=_0x528db4[_0x344a23(0x3f5)]-0x1,_0x49bc55;_0x341cc9>=0x0;_0x341cc9--)(_0x49bc55=_0x528db4[_0x341cc9])&&(_0x3050ac=_0x49bc55(_0x3050ac)||_0x3050ac);return _0x3050ac;},et=(_0x39d2cd,_0x314aeb)=>(_0x94cefa,_0x2d6b70)=>_0x314aeb(_0x94cefa,_0x2d6b70,_0x39d2cd);const Ns=_0x147aa9(0x189),As=_0x147aa9(0x302);let de=class extends a[_0x147aa9(0x2a4)]{constructor(_0x4da59c,_0x153a78){const _0x1c130a=_0x147aa9;super(),this[_0x1c130a(0x40c)]=_0x4da59c,this['_configService']=_0x153a78,this['_init']();}[_0x147aa9(0x41a)](){const _0x1face1=_0x147aa9;this[_0x1face1(0x305)](a[_0x1face1(0x4b3)](this[_0x1face1(0x40c)][_0x1face1(0x23f)][_0x1face1(0x2d2)](()=>{const _0x431298=_0x1face1;var _0x11dec7;const _0x502392=this[_0x431298(0x40c)]['getFocusedUnit']();let _0x21c3f6=(_0x11dec7=this[_0x431298(0x266)][_0x431298(0x262)](Ns))!=null?_0x11dec7:As;_0x502392 instanceof a['Workbook']&&(_0x21c3f6=_0x502392[_0x431298(0x342)]),document[_0x431298(0x440)]=_0x21c3f6;})));}};de=Us([a[_0x147aa9(0x4b5)](a[_0x147aa9(0x28e)][_0x147aa9(0x37b)],de),et(0x0,a[_0x147aa9(0x25d)]),et(0x1,a[_0x147aa9(0x1d5)])],de);const ks={'collabStatus':{'fetchMiss':_0x147aa9(0x2c2),'conflict':_0x147aa9(0x166),'notCollab':_0x147aa9(0x456),'synced':_0x147aa9(0x1e8),'syncing':_0x147aa9(0x241),'offline':_0x147aa9(0x4ab)},'session':{'connection-failed':_0x147aa9(0x2d8),'will-retry':'连接失败,将在一会儿之后重试','room-full':_0x147aa9(0x3a3),'collaboration-timeout':'服务器未响应你的协同请求,你的编辑将在本地保存'},'conflict':{'title':_0x147aa9(0x19e),'content':'你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。'},'collaboration':{'single-unit':{'warning':_0x147aa9(0x399)}},'auth':{'needGotoLoginAlert':_0x147aa9(0x45b)}},Ct=ks;var $s=(_0x5eb3e6,_0x334bca,_0x225e31,_0x58b9ec)=>{const _0x7f79cd=_0x147aa9;for(var _0x363c1f=_0x334bca,_0x10b181=_0x5eb3e6[_0x7f79cd(0x3f5)]-0x1,_0x527d4f;_0x10b181>=0x0;_0x10b181--)(_0x527d4f=_0x5eb3e6[_0x10b181])&&(_0x363c1f=_0x527d4f(_0x363c1f)||_0x363c1f);return _0x363c1f;},tt=(_0x2e0ebe,_0x18fed2)=>(_0x3c2e0f,_0xd4e696)=>_0x18fed2(_0x3c2e0f,_0xd4e696,_0x2e0ebe);const pt=_0x147aa9(0x2fa),js='/universer-api/snapshot';let ke=class{constructor(_0x5075da,_0x9c79a4){const _0x122c88=_0x147aa9;this[_0x122c88(0x266)]=_0x5075da,this['_httpService']=_0x9c79a4;}async[_0x147aa9(0x489)](_0x351bc6,_0x3a1709){const _0x323452=_0x147aa9;var _0x2cba2b;const {unitID:_0x47c27f,type:_0x28ac19,revision:_0x2ef7b1=0x0}=_0x3a1709,_0x3af308=this[_0x323452(0x484)]()+'/'+_0x28ac19+'/unit/'+_0x47c27f+_0x323452(0x45c)+(_0x2ef7b1===0x1?0x0:_0x2ef7b1),_0x59a5a9=(await this[_0x323452(0x1c2)][_0x323452(0x1f9)](_0x3af308))['body'],_0x308a99=(_0x2cba2b=_0x59a5a9[_0x323452(0x176)])==null?void 0x0:_0x2cba2b['workbook'];if(_0x308a99){const _0x25f1b4=_0x308a99==null?void 0x0:_0x308a99[_0x323452(0x1ff)],_0x4e49af=a['textEncoder'][_0x323452(0x1e7)](a[_0x323452(0x17e)](_0x25f1b4));_0x308a99[_0x323452(0x1ff)]=_0x4e49af,Object[_0x323452(0x4a6)](_0x308a99['sheets'])[_0x323452(0x1f0)](([,_0x11f9d1])=>{const _0x4dad00=_0x323452,_0x3a7a86=_0x11f9d1[_0x4dad00(0x1ff)],_0x33caea=a['textEncoder'][_0x4dad00(0x1e7)](a[_0x4dad00(0x17e)](_0x3a7a86));_0x11f9d1[_0x4dad00(0x1ff)]=_0x33caea;});}return _0x59a5a9;}async['getSheetBlock'](_0x25e053,_0x57df7d){const _0x4265bf=_0x147aa9,{unitID:_0x1d5f88,type:_0x346887,blockID:_0x1ad482}=_0x57df7d,_0x382428=this[_0x4265bf(0x484)]()+'/'+_0x346887+'/unit/'+_0x1d5f88+'/block/'+_0x1ad482;return(await this['_httpService'][_0x4265bf(0x1f9)](_0x382428))['body'];}async[_0x147aa9(0x25b)](_0x141f22,_0x451df6){const _0x1f91fd=_0x147aa9,{unitID:_0x38c36a,type:_0x51b53d,from:_0x22495d,to:_0x36c9d6}=_0x451df6,_0xe4e65d=this[_0x1f91fd(0x484)]()+'/'+_0x51b53d+_0x1f91fd(0x3e8)+_0x38c36a+_0x1f91fd(0x3d2)+_0x22495d+'&to='+_0x36c9d6;return(await this[_0x1f91fd(0x1c2)]['get'](_0xe4e65d))[_0x1f91fd(0x44c)];}[_0x147aa9(0x484)](){const _0x157de3=_0x147aa9;var _0x44a11e;return(_0x44a11e=this[_0x157de3(0x266)][_0x157de3(0x262)](pt))!=null?_0x44a11e:js;}async[_0x147aa9(0x1db)](_0x3bd48d,_0x40601c){const _0xd63a4=_0x147aa9,_0x7973b7='/universer-api/snapshot/'+_0x40601c[_0xd63a4(0x444)]+'/unit/'+_0x40601c['unitID']+_0xd63a4(0x285);return(await this[_0xd63a4(0x1c2)]['get'](_0x7973b7,{'params':{'resourceId':JSON[_0xd63a4(0x2e6)](_0x40601c[_0xd63a4(0x2e3)])}}))[_0xd63a4(0x44c)];}['saveSnapshot'](){const _0x5a0f5f=_0x147aa9;throw new Error(_0x5a0f5f(0x38f));}[_0x147aa9(0x3b8)](){const _0x2a5c07=_0x147aa9;throw new Error(_0x2a5c07(0x38f));}['saveChangeset'](){const _0x395c2e=_0x147aa9;throw new Error(_0x395c2e(0x38f));}};ke=$s([tt(0x0,a[_0x147aa9(0x1d5)]),tt(0x1,h[_0x147aa9(0x23d)](A[_0x147aa9(0x40b)]))],ke);var Ps=(_0x49cf4a,_0x272854,_0x29fbdb,_0x80a36f)=>{const _0x3af650=_0x147aa9;for(var _0x31b00e=_0x272854,_0x4645e6=_0x49cf4a[_0x3af650(0x3f5)]-0x1,_0x3df0a0;_0x4645e6>=0x0;_0x4645e6--)(_0x3df0a0=_0x49cf4a[_0x4645e6])&&(_0x31b00e=_0x3df0a0(_0x31b00e)||_0x31b00e);return _0x31b00e;},ne=(_0x1cbb0c,_0x1c6ca6)=>(_0x421b81,_0x2d7894)=>_0x1c6ca6(_0x421b81,_0x2d7894,_0x1cbb0c);let $e=class extends a[_0x147aa9(0x2c4)]{constructor(_0x31dec1,_0xdeac58,_0x248397,_0x13f4af,_0x2eb1c7){const _0x102900=_0x147aa9;super(_0x31dec1,_0xdeac58,_0x248397),this['_transformService']=_0x13f4af,this[_0x102900(0x17c)]=_0x2eb1c7;}['transformUndoRedo'](_0x140444,_0x40abec){const _0x265f73=_0x147aa9,_0x1d8c02=this[_0x265f73(0x34c)](_0x140444);if(_0x1d8c02)try{const _0x6f7f8a=this[_0x265f73(0x415)](_0x1d8c02,_0x40abec);this[_0x265f73(0x2d6)](_0x140444,_0x6f7f8a);}catch(_0x241da9){this[_0x265f73(0x17c)][_0x265f73(0x172)](_0x265f73(0x36e),_0x241da9),this['_clearUndo'](_0x140444);}const _0x1b0627=this[_0x265f73(0x1a7)](_0x140444);if(_0x1b0627)try{const _0x1b7a0f=this['_transformStack'](_0x1b0627,_0x40abec);this[_0x265f73(0x32d)](_0x140444,_0x1b7a0f);}catch(_0x2fcdf4){this[_0x265f73(0x17c)][_0x265f73(0x172)](_0x2fcdf4),this['_clearRedo'](_0x140444);}}[_0x147aa9(0x184)](_0xe0f9f4){const _0x4f1207=_0x147aa9,_0x4c1ba4=this['_getUndoStack'](_0xe0f9f4);_0x4c1ba4&&(_0x4c1ba4['length']=0x0,this[_0x4f1207(0x18c)]());}[_0x147aa9(0x2fb)](_0x1e5799){const _0x28fbf3=_0x147aa9,_0x30cce6=this['_getRedoStack'](_0x1e5799);_0x30cce6&&(_0x30cce6[_0x28fbf3(0x3f5)]=0x0,this[_0x28fbf3(0x18c)]());}[_0x147aa9(0x2d6)](_0xa3d921,_0xa60e8a){const _0x26dd85=_0x147aa9;this[_0x26dd85(0x1dc)][_0x26dd85(0x2c0)](_0xa3d921,_0xa60e8a),this[_0x26dd85(0x18c)]();}['_substituteRedoStack'](_0x39e382,_0x5e5e24){const _0x37d196=_0x147aa9;this[_0x37d196(0x423)][_0x37d196(0x2c0)](_0x39e382,_0x5e5e24),this[_0x37d196(0x18c)]();}['_transformStack'](_0x2bbd88,_0x156eea){const _0x2eee8e=_0x147aa9,_0x21d07b=[];let _0x519385=_0x156eea,_0xdea5f7=_0x156eea;for(let _0x46d208=_0x2bbd88[_0x2eee8e(0x3f5)]-0x1;_0x46d208>=0x0;_0x46d208--){const {unitID:_0x42657e,undoMutations:_0x4519c0,redoMutations:_0x1dc8d4}=_0x2bbd88[_0x46d208],_0x32fdcb=this[_0x2eee8e(0x306)][_0x2eee8e(0x21a)](_0x519385,_0x4519c0),_0xe6d7f8=this[_0x2eee8e(0x306)]['transformMutationsWithChangeset'](_0xdea5f7,_0x1dc8d4);if(_[_0x2eee8e(0x3eb)](_0x32fdcb)||_[_0x2eee8e(0x3eb)](_0xe6d7f8)){this[_0x2eee8e(0x17c)]['error'](_0x2eee8e(0x36e),_0x2eee8e(0x3cd),_0x32fdcb,_0xe6d7f8);break;}_0x519385=_0x32fdcb[_0x2eee8e(0x252)],_0xdea5f7=_0xe6d7f8[_0x2eee8e(0x252)],_0x21d07b['push']({'unitID':_0x42657e,'undoMutations':_0x32fdcb[_0x2eee8e(0x1cd)],'redoMutations':_0xe6d7f8[_0x2eee8e(0x1cd)]});}return _0x21d07b[_0x2eee8e(0x3e0)]();}};$e=Ps([ne(0x0,a[_0x147aa9(0x25d)]),ne(0x1,a[_0x147aa9(0x496)]),ne(0x2,a[_0x147aa9(0x40e)]),ne(0x3,_['ITransformService']),ne(0x4,a[_0x147aa9(0x4be)])],$e);class Et extends a[_0x147aa9(0x169)]{constructor(){const _0x2e806f=_0x147aa9;super(),d(this,'urlChange$'),this['urlChange$']=v[_0x2e806f(0x164)](window,'popstate')[_0x2e806f(0x2e4)](v[_0x2e806f(0x2f7)](this[_0x2e806f(0x498)]),v[_0x2e806f(0x428)](0x1),v['mapTo'](void 0x0));}[_0x147aa9(0x2fe)](_0xa4e357,_0xac75d1,_0x19f111=!0x1){const _0x4691be=_0x147aa9,_0x575b79=new URL(window[_0x4691be(0x201)]['href']);_0x575b79[_0x4691be(0x39d)][_0x4691be(0x2c0)](_0xa4e357,_0xac75d1),_0x19f111?window[_0x4691be(0x203)][_0x4691be(0x390)]('','',_0x575b79[_0x4691be(0x3a8)]()):window[_0x4691be(0x203)][_0x4691be(0x3a0)]('','',_0x575b79[_0x4691be(0x3a8)]());}[_0x147aa9(0x37c)](_0x5adbc6,_0x44d1a7=!0x1){const _0x3c9214=_0x147aa9,_0x56e996=new URL(window[_0x3c9214(0x201)]['href']);_0x56e996[_0x3c9214(0x39d)]['delete'](_0x5adbc6),_0x44d1a7?window[_0x3c9214(0x203)][_0x3c9214(0x390)]('','',_0x56e996[_0x3c9214(0x3a8)]()):window['history'][_0x3c9214(0x3a0)]('','',_0x56e996[_0x3c9214(0x3a8)]());}['getParam'](_0x59f452){const _0x5a508d=_0x147aa9;var _0x9fd296;return(_0x9fd296=new URL(window['location'][_0x5a508d(0x47b)])['searchParams'][_0x5a508d(0x1f9)](_0x59f452))!=null?_0x9fd296:void 0x0;}}const Oe=_0x147aa9(0x312),xs=_0x147aa9(0x3e4),ue=0x6,Hs=1.5,De=0x4,Bs=1.5,Fs=_0x147aa9(0x4c5);class Ws{constructor(_0x439b35,_0x4fef7f,_0x34e12a,_0x1257ae){const _0x558a88=_0x147aa9;d(this,_0x558a88(0x162),[]),d(this,_0x558a88(0x173),null),d(this,_0x558a88(0x2d4),null),d(this,'_anchorDot',null),d(this,_0x558a88(0x3d3),null),d(this,'_eventUnsubscribe',null),(this['_cursor']=_0x439b35,this['_scene']=_0x4fef7f,this[_0x558a88(0x236)]=_0x34e12a,this[_0x558a88(0x1b3)]=_0x1257ae,this[_0x558a88(0x243)]());}set['_hover'](_0x216f88){const _0x32aaeb=_0x147aa9;_0x216f88?(this[_0x32aaeb(0x2d9)]&&this[_0x32aaeb(0x2d9)]['hide'](),this[_0x32aaeb(0x2d4)]&&this['_textBubble'][_0x32aaeb(0x1a1)]()):(this['_anchorDot']&&this[_0x32aaeb(0x2d9)][_0x32aaeb(0x1a1)](),this[_0x32aaeb(0x2d4)]&&this[_0x32aaeb(0x2d4)][_0x32aaeb(0x1d4)]());}[_0x147aa9(0x35b)](){const _0x58f41e=_0x147aa9;for(const _0x5662ee of this[_0x58f41e(0x162)])_0x5662ee['dispose']();this['_textBubble']&&this[_0x58f41e(0x2d4)][_0x58f41e(0x35b)](),this['_anchorDot']&&this[_0x58f41e(0x2d9)][_0x58f41e(0x35b)](),this[_0x58f41e(0x173)]&&this[_0x58f41e(0x173)][_0x58f41e(0x35b)](),this[_0x58f41e(0x187)]&&this[_0x58f41e(0x187)]();}[_0x147aa9(0x243)](){const _0x35f697=_0x147aa9,{_docSkeleton:_0x2ea5a4,_document:_0xde9d2e}=this,{color:_0x60dc1b,name:_0x103e5a,ranges:_0x1068a5}=this[_0x35f697(0x231)],_0x124617=_0xde9d2e[_0x35f697(0x1cb)](),{docsLeft:_0x3da706,docsTop:_0x37a416}=_0x124617,_0x2b77c8=new R[(_0x35f697(0x3f4))](_0x124617,_0x2ea5a4);for(const {startOffset:_0x122e14,endOffset:_0x22d68d,collapsed:_0x2aafeb,isActive:_0x4b6c7d}of _0x1068a5){const _0x433df1=_0x2ea5a4[_0x35f697(0x200)](_0x122e14),_0x1de6e5=_0x2ea5a4['findNodePositionByCharIndex'](_0x22d68d);if(_0x4b6c7d){const {contentBoxPointGroup:_0xb837c1}=_0x2b77c8[_0x35f697(0x345)](_0x1de6e5,_0x1de6e5);if(_0xb837c1['length']===0x0)continue;this['_drawAnchor'](_0x60dc1b,_0xb837c1,_0x3da706,_0x37a416,_0x103e5a),this[_0x35f697(0x187)]=this[_0x35f697(0x33b)]();}if(!_0x2aafeb){const {contentBoxPointGroup:_0x571ee6}=_0x2b77c8[_0x35f697(0x345)](_0x433df1,_0x1de6e5);if(_0x571ee6[_0x35f697(0x3f5)]===0x0)continue;this[_0x35f697(0x469)](_0x60dc1b,_0x571ee6,_0x3da706,_0x37a416);}}}[_0x147aa9(0x186)](_0x635009,_0x18653a,_0xbde413,_0x49f3de,_0x5f023d){const _0x2697b7=_0x147aa9,_0x1925d0=this['_getAnchorBounding'](_0x18653a),{left:_0x4d93f9,top:_0x53c1de,height:_0xb54a3f}=_0x1925d0,_0x4056ce=this[_0x2697b7(0x221)](),_0x41d9c9=Bs/_0x4056ce,_0x35f393=new R[(_0x2697b7(0x319))](Oe+a['Tools']['generateRandomId'](ue),{'left':_0x4d93f9+_0xbde413-_0x41d9c9,'top':_0x53c1de+_0x49f3de,'height':_0xb54a3f,'width':Hs,'fill':_0x635009||R['getColor'](a[_0x2697b7(0x321)][_0x2697b7(0x394)],0x0),'strokeWidth':_0x41d9c9,'stroke':Fs,'evented':!0x0});this['_anchor']=_0x35f393,this[_0x2697b7(0x425)]['addObject'](_0x35f393,R['TEXT_RANGE_LAYER_INDEX']);const _0x58ec05=new R[(_0x2697b7(0x319))](Oe+a[_0x2697b7(0x2bb)][_0x2697b7(0x214)](ue),{'left':_0x4d93f9+_0xbde413-_0x41d9c9,'top':_0x53c1de+_0x49f3de-De/0x2,'height':De,'width':De,'fill':_0x635009||R[_0x2697b7(0x2cd)](a['COLORS'][_0x2697b7(0x394)],0x0),'strokeWidth':0x0,'stroke':_0x635009||R[_0x2697b7(0x2cd)](a[_0x2697b7(0x321)]['black'],0x0),'evented':!0x1});this[_0x2697b7(0x2d9)]=_0x58ec05,this['_scene'][_0x2697b7(0x3e5)](_0x58ec05,R['TEXT_RANGE_LAYER_INDEX']);const _0xf5508b=new Ee(Oe+a[_0x2697b7(0x2bb)][_0x2697b7(0x214)](ue),{'left':_0x4d93f9+_0xbde413-_0x41d9c9,'top':_0x53c1de+_0x49f3de-le,'text':_0x5f023d,'color':_0x635009});this[_0x2697b7(0x2d4)]=_0xf5508b,this['_scene'][_0x2697b7(0x3e5)](_0xf5508b,R[_0x2697b7(0x4b8)]),this[_0x2697b7(0x487)]=!0x1;}[_0x147aa9(0x33b)](){const _0x3821c6=_0x147aa9,_0x3fc4bf=this['_anchor'][_0x3821c6(0x492)]['add'](()=>{this['_hover']=!0x0;}),_0x4bd6a2=this[_0x3821c6(0x173)][_0x3821c6(0x372)][_0x3821c6(0x3c1)](()=>{const _0x252e24=_0x3821c6;this['_hideTimer']&&clearTimeout(this[_0x252e24(0x3d3)]),this[_0x252e24(0x3d3)]=setTimeout(()=>{const _0x2c8485=_0x252e24;this[_0x2c8485(0x487)]=!0x1;},0x7d0);});return()=>{const _0x3bb9c8=_0x3821c6;var _0x48a1de,_0x20984a;(_0x48a1de=this['_anchor'])==null||_0x48a1de['onPointerEnterObserver'][_0x3bb9c8(0x1e4)](_0x3fc4bf),(_0x20984a=this[_0x3bb9c8(0x173)])==null||_0x20984a[_0x3bb9c8(0x372)][_0x3bb9c8(0x1e4)](_0x4bd6a2);};}[_0x147aa9(0x469)](_0x34fc0a,_0x5cb57f,_0x5f2fc3,_0x16c826){const _0xf08a06=_0x147aa9,_0x19b6b3=new a[(_0xf08a06(0x1c0))](_0x34fc0a)['setAlpha'](0.2)['toRgbString'](),_0xcde563=new R['RegularPolygon'](xs+a[_0xf08a06(0x2bb)][_0xf08a06(0x214)](ue),{'pointsGroup':_0x5cb57f,'fill':_0x19b6b3||R[_0xf08a06(0x2cd)](a['COLORS']['black'],0.2),'left':_0x5f2fc3,'top':_0x16c826,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xf08a06(0x162)][_0xf08a06(0x4ad)](_0xcde563),this[_0xf08a06(0x425)][_0xf08a06(0x3e5)](_0xcde563,R[_0xf08a06(0x4b8)]);}[_0x147aa9(0x31c)](_0x3df546){const _0x36e676=_0x3df546[0x0],_0x531dc9=_0x36e676[0x0],_0x43711f=_0x36e676[0x2],{x:_0x11d101,y:_0xb9e409}=_0x531dc9,{x:_0x187e2d,y:_0x1dc806}=_0x43711f;return{'left':_0x11d101,'top':_0xb9e409,'width':_0x187e2d-_0x11d101,'height':_0x1dc806-_0xb9e409};}[_0x147aa9(0x221)](){const _0x5e20f7=_0x147aa9,{scaleX:_0x41044a,scaleY:_0x2974f6}=this[_0x5e20f7(0x425)][_0x5e20f7(0x4ae)]();return Math['max'](_0x41044a,_0x2974f6);}}function _0x35f8(){const _0x5da20e=['isTransformMutationFailure','take','_unitStatus','collab-text-range-','addObject','_toggleOnline','[CollaborationSessionService]','/unit/','onRemoteAck','setTimeout','isTransformMutationsWithChangesetFailure','concat','_showConflictNotification','ThresholdInterceptorFactory','collaboration-client','transformSelections','all','CompressMutationService','transformUndoRedo','NodePositionConvertToCursor','length','className','combineLatest','IDLE','clearTimeout','LEAVE','_collabSessionService','_transformPreviousActiveRange','onTransformIME','_localCacheService','onlineStatusTitle','unitId','uni.network.url-service','_toggleOffline','flatMap','connection\x20error','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','120316KDzRnt','roomInfos','reduce','replaceTextRanges','RemoveRowCommandId','HTTPService','_univerInstanceService','loadSheet','IContextService','lineTo','PSEUDO_FETCH_MISSING_RESULT','path','_members','isEditing','_lockTransition','_transformStack','rev','_handleHeartbeatEvent','switchMap','SheetSkeletonManagerService','_init','_range','HEARTBEAT_INTERVAL_KEY','_onJoinRoomEvent','transformChangesets','then','pauseCollaboration','awaitingChangeset','symbol','_redoStacks','AWAITING','_scene','subunit','text','shareReplay','makeDirty','_updateLocalCursor','univer-offline','liveShareNewHost','fromCollab','removeMember','getRenderById','labelPosition','[PendingState]:\x20received\x20rejection.','DocSkeletonManagerService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UNKNOWN_CODE','conflict.content','@univerjs/rpc','ThemeService','EffectRefRangId','_selfUnitIDs','2145buijql','state$','Subject','getActiveSheet','sessionStatus','_roomMembers$','title','_transitionLocked','UNIVER_UNKNOWN','useObservable','type','_currentUser','Rectangle','setCurrentUser','[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.','NOT_COLLAB','IUndoRedoService','getCurrent','body','_scheduleReconnection','awaiting_with_pending','_updateSubUnitFromURLParams','eventID','defineProperty','RETRY_CONNECTING_MAX_COUNT','getViewport','@univerjs/network','5424195qZcofI','本地文件','LOGIN_URL_KEY','JOIN','onRemoteRej','univer-pro.collaboration-client-socket-service','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','/rev/','_labelPosition','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','rxjs','_sendHeartbeatTimer','Injector','red300','_onRemoteChangeset','syncEditingCollabCursor','prototype','code','cursorInfo$','_getLoginPath','_drawRange','#fff','_event$','colorChannel1','fillText','load','split','BehaviorSubject','concatMap','unshift','_beforeCloseService','collabStatus.synced','MessageType','USERS_ENTER','_config','_syncEditingCollabCursorService','_rescheduleHeartbeatEvent','_executeRemoteChangeset','href','_sessionStatus$','replace','UPDATE_CURSOR','[CollaborationState]:\x20apply\x20error!','_tryEnsureSocket','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','HEARTBEAT','getUnitId','_getAPIPrefixPath','transformIMECache','registerComponent','_hover','isArray','getUnitOnRev','SnapshotService','Steady','collaborationUniverTypes','_undoRedoService','_commandService','ws://127.0.0.1:8000/universer-api/comb/connect','selections','BuiltInUIPart','onPointerEnterObserver','startColumn','InsertSheetMutation','@univerjs/docs','ICommandService','onTransformRemoteChangesetByIMECache','dispose$','beginPath','_clearCollaborationTimeoutTimer','getItem','baseRev','[OfflineState]:\x20received\x20changeset.','newValue','Synced','use','IRemoteInstanceService','_onCombEvent','startsWith','unit','IBeforeCloseService','entries','AWAITING_WITH_PENDING','skeleton','csAckEvent','toggleOnline','编辑将在本地保存','setInterval','push','getAncestorScale','_remoteChangesetQueue','enUS','_saveCache','_fetchMissChangesets','toDisposable','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','OnLifecycle','setItem','LOCAL_CACHE_INTERVAL_KEY','TEXT_RANGE_LAYER_INDEX','_unitOnClients','defIds','top','_disableEditing','updateMember','ILogService','font','/new_changes','\x20to\x20','1315910xLIoYj','restore','@univerjs/core','rgba(255,\x20255,\x20255,\x200.01)','session','on-line-single','_loadSheet','_setupBeforeClosingHandler','1em','_transformUndoredo','range','parse','collabCursorState$','from','univerjs-icon\x20univerjs-icon-','_shapes','getScrollXYByRelativeCoords','fromEvent','resend','编辑冲突','off-line-single_clip0_910_343','_getCtorByUniverType','RxDisposable','off-line-single','disposeUnit','getUnitType','MUTATION','[OfflineState]:\x20received\x20rejection.','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SetSelectionsOperation','_createHandler','error','_anchor','/universer-api/comb','_heartbeatTimer','snapshot','_exhaustRemoteChangesetQueue','_retryConnectingTimer','_state','_onConnectionOpen','getOwnPropertySymbols','_logService','_injector','b64DecodeUnicode','Vector2','JOINING','RECV','roomMembers','FETCH_MISS','_clearUndo','?url=','_drawAnchor','_eventUnsubscribe','_updateState','DEFAULT_FILE_NAME','_checkMissing','conflict.title','_updateStatus','COMPRESS_MUTATION_SEND','RETRY_CONNECTING_INTERVAL','mapDocumentTypeToUniverType','FromArray','close','clipPath','_onRemoteRejected','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','WebSocketService','_onRemoteACK','bottom','[CollaborationEntity]','onlineStatusIcon','fill','_disabled','onStateChange','measureText','协同冲突','getSheetObject','SEND_CHANGESET_TIMEOUT_KEY','show','getSheetId','RevisionService','onCommandExecuted','InsertRangeMoveDownCommandId','doc.mutation.rich-text-editing','_getRedoStack','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','_notificationService','verdancy600','SUBMIT_CHANGESET','LIVESHARE_REQUEST_HOST','url(#$1','updateCursorEvent','_getDocObject','_entityInit$','clearInterval','getCoordByCell','_document','interceptor','url(#on-line-single_clip0_910_349)','_onUserJoin','on-line-single_clip0_910_349','currentColor','CollaborationStatusDisplay','propertyIsEnumerable','createSocket','session.connection-failed','onMissingChangesets','_id','parseProtocolChangeset','ColorKit','_state$','_httpService','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','0\x200\x2017\x2016','distinctUntilChanged','confirm','_scheduleClearOtherTimer','_name','LIVESHARE_TERMINATE','LOCAL_CACHE_INTERVAL','getOffsetConfig','_awaitingChangeset','m2Prime','getRelativeCoord','clear','CollaborationSession','DataLoaderController','IRenderManagerService','_createInitialStateImpl','hide','IConfigService','registerOnClose','complete','blue400','_localeService','_unitID','getResourcesRequest','_undoStacks','_messageService','deepClone','univer-online-status-title','/universer-api/oidc/authpage','_onRecvEvent','saveOfflineData','_removeClearOtherTimer','remove','INotificationService','some','encode','已保存','_collaborationTimeoutTimer','enableLocalCache','session.will-retry','transformMutation','_incrementRevisionNumber','CommandType','_queuedRemoteChangesets','forEach','close$','...','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','fillStyle','_urlService','getUnitStatus$','offline','column','get','280854siQPLO','invoke','464EhMFWV','executeCommand','_transformSelections','originalMeta','findNodePositionByCharIndex','location','round','history','handleInsertRow','_replayCachedMutations','_pendingMutations','@univerjs/sheets','[DataLoaderController]','status$','ONLINE','enableAuthServer','session.collaboration-timeout','[PendingState]:\x20received\x20acknowledgement.','getUniverSheetInstance','next','getFocusedUnit','filter','HEARTBEAT_INTERVAL','_scheduleHeartbeat','generateRandomId','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','TextSelectionManagerService','INGEST','_socketMessageSubscription','assignAColorForMemberID','transformMutationsWithChangeset','_hovered','memberID','userID','children','_docStateChangeManagerService','_ensureSubject','_getScale','onStarting','UniverInstanceType','incrementRevForDocument','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','toggleOffline','_loadDoc','unknown','createInstance','SEND_CHANGESET_TIMEOUT','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','includes','_colorAssignService','getMergeData','_startSheetCollabCursor','DisposableCollection','_cursor','tag','data','selection','FETCH_MISSING','_docSkeleton','transform','ILocalStorageService','TextX','cursorInfo','UniverPermissionService','ICollaborationSocketService','Inject','trim','focused$','_onCursorUpdate','保存中...','isTransformMutationsWithChangesetSuccess','_render','pluginName','_themeService','save','synced','loadDoc','getMember','has','_handler','VIEW_MAIN','DeleteRangeMoveLeftCommandId','init','USERS_LEAVE','getUndoRedoMutationParamsCache','_cursors','c1Prime','OFFLINE','univer-online-status','[CollaborationSession]','_onCursorDelete','contains','merge','_onFetchMissResult','unitID','fetchMissingChangesets','_ws','IUniverInstanceService','_scheduleTimestamp','textRanges','_refRangeService','COMPRESS_MUTATION_APPLY','getConfig','getTypeOfUnitDisposed$','encodeURIComponent','_updateLocalCache','_configService','IHTTPImplementation','error$','enableOfflineEditing','MSG_FOR_ERROR','getCurrentRevForDocument','Starting','map','_unlockTransition','XHRHTTPImplementation','_lastPointer','function','COLLAB_WEB_SOCKET_URL_KEY','Module','values','[SyncedState]:\x20received\x20acknowledgement.','NEW_CHANGESETS','save\x20fail\x20reason\x20is\x20','registerHTTPInterceptor','_transformRemoteChangesetByIMECache','_onConflict','debounceTime','connectInjector','_collaborationPaused','_socket$','status','getActiveRange','InsertColCommandId','addObjects','CONFLICT','_socketReady','/resources','random','getMemberID','actions','handleDeleteRangeMoveUp','getCurrentUnitForType','parseChangesetToProtocol','urlChange$','infoRsp','LifecycleStages','_docTransformSelectionsService','getValue','_cachedData','getRoom','_memberService','unsubscribe','Error','getCollabEntity','\x20-\x20','_initStatusComponent','0\x200\x2016\x2016','docStateChange$','fetchThroughInterceptors','_handleEvent','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_assignedColors','_localStorageService','_createSocket','mutations','HEARTBEAT_TIMEOUT_KEY','4ccWCLV','Disposable','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','RichTextEditingMutation','HELLO','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','collabStatus.offline','createElement','catch','string','ITransformService','closePath','UNIVER_SHEET','LocalCacheService','_schedule','@wendellhu/redi/react-bindings','CollaborationSocketService','ACTIVE_UNIT_EVENT_CHANNEL','HEARTBEAT_TIMEOUT','isActive','assign','evenodd','lodash/debounce','min','Tools','_colorIndex','storage','localeService','_clearOtherTimers','set','auth.needGotoLoginAlert','正在同步服务端数据...','2990200ajmuLh','LocalUndoRedoService','attrs','transformByState','onRemoteChangeset','gold400','LIVESHARE_NEW_HOST','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','_singleActiveUnitService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getColor','collaboration-client.offline-data-not-saved','hasOwnProperty','CollaborationController','collabStatus.fetchMiss','subscribe','url(#off-line-single_clip0_910_343)','_textBubble','height','_substituteUndoStack','UNIVER_SLIDE','连接失败,请检查你的网络','_anchorDot','currentTheme$','getParam','requireSession','CollaborationEvent','_getSaveTimeout','DesktopCollaborationStatusDisplayController','size','_updateURLWithCurrentState','slice','resourceIDs','pipe','Optional','stringify','pending','debug','SetWorksheetActivateCommand','_type','unload','color','sessionStatus$','_scheduleSaving','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','_waitForHeartbeatResponse','_clearHeartbeatTimer','serializeCombRequest','_updateCollabCursors','serializeRangeWithSheet','@univerjs/engine-render','onTransformSelections','takeUntil','OTHER_CLIENTS_EDITING','div','SNAPSHOT_SERVER_URL_KEY','_clearRedo','LocaleService','Warning','setParam','_setupSubUnitSync','setShapeProps','sequenceExecute','Univer','awaiting','Connection\x20failed,\x20please\x20check\x20your\x20network.','disposeWithMe','_transformService','_onLocalMutation','setEditable','event$','UniverIcon','PENDING','joinEvent','getInterceptPoints','univer-pro.collaboration-client.single-active-unit-service','substring','addEventListener','createIdentifier','collab-text-anchor-','WebURLService','editingUnit','_sendingTimer','_session','InsertRowCommandId','OffLineSingle','Rect','indexOf','width','_getAnchorBounding','_sheetTransformSelectionsService','_getSendChangesetTimeout','_startCollaboration','DeleteRangeMoveUpCommandId','COLORS','[CollaborationSessionService]:\x20socket\x20error','submit\x20changeset\x20error!','\x0aAfter:\x20','params','getSelections','CollaborationSessionService','appendMutation','SessionStatus','transformRemoteChangeset','CollaborationClientPlugin','serializeTextRange','_substituteRedoStack','RemoveColCommandId','loadOfflineData','_renderManagerService','_getSheetObject','_timeoutTimer','changesets','useRef','Local\x20file','_cursorInfo$','extend','_color','1922412zxeJbc','getTime','_handleHover','react','@univerjs/engine-formula','MoveRangeCommandId','svg','delay','socket\x20close','name','_retryCount','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getRangePointData','HEADER_MENU','_online','CHANGESET_REJ','toStringTag','idSuffix','moveTo','_getUndoStack','[OfflineState]:\x20received\x20acknowledgement.','leaveEvent','_initStatusListener','collaMsg','sheetID','_roomMembers','getCollabCursors$','call','@univerjs-pro/collaboration','_handleJoinEvent','univer-online-status-icon','_removeRoom','RefRangeService','CollaborationStatus','dispose','LIVESHARE_FETCH_OPERATIONS','send','activeSheet$','updateOfflineData','endColumn','hovered','getTypeOfUnitAdded$','1754sLVmor','handleDeleteRangeMoveLeft','_uiPartsService','onPointerMoveObserver','_getCurrentRevision','collabStatus.conflict','Collaboration\x20Conflict','_draw','_handleLeaveEvent','xlink:href','_clearLocalCache','[CollaborationUndoRedoService]','asObservable','_onConnectionFailed','state','onPointerLeaveObserver','find','UNIVER_DOC','UNKNOWN_CMD','SetTextSelectionsOperation','revision','forwardRef','_docSyncEditingCollabCursorService','isTransformChangesetsSuccess','Ready','removeParam','_compressMutationService','getSheetBySheetId','_onRefRangeChange','icon','current','Unknown\x20user','[SyncedState]:\x20received\x20rejection.','_syncEditingCollabCursor','_sendHeartbeat','translate(.97)','m1Prime','SYNCED','handleInsertCol','_http','_acknowledgedAwaitingChangeset','ranges','_joinRoom','_clearScheduledTask','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','replaceState','displayName','delete','csRejEvent','black','_exhaustSavingTask','none','_onMessage','_collabCursorState$','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','currentSkeleton$','NO_OTHER_CLIENTS_EDITING','_clearTimeoutTimer','searchParams','disableLocalCache','_entities','pushState','_collaborationController','SelectionManagerService','协同房间已满,你的编辑将在本地保存','_removeCollabCursors','ISnapshotServerService','_initModules','message$','toString','conflict','_scheduleCollaborationTimeoutTimer','IURLService','cmd','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','enableSingleActiveInstanceLock','collaboration.single-unit.warning','max','fillRule','socket\x20open.','_send','roomMembers$','apply','_snapshotServerService','_getMergeRange','saveSheetBlock','IMEInputManagerService','_createInitialState','_status$','_sessions','handleMoveRange','onSendChangeset','getCurrentUser','LIVESHARE_OPERATION','add','_snapshotService','FAIL','M0\x200H16V16H0z','IMessageService','_revisionService','fetch_missing','onSyncEditingCollabCursor','_submitChangeset','arc','OnLineSingle','_collabCursorController','transformStack\x20failed!','handleInsertRangeMoveDown','getCollabEntity$','open$','handleIRemoveCol','/fetchmissing?from=','_hideTimer','_socket','CHANGESET_ACK','Shape','_applyRemoteChangeset','socketService','_docTransformIMECacheService','_saveTaskMap','UNRECOGNIZED','drawWith','_univerPermissionService','_sheetSkeletonManagerService','routeKey','reverse'];_0x35f8=function(){return _0x5da20e;};return _0x35f8();}var Vs=(_0x140d6f,_0x1e5b5e,_0x17984e,_0xe32cfc)=>{const _0x2f3f26=_0x147aa9;for(var _0x7af970=_0x1e5b5e,_0x1d26dc=_0x140d6f[_0x2f3f26(0x3f5)]-0x1,_0x2e7fb4;_0x1d26dc>=0x0;_0x1d26dc--)(_0x2e7fb4=_0x140d6f[_0x1d26dc])&&(_0x7af970=_0x2e7fb4(_0x7af970)||_0x7af970);return _0x7af970;},re=(_0x4627e2,_0x4a56c)=>(_0x178c14,_0x1d1851)=>_0x4a56c(_0x178c14,_0x1d1851,_0x4627e2);let ge=class extends a[_0x147aa9(0x169)]{constructor(_0x322962,_0x8dc3e3,_0x4aab0a,_0x5d5573,_0x1e2e92){const _0x6726d=_0x147aa9;super(),d(this,_0x6726d(0x251),[]),(this[_0x6726d(0x3cc)]=_0x322962,this['_univerInstanceService']=_0x8dc3e3,this[_0x6726d(0x330)]=_0x4aab0a,this['_docSkeletonManagerService']=_0x5d5573,this[_0x6726d(0x245)]=_0x1e2e92,this[_0x6726d(0x41a)]());}['_init'](){const _0x12675d=_0x147aa9;this['_docSkeletonManagerService']['currentSkeleton$'][_0x12675d(0x2e4)](T['takeUntil'](this['dispose$']),T[_0x12675d(0x418)](_0x2a17af=>{const _0x4b5d46=_0x12675d;if(_0x2a17af){const {unitId:_0x69514a}=_0x2a17af;return v[_0x4b5d46(0x3f7)](this[_0x4b5d46(0x3cc)][_0x4b5d46(0x353)](_0x69514a),this['_themeService'][_0x4b5d46(0x2da)])[_0x4b5d46(0x2e4)](T[_0x4b5d46(0x26d)](([_0x9123e6,_0x14a498])=>({'skeleton':_0x2a17af,'cursors':[..._0x9123e6['values']()][_0x4b5d46(0x403)](_0x1b39c7=>({..._0x1b39c7,'color':_0x14a498[_0x1b39c7['color']]}))})));}return v['of']({'skeleton':null,'cursors':[]});}))[_0x12675d(0x2d2)](({skeleton:_0x12ffb1,cursors:_0x4ebd10})=>{const _0x3b2cd5=_0x12675d;this[_0x3b2cd5(0x3a4)](),_0x12ffb1&&this[_0x3b2cd5(0x2f3)](_0x12ffb1[_0x3b2cd5(0x4a8)],_0x4ebd10);});}[_0x147aa9(0x2f3)](_0x312492,_0xd715a5){const _0x476bd4=_0x147aa9,_0x3853ea=this['_getDocObject']();if(_0x3853ea==null)return;const {scene:_0x167c0b,document:_0x21c7ad}=_0x3853ea,_0x3df628=_0xd715a5[_0x476bd4(0x26d)](_0x54754e=>new Ws(_0x54754e,_0x167c0b,_0x312492,_0x21c7ad));this['_cursors']=_0x3df628;}[_0x147aa9(0x3a4)](){const _0x1bab2f=_0x147aa9;this[_0x1bab2f(0x251)][_0x1bab2f(0x1f0)](_0x444a2e=>_0x444a2e['dispose']()),this[_0x1bab2f(0x251)]=[];}[_0x147aa9(0x1af)](){const _0x4364f1=_0x147aa9;return U['getDocObject'](this['_univerInstanceService'],this[_0x4364f1(0x330)]);}};ge=Vs([a[_0x147aa9(0x4b5)](a[_0x147aa9(0x28e)][_0x147aa9(0x48b)],ge),re(0x0,h['Inject'](J)),re(0x1,a[_0x147aa9(0x25d)]),re(0x2,R[_0x147aa9(0x1d2)]),re(0x3,h[_0x147aa9(0x23d)](U[_0x147aa9(0x432)])),re(0x4,h[_0x147aa9(0x23d)](a[_0x147aa9(0x437)]))],ge);var Gs=(_0x4f56a9,_0x3e6ef6,_0x4bd060,_0x79e924)=>{const _0x5a3831=_0x147aa9;for(var _0x3a1101=_0x3e6ef6,_0x37fc70=_0x4f56a9[_0x5a3831(0x3f5)]-0x1,_0x293f16;_0x37fc70>=0x0;_0x37fc70--)(_0x293f16=_0x4f56a9[_0x37fc70])&&(_0x3a1101=_0x293f16(_0x3a1101)||_0x3a1101);return _0x3a1101;},Me=(_0x5a8716,_0x3b89a2)=>(_0x1b7938,_0x2f1e1e)=>_0x3b89a2(_0x1b7938,_0x2f1e1e,_0x5a8716);const bt=_0x147aa9(0x457),Ys=_0x147aa9(0x1e0);let Ie=class{constructor(_0x89df00,_0x3ba93d,_0x3c7726){const _0x4397fb=_0x147aa9;this[_0x4397fb(0x266)]=_0x89df00,this['_httpService']=_0x3ba93d,this[_0x4397fb(0x2be)]=_0x3c7726,this[_0x4397fb(0x24e)]();}[_0x147aa9(0x24e)](){const _0x55764a=_0x147aa9;this['_httpService'][_0x55764a(0x278)]({'priority':0x1,'interceptor':(_0x304ca5,_0x47f93b)=>_0x47f93b(_0x304ca5)[_0x55764a(0x2e4)](v[_0x55764a(0x471)](async _0xa4cab4=>{const _0x4a84c5=_0x55764a;if(_0xa4cab4[_0x4a84c5(0x27f)]===0x191&&window[_0x4a84c5(0x1c6)](this[_0x4a84c5(0x2be)]['t'](_0x4a84c5(0x2c1)))){const _0x455d71=window[_0x4a84c5(0x264)](window['location'][_0x4a84c5(0x47b)]);window[_0x4a84c5(0x201)][_0x4a84c5(0x47b)]=this[_0x4a84c5(0x468)]()+_0x4a84c5(0x185)+_0x455d71;}return _0xa4cab4;}))});}[_0x147aa9(0x468)](){const _0xdfd46a=_0x147aa9;var _0x37f40c;return(_0x37f40c=this[_0xdfd46a(0x266)][_0xdfd46a(0x262)](bt))!=null?_0x37f40c:Ys;}};Ie=Gs([Me(0x0,a[_0x147aa9(0x1d5)]),Me(0x1,h[_0x147aa9(0x23d)](A[_0x147aa9(0x40b)])),Me(0x2,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)]))],Ie);var Ks=(_0x40eadc,_0x51685e,_0x1ce0e9,_0x501fb8)=>{for(var _0x46c2c2=_0x51685e,_0x51dbdd=_0x40eadc['length']-0x1,_0x517f32;_0x51dbdd>=0x0;_0x51dbdd--)(_0x517f32=_0x40eadc[_0x51dbdd])&&(_0x46c2c2=_0x517f32(_0x46c2c2)||_0x46c2c2);return _0x46c2c2;},st=(_0x388422,_0xf1a7aa)=>(_0x47d0c5,_0x5eea95)=>_0xf1a7aa(_0x47d0c5,_0x5eea95,_0x388422);const qs=_0x147aa9(0x3ef);var we;exports[_0x147aa9(0x32b)]=(we=class extends a['Plugin']{constructor(_0x38895a,_0x265122,_0x525917){const _0x11c73e=_0x147aa9;super(),this[_0x11c73e(0x477)]=_0x38895a,this[_0x11c73e(0x17d)]=_0x265122,this[_0x11c73e(0x1d9)]=_0x525917,this['_localeService'][_0x11c73e(0x46e)]({'zhCN':Ct});}[_0x147aa9(0x222)](_0x3e5026){const _0xfe5f8a=_0x147aa9;var _0x37fdee,_0x4d92c4,_0x5a989f,_0x3a57fa,_0x12ccbd;_0x3e5026[_0xfe5f8a(0x47d)]([a[_0xfe5f8a(0x44a)],{'useClass':$e}]);let _0x2ad1ca=[[exports['CollaborationSessionService']],[Fe],[A[_0xfe5f8a(0x40b)]],[Ve,{'useClass':Et}],[V],[exports[_0xfe5f8a(0x2b0)]],[A['WebSocketService']],[fe],[ve],[Se],[Be],[Ie],[xe,{'useClass':(_0x4d92c4=(_0x37fdee=this[_0xfe5f8a(0x477)])==null?void 0x0:_0x37fdee[_0xfe5f8a(0x3d8)])!=null?_0x4d92c4:exports[_0xfe5f8a(0x2b3)]}],[A[_0xfe5f8a(0x267)],{'useClass':A[_0xfe5f8a(0x26f)]}],[a['ISnapshotServerService'],{'useClass':ke}],[exports[_0xfe5f8a(0x2d0)]],[exports[_0xfe5f8a(0x1d1)]],[exports[_0xfe5f8a(0x2df)]],[de],[J]];(_0x5a989f=this[_0xfe5f8a(0x477)])!=null&&_0x5a989f[_0xfe5f8a(0x3ae)]&&_0x2ad1ca['push']([Ce,{'useClass':Kt}]),((_0x3a57fa=this[_0xfe5f8a(0x477)])==null?void 0x0:_0x3a57fa[_0xfe5f8a(0x48c)])==null||this[_0xfe5f8a(0x477)][_0xfe5f8a(0x48c)]['includes'](a[_0xfe5f8a(0x223)][_0xfe5f8a(0x2af)])?_0x2ad1ca[_0xfe5f8a(0x4ad)]([_e]):this[_0xfe5f8a(0x477)][_0xfe5f8a(0x48c)][_0xfe5f8a(0x22c)](a[_0xfe5f8a(0x223)][_0xfe5f8a(0x374)])&&_0x2ad1ca['push']([ge]),_0x2ad1ca=a['mergeOverrideWithDependencies'](_0x2ad1ca,(_0x12ccbd=this[_0xfe5f8a(0x477)])==null?void 0x0:_0x12ccbd['override']),_0x2ad1ca[_0xfe5f8a(0x1f0)](_0x43a4f3=>_0x3e5026[_0xfe5f8a(0x3c1)](_0x43a4f3)),_0x3e5026[_0xfe5f8a(0x1f9)](A[_0xfe5f8a(0x40b)])[_0xfe5f8a(0x278)]({'priority':0x14,'interceptor':_0x3e5026[_0xfe5f8a(0x1fb)](A[_0xfe5f8a(0x3ee)],{'maxParallel':0x6})}),this[_0xfe5f8a(0x3a6)]();}[_0x147aa9(0x3a6)](){const _0x583b64=_0x147aa9;var _0x5f52e9,_0x1fb0b4;(_0x5f52e9=this[_0x583b64(0x477)])!=null&&_0x5f52e9[_0x583b64(0x269)]||this['_injector'][_0x583b64(0x1f9)](exports[_0x583b64(0x2b0)])['disableLocalCache'](),(_0x1fb0b4=this[_0x583b64(0x477)])!=null&&_0x1fb0b4[_0x583b64(0x20b)]&&this[_0x583b64(0x17d)][_0x583b64(0x1f9)](Ie);}},d(we,_0x147aa9(0x244),qs),we),exports[_0x147aa9(0x32b)]=Ks([st(0x1,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),st(0x2,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)]))],exports[_0x147aa9(0x32b)]);const Xs={'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x147aa9(0x335),'synced':_0x147aa9(0x49f),'syncing':'Syncing...','offline':_0x147aa9(0x2ca)},'session':{'connection-failed':_0x147aa9(0x304),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x147aa9(0x481),'collaboration-timeout':_0x147aa9(0x2ef)},'conflict':{'title':_0x147aa9(0x369),'content':_0x147aa9(0x1f3)},'collaboration':{'single-unit':{'warning':_0x147aa9(0x1a8)}},'auth':{'needGotoLoginAlert':_0x147aa9(0x2a8)}},Js=Xs;exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=ot,exports[_0x147aa9(0x272)]=ct,exports[_0x147aa9(0x35a)]=D,exports[_0x147aa9(0x1b9)]=It,exports[_0x147aa9(0x41c)]=lt,exports[_0x147aa9(0x2a2)]=He,exports[_0x147aa9(0x23c)]=xe,exports[_0x147aa9(0x3ab)]=Ve,exports[_0x147aa9(0x4b7)]=ut,exports[_0x147aa9(0x457)]=bt,exports[_0x147aa9(0x1a0)]=gt,exports[_0x147aa9(0x2fa)]=pt,exports[_0x147aa9(0x329)]=W,exports[_0x147aa9(0x313)]=Et,exports['deserializeToCombResponse']=nt,exports[_0x147aa9(0x4b0)]=Js,exports[_0x147aa9(0x2f2)]=rt,exports['zhCN']=Ct;
|
1
|
+
'use strict';const _0x5c8e6d=_0x2b59;(function(_0x470ec3,_0x58dd97){const _0x2fbe30=_0x2b59,_0x3bca27=_0x470ec3();while(!![]){try{const _0x1b7d17=parseInt(_0x2fbe30(0xfc))/0x1*(-parseInt(_0x2fbe30(0xfd))/0x2)+-parseInt(_0x2fbe30(0xc3))/0x3+-parseInt(_0x2fbe30(0x402))/0x4*(-parseInt(_0x2fbe30(0x283))/0x5)+parseInt(_0x2fbe30(0x134))/0x6*(-parseInt(_0x2fbe30(0x1a3))/0x7)+-parseInt(_0x2fbe30(0x1d8))/0x8*(-parseInt(_0x2fbe30(0x1e8))/0x9)+parseInt(_0x2fbe30(0x1f7))/0xa+parseInt(_0x2fbe30(0x6e))/0xb;if(_0x1b7d17===_0x58dd97)break;else _0x3bca27['push'](_0x3bca27['shift']());}catch(_0x1dd70f){_0x3bca27['push'](_0x3bca27['shift']());}}}(_0x2388,0x3a1a6));var jt=Object[_0x5c8e6d(0x3a5)],$t=(_0x4dcc25,_0x18fb80,_0x415177)=>_0x18fb80 in _0x4dcc25?jt(_0x4dcc25,_0x18fb80,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x415177}):_0x4dcc25[_0x18fb80]=_0x415177,d=(_0x96db94,_0x21fd35,_0x2be2fa)=>($t(_0x96db94,typeof _0x21fd35!=_0x5c8e6d(0x406)?_0x21fd35+'':_0x21fd35,_0x2be2fa),_0x2be2fa);Object['defineProperty'](exports,Symbol[_0x5c8e6d(0x267)],{'value':'Module'});function _0x2388(){const _0x2833fa=['_updateCollabCursors','black','executeCommand','mergeOverrideWithDependencies','saveOfflineData','univer-pro.collaboration-client-socket-service','state','LocalCacheService','_socketMessageSubscription','getActiveSheet','APPLY_REJECT','create','_sessions','path','override','\x0aCurrent:\x20','registerBeforeClose','VIEW_MAIN','clipPath','_assignedColors','editing\x20status\x20changed\x20to','conflict','_selfUnitIDs','_scheduleSaving','roomMembers$','split','params','CollaborationSessionService','_refRangeService','doc.mutation.rich-text-editing','_getSendChangesetTimeout','Unknown\x20user','ITransformService','getUnitId','unknown','deserializeRangeWithSheet','InsertRangeMoveRightCommandId','_change$','propertyIsEnumerable','lineTo','assign','dispose','on-line-single','SessionStatus','image/jpeg','NEW_CHANGESETS','INTERNAL_ERROR','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','_sendingTimer','_shapes','/unit/','_renderManagerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/object','DesktopCollaborationStatusDisplayController','_onUserJoin','getOwnPropertyDescriptor','_entityInit$','[UniverCollaborationClientPlugin]','@wendellhu/redi','encodeURIComponent','[CollaborationUndoRedoService]','_HTTPService','localeService','CollaborationSession','_updateLocalCache','@univerjs/design','pushState','transformSelections','IRenderManagerService','stringify','forEach','debug','session.connection-failed','_scene','_loadDoc','USERS_ENTER','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','@univerjs/docs','findNodePositionByCharIndex','subUnitId','icon','_scheduleHeartbeat','message$','selections','current','_drawAnchor','_drawRange','idSuffix','_socketService','set','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','CollaborationController','_sheetTransformSelectionsService','_toggleOffline','url','href','disposeUnit','selection','@univerjs/sheets','\x20-\x20','...','ThemeService','enableLocalCache','RichTextEditingMutation','_beforeCloseService','defineProperty','_revisionService','setInterval','updateCursorEvent','open$','updatePermissionPoint','arc','json','getCollabEntity','COLLAB_WEB_SOCKET_URL_KEY','M0\x200H16V16H0z','_roomMembers','IUniverInstanceService','setCurrentUser','_retryCount','collab-text-range-','resourceIDs','[SyncedState]:\x20received\x20rejection.','registerComponent','batchAllowed','ISnapshotServerService','getValue','onlineStatusTitle','OTHER_CLIENTS_EDITING','getFocusedUnit','YUUMI_URL_COL_OUT_OF_RANGE','reverse','_handler','MessageType','_startSheetCollabCursor','_cursor','_transformIMECache','UNIVER_DOC','getOwnPropertySymbols','svg','_scheduleReconnection','toDisposable','_onRefRangeChange','SelectionManagerService','getParam','_color','getUnitOnRev','eventID','_scheduleClearOtherTimer','image/png','/universer-api/file/{fileID}/sign-url','#fff','_initStatusListener','use','APPLY_REVISION_CONFILICT','PERMISSION_DENIED','loadOfflineData','_fetchMissChangesets','useObservable','fillText','getUnitType','COMPRESS_MUTATION_SEND','JSONX','[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.','Error','1em','routeKey','storage','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','getCoordByCell','_removeClearOtherTimer','complete','_type','OnLifecycle','Subject','_showConflictNotification','BuiltInUIPart','handleInsertRangeMoveDown','CommandType','collaboration.single-unit.warning','cursorInfo','result','_executeRemoteChangeset','_onRemoteACK','sessionStatus$','LIVESHARE_NEW_HOST','resolve','_configService','LICENSE_IMPORT_SIZE_EXCEEDED','onPointerLeaveObserver','addImageSourceCache','transformMutationsWithChangeset','handleDeleteRangeMoveLeft','IConfigService','collabStatus.conflict','PENDING','_range','image/bmp','200128RxyrCI','_anchorDot','addObject','LocaleService','symbol','tag','_unitId','_setupBeforeClosingHandler','RegularPolygon','Disposable','_docStateChangeManagerService','ImageSourceType','RemoveRowCommandId','onPointerMoveObserver','changesets','urlChange$','#FFF','rxjs/operators','colorChannel1','_collaborationTimeoutTimer','sessionStatus','DataLoaderController','transformStack\x20failed!','_name','TOO_MANY_REQUESTS','_exhaustSavingTask','FAIL','handleInsertRow','_joinRoom','_getMergeRange','InsertRangeMoveDownCommandId','LICENSE_DISTRO_REJECTED','putCollaborators','CHANGESET_REJ','createInstance','SetSelectionsOperation','image/gif','USERS_LEAVE','_docSkeleton','_onJoinRoomEvent','incrementRevForDocument','Shape','UNKNOWN_CMD','currentColor','_imageSourceCache','4794218wVovEL','startRow','url(#off-line-single_clip0_910_343)','restore','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','registerRefRange','UNIVER_SLIDE','_getScale','@univerjs/core','OffLineSingle','top','_hover','length','color','_rescheduleHeartbeatEvent','LICENSE_EXPORT_SIZE_EXCEEDED','_collaborationController','offline','createIdentifier','/role','PSEUDO_FETCH_MISSING_RESULT','_clearCollaborationTimeoutTimer','infoRsp','_getDocObject','TEXT_RANGE_LAYER_INDEX','LifecycleStages','clearTimeout','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_init','SYNCED','_createInitialStateImpl','status$','SNAPSHOT_URL_KEY','fillRule','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_replaceFileID','_onRemoteRejected','catch','_transitionLocked','data','CollaborationStatusDisplay','/universer-api/oidc/authpage','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','then','_urlService','baseRev','cmd','getUnitStatus$','searchParams','collabStatus.notCollab','docStateChange$','createElement','onRemoteRej','/universer-api/snapshot','send','transformChangesets','ERROR_EXCEED_SIZE','onRemoteChangeset','auth.needGotoLoginAlert','_substituteRedoStack','purple300','getConfig','_acknowledgedAwaitingChangeset','cursorInfo$','UNDEFINED','Plugin','whenReady','AWAITING_WITH_PENDING','_document','COMPLETION_FINISHED','getOffsetConfig','asObservable','getSelections','_http','[PendingState]:\x20received\x20rejection.','session.will-retry','conflict.content','SheetSkeletonManagerService','toString','serializeCombRequest','_handleHeartbeatEvent','univer-pro.collaboration-client.single-active-unit-service','get','@univerjs-pro/collaboration','conflict.title','1328562OyRCkN','onload','saveChangeset','_config','OFFLINE','Rect','_localStorageService','createCollaborator','_docTransformSelectionsService','_colorIndex','_substituteUndoStack','CollaborationEvent','_onCursorDelete','ILocalStorageService','_onLocalMutation','objectType','_onCombEvent','setActiveRange','InsertColCommandId','memberID','RevisionService','saveSheetBlock','pluginName','MoveRangeCommandId','_transformService','mutations','collab-text-anchor-','textEncoder','_getAPIPrefix','src','permission.content','save\x20fail\x20reason\x20is\x20','UNIVER_COLLABORATION_CLIENT_PLUGIN','UUID','_waitForHeartbeatResponse','joinRsp','_removeCollabCursors','map','parseChangesetToProtocol','confirm','[CollaborationState]:\x20apply\x20error!','displayName','ranges','image/jpg','close$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_onCursorUpdate','_onRemoteChangeset','_saveTaskMap','_online','_onConnectionOpen','SNAPSHOT_SERVER_URL_KEY','_entities','RETRY_CONNECTING_INTERVAL','WebURLService','_lockTransition','setWaitCount','9763JNoHSY','78bGrZLO','_createHandler','startColumn','_docSkeletonManagerService','onMissingChangesets','_collabCursorState$','setTimeout','_socketReady','push','AWAITING','attrs','isTransformMutationFailure','_colorAssignService','_collabCursorController','_onFetchMissResult','connection\x20error','onSendChangeset','univer-online-status-title','userID','combineLatest','_startDocCollabCursor','size','roomInfos','session.collaboration-timeout','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','xlink:href','_disabled','getMember','_unitID','ImageUploadStatusType','drawWith','_localCacheService','HEARTBEAT','handleDeleteRangeMoveUp','getRenderById','_scheduleTimestamp','_tryEnsureSocket','_createSocket','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[CollaborationSessionService]','prototype','_handleJoinEvent','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','collabCursorState$','_timeoutTimer','IRemoteInstanceService','CollaborationSocketService','reduce','UserManagerService','?size=','_ensureSubject','INVALID_ARGUMENT','_hovered','enableSingleActiveInstanceLock','_permissionService','42fCjelm','collabStatus.syncing','_getAPIPrefixPath','DisposableCollection','@univerjs/engine-render','entries','from','IPermissionService','/universer-api/comb','getItem','NOT_FOUND','/fetchmissing?from=','getCurrent','FileId','_applyRemoteChangeset','ERROR_IMAGE_TYPE','blue400','joinEvent','\x20to\x20','onMouseMove','lodash/debounce','pipe','_id','\x20in\x20_schedule.','_getCtorByUniverType','_snapshotService','_docSyncEditingCollabCursorService','ILogService','takeUntil','onTransformSelections','LOGIN_URL_KEY','_decreaseWaiting','collaborationUniverTypes','HTTPService','_status$','getCurrentUnitForType','evenodd','UNIVER_UNKNOWN','updateOfflineData','revision','_httpService','concat','init','HEADER_MENU','_handleHover','filter','RefRangeService','getResourcesRequest','loadSheet','univer-online-status','_getLoginPath','sheets','m1Prime','slice','\x0aAfter:\x20','getViewport','target','rev','string','UNRECOGNIZED','_unlockTransition','LIVESHARE_TERMINATE','_getSnapshotAPIPrefix','SnapshotService','status','toRgbString','toggleOffline','_themeService','resend','online','_unitStatus','IURLService','div','CONNECTOR_DATA_TOO_LARGE','_getRedoStack','RETRY_CONNECTING_MAX_COUNT','transform','onlineStatus','url(#on-line-single_clip0_910_349)','_sessionStatus$','UNIVER_SHEET','_sendHeartbeat','sheetID','LocalUndoRedoService','@univerjs/drawing','Inject','BehaviorSubject','@univerjs/ui','_pendingMutations','workbook','Univer','UNAUTHENTICATED','@wendellhu/redi/react-bindings','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','DependentOn','_retryConnectingTimer','_updateSubUnitFromURLParams','remove','_session','jiqing500','RxDisposable','_socket$','save','error$','@univerjs/engine-formula','getTime','onMissedChangesetFetched','_onMessage','_heartbeatTimer','off-line-single','unitId','254429LvGHzo','all','SetTextSelectionsOperation','on-line-single_clip0_910_349','/new_changes','csAckEvent','enableOfflineEditing','_sendHeartbeatTimer','roomMembers','code','createSocket','objectID','getDocObject','setUndoRedoMutationParamsCache','generateRandomId','_collaborationPaused','_hideTimer','/universer-api/snapshot/','focused$','onStarting','InsertRowCommandId','listRoles','getCurrentUser','_singleActiveUnitService','defIds','_disableEditing','JOINING','_checkMissing','onTransformIME','[CollaborationSession]','appendMutation','syncEditingCollabCursor','react','_cursorInfo$','SUCCUSS','/universer-api/stream/file/upload','FETCH_MISSING','AuthzIoHttpService','updateMember','min','defs','endRow','onSyncEditingCollabCursor','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_onRecvEvent','_cachedData','_handleLeaveEvent','dispose$','DocSkeletonManagerService','setParam','_getSignURL','function','isTransformMutationsWithChangesetFailure','8JTxVCq','setShapeProps','UniverIcon','encode','/universer-api/authz','LICENSE_MAX_UNITS_EXCEEDED','session','_localeService','VIEWPORT_KEY','_getCurrentRevision','c1Prime','[DataLoaderController]','_incrementRevisionNumber','_onUserLeave','originalMeta','indexOf','3858093lenTpr','INotificationService','_transformRemoteChangesetByIMECache','mapTo','ICommandService','event$','_univerInstanceService','collaMsg','handleIRemoveCol','mapDocumentTypeToUniverType','POST','addEventListener','post','text','UNKNOWN_CODE','1012910kFGZWn','debounceTime','merge','[CollaborationSessionService]:\x20socket\x20error','collaboration-client.offline-data-not-saved','_getSaveTimeout','AUTHZ_URL_KEY','_getAnchorBounding','MUTATION','PERMISSION_REJ','FETCH_MISS','snapshot','APPLY_NON_SEQUENTIAL_REVISION','IMessageService','unshift','registerHTTPInterceptor','_transformPreviousActiveRange','/-/object/list','fetching\x20missing\x20changesets\x20from\x20','column','IContextService','HEARTBEAT_TIMEOUT','COLLAB_SUBMIT_CHANGESET_URL','getCurrentRevForDocument','getTypeOfUnitDisposed$','onlyLocal','next','Injector','file','COLORS','_syncEditingCollabCursorService','getUndoRedoMutationParamsCache','objectActions','isArray','onTransformRemoteChangesetByIMECache','_injector','_loadSheet','getSheetBySheetId','collabStatus.synced','@univerjs/rpc','socket\x20open.','children','handleInsertRangeMoveRight','_clearScheduledTask','height','IMEInputManagerService','trim','_setupSubUnitSync','_unitOnClients','HELLO','_updateState','Warning','fetchMissingChangesets','getRangePointData','contains','actions','transformUndoRedo','collabStatus.offline','_uiPartsService','CollaborationStatus','CHANGESET_REVISION_CONFILICT','rxjs','delete','_transformUndoredo','subscribe','_lastPointer','/rev/','getInterceptPoints','removeMember','?url=','LOCAL_CACHE_INTERVAL','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','translate(.97)','range','transformIMECache','_schedule','getRelativeCoord','values','loadDoc','SUBMIT_CHANGESET','EffectRefRangId','none','getActiveRange','_collabSessionService','UniverCollaborationClientPlugin','_transformStack','beginPath','CompressMutationService','_send','MSG_FOR_ERROR','Workbook','_draw','call','pending','labelPosition','_removeRoom','gold400','getImageSourceCache','max','subunit','_labelPosition','_isPermissionRej','deepClone','_onConnectionFailed','HEARTBEAT_INTERVAL','TextSelectionManagerService','_textBubble','_getUploadFileURL','fill','fetchThroughInterceptors','awaiting','onRemoteAck','toStringTag','Tools','_compressMutationService','take','LEAVE','getScrollXYByRelativeCoords','switchMap','[OfflineState]:\x20received\x20changeset.','_clearUndo','_exhaustRemoteChangesetQueue','_eventUnsubscribe','onCommandExecuted','some','key','_updateLocalCursor','interceptor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','/object/','[PendingState]:\x20received\x20acknowledgement.','unitID','_transformUndoRedoStack','collaborators','includes','type','not_collab','@univerjs/network','fetch_missing','setItem','35RQRgeN','DEFAULT_FILE_NAME','forwardRef','closePath','_cursors','CONFLICT','allowed','handleIRemoveRow','round','univerjs-icon\x20univerjs-icon-','getColor','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','toggleOnline','objects','transformMutation','_roomMembers$','[OfflineState]:\x20received\x20acknowledgement.','_toggleOnline','IUndoRedoService','csRejEvent','SetWorksheetActivateCommand','_sheetSkeletonManagerService','leaveEvent','DocStateChangeManagerService','runRefRangeMutations','textRanges','Error\x20on\x20receiving\x20event','serializeTextRange','_initStatusComponent','unit','IImageIoService','_syncEditingCollabCursor','isPermissionRej','getRoom','_event$','Rectangle','ERROR_IMAGE','hide','synced','_clearOtherTimers','_transformSelections','SNAPSHOT_INVALID_SNAPSHOT','APPLY_PERMISSION_DENIED','_userManagerService','ThresholdInterceptorFactory','row','m2Prime','unsubscribe','disableLocalCache','_replayCachedMutations','/resources','YUUMI_UNABLE_LOAD_URL','/collaborator','_queuedRemoteChangesets','HEARTBEAT_TIMEOUT_KEY','_members','_clearTimeoutTimer','_awaitingChangeset','_socket','LIVESHARE_FETCH_OPERATIONS','error','shareReplay','IDLE','COMPRESS_MUTATION_APPLY','CHANGESET_ACK','red300','disposeWithMe','FromArray','unload','UniverInstanceType','IHTTPImplementation','b64DecodeUnicode','_saveCache','/-/object/-/batch_allowed','UPDATE_CURSOR','enableAuthServer','replaceState','_waitCount','ICollaborationSocketService','NOT_COLLAB','Starting','clsx','parse','currentSkeleton$','assignAColorForMemberID','useDependency','_state$','measureText','fillStyle','getAncestorScale','_startCollaboration','isEditing','sequenceExecute','/block/','_logService','RECV','delay','transformByState','_state','_clearRedo','WebSocketService','onPointerEnterObserver','_notificationService','_commandService','put','updateCollaborator','apply','Steady','getSheetBlock','getSheetId','ONLINE','history','clear','className','[CollaborationEntity]','_getUndoStack','Vector2','_submitChangeset','failed\x20to\x20apply\x20missed\x20changesets!','getCellPositionByOffset','_docTransformIMECacheService','getTypeOfUnitAdded$','rgba(255,\x20255,\x20255,\x200.01)','session.room-full','getMemberID','sheetId','JOIN','show','add','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','isTransformChangesetsSuccess','_onConflict','makeDirty','SEND_CHANGESET_TIMEOUT','off-line-single_clip0_910_343','replace','liveShareOperation','c2Prime','pauseCollaboration','isTransformMutationsWithChangesetSuccess','submit\x20changeset\x20error!','IUIPartsService','_getSheetObject','_render','skeleton','transformRemoteChangeset','has','replaceTextRanges','width','getImage','requireSession','_updateStatus','setAlpha','parseProtocolChangeset','Optional','_scheduleCollaborationTimeoutTimer','addObjects','_initModules','INGEST','onStateChange','ALREADY_EXISTS','_messageService','_clearHeartbeatTimer','_anchor','awaitingChangeset','liveShareNewHost','/allowed','reject','unit-cache-','flatMap','_handleEvent','bottom','getCollabCursors$','_memberService','LIVESHARE_OPERATION','_updateURLWithCurrentState','@univerjs/sheets-ui','isActive','_ws','[FetchMissState]','uni.network.url-service','currentTheme$','body','name'];_0x2388=function(){return _0x2833fa;};return _0x2388();}const a=require(_0x5c8e6d(0x76)),E=require(_0x5c8e6d(0x39e)),oe=require(_0x5c8e6d(0x37d)),N=require(_0x5c8e6d(0x18b)),u=require(_0x5c8e6d(0xc1)),h=require(_0x5c8e6d(0x376)),g=require(_0x5c8e6d(0x234)),T=require(_0x5c8e6d(0x413)),M=require(_0x5c8e6d(0x389)),P=require(_0x5c8e6d(0x280)),A=require(_0x5c8e6d(0x188)),Ye=require(_0x5c8e6d(0x19c)),He=require(_0x5c8e6d(0x148)),R=require(_0x5c8e6d(0x138)),ee=require(_0x5c8e6d(0x333)),at=require(_0x5c8e6d(0x190)),L=require(_0x5c8e6d(0x1c3)),Ht=require(_0x5c8e6d(0x2d4)),xt=require(_0x5c8e6d(0x21e)),ct=_0x5c8e6d(0xf6),kt=_0x5c8e6d(0xa3),lt=_0x5c8e6d(0x8e),ht=_0x5c8e6d(0x308),Bt=0x7d0,_t='COLLAB_WEB_SOCKET_URL',Ft='ws://127.0.0.1:8000/universer-api/comb/connect',ut=_0x5c8e6d(0x25f),Vt=0x7530,xe=_0x5c8e6d(0x20c),dt=0x2710,Wt=_0x5c8e6d(0xf8),Gt=0x4e20,Yt=_0x5c8e6d(0x17f),Kt=0x3,St=_0x5c8e6d(0x23d),Xt=0x3e8,vt=_0x5c8e6d(0x20d),qt=_0x5c8e6d(0x13c),gt='LOGIN_URL_KEY',Jt=_0x5c8e6d(0x97);var ft=(_0x558576=>(_0x558576[_0x558576['UNDEFINED']=0x0]=_0x5c8e6d(0xae),_0x558576[_0x558576['OK']=0x1]='OK',_0x558576[_0x558576[_0x5c8e6d(0x369)]=0x2]=_0x5c8e6d(0x369),_0x558576[_0x558576[_0x5c8e6d(0x3d7)]=0x3]='PERMISSION_DENIED',_0x558576[_0x558576[_0x5c8e6d(0x13e)]=0x4]='NOT_FOUND',_0x558576[_0x558576[_0x5c8e6d(0x18f)]=0x5]=_0x5c8e6d(0x18f),_0x558576[_0x558576[_0x5c8e6d(0x323)]=0x6]=_0x5c8e6d(0x323),_0x558576[_0x558576[_0x5c8e6d(0x130)]=0x7]=_0x5c8e6d(0x130),_0x558576[_0x558576[_0x5c8e6d(0x41a)]=0x8]=_0x5c8e6d(0x41a),_0x558576[_0x558576[_0x5c8e6d(0xb3)]=0x9]=_0x5c8e6d(0xb3),_0x558576[_0x558576[_0x5c8e6d(0x233)]=0x1389]=_0x5c8e6d(0x233),_0x558576[_0x558576[_0x5c8e6d(0x2ac)]=0x1771]=_0x5c8e6d(0x2ac),_0x558576[_0x558576[_0x5c8e6d(0x345)]=0x1b59]=_0x5c8e6d(0x345),_0x558576[_0x558576[_0x5c8e6d(0x203)]=0x1b5a]=_0x5c8e6d(0x203),_0x558576[_0x558576[_0x5c8e6d(0x3d6)]=0x1b5b]=_0x5c8e6d(0x3d6),_0x558576[_0x558576[_0x5c8e6d(0x2ad)]=0x1b5c]=_0x5c8e6d(0x2ad),_0x558576[_0x558576[_0x5c8e6d(0x17d)]=0x1f41]=_0x5c8e6d(0x17d),_0x558576[_0x558576[_0x5c8e6d(0x1dd)]=0x2329]=_0x5c8e6d(0x1dd),_0x558576[_0x558576[_0x5c8e6d(0x277)]=0x232a]=_0x5c8e6d(0x277),_0x558576[_0x558576[_0x5c8e6d(0x3f8)]=0x232b]=_0x5c8e6d(0x3f8),_0x558576[_0x558576[_0x5c8e6d(0x7d)]=0x232c]=_0x5c8e6d(0x7d),_0x558576[_0x558576[_0x5c8e6d(0x421)]=0x232d]=_0x5c8e6d(0x421),_0x558576[_0x558576[_0x5c8e6d(0x2b6)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x558576[_0x558576[_0x5c8e6d(0x3be)]=0x2712]=_0x5c8e6d(0x3be),_0x558576[_0x558576['UNRECOGNIZED']=-0x1]=_0x5c8e6d(0x16f),_0x558576))(ft||{}),j=(_0x36dd70=>(_0x36dd70[_0x36dd70[_0x5c8e6d(0x159)]=0x0]=_0x5c8e6d(0x159),_0x36dd70[_0x36dd70[_0x5c8e6d(0x3c5)]=0x1]=_0x5c8e6d(0x3c5),_0x36dd70[_0x36dd70[_0x5c8e6d(0x184)]=0x2]=_0x5c8e6d(0x184),_0x36dd70[_0x36dd70[_0x5c8e6d(0x74)]=0x3]=_0x5c8e6d(0x74),_0x36dd70[_0x36dd70['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x36dd70))(j||{}),b=(_0x3a8359=>(_0x3a8359[_0x3a8359[_0x5c8e6d(0x6b)]=0x0]=_0x5c8e6d(0x6b),_0x3a8359[_0x3a8359[_0x5c8e6d(0x228)]=0x1]=_0x5c8e6d(0x228),_0x3a8359[_0x3a8359['JOIN']=0x2]=_0x5c8e6d(0x301),_0x3a8359[_0x3a8359[_0x5c8e6d(0x26b)]=0x3]=_0x5c8e6d(0x26b),_0x3a8359[_0x3a8359['INGEST']=0x4]='INGEST',_0x3a8359[_0x3a8359[_0x5c8e6d(0x11d)]=0x5]=_0x5c8e6d(0x11d),_0x3a8359[_0x3a8359[_0x5c8e6d(0x2e2)]=0x6]=_0x5c8e6d(0x2e2),_0x3a8359[_0x3a8359[_0x5c8e6d(0x16f)]=-0x1]=_0x5c8e6d(0x16f),_0x3a8359))(b||{}),ke=(_0x1e6f36=>(_0x1e6f36[_0x1e6f36[_0x5c8e6d(0x1f6)]=0x0]=_0x5c8e6d(0x1f6),_0x1e6f36[_0x1e6f36['OK']=0x1]='OK',_0x1e6f36[_0x1e6f36[_0x5c8e6d(0x41c)]=0x2]=_0x5c8e6d(0x41c),_0x1e6f36[_0x1e6f36[_0x5c8e6d(0x16f)]=-0x1]=_0x5c8e6d(0x16f),_0x1e6f36))(ke||{}),zt=Object[_0x5c8e6d(0x3a5)],Zt=Object[_0x5c8e6d(0x373)],Qt=(_0x1e899b,_0x48eea2,_0x157c39,_0xb73bef)=>{const _0x39427f=_0x5c8e6d;for(var _0x3bf9ea=_0xb73bef>0x1?void 0x0:_0xb73bef?Zt(_0x48eea2,_0x157c39):_0x48eea2,_0x3836c1=_0x1e899b[_0x39427f(0x7a)]-0x1,_0x39b1f8;_0x3836c1>=0x0;_0x3836c1--)(_0x39b1f8=_0x1e899b[_0x3836c1])&&(_0x3bf9ea=(_0xb73bef?_0x39b1f8(_0x48eea2,_0x157c39,_0x3bf9ea):_0x39b1f8(_0x3bf9ea))||_0x3bf9ea);return _0xb73bef&&_0x3bf9ea&&zt(_0x48eea2,_0x157c39,_0x3bf9ea),_0x3bf9ea;},Ke=(_0x361a1c,_0x5816cd)=>(_0x342986,_0x56d9e6)=>_0x5816cd(_0x342986,_0x56d9e6,_0x361a1c);let G=class extends a[_0x5c8e6d(0x40b)]{constructor(_0xb5180b,_0x5f504d){const _0x549834=_0x5c8e6d;super(),d(this,_0x549834(0x3b0),new Map()),(this[_0x549834(0x1ee)]=_0xb5180b,this[_0x549834(0x2ae)]=_0x5f504d,this[_0x549834(0x2c5)](a[_0x549834(0x3c9)](g[_0x549834(0x1f9)](this[_0x549834(0x1ee)][_0x549834(0x20f)](a[_0x549834(0x2c8)][_0x549834(0x184)])[_0x549834(0x149)](T[_0x549834(0xe8)](_0x402fb6=>_0x402fb6[_0x549834(0x35c)]())),this[_0x549834(0x1ee)]['getTypeOfUnitDisposed$'](a[_0x549834(0x2c8)][_0x549834(0x3c5)])[_0x549834(0x149)](T[_0x549834(0xe8)](_0x41c302=>_0x41c302[_0x549834(0x35c)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x549834(0x2c8)][_0x549834(0x74)])[_0x549834(0x149)](T[_0x549834(0xe8)](_0x3d58a0=>_0x3d58a0[_0x549834(0x35c)]())))[_0x549834(0x237)](_0x424c78=>this[_0x549834(0x256)](_0x424c78)))));}[_0x5c8e6d(0x3b2)](_0x134367){const _0x23a0a8=_0x5c8e6d;this['_userManagerService'][_0x23a0a8(0x3b2)](_0x134367);}[_0x5c8e6d(0x1b9)](){const _0xa7f881=_0x5c8e6d;return this[_0xa7f881(0x2ae)][_0xa7f881(0x1b9)]();}[_0x5c8e6d(0x1c9)](_0x2edadf,_0x2854dc){const _0x69ace9=_0x5c8e6d;let _0x46a19e=this[_0x69ace9(0x3b0)][_0x69ace9(0xc0)](_0x2edadf);_0x46a19e||(_0x46a19e=new es(),this[_0x69ace9(0x3b0)][_0x69ace9(0x395)](_0x2edadf,_0x46a19e)),_0x46a19e[_0x69ace9(0x1c9)](_0x2854dc);}['removeMember'](_0x59e7ec,_0x3366f3){const _0xb57d46=_0x5c8e6d,_0x532fdc=this['_roomMembers'][_0xb57d46(0xc0)](_0x59e7ec);_0x532fdc&&_0x532fdc[_0xb57d46(0x23b)](_0x3366f3);}[_0x5c8e6d(0x2a4)](_0x1f4d8f){const _0x4aefcd=_0x5c8e6d;return this[_0x4aefcd(0x3b0)][_0x4aefcd(0xc0)](_0x1f4d8f);}[_0x5c8e6d(0x118)](_0x27f368,_0x652bb4){const _0x1b1cd1=_0x5c8e6d,_0x13ce00=this[_0x1b1cd1(0x3b0)][_0x1b1cd1(0xc0)](_0x27f368);if(_0x13ce00)return _0x13ce00[_0x1b1cd1(0x118)](_0x652bb4);}[_0x5c8e6d(0x256)](_0x4d5e6f){const _0x5be48d=_0x5c8e6d,_0x363acc=this[_0x5be48d(0x3b0)][_0x5be48d(0xc0)](_0x4d5e6f);_0x363acc&&(_0x363acc['dispose'](),this[_0x5be48d(0x3b0)][_0x5be48d(0x235)](_0x4d5e6f));}[_0x5c8e6d(0x364)](){const _0x264876=_0x5c8e6d;this[_0x264876(0x3b0)][_0x264876(0x382)](_0x3613ac=>_0x3613ac['dispose']()),this['_roomMembers']['clear']();}};G=Qt([Ke(0x0,a[_0x5c8e6d(0x3b1)]),Ke(0x1,h['Inject'](a[_0x5c8e6d(0x12d)]))],G);class es extends a[_0x5c8e6d(0x40b)]{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x5c8e6d(0x364)](){const _0x1c1cdb=_0x5c8e6d;this[_0x1c1cdb(0x2ba)]['clear']();}['updateMember'](_0x4ad291){const _0x176f0e=_0x5c8e6d;this['_members']['set'](_0x4ad291[_0x176f0e(0xd6)],_0x4ad291);}[_0x5c8e6d(0x23b)](_0x2ba149){const _0x3af12b=_0x5c8e6d;this[_0x3af12b(0x2ba)][_0x3af12b(0x235)](_0x2ba149);}[_0x5c8e6d(0x118)](_0x50d4e4){const _0x6dbc39=_0x5c8e6d;return this[_0x6dbc39(0x2ba)][_0x6dbc39(0xc0)](_0x50d4e4);}}function mt(_0x3fcbfc){const _0xee773c=_0x5c8e6d;var _0x15454f,_0x2b62a7,_0x4c9aee,_0x5f2d13;const _0x12b3b6=_0x3fcbfc[_0xee773c(0x95)],_0x4341d5=JSON[_0xee773c(0x2d5)](_0x12b3b6);switch(_0x4341d5['cmd']){case b[_0xee773c(0x11d)]:case b[_0xee773c(0x228)]:{const _0x40837c=_0x4341d5[_0xee773c(0x84)];return{..._0x4341d5,'data':_0x40837c,'cmd':_0x4341d5[_0xee773c(0x9c)]};}case b[_0xee773c(0x301)]:{const _0x14bf77=_0x4341d5[_0xee773c(0xe6)];return{..._0x4341d5,'data':_0x14bf77,'cmd':_0x4341d5[_0xee773c(0x9c)]};}case b[_0xee773c(0x2e2)]:{const _0x43fbc8=_0x4341d5[_0xee773c(0x1ef)];switch(_0x43fbc8[_0xee773c(0x3cf)]){case u['CollaborationEvent'][_0xee773c(0x200)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':(_0x15454f=_0x43fbc8['permissionRejEvent'])==null?void 0x0:_0x15454f['cs']},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u['CollaborationEvent']['CHANGESET_ACK']:return{..._0x4341d5,'data':{..._0x43fbc8,'data':(_0x2b62a7=_0x43fbc8[_0xee773c(0x1a8)])==null?void 0x0:_0x2b62a7['cs']},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u[_0xee773c(0xce)][_0xee773c(0x368)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':(_0x4c9aee=_0x43fbc8['newCsEvent'])==null?void 0x0:_0x4c9aee['cs']},'cmd':_0x4341d5['cmd']};case u[_0xee773c(0xce)][_0xee773c(0x423)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':(_0x5f2d13=_0x43fbc8[_0xee773c(0x296)])==null?void 0x0:_0x5f2d13['cs']},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u[_0xee773c(0xce)]['UPDATE_CURSOR']:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x3a8)]},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u['CollaborationEvent'][_0xee773c(0x387)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x145)]},'cmd':_0x4341d5['cmd']};case u[_0xee773c(0xce)][_0xee773c(0x427)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x299)]},'cmd':_0x4341d5['cmd']};case u[_0xee773c(0xce)][_0xee773c(0x3f5)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x328)]},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u['CollaborationEvent'][_0xee773c(0x2be)]:case u['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x30b)]},'cmd':_0x4341d5[_0xee773c(0x9c)]};case u[_0xee773c(0xce)][_0xee773c(0x171)]:return{..._0x4341d5,'data':{..._0x43fbc8,'data':_0x43fbc8[_0xee773c(0x328)]},'cmd':_0x4341d5['cmd']};case u[_0xee773c(0xce)][_0xee773c(0x250)]:return{..._0x4341d5,'data':_0x43fbc8,'cmd':_0x4341d5[_0xee773c(0x9c)]};default:return _0x4341d5;}}default:return _0x4341d5;}}function It(_0x57e7a5){const _0x5608f4=_0x5c8e6d;switch(_0x57e7a5[_0x5608f4(0x9c)]){case b['HEARTBEAT']:case b[_0x5608f4(0x228)]:return JSON[_0x5608f4(0x381)]({'cmd':_0x57e7a5[_0x5608f4(0x9c)],'routeKey':_0x57e7a5['routeKey']});case b[_0x5608f4(0x321)]:{let _0x5696dc;switch(_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x3cf)]){case u['CollaborationEvent'][_0x5608f4(0x2cd)]:{_0x5696dc={'eventID':u[_0x5608f4(0xce)][_0x5608f4(0x2cd)],'updateCursorEvent':_0x57e7a5['data'][_0x5608f4(0x95)]};break;}case u['CollaborationEvent'][_0x5608f4(0x427)]:{_0x5696dc={'eventID':u['CollaborationEvent'][_0x5608f4(0x427)],'leaveEvent':_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x95)]};break;}case u[_0x5608f4(0xce)][_0x5608f4(0x387)]:{_0x5696dc={'eventID':u['CollaborationEvent'][_0x5608f4(0x387)],'joinEvent':_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x95)]};break;}case u[_0x5608f4(0xce)]['LIVESHARE_NEW_HOST']:{_0x5696dc={'eventID':u[_0x5608f4(0xce)][_0x5608f4(0x3f5)],'liveShareNewHost':_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x95)]};break;}case u[_0x5608f4(0xce)][_0x5608f4(0x331)]:{_0x5696dc={'eventID':u[_0x5608f4(0xce)][_0x5608f4(0x331)],'liveShareOperation':_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x95)]};break;}case u[_0x5608f4(0xce)][_0x5608f4(0x171)]:{_0x5696dc={'eventID':u[_0x5608f4(0xce)][_0x5608f4(0x171)],'liveShareTerminate':_0x57e7a5['data'][_0x5608f4(0x95)]};break;}case u['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x5696dc={'eventID':u[_0x5608f4(0xce)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x57e7a5[_0x5608f4(0x95)]['data']};break;}case u['CollaborationEvent'][_0x5608f4(0x2be)]:{_0x5696dc={'eventID':u['CollaborationEvent'][_0x5608f4(0x2be)]};break;}default:_0x5696dc={'eventID':_0x57e7a5[_0x5608f4(0x95)][_0x5608f4(0x3cf)]};}return JSON['stringify']({'cmd':_0x57e7a5['cmd'],'routeKey':_0x57e7a5[_0x5608f4(0x3e2)],'collaMsg':_0x5696dc});}case b[_0x5608f4(0x301)]:return JSON[_0x5608f4(0x381)]({'cmd':_0x57e7a5[_0x5608f4(0x9c)],'routeKey':_0x57e7a5[_0x5608f4(0x3e2)],'joinReq':_0x57e7a5[_0x5608f4(0x95)]});case b['LEAVE']:return JSON[_0x5608f4(0x381)]({'cmd':_0x57e7a5['cmd'],'routeKey':_0x57e7a5[_0x5608f4(0x3e2)],'leaveReq':_0x57e7a5[_0x5608f4(0x95)]});default:throw new Error(_0x5608f4(0x191));}}var ts=Object[_0x5c8e6d(0x3a5)],ss=Object[_0x5c8e6d(0x373)],is=(_0x546049,_0x419738,_0x36748d,_0xb161f5)=>{const _0x1ee668=_0x5c8e6d;for(var _0x15e1d8=_0xb161f5>0x1?void 0x0:_0xb161f5?ss(_0x419738,_0x36748d):_0x419738,_0x2857d7=_0x546049[_0x1ee668(0x7a)]-0x1,_0x160f50;_0x2857d7>=0x0;_0x2857d7--)(_0x160f50=_0x546049[_0x2857d7])&&(_0x15e1d8=(_0xb161f5?_0x160f50(_0x419738,_0x36748d,_0x15e1d8):_0x160f50(_0x15e1d8))||_0x15e1d8);return _0xb161f5&&_0x15e1d8&&ts(_0x419738,_0x36748d,_0x15e1d8),_0x15e1d8;},te=(_0x37ba4b,_0x5110a3)=>(_0x21647f,_0x10fa7e)=>_0x5110a3(_0x21647f,_0x10fa7e,_0x37ba4b);const Be=h[_0x5c8e6d(0x80)](_0x5c8e6d(0x340));function ns(_0x45ed0e,_0x4a211c,_0xac0794){const _0xd4d47b=_0x5c8e6d;return _0x45ed0e+'/'+_0x4a211c+_0xd4d47b(0x36d)+_0xac0794+_0xd4d47b(0x1a7);}exports[_0x5c8e6d(0x12b)]=class{constructor(_0x5cc62f,_0x4b21b5,_0x10b2d4,_0x5de0a0,_0x179f10){const _0x38568a=_0x5c8e6d;this[_0x38568a(0xb7)]=_0x5cc62f,this[_0x38568a(0x335)]=_0x4b21b5,this[_0x38568a(0x3f7)]=_0x10b2d4,this[_0x38568a(0x2e1)]=_0x5de0a0,this['_snapshotServerService']=_0x179f10;}[_0x5c8e6d(0x1ad)](_0xc1344c){const _0xf31c69=_0x5c8e6d,_0x459330=this[_0xf31c69(0x335)]['createSocket'](_0xc1344c);if(!_0x459330)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x4eb277=new a[(_0xf31c69(0x137))](),_0x2cd043=new g[(_0xf31c69(0x3ea))]();_0x4eb277[_0xf31c69(0x303)](a[_0xf31c69(0x3c9)](_0x459330['close$'][_0xf31c69(0x237)](_0x1be96a=>_0x2cd043['next'](_0x1be96a)))),_0x4eb277['add'](a[_0xf31c69(0x3c9)](()=>_0x2cd043['complete']()));const _0x2fe585=new g['Subject']();_0x4eb277[_0xf31c69(0x303)](a[_0xf31c69(0x3c9)](_0x459330[_0xf31c69(0x19b)]['subscribe'](_0xe6c2d5=>_0x2fe585[_0xf31c69(0x211)](_0xe6c2d5)))),_0x4eb277['add'](a[_0xf31c69(0x3c9)](()=>_0x2fe585[_0xf31c69(0x3e7)]()));const _0x2ad448=new g['Subject']();_0x4eb277['add'](a[_0xf31c69(0x3c9)](_0x459330['message$']['subscribe'](_0x19e4bc=>{const _0x527ae3=_0xf31c69,_0x73c24d=mt(_0x19e4bc);_0x2ad448[_0x527ae3(0x211)](_0x73c24d);}))),_0x4eb277[_0xf31c69(0x303)](a['toDisposable'](()=>_0x2ad448[_0xf31c69(0x3e7)]()));const _0x9a7dae=()=>{const _0x515b9a=_0xf31c69;_0x2fe585[_0x515b9a(0x211)](new Event('connection\x20error')),_0x2cd043['next'](new CloseEvent(_0x515b9a(0x10c))),_0xfb4109['close']();},_0xfb4109={'memberID':'','close$':_0x2cd043['asObservable'](),'error$':_0x2fe585[_0xf31c69(0xb5)](),'open$':_0x459330[_0xf31c69(0x3a9)],'message$':_0x2ad448[_0xf31c69(0xb5)](),'send':_0x3d05f0=>{const _0x36d301=_0xf31c69;if(_0x3d05f0[_0x36d301(0x9c)]===b[_0x36d301(0x321)]){if(_0x3d05f0[_0x36d301(0x95)][_0x36d301(0x3cf)]===u[_0x36d301(0xce)][_0x36d301(0x246)]){this[_0x36d301(0x2f8)](_0xfb4109,_0x3d05f0[_0x36d301(0x95)])[_0x36d301(0x93)](_0x2f3969=>{const _0x3f146d=_0x36d301;this[_0x3f146d(0x2e1)][_0x3f146d(0x2bf)](_0x2f3969),_0x9a7dae();});return;}if(_0x3d05f0[_0x36d301(0x95)][_0x36d301(0x3cf)]===u[_0x36d301(0xce)][_0x36d301(0x1c7)]){const _0xe5521a=_0x3d05f0[_0x36d301(0x95)];this['_fetchMissChangesets'](_0xe5521a)[_0x36d301(0x99)](_0xe63dd1=>{const _0xe7b412=_0x36d301;_0x2ad448['next']({'cmd':b[_0xe7b412(0x2e2)],'code':ke['OK'],'routeKey':_0xe5521a[_0xe7b412(0x95)][_0xe7b412(0x27a)],'routeType':'','data':{'eventID':u[_0xe7b412(0xce)][_0xe7b412(0x82)],'data':{'changesets':_0xe63dd1}}});})[_0x36d301(0x93)](_0xaff735=>{const _0x42f652=_0x36d301;this[_0x42f652(0x2e1)][_0x42f652(0x2bf)](_0xaff735),_0x9a7dae();});return;}}_0x459330[_0x36d301(0xa4)](It(_0x3d05f0));},'close':()=>{const _0x41ed4b=_0xf31c69;_0x459330['close'](),_0x4eb277[_0x41ed4b(0x364)]();}};return _0xfb4109;}async['_submitChangeset'](_0x186924,_0x4968de){const _0x3d1d6c=_0x5c8e6d;var _0x317eb1;const {unitType:_0xd326eb,unitID:_0x31a173,changeset:_0x39ba7f}=_0x4968de[_0x3d1d6c(0x95)],_0x2b8db0={'unitID':_0x31a173,'memberID':_0x186924['memberID'],'type':_0xd326eb,'changeset':u[_0x3d1d6c(0xe9)](_0x39ba7f)},_0x4d89c5=ns((_0x317eb1=this[_0x3d1d6c(0x3f7)][_0x3d1d6c(0xab)](vt))!=null?_0x317eb1:qt,_0xd326eb,_0x31a173);try{await this[_0x3d1d6c(0xb7)][_0x3d1d6c(0x1f4)](_0x4d89c5,{'body':_0x2b8db0});}catch(_0x3da956){throw this[_0x3d1d6c(0x2e1)][_0x3d1d6c(0x2bf)](_0x3d1d6c(0x1c0),_0x3d1d6c(0x30f)),_0x3da956;}}async[_0x5c8e6d(0x3d9)](_0x7239fb){const _0x88e324=_0x5c8e6d,{unitID:_0x44e978,from:_0x22026a,to:_0x6af81a,unitType:_0xd4b3e}=_0x7239fb['data'];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x44e978,'type':_0xd4b3e,'from':_0x22026a,'to':_0x6af81a}))[_0x88e324(0x410)];}},exports[_0x5c8e6d(0x12b)]=is([te(0x0,h[_0x5c8e6d(0x189)](P[_0x5c8e6d(0x155)])),te(0x1,h[_0x5c8e6d(0x189)](P[_0x5c8e6d(0x2e7)])),te(0x2,a[_0x5c8e6d(0x3fd)]),te(0x3,a[_0x5c8e6d(0x14f)]),te(0x4,a[_0x5c8e6d(0x3b9)])],exports[_0x5c8e6d(0x12b)]);var rs=Object[_0x5c8e6d(0x3a5)],os=Object['getOwnPropertyDescriptor'],pt=(_0x584c3f,_0x290b3b,_0x443515,_0x2e25c8)=>{const _0x3160b6=_0x5c8e6d;for(var _0xbe79eb=_0x2e25c8>0x1?void 0x0:_0x2e25c8?os(_0x290b3b,_0x443515):_0x290b3b,_0x16ea4e=_0x584c3f[_0x3160b6(0x7a)]-0x1,_0x766981;_0x16ea4e>=0x0;_0x16ea4e--)(_0x766981=_0x584c3f[_0x16ea4e])&&(_0xbe79eb=(_0x2e25c8?_0x766981(_0x290b3b,_0x443515,_0xbe79eb):_0x766981(_0xbe79eb))||_0xbe79eb);return _0x2e25c8&&_0xbe79eb&&rs(_0x290b3b,_0x443515,_0xbe79eb),_0xbe79eb;},U=(_0x33f1b0,_0x1bb8be)=>(_0x28fe69,_0x43b16b)=>_0x1bb8be(_0x28fe69,_0x43b16b,_0x33f1b0),W=(_0x5b3a4a=>(_0x5b3a4a[_0x5b3a4a['IDLE']=0x0]=_0x5c8e6d(0x2c1),_0x5b3a4a[_0x5b3a4a['JOINING']=0x1]=_0x5c8e6d(0x1bd),_0x5b3a4a[_0x5b3a4a[_0x5c8e6d(0xc7)]=0x2]='OFFLINE',_0x5b3a4a[_0x5b3a4a[_0x5c8e6d(0x2f1)]=0x3]='ONLINE',_0x5b3a4a))(W||{});exports[_0x5c8e6d(0x37b)]=class extends a[_0x5c8e6d(0x198)]{constructor(_0x342be8,_0x9952d5,_0x685275,_0x18fa71,_0x157dd6,_0x37fdaf,_0x2d09e1,_0x5727de){const _0x1ed960=_0x5c8e6d;super(),d(this,_0x1ed960(0x183),new g[(_0x1ed960(0x18a))](0x0)),d(this,_0x1ed960(0x3f4),this['_sessionStatus$'][_0x1ed960(0xb5)]()),d(this,_0x1ed960(0x2a5),new g['Subject']()),d(this,_0x1ed960(0x1ed),this['_event$'][_0x1ed960(0xb5)]()),d(this,_0x1ed960(0x2bd)),d(this,'_socketMessageSubscription'),d(this,_0x1ed960(0x415)),(this[_0x1ed960(0x119)]=_0x342be8,this[_0x1ed960(0x2e1)]=_0x685275,this[_0x1ed960(0x3a4)]=_0x18fa71,this[_0x1ed960(0x324)]=_0x157dd6,this[_0x1ed960(0x3f7)]=_0x37fdaf,this['_localeService']=_0x2d09e1,this[_0x1ed960(0x330)]=_0x5727de,_0x9952d5[_0x1ed960(0x149)](T[_0x1ed960(0x150)](this[_0x1ed960(0x1d2)]))[_0x1ed960(0x237)](_0x155d05=>{const _0x136f48=_0x1ed960;var _0x5008e7;typeof _0x155d05>'u'||(this['_socket']=_0x155d05,_0x155d05?(this[_0x136f48(0x41e)](_0x155d05),this[_0x136f48(0x343)]=this[_0x136f48(0x2bd)]['message$'][_0x136f48(0x237)](_0x552215=>{const _0x4a605b=_0x136f48;_0x552215[_0x4a605b(0x3e2)]===this['_unitID']&&this[_0x4a605b(0xd3)](_0x552215);})):(this[_0x136f48(0x183)][_0x136f48(0x211)](0x2),(_0x5008e7=this['_socketMessageSubscription'])==null||_0x5008e7[_0x136f48(0x2b2)](),this['_socketMessageSubscription']=null));}),this[_0x1ed960(0x2c5)](this[_0x1ed960(0x3a4)]['registerOnClose'](()=>{const _0x27a45d=_0x1ed960;var _0x51e4e3;(_0x51e4e3=this[_0x27a45d(0x2bd)])==null||_0x51e4e3[_0x27a45d(0xa4)]({'cmd':b[_0x27a45d(0x26b)],'data':{'roomID':this[_0x27a45d(0x119)]}});})));}get[_0x5c8e6d(0x416)](){const _0x432727=_0x5c8e6d;return this['_sessionStatus$'][_0x432727(0x3ba)]();}[_0x5c8e6d(0x2ff)](){const _0x1321a8=_0x5c8e6d;var _0x4b7039,_0xd554ae;return(_0xd554ae=(_0x4b7039=this['_socket'])==null?void 0x0:_0x4b7039[_0x1321a8(0xd6)])!=null?_0xd554ae:null;}['dispose'](){const _0x3c634d=_0x5c8e6d;super[_0x3c634d(0x364)](),this[_0x3c634d(0x1d2)][_0x3c634d(0x211)](),this['dispose$'][_0x3c634d(0x3e7)]();}[_0x5c8e6d(0xd3)](_0x13694f){const _0x46ae44=_0x5c8e6d;_0x13694f[_0x46ae44(0x9c)]===b[_0x46ae44(0x301)]?this[_0x46ae44(0x429)](_0x13694f):_0x13694f[_0x46ae44(0x9c)]===b[_0x46ae44(0x2e2)]&&this[_0x46ae44(0x1cf)](_0x13694f);}['_joinRoom'](_0x1a0169){const _0x5384b4=_0x5c8e6d;this[_0x5384b4(0x183)][_0x5384b4(0x211)](0x1),_0x1a0169[_0x5384b4(0xa4)]({'cmd':b[_0x5384b4(0x301)],'routeKey':this[_0x5384b4(0x119)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5384b4(0x119)]}]}});}[_0x5c8e6d(0x429)](_0x19845b){const _0x7d299d=_0x5c8e6d;var _0xc3a4b6;if(_0x19845b['code']===ke[_0x7d299d(0x41c)]){this[_0x7d299d(0x324)]['show']({'type':oe[_0x7d299d(0x3c1)][_0x7d299d(0x22a)],'content':this[_0x7d299d(0x1df)]['t'](_0x7d299d(0x2fe))}),this[_0x7d299d(0x183)][_0x7d299d(0x211)](0x2);return;}this['_sessionStatus$'][_0x7d299d(0x211)](0x3);const _0x213191=(_0xc3a4b6=_0x19845b[_0x7d299d(0x95)][_0x7d299d(0x113)][this[_0x7d299d(0x119)]])==null?void 0x0:_0xc3a4b6['members'];_0x213191&&_0x213191[_0x7d299d(0x382)](_0x3ed5cd=>this[_0x7d299d(0x330)][_0x7d299d(0x1c9)](this[_0x7d299d(0x119)],_0x3ed5cd));}[_0x5c8e6d(0x1cf)](_0x5a0cf1){const _0x509ee0=_0x5c8e6d;try{const _0x9b5742=_0x5a0cf1['data'];switch(_0x9b5742[_0x509ee0(0x3cf)]){case u[_0x509ee0(0xce)][_0x509ee0(0x387)]:this[_0x509ee0(0x372)](_0x9b5742),this[_0x509ee0(0x2a5)]['next'](_0x9b5742);break;case u[_0x509ee0(0xce)]['USERS_LEAVE']:this[_0x509ee0(0x1e5)](_0x9b5742),this['_event$'][_0x509ee0(0x211)](_0x9b5742);break;case u[_0x509ee0(0xce)][_0x509ee0(0x2c3)]:this[_0x509ee0(0x83)](),this['_event$']['next'](_0x9b5742);break;case u[_0x509ee0(0xce)][_0x509ee0(0x250)]:this[_0x509ee0(0x2e1)]['error'](_0x509ee0(0xe2)+JSON['stringify'](_0x9b5742)),this[_0x509ee0(0x2a5)][_0x509ee0(0x211)](_0x9b5742);break;default:this['_event$'][_0x509ee0(0x211)](_0x9b5742);}}catch(_0x2dbd15){this[_0x509ee0(0x2e1)][_0x509ee0(0x2bf)](_0x2dbd15,_0x5a0cf1);}}[_0x5c8e6d(0x372)](_0x33fa4c){const _0x453517=_0x5c8e6d;this[_0x453517(0x330)][_0x453517(0x1c9)](this['_unitID'],_0x33fa4c[_0x453517(0x95)]);}[_0x5c8e6d(0x1e5)](_0x5765f5){const _0x316760=_0x5c8e6d;this[_0x316760(0x330)][_0x316760(0x23b)](this[_0x316760(0x119)],_0x5765f5['data'][_0x316760(0xd6)]);}async[_0x5c8e6d(0xa4)](_0x55520f,_0x44d667){const _0x3fc517=_0x5c8e6d;if(this[_0x3fc517(0x416)]!==0x3||!this[_0x3fc517(0x2bd)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x55520f['eventID']===u[_0x3fc517(0xce)][_0x3fc517(0x368)]&&this[_0x3fc517(0x31e)](),this[_0x3fc517(0x2bd)][_0x3fc517(0xa4)]({'cmd':b[_0x3fc517(0x321)],'routeKey':_0x44d667,'routeType':'','data':_0x55520f});}catch(_0x4c270a){this[_0x3fc517(0x2e1)]['error'](_0x4c270a);}}[_0x5c8e6d(0x31e)](){const _0x4cf2ee=_0x5c8e6d;var _0x4c4fac;this[_0x4cf2ee(0x415)]=window['setTimeout'](()=>{const _0x6cd389=_0x4cf2ee;this[_0x6cd389(0x415)]=null,this[_0x6cd389(0x324)][_0x6cd389(0x302)]({'type':oe[_0x6cd389(0x3c1)][_0x6cd389(0x3e0)],'content':this['_localeService']['t'](_0x6cd389(0x114))});},(_0x4c4fac=this[_0x4cf2ee(0x3f7)]['getConfig'](xe))!=null?_0x4c4fac:dt);}['_clearCollaborationTimeoutTimer'](){const _0x4909ae=_0x5c8e6d;this[_0x4909ae(0x415)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x4909ae(0x415)]=null);}},exports[_0x5c8e6d(0x37b)]=pt([U(0x2,a[_0x5c8e6d(0x14f)]),U(0x3,N['IBeforeCloseService']),U(0x4,N[_0x5c8e6d(0x204)]),U(0x5,a[_0x5c8e6d(0x3fd)]),U(0x6,h['Inject'](a[_0x5c8e6d(0x405)])),U(0x7,h[_0x5c8e6d(0x189)](G))],exports[_0x5c8e6d(0x37b)]),exports['CollaborationSessionService']=class extends a['Disposable']{constructor(_0x56e6fa,_0x2776b1,_0x21c47d,_0x2c224c,_0x132687,_0x1ad25a){const _0x233667=_0x5c8e6d;super(),d(this,_0x233667(0x199),new g[(_0x233667(0x18a))](void 0x0)),d(this,_0x233667(0x347),new Map()),d(this,_0x233667(0x156),new g[(_0x233667(0x18a))](0x0)),d(this,_0x233667(0x8d),this['_status$']['asObservable']()),d(this,_0x233667(0x104),!0x1),d(this,'_sendHeartbeatTimer'),d(this,_0x233667(0x129)),d(this,'_retryConnectingTimer'),d(this,'_retryCount',0x0),(this['_injector']=_0x56e6fa,this[_0x233667(0x1df)]=_0x2776b1,this[_0x233667(0x324)]=_0x21c47d,this[_0x233667(0x2e1)]=_0x2c224c,this['_configService']=_0x132687,this[_0x233667(0x394)]=_0x1ad25a);}get[_0x5c8e6d(0x2bd)](){const _0x132df4=_0x5c8e6d;return this['_socket$'][_0x132df4(0x3ba)]();}[_0x5c8e6d(0x364)](){const _0x47efd4=_0x5c8e6d;super[_0x47efd4(0x364)](),this[_0x47efd4(0x347)][_0x47efd4(0x382)](_0x5083ef=>_0x5083ef[_0x47efd4(0x364)]()),this[_0x47efd4(0x347)][_0x47efd4(0x2f3)](),this[_0x47efd4(0x156)][_0x47efd4(0x3e7)]();}async[_0x5c8e6d(0x319)](_0x2e4ee2){const _0x3442c7=_0x5c8e6d;if(this[_0x3442c7(0x347)][_0x3442c7(0x315)](_0x2e4ee2))return this[_0x3442c7(0x347)][_0x3442c7(0xc0)](_0x2e4ee2);this[_0x3442c7(0x121)]();const _0x23c976=this[_0x3442c7(0x21a)]['createInstance'](exports[_0x3442c7(0x37b)],_0x2e4ee2,this[_0x3442c7(0x199)][_0x3442c7(0xb5)]());return this['_sessions']['set'](_0x2e4ee2,_0x23c976),_0x23c976;}[_0x5c8e6d(0x122)](){const _0x893958=_0x5c8e6d;var _0x5931fd;const _0x41cbde=(_0x5931fd=this[_0x893958(0x3f7)][_0x893958(0xab)](_t))!=null?_0x5931fd:Ft;return this[_0x893958(0x394)][_0x893958(0x1ad)](_0x41cbde);}['_tryEnsureSocket'](){const _0x470123=_0x5c8e6d;try{const _0x381e30=this['_createSocket']();if(_0x381e30){const _0x3abb62=_0x381e30[_0x470123(0xa4)];_0x381e30[_0x470123(0xa4)]=_0x422080=>(this[_0x470123(0x7c)](),_0x3abb62[_0x470123(0x2ed)](_0x381e30,[_0x422080])),_0x381e30[_0x470123(0x38e)][_0x470123(0x237)](_0x2bbd57=>this[_0x470123(0x19f)](_0x381e30,_0x2bbd57)),_0x381e30[_0x470123(0x19b)][_0x470123(0x149)](T[_0x470123(0x26a)](0x1))[_0x470123(0x237)](_0x3bc65f=>this[_0x470123(0x2e1)][_0x470123(0x2bf)](_0x470123(0x1fa),_0x3bc65f)),_0x381e30[_0x470123(0x3a9)][_0x470123(0x149)](T[_0x470123(0x26a)](0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x381e30);}),_0x381e30[_0x470123(0xef)][_0x470123(0x149)](T[_0x470123(0x26a)](0x1))[_0x470123(0x237)](_0x2ca5fc=>{const _0x5d84b1=_0x470123;this[_0x5d84b1(0x2e1)][_0x5d84b1(0x383)](_0x5d84b1(0x124),'socket\x20close',_0x2ca5fc),this['_onConnectionFailed']();});}}catch(_0x45749d){this['_logService'][_0x470123(0x2bf)](_0x45749d),this[_0x470123(0x25e)]();}}[_0x5c8e6d(0xf5)](_0x5ed131){const _0x53fea6=_0x5c8e6d;this[_0x53fea6(0x2e1)][_0x53fea6(0x383)](_0x53fea6(0x124),_0x53fea6(0x21f)),_0x5ed131['send']({'cmd':b['HELLO']}),this[_0x53fea6(0x7c)]();}['_onConnectionFailed'](){const _0x43b234=_0x5c8e6d;var _0x4f34e6;this[_0x43b234(0x156)][_0x43b234(0x211)](0x2),this['_socket$'][_0x43b234(0x211)](null),this[_0x43b234(0x2bb)](),this[_0x43b234(0x325)](),this[_0x43b234(0x104)]=!0x1,this[_0x43b234(0x3b3)]<((_0x4f34e6=this[_0x43b234(0x3f7)][_0x43b234(0xab)](Yt))!=null?_0x4f34e6:Kt)?(this['_scheduleReconnection'](this[_0x43b234(0x3b3)]),this[_0x43b234(0x3b3)]+=0x1):this[_0x43b234(0x324)]['show']({'type':oe['MessageType'][_0x43b234(0x3e0)],'content':this[_0x43b234(0x1df)]['t'](_0x43b234(0x384))});}[_0x5c8e6d(0x3c8)](_0x38746d){const _0x4198be=_0x5c8e6d;var _0x2ae93c;const _0x78df6d=((_0x2ae93c=this['_configService'][_0x4198be(0xab)](Wt))!=null?_0x2ae93c:Gt)*0x2**_0x38746d;this['_messageService'][_0x4198be(0x302)]({'type':oe['MessageType']['Warning'],'content':this[_0x4198be(0x1df)]['t'](_0x4198be(0xb9))}),this[_0x4198be(0x193)]=setTimeout(()=>{const _0x161cf7=_0x4198be;this[_0x161cf7(0x121)](),clearTimeout(this[_0x161cf7(0x193)]),this[_0x161cf7(0x193)]=null;},_0x78df6d);}['_rescheduleHeartbeatEvent'](){const _0x5a6da1=_0x5c8e6d;var _0x350d73;this[_0x5a6da1(0x325)](),this[_0x5a6da1(0x1aa)]=setTimeout(()=>this[_0x5a6da1(0x185)](),(_0x350d73=this[_0x5a6da1(0x3f7)][_0x5a6da1(0xab)](ut))!=null?_0x350d73:Vt);}['_sendHeartbeat'](){const _0x342c5f=_0x5c8e6d;this[_0x342c5f(0x2bd)][_0x342c5f(0xa4)]({'cmd':b[_0x342c5f(0x11d)]}),this[_0x342c5f(0xe5)]();}[_0x5c8e6d(0xe5)](){const _0x27bc4a=_0x5c8e6d;var _0x8cb8f9;this[_0x27bc4a(0x129)]=setTimeout(()=>this[_0x27bc4a(0x25e)](),(_0x8cb8f9=this[_0x27bc4a(0x3f7)][_0x27bc4a(0xab)](xe))!=null?_0x8cb8f9:dt);}['_onMessage'](_0x3d0791,_0x461935){const _0x1a6500=_0x5c8e6d,{cmd:_0x359acf}=_0x461935;_0x359acf===b[_0x1a6500(0x228)]&&!this[_0x1a6500(0x104)]&&(_0x3d0791[_0x1a6500(0xd6)]=_0x461935[_0x1a6500(0x95)][_0x1a6500(0xd6)],this[_0x1a6500(0x199)][_0x1a6500(0x211)](_0x3d0791),this[_0x1a6500(0x156)]['next'](0x3),this[_0x1a6500(0x104)]=!0x0),_0x359acf===b[_0x1a6500(0x11d)]&&this['_clearTimeoutTimer'](),this[_0x1a6500(0x7c)]();}[_0x5c8e6d(0x325)](){const _0x558f55=_0x5c8e6d;this[_0x558f55(0x1aa)]!=null&&(clearTimeout(this[_0x558f55(0x1aa)]),this[_0x558f55(0x1aa)]=null);}['_clearTimeoutTimer'](){const _0x23c634=_0x5c8e6d;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x23c634(0x129)]),this[_0x23c634(0x129)]=null);}},exports[_0x5c8e6d(0x356)]=pt([U(0x0,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),U(0x1,h[_0x5c8e6d(0x189)](a['LocaleService'])),U(0x2,N['IMessageService']),U(0x3,a[_0x5c8e6d(0x14f)]),U(0x4,a[_0x5c8e6d(0x3fd)]),U(0x5,Be)],exports[_0x5c8e6d(0x356)]);var as=Object[_0x5c8e6d(0x3a5)],cs=Object['getOwnPropertyDescriptor'],ls=(_0x4676c3,_0x2557fb,_0x492499,_0x545e28)=>{const _0x5270d9=_0x5c8e6d;for(var _0x483d19=_0x545e28>0x1?void 0x0:_0x545e28?cs(_0x2557fb,_0x492499):_0x2557fb,_0x2bd8e6=_0x4676c3[_0x5270d9(0x7a)]-0x1,_0x25cbae;_0x2bd8e6>=0x0;_0x2bd8e6--)(_0x25cbae=_0x4676c3[_0x2bd8e6])&&(_0x483d19=(_0x545e28?_0x25cbae(_0x2557fb,_0x492499,_0x483d19):_0x25cbae(_0x483d19))||_0x483d19);return _0x545e28&&_0x483d19&&as(_0x2557fb,_0x492499,_0x483d19),_0x483d19;},se=(_0x1513a1,_0x4ef938)=>(_0x476049,_0x14a756)=>_0x4ef938(_0x476049,_0x14a756,_0x1513a1);exports[_0x5c8e6d(0x342)]=class extends a['Disposable']{constructor(_0x4c0972,_0x399467,_0x623b8f,_0xeeb021,_0x599082){const _0x38d9f5=_0x5c8e6d;super(),d(this,_0x38d9f5(0x1d0),new Map()),d(this,_0x38d9f5(0xf3),new Map()),d(this,_0x38d9f5(0x117),!0x1),(this[_0x38d9f5(0x3f7)]=_0x4c0972,this[_0x38d9f5(0xc9)]=_0x399467,this[_0x38d9f5(0x3a4)]=_0x623b8f,this['_localeService']=_0xeeb021,this[_0x38d9f5(0x3a6)]=_0x599082,this[_0x38d9f5(0x409)]());}[_0x5c8e6d(0x2b3)](){this['_disabled']=!0x0;}[_0x5c8e6d(0x3a2)](){const _0x508a73=_0x5c8e6d;this[_0x508a73(0x117)]=!0x1;}[_0x5c8e6d(0x364)](){const _0x24d6a9=_0x5c8e6d;this[_0x24d6a9(0x41b)]()[_0x24d6a9(0x99)](()=>super['dispose']());}async[_0x5c8e6d(0x3d8)](_0x21192a){const _0x46e8e4=_0x5c8e6d;return this[_0x46e8e4(0x117)]?null:this[_0x46e8e4(0xc9)][_0x46e8e4(0x13d)](Xe(_0x21192a));}async[_0x5c8e6d(0x33f)](_0x4c73cc,_0x28cecc){const _0x4924d4=_0x5c8e6d;return!!this['_localStorageService'][_0x4924d4(0x282)](_0x4c73cc,_0x28cecc);}['updateOfflineData'](_0x383117,_0x304901,_0x7b1c6,_0x5dde55){const _0x116464=_0x5c8e6d,_0x4a793b=this[_0x116464(0x3a6)]['getCurrentRevForDocument'](_0x383117);this[_0x116464(0x1d0)][_0x116464(0x395)](_0x383117,{'unitID':_0x383117,'type':_0x304901,'awaitingChangeset':_0x7b1c6,'mutations':_0x5dde55,'rev':_0x4a793b}),this['_saveTaskMap'][_0x116464(0x315)](_0x383117)||this[_0x116464(0x352)](_0x383117);}[_0x5c8e6d(0x352)](_0x28ac0f){const _0x5cf231=_0x5c8e6d,_0x3df4d4=this[_0x5cf231(0x1fc)]();_0x3df4d4===0x0?this[_0x5cf231(0x2cb)](_0x28ac0f):this['_saveTaskMap'][_0x5cf231(0x395)](_0x28ac0f,setTimeout(()=>this[_0x5cf231(0x2cb)](_0x28ac0f),_0x3df4d4));}[_0x5c8e6d(0x1fc)](){const _0x2f74c7=_0x5c8e6d;var _0x5daf1b;return(_0x5daf1b=this['_configService'][_0x2f74c7(0xab)](St))!=null?_0x5daf1b:Xt;}[_0x5c8e6d(0x2cb)](_0x5f3386){const _0x1c2438=_0x5c8e6d,_0x5a03fd=this[_0x1c2438(0xf3)][_0x1c2438(0xc0)](_0x5f3386);return _0x5a03fd!==void 0x0&&window[_0x1c2438(0x88)](_0x5a03fd),this['_localStorageService'][_0x1c2438(0x282)](Xe(_0x5f3386),this[_0x1c2438(0x1d0)][_0x1c2438(0xc0)](_0x5f3386))[_0x1c2438(0x99)](()=>this[_0x1c2438(0xf3)][_0x1c2438(0x235)](_0x5f3386));}async['_exhaustSavingTask'](){const _0x3bbfe7=_0x5c8e6d,_0x4dcabe=[];this[_0x3bbfe7(0xf3)][_0x3bbfe7(0x382)]((_0x4bf37e,_0x3385b4)=>{const _0x16e1d2=_0x3bbfe7;window[_0x16e1d2(0x88)](_0x4bf37e),_0x4dcabe[_0x16e1d2(0x105)](this[_0x16e1d2(0x2cb)](_0x3385b4)[_0x16e1d2(0x99)](()=>{const _0x4f157d=_0x16e1d2;this[_0x4f157d(0xf3)][_0x4f157d(0x235)](_0x3385b4);}));}),await Promise[_0x3bbfe7(0x1a4)](_0x4dcabe);}[_0x5c8e6d(0x409)](){const _0xad4d4d=_0x5c8e6d;this[_0xad4d4d(0x2c5)](this[_0xad4d4d(0x3a4)][_0xad4d4d(0x34b)](()=>{const _0x3227dc=_0xad4d4d;if(this[_0x3227dc(0xf3)][_0x3227dc(0x112)])return this['_localeService']['t'](_0x3227dc(0x1fb));}));}},exports['LocalCacheService']=ls([se(0x0,a['IConfigService']),se(0x1,a[_0x5c8e6d(0xd0)]),se(0x2,N['IBeforeCloseService']),se(0x3,h['Inject'](a[_0x5c8e6d(0x405)])),se(0x4,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)]))],exports[_0x5c8e6d(0x342)]);function Xe(_0x1beeee){const _0x21176a=_0x5c8e6d;return _0x21176a(0x32b)+_0x1beeee;}const pe=h['createIdentifier'](_0x5c8e6d(0xbf));var Et=(_0x3d7620=>(_0x3d7620[_0x3d7620['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3d7620[_0x3d7620[_0x5c8e6d(0x3bc)]=0x1]=_0x5c8e6d(0x3bc),_0x3d7620))(Et||{});const qe=0x7530,Je='ACTIVE_UNIT_EVENT_CHANNEL';class hs extends a[_0x5c8e6d(0x40b)]{constructor(){const _0x275590=_0x5c8e6d;super(),d(this,'_id',a[_0x275590(0x268)][_0x275590(0x1b1)]()),d(this,_0x275590(0x351),new Set()),d(this,_0x275590(0x227),new Map()),d(this,_0x275590(0x1a0),null),d(this,'_clearOtherTimers',new Map()),d(this,'_unitStatus',new Map()),this['_init']();}[_0x5c8e6d(0x364)](){const _0x2a1a52=_0x5c8e6d;super[_0x2a1a52(0x364)](),this[_0x2a1a52(0x2aa)][_0x2a1a52(0x382)]((_0x25afa7,_0x3b37ad)=>this[_0x2a1a52(0x3e6)](_0x3b37ad)),this[_0x2a1a52(0x1a0)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x471acd){const _0x4b34c2=_0x5c8e6d;return this[_0x4b34c2(0x12f)](_0x471acd)[_0x4b34c2(0x149)](g['distinctUntilChanged']());}['editingUnit'](_0x1d7d19){const _0x4aaf15=_0x5c8e6d;this[_0x4aaf15(0x351)][_0x4aaf15(0x112)]===0x0&&this[_0x4aaf15(0x38d)](),this['_selfUnitIDs']['add'](_0x1d7d19),this[_0x4aaf15(0x24f)]({'type':0x0,'memberID':this[_0x4aaf15(0x14a)],'unitIDs':[_0x1d7d19],'isForwarded':!0x1});}[_0x5c8e6d(0x39c)](_0x1a8e35){const _0x2ef961=_0x5c8e6d;this[_0x2ef961(0x351)][_0x2ef961(0x235)](_0x1a8e35),this['_selfUnitIDs'][_0x2ef961(0x112)]===0x0&&this[_0x2ef961(0x1a0)]&&window['clearInterval'](this[_0x2ef961(0x1a0)]);}[_0x5c8e6d(0x8a)](){const _0x38fe25=_0x5c8e6d;this[_0x38fe25(0x2c5)](a[_0x38fe25(0x3c9)](g['fromEvent'](window,_0x38fe25(0x3e3))['subscribe'](_0x3200e9=>{const _0x379ca8=_0x38fe25;if(_0x3200e9[_0x379ca8(0x274)]!==Je||!_0x3200e9['newValue'])return;const _0x38e685=JSON[_0x379ca8(0x2d5)](_0x3200e9['newValue']);this[_0x379ca8(0x32d)](_0x38e685);}))),window[_0x38fe25(0x1f3)](_0x38fe25(0x2c7),()=>this['_send']({'type':0x1,'memberID':this[_0x38fe25(0x14a)],'unitIDs':Array['from'](this[_0x38fe25(0x351)])}));}['_handleEvent'](_0x9f7909){const _0x28482a=_0x5c8e6d;switch(_0x9f7909[_0x28482a(0x27e)]){case 0x0:this[_0x28482a(0x126)](_0x9f7909);break;case 0x1:this[_0x28482a(0x1d1)](_0x9f7909);break;case 0x2:this[_0x28482a(0xbe)](_0x9f7909);break;}}[_0x5c8e6d(0x126)](_0x444b56){const _0x43c7eb=_0x5c8e6d,{unitIDs:_0x3ba8fa,memberID:_0x1eb381,isForwarded:_0x46df42}=_0x444b56;_0x3ba8fa[_0x43c7eb(0x382)](_0x78094b=>{const _0x757e26=_0x43c7eb;if(!_0x46df42&&this[_0x757e26(0x227)]['has'](_0x78094b)&&this[_0x757e26(0x12f)](_0x78094b)['next'](0x1),!this[_0x757e26(0x227)][_0x757e26(0x315)](_0x78094b)||!this[_0x757e26(0x227)][_0x757e26(0xc0)](_0x78094b)[_0x757e26(0x315)](_0x1eb381)){const _0x41bed4=this[_0x757e26(0x227)][_0x757e26(0xc0)](_0x78094b)||new Set();_0x41bed4[_0x757e26(0x303)](_0x1eb381),this[_0x757e26(0x227)][_0x757e26(0x395)](_0x78094b,_0x41bed4),this[_0x757e26(0x3d0)](_0x1eb381);}}),_0x46df42||this[_0x43c7eb(0x24f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x43c7eb(0x351)]],'isForwarded':!0x0});}[_0x5c8e6d(0x3d0)](_0x49abf0){const _0x133495=_0x5c8e6d;this[_0x133495(0x3e6)](_0x49abf0);const _0x124950=window[_0x133495(0x103)](()=>{const _0x29da2d=_0x133495;this[_0x29da2d(0x227)][_0x29da2d(0x382)](_0x1f659e=>{_0x1f659e['delete'](_0x49abf0);});},qe*0x2);this[_0x133495(0x2aa)]['set'](_0x49abf0,_0x124950);}[_0x5c8e6d(0x3e6)](_0x590ba1){const _0x325e3b=_0x5c8e6d;if(this[_0x325e3b(0x2aa)]['has'](_0x590ba1)){const _0x1ef475=this[_0x325e3b(0x2aa)][_0x325e3b(0xc0)](_0x590ba1);_0x1ef475&&window[_0x325e3b(0x88)](_0x1ef475),this[_0x325e3b(0x2aa)]['set'](_0x590ba1,null);}}[_0x5c8e6d(0x1d1)](_0x894aad){const _0x182004=_0x5c8e6d,{memberID:_0x484c72,unitIDs:_0x405b0b}=_0x894aad;_0x405b0b[_0x182004(0x382)](_0x53b6d8=>{const _0x3946bc=_0x182004;var _0x4ec6cf;const _0x21787b=this[_0x3946bc(0x227)][_0x3946bc(0xc0)](_0x53b6d8);_0x21787b&&(_0x21787b[_0x3946bc(0x235)](_0x484c72),(_0x4ec6cf=this['_ensureSubject'](_0x53b6d8))==null||_0x4ec6cf[_0x3946bc(0x211)](_0x21787b[_0x3946bc(0x112)]===0x0?0x0:0x1));}),this[_0x182004(0x3e6)](_0x484c72);}[_0x5c8e6d(0xbe)](_0x967f42){const _0x3954d7=_0x5c8e6d;this['_scheduleClearOtherTimer'](_0x967f42[_0x3954d7(0xd6)]);}[_0x5c8e6d(0x24f)](_0x2f11c0){const _0x1082ac=_0x5c8e6d;localStorage[_0x1082ac(0x282)](Je,JSON['stringify'](_0x2f11c0));}[_0x5c8e6d(0x38d)](){const _0x31545b=_0x5c8e6d;this['_heartbeatTimer']=window[_0x31545b(0x3a7)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},qe);}['_ensureSubject'](_0x4d3cf7){const _0x4a36c0=_0x5c8e6d;return this[_0x4a36c0(0x17a)][_0x4a36c0(0x315)](_0x4d3cf7)||this['_unitStatus'][_0x4a36c0(0x395)](_0x4d3cf7,new g['BehaviorSubject'](0x0)),this['_unitStatus'][_0x4a36c0(0xc0)](_0x4d3cf7);}}var _s=Object[_0x5c8e6d(0x3a5)],us=Object[_0x5c8e6d(0x373)],ds=(_0x48e040,_0x47f0c2,_0x15a33a,_0x282c18)=>{const _0xf274e=_0x5c8e6d;for(var _0x31f931=_0x282c18>0x1?void 0x0:_0x282c18?us(_0x47f0c2,_0x15a33a):_0x47f0c2,_0x114e9a=_0x48e040[_0xf274e(0x7a)]-0x1,_0x2bad71;_0x114e9a>=0x0;_0x114e9a--)(_0x2bad71=_0x48e040[_0x114e9a])&&(_0x31f931=(_0x282c18?_0x2bad71(_0x47f0c2,_0x15a33a,_0x31f931):_0x2bad71(_0x31f931))||_0x31f931);return _0x282c18&&_0x31f931&&_s(_0x47f0c2,_0x15a33a,_0x31f931),_0x31f931;},ze=(_0x5eb9b3,_0x408973)=>(_0x26b256,_0x14b8ca)=>_0x408973(_0x26b256,_0x14b8ca,_0x5eb9b3);let ve=class{constructor(_0x15eb8d,_0x2e829a){const _0x292b55=_0x5c8e6d;this[_0x292b55(0x21a)]=_0x15eb8d,this[_0x292b55(0xdb)]=_0x2e829a;}[_0x5c8e6d(0x241)](_0x172b5c){const _0x163ad9=_0x5c8e6d;this[_0x163ad9(0x27b)](_0x172b5c),this[_0x163ad9(0x207)](_0x172b5c);}[_0x5c8e6d(0x314)](_0x4fafad){const _0x1f4a5c=_0x5c8e6d,_0x2e6490=this['_injector'][_0x1f4a5c(0xc0)](M[_0x1f4a5c(0x224)]),{redoCache:_0x401573}=_0x2e6490['getUndoRedoMutationParamsCache']();if(_0x401573[_0x1f4a5c(0x7a)]===0x0)return _0x4fafad;let _0x3228f9=a[_0x1f4a5c(0x268)][_0x1f4a5c(0x25d)](_0x4fafad[_0x1f4a5c(0xdc)][0x0]);for(let _0x152805=0x0;_0x152805<_0x401573[_0x1f4a5c(0x7a)];_0x152805++){const _0xe076e8={'id':'doc.mutation.rich-text-editing','params':{..._0x401573[_0x152805]}},_0x45d1f6=this[_0x1f4a5c(0xdb)][_0x1f4a5c(0x291)](_0x3228f9,_0xe076e8,!0x1);if(u[_0x1f4a5c(0x108)](_0x45d1f6))throw _0x45d1f6[_0x1f4a5c(0x2bf)];_0x3228f9=_0x45d1f6[_0x1f4a5c(0x168)];}return{...a[_0x1f4a5c(0x268)][_0x1f4a5c(0x25d)](_0x4fafad),'mutations':[_0x3228f9]};}['_transformUndoRedoStack'](_0x45924d){const _0x2a6a3f=_0x5c8e6d,_0x1bd527=this['_injector']['get'](M['IMEInputManagerService']),{undoCache:_0x4e8c24,redoCache:_0x3b6628}=_0x1bd527[_0x2a6a3f(0x216)]();if(_0x4e8c24[_0x2a6a3f(0x7a)]===0x0||_0x3b6628['length']===0x0)return;const _0x492576=[],_0x177764=[];let _0x2671f7=a[_0x2a6a3f(0x268)][_0x2a6a3f(0x25d)](_0x45924d[_0x2a6a3f(0xdc)][0x0]),_0x4d7eca=a[_0x2a6a3f(0x268)][_0x2a6a3f(0x25d)](_0x45924d['mutations'][0x0]);for(let _0x2240a2=_0x4e8c24[_0x2a6a3f(0x7a)]-0x1;_0x2240a2>=0x0;_0x2240a2--){const _0x31b8e9={'id':'doc.mutation.rich-text-editing','params':{..._0x4e8c24[_0x2240a2]}},_0x2d2013={'id':_0x2a6a3f(0x358),'params':{..._0x3b6628[_0x2240a2]}},_0xfa9ec8=this[_0x2a6a3f(0xdb)][_0x2a6a3f(0x291)](_0x2671f7,_0x31b8e9,!0x1),_0x1a732d=this[_0x2a6a3f(0xdb)][_0x2a6a3f(0x291)](_0x4d7eca,_0x2d2013,!0x1);if(u[_0x2a6a3f(0x108)](_0xfa9ec8))throw _0xfa9ec8[_0x2a6a3f(0x2bf)];if(u[_0x2a6a3f(0x108)](_0x1a732d))throw _0x1a732d[_0x2a6a3f(0x2bf)];_0x492576[_0x2a6a3f(0x205)](_0xfa9ec8[_0x2a6a3f(0x2b1)]['params']),_0x177764[_0x2a6a3f(0x205)](_0x1a732d[_0x2a6a3f(0x2b1)][_0x2a6a3f(0x355)]),_0x2671f7=_0xfa9ec8['m1Prime'],_0x4d7eca=_0x1a732d[_0x2a6a3f(0x168)];}_0x1bd527[_0x2a6a3f(0x1b0)]({'undoCache':_0x492576,'redoCache':_0x177764});}['_transformPreviousActiveRange'](_0x3a04a3){const _0x5a1368=_0x5c8e6d,_0x30ff13=this[_0x5a1368(0x21a)]['get'](M[_0x5a1368(0x224)]),_0x24bfaf=_0x30ff13[_0x5a1368(0x249)]();if(_0x24bfaf==null)return;const _0x54f9cd=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3a04a3[_0x5a1368(0x27a)],'actions':null,'textRanges':[_0x24bfaf]}}],_0x181fd9=this[_0x5a1368(0xdb)][_0x5a1368(0x3fb)](_0x3a04a3,_0x54f9cd);if(!u[_0x5a1368(0x30e)](_0x181fd9))throw _0x181fd9[_0x5a1368(0x2bf)];const _0x558b6f=_0x181fd9[_0x5a1368(0x2b1)][0x0][_0x5a1368(0x355)][_0x5a1368(0x29c)];Array[_0x5a1368(0x218)](_0x558b6f)&&_0x558b6f[_0x5a1368(0x7a)]&&_0x30ff13[_0x5a1368(0xd4)](_0x558b6f[0x0]);}};ve=ds([ze(0x0,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),ze(0x1,u['ITransformService'])],ve);var Ss=Object['defineProperty'],vs=Object[_0x5c8e6d(0x373)],gs=(_0x504530,_0x4f127f,_0x503e70,_0x2914fa)=>{const _0x26e774=_0x5c8e6d;for(var _0xee179c=_0x2914fa>0x1?void 0x0:_0x2914fa?vs(_0x4f127f,_0x503e70):_0x4f127f,_0x5c2f8c=_0x504530[_0x26e774(0x7a)]-0x1,_0x7bdb6a;_0x5c2f8c>=0x0;_0x5c2f8c--)(_0x7bdb6a=_0x504530[_0x5c2f8c])&&(_0xee179c=(_0x2914fa?_0x7bdb6a(_0x4f127f,_0x503e70,_0xee179c):_0x7bdb6a(_0xee179c))||_0xee179c);return _0x2914fa&&_0xee179c&&Ss(_0x4f127f,_0x503e70,_0xee179c),_0xee179c;},Ze=(_0x203ac4,_0x58f3d7)=>(_0x20f6a2,_0x1bdb52)=>_0x58f3d7(_0x20f6a2,_0x1bdb52,_0x203ac4);let ge=class{constructor(_0x4b3e58,_0x33e0ba){const _0x58c28e=_0x5c8e6d;this[_0x58c28e(0x21a)]=_0x4b3e58,this[_0x58c28e(0xdb)]=_0x33e0ba;}[_0x5c8e6d(0x37f)](_0x741214){const _0x505224=_0x5c8e6d;var _0x526561;const _0x284a5e=this['_injector']['get'](M[_0x505224(0x260)]),_0x1120ee=(_0x526561=_0x284a5e[_0x505224(0xb6)]())!=null?_0x526561:[],_0x5e6c37=_0x1120ee==null?void 0x0:_0x1120ee[_0x505224(0xe8)](M[_0x505224(0x29e)]);if(_0x5e6c37[_0x505224(0x7a)]===0x0)return;const _0x2a1ab8=[{'id':_0x505224(0x358),'params':{'unitId':_0x741214['unitID'],'actions':null,'textRanges':_0x5e6c37}}],_0x17dceb=this[_0x505224(0xdb)][_0x505224(0x3fb)](_0x741214,_0x2a1ab8);if(!u[_0x505224(0x30e)](_0x17dceb))throw _0x17dceb['error'];const _0x439228=_0x17dceb['m2Prime'][0x0][_0x505224(0x355)][_0x505224(0x29c)];Array[_0x505224(0x218)](_0x439228)&&_0x439228[_0x505224(0x7a)]&&_0x284a5e[_0x505224(0x316)](_0x439228,!0x1);}};ge=gs([Ze(0x0,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),Ze(0x1,u[_0x5c8e6d(0x35b)])],ge);function Ct(_0xece85a){let _0x1970a5='';for(const _0xf23d94 of _0xece85a){const {startOffset:_0x133fbe,endOffset:_0x3706ae,isActive:_0x130773}=_0xf23d94;_0x1970a5['length']&&(_0x1970a5+=','),_0x1970a5+=_0x133fbe+':'+_0x3706ae+':'+(_0x130773?'1':'0');}return _0x1970a5;}function fs(_0x4d002b){const _0x43e27b=_0x5c8e6d,_0x467786=_0x4d002b[_0x43e27b(0x354)](','),_0x4204e1=[];for(const _0x4a0e9c of _0x467786){const [_0x5e66bf,_0x4696e0,_0x15f22e]=_0x4a0e9c[_0x43e27b(0x354)](':');_0x4204e1[_0x43e27b(0x105)]({'startOffset':Number(_0x5e66bf),'endOffset':Number(_0x4696e0),'collapsed':_0x5e66bf===_0x4696e0,'isActive':_0x15f22e==='1'});}return _0x4204e1[_0x43e27b(0x273)](_0x450152=>_0x450152[_0x43e27b(0x334)])||(_0x4204e1[0x0][_0x43e27b(0x334)]=!0x0),_0x4204e1;}class Fe extends a['RxDisposable']{constructor(){const _0xf181f=_0x5c8e6d;super(...arguments),d(this,_0xf181f(0x102),new g[(_0xf181f(0x18a))](null)),d(this,'collabCursorState$',this[_0xf181f(0x102)][_0xf181f(0xb5)]());}['syncEditingCollabCursor'](_0x2acb58){const _0x5b73e5=_0x5c8e6d,{unitID:_0x3fe432,memberID:_0x211c52,textRanges:_0x3af37b}=_0x2acb58,_0x4641fd=Ct(_0x3af37b),_0x3ac39c={'unitID':_0x3fe432,'memberID':_0x211c52,'selection':_0x4641fd};this[_0x5b73e5(0x102)]['next'](_0x3ac39c);}}var ms=Object[_0x5c8e6d(0x3a5)],Is=Object['getOwnPropertyDescriptor'],ps=(_0x5484c8,_0x1d52da,_0x438809,_0x21686c)=>{const _0x4b0b54=_0x5c8e6d;for(var _0x2d6ccc=_0x21686c>0x1?void 0x0:_0x21686c?Is(_0x1d52da,_0x438809):_0x1d52da,_0x5d775d=_0x5484c8[_0x4b0b54(0x7a)]-0x1,_0x56f231;_0x5d775d>=0x0;_0x5d775d--)(_0x56f231=_0x5484c8[_0x5d775d])&&(_0x2d6ccc=(_0x21686c?_0x56f231(_0x1d52da,_0x438809,_0x2d6ccc):_0x56f231(_0x2d6ccc))||_0x2d6ccc);return _0x21686c&&_0x2d6ccc&&ms(_0x1d52da,_0x438809,_0x2d6ccc),_0x2d6ccc;},Qe=(_0x38e551,_0x34909c)=>(_0x35cadf,_0x529f79)=>_0x34909c(_0x35cadf,_0x529f79,_0x38e551);let fe=class{constructor(_0xca5ae3,_0x5ad819){const _0x59d070=_0x5c8e6d;this[_0x59d070(0x21a)]=_0xca5ae3,this['_transformService']=_0x5ad819;}['transformSelections'](_0x19d4f4){const _0x31f38c=_0x5c8e6d;var _0x5a8c8,_0x4a7161,_0x292849,_0x1d459b;const _0x134cd9=this[_0x31f38c(0x21a)][_0x31f38c(0xc0)](E[_0x31f38c(0x3cb)]),{pluginName:_0x25550c,unitId:_0x54eb0d,sheetId:_0xe5f897}=_0x134cd9[_0x31f38c(0x140)]()||{},_0x1b4f4b=(_0x5a8c8=_0x134cd9[_0x31f38c(0xb6)]())!=null?_0x5a8c8:[];if(_0x1b4f4b[_0x31f38c(0x7a)]===0x0||!_0x25550c||!_0x54eb0d||!_0xe5f897)return;const _0x560288=[{'id':E[_0x31f38c(0x425)]['id'],'params':{'unitId':_0x54eb0d,'subUnitId':_0xe5f897,'pluginName':_0x25550c,'selections':a['Tools'][_0x31f38c(0x25d)](_0x1b4f4b)}}],_0x3542c1=this[_0x31f38c(0xdb)][_0x31f38c(0x3fb)](_0x19d4f4,_0x560288);if(!u['isTransformMutationsWithChangesetSuccess'](_0x3542c1))throw _0x3542c1[_0x31f38c(0x2bf)];const _0xf29174=(_0x1d459b=(_0x292849=(_0x4a7161=_0x3542c1[_0x31f38c(0x2b1)][0x0])==null?void 0x0:_0x4a7161[_0x31f38c(0x355)])==null?void 0x0:_0x292849[_0x31f38c(0x38f)])!=null?_0x1d459b:_0x1b4f4b;Array['isArray'](_0xf29174)&&_0xf29174[_0x31f38c(0x7a)]&&this[_0x31f38c(0x21a)][_0x31f38c(0xc0)](a[_0x31f38c(0x1ec)])['executeCommand'](E[_0x31f38c(0x425)]['id'],{'unitId':_0x54eb0d,'subUnitId':_0xe5f897,'pluginName':_0x25550c,'selections':_0xf29174});}};fe=ps([Qe(0x0,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),Qe(0x1,u['ITransformService'])],fe);const Es=new Set([E['InsertSheetMutation']['id']]);function Cs(_0x2a1322,_0x1521df,_0x50694f,_0x204642,_0xe3221f){const _0x543f0a=_0x5c8e6d;var _0x46f9eb,_0x8bdcf,_0xab7798,_0x8cc827;const _0x20e738=[];for(const _0x3b761a of _0x2a1322)if(Es['has'](_0x3b761a['id'])){if(_0x20e738[_0x543f0a(0x7a)]>0x0)break;_0x20e738[_0x543f0a(0x105)](_0x3b761a);break;}else _0x20e738['push'](_0x3b761a);const _0x5f3bb0=(_0x8bdcf=(_0x46f9eb=_0xe3221f[_0x543f0a(0x1b9)]())==null?void 0x0:_0x46f9eb[_0x543f0a(0x10f)])!=null?_0x8bdcf:'unknown',_0xfb9372=(_0x8cc827=(_0xab7798=_0xe3221f[_0x543f0a(0x1b9)]())==null?void 0x0:_0xab7798[_0x543f0a(0xd6)])!=null?_0x8cc827:_0x543f0a(0x35d);return{'changeset':{'unitID':_0x1521df,'type':u['mapDocumentTypeToUniverType'](_0x50694f[_0x543f0a(0x3dc)](_0x1521df)),'baseRev':_0x204642[_0x543f0a(0x20e)](_0x1521df),'revision':0x0,'userID':_0x5f3bb0,'memberID':_0xfb9372,'mutations':_0x20e738},'pendingMutations':_0x2a1322[_0x543f0a(0x169)](_0x20e738['length'])};}function bs(_0x28cede,_0x585554,_0x3d7f34,_0x4a1fe3,_0x52b36c){const _0x5203fc=_0x5c8e6d;var _0x1a9001,_0x132243,_0xb9dba5,_0x1369d4;const _0x4dcc1a=[_0x28cede[_0x5203fc(0x12c)]((_0x39470c,_0x4b9359)=>{const _0x12b2b4=_0x5203fc;var _0x518aa1;const {id:_0x37f90e}=_0x39470c,{id:_0x30db2d,type:_0x4bfc87}=_0x4b9359,_0x3c2e83=(_0x518aa1=_0x39470c[_0x12b2b4(0x355)])!=null?_0x518aa1:{'actions':null},_0xd9b392=_0x4b9359[_0x12b2b4(0x355)];if(_0x37f90e&&_0x37f90e!==_0x30db2d)throw new Error(_0x12b2b4(0x304)+_0x37f90e+_0x12b2b4(0x39f)+_0x30db2d+'.');return{..._0x39470c,'id':_0x30db2d,'type':_0x4bfc87,'params':{'unitId':_0xd9b392[_0x12b2b4(0x1a2)],'textRanges':_0xd9b392[_0x12b2b4(0x29c)],'actions':a[_0x12b2b4(0x3de)]['compose'](_0x3c2e83[_0x12b2b4(0x22e)],_0xd9b392[_0x12b2b4(0x22e)])}};},{})],_0x96c2e4=(_0x132243=(_0x1a9001=_0x52b36c[_0x5203fc(0x1b9)]())==null?void 0x0:_0x1a9001[_0x5203fc(0x10f)])!=null?_0x132243:_0x5203fc(0x35d),_0x5d57f0=(_0x1369d4=(_0xb9dba5=_0x52b36c[_0x5203fc(0x1b9)]())==null?void 0x0:_0xb9dba5['memberID'])!=null?_0x1369d4:_0x5203fc(0x35d);return{'changeset':{'unitID':_0x585554,'type':u[_0x5203fc(0x1f1)](_0x3d7f34['getUnitType'](_0x585554)),'baseRev':_0x4a1fe3[_0x5203fc(0x20e)](_0x585554),'revision':0x0,'userID':_0x96c2e4,'memberID':_0x5d57f0,'mutations':_0x4dcc1a},'pendingMutations':[]};}var Ts=Object[_0x5c8e6d(0x3a5)],Rs=Object[_0x5c8e6d(0x373)],K=(_0x263c34,_0x185c5f,_0x63d35,_0xd414a5)=>{const _0x471286=_0x5c8e6d;for(var _0x3bb302=_0xd414a5>0x1?void 0x0:_0xd414a5?Rs(_0x185c5f,_0x63d35):_0x185c5f,_0x20908d=_0x263c34[_0x471286(0x7a)]-0x1,_0xedb486;_0x20908d>=0x0;_0x20908d--)(_0xedb486=_0x263c34[_0x20908d])&&(_0x3bb302=(_0xd414a5?_0xedb486(_0x185c5f,_0x63d35,_0x3bb302):_0xedb486(_0x3bb302))||_0x3bb302);return _0xd414a5&&_0x3bb302&&Ts(_0x185c5f,_0x63d35,_0x3bb302),_0x3bb302;},f=(_0x34e7d7,_0x44a4f7)=>(_0x4fe718,_0x50e172)=>_0x44a4f7(_0x4fe718,_0x50e172,_0x34e7d7),w=(_0x22c9fc=>(_0x22c9fc[_0x5c8e6d(0x2d2)]=_0x5c8e6d(0x27f),_0x22c9fc['SYNCED']=_0x5c8e6d(0x2a9),_0x22c9fc[_0x5c8e6d(0x3ff)]=_0x5c8e6d(0x254),_0x22c9fc[_0x5c8e6d(0x106)]='awaiting',_0x22c9fc[_0x5c8e6d(0xb1)]='awaiting_with_pending',_0x22c9fc[_0x5c8e6d(0x201)]=_0x5c8e6d(0x281),_0x22c9fc[_0x5c8e6d(0x288)]='conflict',_0x22c9fc['OFFLINE']=_0x5c8e6d(0x7f),_0x22c9fc))(w||{});class X{constructor(_0x1b7563,_0x30b469,_0x1e8293,_0x462732,_0x22051e,_0x215e39,_0x119b63,_0x523979,_0x2d46f6){const _0x4a2b13=_0x5c8e6d;d(this,'_awaitingChangeset',null),d(this,_0x4a2b13(0x18c),[]),(this[_0x4a2b13(0x27a)]=_0x1b7563,this[_0x4a2b13(0x27e)]=_0x30b469,this[_0x4a2b13(0x3c0)]=_0x22051e,this[_0x4a2b13(0x2ea)]=_0x215e39,this['_undoRedoService']=_0x119b63,this[_0x4a2b13(0x3a6)]=_0x523979,this[_0x4a2b13(0x11c)]=_0x2d46f6,this['_awaitingChangeset']=_0x1e8293,this[_0x4a2b13(0x18c)]=_0x462732);}['_checkMissing'](_0x15a25f){const _0x2b33e1=_0x5c8e6d,_0x45efc5=this['_revisionService'][_0x2b33e1(0x20e)](this['unitID']);return _0x15a25f[_0x2b33e1(0x15b)]>_0x45efc5+0x1?(this['_handler'][_0x2b33e1(0x101)]({'from':_0x45efc5,'to':_0x15a25f[_0x2b33e1(0x15b)]-0x1}),!0x0):!0x1;}[_0x5c8e6d(0x236)](_0x42a5d5){const _0x100e8e=_0x5c8e6d;this['_undoRedoService'][_0x100e8e(0x22f)](this[_0x100e8e(0x27a)],_0x42a5d5);}[_0x5c8e6d(0x2ab)](_0x458be5){const _0x475149=_0x5c8e6d;var _0x3f5167,_0x2ee2b0;(_0x2ee2b0=(_0x3f5167=this[_0x475149(0x3c0)])['onTransformSelections'])==null||_0x2ee2b0[_0x475149(0x253)](_0x3f5167,_0x458be5);}[_0x5c8e6d(0x3c4)](_0x48aeae){const _0x4cdc22=_0x5c8e6d;var _0x250d13,_0x5ed69d;return(_0x5ed69d=(_0x250d13=this[_0x4cdc22(0x3c0)])[_0x4cdc22(0x1bf)])==null?void 0x0:_0x5ed69d[_0x4cdc22(0x253)](_0x250d13,_0x48aeae);}[_0x5c8e6d(0x1ea)](_0xec82b5){const _0x67a5d2=_0x5c8e6d;var _0x3c2612,_0x749b0d,_0x28c289;return(_0x28c289=(_0x749b0d=(_0x3c2612=this[_0x67a5d2(0x3c0)])[_0x67a5d2(0x219)])==null?void 0x0:_0x749b0d[_0x67a5d2(0x253)](_0x3c2612,_0xec82b5))!=null?_0x28c289:_0xec82b5;}[_0x5c8e6d(0x2a2)](_0x539661){const _0x14fc72=_0x5c8e6d;var _0x11d93a,_0x298915;if(this[_0x14fc72(0x27e)]===j[_0x14fc72(0x3c5)]){const {unitID:_0x1cb2b3,mutations:_0x2e956c,memberID:_0xac79b6}=_0x539661,_0x1afcfa=_0x2e956c[0x0][_0x14fc72(0x355)][_0x14fc72(0x29c)];Array[_0x14fc72(0x218)](_0x1afcfa)&&_0x1afcfa[_0x14fc72(0x7a)]>0x0&&((_0x298915=(_0x11d93a=this[_0x14fc72(0x3c0)])[_0x14fc72(0x1cd)])==null||_0x298915[_0x14fc72(0x253)](_0x11d93a,{'unitID':_0x1cb2b3,'memberID':_0xac79b6,'textRanges':_0x1afcfa}));}}[_0x5c8e6d(0x37c)](){const _0x3d6a7f=_0x5c8e6d;this[_0x3d6a7f(0x11c)][_0x3d6a7f(0x15a)](this['unitID'],this[_0x3d6a7f(0x27e)],this[_0x3d6a7f(0x2bc)],this['_pendingMutations']);}[_0x5c8e6d(0x1e1)](){const _0xdd9fd=_0x5c8e6d;return this[_0xdd9fd(0x3a6)][_0xdd9fd(0x20e)](this['unitID']);}['_incrementRevisionNumber'](){const _0x2cb5bd=_0x5c8e6d;this['_revisionService'][_0x2cb5bd(0x69)](this[_0x2cb5bd(0x27a)]);}['_executeRemoteChangeset'](_0x1e7170){const _0x1db4da=_0x5c8e6d;var _0x51b43f;const _0x58f8e4=this[_0x1db4da(0x1ea)](_0x1e7170),_0x398a92=a[_0x1db4da(0x2df)](_0x58f8e4[_0x1db4da(0xdc)],this['_commandService'],{'fromCollab':!0x0});if(!_0x398a92[_0x1db4da(0x3f1)])throw _0x398a92[_0x1db4da(0x2bf)]instanceof Error?_0x398a92[_0x1db4da(0x2bf)]:new Error((_0x51b43f=_0x398a92[_0x1db4da(0x2bf)])!=null?_0x51b43f:_0x1db4da(0xeb));this[_0x1db4da(0x3c4)](_0x58f8e4),this[_0x1db4da(0x236)](_0x1e7170),this[_0x1db4da(0x2ab)](_0x58f8e4),this['_syncEditingCollabCursor'](_0x58f8e4),this[_0x1db4da(0x1e4)]();}}let ae=class extends X{constructor(_0x2b15bb,_0x7bd99d,_0x5b1271,_0x4630ac,_0x83be60,_0x5f2fdc,_0x368331,_0x58cf79,_0x2e6f79){const _0x1f6add=_0x5c8e6d;super(_0x2b15bb,_0x7bd99d,null,[],_0x5b1271,_0x58cf79,_0x368331,_0x4630ac,_0x83be60),d(this,'status',_0x1f6add(0x2a9)),(this['_injector']=_0x5f2fdc,this[_0x1f6add(0x2e1)]=_0x2e6f79);}[_0x5c8e6d(0x1c1)](_0x2fa9a0){const _0xb8d584=_0x5c8e6d,_0x4df8a9=this['_injector'][_0xb8d584(0x424)]($,this[_0xb8d584(0x27a)],this[_0xb8d584(0x27e)],[_0x2fa9a0],this[_0xb8d584(0x3c0)]);return _0x4df8a9[_0xb8d584(0x242)](),_0x4df8a9['_updateLocalCache'](),_0x4df8a9;}[_0x5c8e6d(0xa7)](_0x324d24){const _0x1a580b=_0x5c8e6d;if(this[_0x1a580b(0x1be)](_0x324d24))return this[_0x1a580b(0x21a)][_0x1a580b(0x424)](x,this[_0x1a580b(0x27a)],this[_0x1a580b(0x27e)],null,[],null,[_0x324d24],this[_0x1a580b(0x3c0)]);try{return this[_0x1a580b(0x3f2)](_0x324d24),this;}catch(_0x354d85){return this[_0x1a580b(0x2e1)][_0x1a580b(0x2bf)](_0x1a580b(0x396),_0x354d85),this;}}[_0x5c8e6d(0x266)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x5c8e6d(0xa2)](){const _0x309475=_0x5c8e6d;throw new Error(_0x309475(0x3b6));}['toggleOffline'](){const _0x2e194b=_0x5c8e6d;return this[_0x2e194b(0x21a)][_0x2e194b(0x424)](B,this['unitID'],this['type'],null,[],this[_0x2e194b(0x3c0)]);}['toggleOnline'](){return this;}['resend'](){const _0x244244=_0x5c8e6d;throw new Error(_0x244244(0x36f));}};ae=K([f(0x3,h['Inject'](u[_0x5c8e6d(0xd7)])),f(0x4,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),f(0x5,h['Inject'](h[_0x5c8e6d(0x212)])),f(0x6,a[_0x5c8e6d(0x295)]),f(0x7,a[_0x5c8e6d(0x1ec)]),f(0x8,a[_0x5c8e6d(0x14f)])],ae);let $=class extends X{constructor(_0xa7beab,_0x4c50d7,_0x2e0bf4,_0x5e8c29,_0x589f5a,_0x38b6a6,_0x338b0c,_0x50789f,_0x272c2d,_0x5e245d,_0x18c74c,_0x3564a1,_0x44fb38,_0x10dba4){const _0x3231a1=_0x5c8e6d;super(_0xa7beab,_0x4c50d7,null,_0x2e0bf4,_0x5e8c29,_0x5e245d,_0x10dba4,_0x38b6a6,_0x338b0c),d(this,_0x3231a1(0x174),_0x3231a1(0x254)),d(this,_0x3231a1(0x120),null),d(this,_0x3231a1(0x36b),null),(this[_0x3231a1(0x21a)]=_0x589f5a,this[_0x3231a1(0x330)]=_0x50789f,this[_0x3231a1(0x2e1)]=_0x272c2d,this[_0x3231a1(0x3f7)]=_0x18c74c,this[_0x3231a1(0xdb)]=_0x3564a1,this['_univerInstanceService']=_0x44fb38);}['appendMutation'](_0x11191b){const _0x3b0578=_0x5c8e6d;return this['_pendingMutations'][_0x3b0578(0x105)](_0x11191b),this[_0x3b0578(0x37c)](),this;}['onRemoteChangeset'](_0x29cbdd){const _0x264e76=_0x5c8e6d;if(this[_0x264e76(0x1be)](_0x29cbdd))return this['_clearScheduledTask'](),this['_injector'][_0x264e76(0x424)](x,this[_0x264e76(0x27a)],this[_0x264e76(0x27e)],null,this['_pendingMutations'],null,[_0x29cbdd],this['_handler']);try{const _0x54ff61=this['_transformService'][_0x264e76(0x3fb)](_0x29cbdd,this[_0x264e76(0x18c)]);if(u[_0x264e76(0x30e)](_0x54ff61)){const {c1Prime:_0x40a4b7,m2Prime:_0x39471d}=_0x54ff61;this[_0x264e76(0x3f2)](_0x40a4b7);const _0xe77947=this[_0x264e76(0x21a)]['createInstance']($,this[_0x264e76(0x27a)],this[_0x264e76(0x27e)],_0x39471d,this[_0x264e76(0x3c0)]);return this[_0x264e76(0x222)](),_0xe77947[_0x264e76(0x242)](this[_0x264e76(0x120)]?Math['max'](0x0,new Date()[_0x264e76(0x19d)]()-this[_0x264e76(0x120)]):this[_0x264e76(0x359)]()),_0xe77947;}throw _0x54ff61[_0x264e76(0x2bf)];}catch(_0x5b74e0){return this[_0x264e76(0x2e1)][_0x264e76(0x2bf)](_0x5b74e0),this[_0x264e76(0x306)](!0x1);}}[_0x5c8e6d(0x266)](){const _0x3b431f=_0x5c8e6d;throw new Error(_0x3b431f(0x279));}['onRemoteRej'](){const _0x3a168f=_0x5c8e6d;throw new Error(_0x3a168f(0xb8));}[_0x5c8e6d(0x176)](){const _0x1edb92=_0x5c8e6d;return this[_0x1edb92(0x222)](),this[_0x1edb92(0x21a)]['createInstance'](B,this['unitID'],this[_0x1edb92(0x27e)],null,this['_pendingMutations'],this[_0x1edb92(0x3c0)]);}[_0x5c8e6d(0x28f)](){return this;}['_schedule'](_0x13a7d8){const _0x3c3c8a=_0x5c8e6d;_0x13a7d8=_0x13a7d8!=null?_0x13a7d8:this[_0x3c3c8a(0x359)](),this['_scheduleTimestamp']=new Date()['getTime'](),this['_sendingTimer']=setTimeout(()=>{const _0x4264f4=_0x3c3c8a;this['_clearScheduledTask']();let _0x1b02a4=null;switch(this[_0x4264f4(0x27e)]){case j[_0x4264f4(0x184)]:{_0x1b02a4=Cs(this['_pendingMutations'],this[_0x4264f4(0x27a)],this['_univerInstanceService'],this['_revisionService'],this[_0x4264f4(0x330)]);break;}case j[_0x4264f4(0x3c5)]:{_0x1b02a4=bs(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x4264f4(0x330)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4264f4(0x27e)]+_0x4264f4(0x14b));}const {changeset:_0xe5a4ce,pendingMutations:_0x746280}=_0x1b02a4;this[_0x4264f4(0x3c0)]['onSendChangeset'](_0xe5a4ce);const _0x4745cc=_0x746280[_0x4264f4(0x7a)]?this[_0x4264f4(0x21a)][_0x4264f4(0x424)](H,this[_0x4264f4(0x27a)],this[_0x4264f4(0x27e)],_0xe5a4ce,_0x746280,this[_0x4264f4(0x3c0)]):this['_injector'][_0x4264f4(0x424)](k,this[_0x4264f4(0x27a)],this[_0x4264f4(0x27e)],_0xe5a4ce,this[_0x4264f4(0x3c0)]);_0x4745cc[_0x4264f4(0x37c)](),this[_0x4264f4(0x3c0)][_0x4264f4(0x322)](this,_0x4745cc);},_0x13a7d8);}[_0x5c8e6d(0x359)](){const _0xcb903a=_0x5c8e6d;var _0x3a01bc;return(_0x3a01bc=this[_0xcb903a(0x3f7)][_0xcb903a(0xab)](ht))!=null?_0x3a01bc:Bt;}[_0x5c8e6d(0x178)](){const _0xad72f5=_0x5c8e6d;throw new Error(_0xad72f5(0x72));}[_0x5c8e6d(0x222)](){const _0x1843a6=_0x5c8e6d;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1843a6(0x36b)]),this['_sendingTimer']=null);}[_0x5c8e6d(0x306)](_0x35e545){const _0x4cd0a3=_0x5c8e6d;return this[_0x4cd0a3(0x222)](),this[_0x4cd0a3(0x21a)][_0x4cd0a3(0x424)](Y,this['unitID'],this[_0x4cd0a3(0x27e)],null,this[_0x4cd0a3(0x18c)],this[_0x4cd0a3(0x3c0)],_0x35e545);}};$=K([f(0x4,h[_0x5c8e6d(0x189)](h['Injector'])),f(0x5,h['Inject'](u[_0x5c8e6d(0xd7)])),f(0x6,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),f(0x7,h[_0x5c8e6d(0x189)](G)),f(0x8,a[_0x5c8e6d(0x14f)]),f(0x9,a[_0x5c8e6d(0x1ec)]),f(0xa,a[_0x5c8e6d(0x3fd)]),f(0xb,u['ITransformService']),f(0xc,a[_0x5c8e6d(0x3b1)]),f(0xd,a['IUndoRedoService'])],$);let k=class extends X{constructor(_0x4cb6c2,_0x122308,_0x477c36,_0x572c98,_0x545a28,_0x1e3be3,_0xae8bfa,_0x4c2f65,_0x1286ae,_0x254afe,_0x55f034){const _0x224332=_0x5c8e6d;super(_0x4cb6c2,_0x122308,_0x477c36,[],_0x572c98,_0x4c2f65,_0x55f034,_0x1e3be3,_0xae8bfa),d(this,_0x224332(0x174),_0x224332(0x265)),(this[_0x224332(0x21a)]=_0x545a28,this['_logService']=_0x1286ae,this[_0x224332(0xdb)]=_0x254afe);}[_0x5c8e6d(0x1c1)](_0x17f9b9){const _0x53e0c5=_0x5c8e6d,_0x4115dd=this[_0x53e0c5(0x21a)][_0x53e0c5(0x424)](H,this[_0x53e0c5(0x27a)],this[_0x53e0c5(0x27e)],this[_0x53e0c5(0x2bc)],[_0x17f9b9],this[_0x53e0c5(0x3c0)]);return _0x4115dd[_0x53e0c5(0x37c)](),_0x4115dd;}['onRemoteChangeset'](_0x328a8d){const _0x308a70=_0x5c8e6d;if(this[_0x308a70(0x1be)](_0x328a8d))return this[_0x308a70(0x21a)][_0x308a70(0x424)](x,this[_0x308a70(0x27a)],this[_0x308a70(0x27e)],this['_awaitingChangeset'],[],null,[_0x328a8d],this[_0x308a70(0x3c0)]);try{const _0x1dcd2e=this['_transformService'][_0x308a70(0xa5)]([_0x328a8d],[this['_awaitingChangeset']],!0x1);if(u[_0x308a70(0x305)](_0x1dcd2e)){const {c1Prime:_0x571d3b,c2Prime:_0x234ce5}=_0x1dcd2e;this['_executeRemoteChangeset'](_0x571d3b[0x0]),_0x234ce5[0x0]['baseRev']=this[_0x308a70(0x1e1)]();const _0x407d8f=this[_0x308a70(0x21a)][_0x308a70(0x424)](k,this['unitID'],this[_0x308a70(0x27e)],_0x234ce5[0x0],this[_0x308a70(0x3c0)]);return _0x407d8f[_0x308a70(0x37c)](),_0x407d8f;}return this[_0x308a70(0x306)](!0x1);}catch(_0x4262dc){return this[_0x308a70(0x2e1)]['error'](_0x4262dc),this['_onConflict'](!0x1);}}[_0x5c8e6d(0x266)](_0x2b8c87){const _0x1370ef=_0x5c8e6d,_0x5ebe27=this[_0x1370ef(0x3a6)][_0x1370ef(0x20e)](this[_0x1370ef(0x27a)]);if(_0x2b8c87[_0x1370ef(0x15b)]<_0x5ebe27-0x1)return this;if(this[_0x1370ef(0x1be)](_0x2b8c87))return this[_0x1370ef(0x21a)][_0x1370ef(0x424)](x,this[_0x1370ef(0x27a)],this[_0x1370ef(0x27e)],null,[],this[_0x1370ef(0x2bc)],[],this[_0x1370ef(0x3c0)]);this[_0x1370ef(0x1e4)]();const _0x27fa54=this[_0x1370ef(0x21a)][_0x1370ef(0x424)](ae,this['unitID'],this[_0x1370ef(0x27e)],this['_handler']);return _0x27fa54[_0x1370ef(0x37c)](),_0x27fa54;}[_0x5c8e6d(0xa2)](_0x522948){const _0x43dd3a=_0x5c8e6d;return this[_0x43dd3a(0x306)](!!(_0x522948!=null&&_0x522948[_0x43dd3a(0x2a3)]));}['toggleOffline'](){const _0x158626=_0x5c8e6d;return this[_0x158626(0x21a)][_0x158626(0x424)](B,this[_0x158626(0x27a)],this[_0x158626(0x27e)],this[_0x158626(0x2bc)],[],this[_0x158626(0x3c0)]);}['toggleOnline'](){return this;}[_0x5c8e6d(0x178)](){const _0x39deef=_0x5c8e6d;this[_0x39deef(0x3c0)][_0x39deef(0x10d)](this['_awaitingChangeset']);}['_onConflict'](_0x1703dd){const _0x551863=_0x5c8e6d;return this['_injector'][_0x551863(0x424)](Y,this[_0x551863(0x27a)],this[_0x551863(0x27e)],this['_awaitingChangeset'],[],this['_handler'],_0x1703dd);}};k=K([f(0x4,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),f(0x5,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),f(0x6,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),f(0x7,a[_0x5c8e6d(0x1ec)]),f(0x8,a[_0x5c8e6d(0x14f)]),f(0x9,u[_0x5c8e6d(0x35b)]),f(0xa,a[_0x5c8e6d(0x295)])],k);let H=class extends X{constructor(_0x3579d2,_0x15b6ac,_0x1fede5,_0x36cb9a,_0x52aea7,_0x375940,_0x259fa0,_0x55951e,_0x3dfc29,_0x353fec,_0x156550,_0x255d87){const _0x27d505=_0x5c8e6d;super(_0x3579d2,_0x15b6ac,_0x1fede5,_0x36cb9a,_0x52aea7,_0x3dfc29,_0x255d87,_0x259fa0,_0x55951e),d(this,_0x27d505(0x174),'awaiting_with_pending'),(this[_0x27d505(0x21a)]=_0x375940,this[_0x27d505(0x2e1)]=_0x353fec,this[_0x27d505(0xdb)]=_0x156550);}[_0x5c8e6d(0x1c1)](_0x217b9a){const _0x2dc2cd=_0x5c8e6d;return this['_pendingMutations'][_0x2dc2cd(0x105)](_0x217b9a),this;}[_0x5c8e6d(0xa7)](_0x834f8d){const _0x1a12bb=_0x5c8e6d;if(this[_0x1a12bb(0x1be)](_0x834f8d))return this[_0x1a12bb(0x21a)][_0x1a12bb(0x424)](x,this[_0x1a12bb(0x27a)],this[_0x1a12bb(0x27e)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x834f8d],this[_0x1a12bb(0x3c0)]);try{const _0x25c414=this[_0x1a12bb(0xdb)][_0x1a12bb(0xa5)]([_0x834f8d],[this['_awaitingChangeset']],!0x1);if(u[_0x1a12bb(0x305)](_0x25c414)){const {c1Prime:_0x47160d,c2Prime:_0x25a4cc}=_0x25c414,_0x111ccf=this[_0x1a12bb(0xdb)][_0x1a12bb(0x3fb)](_0x47160d[0x0],this[_0x1a12bb(0x18c)]);if(u[_0x1a12bb(0x30e)](_0x111ccf)){const {c1Prime:_0x219550,m2Prime:_0x3fe9b9}=_0x111ccf;return this[_0x1a12bb(0x3f2)](_0x219550),_0x25a4cc[0x0][_0x1a12bb(0x9b)]=this['_getCurrentRevision'](),this[_0x1a12bb(0x21a)][_0x1a12bb(0x424)](H,this['unitID'],this[_0x1a12bb(0x27e)],_0x25a4cc[0x0],_0x3fe9b9,this[_0x1a12bb(0x3c0)]);}throw _0x111ccf[_0x1a12bb(0x2bf)];}throw _0x25c414[_0x1a12bb(0x2bf)];}catch(_0xae8054){return this[_0x1a12bb(0x2e1)][_0x1a12bb(0x2bf)](_0xae8054),this[_0x1a12bb(0x306)](!0x1);}}['onRemoteAck'](_0x20fd33){const _0x541c9c=_0x5c8e6d;if(this['_checkMissing'](_0x20fd33))return this[_0x541c9c(0x21a)][_0x541c9c(0x424)](x,this[_0x541c9c(0x27a)],this['type'],null,this[_0x541c9c(0x18c)],this[_0x541c9c(0x2bc)],[],this[_0x541c9c(0x3c0)]);this[_0x541c9c(0x1e4)]();const _0x56fdf2=this[_0x541c9c(0x21a)][_0x541c9c(0x424)]($,this['unitID'],this['type'],this[_0x541c9c(0x18c)],this[_0x541c9c(0x3c0)]);return _0x56fdf2[_0x541c9c(0x242)](),_0x56fdf2[_0x541c9c(0x37c)](),_0x56fdf2;}[_0x5c8e6d(0xa2)](_0x35be6e){const _0x3189e3=_0x5c8e6d;return this[_0x3189e3(0x306)](!!(_0x35be6e!=null&&_0x35be6e[_0x3189e3(0x2a3)]));}[_0x5c8e6d(0x176)](){const _0x208f1a=_0x5c8e6d;return this['_injector']['createInstance'](B,this[_0x208f1a(0x27a)],this[_0x208f1a(0x27e)],this['_awaitingChangeset'],this[_0x208f1a(0x18c)],this[_0x208f1a(0x3c0)]);}[_0x5c8e6d(0x28f)](){return this;}[_0x5c8e6d(0x178)](){const _0x4a3ce4=_0x5c8e6d;this['_handler'][_0x4a3ce4(0x10d)](this[_0x4a3ce4(0x2bc)]);}['_onConflict'](_0x3e6220){const _0x2c9ad6=_0x5c8e6d;return this[_0x2c9ad6(0x21a)][_0x2c9ad6(0x424)](Y,this[_0x2c9ad6(0x27a)],this['type'],null,this['_pendingMutations'],this[_0x2c9ad6(0x3c0)],_0x3e6220);}};H=K([f(0x5,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),f(0x6,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),f(0x7,h[_0x5c8e6d(0x189)](exports['LocalCacheService'])),f(0x8,a[_0x5c8e6d(0x1ec)]),f(0x9,a[_0x5c8e6d(0x14f)]),f(0xa,u[_0x5c8e6d(0x35b)]),f(0xb,a['IUndoRedoService'])],H);let Y=class extends X{constructor(_0x5aac0c,_0x50bbcd,_0x1ef9c6,_0x99abc3,_0x39b937,_0x2a23aa=!0x1,_0x699986,_0x3ebb9b,_0x4440e4,_0xdaa7d0,_0xc6687d,_0x2b6497,_0x2a0674){const _0x138d82=_0x5c8e6d;super(_0x5aac0c,_0x50bbcd,_0x1ef9c6,_0x99abc3,_0x39b937,_0x3ebb9b,_0x4440e4,_0xc6687d,_0xdaa7d0),d(this,_0x138d82(0x174),_0x138d82(0x350)),(this[_0x138d82(0x25c)]=_0x2a23aa,this[_0x138d82(0x133)]=_0x699986,this[_0x138d82(0x1df)]=_0x2b6497,this[_0x138d82(0x2e9)]=_0x2a0674,this[_0x138d82(0x3eb)](),this['_clearLocalCache'](),this[_0x138d82(0x1bc)]());}[_0x5c8e6d(0x1c1)](){return this;}['onRemoteChangeset'](){return this;}[_0x5c8e6d(0x266)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x5c8e6d(0x178)](){const _0x56fb32=_0x5c8e6d;throw new Error(_0x56fb32(0x23e));}['_clearLocalCache'](){const _0x1d7a6f=_0x5c8e6d;this[_0x1d7a6f(0x11c)][_0x1d7a6f(0x15a)](this['unitID'],this[_0x1d7a6f(0x27e)],null,[]);}[_0x5c8e6d(0x3eb)](){const _0x5b6ffe=_0x5c8e6d;this[_0x5b6ffe(0x25c)]?this[_0x5b6ffe(0x2e9)][_0x5b6ffe(0x302)]({'title':this[_0x5b6ffe(0x1df)]['t']('permission.title'),'content':this['_localeService']['t'](_0x5b6ffe(0xe1)),'type':_0x5b6ffe(0x2bf),'duration':0x0}):this[_0x5b6ffe(0x2e9)][_0x5b6ffe(0x302)]({'title':this[_0x5b6ffe(0x1df)]['t'](_0x5b6ffe(0xc2)),'content':this[_0x5b6ffe(0x1df)]['t'](_0x5b6ffe(0xba)),'type':_0x5b6ffe(0x2bf),'duration':0x0});}[_0x5c8e6d(0x1bc)](){this['_permissionService']['updatePermissionPoint'](new E['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};Y=K([f(0x6,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x13b)])),f(0x7,a[_0x5c8e6d(0x1ec)]),f(0x8,a['IUndoRedoService']),f(0x9,h['Inject'](exports['LocalCacheService'])),f(0xa,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),f(0xb,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x405)])),f(0xc,N[_0x5c8e6d(0x1e9)])],Y);let B=class extends X{constructor(_0x4c8897,_0xb40be6,_0x200233,_0x594e63,_0x3a8424,_0x24dc30,_0x1657ca,_0x31f5f3,_0x3d4a05,_0x47beb5){const _0x464e4a=_0x5c8e6d;super(_0x4c8897,_0xb40be6,_0x200233,_0x594e63,_0x3a8424,_0x3d4a05,_0x47beb5,_0x1657ca,_0x31f5f3),d(this,_0x464e4a(0x174),_0x464e4a(0x7f)),this['_injector']=_0x24dc30;}[_0x5c8e6d(0x1c1)](_0x5089d1){const _0x31b908=_0x5c8e6d;return this[_0x31b908(0x18c)]['push'](_0x5089d1),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x2eedf4){const _0x2a2658=_0x5c8e6d;throw new Error(_0x2a2658(0x26e));}['onRemoteAck'](){const _0x1c6c4a=_0x5c8e6d;throw new Error(_0x1c6c4a(0x293));}[_0x5c8e6d(0xa2)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}[_0x5c8e6d(0x28f)](){const _0x3fc302=_0x5c8e6d,{_injector:_0x564244,_pendingMutations:_0x11960d,_awaitingChangeset:_0x2a5f60,unitID:_0x2252e9,_handler:_0x3903df,type:_0x1f6302}=this,_0x3bb86a=bt(_0x564244,_0x2252e9,_0x1f6302,_0x2a5f60,_0x11960d,_0x3903df);return _0x3bb86a instanceof $?_0x3bb86a[_0x3fc302(0x242)]():(_0x3bb86a instanceof H||_0x3bb86a instanceof k)&&_0x3bb86a[_0x3fc302(0x178)](),_0x3bb86a;}[_0x5c8e6d(0x178)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};B=K([f(0x5,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),f(0x6,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),f(0x7,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),f(0x8,a[_0x5c8e6d(0x1ec)]),f(0x9,a[_0x5c8e6d(0x295)])],B);let x=class extends X{constructor(_0x824ae3,_0x477af5,_0x152e7c,_0x2a1b45,_0x23aabd,_0x4c6939,_0x259e5e,_0xc3e658,_0x42c410,_0x1dd99a,_0x2e0376,_0x220aea,_0x10acdd,_0x3ca94b){const _0xf9f416=_0x5c8e6d;super(_0x824ae3,_0x477af5,_0x152e7c,_0x2a1b45,_0x259e5e,_0x220aea,_0x10acdd,_0x42c410,_0x1dd99a),d(this,_0xf9f416(0x174),_0xf9f416(0x281)),(this[_0xf9f416(0xac)]=_0x23aabd,this[_0xf9f416(0x2b8)]=_0x4c6939,this[_0xf9f416(0x21a)]=_0xc3e658,this[_0xf9f416(0x2e1)]=_0x2e0376,this[_0xf9f416(0xdb)]=_0x3ca94b);}['onMissedChangesetFetched'](_0x410dac){const _0x11b650=_0x5c8e6d;try{const _0x45964f=[..._0x410dac,...this[_0x11b650(0x2b8)]],_0x38349e=[this[_0x11b650(0x2bc)]||this['_acknowledgedAwaitingChangeset']][_0x11b650(0x161)](_0x309288=>!!_0x309288);let _0xde1df1,_0x15230b;if(_0x38349e['length']){const _0x533fbd=this[_0x11b650(0xdb)][_0x11b650(0xa5)](_0x45964f,_0x38349e,!0x1);if(!u[_0x11b650(0x305)](_0x533fbd))throw _0x533fbd['error'];_0xde1df1=_0x533fbd[_0x11b650(0x1e2)],_0x15230b=_0x533fbd[_0x11b650(0x30c)];}else _0xde1df1=_0x45964f,_0x15230b=[];let _0x456444=this[_0x11b650(0x18c)];_0xde1df1[_0x11b650(0x382)](_0x448580=>{const _0x2df390=_0x11b650;let _0x4dc4e3;if(_0x456444['length']){const _0x1fb39c=this[_0x2df390(0xdb)][_0x2df390(0x3fb)](_0x448580,_0x456444);if(!u['isTransformMutationsWithChangesetSuccess'](_0x1fb39c))throw _0x1fb39c[_0x2df390(0x2bf)];_0x4dc4e3=_0x1fb39c['c1Prime'],_0x456444=_0x1fb39c['m2Prime'];}else _0x4dc4e3=_0x448580;this['_executeRemoteChangeset'](_0x4dc4e3);}),this[_0x11b650(0xac)]&&this['_incrementRevisionNumber'](),this[_0x11b650(0x2bc)]&&_0x15230b[_0x11b650(0x7a)]&&(_0x15230b[0x0]['baseRev']=this['_getCurrentRevision']());let _0x4d0b45;if(this[_0x11b650(0x2bc)]&&_0x456444[_0x11b650(0x7a)]!==0x0)_0x4d0b45=this[_0x11b650(0x21a)][_0x11b650(0x424)](H,this[_0x11b650(0x27a)],this[_0x11b650(0x27e)],_0x15230b[0x0],_0x456444,this[_0x11b650(0x3c0)]);else{if(this['_awaitingChangeset']&&_0x456444[_0x11b650(0x7a)]===0x0)_0x15230b[0x0][_0x11b650(0x9b)]=this[_0x11b650(0x1e1)](),_0x4d0b45=this[_0x11b650(0x21a)]['createInstance'](k,this[_0x11b650(0x27a)],this[_0x11b650(0x27e)],_0x15230b[0x0],this[_0x11b650(0x3c0)]);else{if(_0x456444['length']!==0x0){const _0x4ee03c=this['_injector']['createInstance']($,this['unitID'],this[_0x11b650(0x27e)],_0x456444,this['_handler']);_0x4ee03c[_0x11b650(0x242)](),_0x4d0b45=_0x4ee03c;}else _0x4d0b45=this[_0x11b650(0x21a)][_0x11b650(0x424)](ae,this['unitID'],this[_0x11b650(0x27e)],this[_0x11b650(0x3c0)]);}}return _0x4d0b45[_0x11b650(0x37c)](),_0x4d0b45;}catch(_0x100146){return this[_0x11b650(0x2e1)][_0x11b650(0x2bf)](_0x11b650(0x336),_0x11b650(0x2f9),_0x100146),this[_0x11b650(0x21a)][_0x11b650(0x424)](Y,this[_0x11b650(0x27a)],this[_0x11b650(0x27e)],this[_0x11b650(0x2bc)],this[_0x11b650(0x18c)],this[_0x11b650(0x3c0)],!0x1);}}['resend'](){const _0x4de334=_0x5c8e6d;throw new Error(_0x4de334(0x115));}[_0x5c8e6d(0x1c1)](_0x25a852){const _0xbacd76=_0x5c8e6d;return this[_0xbacd76(0x18c)][_0xbacd76(0x105)](_0x25a852),this;}[_0x5c8e6d(0xa7)](_0x111c3a){const _0x3d09c3=_0x5c8e6d;return this[_0x3d09c3(0x2b8)][_0x3d09c3(0x105)](_0x111c3a),this;}[_0x5c8e6d(0x266)](_0x2bf85b){const _0xb02056=_0x5c8e6d;if(this[_0xb02056(0x2bc)])return this[_0xb02056(0xac)]=this['_awaitingChangeset'],this[_0xb02056(0x2bc)]=null,this;throw new Error(_0xb02056(0x1ce));}['onRemoteRej'](_0xf5e76b){const _0x183b79=_0x5c8e6d;return this[_0x183b79(0x306)](!!(_0xf5e76b!=null&&_0xf5e76b[_0x183b79(0x2a3)]));}[_0x5c8e6d(0x176)](){const _0x39c262=_0x5c8e6d;return this[_0x39c262(0x21a)][_0x39c262(0x424)](B,this[_0x39c262(0x27a)],this[_0x39c262(0x27e)],this[_0x39c262(0x2bc)],this[_0x39c262(0x18c)],this[_0x39c262(0x3c0)]);}[_0x5c8e6d(0x28f)](){return this;}[_0x5c8e6d(0x306)](_0x1a3ba5){const _0x122801=_0x5c8e6d;return this[_0x122801(0x21a)][_0x122801(0x424)](Y,this[_0x122801(0x27a)],this[_0x122801(0x27e)],this[_0x122801(0x2bc)],this[_0x122801(0x18c)],this[_0x122801(0x3c0)],_0x1a3ba5);}};x=K([f(0x7,h[_0x5c8e6d(0x189)](h['Injector'])),f(0x8,h[_0x5c8e6d(0x189)](u['RevisionService'])),f(0x9,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),f(0xa,a[_0x5c8e6d(0x14f)]),f(0xb,a['ICommandService']),f(0xc,a[_0x5c8e6d(0x295)]),f(0xd,u[_0x5c8e6d(0x35b)])],x);function bt(_0x1d93e7,_0x2c3ada,_0x5b58c3,_0x220751,_0x5efdc3,_0x262b88){const _0x467b2d=_0x5c8e6d;return _0x220751&&_0x5efdc3['length']?_0x1d93e7[_0x467b2d(0x424)](H,_0x2c3ada,_0x5b58c3,_0x220751,_0x5efdc3,_0x262b88):_0x220751?_0x1d93e7['createInstance'](k,_0x2c3ada,_0x5b58c3,_0x220751,_0x262b88):_0x5efdc3[_0x467b2d(0x7a)]?_0x1d93e7[_0x467b2d(0x424)]($,_0x2c3ada,_0x5b58c3,_0x5efdc3,_0x262b88):_0x1d93e7[_0x467b2d(0x424)](ae,_0x2c3ada,_0x5b58c3,_0x262b88);}var Os=Object[_0x5c8e6d(0x3a5)],Ds=Object[_0x5c8e6d(0x373)],Ee=(_0x6468ee,_0x52251a,_0x5e14ee,_0x1483bf)=>{for(var _0x59c0e6=_0x1483bf>0x1?void 0x0:_0x1483bf?Ds(_0x52251a,_0x5e14ee):_0x52251a,_0x3b2945=_0x6468ee['length']-0x1,_0x45cddf;_0x3b2945>=0x0;_0x3b2945--)(_0x45cddf=_0x6468ee[_0x3b2945])&&(_0x59c0e6=(_0x1483bf?_0x45cddf(_0x52251a,_0x5e14ee,_0x59c0e6):_0x45cddf(_0x59c0e6))||_0x59c0e6);return _0x1483bf&&_0x59c0e6&&Os(_0x52251a,_0x5e14ee,_0x59c0e6),_0x59c0e6;},I=(_0x46fc48,_0x5f3dbc)=>(_0x31b0b1,_0x536345)=>_0x5f3dbc(_0x31b0b1,_0x536345,_0x46fc48);exports[_0x5c8e6d(0x397)]=class extends a[_0x5c8e6d(0x198)]{constructor(_0x2beb76,_0x47222d,_0x2ad261){const _0x5e062c=_0x5c8e6d;super(),d(this,_0x5e062c(0xf7),new Map()),d(this,_0x5e062c(0x374),new g[(_0x5e062c(0x3ea))]()),(this[_0x5e062c(0x21a)]=_0x2beb76,this[_0x5e062c(0x24a)]=_0x47222d,this[_0x5e062c(0x1ee)]=_0x2ad261,this[_0x5e062c(0x8a)]());}[_0x5c8e6d(0x364)](){const _0x107a88=_0x5c8e6d;super[_0x107a88(0x364)](),this['_entities'][_0x107a88(0x382)](_0x5743dc=>_0x5743dc[_0x107a88(0x364)]()),this['_entities'][_0x107a88(0x2f3)]();}['getCollabEntity'](_0x54be33){const _0x462662=_0x5c8e6d;var _0x226ab7;return(_0x226ab7=this[_0x462662(0xf7)]['get'](_0x54be33))!=null?_0x226ab7:null;}['getCollabEntity$'](_0x366819){const _0x49765f=_0x5c8e6d,_0xf8ff8b=this[_0x49765f(0x3ad)](_0x366819);return _0xf8ff8b?g['of'](_0xf8ff8b):this['_entityInit$'][_0x49765f(0x149)](T[_0x49765f(0x161)](_0x3f7f00=>_0x3f7f00[_0x49765f(0x27a)]===_0x366819));}[_0x5c8e6d(0x8a)](){const _0x21ef86=_0x5c8e6d;this[_0x21ef86(0x1ee)][_0x21ef86(0x2fc)](a[_0x21ef86(0x2c8)][_0x21ef86(0x184)])[_0x21ef86(0x149)](g[_0x21ef86(0x150)](this[_0x21ef86(0x1d2)]),T[_0x21ef86(0x2e3)](0x10))['subscribe'](async _0x32fa24=>{const _0x5437f4=_0x21ef86,_0x966dd6=_0x32fa24[_0x5437f4(0x35c)](),_0x3afcad=await this[_0x5437f4(0x2dd)](_0x966dd6,j['UNIVER_SHEET']);this['_entities']['set'](_0x966dd6,_0x3afcad);}),this[_0x21ef86(0x1ee)]['getTypeOfUnitAdded$'](a[_0x21ef86(0x2c8)][_0x21ef86(0x3c5)])[_0x21ef86(0x149)](g[_0x21ef86(0x150)](this['dispose$']),T['delay'](0x10))[_0x21ef86(0x149)](T[_0x21ef86(0x161)](_0x19965c=>!_0x19965c['getUnitId']()['startsWith']('__')))[_0x21ef86(0x237)](async _0x4f6330=>{const _0x8715e8=_0x21ef86,_0x32d33b=_0x4f6330[_0x8715e8(0x35c)](),_0x197ce3=await this['_startCollaboration'](_0x32d33b,j[_0x8715e8(0x3c5)]);this['_entities'][_0x8715e8(0x395)](_0x32d33b,_0x197ce3);}),g[_0x21ef86(0x1f9)](this[_0x21ef86(0x1ee)]['getTypeOfUnitDisposed$'](a[_0x21ef86(0x2c8)][_0x21ef86(0x184)]),this['_univerInstanceService'][_0x21ef86(0x20f)](a[_0x21ef86(0x2c8)]['UNIVER_DOC']))[_0x21ef86(0x149)](g['takeUntil'](this['dispose$']))[_0x21ef86(0x237)](_0x10c46f=>{const _0x56781a=_0x21ef86,_0x2d9e05=_0x10c46f['getUnitId'](),_0xc291dc=this[_0x56781a(0xf7)][_0x56781a(0xc0)](_0x2d9e05);_0xc291dc&&(_0xc291dc[_0x56781a(0x364)](),this[_0x56781a(0xf7)][_0x56781a(0x235)](_0x2d9e05));});}async[_0x5c8e6d(0x2dd)](_0x3fe331,_0x4d621b){const _0x4da590=_0x5c8e6d,_0x10c687=await this[_0x4da590(0x24a)][_0x4da590(0x319)](_0x3fe331),_0x22a5a9=this['_injector'][_0x4da590(0x424)](this['_getCtorByUniverType'](_0x4d621b),_0x3fe331,_0x4d621b,_0x10c687);return await _0x22a5a9['init'](),this[_0x4da590(0x374)][_0x4da590(0x211)](_0x22a5a9),_0x22a5a9;}[_0x5c8e6d(0x14c)](_0x46f469){const _0xc01e57=_0x5c8e6d;switch(_0x46f469){case j[_0xc01e57(0x3c5)]:return Ue;case j['UNIVER_SHEET']:return ye;default:throw new Error(_0xc01e57(0x90)+_0x46f469);}}},exports[_0x5c8e6d(0x397)]=Ee([a[_0x5c8e6d(0x3e9)](a[_0x5c8e6d(0x87)][_0x5c8e6d(0x2d3)],exports[_0x5c8e6d(0x397)]),I(0x0,h['Inject'](h[_0x5c8e6d(0x212)])),I(0x1,h[_0x5c8e6d(0x189)](exports['CollaborationSessionService'])),I(0x2,a[_0x5c8e6d(0x3b1)])],exports[_0x5c8e6d(0x397)]);let me=class extends a['RxDisposable']{constructor(_0x25eddf,_0x5036c9,_0x3f167a,_0x5c2f20,_0x217f61,_0x186c9b,_0xb214cc,_0x1b2a29,_0x2d33a8,_0x42638e,_0x41c2ea,_0x3f9134,_0x540357){const _0x1b4b51=_0x5c8e6d;super(),d(this,'_state$',new g[(_0x1b4b51(0x18a))](null)),d(this,'state$',this[_0x1b4b51(0x2d9)]['asObservable']()),d(this,_0x1b4b51(0x2e5)),d(this,_0x1b4b51(0x1b2),!0x1),d(this,_0x1b4b51(0x8d),this['state$'][_0x1b4b51(0x149)](T[_0x1b4b51(0xe8)](_0x4c3a79=>_0x4c3a79?_0x4c3a79['status']:w[_0x1b4b51(0xc7)]),T['shareReplay'](0x1))),d(this,_0x1b4b51(0x94),!0x1),d(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x25eddf,this[_0x1b4b51(0x3e8)]=_0x5036c9,this[_0x1b4b51(0x196)]=_0x3f167a,this[_0x1b4b51(0x21a)]=_0x5c2f20,this[_0x1b4b51(0x11c)]=_0x217f61,this[_0x1b4b51(0x269)]=_0x186c9b,this[_0x1b4b51(0x1df)]=_0xb214cc,this['_revisionService']=_0x1b2a29,this[_0x1b4b51(0x2e1)]=_0x2d33a8,this[_0x1b4b51(0x2ea)]=_0x42638e,this['_messageService']=_0x41c2ea,this[_0x1b4b51(0x133)]=_0x3f9134,this[_0x1b4b51(0x1ba)]=_0x540357);}get[_0x5c8e6d(0x341)](){return this['_state'];}async[_0x5c8e6d(0x15e)](){const _0x51604d=_0x5c8e6d;if(this[_0x51604d(0x341)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x5c8e6d(0x30d)](){const _0x273897=_0x5c8e6d;return this[_0x273897(0x1b2)]=!0x0,a[_0x273897(0x3c9)](()=>{const _0x41b93d=_0x273897;this[_0x41b93d(0x1b2)]=!0x1,this[_0x41b93d(0x270)]();});}[_0x5c8e6d(0x229)](_0x25829d){const _0x1c1f4d=_0x5c8e6d;this['_state']=_0x25829d,this[_0x1c1f4d(0x2d9)][_0x1c1f4d(0x211)](_0x25829d);}async[_0x5c8e6d(0x8a)](){const _0x10ea12=_0x5c8e6d;var _0x321264;return this['_updateState'](await this['_createInitialState']()),this[_0x10ea12(0x1ba)]&&((_0x321264=this[_0x10ea12(0x1ba)])==null||_0x321264['editingUnit'](this[_0x10ea12(0x27a)]),this[_0x10ea12(0x2c5)](a[_0x10ea12(0x3c9)](this[_0x10ea12(0x1ba)][_0x10ea12(0x9d)](this['unitID'])[_0x10ea12(0x237)](_0x6b06e5=>{const _0x553501=_0x10ea12;this['_logService'][_0x553501(0x383)]('[CollaborationEntity]',_0x553501(0x34f),_0x6b06e5),_0x6b06e5===Et[_0x553501(0x3bc)]?(this[_0x553501(0x324)][_0x553501(0x302)]({'content':this[_0x553501(0x1df)]['t'](_0x553501(0x3ef)),'type':oe['MessageType']['Warning']}),this[_0x553501(0x133)][_0x553501(0x3aa)](new E['WorkbookEditablePermission'](this[_0x553501(0x27a)])['id'],!0x1)):this[_0x553501(0x133)][_0x553501(0x3aa)](new E['WorkbookEditablePermission'](this[_0x553501(0x27a)])['id'],!0x0);})))),this['disposeWithMe'](a[_0x10ea12(0x3c9)](this['_session']['sessionStatus$'][_0x10ea12(0x237)](_0x17822b=>{const _0x35cc99=_0x10ea12;_0x17822b===W[_0x35cc99(0x2f1)]?this[_0x35cc99(0x294)]():_0x17822b===W['OFFLINE']&&this[_0x35cc99(0x399)]();}))),this['disposeWithMe'](a['toDisposable'](this['_session'][_0x10ea12(0x1ed)][_0x10ea12(0x237)](_0x208011=>{const _0x1819ac=_0x10ea12;try{switch(_0x208011[_0x1819ac(0x3cf)]){case u[_0x1819ac(0xce)][_0x1819ac(0x368)]:{this[_0x1819ac(0xf2)](u['parseProtocolChangeset'](_0x208011[_0x1819ac(0x95)]));break;}case u['CollaborationEvent']['CHANGESET_ACK']:{this[_0x1819ac(0x3f3)](_0x208011[_0x1819ac(0x95)]);break;}case u[_0x1819ac(0xce)][_0x1819ac(0x423)]:{this['_onRemoteRejected']();break;}case u[_0x1819ac(0xce)][_0x1819ac(0x82)]:{this[_0x1819ac(0x10b)](_0x208011[_0x1819ac(0x95)][_0x1819ac(0x410)][_0x1819ac(0xe8)](_0x28fa42=>u[_0x1819ac(0x31c)](_0x28fa42)));break;}case u[_0x1819ac(0xce)]['PERMISSION_REJ']:this[_0x1819ac(0x92)]({'isPermissionRej':!0x0});}}catch(_0x3c0f37){throw console[_0x1819ac(0x2bf)](_0x1819ac(0x29d),_0x3c0f37),_0x3c0f37;}}))),this['_state'];}[_0x5c8e6d(0x170)](){this['_transitionLocked']=!0x1;}[_0x5c8e6d(0xfa)](){const _0x3d4125=_0x5c8e6d;if(this['_transitionLocked'])throw new Error(_0x3d4125(0x3df));this[_0x3d4125(0x94)]=!0x0;}['_onLocalMutation'](_0x5b9b67){const _0x3ae1a9=_0x5c8e6d;this[_0x3ae1a9(0xfa)](),this[_0x3ae1a9(0x229)](this[_0x3ae1a9(0x2e5)][_0x3ae1a9(0x1c1)](_0x5b9b67)),this[_0x3ae1a9(0x170)]();}[_0x5c8e6d(0xf2)](_0x1eeb65){const _0xa8fd7e=_0x5c8e6d;if(!(_0x1eeb65[_0xa8fd7e(0x15b)]<=this['_revisionService']['getCurrentRevForDocument'](this[_0xa8fd7e(0x27a)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x1eeb65);return;}this[_0xa8fd7e(0x142)](_0x1eeb65);}}[_0x5c8e6d(0x270)](){const _0x1f234d=_0x5c8e6d;this['_remoteChangesetQueue']['forEach'](_0x58e170=>this[_0x1f234d(0x142)](_0x58e170)),this['_remoteChangesetQueue']=[];}[_0x5c8e6d(0x142)](_0x3802f8){const _0x3abdfd=_0x5c8e6d,_0x45dcd4=this[_0x3abdfd(0x269)][_0x3abdfd(0x276)][_0x3abdfd(0x264)](this[_0x3abdfd(0x269)][_0x3abdfd(0x276)][_0x3abdfd(0x23a)]()[_0x3abdfd(0x2c2)])(_0x3802f8[_0x3abdfd(0xdc)],null)||_0x3802f8[_0x3abdfd(0xdc)],_0x29abdd={..._0x3802f8,'mutations':_0x45dcd4};this[_0x3abdfd(0xfa)](),this[_0x3abdfd(0x229)](this[_0x3abdfd(0x2e5)][_0x3abdfd(0xa7)](_0x29abdd)),this[_0x3abdfd(0x170)]();}[_0x5c8e6d(0x3f3)](_0x5e88c4){const _0x5bf1f5=_0x5c8e6d;this[_0x5bf1f5(0xfa)](),this[_0x5bf1f5(0x229)](this['_state'][_0x5bf1f5(0x266)](_0x5e88c4)),this[_0x5bf1f5(0x170)]();}['_onRemoteRejected'](_0x2316db){const _0x4a0b58=_0x5c8e6d;this['_lockTransition'](),this[_0x4a0b58(0x229)](this['_state']['onRemoteRej'](_0x2316db)),this[_0x4a0b58(0x170)]();}[_0x5c8e6d(0x10b)](_0x26c5e9){const _0x2056ee=_0x5c8e6d;if(!(this['_state']instanceof x))throw new TypeError(_0x2056ee(0x127));const _0x54dd1e=_0x26c5e9[_0x2056ee(0xe8)](_0x2588a3=>{const _0x1d32f0=_0x2056ee,_0x1a056e=this['_compressMutationService']['interceptor'][_0x1d32f0(0x264)](this[_0x1d32f0(0x269)]['interceptor'][_0x1d32f0(0x23a)]()[_0x1d32f0(0x2c2)])(_0x2588a3[_0x1d32f0(0xdc)],null)||_0x2588a3[_0x1d32f0(0xdc)];return{..._0x2588a3,'mutations':_0x1a056e};});this[_0x2056ee(0xfa)](),this[_0x2056ee(0x229)](this['_state'][_0x2056ee(0x19e)](_0x54dd1e)),this[_0x2056ee(0x170)]();}['_toggleOffline'](){const _0x1110ca=_0x5c8e6d;this['_lockTransition'](),this[_0x1110ca(0x229)](this[_0x1110ca(0x2e5)][_0x1110ca(0x176)]()),this[_0x1110ca(0x170)]();}[_0x5c8e6d(0x294)](){const _0x4f7563=_0x5c8e6d;this['_lockTransition'](),this[_0x4f7563(0x229)](this[_0x4f7563(0x2e5)]['toggleOnline']()),this['_unlockTransition']();}async['_createInitialState'](){return new Promise(_0x5d1ecb=>{const _0x1089e2=_0x2b59;this['_session']['sessionStatus$'][_0x1089e2(0x149)](T[_0x1089e2(0x26a)](0x1))[_0x1089e2(0x237)](async _0x3e7878=>{const _0x3b07ea=_0x1089e2;_0x5d1ecb(await this['_createInitialStateImpl'](_0x3e7878===W[_0x3b07ea(0x2f1)]));});});}[_0x5c8e6d(0xfe)](){const _0x5bec9b=_0x5c8e6d,_0x30b4a5=this[_0x5bec9b(0x27a)];return{'onStateChange':(_0x54f383,_0x4e40f2)=>{const _0x2ff9de=_0x5bec9b;if(_0x54f383!==this['_state'])throw new Error(_0x2ff9de(0x388)+_0x54f383[_0x2ff9de(0x174)]+_0x2ff9de(0x16a)+_0x4e40f2[_0x2ff9de(0x174)]+_0x2ff9de(0x34a)+this[_0x2ff9de(0x2e5)][_0x2ff9de(0x174)]);this[_0x2ff9de(0x229)](_0x4e40f2);},'onSendChangeset':_0x1f6294=>{const _0xabfe76=_0x5bec9b,_0x43e557={'eventID':u[_0xabfe76(0xce)][_0xabfe76(0x246)],'data':{'unitID':_0x1f6294['unitID'],'unitType':this[_0xabfe76(0x3e8)],'changeset':_0x1f6294,'memberID':this[_0xabfe76(0x196)]['getMemberID']()}};this[_0xabfe76(0x196)][_0xabfe76(0xa4)](_0x43e557,this[_0xabfe76(0x27a)]);},'onMissingChangesets':({from:_0x2b121e,to:_0x4fc7af})=>{const _0x17224e=_0x5bec9b;this[_0x17224e(0x2e1)][_0x17224e(0x383)](_0x17224e(0x2f5),_0x17224e(0x209)+_0x2b121e+_0x17224e(0x146)+_0x4fc7af);const _0x1f40d9={'eventID':u[_0x17224e(0xce)][_0x17224e(0x1c7)],'data':{'unitID':_0x30b4a5,'unitType':this[_0x17224e(0x3e8)],'from':_0x2b121e,'to':_0x4fc7af}};this['_session'][_0x17224e(0xa4)](_0x1f40d9,this[_0x17224e(0x27a)]);}};}async[_0x5c8e6d(0x8c)](_0xd38e0b){const _0x3f2805=_0x5c8e6d;var _0x5269d4,_0x161f67;const _0x5931e3=await this[_0x3f2805(0x11c)]['loadOfflineData'](this[_0x3f2805(0x27a)]),_0x270869=(_0x5269d4=_0x5931e3==null?void 0x0:_0x5931e3[_0x3f2805(0xdc)])!=null?_0x5269d4:[],_0x1cc59d=(_0x161f67=_0x5931e3==null?void 0x0:_0x5931e3[_0x3f2805(0x327)])!=null?_0x161f67:null,_0xfbf909=this['unitID'];try{this['_replayCachedMutations'](_0x1cc59d,_0x270869);}catch(_0x59a2d8){this[_0x3f2805(0x2e1)][_0x3f2805(0x2bf)](_0x59a2d8);}const _0x5850e4=this[_0x3f2805(0xfe)]();if(_0xd38e0b){const _0x1c9ebe=bt(this['_injector'],_0xfbf909,this[_0x3f2805(0x3e8)],_0x1cc59d,_0x270869,_0x5850e4);return _0x1c9ebe instanceof $?_0x1c9ebe[_0x3f2805(0x242)]():(_0x1c9ebe instanceof H||_0x1c9ebe instanceof k)&&_0x1c9ebe['resend'](),_0x1c9ebe;}return this[_0x3f2805(0x21a)][_0x3f2805(0x424)](B,_0xfbf909,this[_0x3f2805(0x3e8)],_0x1cc59d,_0x270869,_0x5850e4);}[_0x5c8e6d(0x2b4)](_0x4bbd72,_0x42638d){const _0x5bf1e3=_0x5c8e6d;var _0x2a3c08,_0x54101a;const _0x2b24fa=this[_0x5bf1e3(0x269)][_0x5bf1e3(0x276)][_0x5bf1e3(0x264)](this[_0x5bf1e3(0x269)][_0x5bf1e3(0x276)]['getInterceptPoints']()[_0x5bf1e3(0x2c2)]);(_0x2a3c08=_0x2b24fa((_0x4bbd72==null?void 0x0:_0x4bbd72['mutations'])||[],null))==null||_0x2a3c08[_0x5bf1e3(0x382)](_0x58b7c5=>this[_0x5bf1e3(0x2ea)][_0x5bf1e3(0x33d)](_0x58b7c5['id'],_0x58b7c5['params'])),(_0x54101a=_0x2b24fa(_0x42638d||[],null))==null||_0x54101a['forEach'](_0x5b8afb=>this[_0x5bf1e3(0x2ea)][_0x5bf1e3(0x33d)](_0x5b8afb['id'],_0x5b8afb[_0x5bf1e3(0x355)]));}};me=Ee([I(0x3,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),I(0x4,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),I(0x5,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0x24e)])),I(0x6,h['Inject'](a[_0x5c8e6d(0x405)])),I(0x7,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),I(0x8,a[_0x5c8e6d(0x14f)]),I(0x9,a['ICommandService']),I(0xa,N[_0x5c8e6d(0x204)]),I(0xb,a[_0x5c8e6d(0x13b)]),I(0xc,h[_0x5c8e6d(0x31d)](pe))],me);let Ue=class extends me{constructor(_0x5485e4,_0x1bcdcd,_0x5f4d09,_0x5e43f2,_0x546e01,_0x4c52a4,_0x3ca2a8,_0x36bcec,_0x284ec5,_0x13ae50,_0x4dd075,_0x14ab78,_0x27124f,_0x553207,_0x2bcef6,_0x2ca9bb,_0xe044cb){const _0x35fc6e=_0x5c8e6d;super(_0x5485e4,_0x1bcdcd,_0x5f4d09,_0x5e43f2,_0x546e01,_0x4c52a4,_0x3ca2a8,_0x36bcec,_0x27124f,_0x553207,_0x2bcef6,_0x2ca9bb,_0xe044cb),this[_0x35fc6e(0x27a)]=_0x5485e4,this[_0x35fc6e(0x27e)]=_0x1bcdcd,this[_0x35fc6e(0x1de)]=_0x5f4d09,this[_0x35fc6e(0x40c)]=_0x284ec5,this[_0x35fc6e(0x2fb)]=_0x13ae50,this[_0x35fc6e(0xcb)]=_0x4dd075,this[_0x35fc6e(0x14e)]=_0x14ab78;}[_0x5c8e6d(0xfe)](){const _0x4479e8=_0x5c8e6d,_0xb71a4a=super[_0x4479e8(0xfe)]();return _0xb71a4a['onTransformIME']=_0x2d03cd=>this[_0x4479e8(0x2fb)][_0x4479e8(0x241)](_0x2d03cd),_0xb71a4a[_0x4479e8(0x151)]=_0x19659c=>this[_0x4479e8(0xcb)][_0x4479e8(0x37f)](_0x19659c),_0xb71a4a['onSyncEditingCollabCursor']=_0x57e7de=>this[_0x4479e8(0x14e)][_0x4479e8(0x1c2)](_0x57e7de),_0xb71a4a['onTransformRemoteChangesetByIMECache']=_0x298d5f=>this[_0x4479e8(0x2fb)][_0x4479e8(0x314)](_0x298d5f),_0xb71a4a;}async[_0x5c8e6d(0x8a)](){const _0x26ba23=_0x5c8e6d,_0x3fd149=await super[_0x26ba23(0x8a)]();return this[_0x26ba23(0x40c)][_0x26ba23(0xa0)][_0x26ba23(0x149)](g[_0x26ba23(0x150)](this[_0x26ba23(0x1d2)]))[_0x26ba23(0x237)](_0x1b8176=>{const _0xdbc874=_0x26ba23;if(_0x1b8176==null)return;const {unitId:_0x4301c4,redoState:_0x18a2ff,commandId:_0x199841}=_0x1b8176;if(_0x4301c4!==this['unitID'])return;const _0x494a67={'id':_0x199841,'type':a[_0xdbc874(0x3ee)][_0xdbc874(0x1ff)],'params':{'unitId':_0x4301c4,'actions':_0x18a2ff[_0xdbc874(0x22e)],'textRanges':null}};this[_0xdbc874(0xd1)](_0x494a67);}),_0x3fd149;}};Ue=Ee([I(0x3,h[_0x5c8e6d(0x189)](h['Injector'])),I(0x4,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),I(0x5,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0x24e)])),I(0x6,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x405)])),I(0x7,h['Inject'](u['RevisionService'])),I(0x8,h[_0x5c8e6d(0x189)](M[_0x5c8e6d(0x29a)])),I(0x9,h['Inject'](ve)),I(0xa,h[_0x5c8e6d(0x189)](ge)),I(0xb,h[_0x5c8e6d(0x189)](Fe)),I(0xc,a[_0x5c8e6d(0x14f)]),I(0xd,a[_0x5c8e6d(0x1ec)]),I(0xe,N[_0x5c8e6d(0x204)]),I(0xf,a[_0x5c8e6d(0x13b)]),I(0x10,h[_0x5c8e6d(0x31d)](pe))],Ue);let ye=class extends me{constructor(_0x275f95,_0x515eaf,_0x4b4e2d,_0x15c79a,_0x25de8c,_0x588cd6,_0x5b0daa,_0x1d68da,_0x2fd9af,_0x3340c9,_0x3d8d2a,_0x423ccc,_0x214881,_0x35da6d){const _0x3fe5ab=_0x5c8e6d;super(_0x275f95,_0x515eaf,_0x4b4e2d,_0x15c79a,_0x25de8c,_0x588cd6,_0x5b0daa,_0x1d68da,_0x3340c9,_0x3d8d2a,_0x423ccc,_0x214881,_0x35da6d),this['unitID']=_0x275f95,this['type']=_0x515eaf,this[_0x3fe5ab(0x1de)]=_0x4b4e2d,this[_0x3fe5ab(0x398)]=_0x2fd9af;}[_0x5c8e6d(0xfe)](){const _0xda4651=_0x5c8e6d,_0x45e33a=super['_createHandler']();return _0x45e33a[_0xda4651(0x151)]=_0x53db08=>this[_0xda4651(0x398)][_0xda4651(0x37f)](_0x53db08),_0x45e33a;}async['_init'](){const _0x19cfa7=_0x5c8e6d,_0x350fc3=await super[_0x19cfa7(0x8a)]();return this[_0x19cfa7(0x2c5)](this['_commandService'][_0x19cfa7(0x272)]((_0x152233,_0x514b16)=>{const _0x45c5be=_0x19cfa7;if(_0x152233[_0x45c5be(0x27e)]!==a[_0x45c5be(0x3ee)][_0x45c5be(0x1ff)]||_0x514b16!=null&&_0x514b16['fromCollab']||_0x514b16!=null&&_0x514b16[_0x45c5be(0x210)])return;const _0x1dca3f=_0x152233[_0x45c5be(0x355)];if((_0x1dca3f==null?void 0x0:_0x1dca3f[_0x45c5be(0x1a2)])!==this[_0x45c5be(0x27a)])return;const _0x303265=_0x152233,_0x2aab63=this[_0x45c5be(0x269)][_0x45c5be(0x276)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x45c5be(0x276)]['getInterceptPoints']()[_0x45c5be(0x3dd)])([_0x303265],null)||[_0x303265];this[_0x45c5be(0xd1)](_0x2aab63[0x0]);})),_0x350fc3;}};ye=Ee([I(0x3,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),I(0x4,h['Inject'](exports[_0x5c8e6d(0x342)])),I(0x5,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0x24e)])),I(0x6,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x405)])),I(0x7,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0xd7)])),I(0x8,h[_0x5c8e6d(0x189)](fe)),I(0x9,a[_0x5c8e6d(0x14f)]),I(0xa,a['ICommandService']),I(0xb,N['IMessageService']),I(0xc,a[_0x5c8e6d(0x13b)]),I(0xd,h[_0x5c8e6d(0x31d)](pe))],ye);const et=[_0x5c8e6d(0xaa),_0x5c8e6d(0x197),'verdancy600',_0x5c8e6d(0x2c4),_0x5c8e6d(0x144),_0x5c8e6d(0x257)];class Ve extends a[_0x5c8e6d(0x40b)]{constructor(){const _0x29892e=_0x5c8e6d;super(...arguments),d(this,_0x29892e(0x34e),new Map()),d(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x2b3a09){const _0x179a53=_0x5c8e6d;if(this[_0x179a53(0x34e)]['has'](_0x2b3a09))return this['_assignedColors'][_0x179a53(0xc0)](_0x2b3a09);const _0xe3da88=et[this[_0x179a53(0xcc)]];return this[_0x179a53(0xcc)]=(this[_0x179a53(0xcc)]+0x1)%et['length'],this[_0x179a53(0x34e)][_0x179a53(0x395)](_0x2b3a09,_0xe3da88),_0xe3da88;}}var ws=Object[_0x5c8e6d(0x3a5)],Ls=Object[_0x5c8e6d(0x373)],Ps=(_0x17a2c1,_0x12126c,_0x5c2537,_0x2d9506)=>{const _0x8e7155=_0x5c8e6d;for(var _0x2fbc89=_0x2d9506>0x1?void 0x0:_0x2d9506?Ls(_0x12126c,_0x5c2537):_0x12126c,_0x5dc6f3=_0x17a2c1[_0x8e7155(0x7a)]-0x1,_0x37ed9d;_0x5dc6f3>=0x0;_0x5dc6f3--)(_0x37ed9d=_0x17a2c1[_0x5dc6f3])&&(_0x2fbc89=(_0x2d9506?_0x37ed9d(_0x12126c,_0x5c2537,_0x2fbc89):_0x37ed9d(_0x2fbc89))||_0x2fbc89);return _0x2d9506&&_0x2fbc89&&ws(_0x12126c,_0x5c2537,_0x2fbc89),_0x2fbc89;},q=(_0x17acf4,_0x4b8cda)=>(_0x25d0bf,_0x25ec45)=>_0x4b8cda(_0x25d0bf,_0x25ec45,_0x17acf4);const Us=0x12c,ys=0x64,Ms=()=>{let _0x246715=[],_0x3920a7=!0x1;return _0x50b2cf=>{_0x246715['push'](_0x50b2cf),_0x3920a7||(_0x3920a7=!0x0,setTimeout(()=>{_0x246715['forEach'](_0x36c2a3=>_0x36c2a3()),_0x246715=[],_0x3920a7=!0x1;}));};};let Me=class extends a[_0x5c8e6d(0x198)]{constructor(_0x2e6da5,_0x583936,_0x2c321d,_0x57dc23,_0x5b75c7,_0x1a8cc9,_0x41f01b,_0x1b6c35){const _0x29e7b0=_0x5c8e6d;super(),d(this,_0x29e7b0(0xf4),!0x1),d(this,_0x29e7b0(0x8a),!0x1),d(this,_0x29e7b0(0x1c4),new g[(_0x29e7b0(0x18a))](new Map())),d(this,_0x29e7b0(0xad),this['_cursorInfo$'][_0x29e7b0(0xb5)]()),d(this,_0x29e7b0(0x292),new g[(_0x29e7b0(0x18a))]([])),d(this,_0x29e7b0(0x353),this[_0x29e7b0(0x292)][_0x29e7b0(0x149)](g[_0x29e7b0(0x1f8)](Us))),d(this,_0x29e7b0(0x275),He((_0x6e91df,_0x3fc142)=>{const _0x1b1fe1=_0x29e7b0,_0xb5dcf6={'eventID':u['CollaborationEvent'][_0x1b1fe1(0x2cd)],'data':{'unitID':this[_0x1b1fe1(0x27a)],'memberID':this[_0x1b1fe1(0x196)][_0x1b1fe1(0x2ff)](),'selection':Ye['serializeRangeWithSheet'](_0x6e91df,_0x3fc142[_0x1b1fe1(0x240)])}};this[_0x1b1fe1(0x196)]['send'](_0xb5dcf6,this[_0x1b1fe1(0x27a)]);},ys)),(this[_0x29e7b0(0x27a)]=_0x2e6da5,this['_session']=_0x583936,this[_0x29e7b0(0x21a)]=_0x2c321d,this['_colorAssignService']=_0x57dc23,this[_0x29e7b0(0x330)]=_0x5b75c7,this[_0x29e7b0(0x1ee)]=_0x1a8cc9,this['_commandService']=_0x41f01b,this[_0x29e7b0(0x357)]=_0x1b6c35);}get[_0x5c8e6d(0x3f0)](){const _0x5a1d3e=_0x5c8e6d;return this[_0x5a1d3e(0x1c4)][_0x5a1d3e(0x3ba)]();}get[_0x5c8e6d(0x1ab)](){const _0x3962ab=_0x5c8e6d;return this[_0x3962ab(0x292)][_0x3962ab(0x3ba)]();}[_0x5c8e6d(0x364)](){const _0x1d35a1=_0x5c8e6d;super[_0x1d35a1(0x364)](),this[_0x1d35a1(0x1c4)][_0x1d35a1(0x211)](new Map()),this[_0x1d35a1(0x1c4)][_0x1d35a1(0x3e7)](),this[_0x1d35a1(0x292)][_0x1d35a1(0x211)]([]),this[_0x1d35a1(0x292)][_0x1d35a1(0x3e7)]();}[_0x5c8e6d(0x15e)](){const _0x3f9aa8=_0x5c8e6d;this[_0x3f9aa8(0x8a)]||(this[_0x3f9aa8(0x8a)]=!0x0,this[_0x3f9aa8(0x196)]['sessionStatus$'][_0x3f9aa8(0x149)](g['takeUntil'](this[_0x3f9aa8(0x1d2)]))[_0x3f9aa8(0x237)](_0x5631ff=>{const _0xf81876=_0x3f9aa8;_0x5631ff===W[_0xf81876(0x2f1)]?this[_0xf81876(0x294)]():this[_0xf81876(0x399)]();}),this[_0x3f9aa8(0x196)][_0x3f9aa8(0x1ed)]['pipe'](g[_0x3f9aa8(0x150)](this['dispose$']))[_0x3f9aa8(0x237)](_0x3ddaf7=>{const _0x5e08d3=_0x3f9aa8,_0x2054fa=_0x3ddaf7[_0x5e08d3(0x3cf)];_0x2054fa===u[_0x5e08d3(0xce)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3ddaf7),_0x2054fa===u[_0x5e08d3(0xce)]['USERS_LEAVE']&&this[_0x5e08d3(0xcf)](_0x3ddaf7);}),this[_0x3f9aa8(0x3ca)](),this[_0x3f9aa8(0x2c5)](this[_0x3f9aa8(0x2ea)][_0x3f9aa8(0x272)](_0x361d29=>{const _0x21e727=_0x3f9aa8;if(this[_0x21e727(0xf4)]&&_0x361d29['id']===E[_0x21e727(0x425)]['id']&&_0x361d29[_0x21e727(0x355)]['unitId']===this[_0x21e727(0x27a)]){const _0x2ca54c=_0x361d29[_0x21e727(0x355)];this[_0x21e727(0x275)](_0x2ca54c[_0x21e727(0x38b)],_0x2ca54c[_0x21e727(0x38f)][0x0]);}})));}['_onCursorUpdate'](_0x1118c3){const _0x46172a=_0x5c8e6d;var _0x40d445,_0x48d044;const {memberID:_0xed3831,selection:_0x43d2a1}=_0x1118c3['data'],{sheetName:_0x4f80a8,range:_0x13c20a}=Ye[_0x46172a(0x35e)](_0x43d2a1),_0x9bbd85={'name':(_0x48d044=(_0x40d445=this[_0x46172a(0x330)][_0x46172a(0x118)](this[_0x46172a(0x27a)],_0xed3831))==null?void 0x0:_0x40d445[_0x46172a(0x33a)])!=null?_0x48d044:_0x46172a(0x35a),'range':this['_getMergeRange'](_0x4f80a8,_0x13c20a),'sheetID':_0x4f80a8,'color':this['_colorAssignService'][_0x46172a(0x2d7)](_0xed3831),'selection':_0x43d2a1},_0x38eb96=this[_0x46172a(0x3f0)];_0x38eb96[_0x46172a(0x395)](_0xed3831,_0x9bbd85),this[_0x46172a(0x1c4)][_0x46172a(0x211)](_0x38eb96);}[_0x5c8e6d(0xcf)](_0x3c8326){const _0x18e747=_0x5c8e6d,{memberID:_0x1aa3c6}=_0x3c8326[_0x18e747(0x95)],_0x45feaf=this[_0x18e747(0x3f0)];_0x45feaf[_0x18e747(0x235)](_0x1aa3c6),this[_0x18e747(0x1c4)][_0x18e747(0x211)](_0x45feaf);}[_0x5c8e6d(0x41f)](_0x40a110,_0x560ff2){const _0xc6e0fa=_0x5c8e6d;var _0x149e6a,_0x5d1cc5;const _0x3f6582=(_0x5d1cc5=(_0x149e6a=this[_0xc6e0fa(0x1ee)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x149e6a['getSheetBySheetId'](_0x40a110))==null?void 0x0:_0x5d1cc5['getMergeData']();return(_0x3f6582==null?void 0x0:_0x3f6582['find'](_0x586f0b=>a[_0xc6e0fa(0x2a6)][_0xc6e0fa(0x22d)](_0x586f0b,_0x560ff2)))||_0x560ff2;}[_0x5c8e6d(0x3ca)](){const _0x55501f=_0x5c8e6d,_0x51007f=new a[(_0x55501f(0x137))](),_0x2b4a55=Ms(),_0x250930=()=>{const _0x55aadb=_0x55501f;_0x51007f[_0x55aadb(0x364)]();const _0x3e3a0e=(_0x387869,_0xc07425,_0x22d4ae,_0x1b7001)=>{const _0x5e65f2=_0x55aadb;let _0x4bc775=[];switch(_0x387869['id']){case E[_0x5e65f2(0x247)]['DeleteRangeMoveLeftCommandId']:{_0x4bc775=E[_0x5e65f2(0x3fc)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)]['DeleteRangeMoveUpCommandId']:{_0x4bc775=E[_0x5e65f2(0x11e)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0xd5)]:{_0x4bc775=E['handleInsertCol'](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0x420)]:{_0x4bc775=E[_0x5e65f2(0x3ed)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0x35f)]:{_0x4bc775=E[_0x5e65f2(0x221)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0x1b7)]:{_0x4bc775=E[_0x5e65f2(0x41d)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0xda)]:{_0x4bc775=E['handleMoveRange'](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)]['RemoveColCommandId']:{_0x4bc775=E[_0x5e65f2(0x1f0)](_0x387869,_0x1b7001);break;}case E[_0x5e65f2(0x247)][_0x5e65f2(0x40e)]:{_0x4bc775=E[_0x5e65f2(0x28a)](_0x387869,_0x1b7001);break;}}const _0xee4763=E[_0x5e65f2(0x29b)](_0x4bc775,_0x1b7001),_0xf0532c=this[_0x5e65f2(0x3f0)]['get'](_0xc07425);if(_0xf0532c&&_0xee4763){const _0x10ad2c={..._0xf0532c,'range':_0xee4763};this[_0x5e65f2(0x3f0)][_0x5e65f2(0x395)](_0xc07425,_0x10ad2c),_0x2b4a55(()=>{const _0x407822=_0x5e65f2,_0xcaacdc=this['_refRangeService'][_0x407822(0x73)](_0xee4763,_0x2fbf6f=>(_0xcaacdc['dispose'](),_0x3e3a0e(_0x2fbf6f,_0xc07425,_0x22d4ae,_0xee4763)));_0x51007f[_0x407822(0x303)](_0xcaacdc);});}return{'redos':[],'undos':[]};};this[_0x55aadb(0x3f0)]['forEach']((_0x398f20,_0x4bcaf7)=>{const _0x28bda9=_0x55aadb,{range:_0x1f179c,sheetID:_0x4956cc}=_0x398f20,_0x4671bb=this[_0x28bda9(0x357)][_0x28bda9(0x73)](_0x1f179c,_0x5e7c43=>(_0x4671bb[_0x28bda9(0x364)](),_0x3e3a0e(_0x5e7c43,_0x4bcaf7,_0x4956cc,_0x1f179c)));_0x51007f['add'](_0x4671bb);});};this[_0x55501f(0x2c5)](a['toDisposable'](this[_0x55501f(0x1c4)][_0x55501f(0x237)](()=>{_0x250930();})));}[_0x5c8e6d(0x294)](){const _0x2446aa=_0x5c8e6d;var _0x1c2021,_0x241dc9;if(this[_0x2446aa(0xf4)]=!0x0,((_0x1c2021=this[_0x2446aa(0x1ee)]['getFocusedUnit']())==null?void 0x0:_0x1c2021[_0x2446aa(0x35c)]())!==this[_0x2446aa(0x27a)])return;const _0x182c78=(_0x241dc9=this[_0x2446aa(0x21a)][_0x2446aa(0xc0)](E[_0x2446aa(0x3cb)])[_0x2446aa(0xb6)]())==null?void 0x0:_0x241dc9[0x0];_0x182c78&&this[_0x2446aa(0x275)](this['_univerInstanceService'][_0x2446aa(0x157)](a[_0x2446aa(0x2c8)][_0x2446aa(0x184)])[_0x2446aa(0x344)]()['getSheetId'](),_0x182c78);}[_0x5c8e6d(0x399)](){const _0x2c2b34=_0x5c8e6d;this[_0x2c2b34(0xf4)]=!0x1;}};Me=Ps([q(0x2,h[_0x5c8e6d(0x189)](h['Injector'])),q(0x3,h['Inject'](Ve)),q(0x4,h[_0x5c8e6d(0x189)](G)),q(0x5,a[_0x5c8e6d(0x3b1)]),q(0x6,a[_0x5c8e6d(0x1ec)]),q(0x7,h[_0x5c8e6d(0x189)](E[_0x5c8e6d(0x162)]))],Me);var Ns=Object['defineProperty'],As=Object[_0x5c8e6d(0x373)],js=(_0x4cca3e,_0x393d60,_0x493173,_0x189e70)=>{const _0x28cb79=_0x5c8e6d;for(var _0x4c74ee=_0x189e70>0x1?void 0x0:_0x189e70?As(_0x393d60,_0x493173):_0x393d60,_0x399f0a=_0x4cca3e[_0x28cb79(0x7a)]-0x1,_0x5c9ba6;_0x399f0a>=0x0;_0x399f0a--)(_0x5c9ba6=_0x4cca3e[_0x399f0a])&&(_0x4c74ee=(_0x189e70?_0x5c9ba6(_0x393d60,_0x493173,_0x4c74ee):_0x5c9ba6(_0x4c74ee))||_0x4c74ee);return _0x189e70&&_0x4c74ee&&Ns(_0x393d60,_0x493173,_0x4c74ee),_0x4c74ee;},V=(_0x3a698e,_0x1ff812)=>(_0x40cb78,_0x422240)=>_0x1ff812(_0x40cb78,_0x422240,_0x3a698e);const $s=0x12c,Hs=0x64;let Ne=class extends a['RxDisposable']{constructor(_0x219fc4,_0x3f8372,_0x49c1e2,_0x4790c6,_0x505dc1,_0x3bab94,_0x2f6508,_0x52488a,_0x3b58a0){const _0x54e17c=_0x5c8e6d;super(),d(this,_0x54e17c(0xf4),!0x1),d(this,_0x54e17c(0x8a),!0x1),d(this,_0x54e17c(0x1c4),new g[(_0x54e17c(0x18a))](new Map())),d(this,_0x54e17c(0xad),this['_cursorInfo$'][_0x54e17c(0xb5)]()),d(this,_0x54e17c(0x292),new g['BehaviorSubject']([])),d(this,'roomMembers$',this['_roomMembers$'][_0x54e17c(0x149)](g['debounceTime']($s))),d(this,'_updateLocalCursor',He(_0x3704b5=>{const _0x55bb52=_0x54e17c,_0x4c022e={'eventID':u['CollaborationEvent'][_0x55bb52(0x2cd)],'data':{'unitID':this[_0x55bb52(0x27a)],'memberID':this['_session'][_0x55bb52(0x2ff)](),'selection':Ct(_0x3704b5)}};this[_0x55bb52(0x196)][_0x55bb52(0xa4)](_0x4c022e,this[_0x55bb52(0x27a)]);},Hs)),(this[_0x54e17c(0x27a)]=_0x219fc4,this['_session']=_0x3f8372,this[_0x54e17c(0x21a)]=_0x49c1e2,this[_0x54e17c(0x109)]=_0x4790c6,this[_0x54e17c(0x330)]=_0x505dc1,this[_0x54e17c(0x215)]=_0x3bab94,this[_0x54e17c(0xdb)]=_0x2f6508,this[_0x54e17c(0x1ee)]=_0x52488a,this[_0x54e17c(0x2ea)]=_0x3b58a0);}get[_0x5c8e6d(0x3f0)](){return this['_cursorInfo$']['getValue']();}get[_0x5c8e6d(0x1ab)](){const _0xe4ce10=_0x5c8e6d;return this[_0xe4ce10(0x292)][_0xe4ce10(0x3ba)]();}['dispose'](){const _0x439ac7=_0x5c8e6d;super[_0x439ac7(0x364)](),this[_0x439ac7(0x1c4)][_0x439ac7(0x211)](new Map()),this[_0x439ac7(0x1c4)]['complete'](),this[_0x439ac7(0x292)][_0x439ac7(0x211)]([]),this['_roomMembers$']['complete']();}[_0x5c8e6d(0x15e)](){const _0x1a58f9=_0x5c8e6d;this['_init']||(this[_0x1a58f9(0x8a)]=!0x0,this[_0x1a58f9(0x196)]['sessionStatus$']['pipe'](g['takeUntil'](this[_0x1a58f9(0x1d2)]))[_0x1a58f9(0x237)](_0x407a98=>{const _0xa97803=_0x1a58f9;_0x407a98===W['ONLINE']?this['_toggleOnline']():this[_0xa97803(0x399)]();}),this[_0x1a58f9(0x196)][_0x1a58f9(0x1ed)]['pipe'](g[_0x1a58f9(0x150)](this[_0x1a58f9(0x1d2)]))[_0x1a58f9(0x237)](_0x2ca9b6=>{const _0x59b582=_0x1a58f9,_0x483544=_0x2ca9b6['eventID'];_0x483544===u[_0x59b582(0xce)][_0x59b582(0x2cd)]&&this[_0x59b582(0xf1)](_0x2ca9b6),_0x483544===u['CollaborationEvent']['USERS_LEAVE']&&this[_0x59b582(0xcf)](_0x2ca9b6);}),this[_0x1a58f9(0x2c5)](this['_commandService'][_0x1a58f9(0x272)](_0x4954d1=>{const _0x3ed719=_0x1a58f9,_0x22e324=_0x4954d1[_0x3ed719(0x355)];_0x22e324!=null&&this[_0x3ed719(0xf4)]&&_0x4954d1['id']===M[_0x3ed719(0x1a5)]['id']&&_0x22e324[_0x3ed719(0x1a2)]===this['unitID']&&_0x22e324[_0x3ed719(0x2de)]===!0x1&&this[_0x3ed719(0x275)](_0x22e324[_0x3ed719(0xed)]);})),this[_0x1a58f9(0x215)][_0x1a58f9(0x128)]['pipe'](g[_0x1a58f9(0x150)](this[_0x1a58f9(0x1d2)]))[_0x1a58f9(0x237)](_0x41b6b0=>{const _0x54e1ce=_0x1a58f9;if((_0x41b6b0==null?void 0x0:_0x41b6b0['unitID'])!==this[_0x54e1ce(0x27a)])return;const _0x52ca45={'eventID':u[_0x54e1ce(0xce)]['UPDATE_CURSOR'],'data':_0x41b6b0};this['_onCursorUpdate'](_0x52ca45);}),this[_0x1a58f9(0x2c5)](this[_0x1a58f9(0x2ea)][_0x1a58f9(0x272)](_0x306881=>{const _0x571821=_0x1a58f9;if(_0x306881[_0x571821(0x355)]==null)return;const _0x587a9a=_0x306881[_0x571821(0x355)];if(_0x306881['id']!==M[_0x571821(0x3a3)]['id']||_0x587a9a[_0x571821(0x1a2)]!==this['unitID'])return;const _0x385424={'id':_0x571821(0x358),'params':_0x587a9a},_0x115bba=this['cursorInfo'];for(const [_0x42ba74,_0x350a87]of _0x115bba){const _0x2d6842={'id':_0x571821(0x358),'params':{'unitId':this[_0x571821(0x27a)],'actions':null,'textRanges':_0x350a87['ranges']}},_0x3956c2=this[_0x571821(0xdb)][_0x571821(0x291)](_0x385424,_0x2d6842,!0x1);if(u['isTransformMutationFailure'](_0x3956c2))throw _0x3956c2[_0x571821(0x2bf)];_0x115bba[_0x571821(0x395)](_0x42ba74,{..._0x350a87,'ranges':_0x3956c2['m2Prime']['params'][_0x571821(0x29c)]});}queueMicrotask(()=>{const _0x979e6a=_0x571821;this[_0x979e6a(0x1c4)]['next'](_0x115bba);});})));}[_0x5c8e6d(0xf1)](_0x29fc07){const _0x11ad48=_0x5c8e6d;var _0x47a076,_0x519178;const {memberID:_0x5885d4,selection:_0x41ced4}=_0x29fc07['data'],_0x3f227a=fs(_0x41ced4),_0x15c605=(_0x519178=(_0x47a076=this[_0x11ad48(0x330)][_0x11ad48(0x118)](this['unitID'],_0x5885d4))==null?void 0x0:_0x47a076[_0x11ad48(0x33a)])!=null?_0x519178:_0x11ad48(0x35a),_0x2a8205={'color':this['_colorAssignService'][_0x11ad48(0x2d7)](_0x5885d4),'name':_0x15c605,'ranges':_0x3f227a},_0x1f5993=this[_0x11ad48(0x3f0)];_0x1f5993[_0x11ad48(0x395)](_0x5885d4,_0x2a8205),this[_0x11ad48(0x1c4)][_0x11ad48(0x211)](_0x1f5993);}[_0x5c8e6d(0xcf)](_0x56e7d4){const _0x52c5ce=_0x5c8e6d,{memberID:_0x864ae2}=_0x56e7d4['data'],_0x5c3480=this[_0x52c5ce(0x3f0)];_0x5c3480[_0x52c5ce(0x235)](_0x864ae2),this[_0x52c5ce(0x1c4)][_0x52c5ce(0x211)](_0x5c3480);}['_toggleOnline'](){const _0x501e6a=_0x5c8e6d;var _0x5c1e4e;if(this[_0x501e6a(0xf4)]=!0x0,((_0x5c1e4e=this[_0x501e6a(0x1ee)][_0x501e6a(0x3bd)]())==null?void 0x0:_0x5c1e4e[_0x501e6a(0x35c)]())!==this[_0x501e6a(0x27a)])return;const _0x23d57a=this[_0x501e6a(0x21a)][_0x501e6a(0xc0)](M[_0x501e6a(0x260)])[_0x501e6a(0xb6)](),_0x2f80d7=_0x23d57a==null?void 0x0:_0x23d57a['map'](M[_0x501e6a(0x29e)]);Array[_0x501e6a(0x218)](_0x2f80d7)&&_0x2f80d7[_0x501e6a(0x7a)]>0x0&&this[_0x501e6a(0x275)](_0x2f80d7);}[_0x5c8e6d(0x399)](){const _0x10bf6d=_0x5c8e6d;this[_0x10bf6d(0xf4)]=!0x1;}};Ne=js([V(0x2,h[_0x5c8e6d(0x189)](h['Injector'])),V(0x3,h[_0x5c8e6d(0x189)](Ve)),V(0x4,h[_0x5c8e6d(0x189)](G)),V(0x5,h[_0x5c8e6d(0x189)](Fe)),V(0x6,u['ITransformService']),V(0x7,a[_0x5c8e6d(0x3b1)]),V(0x8,a['ICommandService'])],Ne);var xs=Object[_0x5c8e6d(0x3a5)],ks=Object[_0x5c8e6d(0x373)],Bs=(_0x537de1,_0x244390,_0x6c78ba,_0x3c5d90)=>{const _0xd60b24=_0x5c8e6d;for(var _0xded0c4=_0x3c5d90>0x1?void 0x0:_0x3c5d90?ks(_0x244390,_0x6c78ba):_0x244390,_0x58ce98=_0x537de1[_0xd60b24(0x7a)]-0x1,_0x3dd7ac;_0x58ce98>=0x0;_0x58ce98--)(_0x3dd7ac=_0x537de1[_0x58ce98])&&(_0xded0c4=(_0x3c5d90?_0x3dd7ac(_0x244390,_0x6c78ba,_0xded0c4):_0x3dd7ac(_0xded0c4))||_0xded0c4);return _0x3c5d90&&_0xded0c4&&xs(_0x244390,_0x6c78ba,_0xded0c4),_0xded0c4;},Oe=(_0x54ab07,_0x36350f)=>(_0x2f30ff,_0x1fb7fa)=>_0x36350f(_0x2f30ff,_0x1fb7fa,_0x54ab07);let z=class extends a[_0x5c8e6d(0x198)]{constructor(_0xbac650,_0x56444d,_0x36c666){const _0x4b95af=_0x5c8e6d;super(),d(this,'_entities',new Map()),d(this,_0x4b95af(0x374),new g[(_0x4b95af(0x3ea))]()),(this[_0x4b95af(0x1ee)]=_0xbac650,this[_0x4b95af(0x21a)]=_0x56444d,this[_0x4b95af(0x24a)]=_0x36c666,this[_0x4b95af(0x8a)]());}[_0x5c8e6d(0x364)](){const _0x5d031d=_0x5c8e6d;super['dispose'](),this[_0x5d031d(0x374)]['complete'](),this[_0x5d031d(0xf7)][_0x5d031d(0x382)](_0x3f6113=>_0x3f6113[_0x5d031d(0x364)]());}[_0x5c8e6d(0x32f)](_0x5462c1){const _0x525987=_0x5c8e6d;return this[_0x525987(0xf7)][_0x525987(0x315)](_0x5462c1)?this['_entities'][_0x525987(0xc0)](_0x5462c1)[_0x525987(0xad)]:this['_entityInit$'][_0x525987(0x149)](g[_0x525987(0x161)](_0x1c86e2=>_0x1c86e2['unitID']===_0x5462c1),g[_0x525987(0x26d)](_0x30b1d2=>_0x30b1d2[_0x525987(0xad)]));}[_0x5c8e6d(0x8a)](){const _0x2df7ac=_0x5c8e6d;this[_0x2df7ac(0x1ee)][_0x2df7ac(0x2fc)](a[_0x2df7ac(0x2c8)][_0x2df7ac(0x184)])[_0x2df7ac(0x149)](g[_0x2df7ac(0x150)](this[_0x2df7ac(0x1d2)]))[_0x2df7ac(0x237)](async _0x3ec46=>{const _0x35abe9=_0x2df7ac,_0x5c1def=_0x3ec46[_0x35abe9(0x35c)](),_0x4c03d0=await this['_startSheetCollabCursor'](_0x5c1def);this[_0x35abe9(0x374)]['next'](_0x4c03d0),this[_0x35abe9(0xf7)][_0x35abe9(0x395)](_0x5c1def,_0x4c03d0);}),this[_0x2df7ac(0x1ee)][_0x2df7ac(0x2fc)](a[_0x2df7ac(0x2c8)][_0x2df7ac(0x3c5)])[_0x2df7ac(0x149)](g[_0x2df7ac(0x150)](this[_0x2df7ac(0x1d2)]))['pipe'](g['filter'](_0x276c57=>!_0x276c57['getUnitId']()['startsWith']('__')))['subscribe'](async _0xd67062=>{const _0x37fedb=_0x2df7ac,_0x364bc6=_0xd67062['getUnitId'](),_0x215074=await this['_startDocCollabCursor'](_0x364bc6);this[_0x37fedb(0x374)]['next'](_0x215074),this['_entities']['set'](_0x364bc6,_0x215074);}),g[_0x2df7ac(0x1f9)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x2df7ac(0x2c8)][_0x2df7ac(0x3c5)]),this['_univerInstanceService'][_0x2df7ac(0x20f)](a['UniverInstanceType'][_0x2df7ac(0x184)]))[_0x2df7ac(0x149)](g[_0x2df7ac(0x150)](this[_0x2df7ac(0x1d2)]))['subscribe'](_0x3ad2da=>{const _0x51a0d1=_0x2df7ac,_0x3a08ab=_0x3ad2da[_0x51a0d1(0x35c)](),_0x2c172d=this['_entities'][_0x51a0d1(0xc0)](_0x3a08ab);_0x2c172d&&(_0x2c172d[_0x51a0d1(0x364)](),this['_entities'][_0x51a0d1(0x235)](_0x3a08ab));});}async[_0x5c8e6d(0x3c2)](_0xf1b07a){const _0x2af8eb=_0x5c8e6d,_0x1d790c=await this[_0x2af8eb(0x24a)][_0x2af8eb(0x319)](_0xf1b07a),_0x4fefdb=this['_injector'][_0x2af8eb(0x424)](Me,_0xf1b07a,_0x1d790c);return _0x4fefdb[_0x2af8eb(0x15e)](),_0x4fefdb;}async[_0x5c8e6d(0x111)](_0x454e73){const _0x29277a=_0x5c8e6d,_0x32e9fc=await this[_0x29277a(0x24a)]['requireSession'](_0x454e73),_0x1c5e45=this[_0x29277a(0x21a)][_0x29277a(0x424)](Ne,_0x454e73,_0x32e9fc);return _0x1c5e45[_0x29277a(0x15e)](),_0x1c5e45;}};z=Bs([a[_0x5c8e6d(0x3e9)](a[_0x5c8e6d(0x87)][_0x5c8e6d(0x2d3)],z),Oe(0x0,a[_0x5c8e6d(0x3b1)]),Oe(0x1,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),Oe(0x2,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x356)]))],z);const ce=0x14,tt=0xc8,De=0x4,Fs=0x5;function Vs(_0x5be224,_0x5a245a){const _0x3b7de2=_0x5c8e6d;let {radius:_0x22ae58,width:_0x13e49f,height:_0x528a82}=_0x5a245a;_0x22ae58=_0x22ae58!=null?_0x22ae58:0x0,_0x13e49f=_0x13e49f!=null?_0x13e49f:0x1e,_0x528a82=_0x528a82!=null?_0x528a82:0x1e;let _0x44830e=0x0,_0x3b4c28=0x0,_0x3bb545=0x0;_0x44830e=_0x3b4c28=_0x3bb545=Math[_0x3b7de2(0x1ca)](_0x22ae58,_0x13e49f/0x2,_0x528a82/0x2),_0x5be224[_0x3b7de2(0x24d)](),_0x5be224['moveTo'](_0x44830e,0x0),_0x5be224[_0x3b7de2(0x362)](_0x13e49f-_0x3b4c28,0x0),_0x5be224['arc'](_0x13e49f-_0x3b4c28,_0x3b4c28,_0x3b4c28,Math['PI']*0x3/0x2,0x0,!0x1),_0x5be224[_0x3b7de2(0x362)](_0x13e49f,_0x528a82-_0x3bb545),_0x5be224[_0x3b7de2(0x3ab)](_0x13e49f-_0x3bb545,_0x528a82-_0x3bb545,_0x3bb545,0x0,Math['PI']/0x2,!0x1),_0x5be224[_0x3b7de2(0x362)](0x0,_0x528a82),_0x5be224[_0x3b7de2(0x362)](0x0,_0x44830e),_0x5be224['arc'](_0x44830e,_0x44830e,_0x44830e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5be224[_0x3b7de2(0x286)](),_0x5a245a[_0x3b7de2(0x263)]&&(_0x5be224[_0x3b7de2(0x19a)](),_0x5be224[_0x3b7de2(0x2db)]=_0x5a245a[_0x3b7de2(0x263)],_0x5a245a[_0x3b7de2(0x8f)]==='evenodd'?_0x5be224[_0x3b7de2(0x263)](_0x3b7de2(0x158)):_0x5be224[_0x3b7de2(0x263)](),_0x5be224[_0x3b7de2(0x71)]());}class Ce extends R[_0x5c8e6d(0x6a)]{constructor(_0x36a9fc,_0x2a7fde){const _0x56ffb6=_0x5c8e6d;super(_0x36a9fc,_0x2a7fde),d(this,_0x56ffb6(0x7b)),d(this,_0x56ffb6(0x1f5)),(this[_0x56ffb6(0x7b)]=_0x2a7fde==null?void 0x0:_0x2a7fde[_0x56ffb6(0x7b)],this[_0x56ffb6(0x1f5)]=_0x2a7fde==null?void 0x0:_0x2a7fde[_0x56ffb6(0x1f5)]);}static[_0x5c8e6d(0x11b)](_0x34f520,_0x5ee899){const _0x3418e7=_0x5c8e6d,{text:_0x1535ff,color:_0x221463}=_0x5ee899;_0x34f520['save'](),_0x34f520['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1b3f5a=_0x34f520[_0x3418e7(0x2da)](_0x1535ff)[_0x3418e7(0x317)],_0x57808e=Math[_0x3418e7(0x1ca)](_0x1b3f5a+0x2*De,tt);Vs(_0x34f520,{'height':ce,'radius':0x4,'width':_0x57808e,'fill':_0x221463,'evented':!0x1}),_0x34f520[_0x3418e7(0x2db)]=_0x3418e7(0x412);const _0x536556=De,_0x1f963e=ce-Fs,_0xeacd6e=tt-0x2*De;if(_0x1b3f5a>_0xeacd6e){let _0x389198='',_0x5c3e33=0x0;for(const _0x2871e7 of _0x1535ff){const _0x4371bc=_0x34f520[_0x3418e7(0x2da)](_0x2871e7)[_0x3418e7(0x317)];if(_0x5c3e33+_0x4371bc<=_0xeacd6e-_0x34f520['measureText'](_0x3418e7(0x3a0))[_0x3418e7(0x317)])_0x389198+=_0x2871e7,_0x5c3e33+=_0x4371bc;else{_0x389198+=_0x3418e7(0x3a0);break;}}_0x34f520[_0x3418e7(0x3db)](_0x389198,_0x536556,_0x1f963e);}else _0x34f520[_0x3418e7(0x3db)](_0x1535ff,_0x536556,_0x1f963e);_0x34f520[_0x3418e7(0x71)]();}[_0x5c8e6d(0x252)](_0x2b15a2){const _0x1455af=_0x5c8e6d;Ce[_0x1455af(0x11b)](_0x2b15a2,this);}}const Ws=0x1,Gs=1.5;class Ys extends R['Shape']{constructor(_0x284f2f,_0x1ef2f4){const _0x4226ed=_0x5c8e6d;super(_0x284f2f,_0x1ef2f4),d(this,_0x4226ed(0x3cd)),d(this,_0x4226ed(0x131),!0x1),d(this,_0x4226ed(0x400)),d(this,_0x4226ed(0x419),''),d(this,_0x4226ed(0x25b),'top'),(_0x1ef2f4&&this[_0x4226ed(0x1d9)](_0x1ef2f4),this[_0x4226ed(0x2e8)]['add'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeaveObserver']['add'](()=>this[_0x4226ed(0x1d9)]({'hovered':!0x1})));}[_0x5c8e6d(0x1d9)](_0x53a723){const _0x5c8ca9=_0x5c8e6d;var _0xdab719,_0x5e01d6,_0x94edc7,_0x213036,_0x4293e2;this[_0x5c8ca9(0x3cd)]=(_0xdab719=_0x53a723[_0x5c8ca9(0x7b)])!=null?_0xdab719:this[_0x5c8ca9(0x3cd)],this['_hovered']=(_0x5e01d6=_0x53a723['hovered'])!=null?_0x5e01d6:this['_hovered'],this[_0x5c8ca9(0x400)]=(_0x94edc7=_0x53a723[_0x5c8ca9(0x240)])!=null?_0x94edc7:this[_0x5c8ca9(0x400)],this[_0x5c8ca9(0x419)]=(_0x213036=_0x53a723[_0x5c8ca9(0x33a)])!=null?_0x213036:this['_name'],this[_0x5c8ca9(0x25b)]=(_0x4293e2=_0x53a723[_0x5c8ca9(0x255)])!=null?_0x4293e2:this[_0x5c8ca9(0x25b)],this[_0x5c8ca9(0x2e4)]({'width':_0x53a723[_0x5c8ca9(0x317)],'height':_0x53a723[_0x5c8ca9(0x223)]});}['onMouseMove'](_0x14b8e7){const _0x19ec09=_0x5c8e6d,{row:_0x174656,column:_0x412cc7}=_0x14b8e7;if(_0x174656>=this['_range'][_0x19ec09(0x6f)]&&_0x174656<=this[_0x19ec09(0x400)][_0x19ec09(0x1cc)]&&_0x412cc7>=this[_0x19ec09(0x400)][_0x19ec09(0xff)]&&_0x412cc7<=this[_0x19ec09(0x400)]['endColumn']){this[_0x19ec09(0x1d9)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x13b790){return!0x1;}[_0x5c8e6d(0x252)](_0x5f3f4f){const _0x129b0d=_0x5c8e6d;R[_0x129b0d(0xc8)]['drawWith'](_0x5f3f4f,{'width':this[_0x129b0d(0x317)],'height':this[_0x129b0d(0x223)],'strokeWidth':Gs,'stroke':this[_0x129b0d(0x3cd)],'evented':!0x1}),this['_hovered']&&(_0x5f3f4f[_0x129b0d(0x19a)](),_0x5f3f4f[_0x129b0d(0x180)](0x1,0x0,0x0,0x1,this[_0x129b0d(0x317)],this[_0x129b0d(0x25b)]===_0x129b0d(0x32e)?0x0:-ce),Ce[_0x129b0d(0x11b)](_0x5f3f4f,{'text':this[_0x129b0d(0x419)],'color':this[_0x129b0d(0x3cd)]}),_0x5f3f4f[_0x129b0d(0x71)]());}}var Ks=Object[_0x5c8e6d(0x3a5)],Xs=Object[_0x5c8e6d(0x373)],qs=(_0x2420a5,_0x2345d0,_0x2f2b2a,_0x1fb7ee)=>{const _0x472089=_0x5c8e6d;for(var _0x54ccdf=_0x1fb7ee>0x1?void 0x0:_0x1fb7ee?Xs(_0x2345d0,_0x2f2b2a):_0x2345d0,_0x10b900=_0x2420a5[_0x472089(0x7a)]-0x1,_0x483a09;_0x10b900>=0x0;_0x10b900--)(_0x483a09=_0x2420a5[_0x10b900])&&(_0x54ccdf=(_0x1fb7ee?_0x483a09(_0x2345d0,_0x2f2b2a,_0x54ccdf):_0x483a09(_0x54ccdf))||_0x54ccdf);return _0x1fb7ee&&_0x54ccdf&&Ks(_0x2345d0,_0x2f2b2a,_0x54ccdf),_0x54ccdf;},le=(_0x23282e,_0x14419f)=>(_0x259ae3,_0x464714)=>_0x14419f(_0x259ae3,_0x464714,_0x23282e);let ue=class extends a[_0x5c8e6d(0x198)]{constructor(_0x36fd62,_0x44d7ad,_0x3f77e7,_0x3441a8){const _0x83c171=_0x5c8e6d;super(),d(this,'_cursors',new Set()),d(this,'_lastPointer',null),(this['_collabCursorController']=_0x36fd62,this['_univerInstanceService']=_0x44d7ad,this['_renderManagerService']=_0x3f77e7,this['_themeService']=_0x3441a8,this[_0x83c171(0x8a)]());}get[_0x5c8e6d(0x298)](){const _0x109678=_0x5c8e6d;return this[_0x109678(0x36e)][_0x109678(0x11f)](this['_univerInstanceService']['getCurrentUnitForType'](a[_0x109678(0x2c8)]['UNIVER_SHEET'])[_0x109678(0x35c)]())['with'](ee[_0x109678(0xbb)]);}get[_0x5c8e6d(0x408)](){const _0x40eccb=_0x5c8e6d;return this[_0x40eccb(0x1ee)][_0x40eccb(0x157)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x40eccb(0x35c)]();}['_init'](){const _0x4b5eeb=_0x5c8e6d;this[_0x4b5eeb(0x298)][_0x4b5eeb(0x2d6)][_0x4b5eeb(0x149)](T[_0x4b5eeb(0x150)](this[_0x4b5eeb(0x1d2)]),T['switchMap'](_0x358a98=>{const _0x1c4ce5=_0x4b5eeb;if(_0x358a98){const _0x32a168=_0x358a98[_0x1c4ce5(0x300)];return g[_0x1c4ce5(0x110)](this[_0x1c4ce5(0x10a)][_0x1c4ce5(0x32f)](this[_0x1c4ce5(0x408)]),this[_0x1c4ce5(0x177)][_0x1c4ce5(0x338)])['pipe'](T['map'](([_0x59e492,_0x574fb0])=>{const _0x4e0e9d=_0x1c4ce5,_0x14a9f3=new Map();return _0x59e492[_0x4e0e9d(0x382)]((_0x11082e,_0x35f26e)=>{const _0xb45b94=_0x4e0e9d;if(_0x11082e[_0xb45b94(0x186)]===_0x32a168){const _0xf34e52={..._0x11082e};_0xf34e52[_0xb45b94(0x7b)]=_0x574fb0[_0x11082e[_0xb45b94(0x7b)]],_0x14a9f3[_0xb45b94(0x395)](_0x35f26e,_0xf34e52);}}),{'skeleton':_0x358a98,'cursors':_0x14a9f3};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x4b5eeb(0x237)](({skeleton:_0x11bcb1,cursors:_0x2c2775})=>{const _0x433ae3=_0x4b5eeb;this['_removeCollabCursors'](),_0x11bcb1&&this[_0x433ae3(0x33b)](_0x11bcb1,_0x2c2775);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4b5eeb(0x237)](_0x3bf2c6=>{const _0x38482f=_0x4b5eeb;if(_0x3bf2c6==null)return;const {skeleton:_0x103cd4}=_0x3bf2c6,_0xd7e4b1=this[_0x38482f(0x36e)]['getRenderById'](this[_0x38482f(0x408)]),{scene:_0x2e6b3e}=_0xd7e4b1;_0x2e6b3e[_0x38482f(0x40f)][_0x38482f(0x303)](He(_0x3d3f34=>{const _0x33cee6=_0x38482f;var _0x4777a5,_0x14b7a8;const {offsetX:_0x3f02a2,offsetY:_0x1ecad0}=_0x3d3f34,{x:_0x5f3e34,y:_0x14ba37}=_0x2e6b3e[_0x33cee6(0x243)](R[_0x33cee6(0x2f7)][_0x33cee6(0x2c6)]([_0x3f02a2,_0x1ecad0])),{scaleX:_0x53a66f,scaleY:_0x27fd5d}=_0x2e6b3e[_0x33cee6(0x2dc)](),_0x4350bc=_0x2e6b3e[_0x33cee6(0x16b)](ee[_0x33cee6(0x1e0)][_0x33cee6(0x34c)]),_0x265099=_0x2e6b3e[_0x33cee6(0x26c)](R[_0x33cee6(0x2f7)][_0x33cee6(0x2c6)]([_0x5f3e34,_0x14ba37]),_0x4350bc),_0x49e364=_0x103cd4[_0x33cee6(0x2fa)](_0x3f02a2,_0x1ecad0,_0x53a66f,_0x27fd5d,_0x265099);((_0x4777a5=this[_0x33cee6(0x238)])==null?void 0x0:_0x4777a5[_0x33cee6(0x20a)])===_0x49e364[_0x33cee6(0x20a)]&&((_0x14b7a8=this[_0x33cee6(0x238)])==null?void 0x0:_0x14b7a8[_0x33cee6(0x2b0)])===_0x49e364[_0x33cee6(0x2b0)]||this[_0x33cee6(0x287)][_0x33cee6(0x382)](_0x4b3066=>{const _0x4b734b=_0x33cee6;_0x4b3066[_0x4b734b(0x147)](_0x49e364);});},0x64));});}['_updateCollabCursors'](_0x29b3c3,_0xaeff1a){const _0x5bdd1f=_0x5c8e6d;var _0x307744;const _0x5bdb07=(_0x307744=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x307744[_0x5bdd1f(0x313)];if(!_0x5bdb07)return;const _0x52d6ac=this[_0x5bdd1f(0x311)]();if(!_0x52d6ac)return;this['_cursors']['forEach'](_0x1eb39b=>{const _0x247e20=_0x5bdd1f;_0x1eb39b[_0x247e20(0x307)]();});const {scene:_0x4c8af3}=_0x52d6ac,_0x43e2ed=Js(Array[_0x5bdd1f(0x13a)](_0xaeff1a[_0x5bdd1f(0x244)]()))['map'](_0x505b6d=>{const _0x4d53e8=_0x5bdd1f,{color:_0xbe6eb,range:_0x486ecf,name:_0x325306,selection:_0x1c1860,sheetID:_0x2da35a}=_0x505b6d,{startColumn:_0x12c4ab,startRow:_0x4e9ea1,endColumn:_0x59b925,endRow:_0x2186fb}=_0x486ecf,_0x9579cf=ee[_0x4d53e8(0x3e5)](_0x4e9ea1,_0x12c4ab,_0x4c8af3,_0x5bdb07),_0x5e3388=ee[_0x4d53e8(0x3e5)](_0x2186fb,_0x59b925,_0x4c8af3,_0x5bdb07),{columnHeaderHeightAndMarginTop:_0x2cf109}=_0x5bdb07,{startX:_0x3d73a6,startY:_0x117247}=_0x9579cf,{endX:_0x5535d5,endY:_0x179537}=_0x5e3388,_0x52981b=_0x5535d5-_0x3d73a6,_0x3fd5e8=_0x179537-_0x117247,_0x3e2aba={'labelPosition':_0x117247-_0x2cf109>=ce?_0x4d53e8(0x78):'bottom','sheetID':_0x2da35a,'range':_0x486ecf,'color':_0xbe6eb,'name':_0x325306,'selection':_0x1c1860,'left':_0x3d73a6,'top':_0x117247,'width':_0x52981b,'height':_0x3fd5e8,'evented':!0x1};return new Ys(_0x325306,_0x3e2aba);});_0x4c8af3[_0x5bdd1f(0x31f)](_0x43e2ed,Ws),this[_0x5bdd1f(0x287)]=new Set(_0x43e2ed);}['_removeCollabCursors'](){const _0x261979=_0x5c8e6d;var _0x22d57;(_0x22d57=this[_0x261979(0x287)])==null||_0x22d57['forEach'](_0x47fb63=>_0x47fb63[_0x261979(0x364)]());}[_0x5c8e6d(0x311)](){const _0x149d3d=_0x5c8e6d;return ee['getSheetObject'](this[_0x149d3d(0x1ee)],this['_renderManagerService']);}};ue=qs([a[_0x5c8e6d(0x3e9)](a['LifecycleStages']['Steady'],ue),le(0x0,h[_0x5c8e6d(0x189)](z)),le(0x1,a[_0x5c8e6d(0x3b1)]),le(0x2,R[_0x5c8e6d(0x380)]),le(0x3,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x3a1)]))],ue);function Js(_0x52dc12){const _0x1431c0=_0x5c8e6d,_0xadea9a=new Map();return _0x52dc12[_0x1431c0(0x382)](_0x5ec2f1=>{const _0x48dad5=_0x1431c0;if(_0xadea9a[_0x48dad5(0x315)](_0x5ec2f1['selection'])){const _0x5b61cb=_0xadea9a['get'](_0x5ec2f1[_0x48dad5(0x39d)]);_0x5b61cb[_0x48dad5(0x33a)]+=',\x20'+_0x5ec2f1[_0x48dad5(0x33a)];}else _0xadea9a['set'](_0x5ec2f1[_0x48dad5(0x39d)],_0x5ec2f1);}),Array['from'](_0xadea9a['values']());}var y=function(){const _0x248a00=_0x5c8e6d;return y=Object[_0x248a00(0x363)]||function(_0x48fa58){const _0xaec859=_0x248a00;for(var _0x1b440f,_0x240345=0x1,_0x562aef=arguments[_0xaec859(0x7a)];_0x240345<_0x562aef;_0x240345++){_0x1b440f=arguments[_0x240345];for(var _0x5d37b8 in _0x1b440f)Object[_0xaec859(0x125)]['hasOwnProperty'][_0xaec859(0x253)](_0x1b440f,_0x5d37b8)&&(_0x48fa58[_0x5d37b8]=_0x1b440f[_0x5d37b8]);}return _0x48fa58;},y[_0x248a00(0x2ed)](this,arguments);},zs=function(_0x25925f,_0x9b634c){const _0x256c6e=_0x5c8e6d;var _0x52fae0={};for(var _0x2d2aa0 in _0x25925f)Object[_0x256c6e(0x125)]['hasOwnProperty'][_0x256c6e(0x253)](_0x25925f,_0x2d2aa0)&&_0x9b634c[_0x256c6e(0x1e7)](_0x2d2aa0)<0x0&&(_0x52fae0[_0x2d2aa0]=_0x25925f[_0x2d2aa0]);if(_0x25925f!=null&&typeof Object['getOwnPropertySymbols']==_0x256c6e(0x1d6)){for(var _0x406bc1=0x0,_0x2d2aa0=Object[_0x256c6e(0x3c6)](_0x25925f);_0x406bc1<_0x2d2aa0[_0x256c6e(0x7a)];_0x406bc1++)_0x9b634c[_0x256c6e(0x1e7)](_0x2d2aa0[_0x406bc1])<0x0&&Object[_0x256c6e(0x125)][_0x256c6e(0x361)][_0x256c6e(0x253)](_0x25925f,_0x2d2aa0[_0x406bc1])&&(_0x52fae0[_0x2d2aa0[_0x406bc1]]=_0x25925f[_0x2d2aa0[_0x406bc1]]);}return _0x52fae0;},We=L[_0x5c8e6d(0x285)](function(_0x4b1396,_0x443915){const _0x24ca4c=_0x5c8e6d;var _0x4d059a=_0x4b1396[_0x24ca4c(0x38c)],_0xdffa4=_0x4b1396['id'],_0x4c3ced=_0x4b1396[_0x24ca4c(0x2f4)],_0x2719a5=_0x4b1396['extend'],_0x356938=zs(_0x4b1396,[_0x24ca4c(0x38c),'id',_0x24ca4c(0x2f4),'extend']),_0x4977a1=_0x24ca4c(0x28c)[_0x24ca4c(0x15d)](_0xdffa4,'\x20')[_0x24ca4c(0x15d)](_0x4c3ced||'')[_0x24ca4c(0x225)](),_0x48f316=L['useRef']('_'[_0x24ca4c(0x15d)](ei()));return Tt(_0x4d059a,''[_0x24ca4c(0x15d)](_0xdffa4),{'defIds':_0x4d059a[_0x24ca4c(0x1bb)],'idSuffix':_0x48f316[_0x24ca4c(0x390)]},y({'ref':_0x443915,'className':_0x4977a1},_0x356938),_0x2719a5);});function Tt(_0x1fac19,_0xeab285,_0x1c51a8,_0x1cdd96,_0x4d9cdf){const _0x37dbe7=_0x5c8e6d;return L[_0x37dbe7(0xa1)](_0x1fac19[_0x37dbe7(0x407)],y(y({'key':_0xeab285},Zs(_0x1fac19,_0x1c51a8,_0x4d9cdf)),_0x1cdd96),(Qs(_0x1fac19,_0x1c51a8)['children']||[])[_0x37dbe7(0xe8)](function(_0x39152c,_0x5e844c){const _0x4af631=_0x37dbe7;return Tt(_0x39152c,''[_0x4af631(0x15d)](_0xeab285,'-')[_0x4af631(0x15d)](_0x1fac19[_0x4af631(0x407)],'-')[_0x4af631(0x15d)](_0x5e844c),_0x1c51a8,void 0x0,_0x4d9cdf);}));}function Zs(_0x5c95a0,_0x5806ae,_0x310914){const _0xf0e613=_0x5c8e6d;var _0x3c5217=y({},_0x5c95a0[_0xf0e613(0x107)]);_0x310914!=null&&_0x310914[_0xf0e613(0x414)]&&_0x3c5217[_0xf0e613(0x263)]===_0xf0e613(0x414)&&(_0x3c5217[_0xf0e613(0x263)]=_0x310914[_0xf0e613(0x414)]);var _0x257c5d=_0x5806ae[_0xf0e613(0x1bb)];return!_0x257c5d||_0x257c5d[_0xf0e613(0x7a)]===0x0||(_0x5c95a0[_0xf0e613(0x407)]===_0xf0e613(0x3d5)&&_0x3c5217[_0xf0e613(0x116)]&&(_0x3c5217[_0xf0e613(0x116)]=_0x3c5217[_0xf0e613(0x116)]+_0x5806ae[_0xf0e613(0x393)]),Object[_0xf0e613(0x139)](_0x3c5217)['forEach'](function(_0x179ea2){const _0x3bed7a=_0xf0e613;var _0x386e31=_0x179ea2[0x0],_0x216abd=_0x179ea2[0x1];typeof _0x216abd=='string'&&(_0x3c5217[_0x386e31]=_0x216abd['replace'](/url\(#(.*)\)/,'url(#$1'[_0x3bed7a(0x15d)](_0x5806ae[_0x3bed7a(0x393)],')')));})),_0x3c5217;}function Qs(_0x52ed5f,_0x5c97f6){const _0xe3bee4=_0x5c8e6d;var _0x3b62fc,_0x36b873=_0x5c97f6[_0xe3bee4(0x1bb)];return!_0x36b873||_0x36b873[_0xe3bee4(0x7a)]===0x0?_0x52ed5f:_0x52ed5f[_0xe3bee4(0x407)]===_0xe3bee4(0x1cb)&&(!((_0x3b62fc=_0x52ed5f[_0xe3bee4(0x220)])===null||_0x3b62fc===void 0x0)&&_0x3b62fc['length'])?y(y({},_0x52ed5f),{'children':_0x52ed5f[_0xe3bee4(0x220)]['map'](function(_0x308fb9){const _0x10b424=_0xe3bee4;return typeof _0x308fb9[_0x10b424(0x107)]['id']==_0x10b424(0x16e)&&_0x36b873&&_0x36b873[_0x10b424(0x1e7)](_0x308fb9[_0x10b424(0x107)]['id'])>-0x1?y(y({},_0x308fb9),{'attrs':y(y({},_0x308fb9[_0x10b424(0x107)]),{'id':_0x308fb9[_0x10b424(0x107)]['id']+_0x5c97f6[_0x10b424(0x393)]})}):_0x308fb9;})}):_0x52ed5f;}function ei(){const _0x1db36f=_0x5c8e6d;return Math['random']()[_0x1db36f(0xbc)](0x24)['substring'](0x2,0x8);}We[_0x5c8e6d(0xec)]=_0x5c8e6d(0x1da);var ti={'tag':_0x5c8e6d(0x3c7),'attrs':{'fill':_0x5c8e6d(0x248),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x5c8e6d(0x3e1)},'children':[{'tag':'g','attrs':{'clipPath':_0x5c8e6d(0x70)},'children':[{'tag':'path','attrs':{'stroke':_0x5c8e6d(0x6c),'d':_0x5c8e6d(0x3e4),'strokeLinecap':_0x5c8e6d(0x28b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5c8e6d(0x1cb),'attrs':{},'children':[{'tag':_0x5c8e6d(0x34d),'attrs':{'id':_0x5c8e6d(0x309)},'children':[{'tag':_0x5c8e6d(0x348),'attrs':{'fill':'#fff','d':_0x5c8e6d(0x3af)}}]}]}],'defIds':[_0x5c8e6d(0x309)]},Rt=L['forwardRef'](function(_0x21b015,_0xff8415){const _0x5a557c=_0x5c8e6d;return L[_0x5a557c(0xa1)](We,Object[_0x5a557c(0x363)]({},_0x21b015,{'id':_0x5a557c(0x1a1),'ref':_0xff8415,'icon':ti}));});Rt[_0x5c8e6d(0xec)]=_0x5c8e6d(0x77);var si={'tag':_0x5c8e6d(0x3c7),'attrs':{'fill':_0x5c8e6d(0x248),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x5c8e6d(0x3e1)},'children':[{'tag':'g','attrs':{'clipPath':_0x5c8e6d(0x182)},'children':[{'tag':_0x5c8e6d(0x348),'attrs':{'stroke':_0x5c8e6d(0x6c),'d':_0x5c8e6d(0x36a),'strokeLinecap':_0x5c8e6d(0x28b),'strokeLinejoin':_0x5c8e6d(0x28b),'strokeWidth':1.2}}]},{'tag':_0x5c8e6d(0x1cb),'attrs':{},'children':[{'tag':_0x5c8e6d(0x34d),'attrs':{'id':_0x5c8e6d(0x1a6)},'children':[{'tag':_0x5c8e6d(0x348),'attrs':{'fill':_0x5c8e6d(0x3d3),'d':_0x5c8e6d(0x3af),'transform':_0x5c8e6d(0x23f)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ot=L[_0x5c8e6d(0x285)](function(_0xe2e3f,_0x1b68fa){const _0x2edb31=_0x5c8e6d;return L['createElement'](We,Object[_0x2edb31(0x363)]({},_0xe2e3f,{'id':_0x2edb31(0x365),'ref':_0x1b68fa,'icon':si}));});Ot['displayName']='OnLineSingle';const ii='univer-online-status-icon',ni=_0x5c8e6d(0x10e),ri=_0x5c8e6d(0x165),oi='univer-online',ai='univer-offline',ie={'onlineStatusIcon':ii,'onlineStatusTitle':ni,'onlineStatus':ri,'online':oi,'offline':ai};function ci(_0x5aed7f){const _0x5e1edf=_0x5c8e6d;switch(_0x5aed7f){case w['OFFLINE']:return _0x5e1edf(0x230);case w[_0x5e1edf(0x288)]:return _0x5e1edf(0x3fe);case w[_0x5e1edf(0x201)]:return'collabStatus.fetchMiss';case w[_0x5e1edf(0x2d2)]:return _0x5e1edf(0x9f);case w[_0x5e1edf(0x3ff)]:case w[_0x5e1edf(0x106)]:case w['AWAITING_WITH_PENDING']:return _0x5e1edf(0x135);case w[_0x5e1edf(0x8b)]:return _0x5e1edf(0x21d);}}function Dt(_0x4c3a22){const _0x58ba03=_0x5c8e6d,{status$:_0x3ee0c3}=_0x4c3a22,_0x185ab7=N[_0x58ba03(0x3da)](_0x3ee0c3,w[_0x58ba03(0x2d2)]),_0xf5522a=at[_0x58ba03(0x2d8)](a['LocaleService']),_0x3008ba=_0x185ab7!==w['OFFLINE'],_0x476b42=_0xf5522a['t'](ci(_0x185ab7)),_0x5416ec=Ht(ie[_0x58ba03(0x181)],{[ie[_0x58ba03(0x179)]]:_0x3008ba,[ie[_0x58ba03(0x7f)]]:!_0x3008ba}),_0x56a4a2=_0x3008ba?L[_0x58ba03(0xa1)](Ot,null):L['createElement'](Rt,null);return L[_0x58ba03(0xa1)](_0x58ba03(0x17c),{'className':_0x5416ec},L[_0x58ba03(0xa1)](_0x58ba03(0x17c),{'className':ie['onlineStatusIcon']},_0x56a4a2),L[_0x58ba03(0xa1)]('div',{'className':ie[_0x58ba03(0x3bb)]},_0x476b42));}var li=Object[_0x5c8e6d(0x3a5)],hi=Object[_0x5c8e6d(0x373)],_i=(_0x25138e,_0x411234,_0x39caa2,_0x205155)=>{for(var _0x4a987e=_0x205155>0x1?void 0x0:_0x205155?hi(_0x411234,_0x39caa2):_0x411234,_0x1bcaea=_0x25138e['length']-0x1,_0xab2d88;_0x1bcaea>=0x0;_0x1bcaea--)(_0xab2d88=_0x25138e[_0x1bcaea])&&(_0x4a987e=(_0x205155?_0xab2d88(_0x411234,_0x39caa2,_0x4a987e):_0xab2d88(_0x4a987e))||_0x4a987e);return _0x205155&&_0x4a987e&&li(_0x411234,_0x39caa2,_0x4a987e),_0x4a987e;},he=(_0x59d9e1,_0x229aa1)=>(_0x50654a,_0x4dcc28)=>_0x229aa1(_0x50654a,_0x4dcc28,_0x59d9e1);exports[_0x5c8e6d(0x371)]=class extends a[_0x5c8e6d(0x40b)]{constructor(_0x206da7,_0x456424,_0x476aed,_0x6fd3e0){const _0x5b08fb=_0x5c8e6d;super(),d(this,'_status$',new g[(_0x5b08fb(0x18a))](w[_0x5b08fb(0x2d2)])),(this[_0x5b08fb(0x1ee)]=_0x206da7,this['_uiPartsService']=_0x456424,this[_0x5b08fb(0x21a)]=_0x476aed,this[_0x5b08fb(0x7e)]=_0x6fd3e0,this[_0x5b08fb(0x29f)](),this[_0x5b08fb(0x3d4)]());}[_0x5c8e6d(0x29f)](){const _0x3699ca=_0x5c8e6d;this['disposeWithMe'](this[_0x3699ca(0x231)][_0x3699ca(0x3b7)](N[_0x3699ca(0x3ec)][_0x3699ca(0x15f)],()=>at['connectInjector'](ui({'status$':this['_status$'][_0x3699ca(0xb5)]()}),this['_injector'])));}[_0x5c8e6d(0x3d4)](){const _0x3dcab0=_0x5c8e6d;this['disposeWithMe'](a[_0x3dcab0(0x3c9)](this[_0x3dcab0(0x1ee)][_0x3dcab0(0x1b5)][_0x3dcab0(0x149)](g[_0x3dcab0(0x26d)](()=>{const _0x1d4a57=_0x3dcab0,_0x452539=this['_univerInstanceService'][_0x1d4a57(0x3bd)]();return _0x452539?this[_0x1d4a57(0x7e)]['getCollabEntity$'](_0x452539['getUnitId']()):g['of'](null);}),g[_0x3dcab0(0x26d)](_0x4a8ef9=>_0x4a8ef9?_0x4a8ef9['status$']:g['of'](w[_0x3dcab0(0x2d2)])))[_0x3dcab0(0x237)](_0x298bd3=>{const _0x49e134=_0x3dcab0;this[_0x49e134(0x156)][_0x49e134(0x211)](_0x298bd3);})));}},exports['DesktopCollaborationStatusDisplayController']=_i([a[_0x5c8e6d(0x3e9)](a[_0x5c8e6d(0x87)][_0x5c8e6d(0x2d3)],exports[_0x5c8e6d(0x371)]),he(0x0,a[_0x5c8e6d(0x3b1)]),he(0x1,N[_0x5c8e6d(0x310)]),he(0x2,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)])),he(0x3,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x397)]))],exports['DesktopCollaborationStatusDisplayController']);function ui(_0x3a53b0){const {status$:_0x107225}=_0x3a53b0;return function(){const _0xf090b9=_0x2b59;return L[_0xf090b9(0xa1)](Dt,{'status$':_0x107225});};}const Ge=h['createIdentifier'](_0x5c8e6d(0x337));var di=Object[_0x5c8e6d(0x3a5)],Si=Object[_0x5c8e6d(0x373)],vi=(_0x368ad3,_0x3e63c5,_0x24d2e7,_0x151f93)=>{const _0x1aa06f=_0x5c8e6d;for(var _0x251982=_0x151f93>0x1?void 0x0:_0x151f93?Si(_0x3e63c5,_0x24d2e7):_0x3e63c5,_0x735667=_0x368ad3[_0x1aa06f(0x7a)]-0x1,_0x3393f3;_0x735667>=0x0;_0x735667--)(_0x3393f3=_0x368ad3[_0x735667])&&(_0x251982=(_0x151f93?_0x3393f3(_0x3e63c5,_0x24d2e7,_0x251982):_0x3393f3(_0x251982))||_0x251982);return _0x151f93&&_0x251982&&di(_0x3e63c5,_0x24d2e7,_0x251982),_0x251982;},J=(_0x175b3b,_0x6ca3af)=>(_0x46b9f9,_0x2d7155)=>_0x6ca3af(_0x46b9f9,_0x2d7155,_0x175b3b);exports[_0x5c8e6d(0x417)]=class extends a[_0x5c8e6d(0x198)]{constructor(_0x25ea53,_0x4abdbe,_0x42641f,_0x40c8b5,_0x1e78f1,_0x274aaf){const _0x4fae79=_0x5c8e6d;super(),this[_0x4fae79(0x9a)]=_0x25ea53,this[_0x4fae79(0x2e1)]=_0x4abdbe,this[_0x4fae79(0x2ea)]=_0x42641f,this[_0x4fae79(0x11c)]=_0x40c8b5,this[_0x4fae79(0x14d)]=_0x1e78f1,_0x274aaf?_0x274aaf==null||_0x274aaf[_0x4fae79(0xb0)]()['then'](()=>this[_0x4fae79(0x8a)]()):(this[_0x4fae79(0x2e1)][_0x4fae79(0x383)]('[DataLoaderController]',_0x4fae79(0x98)),this[_0x4fae79(0x8a)]());}async[_0x5c8e6d(0x8a)](){const _0x3b7a7a=_0x5c8e6d,_0x47093f=this[_0x3b7a7a(0x9a)][_0x3b7a7a(0x3cc)](_0x3b7a7a(0x2a0)),_0x312159=this['_urlService'][_0x3b7a7a(0x3cc)]('type');if(!_0x47093f||!_0x312159){this[_0x3b7a7a(0x2e1)][_0x3b7a7a(0x383)](_0x3b7a7a(0x1e3),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x312159)){case j[_0x3b7a7a(0x184)]:{const _0x2ad963=await this[_0x3b7a7a(0x21b)](_0x47093f);this[_0x3b7a7a(0x226)](_0x2ad963);break;}case j['UNIVER_DOC']:{await this['_loadDoc'](_0x47093f);break;}default:{this[_0x3b7a7a(0x2e1)][_0x3b7a7a(0x2bf)](_0x3b7a7a(0x1e3),_0x3b7a7a(0x123));break;}}}async[_0x5c8e6d(0x226)](_0xc0ea2c){const _0x3d4d7c=_0x5c8e6d;await this[_0x3d4d7c(0x194)](_0xc0ea2c),_0xc0ea2c['activeSheet$'][_0x3d4d7c(0x149)](g[_0x3d4d7c(0x150)](this[_0x3d4d7c(0x1d2)]))[_0x3d4d7c(0x237)](_0x553054=>{const _0x4afc17=_0x3d4d7c;_0x553054&&this[_0x4afc17(0x332)](_0x553054);}),this[_0x3d4d7c(0x9a)][_0x3d4d7c(0x411)][_0x3d4d7c(0x149)](g['takeUntil'](this[_0x3d4d7c(0x1d2)]))[_0x3d4d7c(0x237)](()=>this['_updateSubUnitFromURLParams'](_0xc0ea2c));}[_0x5c8e6d(0x332)](_0x175bde,_0x1446ed=!0x1){const _0x291b97=_0x5c8e6d,_0x54e7eb=this[_0x291b97(0x9a)]['getParam'](_0x291b97(0x25a));_0x175bde['getSheetId']()!==_0x54e7eb&&this[_0x291b97(0x9a)][_0x291b97(0x1d4)](_0x291b97(0x25a),_0x175bde[_0x291b97(0x2f0)](),_0x1446ed);}async['_updateSubUnitFromURLParams'](_0xe0b88a){const _0x4362f5=_0x5c8e6d,_0x48077f=this[_0x4362f5(0x9a)][_0x4362f5(0x3cc)]('subunit');if(!_0x48077f||!_0xe0b88a[_0x4362f5(0x21c)](_0x48077f)){this[_0x4362f5(0x332)](_0xe0b88a[_0x4362f5(0x344)](),!0x0);return;}_0xe0b88a[_0x4362f5(0x344)]()['getSheetId']()!==_0x48077f&&await this['_commandService'][_0x4362f5(0x33d)](E[_0x4362f5(0x297)]['id'],{'unitId':_0xe0b88a['getUnitId'](),'subUnitId':_0x48077f});}async['_loadSheet'](_0xcd2427){const _0x3d0300=_0x5c8e6d;let _0x176f24=0x0;const _0x9e4cd4=await this[_0x3d0300(0x11c)][_0x3d0300(0x3d8)](_0xcd2427);return _0x9e4cd4&&(_0x9e4cd4['awaitingChangeset']||_0x9e4cd4[_0x3d0300(0xdc)]['length']!==0x0)&&(_0x176f24=_0x9e4cd4[_0x3d0300(0x16d)]),_0x176f24===0x0&&this[_0x3d0300(0x2e1)]['debug'](_0x3d0300(0x1e3),_0x3d0300(0x28e)),this[_0x3d0300(0x14d)][_0x3d0300(0x164)](_0xcd2427,_0x176f24);}async[_0x5c8e6d(0x386)](_0xb0b4d4){const _0x3db5f6=_0x5c8e6d;let _0x3cef05=0x0;const _0x46aed9=await this['_localCacheService']['loadOfflineData'](_0xb0b4d4);return _0x46aed9&&(_0x46aed9[_0x3db5f6(0x327)]||_0x46aed9[_0x3db5f6(0xdc)][_0x3db5f6(0x7a)]!==0x0)&&(_0x3cef05=_0x46aed9['rev']),_0x3cef05===0x0&&this[_0x3db5f6(0x2e1)][_0x3db5f6(0x383)](_0x3db5f6(0x1e3),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3db5f6(0x14d)][_0x3db5f6(0x245)](_0xb0b4d4,_0x3cef05);}},exports[_0x5c8e6d(0x417)]=vi([a[_0x5c8e6d(0x3e9)](a['LifecycleStages'][_0x5c8e6d(0x2d3)],exports['DataLoaderController']),J(0x0,Ge),J(0x1,a[_0x5c8e6d(0x14f)]),J(0x2,a[_0x5c8e6d(0x1ec)]),J(0x3,h[_0x5c8e6d(0x189)](exports[_0x5c8e6d(0x342)])),J(0x4,h[_0x5c8e6d(0x189)](u[_0x5c8e6d(0x173)])),J(0x5,h['Optional'](xt[_0x5c8e6d(0x12a)]))],exports[_0x5c8e6d(0x417)]);var gi=Object['defineProperty'],fi=Object[_0x5c8e6d(0x373)],mi=(_0x3bd7ba,_0x1f3ae1,_0x56ef2b,_0x578755)=>{const _0x1db989=_0x5c8e6d;for(var _0x4009e1=_0x578755>0x1?void 0x0:_0x578755?fi(_0x1f3ae1,_0x56ef2b):_0x1f3ae1,_0x351d29=_0x3bd7ba[_0x1db989(0x7a)]-0x1,_0x50dfe9;_0x351d29>=0x0;_0x351d29--)(_0x50dfe9=_0x3bd7ba[_0x351d29])&&(_0x4009e1=(_0x578755?_0x50dfe9(_0x1f3ae1,_0x56ef2b,_0x4009e1):_0x50dfe9(_0x4009e1))||_0x4009e1);return _0x578755&&_0x4009e1&&gi(_0x1f3ae1,_0x56ef2b,_0x4009e1),_0x4009e1;},st=(_0x54e137,_0xffc0b2)=>(_0x23d74c,_0x10c0db)=>_0xffc0b2(_0x23d74c,_0x10c0db,_0x54e137);const Ii=_0x5c8e6d(0x284),pi=_0x5c8e6d(0x18e);let de=class extends a[_0x5c8e6d(0x40b)]{constructor(_0x14cc5c,_0x5a78af){const _0x51351f=_0x5c8e6d;super(),this[_0x51351f(0x1ee)]=_0x14cc5c,this['_configService']=_0x5a78af,this['_init']();}[_0x5c8e6d(0x8a)](){const _0x3ec495=_0x5c8e6d;this['disposeWithMe'](a['toDisposable'](this['_univerInstanceService']['focused$'][_0x3ec495(0x237)](()=>{const _0x571ee1=_0x3ec495;var _0x4603d9;const _0x3e283a=this[_0x571ee1(0x1ee)][_0x571ee1(0x3bd)]();let _0x5e8917=(_0x4603d9=this[_0x571ee1(0x3f7)]['getConfig'](Ii))!=null?_0x4603d9:pi;_0x3e283a instanceof a[_0x571ee1(0x251)]&&(_0x5e8917=_0x3e283a[_0x571ee1(0x33a)]),document['title']=_0x5e8917;})));}};de=mi([a[_0x5c8e6d(0x3e9)](a[_0x5c8e6d(0x87)]['Ready'],de),st(0x0,a[_0x5c8e6d(0x3b1)]),st(0x1,a[_0x5c8e6d(0x3fd)])],de);var Ei=Object[_0x5c8e6d(0x3a5)],Ci=Object[_0x5c8e6d(0x373)],bi=(_0x43664e,_0x5695bc,_0x5d3804,_0x10a11f)=>{for(var _0x1a4911=_0x10a11f>0x1?void 0x0:_0x10a11f?Ci(_0x5695bc,_0x5d3804):_0x5695bc,_0x5eb806=_0x43664e['length']-0x1,_0x2bc32c;_0x5eb806>=0x0;_0x5eb806--)(_0x2bc32c=_0x43664e[_0x5eb806])&&(_0x1a4911=(_0x10a11f?_0x2bc32c(_0x5695bc,_0x5d3804,_0x1a4911):_0x2bc32c(_0x1a4911))||_0x1a4911);return _0x10a11f&&_0x1a4911&&Ei(_0x5695bc,_0x5d3804,_0x1a4911),_0x1a4911;},it=(_0x402eb8,_0x1a4a5d)=>(_0x50cf3f,_0x37120e)=>_0x1a4a5d(_0x50cf3f,_0x37120e,_0x402eb8);let Ae=class{constructor(_0x549f2b,_0x10beb5){const _0x3cdd8c=_0x5c8e6d;this[_0x3cdd8c(0x3f7)]=_0x549f2b,this['_httpService']=_0x10beb5;}async[_0x5c8e6d(0x3ce)](_0x538910,_0x557eab){const _0xd419b5=_0x5c8e6d;var _0x4bebee;const {unitID:_0x2a341e,type:_0x5eb5fb,revision:_0x26fe35=0x0}=_0x557eab,_0x282fb3=this[_0xd419b5(0x172)]()+'/'+_0x5eb5fb+'/unit/'+_0x2a341e+_0xd419b5(0x239)+(_0x26fe35===0x1?0x0:_0x26fe35),_0x103009=(await this[_0xd419b5(0x15c)]['get'](_0x282fb3))[_0xd419b5(0x339)],_0x178e96=(_0x4bebee=_0x103009[_0xd419b5(0x202)])==null?void 0x0:_0x4bebee[_0xd419b5(0x18d)];if(_0x178e96){const _0x1ac577=_0x178e96==null?void 0x0:_0x178e96[_0xd419b5(0x1e6)],_0x3ab50f=a[_0xd419b5(0xde)][_0xd419b5(0x1db)](a['b64DecodeUnicode'](_0x1ac577));_0x178e96[_0xd419b5(0x1e6)]=_0x3ab50f,Object[_0xd419b5(0x139)](_0x178e96[_0xd419b5(0x167)])[_0xd419b5(0x382)](([,_0x188a2f])=>{const _0x554273=_0xd419b5,_0x186e00=_0x188a2f[_0x554273(0x1e6)],_0x2023cc=a['textEncoder'][_0x554273(0x1db)](a[_0x554273(0x2ca)](_0x186e00));_0x188a2f[_0x554273(0x1e6)]=_0x2023cc;});}return _0x103009;}async[_0x5c8e6d(0x2ef)](_0x26970b,_0x705ef){const _0x18a4b4=_0x5c8e6d,{unitID:_0x11597c,type:_0x219aa7,blockID:_0x3f2994}=_0x705ef,_0x1e9bd3=this['_getAPIPrefix']()+'/'+_0x219aa7+'/unit/'+_0x11597c+_0x18a4b4(0x2e0)+_0x3f2994;return(await this['_httpService']['get'](_0x1e9bd3))[_0x18a4b4(0x339)];}async[_0x5c8e6d(0x22b)](_0x3d2766,_0x4f605b){const _0x286c26=_0x5c8e6d,{unitID:_0x1a284d,type:_0x2ae41a,from:_0x557bee,to:_0x3e4621}=_0x4f605b,_0x5ea56f=this['_getAPIPrefix']()+'/'+_0x2ae41a+'/unit/'+_0x1a284d+_0x286c26(0x13f)+_0x557bee+'&to='+_0x3e4621;return(await this[_0x286c26(0x15c)][_0x286c26(0xc0)](_0x5ea56f))[_0x286c26(0x339)];}[_0x5c8e6d(0x172)](){const _0x5dda7c=_0x5c8e6d;var _0x33202c;return(_0x33202c=this['_configService'][_0x5dda7c(0xab)](lt))!=null?_0x33202c:this[_0x5dda7c(0xdf)]();}[_0x5c8e6d(0xdf)](){const _0x442fe1=_0x5c8e6d;var _0x4dfac1;return(_0x4dfac1=this[_0x442fe1(0x3f7)][_0x442fe1(0xab)](ct))!=null?_0x4dfac1:kt;}async[_0x5c8e6d(0x163)](_0x520f32,_0x13c0a1){const _0xad50ab=_0x5c8e6d,_0xd31121=_0xad50ab(0x1b4)+_0x13c0a1[_0xad50ab(0x27e)]+'/unit/'+_0x13c0a1['unitID']+_0xad50ab(0x2b5);return(await this[_0xad50ab(0x15c)][_0xad50ab(0xc0)](_0xd31121,{'params':{'resourceId':JSON[_0xad50ab(0x381)](_0x13c0a1[_0xad50ab(0x3b5)])}}))[_0xad50ab(0x339)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5c8e6d(0xd8)](){const _0x1a3fde=_0x5c8e6d;throw new Error(_0x1a3fde(0x89));}[_0x5c8e6d(0xc5)](){const _0x462bb0=_0x5c8e6d;throw new Error(_0x462bb0(0x89));}};Ae=bi([it(0x0,a[_0x5c8e6d(0x3fd)]),it(0x1,h[_0x5c8e6d(0x189)](P[_0x5c8e6d(0x155)]))],Ae);var Ti=Object[_0x5c8e6d(0x3a5)],Ri=Object[_0x5c8e6d(0x373)],Oi=(_0x213b1e,_0x3f5f9d,_0x34d8fe,_0x33d193)=>{const _0x56e518=_0x5c8e6d;for(var _0x26a42f=_0x33d193>0x1?void 0x0:_0x33d193?Ri(_0x3f5f9d,_0x34d8fe):_0x3f5f9d,_0x3e145c=_0x213b1e[_0x56e518(0x7a)]-0x1,_0x467362;_0x3e145c>=0x0;_0x3e145c--)(_0x467362=_0x213b1e[_0x3e145c])&&(_0x26a42f=(_0x33d193?_0x467362(_0x3f5f9d,_0x34d8fe,_0x26a42f):_0x467362(_0x26a42f))||_0x26a42f);return _0x33d193&&_0x26a42f&&Ti(_0x3f5f9d,_0x34d8fe,_0x26a42f),_0x26a42f;},ne=(_0x21ffbd,_0x3c68a5)=>(_0x1d2685,_0x1f606f)=>_0x3c68a5(_0x1d2685,_0x1f606f,_0x21ffbd);let je=class extends a[_0x5c8e6d(0x187)]{constructor(_0x12fafa,_0x23000a,_0x4cfdfc,_0x3012e9,_0x421579){const _0x60b131=_0x5c8e6d;super(_0x12fafa,_0x23000a,_0x4cfdfc),this[_0x60b131(0xdb)]=_0x3012e9,this['_logService']=_0x421579;}[_0x5c8e6d(0x22f)](_0x9b8b51,_0x15e3d1){const _0x5ee4ac=_0x5c8e6d,_0x48acc9=this['_getUndoStack'](_0x9b8b51);if(_0x48acc9)try{const _0x488de4=this['_transformStack'](_0x48acc9,_0x15e3d1);this[_0x5ee4ac(0xcd)](_0x9b8b51,_0x488de4);}catch(_0x4c2a3b){this['_logService'][_0x5ee4ac(0x2bf)](_0x5ee4ac(0x378),_0x4c2a3b),this[_0x5ee4ac(0x26f)](_0x9b8b51);}const _0x2fa464=this[_0x5ee4ac(0x17e)](_0x9b8b51);if(_0x2fa464)try{const _0x2850e0=this[_0x5ee4ac(0x24c)](_0x2fa464,_0x15e3d1);this[_0x5ee4ac(0xa9)](_0x9b8b51,_0x2850e0);}catch(_0x15e2be){this['_logService'][_0x5ee4ac(0x2bf)](_0x15e2be),this[_0x5ee4ac(0x2e6)](_0x9b8b51);}}[_0x5c8e6d(0x26f)](_0x2cde38){const _0x2c78d3=_0x5c8e6d,_0x4b17d4=this[_0x2c78d3(0x2f6)](_0x2cde38);_0x4b17d4&&(_0x4b17d4[_0x2c78d3(0x7a)]=0x0,this[_0x2c78d3(0x31a)]());}[_0x5c8e6d(0x2e6)](_0x521bcf){const _0x2e396b=_0x5c8e6d,_0x4cec93=this[_0x2e396b(0x17e)](_0x521bcf);_0x4cec93&&(_0x4cec93['length']=0x0,this[_0x2e396b(0x31a)]());}[_0x5c8e6d(0xcd)](_0x263e0f,_0x53e1f7){const _0x3ab7ff=_0x5c8e6d;this['_undoStacks'][_0x3ab7ff(0x395)](_0x263e0f,_0x53e1f7),this[_0x3ab7ff(0x31a)]();}['_substituteRedoStack'](_0x314aa0,_0x34e20f){const _0x26fc27=_0x5c8e6d;this['_redoStacks'][_0x26fc27(0x395)](_0x314aa0,_0x34e20f),this[_0x26fc27(0x31a)]();}[_0x5c8e6d(0x24c)](_0x1196d0,_0x2fe99d){const _0x10258f=_0x5c8e6d,_0x5d36fa=[];let _0x4a005f=_0x2fe99d,_0x54a440=_0x2fe99d;for(let _0x103cd7=_0x1196d0[_0x10258f(0x7a)]-0x1;_0x103cd7>=0x0;_0x103cd7--){const {unitID:_0x30e585,undoMutations:_0x28aa7f,redoMutations:_0x43287d}=_0x1196d0[_0x103cd7],_0x287de8=this[_0x10258f(0xdb)]['transformMutationsWithChangeset'](_0x4a005f,_0x28aa7f),_0x58f107=this[_0x10258f(0xdb)][_0x10258f(0x3fb)](_0x54a440,_0x43287d);if(u['isTransformMutationsWithChangesetFailure'](_0x287de8)||u[_0x10258f(0x1d7)](_0x58f107)){this[_0x10258f(0x2e1)][_0x10258f(0x2bf)]('[CollaborationUndoRedoService]',_0x10258f(0x418),_0x287de8,_0x58f107);break;}_0x4a005f=_0x287de8[_0x10258f(0x1e2)],_0x54a440=_0x58f107[_0x10258f(0x1e2)],_0x5d36fa['push']({'unitID':_0x30e585,'undoMutations':_0x287de8[_0x10258f(0x2b1)],'redoMutations':_0x58f107['m2Prime']});}return _0x5d36fa[_0x10258f(0x3bf)]();}};je=Oi([ne(0x0,a[_0x5c8e6d(0x3b1)]),ne(0x1,a[_0x5c8e6d(0x1ec)]),ne(0x2,a[_0x5c8e6d(0x20b)]),ne(0x3,u[_0x5c8e6d(0x35b)]),ne(0x4,a[_0x5c8e6d(0x14f)])],je);class wt extends a[_0x5c8e6d(0x198)]{constructor(){const _0x4affdd=_0x5c8e6d;super(),d(this,'urlChange$'),this[_0x4affdd(0x411)]=g['fromEvent'](window,'popstate')[_0x4affdd(0x149)](g[_0x4affdd(0x150)](this['dispose$']),g[_0x4affdd(0x2c0)](0x1),g[_0x4affdd(0x1eb)](void 0x0));}['setParam'](_0xded84a,_0x18e288,_0x13435c=!0x1){const _0x360e88=_0x5c8e6d,_0x4467af=new URL(window['location']['href']);_0x4467af[_0x360e88(0x9e)][_0x360e88(0x395)](_0xded84a,_0x18e288),_0x13435c?window[_0x360e88(0x2f2)]['replaceState']('','',_0x4467af[_0x360e88(0xbc)]()):window[_0x360e88(0x2f2)][_0x360e88(0x37e)]('','',_0x4467af[_0x360e88(0xbc)]());}['removeParam'](_0x476678,_0x12bb25=!0x1){const _0x36aca3=_0x5c8e6d,_0x90f13e=new URL(window['location'][_0x36aca3(0x39b)]);_0x90f13e[_0x36aca3(0x9e)][_0x36aca3(0x235)](_0x476678),_0x12bb25?window['history'][_0x36aca3(0x2cf)]('','',_0x90f13e[_0x36aca3(0xbc)]()):window['history']['pushState']('','',_0x90f13e[_0x36aca3(0xbc)]());}[_0x5c8e6d(0x3cc)](_0x364097){const _0x84e813=_0x5c8e6d;var _0x4af565;return(_0x4af565=new URL(window['location']['href'])[_0x84e813(0x9e)][_0x84e813(0xc0)](_0x364097))!=null?_0x4af565:void 0x0;}}const we=_0x5c8e6d(0xdd),Di=_0x5c8e6d(0x3b4),_e=0x6,wi=1.5,Le=0x4,Li=1.5,Pi=_0x5c8e6d(0x2fd);class Ui{constructor(_0x4454ca,_0x50c3f5,_0x20db6f,_0x282e6f){const _0x58707f=_0x5c8e6d;d(this,'_shapes',[]),d(this,'_anchor',null),d(this,'_textBubble',null),d(this,_0x58707f(0x403),null),d(this,_0x58707f(0x1b3),null),d(this,_0x58707f(0x271),null),(this[_0x58707f(0x3c3)]=_0x4454ca,this[_0x58707f(0x385)]=_0x50c3f5,this[_0x58707f(0x428)]=_0x20db6f,this[_0x58707f(0xb2)]=_0x282e6f,this[_0x58707f(0x312)]());}set[_0x5c8e6d(0x79)](_0x30238b){const _0x575e23=_0x5c8e6d;_0x30238b?(this[_0x575e23(0x403)]&&this[_0x575e23(0x403)][_0x575e23(0x2a8)](),this['_textBubble']&&this['_textBubble'][_0x575e23(0x302)]()):(this[_0x575e23(0x403)]&&this[_0x575e23(0x403)][_0x575e23(0x302)](),this[_0x575e23(0x261)]&&this['_textBubble'][_0x575e23(0x2a8)]());}['dispose'](){const _0x2f1a41=_0x5c8e6d;for(const _0x30b05f of this['_shapes'])_0x30b05f['dispose']();this['_textBubble']&&this[_0x2f1a41(0x261)][_0x2f1a41(0x364)](),this[_0x2f1a41(0x403)]&&this[_0x2f1a41(0x403)][_0x2f1a41(0x364)](),this[_0x2f1a41(0x326)]&&this[_0x2f1a41(0x326)]['dispose'](),this[_0x2f1a41(0x271)]&&this[_0x2f1a41(0x271)]();}[_0x5c8e6d(0x312)](){const _0x447bad=_0x5c8e6d,{_docSkeleton:_0x373638,_document:_0x2cd8a3}=this,{color:_0x3ded57,name:_0x221ec4,ranges:_0x410d48}=this[_0x447bad(0x3c3)],_0x45415d=_0x2cd8a3[_0x447bad(0xb4)](),{docsLeft:_0x2b6ad7,docsTop:_0xcac270}=_0x45415d,_0x583f51=new R['NodePositionConvertToCursor'](_0x45415d,_0x373638);for(const {startOffset:_0x570822,endOffset:_0x198a54,collapsed:_0x152b2d,isActive:_0x6ba107}of _0x410d48){const _0x5dc506=_0x373638[_0x447bad(0x38a)](_0x570822),_0x576992=_0x373638[_0x447bad(0x38a)](_0x198a54);if(_0x6ba107){const {contentBoxPointGroup:_0x5a75ab}=_0x583f51['getRangePointData'](_0x576992,_0x576992);if(_0x5a75ab['length']===0x0)continue;this[_0x447bad(0x391)](_0x3ded57,_0x5a75ab,_0x2b6ad7,_0xcac270,_0x221ec4),this[_0x447bad(0x271)]=this[_0x447bad(0x160)]();}if(!_0x152b2d){const {contentBoxPointGroup:_0x3fdd0b}=_0x583f51[_0x447bad(0x22c)](_0x5dc506,_0x576992);if(_0x3fdd0b['length']===0x0)continue;this[_0x447bad(0x392)](_0x3ded57,_0x3fdd0b,_0x2b6ad7,_0xcac270);}}}[_0x5c8e6d(0x391)](_0x541232,_0x4abdc2,_0x46f381,_0x953f00,_0x161479){const _0x412df4=_0x5c8e6d,_0x845cc3=this[_0x412df4(0x1fe)](_0x4abdc2),{left:_0x47126c,top:_0x2cb581,height:_0x2e9ecc}=_0x845cc3,_0x10af96=this[_0x412df4(0x75)](),_0x40ae82=Li/_0x10af96,_0x455e14=new R[(_0x412df4(0xc8))](we+a[_0x412df4(0x268)]['generateRandomId'](_e),{'left':_0x47126c+_0x46f381-_0x40ae82,'top':_0x2cb581+_0x953f00,'height':_0x2e9ecc,'width':wi,'fill':_0x541232||R[_0x412df4(0x28d)](a[_0x412df4(0x214)]['black'],0x0),'strokeWidth':_0x40ae82,'stroke':Pi,'evented':!0x0});this[_0x412df4(0x326)]=_0x455e14,this[_0x412df4(0x385)]['addObject'](_0x455e14,R[_0x412df4(0x86)]);const _0x594d60=new R['Rect'](we+a['Tools'][_0x412df4(0x1b1)](_e),{'left':_0x47126c+_0x46f381-_0x40ae82,'top':_0x2cb581+_0x953f00-Le/0x2,'height':Le,'width':Le,'fill':_0x541232||R['getColor'](a[_0x412df4(0x214)][_0x412df4(0x33c)],0x0),'strokeWidth':0x0,'stroke':_0x541232||R[_0x412df4(0x28d)](a['COLORS']['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x594d60,this[_0x412df4(0x385)][_0x412df4(0x404)](_0x594d60,R['TEXT_RANGE_LAYER_INDEX']);const _0x581364=new Ce(we+a[_0x412df4(0x268)][_0x412df4(0x1b1)](_e),{'left':_0x47126c+_0x46f381-_0x40ae82,'top':_0x2cb581+_0x953f00-ce,'text':_0x161479,'color':_0x541232});this['_textBubble']=_0x581364,this[_0x412df4(0x385)][_0x412df4(0x404)](_0x581364,R[_0x412df4(0x86)]),this[_0x412df4(0x79)]=!0x1;}['_handleHover'](){const _0x1e8dfe=_0x5c8e6d,_0xe4c49a=this[_0x1e8dfe(0x326)][_0x1e8dfe(0x2e8)][_0x1e8dfe(0x303)](()=>{const _0x286ac5=_0x1e8dfe;this[_0x286ac5(0x79)]=!0x0;}),_0x4e971c=this[_0x1e8dfe(0x326)][_0x1e8dfe(0x3f9)][_0x1e8dfe(0x303)](()=>{const _0x2c13b0=_0x1e8dfe;this[_0x2c13b0(0x1b3)]&&clearTimeout(this[_0x2c13b0(0x1b3)]),this[_0x2c13b0(0x1b3)]=setTimeout(()=>{const _0x3f25e4=_0x2c13b0;this[_0x3f25e4(0x79)]=!0x1;},0x7d0);});return()=>{const _0x2224ce=_0x1e8dfe;var _0x1cc674,_0x1dfd49;(_0x1cc674=this['_anchor'])==null||_0x1cc674[_0x2224ce(0x2e8)][_0x2224ce(0x195)](_0xe4c49a),(_0x1dfd49=this[_0x2224ce(0x326)])==null||_0x1dfd49[_0x2224ce(0x3f9)]['remove'](_0x4e971c);};}[_0x5c8e6d(0x392)](_0x31df61,_0x498587,_0x5c4e29,_0x20fbb5){const _0x2ab977=_0x5c8e6d,_0x550683=new a['ColorKit'](_0x31df61)[_0x2ab977(0x31b)](0.2)[_0x2ab977(0x175)](),_0xf0c8ce=new R[(_0x2ab977(0x40a))](Di+a[_0x2ab977(0x268)][_0x2ab977(0x1b1)](_e),{'pointsGroup':_0x498587,'fill':_0x550683||R[_0x2ab977(0x28d)](a['COLORS'][_0x2ab977(0x33c)],0.2),'left':_0x5c4e29,'top':_0x20fbb5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2ab977(0x36c)][_0x2ab977(0x105)](_0xf0c8ce),this[_0x2ab977(0x385)][_0x2ab977(0x404)](_0xf0c8ce,R[_0x2ab977(0x86)]);}[_0x5c8e6d(0x1fe)](_0x2cddab){const _0x1c788e=_0x2cddab[0x0],_0x4cca72=_0x1c788e[0x0],_0x3309af=_0x1c788e[0x2],{x:_0x5ab680,y:_0x1c690f}=_0x4cca72,{x:_0x3ba419,y:_0x2782d9}=_0x3309af;return{'left':_0x5ab680,'top':_0x1c690f,'width':_0x3ba419-_0x5ab680,'height':_0x2782d9-_0x1c690f};}['_getScale'](){const _0x2914ff=_0x5c8e6d,{scaleX:_0x1315ad,scaleY:_0x2b6cd6}=this[_0x2914ff(0x385)][_0x2914ff(0x2dc)]();return Math[_0x2914ff(0x259)](_0x1315ad,_0x2b6cd6);}}var yi=Object[_0x5c8e6d(0x3a5)],Mi=Object['getOwnPropertyDescriptor'],Ni=(_0x1c01ee,_0x3396f9,_0x51c983,_0xeff6c0)=>{const _0x373fb8=_0x5c8e6d;for(var _0x511705=_0xeff6c0>0x1?void 0x0:_0xeff6c0?Mi(_0x3396f9,_0x51c983):_0x3396f9,_0x46dde9=_0x1c01ee[_0x373fb8(0x7a)]-0x1,_0x389e12;_0x46dde9>=0x0;_0x46dde9--)(_0x389e12=_0x1c01ee[_0x46dde9])&&(_0x511705=(_0xeff6c0?_0x389e12(_0x3396f9,_0x51c983,_0x511705):_0x389e12(_0x511705))||_0x511705);return _0xeff6c0&&_0x511705&&yi(_0x3396f9,_0x51c983,_0x511705),_0x511705;},re=(_0x43ca2b,_0x59b113)=>(_0x47564d,_0x2f24ce)=>_0x59b113(_0x47564d,_0x2f24ce,_0x43ca2b);let Se=class extends a[_0x5c8e6d(0x198)]{constructor(_0x532dfd,_0x326063,_0x4a0c13,_0x50e3ca,_0x103e95){const _0x8dfc5=_0x5c8e6d;super(),d(this,_0x8dfc5(0x287),[]),(this[_0x8dfc5(0x10a)]=_0x532dfd,this[_0x8dfc5(0x1ee)]=_0x326063,this['_renderManagerService']=_0x4a0c13,this[_0x8dfc5(0x100)]=_0x50e3ca,this[_0x8dfc5(0x177)]=_0x103e95,this[_0x8dfc5(0x8a)]());}[_0x5c8e6d(0x8a)](){const _0x1a84e0=_0x5c8e6d;this[_0x1a84e0(0x100)]['currentSkeleton$'][_0x1a84e0(0x149)](T[_0x1a84e0(0x150)](this[_0x1a84e0(0x1d2)]),T[_0x1a84e0(0x26d)](_0x3b523f=>{const _0x6b0464=_0x1a84e0;if(_0x3b523f){const {unitId:_0x552d09}=_0x3b523f;return g[_0x6b0464(0x110)](this[_0x6b0464(0x10a)][_0x6b0464(0x32f)](_0x552d09),this[_0x6b0464(0x177)][_0x6b0464(0x338)])[_0x6b0464(0x149)](T['map'](([_0x27c911,_0x5859fd])=>({'skeleton':_0x3b523f,'cursors':[..._0x27c911['values']()][_0x6b0464(0x32c)](_0x3e84e5=>({..._0x3e84e5,'color':_0x5859fd[_0x3e84e5[_0x6b0464(0x7b)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))[_0x1a84e0(0x237)](({skeleton:_0x1d73f8,cursors:_0x55283e})=>{const _0x59627c=_0x1a84e0;this[_0x59627c(0xe7)](),_0x1d73f8&&this[_0x59627c(0x33b)](_0x1d73f8[_0x59627c(0x313)],_0x55283e);});}[_0x5c8e6d(0x33b)](_0x18746e,_0x20b9aa){const _0x24393e=_0x5c8e6d,_0xb07ed=this[_0x24393e(0x85)]();if(_0xb07ed==null)return;const {scene:_0x2e8516,document:_0x1bc813}=_0xb07ed,_0x1f59fa=_0x20b9aa[_0x24393e(0xe8)](_0x12d8ef=>new Ui(_0x12d8ef,_0x2e8516,_0x18746e,_0x1bc813));this['_cursors']=_0x1f59fa;}[_0x5c8e6d(0xe7)](){const _0xf8d8a9=_0x5c8e6d;this[_0xf8d8a9(0x287)][_0xf8d8a9(0x382)](_0x186766=>_0x186766[_0xf8d8a9(0x364)]()),this[_0xf8d8a9(0x287)]=[];}['_getDocObject'](){const _0x45adc0=_0x5c8e6d;return M[_0x45adc0(0x1af)](this[_0x45adc0(0x1ee)],this[_0x45adc0(0x36e)]);}};Se=Ni([a[_0x5c8e6d(0x3e9)](a['LifecycleStages'][_0x5c8e6d(0x2ee)],Se),re(0x0,h[_0x5c8e6d(0x189)](z)),re(0x1,a[_0x5c8e6d(0x3b1)]),re(0x2,R[_0x5c8e6d(0x380)]),re(0x3,h[_0x5c8e6d(0x189)](M[_0x5c8e6d(0x1d3)])),re(0x4,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x3a1)]))],Se);var Ai=Object[_0x5c8e6d(0x3a5)],ji=Object[_0x5c8e6d(0x373)],$i=(_0x425ce2,_0x5deec3,_0x33ed8f,_0x34408a)=>{const _0x23d453=_0x5c8e6d;for(var _0x4e0c0e=_0x34408a>0x1?void 0x0:_0x34408a?ji(_0x5deec3,_0x33ed8f):_0x5deec3,_0x4938bc=_0x425ce2[_0x23d453(0x7a)]-0x1,_0x137a71;_0x4938bc>=0x0;_0x4938bc--)(_0x137a71=_0x425ce2[_0x4938bc])&&(_0x4e0c0e=(_0x34408a?_0x137a71(_0x5deec3,_0x33ed8f,_0x4e0c0e):_0x137a71(_0x4e0c0e))||_0x4e0c0e);return _0x34408a&&_0x4e0c0e&&Ai(_0x5deec3,_0x33ed8f,_0x4e0c0e),_0x4e0c0e;},Pe=(_0x21e9e8,_0x5ac623)=>(_0x336d8c,_0x169818)=>_0x5ac623(_0x336d8c,_0x169818,_0x21e9e8);let Ie=class{constructor(_0x44c903,_0x233641,_0x28afc6){const _0xd6a2fb=_0x5c8e6d;this[_0xd6a2fb(0x3f7)]=_0x44c903,this[_0xd6a2fb(0x15c)]=_0x233641,this[_0xd6a2fb(0x37a)]=_0x28afc6,this[_0xd6a2fb(0x15e)]();}['init'](){const _0x49ec33=_0x5c8e6d;this[_0x49ec33(0x15c)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x505b2e,_0x486690)=>_0x486690(_0x505b2e)[_0x49ec33(0x149)](g['concatMap'](async _0x22de3f=>{const _0x2c14d8=_0x49ec33,_0x5b229e=_0x22de3f;if(_0x5b229e[_0x2c14d8(0x174)]===0x191&&window[_0x2c14d8(0xea)](this['localeService']['t'](_0x2c14d8(0xa8)))){const _0x96c189=window[_0x2c14d8(0x377)](window['location'][_0x2c14d8(0x39b)]);window['location'][_0x2c14d8(0x39b)]=this['_getLoginPath']()+_0x2c14d8(0x23c)+_0x96c189;}return _0x5b229e;}))});}[_0x5c8e6d(0x166)](){var _0x192444;return(_0x192444=this['_configService']['getConfig'](gt))!=null?_0x192444:Jt;}};Ie=$i([Pe(0x0,a[_0x5c8e6d(0x3fd)]),Pe(0x1,h[_0x5c8e6d(0x189)](P['HTTPService'])),Pe(0x2,h[_0x5c8e6d(0x189)](a[_0x5c8e6d(0x405)]))],Ie);var Hi=Object[_0x5c8e6d(0x3a5)],xi=Object['getOwnPropertyDescriptor'],ki=(_0x559fff,_0x525f17,_0x502094,_0x38c332)=>{const _0x579701=_0x5c8e6d;for(var _0x3684d2=_0x38c332>0x1?void 0x0:_0x38c332?xi(_0x525f17,_0x502094):_0x525f17,_0x312810=_0x559fff[_0x579701(0x7a)]-0x1,_0x1c71d4;_0x312810>=0x0;_0x312810--)(_0x1c71d4=_0x559fff[_0x312810])&&(_0x3684d2=(_0x38c332?_0x1c71d4(_0x525f17,_0x502094,_0x3684d2):_0x1c71d4(_0x3684d2))||_0x3684d2);return _0x38c332&&_0x3684d2&&Hi(_0x525f17,_0x502094,_0x3684d2),_0x3684d2;},nt=(_0xe66838,_0x2eca04)=>(_0x2fab7d,_0x115227)=>_0x2eca04(_0x2fab7d,_0x115227,_0xe66838);const Lt=_0x5c8e6d(0x1fd),Bi=_0x5c8e6d(0x1dc);function _0x2b59(_0x2dcee6,_0x5da407){const _0x23881c=_0x2388();return _0x2b59=function(_0x2b5978,_0x50d88c){_0x2b5978=_0x2b5978-0x69;let _0xe4db95=_0x23881c[_0x2b5978];return _0xe4db95;},_0x2b59(_0x2dcee6,_0x5da407);}exports[_0x5c8e6d(0x1c8)]=class{constructor(_0x262284,_0x175f1e){const _0x1d1038=_0x5c8e6d;this[_0x1d1038(0x379)]=_0x262284,this[_0x1d1038(0x3f7)]=_0x175f1e;}['_getAPIPrefixPath'](){const _0x40eaff=_0x5c8e6d;var _0x15dab7;return(_0x15dab7=this[_0x40eaff(0x3f7)][_0x40eaff(0xab)](Lt))!=null?_0x15dab7:Bi;}async[_0x5c8e6d(0x346)](_0x38ef02){const _0x21ae6e=_0x5c8e6d,_0x1fbe87=this[_0x21ae6e(0x136)]()+'/'+_0x38ef02[_0x21ae6e(0xd2)]+_0x21ae6e(0x370);return(await this['_HTTPService'][_0x21ae6e(0x1f4)](_0x1fbe87,{'body':_0x38ef02}))[_0x21ae6e(0x339)][_0x21ae6e(0x1ae)]||'';}async['list'](_0x28e671){const _0x2e2cb1=_0x5c8e6d,_0x4c7d0e=this[_0x2e2cb1(0x136)]()+_0x2e2cb1(0x208);return(await this[_0x2e2cb1(0x379)][_0x2e2cb1(0x1f4)](_0x4c7d0e,{'body':_0x28e671}))['body'][_0x2e2cb1(0x290)];}async['update'](_0x6f8196){const _0x228846=_0x5c8e6d,_0x4d9349=this[_0x228846(0x136)]()+'/'+_0x6f8196['objectType']+_0x228846(0x278)+_0x6f8196[_0x228846(0x1ae)];await this[_0x228846(0x379)][_0x228846(0x2eb)](_0x4d9349,{'body':_0x6f8196});}async[_0x5c8e6d(0x289)](_0x307d3f){const _0x5c963a=_0x5c8e6d,_0x3971f9=this[_0x5c963a(0x136)]()+'/'+_0x307d3f[_0x5c963a(0xd2)]+_0x5c963a(0x278)+_0x307d3f[_0x5c963a(0x1ae)]+_0x5c963a(0x329);return(await this[_0x5c963a(0x379)][_0x5c963a(0x1f4)](_0x3971f9,{'body':_0x307d3f}))[_0x5c963a(0x339)][_0x5c963a(0x22e)];}async[_0x5c8e6d(0x3b8)](_0x13b75d){const _0x5e7bfb=_0x5c8e6d,_0x37f806=this[_0x5e7bfb(0x136)]()+_0x5e7bfb(0x2cc);return(await this[_0x5e7bfb(0x379)]['post'](_0x37f806,{'body':{'requests':_0x13b75d}}))['body'][_0x5e7bfb(0x217)];}async[_0x5c8e6d(0x1b8)](_0x279bb6){const _0x405e81=_0x5c8e6d,_0x3ec2f4=this[_0x405e81(0x136)]()+'/'+_0x279bb6[_0x405e81(0xd2)]+_0x405e81(0x81),_0x26643a=await this[_0x405e81(0x379)][_0x405e81(0x1f4)](_0x3ec2f4,{'body':_0x279bb6});return{'roles':_0x26643a['body']['roles'],'actions':_0x26643a[_0x405e81(0x339)][_0x405e81(0x22e)]};}async['deleteCollaborator'](_0x577e38){const _0xb1a442=_0x5c8e6d,_0x575bf0=this[_0xb1a442(0x136)]()+_0xb1a442(0x2b7);await this[_0xb1a442(0x379)][_0xb1a442(0x235)](_0x575bf0,{'params':{'collaboratorID':_0x577e38['collaboratorID'],'objectID':_0x577e38[_0xb1a442(0x1ae)],'unitID':_0x577e38[_0xb1a442(0x27a)]}});}async[_0x5c8e6d(0x2ec)](_0x3fc68d){const _0x49d031=_0x5c8e6d,_0x1d2716=this[_0x49d031(0x136)]()+'/collaborator';await this['_HTTPService']['patch'](_0x1d2716,{'body':_0x3fc68d});}async[_0x5c8e6d(0xca)](_0x1cf7cd){const _0x43e1e3=_0x5c8e6d,_0x47ddd0=this[_0x43e1e3(0x136)]()+_0x43e1e3(0x2b7);await this[_0x43e1e3(0x379)][_0x43e1e3(0x1f4)](_0x47ddd0,{'body':_0x1cf7cd});}async['listCollaborators'](_0x22e29d){const _0x1d0000=_0x5c8e6d,_0x16f474=this[_0x1d0000(0x136)]()+_0x1d0000(0x2b7);return(await this['_HTTPService']['get'](_0x16f474,{'params':{'objectID':_0x22e29d[_0x1d0000(0x1ae)],'unitID':_0x22e29d[_0x1d0000(0x27a)]}}))[_0x1d0000(0x339)][_0x1d0000(0x27c)];}async[_0x5c8e6d(0x422)](_0x14f0db){const _0x5b3140=_0x5c8e6d,_0x2d890c=this[_0x5b3140(0x136)]()+'/collaborator';await this[_0x5b3140(0x379)][_0x5b3140(0x2eb)](_0x2d890c,{'body':_0x14f0db});}},exports[_0x5c8e6d(0x1c8)]=ki([nt(0x0,h[_0x5c8e6d(0x189)](P[_0x5c8e6d(0x155)])),nt(0x1,h['Inject'](a[_0x5c8e6d(0x3fd)]))],exports['AuthzIoHttpService']);var Fi=Object['defineProperty'],Vi=Object[_0x5c8e6d(0x373)],Wi=(_0x1f81cb,_0x26d52e,_0x5e0c64,_0x19f665)=>{const _0x4e0eeb=_0x5c8e6d;for(var _0x232b77=_0x19f665>0x1?void 0x0:_0x19f665?Vi(_0x26d52e,_0x5e0c64):_0x26d52e,_0x46e9c6=_0x1f81cb[_0x4e0eeb(0x7a)]-0x1,_0x1b2014;_0x46e9c6>=0x0;_0x46e9c6--)(_0x1b2014=_0x1f81cb[_0x46e9c6])&&(_0x232b77=(_0x19f665?_0x1b2014(_0x26d52e,_0x5e0c64,_0x232b77):_0x1b2014(_0x232b77))||_0x232b77);return _0x19f665&&_0x232b77&&Fi(_0x26d52e,_0x5e0c64,_0x232b77),_0x232b77;},rt=(_0x29c4ea,_0x3cfe86)=>(_0x2c18d4,_0x56ed54)=>_0x3cfe86(_0x2c18d4,_0x56ed54,_0x29c4ea);const Gi=[_0x5c8e6d(0x3d1),_0x5c8e6d(0x367),_0x5c8e6d(0xee),_0x5c8e6d(0x426),_0x5c8e6d(0x401)],Yi=0x5*0x400*0x400,Ki='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Xi=_0x5c8e6d(0x1c6),qi='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Ji=_0x5c8e6d(0x3d2);let $e=class{constructor(_0xcd3ed5,_0x391675){const _0x250c99=_0x5c8e6d;d(this,_0x250c99(0x2d0),0x0),d(this,_0x250c99(0x360),new g['Subject']()),d(this,'change$',this[_0x250c99(0x360)]),d(this,_0x250c99(0x6d),new Map()),(this[_0x250c99(0x15c)]=_0xcd3ed5,this['_configService']=_0x391675);}[_0x5c8e6d(0xfb)](_0x31a4a3){const _0x34035c=_0x5c8e6d;this[_0x34035c(0x2d0)]=_0x31a4a3,this[_0x34035c(0x360)][_0x34035c(0x211)](_0x31a4a3);}[_0x5c8e6d(0x258)](_0x31da1b,_0x4fd773){const _0x3d86dd=_0x5c8e6d;if(_0x4fd773===A[_0x3d86dd(0x40d)]['BASE64']){const _0x4f6028=new Image();return _0x4f6028[_0x3d86dd(0xe0)]=_0x31da1b,_0x4f6028;}return this[_0x3d86dd(0x6d)][_0x3d86dd(0xc0)](_0x31da1b);}[_0x5c8e6d(0x3fa)](_0x30249a,_0x2aba7a,_0x147ef8){const _0x10aa45=_0x5c8e6d;_0x2aba7a===A[_0x10aa45(0x40d)]['BASE64']||_0x147ef8==null||this[_0x10aa45(0x6d)][_0x10aa45(0x395)](_0x30249a,_0x147ef8);}async[_0x5c8e6d(0x318)](_0x501df8){const _0x18a230=_0x5c8e6d;try{const _0x215642=this[_0x18a230(0x91)](this[_0x18a230(0x1d5)](),''+_0x501df8),_0x348c79=(await this[_0x18a230(0x15c)][_0x18a230(0xc0)](_0x215642))[_0x18a230(0x339)];return _0x348c79[_0x18a230(0x2bf)]&&_0x348c79[_0x18a230(0x2bf)][_0x18a230(0x1ac)]===ft['OK']?Promise[_0x18a230(0x3f6)](_0x348c79[_0x18a230(0x39a)]):Promise[_0x18a230(0x32a)](_0x348c79[_0x18a230(0x2bf)]);}catch(_0x55b95e){return Promise['reject'](_0x55b95e);}}async['saveImage'](_0x3b5788){const _0x1aafc0=_0x5c8e6d;let _0x4dfa05='';if(!Gi[_0x1aafc0(0x27d)](_0x3b5788['type']))return this[_0x1aafc0(0x153)](),Promise[_0x1aafc0(0x32a)](new Error(A['ImageUploadStatusType'][_0x1aafc0(0x143)]));if(_0x3b5788['size']>Yi)return this['_decreaseWaiting'](),Promise['reject'](new Error(A[_0x1aafc0(0x11a)][_0x1aafc0(0xa6)]));try{const _0x354ef1=new FormData();_0x354ef1['append'](_0x1aafc0(0x213),_0x3b5788);const _0x138e60=this[_0x1aafc0(0x262)]()+_0x1aafc0(0x12e)+_0x3b5788[_0x1aafc0(0x112)][_0x1aafc0(0xbc)](),_0x5a4d6b=await(await fetch(_0x138e60,{'method':_0x1aafc0(0x1f2),'body':_0x354ef1}))[_0x1aafc0(0x3ac)]();if(typeof _0x5a4d6b[_0x1aafc0(0x141)]!=_0x1aafc0(0x16e))return this[_0x1aafc0(0x153)](),Promise['reject'](new Error(A[_0x1aafc0(0x11a)][_0x1aafc0(0x2a7)]));_0x4dfa05=_0x5a4d6b[_0x1aafc0(0x141)];}catch{return this[_0x1aafc0(0x153)](),Promise[_0x1aafc0(0x32a)](new Error(A['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x40e681,_0x5274e1)=>{const _0x3a5968=_0x1aafc0,_0x2febfd=new FileReader();_0x2febfd['readAsDataURL'](_0x3b5788),_0x2febfd[_0x3a5968(0xc4)]=_0x96c422=>{const _0x21665c=_0x3a5968;var _0x535f83;const _0x4e532c=(_0x535f83=_0x96c422[_0x21665c(0x16c)])==null?void 0x0:_0x535f83['result'];if(_0x4e532c==null){this[_0x21665c(0x153)](),_0x5274e1(new Error(A[_0x21665c(0x11a)][_0x21665c(0x2a7)]));return;}const _0x480a9f=a[_0x21665c(0x268)]['generateRandomId'](0x6);_0x40e681({'imageId':_0x480a9f,'imageSourceType':A[_0x21665c(0x40d)][_0x21665c(0xe4)],'source':_0x4dfa05,'base64Cache':_0x4e532c,'status':A['ImageUploadStatusType'][_0x21665c(0x1c5)]}),this[_0x21665c(0x153)]();};});}[_0x5c8e6d(0x262)](){const _0x3e5560=_0x5c8e6d;var _0x4fe3bb;return(_0x4fe3bb=this[_0x3e5560(0x3f7)][_0x3e5560(0xab)](Ki))!=null?_0x4fe3bb:Xi;}[_0x5c8e6d(0x1d5)](){const _0x483633=_0x5c8e6d;var _0x45d58c;return(_0x45d58c=this[_0x483633(0x3f7)]['getConfig'](qi))!=null?_0x45d58c:Ji;}[_0x5c8e6d(0x91)](_0x557bb7,_0x32f376){const _0x123b3d=_0x5c8e6d;return _0x557bb7[_0x123b3d(0x30a)]('{fileID}',_0x32f376);}[_0x5c8e6d(0x153)](){const _0x43bdca=_0x5c8e6d;this[_0x43bdca(0x2d0)]-=0x1,this[_0x43bdca(0x360)][_0x43bdca(0x211)](this['_waitCount']);}};$e=Wi([rt(0x0,h[_0x5c8e6d(0x189)](P['HTTPService'])),rt(0x1,a['IConfigService'])],$e);var Pt=Object[_0x5c8e6d(0x3a5)],zi=Object[_0x5c8e6d(0x373)],Zi=(_0x500df9,_0x39ba9a,_0x35a5b3)=>_0x39ba9a in _0x500df9?Pt(_0x500df9,_0x39ba9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35a5b3}):_0x500df9[_0x39ba9a]=_0x35a5b3,Qi=(_0x255519,_0x11b62a,_0x2db04b,_0x20a939)=>{const _0x152db6=_0x5c8e6d;for(var _0x399799=_0x20a939>0x1?void 0x0:_0x20a939?zi(_0x11b62a,_0x2db04b):_0x11b62a,_0x46a371=_0x255519[_0x152db6(0x7a)]-0x1,_0x5d52fd;_0x46a371>=0x0;_0x46a371--)(_0x5d52fd=_0x255519[_0x46a371])&&(_0x399799=(_0x20a939?_0x5d52fd(_0x11b62a,_0x2db04b,_0x399799):_0x5d52fd(_0x399799))||_0x399799);return _0x20a939&&_0x399799&&Pt(_0x11b62a,_0x2db04b,_0x399799),_0x399799;},ot=(_0x296180,_0x1c7e2d)=>(_0x9d28cb,_0x949e4b)=>_0x1c7e2d(_0x9d28cb,_0x949e4b,_0x296180),en=(_0x368b9f,_0x554696,_0x42b127)=>(Zi(_0x368b9f,_0x554696+'',_0x42b127),_0x42b127);const tn=_0x5c8e6d(0xe3);exports[_0x5c8e6d(0x24b)]=class extends a[_0x5c8e6d(0xaf)]{constructor(_0x1eceb1,_0x11c1b4,_0x3fc42b){const _0x46f7be=_0x5c8e6d;super(),this[_0x46f7be(0xc6)]=_0x1eceb1,this[_0x46f7be(0x2e1)]=_0x11c1b4,this['_injector']=_0x3fc42b;}[_0x5c8e6d(0x1b6)](_0x5e5e0b){const _0x6d9bcc=_0x5c8e6d;var _0x82b8ae,_0x848d12,_0x131006,_0x4d1cb6,_0x527178;_0x5e5e0b[_0x6d9bcc(0x315)](a[_0x6d9bcc(0x295)])&&this[_0x6d9bcc(0x2e1)][_0x6d9bcc(0x2bf)](_0x6d9bcc(0x375),_0x6d9bcc(0xf0));let _0x2a9f6f=[[a[_0x6d9bcc(0x295)],{'useClass':je}],[exports[_0x6d9bcc(0x356)]],[Ve],[P[_0x6d9bcc(0x155)]],[Ge,{'useClass':wt}],[G],[exports[_0x6d9bcc(0x342)]],[P['WebSocketService']],[fe],[ge],[ve],[Fe],[Ie],[Be,{'useClass':(_0x848d12=(_0x82b8ae=this['_config'])==null?void 0x0:_0x82b8ae['socketService'])!=null?_0x848d12:exports[_0x6d9bcc(0x12b)]}],[P[_0x6d9bcc(0x2c9)],{'useClass':P['XHRHTTPImplementation']}],[a[_0x6d9bcc(0x3b9)],{'useClass':Ae}],[a['IAuthzIoService'],{'useClass':exports[_0x6d9bcc(0x1c8)]}],[A[_0x6d9bcc(0x2a1)],{'useClass':$e}],[exports[_0x6d9bcc(0x397)]],[exports[_0x6d9bcc(0x417)]],[exports[_0x6d9bcc(0x371)]],[de],[z]];(_0x131006=this[_0x6d9bcc(0xc6)])!=null&&_0x131006[_0x6d9bcc(0x132)]&&_0x2a9f6f['push']([pe,{'useClass':hs}]),((_0x4d1cb6=this[_0x6d9bcc(0xc6)])==null?void 0x0:_0x4d1cb6['collaborationUniverTypes'])==null||this[_0x6d9bcc(0xc6)][_0x6d9bcc(0x154)]['includes'](a['UniverInstanceType'][_0x6d9bcc(0x184)])?_0x2a9f6f[_0x6d9bcc(0x105)]([ue]):this[_0x6d9bcc(0xc6)][_0x6d9bcc(0x154)][_0x6d9bcc(0x27d)](a[_0x6d9bcc(0x2c8)][_0x6d9bcc(0x3c5)])&&_0x2a9f6f[_0x6d9bcc(0x105)]([Se]),_0x2a9f6f=a[_0x6d9bcc(0x33e)](_0x2a9f6f,(_0x527178=this[_0x6d9bcc(0xc6)])==null?void 0x0:_0x527178[_0x6d9bcc(0x349)]),_0x2a9f6f['forEach'](_0x23cf01=>_0x5e5e0b['add'](_0x23cf01)),_0x5e5e0b[_0x6d9bcc(0xc0)](P['HTTPService'])[_0x6d9bcc(0x206)]({'priority':0x14,'interceptor':P[_0x6d9bcc(0x2af)]({'maxParallel':0x6})}),this[_0x6d9bcc(0x320)]();}[_0x5c8e6d(0x320)](){const _0xc0cd16=_0x5c8e6d;var _0x3cc29c,_0x45fe68;(_0x3cc29c=this[_0xc0cd16(0xc6)])!=null&&_0x3cc29c[_0xc0cd16(0x1a9)]||this['_injector'][_0xc0cd16(0xc0)](exports[_0xc0cd16(0x342)])[_0xc0cd16(0x2b3)](),(_0x45fe68=this['_config'])!=null&&_0x45fe68[_0xc0cd16(0x2ce)]&&this['_injector'][_0xc0cd16(0xc0)](Ie);}},en(exports[_0x5c8e6d(0x24b)],_0x5c8e6d(0xd9),tn),exports[_0x5c8e6d(0x24b)]=Qi([a[_0x5c8e6d(0x192)](u['UniverCollaborationPlugin']),ot(0x1,a[_0x5c8e6d(0x14f)]),ot(0x2,h[_0x5c8e6d(0x189)](h[_0x5c8e6d(0x212)]))],exports[_0x5c8e6d(0x24b)]),exports[_0x5c8e6d(0x1fd)]=Lt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=vt,exports[_0x5c8e6d(0x3ae)]=_t,exports[_0x5c8e6d(0x232)]=w,exports[_0x5c8e6d(0x96)]=Dt,exports['HEARTBEAT_INTERVAL_KEY']=ut,exports[_0x5c8e6d(0x2b9)]=xe,exports[_0x5c8e6d(0x2d1)]=Be,exports[_0x5c8e6d(0x17b)]=Ge,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports[_0x5c8e6d(0x152)]=gt,exports['SEND_CHANGESET_TIMEOUT_KEY']=ht,exports[_0x5c8e6d(0xf6)]=ct,exports['SNAPSHOT_URL_KEY']=lt,exports[_0x5c8e6d(0x366)]=W,exports[_0x5c8e6d(0xf9)]=wt,exports['deserializeToCombResponse']=mt,exports[_0x5c8e6d(0xbd)]=It;
|