@univerjs-pro/collaboration-client 0.3.0-nightly.202410111606 → 0.4.0-alpha.0
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/umd/index.js +1 -1
- package/package.json +32 -32
package/lib/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(_0x5c19f8,_0x4e46df){const _0x557536=_0x59fd,_0x308bb9=_0x5c19f8();while(!![]){try{const _0x5536a6=-parseInt(_0x557536(0x1f1))/0x1+parseInt(_0x557536(0x497))/0x2+parseInt(_0x557536(0x4dd))/0x3*(-parseInt(_0x557536(0x2c2))/0x4)+-parseInt(_0x557536(0x457))/0x5+-parseInt(_0x557536(0x30d))/0x6+-parseInt(_0x557536(0x2b7))/0x7*(parseInt(_0x557536(0x177))/0x8)+parseInt(_0x557536(0x124))/0x9;if(_0x5536a6===_0x4e46df)break;else _0x308bb9['push'](_0x308bb9['shift']());}catch(_0x2da7ab){_0x308bb9['push'](_0x308bb9['shift']());}}}(_0x42c5,0xcc4cd),function(_0x28763e,_0x183ec5){const _0x2ead59=_0x59fd;typeof exports=='object'&&typeof module<'u'?_0x183ec5(exports,require(_0x2ead59(0x307)),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require(_0x2ead59(0xe9)),require(_0x2ead59(0x22f)),require(_0x2ead59(0x38c)),require('@univerjs/telemetry'),require(_0x2ead59(0x224)),require(_0x2ead59(0x491)),require('@univerjs/sheets'),require(_0x2ead59(0x277)),require(_0x2ead59(0x334)),require(_0x2ead59(0x21e)),require('@univerjs/sheets-ui'),require(_0x2ead59(0x436)),require(_0x2ead59(0x4cc)),require(_0x2ead59(0x22c)),require(_0x2ead59(0x3b0))):typeof define==_0x2ead59(0x14c)&&define[_0x2ead59(0x346)]?define([_0x2ead59(0x35d),_0x2ead59(0x307),_0x2ead59(0x167),_0x2ead59(0x152),_0x2ead59(0x303),_0x2ead59(0xe9),'@univerjs/network',_0x2ead59(0x38c),_0x2ead59(0x183),_0x2ead59(0x224),_0x2ead59(0x491),_0x2ead59(0xfa),_0x2ead59(0x277),'@univerjs/drawing',_0x2ead59(0x21e),_0x2ead59(0x38b),_0x2ead59(0x436),_0x2ead59(0x4cc),_0x2ead59(0x22c),_0x2ead59(0x3b0)],_0x183ec5):(_0x28763e=typeof globalThis<'u'?globalThis:_0x28763e||self,_0x183ec5(_0x28763e[_0x2ead59(0x1b2)]={},_0x28763e[_0x2ead59(0x3ff)],_0x28763e[_0x2ead59(0x167)],_0x28763e[_0x2ead59(0x167)]['operators'],_0x28763e['UniverDesign'],_0x28763e['UniverUi'],_0x28763e[_0x2ead59(0x2e1)],_0x28763e[_0x2ead59(0x211)],_0x28763e['UniverTelemetry'],_0x28763e[_0x2ead59(0x219)],_0x28763e[_0x2ead59(0x126)],_0x28763e[_0x2ead59(0x479)],_0x28763e[_0x2ead59(0x20f)],_0x28763e[_0x2ead59(0x24c)],_0x28763e[_0x2ead59(0x264)],_0x28763e[_0x2ead59(0x3df)],_0x28763e[_0x2ead59(0x2a9)],_0x28763e[_0x2ead59(0x4cc)],_0x28763e[_0x2ead59(0x39c)],_0x28763e[_0x2ead59(0x3e3)]));}(this,function(_0x326761,_0x229428,_0x4a5f0c,_0x2032d6,_0x71e3dd,_0x5d918d,_0x1d2d7f,_0x16a1a7,_0x4c2174,_0xf2d66e,_0x585819,_0x4118a6,_0x33f8a9,_0x36c3dd,_0x59dfd8,_0x52d884,_0x5398de,_0x2e5aa8,_0x29a0cb,_0x1f5326){'use strict';const _0x4c996d=_0x59fd;var _0x2963b4=Object[_0x4c996d(0x287)],_0xdf39d0=(_0x22e026,_0x576f7e,_0x478d10)=>_0x576f7e in _0x22e026?_0x2963b4(_0x22e026,_0x576f7e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x478d10}):_0x22e026[_0x576f7e]=_0x478d10,_0xb4d35=(_0x54183e,_0xea0fd6,_0x30e656)=>_0xdf39d0(_0x54183e,typeof _0xea0fd6!=_0x4c996d(0x4bd)?_0xea0fd6+'':_0xea0fd6,_0x30e656);const _0xa2f44=_0x4c996d(0x3d6),_0x11a848='/universer-api/snapshot',_0x19655e='SNAPSHOT_URL_KEY',_0x17c04c=_0x4c996d(0x154),_0x5ebc49=_0x4c996d(0x4b7),_0x18660e='ws://127.0.0.1:8000/universer-api/comb/connect',_0x59a3ea=_0x4c996d(0x3b5),_0x1edc8f='HEARTBEAT_TIMEOUT',_0x2d286d='RETRY_CONNECTING_MAX_COUNT',_0x385d5f='LOCAL_CACHE_INTERVAL',_0x18a4d2=_0x4c996d(0x24d),_0x2e8f2c=_0x4c996d(0x3b8),_0x2c7366=_0x4c996d(0x477),_0x53291b=_0x4c996d(0x11b);var _0x4ea1f0=(_0x44fa18=>(_0x44fa18[_0x44fa18[_0x4c996d(0x1e9)]=0x0]=_0x4c996d(0x1e9),_0x44fa18[_0x44fa18['OK']=0x1]='OK',_0x44fa18[_0x44fa18[_0x4c996d(0x41a)]=0x2]=_0x4c996d(0x41a),_0x44fa18[_0x44fa18[_0x4c996d(0x4b4)]=0x3]='PERMISSION_DENIED',_0x44fa18[_0x44fa18[_0x4c996d(0x116)]=0x4]='NOT_FOUND',_0x44fa18[_0x44fa18['UNAUTHENTICATED']=0x5]=_0x4c996d(0x413),_0x44fa18[_0x44fa18[_0x4c996d(0x1e1)]=0x6]=_0x4c996d(0x1e1),_0x44fa18[_0x44fa18[_0x4c996d(0x1ac)]=0x7]=_0x4c996d(0x1ac),_0x44fa18[_0x44fa18[_0x4c996d(0xf3)]=0x8]=_0x4c996d(0xf3),_0x44fa18[_0x44fa18[_0x4c996d(0x49c)]=0x9]=_0x4c996d(0x49c),_0x44fa18[_0x44fa18[_0x4c996d(0x405)]=0x1389]=_0x4c996d(0x405),_0x44fa18[_0x44fa18[_0x4c996d(0x426)]=0x1771]=_0x4c996d(0x426),_0x44fa18[_0x44fa18[_0x4c996d(0x4be)]=0x1772]=_0x4c996d(0x4be),_0x44fa18[_0x44fa18[_0x4c996d(0x1c6)]=0x1b59]=_0x4c996d(0x1c6),_0x44fa18[_0x44fa18['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4c996d(0x379),_0x44fa18[_0x44fa18[_0x4c996d(0x393)]=0x1b5b]=_0x4c996d(0x393),_0x44fa18[_0x44fa18[_0x4c996d(0x4c2)]=0x1b5c]=_0x4c996d(0x4c2),_0x44fa18[_0x44fa18['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4c996d(0x16b),_0x44fa18[_0x44fa18[_0x4c996d(0x138)]=0x2329]=_0x4c996d(0x138),_0x44fa18[_0x44fa18[_0x4c996d(0x2ef)]=0x232a]=_0x4c996d(0x2ef),_0x44fa18[_0x44fa18[_0x4c996d(0x2e2)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x44fa18[_0x44fa18[_0x4c996d(0x3b9)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x44fa18[_0x44fa18[_0x4c996d(0x2f8)]=0x232d]=_0x4c996d(0x2f8),_0x44fa18[_0x44fa18[_0x4c996d(0x150)]=0x2711]=_0x4c996d(0x150),_0x44fa18[_0x44fa18['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4c996d(0x3bf),_0x44fa18[_0x44fa18['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4c996d(0xe2),_0x44fa18[_0x44fa18[_0x4c996d(0x2df)]=0x2714]=_0x4c996d(0x2df),_0x44fa18[_0x44fa18[_0x4c996d(0xdc)]=-0x1]=_0x4c996d(0xdc),_0x44fa18))(_0x4ea1f0||{}),_0x367a98=(_0x108aca=>(_0x108aca[_0x108aca[_0x4c996d(0x3a7)]=0x0]='UNIVER_UNKNOWN',_0x108aca[_0x108aca['UNIVER_DOC']=0x1]=_0x4c996d(0x4b2),_0x108aca[_0x108aca['UNIVER_SHEET']=0x2]=_0x4c996d(0x11a),_0x108aca[_0x108aca[_0x4c996d(0x372)]=0x3]='UNIVER_SLIDE',_0x108aca[_0x108aca[_0x4c996d(0x4e0)]=0x4]=_0x4c996d(0x4e0),_0x108aca[_0x108aca[_0x4c996d(0xdc)]=-0x1]=_0x4c996d(0xdc),_0x108aca))(_0x367a98||{}),_0x19eae4=(_0x191fae=>(_0x191fae[_0x191fae['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x191fae[_0x191fae[_0x4c996d(0x2bd)]=0x1]='HELLO',_0x191fae[_0x191fae[_0x4c996d(0x425)]=0x2]=_0x4c996d(0x425),_0x191fae[_0x191fae['LEAVE']=0x3]=_0x4c996d(0x4b0),_0x191fae[_0x191fae[_0x4c996d(0x3e5)]=0x4]=_0x4c996d(0x3e5),_0x191fae[_0x191fae[_0x4c996d(0x40f)]=0x5]=_0x4c996d(0x40f),_0x191fae[_0x191fae[_0x4c996d(0x41b)]=0x6]=_0x4c996d(0x41b),_0x191fae[_0x191fae[_0x4c996d(0xdc)]=-0x1]=_0x4c996d(0xdc),_0x191fae))(_0x19eae4||{}),_0xdbe0e7=(_0x48f971=>(_0x48f971[_0x48f971[_0x4c996d(0x3db)]=0x0]=_0x4c996d(0x3db),_0x48f971[_0x48f971['OK']=0x1]='OK',_0x48f971[_0x48f971[_0x4c996d(0x207)]=0x2]=_0x4c996d(0x207),_0x48f971[_0x48f971[_0x4c996d(0xdc)]=-0x1]=_0x4c996d(0xdc),_0x48f971))(_0xdbe0e7||{}),_0x55c55a=(_0x37b669=>(_0x37b669[_0x37b669[_0x4c996d(0x288)]=0x0]=_0x4c996d(0x288),_0x37b669[_0x37b669['HttpImport']=0x1]='HttpImport',_0x37b669[_0x37b669[_0x4c996d(0x121)]=0x2]=_0x4c996d(0x121),_0x37b669[_0x37b669[_0x4c996d(0x1a8)]=0x3]=_0x4c996d(0x1a8),_0x37b669[_0x37b669[_0x4c996d(0x21c)]=0x4]='UnitSnapshot',_0x37b669[_0x37b669['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x37b669))(_0x55c55a||{});const _0x4dd3a7=_0x4c996d(0xd9),_0x394e50={};function _0xbf8362(_0x61c75){const _0x377cbe=_0x4c996d;var _0x401eae,_0x3eaf98,_0x1ca1c4,_0x18c9fd;const _0x55e373=_0x61c75[_0x377cbe(0x223)],_0x16d9a2=JSON[_0x377cbe(0x4de)](_0x55e373);switch(_0x16d9a2[_0x377cbe(0x381)]){case _0x19eae4[_0x377cbe(0x40f)]:case _0x19eae4['HELLO']:{const _0x3fcb9b=_0x16d9a2[_0x377cbe(0x2e7)];return{..._0x16d9a2,'data':_0x3fcb9b,'cmd':_0x16d9a2['cmd']};}case _0x19eae4[_0x377cbe(0x425)]:{const _0x599c51=_0x16d9a2['joinRsp'];return{..._0x16d9a2,'data':_0x599c51,'cmd':_0x16d9a2['cmd']};}case _0x19eae4[_0x377cbe(0x41b)]:{const _0x3a1cab=_0x16d9a2[_0x377cbe(0x114)];switch(_0x3a1cab[_0x377cbe(0x1c0)]){case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x149)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':(_0x401eae=_0x3a1cab[_0x377cbe(0x43e)])==null?void 0x0:_0x401eae['cs']},'cmd':_0x16d9a2['cmd']};case _0x16a1a7[_0x377cbe(0x15d)]['CHANGESET_ACK']:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':(_0x3eaf98=_0x3a1cab['csAckEvent'])==null?void 0x0:_0x3eaf98['cs']},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x355)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':(_0x1ca1c4=_0x3a1cab[_0x377cbe(0x1f6)])==null?void 0x0:_0x1ca1c4['cs']},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x4d0)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':(_0x18c9fd=_0x3a1cab[_0x377cbe(0xde)])==null?void 0x0:_0x18c9fd['cs']},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x2b2)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab['updateCursorEvent']},'cmd':_0x16d9a2['cmd']};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x40e)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x25d)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)]['USERS_LEAVE']:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab['leaveEvent']},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7['CollaborationEvent'][_0x377cbe(0x313)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x44f)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)]['LIVESHARE_FETCH_OPERATIONS']:case _0x16a1a7['CollaborationEvent'][_0x377cbe(0x482)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x38d)]},'cmd':_0x16d9a2['cmd']};case _0x16a1a7['CollaborationEvent'][_0x377cbe(0x20d)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x44f)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7['CollaborationEvent'][_0x377cbe(0x46c)]:return{..._0x16d9a2,'data':_0x3a1cab,'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x32a)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x387)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7['CollaborationEvent'][_0x377cbe(0xe0)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x470)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};case _0x16a1a7[_0x377cbe(0x15d)][_0x377cbe(0x17b)]:return{..._0x16d9a2,'data':{..._0x3a1cab,'data':_0x3a1cab[_0x377cbe(0x326)]},'cmd':_0x16d9a2[_0x377cbe(0x381)]};default:return _0x16d9a2;}}default:return _0x16d9a2;}}function _0x2f6e37(_0x495076){const _0xb08f03=_0x4c996d;switch(_0x495076[_0xb08f03(0x381)]){case _0x19eae4[_0xb08f03(0x40f)]:case _0x19eae4['HELLO']:return JSON['stringify']({'cmd':_0x495076[_0xb08f03(0x381)],'routeKey':_0x495076[_0xb08f03(0x240)]});case _0x19eae4[_0xb08f03(0x3e5)]:{let _0x5bf903;switch(_0x495076[_0xb08f03(0x223)][_0xb08f03(0x1c0)]){case _0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x2b2)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x2b2)],'updateCursorEvent':_0x495076['data'][_0xb08f03(0x223)]};break;}case _0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x3d9)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x3d9)],'leaveEvent':_0x495076['data']['data']};break;}case _0x16a1a7['CollaborationEvent'][_0xb08f03(0x40e)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x40e)],'joinEvent':_0x495076[_0xb08f03(0x223)][_0xb08f03(0x223)]};break;}case _0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x313)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x313)],'liveShareNewHost':_0x495076[_0xb08f03(0x223)][_0xb08f03(0x223)]};break;}case _0x16a1a7[_0xb08f03(0x15d)]['LIVESHARE_OPERATION']:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x482)],'liveShareOperation':_0x495076[_0xb08f03(0x223)][_0xb08f03(0x223)]};break;}case _0x16a1a7['CollaborationEvent'][_0xb08f03(0x20d)]:{_0x5bf903={'eventID':_0x16a1a7['CollaborationEvent'][_0xb08f03(0x20d)],'liveShareTerminate':_0x495076[_0xb08f03(0x223)]['data']};break;}case _0x16a1a7['CollaborationEvent'][_0xb08f03(0x237)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x237)],'liveShareRequestHost':_0x495076[_0xb08f03(0x223)]['data']};break;}case _0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x195)]:{_0x5bf903={'eventID':_0x16a1a7[_0xb08f03(0x15d)][_0xb08f03(0x195)]};break;}default:_0x5bf903={'eventID':_0x495076[_0xb08f03(0x223)][_0xb08f03(0x1c0)]};}return JSON['stringify']({'cmd':_0x495076['cmd'],'routeKey':_0x495076['routeKey'],'collaMsg':_0x5bf903});}case _0x19eae4[_0xb08f03(0x425)]:return JSON[_0xb08f03(0x415)]({'cmd':_0x495076['cmd'],'routeKey':_0x495076[_0xb08f03(0x240)],'joinReq':_0x495076[_0xb08f03(0x223)]});case _0x19eae4[_0xb08f03(0x4b0)]:return JSON[_0xb08f03(0x415)]({'cmd':_0x495076[_0xb08f03(0x381)],'routeKey':_0x495076[_0xb08f03(0x240)],'leaveReq':_0x495076[_0xb08f03(0x223)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0x45c334=Object[_0x4c996d(0x287)],_0x23ef89=Object[_0x4c996d(0x16a)],_0x4f53b4=(_0x9f26be,_0x7b9d89,_0x11de6d,_0x461d98)=>{const _0x4d41d1=_0x4c996d;for(var _0x329572=_0x461d98>0x1?void 0x0:_0x461d98?_0x23ef89(_0x7b9d89,_0x11de6d):_0x7b9d89,_0x10bb91=_0x9f26be[_0x4d41d1(0x260)]-0x1,_0x144aa6;_0x10bb91>=0x0;_0x10bb91--)(_0x144aa6=_0x9f26be[_0x10bb91])&&(_0x329572=(_0x461d98?_0x144aa6(_0x7b9d89,_0x11de6d,_0x329572):_0x144aa6(_0x329572))||_0x329572);return _0x461d98&&_0x329572&&_0x45c334(_0x7b9d89,_0x11de6d,_0x329572),_0x329572;},_0x1912ea=(_0x13b1c6,_0x3fd522)=>(_0x57cbd9,_0x2339e1)=>_0x3fd522(_0x57cbd9,_0x2339e1,_0x13b1c6);const _0x52a4b9=_0x229428[_0x4c996d(0x15b)]('univer-pro.collaboration-client-socket-service');function _0x16b165(_0x178720,_0x2e0be3,_0x204606){const _0x182b7e=_0x4c996d;return _0x178720+'/'+_0x2e0be3+_0x182b7e(0x4ae)+_0x204606+'/new_changes';}_0x326761[_0x4c996d(0x2bb)]=class extends _0x229428['Disposable']{constructor(_0x5aeb0b,_0xa3d3,_0x4db281,_0x17684c,_0x2d582d){const _0x4ebfdc=_0x4c996d;super(),this[_0x4ebfdc(0x47e)]=_0x5aeb0b,this['_ws']=_0xa3d3,this['_configService']=_0x4db281,this[_0x4ebfdc(0x1e2)]=_0x17684c,this[_0x4ebfdc(0x292)]=_0x2d582d;}['createSocket'](_0x440395){const _0x2766d6=_0x4c996d,_0x4f8495=this['_ws'][_0x2766d6(0x1fa)](_0x440395);if(!_0x4f8495)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x305252=new _0x229428[(_0x2766d6(0x3de))](),_0x4aba0f=new _0x4a5f0c['Subject']();_0x305252[_0x2766d6(0x4c6)](_0x4f8495[_0x2766d6(0x17f)][_0x2766d6(0x451)](_0x3b8f67=>_0x4aba0f['next'](_0x3b8f67))),_0x305252[_0x2766d6(0x4c6)](_0x229428[_0x2766d6(0x130)](()=>_0x4aba0f['complete']()));const _0x453cd8=new _0x4a5f0c['Subject']();_0x305252['add'](_0x4f8495[_0x2766d6(0x1cb)]['subscribe'](_0x374c37=>_0x453cd8[_0x2766d6(0x256)](_0x374c37))),_0x305252['add'](_0x229428[_0x2766d6(0x130)](()=>_0x453cd8[_0x2766d6(0x21f)]()));const _0x3d181e=new _0x4a5f0c[(_0x2766d6(0x3a8))]();_0x305252[_0x2766d6(0x4c6)](_0x4f8495[_0x2766d6(0xf7)][_0x2766d6(0x451)](_0xf59d4e=>{const _0x21d830=_0x2766d6,_0x481717=_0xbf8362(_0xf59d4e);_0x3d181e[_0x21d830(0x256)](_0x481717);})),_0x305252[_0x2766d6(0x4c6)](_0x229428[_0x2766d6(0x130)](()=>_0x3d181e[_0x2766d6(0x21f)]()));let _0x3f582c;const _0x48e431=()=>{const _0x45dd85=_0x2766d6;_0x453cd8[_0x45dd85(0x256)](new Event(_0x45dd85(0x465))),_0x4aba0f['next'](new CloseEvent(_0x45dd85(0x465))),_0x3f582c['close']();};return _0x3f582c={'memberID':'','close$':_0x4aba0f[_0x2766d6(0x228)](),'error$':_0x453cd8[_0x2766d6(0x228)](),'open$':_0x4f8495[_0x2766d6(0x3cd)],'message$':_0x3d181e[_0x2766d6(0x228)](),'send':_0x121f85=>{const _0x2b4101=_0x2766d6;if(_0x121f85[_0x2b4101(0x381)]===_0x19eae4[_0x2b4101(0x3e5)]){if(_0x121f85['data']['eventID']===_0x16a1a7[_0x2b4101(0x15d)][_0x2b4101(0x37a)]){this[_0x2b4101(0x2c4)](_0x3f582c,_0x121f85[_0x2b4101(0x223)])[_0x2b4101(0x1b8)](_0x58aeed=>{const _0x407672=_0x2b4101;this[_0x407672(0x1e2)][_0x407672(0x28e)](_0x58aeed),_0x48e431();});return;}if(_0x121f85['data'][_0x2b4101(0x1c0)]===_0x16a1a7[_0x2b4101(0x15d)][_0x2b4101(0x15c)]){const _0x5157fc=_0x121f85[_0x2b4101(0x223)];this[_0x2b4101(0x178)](_0x5157fc)[_0x2b4101(0x17c)](_0x5603ad=>{const _0x28c31c=_0x2b4101;_0x3d181e['next']({'cmd':_0x19eae4[_0x28c31c(0x41b)],'code':_0xdbe0e7['OK'],'routeKey':_0x5157fc[_0x28c31c(0x223)][_0x28c31c(0x341)],'routeType':'','data':{'eventID':_0x16a1a7[_0x28c31c(0x15d)][_0x28c31c(0x28f)],'data':{'changesets':_0x5603ad}}});})[_0x2b4101(0x1b8)](_0x34aa70=>{this['_logService']['error'](_0x34aa70),_0x48e431();});return;}}_0x4f8495[_0x2b4101(0x38e)](_0x2f6e37(_0x121f85));},'close':()=>{const _0x4ef930=_0x2766d6;_0x4f8495[_0x4ef930(0x31a)](),_0x305252['dispose']();}},_0x3f582c;}async[_0x4c996d(0x2c4)](_0xc30da9,_0x33b413){const _0x270baa=_0x4c996d;var _0x897895,_0x135879;const {unitType:_0x55c9eb,unitID:_0xf9fd8a,changeset:_0xfbced}=_0x33b413[_0x270baa(0x223)],_0x2edfc3={'unitID':_0xf9fd8a,'memberID':_0xc30da9[_0x270baa(0x319)],'type':_0x55c9eb,'changeset':_0x16a1a7[_0x270baa(0xfd)](_0xfbced)},_0x1858b3=this['_configService']['getConfig'](_0x18a4d2),_0x469b29=this[_0x270baa(0x27a)]['getConfig'](_0x4dd3a7),_0x3f8a1f=_0x16b165((_0x135879=(_0x897895=_0x469b29==null?void 0x0:_0x469b29[_0x270baa(0x484)])!=null?_0x897895:_0x1858b3)!=null?_0x135879:_0x2e8f2c,_0x55c9eb,_0xf9fd8a);try{await this['_http'][_0x270baa(0x2de)](_0x3f8a1f,{'body':_0x2edfc3});}catch(_0x5485ea){throw this[_0x270baa(0x1e2)]['error'](_0x270baa(0x4af),_0x270baa(0x23b)),_0x5485ea;}}async['_fetchMissChangesets'](_0x4118ef){const _0x3677cc=_0x4c996d,{unitID:_0x12cad0,from:_0x174e79,to:_0x2e7931,unitType:_0xad311a}=_0x4118ef[_0x3677cc(0x223)];return(await this['_snapshotServerService'][_0x3677cc(0x4d2)]({'metadata':void 0x0},{'unitID':_0x12cad0,'type':_0xad311a,'from':_0x174e79,'to':_0x2e7931}))[_0x3677cc(0x48a)];}},_0x326761[_0x4c996d(0x2bb)]=_0x4f53b4([_0x1912ea(0x0,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)])),_0x1912ea(0x1,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f['WebSocketService'])),_0x1912ea(0x2,_0x229428[_0x4c996d(0x274)]),_0x1912ea(0x3,_0x229428[_0x4c996d(0x363)]),_0x1912ea(0x4,_0x16a1a7[_0x4c996d(0x46f)])],_0x326761['CollaborationSocketService']);const _0x33260c=_0x4c996d(0x3d4);function _0x4da3c4(_0x1229a6){const _0x360d2c=_0x4c996d;return JSON[_0x360d2c(0x415)](_0x1229a6)['length'];}class _0x22cb76{constructor(){const _0xc1fac0=_0x4c996d;_0xb4d35(this,'_commentUpdate$',new _0x4a5f0c['Subject']()),_0xb4d35(this,_0xc1fac0(0x3ce),this[_0xc1fac0(0x103)]['asObservable']());}['onCommentUpdate'](_0x26016d){this['_commentUpdate$']['next'](_0x26016d);}}var _0xa4269c=Object[_0x4c996d(0x287)],_0x2d8b47=Object[_0x4c996d(0x16a)],_0x57e557=(_0x37aea2,_0x45c9ef,_0x25891e,_0x53e1a1)=>{const _0x3f216e=_0x4c996d;for(var _0x554433=_0x53e1a1>0x1?void 0x0:_0x53e1a1?_0x2d8b47(_0x45c9ef,_0x25891e):_0x45c9ef,_0x3e186e=_0x37aea2[_0x3f216e(0x260)]-0x1,_0xfe2e4;_0x3e186e>=0x0;_0x3e186e--)(_0xfe2e4=_0x37aea2[_0x3e186e])&&(_0x554433=(_0x53e1a1?_0xfe2e4(_0x45c9ef,_0x25891e,_0x554433):_0xfe2e4(_0x554433))||_0x554433);return _0x53e1a1&&_0x554433&&_0xa4269c(_0x45c9ef,_0x25891e,_0x554433),_0x554433;},_0x5aee8d=(_0x133745,_0x3936ea)=>(_0x512254,_0x254c4e)=>_0x3936ea(_0x512254,_0x254c4e,_0x133745);let _0x4090c9=class extends _0x229428[_0x4c996d(0x2a6)]{constructor(_0x2fdfb0,_0xfef6fc){const _0x1f9d35=_0x4c996d;super(),_0xb4d35(this,'_roomMembers',new Map()),(this[_0x1f9d35(0x456)]=_0x2fdfb0,this[_0x1f9d35(0x351)]=_0xfef6fc,this[_0x1f9d35(0x315)](_0x229428[_0x1f9d35(0x130)](_0x4a5f0c['merge'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x229428['UniverInstanceType'][_0x1f9d35(0x11a)])[_0x1f9d35(0x2b6)](_0x2032d6['map'](_0x3b324f=>_0x3b324f[_0x1f9d35(0x40b)]())),this[_0x1f9d35(0x456)][_0x1f9d35(0x3f5)](_0x229428[_0x1f9d35(0x2b5)]['UNIVER_DOC'])[_0x1f9d35(0x2b6)](_0x2032d6[_0x1f9d35(0x3fb)](_0x436d48=>_0x436d48['getUnitId']())),this[_0x1f9d35(0x456)][_0x1f9d35(0x3f5)](_0x229428[_0x1f9d35(0x2b5)]['UNIVER_SLIDE'])[_0x1f9d35(0x2b6)](_0x2032d6[_0x1f9d35(0x3fb)](_0x461eec=>_0x461eec[_0x1f9d35(0x40b)]())))[_0x1f9d35(0x451)](_0x14ce2a=>this['_removeRoom'](_0x14ce2a)))));}[_0x4c996d(0x2ed)](_0x5d34df){const _0x4a30f2=_0x4c996d;this[_0x4a30f2(0x351)][_0x4a30f2(0x2ed)](_0x5d34df);}[_0x4c996d(0x11c)](){return this['_userManagerService']['getCurrentUser']();}[_0x4c996d(0x464)](_0x1a6890,_0x1533ba){const _0x3e67e7=_0x4c996d;let _0x66f5c3=this[_0x3e67e7(0x269)][_0x3e67e7(0x453)](_0x1a6890);_0x66f5c3||(_0x66f5c3=new _0x23d334(),this[_0x3e67e7(0x269)][_0x3e67e7(0x22e)](_0x1a6890,_0x66f5c3)),_0x66f5c3[_0x3e67e7(0x464)](_0x1533ba);}[_0x4c996d(0x394)](_0x56502d,_0x1cdd1a){const _0x25f502=_0x4c996d,_0x392153=this[_0x25f502(0x269)][_0x25f502(0x453)](_0x56502d);_0x392153&&_0x392153[_0x25f502(0x394)](_0x1cdd1a);}[_0x4c996d(0x2ac)](_0x470e6c){const _0x372abc=_0x4c996d;return this['_roomMembers'][_0x372abc(0x453)](_0x470e6c);}[_0x4c996d(0x3fc)](_0x22a6ab,_0x5d1dad){const _0x54bb05=_0x4c996d,_0x485979=this['_roomMembers'][_0x54bb05(0x453)](_0x22a6ab);if(_0x485979)return _0x485979['getMember'](_0x5d1dad);}['_removeRoom'](_0x372b27){const _0x4831ef=_0x4c996d,_0x44c498=this[_0x4831ef(0x269)]['get'](_0x372b27);_0x44c498&&(_0x44c498[_0x4831ef(0x20a)](),this['_roomMembers'][_0x4831ef(0x4d4)](_0x372b27));}[_0x4c996d(0x20a)](){const _0x27bf7f=_0x4c996d;this[_0x27bf7f(0x269)][_0x27bf7f(0x139)](_0x13895b=>_0x13895b[_0x27bf7f(0x20a)]()),this[_0x27bf7f(0x269)][_0x27bf7f(0x34c)]();}};_0x4090c9=_0x57e557([_0x5aee8d(0x0,_0x229428[_0x4c996d(0x299)]),_0x5aee8d(0x1,_0x229428['Inject'](_0x229428['UserManagerService']))],_0x4090c9);class _0x23d334 extends _0x229428[_0x4c996d(0x2a6)]{constructor(){const _0x3dcc20=_0x4c996d;super(...arguments),_0xb4d35(this,_0x3dcc20(0x2af),new Map());}[_0x4c996d(0x20a)](){const _0x1677f2=_0x4c996d;this[_0x1677f2(0x2af)][_0x1677f2(0x34c)]();}['updateMember'](_0x42df1){const _0x476d67=_0x4c996d;this['_members']['set'](_0x42df1[_0x476d67(0x319)],_0x42df1);}['removeMember'](_0x526f68){const _0x12d4dd=_0x4c996d;this[_0x12d4dd(0x2af)][_0x12d4dd(0x4d4)](_0x526f68);}[_0x4c996d(0x3fc)](_0x5e6e9e){const _0x214451=_0x4c996d;return this[_0x214451(0x2af)]['get'](_0x5e6e9e);}}var _0x25fd07=Object[_0x4c996d(0x287)],_0x133c49=Object[_0x4c996d(0x16a)],_0x589861=(_0x25fed2,_0x1d46c4,_0x33e037,_0x40a79d)=>{const _0x330bf5=_0x4c996d;for(var _0x5aa04d=_0x40a79d>0x1?void 0x0:_0x40a79d?_0x133c49(_0x1d46c4,_0x33e037):_0x1d46c4,_0x5ac7d5=_0x25fed2[_0x330bf5(0x260)]-0x1,_0x564912;_0x5ac7d5>=0x0;_0x5ac7d5--)(_0x564912=_0x25fed2[_0x5ac7d5])&&(_0x5aa04d=(_0x40a79d?_0x564912(_0x1d46c4,_0x33e037,_0x5aa04d):_0x564912(_0x5aa04d))||_0x5aa04d);return _0x40a79d&&_0x5aa04d&&_0x25fd07(_0x1d46c4,_0x33e037,_0x5aa04d),_0x5aa04d;},_0x42a3b7=(_0x39b8b9,_0x4831a2)=>(_0x333756,_0x1d1e0c)=>_0x4831a2(_0x333756,_0x1d1e0c,_0x39b8b9),_0x44beef=(_0x4a000a=>(_0x4a000a[_0x4a000a['IDLE']=0x0]='IDLE',_0x4a000a[_0x4a000a['JOINING']=0x1]=_0x4c996d(0x390),_0x4a000a[_0x4a000a[_0x4c996d(0x28b)]=0x2]=_0x4c996d(0x28b),_0x4a000a[_0x4a000a[_0x4c996d(0x39b)]=0x3]=_0x4c996d(0x39b),_0x4a000a))(_0x44beef||{});_0x326761[_0x4c996d(0x367)]=class extends _0x229428['RxDisposable']{constructor(_0x1e4dfe,_0x5a18fb,_0x1fb3dd,_0x11c208,_0x3e8a7e,_0x1799d8,_0x31e1b4,_0x3f6f8a,_0x55ebc4,_0x23c731){const _0x17ee96=_0x4c996d;super(),_0xb4d35(this,_0x17ee96(0x191),new _0x4a5f0c[(_0x17ee96(0x496))](0x0)),_0xb4d35(this,_0x17ee96(0x3d1),this['_sessionStatus$'][_0x17ee96(0x228)]()),_0xb4d35(this,_0x17ee96(0x340),new _0x4a5f0c[(_0x17ee96(0x3a8))]()),_0xb4d35(this,_0x17ee96(0x13f),this[_0x17ee96(0x340)][_0x17ee96(0x228)]()),_0xb4d35(this,_0x17ee96(0x24b)),_0xb4d35(this,'_socketMessageSubscription'),_0xb4d35(this,'_collaborationTimeoutTimer'),_0xb4d35(this,'_shouldReportTelemetry',!0x1),_0xb4d35(this,_0x17ee96(0x3c1),null),(this[_0x17ee96(0x4a6)]=_0x1e4dfe,this['_logService']=_0x1fb3dd,this[_0x17ee96(0x4b3)]=_0x11c208,this[_0x17ee96(0x485)]=_0x3e8a7e,this[_0x17ee96(0x27a)]=_0x1799d8,this['_localeService']=_0x31e1b4,this[_0x17ee96(0x29f)]=_0x3f6f8a,this[_0x17ee96(0x13e)]=_0x55ebc4,this['_telemetryService']=_0x23c731,this[_0x17ee96(0x1fe)]=!!this['_telemetryService'],_0x5a18fb[_0x17ee96(0x2b6)](_0x4a5f0c[_0x17ee96(0xf1)](this['dispose$']))[_0x17ee96(0x451)](_0xe0ece1=>{const _0x33f400=_0x17ee96;var _0x244b09;typeof _0xe0ece1>'u'||(this[_0x33f400(0x24b)]=_0xe0ece1,_0xe0ece1?(this['_joinRoom'](_0xe0ece1),this[_0x33f400(0x4b8)]=_0xe0ece1[_0x33f400(0xf7)][_0x33f400(0x451)](_0x2cfeee=>{const _0x2e5378=_0x33f400;_0x2cfeee[_0x2e5378(0x240)]===this[_0x2e5378(0x4a6)]&&this['_onCombEvent'](_0x2cfeee);})):(this[_0x33f400(0x202)](),this['_sessionStatus$'][_0x33f400(0x256)](0x2),(_0x244b09=this[_0x33f400(0x4b8)])==null||_0x244b09[_0x33f400(0x399)](),this[_0x33f400(0x4b8)]=null));}),this[_0x17ee96(0x315)](this[_0x17ee96(0x4b3)][_0x17ee96(0x438)](()=>{const _0x2790d5=_0x17ee96;var _0x20fc11;(_0x20fc11=this[_0x2790d5(0x24b)])==null||_0x20fc11[_0x2790d5(0x38e)]({'cmd':_0x19eae4['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x4c996d(0x44b)](){const _0x2d491c=_0x4c996d;return this[_0x2d491c(0x191)]['getValue']();}[_0x4c996d(0x19f)](){const _0x59d9ed=_0x4c996d;var _0x3613fa,_0x2283e9;return(_0x2283e9=(_0x3613fa=this['_socket'])==null?void 0x0:_0x3613fa[_0x59d9ed(0x319)])!=null?_0x2283e9:null;}[_0x4c996d(0x20a)](){const _0x42bae3=_0x4c996d;super[_0x42bae3(0x20a)](),this[_0x42bae3(0x47b)][_0x42bae3(0x256)](),this[_0x42bae3(0x47b)][_0x42bae3(0x21f)]();}['close'](){const _0x3f994f=_0x4c996d;var _0x4e3dc9,_0x1cfee2;this[_0x3f994f(0x202)](),(_0x4e3dc9=this[_0x3f994f(0x24b)])==null||_0x4e3dc9['send']({'cmd':_0x19eae4[_0x3f994f(0x4b0)],'data':{'roomID':this[_0x3f994f(0x4a6)]}}),(_0x1cfee2=this[_0x3f994f(0x24b)])==null||_0x1cfee2[_0x3f994f(0x31a)](),this[_0x3f994f(0x340)][_0x3f994f(0x21f)](),this[_0x3f994f(0x191)][_0x3f994f(0x21f)](),this['dispose']();}[_0x4c996d(0x39e)](_0x806270){const _0x25f47e=_0x4c996d;_0x806270[_0x25f47e(0x381)]===_0x19eae4['JOIN']?this['_onJoinRoomEvent'](_0x806270):_0x806270[_0x25f47e(0x381)]===_0x19eae4[_0x25f47e(0x41b)]&&this[_0x25f47e(0x296)](_0x806270);}[_0x4c996d(0x1bc)](_0xd4930a){const _0x4e6cd0=_0x4c996d;this[_0x4e6cd0(0x191)]['next'](0x1),_0xd4930a['send']({'cmd':_0x19eae4[_0x4e6cd0(0x425)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x4e6cd0(0x4a6)]}]}});}[_0x4c996d(0x31f)](_0x47c048){const _0x4605a8=_0x4c996d;var _0x39f514;if(_0x47c048['code']===_0xdbe0e7[_0x4605a8(0x207)]){this[_0x4605a8(0x485)]['show']({'type':_0x71e3dd[_0x4605a8(0x123)][_0x4605a8(0x13d)],'content':this['_localeService']['t'](_0x4605a8(0x373))}),this[_0x4605a8(0x191)][_0x4605a8(0x256)](0x2);return;}this[_0x4605a8(0x191)][_0x4605a8(0x256)](0x3);const _0x4662db=(_0x39f514=_0x47c048[_0x4605a8(0x223)][_0x4605a8(0x389)][this['_unitID']])==null?void 0x0:_0x39f514[_0x4605a8(0x1ba)];_0x4662db&&_0x4662db[_0x4605a8(0x139)](_0x52a079=>this[_0x4605a8(0x29f)][_0x4605a8(0x464)](this['_unitID'],_0x52a079));}[_0x4c996d(0x296)](_0x232cda){const _0x591d15=_0x4c996d;try{const _0x34d211=_0x232cda['data'];switch(_0x34d211[_0x591d15(0x1c0)]){case _0x16a1a7[_0x591d15(0x15d)][_0x591d15(0x40e)]:this[_0x591d15(0x3cb)](_0x34d211),this['_event$'][_0x591d15(0x256)](_0x34d211);break;case _0x16a1a7[_0x591d15(0x15d)][_0x591d15(0x3d9)]:this[_0x591d15(0x317)](_0x34d211),this[_0x591d15(0x340)][_0x591d15(0x256)](_0x34d211);break;case _0x16a1a7['CollaborationEvent'][_0x591d15(0x39d)]:this[_0x591d15(0x28d)](),this[_0x591d15(0x2b3)](),this[_0x591d15(0x340)][_0x591d15(0x256)](_0x34d211);break;case _0x16a1a7[_0x591d15(0x15d)][_0x591d15(0x46c)]:this[_0x591d15(0x1e2)][_0x591d15(0x28e)](_0x591d15(0x246)+JSON[_0x591d15(0x415)](_0x34d211)),this[_0x591d15(0x340)]['next'](_0x34d211);break;case _0x16a1a7[_0x591d15(0x15d)][_0x591d15(0x32a)]:this['_commentService'][_0x591d15(0x3a9)](_0x34d211[_0x591d15(0x223)]),this[_0x591d15(0x340)][_0x591d15(0x256)](_0x34d211);break;default:this['_event$'][_0x591d15(0x256)](_0x34d211);}}catch(_0x4b7c2c){this[_0x591d15(0x1e2)]['error'](_0x4b7c2c,_0x232cda);}}[_0x4c996d(0x3cb)](_0x698a2){const _0x451a96=_0x4c996d;this[_0x451a96(0x29f)][_0x451a96(0x464)](this[_0x451a96(0x4a6)],_0x698a2[_0x451a96(0x223)]);}['_onUserLeave'](_0x10d80f){const _0x158bbb=_0x4c996d;this[_0x158bbb(0x29f)][_0x158bbb(0x394)](this[_0x158bbb(0x4a6)],_0x10d80f[_0x158bbb(0x223)]['memberID']);}async[_0x4c996d(0x38e)](_0x2f3b9e,_0x25370f){const _0x34b1d1=_0x4c996d;if(this[_0x34b1d1(0x44b)]!==0x3||!this[_0x34b1d1(0x24b)])throw new Error(_0x34b1d1(0x3a6));try{_0x2f3b9e[_0x34b1d1(0x1c0)]===_0x16a1a7[_0x34b1d1(0x15d)][_0x34b1d1(0x37a)]&&(this[_0x34b1d1(0x3ef)](),this['_startTelemetryCollaborationNewChangeset'](_0x2f3b9e)),this['_socket'][_0x34b1d1(0x38e)]({'cmd':_0x19eae4[_0x34b1d1(0x3e5)],'routeKey':_0x25370f,'routeType':'','data':_0x2f3b9e});}catch(_0x172e5b){this[_0x34b1d1(0x1e2)][_0x34b1d1(0x28e)](_0x172e5b);}}[_0x4c996d(0x3ef)](){const _0x5460c9=_0x4c996d;var _0x466526;this[_0x5460c9(0xd8)]=window[_0x5460c9(0x215)](()=>{const _0x5c934b=_0x5460c9;this[_0x5c934b(0xd8)]=null,this['_messageService'][_0x5c934b(0x1d9)]({'type':_0x71e3dd[_0x5c934b(0x123)][_0x5c934b(0x3ca)],'content':this[_0x5c934b(0x1ca)]['t'](_0x5c934b(0x3c0))});},(_0x466526=this['_configService'][_0x5460c9(0x2d8)](_0x1edc8f))!=null?_0x466526:0x4e20);}[_0x4c996d(0x2b3)](){const _0x220c2a=_0x4c996d;this[_0x220c2a(0xd8)]&&(clearTimeout(this[_0x220c2a(0xd8)]),this[_0x220c2a(0xd8)]=null);}[_0x4c996d(0x43a)](_0x1dc0b4){if(!this['_shouldReportTelemetry'])return;const {data:_0x1f8136}=_0x1dc0b4,{unitID:_0x2f310c,changeset:_0x126cd2}=_0x1f8136,{mutations:_0x428036,type:_0x215f92}=_0x126cd2;this['_telemetryInfo']={'unitId':_0x2f310c,'type':_0x215f92,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x4da3c4(_0x428036)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x233e3a=_0x4c996d;if(this[_0x233e3a(0x1fe)]){if(!this[_0x233e3a(0x3c1)]){this[_0x233e3a(0x1e2)][_0x233e3a(0x28e)]('[CollaborationSession]',_0x233e3a(0x10a));return;}this[_0x233e3a(0x3c1)][_0x233e3a(0x441)]=performance['now'](),this[_0x233e3a(0x3c1)][_0x233e3a(0x417)]=this[_0x233e3a(0x3c1)][_0x233e3a(0x441)]-this[_0x233e3a(0x3c1)][_0x233e3a(0x2b8)],this['_telemetryService'][_0x233e3a(0x25f)](_0x33260c,this[_0x233e3a(0x3c1)]),this[_0x233e3a(0x3c1)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x288de9=_0x4c996d;this[_0x288de9(0x3c1)]=null;}},_0x326761['CollaborationSession']=_0x589861([_0x42a3b7(0x2,_0x229428[_0x4c996d(0x363)]),_0x42a3b7(0x3,_0x5d918d['IBeforeCloseService']),_0x42a3b7(0x4,_0x5d918d[_0x4c996d(0x19e)]),_0x42a3b7(0x5,_0x229428[_0x4c996d(0x274)]),_0x42a3b7(0x6,_0x229428['Inject'](_0x229428[_0x4c996d(0x23a)])),_0x42a3b7(0x7,_0x229428[_0x4c996d(0x25c)](_0x4090c9)),_0x42a3b7(0x8,_0x229428[_0x4c996d(0x25c)](_0x22cb76)),_0x42a3b7(0x9,_0x229428[_0x4c996d(0x424)](_0x4c2174[_0x4c996d(0x39a)]))],_0x326761[_0x4c996d(0x367)]);var _0x17ed14=Object[_0x4c996d(0x287)],_0x5513ae=Object[_0x4c996d(0x16a)],_0x22f2de=(_0x199af3,_0x4f36ec,_0x34d360,_0x29bfbc)=>{const _0x123f83=_0x4c996d;for(var _0x17d118=_0x29bfbc>0x1?void 0x0:_0x29bfbc?_0x5513ae(_0x4f36ec,_0x34d360):_0x4f36ec,_0x4833e8=_0x199af3[_0x123f83(0x260)]-0x1,_0x1f811f;_0x4833e8>=0x0;_0x4833e8--)(_0x1f811f=_0x199af3[_0x4833e8])&&(_0x17d118=(_0x29bfbc?_0x1f811f(_0x4f36ec,_0x34d360,_0x17d118):_0x1f811f(_0x17d118))||_0x17d118);return _0x29bfbc&&_0x17d118&&_0x17ed14(_0x4f36ec,_0x34d360,_0x17d118),_0x17d118;},_0x27db79=(_0x43f2a8,_0x374865)=>(_0xf562f3,_0x304424)=>_0x374865(_0xf562f3,_0x304424,_0x43f2a8);_0x326761[_0x4c996d(0x368)]=class extends _0x229428[_0x4c996d(0x2a6)]{constructor(_0x1be8ff,_0x24a32c,_0x238a3e,_0x5b7801,_0x3929df,_0xb3fd4c){const _0x4abedb=_0x4c996d;super(),_0xb4d35(this,_0x4abedb(0x384),new _0x4a5f0c['BehaviorSubject'](void 0x0)),_0xb4d35(this,'socket$',this[_0x4abedb(0x384)][_0x4abedb(0x228)]()),_0xb4d35(this,_0x4abedb(0x18b),null),_0xb4d35(this,_0x4abedb(0xf6),new Map()),_0xb4d35(this,'_status$',new _0x4a5f0c[(_0x4abedb(0x496))](_0x44beef[_0x4abedb(0x3a5)])),_0xb4d35(this,'status$',this[_0x4abedb(0x461)][_0x4abedb(0x228)]()),_0xb4d35(this,_0x4abedb(0x388),!0x1),_0xb4d35(this,_0x4abedb(0x364)),_0xb4d35(this,_0x4abedb(0x1a7),0x0),_0xb4d35(this,_0x4abedb(0x37f)),_0xb4d35(this,_0x4abedb(0x3c2)),(this[_0x4abedb(0x112)]=_0x1be8ff,this[_0x4abedb(0x1ca)]=_0x24a32c,this[_0x4abedb(0x485)]=_0x238a3e,this[_0x4abedb(0x1e2)]=_0x5b7801,this[_0x4abedb(0x27a)]=_0x3929df,this[_0x4abedb(0x15e)]=_0xb3fd4c,this[_0x4abedb(0x184)]());}get['_socket'](){const _0x5306ce=_0x4c996d;return this[_0x5306ce(0x384)][_0x5306ce(0x309)]();}[_0x4c996d(0x184)](){const _0x4bed14=_0x4c996d;this[_0x4bed14(0x241)](),this['_listenToOnlineEvent']();}[_0x4c996d(0x20a)](){const _0x38a1bd=_0x4c996d;super['dispose'](),this[_0x38a1bd(0xf6)]['forEach'](_0x577cf8=>_0x577cf8[_0x38a1bd(0x20a)]()),this[_0x38a1bd(0xf6)][_0x38a1bd(0x34c)](),this[_0x38a1bd(0x461)][_0x38a1bd(0x21f)]();}async[_0x4c996d(0x339)](_0x35f331){const _0x57e940=_0x4c996d;if(this['_sessions'][_0x57e940(0x1df)](_0x35f331))return this[_0x57e940(0xf6)][_0x57e940(0x453)](_0x35f331);this[_0x57e940(0x49b)]();const _0x4d658b=this[_0x57e940(0x112)]['createInstance'](_0x326761[_0x57e940(0x367)],_0x35f331,this[_0x57e940(0x384)][_0x57e940(0x228)]());return this[_0x57e940(0xf6)][_0x57e940(0x22e)](_0x35f331,_0x4d658b),_0x4d658b;}[_0x4c996d(0x133)](_0x4d0784){const _0x2116ee=_0x4c996d;var _0xca8bd2;const _0x163bb7=this[_0x2116ee(0xf6)][_0x2116ee(0x453)](_0x4d0784);_0x163bb7&&(this[_0x2116ee(0xf6)][_0x2116ee(0x4d4)](_0x4d0784),_0x163bb7[_0x2116ee(0x31a)]()),this['_sessions'][_0x2116ee(0x423)]||(_0xca8bd2=this['_socket'])==null||_0xca8bd2[_0x2116ee(0x31a)]();}[_0x4c996d(0x33d)](){const _0x4dfbe4=_0x4c996d;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x4dfbe4(0x364)]),this[_0x4dfbe4(0x364)]=null),this[_0x4dfbe4(0x437)]();}['_createSocket'](){const _0x26cdfa=_0x4c996d;var _0x3875ca,_0x3f23ca;const _0x2853dd=this[_0x26cdfa(0x27a)][_0x26cdfa(0x2d8)](_0x5ebc49),_0x5bf553=this['_configService'][_0x26cdfa(0x2d8)](_0x4dd3a7),_0x2ceed0=(_0x3f23ca=(_0x3875ca=_0x5bf553==null?void 0x0:_0x5bf553[_0x26cdfa(0x466)])!=null?_0x3875ca:_0x2853dd)!=null?_0x3f23ca:_0x18660e,_0x939fda=this['_socketService'][_0x26cdfa(0x1fa)](_0x2ceed0);return this[_0x26cdfa(0x18b)]=_0x939fda,_0x939fda;}['_tryEnsureSocket'](){const _0x5ecd06=_0x4c996d;var _0x536f61,_0x1adbc7;try{const _0x3bd913=(_0x1adbc7=(_0x536f61=this['_socket'])!=null?_0x536f61:this[_0x5ecd06(0x18b)])!=null?_0x1adbc7:this['_createSocket']();if(_0x3bd913){const _0x424eb3=_0x3bd913[_0x5ecd06(0x38e)];_0x3bd913[_0x5ecd06(0x38e)]=_0x351411=>(this[_0x5ecd06(0x4d7)](),_0x424eb3['apply'](_0x3bd913,[_0x351411])),_0x3bd913[_0x5ecd06(0xf7)][_0x5ecd06(0x451)](_0x2d1de3=>this[_0x5ecd06(0x3e6)](_0x3bd913,_0x2d1de3)),_0x3bd913[_0x5ecd06(0x1cb)][_0x5ecd06(0x2b6)](_0x2032d6['take'](0x1))['subscribe'](_0x2bbc3e=>this[_0x5ecd06(0x1e2)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x2bbc3e)),_0x3bd913[_0x5ecd06(0x3cd)][_0x5ecd06(0x2b6)](_0x2032d6[_0x5ecd06(0x14f)](0x1))['subscribe'](()=>{const _0x22ea2e=_0x5ecd06;this[_0x22ea2e(0x1ea)](_0x3bd913);}),_0x3bd913['close$']['pipe'](_0x2032d6[_0x5ecd06(0x14f)](0x1))[_0x5ecd06(0x451)](_0x45cffe=>{const _0x381294=_0x5ecd06;this['_logService']['debug'](_0x381294(0x247),'socket\x20close',_0x45cffe),this[_0x381294(0x320)]();});}}catch(_0x133dd8){this['_logService']['error'](_0x133dd8),this[_0x5ecd06(0x320)]();}}['_onConnectionOpen'](_0x388a65){const _0x106d83=_0x4c996d;this[_0x106d83(0x1e2)][_0x106d83(0x2b9)]('[CollaborationSessionService]',_0x106d83(0x2bf)),_0x388a65[_0x106d83(0x38e)]({'cmd':_0x19eae4[_0x106d83(0x2bd)]}),this[_0x106d83(0x4d7)]();}[_0x4c996d(0x241)](){const _0x5b685a=_0x4c996d;window[_0x5b685a(0x3fe)](_0x5b685a(0x13a),()=>this['_onOffline']());}['_onOffline'](){const _0x40ec8e=_0x4c996d;this['_socketReady']=!0x1,this[_0x40ec8e(0x18b)]=null,this['_status$'][_0x40ec8e(0x256)](_0x44beef[_0x40ec8e(0x28b)]),this[_0x40ec8e(0x384)][_0x40ec8e(0x256)](null),this[_0x40ec8e(0x376)](),this[_0x40ec8e(0x301)]();}[_0x4c996d(0x320)](){const _0x3b5868=_0x4c996d;var _0x561d2b;this['_onOffline'](),this[_0x3b5868(0x1a7)]<((_0x561d2b=this['_configService'][_0x3b5868(0x2d8)](_0x2d286d))!=null?_0x561d2b:0x3)?(this[_0x3b5868(0x485)]['show']({'key':'collaboration-session-retry','type':_0x71e3dd[_0x3b5868(0x123)]['Warning'],'content':this[_0x3b5868(0x1ca)]['t'](_0x3b5868(0x350))}),this[_0x3b5868(0x437)]()):this['_messageService']['show']({'key':_0x3b5868(0x3ee),'type':_0x71e3dd['MessageType'][_0x3b5868(0x3ca)],'content':this[_0x3b5868(0x1ca)]['t'](_0x3b5868(0x46e))});}[_0x4c996d(0x2fe)](){const _0xc2f67=_0x4c996d,_0x4f9794=()=>{const _0x1b78b5=_0x59fd;this[_0x1b78b5(0x24b)]||this[_0x1b78b5(0x33d)]();},_0x4b07f4=()=>{const _0x2bc47d=_0x59fd;this[_0x2bc47d(0x24b)]||document[_0x2bc47d(0x366)]==='hidden'||this[_0x2bc47d(0x33d)]();};window[_0xc2f67(0x3fe)](_0xc2f67(0x48c),_0x4f9794),document['addEventListener'](_0xc2f67(0x2db),_0x4b07f4);}['_tryReconnect'](){const _0x5ea72a=_0x4c996d;var _0x82f021;const _0x44c8c5=this[_0x5ea72a(0x1a7)],_0x2a1b01=this[_0x5ea72a(0x27a)][_0x5ea72a(0x2d8)](_0x4dd3a7),_0x13efc4=_0x44c8c5===0x0?0x0:((_0x82f021=_0x2a1b01==null?void 0x0:_0x2a1b01[_0x5ea72a(0x10e)])!=null?_0x82f021:0x4e20)*0x2**_0x44c8c5;this['_retryConnectingTimer']=window[_0x5ea72a(0x215)](()=>{const _0x40e358=_0x5ea72a;clearTimeout(this[_0x40e358(0x364)]),this[_0x40e358(0x364)]=null,this[_0x40e358(0x49b)]();},_0x13efc4),this[_0x5ea72a(0x1a7)]+=0x1;}[_0x4c996d(0x3e6)](_0x1d655c,_0x1b1816){const _0x5eea67=_0x4c996d,{cmd:_0x25bacf}=_0x1b1816;_0x25bacf===_0x19eae4[_0x5eea67(0x2bd)]&&!this[_0x5eea67(0x388)]&&(_0x1d655c['memberID']=_0x1b1816[_0x5eea67(0x223)][_0x5eea67(0x319)],this[_0x5eea67(0x384)][_0x5eea67(0x256)](_0x1d655c),this['_status$'][_0x5eea67(0x256)](_0x44beef['ONLINE']),this[_0x5eea67(0x388)]=!0x0,this[_0x5eea67(0x18b)]=null),_0x25bacf===_0x19eae4[_0x5eea67(0x40f)]&&this[_0x5eea67(0x376)](),this['_rescheduleHeartbeat']();}[_0x4c996d(0x4d7)](){const _0x260e0c=_0x4c996d;var _0x599ea5;this[_0x260e0c(0x301)](),this[_0x260e0c(0x37f)]=window[_0x260e0c(0x215)](()=>this[_0x260e0c(0x4da)](),(_0x599ea5=this[_0x260e0c(0x27a)]['getConfig'](_0x59a3ea))!=null?_0x599ea5:0x7530);}[_0x4c996d(0x4da)](){const _0x4658e4=_0x4c996d;this[_0x4658e4(0x24b)][_0x4658e4(0x38e)]({'cmd':_0x19eae4[_0x4658e4(0x40f)]}),this[_0x4658e4(0x293)]();}[_0x4c996d(0x293)](){const _0x427b05=_0x4c996d;var _0x60c55a;this['_timeoutTimer']=window[_0x427b05(0x215)](()=>this['_onConnectionFailed'](),(_0x60c55a=this[_0x427b05(0x27a)][_0x427b05(0x2d8)](_0x1edc8f))!=null?_0x60c55a:0x4e20);}[_0x4c996d(0x301)](){const _0x113ea2=_0x4c996d;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x113ea2(0x37f)]),this[_0x113ea2(0x37f)]=null);}[_0x4c996d(0x376)](){const _0x34413a=_0x4c996d;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x34413a(0x3c2)]),this[_0x34413a(0x3c2)]=null);}},_0x326761['CollaborationSessionService']=_0x22f2de([_0x27db79(0x0,_0x229428['Inject'](_0x229428['Injector'])),_0x27db79(0x1,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)])),_0x27db79(0x2,_0x5d918d[_0x4c996d(0x19e)]),_0x27db79(0x3,_0x229428[_0x4c996d(0x363)]),_0x27db79(0x4,_0x229428[_0x4c996d(0x274)]),_0x27db79(0x5,_0x52a4b9)],_0x326761[_0x4c996d(0x368)]);var _0x2310d2=Object[_0x4c996d(0x287)],_0x3bc0d7=Object[_0x4c996d(0x16a)],_0x4158ba=(_0x104249,_0xa41123,_0x208a4b,_0x30a958)=>{for(var _0x34dffc=_0x30a958>0x1?void 0x0:_0x30a958?_0x3bc0d7(_0xa41123,_0x208a4b):_0xa41123,_0x31ea47=_0x104249['length']-0x1,_0x4e20bb;_0x31ea47>=0x0;_0x31ea47--)(_0x4e20bb=_0x104249[_0x31ea47])&&(_0x34dffc=(_0x30a958?_0x4e20bb(_0xa41123,_0x208a4b,_0x34dffc):_0x4e20bb(_0x34dffc))||_0x34dffc);return _0x30a958&&_0x34dffc&&_0x2310d2(_0xa41123,_0x208a4b,_0x34dffc),_0x34dffc;},_0x2ad8f5=(_0x134f90,_0x32f332)=>(_0x9d6b4,_0xa5306c)=>_0x32f332(_0x9d6b4,_0xa5306c,_0x134f90);let _0x2bdd5b=class{constructor(_0x2e0c0d,_0xa6cef6,_0x456da6){const _0x1bfeaa=_0x4c996d;this['_injector']=_0x2e0c0d,this[_0x1bfeaa(0x49e)]=_0xa6cef6,this[_0x1bfeaa(0x1bd)]=_0x456da6;}['transformIMECache'](_0x426c9b){const _0x1a1718=_0x4c996d;this[_0x1a1718(0x1ef)](_0x426c9b),this[_0x1a1718(0x38a)](_0x426c9b);}[_0x4c996d(0x499)](_0x39883d){const _0x27ebdd=_0x4c996d,{unitID:_0x5151e5}=_0x39883d,_0x1521c1=this[_0x27ebdd(0x1bd)]['getRenderById'](_0x5151e5)[_0x27ebdd(0x248)](_0x585819[_0x27ebdd(0x2f3)]),{redoCache:_0x43f887}=_0x1521c1[_0x27ebdd(0x41d)]();if(_0x43f887['length']===0x0)return _0x39883d;let _0x5b96e6=_0x229428[_0x27ebdd(0x179)]['deepClone'](_0x39883d['mutations'][0x0]);for(let _0x550921=0x0;_0x550921<_0x43f887[_0x27ebdd(0x260)];_0x550921++){const _0x234253={'id':_0x27ebdd(0x47a),'params':{..._0x43f887[_0x550921]}},_0x3ee4b8=this[_0x27ebdd(0x49e)][_0x27ebdd(0x49d)](_0x5b96e6,_0x234253,!0x1);if(_0x16a1a7['isTransformMutationFailure'](_0x3ee4b8))throw _0x3ee4b8['error'];_0x5b96e6=_0x3ee4b8['m1Prime'];}return{..._0x229428[_0x27ebdd(0x179)][_0x27ebdd(0x132)](_0x39883d),'mutations':[_0x5b96e6]};}[_0x4c996d(0x1ef)](_0x10792b){const _0x1159a8=_0x4c996d,{unitID:_0x1df0e4}=_0x10792b,_0x39d3a8=this['_renderManagerService']['getRenderById'](_0x1df0e4)[_0x1159a8(0x248)](_0x585819[_0x1159a8(0x2f3)]),{undoCache:_0x1aaf17,redoCache:_0x25d644}=_0x39d3a8['getUndoRedoMutationParamsCache']();if(_0x1aaf17[_0x1159a8(0x260)]===0x0||_0x25d644[_0x1159a8(0x260)]===0x0)return;const _0x13cd66=[],_0x5810aa=[];let _0x33a4e5=_0x229428[_0x1159a8(0x179)][_0x1159a8(0x132)](_0x10792b[_0x1159a8(0x431)][0x0]),_0x4f7079=_0x229428['Tools'][_0x1159a8(0x132)](_0x10792b['mutations'][0x0]);for(let _0x1e64a2=_0x1aaf17[_0x1159a8(0x260)]-0x1;_0x1e64a2>=0x0;_0x1e64a2--){const _0x204ab2={'id':_0x1159a8(0x47a),'params':{..._0x1aaf17[_0x1e64a2]}},_0x439896={'id':_0x1159a8(0x47a),'params':{..._0x25d644[_0x1e64a2]}},_0x224cd8=this[_0x1159a8(0x49e)][_0x1159a8(0x49d)](_0x33a4e5,_0x204ab2,!0x1),_0x14a21f=this['_transformService']['transformMutation'](_0x4f7079,_0x439896,!0x1);if(_0x16a1a7[_0x1159a8(0x3d0)](_0x224cd8))throw _0x224cd8[_0x1159a8(0x28e)];if(_0x16a1a7[_0x1159a8(0x3d0)](_0x14a21f))throw _0x14a21f['error'];_0x13cd66['unshift'](_0x224cd8[_0x1159a8(0x1e0)][_0x1159a8(0x1a3)]),_0x5810aa[_0x1159a8(0x312)](_0x14a21f[_0x1159a8(0x1e0)][_0x1159a8(0x1a3)]),_0x33a4e5=_0x224cd8[_0x1159a8(0x153)],_0x4f7079=_0x14a21f[_0x1159a8(0x153)];}_0x39d3a8[_0x1159a8(0x242)]({'undoCache':_0x13cd66,'redoCache':_0x5810aa});}[_0x4c996d(0x38a)](_0x63cbd0){const _0x59b21e=_0x4c996d,{unitID:_0x4b3390}=_0x63cbd0,_0x4a9b54=this[_0x59b21e(0x1bd)][_0x59b21e(0x108)](_0x4b3390)[_0x59b21e(0x248)](_0x585819[_0x59b21e(0x2f3)]),_0x410723=_0x4a9b54[_0x59b21e(0x2f4)]();if(_0x410723==null)return;const _0x374754=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x63cbd0[_0x59b21e(0x341)],'actions':null,'textRanges':[_0x410723]}}],_0x4ef988=this[_0x59b21e(0x49e)]['transformMutationsWithChangeset'](_0x63cbd0,_0x374754);if(!_0x16a1a7[_0x59b21e(0x391)](_0x4ef988))throw _0x4ef988['error'];const _0x58fae8=_0x4ef988[_0x59b21e(0x1e0)][0x0][_0x59b21e(0x1a3)][_0x59b21e(0x3aa)];Array[_0x59b21e(0x452)](_0x58fae8)&&_0x58fae8[_0x59b21e(0x260)]&&_0x4a9b54[_0x59b21e(0x1f4)](_0x58fae8[0x0]);}};_0x2bdd5b=_0x4158ba([_0x2ad8f5(0x0,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x2ad8f5(0x1,_0x16a1a7[_0x4c996d(0x2f5)]),_0x2ad8f5(0x2,_0x33f8a9[_0x4c996d(0x3d8)])],_0x2bdd5b);var _0x53bf13=Object[_0x4c996d(0x287)],_0x319f53=Object['getOwnPropertyDescriptor'],_0x2ddcb2=(_0x45c5e0,_0x15b0fc,_0x57414f,_0x19a627)=>{for(var _0x5584e7=_0x19a627>0x1?void 0x0:_0x19a627?_0x319f53(_0x15b0fc,_0x57414f):_0x15b0fc,_0x3bc947=_0x45c5e0['length']-0x1,_0x597274;_0x3bc947>=0x0;_0x3bc947--)(_0x597274=_0x45c5e0[_0x3bc947])&&(_0x5584e7=(_0x19a627?_0x597274(_0x15b0fc,_0x57414f,_0x5584e7):_0x597274(_0x5584e7))||_0x5584e7);return _0x19a627&&_0x5584e7&&_0x53bf13(_0x15b0fc,_0x57414f,_0x5584e7),_0x5584e7;},_0x41b0cb=(_0x4b2a3c,_0x48a7ac)=>(_0x22e04b,_0x21d383)=>_0x48a7ac(_0x22e04b,_0x21d383,_0x4b2a3c);_0x326761[_0x4c996d(0x166)]=class extends _0x229428[_0x4c996d(0x2a6)]{constructor(_0xd2d6f5,_0x49f7a0,_0x2fd115,_0x45e4cc,_0x290d15){const _0x51fc94=_0x4c996d;super(),_0xb4d35(this,_0x51fc94(0x3c6),new Map()),_0xb4d35(this,'_saveTaskMap',new Map()),_0xb4d35(this,_0x51fc94(0x187),!0x1),(this['_configService']=_0xd2d6f5,this['_localStorageService']=_0x49f7a0,this['_beforeCloseService']=_0x2fd115,this['_localeService']=_0x45e4cc,this[_0x51fc94(0x30a)]=_0x290d15,this[_0x51fc94(0x128)]());}[_0x4c996d(0x3af)](){const _0x14e941=_0x4c996d;this[_0x14e941(0x187)]=!0x0;}[_0x4c996d(0x2a0)](){const _0x4515b9=_0x4c996d;this[_0x4515b9(0x187)]=!0x1;}[_0x4c996d(0x20a)](){const _0x894958=_0x4c996d;this[_0x894958(0x18e)]()['then'](()=>super[_0x894958(0x20a)]());}async[_0x4c996d(0x21b)](_0x137e41){const _0x2c9ff3=_0x4c996d;return this[_0x2c9ff3(0x187)]?null:this['_localStorageService'][_0x2c9ff3(0x476)](_0x4097c4(_0x137e41));}async['saveOfflineData'](_0x39e180,_0x47fef6){const _0xd8574=_0x4c996d;return!!this[_0xd8574(0x2e9)][_0xd8574(0x36c)](_0x39e180,_0x47fef6);}[_0x4c996d(0xd0)](_0x3b2a08,_0x107352,_0x156d2e,_0x1ff7e8){const _0x39a2f3=_0x4c996d,_0x582bb1=this[_0x39a2f3(0x30a)][_0x39a2f3(0x33b)](_0x3b2a08);this['_cachedData'][_0x39a2f3(0x22e)](_0x3b2a08,{'unitID':_0x3b2a08,'type':_0x107352,'awaitingChangeset':_0x156d2e,'mutations':_0x1ff7e8,'rev':_0x582bb1}),this[_0x39a2f3(0x371)][_0x39a2f3(0x1df)](_0x3b2a08)||this[_0x39a2f3(0x356)](_0x3b2a08);}[_0x4c996d(0x356)](_0x391c21){const _0x1ad2bb=_0x4c996d,_0x5ac7a2=this[_0x1ad2bb(0x266)]();_0x5ac7a2===0x0?this[_0x1ad2bb(0x2a4)](_0x391c21):this['_saveTaskMap'][_0x1ad2bb(0x22e)](_0x391c21,setTimeout(()=>this[_0x1ad2bb(0x2a4)](_0x391c21),_0x5ac7a2));}[_0x4c996d(0x266)](){const _0x385330=_0x4c996d;var _0x49df9b;return(_0x49df9b=this[_0x385330(0x27a)][_0x385330(0x2d8)](_0x385d5f))!=null?_0x49df9b:0x3e8;}['_saveCache'](_0x17a1d3){const _0x18b542=_0x4c996d,_0x339725=this['_saveTaskMap']['get'](_0x17a1d3);return _0x339725!==void 0x0&&window['clearTimeout'](_0x339725),this[_0x18b542(0x2e9)][_0x18b542(0x36c)](_0x4097c4(_0x17a1d3),this[_0x18b542(0x3c6)][_0x18b542(0x453)](_0x17a1d3))['then'](()=>this[_0x18b542(0x371)]['delete'](_0x17a1d3));}async['exhaustSavingTask'](){const _0x3bbfe4=_0x4c996d,_0x3b004b=[];this[_0x3bbfe4(0x371)][_0x3bbfe4(0x139)]((_0x2e7da5,_0x955960)=>{const _0x3aeaba=_0x3bbfe4;window['clearTimeout'](_0x2e7da5),_0x3b004b['push'](this['_saveCache'](_0x955960)[_0x3aeaba(0x17c)](()=>{const _0x270b82=_0x3aeaba;this[_0x270b82(0x371)]['delete'](_0x955960);}));}),await Promise[_0x3bbfe4(0x252)](_0x3b004b);}[_0x4c996d(0x128)](){const _0x4b8f8d=_0x4c996d;this[_0x4b8f8d(0x315)](this['_beforeCloseService'][_0x4b8f8d(0x480)](()=>{const _0xc9a734=_0x4b8f8d;if(this[_0xc9a734(0x371)][_0xc9a734(0x423)])return this[_0xc9a734(0x1ca)]['t']('collaboration-client.offline-data-not-saved');}));}},_0x326761[_0x4c996d(0x166)]=_0x2ddcb2([_0x41b0cb(0x0,_0x229428[_0x4c996d(0x274)]),_0x41b0cb(0x1,_0x229428['ILocalStorageService']),_0x41b0cb(0x2,_0x5d918d['IBeforeCloseService']),_0x41b0cb(0x3,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)])),_0x41b0cb(0x4,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)]))],_0x326761[_0x4c996d(0x166)]);function _0x4097c4(_0x109b35){return'unit-cache-'+_0x109b35;}var _0x3f3eef=Object[_0x4c996d(0x287)],_0x355356=Object[_0x4c996d(0x16a)],_0x8bdbc6=(_0x22a216,_0x3914c8,_0xebea07,_0x3bdd46)=>{for(var _0x4b8829=_0x3bdd46>0x1?void 0x0:_0x3bdd46?_0x355356(_0x3914c8,_0xebea07):_0x3914c8,_0x398458=_0x22a216['length']-0x1,_0x1013a0;_0x398458>=0x0;_0x398458--)(_0x1013a0=_0x22a216[_0x398458])&&(_0x4b8829=(_0x3bdd46?_0x1013a0(_0x3914c8,_0xebea07,_0x4b8829):_0x1013a0(_0x4b8829))||_0x4b8829);return _0x3bdd46&&_0x4b8829&&_0x3f3eef(_0x3914c8,_0xebea07,_0x4b8829),_0x4b8829;},_0x321ac2=(_0x588026,_0x494517)=>(_0x99b09d,_0x4fb971)=>_0x494517(_0x99b09d,_0x4fb971,_0x588026);function _0x4a7597(_0x27c823){const _0x561499=_0x4c996d,{unitID:_0x462104,mutations:_0x1e16cb}=_0x27c823;return{'unitId':_0x462104,'subUnitId':_0x1e16cb[0x0]['params'][_0x561499(0x122)]};}let _0x186ee5=class{constructor(_0x23e367,_0x42ebaf,_0x534740){const _0x30a060=_0x4c996d;this['_injector']=_0x23e367,this[_0x30a060(0x49e)]=_0x42ebaf,this['_instanceService']=_0x534740;}[_0x4c996d(0x18c)](_0x42c5c0){const _0xda0a0e=_0x4c996d;var _0x30a639,_0x1aa63d,_0xcd810,_0x534e23;const _0x403efa=this['_injector'][_0xda0a0e(0x453)](_0x4118a6[_0xda0a0e(0x4e2)]),{unitId:_0x45ce3b,subUnitId:_0x33f3b2}=_0x4a7597(_0x42c5c0),_0x4aa593=_0x403efa[_0xda0a0e(0x236)](_0x45ce3b)[_0xda0a0e(0x1e3)](),_0x4be4b8=(_0x1aa63d=(_0x30a639=this[_0xda0a0e(0x42c)][_0xda0a0e(0x169)](_0x45ce3b))==null?void 0x0:_0x30a639['getActiveSheet']())==null?void 0x0:_0x1aa63d['getSheetId']();if(_0x4aa593[_0xda0a0e(0x260)]===0x0||!_0x45ce3b||!_0x33f3b2)return;const _0x333956=[{'id':_0x4118a6[_0xda0a0e(0x1fd)]['id'],'params':{'unitId':_0x45ce3b,'subUnitId':_0x4be4b8,'selections':_0x229428[_0xda0a0e(0x179)]['deepClone'](_0x4aa593)}}],_0x573c39=this[_0xda0a0e(0x49e)][_0xda0a0e(0x4a0)](_0x42c5c0,_0x333956);if(!_0x16a1a7[_0xda0a0e(0x391)](_0x573c39))throw _0x573c39[_0xda0a0e(0x28e)];const _0x50b104=(_0x534e23=(_0xcd810=_0x573c39['m2Prime'][0x0])==null?void 0x0:_0xcd810[_0xda0a0e(0x1a3)])==null?void 0x0:_0x534e23[_0xda0a0e(0x35a)];Array[_0xda0a0e(0x452)](_0x50b104)&&_0x50b104[_0xda0a0e(0x260)]&&this[_0xda0a0e(0x112)][_0xda0a0e(0x453)](_0x229428[_0xda0a0e(0x1e6)])[_0xda0a0e(0x378)](_0x4118a6[_0xda0a0e(0x1fd)]['id'],{'unitId':_0x45ce3b,'subUnitId':_0x4be4b8,'selections':_0x50b104});}};_0x186ee5=_0x8bdbc6([_0x321ac2(0x0,_0x229428['Inject'](_0x229428['Injector'])),_0x321ac2(0x1,_0x16a1a7[_0x4c996d(0x2f5)]),_0x321ac2(0x2,_0x229428[_0x4c996d(0x299)])],_0x186ee5);const _0x1826d2=_0x229428['createIdentifier'](_0x4c996d(0x156));var _0x2eba97=(_0x3a7d37=>(_0x3a7d37[_0x3a7d37['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3a7d37[_0x3a7d37[_0x4c996d(0x427)]=0x1]=_0x4c996d(0x427),_0x3a7d37))(_0x2eba97||{});const _0x3cb347=0x7530,_0x28bceb=_0x4c996d(0x358);class _0x3d8d47 extends _0x229428[_0x4c996d(0x2a6)]{constructor(){const _0x3ac9c8=_0x4c996d;super(),_0xb4d35(this,'_id',_0x229428[_0x3ac9c8(0x179)]['generateRandomId']()),_0xb4d35(this,'_selfUnitIDs',new Set()),_0xb4d35(this,_0x3ac9c8(0x2f1),new Map()),_0xb4d35(this,_0x3ac9c8(0x11f),null),_0xb4d35(this,_0x3ac9c8(0x430),new Map()),_0xb4d35(this,'_unitStatus',new Map()),this[_0x3ac9c8(0x360)]();}[_0x4c996d(0x20a)](){const _0x2ba711=_0x4c996d;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x525db7,_0x169713)=>this[_0x2ba711(0x4aa)](_0x169713)),this[_0x2ba711(0x11f)]&&window[_0x2ba711(0x3e4)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x707d03){const _0xb94ce4=_0x4c996d;return this[_0xb94ce4(0xe6)](_0x707d03)[_0xb94ce4(0x2b6)](_0x4a5f0c[_0xb94ce4(0x343)]());}[_0x4c996d(0x278)](_0x541173){const _0x1000e5=_0x4c996d;this[_0x1000e5(0x1b0)][_0x1000e5(0x423)]===0x0&&this[_0x1000e5(0x3ec)](),this[_0x1000e5(0x1b0)][_0x1000e5(0x4c6)](_0x541173),this[_0x1000e5(0x357)]({'type':0x0,'memberID':this[_0x1000e5(0x45b)],'unitIDs':[_0x541173],'isForwarded':!0x1});}['disposeUnit'](_0x4be7c6){const _0x3efbdd=_0x4c996d;this[_0x3efbdd(0x1b0)][_0x3efbdd(0x4d4)](_0x4be7c6),this[_0x3efbdd(0x1b0)][_0x3efbdd(0x423)]===0x0&&this['_heartbeatTimer']&&window[_0x3efbdd(0x3e4)](this[_0x3efbdd(0x11f)]);}[_0x4c996d(0x360)](){const _0x5cb6e5=_0x4c996d;this[_0x5cb6e5(0x315)](_0x229428['toDisposable'](_0x4a5f0c[_0x5cb6e5(0x458)](window,'storage')[_0x5cb6e5(0x451)](_0x56d57e=>{const _0xb9146c=_0x5cb6e5;if(_0x56d57e['key']!==_0x28bceb||!_0x56d57e['newValue'])return;const _0x2c97d3=JSON[_0xb9146c(0x4de)](_0x56d57e[_0xb9146c(0x1f2)]);this[_0xb9146c(0x4b9)](_0x2c97d3);}))),window['addEventListener'](_0x5cb6e5(0x16e),()=>this[_0x5cb6e5(0x357)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x5cb6e5(0x1b0)])}));}['_handleEvent'](_0x5f3717){const _0xddef6e=_0x4c996d;switch(_0x5f3717[_0xddef6e(0x462)]){case 0x0:this[_0xddef6e(0x190)](_0x5f3717);break;case 0x1:this[_0xddef6e(0x3ad)](_0x5f3717);break;case 0x2:this[_0xddef6e(0x342)](_0x5f3717);break;}}[_0x4c996d(0x190)](_0x158840){const _0x12fc21=_0x4c996d,{unitIDs:_0x10739,memberID:_0x593feb,isForwarded:_0x4c72f9}=_0x158840;_0x10739['forEach'](_0x5b21bf=>{const _0x4bc13f=_0x59fd;if(!_0x4c72f9&&this[_0x4bc13f(0x2f1)][_0x4bc13f(0x1df)](_0x5b21bf)&&this['_ensureSubject'](_0x5b21bf)[_0x4bc13f(0x256)](0x1),!this['_unitOnClients'][_0x4bc13f(0x1df)](_0x5b21bf)||!this['_unitOnClients'][_0x4bc13f(0x453)](_0x5b21bf)['has'](_0x593feb)){const _0x23b6d9=this['_unitOnClients'][_0x4bc13f(0x453)](_0x5b21bf)||new Set();_0x23b6d9['add'](_0x593feb),this[_0x4bc13f(0x2f1)][_0x4bc13f(0x22e)](_0x5b21bf,_0x23b6d9),this[_0x4bc13f(0x443)](_0x593feb);}}),_0x4c72f9||this[_0x12fc21(0x357)]({'type':0x0,'memberID':this[_0x12fc21(0x45b)],'unitIDs':[...this[_0x12fc21(0x1b0)]],'isForwarded':!0x0});}[_0x4c996d(0x443)](_0x157a7b){const _0x4ac523=_0x4c996d;this[_0x4ac523(0x4aa)](_0x157a7b);const _0x221dff=window[_0x4ac523(0x215)](()=>{const _0x27cb87=_0x4ac523;this[_0x27cb87(0x2f1)][_0x27cb87(0x139)](_0x5e9254=>{const _0x314e83=_0x27cb87;_0x5e9254[_0x314e83(0x4d4)](_0x157a7b);});},_0x3cb347*0x2);this['_clearOtherTimers']['set'](_0x157a7b,_0x221dff);}[_0x4c996d(0x4aa)](_0x5d0f72){const _0x394e6a=_0x4c996d;if(this['_clearOtherTimers'][_0x394e6a(0x1df)](_0x5d0f72)){const _0x415fab=this[_0x394e6a(0x430)][_0x394e6a(0x453)](_0x5d0f72);_0x415fab&&window[_0x394e6a(0x165)](_0x415fab),this[_0x394e6a(0x430)][_0x394e6a(0x22e)](_0x5d0f72,null);}}[_0x4c996d(0x3ad)](_0x40efba){const _0x97e06e=_0x4c996d,{memberID:_0x5cb4b7,unitIDs:_0x488dd2}=_0x40efba;_0x488dd2[_0x97e06e(0x139)](_0x31de26=>{const _0x3a2902=_0x97e06e;var _0x52b0df;const _0x4c3f5b=this[_0x3a2902(0x2f1)][_0x3a2902(0x453)](_0x31de26);_0x4c3f5b&&(_0x4c3f5b[_0x3a2902(0x4d4)](_0x5cb4b7),(_0x52b0df=this['_ensureSubject'](_0x31de26))==null||_0x52b0df[_0x3a2902(0x256)](_0x4c3f5b['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x5cb4b7);}['_handleHeartbeatEvent'](_0x27a08a){const _0x5d8c6c=_0x4c996d;this[_0x5d8c6c(0x443)](_0x27a08a[_0x5d8c6c(0x319)]);}[_0x4c996d(0x357)](_0x5572ff){const _0x266a28=_0x4c996d;localStorage[_0x266a28(0x36c)](_0x28bceb,JSON['stringify'](_0x5572ff));}[_0x4c996d(0x3ec)](){const _0x1fe763=_0x4c996d;this['_heartbeatTimer']=window[_0x1fe763(0x338)](()=>{const _0x91f215=_0x1fe763;this[_0x91f215(0x357)]({'type':0x2,'memberID':this['_id']});},_0x3cb347);}[_0x4c996d(0xe6)](_0x2b09a3){const _0x401b0c=_0x4c996d;return this[_0x401b0c(0x141)][_0x401b0c(0x1df)](_0x2b09a3)||this[_0x401b0c(0x141)]['set'](_0x2b09a3,new _0x4a5f0c[(_0x401b0c(0x496))](0x0)),this['_unitStatus']['get'](_0x2b09a3);}}function _0x5a47c4(_0x242efd){const _0x2e9091=_0x4c996d;let _0x5eb4bc='';for(const _0x362b83 of _0x242efd){const {startOffset:_0x41447c,endOffset:_0x3746d9,isActive:_0x50062e}=_0x362b83;_0x5eb4bc[_0x2e9091(0x260)]&&(_0x5eb4bc+=','),_0x5eb4bc+=_0x41447c+':'+_0x3746d9+':'+(_0x50062e?'1':'0');}return _0x5eb4bc;}function _0x2714d3(_0x528049){const _0x1e1cf7=_0x4c996d,_0x2c5ea6=_0x528049[_0x1e1cf7(0x318)](','),_0x52c34d=[];for(const _0x432c76 of _0x2c5ea6){const [_0x8c6ccd,_0x479dae,_0x1154fa]=_0x432c76[_0x1e1cf7(0x318)](':');_0x52c34d['push']({'startOffset':Number(_0x8c6ccd),'endOffset':Number(_0x479dae),'collapsed':_0x8c6ccd===_0x479dae,'isActive':_0x1154fa==='1'});}return _0x52c34d[_0x1e1cf7(0x173)](_0x18dbaa=>_0x18dbaa[_0x1e1cf7(0x36a)])||(_0x52c34d[0x0]['isActive']=!0x0),_0x52c34d;}class _0x4ef234 extends _0x229428[_0x4c996d(0x119)]{constructor(){const _0x1bfa40=_0x4c996d;super(...arguments),_0xb4d35(this,_0x1bfa40(0x3f2),new _0x4a5f0c['BehaviorSubject'](null)),_0xb4d35(this,_0x1bfa40(0x1f9),this[_0x1bfa40(0x3f2)][_0x1bfa40(0x228)]());}[_0x4c996d(0x4d3)](_0x4387a6){const _0x5d4235=_0x4c996d,{unitID:_0x52ece4,memberID:_0x37c111,textRanges:_0x3d856a}=_0x4387a6,_0x577090=_0x5a47c4(_0x3d856a),_0x359b4a={'unitID':_0x52ece4,'memberID':_0x37c111,'selection':_0x577090};this[_0x5d4235(0x3f2)][_0x5d4235(0x256)](_0x359b4a);}}var _0x545e1b=Object['defineProperty'],_0xd890fd=Object['getOwnPropertyDescriptor'],_0x5de57c=(_0x4cda35,_0x2cb1aa,_0x5164cc,_0x19aef8)=>{const _0x245166=_0x4c996d;for(var _0xc93d71=_0x19aef8>0x1?void 0x0:_0x19aef8?_0xd890fd(_0x2cb1aa,_0x5164cc):_0x2cb1aa,_0x40da99=_0x4cda35[_0x245166(0x260)]-0x1,_0x2801d2;_0x40da99>=0x0;_0x40da99--)(_0x2801d2=_0x4cda35[_0x40da99])&&(_0xc93d71=(_0x19aef8?_0x2801d2(_0x2cb1aa,_0x5164cc,_0xc93d71):_0x2801d2(_0xc93d71))||_0xc93d71);return _0x19aef8&&_0xc93d71&&_0x545e1b(_0x2cb1aa,_0x5164cc,_0xc93d71),_0xc93d71;},_0x2968a2=(_0x1b4b29,_0x54f356)=>(_0x1b38ed,_0x15631c)=>_0x54f356(_0x1b38ed,_0x15631c,_0x1b4b29);let _0x483ac7=class{constructor(_0xd6ac8a,_0x4ebffc){this['_injector']=_0xd6ac8a,this['_transformService']=_0x4ebffc;}[_0x4c996d(0x18c)](_0x2f15c4){const _0x447995=_0x4c996d;var _0x136949;const _0x110f41=this[_0x447995(0x112)]['get'](_0xf2d66e['DocSelectionManagerService']),_0x817706=(_0x136949=_0x110f41['getDocRanges']())!=null?_0x136949:[];if(_0x817706[_0x447995(0x260)]===0x0)return;const _0x1ec56b=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f15c4[_0x447995(0x341)],'actions':null,'textRanges':_0x817706}}],_0x2c7b9a=this['_transformService'][_0x447995(0x4a0)](_0x2f15c4,_0x1ec56b);if(!_0x16a1a7[_0x447995(0x391)](_0x2c7b9a))throw _0x2c7b9a['error'];const _0x2f644e=_0x2c7b9a[_0x447995(0x1e0)][0x0][_0x447995(0x1a3)][_0x447995(0x3aa)];Array[_0x447995(0x452)](_0x2f644e)&&_0x2f644e[_0x447995(0x260)]&&_0x110f41[_0x447995(0x261)](_0x2f644e,!0x1);}};_0x483ac7=_0x5de57c([_0x2968a2(0x0,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x2968a2(0x1,_0x16a1a7[_0x4c996d(0x2f5)])],_0x483ac7);const _0x5afb8a=new Set([_0x4118a6[_0x4c996d(0x314)]['id']]);function _0x5e8224(_0x1915a2,_0x64b621,_0x3fabea,_0xf562cc,_0x5d17a8){const _0x1e628d=_0x4c996d;var _0x57f382,_0x1a7865,_0x4340e8,_0x122a60;const _0x4cca6c=[];for(const _0x18d0b0 of _0x1915a2)if(_0x5afb8a['has'](_0x18d0b0['id'])){if(_0x4cca6c[_0x1e628d(0x260)]>0x0)break;_0x4cca6c['push'](_0x18d0b0);break;}else _0x4cca6c['push'](_0x18d0b0);const _0x875d78=(_0x1a7865=(_0x57f382=_0x5d17a8['getCurrentUser']())==null?void 0x0:_0x57f382[_0x1e628d(0x3dc)])!=null?_0x1a7865:'unknown',_0x2a45c9=(_0x122a60=(_0x4340e8=_0x5d17a8[_0x1e628d(0x11c)]())==null?void 0x0:_0x4340e8[_0x1e628d(0x319)])!=null?_0x122a60:_0x1e628d(0x2cd);return{'changeset':{'unitID':_0x64b621,'type':_0x16a1a7['mapDocumentTypeToUniverType'](_0x3fabea[_0x1e628d(0x19c)](_0x64b621)),'baseRev':_0xf562cc[_0x1e628d(0x33b)](_0x64b621),'revision':0x0,'userID':_0x875d78,'memberID':_0x2a45c9,'mutations':_0x4cca6c},'pendingMutations':_0x1915a2['slice'](_0x4cca6c[_0x1e628d(0x260)])};}function _0x283c9b(_0x29244e,_0x4dc162,_0x2fea95,_0x1c4683,_0x32df49){const _0x361de4=_0x4c996d;var _0x426600,_0xe9e163,_0x17fb2f,_0x3ad150;const _0x930702=[_0x29244e[_0x361de4(0x459)]((_0x4d184c,_0x53720b)=>{const _0x1a4d47=_0x361de4;var _0x448b7d;const {id:_0x4832f7}=_0x4d184c,{id:_0xf7a697,type:_0x10af2d}=_0x53720b,_0x1ae0f7=(_0x448b7d=_0x4d184c[_0x1a4d47(0x1a3)])!=null?_0x448b7d:{'actions':null},_0x4a9461=_0x53720b[_0x1a4d47(0x1a3)];if(_0x4832f7&&_0x4832f7!==_0xf7a697)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x4832f7+'\x20-\x20'+_0xf7a697+'.');return{..._0x4d184c,'id':_0xf7a697,'type':_0x10af2d,'params':{'unitId':_0x4a9461['unitId'],'textRanges':_0x4a9461['textRanges'],'actions':_0x229428[_0x1a4d47(0x2cf)]['compose'](_0x1ae0f7['actions'],_0x4a9461[_0x1a4d47(0x294)])}};},{})],_0x5d979c=(_0xe9e163=(_0x426600=_0x32df49['getCurrentUser']())==null?void 0x0:_0x426600[_0x361de4(0x3dc)])!=null?_0xe9e163:_0x361de4(0x2cd),_0x267e4e=(_0x3ad150=(_0x17fb2f=_0x32df49['getCurrentUser']())==null?void 0x0:_0x17fb2f[_0x361de4(0x319)])!=null?_0x3ad150:'unknown';return{'changeset':{'unitID':_0x4dc162,'type':_0x16a1a7[_0x361de4(0x1da)](_0x2fea95['getUnitType'](_0x4dc162)),'baseRev':_0x1c4683[_0x361de4(0x33b)](_0x4dc162),'revision':0x0,'userID':_0x5d979c,'memberID':_0x267e4e,'mutations':_0x930702},'pendingMutations':[]};}const _0x49da6d={'id':_0x4118a6['EmptyMutation']['id'],'type':_0x229428[_0x4c996d(0x255)][_0x4c996d(0x308)],'params':{}};var _0x33e0cf=Object[_0x4c996d(0x287)],_0x28ac16=Object[_0x4c996d(0x16a)],_0x453fc0=(_0x305d82,_0x58f206,_0xec4d51,_0x1809dd)=>{const _0x3e0f10=_0x4c996d;for(var _0x50d642=_0x1809dd>0x1?void 0x0:_0x1809dd?_0x28ac16(_0x58f206,_0xec4d51):_0x58f206,_0x35e8fa=_0x305d82[_0x3e0f10(0x260)]-0x1,_0x5437d7;_0x35e8fa>=0x0;_0x35e8fa--)(_0x5437d7=_0x305d82[_0x35e8fa])&&(_0x50d642=(_0x1809dd?_0x5437d7(_0x58f206,_0xec4d51,_0x50d642):_0x5437d7(_0x50d642))||_0x50d642);return _0x1809dd&&_0x50d642&&_0x33e0cf(_0x58f206,_0xec4d51,_0x50d642),_0x50d642;},_0x328c3d=(_0x5f4c55,_0x19466c)=>(_0x1cc7c4,_0x269bb6)=>_0x19466c(_0x1cc7c4,_0x269bb6,_0x5f4c55),_0x4b8cf1=(_0xd0abff=>(_0xd0abff[_0x4c996d(0x2c1)]='not_collab',_0xd0abff['SYNCED']=_0x4c996d(0x231),_0xd0abff[_0x4c996d(0x25a)]=_0x4c996d(0x1e7),_0xd0abff[_0x4c996d(0x325)]='awaiting',_0xd0abff[_0x4c996d(0x225)]=_0x4c996d(0x2ad),_0xd0abff['FETCH_MISS']=_0x4c996d(0x220),_0xd0abff['CONFLICT']=_0x4c996d(0x2ce),_0xd0abff['OFFLINE']=_0x4c996d(0x13a),_0xd0abff))(_0x4b8cf1||{});class _0x1715f6{constructor(_0x104348,_0x3a6240,_0x40b279,_0x16c722,_0x4ebba9,_0x9bde66,_0x372707,_0x2ec04e,_0xa20c14){const _0x123ced=_0x4c996d;_0xb4d35(this,_0x123ced(0x1c5),null),_0xb4d35(this,_0x123ced(0x105),[]),(this[_0x123ced(0x341)]=_0x104348,this[_0x123ced(0x462)]=_0x3a6240,this[_0x123ced(0x469)]=_0x4ebba9,this[_0x123ced(0x369)]=_0x9bde66,this[_0x123ced(0x222)]=_0x372707,this[_0x123ced(0x30a)]=_0x2ec04e,this[_0x123ced(0x18f)]=_0xa20c14,this[_0x123ced(0x1c5)]=_0x40b279,this['_pendingMutations']=_0x16c722);}[_0x4c996d(0x329)](_0x78f89d){const _0x38bcb1=_0x4c996d,_0x2bfc22=this['_revisionService'][_0x38bcb1(0x33b)](this[_0x38bcb1(0x341)]);return _0x78f89d[_0x38bcb1(0x208)]>_0x2bfc22+0x1?(this[_0x38bcb1(0x469)][_0x38bcb1(0x26b)]({'from':_0x2bfc22,'to':_0x78f89d[_0x38bcb1(0x208)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x281504){const _0x5db9f2=_0x4c996d;this[_0x5db9f2(0x222)][_0x5db9f2(0x272)](this[_0x5db9f2(0x341)],_0x281504);}[_0x4c996d(0x15a)](_0x2afbe2){const _0x18d4be=_0x4c996d;var _0x279913,_0x15c6c1;(_0x15c6c1=(_0x279913=this['_handler'])[_0x18d4be(0x385)])==null||_0x15c6c1[_0x18d4be(0x411)](_0x279913,_0x2afbe2);}['_transformIMECache'](_0x190af){const _0x4bf53a=_0x4c996d;var _0x336e6f,_0x3cfcb0;return(_0x3cfcb0=(_0x336e6f=this[_0x4bf53a(0x469)])[_0x4bf53a(0x383)])==null?void 0x0:_0x3cfcb0[_0x4bf53a(0x411)](_0x336e6f,_0x190af);}[_0x4c996d(0x3cc)](_0x28da37){const _0x25f1b0=_0x4c996d;var _0x399ac7,_0x1646c1,_0x3163da;return(_0x3163da=(_0x1646c1=(_0x399ac7=this['_handler'])[_0x25f1b0(0x333)])==null?void 0x0:_0x1646c1[_0x25f1b0(0x411)](_0x399ac7,_0x28da37))!=null?_0x3163da:_0x28da37;}[_0x4c996d(0xd1)](_0x17047e){const _0x2f0d08=_0x4c996d;var _0x888cd5,_0x118b23;if(this['type']===_0x367a98[_0x2f0d08(0x4b2)]){const {unitID:_0x4904ed,mutations:_0x3cc7fe,memberID:_0x18130d}=_0x17047e,_0x2e454b=_0x3cc7fe[0x0][_0x2f0d08(0x1a3)][_0x2f0d08(0x3aa)];Array[_0x2f0d08(0x452)](_0x2e454b)&&_0x2e454b[_0x2f0d08(0x260)]>0x0&&((_0x118b23=(_0x888cd5=this[_0x2f0d08(0x469)])['onSyncEditingCollabCursor'])==null||_0x118b23[_0x2f0d08(0x411)](_0x888cd5,{'unitID':_0x4904ed,'memberID':_0x18130d,'textRanges':_0x2e454b}));}}['_updateLocalCache'](){const _0x36789d=_0x4c996d;this[_0x36789d(0x18f)][_0x36789d(0xd0)](this[_0x36789d(0x341)],this['type'],this[_0x36789d(0x1c5)],this[_0x36789d(0x105)]);}['_getCurrentRevision'](){const _0x41e735=_0x4c996d;return this[_0x41e735(0x30a)]['getCurrentRevOfUnit'](this[_0x41e735(0x341)]);}[_0x4c996d(0x4dc)](){const _0x2bfe89=_0x4c996d;this[_0x2bfe89(0x30a)][_0x2bfe89(0x3f8)](this[_0x2bfe89(0x341)]);}['_executeRemoteChangeset'](_0x17585e){const _0x2184e6=_0x4c996d;var _0x16da85;const _0x4af186=this[_0x2184e6(0x3cc)](_0x17585e),_0x599a42=_0x229428[_0x2184e6(0x4ab)](_0x4af186[_0x2184e6(0x431)],this['_commandService'],{'fromCollab':!0x0});if(!_0x599a42[_0x2184e6(0x37d)])throw _0x599a42[_0x2184e6(0x28e)]instanceof Error?_0x599a42[_0x2184e6(0x28e)]:new Error((_0x16da85=_0x599a42['error'])!=null?_0x16da85:_0x2184e6(0x2fd));this[_0x2184e6(0x2cb)](_0x4af186),this[_0x2184e6(0x263)](_0x17585e),this['_transformSelections'](_0x4af186),this[_0x2184e6(0xd1)](_0x4af186),this['_incrementRevisionNumber']();}}let _0x2a5340=class extends _0x1715f6{constructor(_0x34bf6a,_0x1a897e,_0xafd258,_0x5620eb,_0x1d7a48,_0x418519,_0x54b2c5,_0x580b53,_0x5102a6,_0x595c75){const _0x166322=_0x4c996d;super(_0x34bf6a,_0x1a897e,null,[],_0xafd258,_0x580b53,_0x54b2c5,_0x5620eb,_0x1d7a48),_0xb4d35(this,_0x166322(0x32e),_0x166322(0x231)),(this[_0x166322(0x112)]=_0x418519,this['_logService']=_0x5102a6,this[_0x166322(0x49e)]=_0x595c75);}[_0x4c996d(0x1e8)](_0x1fe412){const _0xaad6e=_0x4c996d,_0x1cd121=this['_injector'][_0xaad6e(0x4c9)](_0x30be2d,this[_0xaad6e(0x341)],this['type'],[_0x1fe412],this['_handler']);return _0x1cd121[_0xaad6e(0x44c)](),_0x1cd121[_0xaad6e(0x324)](),_0x1cd121;}[_0x4c996d(0x4ce)](_0x51a807){const _0x142197=_0x4c996d;if(this[_0x142197(0x329)](_0x51a807))return this['_injector'][_0x142197(0x4c9)](_0x434c0b,this[_0x142197(0x341)],this['type'],null,[],null,[_0x51a807],this[_0x142197(0x469)]);try{const _0x5dbe0d=this['_transformService'][_0x142197(0x4a0)](_0x51a807,[_0x49da6d]);if(_0x16a1a7['isTransformMutationsWithChangesetSuccess'](_0x5dbe0d)){const {c1Prime:_0x516f05}=_0x5dbe0d;return this[_0x142197(0x486)](_0x516f05),this;}throw _0x5dbe0d['error'];}catch(_0x48b2bf){return this[_0x142197(0x1e2)][_0x142197(0x28e)](_0x48b2bf),this[_0x142197(0x1f0)](!0x1);}}[_0x4c996d(0x1f0)](_0x6a7a5b){const _0x3e183f=_0x4c996d;return this[_0x3e183f(0x112)][_0x3e183f(0x4c9)](_0x2bcaa3,this[_0x3e183f(0x341)],this[_0x3e183f(0x462)],null,[],this[_0x3e183f(0x469)],_0x6a7a5b);}[_0x4c996d(0x212)](){const _0x5c8340=_0x4c996d;throw new Error(_0x5c8340(0x4b5));}['onRemoteRej'](){const _0x3ad550=_0x4c996d;throw new Error(_0x3ad550(0x3eb));}['toggleOffline'](){const _0x881b5c=_0x4c996d;return this[_0x881b5c(0x112)]['createInstance'](_0x1db007,this[_0x881b5c(0x341)],this[_0x881b5c(0x462)],null,[],this[_0x881b5c(0x469)]);}[_0x4c996d(0x106)](){return this;}[_0x4c996d(0x418)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4c996d(0x1d4)](){const _0x5d485a=_0x4c996d,_0x2a1fa0=this[_0x5d485a(0x30a)]['getCurrentRevOfUnit'](this[_0x5d485a(0x341)]);return this[_0x5d485a(0x469)][_0x5d485a(0x26b)]({'from':_0x2a1fa0,'to':0x0}),this[_0x5d485a(0x112)]['createInstance'](_0x434c0b,this['unitID'],this[_0x5d485a(0x462)],null,[],null,[],this['_handler']);}};_0x2a5340=_0x453fc0([_0x328c3d(0x3,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0x4,_0x229428['Inject'](_0x326761['LocalCacheService'])),_0x328c3d(0x5,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x328c3d(0x6,_0x229428['IUndoRedoService']),_0x328c3d(0x7,_0x229428['ICommandService']),_0x328c3d(0x8,_0x229428['ILogService']),_0x328c3d(0x9,_0x16a1a7[_0x4c996d(0x2f5)])],_0x2a5340);let _0x30be2d=class extends _0x1715f6{constructor(_0x11ba14,_0x13c1e7,_0x1566a5,_0x4bd5d2,_0x18f7be,_0x5146b0,_0x4be3fa,_0x537897,_0x5f1675,_0x3cc68a,_0x255af7,_0x5ad489,_0x182e6e,_0x45f663){const _0x3495fd=_0x4c996d;super(_0x11ba14,_0x13c1e7,null,_0x1566a5,_0x4bd5d2,_0x3cc68a,_0x45f663,_0x5146b0,_0x4be3fa),_0xb4d35(this,_0x3495fd(0x32e),'pending'),_0xb4d35(this,_0x3495fd(0x467),null),_0xb4d35(this,_0x3495fd(0x377),null),(this[_0x3495fd(0x112)]=_0x18f7be,this[_0x3495fd(0x29f)]=_0x537897,this[_0x3495fd(0x1e2)]=_0x5f1675,this[_0x3495fd(0x27a)]=_0x255af7,this[_0x3495fd(0x49e)]=_0x5ad489,this[_0x3495fd(0x456)]=_0x182e6e);}['appendMutation'](_0xc5ff2a){return this['_pendingMutations']['push'](_0xc5ff2a),this['_updateLocalCache'](),this;}[_0x4c996d(0x4ce)](_0x2e8d34){const _0x2a6baa=_0x4c996d;if(this['_checkMissing'](_0x2e8d34))return this[_0x2a6baa(0x4a8)](),this[_0x2a6baa(0x112)]['createInstance'](_0x434c0b,this['unitID'],this[_0x2a6baa(0x462)],null,this[_0x2a6baa(0x105)],null,[_0x2e8d34],this[_0x2a6baa(0x469)]);try{const _0x51962c=this['_transformService']['transformMutationsWithChangeset'](_0x2e8d34,this[_0x2a6baa(0x105)]);if(_0x16a1a7['isTransformMutationsWithChangesetSuccess'](_0x51962c)){const {c1Prime:_0xcfbe57,m2Prime:_0x240d7d}=_0x51962c;this['_executeRemoteChangeset'](_0xcfbe57);const _0x814153=this[_0x2a6baa(0x112)][_0x2a6baa(0x4c9)](_0x30be2d,this[_0x2a6baa(0x341)],this[_0x2a6baa(0x462)],_0x240d7d,this[_0x2a6baa(0x469)]);return this[_0x2a6baa(0x4a8)](),_0x814153['_schedule'](this['_scheduleTimestamp']?Math[_0x2a6baa(0x11e)](0x0,new Date()[_0x2a6baa(0x209)]()-this['_scheduleTimestamp']):this[_0x2a6baa(0x31d)]()),_0x814153;}throw _0x51962c['error'];}catch(_0x297d11){return this[_0x2a6baa(0x1e2)][_0x2a6baa(0x28e)](_0x297d11),this['_onConflict'](!0x1);}}[_0x4c996d(0x212)](){const _0x1cf676=_0x4c996d;throw new Error(_0x1cf676(0x118));}[_0x4c996d(0x2ec)](){const _0x107a6d=_0x4c996d;throw new Error(_0x107a6d(0x468));}['toggleOffline'](){const _0x5018c0=_0x4c996d;return this[_0x5018c0(0x4a8)](),this[_0x5018c0(0x112)][_0x5018c0(0x4c9)](_0x1db007,this[_0x5018c0(0x341)],this[_0x5018c0(0x462)],null,this['_pendingMutations'],this['_handler']);}[_0x4c996d(0x106)](){return this;}[_0x4c996d(0x44c)](_0x49b437){const _0x39a401=_0x4c996d,_0x1cb71a=_0x49b437!=null?_0x49b437:this[_0x39a401(0x31d)]();this['_scheduleTimestamp']=new Date()[_0x39a401(0x209)](),this['_sendingTimer']=window[_0x39a401(0x215)](()=>{const _0x5ed7e0=_0x39a401;this[_0x5ed7e0(0x4a8)]();let _0x1b5c94=null;switch(this[_0x5ed7e0(0x462)]){case _0x367a98[_0x5ed7e0(0x11a)]:{_0x1b5c94=_0x5e8224(this['_pendingMutations'],this['unitID'],this[_0x5ed7e0(0x456)],this[_0x5ed7e0(0x30a)],this['_memberService']);break;}case _0x367a98[_0x5ed7e0(0x4b2)]:{this[_0x5ed7e0(0x105)]['every'](_0xc9a24=>_0xc9a24['id']===_0xf2d66e[_0x5ed7e0(0x1f3)]['id'])?_0x1b5c94=_0x283c9b(this[_0x5ed7e0(0x105)],this[_0x5ed7e0(0x341)],this['_univerInstanceService'],this[_0x5ed7e0(0x30a)],this[_0x5ed7e0(0x29f)]):_0x1b5c94=_0x5e8224(this[_0x5ed7e0(0x105)],this['unitID'],this[_0x5ed7e0(0x456)],this[_0x5ed7e0(0x30a)],this[_0x5ed7e0(0x29f)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x5ed7e0(0x20c));}const {changeset:_0x48a6c7,pendingMutations:_0x17a0c9}=_0x1b5c94;this[_0x5ed7e0(0x469)]['onSendChangeset'](_0x48a6c7);const _0x4c9ac3=_0x17a0c9['length']?this[_0x5ed7e0(0x112)]['createInstance'](_0x4b9ebc,this[_0x5ed7e0(0x341)],this[_0x5ed7e0(0x462)],_0x48a6c7,_0x17a0c9,this[_0x5ed7e0(0x469)]):this[_0x5ed7e0(0x112)]['createInstance'](_0x1826c3,this[_0x5ed7e0(0x341)],this['type'],_0x48a6c7,this['_handler']);_0x4c9ac3[_0x5ed7e0(0x324)](),this[_0x5ed7e0(0x469)]['onStateChange'](this,_0x4c9ac3);},_0x1cb71a);}['_getSendChangesetTimeout'](){const _0x313b8d=_0x4c996d;var _0xfdc9d0;const _0x7e0be3=this[_0x313b8d(0x27a)][_0x313b8d(0x2d8)](_0x4dd3a7);return(_0xfdc9d0=_0x7e0be3==null?void 0x0:_0x7e0be3[_0x313b8d(0x449)])!=null?_0xfdc9d0:0x7d0;}[_0x4c996d(0x418)](){const _0x55cba2=_0x4c996d;throw new Error(_0x55cba2(0x2fc));}[_0x4c996d(0x4a8)](){const _0x4d560c=_0x4c996d;this[_0x4d560c(0x377)]!=null&&(clearTimeout(this[_0x4d560c(0x377)]),this[_0x4d560c(0x377)]=null);}[_0x4c996d(0x1f0)](_0x481583){const _0x53de3e=_0x4c996d;return this[_0x53de3e(0x4a8)](),this['_injector']['createInstance'](_0x2bcaa3,this['unitID'],this[_0x53de3e(0x462)],null,this[_0x53de3e(0x105)],this[_0x53de3e(0x469)],_0x481583);}};_0x30be2d=_0x453fc0([_0x328c3d(0x4,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x328c3d(0x5,_0x229428['Inject'](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0x6,_0x229428['Inject'](_0x326761[_0x4c996d(0x166)])),_0x328c3d(0x7,_0x229428['Inject'](_0x4090c9)),_0x328c3d(0x8,_0x229428[_0x4c996d(0x363)]),_0x328c3d(0x9,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0xa,_0x229428['IConfigService']),_0x328c3d(0xb,_0x16a1a7['ITransformService']),_0x328c3d(0xc,_0x229428['IUniverInstanceService']),_0x328c3d(0xd,_0x229428[_0x4c996d(0x1dc)])],_0x30be2d);let _0x1826c3=class extends _0x1715f6{constructor(_0x28c349,_0x1b0eea,_0x2f5c6d,_0x30b9bf,_0x1bb57e,_0x5df39f,_0x199a63,_0x4cdd23,_0x25b606,_0x1c046f,_0x467fe5){const _0x4db8fa=_0x4c996d;super(_0x28c349,_0x1b0eea,_0x2f5c6d,[],_0x30b9bf,_0x4cdd23,_0x467fe5,_0x5df39f,_0x199a63),_0xb4d35(this,'status',_0x4db8fa(0x3a1)),(this[_0x4db8fa(0x112)]=_0x1bb57e,this['_logService']=_0x25b606,this['_transformService']=_0x1c046f);}['appendMutation'](_0x5d146c){const _0x4ed634=_0x4c996d,_0x40da68=this[_0x4ed634(0x112)]['createInstance'](_0x4b9ebc,this[_0x4ed634(0x341)],this[_0x4ed634(0x462)],this['_awaitingChangeset'],[_0x5d146c],this[_0x4ed634(0x469)]);return _0x40da68['_updateLocalCache'](),_0x40da68;}['onRemoteChangeset'](_0x3e6eef){const _0x2140de=_0x4c996d;if(this[_0x2140de(0x329)](_0x3e6eef))return this[_0x2140de(0x112)][_0x2140de(0x4c9)](_0x434c0b,this[_0x2140de(0x341)],this['type'],this['_awaitingChangeset'],[],null,[_0x3e6eef],this[_0x2140de(0x469)]);try{const _0x20df93=this['_transformService'][_0x2140de(0x2c7)]([_0x3e6eef],[this[_0x2140de(0x1c5)]],!0x1);if(_0x16a1a7['isTransformChangesetsSuccess'](_0x20df93)){const {c1Prime:_0x35c64f,c2Prime:_0x4c5d27}=_0x20df93;this[_0x2140de(0x486)](_0x35c64f[0x0]),_0x4c5d27[0x0][_0x2140de(0x29b)]=this[_0x2140de(0x12a)]();const _0x325cf1=this[_0x2140de(0x112)]['createInstance'](_0x1826c3,this[_0x2140de(0x341)],this[_0x2140de(0x462)],_0x4c5d27[0x0],this[_0x2140de(0x469)]);return _0x325cf1['_updateLocalCache'](),_0x325cf1;}return this[_0x2140de(0x1f0)](!0x1);}catch(_0x37ffd5){return this['_logService'][_0x2140de(0x28e)](_0x37ffd5),this[_0x2140de(0x1f0)](!0x1);}}[_0x4c996d(0x212)](_0x49e9bc){const _0x3545e0=_0x4c996d,_0x1cf2ce=this[_0x3545e0(0x30a)][_0x3545e0(0x33b)](this[_0x3545e0(0x341)]);if(_0x49e9bc[_0x3545e0(0x208)]<_0x1cf2ce-0x1)return this;if(this[_0x3545e0(0x329)](_0x49e9bc))return this[_0x3545e0(0x112)][_0x3545e0(0x4c9)](_0x434c0b,this['unitID'],this[_0x3545e0(0x462)],null,[],this[_0x3545e0(0x1c5)],[],this[_0x3545e0(0x469)]);this['_incrementRevisionNumber']();const _0x4fa82b=this[_0x3545e0(0x112)][_0x3545e0(0x4c9)](_0x2a5340,this[_0x3545e0(0x341)],this[_0x3545e0(0x462)],this[_0x3545e0(0x469)]);return _0x4fa82b['_updateLocalCache'](),_0x4fa82b;}[_0x4c996d(0x2ec)](_0x49a638){const _0x1f2d59=_0x4c996d;return this['_onConflict'](!!(_0x49a638!=null&&_0x49a638[_0x1f2d59(0x40c)]));}[_0x4c996d(0xfc)](){const _0xd74b10=_0x4c996d;return this[_0xd74b10(0x112)][_0xd74b10(0x4c9)](_0x1db007,this[_0xd74b10(0x341)],this[_0xd74b10(0x462)],this[_0xd74b10(0x1c5)],[],this[_0xd74b10(0x469)]);}[_0x4c996d(0x106)](){return this;}[_0x4c996d(0x418)](){const _0x5e27bd=_0x4c996d;this[_0x5e27bd(0x469)][_0x5e27bd(0x349)](this[_0x5e27bd(0x1c5)]);}[_0x4c996d(0x1f0)](_0x32acd4){const _0x5087d8=_0x4c996d;return this[_0x5087d8(0x112)][_0x5087d8(0x4c9)](_0x2bcaa3,this[_0x5087d8(0x341)],this[_0x5087d8(0x462)],this[_0x5087d8(0x1c5)],[],this[_0x5087d8(0x469)],_0x32acd4);}};_0x1826c3=_0x453fc0([_0x328c3d(0x4,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x328c3d(0x5,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0x6,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x166)])),_0x328c3d(0x7,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0x8,_0x229428[_0x4c996d(0x363)]),_0x328c3d(0x9,_0x16a1a7[_0x4c996d(0x2f5)]),_0x328c3d(0xa,_0x229428['IUndoRedoService'])],_0x1826c3);let _0x4b9ebc=class extends _0x1715f6{constructor(_0x3272fe,_0x89b330,_0x43472b,_0x50f3b0,_0x151967,_0x3c4dac,_0x276762,_0x219c0f,_0x16cd47,_0x202f23,_0x5150e9,_0x326048){const _0x26f9da=_0x4c996d;super(_0x3272fe,_0x89b330,_0x43472b,_0x50f3b0,_0x151967,_0x16cd47,_0x326048,_0x276762,_0x219c0f),_0xb4d35(this,'status',_0x26f9da(0x2ad)),(this['_injector']=_0x3c4dac,this[_0x26f9da(0x1e2)]=_0x202f23,this[_0x26f9da(0x49e)]=_0x5150e9);}[_0x4c996d(0x1e8)](_0x2971df){const _0x8c9f69=_0x4c996d;return this[_0x8c9f69(0x105)]['push'](_0x2971df),this;}[_0x4c996d(0x4ce)](_0x1804e7){const _0x5a5f99=_0x4c996d;if(this[_0x5a5f99(0x329)](_0x1804e7))return this['_injector'][_0x5a5f99(0x4c9)](_0x434c0b,this[_0x5a5f99(0x341)],this['type'],this[_0x5a5f99(0x1c5)],this['_pendingMutations'],null,[_0x1804e7],this[_0x5a5f99(0x469)]);try{const _0x2ac28e=this['_transformService'][_0x5a5f99(0x2c7)]([_0x1804e7],[this[_0x5a5f99(0x1c5)]],!0x1);if(_0x16a1a7[_0x5a5f99(0x483)](_0x2ac28e)){const {c1Prime:_0x2a21f4,c2Prime:_0x3c0ea4}=_0x2ac28e,_0x5aec19=this[_0x5a5f99(0x49e)][_0x5a5f99(0x4a0)](_0x2a21f4[0x0],this[_0x5a5f99(0x105)]);if(_0x16a1a7[_0x5a5f99(0x391)](_0x5aec19)){const {c1Prime:_0x26fabc,m2Prime:_0x130a5d}=_0x5aec19;return this[_0x5a5f99(0x486)](_0x26fabc),_0x3c0ea4[0x0][_0x5a5f99(0x29b)]=this[_0x5a5f99(0x12a)](),this['_injector'][_0x5a5f99(0x4c9)](_0x4b9ebc,this['unitID'],this[_0x5a5f99(0x462)],_0x3c0ea4[0x0],_0x130a5d,this['_handler']);}throw _0x5aec19['error'];}throw _0x2ac28e[_0x5a5f99(0x28e)];}catch(_0xa0e657){return this[_0x5a5f99(0x1e2)][_0x5a5f99(0x28e)](_0xa0e657),this[_0x5a5f99(0x1f0)](!0x1);}}[_0x4c996d(0x212)](_0xb7efb5){const _0x487f4a=_0x4c996d;if(this[_0x487f4a(0x329)](_0xb7efb5))return this[_0x487f4a(0x112)][_0x487f4a(0x4c9)](_0x434c0b,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0x487f4a(0x1c5)],[],this[_0x487f4a(0x469)]);this[_0x487f4a(0x4dc)]();const _0xaeec0e=this[_0x487f4a(0x112)]['createInstance'](_0x30be2d,this[_0x487f4a(0x341)],this['type'],this['_pendingMutations'],this[_0x487f4a(0x469)]);return _0xaeec0e[_0x487f4a(0x44c)](),_0xaeec0e[_0x487f4a(0x324)](),_0xaeec0e;}['onRemoteRej'](_0x1be4e7){const _0x15f489=_0x4c996d;return this['_onConflict'](!!(_0x1be4e7!=null&&_0x1be4e7[_0x15f489(0x40c)]));}[_0x4c996d(0xfc)](){const _0x5ba2cb=_0x4c996d;return this['_injector']['createInstance'](_0x1db007,this['unitID'],this[_0x5ba2cb(0x462)],this[_0x5ba2cb(0x1c5)],this[_0x5ba2cb(0x105)],this['_handler']);}[_0x4c996d(0x106)](){return this;}['resend'](){const _0x96bed0=_0x4c996d;this['_handler']['onSendChangeset'](this[_0x96bed0(0x1c5)]);}['_onConflict'](_0x46e1c1){const _0xd4578c=_0x4c996d;return this[_0xd4578c(0x112)]['createInstance'](_0x2bcaa3,this[_0xd4578c(0x341)],this[_0xd4578c(0x462)],null,this[_0xd4578c(0x105)],this[_0xd4578c(0x469)],_0x46e1c1);}};_0x4b9ebc=_0x453fc0([_0x328c3d(0x5,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x328c3d(0x6,_0x229428['Inject'](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0x7,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x166)])),_0x328c3d(0x8,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0x9,_0x229428['ILogService']),_0x328c3d(0xa,_0x16a1a7[_0x4c996d(0x2f5)]),_0x328c3d(0xb,_0x229428[_0x4c996d(0x1dc)])],_0x4b9ebc);let _0x2bcaa3=class extends _0x1715f6{constructor(_0x21dc02,_0x3b2852,_0x3e4127,_0x533201,_0xab24b8,_0x18e089=!0x1,_0xfd2cfb,_0x2ada2d,_0xaef31c,_0x2434df,_0x3e18f5,_0x348038,_0x4137bc){const _0x2c36c3=_0x4c996d;super(_0x21dc02,_0x3b2852,_0x3e4127,_0x533201,_0xab24b8,_0x2ada2d,_0xaef31c,_0x3e18f5,_0x2434df),_0xb4d35(this,_0x2c36c3(0x32e),_0x2c36c3(0x2ce)),(this[_0x2c36c3(0x136)]=_0x18e089,this[_0x2c36c3(0x300)]=_0xfd2cfb,this[_0x2c36c3(0x1ca)]=_0x348038,this['_notificationService']=_0x4137bc,this[_0x2c36c3(0xe3)](),this['_clearLocalCache'](),this[_0x2c36c3(0x104)]());}[_0x4c996d(0x1e8)](){return this;}[_0x4c996d(0x4ce)](){return this;}['onRemoteAck'](){return this;}[_0x4c996d(0x2ec)](){return this;}[_0x4c996d(0xfc)](){return this;}['toggleOnline'](){return this;}[_0x4c996d(0x418)](){const _0x30e994=_0x4c996d;throw new Error(_0x30e994(0x332));}[_0x4c996d(0x35f)](){const _0x23caa9=_0x4c996d;this['_localCacheService'][_0x23caa9(0xd0)](this[_0x23caa9(0x341)],this[_0x23caa9(0x462)],null,[]);}[_0x4c996d(0xe3)](){const _0x1769be=_0x4c996d;this[_0x1769be(0x136)]?this['_notificationService'][_0x1769be(0x1d9)]({'title':this['_localeService']['t'](_0x1769be(0x32b)),'content':this[_0x1769be(0x1ca)]['t'](_0x1769be(0xd4)),'type':_0x1769be(0x28e),'duration':0x0}):this[_0x1769be(0x229)][_0x1769be(0x1d9)]({'title':this[_0x1769be(0x1ca)]['t']('conflict.title'),'content':this[_0x1769be(0x1ca)]['t'](_0x1769be(0x234)),'type':_0x1769be(0x28e),'duration':0x0});}[_0x4c996d(0x104)](){const _0x2a9c5a=_0x4c996d;this[_0x2a9c5a(0x300)][_0x2a9c5a(0x30b)](new _0x4118a6[(_0x2a9c5a(0x4a7))](this[_0x2a9c5a(0x341)])['id'],!0x1);}};_0x2bcaa3=_0x453fc0([_0x328c3d(0x6,_0x229428[_0x4c996d(0x25c)](_0x229428['IPermissionService'])),_0x328c3d(0x7,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0x8,_0x229428[_0x4c996d(0x1dc)]),_0x328c3d(0x9,_0x229428[_0x4c996d(0x25c)](_0x326761['LocalCacheService'])),_0x328c3d(0xa,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0xb,_0x229428['Inject'](_0x229428[_0x4c996d(0x23a)])),_0x328c3d(0xc,_0x5d918d[_0x4c996d(0x282)])],_0x2bcaa3);let _0x1db007=class extends _0x1715f6{constructor(_0x41f4c2,_0xaaf2e7,_0x58bc47,_0x8d07e0,_0x50582f,_0x3bd2e6,_0x2fc630,_0x1b5cae,_0x42af1e,_0x3f9daa){const _0x111e6c=_0x4c996d;super(_0x41f4c2,_0xaaf2e7,_0x58bc47,_0x8d07e0,_0x50582f,_0x42af1e,_0x3f9daa,_0x2fc630,_0x1b5cae),_0xb4d35(this,'status',_0x111e6c(0x13a)),this['_injector']=_0x3bd2e6;}[_0x4c996d(0x1e8)](_0x404697){return this['_pendingMutations']['push'](_0x404697),this['_updateLocalCache'](),this;}[_0x4c996d(0x4ce)](_0x4b9129){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x4e02fc=_0x4c996d;throw new Error(_0x4e02fc(0xd3));}[_0x4c996d(0x2ec)](){const _0x113a23=_0x4c996d;throw new Error(_0x113a23(0x331));}[_0x4c996d(0xfc)](){return this;}[_0x4c996d(0x106)](){const _0x5ac478=_0x4c996d,{_injector:_0x5da006,_pendingMutations:_0x4f087c,_awaitingChangeset:_0x3192c2,unitID:_0x5d7695,_handler:_0x591632,type:_0x47d2b8}=this,_0x1e7cd3=_0x3554cc(_0x5da006,_0x5d7695,_0x47d2b8,_0x3192c2,_0x4f087c,_0x591632);return _0x1e7cd3 instanceof _0x30be2d?_0x1e7cd3[_0x5ac478(0x44c)]():(_0x1e7cd3 instanceof _0x4b9ebc||_0x1e7cd3 instanceof _0x1826c3)&&_0x1e7cd3['resend'](),_0x1e7cd3;}[_0x4c996d(0x418)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x1db007=_0x453fc0([_0x328c3d(0x5,_0x229428['Inject'](_0x229428['Injector'])),_0x328c3d(0x6,_0x229428[_0x4c996d(0x25c)](_0x16a1a7['RevisionService'])),_0x328c3d(0x7,_0x229428[_0x4c996d(0x25c)](_0x326761['LocalCacheService'])),_0x328c3d(0x8,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0x9,_0x229428[_0x4c996d(0x1dc)])],_0x1db007);let _0x434c0b=class extends _0x1715f6{constructor(_0x3f7767,_0x5ab9fc,_0xcf5bd8,_0x2edafb,_0x3769fb,_0x386965,_0x45279b,_0x2b5c18,_0x3cde69,_0x114f6d,_0x3476e9,_0x118c7b,_0x64fc69,_0x5572a6){const _0x1aa57b=_0x4c996d;super(_0x3f7767,_0x5ab9fc,_0xcf5bd8,_0x2edafb,_0x45279b,_0x118c7b,_0x64fc69,_0x3cde69,_0x114f6d),_0xb4d35(this,'status','fetch_missing'),(this[_0x1aa57b(0x42e)]=_0x3769fb,this[_0x1aa57b(0x365)]=_0x386965,this[_0x1aa57b(0x112)]=_0x2b5c18,this[_0x1aa57b(0x1e2)]=_0x3476e9,this[_0x1aa57b(0x49e)]=_0x5572a6);}['onMissedChangesetFetched'](_0x3e8f93){const _0x2d3b8b=_0x4c996d;try{const _0x799cff=[..._0x3e8f93,...this[_0x2d3b8b(0x365)]],_0x2138c6=[this[_0x2d3b8b(0x1c5)]||this['_acknowledgedAwaitingChangeset']][_0x2d3b8b(0x232)](_0xee889f=>!!_0xee889f);let _0x28cbdd,_0x3bf686;if(_0x2138c6['length']){const _0x313cd6=this[_0x2d3b8b(0x49e)][_0x2d3b8b(0x2c7)](_0x799cff,_0x2138c6,!0x1);if(!_0x16a1a7[_0x2d3b8b(0x483)](_0x313cd6))throw _0x313cd6[_0x2d3b8b(0x28e)];_0x28cbdd=_0x313cd6[_0x2d3b8b(0x386)],_0x3bf686=_0x313cd6[_0x2d3b8b(0x14e)];}else _0x28cbdd=_0x799cff,_0x3bf686=[];let _0x4651a2=this[_0x2d3b8b(0x105)];_0x28cbdd['forEach'](_0x2b1784=>{const _0x3ae434=_0x2d3b8b;let _0x21b6fd;if(_0x4651a2['length']){const _0x361d1a=this[_0x3ae434(0x49e)][_0x3ae434(0x4a0)](_0x2b1784,_0x4651a2);if(!_0x16a1a7[_0x3ae434(0x391)](_0x361d1a))throw _0x361d1a[_0x3ae434(0x28e)];_0x21b6fd=_0x361d1a[_0x3ae434(0x386)],_0x4651a2=_0x361d1a[_0x3ae434(0x1e0)];}else _0x21b6fd=_0x2b1784;this['_executeRemoteChangeset'](_0x21b6fd);}),this[_0x2d3b8b(0x42e)]&&this[_0x2d3b8b(0x4dc)](),this[_0x2d3b8b(0x1c5)]&&_0x3bf686[_0x2d3b8b(0x260)]&&(_0x3bf686[0x0][_0x2d3b8b(0x29b)]=this[_0x2d3b8b(0x12a)]());let _0x4b3d54;if(this['_awaitingChangeset']&&_0x4651a2['length']!==0x0)_0x4b3d54=this['_injector'][_0x2d3b8b(0x4c9)](_0x4b9ebc,this[_0x2d3b8b(0x341)],this[_0x2d3b8b(0x462)],_0x3bf686[0x0],_0x4651a2,this[_0x2d3b8b(0x469)]);else{if(this[_0x2d3b8b(0x1c5)]&&_0x4651a2[_0x2d3b8b(0x260)]===0x0)_0x3bf686[0x0][_0x2d3b8b(0x29b)]=this['_getCurrentRevision'](),_0x4b3d54=this[_0x2d3b8b(0x112)]['createInstance'](_0x1826c3,this[_0x2d3b8b(0x341)],this[_0x2d3b8b(0x462)],_0x3bf686[0x0],this['_handler']);else{if(_0x4651a2['length']!==0x0){const _0x5dbb7f=this[_0x2d3b8b(0x112)][_0x2d3b8b(0x4c9)](_0x30be2d,this[_0x2d3b8b(0x341)],this[_0x2d3b8b(0x462)],_0x4651a2,this[_0x2d3b8b(0x469)]);_0x5dbb7f[_0x2d3b8b(0x44c)](),_0x4b3d54=_0x5dbb7f;}else _0x4b3d54=this[_0x2d3b8b(0x112)]['createInstance'](_0x2a5340,this[_0x2d3b8b(0x341)],this[_0x2d3b8b(0x462)],this['_handler']);}}return _0x4b3d54['_updateLocalCache'](),_0x4b3d54;}catch(_0x2c31d4){return this['_logService']['error'](_0x2d3b8b(0x3a0),_0x2d3b8b(0x233),_0x2c31d4),this[_0x2d3b8b(0x112)][_0x2d3b8b(0x4c9)](_0x2bcaa3,this['unitID'],this['type'],this[_0x2d3b8b(0x1c5)],this[_0x2d3b8b(0x105)],this['_handler'],!0x1);}}[_0x4c996d(0x418)](){const _0x1d68fa=_0x4c996d;throw new Error(_0x1d68fa(0x2d4));}[_0x4c996d(0x1e8)](_0x49a819){const _0x3552e5=_0x4c996d;return this[_0x3552e5(0x105)][_0x3552e5(0x2be)](_0x49a819),this;}[_0x4c996d(0x4ce)](_0x141f71){const _0x4cfbd9=_0x4c996d;return this[_0x4cfbd9(0x365)][_0x4cfbd9(0x2be)](_0x141f71),this;}[_0x4c996d(0x212)](_0x1befde){const _0x4173ee=_0x4c996d;if(this[_0x4173ee(0x1c5)])return this[_0x4173ee(0x42e)]=this[_0x4173ee(0x1c5)],this[_0x4173ee(0x1c5)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4c996d(0x2ec)](_0x484bc8){const _0x485010=_0x4c996d;return this['_onConflict'](!!(_0x484bc8!=null&&_0x484bc8[_0x485010(0x40c)]));}[_0x4c996d(0xfc)](){const _0x3a9f5d=_0x4c996d;return this[_0x3a9f5d(0x112)]['createInstance'](_0x1db007,this['unitID'],this[_0x3a9f5d(0x462)],this[_0x3a9f5d(0x1c5)],this[_0x3a9f5d(0x105)],this[_0x3a9f5d(0x469)]);}[_0x4c996d(0x106)](){return this;}[_0x4c996d(0x1f0)](_0x3b4bb9){const _0x4aff50=_0x4c996d;return this[_0x4aff50(0x112)][_0x4aff50(0x4c9)](_0x2bcaa3,this['unitID'],this[_0x4aff50(0x462)],this[_0x4aff50(0x1c5)],this['_pendingMutations'],this['_handler'],_0x3b4bb9);}};_0x434c0b=_0x453fc0([_0x328c3d(0x7,_0x229428['Inject'](_0x229428['Injector'])),_0x328c3d(0x8,_0x229428['Inject'](_0x16a1a7[_0x4c996d(0x1cc)])),_0x328c3d(0x9,_0x229428[_0x4c996d(0x25c)](_0x326761['LocalCacheService'])),_0x328c3d(0xa,_0x229428[_0x4c996d(0x363)]),_0x328c3d(0xb,_0x229428[_0x4c996d(0x1e6)]),_0x328c3d(0xc,_0x229428['IUndoRedoService']),_0x328c3d(0xd,_0x16a1a7[_0x4c996d(0x2f5)])],_0x434c0b);function _0x3554cc(_0x266995,_0x2e74f9,_0x27e9df,_0x172f5f,_0x391437,_0x5b3f41){const _0x5543f3=_0x4c996d;return _0x172f5f&&_0x391437[_0x5543f3(0x260)]?_0x266995['createInstance'](_0x4b9ebc,_0x2e74f9,_0x27e9df,_0x172f5f,_0x391437,_0x5b3f41):_0x172f5f?_0x266995[_0x5543f3(0x4c9)](_0x1826c3,_0x2e74f9,_0x27e9df,_0x172f5f,_0x5b3f41):_0x391437[_0x5543f3(0x260)]?_0x266995['createInstance'](_0x30be2d,_0x2e74f9,_0x27e9df,_0x391437,_0x5b3f41):_0x266995[_0x5543f3(0x4c9)](_0x2a5340,_0x2e74f9,_0x27e9df,_0x5b3f41);}var _0x409f29=Object[_0x4c996d(0x287)],_0x133297=Object[_0x4c996d(0x16a)],_0x24abb4=(_0x11d714,_0x2549ef,_0x4a316c,_0x46d3d7)=>{const _0x3cf792=_0x4c996d;for(var _0x1c7a7f=_0x46d3d7>0x1?void 0x0:_0x46d3d7?_0x133297(_0x2549ef,_0x4a316c):_0x2549ef,_0x4c4e57=_0x11d714[_0x3cf792(0x260)]-0x1,_0x54d7c3;_0x4c4e57>=0x0;_0x4c4e57--)(_0x54d7c3=_0x11d714[_0x4c4e57])&&(_0x1c7a7f=(_0x46d3d7?_0x54d7c3(_0x2549ef,_0x4a316c,_0x1c7a7f):_0x54d7c3(_0x1c7a7f))||_0x1c7a7f);return _0x46d3d7&&_0x1c7a7f&&_0x409f29(_0x2549ef,_0x4a316c,_0x1c7a7f),_0x1c7a7f;},_0x33a37a=(_0x387e6e,_0x4d6d77)=>(_0x682698,_0xd16f3b)=>_0x4d6d77(_0x682698,_0xd16f3b,_0x387e6e);_0x326761[_0x4c996d(0x336)]=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x93f458,_0x443ef1,_0x39ee36,_0x3de603,_0x1bcbd8,_0x4140e9,_0x3d6d72,_0x59a0f6,_0xe51301,_0x358394,_0x4fb92c,_0x5119cd,_0x46c852){const _0x344d25=_0x4c996d;super(),_0xb4d35(this,_0x344d25(0x4c7),new _0x4a5f0c['BehaviorSubject'](null)),_0xb4d35(this,'state$',this[_0x344d25(0x4c7)][_0x344d25(0x228)]()),_0xb4d35(this,_0x344d25(0x478)),_0xb4d35(this,_0x344d25(0x27d),!0x1),_0xb4d35(this,_0x344d25(0xd7),this[_0x344d25(0x21a)][_0x344d25(0x2b6)](_0x4a5f0c[_0x344d25(0x3fb)](_0x24432e=>_0x24432e?_0x24432e[_0x344d25(0x32e)]:_0x4b8cf1[_0x344d25(0x28b)]),_0x4a5f0c['shareReplay'](0x1))),_0xb4d35(this,'_transitionLocked',!0x1),_0xb4d35(this,_0x344d25(0x45d),[]),(this[_0x344d25(0x341)]=_0x93f458,this[_0x344d25(0x3fd)]=_0x443ef1,this[_0x344d25(0x48b)]=_0x39ee36,this[_0x344d25(0x112)]=_0x3de603,this[_0x344d25(0x18f)]=_0x1bcbd8,this[_0x344d25(0x1d8)]=_0x4140e9,this[_0x344d25(0x1ca)]=_0x3d6d72,this['_revisionService']=_0x59a0f6,this['_logService']=_0xe51301,this[_0x344d25(0x369)]=_0x358394,this[_0x344d25(0x485)]=_0x4fb92c,this[_0x344d25(0x300)]=_0x5119cd,this['_singleActiveUnitService']=_0x46c852);}get[_0x4c996d(0x1ce)](){const _0x5c1688=_0x4c996d;return this[_0x5c1688(0x478)];}async[_0x4c996d(0x412)](){const _0x831040=_0x4c996d;if(this[_0x831040(0x1ce)])throw new Error(_0x831040(0x35c));await this[_0x831040(0x360)]();}[_0x4c996d(0x429)](){const _0x493582=_0x4c996d;return this[_0x493582(0x27d)]=!0x0,_0x229428['toDisposable'](()=>{const _0x41453b=_0x493582;this[_0x41453b(0x27d)]=!0x1,this[_0x41453b(0x375)]();});}[_0x4c996d(0x434)](_0x27ce30){const _0x552da8=_0x4c996d;this[_0x552da8(0x478)]=_0x27ce30,this['_state$'][_0x552da8(0x256)](_0x27ce30);}async['_init'](){const _0x55d848=_0x4c996d;var _0x142b55;this[_0x55d848(0x434)](await this[_0x55d848(0x47c)]()),this['_singleActiveUnitService']&&((_0x142b55=this[_0x55d848(0x2cc)])==null||_0x142b55[_0x55d848(0x278)](this[_0x55d848(0x341)]),this[_0x55d848(0x315)](this[_0x55d848(0x2cc)][_0x55d848(0x1ae)](this['unitID'])['subscribe'](_0x5909ef=>{const _0x36e347=_0x55d848;this[_0x36e347(0x1e2)][_0x36e347(0x2b9)](_0x36e347(0x42d),'editing\x20status\x20changed\x20to',_0x5909ef),_0x5909ef===_0x2eba97[_0x36e347(0x427)]?(this['_messageService']['show']({'content':this[_0x36e347(0x1ca)]['t']('collaboration.single-unit.warning'),'type':_0x71e3dd[_0x36e347(0x123)][_0x36e347(0x13d)]}),this[_0x36e347(0x300)][_0x36e347(0x30b)](new _0x4118a6['WorkbookEditablePermission'](this[_0x36e347(0x341)])['id'],!0x1)):this[_0x36e347(0x300)]['updatePermissionPoint'](new _0x4118a6[(_0x36e347(0x4a7))](this[_0x36e347(0x341)])['id'],!0x0);})));let _0xe8b263=!0x1;return this[_0x55d848(0x315)](this['session'][_0x55d848(0x3d1)]['subscribe'](_0x5f21e0=>{const _0x139152=_0x55d848;_0x5f21e0===_0x44beef['ONLINE']?this[_0x139152(0x400)](_0xe8b263):_0x5f21e0===_0x44beef[_0x139152(0x28b)]&&(_0xe8b263=!0x0,this[_0x139152(0x35b)]());})),this['disposeWithMe'](this['session'][_0x55d848(0x13f)][_0x55d848(0x451)](_0x8b835c=>{const _0x427d20=_0x55d848;try{switch(_0x8b835c[_0x427d20(0x1c0)]){case _0x16a1a7[_0x427d20(0x15d)][_0x427d20(0x355)]:{this[_0x427d20(0x243)](_0x16a1a7['parseProtocolChangeset'](_0x8b835c[_0x427d20(0x223)]));break;}case _0x16a1a7['CollaborationEvent'][_0x427d20(0x39d)]:{this[_0x427d20(0x251)](_0x8b835c[_0x427d20(0x223)]);break;}case _0x16a1a7[_0x427d20(0x15d)][_0x427d20(0x4d0)]:{this['_onRemoteRejected']();break;}case _0x16a1a7['CollaborationEvent'][_0x427d20(0x28f)]:{this[_0x427d20(0x12f)](_0x8b835c['data'][_0x427d20(0x48a)][_0x427d20(0x3fb)](_0x1323fe=>_0x16a1a7[_0x427d20(0xed)](_0x1323fe)));break;}case _0x16a1a7[_0x427d20(0x15d)][_0x427d20(0x149)]:this[_0x427d20(0x206)]({'isPermissionRej':!0x0});}}catch(_0xaab703){throw console[_0x427d20(0x28e)]('Error\x20on\x20receiving\x20event',_0xaab703),_0xaab703;}})),this['_state'];}[_0x4c996d(0x45e)](){const _0x385631=_0x4c996d;this[_0x385631(0x3dd)]=!0x1;}[_0x4c996d(0x47f)](){const _0x153d57=_0x4c996d;if(this['_transitionLocked'])throw new Error(_0x153d57(0x2d3));this[_0x153d57(0x3dd)]=!0x0;}['_onLocalMutation'](_0x2860f9){const _0x170d78=_0x4c996d;this['_lockTransition'](),this[_0x170d78(0x434)](this[_0x170d78(0x478)][_0x170d78(0x1e8)](_0x2860f9)),this[_0x170d78(0x45e)]();}[_0x4c996d(0x243)](_0x42695a){const _0x47cae1=_0x4c996d;if(!(_0x42695a[_0x47cae1(0x208)]<=this[_0x47cae1(0x30a)][_0x47cae1(0x33b)](this[_0x47cae1(0x341)]))){if(this[_0x47cae1(0x27d)]){this[_0x47cae1(0x45d)]['push'](_0x42695a);return;}this[_0x47cae1(0x43b)](_0x42695a);}}[_0x4c996d(0x375)](){const _0x21ceed=_0x4c996d;this['_remoteChangesetQueue'][_0x21ceed(0x139)](_0x325559=>this[_0x21ceed(0x43b)](_0x325559)),this[_0x21ceed(0x45d)]=[];}['_applyRemoteChangeset'](_0x264f1f){const _0x354409=_0x4c996d,_0x50864c=this['_compressMutationService'][_0x354409(0x354)][_0x354409(0x33e)](this[_0x354409(0x1d8)][_0x354409(0x354)][_0x354409(0x117)]()[_0x354409(0x1b3)])(_0x264f1f[_0x354409(0x431)],null)||_0x264f1f['mutations'],_0x3347c9={..._0x264f1f,'mutations':_0x50864c};this[_0x354409(0x47f)](),this[_0x354409(0x434)](this[_0x354409(0x478)][_0x354409(0x4ce)](_0x3347c9)),this[_0x354409(0x45e)]();}[_0x4c996d(0x251)](_0x17d1b3){const _0x3f67ac=_0x4c996d;this[_0x3f67ac(0x47f)](),this[_0x3f67ac(0x434)](this['_state'][_0x3f67ac(0x212)](_0x17d1b3)),this[_0x3f67ac(0x45e)]();}['_onRemoteRejected'](_0x586a30){const _0x731912=_0x4c996d;this[_0x731912(0x47f)](),this[_0x731912(0x434)](this['_state'][_0x731912(0x2ec)](_0x586a30)),this[_0x731912(0x45e)]();}[_0x4c996d(0x12f)](_0x2bfc35){const _0x2332dc=_0x4c996d;if(!(this[_0x2332dc(0x478)]instanceof _0x434c0b))throw new TypeError(_0x2332dc(0x2c3));const _0xffb55a=_0x2bfc35[_0x2332dc(0x3fb)](_0x3df930=>{const _0x58a81b=_0x2332dc,_0x14b89c=this[_0x58a81b(0x1d8)]['interceptor'][_0x58a81b(0x33e)](this[_0x58a81b(0x1d8)][_0x58a81b(0x354)][_0x58a81b(0x117)]()[_0x58a81b(0x1b3)])(_0x3df930[_0x58a81b(0x431)],null)||_0x3df930['mutations'];return{..._0x3df930,'mutations':_0x14b89c};});this[_0x2332dc(0x47f)](),this[_0x2332dc(0x434)](this['_state'][_0x2332dc(0x310)](_0xffb55a)),this['_unlockTransition']();}[_0x4c996d(0x35b)](){const _0x451206=_0x4c996d;this[_0x451206(0x47f)](),this['_updateState'](this[_0x451206(0x478)][_0x451206(0xfc)]()),this[_0x451206(0x45e)]();}[_0x4c996d(0x400)](_0x3b516b=!0x1){const _0x238be6=_0x4c996d;this[_0x238be6(0x47f)](),this[_0x238be6(0x434)](this[_0x238be6(0x478)][_0x238be6(0x106)]()),this[_0x238be6(0x45e)]();const _0x5efa3e=this['_state'];_0x3b516b&&_0x5efa3e instanceof _0x2a5340&&(this[_0x238be6(0x47f)](),this[_0x238be6(0x434)](_0x5efa3e[_0x238be6(0x1d4)]()),this['_unlockTransition']());}async[_0x4c996d(0x47c)](){return new Promise(_0x17d334=>{const _0x254657=_0x59fd;this[_0x254657(0x3fd)][_0x254657(0x3d1)][_0x254657(0x2b6)](_0x4a5f0c['take'](0x1))[_0x254657(0x451)](async _0x3602bf=>{const _0x5aafc7=_0x254657;_0x17d334(await this[_0x5aafc7(0x4b6)](_0x3602bf===_0x44beef['ONLINE']));});});}[_0x4c996d(0x2d2)](){const _0xcd0208=_0x4c996d,_0x937cc6=this[_0xcd0208(0x341)];return{'onStateChange':(_0x39d4f4,_0x469309)=>{const _0x2a1d5b=_0xcd0208;if(_0x39d4f4!==this[_0x2a1d5b(0x478)])throw new Error(_0x2a1d5b(0x444)+_0x39d4f4[_0x2a1d5b(0x32e)]+'\x0aAfter:\x20'+_0x469309['status']+_0x2a1d5b(0x120)+this[_0x2a1d5b(0x478)][_0x2a1d5b(0x32e)]);this[_0x2a1d5b(0x434)](_0x469309);},'onSendChangeset':_0x293dd7=>{const _0x219346=_0xcd0208,_0x3573fd={'eventID':_0x16a1a7[_0x219346(0x15d)][_0x219346(0x37a)],'data':{'unitID':_0x293dd7['unitID'],'unitType':this['_type'],'changeset':_0x293dd7,'memberID':this['session']['getMemberID']()}};this['session']['send'](_0x3573fd,this[_0x219346(0x341)]);},'onMissingChangesets':({from:_0x5c1e56,to:_0x22cd9a})=>{const _0x298bb3=_0xcd0208;this[_0x298bb3(0x1e2)][_0x298bb3(0x2b9)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x5c1e56+'\x20to\x20'+_0x22cd9a);const _0x3e0d1b={'eventID':_0x16a1a7[_0x298bb3(0x15d)][_0x298bb3(0x15c)],'data':{'unitID':_0x937cc6,'unitType':this[_0x298bb3(0x48b)],'from':_0x5c1e56,'to':_0x22cd9a}};this['session'][_0x298bb3(0x38e)](_0x3e0d1b,this[_0x298bb3(0x341)]);}};}async['_createInitialStateImpl'](_0x3c6a90){const _0x4c25e7=_0x4c996d;var _0x34f9d3,_0x4d9e35;const _0x2d5b4c=await this[_0x4c25e7(0x18f)][_0x4c25e7(0x21b)](this[_0x4c25e7(0x341)]),_0x50cbae=(_0x34f9d3=_0x2d5b4c==null?void 0x0:_0x2d5b4c['mutations'])!=null?_0x34f9d3:[],_0x5e24ac=(_0x4d9e35=_0x2d5b4c==null?void 0x0:_0x2d5b4c[_0x4c25e7(0x31b)])!=null?_0x4d9e35:null,_0x2ef33f=this[_0x4c25e7(0x341)];try{this['_replayCachedMutations'](_0x5e24ac,_0x50cbae);}catch(_0x4e1962){this[_0x4c25e7(0x1e2)][_0x4c25e7(0x28e)](_0x4e1962);}const _0x157cf7=this[_0x4c25e7(0x2d2)]();if(_0x3c6a90){const _0x515927=_0x3554cc(this[_0x4c25e7(0x112)],_0x2ef33f,this['_type'],_0x5e24ac,_0x50cbae,_0x157cf7);return _0x515927 instanceof _0x30be2d?_0x515927['_schedule']():(_0x515927 instanceof _0x4b9ebc||_0x515927 instanceof _0x1826c3)&&_0x515927[_0x4c25e7(0x418)](),_0x515927;}return this[_0x4c25e7(0x112)][_0x4c25e7(0x4c9)](_0x1db007,_0x2ef33f,this[_0x4c25e7(0x48b)],_0x5e24ac,_0x50cbae,_0x157cf7);}[_0x4c996d(0x102)](_0x5c2493,_0x1dd2b4){const _0x53c4ea=_0x4c996d;var _0x27e86b,_0x5d6570;const _0x46aace=this[_0x53c4ea(0x1d8)][_0x53c4ea(0x354)][_0x53c4ea(0x33e)](this['_compressMutationService']['interceptor'][_0x53c4ea(0x117)]()[_0x53c4ea(0x1b3)]);(_0x27e86b=_0x46aace((_0x5c2493==null?void 0x0:_0x5c2493['mutations'])||[],null))==null||_0x27e86b[_0x53c4ea(0x139)](_0x582970=>this[_0x53c4ea(0x369)][_0x53c4ea(0x378)](_0x582970['id'],_0x582970[_0x53c4ea(0x1a3)])),(_0x5d6570=_0x46aace(_0x1dd2b4||[],null))==null||_0x5d6570['forEach'](_0x5c960d=>this[_0x53c4ea(0x369)]['executeCommand'](_0x5c960d['id'],_0x5c960d['params']));}},_0x326761[_0x4c996d(0x336)]=_0x24abb4([_0x33a37a(0x3,_0x229428[_0x4c996d(0x25c)](_0x229428['Injector'])),_0x33a37a(0x4,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x166)])),_0x33a37a(0x5,_0x229428[_0x4c996d(0x25c)](_0x16a1a7['CompressMutationService'])),_0x33a37a(0x6,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)])),_0x33a37a(0x7,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)])),_0x33a37a(0x8,_0x229428[_0x4c996d(0x363)]),_0x33a37a(0x9,_0x229428[_0x4c996d(0x1e6)]),_0x33a37a(0xa,_0x5d918d[_0x4c996d(0x19e)]),_0x33a37a(0xb,_0x229428['IPermissionService']),_0x33a37a(0xc,_0x229428[_0x4c996d(0x424)](_0x1826d2))],_0x326761[_0x4c996d(0x336)]),_0x326761[_0x4c996d(0x2d9)]=class extends _0x326761[_0x4c996d(0x336)]{constructor(_0x9a180f,_0x298f42,_0x5bd2d7,_0x40dcc4,_0x1dc963,_0x2a908c,_0x4c7961,_0x477cd3,_0x3f26ca,_0xe7357c,_0x1ca861,_0x221a37,_0x8d29a1,_0x1c291e,_0x48330a,_0x577954,_0x4984a9){const _0x50b8ee=_0x4c996d;super(_0x9a180f,_0x5bd2d7,_0x298f42,_0x40dcc4,_0x1dc963,_0x2a908c,_0x4c7961,_0x477cd3,_0x8d29a1,_0x1c291e,_0x48330a,_0x577954,_0x4984a9),this['unitID']=_0x9a180f,this[_0x50b8ee(0x462)]=_0x298f42,this['_docStateChangeManagerService']=_0x3f26ca,this[_0x50b8ee(0xd6)]=_0xe7357c,this[_0x50b8ee(0x2dd)]=_0x1ca861,this[_0x50b8ee(0x1bb)]=_0x221a37;}['_createHandler'](){const _0x2f07aa=_0x4c996d,_0x44b55a=super['_createHandler']();return _0x44b55a[_0x2f07aa(0x383)]=_0x51f8c5=>this[_0x2f07aa(0xd6)][_0x2f07aa(0x291)](_0x51f8c5),_0x44b55a['onTransformSelections']=_0x15b6b4=>this['_docTransformSelectionsService'][_0x2f07aa(0x18c)](_0x15b6b4),_0x44b55a['onSyncEditingCollabCursor']=_0x505063=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x505063),_0x44b55a['onTransformRemoteChangesetByIMECache']=_0x462d16=>this[_0x2f07aa(0xd6)][_0x2f07aa(0x499)](_0x462d16),_0x44b55a;}async['_init'](){const _0x2018ae=_0x4c996d,_0x20bed0=await super[_0x2018ae(0x360)]();return this[_0x2018ae(0x315)](this['_commandService'][_0x2018ae(0x4ac)]((_0x503b3d,_0x9173ea)=>{const _0x3e4918=_0x2018ae;if(_0x503b3d[_0x3e4918(0x462)]!==_0x229428[_0x3e4918(0x255)]['MUTATION']||_0x9173ea!=null&&_0x9173ea[_0x3e4918(0x1e5)]||_0x9173ea!=null&&_0x9173ea[_0x3e4918(0x3c4)])return;const _0x1184e2=_0x503b3d[_0x3e4918(0x1a3)];if((_0x1184e2==null?void 0x0:_0x1184e2['unitId'])!==this[_0x3e4918(0x341)])return;let _0x4047fb=_0x503b3d;if(_0x4047fb['id']===_0xf2d66e[_0x3e4918(0x1f3)]['id']){const _0x3ab4ba=_0x4047fb[_0x3e4918(0x1a3)];_0x4047fb={'id':_0xf2d66e[_0x3e4918(0x1f3)]['id'],'type':_0x229428[_0x3e4918(0x255)]['MUTATION'],'params':{'unitId':_0x3ab4ba[_0x3e4918(0x3a2)],'actions':_0x3ab4ba[_0x3e4918(0x294)],'textRanges':null}};}const _0x1307ec=this['_compressMutationService'][_0x3e4918(0x354)][_0x3e4918(0x33e)](this[_0x3e4918(0x1d8)][_0x3e4918(0x354)][_0x3e4918(0x117)]()[_0x3e4918(0x145)])([_0x4047fb],null)||[_0x4047fb];this[_0x3e4918(0x176)](_0x1307ec[0x0]);})),_0x20bed0;}},_0x326761['DocCollaborationEntity']=_0x24abb4([_0x33a37a(0x3,_0x229428['Inject'](_0x229428['Injector'])),_0x33a37a(0x4,_0x229428['Inject'](_0x326761[_0x4c996d(0x166)])),_0x33a37a(0x5,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1b9)])),_0x33a37a(0x6,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)])),_0x33a37a(0x7,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x1cc)])),_0x33a37a(0x8,_0x229428['Inject'](_0x585819[_0x4c996d(0x2ab)])),_0x33a37a(0x9,_0x229428[_0x4c996d(0x25c)](_0x2bdd5b)),_0x33a37a(0xa,_0x229428[_0x4c996d(0x25c)](_0x483ac7)),_0x33a37a(0xb,_0x229428[_0x4c996d(0x25c)](_0x4ef234)),_0x33a37a(0xc,_0x229428[_0x4c996d(0x363)]),_0x33a37a(0xd,_0x229428[_0x4c996d(0x1e6)]),_0x33a37a(0xe,_0x5d918d['IMessageService']),_0x33a37a(0xf,_0x229428[_0x4c996d(0x4bb)]),_0x33a37a(0x10,_0x229428[_0x4c996d(0x424)](_0x1826d2))],_0x326761['DocCollaborationEntity']),_0x326761['SheetCollaborationEntity']=class extends _0x326761[_0x4c996d(0x336)]{constructor(_0x4ce033,_0x2cb315,_0x5c0669,_0x2efd43,_0x362473,_0xec66b,_0x43fd1c,_0x252b28,_0x1b1e5d,_0x5c569d,_0x126ddb,_0x4833fc,_0x266b5a,_0x467c39){const _0x15b3c5=_0x4c996d;super(_0x4ce033,_0x5c0669,_0x2cb315,_0x2efd43,_0x362473,_0xec66b,_0x43fd1c,_0x252b28,_0x5c569d,_0x126ddb,_0x4833fc,_0x266b5a,_0x467c39),this['unitID']=_0x4ce033,this[_0x15b3c5(0x462)]=_0x2cb315,this[_0x15b3c5(0x281)]=_0x1b1e5d;}[_0x4c996d(0x2d2)](){const _0x62c193=_0x4c996d,_0x85270d=super[_0x62c193(0x2d2)]();return _0x85270d[_0x62c193(0x385)]=_0x1a5aac=>this['_sheetTransformSelectionsService'][_0x62c193(0x18c)](_0x1a5aac),_0x85270d;}async[_0x4c996d(0x360)](){const _0x3b344a=_0x4c996d,_0x4dd4a0=await super[_0x3b344a(0x360)]();return this[_0x3b344a(0x315)](this['_commandService'][_0x3b344a(0x4ac)]((_0x594544,_0x2c0f1f)=>{const _0x441aec=_0x3b344a;if(_0x594544[_0x441aec(0x462)]!==_0x229428[_0x441aec(0x255)]['MUTATION']||_0x2c0f1f!=null&&_0x2c0f1f['fromCollab']||_0x2c0f1f!=null&&_0x2c0f1f[_0x441aec(0x3c4)])return;const _0x16575b=_0x594544[_0x441aec(0x1a3)];if((_0x16575b==null?void 0x0:_0x16575b[_0x441aec(0x3a2)])!==this['unitID'])return;const _0x24c8e9=_0x594544,_0x2be90b=this[_0x441aec(0x1d8)]['interceptor'][_0x441aec(0x33e)](this[_0x441aec(0x1d8)][_0x441aec(0x354)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x24c8e9],null)||[_0x24c8e9];this[_0x441aec(0x176)](_0x2be90b[0x0]);})),_0x4dd4a0;}},_0x326761[_0x4c996d(0x2a2)]=_0x24abb4([_0x33a37a(0x3,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x33a37a(0x4,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x166)])),_0x33a37a(0x5,_0x229428['Inject'](_0x16a1a7['CompressMutationService'])),_0x33a37a(0x6,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)])),_0x33a37a(0x7,_0x229428['Inject'](_0x16a1a7[_0x4c996d(0x1cc)])),_0x33a37a(0x8,_0x229428[_0x4c996d(0x25c)](_0x186ee5)),_0x33a37a(0x9,_0x229428[_0x4c996d(0x363)]),_0x33a37a(0xa,_0x229428[_0x4c996d(0x1e6)]),_0x33a37a(0xb,_0x5d918d[_0x4c996d(0x19e)]),_0x33a37a(0xc,_0x229428[_0x4c996d(0x4bb)]),_0x33a37a(0xd,_0x229428[_0x4c996d(0x424)](_0x1826d2))],_0x326761['SheetCollaborationEntity']);var _0x2ee4ef=Object[_0x4c996d(0x287)],_0x10188f=Object[_0x4c996d(0x16a)],_0x5cd611=(_0x448d0b,_0x1784c7,_0x14022a,_0x5971fc)=>{const _0x16076c=_0x4c996d;for(var _0x37e831=_0x5971fc>0x1?void 0x0:_0x5971fc?_0x10188f(_0x1784c7,_0x14022a):_0x1784c7,_0x3a3758=_0x448d0b[_0x16076c(0x260)]-0x1,_0x200fd2;_0x3a3758>=0x0;_0x3a3758--)(_0x200fd2=_0x448d0b[_0x3a3758])&&(_0x37e831=(_0x5971fc?_0x200fd2(_0x1784c7,_0x14022a,_0x37e831):_0x200fd2(_0x37e831))||_0x37e831);return _0x5971fc&&_0x37e831&&_0x2ee4ef(_0x1784c7,_0x14022a,_0x37e831),_0x37e831;},_0x43f14d=(_0x5244c2,_0x12ce29)=>(_0x88bf31,_0x276198)=>_0x12ce29(_0x88bf31,_0x276198,_0x5244c2);_0x326761[_0x4c996d(0x11d)]=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x2cd5f1,_0x30ec39,_0x2e9b28){const _0x462569=_0x4c996d;super(),_0xb4d35(this,'_entities',new Map()),_0xb4d35(this,_0x462569(0x44e),new _0x4a5f0c[(_0x462569(0x3a8))]()),(this[_0x462569(0x112)]=_0x2cd5f1,this[_0x462569(0xd5)]=_0x30ec39,this[_0x462569(0x456)]=_0x2e9b28,this[_0x462569(0x360)]());}[_0x4c996d(0x20a)](){const _0x42ad52=_0x4c996d;super[_0x42ad52(0x20a)](),this[_0x42ad52(0x140)][_0x42ad52(0x139)](_0x504b70=>_0x504b70[_0x42ad52(0x20a)]()),this[_0x42ad52(0x140)][_0x42ad52(0x34c)]();}[_0x4c996d(0x1b5)](_0x18d142){const _0x11c0e1=_0x4c996d;var _0x19031f;return(_0x19031f=this[_0x11c0e1(0x140)][_0x11c0e1(0x453)](_0x18d142))!=null?_0x19031f:null;}[_0x4c996d(0x3e9)](_0x1be252){const _0xd4d4f8=_0x4c996d,_0x15d98d=this[_0xd4d4f8(0x1b5)](_0x1be252);return _0x15d98d?_0x4a5f0c['of'](_0x15d98d):this[_0xd4d4f8(0x44e)]['pipe'](_0x2032d6[_0xd4d4f8(0x232)](_0x3c415b=>_0x3c415b[_0xd4d4f8(0x341)]===_0x1be252));}[_0x4c996d(0x360)](){const _0x49fa39=_0x4c996d;this[_0x49fa39(0x456)][_0x49fa39(0x493)](_0x229428[_0x49fa39(0x2b5)]['UNIVER_SHEET'])[_0x49fa39(0x2b6)](_0x4a5f0c['takeUntil'](this[_0x49fa39(0x47b)]),_0x2032d6[_0x49fa39(0x36e)](0x10))['subscribe'](async _0x3f8875=>{const _0x47188f=_0x49fa39,_0x306b92=_0x3f8875[_0x47188f(0x40b)](),_0x20cf07=await this['_startCollaboration'](_0x306b92,_0x367a98[_0x47188f(0x11a)]);this[_0x47188f(0x140)]['set'](_0x306b92,_0x20cf07);}),this[_0x49fa39(0x456)][_0x49fa39(0x493)](_0x229428[_0x49fa39(0x2b5)][_0x49fa39(0x4b2)])[_0x49fa39(0x2b6)](_0x4a5f0c['takeUntil'](this[_0x49fa39(0x47b)]),_0x2032d6['delay'](0x10))[_0x49fa39(0x2b6)](_0x2032d6['filter'](_0x130d9b=>!_0x130d9b[_0x49fa39(0x40b)]()[_0x49fa39(0x3f3)]('__')))[_0x49fa39(0x451)](async _0x4ec265=>{const _0x4b56dc=_0x49fa39,_0x2ffa15=_0x4ec265[_0x4b56dc(0x40b)](),_0x4f7032=await this[_0x4b56dc(0x213)](_0x2ffa15,_0x367a98[_0x4b56dc(0x4b2)]);this[_0x4b56dc(0x140)][_0x4b56dc(0x22e)](_0x2ffa15,_0x4f7032);}),_0x4a5f0c[_0x49fa39(0x49f)](this['_univerInstanceService'][_0x49fa39(0x3f5)](_0x229428[_0x49fa39(0x2b5)][_0x49fa39(0x11a)]),this[_0x49fa39(0x456)][_0x49fa39(0x3f5)](_0x229428[_0x49fa39(0x2b5)][_0x49fa39(0x4b2)]))['pipe'](_0x4a5f0c[_0x49fa39(0xf1)](this[_0x49fa39(0x47b)]))['subscribe'](_0x5d3f16=>{const _0x7ea3a2=_0x49fa39,_0x40674e=_0x5d3f16[_0x7ea3a2(0x40b)](),_0xfd336d=this[_0x7ea3a2(0x140)]['get'](_0x40674e);_0xfd336d&&(_0xfd336d[_0x7ea3a2(0x20a)](),this[_0x7ea3a2(0x140)][_0x7ea3a2(0x4d4)](_0x40674e));});}async[_0x4c996d(0x213)](_0x388b5a,_0x456a06){const _0x219391=_0x4c996d,_0x1b7f0d=await this[_0x219391(0xd5)][_0x219391(0x339)](_0x388b5a),_0x48fcd5=this[_0x219391(0x112)][_0x219391(0x4c9)](this[_0x219391(0x29d)](_0x456a06),_0x388b5a,_0x456a06,_0x1b7f0d);return await _0x48fcd5[_0x219391(0x412)](),this[_0x219391(0x44e)][_0x219391(0x256)](_0x48fcd5),_0x48fcd5;}[_0x4c996d(0x29d)](_0x1faf0a){const _0x3922af=_0x4c996d;switch(_0x1faf0a){case _0x367a98[_0x3922af(0x4b2)]:return _0x326761[_0x3922af(0x2d9)];case _0x367a98[_0x3922af(0x11a)]:return _0x326761['SheetCollaborationEntity'];default:throw new Error(_0x3922af(0xf0)+_0x1faf0a);}}},_0x326761[_0x4c996d(0x11d)]=_0x5cd611([_0x43f14d(0x0,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x43f14d(0x1,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x368)])),_0x43f14d(0x2,_0x229428[_0x4c996d(0x299)])],_0x326761['CollaborationController']);const _0x32b953=[_0x4c996d(0x406),_0x4c996d(0x1be),'verdancy600',_0x4c996d(0x362),_0x4c996d(0x359),_0x4c996d(0x28c)];class _0x1e0ec9 extends _0x229428[_0x4c996d(0x2a6)]{constructor(){const _0x59a89b=_0x4c996d;super(...arguments),_0xb4d35(this,_0x59a89b(0x35e),new Map()),_0xb4d35(this,_0x59a89b(0x2a1),0x0);}[_0x4c996d(0x2f9)](_0x566ab8){const _0x390b54=_0x4c996d;if(this[_0x390b54(0x35e)]['has'](_0x566ab8))return this['_assignedColors'][_0x390b54(0x453)](_0x566ab8);const _0x2f247e=_0x32b953[this['_colorIndex']];return this[_0x390b54(0x2a1)]=(this[_0x390b54(0x2a1)]+0x1)%_0x32b953['length'],this[_0x390b54(0x35e)][_0x390b54(0x22e)](_0x566ab8,_0x2f247e),_0x2f247e;}}var _0x4d2cc1=Object[_0x4c996d(0x287)],_0x369bcb=Object['getOwnPropertyDescriptor'],_0x31efcf=(_0x479cc7,_0x239bf1,_0x3bafb5,_0x447bf3)=>{const _0x2a8e7c=_0x4c996d;for(var _0x266cb7=_0x447bf3>0x1?void 0x0:_0x447bf3?_0x369bcb(_0x239bf1,_0x3bafb5):_0x239bf1,_0x481bd9=_0x479cc7[_0x2a8e7c(0x260)]-0x1,_0x1dceee;_0x481bd9>=0x0;_0x481bd9--)(_0x1dceee=_0x479cc7[_0x481bd9])&&(_0x266cb7=(_0x447bf3?_0x1dceee(_0x239bf1,_0x3bafb5,_0x266cb7):_0x1dceee(_0x266cb7))||_0x266cb7);return _0x447bf3&&_0x266cb7&&_0x4d2cc1(_0x239bf1,_0x3bafb5,_0x266cb7),_0x266cb7;},_0xe9c6ec=(_0x48c325,_0x556a2c)=>(_0x105b5e,_0x431486)=>_0x556a2c(_0x105b5e,_0x431486,_0x48c325);const _0x9aeb3e=0x12c,_0x1a66e1=0x64;let _0x3d297b=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x3e9db1,_0x104a9e,_0x6e0517,_0x211982,_0x1c83b5,_0x16e8ba,_0x588f6c,_0x59f06d,_0x4bb751){const _0x2431c2=_0x4c996d;super(),_0xb4d35(this,_0x2431c2(0x262),!0x1),_0xb4d35(this,_0x2431c2(0x360),!0x1),_0xb4d35(this,_0x2431c2(0x450),new _0x4a5f0c[(_0x2431c2(0x496))](new Map())),_0xb4d35(this,'cursorInfo$',this[_0x2431c2(0x450)][_0x2431c2(0x228)]()),_0xb4d35(this,_0x2431c2(0x1b7),new _0x4a5f0c[(_0x2431c2(0x496))]([])),_0xb4d35(this,'roomMembers$',this[_0x2431c2(0x1b7)]['pipe'](_0x4a5f0c[_0x2431c2(0x3c3)](_0x9aeb3e))),_0xb4d35(this,'_updateLocalCursor',_0x229428[_0x2431c2(0x4b1)](_0x6f37e9=>{const _0x225bf8=_0x2431c2,_0x305c75={'eventID':_0x16a1a7[_0x225bf8(0x15d)][_0x225bf8(0x2b2)],'data':{'unitID':this['unitID'],'memberID':this[_0x225bf8(0x42f)][_0x225bf8(0x19f)](),'selection':_0x5a47c4(_0x6f37e9)}};this[_0x225bf8(0x42f)][_0x225bf8(0x38e)](_0x305c75,this['unitID']);},_0x1a66e1)),(this[_0x2431c2(0x341)]=_0x3e9db1,this['_session']=_0x104a9e,this['_injector']=_0x6e0517,this['_colorAssignService']=_0x211982,this[_0x2431c2(0x29f)]=_0x1c83b5,this[_0x2431c2(0x396)]=_0x16e8ba,this[_0x2431c2(0x49e)]=_0x588f6c,this['_univerInstanceService']=_0x59f06d,this[_0x2431c2(0x369)]=_0x4bb751);}get[_0x4c996d(0x1f7)](){const _0xae74ce=_0x4c996d;return this['_cursorInfo$'][_0xae74ce(0x309)]();}get[_0x4c996d(0x276)](){const _0x3f9628=_0x4c996d;return this[_0x3f9628(0x1b7)]['getValue']();}[_0x4c996d(0x20a)](){const _0x46b731=_0x4c996d;super['dispose'](),this[_0x46b731(0x450)][_0x46b731(0x256)](new Map()),this[_0x46b731(0x450)][_0x46b731(0x21f)](),this['_roomMembers$'][_0x46b731(0x256)]([]),this[_0x46b731(0x1b7)]['complete']();}[_0x4c996d(0x412)](){const _0x10c90a=_0x4c996d;this[_0x10c90a(0x360)]||(this['_init']=!0x0,this[_0x10c90a(0x42f)][_0x10c90a(0x3d1)][_0x10c90a(0x2b6)](_0x4a5f0c['takeUntil'](this[_0x10c90a(0x47b)]))[_0x10c90a(0x451)](_0x380fbf=>{const _0x50ef9d=_0x10c90a;_0x380fbf===_0x44beef['ONLINE']?this[_0x50ef9d(0x400)]():this[_0x50ef9d(0x35b)]();}),this['_session'][_0x10c90a(0x13f)]['pipe'](_0x4a5f0c[_0x10c90a(0xf1)](this['dispose$']))['subscribe'](_0x3fc706=>{const _0x58d960=_0x10c90a,_0x15aa42=_0x3fc706['eventID'];_0x15aa42===_0x16a1a7[_0x58d960(0x15d)][_0x58d960(0x2b2)]&&this['_onCursorUpdate'](_0x3fc706),_0x15aa42===_0x16a1a7[_0x58d960(0x15d)][_0x58d960(0x3d9)]&&this['_onCursorDelete'](_0x3fc706);}),this[_0x10c90a(0x315)](this[_0x10c90a(0x369)][_0x10c90a(0x4ac)](_0x23f2b7=>{const _0x598b89=_0x10c90a,_0x4c96ef=_0x23f2b7[_0x598b89(0x1a3)];_0x4c96ef!=null&&this[_0x598b89(0x262)]&&_0x23f2b7['id']===_0xf2d66e['SetTextSelectionsOperation']['id']&&_0x4c96ef[_0x598b89(0x3a2)]===this[_0x598b89(0x341)]&&_0x4c96ef[_0x598b89(0x286)]===!0x1&&this[_0x598b89(0x45f)](_0x4c96ef[_0x598b89(0x24f)]);})),this['_syncEditingCollabCursorService'][_0x10c90a(0x1f9)][_0x10c90a(0x2b6)](_0x4a5f0c['takeUntil'](this[_0x10c90a(0x47b)]))['subscribe'](_0x11f682=>{const _0x1b1510=_0x10c90a;if((_0x11f682==null?void 0x0:_0x11f682['unitID'])!==this['unitID'])return;const _0x5cd085={'eventID':_0x16a1a7[_0x1b1510(0x15d)]['UPDATE_CURSOR'],'data':_0x11f682};this[_0x1b1510(0x2e3)](_0x5cd085);}),this[_0x10c90a(0x315)](this[_0x10c90a(0x369)][_0x10c90a(0x4ac)](_0x30fdea=>{const _0x2ac032=_0x10c90a;if(_0x30fdea[_0x2ac032(0x1a3)]==null)return;const _0x51e8dc=_0x30fdea[_0x2ac032(0x1a3)];if(_0x30fdea['id']!==_0xf2d66e['RichTextEditingMutation']['id']||_0x51e8dc[_0x2ac032(0x3a2)]!==this['unitID'])return;const _0x1b8365={'id':_0x2ac032(0x47a),'params':_0x51e8dc},_0x2be95b=this[_0x2ac032(0x1f7)];for(const [_0x4f2eb6,_0x27739b]of _0x2be95b){const _0x19a9f2={'id':_0x2ac032(0x47a),'params':{'unitId':this[_0x2ac032(0x341)],'actions':null,'textRanges':_0x27739b[_0x2ac032(0x24f)]}},_0xc2f530=this['_transformService']['transformMutation'](_0x1b8365,_0x19a9f2,!0x1);if(_0x16a1a7[_0x2ac032(0x3d0)](_0xc2f530))throw _0xc2f530[_0x2ac032(0x28e)];_0x2be95b[_0x2ac032(0x22e)](_0x4f2eb6,{..._0x27739b,'ranges':_0xc2f530[_0x2ac032(0x1e0)]['params'][_0x2ac032(0x3aa)]});}queueMicrotask(()=>{const _0x45863b=_0x2ac032;this[_0x45863b(0x450)][_0x45863b(0x256)](_0x2be95b);});})));}['_onCursorUpdate'](_0x11b56f){const _0xd9657e=_0x4c996d;var _0x24b6c8,_0x298202;const {memberID:_0x41f7c7,selection:_0x1be2fe}=_0x11b56f[_0xd9657e(0x223)],_0x44bc40=_0x2714d3(_0x1be2fe),_0x2a43c8=(_0x298202=(_0x24b6c8=this['_memberService'][_0xd9657e(0x3fc)](this[_0xd9657e(0x341)],_0x41f7c7))==null?void 0x0:_0x24b6c8[_0xd9657e(0x487)])!=null?_0x298202:_0xd9657e(0x422),_0x485e59={'color':this[_0xd9657e(0x311)][_0xd9657e(0x2f9)](_0x41f7c7),'name':_0x2a43c8,'ranges':_0x44bc40},_0x8a639a=this[_0xd9657e(0x1f7)];_0x8a639a['set'](_0x41f7c7,_0x485e59),this[_0xd9657e(0x450)][_0xd9657e(0x256)](_0x8a639a);}[_0x4c996d(0x304)](_0x76a769){const _0x5849c7=_0x4c996d,{memberID:_0x322656}=_0x76a769['data'],_0x2d5033=this['cursorInfo'];_0x2d5033[_0x5849c7(0x4d4)](_0x322656),this[_0x5849c7(0x450)][_0x5849c7(0x256)](_0x2d5033);}[_0x4c996d(0x400)](){const _0x49fae0=_0x4c996d;var _0x2d4b99;if(this['_online']=!0x0,((_0x2d4b99=this['_univerInstanceService'][_0x49fae0(0x428)]())==null?void 0x0:_0x2d4b99['getUnitId']())!==this[_0x49fae0(0x341)])return;const _0x24f5f9=this[_0x49fae0(0x112)][_0x49fae0(0x453)](_0xf2d66e['DocSelectionManagerService'])[_0x49fae0(0x160)]();Array[_0x49fae0(0x452)](_0x24f5f9)&&_0x24f5f9[_0x49fae0(0x260)]>0x0&&this['_updateLocalCursor'](_0x24f5f9);}['_toggleOffline'](){const _0x3e89dc=_0x4c996d;this[_0x3e89dc(0x262)]=!0x1;}};_0x3d297b=_0x31efcf([_0xe9c6ec(0x2,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0xe9c6ec(0x3,_0x229428[_0x4c996d(0x25c)](_0x1e0ec9)),_0xe9c6ec(0x4,_0x229428['Inject'](_0x4090c9)),_0xe9c6ec(0x5,_0x229428['Inject'](_0x4ef234)),_0xe9c6ec(0x6,_0x16a1a7[_0x4c996d(0x2f5)]),_0xe9c6ec(0x7,_0x229428[_0x4c996d(0x299)]),_0xe9c6ec(0x8,_0x229428[_0x4c996d(0x1e6)])],_0x3d297b);var _0x4c8f4c=Object['defineProperty'],_0x36bdd0=Object[_0x4c996d(0x16a)],_0x25380a=(_0xcdb8ab,_0x2d8418,_0x4e11e9,_0x3a75ea)=>{const _0x2651c5=_0x4c996d;for(var _0x47b736=_0x3a75ea>0x1?void 0x0:_0x3a75ea?_0x36bdd0(_0x2d8418,_0x4e11e9):_0x2d8418,_0x1b4103=_0xcdb8ab[_0x2651c5(0x260)]-0x1,_0x269be6;_0x1b4103>=0x0;_0x1b4103--)(_0x269be6=_0xcdb8ab[_0x1b4103])&&(_0x47b736=(_0x3a75ea?_0x269be6(_0x2d8418,_0x4e11e9,_0x47b736):_0x269be6(_0x47b736))||_0x47b736);return _0x3a75ea&&_0x47b736&&_0x4c8f4c(_0x2d8418,_0x4e11e9,_0x47b736),_0x47b736;},_0x462670=(_0x2684eb,_0xce2959)=>(_0x2b2162,_0x224dca)=>_0xce2959(_0x2b2162,_0x224dca,_0x2684eb);const _0x4a8b56=0x12c,_0x332eb6=0x64,_0x12feff=()=>{let _0x2e0f3f=[],_0x27ebee=!0x1;return _0x325f90=>{const _0x1e6092=_0x59fd;_0x2e0f3f[_0x1e6092(0x2be)](_0x325f90),_0x27ebee||(_0x27ebee=!0x0,setTimeout(()=>{const _0x583fe7=_0x1e6092;_0x2e0f3f[_0x583fe7(0x139)](_0x3ac90a=>_0x3ac90a()),_0x2e0f3f=[],_0x27ebee=!0x1;}));};};let _0x315343=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x4ee221,_0x4f4173,_0x497b7f,_0x5e0c12,_0x39ca92,_0x231734,_0x2717d2,_0x2186ca){const _0x224c3d=_0x4c996d;super(),_0xb4d35(this,_0x224c3d(0x262),!0x1),_0xb4d35(this,_0x224c3d(0x360),!0x1),_0xb4d35(this,_0x224c3d(0x450),new _0x4a5f0c[(_0x224c3d(0x496))](new Map())),_0xb4d35(this,_0x224c3d(0x29a),this[_0x224c3d(0x450)][_0x224c3d(0x228)]()),_0xb4d35(this,_0x224c3d(0x1b7),new _0x4a5f0c['BehaviorSubject']([])),_0xb4d35(this,_0x224c3d(0x197),this['_roomMembers$']['pipe'](_0x4a5f0c[_0x224c3d(0x3c3)](_0x4a8b56))),_0xb4d35(this,'_updateLocalCursor',_0x229428[_0x224c3d(0x4b1)]((_0x10a438,_0x27f618)=>{const _0x4c2b41=_0x224c3d,_0x3657b2={'eventID':_0x16a1a7['CollaborationEvent'][_0x4c2b41(0x2b2)],'data':{'unitID':this['unitID'],'memberID':this[_0x4c2b41(0x42f)][_0x4c2b41(0x19f)](),'selection':_0x59dfd8[_0x4c2b41(0x2c0)](_0x10a438,_0x27f618[_0x4c2b41(0x3c9)])}};this[_0x4c2b41(0x42f)]['send'](_0x3657b2,this[_0x4c2b41(0x341)]);},_0x332eb6)),(this[_0x224c3d(0x341)]=_0x4ee221,this[_0x224c3d(0x42f)]=_0x4f4173,this['_injector']=_0x497b7f,this[_0x224c3d(0x311)]=_0x5e0c12,this[_0x224c3d(0x29f)]=_0x39ca92,this[_0x224c3d(0x456)]=_0x231734,this[_0x224c3d(0x369)]=_0x2717d2,this[_0x224c3d(0x273)]=_0x2186ca);}get[_0x4c996d(0x1f7)](){const _0x47cd6b=_0x4c996d;return this['_cursorInfo$'][_0x47cd6b(0x309)]();}get[_0x4c996d(0x276)](){const _0xbf0ff4=_0x4c996d;return this[_0xbf0ff4(0x1b7)][_0xbf0ff4(0x309)]();}[_0x4c996d(0x20a)](){const _0x38bcc3=_0x4c996d;super[_0x38bcc3(0x20a)](),this[_0x38bcc3(0x450)][_0x38bcc3(0x256)](new Map()),this[_0x38bcc3(0x450)][_0x38bcc3(0x21f)](),this[_0x38bcc3(0x1b7)][_0x38bcc3(0x256)]([]),this[_0x38bcc3(0x1b7)][_0x38bcc3(0x21f)]();}[_0x4c996d(0x412)](){const _0x19d969=_0x4c996d;this[_0x19d969(0x360)]||(this[_0x19d969(0x360)]=!0x0,this[_0x19d969(0x42f)][_0x19d969(0x3d1)][_0x19d969(0x2b6)](_0x4a5f0c[_0x19d969(0xf1)](this[_0x19d969(0x47b)]))['subscribe'](_0x50057e=>{const _0x23c0df=_0x19d969;_0x50057e===_0x44beef[_0x23c0df(0x39b)]?this[_0x23c0df(0x400)]():this[_0x23c0df(0x35b)]();}),this[_0x19d969(0x42f)][_0x19d969(0x13f)]['pipe'](_0x4a5f0c['takeUntil'](this[_0x19d969(0x47b)]))[_0x19d969(0x451)](_0x5b937b=>{const _0x1ca437=_0x19d969,_0x4f1c43=_0x5b937b[_0x1ca437(0x1c0)];_0x4f1c43===_0x16a1a7[_0x1ca437(0x15d)][_0x1ca437(0x2b2)]&&this['_onCursorUpdate'](_0x5b937b),_0x4f1c43===_0x16a1a7['CollaborationEvent'][_0x1ca437(0x3d9)]&&this[_0x1ca437(0x304)](_0x5b937b);}),this[_0x19d969(0x48e)](),this[_0x19d969(0x315)](this['_commandService'][_0x19d969(0x4ac)](_0x3f333c=>{const _0x55f626=_0x19d969;if(this[_0x55f626(0x262)]&&_0x3f333c['id']===_0x4118a6['SetSelectionsOperation']['id']&&_0x3f333c[_0x55f626(0x1a3)][_0x55f626(0x3a2)]===this[_0x55f626(0x341)]){const _0x4f5650=_0x3f333c[_0x55f626(0x1a3)];this[_0x55f626(0x45f)](_0x4f5650['subUnitId'],_0x4f5650['selections'][0x0]);}})));}['_onCursorUpdate'](_0x39bbd0){const _0x45aa83=_0x4c996d;var _0x4877e7,_0x4ccc71;const {memberID:_0x272245,selection:_0x1a8713}=_0x39bbd0['data'],{sheetName:_0x56624a,range:_0x1dbdcd}=_0x59dfd8[_0x45aa83(0x4d1)](_0x1a8713),_0x4f037d={'name':(_0x4ccc71=(_0x4877e7=this[_0x45aa83(0x29f)][_0x45aa83(0x3fc)](this[_0x45aa83(0x341)],_0x272245))==null?void 0x0:_0x4877e7[_0x45aa83(0x487)])!=null?_0x4ccc71:_0x45aa83(0x422),'range':this['_getMergeRange'](_0x56624a,_0x1dbdcd),'sheetID':_0x56624a,'color':this[_0x45aa83(0x311)][_0x45aa83(0x2f9)](_0x272245),'selection':_0x1a8713},_0x33e31b=this[_0x45aa83(0x1f7)];_0x33e31b[_0x45aa83(0x22e)](_0x272245,_0x4f037d),this['_cursorInfo$']['next'](_0x33e31b);}[_0x4c996d(0x304)](_0x1ab3d5){const _0x332a6f=_0x4c996d,{memberID:_0x4755e3}=_0x1ab3d5[_0x332a6f(0x223)],_0x196ecf=this[_0x332a6f(0x1f7)];_0x196ecf[_0x332a6f(0x4d4)](_0x4755e3),this[_0x332a6f(0x450)][_0x332a6f(0x256)](_0x196ecf);}['_getMergeRange'](_0x63cf0,_0x2e827c){const _0x16e8ea=_0x4c996d;var _0x1075c4,_0x2a9735;const _0xafc00d=(_0x2a9735=(_0x1075c4=this[_0x16e8ea(0x456)][_0x16e8ea(0x3e2)](this[_0x16e8ea(0x341)]))==null?void 0x0:_0x1075c4[_0x16e8ea(0x352)](_0x63cf0))==null?void 0x0:_0x2a9735['getMergeData']();return(_0xafc00d==null?void 0x0:_0xafc00d[_0x16e8ea(0x180)](_0x35b850=>_0x229428[_0x16e8ea(0x348)][_0x16e8ea(0x46d)](_0x35b850,_0x2e827c)))||_0x2e827c;}['_onRefRangeChange'](){const _0x4d5540=_0x4c996d,_0x300892=new _0x229428[(_0x4d5540(0x3de))](),_0x407742=_0x12feff(),_0xa31252=()=>{const _0xf29e4f=_0x4d5540;_0x300892[_0xf29e4f(0x20a)]();const _0x4721f0=(_0xffd3d2,_0x618bf7,_0x40aa2c,_0x29c3f8)=>{const _0x47d07e=_0xf29e4f;let _0x3ad382=[];switch(_0xffd3d2['id']){case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0x2fa)]:{_0x3ad382=_0x4118a6['handleDeleteRangeMoveLeft'](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6['EffectRefRangId'][_0x47d07e(0x26c)]:{_0x3ad382=_0x4118a6['handleDeleteRangeMoveUp'](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0x4db)]:{_0x3ad382=_0x4118a6['handleInsertCol'](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0x40d)]:{_0x3ad382=_0x4118a6[_0x47d07e(0x4c5)](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0xd2)]:{_0x3ad382=_0x4118a6[_0x47d07e(0x4a9)](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)]['InsertRowCommandId']:{_0x3ad382=_0x4118a6[_0x47d07e(0x214)](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)]['MoveRangeCommandId']:{_0x3ad382=_0x4118a6[_0x47d07e(0x40a)](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0x182)]:{_0x3ad382=_0x4118a6[_0x47d07e(0x4c4)](_0xffd3d2,_0x29c3f8);break;}case _0x4118a6[_0x47d07e(0x330)][_0x47d07e(0x442)]:{_0x3ad382=_0x4118a6['handleIRemoveRow'](_0xffd3d2,_0x29c3f8);break;}}const _0x3e10dc=_0x4118a6['runRefRangeMutations'](_0x3ad382,_0x29c3f8),_0x519263=this[_0x47d07e(0x1f7)]['get'](_0x618bf7);if(_0x519263&&_0x3e10dc){const _0x1ff7b6={..._0x519263,'range':_0x3e10dc};this[_0x47d07e(0x1f7)][_0x47d07e(0x22e)](_0x618bf7,_0x1ff7b6),_0x407742(()=>{const _0x33ad6b=_0x47d07e,_0x11830c=this[_0x33ad6b(0x273)][_0x33ad6b(0xeb)](_0x3e10dc,_0x2e9cb2=>(_0x11830c[_0x33ad6b(0x20a)](),_0x4721f0(_0x2e9cb2,_0x618bf7,_0x40aa2c,_0x3e10dc)));_0x300892['add'](_0x11830c);});}return{'redos':[],'undos':[]};};this[_0xf29e4f(0x1f7)][_0xf29e4f(0x139)]((_0x5b70af,_0x35cdda)=>{const _0x468398=_0xf29e4f,{range:_0x15bd3f,sheetID:_0x14dd5f}=_0x5b70af,_0x53762b=this[_0x468398(0x273)][_0x468398(0xeb)](_0x15bd3f,_0x1b8938=>(_0x53762b[_0x468398(0x20a)](),_0x4721f0(_0x1b8938,_0x35cdda,_0x14dd5f,_0x15bd3f)));_0x300892[_0x468398(0x4c6)](_0x53762b);});};this[_0x4d5540(0x315)](_0x229428['toDisposable'](this[_0x4d5540(0x450)][_0x4d5540(0x451)](()=>{_0xa31252();})));}[_0x4c996d(0x400)](){const _0xc07326=_0x4c996d;var _0x3946ab,_0x6b0701;if(this[_0xc07326(0x262)]=!0x0,((_0x3946ab=this[_0xc07326(0x456)]['getFocusedUnit']())==null?void 0x0:_0x3946ab[_0xc07326(0x40b)]())!==this[_0xc07326(0x341)])return;const _0x177c25=(_0x6b0701=this[_0xc07326(0x112)][_0xc07326(0x453)](_0x4118a6[_0xc07326(0x4e2)])[_0xc07326(0x1e3)]())==null?void 0x0:_0x6b0701[0x0],_0x4b7c26=this[_0xc07326(0x456)][_0xc07326(0x253)](_0x229428[_0xc07326(0x2b5)][_0xc07326(0x11a)])[_0xc07326(0x2f2)]();_0x177c25&&_0x4b7c26&&this[_0xc07326(0x45f)](_0x4b7c26[_0xc07326(0x471)](),_0x177c25);}[_0x4c996d(0x35b)](){const _0x2f2e12=_0x4c996d;this[_0x2f2e12(0x262)]=!0x1;}};_0x315343=_0x25380a([_0x462670(0x2,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x2e0)])),_0x462670(0x3,_0x229428[_0x4c996d(0x25c)](_0x1e0ec9)),_0x462670(0x4,_0x229428['Inject'](_0x4090c9)),_0x462670(0x5,_0x229428[_0x4c996d(0x299)]),_0x462670(0x6,_0x229428[_0x4c996d(0x1e6)]),_0x462670(0x7,_0x229428[_0x4c996d(0x25c)](_0x4118a6[_0x4c996d(0x44a)]))],_0x315343);var _0x381403=Object[_0x4c996d(0x287)],_0x21de60=Object[_0x4c996d(0x16a)],_0x5db5b4=(_0x4101e5,_0x4d8059,_0x4b2d41,_0x1bf3fb)=>{const _0x3eac28=_0x4c996d;for(var _0x809a34=_0x1bf3fb>0x1?void 0x0:_0x1bf3fb?_0x21de60(_0x4d8059,_0x4b2d41):_0x4d8059,_0x2328d5=_0x4101e5[_0x3eac28(0x260)]-0x1,_0x296fbf;_0x2328d5>=0x0;_0x2328d5--)(_0x296fbf=_0x4101e5[_0x2328d5])&&(_0x809a34=(_0x1bf3fb?_0x296fbf(_0x4d8059,_0x4b2d41,_0x809a34):_0x296fbf(_0x809a34))||_0x809a34);return _0x1bf3fb&&_0x809a34&&_0x381403(_0x4d8059,_0x4b2d41,_0x809a34),_0x809a34;},_0x1de654=(_0x526347,_0x545abe)=>(_0x5827a8,_0x373a45)=>_0x545abe(_0x5827a8,_0x373a45,_0x526347);let _0xb1b57a=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x5985f3,_0x2250a9,_0x30451d){const _0x5095f5=_0x4c996d;super(),_0xb4d35(this,'_entities',new Map()),_0xb4d35(this,_0x5095f5(0x44e),new _0x4a5f0c[(_0x5095f5(0x3a8))]()),(this[_0x5095f5(0x456)]=_0x5985f3,this['_injector']=_0x2250a9,this[_0x5095f5(0xd5)]=_0x30451d,this[_0x5095f5(0x360)]());}[_0x4c996d(0x20a)](){const _0x28eeae=_0x4c996d;super[_0x28eeae(0x20a)](),this[_0x28eeae(0x44e)][_0x28eeae(0x21f)](),this[_0x28eeae(0x140)][_0x28eeae(0x139)](_0x2356f8=>_0x2356f8[_0x28eeae(0x20a)]());}[_0x4c996d(0xdb)](_0x548a5b){const _0x1d1cbb=_0x4c996d;return this[_0x1d1cbb(0x140)]['has'](_0x548a5b)?this[_0x1d1cbb(0x140)][_0x1d1cbb(0x453)](_0x548a5b)[_0x1d1cbb(0x29a)]:this['_entityInit$'][_0x1d1cbb(0x2b6)](_0x4a5f0c[_0x1d1cbb(0x232)](_0x45675f=>_0x45675f[_0x1d1cbb(0x341)]===_0x548a5b),_0x4a5f0c['switchMap'](_0x33a1d5=>_0x33a1d5[_0x1d1cbb(0x29a)]));}[_0x4c996d(0x360)](){const _0x39f241=_0x4c996d;this[_0x39f241(0x456)][_0x39f241(0x493)](_0x229428[_0x39f241(0x2b5)][_0x39f241(0x11a)])[_0x39f241(0x2b6)](_0x4a5f0c['takeUntil'](this[_0x39f241(0x47b)]))[_0x39f241(0x451)](async _0x17fe96=>{const _0x1e3e49=_0x39f241,_0x37576d=_0x17fe96['getUnitId'](),_0x537657=await this['_startSheetCollabCursor'](_0x37576d);this[_0x1e3e49(0x44e)][_0x1e3e49(0x256)](_0x537657),this['_entities'][_0x1e3e49(0x22e)](_0x37576d,_0x537657);}),this[_0x39f241(0x456)][_0x39f241(0x493)](_0x229428[_0x39f241(0x2b5)][_0x39f241(0x4b2)])[_0x39f241(0x2b6)](_0x4a5f0c[_0x39f241(0xf1)](this[_0x39f241(0x47b)]))['pipe'](_0x4a5f0c[_0x39f241(0x232)](_0xc86087=>!_0xc86087[_0x39f241(0x40b)]()['startsWith']('__')))[_0x39f241(0x451)](async _0x37da2c=>{const _0x360cbc=_0x39f241,_0x2dd62b=_0x37da2c[_0x360cbc(0x40b)](),_0x1813f5=await this['_startDocCollabCursor'](_0x2dd62b);this[_0x360cbc(0x44e)][_0x360cbc(0x256)](_0x1813f5),this[_0x360cbc(0x140)][_0x360cbc(0x22e)](_0x2dd62b,_0x1813f5);}),_0x4a5f0c[_0x39f241(0x49f)](this[_0x39f241(0x456)]['getTypeOfUnitDisposed$'](_0x229428[_0x39f241(0x2b5)][_0x39f241(0x4b2)]),this['_univerInstanceService'][_0x39f241(0x3f5)](_0x229428[_0x39f241(0x2b5)]['UNIVER_SHEET']))['pipe'](_0x4a5f0c['takeUntil'](this[_0x39f241(0x47b)]))[_0x39f241(0x451)](_0x21fef9=>{const _0x2ac157=_0x39f241,_0x425d28=_0x21fef9[_0x2ac157(0x40b)](),_0x57b3c5=this[_0x2ac157(0x140)][_0x2ac157(0x453)](_0x425d28);_0x57b3c5&&(_0x57b3c5[_0x2ac157(0x20a)](),this[_0x2ac157(0x140)][_0x2ac157(0x4d4)](_0x425d28));});}async[_0x4c996d(0x3e1)](_0x2d4bd9){const _0x2041ce=_0x4c996d,_0x45d830=await this[_0x2041ce(0xd5)][_0x2041ce(0x339)](_0x2d4bd9),_0xf0a165=this[_0x2041ce(0x112)][_0x2041ce(0x4c9)](_0x315343,_0x2d4bd9,_0x45d830);return _0xf0a165[_0x2041ce(0x412)](),_0xf0a165;}async['_startDocCollabCursor'](_0x11d6ef){const _0x5e1c32=_0x4c996d,_0x447a90=await this[_0x5e1c32(0xd5)]['requireSession'](_0x11d6ef),_0x23153a=this[_0x5e1c32(0x112)][_0x5e1c32(0x4c9)](_0x3d297b,_0x11d6ef,_0x447a90);return _0x23153a[_0x5e1c32(0x412)](),_0x23153a;}};_0xb1b57a=_0x5db5b4([_0x1de654(0x0,_0x229428[_0x4c996d(0x299)]),_0x1de654(0x1,_0x229428[_0x4c996d(0x25c)](_0x229428['Injector'])),_0x1de654(0x2,_0x229428[_0x4c996d(0x25c)](_0x326761[_0x4c996d(0x368)]))],_0xb1b57a);const _0x58bcc4=0x14,_0x54060b=0xc8,_0x59dc73=0x4,_0x1cb8a8=0x5;function _0x44540f(_0x22d810,_0xa19991){const _0x17fa18=_0x4c996d;let {radius:_0x3b2b0d,width:_0x157bb3,height:_0x3b85b1}=_0xa19991;_0x3b2b0d=_0x3b2b0d!=null?_0x3b2b0d:0x0,_0x157bb3=_0x157bb3!=null?_0x157bb3:0x1e,_0x3b85b1=_0x3b85b1!=null?_0x3b85b1:0x1e;let _0x48c829=0x0,_0x929cd0=0x0,_0x2a227d=0x0;_0x48c829=_0x929cd0=_0x2a227d=Math[_0x17fa18(0x4cd)](_0x3b2b0d,_0x157bb3/0x2,_0x3b85b1/0x2),_0x22d810[_0x17fa18(0x2d7)](),_0x22d810[_0x17fa18(0xf8)](_0x48c829,0x0),_0x22d810[_0x17fa18(0x26a)](_0x157bb3-_0x929cd0,0x0),_0x22d810[_0x17fa18(0x4e1)](_0x157bb3-_0x929cd0,_0x929cd0,_0x929cd0,Math['PI']*0x3/0x2,0x0,!0x1),_0x22d810[_0x17fa18(0x26a)](_0x157bb3,_0x3b85b1-_0x2a227d),_0x22d810[_0x17fa18(0x4e1)](_0x157bb3-_0x2a227d,_0x3b85b1-_0x2a227d,_0x2a227d,0x0,Math['PI']/0x2,!0x1),_0x22d810['lineTo'](0x0,_0x3b85b1),_0x22d810[_0x17fa18(0x26a)](0x0,_0x48c829),_0x22d810['arc'](_0x48c829,_0x48c829,_0x48c829,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x22d810['closePath'](),_0xa19991[_0x17fa18(0x402)]&&(_0x22d810['save'](),_0x22d810['fillStyle']=_0xa19991[_0x17fa18(0x402)],_0xa19991[_0x17fa18(0x2f6)]==='evenodd'?_0x22d810[_0x17fa18(0x402)](_0x17fa18(0x23d)):_0x22d810['fill'](),_0x22d810[_0x17fa18(0x3d2)]());}class _0xbf0159 extends _0x33f8a9[_0x4c996d(0x127)]{constructor(_0x2171a3,_0x765dbb){const _0x328e47=_0x4c996d;super(_0x2171a3,_0x765dbb),_0xb4d35(this,_0x328e47(0x164)),_0xb4d35(this,_0x328e47(0x1aa)),(this[_0x328e47(0x164)]=_0x765dbb==null?void 0x0:_0x765dbb['color'],this[_0x328e47(0x1aa)]=_0x765dbb==null?void 0x0:_0x765dbb['text']);}static[_0x4c996d(0x4d8)](_0x481aeb,_0x5524a9){const _0x5a2df6=_0x4c996d,{text:_0x97d3bd,color:_0x3c9242}=_0x5524a9;_0x481aeb[_0x5a2df6(0x408)](),_0x481aeb[_0x5a2df6(0x113)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0xdfad40=_0x481aeb[_0x5a2df6(0x2c5)](_0x97d3bd)['width'],_0x2ea050=Math[_0x5a2df6(0x4cd)](_0xdfad40+0x2*_0x59dc73,_0x54060b);_0x44540f(_0x481aeb,{'height':_0x58bcc4,'radius':0x4,'width':_0x2ea050,'fill':_0x3c9242,'evented':!0x1}),_0x481aeb['fillStyle']='#FFF';const _0x229bca=_0x59dc73,_0xf0441e=_0x58bcc4-_0x1cb8a8,_0x5805a6=_0x54060b-0x2*_0x59dc73;if(_0xdfad40>_0x5805a6){let _0xdb4957='',_0x333761=0x0;for(const _0x1efca1 of _0x97d3bd){const _0x3a96e5=_0x481aeb[_0x5a2df6(0x2c5)](_0x1efca1)['width'];if(_0x333761+_0x3a96e5<=_0x5805a6-_0x481aeb[_0x5a2df6(0x2c5)]('...')[_0x5a2df6(0x30f)])_0xdb4957+=_0x1efca1,_0x333761+=_0x3a96e5;else{_0xdb4957+=_0x5a2df6(0x380);break;}}_0x481aeb[_0x5a2df6(0x1c9)](_0xdb4957,_0x229bca,_0xf0441e);}else _0x481aeb[_0x5a2df6(0x1c9)](_0x97d3bd,_0x229bca,_0xf0441e);_0x481aeb[_0x5a2df6(0x3d2)]();}[_0x4c996d(0x489)](_0x4cfe7f){const _0x10665f=_0x4c996d;_0xbf0159[_0x10665f(0x4d8)](_0x4cfe7f,this);}}const _0x569270=_0x4c996d(0x23f),_0x31a8a0=_0x4c996d(0x2c6),_0x15a23f=_0x4c996d(0x4cb),_0x3f97e9=0x6,_0x18948f=1.5,_0x1d6a21=0x4,_0x3cd3a0=1.5,_0x5a842e=_0x4c996d(0xec);class _0x49094d{constructor(_0x13fefa,_0x42f854,_0x43086c,_0x17f1b7){const _0x25f3f0=_0x4c996d;_0xb4d35(this,_0x25f3f0(0x30c),[]),_0xb4d35(this,_0x25f3f0(0x433),null),_0xb4d35(this,_0x25f3f0(0x198),null),_0xb4d35(this,'_anchorDot',null),_0xb4d35(this,_0x25f3f0(0x172),null),_0xb4d35(this,'_eventUnsubscribe',null),(this['_cursor']=_0x13fefa,this['_scene']=_0x42f854,this[_0x25f3f0(0x4d9)]=_0x43086c,this[_0x25f3f0(0x284)]=_0x17f1b7,this[_0x25f3f0(0xea)]());}set[_0x4c996d(0x37c)](_0xce95a3){const _0x2d8960=_0x4c996d;_0xce95a3?(this[_0x2d8960(0x42a)]&&this[_0x2d8960(0x42a)][_0x2d8960(0x4ad)](),this[_0x2d8960(0x198)]&&this[_0x2d8960(0x198)][_0x2d8960(0x1d9)]()):(this[_0x2d8960(0x42a)]&&this[_0x2d8960(0x42a)][_0x2d8960(0x1d9)](),this['_textBubble']&&this[_0x2d8960(0x198)][_0x2d8960(0x4ad)]());}['dispose'](){const _0x5ca128=_0x4c996d;for(const _0x1e8394 of this[_0x5ca128(0x30c)])_0x1e8394[_0x5ca128(0x20a)]();this[_0x5ca128(0x198)]&&this['_textBubble'][_0x5ca128(0x20a)](),this[_0x5ca128(0x42a)]&&this[_0x5ca128(0x42a)][_0x5ca128(0x20a)](),this[_0x5ca128(0x433)]&&this['_anchor']['dispose'](),this[_0x5ca128(0x131)]&&this[_0x5ca128(0x131)]();}['_render'](){const _0x27697f=_0x4c996d;var _0xcb64eb;const {_docSkeleton:_0x3065c3,_document:_0x5da369}=this,{color:_0x203b43,name:_0x134f7f,ranges:_0x11bf1a}=this[_0x27697f(0x192)],_0x48add1=_0x5da369['getOffsetConfig'](),{docsLeft:_0x2b0802,docsTop:_0x57a857}=_0x48add1,_0x5efa61=new _0x585819['NodePositionConvertToCursor'](_0x48add1,_0x3065c3);for(const {startOffset:_0x5755ec,endOffset:_0x5a7841,collapsed:_0x38dc32,isActive:_0x42a780}of _0x11bf1a){const _0x55eb0e=_0x3065c3[_0x27697f(0x45a)](_0x5755ec),_0x47c654=_0x3065c3[_0x27697f(0x45a)](_0x5a7841);if(_0x42a780){const {contentBoxPointGroup:_0x501ee1}=_0x5efa61[_0x27697f(0x2e6)](_0x47c654,_0x47c654);if(_0x501ee1[_0x27697f(0x260)]===0x0)continue;this[_0x27697f(0x38f)](_0x203b43,_0x501ee1,_0x2b0802,_0x57a857,_0x134f7f),this[_0x27697f(0x131)]=this[_0x27697f(0x1de)]();}if(!_0x38dc32&&_0x55eb0e&&_0x47c654){if(_0x585819[_0x27697f(0x474)](_0x55eb0e,_0x47c654)){const _0xf7f6b=new _0x585819[(_0x27697f(0x1e4))](_0x48add1,_0x3065c3),{pointGroup:_0x404a9f}=(_0xcb64eb=_0xf7f6b['getRangePointData'](_0x55eb0e,_0x47c654))!=null?_0xcb64eb:{};if(_0x404a9f==null||_0x404a9f['length']===0x0)continue;this['_drawRectRange'](_0x203b43,_0x404a9f,_0x2b0802,_0x57a857);}else{const {contentBoxPointGroup:_0x344e57}=_0x5efa61[_0x27697f(0x2e6)](_0x55eb0e,_0x47c654);if(_0x344e57[_0x27697f(0x260)]===0x0)continue;this[_0x27697f(0x217)](_0x203b43,_0x344e57,_0x2b0802,_0x57a857);}}}}[_0x4c996d(0x38f)](_0x5b1980,_0x2ebc98,_0x4340d4,_0x3f0852,_0x1c8324){const _0x3230ff=_0x4c996d,_0x2fd912=this[_0x3230ff(0xf9)](_0x2ebc98),{left:_0x3ced4b,top:_0x1f396a,height:_0x4c06b5}=_0x2fd912,_0x34eb31=this[_0x3230ff(0x337)](),_0x3b7eef=_0x3cd3a0/_0x34eb31,_0x8a2870=new _0x33f8a9[(_0x3230ff(0x448))](_0x569270+_0x229428[_0x3230ff(0x179)][_0x3230ff(0x3bb)](_0x3f97e9),{'left':_0x3ced4b+_0x4340d4-_0x3b7eef,'top':_0x1f396a+_0x3f0852,'height':_0x4c06b5,'width':_0x18948f,'fill':_0x5b1980||_0x33f8a9['getColor'](_0x229428[_0x3230ff(0xda)]['black'],0x0),'strokeWidth':_0x3b7eef,'stroke':_0x5a842e,'evented':!0x0});this[_0x3230ff(0x433)]=_0x8a2870,this[_0x3230ff(0x472)]['addObject'](_0x8a2870,_0x585819[_0x3230ff(0x1cd)]);const _0x558cab=new _0x33f8a9[(_0x3230ff(0x448))](_0x569270+_0x229428['Tools'][_0x3230ff(0x3bb)](_0x3f97e9),{'left':_0x3ced4b+_0x4340d4-_0x3b7eef,'top':_0x1f396a+_0x3f0852-_0x1d6a21/0x2,'height':_0x1d6a21,'width':_0x1d6a21,'fill':_0x5b1980||_0x33f8a9['getColor'](_0x229428[_0x3230ff(0xda)][_0x3230ff(0x28a)],0x0),'strokeWidth':0x0,'stroke':_0x5b1980||_0x33f8a9[_0x3230ff(0x144)](_0x229428[_0x3230ff(0xda)]['black'],0x0),'evented':!0x1});this[_0x3230ff(0x42a)]=_0x558cab,this[_0x3230ff(0x472)][_0x3230ff(0x125)](_0x558cab,_0x585819['TEXT_RANGE_LAYER_INDEX']);const _0x2b06fe=new _0xbf0159(_0x569270+_0x229428[_0x3230ff(0x179)][_0x3230ff(0x3bb)](_0x3f97e9),{'left':_0x3ced4b+_0x4340d4-_0x3b7eef,'top':_0x1f396a+_0x3f0852-_0x58bcc4,'text':_0x1c8324,'color':_0x5b1980});this[_0x3230ff(0x198)]=_0x2b06fe,this[_0x3230ff(0x472)]['addObject'](_0x2b06fe,_0x585819[_0x3230ff(0x1cd)]),this[_0x3230ff(0x37c)]=!0x1;}[_0x4c996d(0x1de)](){const _0x47d449=_0x4c996d,_0x1bd3d3=this[_0x47d449(0x433)][_0x47d449(0x3c8)]['subscribeEvent'](()=>{const _0x4f8b15=_0x47d449;this[_0x4f8b15(0x37c)]=!0x0;}),_0x140f63=this[_0x47d449(0x433)][_0x47d449(0x17e)]['subscribeEvent'](()=>{const _0x83c983=_0x47d449;this[_0x83c983(0x172)]&&clearTimeout(this[_0x83c983(0x172)]),this[_0x83c983(0x172)]=setTimeout(()=>{const _0x17db34=_0x83c983;this[_0x17db34(0x37c)]=!0x1;},0x7d0);});return()=>{const _0x1c5b3f=_0x47d449;_0x1bd3d3[_0x1c5b3f(0x399)](),_0x140f63[_0x1c5b3f(0x399)]();};}['_drawTextRange'](_0x275cb5,_0x330bba,_0x48b364,_0x576303){const _0x2ca045=_0x4c996d,_0x41c563=new _0x229428[(_0x2ca045(0x3e8))](_0x275cb5)[_0x2ca045(0x258)](0.2)[_0x2ca045(0x3a4)](),_0x4c2315=new _0x33f8a9[(_0x2ca045(0x395))](_0x31a8a0+_0x229428[_0x2ca045(0x179)][_0x2ca045(0x3bb)](_0x3f97e9),{'pointsGroup':_0x330bba,'fill':_0x41c563||_0x33f8a9[_0x2ca045(0x144)](_0x229428[_0x2ca045(0xda)][_0x2ca045(0x28a)],0.2),'left':_0x48b364,'top':_0x576303,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4c2315),this['_scene'][_0x2ca045(0x125)](_0x4c2315,_0x585819['TEXT_RANGE_LAYER_INDEX']);}[_0x4c996d(0x1c8)](_0x190c5c,_0x75621f,_0x5749d9,_0x35353c){const _0x352a65=_0x4c996d,_0x27db54=new _0x229428[(_0x352a65(0x3e8))](_0x190c5c)[_0x352a65(0x258)](0.2)['toRgbString'](),_0x8aa857=new _0x33f8a9['RegularPolygon'](_0x15a23f+_0x229428[_0x352a65(0x179)][_0x352a65(0x3bb)](_0x3f97e9),{'pointsGroup':_0x75621f,'fill':_0x27db54||_0x33f8a9[_0x352a65(0x144)](_0x229428[_0x352a65(0xda)][_0x352a65(0x28a)],0.2),'left':_0x5749d9,'top':_0x35353c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x352a65(0x30c)][_0x352a65(0x2be)](_0x8aa857),this[_0x352a65(0x472)][_0x352a65(0x125)](_0x8aa857,_0x585819['TEXT_RANGE_LAYER_INDEX']);}[_0x4c996d(0xf9)](_0x567045){const _0x526fb7=_0x567045[0x0],_0x510846=_0x526fb7[0x0],_0x351a3e=_0x526fb7[0x2],{x:_0x46313b,y:_0x187633}=_0x510846,{x:_0x1bffad,y:_0x1af151}=_0x351a3e;return{'left':_0x46313b,'top':_0x187633,'width':_0x1bffad-_0x46313b,'height':_0x1af151-_0x187633};}[_0x4c996d(0x337)](){const _0x3fc41d=_0x4c996d,{scaleX:_0x430f0d,scaleY:_0x25a09e}=this['_scene'][_0x3fc41d(0x31e)]();return Math[_0x3fc41d(0x11e)](_0x430f0d,_0x25a09e);}}var _0x360639=Object[_0x4c996d(0x287)],_0x284caa=Object[_0x4c996d(0x16a)],_0x327dc3=(_0x8272a4,_0x1acf43,_0x46f3fa,_0x2046f1)=>{const _0x26fe03=_0x4c996d;for(var _0x4b1bf5=_0x2046f1>0x1?void 0x0:_0x2046f1?_0x284caa(_0x1acf43,_0x46f3fa):_0x1acf43,_0x425cd5=_0x8272a4[_0x26fe03(0x260)]-0x1,_0x33545b;_0x425cd5>=0x0;_0x425cd5--)(_0x33545b=_0x8272a4[_0x425cd5])&&(_0x4b1bf5=(_0x2046f1?_0x33545b(_0x1acf43,_0x46f3fa,_0x4b1bf5):_0x33545b(_0x4b1bf5))||_0x4b1bf5);return _0x2046f1&&_0x4b1bf5&&_0x360639(_0x1acf43,_0x46f3fa,_0x4b1bf5),_0x4b1bf5;},_0x36510c=(_0xba9102,_0x21060a)=>(_0xb824a2,_0xb19489)=>_0x21060a(_0xb824a2,_0xb19489,_0xba9102);let _0x5e0d56=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x12e76e,_0x13745e,_0x46f689,_0x58bd42,_0x356422){const _0x3dd122=_0x4c996d;super(),_0xb4d35(this,_0x3dd122(0x3f0),[]),_0xb4d35(this,'_cursors',[]),(this[_0x3dd122(0x221)]=_0x12e76e,this[_0x3dd122(0x4ba)]=_0x13745e,this['_collabCursorController']=_0x46f689,this['_commandService']=_0x58bd42,this[_0x3dd122(0x27f)]=_0x356422,this[_0x3dd122(0x360)]());}['_init'](){const _0xf91b49=_0x4c996d,_0xbf4221=this[_0xf91b49(0x221)]['unitId'],_0x37516d=this[_0xf91b49(0x4ba)];this['disposeWithMe'](_0x4a5f0c[_0xf91b49(0x32f)]([this[_0xf91b49(0x1eb)][_0xf91b49(0xdb)](_0xbf4221),this['_themeService']['currentTheme$']])[_0xf91b49(0x2b6)](_0x2032d6['map'](([_0x3d8398,_0x35d918])=>({'skeleton':_0x37516d[_0xf91b49(0x129)](),'cursors':[..._0x3d8398[_0xf91b49(0x10b)]()][_0xf91b49(0x250)](_0x252dd9=>({..._0x252dd9,'color':_0x35d918[_0x252dd9[_0xf91b49(0x164)]]}))})))[_0xf91b49(0x451)](_0x2232e4=>{const _0x45ec1f=_0xf91b49;if(this[_0x45ec1f(0x216)](),_0x2232e4){const {skeleton:_0x3c2f5b,cursors:_0x28ad72}=_0x2232e4;this[_0x45ec1f(0x39f)](_0x3c2f5b,_0x28ad72);}})),this[_0xf91b49(0x2e4)](),this['_initCommandExecutedListener']();}[_0x4c996d(0x39f)](_0x22768f,_0x351acc){const _0x18ee39=_0x4c996d,{scene:_0x354f8a,mainComponent:_0x374eb9}=this[_0x18ee39(0x221)],_0x34b336=_0x351acc['map'](_0x38f07c=>new _0x49094d(_0x38f07c,_0x354f8a,_0x22768f,_0x374eb9));this[_0x18ee39(0x3f0)]=_0x34b336,this[_0x18ee39(0x4c8)]=_0x351acc;}[_0x4c996d(0x305)](){const _0x337c18=_0x4c996d;this[_0x337c18(0x216)]();const {scene:_0x1f2a0e,mainComponent:_0x3de906}=this['_context'],_0x176e5d=this[_0x337c18(0x4ba)][_0x337c18(0x129)](),_0x167e52=this[_0x337c18(0x4c8)][_0x337c18(0x3fb)](_0x502692=>new _0x49094d(_0x502692,_0x1f2a0e,_0x176e5d,_0x3de906));this[_0x337c18(0x3f0)]=_0x167e52;}[_0x4c996d(0x216)](){const _0x2332b1=_0x4c996d;this[_0x2332b1(0x3f0)]['forEach'](_0xabf027=>_0xabf027[_0x2332b1(0x20a)]()),this['_cursorShapes']=[];}[_0x4c996d(0x416)](){const _0x2a20d8=_0x4c996d,_0x5a29cc=[_0x585819['SetDocZoomRatioOperation']['id']];this[_0x2a20d8(0x315)](this[_0x2a20d8(0x369)][_0x2a20d8(0x4ac)](_0x43cf89=>{const _0x5b72d4=_0x2a20d8;_0x5a29cc[_0x5b72d4(0x4ca)](_0x43cf89['id'])&&_0x43cf89['params'][_0x5b72d4(0x3a2)]===this[_0x5b72d4(0x221)][_0x5b72d4(0x3a2)]&&this[_0x5b72d4(0x305)]();}));}[_0x4c996d(0x2e4)](){const _0x295e29=_0x4c996d;this['disposeWithMe'](_0x229428[_0x295e29(0xe8)](this['_context']['engine'][_0x295e29(0x24a)])[_0x295e29(0x2b6)](_0x2032d6[_0x295e29(0x232)](_0x22f597=>_0x22f597['type']===_0x33f8a9['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),_0x2032d6[_0x295e29(0x295)](0x10))[_0x295e29(0x451)](()=>{const _0x100f2f=_0x295e29;this[_0x100f2f(0x305)]();}));}};_0x5e0d56=_0x327dc3([_0x36510c(0x1,_0x229428[_0x4c996d(0x25c)](_0xf2d66e[_0x4c996d(0x1ff)])),_0x36510c(0x2,_0x229428[_0x4c996d(0x25c)](_0xb1b57a)),_0x36510c(0x3,_0x229428[_0x4c996d(0x1e6)]),_0x36510c(0x4,_0x229428['Inject'](_0x229428['ThemeService']))],_0x5e0d56);const _0x1f1311=0x1,_0x38070a=1.5;class _0x3f46bd extends _0x33f8a9[_0x4c996d(0x127)]{constructor(_0x11e123,_0x4f111c){const _0x2d866b=_0x4c996d;super(_0x11e123,_0x4f111c),_0xb4d35(this,_0x2d866b(0x16c)),_0xb4d35(this,_0x2d866b(0x3ed),!0x1),_0xb4d35(this,_0x2d866b(0x265)),_0xb4d35(this,'_name',''),_0xb4d35(this,_0x2d866b(0x46a),_0x2d866b(0x257)),_0xb4d35(this,_0x2d866b(0x1ab)),(_0x4f111c&&this[_0x2d866b(0x4c0)](_0x4f111c),this[_0x2d866b(0x3c8)][_0x2d866b(0x1c2)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2d866b(0x17e)][_0x2d866b(0x1c2)](()=>this[_0x2d866b(0x4c0)]({'hovered':!0x1})));}['setShapeProps'](_0x540219){const _0xc6f333=_0x4c996d;var _0x5ed8d8,_0x2493b1,_0x694c90,_0x52f3af,_0x22f42a,_0x135816;this[_0xc6f333(0x16c)]=(_0x5ed8d8=_0x540219[_0xc6f333(0x164)])!=null?_0x5ed8d8:this['_color'],this[_0xc6f333(0x3ed)]=(_0x2493b1=_0x540219['hovered'])!=null?_0x2493b1:this[_0xc6f333(0x3ed)],this[_0xc6f333(0x265)]=(_0x694c90=_0x540219[_0xc6f333(0x3c9)])!=null?_0x694c90:this[_0xc6f333(0x265)],this[_0xc6f333(0x134)]=(_0x52f3af=_0x540219['name'])!=null?_0x52f3af:this[_0xc6f333(0x134)],this[_0xc6f333(0x46a)]=(_0x22f42a=_0x540219[_0xc6f333(0x2a7)])!=null?_0x22f42a:this['_labelPosition'],this[_0xc6f333(0x1ab)]=(_0x135816=_0x540219[_0xc6f333(0x2ee)])!=null?_0x135816:this['_backgroundColor'],this[_0xc6f333(0x175)]({'width':_0x540219[_0xc6f333(0x30f)],'height':_0x540219[_0xc6f333(0x168)]});}[_0x4c996d(0x1ee)](_0x6b196d){const _0x24b23f=_0x4c996d,{row:_0x1b2faa,column:_0xd5fc23}=_0x6b196d;if(_0x1b2faa>=this[_0x24b23f(0x265)][_0x24b23f(0xcd)]&&_0x1b2faa<=this[_0x24b23f(0x265)][_0x24b23f(0x41f)]&&_0xd5fc23>=this[_0x24b23f(0x265)][_0x24b23f(0x148)]&&_0xd5fc23<=this['_range']['endColumn']){this[_0x24b23f(0x4c0)]({'hovered':!0x0});return;}this[_0x24b23f(0x4c0)]({'hovered':!0x1});}[_0x4c996d(0x238)](_0xb76fdb){return!0x1;}[_0x4c996d(0x489)](_0x195292){const _0x3c4e46=_0x4c996d;_0x33f8a9[_0x3c4e46(0x448)][_0x3c4e46(0x4d8)](_0x195292,{'width':this[_0x3c4e46(0x30f)],'height':this[_0x3c4e46(0x168)],'strokeWidth':_0x38070a,'stroke':this[_0x3c4e46(0x16c)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3c4e46(0x3ed)]&&(_0x195292[_0x3c4e46(0x408)](),_0x195292[_0x3c4e46(0x210)](0x1,0x0,0x0,0x1,this[_0x3c4e46(0x30f)],this[_0x3c4e46(0x46a)]===_0x3c4e46(0x1d5)?0x0:-_0x58bcc4),_0xbf0159[_0x3c4e46(0x4d8)](_0x195292,{'text':this['_name'],'color':this['_color']}),_0x195292[_0x3c4e46(0x3d2)]());}}var _0x4d330f=Object['defineProperty'],_0x169e7e=Object[_0x4c996d(0x16a)],_0x643fb5=(_0x20fc7f,_0xaa1a76,_0x2668f7,_0x3e8a4e)=>{const _0x5eb1d9=_0x4c996d;for(var _0x131988=_0x3e8a4e>0x1?void 0x0:_0x3e8a4e?_0x169e7e(_0xaa1a76,_0x2668f7):_0xaa1a76,_0x2062b9=_0x20fc7f[_0x5eb1d9(0x260)]-0x1,_0x578ad2;_0x2062b9>=0x0;_0x2062b9--)(_0x578ad2=_0x20fc7f[_0x2062b9])&&(_0x131988=(_0x3e8a4e?_0x578ad2(_0xaa1a76,_0x2668f7,_0x131988):_0x578ad2(_0x131988))||_0x131988);return _0x3e8a4e&&_0x131988&&_0x4d330f(_0xaa1a76,_0x2668f7,_0x131988),_0x131988;},_0x146c2c=(_0x2d4fb4,_0x3b7f2e)=>(_0x1678d4,_0x5d4cd3)=>_0x3b7f2e(_0x1678d4,_0x5d4cd3,_0x2d4fb4);const _0x39a24d=0x1389;let _0x1e23e3=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x26841e,_0x31d857,_0x53aff8,_0x52acd1){const _0xaa8510=_0x4c996d;super(),_0xb4d35(this,_0xaa8510(0x4c8),new Set()),_0xb4d35(this,_0xaa8510(0x235),null),(this['_context']=_0x26841e,this[_0xaa8510(0x1a1)]=_0x31d857,this['_collabCursorController']=_0x53aff8,this[_0xaa8510(0x27f)]=_0x52acd1,this[_0xaa8510(0x360)]());}[_0x4c996d(0x360)](){const _0x366c3b=_0x4c996d;this[_0x366c3b(0x1a1)][_0x366c3b(0xcc)][_0x366c3b(0x2b6)](_0x2032d6[_0x366c3b(0xf1)](this['dispose$']),_0x2032d6[_0x366c3b(0x19a)](_0x23d7b3=>{const _0xc46938=_0x366c3b;if(_0x23d7b3){const _0x19921e=_0x23d7b3[_0xc46938(0x19d)];return _0x4a5f0c['combineLatest'](this[_0xc46938(0x1eb)]['getCollabCursors$'](this[_0xc46938(0x221)]['unitId']),this[_0xc46938(0x27f)][_0xc46938(0x4c3)])[_0xc46938(0x2b6)](_0x2032d6['map'](([_0x38218c,_0x1e5000])=>{const _0x537209=_0xc46938,_0x41fcf2=new Map();return _0x38218c[_0x537209(0x139)]((_0x11aa4e,_0xe19e13)=>{const _0x4ae920=_0x537209;if(_0x11aa4e[_0x4ae920(0x10c)]===_0x19921e){const _0x5e2563={..._0x11aa4e};_0x5e2563[_0x4ae920(0x164)]=_0x1e5000[_0x11aa4e[_0x4ae920(0x164)]],_0x41fcf2[_0x4ae920(0x22e)](_0xe19e13,_0x5e2563);}}),{'skeleton':_0x23d7b3,'cursors':_0x41fcf2};}));}return _0x4a5f0c['of']({'skeleton':null,'cursors':new Map()});}))[_0x366c3b(0x451)](({skeleton:_0x417bca,cursors:_0x3290df})=>{const _0x50bd04=_0x366c3b;this['_removeCollabCursors'](),_0x417bca&&this[_0x50bd04(0x39f)](_0x417bca,_0x3290df);}),this['_sheetSkeletonManagerService'][_0x366c3b(0xcc)][_0x366c3b(0x451)](_0x2287a5=>{const _0x10b79a=_0x366c3b;if(_0x2287a5==null)return;const {skeleton:_0x5bbdce}=_0x2287a5,{scene:_0x875ac4}=this['_context'];_0x875ac4[_0x10b79a(0x455)][_0x10b79a(0x1c2)](_0x229428[_0x10b79a(0x4b1)](_0x2e9ee7=>{const _0x5c6bc5=_0x10b79a;var _0x22a963,_0x5a7754;const {offsetX:_0x4b4b38,offsetY:_0x325961}=_0x2e9ee7,{x:_0x37e433,y:_0x479068}=_0x875ac4[_0x5c6bc5(0x1ed)](_0x33f8a9[_0x5c6bc5(0x44d)]['FromArray']([_0x4b4b38,_0x325961])),{scaleX:_0x1cdf6b,scaleY:_0x23cdc7}=_0x875ac4[_0x5c6bc5(0x31e)](),_0x3c5f99=_0x875ac4[_0x5c6bc5(0x398)](_0x52d884[_0x5c6bc5(0x4bc)]['VIEW_MAIN']),_0x41a9df=_0x875ac4[_0x5c6bc5(0x1d6)](_0x33f8a9[_0x5c6bc5(0x44d)][_0x5c6bc5(0x23c)]([_0x37e433,_0x479068]),_0x3c5f99),_0x17d624=_0x5bbdce[_0x5c6bc5(0x270)](_0x4b4b38,_0x325961,_0x1cdf6b,_0x23cdc7,_0x41a9df);((_0x22a963=this['_lastPointer'])==null?void 0x0:_0x22a963[_0x5c6bc5(0x199)])===_0x17d624[_0x5c6bc5(0x199)]&&((_0x5a7754=this[_0x5c6bc5(0x235)])==null?void 0x0:_0x5a7754[_0x5c6bc5(0x2a8)])===_0x17d624[_0x5c6bc5(0x2a8)]||this[_0x5c6bc5(0x4c8)]['forEach'](_0x43ade4=>{_0x43ade4['onMouseMove'](_0x17d624);});},0x64));});}['_updateCollabCursors'](_0x34f3f1,_0x2b56cf){const _0x3bf2bc=_0x4c996d;var _0x4383e1;const _0x558a0f=(_0x4383e1=this[_0x3bf2bc(0x1a1)][_0x3bf2bc(0x289)]())==null?void 0x0:_0x4383e1[_0x3bf2bc(0x419)];if(!_0x558a0f)return;const _0x38d934=this[_0x3bf2bc(0x196)]();if(!_0x38d934)return;this['_cursors'][_0x3bf2bc(0x139)](_0x29409c=>{_0x29409c['makeDirty']();});const {scene:_0x45df4e}=_0x38d934,_0x198bf3=_0x40c7a7(Array['from'](_0x2b56cf[_0x3bf2bc(0x10b)]()))['map'](_0x5ae6ce=>{const _0x5ed0b1=_0x3bf2bc,{color:_0xd475b2,range:_0x5a7c0d,name:_0xba4740,selection:_0x500078,sheetID:_0x108a8f}=_0x5ae6ce,{startColumn:_0x430cfb,startRow:_0x2edbbe,endColumn:_0x1494ec,endRow:_0x11a3e4}=_0x5a7c0d,_0x23b02b=_0x52d884[_0x5ed0b1(0x3b4)](_0x2edbbe,_0x430cfb,_0x45df4e,_0x558a0f),_0x30e12a=_0x52d884[_0x5ed0b1(0x3b4)](_0x11a3e4,_0x1494ec,_0x45df4e,_0x558a0f),{columnHeaderHeightAndMarginTop:_0x291b4d}=_0x558a0f,{startX:_0x1a556f,startY:_0x41ce44}=_0x23b02b,{endX:_0xf65f30,endY:_0x1cb31b}=_0x30e12a,_0x5bfd67=_0xf65f30-_0x1a556f,_0x283c02=_0x1cb31b-_0x41ce44,_0x382886={'labelPosition':_0x41ce44-_0x291b4d>=_0x58bcc4?_0x5ed0b1(0x257):_0x5ed0b1(0x1d5),'sheetID':_0x108a8f,'range':_0x5a7c0d,'color':_0xd475b2,'name':_0xba4740,'selection':_0x500078,'left':_0x1a556f,'top':_0x41ce44,'width':_0x5bfd67,'height':_0x283c02,'evented':!0x1,'zIndex':_0x39a24d};return new _0x3f46bd(_0xba4740,_0x382886);});_0x45df4e[_0x3bf2bc(0x12b)](_0x198bf3,_0x1f1311),this[_0x3bf2bc(0x4c8)]=new Set(_0x198bf3);}['_removeCollabCursors'](){const _0xd9be2f=_0x4c996d;var _0x113669;(_0x113669=this[_0xd9be2f(0x4c8)])==null||_0x113669[_0xd9be2f(0x139)](_0x534ab5=>_0x534ab5['dispose']());}['_getSheetObject'](){const _0x54bc06=_0x4c996d;return _0x52d884[_0x54bc06(0x146)](this[_0x54bc06(0x221)][_0x54bc06(0x22b)],this[_0x54bc06(0x221)]);}};_0x1e23e3=_0x643fb5([_0x146c2c(0x1,_0x229428[_0x4c996d(0x25c)](_0x52d884[_0x4c996d(0x404)])),_0x146c2c(0x2,_0x229428[_0x4c996d(0x25c)](_0xb1b57a)),_0x146c2c(0x3,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x25e)]))],_0x1e23e3);function _0x40c7a7(_0x3e1f4f){const _0x259fc3=_0x4c996d,_0x545ddb=new Map();return _0x3e1f4f['forEach'](_0x2c8fec=>{const _0x729d11=_0x59fd;if(_0x545ddb['has'](_0x2c8fec[_0x729d11(0x3f6)])){const _0x269cd6=_0x545ddb[_0x729d11(0x453)](_0x2c8fec[_0x729d11(0x3f6)]);_0x269cd6[_0x729d11(0x487)]+=',\x20'+_0x2c8fec[_0x729d11(0x487)];}else _0x545ddb[_0x729d11(0x22e)](_0x2c8fec[_0x729d11(0x3f6)],_0x2c8fec);}),Array[_0x259fc3(0x218)](_0x545ddb[_0x259fc3(0x10b)]());}var _0x8380c=function(){const _0x18adad=_0x4c996d;return _0x8380c=Object[_0x18adad(0x432)]||function(_0x372ee1){const _0x2139a3=_0x18adad;for(var _0x380739,_0x2ec93c=0x1,_0x5bea40=arguments['length'];_0x2ec93c<_0x5bea40;_0x2ec93c++){_0x380739=arguments[_0x2ec93c];for(var _0x2bfa2b in _0x380739)Object[_0x2139a3(0x2ae)][_0x2139a3(0xdd)]['call'](_0x380739,_0x2bfa2b)&&(_0x372ee1[_0x2bfa2b]=_0x380739[_0x2bfa2b]);}return _0x372ee1;},_0x8380c[_0x18adad(0x47d)](this,arguments);},_0x45d4ea=function(_0x276e9a,_0x12594c){const _0x58a539=_0x4c996d;var _0xfed4c={};for(var _0x3dfc14 in _0x276e9a)Object['prototype']['hasOwnProperty'][_0x58a539(0x411)](_0x276e9a,_0x3dfc14)&&_0x12594c[_0x58a539(0x3b3)](_0x3dfc14)<0x0&&(_0xfed4c[_0x3dfc14]=_0x276e9a[_0x3dfc14]);if(_0x276e9a!=null&&typeof Object[_0x58a539(0x4bf)]==_0x58a539(0x14c)){for(var _0x272c84=0x0,_0x3dfc14=Object[_0x58a539(0x4bf)](_0x276e9a);_0x272c84<_0x3dfc14[_0x58a539(0x260)];_0x272c84++)_0x12594c[_0x58a539(0x3b3)](_0x3dfc14[_0x272c84])<0x0&&Object['prototype'][_0x58a539(0x1fc)][_0x58a539(0x411)](_0x276e9a,_0x3dfc14[_0x272c84])&&(_0xfed4c[_0x3dfc14[_0x272c84]]=_0x276e9a[_0x3dfc14[_0x272c84]]);}return _0xfed4c;},_0x40becd=_0x5398de[_0x4c996d(0x2d5)](function(_0x334146,_0x31f277){const _0xef0119=_0x4c996d;var _0x3bf61d=_0x334146[_0xef0119(0x49a)],_0x2afcd1=_0x334146['id'],_0x5ca72c=_0x334146['className'],_0x2a5e45=_0x334146[_0xef0119(0x1c3)],_0xe55a1d=_0x45d4ea(_0x334146,[_0xef0119(0x49a),'id','className',_0xef0119(0x1c3)]),_0x5344eb=_0xef0119(0x2e5)[_0xef0119(0x1c1)](_0x2afcd1,'\x20')[_0xef0119(0x1c1)](_0x5ca72c||'')[_0xef0119(0x12c)](),_0x2ad663=_0x5398de[_0xef0119(0x297)]('_'[_0xef0119(0x1c1)](_0x5c6d49()));return _0x31d363(_0x3bf61d,''[_0xef0119(0x1c1)](_0x2afcd1),{'defIds':_0x3bf61d[_0xef0119(0xcf)],'idSuffix':_0x2ad663[_0xef0119(0x2a5)]},_0x8380c({'ref':_0x31f277,'className':_0x5344eb},_0xe55a1d),_0x2a5e45);});function _0x31d363(_0x43c68d,_0x19f28b,_0xe3c16d,_0x3ee157,_0x263a72){const _0x3dd814=_0x4c996d;return _0x5398de[_0x3dd814(0x34f)](_0x43c68d['tag'],_0x8380c(_0x8380c({'key':_0x19f28b},_0x17e865(_0x43c68d,_0xe3c16d,_0x263a72)),_0x3ee157),(_0x2d3635(_0x43c68d,_0xe3c16d)[_0x3dd814(0x4a5)]||[])[_0x3dd814(0x3fb)](function(_0x38a179,_0x5c07f6){const _0x30d4c4=_0x3dd814;return _0x31d363(_0x38a179,''[_0x30d4c4(0x1c1)](_0x19f28b,'-')[_0x30d4c4(0x1c1)](_0x43c68d[_0x30d4c4(0x32c)],'-')[_0x30d4c4(0x1c1)](_0x5c07f6),_0xe3c16d,void 0x0,_0x263a72);}));}function _0x17e865(_0x85b523,_0x318f3f,_0x3876e3){const _0x754ca1=_0x4c996d;var _0x59a881=_0x8380c({},_0x85b523['attrs']);_0x3876e3!=null&&_0x3876e3[_0x754ca1(0x285)]&&_0x59a881['fill']===_0x754ca1(0x285)&&(_0x59a881['fill']=_0x3876e3[_0x754ca1(0x285)]);var _0x1fc628=_0x318f3f[_0x754ca1(0xcf)];return!_0x1fc628||_0x1fc628[_0x754ca1(0x260)]===0x0||(_0x85b523['tag']===_0x754ca1(0x3f7)&&_0x59a881[_0x754ca1(0x110)]&&(_0x59a881[_0x754ca1(0x110)]=_0x59a881[_0x754ca1(0x110)]+_0x318f3f[_0x754ca1(0x3d3)]),Object[_0x754ca1(0x48f)](_0x59a881)[_0x754ca1(0x139)](function(_0x4c5ea4){const _0x415008=_0x754ca1;var _0x9efdd3=_0x4c5ea4[0x0],_0x763716=_0x4c5ea4[0x1];typeof _0x763716=='string'&&(_0x59a881[_0x9efdd3]=_0x763716[_0x415008(0x162)](/url\(#(.*)\)/,_0x415008(0x36b)[_0x415008(0x1c1)](_0x318f3f['idSuffix'],')')));})),_0x59a881;}function _0x2d3635(_0x50b443,_0x52ecd1){const _0x3d1164=_0x4c996d;var _0x1ac0f1,_0x402e7a=_0x52ecd1['defIds'];return!_0x402e7a||_0x402e7a[_0x3d1164(0x260)]===0x0?_0x50b443:_0x50b443[_0x3d1164(0x32c)]===_0x3d1164(0x3ea)&&(!((_0x1ac0f1=_0x50b443[_0x3d1164(0x4a5)])===null||_0x1ac0f1===void 0x0)&&_0x1ac0f1[_0x3d1164(0x260)])?_0x8380c(_0x8380c({},_0x50b443),{'children':_0x50b443['children'][_0x3d1164(0x3fb)](function(_0x2d85be){const _0x33d55d=_0x3d1164;return typeof _0x2d85be[_0x33d55d(0x189)]['id']==_0x33d55d(0xdf)&&_0x402e7a&&_0x402e7a[_0x33d55d(0x3b3)](_0x2d85be[_0x33d55d(0x189)]['id'])>-0x1?_0x8380c(_0x8380c({},_0x2d85be),{'attrs':_0x8380c(_0x8380c({},_0x2d85be['attrs']),{'id':_0x2d85be['attrs']['id']+_0x52ecd1[_0x33d55d(0x3d3)]})}):_0x2d85be;})}):_0x50b443;}function _0x5c6d49(){const _0xabe19e=_0x4c996d;return Math[_0xabe19e(0x3e0)]()[_0xabe19e(0x1af)](0x24)[_0xabe19e(0xee)](0x2,0x8);}_0x40becd['displayName']=_0x4c996d(0x16f);var _0x3e9217={'tag':_0x4c996d(0x3b7),'attrs':{'fill':_0x4c996d(0x14d),'viewBox':_0x4c996d(0xe4),'width':_0x4c996d(0x204),'height':_0x4c996d(0x204)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c996d(0x2c8)},'children':[{'tag':_0x4c996d(0x254),'attrs':{'stroke':_0x4c996d(0x2e8),'d':_0x4c996d(0x14b),'strokeLinecap':_0x4c996d(0xef),'strokeLinejoin':_0x4c996d(0xef),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4c996d(0x12d),'attrs':{'id':_0x4c996d(0x171)},'children':[{'tag':_0x4c996d(0x254),'attrs':{'fill':_0x4c996d(0x3cf),'d':_0x4c996d(0x410)}}]}]}],'defIds':[_0x4c996d(0x171)]},_0x28ba74=_0x5398de[_0x4c996d(0x2d5)](function(_0x4b5709,_0x4271d6){const _0x48de0a=_0x4c996d;return _0x5398de['createElement'](_0x40becd,Object[_0x48de0a(0x432)]({},_0x4b5709,{'id':_0x48de0a(0x1b6),'ref':_0x4271d6,'icon':_0x3e9217}));});_0x28ba74[_0x4c996d(0x1a0)]=_0x4c996d(0x48d);var _0x27b3b1={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4c996d(0x204)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c996d(0x3f4)},'children':[{'tag':_0x4c996d(0x254),'attrs':{'stroke':_0x4c996d(0x2e8),'d':_0x4c996d(0x21d),'strokeLinecap':_0x4c996d(0xef),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4c996d(0x3ea),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4c996d(0x42b)},'children':[{'tag':_0x4c996d(0x254),'attrs':{'fill':_0x4c996d(0x3cf),'d':_0x4c996d(0x410),'transform':_0x4c996d(0x2aa)}}]}]}],'defIds':[_0x4c996d(0x42b)]},_0x28d4b6=_0x5398de['forwardRef'](function(_0x349b85,_0x5c6520){const _0x46632f=_0x4c996d;return _0x5398de['createElement'](_0x40becd,Object['assign']({},_0x349b85,{'id':_0x46632f(0x3ab),'ref':_0x5c6520,'icon':_0x27b3b1}));});_0x28d4b6[_0x4c996d(0x1a0)]=_0x4c996d(0x45c);const _0x520cb9={'onlineStatusIcon':_0x4c996d(0x392),'onlineStatusTitle':_0x4c996d(0x147),'onlineStatus':_0x4c996d(0x409),'online':_0x4c996d(0x268),'offline':'univer-offline'};function _0x21fd4e(_0x451db5){const _0x1f6d17=_0x4c996d;switch(_0x451db5){case _0x4b8cf1[_0x1f6d17(0x28b)]:return'collabStatus.offline';case _0x4b8cf1['CONFLICT']:return _0x1f6d17(0x3d5);case _0x4b8cf1[_0x1f6d17(0x115)]:return _0x1f6d17(0x161);case _0x4b8cf1[_0x1f6d17(0x2c1)]:return _0x1f6d17(0x267);case _0x4b8cf1[_0x1f6d17(0x25a)]:case _0x4b8cf1[_0x1f6d17(0x325)]:case _0x4b8cf1[_0x1f6d17(0x225)]:return'collabStatus.syncing';case _0x4b8cf1[_0x1f6d17(0x2a3)]:return'collabStatus.synced';}}function _0x30eb65(_0x21b1e1){const _0x1c9f42=_0x4c996d,{status$:_0x37d6ab}=_0x21b1e1,_0x260985=_0x5d918d['useObservable'](_0x37d6ab,_0x4b8cf1[_0x1c9f42(0x2c1)]),_0x13d8b1=_0x229428[_0x1c9f42(0x306)](_0x229428[_0x1c9f42(0x23a)]),_0x21d40=_0x229428[_0x1c9f42(0x306)](_0x326761[_0x1c9f42(0x368)]),_0x5046a8=_0x260985!==_0x4b8cf1[_0x1c9f42(0x28b)],_0x5d9e0a=_0x13d8b1['t'](_0x21fd4e(_0x260985)),_0x2d6a83=_0x2e5aa8(_0x520cb9[_0x1c9f42(0x18a)],{[_0x520cb9[_0x1c9f42(0x48c)]]:_0x5046a8,[_0x520cb9['offline']]:!_0x5046a8}),_0x2a8889=_0x5046a8?_0x5398de[_0x1c9f42(0x34f)](_0x28d4b6,null):_0x5398de[_0x1c9f42(0x34f)](_0x28ba74,null),_0x4e4ae2=_0x5398de[_0x1c9f42(0x200)](()=>{const _0x413513=_0x1c9f42;_0x5046a8||_0x21d40[_0x413513(0x33d)]();},[_0x5046a8,_0x21d40]);function _0x213f7f(){const _0x2cfc04=_0x1c9f42;return _0x5398de[_0x2cfc04(0x34f)](_0x2cfc04(0xce),{'className':_0x2d6a83,'onClick':_0x4e4ae2},_0x5398de['createElement'](_0x2cfc04(0xce),{'className':_0x520cb9['onlineStatusIcon']},_0x2a8889),_0x5398de[_0x2cfc04(0x34f)](_0x2cfc04(0xce),{'className':_0x520cb9[_0x2cfc04(0x1ec)]},_0x5d9e0a));}return _0x5046a8?_0x213f7f():_0x5398de[_0x1c9f42(0x34f)](_0x71e3dd[_0x1c9f42(0x181)],{'title':_0x13d8b1['t'](_0x1c9f42(0x30e))},_0x213f7f());}var _0x5a62ec=Object[_0x4c996d(0x287)],_0x10ef8c=Object[_0x4c996d(0x16a)],_0x1da7e4=(_0xc349ab,_0x253916,_0x372c47,_0x2da91c)=>{const _0x4979f5=_0x4c996d;for(var _0x2c4461=_0x2da91c>0x1?void 0x0:_0x2da91c?_0x10ef8c(_0x253916,_0x372c47):_0x253916,_0x148d85=_0xc349ab[_0x4979f5(0x260)]-0x1,_0x5a13a8;_0x148d85>=0x0;_0x148d85--)(_0x5a13a8=_0xc349ab[_0x148d85])&&(_0x2c4461=(_0x2da91c?_0x5a13a8(_0x253916,_0x372c47,_0x2c4461):_0x5a13a8(_0x2c4461))||_0x2c4461);return _0x2da91c&&_0x2c4461&&_0x5a62ec(_0x253916,_0x372c47,_0x2c4461),_0x2c4461;},_0x5ea619=(_0x4381c3,_0x3092b6)=>(_0x39b37a,_0x573962)=>_0x3092b6(_0x39b37a,_0x573962,_0x4381c3);_0x326761[_0x4c996d(0x1d1)]=class extends _0x229428[_0x4c996d(0x2a6)]{constructor(_0x51cfc3,_0x1770cc,_0x1b7ac7,_0x4745b2){const _0x104095=_0x4c996d;super(),_0xb4d35(this,_0x104095(0x461),new _0x4a5f0c['BehaviorSubject'](_0x4b8cf1[_0x104095(0x2c1)])),(this[_0x104095(0x456)]=_0x51cfc3,this[_0x104095(0x43d)]=_0x1770cc,this['_injector']=_0x1b7ac7,this[_0x104095(0x249)]=_0x4745b2,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusListener'](){const _0x3d88a1=_0x4c996d;this['disposeWithMe'](this[_0x3d88a1(0x456)][_0x3d88a1(0x26e)][_0x3d88a1(0x2b6)](_0x4a5f0c[_0x3d88a1(0x19a)](()=>{const _0x15d9c4=_0x3d88a1,_0x2b80ea=this[_0x15d9c4(0x456)][_0x15d9c4(0x428)]();return _0x2b80ea?this['_collaborationController']['getCollabEntity$'](_0x2b80ea[_0x15d9c4(0x40b)]()):_0x4a5f0c['of'](null);}),_0x4a5f0c['switchMap'](_0x181538=>_0x181538?_0x181538[_0x3d88a1(0xd7)]:_0x4a5f0c['of'](_0x4b8cf1[_0x3d88a1(0x2c1)])))[_0x3d88a1(0x451)](_0x34ef77=>{this['_status$']['next'](_0x34ef77);}));}[_0x4c996d(0x2d1)](){const _0x32ab82=_0x4c996d;this[_0x32ab82(0x315)](this['_uiPartsService'][_0x32ab82(0x353)](_0x5d918d['BuiltInUIPart'][_0x32ab82(0x4e3)],()=>_0x229428['connectInjector'](_0x354405({'status$':this[_0x32ab82(0x461)][_0x32ab82(0x228)]()}),this[_0x32ab82(0x112)])));}},_0x326761['DesktopCollaborationStatusDisplayController']=_0x1da7e4([_0x5ea619(0x0,_0x229428[_0x4c996d(0x299)]),_0x5ea619(0x1,_0x5d918d[_0x4c996d(0x2eb)]),_0x5ea619(0x2,_0x229428[_0x4c996d(0x25c)](_0x229428['Injector'])),_0x5ea619(0x3,_0x229428[_0x4c996d(0x25c)](_0x326761['CollaborationController']))],_0x326761['DesktopCollaborationStatusDisplayController']);function _0x354405(_0x9ce88c){const {status$:_0x106b13}=_0x9ce88c;return function(){const _0x4b51f6=_0x59fd;return _0x5398de[_0x4b51f6(0x34f)](_0x30eb65,{'status$':_0x106b13});};}const _0x11dc92=_0x229428[_0x4c996d(0x15b)](_0x4c996d(0x4df));var _0x4cf60d=Object['defineProperty'],_0x11a72e=Object['getOwnPropertyDescriptor'],_0x32fe0a=(_0x21f84c,_0x59523f,_0xf1d570,_0x192833)=>{const _0x29c363=_0x4c996d;for(var _0x58fa5f=_0x192833>0x1?void 0x0:_0x192833?_0x11a72e(_0x59523f,_0xf1d570):_0x59523f,_0x48d6c1=_0x21f84c[_0x29c363(0x260)]-0x1,_0x133bbb;_0x48d6c1>=0x0;_0x48d6c1--)(_0x133bbb=_0x21f84c[_0x48d6c1])&&(_0x58fa5f=(_0x192833?_0x133bbb(_0x59523f,_0xf1d570,_0x58fa5f):_0x133bbb(_0x58fa5f))||_0x58fa5f);return _0x192833&&_0x58fa5f&&_0x4cf60d(_0x59523f,_0xf1d570,_0x58fa5f),_0x58fa5f;},_0x200599=(_0x25d915,_0x2b8254)=>(_0x28c167,_0x5d27d5)=>_0x2b8254(_0x28c167,_0x5d27d5,_0x25d915);_0x326761[_0x4c996d(0x374)]=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x16d421,_0x4c5bcd,_0x4670bc,_0x46477a,_0x1b9437,_0x4fc477){const _0x3c8013=_0x4c996d;super(),this[_0x3c8013(0x174)]=_0x16d421,this[_0x3c8013(0x1e2)]=_0x4c5bcd,this[_0x3c8013(0x369)]=_0x4670bc,this['_localCacheService']=_0x46477a,this['_snapshotService']=_0x1b9437,_0x4fc477?_0x4fc477==null||_0x4fc477['whenReady']()[_0x3c8013(0x17c)](()=>this['_init']()):(this['_logService'][_0x3c8013(0x2b9)](_0x3c8013(0x439),_0x3c8013(0x327)),this[_0x3c8013(0x360)]());}async[_0x4c996d(0x360)](){const _0xd63a9b=_0x4c996d,_0x1bfc14=this[_0xd63a9b(0x174)][_0xd63a9b(0x193)]('unit'),_0x1ec047=this[_0xd63a9b(0x174)]['getParam'](_0xd63a9b(0x462));if(!_0x1bfc14||!_0x1ec047){this['_logService'][_0xd63a9b(0x2b9)](_0xd63a9b(0x439),_0xd63a9b(0x1a9));return;}switch(Number(_0x1ec047)){case _0x367a98['UNIVER_SHEET']:{const _0x16868c=await this[_0xd63a9b(0x137)](_0x1bfc14);this['_setupSubUnitSync'](_0x16868c);break;}case _0x367a98[_0xd63a9b(0x4b2)]:{await this[_0xd63a9b(0x328)](_0x1bfc14);break;}default:{this[_0xd63a9b(0x1e2)][_0xd63a9b(0x28e)](_0xd63a9b(0x439),_0xd63a9b(0x4a3));break;}}}async['_setupSubUnitSync'](_0x3dc38f){const _0x4fb679=_0x4c996d;await this[_0x4fb679(0x10d)](_0x3dc38f),_0x3dc38f[_0x4fb679(0x407)][_0x4fb679(0x2b6)](_0x4a5f0c[_0x4fb679(0xf1)](this['dispose$']))[_0x4fb679(0x451)](_0x1642e6=>{const _0x410db2=_0x4fb679;_0x1642e6&&this[_0x410db2(0x100)](_0x1642e6);}),this[_0x4fb679(0x174)][_0x4fb679(0x420)][_0x4fb679(0x2b6)](_0x4a5f0c['takeUntil'](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x3dc38f));}[_0x4c996d(0x100)](_0x35484f,_0x4a7486=!0x1){const _0x3c50d2=_0x4c996d,_0xf2a878=this[_0x3c50d2(0x174)][_0x3c50d2(0x193)](_0x3c50d2(0xf2));_0x35484f[_0x3c50d2(0x471)]()!==_0xf2a878&&this[_0x3c50d2(0x174)][_0x3c50d2(0x1d2)](_0x3c50d2(0xf2),_0x35484f['getSheetId'](),_0x4a7486);}async[_0x4c996d(0x10d)](_0x542c6c){const _0x4dbe47=_0x4c996d;var _0x24c2f4;const _0x3d763c=this[_0x4dbe47(0x174)][_0x4dbe47(0x193)]('subunit');if(!_0x3d763c||!_0x542c6c[_0x4dbe47(0x352)](_0x3d763c)){const _0x2df0c9=_0x542c6c['getUnhiddenWorksheets']()[0x0],_0x46a35a=_0x542c6c[_0x4dbe47(0x352)](_0x2df0c9);if(!_0x46a35a)return;this[_0x4dbe47(0x100)](_0x46a35a,!0x0),await this[_0x4dbe47(0x369)][_0x4dbe47(0x378)](_0x4118a6[_0x4dbe47(0x3ba)]['id'],{'unitId':_0x542c6c[_0x4dbe47(0x40b)](),'subUnitId':_0x2df0c9});return;}((_0x24c2f4=_0x542c6c[_0x4dbe47(0x2f2)]())==null?void 0x0:_0x24c2f4[_0x4dbe47(0x471)]())!==_0x3d763c&&await this[_0x4dbe47(0x369)][_0x4dbe47(0x378)](_0x4118a6[_0x4dbe47(0x3ba)]['id'],{'unitId':_0x542c6c['getUnitId'](),'subUnitId':_0x3d763c});}async[_0x4c996d(0x137)](_0x2d2c3c){const _0x409d01=_0x4c996d;let _0x526774=0x0;const _0x55a141=await this['_localCacheService'][_0x409d01(0x21b)](_0x2d2c3c);return _0x55a141&&(_0x55a141['awaitingChangeset']||_0x55a141[_0x409d01(0x431)][_0x409d01(0x260)]!==0x0)&&(_0x526774=_0x55a141['rev']),_0x526774===0x0&&this[_0x409d01(0x1e2)][_0x409d01(0x2b9)](_0x409d01(0x439),_0x409d01(0x2da)),this[_0x409d01(0x347)][_0x409d01(0x460)](_0x2d2c3c,_0x526774);}async[_0x4c996d(0x328)](_0x3df7f6){const _0x146ee0=_0x4c996d;let _0x47038c=0x0;const _0x576507=await this[_0x146ee0(0x18f)][_0x146ee0(0x21b)](_0x3df7f6);return _0x576507&&(_0x576507[_0x146ee0(0x31b)]||_0x576507['mutations'][_0x146ee0(0x260)]!==0x0)&&(_0x47038c=_0x576507[_0x146ee0(0x188)]),_0x47038c===0x0&&this[_0x146ee0(0x1e2)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x146ee0(0x347)]['loadDoc'](_0x3df7f6,_0x47038c);}},_0x326761[_0x4c996d(0x374)]=_0x32fe0a([_0x200599(0x0,_0x11dc92),_0x200599(0x1,_0x229428[_0x4c996d(0x363)]),_0x200599(0x2,_0x229428[_0x4c996d(0x1e6)]),_0x200599(0x3,_0x229428[_0x4c996d(0x25c)](_0x326761['LocalCacheService'])),_0x200599(0x4,_0x229428[_0x4c996d(0x25c)](_0x16a1a7[_0x4c996d(0x230)])),_0x200599(0x5,_0x229428['Optional'](_0x29a0cb['IRemoteInstanceService']))],_0x326761['DataLoaderController']);var _0x4d5e62=Object[_0x4c996d(0x287)],_0x4945a9=Object['getOwnPropertyDescriptor'],_0x8fadf2=(_0x51ec2e,_0xd2ca52,_0xe443db,_0x225e28)=>{const _0x29daae=_0x4c996d;for(var _0x3efcef=_0x225e28>0x1?void 0x0:_0x225e28?_0x4945a9(_0xd2ca52,_0xe443db):_0xd2ca52,_0x563177=_0x51ec2e[_0x29daae(0x260)]-0x1,_0x58a874;_0x563177>=0x0;_0x563177--)(_0x58a874=_0x51ec2e[_0x563177])&&(_0x3efcef=(_0x225e28?_0x58a874(_0xd2ca52,_0xe443db,_0x3efcef):_0x58a874(_0x3efcef))||_0x3efcef);return _0x225e28&&_0x3efcef&&_0x4d5e62(_0xd2ca52,_0xe443db,_0x3efcef),_0x3efcef;},_0x6f6fac=(_0xf68521,_0x2a133c)=>(_0x1ac686,_0x5bace4)=>_0x2a133c(_0x1ac686,_0x5bace4,_0xf68521);const _0x31fd7e='DEFAULT_FILE_NAME',_0x5824c2=_0x4c996d(0x283);let _0x42d342=class extends _0x229428[_0x4c996d(0x2a6)]{constructor(_0x1daffc,_0x55dff5){const _0x15bfa0=_0x4c996d;super(),this['_univerInstanceService']=_0x1daffc,this[_0x15bfa0(0x27a)]=_0x55dff5,this[_0x15bfa0(0x360)]();}['_init'](){const _0x2ed917=_0x4c996d;this[_0x2ed917(0x315)](this[_0x2ed917(0x456)]['focused$'][_0x2ed917(0x451)](()=>{const _0x19f967=_0x2ed917;var _0x12e2c0;const _0x2c0656=this['_univerInstanceService'][_0x19f967(0x428)]();let _0x173dad=(_0x12e2c0=this[_0x19f967(0x27a)][_0x19f967(0x2d8)](_0x31fd7e))!=null?_0x12e2c0:_0x5824c2;_0x2c0656 instanceof _0x229428['Workbook']&&(_0x173dad=_0x2c0656[_0x19f967(0x487)]),document[_0x19f967(0x2d6)]=_0x173dad;}));}};_0x42d342=_0x8fadf2([_0x6f6fac(0x0,_0x229428[_0x4c996d(0x299)]),_0x6f6fac(0x1,_0x229428[_0x4c996d(0x274)])],_0x42d342);var _0x35f96a=Object[_0x4c996d(0x287)],_0x12f17d=Object[_0x4c996d(0x16a)],_0x404a75=(_0x3f296c,_0xc21b9f,_0x437300,_0x4c6acd)=>{const _0x3dd5fc=_0x4c996d;for(var _0x45cd47=_0x4c6acd>0x1?void 0x0:_0x4c6acd?_0x12f17d(_0xc21b9f,_0x437300):_0xc21b9f,_0x412898=_0x3f296c[_0x3dd5fc(0x260)]-0x1,_0x43398a;_0x412898>=0x0;_0x412898--)(_0x43398a=_0x3f296c[_0x412898])&&(_0x45cd47=(_0x4c6acd?_0x43398a(_0xc21b9f,_0x437300,_0x45cd47):_0x43398a(_0x45cd47))||_0x45cd47);return _0x4c6acd&&_0x45cd47&&_0x35f96a(_0xc21b9f,_0x437300,_0x45cd47),_0x45cd47;},_0x1f56fa=(_0x1dae6a,_0x37939f)=>(_0x43d20b,_0x357174)=>_0x37939f(_0x43d20b,_0x357174,_0x1dae6a);let _0x2d5dc0=class{constructor(_0x20770a,_0x3f0cb9,_0x474fc2){const _0xc2e947=_0x4c996d;this[_0xc2e947(0x27a)]=_0x20770a,this[_0xc2e947(0x4a2)]=_0x3f0cb9,this[_0xc2e947(0x22a)]=_0x474fc2,this[_0xc2e947(0x412)]();}['init'](){const _0x358116=_0x4c996d;this['_httpService'][_0x358116(0x335)]({'priority':0x1,'interceptor':(_0x471b5c,_0x5979d0)=>_0x5979d0(_0x471b5c)[_0x358116(0x2b6)](_0x4a5f0c[_0x358116(0x23e)](async _0x4daafe=>{const _0x4e8a72=_0x358116,_0x59e303=_0x4daafe;if(_0x59e303[_0x4e8a72(0x32e)]===0x191&&window[_0x4e8a72(0xf4)](this[_0x4e8a72(0x22a)]['t'](_0x4e8a72(0x227)))){const _0x434cd3=window['encodeURIComponent'](window['location']['href']);window['location'][_0x4e8a72(0x22d)]=this[_0x4e8a72(0x414)]()+_0x4e8a72(0x12e)+_0x434cd3;}return _0x59e303;}))});}['_getLoginPath'](){const _0x3adaf8=_0x4c996d;var _0x591429,_0x4ba10e;const _0x280708=this['_configService'][_0x3adaf8(0x2d8)](_0x2c7366),_0x38d357=this[_0x3adaf8(0x27a)][_0x3adaf8(0x2d8)](_0x4dd3a7);return(_0x4ba10e=(_0x591429=_0x38d357==null?void 0x0:_0x38d357[_0x3adaf8(0x322)])!=null?_0x591429:_0x280708)!=null?_0x4ba10e:_0x53291b;}};_0x2d5dc0=_0x404a75([_0x1f56fa(0x0,_0x229428['IConfigService']),_0x1f56fa(0x1,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)])),_0x1f56fa(0x2,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)]))],_0x2d5dc0);var _0x2d5db4=Object['defineProperty'],_0x2eb059=Object['getOwnPropertyDescriptor'],_0x43e591=(_0x2c7794,_0x1ca7e1,_0x49a72d,_0x461278)=>{const _0x3474e5=_0x4c996d;for(var _0x9ee61=_0x461278>0x1?void 0x0:_0x461278?_0x2eb059(_0x1ca7e1,_0x49a72d):_0x1ca7e1,_0x2d4307=_0x2c7794[_0x3474e5(0x260)]-0x1,_0x11984e;_0x2d4307>=0x0;_0x2d4307--)(_0x11984e=_0x2c7794[_0x2d4307])&&(_0x9ee61=(_0x461278?_0x11984e(_0x1ca7e1,_0x49a72d,_0x9ee61):_0x11984e(_0x9ee61))||_0x9ee61);return _0x461278&&_0x9ee61&&_0x2d5db4(_0x1ca7e1,_0x49a72d,_0x9ee61),_0x9ee61;},_0x485ecd=(_0x5a1a78,_0x17e438)=>(_0x3b6176,_0x34fb2d)=>_0x17e438(_0x3b6176,_0x34fb2d,_0x5a1a78);const _0x6362c5=_0x4c996d(0x473),_0x4dcc75=_0x4c996d(0x2fb);_0x326761[_0x4c996d(0x3be)]=class extends _0x229428['Disposable']{constructor(_0x1c2797,_0x19bd4c){const _0x595ee6=_0x4c996d;super(),this['_HTTPService']=_0x1c2797,this['_configService']=_0x19bd4c,this[_0x595ee6(0x13b)]();}[_0x4c996d(0x13b)](){const _0x260871=_0x4c996d,_0x5c0cb1=this;this['disposeWithMe'](this[_0x260871(0x302)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x1d2d7f['MergeInterceptorFactory']({'isMatch'(_0x4aac68){const _0x223027=_0x260871;var _0x47b748;if(_0x4aac68['method']==='POST'&&((_0x47b748=_0x4aac68[_0x223027(0x1a6)])!=null&&_0x47b748[_0x223027(0x3bd)])){const {objectID:_0x1b4edb,objectType:_0x8e413a}=_0x4aac68[_0x223027(0x1a6)][_0x223027(0x3bd)]||{};if(!_0x1b4edb||_0x8e413a===void 0x0)return!0x1;const _0x43be90=_0x5c0cb1[_0x223027(0x29c)]()+'/'+_0x8e413a+_0x223027(0x14a)+_0x1b4edb+_0x223027(0x421);if(_0x4aac68[_0x223027(0x1d3)]===_0x43be90)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xdd02f1){const _0x5f4813=_0x260871;var _0x2170b3;return(_0x2170b3=_0xdd02f1['requestParams'])==null?void 0x0:_0x2170b3[_0x5f4813(0x3bd)];},'mergeParamsToRequest'(_0x5e4f25,_0x3876cc){const _0x529f20=_0x260871,_0x2d11e4=_0x5c0cb1[_0x529f20(0x29c)]()+'/-/object/-/batch_allowed',_0x37422b=_0x5e4f25[_0x529f20(0x459)]((_0x2f7cc3,_0x5a3ff3)=>{const _0x24c3b8=_0x529f20,{unitID:_0x5f0f51,objectID:_0x16b446,objectType:_0x3f80a2,actions:_0x94fe7}=_0x5a3ff3;return _0x2f7cc3[_0x5f0f51]||(_0x2f7cc3[_0x5f0f51]={}),_0x2f7cc3[_0x5f0f51][_0x16b446]||(_0x2f7cc3[_0x5f0f51][_0x16b446]={'objectID':_0x16b446,'objectType':_0x3f80a2,'actions':[]}),_0x2f7cc3[_0x5f0f51][_0x16b446][_0x24c3b8(0x294)][_0x24c3b8(0x2be)](..._0x94fe7),_0x2f7cc3;},{}),_0x29daff=[];for(const _0x5d4f17 in _0x37422b)for(const _0x50bcde in _0x37422b[_0x5d4f17]){const {actions:_0x3a4034,objectType:_0x4f7ee5}=_0x37422b[_0x5d4f17][_0x50bcde],_0xe644ca=[...new Set(_0x3a4034)];_0x29daff['push']({'unitID':_0x5d4f17,'objectID':_0x50bcde,'objectType':_0x4f7ee5,'actions':_0xe644ca});}return new _0x1d2d7f[(_0x529f20(0x29e))](_0x529f20(0x3c5),_0x2d11e4,{'headers':_0x3876cc[_0x529f20(0x495)],'withCredentials':_0x3876cc[_0x529f20(0x36d)],'responseType':_0x3876cc[_0x529f20(0x32d)],'body':{'requests':_0x29daff}});}},{'distributeResult'(_0x39f6b7,_0x2ab3dd){const {objectActions:_0x23e749}=_0x39f6b7;return _0x2ab3dd['map'](_0xcfefb1=>{const _0x2811ad=_0x59fd,{unitID:_0x21613b,objectID:_0x5c9b4e,actions:_0x25d5a2}=_0xcfefb1,_0x148384=_0x23e749[_0x2811ad(0x180)](_0x5708cd=>_0x5708cd['unitID']===_0x21613b&&_0x5708cd['objectID']===_0x5c9b4e),_0x585d12=_0x25d5a2[_0x2811ad(0x3fb)](_0x1c22cc=>_0x148384==null?void 0x0:_0x148384['actions'][_0x2811ad(0x180)](_0x5d025f=>_0x5d025f['action']===_0x1c22cc))[_0x2811ad(0x232)](_0x4c78bd=>!!_0x4c78bd);return{'config':_0xcfefb1,'result':{'actions':_0x585d12,'error':_0x39f6b7['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x4652ab=_0x4c996d;var _0x42ac52,_0x29192d;const _0x13ff56=this[_0x4652ab(0x27a)]['getConfig'](_0x6362c5),_0x1ce58f=this[_0x4652ab(0x27a)][_0x4652ab(0x2d8)](_0x4dd3a7);return(_0x29192d=(_0x42ac52=_0x1ce58f==null?void 0x0:_0x1ce58f['authzUrl'])!=null?_0x42ac52:_0x13ff56)!=null?_0x29192d:_0x4dcc75;}async[_0x4c996d(0x4cf)](_0x1aaee7){const _0x1ccf68=_0x4c996d,_0x270ccd=this['_getAPIPrefixPath']()+'/'+_0x1aaee7[_0x1ccf68(0x2c9)]+'/object';return(await this[_0x1ccf68(0x302)][_0x1ccf68(0x2de)](_0x270ccd,{'body':_0x1aaee7}))[_0x1ccf68(0x3bd)][_0x1ccf68(0x1b1)]||'';}async[_0x4c996d(0x3b1)](_0x19df73){const _0x45b226=_0x4c996d,_0x4f02ba=this[_0x45b226(0x29c)]()+_0x45b226(0x370);return(await this[_0x45b226(0x302)][_0x45b226(0x2de)](_0x4f02ba,{'body':_0x19df73}))[_0x45b226(0x3bd)]['objects'];}async[_0x4c996d(0x33c)](_0x275001){const _0x299be6=_0x4c996d,_0x109cf1=this[_0x299be6(0x29c)]()+'/'+_0x275001[_0x299be6(0x2c9)]+_0x299be6(0x14a)+_0x275001['objectID'];await this[_0x299be6(0x302)]['put'](_0x109cf1,{'body':_0x275001});}async[_0x4c996d(0x1f5)](_0x357814){const _0x350a8b=_0x4c996d,_0x401b06=this[_0x350a8b(0x29c)]()+'/'+_0x357814['objectType']+_0x350a8b(0x14a)+_0x357814[_0x350a8b(0x1b1)]+_0x350a8b(0x421);return(await this[_0x350a8b(0x302)][_0x350a8b(0x2de)](_0x401b06,{'body':_0x357814}))['body'][_0x350a8b(0x294)];}async[_0x4c996d(0x239)](_0x6d9407){const _0x57cc57=_0x4c996d,_0x2e2c0d=this[_0x57cc57(0x29c)]()+_0x57cc57(0x447);return(await this['_HTTPService'][_0x57cc57(0x2de)](_0x2e2c0d,{'body':{'requests':_0x6d9407}}))['body'][_0x57cc57(0x37e)];}async[_0x4c996d(0x1fb)](_0x3596c6){const _0x4195e0=_0x4c996d,_0x341d09=this[_0x4195e0(0x29c)]()+'/'+_0x3596c6[_0x4195e0(0x2c9)]+_0x4195e0(0x2f0),_0x4cba0f=await this[_0x4195e0(0x302)][_0x4195e0(0x2de)](_0x341d09,{'body':_0x3596c6});return{'roles':_0x4cba0f[_0x4195e0(0x3bd)]['roles'],'actions':_0x4cba0f[_0x4195e0(0x3bd)][_0x4195e0(0x294)]};}async[_0x4c996d(0x43f)](_0x42cc07){const _0x14c594=_0x4c996d,_0xcf19ad=this['_getAPIPrefixPath']()+_0x14c594(0x397);await this['_HTTPService'][_0x14c594(0x4d4)](_0xcf19ad,{'params':{'collaboratorID':_0x42cc07[_0x14c594(0x36f)],'objectID':_0x42cc07['objectID'],'unitID':_0x42cc07['unitID']}});}async['updateCollaborator'](_0x3efba5){const _0x58a2f8=_0x4c996d,_0x4fb185=this[_0x58a2f8(0x29c)]()+_0x58a2f8(0x397);await this['_HTTPService'][_0x58a2f8(0x34a)](_0x4fb185,{'body':_0x3efba5});}async['createCollaborator'](_0x458fbf){const _0x5be3b=_0x4c996d,_0x4a3195=this['_getAPIPrefixPath']()+_0x5be3b(0x397);await this[_0x5be3b(0x302)][_0x5be3b(0x2de)](_0x4a3195,{'body':_0x458fbf});}async[_0x4c996d(0x245)](_0x27dc5f){const _0x5347aa=_0x4c996d,_0x46888d=this[_0x5347aa(0x29c)]()+_0x5347aa(0x397);return(await this[_0x5347aa(0x302)][_0x5347aa(0x453)](_0x46888d,{'params':{'objectID':_0x27dc5f[_0x5347aa(0x1b1)],'unitID':_0x27dc5f[_0x5347aa(0x341)]}}))[_0x5347aa(0x3bd)]['collaborators'];}async['putCollaborators'](_0xfd8598){const _0x3421cb=_0x4c996d,_0x39caca=this[_0x3421cb(0x29c)]()+_0x3421cb(0x397);await this[_0x3421cb(0x302)][_0x3421cb(0x158)](_0x39caca,{'body':_0xfd8598});}},_0x326761[_0x4c996d(0x3be)]=_0x43e591([_0x485ecd(0x0,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)])),_0x485ecd(0x1,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x274)]))],_0x326761[_0x4c996d(0x3be)]);var _0x2ead66=Object['defineProperty'],_0x81c5d9=Object['getOwnPropertyDescriptor'],_0xe58cca=(_0x59ff8c,_0x2ff4bc,_0x3ad0c3,_0x1ad370)=>{for(var _0x577440=_0x1ad370>0x1?void 0x0:_0x1ad370?_0x81c5d9(_0x2ff4bc,_0x3ad0c3):_0x2ff4bc,_0xf9594a=_0x59ff8c['length']-0x1,_0x4d0945;_0xf9594a>=0x0;_0xf9594a--)(_0x4d0945=_0x59ff8c[_0xf9594a])&&(_0x577440=(_0x1ad370?_0x4d0945(_0x2ff4bc,_0x3ad0c3,_0x577440):_0x4d0945(_0x577440))||_0x577440);return _0x1ad370&&_0x577440&&_0x2ead66(_0x2ff4bc,_0x3ad0c3,_0x577440),_0x577440;},_0x17031b=(_0x32d9ad,_0x496e0f)=>(_0x5476aa,_0x18c35f)=>_0x496e0f(_0x5476aa,_0x18c35f,_0x32d9ad);let _0x48f009=class{constructor(_0x1d20a5){const _0x904f36=_0x4c996d;this['_httpService']=_0x1d20a5,this[_0x904f36(0x3d7)]();}[_0x4c996d(0x3d7)](){const _0xbdd2ef=_0x4c996d;this[_0xbdd2ef(0x4a2)]['registerHTTPInterceptor']({'interceptor':(_0x507dc8,_0x5dced1)=>{const _0xf50c39=_0xbdd2ef,_0x5f3294=_0x507dc8[_0xf50c39(0x495)],_0xde4187=_0x1f5326['getAttachHeader']();return _0xde4187&&_0x5f3294[_0xf50c39(0x22e)](_0xf50c39(0x3bc),_0xde4187),_0x5dced1(_0x507dc8);}});}};_0x48f009=_0xe58cca([_0x17031b(0x0,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)]))],_0x48f009);var _0x1d0b93=Object[_0x4c996d(0x287)],_0x46cef5=Object[_0x4c996d(0x16a)],_0x227620=(_0x59d752,_0x4404a3,_0x50b2ff,_0x1c0d9e)=>{const _0x5b3fbc=_0x4c996d;for(var _0x5ebe86=_0x1c0d9e>0x1?void 0x0:_0x1c0d9e?_0x46cef5(_0x4404a3,_0x50b2ff):_0x4404a3,_0x59275c=_0x59d752[_0x5b3fbc(0x260)]-0x1,_0x1fdb2d;_0x59275c>=0x0;_0x59275c--)(_0x1fdb2d=_0x59d752[_0x59275c])&&(_0x5ebe86=(_0x1c0d9e?_0x1fdb2d(_0x4404a3,_0x50b2ff,_0x5ebe86):_0x1fdb2d(_0x5ebe86))||_0x5ebe86);return _0x1c0d9e&&_0x5ebe86&&_0x1d0b93(_0x4404a3,_0x50b2ff,_0x5ebe86),_0x5ebe86;},_0x44ee1c=(_0x51955d,_0x2309e2)=>(_0x43bef7,_0x3b35ee)=>_0x2309e2(_0x43bef7,_0x3b35ee,_0x51955d);const _0x3b6fae=[_0x4c996d(0x345),_0x4c996d(0x3c7),_0x4c996d(0x109),'image/gif','image/bmp'],_0x16b62d=0x5*0x400*0x400,_0x4a6771=_0x4c996d(0xe1),_0x1309ed=_0x4c996d(0x3ac),_0x2752e7='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x56902a=_0x4c996d(0x20b);_0x326761['ImageIoService']=class{constructor(_0x19a6d9,_0x51e215,_0x11211c){const _0x5f34d5=_0x4c996d;_0xb4d35(this,_0x5f34d5(0x31c),0x0),_0xb4d35(this,_0x5f34d5(0x494),new _0x4a5f0c[(_0x5f34d5(0x3a8))]()),_0xb4d35(this,_0x5f34d5(0x151),this[_0x5f34d5(0x494)]),_0xb4d35(this,_0x5f34d5(0x454),new Map()),(this[_0x5f34d5(0x4a2)]=_0x19a6d9,this[_0x5f34d5(0x27a)]=_0x51e215,this['_univerInstanceService']=_0x11211c);}[_0x4c996d(0xca)](_0x2ec5f8){const _0x1b92c7=_0x4c996d;this[_0x1b92c7(0x31c)]=_0x2ec5f8,this[_0x1b92c7(0x494)][_0x1b92c7(0x256)](_0x2ec5f8);}['getImageSourceCache'](_0x3d5806,_0x5a81cd){const _0x29a436=_0x4c996d;if(_0x5a81cd===_0x36c3dd[_0x29a436(0x481)][_0x29a436(0x2ca)]){const _0x24e399=new Image();return _0x24e399[_0x29a436(0x26f)]=_0x3d5806,_0x24e399;}return this['_imageSourceCache'][_0x29a436(0x453)](_0x3d5806);}[_0x4c996d(0x13c)](_0x1c141a,_0x554c0c,_0x1e0ea5){const _0x22142f=_0x4c996d;_0x554c0c===_0x36c3dd[_0x22142f(0x481)][_0x22142f(0x2ca)]||_0x1e0ea5==null||this['_imageSourceCache'][_0x22142f(0x22e)](_0x1c141a,_0x1e0ea5);}async[_0x4c996d(0x435)](_0x36b4e){const _0x235711=_0x4c996d;try{const _0x506db8=this[_0x235711(0x488)](this[_0x235711(0x19b)](),''+_0x36b4e),_0x5787ce=(await this['_httpService'][_0x235711(0x453)](_0x506db8))[_0x235711(0x3bd)];if(_0x5787ce[_0x235711(0x28e)]&&_0x5787ce[_0x235711(0x28e)]['code']===_0x4ea1f0['OK']){const _0x213794=new URL(_0x5787ce[_0x235711(0x1d3)],this[_0x235711(0x2b1)]())[_0x235711(0x1af)]();return Promise[_0x235711(0x382)](_0x213794);}return Promise[_0x235711(0x1dd)](_0x5787ce[_0x235711(0x28e)]);}catch(_0x40a6a9){return Promise[_0x235711(0x1dd)](_0x40a6a9);}}async[_0x4c996d(0x1c7)](_0x64a091){const _0x5eb9d5=_0x4c996d;let _0x1ca665='';if(!_0x3b6fae['includes'](_0x64a091[_0x5eb9d5(0x462)]))return this['_decreaseWaiting'](),Promise[_0x5eb9d5(0x1dd)](new Error(_0x36c3dd[_0x5eb9d5(0x298)][_0x5eb9d5(0x16d)]));if(_0x64a091[_0x5eb9d5(0x423)]>_0x16b62d)return this[_0x5eb9d5(0x4a1)](),Promise[_0x5eb9d5(0x1dd)](new Error(_0x36c3dd['ImageUploadStatusType'][_0x5eb9d5(0x43c)]));try{const _0x3ebaa4=new FormData();_0x3ebaa4[_0x5eb9d5(0x475)]('file',_0x64a091);const _0x56f6e0=this['_univerInstanceService'][_0x5eb9d5(0x428)](),_0x27941c=_0x56f6e0==null?void 0x0:_0x56f6e0[_0x5eb9d5(0x40b)]();if(!_0x27941c)throw new Error('unitId\x20is\x20not\x20found');const _0x2f288e=this[_0x5eb9d5(0xf5)]()+'?size='+_0x64a091[_0x5eb9d5(0x423)][_0x5eb9d5(0x1af)]()+'&source='+_0x55c55a[_0x5eb9d5(0x1a8)]+_0x5eb9d5(0x445)+encodeURIComponent(_0x27941c),_0x1607a=await(await fetch(_0x2f288e,{'method':_0x5eb9d5(0x3c5),'body':_0x3ebaa4}))[_0x5eb9d5(0x1a5)]();if(typeof _0x1607a[_0x5eb9d5(0x203)]!='string')return this[_0x5eb9d5(0x4a1)](),Promise['reject'](new Error(_0x36c3dd[_0x5eb9d5(0x298)][_0x5eb9d5(0x142)]));_0x1ca665=_0x1607a[_0x5eb9d5(0x203)];}catch{return this[_0x5eb9d5(0x4a1)](),Promise['reject'](new Error(_0x36c3dd[_0x5eb9d5(0x298)]['ERROR_IMAGE']));}return new Promise((_0x3863ec,_0x345fb0)=>{const _0x5b8754=_0x5eb9d5,_0x583c2a=new FileReader();_0x583c2a[_0x5b8754(0x24e)](_0x64a091),_0x583c2a[_0x5b8754(0x2ba)]=_0x16db7c=>{const _0x4476c9=_0x5b8754;var _0x303ed3;const _0x366603=(_0x303ed3=_0x16db7c[_0x4476c9(0x186)])==null?void 0x0:_0x303ed3[_0x4476c9(0x37d)];if(_0x366603==null){this[_0x4476c9(0x4a1)](),_0x345fb0(new Error(_0x36c3dd[_0x4476c9(0x298)][_0x4476c9(0x142)]));return;}const _0x500f3a=_0x229428[_0x4476c9(0x179)][_0x4476c9(0x3bb)](0x6);_0x3863ec({'imageId':_0x500f3a,'imageSourceType':_0x36c3dd[_0x4476c9(0x481)][_0x4476c9(0x201)],'source':_0x1ca665,'base64Cache':_0x366603,'status':_0x36c3dd[_0x4476c9(0x298)][_0x4476c9(0x4a4)]}),this[_0x4476c9(0x4a1)]();};});}[_0x4c996d(0xf5)](){const _0x2e7667=_0x4c996d;var _0x248f49,_0x1af71d;const _0xbf8187=this[_0x2e7667(0x27a)]['getConfig'](_0x4a6771),_0x57e13b=this[_0x2e7667(0x27a)][_0x2e7667(0x2d8)](_0x4dd3a7);return(_0x1af71d=(_0x248f49=_0x57e13b==null?void 0x0:_0x57e13b['uploadFileServerUrl'])!=null?_0x248f49:_0xbf8187)!=null?_0x1af71d:_0x1309ed;}['_getSignURL'](){const _0x8d9b75=_0x4c996d;var _0x45dcc5,_0x315db2;const _0x11bc9e=this[_0x8d9b75(0x27a)]['getConfig'](_0x2752e7),_0x9b84d0=this[_0x8d9b75(0x27a)]['getConfig'](_0x4dd3a7);return(_0x315db2=(_0x45dcc5=_0x9b84d0==null?void 0x0:_0x9b84d0[_0x8d9b75(0x259)])!=null?_0x45dcc5:_0x11bc9e)!=null?_0x315db2:_0x56902a;}[_0x4c996d(0x2b1)](){const _0x4eac9a=_0x4c996d;var _0x2f2d0f;const _0x64a1f7=this[_0x4eac9a(0x27a)]['getConfig'](_0x4dd3a7);return(_0x2f2d0f=_0x64a1f7==null?void 0x0:_0x64a1f7[_0x4eac9a(0x111)])!=null?_0x2f2d0f:location[_0x4eac9a(0x155)];}[_0x4c996d(0x488)](_0x460b3b,_0x404cc3){const _0x114fa3=_0x4c996d;return _0x460b3b[_0x114fa3(0x162)](_0x114fa3(0x271),_0x404cc3);}[_0x4c996d(0x4a1)](){const _0x389f6e=_0x4c996d;this['_waitCount']-=0x1,this[_0x389f6e(0x494)]['next'](this[_0x389f6e(0x31c)]);}},_0x326761[_0x4c996d(0x34b)]=_0x227620([_0x44ee1c(0x0,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)])),_0x44ee1c(0x1,_0x229428[_0x4c996d(0x274)]),_0x44ee1c(0x2,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x299)]))],_0x326761['ImageIoService']);var _0x7d46b9=Object['defineProperty'],_0x2607e1=Object[_0x4c996d(0x16a)],_0x40b314=(_0x3755ca,_0x5cc9ee,_0x55ef42,_0x4620b8)=>{const _0x477fa2=_0x4c996d;for(var _0x581b6a=_0x4620b8>0x1?void 0x0:_0x4620b8?_0x2607e1(_0x5cc9ee,_0x55ef42):_0x5cc9ee,_0x1192a0=_0x3755ca[_0x477fa2(0x260)]-0x1,_0x23bc44;_0x1192a0>=0x0;_0x1192a0--)(_0x23bc44=_0x3755ca[_0x1192a0])&&(_0x581b6a=(_0x4620b8?_0x23bc44(_0x5cc9ee,_0x55ef42,_0x581b6a):_0x23bc44(_0x581b6a))||_0x581b6a);return _0x4620b8&&_0x581b6a&&_0x7d46b9(_0x5cc9ee,_0x55ef42,_0x581b6a),_0x581b6a;},_0x1e9df0=(_0x57849c,_0x4fd64a)=>(_0x13d3d4,_0x12311e)=>_0x4fd64a(_0x13d3d4,_0x12311e,_0x57849c);let _0x172ba0=class extends _0x229428[_0x4c996d(0x119)]{constructor(_0x1bdf9f,_0x437a40,_0x20f9ca,_0x1d7d7b,_0x2141cc){const _0x58bda7=_0x4c996d;super(),this[_0x58bda7(0x112)]=_0x1bdf9f,this[_0x58bda7(0x456)]=_0x437a40,this[_0x58bda7(0x300)]=_0x20f9ca,this['_collaborationSessionService']=_0x1d7d7b,this[_0x58bda7(0x1ca)]=_0x2141cc,this[_0x58bda7(0x3a3)](),this['_initCloseConn']();}[_0x4c996d(0x41e)](){const _0x20d648=_0x4c996d,_0x237764=async _0x3f4d98=>{const _0x572050=_0x59fd;(await this[_0x572050(0x1cf)][_0x572050(0x339)](_0x3f4d98))[_0x572050(0x13f)][_0x572050(0x2b6)](_0x2032d6[_0x572050(0x232)](_0x289f55=>_0x289f55[_0x572050(0x1c0)]===_0x16a1a7[_0x572050(0x15d)][_0x572050(0x17b)]),_0x2032d6[_0x572050(0xf1)](this[_0x572050(0x47b)]))[_0x572050(0x451)](_0x10e2ee=>{const _0x21297d=_0x572050,_0x1eb6e2=_0x10e2ee,{reason:_0x276b0a}=_0x1eb6e2['data'];this[_0x21297d(0x112)][_0x21297d(0x453)](_0x5d918d[_0x21297d(0x19e)])[_0x21297d(0x1d9)]({'type':_0x71e3dd[_0x21297d(0x123)][_0x21297d(0x3ca)],'content':this[_0x21297d(0x1ca)]['t'](_0x21297d(0x17a))+'('+_0x276b0a+')'}),this['_permissionService']['updatePermissionPoint'](new _0x4118a6[(_0x21297d(0x4a7))](_0x3f4d98)['id'],!0x1),this[_0x21297d(0x1cf)]['closeSession'](_0x3f4d98);});};_0x4a5f0c[_0x20d648(0x49f)](this[_0x20d648(0x456)][_0x20d648(0x493)](_0x229428[_0x20d648(0x2b5)][_0x20d648(0x11a)]),this[_0x20d648(0x456)][_0x20d648(0x493)](_0x229428[_0x20d648(0x2b5)][_0x20d648(0x4b2)]))[_0x20d648(0x2b6)](_0x2032d6[_0x20d648(0x3fb)](_0xcab50c=>_0xcab50c[_0x20d648(0x40b)]()),_0x2032d6['filter'](_0x12d1c8=>!_0x229428[_0x20d648(0x401)](_0x12d1c8)),_0x2032d6[_0x20d648(0xf1)](this[_0x20d648(0x47b)]))[_0x20d648(0x451)](_0x120f79=>{_0x237764(_0x120f79);});}[_0x4c996d(0x3a3)](){const _0x50341d=_0x4c996d,_0x3cd5e5=async _0x264d2b=>{const _0x248edc=_0x59fd;(await this['_collaborationSessionService']['requireSession'](_0x264d2b))[_0x248edc(0x13f)][_0x248edc(0x2b6)](_0x2032d6[_0x248edc(0x232)](_0x583173=>_0x583173[_0x248edc(0x1c0)]===_0x16a1a7['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),_0x2032d6[_0x248edc(0xf1)](this[_0x248edc(0x47b)]))[_0x248edc(0x451)](_0x232abb=>{const _0x5dfc05=_0x248edc,_0x42b0f5=_0x232abb,{objectId:_0x2904ae}=_0x42b0f5[_0x5dfc05(0x223)],_0x3b2db2=this[_0x5dfc05(0x112)]['get'](_0x52d884[_0x5dfc05(0x1f8)]);_0x2904ae===_0x264d2b?_0x3b2db2[_0x5dfc05(0x185)](_0x264d2b):_0x3b2db2[_0x5dfc05(0x2dc)](_0x264d2b,_0x2904ae);});};_0x4a5f0c[_0x50341d(0x49f)](this[_0x50341d(0x456)]['getTypeOfUnitAdded$'](_0x229428[_0x50341d(0x2b5)][_0x50341d(0x11a)]),this[_0x50341d(0x456)]['getTypeOfUnitAdded$'](_0x229428[_0x50341d(0x2b5)][_0x50341d(0x4b2)]))[_0x50341d(0x2b6)](_0x2032d6[_0x50341d(0x3fb)](_0x98eb16=>_0x98eb16[_0x50341d(0x40b)]()),_0x2032d6[_0x50341d(0x232)](_0x44d3a5=>!_0x229428[_0x50341d(0x401)](_0x44d3a5)),_0x2032d6[_0x50341d(0xf1)](this['dispose$']))['subscribe'](_0x3180d4=>{_0x3cd5e5(_0x3180d4);});}};_0x172ba0=_0x40b314([_0x1e9df0(0x0,_0x229428['Inject'](_0x229428['Injector'])),_0x1e9df0(0x1,_0x229428[_0x4c996d(0x299)]),_0x1e9df0(0x2,_0x229428[_0x4c996d(0x4bb)]),_0x1e9df0(0x3,_0x229428['Inject'](_0x326761['CollaborationSessionService'])),_0x1e9df0(0x4,_0x229428[_0x4c996d(0x25c)](_0x229428[_0x4c996d(0x23a)]))],_0x172ba0);var _0x2a098a=Object[_0x4c996d(0x287)],_0x301ee9=Object['getOwnPropertyDescriptor'],_0x21bbf3=(_0x399410,_0xb5167a,_0x407c47,_0x493b4a)=>{for(var _0x432a86=_0x493b4a>0x1?void 0x0:_0x493b4a?_0x301ee9(_0xb5167a,_0x407c47):_0xb5167a,_0x29afee=_0x399410['length']-0x1,_0x23948b;_0x29afee>=0x0;_0x29afee--)(_0x23948b=_0x399410[_0x29afee])&&(_0x432a86=(_0x493b4a?_0x23948b(_0xb5167a,_0x407c47,_0x432a86):_0x23948b(_0x432a86))||_0x432a86);return _0x493b4a&&_0x432a86&&_0x2a098a(_0xb5167a,_0x407c47,_0x432a86),_0x432a86;},_0x534688=(_0x5bb78d,_0x35d181)=>(_0x546652,_0x85c23b)=>_0x35d181(_0x546652,_0x85c23b,_0x5bb78d);_0x326761[_0x4c996d(0x143)]=class{constructor(_0x54656c,_0x21b061){const _0x286e3d=_0x4c996d;this[_0x286e3d(0x27a)]=_0x54656c,this[_0x286e3d(0x4a2)]=_0x21b061;}async[_0x4c996d(0x1d7)](_0x3bd6d9,_0x1a82eb){const _0x2b82eb=_0x4c996d;var _0x4d20af;const {unitID:_0x7a3fa4,type:_0x29fdd9,revision:_0x2b50fe=0x0}=_0x1a82eb,_0x35bd83=this[_0x2b82eb(0xe7)]()+'/'+_0x29fdd9+_0x2b82eb(0x4ae)+_0x7a3fa4+_0x2b82eb(0x290)+_0x2b50fe,_0x378c66=(await this[_0x2b82eb(0x4a2)][_0x2b82eb(0x453)](_0x35bd83))['body'],_0x2c137f=(_0x4d20af=_0x378c66[_0x2b82eb(0x101)])==null?void 0x0:_0x4d20af[_0x2b82eb(0x27e)];if(_0x2c137f){const _0x1fdd2c=_0x2c137f==null?void 0x0:_0x2c137f['originalMeta'],_0x2126a0=_0x16a1a7[_0x2b82eb(0x3e7)]['encode'](_0x16a1a7['b64DecodeUnicode'](_0x1fdd2c));_0x2c137f[_0x2b82eb(0x18d)]=_0x2126a0,Object[_0x2b82eb(0x48f)](_0x2c137f[_0x2b82eb(0xe5)])[_0x2b82eb(0x139)](([,_0x48fb44])=>{const _0xada3c8=_0x2b82eb,_0x132774=_0x48fb44['originalMeta'],_0x32cdb2=_0x16a1a7['textEncoder'][_0xada3c8(0x490)](_0x16a1a7['b64DecodeUnicode'](_0x132774));_0x48fb44[_0xada3c8(0x18d)]=_0x32cdb2;});}return _0x378c66;}async[_0x4c996d(0x440)](_0xfe436c,_0x383345){const _0x2fcb52=_0x4c996d,{unitID:_0x331e85,type:_0x2a48bc,blockID:_0x1d50bb}=_0x383345,_0x5cf3cd=this[_0x2fcb52(0x41c)]()+'/'+_0x2a48bc+_0x2fcb52(0x4ae)+_0x331e85+'/block/'+_0x1d50bb;return(await this[_0x2fcb52(0x4a2)]['get'](_0x5cf3cd))[_0x2fcb52(0x3bd)];}async[_0x4c996d(0xfb)](_0x3ff9bb,_0x41cd41){const _0x18c098=_0x4c996d,{unitID:_0x1f8575,type:_0x48ecc5,blockID:_0x33a483}=_0x41cd41,_0x31d788=this[_0x18c098(0x41c)]()+_0x18c098(0x26d)+_0x48ecc5+_0x18c098(0x4ae)+_0x1f8575+_0x18c098(0x26d)+_0x33a483;return(await this[_0x18c098(0x4a2)]['get'](_0x31d788))[_0x18c098(0x3bd)];}async['fetchMissingChangesets'](_0x27a894,_0x537b6d){const _0x122d31=_0x4c996d,{unitID:_0xf7ac27,type:_0xf3d30d,from:_0x45c9f1,to:_0x3f2564}=_0x537b6d,_0x2d8d3b=this['_getAPIPrefix']()+'/'+_0xf3d30d+'/unit/'+_0xf7ac27+_0x122d31(0x321)+_0x45c9f1+_0x122d31(0x3b2)+_0x3f2564;return(await this[_0x122d31(0x4a2)][_0x122d31(0x453)](_0x2d8d3b))[_0x122d31(0x3bd)];}[_0x4c996d(0xe7)](){const _0x3ab4f2=_0x4c996d;var _0x422135;return(_0x422135=this[_0x3ab4f2(0x27a)][_0x3ab4f2(0x2d8)](_0x19655e))!=null?_0x422135:this[_0x3ab4f2(0x41c)]();}[_0x4c996d(0x41c)](){const _0x3e409b=_0x4c996d;var _0x760c4c,_0x36ec14;const _0x47203a=this[_0x3e409b(0x27a)]['getConfig'](_0xa2f44),_0x3ce204=this[_0x3e409b(0x27a)][_0x3e409b(0x2d8)](_0x4dd3a7);return(_0x36ec14=(_0x760c4c=_0x3ce204==null?void 0x0:_0x3ce204['snapshotServerUrl'])!=null?_0x760c4c:_0x47203a)!=null?_0x36ec14:_0x11a848;}async[_0x4c996d(0x3f1)](_0x2a433b,_0x309b42){const _0x296a2b=_0x4c996d,_0x57e5bf='/universer-api/snapshot/'+_0x309b42[_0x296a2b(0x462)]+_0x296a2b(0x4ae)+_0x309b42[_0x296a2b(0x341)]+_0x296a2b(0x1a2);return(await this[_0x296a2b(0x4a2)][_0x296a2b(0x453)](_0x57e5bf,{'params':{'resourceId':JSON[_0x296a2b(0x415)](_0x309b42[_0x296a2b(0x17d)])}}))[_0x296a2b(0x3bd)];}['saveSnapshot'](){const _0x1930d1=_0x4c996d;throw new Error(_0x1930d1(0x4d6));}[_0x4c996d(0x280)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4c996d(0x1a4)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4c996d(0x226)](){const _0x55ef39=_0x4c996d;throw new Error(_0x55ef39(0x4d6));}},_0x326761[_0x4c996d(0x143)]=_0x21bbf3([_0x534688(0x0,_0x229428[_0x4c996d(0x274)]),_0x534688(0x1,_0x229428[_0x4c996d(0x25c)](_0x1d2d7f[_0x4c996d(0x159)]))],_0x326761[_0x4c996d(0x143)]);var _0x2cdb9c=Object[_0x4c996d(0x287)],_0x3d8615=Object[_0x4c996d(0x16a)],_0x57e613=(_0x5b17b0,_0x4bb659,_0x38b690,_0x48da04)=>{const _0xd144e3=_0x4c996d;for(var _0xaf8509=_0x48da04>0x1?void 0x0:_0x48da04?_0x3d8615(_0x4bb659,_0x38b690):_0x4bb659,_0x34917e=_0x5b17b0[_0xd144e3(0x260)]-0x1,_0x289998;_0x34917e>=0x0;_0x34917e--)(_0x289998=_0x5b17b0[_0x34917e])&&(_0xaf8509=(_0x48da04?_0x289998(_0x4bb659,_0x38b690,_0xaf8509):_0x289998(_0xaf8509))||_0xaf8509);return _0x48da04&&_0xaf8509&&_0x2cdb9c(_0x4bb659,_0x38b690,_0xaf8509),_0xaf8509;},_0x1a989f=(_0x142b43,_0x7bc4ad)=>(_0x2fc395,_0x30f81c)=>_0x7bc4ad(_0x2fc395,_0x30f81c,_0x142b43);let _0x337ac3=class extends _0x229428['LocalUndoRedoService']{constructor(_0x5d936f,_0x23dfe0,_0x732b71,_0x491da3,_0x46887f){const _0x47fc56=_0x4c996d;super(_0x5d936f,_0x23dfe0,_0x732b71),this['_transformService']=_0x491da3,this[_0x47fc56(0x1e2)]=_0x46887f;}[_0x4c996d(0x272)](_0x18d3eb,_0x2254d6){const _0x148b3a=_0x4c996d,_0x4494b1=this[_0x148b3a(0x3da)](_0x18d3eb);if(_0x4494b1)try{const _0x44dbf6=this[_0x148b3a(0x498)](_0x4494b1,_0x2254d6);this[_0x148b3a(0x25b)](_0x18d3eb,_0x44dbf6);}catch(_0x24d8e8){this[_0x148b3a(0x1e2)][_0x148b3a(0x28e)](_0x148b3a(0x279),_0x24d8e8),this[_0x148b3a(0x4c1)](_0x18d3eb);}const _0x2de4cd=this[_0x148b3a(0x2b4)](_0x18d3eb);if(_0x2de4cd)try{const _0x43b492=this[_0x148b3a(0x498)](_0x2de4cd,_0x2254d6);this['_substituteRedoStack'](_0x18d3eb,_0x43b492);}catch(_0x20c09e){this[_0x148b3a(0x1e2)][_0x148b3a(0x28e)](_0x20c09e),this[_0x148b3a(0x323)](_0x18d3eb);}}[_0x4c996d(0x4c1)](_0x659813){const _0x599b0b=_0x4c996d,_0x5df91b=this[_0x599b0b(0x3da)](_0x659813);_0x5df91b&&(_0x5df91b['length']=0x0,this[_0x599b0b(0x1b4)]());}['_clearRedo'](_0x4ff06a){const _0x491f95=_0x4c996d,_0x3b4a6d=this['_getRedoStack'](_0x4ff06a);_0x3b4a6d&&(_0x3b4a6d[_0x491f95(0x260)]=0x0,this[_0x491f95(0x1b4)]());}['_substituteUndoStack'](_0x280283,_0x189c5a){const _0x57aafc=_0x4c996d;this[_0x57aafc(0x194)]['set'](_0x280283,_0x189c5a),this[_0x57aafc(0x1b4)]();}[_0x4c996d(0x20e)](_0x54a5ea,_0x4f2640){const _0x3093fe=_0x4c996d;this[_0x3093fe(0x2ea)]['set'](_0x54a5ea,_0x4f2640),this['_updateStatus']();}['_transformStack'](_0x3f1939,_0x3897d3){const _0x4c1ece=_0x4c996d,_0x4ba692=[];let _0x5051de=_0x3897d3,_0x2e11e2=_0x3897d3;for(let _0x3e530d=_0x3f1939[_0x4c1ece(0x260)]-0x1;_0x3e530d>=0x0;_0x3e530d--){const {unitID:_0x43653f,undoMutations:_0x437d95,redoMutations:_0xafd688}=_0x3f1939[_0x3e530d],_0x530c9f=this[_0x4c1ece(0x49e)][_0x4c1ece(0x4a0)](_0x5051de,_0x437d95),_0x596444=this['_transformService'][_0x4c1ece(0x4a0)](_0x2e11e2,_0xafd688);if(_0x16a1a7[_0x4c1ece(0x463)](_0x530c9f)||_0x16a1a7[_0x4c1ece(0x463)](_0x596444)){this[_0x4c1ece(0x1e2)][_0x4c1ece(0x28e)]('[CollaborationUndoRedoService]',_0x4c1ece(0x2ff),_0x530c9f,_0x596444);break;}_0x5051de=_0x530c9f[_0x4c1ece(0x386)],_0x2e11e2=_0x596444[_0x4c1ece(0x386)],_0x4ba692[_0x4c1ece(0x2be)]({'unitID':_0x43653f,'undoMutations':_0x530c9f[_0x4c1ece(0x1e0)],'redoMutations':_0x596444[_0x4c1ece(0x1e0)]});}return _0x4ba692[_0x4c1ece(0x1db)]();}};_0x337ac3=_0x57e613([_0x1a989f(0x0,_0x229428[_0x4c996d(0x299)]),_0x1a989f(0x1,_0x229428['ICommandService']),_0x1a989f(0x2,_0x229428['IContextService']),_0x1a989f(0x3,_0x16a1a7[_0x4c996d(0x2f5)]),_0x1a989f(0x4,_0x229428[_0x4c996d(0x363)])],_0x337ac3);class _0x3437fa extends _0x229428['RxDisposable']{constructor(){const _0x3cfeab=_0x4c996d;super(),_0xb4d35(this,_0x3cfeab(0x420)),this['urlChange$']=_0x4a5f0c['fromEvent'](window,'popstate')[_0x3cfeab(0x2b6)](_0x4a5f0c[_0x3cfeab(0xf1)](this['dispose$']),_0x4a5f0c[_0x3cfeab(0x46b)](0x1),_0x4a5f0c['mapTo'](void 0x0));}[_0x4c996d(0x1d2)](_0x2695cf,_0x3a4896,_0x2b8cf6=!0x1){const _0x178177=_0x4c996d,_0x1b90bb=new URL(window['location'][_0x178177(0x22d)]);_0x1b90bb[_0x178177(0x446)][_0x178177(0x22e)](_0x2695cf,_0x3a4896),_0x2b8cf6?window[_0x178177(0x10f)]['replaceState']('','',_0x1b90bb['toString']()):window[_0x178177(0x10f)][_0x178177(0x33f)]('','',_0x1b90bb[_0x178177(0x1af)]());}[_0x4c996d(0xfe)](_0x2c0b12,_0x1a8985=!0x1){const _0x5104dc=_0x4c996d,_0x419ce5=new URL(window[_0x5104dc(0x1bf)][_0x5104dc(0x22d)]);_0x419ce5['searchParams'][_0x5104dc(0x4d4)](_0x2c0b12),_0x1a8985?window['history']['replaceState']('','',_0x419ce5['toString']()):window['history'][_0x5104dc(0x33f)]('','',_0x419ce5['toString']());}[_0x4c996d(0x193)](_0x1a31f0){const _0x5146af=_0x4c996d;var _0x57b426;return(_0x57b426=new URL(window[_0x5146af(0x1bf)][_0x5146af(0x22d)])[_0x5146af(0x446)]['get'](_0x1a31f0))!=null?_0x57b426:void 0x0;}}var _0x5c7919=Object[_0x4c996d(0x287)],_0x718026=Object[_0x4c996d(0x16a)],_0x473376=(_0x188515,_0x4efdf7,_0x327648)=>_0x4efdf7 in _0x188515?_0x5c7919(_0x188515,_0x4efdf7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x327648}):_0x188515[_0x4efdf7]=_0x327648,_0x3c0457=(_0x1b46e0,_0x3a391f,_0xa565a8,_0x3cd52b)=>{const _0x2e6810=_0x4c996d;for(var _0x2724eb=_0x3cd52b>0x1?void 0x0:_0x3cd52b?_0x718026(_0x3a391f,_0xa565a8):_0x3a391f,_0x2948df=_0x1b46e0[_0x2e6810(0x260)]-0x1,_0x52d428;_0x2948df>=0x0;_0x2948df--)(_0x52d428=_0x1b46e0[_0x2948df])&&(_0x2724eb=(_0x3cd52b?_0x52d428(_0x3a391f,_0xa565a8,_0x2724eb):_0x52d428(_0x2724eb))||_0x2724eb);return _0x3cd52b&&_0x2724eb&&_0x5c7919(_0x3a391f,_0xa565a8,_0x2724eb),_0x2724eb;},_0x54de90=(_0x2895a4,_0x2f7461)=>(_0x2f1247,_0x256857)=>_0x2f7461(_0x2f1247,_0x256857,_0x2895a4),_0x10a24b=(_0x3ba86a,_0x5d0d8a,_0x2e24e8)=>_0x473376(_0x3ba86a,_0x5d0d8a+'',_0x2e24e8);const _0x884d51='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x326761[_0x4c996d(0x205)]=class extends _0x229428[_0x4c996d(0x403)]{constructor(_0x12045f=_0x394e50,_0x1a07f8,_0x3458fc,_0x52a9ba,_0x56ca49){const _0x54f752=_0x4c996d;super(),this[_0x54f752(0x1c4)]=_0x12045f,this[_0x54f752(0x1e2)]=_0x1a07f8,this[_0x54f752(0x1bd)]=_0x3458fc,this[_0x54f752(0x112)]=_0x52a9ba,this[_0x54f752(0x27a)]=_0x56ca49;const {..._0x563766}=this['_config'];this['_configService'][_0x54f752(0x492)](_0x4dd3a7,_0x563766);}['onStarting'](){const _0x5fd424=_0x4c996d;this['_registerDependencies'](),_0x229428[_0x5fd424(0x27c)](this[_0x5fd424(0x112)],[[_0xb1b57a],[_0x326761[_0x5fd424(0x374)]],[_0x172ba0]]);}[_0x4c996d(0x170)](){const _0x337dca=_0x4c996d;_0x229428['touchDependencies'](this[_0x337dca(0x112)],[[_0x42d342]]);}[_0x4c996d(0xff)](){const _0x199f57=_0x4c996d;this[_0x199f57(0x1d0)]();}[_0x4c996d(0x3fa)](){const _0x30d4c3=_0x4c996d;var _0x293201,_0x1120b9,_0x45e66d,_0x1c0662;this[_0x30d4c3(0x112)][_0x30d4c3(0x1df)](_0x229428[_0x30d4c3(0x1dc)])&&this['_logService']['error']('[UniverCollaborationClientPlugin]',_0x30d4c3(0x2b0));let _0x475b37=[[_0x229428['IUndoRedoService'],{'useClass':_0x337ac3}],[_0x326761[_0x30d4c3(0x368)]],[_0x1e0ec9],[_0x1d2d7f[_0x30d4c3(0x159)]],[_0x11dc92,{'useClass':_0x3437fa}],[_0x4090c9],[_0x326761['LocalCacheService']],[_0x1d2d7f[_0x30d4c3(0x33a)]],[_0x186ee5],[_0x483ac7],[_0x2bdd5b],[_0x4ef234],[_0x2d5dc0],[_0x48f009],[_0x22cb76],[_0x172ba0],[_0x52a4b9,{'useClass':(_0x1120b9=(_0x293201=this['_config'])==null?void 0x0:_0x293201[_0x30d4c3(0x3f9)])!=null?_0x1120b9:_0x326761[_0x30d4c3(0x2bb)]}],[_0x1d2d7f[_0x30d4c3(0x27b)],{'useClass':_0x1d2d7f['XHRHTTPImplementation']}],[_0x16a1a7[_0x30d4c3(0x46f)],{'useClass':_0x326761['SnapshotServerOverHTTPService']}],[_0x229428[_0x30d4c3(0x361)],{'useClass':_0x326761[_0x30d4c3(0x3be)]}],[_0x36c3dd[_0x30d4c3(0x34e)],{'useClass':_0x326761[_0x30d4c3(0x34b)]}],[_0x326761[_0x30d4c3(0x11d)]],[_0x326761[_0x30d4c3(0x374)]],[_0x326761[_0x30d4c3(0x1d1)]],[_0x42d342],[_0xb1b57a]];(_0x45e66d=this[_0x30d4c3(0x1c4)])!=null&&_0x45e66d[_0x30d4c3(0x275)]&&_0x475b37[_0x30d4c3(0x2be)]([_0x1826d2,{'useClass':_0x3d8d47}]),_0x475b37=_0x229428[_0x30d4c3(0x1ad)](_0x475b37,(_0x1c0662=this[_0x30d4c3(0x1c4)])==null?void 0x0:_0x1c0662[_0x30d4c3(0x316)]),_0x475b37['forEach'](_0x1ecfdb=>this[_0x30d4c3(0x112)][_0x30d4c3(0x4c6)](_0x1ecfdb)),this[_0x30d4c3(0x37b)]();}[_0x4c996d(0x1d0)](){const _0x13b52a=_0x4c996d;this[_0x13b52a(0x315)](this[_0x13b52a(0x1bd)][_0x13b52a(0x2f7)](_0x229428[_0x13b52a(0x2b5)][_0x13b52a(0x4b2)],[_0x5e0d56])),this[_0x13b52a(0x315)](this[_0x13b52a(0x1bd)][_0x13b52a(0x2f7)](_0x229428['UniverInstanceType']['UNIVER_SHEET'],[_0x1e23e3]));}['_initModules'](){const _0x23d204=_0x4c996d;var _0x13c1bd,_0x25c76a;this['_injector'][_0x23d204(0x453)](_0x1d2d7f['HTTPService'])[_0x23d204(0x335)]({'priority':0x14,'interceptor':_0x1d2d7f['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x23d204(0x112)][_0x23d204(0x453)](_0x48f009),(_0x13c1bd=this[_0x23d204(0x1c4)])!=null&&_0x13c1bd['enableOfflineEditing']||this[_0x23d204(0x112)][_0x23d204(0x453)](_0x326761[_0x23d204(0x166)])[_0x23d204(0x3af)](),(_0x25c76a=this[_0x23d204(0x1c4)])!=null&&_0x25c76a[_0x23d204(0x2d0)]&&this[_0x23d204(0x112)][_0x23d204(0x453)](_0x2d5dc0),this['_injector'][_0x23d204(0x453)](_0x326761[_0x23d204(0x11d)]),this[_0x23d204(0x112)][_0x23d204(0x1df)](_0x326761[_0x23d204(0x1d1)])&&this['_injector'][_0x23d204(0x453)](_0x326761['DesktopCollaborationStatusDisplayController']);}},_0x10a24b(_0x326761['UniverCollaborationClientPlugin'],'pluginName',_0x884d51),_0x326761[_0x4c996d(0x205)]=_0x3c0457([_0x229428[_0x4c996d(0xcb)](_0x16a1a7[_0x4c996d(0x107)]),_0x54de90(0x1,_0x229428['ILogService']),_0x54de90(0x2,_0x33f8a9[_0x4c996d(0x3d8)]),_0x54de90(0x3,_0x229428[_0x4c996d(0x25c)](_0x229428['Injector'])),_0x54de90(0x4,_0x229428[_0x4c996d(0x274)])],_0x326761['UniverCollaborationClientPlugin']),_0x326761[_0x4c996d(0x473)]=_0x6362c5,_0x326761[_0x4c996d(0x3b6)]=_0x18a4d2,_0x326761['COLLAB_WEB_SOCKET_URL_KEY']=_0x5ebc49,_0x326761[_0x4c996d(0x15f)]=_0x4b8cf1,_0x326761[_0x4c996d(0x34d)]=_0x30eb65,_0x326761[_0x4c996d(0x135)]=_0x22cb76,_0x326761[_0x4c996d(0x3ae)]=_0x59a3ea,_0x326761['HEARTBEAT_TIMEOUT_KEY']=_0x1edc8f,_0x326761[_0x4c996d(0x163)]=_0x52a4b9,_0x326761['IURLService']=_0x11dc92,_0x326761['LOCAL_CACHE_INTERVAL_KEY']=_0x385d5f,_0x326761['LOGIN_URL_KEY']=_0x2c7366,_0x326761['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x2d286d,_0x326761[_0x4c996d(0x4d5)]=_0x17c04c,_0x326761[_0x4c996d(0x3d6)]=_0xa2f44,_0x326761[_0x4c996d(0x2bc)]=_0x19655e,_0x326761[_0x4c996d(0x344)]=_0x44beef,_0x326761['SheetCollabCursorShape']=_0x3f46bd,_0x326761['WebURLService']=_0x3437fa,_0x326761[_0x4c996d(0x244)]=_0xbf8362,_0x326761['serializeCombRequest']=_0x2f6e37,Object[_0x4c996d(0x287)](_0x326761,Symbol['toStringTag'],{'value':_0x4c996d(0x157)});}));function _0x59fd(_0x39a4ae,_0x3ed483){const _0x42c5f5=_0x42c5();return _0x59fd=function(_0x59fdbe,_0x327c5c){_0x59fdbe=_0x59fdbe-0xca;let _0x51ef54=_0x42c5f5[_0x59fdbe];return _0x51ef54;},_0x59fd(_0x39a4ae,_0x3ed483);}function _0x42c5(){const _0x10e1f0=['ITelemetryService','ONLINE','UniverRpc','CHANGESET_ACK','_onCombEvent','_updateCollabCursors','[FetchMissState]','awaiting','unitId','_initUnitPermissionChange','toRgbString','IDLE','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','UNIVER_UNKNOWN','Subject','onCommentUpdate','textRanges','on-line-single','/universer-api/stream/file/upload','_handleLeaveEvent','HEARTBEAT_INTERVAL_KEY','disableLocalCache','@univerjs-pro/license','list','&to=','indexOf','getCoordByCell','HEARTBEAT_INTERVAL','COLLAB_SUBMIT_CHANGESET_URL_KEY','svg','/universer-api/comb','LICENSE_EXPORT_SIZE_EXCEEDED','SetWorksheetActivateCommand','generateRandomId','x-univer-host','body','AuthzIoHttpService','YUUMI_URL_COL_OUT_OF_RANGE','session.collaboration-timeout','_telemetryInfo','_timeoutTimer','debounceTime','onlyLocal','POST','_cachedData','image/jpeg','onPointerEnter$','range','Error','_onUserJoin','_transformRemoteChangesetByIMECache','open$','commentUpdate$','#fff','isTransformMutationFailure','sessionStatus$','restore','idSuffix','collaboration_new_changeset','collabStatus.conflict','SNAPSHOT_SERVER_URL_KEY','_initRequestHeader','IRenderManagerService','USERS_LEAVE','_getUndoStack','UNKNOWN_CODE','userID','_transitionLocked','DisposableCollection','UniverSheetsUi','random','_startSheetCollabCursor','getUniverSheetInstance','UniverLicense','clearInterval','INGEST','_onMessage','textEncoder','ColorKit','getCollabEntity$','defs','[SyncedState]:\x20received\x20rejection.','_scheduleHeartbeat','_hovered','collaboration-session-retry','_scheduleCollaborationTimeoutTimer','_cursorShapes','getResourcesRequest','_collabCursorState$','startsWith','url(#on-line-single_clip0_910_349)','getTypeOfUnitDisposed$','selection','use','incrementRevOfUnit','socketService','_registerDependencies','map','getMember','session','addEventListener','UniverCore','_toggleOnline','isInternalEditorID','fill','Plugin','SheetSkeletonManagerService','CHANGESET_REVISION_CONFILICT','purple300','activeSheet$','save','univer-online-status','handleMoveRange','getUnitId','isPermissionRej','InsertRangeMoveDownCommandId','USERS_ENTER','HEARTBEAT','M0\x200H16V16H0z','call','init','UNAUTHENTICATED','_getLoginPath','stringify','_initCommandExecutedListener','duration','resend','skeleton','INTERNAL_ERROR','RECV','_getAPIPrefix','getUndoRedoMutationParamsCache','_initCloseConn','endRow','urlChange$','/allowed','Unknown\x20user','size','Optional','JOIN','SNAPSHOT_INVALID_SNAPSHOT','OTHER_CLIENTS_EDITING','getFocusedUnit','pauseCollaboration','_anchorDot','on-line-single_clip0_910_349','_instanceService','[CollaborationEntity]','_acknowledgedAwaitingChangeset','_session','_clearOtherTimers','mutations','assign','_anchor','_updateState','getImage','react','_tryReconnect','registerOnClose','[DataLoaderController]','_startTelemetryCollaborationNewChangeset','_applyRemoteChangeset','ERROR_EXCEED_SIZE','_uiPartsService','permissionRejEvent','deleteCollaborator','getSheetBlock','stopTime','RemoveRowCommandId','_scheduleClearOtherTimer','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','&assign=','searchParams','/-/object/-/batch_allowed','Rect','sendChangesetTimeout','RefRangeService','sessionStatus','_schedule','Vector2','_entityInit$','liveShareNewHost','_cursorInfo$','subscribe','isArray','get','_imageSourceCache','onPointerMove$','_univerInstanceService','1997150JKZoDW','fromEvent','reduce','findNodePositionByCharIndex','_id','OnLineSingle','_remoteChangesetQueue','_unlockTransition','_updateLocalCursor','loadSheet','_status$','type','isTransformMutationsWithChangesetFailure','updateMember','connection\x20error','collabWebSocketUrl','_scheduleTimestamp','[PendingState]:\x20received\x20rejection.','_handler','_labelPosition','shareReplay','MSG_FOR_ERROR','contains','session.connection-failed','ISnapshotServerService','updatePermissionObjEvent','getSheetId','_scene','AUTHZ_URL_KEY','isValidRectRange','append','getItem','LOGIN_URL_KEY','_state','UniverSheets','doc.mutation.rich-text-editing','dispose$','_createInitialState','apply','_http','_lockTransition','registerBeforeClose','ImageSourceType','LIVESHARE_OPERATION','isTransformChangesetsSuccess','collabSubmitChangesetUrl','_messageService','_executeRemoteChangeset','name','_replaceFileID','_draw','changesets','_type','online','OffLineSingle','_onRefRangeChange','entries','encode','@univerjs/docs-ui','setConfig','getTypeOfUnitAdded$','_change$','headers','BehaviorSubject','46400OKSHpU','_transformStack','transformRemoteChangeset','icon','_tryEnsureSocket','COMPLETION_FINISHED','transformMutation','_transformService','merge','transformMutationsWithChangeset','_decreaseWaiting','_httpService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SUCCUSS','children','_unitID','WorkbookEditablePermission','_clearScheduledTask','handleInsertRangeMoveRight','_removeClearOtherTimer','sequenceExecute','onCommandExecuted','hide','/unit/','[CollaborationSession]','LEAVE','debounce','UNIVER_DOC','_beforeCloseService','PERMISSION_DENIED','[SyncedState]:\x20received\x20acknowledgement.','_createInitialStateImpl','COLLAB_WEB_SOCKET_URL','_socketMessageSubscription','_handleEvent','_docSkeletonManagerService','IPermissionService','VIEWPORT_KEY','symbol','SNAPSHOT_HAS_BEEN_REMOVED','getOwnPropertySymbols','setShapeProps','_clearUndo','APPLY_PERMISSION_DENIED','currentTheme$','handleIRemoveCol','handleInsertRangeMoveDown','add','_state$','_cursors','createInstance','includes','collab-rect-range-','clsx','min','onRemoteChangeset','create','CHANGESET_REJ','deserializeRangeWithSheet','fetchMissingChangesets','syncEditingCollabCursor','delete','SEND_CHANGESET_TIMEOUT_KEY','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_rescheduleHeartbeat','drawWith','_docSkeleton','_sendHeartbeat','InsertColCommandId','_incrementRevisionNumber','6894ygDLKR','parse','uni.network.url-service','UNIVER_PROJECT','arc','SheetsSelectionsService','HEADER_MENU','setWaitCount','DependentOn','currentSkeleton$','startRow','div','defIds','updateOfflineData','_syncEditingCollabCursor','InsertRangeMoveRightCommandId','[OfflineState]:\x20received\x20acknowledgement.','permission.content','_collabSessionService','_docTransformIMECacheService','status$','_collaborationTimeoutTimer','collaboration-client.config','COLORS','getCollabCursors$','UNRECOGNIZED','hasOwnProperty','csRejEvent','string','UPDATE_PERMISSION_OBJ','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','YUUMI_RATE_OVER_LIMIT','_showConflictNotification','0\x200\x2016\x2016','sheets','_ensureSubject','_getSnapshotAPIPrefix','fromEventSubject','@univerjs/ui','_render','registerRefRange','rgba(255,\x20255,\x20255,\x200.01)','parseProtocolChangeset','substring','round','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','takeUntil','subunit','TOO_MANY_REQUESTS','confirm','_getUploadFileURL','_sessions','message$','moveTo','_getAnchorBounding','@univerjs/sheets','getDeserializedSheetBlock','toggleOffline','parseChangesetToProtocol','removeParam','onRendered','_updateURLWithCurrentState','snapshot','_replayCachedMutations','_commentUpdate$','_disableEditing','_pendingMutations','toggleOnline','UniverCollaborationPlugin','getRenderById','image/jpg','telemetry\x20info\x20is\x20not\x20initialized','values','sheetID','_updateSubUnitFromURLParams','retryConnectingInterval','history','xlink:href','downloadEndpointUrl','_injector','font','collaMsg','FETCH_MISS','NOT_FOUND','getInterceptPoints','[PendingState]:\x20received\x20acknowledgement.','RxDisposable','UNIVER_SHEET','/universer-api/oidc/authpage','getCurrentUser','CollaborationController','max','_heartbeatTimer','\x0aCurrent:\x20','HttpExport','subUnitId','MessageType','28903356OppQvA','addObject','UniverDocsUi','Shape','_setupBeforeClosingHandler','getSkeleton','_getCurrentRevision','addObjects','trim','clipPath','?url=','_onFetchMissResult','toDisposable','_eventUnsubscribe','deepClone','closeSession','_name','CommentService','_isPermissionRej','_loadSheet','LICENSE_MAX_UNITS_EXCEEDED','forEach','offline','_initMergeInterceptor','addImageSourceCache','Warning','_commentService','event$','_entities','_unitStatus','ERROR_IMAGE','SnapshotServerOverHTTPService','getColor','COMPRESS_MUTATION_SEND','getSheetObject','univer-online-status-title','startColumn','PERMISSION_REJ','/object/','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','function','none','c2Prime','take','YUUMI_UNABLE_LOAD_URL','change$','rxjs/operators','m1Prime','SEND_CHANGESET_TIMEOUT','origin','univer-pro.collaboration-client.single-active-unit-service','Module','put','HTTPService','_transformSelections','createIdentifier','FETCH_MISSING','CollaborationEvent','_socketService','CollaborationStatus','getDocRanges','collabStatus.fetchMiss','replace','ICollaborationSocketService','color','clearTimeout','LocalCacheService','rxjs','height','getUnit','getOwnPropertyDescriptor','CONNECTOR_DATA_TOO_LARGE','_color','ERROR_IMAGE_TYPE','unload','UniverIcon','onReady','off-line-single_clip0_910_343','_hideTimer','some','_urlService','transformByState','_onLocalMutation','1208cLwssD','_fetchMissChangesets','Tools','collaboration.closeRoom','SHOULD_CLOSE_CONN','then','resourceIDs','onPointerLeave$','close$','find','Tooltip','RemoveColCommandId','@univerjs/telemetry','_initEventListeners','initWorkbookPermissionChange','target','_disabled','rev','attrs','onlineStatus','_candidateSocket','transformSelections','originalMeta','exhaustSavingTask','_localCacheService','_handleJoinEvent','_sessionStatus$','_cursor','getParam','_undoStacks','LIVESHARE_FETCH_OPERATIONS','_getSheetObject','roomMembers$','_textBubble','column','switchMap','_getSignURL','getUnitType','sheetId','IMessageService','getMemberID','displayName','_sheetSkeletonManagerService','/resources','params','saveChangeset','json','requestParams','_retryCount','UnitEmbedded','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','text','_backgroundColor','INVALID_ARGUMENT','mergeOverrideWithDependencies','getUnitStatus$','toString','_selfUnitIDs','objectID','UniverCollaborationClient','COMPRESS_MUTATION_APPLY','_updateStatus','getCollabEntity','off-line-single','_roomMembers$','catch','CompressMutationService','members','_docSyncEditingCollabCursorService','_joinRoom','_renderManagerService','jiqing500','location','eventID','concat','subscribeEvent','extend','_config','_awaitingChangeset','APPLY_REJECT','saveImage','_drawRectRange','fillText','_localeService','error$','RevisionService','TEXT_RANGE_LAYER_INDEX','state','_collaborationSessionService','_registerRenderDependencies','DesktopCollaborationStatusDisplayController','setParam','url','fetchMiss','bottom','getVpScrollXYInfoByPosToVp','getUnitOnRev','_compressMutationService','show','mapDocumentTypeToUniverType','reverse','IUndoRedoService','reject','_handleHover','has','m2Prime','ALREADY_EXISTS','_logService','getCurrentSelections','NodePositionConvertToRectRange','fromCollab','ICommandService','pending','appendMutation','UNDEFINED','_onConnectionOpen','_collabCursorController','onlineStatusTitle','getRelativeToViewportCoord','onMouseMove','_transformUndoRedoStack','_onConflict','129006innVbe','newValue','RichTextEditingMutation','setActiveRange','allowed','newCsEvent','cursorInfo','SheetPermissionInitController','collabCursorState$','createSocket','listRoles','propertyIsEnumerable','SetSelectionsOperation','_shouldReportTelemetry','DocSkeletonManagerService','useCallback','UUID','_throwTelemetryCollaborationNewChangeset','FileId','1em','UniverCollaborationClientPlugin','_onRemoteRejected','FAIL','revision','getTime','dispose','/universer-api/file/{fileID}/sign-url','\x20in\x20_schedule.','LIVESHARE_TERMINATE','_substituteRedoStack','UniverEngineRender','transform','UniverCollaboration','onRemoteAck','_startCollaboration','handleInsertRow','setTimeout','_removeCollabCursors','_drawTextRange','from','UniverDocs','state$','loadOfflineData','UnitSnapshot','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','@univerjs/engine-formula','complete','fetch_missing','_context','_undoRedoService','data','@univerjs/docs','AWAITING_WITH_PENDING','copyFileMeta','auth.needGotoLoginAlert','asObservable','_notificationService','localeService','unit','@univerjs/rpc','href','set','@univerjs/network','SnapshotService','synced','filter','failed\x20to\x20apply\x20missed\x20changesets!','conflict.content','_lastPointer','getWorkbookSelections','LIVESHARE_REQUEST_HOST','triggerDblclick','batchAllowed','LocaleService','submit\x20changeset\x20error!','FromArray','evenodd','concatMap','collab-text-anchor-','routeKey','_listenToOfflineEvent','setUndoRedoMutationParamsCache','_onRemoteChangeset','deserializeToCombResponse','listCollaborators','save\x20fail\x20reason\x20is\x20','[CollaborationSessionService]','with','_collaborationController','onTransformChange$','_socket','UniverDrawing','COLLAB_SUBMIT_CHANGESET_URL','readAsDataURL','ranges','flatMap','_onRemoteACK','all','getCurrentUnitForType','path','CommandType','next','top','setAlpha','signUrlServerUrl','PENDING','_substituteUndoStack','Inject','joinEvent','ThemeService','capture','length','replaceTextRanges','_online','_transformUndoredo','UniverEngineFormula','_range','_getSaveTimeout','collabStatus.notCollab','univer-online','_roomMembers','lineTo','onMissingChangesets','DeleteRangeMoveUpCommandId','/block/','focused$','src','getCellPositionByOffset','{fileID}','transformUndoRedo','_refRangeService','IConfigService','enableSingleActiveInstanceLock','roomMembers','@univerjs/engine-render','editingUnit','[CollaborationUndoRedoService]','_configService','IHTTPImplementation','touchDependencies','_collaborationPaused','workbook','_themeService','saveSheetBlock','_sheetTransformSelectionsService','INotificationService','Univer','_document','colorChannel1','isEditing','defineProperty','Undefined','getCurrent','black','OFFLINE','gold400','_stopTelemetryCollaborationNewChangeset','error','PSEUDO_FETCH_MISSING_RESULT','/rev/','transformIMECache','_snapshotServerService','_waitForHeartbeatResponse','actions','throttleTime','_onRecvEvent','useRef','ImageUploadStatusType','IUniverInstanceService','cursorInfo$','baseRev','_getAPIPrefixPath','_getCtorByUniverType','HTTPRequest','_memberService','enableLocalCache','_colorIndex','SheetCollaborationEntity','SYNCED','_saveCache','current','Disposable','labelPosition','row','React','translate(.97)','DocStateChangeManagerService','getRoom','awaiting_with_pending','prototype','_members','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_getDownloadEndpointURL','UPDATE_CURSOR','_clearCollaborationTimeoutTimer','_getRedoStack','UniverInstanceType','pipe','27307isnqES','startTime','debug','onload','CollaborationSocketService','SNAPSHOT_URL_KEY','HELLO','push','socket\x20open.','serializeRangeWithSheet','NOT_COLLAB','1040ZxwxyY','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_submitChangeset','measureText','collab-text-range-','transformChangesets','url(#off-line-single_clip0_910_343)','objectType','BASE64','_transformIMECache','_singleActiveUnitService','unknown','conflict','JSONX','enableAuthServer','_initStatusComponent','_createHandler','[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.','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','forwardRef','title','beginPath','getConfig','DocCollaborationEntity','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','visibilitychange','refreshPermission','_docTransformSelectionsService','post','YUUMI_SUBSCRIPTION_NOT_FOUND','Injector','UniverNetwork','LICENSE_IMPORT_SIZE_EXCEEDED','_onCursorUpdate','_initResize','univerjs-icon\x20univerjs-icon-','getRangePointData','infoRsp','currentColor','_localStorageService','_redoStacks','IUIPartsService','onRemoteRej','setCurrentUser','backgroundColor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','/role','_unitOnClients','getActiveSheet','DocIMEInputManagerService','getActiveRange','ITransformService','fillRule','registerRenderModule','LICENSE_DISTRO_REJECTED','assignAColorForMemberID','DeleteRangeMoveLeftCommandId','/universer-api/authz','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationState]:\x20apply\x20error!','_listenToOnlineEvent','transformStack\x20failed!','_permissionService','_clearHeartbeatTimer','_HTTPService','@univerjs/design','_onCursorDelete','_refreshCollabCursors','useDependency','@univerjs/core','MUTATION','getValue','_revisionService','updatePermissionPoint','_shapes','4097424ToNISW','collab-client.tooltip.reconnect','width','onMissedChangesetFetched','_colorAssignService','unshift','LIVESHARE_NEW_HOST','InsertSheetMutation','disposeWithMe','override','_onUserLeave','split','memberID','close','awaitingChangeset','_waitCount','_getSendChangesetTimeout','getAncestorScale','_onJoinRoomEvent','_onConnectionFailed','/fetchmissing?from=','loginUrlKey','_clearRedo','_updateLocalCache','AWAITING','shouldCloseConn','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_loadDoc','_checkMissing','COMMENT_UPDATE','permission.title','tag','responseType','status','combineLatest','EffectRefRangId','[OfflineState]:\x20received\x20rejection.','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformRemoteChangesetByIMECache','@univerjs/drawing','registerHTTPInterceptor','CollaborationEntity','_getScale','setInterval','requireSession','WebSocketService','getCurrentRevOfUnit','update','reconnect','fetchThroughInterceptors','pushState','_event$','unitID','_handleHeartbeatEvent','distinctUntilChanged','SessionStatus','image/png','amd','_snapshotService','Rectangle','onSendChangeset','patch','ImageIoService','clear','CollaborationStatusDisplay','IImageIoService','createElement','session.will-retry','_userManagerService','getSheetBySheetId','registerComponent','interceptor','NEW_CHANGESETS','_scheduleSaving','_send','ACTIVE_UNIT_EVENT_CHANNEL','blue400','selections','_toggleOffline','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','exports','_assignedColors','_clearLocalCache','_init','IAuthzIoService','red300','ILogService','_retryConnectingTimer','_queuedRemoteChangesets','visibilityState','CollaborationSession','CollaborationSessionService','_commandService','isActive','url(#$1','setItem','withCredentials','delay','collaboratorID','/-/object/list','_saveTaskMap','UNIVER_SLIDE','session.room-full','DataLoaderController','_exhaustRemoteChangesetQueue','_clearTimeoutTimer','_sendingTimer','executeCommand','APPLY_NON_SEQUENTIAL_REVISION','SUBMIT_CHANGESET','_initModules','_hover','result','objectActions','_sendHeartbeatTimer','...','cmd','resolve','onTransformIME','_socket$','onTransformSelections','c1Prime','commentUpdateEvent','_socketReady','roomInfos','_transformPreviousActiveRange','@univerjs/sheets-ui','@univerjs-pro/collaboration','liveShareOperation','send','_drawAnchor','JOINING','isTransformMutationsWithChangesetSuccess','univer-online-status-icon','APPLY_REVISION_CONFILICT','removeMember','RegularPolygon','_syncEditingCollabCursorService','/collaborator','getViewport','unsubscribe'];_0x42c5=function(){return _0x10e1f0;};return _0x42c5();}
|
1
|
+
(function(_0x8d81a1,_0x1f2f35){const _0x317ea5=_0x2bb3,_0x404dfb=_0x8d81a1();while(!![]){try{const _0x5f0a6a=-parseInt(_0x317ea5(0xe1))/0x1+parseInt(_0x317ea5(0x473))/0x2+-parseInt(_0x317ea5(0x267))/0x3+parseInt(_0x317ea5(0x488))/0x4+parseInt(_0x317ea5(0x1c7))/0x5+-parseInt(_0x317ea5(0x1db))/0x6+parseInt(_0x317ea5(0x23a))/0x7;if(_0x5f0a6a===_0x1f2f35)break;else _0x404dfb['push'](_0x404dfb['shift']());}catch(_0x1b4353){_0x404dfb['push'](_0x404dfb['shift']());}}}(_0x3a29,0xe8fab),function(_0x1b1b5a,_0x5e41a9){const _0x611a54=_0x2bb3;typeof exports==_0x611a54(0x1f5)&&typeof module<'u'?_0x5e41a9(exports,require(_0x611a54(0x10a)),require(_0x611a54(0x4d2)),require(_0x611a54(0x182)),require('@univerjs/design'),require(_0x611a54(0x444)),require(_0x611a54(0x3d4)),require(_0x611a54(0x454)),require(_0x611a54(0x2be)),require(_0x611a54(0x13f)),require('@univerjs/docs-ui'),require('@univerjs/sheets'),require(_0x611a54(0x14f)),require('@univerjs/drawing'),require(_0x611a54(0x126)),require(_0x611a54(0x30d)),require(_0x611a54(0x12b)),require('clsx'),require(_0x611a54(0xda)),require(_0x611a54(0x32a))):typeof define==_0x611a54(0x1e7)&&define[_0x611a54(0x1ea)]?define([_0x611a54(0x4b3),_0x611a54(0x10a),_0x611a54(0x4d2),_0x611a54(0x182),_0x611a54(0x107),'@univerjs/ui',_0x611a54(0x3d4),'@univerjs-pro/collaboration','@univerjs/telemetry',_0x611a54(0x13f),_0x611a54(0x4c4),'@univerjs/sheets',_0x611a54(0x14f),'@univerjs/drawing',_0x611a54(0x126),_0x611a54(0x30d),_0x611a54(0x12b),_0x611a54(0x165),_0x611a54(0xda),_0x611a54(0x32a)],_0x5e41a9):(_0x1b1b5a=typeof globalThis<'u'?globalThis:_0x1b1b5a||self,_0x5e41a9(_0x1b1b5a[_0x611a54(0x24e)]={},_0x1b1b5a[_0x611a54(0x33f)],_0x1b1b5a[_0x611a54(0x4d2)],_0x1b1b5a[_0x611a54(0x4d2)][_0x611a54(0x472)],_0x1b1b5a[_0x611a54(0x4b6)],_0x1b1b5a[_0x611a54(0x438)],_0x1b1b5a[_0x611a54(0x10f)],_0x1b1b5a[_0x611a54(0x468)],_0x1b1b5a[_0x611a54(0x2b3)],_0x1b1b5a[_0x611a54(0x418)],_0x1b1b5a[_0x611a54(0x167)],_0x1b1b5a[_0x611a54(0x133)],_0x1b1b5a[_0x611a54(0xdf)],_0x1b1b5a[_0x611a54(0x3ae)],_0x1b1b5a['UniverEngineFormula'],_0x1b1b5a[_0x611a54(0x305)],_0x1b1b5a[_0x611a54(0x2a8)],_0x1b1b5a[_0x611a54(0x165)],_0x1b1b5a[_0x611a54(0x13e)],_0x1b1b5a['UniverLicense']));}(this,function(_0xff46cc,_0x16d562,_0x1f1780,_0xdd90c,_0x516637,_0x5f2673,_0x494277,_0x1f42e3,_0x267f31,_0x412f6a,_0x123d63,_0x30fd53,_0x4c937c,_0x33ea92,_0x5b77fa,_0x3f2b28,_0x53f0ab,_0x290bfa,_0x2c05f2,_0x2aaf28){'use strict';const _0x184c40=_0x2bb3;var _0x199610=Object[_0x184c40(0x471)],_0x1940a9=(_0xe20cd6,_0x25058b,_0x581ac5)=>_0x25058b in _0xe20cd6?_0x199610(_0xe20cd6,_0x25058b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x581ac5}):_0xe20cd6[_0x25058b]=_0x581ac5,_0x1fbb55=(_0x717b83,_0xa96b9b,_0x40a90a)=>_0x1940a9(_0x717b83,typeof _0xa96b9b!=_0x184c40(0x1cc)?_0xa96b9b+'':_0xa96b9b,_0x40a90a);const _0x3521ea=_0x184c40(0x45e),_0x43d0da=_0x184c40(0x401),_0x2d7a77=_0x184c40(0x172),_0x142850=_0x184c40(0x1f3),_0x306eb0='COLLAB_WEB_SOCKET_URL',_0xc3dd42='ws://127.0.0.1:8000/universer-api/comb/connect',_0x446ff7='HEARTBEAT_INTERVAL',_0xe2e447=_0x184c40(0x493),_0x1fe909=_0x184c40(0xfe),_0x103e56=_0x184c40(0x239),_0x13fd55=_0x184c40(0x359),_0x3853f0='/universer-api/comb',_0x465855=_0x184c40(0x2e9),_0x514271='/universer-api/oidc/authpage';var _0x4803e2=(_0x4bfad3=>(_0x4bfad3[_0x4bfad3['UNDEFINED']=0x0]=_0x184c40(0x332),_0x4bfad3[_0x4bfad3['OK']=0x1]='OK',_0x4bfad3[_0x4bfad3[_0x184c40(0x441)]=0x2]=_0x184c40(0x441),_0x4bfad3[_0x4bfad3['PERMISSION_DENIED']=0x3]=_0x184c40(0x110),_0x4bfad3[_0x4bfad3[_0x184c40(0x325)]=0x4]=_0x184c40(0x325),_0x4bfad3[_0x4bfad3['UNAUTHENTICATED']=0x5]=_0x184c40(0x2e7),_0x4bfad3[_0x4bfad3['ALREADY_EXISTS']=0x6]=_0x184c40(0x4c6),_0x4bfad3[_0x4bfad3[_0x184c40(0x3e7)]=0x7]=_0x184c40(0x3e7),_0x4bfad3[_0x4bfad3['TOO_MANY_REQUESTS']=0x8]=_0x184c40(0x2db),_0x4bfad3[_0x4bfad3[_0x184c40(0x334)]=0x9]='COMPLETION_FINISHED',_0x4bfad3[_0x4bfad3['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x4bfad3[_0x4bfad3[_0x184c40(0x26a)]=0x1771]=_0x184c40(0x26a),_0x4bfad3[_0x4bfad3[_0x184c40(0x197)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4bfad3[_0x4bfad3[_0x184c40(0x1e0)]=0x1b59]='APPLY_REJECT',_0x4bfad3[_0x4bfad3[_0x184c40(0x311)]=0x1b5a]=_0x184c40(0x311),_0x4bfad3[_0x4bfad3[_0x184c40(0x281)]=0x1b5b]=_0x184c40(0x281),_0x4bfad3[_0x4bfad3[_0x184c40(0x4d9)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4bfad3[_0x4bfad3[_0x184c40(0x440)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4bfad3[_0x4bfad3[_0x184c40(0x25e)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4bfad3[_0x4bfad3[_0x184c40(0x337)]=0x232a]=_0x184c40(0x337),_0x4bfad3[_0x4bfad3[_0x184c40(0x4b4)]=0x232b]=_0x184c40(0x4b4),_0x4bfad3[_0x4bfad3['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x184c40(0xb3),_0x4bfad3[_0x4bfad3[_0x184c40(0x19c)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4bfad3[_0x4bfad3[_0x184c40(0x21e)]=0x2711]=_0x184c40(0x21e),_0x4bfad3[_0x4bfad3['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x184c40(0x3c7),_0x4bfad3[_0x4bfad3[_0x184c40(0xb6)]=0x2713]=_0x184c40(0xb6),_0x4bfad3[_0x4bfad3[_0x184c40(0x287)]=0x2714]=_0x184c40(0x287),_0x4bfad3[_0x4bfad3[_0x184c40(0x252)]=-0x1]=_0x184c40(0x252),_0x4bfad3))(_0x4803e2||{}),_0x55b5ea=(_0x112cab=>(_0x112cab[_0x112cab[_0x184c40(0x298)]=0x0]=_0x184c40(0x298),_0x112cab[_0x112cab[_0x184c40(0x2f5)]=0x1]='UNIVER_DOC',_0x112cab[_0x112cab[_0x184c40(0x1ce)]=0x2]='UNIVER_SHEET',_0x112cab[_0x112cab[_0x184c40(0x29c)]=0x3]=_0x184c40(0x29c),_0x112cab[_0x112cab['UNIVER_PROJECT']=0x4]=_0x184c40(0x178),_0x112cab[_0x112cab[_0x184c40(0x252)]=-0x1]=_0x184c40(0x252),_0x112cab))(_0x55b5ea||{}),_0x2ae438=(_0x5d6548=>(_0x5d6548[_0x5d6548['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x5d6548[_0x5d6548[_0x184c40(0x485)]=0x1]='HELLO',_0x5d6548[_0x5d6548[_0x184c40(0x263)]=0x2]=_0x184c40(0x263),_0x5d6548[_0x5d6548[_0x184c40(0x4a9)]=0x3]=_0x184c40(0x4a9),_0x5d6548[_0x5d6548[_0x184c40(0x377)]=0x4]=_0x184c40(0x377),_0x5d6548[_0x5d6548[_0x184c40(0x3b6)]=0x5]=_0x184c40(0x3b6),_0x5d6548[_0x5d6548[_0x184c40(0x4b1)]=0x6]=_0x184c40(0x4b1),_0x5d6548[_0x5d6548[_0x184c40(0x252)]=-0x1]=_0x184c40(0x252),_0x5d6548))(_0x2ae438||{}),_0x5a0c3a=(_0x5721d5=>(_0x5721d5[_0x5721d5['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x5721d5[_0x5721d5['OK']=0x1]='OK',_0x5721d5[_0x5721d5[_0x184c40(0xbe)]=0x2]=_0x184c40(0xbe),_0x5721d5[_0x5721d5[_0x184c40(0x252)]=-0x1]=_0x184c40(0x252),_0x5721d5))(_0x5a0c3a||{}),_0x4a0f51=(_0x2dd55e=>(_0x2dd55e[_0x2dd55e['Undefined']=0x0]='Undefined',_0x2dd55e[_0x2dd55e[_0x184c40(0x329)]=0x1]='HttpImport',_0x2dd55e[_0x2dd55e[_0x184c40(0x49e)]=0x2]=_0x184c40(0x49e),_0x2dd55e[_0x2dd55e[_0x184c40(0x3e5)]=0x3]=_0x184c40(0x3e5),_0x2dd55e[_0x2dd55e[_0x184c40(0x2a1)]=0x4]=_0x184c40(0x2a1),_0x2dd55e[_0x2dd55e[_0x184c40(0x252)]=-0x1]=_0x184c40(0x252),_0x2dd55e))(_0x4a0f51||{});const _0x5a4b90=_0x184c40(0x152),_0x17a026={};function _0x3f3a5c(_0x2afc6e){const _0x24e44e=_0x184c40;var _0x153f8e,_0x5637ee,_0x1b869e,_0x155a9c;const _0x14f9ad=_0x2afc6e[_0x24e44e(0xe3)],_0x2aa04d=JSON['parse'](_0x14f9ad);switch(_0x2aa04d[_0x24e44e(0x125)]){case _0x2ae438['HEARTBEAT']:case _0x2ae438['HELLO']:{const _0x539274=_0x2aa04d[_0x24e44e(0x32f)];return{..._0x2aa04d,'data':_0x539274,'cmd':_0x2aa04d[_0x24e44e(0x125)]};}case _0x2ae438['JOIN']:{const _0x5c5670=_0x2aa04d[_0x24e44e(0x2a4)];return{..._0x2aa04d,'data':_0x5c5670,'cmd':_0x2aa04d[_0x24e44e(0x125)]};}case _0x2ae438[_0x24e44e(0x4b1)]:{const _0x90286a=_0x2aa04d[_0x24e44e(0x312)];switch(_0x90286a['eventID']){case _0x1f42e3['CollaborationEvent']['PERMISSION_REJ']:return{..._0x2aa04d,'data':{..._0x90286a,'data':(_0x153f8e=_0x90286a[_0x24e44e(0x190)])==null?void 0x0:_0x153f8e['cs']},'cmd':_0x2aa04d['cmd']};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x47e)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':(_0x5637ee=_0x90286a['csAckEvent'])==null?void 0x0:_0x5637ee['cs']},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x4d5)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':(_0x1b869e=_0x90286a[_0x24e44e(0xe8)])==null?void 0x0:_0x1b869e['cs']},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x3b0)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':(_0x155a9c=_0x90286a[_0x24e44e(0x1de)])==null?void 0x0:_0x155a9c['cs']},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)]['UPDATE_CURSOR']:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0xf3)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x353)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0x1c8)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)]['USERS_LEAVE']:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a['leaveEvent']},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x160)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a['liveShareNewHost']},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x1e4)]:case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x2f3)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0x3c9)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)]['LIVESHARE_TERMINATE']:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0x405)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x19f)]:return{..._0x2aa04d,'data':_0x90286a,'cmd':_0x2aa04d['cmd']};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x43c)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0x49f)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x3c1)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0x1a5)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3['CollaborationEvent'][_0x24e44e(0x307)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a['shouldCloseConn']},'cmd':_0x2aa04d['cmd']};default:return _0x2aa04d;}}default:return _0x2aa04d;}}function _0xa22d57(_0x276733){const _0x477a6b=_0x184c40;switch(_0x276733[_0x477a6b(0x125)]){case _0x2ae438[_0x477a6b(0x3b6)]:case _0x2ae438['HELLO']:return JSON['stringify']({'cmd':_0x276733['cmd'],'routeKey':_0x276733[_0x477a6b(0x1bb)]});case _0x2ae438[_0x477a6b(0x377)]:{let _0x35f0e9;switch(_0x276733[_0x477a6b(0xe3)][_0x477a6b(0x150)]){case _0x1f42e3[_0x477a6b(0x336)]['UPDATE_CURSOR']:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x3cd)],'updateCursorEvent':_0x276733[_0x477a6b(0xe3)]['data']};break;}case _0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0xf7)]:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0xf7)],'leaveEvent':_0x276733[_0x477a6b(0xe3)][_0x477a6b(0xe3)]};break;}case _0x1f42e3[_0x477a6b(0x336)]['USERS_ENTER']:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)]['USERS_ENTER'],'joinEvent':_0x276733['data']['data']};break;}case _0x1f42e3[_0x477a6b(0x336)]['LIVESHARE_NEW_HOST']:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x276733[_0x477a6b(0xe3)][_0x477a6b(0xe3)]};break;}case _0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x2f3)]:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x2f3)],'liveShareOperation':_0x276733['data'][_0x477a6b(0xe3)]};break;}case _0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x168)]:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x276733[_0x477a6b(0xe3)][_0x477a6b(0xe3)]};break;}case _0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x3db)]:{_0x35f0e9={'eventID':_0x1f42e3['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x276733['data'][_0x477a6b(0xe3)]};break;}case _0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x1e4)]:{_0x35f0e9={'eventID':_0x1f42e3['CollaborationEvent'][_0x477a6b(0x1e4)]};break;}default:_0x35f0e9={'eventID':_0x276733[_0x477a6b(0xe3)][_0x477a6b(0x150)]};}return JSON[_0x477a6b(0x313)]({'cmd':_0x276733[_0x477a6b(0x125)],'routeKey':_0x276733['routeKey'],'collaMsg':_0x35f0e9});}case _0x2ae438[_0x477a6b(0x263)]:return JSON[_0x477a6b(0x313)]({'cmd':_0x276733[_0x477a6b(0x125)],'routeKey':_0x276733[_0x477a6b(0x1bb)],'joinReq':_0x276733[_0x477a6b(0xe3)]});case _0x2ae438[_0x477a6b(0x4a9)]:return JSON[_0x477a6b(0x313)]({'cmd':_0x276733[_0x477a6b(0x125)],'routeKey':_0x276733['routeKey'],'leaveReq':_0x276733['data']});default:throw new Error(_0x477a6b(0x4d7));}}var _0x514397=Object['defineProperty'],_0x262934=Object[_0x184c40(0x34e)],_0x180e4e=(_0x14e389,_0x5e072e,_0x87fa2c,_0x6fcd2f)=>{for(var _0x2e35f4=_0x6fcd2f>0x1?void 0x0:_0x6fcd2f?_0x262934(_0x5e072e,_0x87fa2c):_0x5e072e,_0x1a7f40=_0x14e389['length']-0x1,_0x288172;_0x1a7f40>=0x0;_0x1a7f40--)(_0x288172=_0x14e389[_0x1a7f40])&&(_0x2e35f4=(_0x6fcd2f?_0x288172(_0x5e072e,_0x87fa2c,_0x2e35f4):_0x288172(_0x2e35f4))||_0x2e35f4);return _0x6fcd2f&&_0x2e35f4&&_0x514397(_0x5e072e,_0x87fa2c,_0x2e35f4),_0x2e35f4;},_0x442539=(_0x417664,_0x5f105d)=>(_0x5cb18e,_0x111e2f)=>_0x5f105d(_0x5cb18e,_0x111e2f,_0x417664);const _0x4606ff=_0x16d562[_0x184c40(0xcf)]('univer-pro.collaboration-client-socket-service');function _0x52d94a(_0x2a68fe,_0x3e2251,_0x1242a5){return _0x2a68fe+'/'+_0x3e2251+'/unit/'+_0x1242a5+'/new_changes';}_0xff46cc[_0x184c40(0x16c)]=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x4b4e49,_0x4c138a,_0x522f12,_0x3fbbe8,_0x3810e7){const _0xa2c35a=_0x184c40;super(),this['_http']=_0x4b4e49,this['_ws']=_0x4c138a,this[_0xa2c35a(0x140)]=_0x522f12,this[_0xa2c35a(0xe6)]=_0x3fbbe8,this['_snapshotServerService']=_0x3810e7;}[_0x184c40(0x42e)](_0x1a70fe){const _0x2ce0b5=_0x184c40,_0x87c032=this['_ws'][_0x2ce0b5(0x42e)](_0x1a70fe);if(!_0x87c032)throw new Error(_0x2ce0b5(0x46c));const _0x4ca940=new _0x16d562[(_0x2ce0b5(0x2ec))](),_0x399df9=new _0x1f1780[(_0x2ce0b5(0x193))]();_0x4ca940[_0x2ce0b5(0x279)](_0x87c032[_0x2ce0b5(0x249)][_0x2ce0b5(0x462)](_0x3d6e8b=>_0x399df9[_0x2ce0b5(0x2d2)](_0x3d6e8b))),_0x4ca940[_0x2ce0b5(0x279)](_0x16d562[_0x2ce0b5(0x228)](()=>_0x399df9[_0x2ce0b5(0x12e)]()));const _0x318022=new _0x1f1780[(_0x2ce0b5(0x193))]();_0x4ca940[_0x2ce0b5(0x279)](_0x87c032[_0x2ce0b5(0xd8)]['subscribe'](_0x20226b=>_0x318022[_0x2ce0b5(0x2d2)](_0x20226b))),_0x4ca940['add'](_0x16d562[_0x2ce0b5(0x228)](()=>_0x318022[_0x2ce0b5(0x12e)]()));const _0x5a719b=new _0x1f1780[(_0x2ce0b5(0x193))]();_0x4ca940[_0x2ce0b5(0x279)](_0x87c032['message$'][_0x2ce0b5(0x462)](_0x3a5f0b=>{const _0x41eb41=_0x2ce0b5,_0x16e9f2=_0x3f3a5c(_0x3a5f0b);_0x5a719b[_0x41eb41(0x2d2)](_0x16e9f2);})),_0x4ca940[_0x2ce0b5(0x279)](_0x16d562[_0x2ce0b5(0x228)](()=>_0x5a719b[_0x2ce0b5(0x12e)]()));let _0x124a55;const _0x4a05da=()=>{const _0x4dd37f=_0x2ce0b5;_0x318022[_0x4dd37f(0x2d2)](new Event('connection\x20error')),_0x399df9[_0x4dd37f(0x2d2)](new CloseEvent(_0x4dd37f(0x1ec))),_0x124a55[_0x4dd37f(0x2c3)]();};return _0x124a55={'memberID':'','close$':_0x399df9[_0x2ce0b5(0x376)](),'error$':_0x318022['asObservable'](),'open$':_0x87c032[_0x2ce0b5(0x22e)],'message$':_0x5a719b['asObservable'](),'send':_0x316c15=>{const _0x18ded7=_0x2ce0b5;if(_0x316c15[_0x18ded7(0x125)]===_0x2ae438[_0x18ded7(0x377)]){if(_0x316c15[_0x18ded7(0xe3)][_0x18ded7(0x150)]===_0x1f42e3['CollaborationEvent'][_0x18ded7(0x4e0)]){this[_0x18ded7(0x1ed)](_0x124a55,_0x316c15[_0x18ded7(0xe3)])['catch'](_0xe4dcd2=>{const _0x308b9a=_0x18ded7;this[_0x308b9a(0xe6)]['error'](_0xe4dcd2),_0x4a05da();});return;}if(_0x316c15[_0x18ded7(0xe3)]['eventID']===_0x1f42e3['CollaborationEvent'][_0x18ded7(0x430)]){const _0x5bf369=_0x316c15['data'];this['_fetchMissChangesets'](_0x5bf369)[_0x18ded7(0xbf)](_0x55e77c=>{const _0x107a0d=_0x18ded7;_0x5a719b[_0x107a0d(0x2d2)]({'cmd':_0x2ae438[_0x107a0d(0x4b1)],'code':_0x5a0c3a['OK'],'routeKey':_0x5bf369[_0x107a0d(0xe3)]['unitID'],'routeType':'','data':{'eventID':_0x1f42e3[_0x107a0d(0x336)][_0x107a0d(0x112)],'data':{'changesets':_0x55e77c}}});})[_0x18ded7(0x38e)](_0x56a8e7=>{const _0x1425fb=_0x18ded7;this[_0x1425fb(0xe6)][_0x1425fb(0x28e)](_0x56a8e7),_0x4a05da();});return;}}_0x87c032[_0x18ded7(0x17d)](_0xa22d57(_0x316c15));},'close':()=>{const _0xa0c875=_0x2ce0b5;_0x87c032[_0xa0c875(0x2c3)](),_0x4ca940[_0xa0c875(0x35a)]();}},_0x124a55;}async[_0x184c40(0x1ed)](_0x20de89,_0x42388f){const _0x55cfd9=_0x184c40;var _0x31fb7b,_0x20667f;const {unitType:_0x4385aa,unitID:_0x78d96a,changeset:_0x19d839}=_0x42388f[_0x55cfd9(0xe3)],_0x5f0f1f={'unitID':_0x78d96a,'memberID':_0x20de89[_0x55cfd9(0x3a5)],'type':_0x4385aa,'changeset':_0x1f42e3[_0x55cfd9(0x322)](_0x19d839)},_0x531160=this[_0x55cfd9(0x140)][_0x55cfd9(0xfb)](_0x13fd55),_0x4f7d55=this[_0x55cfd9(0x140)][_0x55cfd9(0xfb)](_0x5a4b90),_0x1b369b=_0x52d94a((_0x20667f=(_0x31fb7b=_0x4f7d55==null?void 0x0:_0x4f7d55[_0x55cfd9(0x3d8)])!=null?_0x31fb7b:_0x531160)!=null?_0x20667f:_0x3853f0,_0x4385aa,_0x78d96a);try{await this['_http'][_0x55cfd9(0x46a)](_0x1b369b,{'body':_0x5f0f1f});}catch(_0x51f2c9){throw this[_0x55cfd9(0xe6)]['error'](_0x55cfd9(0x32c),_0x55cfd9(0x1eb)),_0x51f2c9;}}async['_fetchMissChangesets'](_0x2a93dd){const _0x9dd97b=_0x184c40,{unitID:_0x2e8715,from:_0x470f41,to:_0x276e90,unitType:_0x25b47d}=_0x2a93dd[_0x9dd97b(0xe3)];return(await this[_0x9dd97b(0x453)][_0x9dd97b(0x143)]({'metadata':void 0x0},{'unitID':_0x2e8715,'type':_0x25b47d,'from':_0x470f41,'to':_0x276e90}))[_0x9dd97b(0x361)];}},_0xff46cc['CollaborationSocketService']=_0x180e4e([_0x442539(0x0,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x265)])),_0x442539(0x1,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x499)])),_0x442539(0x2,_0x16d562[_0x184c40(0x317)]),_0x442539(0x3,_0x16d562[_0x184c40(0x31a)]),_0x442539(0x4,_0x1f42e3[_0x184c40(0x145)])],_0xff46cc[_0x184c40(0x16c)]);const _0x1a7a7e=_0x184c40(0x44d);function _0x3602(_0x44ff2f){const _0x4b78c2=_0x184c40;return JSON[_0x4b78c2(0x313)](_0x44ff2f)[_0x4b78c2(0x3bc)];}class _0xd11c7b{constructor(){const _0x1dd87e=_0x184c40;_0x1fbb55(this,_0x1dd87e(0x1a9),new _0x1f1780[(_0x1dd87e(0x193))]()),_0x1fbb55(this,'commentUpdate$',this[_0x1dd87e(0x1a9)][_0x1dd87e(0x376)]());}[_0x184c40(0x348)](_0x5b1c82){const _0x3e0b6f=_0x184c40;this[_0x3e0b6f(0x1a9)]['next'](_0x5b1c82);}}var _0x58f4f3=Object[_0x184c40(0x471)],_0x347b08=Object[_0x184c40(0x34e)],_0x545bdb=(_0x597197,_0x50ad5d,_0x5ce0f8,_0x43e8d4)=>{const _0x10eff4=_0x184c40;for(var _0x5c9c80=_0x43e8d4>0x1?void 0x0:_0x43e8d4?_0x347b08(_0x50ad5d,_0x5ce0f8):_0x50ad5d,_0x250a64=_0x597197[_0x10eff4(0x3bc)]-0x1,_0x3d57fe;_0x250a64>=0x0;_0x250a64--)(_0x3d57fe=_0x597197[_0x250a64])&&(_0x5c9c80=(_0x43e8d4?_0x3d57fe(_0x50ad5d,_0x5ce0f8,_0x5c9c80):_0x3d57fe(_0x5c9c80))||_0x5c9c80);return _0x43e8d4&&_0x5c9c80&&_0x58f4f3(_0x50ad5d,_0x5ce0f8,_0x5c9c80),_0x5c9c80;},_0x3c56c0=(_0x10781b,_0x34cf01)=>(_0x30d7d8,_0xb817d4)=>_0x34cf01(_0x30d7d8,_0xb817d4,_0x10781b);let _0x19c6b5=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x8f6019,_0x23a27f){const _0x4adc4a=_0x184c40;super(),_0x1fbb55(this,_0x4adc4a(0x395),new Map()),(this[_0x4adc4a(0x1b5)]=_0x8f6019,this[_0x4adc4a(0x216)]=_0x23a27f,this[_0x4adc4a(0xce)](_0x16d562[_0x4adc4a(0x228)](_0x1f1780[_0x4adc4a(0x2dd)](this[_0x4adc4a(0x1b5)][_0x4adc4a(0x40c)](_0x16d562[_0x4adc4a(0x1f9)]['UNIVER_SHEET'])['pipe'](_0xdd90c['map'](_0x37b750=>_0x37b750[_0x4adc4a(0x17e)]())),this[_0x4adc4a(0x1b5)][_0x4adc4a(0x40c)](_0x16d562[_0x4adc4a(0x1f9)][_0x4adc4a(0x2f5)])['pipe'](_0xdd90c[_0x4adc4a(0x3ed)](_0x5a3280=>_0x5a3280['getUnitId']())),this[_0x4adc4a(0x1b5)]['getTypeOfUnitDisposed$'](_0x16d562[_0x4adc4a(0x1f9)]['UNIVER_SLIDE'])['pipe'](_0xdd90c[_0x4adc4a(0x3ed)](_0x3df84e=>_0x3df84e[_0x4adc4a(0x17e)]())))[_0x4adc4a(0x462)](_0x5aae83=>this[_0x4adc4a(0x188)](_0x5aae83)))));}[_0x184c40(0x44e)](_0x4276f4){const _0x60d716=_0x184c40;this[_0x60d716(0x216)][_0x60d716(0x44e)](_0x4276f4);}['getCurrentUser'](){const _0x16d914=_0x184c40;return this[_0x16d914(0x216)][_0x16d914(0x203)]();}[_0x184c40(0x2cb)](_0x214128,_0x444592){const _0x559abb=_0x184c40;let _0x2e123f=this[_0x559abb(0x395)][_0x559abb(0x3d9)](_0x214128);_0x2e123f||(_0x2e123f=new _0xf1a726(),this['_roomMembers']['set'](_0x214128,_0x2e123f)),_0x2e123f[_0x559abb(0x2cb)](_0x444592);}['removeMember'](_0x449b07,_0x535fc6){const _0x4dad74=_0x184c40,_0x5825d7=this[_0x4dad74(0x395)][_0x4dad74(0x3d9)](_0x449b07);_0x5825d7&&_0x5825d7[_0x4dad74(0xee)](_0x535fc6);}['getRoom'](_0x23f6b2){const _0x18857d=_0x184c40;return this[_0x18857d(0x395)][_0x18857d(0x3d9)](_0x23f6b2);}[_0x184c40(0x3b4)](_0x15ba2b,_0x4ee433){const _0xd6ac4d=_0x184c40,_0x5c845b=this[_0xd6ac4d(0x395)][_0xd6ac4d(0x3d9)](_0x15ba2b);if(_0x5c845b)return _0x5c845b[_0xd6ac4d(0x3b4)](_0x4ee433);}['_removeRoom'](_0x57537a){const _0x588410=_0x184c40,_0x3f8883=this[_0x588410(0x395)][_0x588410(0x3d9)](_0x57537a);_0x3f8883&&(_0x3f8883['dispose'](),this[_0x588410(0x395)][_0x588410(0x2c9)](_0x57537a));}[_0x184c40(0x35a)](){const _0x34e9f2=_0x184c40;this[_0x34e9f2(0x395)][_0x34e9f2(0x284)](_0x10909b=>_0x10909b[_0x34e9f2(0x35a)]()),this['_roomMembers'][_0x34e9f2(0x460)]();}};_0x19c6b5=_0x545bdb([_0x3c56c0(0x0,_0x16d562[_0x184c40(0x466)]),_0x3c56c0(0x1,_0x16d562['Inject'](_0x16d562[_0x184c40(0x4db)]))],_0x19c6b5);class _0xf1a726 extends _0x16d562[_0x184c40(0x15c)]{constructor(){const _0x390558=_0x184c40;super(...arguments),_0x1fbb55(this,_0x390558(0x3c3),new Map());}['dispose'](){const _0x567eef=_0x184c40;this[_0x567eef(0x3c3)][_0x567eef(0x460)]();}[_0x184c40(0x2cb)](_0x2625bf){const _0x228971=_0x184c40;this[_0x228971(0x3c3)][_0x228971(0x355)](_0x2625bf[_0x228971(0x3a5)],_0x2625bf);}[_0x184c40(0xee)](_0xaad5b5){const _0xf645c9=_0x184c40;this[_0xf645c9(0x3c3)][_0xf645c9(0x2c9)](_0xaad5b5);}[_0x184c40(0x3b4)](_0x4e1a85){const _0x45610a=_0x184c40;return this[_0x45610a(0x3c3)][_0x45610a(0x3d9)](_0x4e1a85);}}var _0x265c2a=Object[_0x184c40(0x471)],_0x23a551=Object[_0x184c40(0x34e)],_0x26cee3=(_0xa82b3f,_0xb87cc8,_0x19916e,_0x1610f3)=>{for(var _0x1fe2a1=_0x1610f3>0x1?void 0x0:_0x1610f3?_0x23a551(_0xb87cc8,_0x19916e):_0xb87cc8,_0x5d8dbf=_0xa82b3f['length']-0x1,_0x40e6cc;_0x5d8dbf>=0x0;_0x5d8dbf--)(_0x40e6cc=_0xa82b3f[_0x5d8dbf])&&(_0x1fe2a1=(_0x1610f3?_0x40e6cc(_0xb87cc8,_0x19916e,_0x1fe2a1):_0x40e6cc(_0x1fe2a1))||_0x1fe2a1);return _0x1610f3&&_0x1fe2a1&&_0x265c2a(_0xb87cc8,_0x19916e,_0x1fe2a1),_0x1fe2a1;},_0x5567a3=(_0x240995,_0x3e1279)=>(_0x20e917,_0x1f1e04)=>_0x3e1279(_0x20e917,_0x1f1e04,_0x240995),_0x17c413=(_0x389d79=>(_0x389d79[_0x389d79[_0x184c40(0x36d)]=0x0]=_0x184c40(0x36d),_0x389d79[_0x389d79[_0x184c40(0x369)]=0x1]='JOINING',_0x389d79[_0x389d79[_0x184c40(0x1dd)]=0x2]=_0x184c40(0x1dd),_0x389d79[_0x389d79['ONLINE']=0x3]='ONLINE',_0x389d79))(_0x17c413||{});_0xff46cc[_0x184c40(0x357)]=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x1b4547,_0x3affbb,_0x558299,_0x2a11a1,_0x1722f2,_0x5251d2,_0x2fb08c,_0x4cd9d2,_0x5f3d8d,_0xf16166){const _0x4aeef5=_0x184c40;super(),_0x1fbb55(this,_0x4aeef5(0x41a),new _0x1f1780[(_0x4aeef5(0x2f0))](0x0)),_0x1fbb55(this,_0x4aeef5(0x11f),this[_0x4aeef5(0x41a)][_0x4aeef5(0x376)]()),_0x1fbb55(this,_0x4aeef5(0x294),new _0x1f1780['Subject']()),_0x1fbb55(this,_0x4aeef5(0x30c),this[_0x4aeef5(0x294)][_0x4aeef5(0x376)]()),_0x1fbb55(this,_0x4aeef5(0x3c0)),_0x1fbb55(this,_0x4aeef5(0x48f)),_0x1fbb55(this,_0x4aeef5(0x321)),_0x1fbb55(this,_0x4aeef5(0x393),!0x1),_0x1fbb55(this,_0x4aeef5(0x4b9),null),(this[_0x4aeef5(0x1a2)]=_0x1b4547,this[_0x4aeef5(0xe6)]=_0x558299,this['_beforeCloseService']=_0x2a11a1,this[_0x4aeef5(0x4a3)]=_0x1722f2,this[_0x4aeef5(0x140)]=_0x5251d2,this['_localeService']=_0x2fb08c,this[_0x4aeef5(0xcb)]=_0x4cd9d2,this['_commentService']=_0x5f3d8d,this[_0x4aeef5(0x2b8)]=_0xf16166,this['_shouldReportTelemetry']=!!this[_0x4aeef5(0x2b8)],_0x3affbb[_0x4aeef5(0x3b2)](_0x1f1780[_0x4aeef5(0x2e1)](this[_0x4aeef5(0x3fd)]))['subscribe'](_0x1e853c=>{const _0x41dcda=_0x4aeef5;var _0x5d2a5a;typeof _0x1e853c>'u'||(this[_0x41dcda(0x3c0)]=_0x1e853c,_0x1e853c?(this[_0x41dcda(0x24a)](_0x1e853c),this[_0x41dcda(0x48f)]=_0x1e853c[_0x41dcda(0x282)]['subscribe'](_0x2bf287=>{const _0x58a974=_0x41dcda;_0x2bf287['routeKey']===this[_0x58a974(0x1a2)]&&this['_onCombEvent'](_0x2bf287);})):(this[_0x41dcda(0x262)](),this[_0x41dcda(0x41a)]['next'](0x2),(_0x5d2a5a=this[_0x41dcda(0x48f)])==null||_0x5d2a5a['unsubscribe'](),this[_0x41dcda(0x48f)]=null));}),this[_0x4aeef5(0xce)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x4fe19f=_0x4aeef5;var _0x5a2184;(_0x5a2184=this['_socket'])==null||_0x5a2184[_0x4fe19f(0x17d)]({'cmd':_0x2ae438[_0x4fe19f(0x4a9)],'data':{'roomID':this[_0x4fe19f(0x1a2)]}});})));}get[_0x184c40(0x4a0)](){const _0x7b293c=_0x184c40;return this[_0x7b293c(0x41a)]['getValue']();}['getMemberID'](){const _0x436fa0=_0x184c40;var _0xef713d,_0x353bdd;return(_0x353bdd=(_0xef713d=this[_0x436fa0(0x3c0)])==null?void 0x0:_0xef713d[_0x436fa0(0x3a5)])!=null?_0x353bdd:null;}['dispose'](){const _0x1f44fa=_0x184c40;super[_0x1f44fa(0x35a)](),this[_0x1f44fa(0x3fd)][_0x1f44fa(0x2d2)](),this[_0x1f44fa(0x3fd)][_0x1f44fa(0x12e)]();}['close'](){const _0x39b165=_0x184c40;var _0x136174,_0x329a3a;this['_throwTelemetryCollaborationNewChangeset'](),(_0x136174=this[_0x39b165(0x3c0)])==null||_0x136174[_0x39b165(0x17d)]({'cmd':_0x2ae438['LEAVE'],'data':{'roomID':this[_0x39b165(0x1a2)]}}),(_0x329a3a=this[_0x39b165(0x3c0)])==null||_0x329a3a[_0x39b165(0x2c3)](),this[_0x39b165(0x294)][_0x39b165(0x12e)](),this[_0x39b165(0x41a)][_0x39b165(0x12e)](),this[_0x39b165(0x35a)]();}['_onCombEvent'](_0x2362ab){const _0x301b80=_0x184c40;_0x2362ab[_0x301b80(0x125)]===_0x2ae438[_0x301b80(0x263)]?this[_0x301b80(0x496)](_0x2362ab):_0x2362ab[_0x301b80(0x125)]===_0x2ae438[_0x301b80(0x4b1)]&&this[_0x301b80(0x1d9)](_0x2362ab);}[_0x184c40(0x24a)](_0x10d747){const _0x94e17b=_0x184c40;this[_0x94e17b(0x41a)][_0x94e17b(0x2d2)](0x1),_0x10d747[_0x94e17b(0x17d)]({'cmd':_0x2ae438['JOIN'],'routeKey':this[_0x94e17b(0x1a2)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x184c40(0x496)](_0x3ed980){const _0x464a61=_0x184c40;var _0x44b79d;if(_0x3ed980[_0x464a61(0x3a0)]===_0x5a0c3a[_0x464a61(0xbe)]){this[_0x464a61(0x4a3)][_0x464a61(0x1be)]({'type':_0x516637[_0x464a61(0x1ac)][_0x464a61(0xc8)],'content':this[_0x464a61(0x2b4)]['t'](_0x464a61(0x427))}),this[_0x464a61(0x41a)]['next'](0x2);return;}this[_0x464a61(0x41a)][_0x464a61(0x2d2)](0x3);const _0x5b10d9=(_0x44b79d=_0x3ed980['data'][_0x464a61(0xe9)][this[_0x464a61(0x1a2)]])==null?void 0x0:_0x44b79d[_0x464a61(0x4ac)];_0x5b10d9&&_0x5b10d9[_0x464a61(0x284)](_0x47b49d=>this['_memberService'][_0x464a61(0x2cb)](this['_unitID'],_0x47b49d));}[_0x184c40(0x1d9)](_0x3c2043){const _0x4d698c=_0x184c40;try{const _0x4c782a=_0x3c2043[_0x4d698c(0xe3)];switch(_0x4c782a['eventID']){case _0x1f42e3[_0x4d698c(0x336)][_0x4d698c(0x353)]:this[_0x4d698c(0x222)](_0x4c782a),this[_0x4d698c(0x294)][_0x4d698c(0x2d2)](_0x4c782a);break;case _0x1f42e3[_0x4d698c(0x336)][_0x4d698c(0xf7)]:this[_0x4d698c(0x40b)](_0x4c782a),this[_0x4d698c(0x294)][_0x4d698c(0x2d2)](_0x4c782a);break;case _0x1f42e3['CollaborationEvent'][_0x4d698c(0x47e)]:this[_0x4d698c(0x2f4)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x4d698c(0x2d2)](_0x4c782a);break;case _0x1f42e3[_0x4d698c(0x336)][_0x4d698c(0x19f)]:this[_0x4d698c(0xe6)][_0x4d698c(0x28e)](_0x4d698c(0x367)+JSON[_0x4d698c(0x313)](_0x4c782a)),this['_event$'][_0x4d698c(0x2d2)](_0x4c782a);break;case _0x1f42e3[_0x4d698c(0x336)][_0x4d698c(0x43c)]:this[_0x4d698c(0x2d9)][_0x4d698c(0x348)](_0x4c782a[_0x4d698c(0xe3)]),this[_0x4d698c(0x294)][_0x4d698c(0x2d2)](_0x4c782a);break;default:this[_0x4d698c(0x294)]['next'](_0x4c782a);}}catch(_0x46932e){this[_0x4d698c(0xe6)][_0x4d698c(0x28e)](_0x46932e,_0x3c2043);}}[_0x184c40(0x222)](_0x1b8153){const _0x12d897=_0x184c40;this[_0x12d897(0xcb)][_0x12d897(0x2cb)](this['_unitID'],_0x1b8153[_0x12d897(0xe3)]);}[_0x184c40(0x40b)](_0x52f870){const _0x3caa08=_0x184c40;this[_0x3caa08(0xcb)][_0x3caa08(0xee)](this[_0x3caa08(0x1a2)],_0x52f870[_0x3caa08(0xe3)][_0x3caa08(0x3a5)]);}async[_0x184c40(0x17d)](_0xe15b6f,_0x45f317){const _0x51739d=_0x184c40;if(this[_0x51739d(0x4a0)]!==0x3||!this[_0x51739d(0x3c0)])throw new Error(_0x51739d(0x1d6));try{_0xe15b6f[_0x51739d(0x150)]===_0x1f42e3[_0x51739d(0x336)]['SUBMIT_CHANGESET']&&(this[_0x51739d(0xdd)](),this[_0x51739d(0x105)](_0xe15b6f)),this[_0x51739d(0x3c0)][_0x51739d(0x17d)]({'cmd':_0x2ae438[_0x51739d(0x377)],'routeKey':_0x45f317,'routeType':'','data':_0xe15b6f});}catch(_0x3bc567){this[_0x51739d(0xe6)]['error'](_0x3bc567);}}[_0x184c40(0xdd)](){const _0x416457=_0x184c40;var _0x5cf9f5;this[_0x416457(0x321)]=window[_0x416457(0x231)](()=>{const _0x5914d6=_0x416457;this[_0x5914d6(0x321)]=null,this[_0x5914d6(0x4a3)][_0x5914d6(0x1be)]({'type':_0x516637['MessageType'][_0x5914d6(0x3af)],'content':this[_0x5914d6(0x2b4)]['t'](_0x5914d6(0x1ad))});},(_0x5cf9f5=this[_0x416457(0x140)][_0x416457(0xfb)](_0xe2e447))!=null?_0x5cf9f5:0x4e20);}[_0x184c40(0x40f)](){const _0x4bac44=_0x184c40;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x4bac44(0x321)]),this['_collaborationTimeoutTimer']=null);}[_0x184c40(0x105)](_0x1f393c){const _0x5cdc=_0x184c40;if(!this[_0x5cdc(0x393)])return;const {data:_0x551cdb}=_0x1f393c,{unitID:_0x37a71c,changeset:_0x27fda3}=_0x551cdb,{mutations:_0x4e7b88,type:_0x165b3b}=_0x27fda3;this[_0x5cdc(0x4b9)]={'unitId':_0x37a71c,'type':_0x165b3b,'startTime':performance[_0x5cdc(0x296)](),'stopTime':0x0,'duration':0x0,'size':_0x3602(_0x4e7b88)};}[_0x184c40(0x2f4)](){const _0x3d8401=_0x184c40;if(this[_0x3d8401(0x393)]){if(!this['_telemetryInfo']){this[_0x3d8401(0xe6)][_0x3d8401(0x28e)]('[CollaborationSession]',_0x3d8401(0x451));return;}this[_0x3d8401(0x4b9)]['stopTime']=performance['now'](),this['_telemetryInfo'][_0x3d8401(0x184)]=this[_0x3d8401(0x4b9)][_0x3d8401(0x2e2)]-this[_0x3d8401(0x4b9)][_0x3d8401(0x138)],this['_telemetryService'][_0x3d8401(0x127)](_0x1a7a7e,this[_0x3d8401(0x4b9)]),this[_0x3d8401(0x4b9)]=null;}}[_0x184c40(0x262)](){const _0x13dab6=_0x184c40;this[_0x13dab6(0x4b9)]=null;}},_0xff46cc[_0x184c40(0x357)]=_0x26cee3([_0x5567a3(0x2,_0x16d562[_0x184c40(0x31a)]),_0x5567a3(0x3,_0x5f2673['IBeforeCloseService']),_0x5567a3(0x4,_0x5f2673['IMessageService']),_0x5567a3(0x5,_0x16d562[_0x184c40(0x317)]),_0x5567a3(0x6,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x42c)])),_0x5567a3(0x7,_0x16d562[_0x184c40(0x1e9)](_0x19c6b5)),_0x5567a3(0x8,_0x16d562['Inject'](_0xd11c7b)),_0x5567a3(0x9,_0x16d562['Optional'](_0x267f31[_0x184c40(0x358)]))],_0xff46cc['CollaborationSession']);var _0x3f549c=Object[_0x184c40(0x471)],_0x1ae0ec=Object['getOwnPropertyDescriptor'],_0x136850=(_0x3608f5,_0x46ee3b,_0x10f1a7,_0x3ba654)=>{const _0x2a7802=_0x184c40;for(var _0x58695a=_0x3ba654>0x1?void 0x0:_0x3ba654?_0x1ae0ec(_0x46ee3b,_0x10f1a7):_0x46ee3b,_0x23854c=_0x3608f5[_0x2a7802(0x3bc)]-0x1,_0x1a7d2b;_0x23854c>=0x0;_0x23854c--)(_0x1a7d2b=_0x3608f5[_0x23854c])&&(_0x58695a=(_0x3ba654?_0x1a7d2b(_0x46ee3b,_0x10f1a7,_0x58695a):_0x1a7d2b(_0x58695a))||_0x58695a);return _0x3ba654&&_0x58695a&&_0x3f549c(_0x46ee3b,_0x10f1a7,_0x58695a),_0x58695a;},_0x1af999=(_0x1d3b52,_0x451645)=>(_0xe181ca,_0x3a12ce)=>_0x451645(_0xe181ca,_0x3a12ce,_0x1d3b52);_0xff46cc['CollaborationSessionService']=class extends _0x16d562['Disposable']{constructor(_0x2a25ef,_0x48ed5a,_0x158e6c,_0x4a81ab,_0x16bc48,_0x348bf7){const _0x49f059=_0x184c40;super(),_0x1fbb55(this,'_socket$',new _0x1f1780[(_0x49f059(0x2f0))](void 0x0)),_0x1fbb55(this,_0x49f059(0x4bf),this['_socket$'][_0x49f059(0x376)]()),_0x1fbb55(this,'_candidateSocket',null),_0x1fbb55(this,'_sessions',new Map()),_0x1fbb55(this,'_status$',new _0x1f1780[(_0x49f059(0x2f0))](_0x17c413[_0x49f059(0x36d)])),_0x1fbb55(this,_0x49f059(0x2a6),this[_0x49f059(0x475)]['asObservable']()),_0x1fbb55(this,'_socketReady',!0x1),_0x1fbb55(this,_0x49f059(0x185)),_0x1fbb55(this,_0x49f059(0x352),0x0),_0x1fbb55(this,'_sendHeartbeatTimer'),_0x1fbb55(this,_0x49f059(0x10b)),(this[_0x49f059(0x183)]=_0x2a25ef,this[_0x49f059(0x2b4)]=_0x48ed5a,this[_0x49f059(0x4a3)]=_0x158e6c,this[_0x49f059(0xe6)]=_0x4a81ab,this[_0x49f059(0x140)]=_0x16bc48,this[_0x49f059(0x2dc)]=_0x348bf7,this[_0x49f059(0x3f0)]());}get[_0x184c40(0x3c0)](){const _0x55ccf6=_0x184c40;return this[_0x55ccf6(0x3e1)][_0x55ccf6(0x22f)]();}[_0x184c40(0x3f0)](){const _0x4dc1bd=_0x184c40;this[_0x4dc1bd(0x2bd)](),this[_0x4dc1bd(0x2fd)]();}['dispose'](){const _0x47d2f5=_0x184c40;super[_0x47d2f5(0x35a)](),this[_0x47d2f5(0x409)][_0x47d2f5(0x284)](_0x4376bb=>_0x4376bb[_0x47d2f5(0x35a)]()),this[_0x47d2f5(0x409)][_0x47d2f5(0x460)](),this[_0x47d2f5(0x475)][_0x47d2f5(0x12e)]();}async[_0x184c40(0x371)](_0x2308f1){const _0x2e701f=_0x184c40;if(this[_0x2e701f(0x409)][_0x2e701f(0x4c2)](_0x2308f1))return this['_sessions'][_0x2e701f(0x3d9)](_0x2308f1);this[_0x2e701f(0x1cb)]();const _0x2a40e6=this[_0x2e701f(0x183)][_0x2e701f(0x1d5)](_0xff46cc[_0x2e701f(0x357)],_0x2308f1,this['_socket$']['asObservable']());return this[_0x2e701f(0x409)]['set'](_0x2308f1,_0x2a40e6),_0x2a40e6;}['closeSession'](_0x12a7bd){const _0x230727=_0x184c40;var _0x150e6c;const _0x23cb45=this[_0x230727(0x409)][_0x230727(0x3d9)](_0x12a7bd);_0x23cb45&&(this[_0x230727(0x409)][_0x230727(0x2c9)](_0x12a7bd),_0x23cb45['close']()),this[_0x230727(0x409)]['size']||(_0x150e6c=this[_0x230727(0x3c0)])==null||_0x150e6c[_0x230727(0x2c3)]();}['reconnect'](){const _0x10cb5e=_0x184c40;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x10cb5e(0x185)]),this[_0x10cb5e(0x185)]=null),this['_tryReconnect']();}[_0x184c40(0x3e0)](){const _0xc2888e=_0x184c40;var _0x2278c7,_0x4a69ee;const _0x8bc228=this[_0xc2888e(0x140)][_0xc2888e(0xfb)](_0x306eb0),_0x33d4a5=this[_0xc2888e(0x140)]['getConfig'](_0x5a4b90),_0x48a332=(_0x4a69ee=(_0x2278c7=_0x33d4a5==null?void 0x0:_0x33d4a5[_0xc2888e(0x2af)])!=null?_0x2278c7:_0x8bc228)!=null?_0x4a69ee:_0xc3dd42,_0x140dc5=this[_0xc2888e(0x2dc)][_0xc2888e(0x42e)](_0x48a332);return this[_0xc2888e(0x301)]=_0x140dc5,_0x140dc5;}[_0x184c40(0x1cb)](){const _0x28d0b2=_0x184c40;var _0x31bdfa,_0x908f20;try{const _0x17d51d=(_0x908f20=(_0x31bdfa=this[_0x28d0b2(0x3c0)])!=null?_0x31bdfa:this[_0x28d0b2(0x301)])!=null?_0x908f20:this[_0x28d0b2(0x3e0)]();if(_0x17d51d){const _0x4e89a1=_0x17d51d['send'];_0x17d51d[_0x28d0b2(0x17d)]=_0xb0417=>(this[_0x28d0b2(0x327)](),_0x4e89a1[_0x28d0b2(0x381)](_0x17d51d,[_0xb0417])),_0x17d51d[_0x28d0b2(0x282)][_0x28d0b2(0x462)](_0x38b09c=>this['_onMessage'](_0x17d51d,_0x38b09c)),_0x17d51d[_0x28d0b2(0xd8)][_0x28d0b2(0x3b2)](_0xdd90c[_0x28d0b2(0x26e)](0x1))[_0x28d0b2(0x462)](_0x1ecab2=>this[_0x28d0b2(0xe6)][_0x28d0b2(0x28e)](_0x28d0b2(0x211),_0x1ecab2)),_0x17d51d[_0x28d0b2(0x22e)][_0x28d0b2(0x3b2)](_0xdd90c['take'](0x1))[_0x28d0b2(0x462)](()=>{this['_onConnectionOpen'](_0x17d51d);}),_0x17d51d[_0x28d0b2(0x249)]['pipe'](_0xdd90c['take'](0x1))[_0x28d0b2(0x462)](_0x5427dc=>{const _0x1f73f8=_0x28d0b2;this[_0x1f73f8(0xe6)]['debug'](_0x1f73f8(0x3aa),_0x1f73f8(0x149),_0x5427dc),this['_onConnectionFailed']();});}}catch(_0x5006e5){this['_logService'][_0x28d0b2(0x28e)](_0x5006e5),this[_0x28d0b2(0x1b9)]();}}[_0x184c40(0x48c)](_0x1fcba9){const _0x3e19cd=_0x184c40;this['_logService'][_0x3e19cd(0x2b2)]('[CollaborationSessionService]',_0x3e19cd(0x476)),_0x1fcba9[_0x3e19cd(0x17d)]({'cmd':_0x2ae438[_0x3e19cd(0x485)]}),this[_0x3e19cd(0x327)]();}[_0x184c40(0x2bd)](){const _0x1efe2d=_0x184c40;window['addEventListener'](_0x1efe2d(0x455),()=>this[_0x1efe2d(0x346)]());}[_0x184c40(0x346)](){const _0x32d26a=_0x184c40;this[_0x32d26a(0x3c6)]=!0x1,this[_0x32d26a(0x301)]=null,this[_0x32d26a(0x475)]['next'](_0x17c413[_0x32d26a(0x1dd)]),this[_0x32d26a(0x3e1)][_0x32d26a(0x2d2)](null),this['_clearTimeoutTimer'](),this[_0x32d26a(0x28a)]();}[_0x184c40(0x1b9)](){const _0x347d8d=_0x184c40;var _0x2d72a5;this['_onOffline'](),this[_0x347d8d(0x352)]<((_0x2d72a5=this['_configService'][_0x347d8d(0xfb)](_0x1fe909))!=null?_0x2d72a5:0x3)?(this[_0x347d8d(0x4a3)]['show']({'key':_0x347d8d(0x28f),'type':_0x516637[_0x347d8d(0x1ac)][_0x347d8d(0xc8)],'content':this[_0x347d8d(0x2b4)]['t'](_0x347d8d(0x1c3))}),this['_tryReconnect']()):this[_0x347d8d(0x4a3)][_0x347d8d(0x1be)]({'key':'collaboration-session-retry','type':_0x516637[_0x347d8d(0x1ac)][_0x347d8d(0x3af)],'content':this['_localeService']['t'](_0x347d8d(0x324))});}[_0x184c40(0x2fd)](){const _0x1f8628=_0x184c40,_0x87472d=()=>{const _0xc3b545=_0x2bb3;this[_0xc3b545(0x3c0)]||this['reconnect']();},_0x185447=()=>{const _0x39f6cb=_0x2bb3;this['_socket']||document[_0x39f6cb(0x3e8)]==='hidden'||this['reconnect']();};window[_0x1f8628(0x349)](_0x1f8628(0x45d),_0x87472d),document[_0x1f8628(0x349)](_0x1f8628(0x4b2),_0x185447);}[_0x184c40(0x3a6)](){const _0x240ab3=_0x184c40;var _0x21a4f3;const _0x32dbf=this[_0x240ab3(0x352)],_0x62bb61=this['_configService'][_0x240ab3(0xfb)](_0x5a4b90),_0x4b6ce4=_0x32dbf===0x0?0x0:((_0x21a4f3=_0x62bb61==null?void 0x0:_0x62bb61[_0x240ab3(0x3f4)])!=null?_0x21a4f3:0x4e20)*0x2**_0x32dbf;this['_retryConnectingTimer']=window[_0x240ab3(0x231)](()=>{const _0x46f898=_0x240ab3;clearTimeout(this[_0x46f898(0x185)]),this[_0x46f898(0x185)]=null,this['_tryEnsureSocket']();},_0x4b6ce4),this['_retryCount']+=0x1;}[_0x184c40(0x402)](_0x3155c0,_0x1a648f){const _0x1c1496=_0x184c40,{cmd:_0x387107}=_0x1a648f;_0x387107===_0x2ae438[_0x1c1496(0x485)]&&!this[_0x1c1496(0x3c6)]&&(_0x3155c0[_0x1c1496(0x3a5)]=_0x1a648f[_0x1c1496(0xe3)]['memberID'],this[_0x1c1496(0x3e1)][_0x1c1496(0x2d2)](_0x3155c0),this[_0x1c1496(0x475)][_0x1c1496(0x2d2)](_0x17c413['ONLINE']),this[_0x1c1496(0x3c6)]=!0x0,this[_0x1c1496(0x301)]=null),_0x387107===_0x2ae438[_0x1c1496(0x3b6)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x184c40(0x327)](){const _0x141bc4=_0x184c40;var _0x39b5da;this[_0x141bc4(0x28a)](),this[_0x141bc4(0x227)]=window[_0x141bc4(0x231)](()=>this[_0x141bc4(0x464)](),(_0x39b5da=this['_configService'][_0x141bc4(0xfb)](_0x446ff7))!=null?_0x39b5da:0x7530);}[_0x184c40(0x464)](){const _0x5d86af=_0x184c40;this[_0x5d86af(0x3c0)]['send']({'cmd':_0x2ae438['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x4c2e40=_0x184c40;var _0x3dc5ae;this[_0x4c2e40(0x10b)]=window['setTimeout'](()=>this[_0x4c2e40(0x1b9)](),(_0x3dc5ae=this[_0x4c2e40(0x140)][_0x4c2e40(0xfb)](_0xe2e447))!=null?_0x3dc5ae:0x4e20);}['_clearHeartbeatTimer'](){const _0x4760ab=_0x184c40;this[_0x4760ab(0x227)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x4760ab(0x227)]=null);}[_0x184c40(0x11b)](){const _0x9c44ab=_0x184c40;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x9c44ab(0x10b)]),this[_0x9c44ab(0x10b)]=null);}},_0xff46cc[_0x184c40(0xef)]=_0x136850([_0x1af999(0x0,_0x16d562['Inject'](_0x16d562['Injector'])),_0x1af999(0x1,_0x16d562[_0x184c40(0x1e9)](_0x16d562['LocaleService'])),_0x1af999(0x2,_0x5f2673[_0x184c40(0x16f)]),_0x1af999(0x3,_0x16d562[_0x184c40(0x31a)]),_0x1af999(0x4,_0x16d562[_0x184c40(0x317)]),_0x1af999(0x5,_0x4606ff)],_0xff46cc[_0x184c40(0xef)]);var _0x2e70dc=Object['defineProperty'],_0x7af65f=Object[_0x184c40(0x34e)],_0x3bdc44=(_0x1f6b52,_0x411505,_0x334f19,_0x53fa09)=>{const _0x485cf3=_0x184c40;for(var _0x23eb6b=_0x53fa09>0x1?void 0x0:_0x53fa09?_0x7af65f(_0x411505,_0x334f19):_0x411505,_0x8e235e=_0x1f6b52[_0x485cf3(0x3bc)]-0x1,_0x5ae6c6;_0x8e235e>=0x0;_0x8e235e--)(_0x5ae6c6=_0x1f6b52[_0x8e235e])&&(_0x23eb6b=(_0x53fa09?_0x5ae6c6(_0x411505,_0x334f19,_0x23eb6b):_0x5ae6c6(_0x23eb6b))||_0x23eb6b);return _0x53fa09&&_0x23eb6b&&_0x2e70dc(_0x411505,_0x334f19,_0x23eb6b),_0x23eb6b;},_0x5011ad=(_0x2c0a45,_0x5b9f12)=>(_0x43692d,_0x2aec0a)=>_0x5b9f12(_0x43692d,_0x2aec0a,_0x2c0a45);let _0x190714=class{constructor(_0x484109,_0x3e36b5,_0x253a50){const _0x216933=_0x184c40;this['_injector']=_0x484109,this['_transformService']=_0x3e36b5,this[_0x216933(0x1d4)]=_0x253a50;}[_0x184c40(0x47a)](_0x16a530){const _0x4ef252=_0x184c40;this[_0x4ef252(0x339)](_0x16a530),this['_transformPreviousActiveRange'](_0x16a530);}[_0x184c40(0x230)](_0x36df47){const _0x4b804c=_0x184c40,{unitID:_0x2af767}=_0x36df47,_0x40577e=this['_renderManagerService'][_0x4b804c(0x251)](_0x2af767)['with'](_0x123d63[_0x4b804c(0x44a)]),{redoCache:_0x18c400}=_0x40577e[_0x4b804c(0x46f)]();if(_0x18c400[_0x4b804c(0x3bc)]===0x0)return _0x36df47;let _0x5d63b9=_0x16d562[_0x4b804c(0x1df)]['deepClone'](_0x36df47[_0x4b804c(0x15e)][0x0]);for(let _0x8692d6=0x0;_0x8692d6<_0x18c400[_0x4b804c(0x3bc)];_0x8692d6++){const _0x3d7977={'id':_0x4b804c(0x2ca),'params':{..._0x18c400[_0x8692d6]}},_0xa5a4c9=this[_0x4b804c(0x186)][_0x4b804c(0x479)](_0x5d63b9,_0x3d7977,!0x1);if(_0x1f42e3['isTransformMutationFailure'](_0xa5a4c9))throw _0xa5a4c9[_0x4b804c(0x28e)];_0x5d63b9=_0xa5a4c9['m1Prime'];}return{..._0x16d562[_0x4b804c(0x1df)][_0x4b804c(0x29a)](_0x36df47),'mutations':[_0x5d63b9]};}[_0x184c40(0x339)](_0x252fc7){const _0x2fc673=_0x184c40,{unitID:_0x46db42}=_0x252fc7,_0x3dbd7d=this[_0x2fc673(0x1d4)]['getRenderById'](_0x46db42)[_0x2fc673(0x4d6)](_0x123d63[_0x2fc673(0x44a)]),{undoCache:_0xce823d,redoCache:_0x1a964f}=_0x3dbd7d[_0x2fc673(0x46f)]();if(_0xce823d[_0x2fc673(0x3bc)]===0x0||_0x1a964f[_0x2fc673(0x3bc)]===0x0)return;const _0x247ea2=[],_0x874201=[];let _0x4717b2=_0x16d562['Tools'][_0x2fc673(0x29a)](_0x252fc7[_0x2fc673(0x15e)][0x0]),_0x4cd39e=_0x16d562[_0x2fc673(0x1df)]['deepClone'](_0x252fc7[_0x2fc673(0x15e)][0x0]);for(let _0x41e4d1=_0xce823d['length']-0x1;_0x41e4d1>=0x0;_0x41e4d1--){const _0x24b56f={'id':_0x2fc673(0x2ca),'params':{..._0xce823d[_0x41e4d1]}},_0x1b23a6={'id':'doc.mutation.rich-text-editing','params':{..._0x1a964f[_0x41e4d1]}},_0x5b7b73=this[_0x2fc673(0x186)][_0x2fc673(0x479)](_0x4717b2,_0x24b56f,!0x1),_0x2c1ce4=this[_0x2fc673(0x186)]['transformMutation'](_0x4cd39e,_0x1b23a6,!0x1);if(_0x1f42e3[_0x2fc673(0x392)](_0x5b7b73))throw _0x5b7b73[_0x2fc673(0x28e)];if(_0x1f42e3[_0x2fc673(0x392)](_0x2c1ce4))throw _0x2c1ce4['error'];_0x247ea2[_0x2fc673(0x170)](_0x5b7b73[_0x2fc673(0x22b)]['params']),_0x874201[_0x2fc673(0x170)](_0x2c1ce4[_0x2fc673(0x22b)][_0x2fc673(0x290)]),_0x4717b2=_0x5b7b73[_0x2fc673(0x3b7)],_0x4cd39e=_0x2c1ce4[_0x2fc673(0x3b7)];}_0x3dbd7d[_0x2fc673(0x229)]({'undoCache':_0x247ea2,'redoCache':_0x874201});}['_transformPreviousActiveRange'](_0x3ae592){const _0x461b92=_0x184c40,{unitID:_0x4b5c68}=_0x3ae592,_0x114c93=this['_renderManagerService'][_0x461b92(0x251)](_0x4b5c68)[_0x461b92(0x4d6)](_0x123d63[_0x461b92(0x44a)]),_0x28200b=_0x114c93[_0x461b92(0x44c)]();if(_0x28200b==null)return;const _0xfd5e7d=[{'id':_0x461b92(0x2ca),'params':{'unitId':_0x3ae592['unitID'],'actions':null,'textRanges':[_0x28200b]}}],_0x44e86a=this['_transformService'][_0x461b92(0x49b)](_0x3ae592,_0xfd5e7d);if(!_0x1f42e3[_0x461b92(0x2c7)](_0x44e86a))throw _0x44e86a[_0x461b92(0x28e)];const _0x5c5e80=_0x44e86a['m2Prime'][0x0][_0x461b92(0x290)]['textRanges'];Array['isArray'](_0x5c5e80)&&_0x5c5e80[_0x461b92(0x3bc)]&&_0x114c93[_0x461b92(0x37b)](_0x5c5e80[0x0]);}};_0x190714=_0x3bdc44([_0x5011ad(0x0,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x5011ad(0x1,_0x1f42e3[_0x184c40(0x254)]),_0x5011ad(0x2,_0x4c937c[_0x184c40(0x25a)])],_0x190714);var _0x4f6fff=Object[_0x184c40(0x471)],_0x2890ad=Object['getOwnPropertyDescriptor'],_0x38e988=(_0x29a8c1,_0x178b6b,_0x183dbe,_0x5c1c46)=>{const _0x3c912e=_0x184c40;for(var _0xcefad7=_0x5c1c46>0x1?void 0x0:_0x5c1c46?_0x2890ad(_0x178b6b,_0x183dbe):_0x178b6b,_0x9349bb=_0x29a8c1[_0x3c912e(0x3bc)]-0x1,_0x4ae236;_0x9349bb>=0x0;_0x9349bb--)(_0x4ae236=_0x29a8c1[_0x9349bb])&&(_0xcefad7=(_0x5c1c46?_0x4ae236(_0x178b6b,_0x183dbe,_0xcefad7):_0x4ae236(_0xcefad7))||_0xcefad7);return _0x5c1c46&&_0xcefad7&&_0x4f6fff(_0x178b6b,_0x183dbe,_0xcefad7),_0xcefad7;},_0x1a5686=(_0x52f40c,_0x1d7833)=>(_0x308c70,_0x22695e)=>_0x1d7833(_0x308c70,_0x22695e,_0x52f40c);_0xff46cc[_0x184c40(0x205)]=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x18e114,_0x2c6188,_0x49ae7b,_0x50d9bc,_0x47e756){const _0x182664=_0x184c40;super(),_0x1fbb55(this,_0x182664(0x157),new Map()),_0x1fbb55(this,_0x182664(0x240),new Map()),_0x1fbb55(this,_0x182664(0x18d),!0x1),(this[_0x182664(0x140)]=_0x18e114,this[_0x182664(0x3ff)]=_0x2c6188,this[_0x182664(0xfd)]=_0x49ae7b,this[_0x182664(0x2b4)]=_0x50d9bc,this[_0x182664(0x223)]=_0x47e756,this[_0x182664(0xea)]());}[_0x184c40(0x2d4)](){this['_disabled']=!0x0;}[_0x184c40(0x2a0)](){const _0x3e1cbd=_0x184c40;this[_0x3e1cbd(0x18d)]=!0x1;}[_0x184c40(0x35a)](){const _0x471754=_0x184c40;this[_0x471754(0x191)]()[_0x471754(0xbf)](()=>super['dispose']());}async['loadOfflineData'](_0x5b8f27){const _0x421c27=_0x184c40;return this[_0x421c27(0x18d)]?null:this[_0x421c27(0x3ff)]['getItem'](_0x379367(_0x5b8f27));}async[_0x184c40(0x196)](_0x3f7dd2,_0x173c09){const _0x3a52dc=_0x184c40;return!!this[_0x3a52dc(0x3ff)]['setItem'](_0x3f7dd2,_0x173c09);}[_0x184c40(0x2c1)](_0x4e60c1,_0x1f7266,_0x5e8ff9,_0x40886b){const _0x547404=_0x184c40,_0x5d4280=this['_revisionService'][_0x547404(0x43e)](_0x4e60c1);this[_0x547404(0x157)][_0x547404(0x355)](_0x4e60c1,{'unitID':_0x4e60c1,'type':_0x1f7266,'awaitingChangeset':_0x5e8ff9,'mutations':_0x40886b,'rev':_0x5d4280}),this[_0x547404(0x240)]['has'](_0x4e60c1)||this[_0x547404(0x37d)](_0x4e60c1);}[_0x184c40(0x37d)](_0x18110a){const _0xff54f5=_0x184c40,_0x1b1728=this[_0xff54f5(0x39c)]();_0x1b1728===0x0?this[_0xff54f5(0x179)](_0x18110a):this['_saveTaskMap']['set'](_0x18110a,setTimeout(()=>this[_0xff54f5(0x179)](_0x18110a),_0x1b1728));}[_0x184c40(0x39c)](){const _0x112e39=_0x184c40;var _0x20d4e5;return(_0x20d4e5=this[_0x112e39(0x140)][_0x112e39(0xfb)](_0x103e56))!=null?_0x20d4e5:0x3e8;}['_saveCache'](_0x463b7b){const _0x34e91b=_0x184c40,_0x5e681b=this[_0x34e91b(0x240)][_0x34e91b(0x3d9)](_0x463b7b);return _0x5e681b!==void 0x0&&window[_0x34e91b(0x2b7)](_0x5e681b),this[_0x34e91b(0x3ff)][_0x34e91b(0x380)](_0x379367(_0x463b7b),this[_0x34e91b(0x157)][_0x34e91b(0x3d9)](_0x463b7b))[_0x34e91b(0xbf)](()=>this[_0x34e91b(0x240)][_0x34e91b(0x2c9)](_0x463b7b));}async[_0x184c40(0x191)](){const _0x5b952e=_0x184c40,_0x159c72=[];this[_0x5b952e(0x240)][_0x5b952e(0x284)]((_0x5a0a1c,_0x33ba2b)=>{const _0x1e4139=_0x5b952e;window['clearTimeout'](_0x5a0a1c),_0x159c72[_0x1e4139(0x250)](this[_0x1e4139(0x179)](_0x33ba2b)[_0x1e4139(0xbf)](()=>{const _0xfa1745=_0x1e4139;this['_saveTaskMap'][_0xfa1745(0x2c9)](_0x33ba2b);}));}),await Promise[_0x5b952e(0x3a4)](_0x159c72);}[_0x184c40(0xea)](){const _0x33cddf=_0x184c40;this[_0x33cddf(0xce)](this[_0x33cddf(0xfd)]['registerBeforeClose'](()=>{const _0x387048=_0x33cddf;if(this['_saveTaskMap'][_0x387048(0x36a)])return this['_localeService']['t'](_0x387048(0x10d));}));}},_0xff46cc[_0x184c40(0x205)]=_0x38e988([_0x1a5686(0x0,_0x16d562[_0x184c40(0x317)]),_0x1a5686(0x1,_0x16d562[_0x184c40(0x2c5)]),_0x1a5686(0x2,_0x5f2673[_0x184c40(0x33e)]),_0x1a5686(0x3,_0x16d562['Inject'](_0x16d562[_0x184c40(0x42c)])),_0x1a5686(0x4,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)]))],_0xff46cc['LocalCacheService']);function _0x379367(_0x5ec01a){const _0x494ee7=_0x184c40;return _0x494ee7(0x18f)+_0x5ec01a;}var _0x2d724e=Object[_0x184c40(0x471)],_0xf42862=Object['getOwnPropertyDescriptor'],_0x193f45=(_0x50a67e,_0x1c5f63,_0x3e0b18,_0x264641)=>{const _0x10f3a9=_0x184c40;for(var _0xef15b8=_0x264641>0x1?void 0x0:_0x264641?_0xf42862(_0x1c5f63,_0x3e0b18):_0x1c5f63,_0x15485a=_0x50a67e[_0x10f3a9(0x3bc)]-0x1,_0x32c445;_0x15485a>=0x0;_0x15485a--)(_0x32c445=_0x50a67e[_0x15485a])&&(_0xef15b8=(_0x264641?_0x32c445(_0x1c5f63,_0x3e0b18,_0xef15b8):_0x32c445(_0xef15b8))||_0xef15b8);return _0x264641&&_0xef15b8&&_0x2d724e(_0x1c5f63,_0x3e0b18,_0xef15b8),_0xef15b8;},_0x2d4dd6=(_0x428b13,_0x549ac7)=>(_0x33a8f9,_0x44942c)=>_0x549ac7(_0x33a8f9,_0x44942c,_0x428b13);function _0x13ecfd(_0x2cb25d){const _0xc601d0=_0x184c40,{unitID:_0x399148,mutations:_0xfd5117}=_0x2cb25d;return{'unitId':_0x399148,'subUnitId':_0xfd5117[0x0][_0xc601d0(0x290)][_0xc601d0(0x3fb)]};}let _0x11c95c=class{constructor(_0xe044d9,_0x45baa0,_0x513d32){const _0x3a18c5=_0x184c40;this[_0x3a18c5(0x183)]=_0xe044d9,this[_0x3a18c5(0x186)]=_0x45baa0,this[_0x3a18c5(0x435)]=_0x513d32;}[_0x184c40(0x2f1)](_0xc9b77d){const _0x40b46a=_0x184c40;var _0x40c81b,_0x496a69,_0x4ec98e,_0x5e5b01;const _0x40e8c5=this[_0x40b46a(0x183)][_0x40b46a(0x3d9)](_0x30fd53['SheetsSelectionsService']),{unitId:_0x59d969,subUnitId:_0xfcbeaf}=_0x13ecfd(_0xc9b77d),_0x5e8942=_0x40e8c5[_0x40b46a(0x12a)](_0x59d969)[_0x40b46a(0x2c8)](),_0x40052c=(_0x496a69=(_0x40c81b=this[_0x40b46a(0x435)][_0x40b46a(0x487)](_0x59d969))==null?void 0x0:_0x40c81b[_0x40b46a(0x1f6)]())==null?void 0x0:_0x496a69['getSheetId']();if(_0x5e8942[_0x40b46a(0x3bc)]===0x0||!_0x59d969||!_0xfcbeaf)return;const _0x376c3f=[{'id':_0x30fd53[_0x40b46a(0x465)]['id'],'params':{'unitId':_0x59d969,'subUnitId':_0x40052c,'selections':_0x16d562[_0x40b46a(0x1df)]['deepClone'](_0x5e8942)}}],_0x355496=this[_0x40b46a(0x186)][_0x40b46a(0x49b)](_0xc9b77d,_0x376c3f);if(!_0x1f42e3[_0x40b46a(0x2c7)](_0x355496))throw _0x355496['error'];const _0x2999b2=(_0x5e5b01=(_0x4ec98e=_0x355496[_0x40b46a(0x22b)][0x0])==null?void 0x0:_0x4ec98e[_0x40b46a(0x290)])==null?void 0x0:_0x5e5b01[_0x40b46a(0x437)];Array[_0x40b46a(0x2ee)](_0x2999b2)&&_0x2999b2[_0x40b46a(0x3bc)]&&this[_0x40b46a(0x183)][_0x40b46a(0x3d9)](_0x16d562[_0x40b46a(0x156)])[_0x40b46a(0x2d5)](_0x30fd53[_0x40b46a(0x465)]['id'],{'unitId':_0x59d969,'subUnitId':_0x40052c,'selections':_0x2999b2});}};_0x11c95c=_0x193f45([_0x2d4dd6(0x0,_0x16d562['Inject'](_0x16d562['Injector'])),_0x2d4dd6(0x1,_0x1f42e3[_0x184c40(0x254)]),_0x2d4dd6(0x2,_0x16d562[_0x184c40(0x466)])],_0x11c95c);const _0x110502=_0x16d562['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x2fccbf=(_0x58bef6=>(_0x58bef6[_0x58bef6[_0x184c40(0x141)]=0x0]=_0x184c40(0x141),_0x58bef6[_0x58bef6[_0x184c40(0x2b6)]=0x1]='OTHER_CLIENTS_EDITING',_0x58bef6))(_0x2fccbf||{});const _0x366d0e=0x7530,_0x724989='ACTIVE_UNIT_EVENT_CHANNEL';class _0x569ce6 extends _0x16d562[_0x184c40(0x15c)]{constructor(){const _0x46bbf5=_0x184c40;super(),_0x1fbb55(this,_0x46bbf5(0x422),_0x16d562['Tools'][_0x46bbf5(0x128)]()),_0x1fbb55(this,_0x46bbf5(0x3e2),new Set()),_0x1fbb55(this,_0x46bbf5(0x123),new Map()),_0x1fbb55(this,_0x46bbf5(0x19e),null),_0x1fbb55(this,_0x46bbf5(0x4da),new Map()),_0x1fbb55(this,_0x46bbf5(0x3f9),new Map()),this[_0x46bbf5(0x2d7)]();}['dispose'](){const _0x1b8647=_0x184c40;super[_0x1b8647(0x35a)](),this[_0x1b8647(0x4da)]['forEach']((_0x50b97e,_0x238674)=>this[_0x1b8647(0x20e)](_0x238674)),this['_heartbeatTimer']&&window[_0x1b8647(0x101)](this['_heartbeatTimer']);}[_0x184c40(0x31d)](_0x38bccb){const _0x2996f9=_0x184c40;return this[_0x2996f9(0x17f)](_0x38bccb)['pipe'](_0x1f1780['distinctUntilChanged']());}[_0x184c40(0x4b7)](_0x2dfac0){const _0x36c674=_0x184c40;this[_0x36c674(0x3e2)][_0x36c674(0x36a)]===0x0&&this[_0x36c674(0x27d)](),this[_0x36c674(0x3e2)][_0x36c674(0x279)](_0x2dfac0),this[_0x36c674(0x3f8)]({'type':0x0,'memberID':this[_0x36c674(0x422)],'unitIDs':[_0x2dfac0],'isForwarded':!0x1});}[_0x184c40(0x274)](_0x585ff5){const _0x238b18=_0x184c40;this[_0x238b18(0x3e2)]['delete'](_0x585ff5),this['_selfUnitIDs'][_0x238b18(0x36a)]===0x0&&this[_0x238b18(0x19e)]&&window[_0x238b18(0x101)](this['_heartbeatTimer']);}['_init'](){const _0x2f222a=_0x184c40;this[_0x2f222a(0xce)](_0x16d562[_0x2f222a(0x228)](_0x1f1780['fromEvent'](window,'storage')[_0x2f222a(0x462)](_0x2f4e5a=>{const _0x467a9d=_0x2f222a;if(_0x2f4e5a[_0x467a9d(0xd9)]!==_0x724989||!_0x2f4e5a[_0x467a9d(0x214)])return;const _0x15fd2b=JSON[_0x467a9d(0xf2)](_0x2f4e5a[_0x467a9d(0x214)]);this[_0x467a9d(0x232)](_0x15fd2b);}))),window[_0x2f222a(0x349)](_0x2f222a(0x308),()=>this[_0x2f222a(0x3f8)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x184c40(0x232)](_0x1a95d4){const _0x4d319d=_0x184c40;switch(_0x1a95d4[_0x4d319d(0x340)]){case 0x0:this[_0x4d319d(0x2c0)](_0x1a95d4);break;case 0x1:this['_handleLeaveEvent'](_0x1a95d4);break;case 0x2:this['_handleHeartbeatEvent'](_0x1a95d4);break;}}[_0x184c40(0x2c0)](_0x2a2537){const _0x12878e=_0x184c40,{unitIDs:_0x30ee96,memberID:_0x3bf222,isForwarded:_0x22bf56}=_0x2a2537;_0x30ee96[_0x12878e(0x284)](_0x1f7e6d=>{const _0x59f5eb=_0x12878e;if(!_0x22bf56&&this[_0x59f5eb(0x123)][_0x59f5eb(0x4c2)](_0x1f7e6d)&&this[_0x59f5eb(0x17f)](_0x1f7e6d)['next'](0x1),!this[_0x59f5eb(0x123)][_0x59f5eb(0x4c2)](_0x1f7e6d)||!this['_unitOnClients'][_0x59f5eb(0x3d9)](_0x1f7e6d)[_0x59f5eb(0x4c2)](_0x3bf222)){const _0x50969a=this['_unitOnClients'][_0x59f5eb(0x3d9)](_0x1f7e6d)||new Set();_0x50969a[_0x59f5eb(0x279)](_0x3bf222),this['_unitOnClients']['set'](_0x1f7e6d,_0x50969a),this['_scheduleClearOtherTimer'](_0x3bf222);}}),_0x22bf56||this[_0x12878e(0x3f8)]({'type':0x0,'memberID':this[_0x12878e(0x422)],'unitIDs':[...this[_0x12878e(0x3e2)]],'isForwarded':!0x0});}[_0x184c40(0x213)](_0x4873fc){const _0x2b6663=_0x184c40;this['_removeClearOtherTimer'](_0x4873fc);const _0x181326=window[_0x2b6663(0x231)](()=>{const _0x2734c0=_0x2b6663;this[_0x2734c0(0x123)][_0x2734c0(0x284)](_0x2931b5=>{const _0x258eea=_0x2734c0;_0x2931b5[_0x258eea(0x2c9)](_0x4873fc);});},_0x366d0e*0x2);this[_0x2b6663(0x4da)][_0x2b6663(0x355)](_0x4873fc,_0x181326);}[_0x184c40(0x20e)](_0x5d5d64){const _0x40b3d9=_0x184c40;if(this[_0x40b3d9(0x4da)]['has'](_0x5d5d64)){const _0x100cc8=this[_0x40b3d9(0x4da)]['get'](_0x5d5d64);_0x100cc8&&window[_0x40b3d9(0x2b7)](_0x100cc8),this['_clearOtherTimers'][_0x40b3d9(0x355)](_0x5d5d64,null);}}[_0x184c40(0x177)](_0x5a587d){const _0x24ebab=_0x184c40,{memberID:_0xdb7064,unitIDs:_0xa6fa62}=_0x5a587d;_0xa6fa62[_0x24ebab(0x284)](_0xb44ad6=>{const _0x1dc3ef=_0x24ebab;var _0x476bb6;const _0x372c6a=this['_unitOnClients'][_0x1dc3ef(0x3d9)](_0xb44ad6);_0x372c6a&&(_0x372c6a[_0x1dc3ef(0x2c9)](_0xdb7064),(_0x476bb6=this['_ensureSubject'](_0xb44ad6))==null||_0x476bb6[_0x1dc3ef(0x2d2)](_0x372c6a[_0x1dc3ef(0x36a)]===0x0?0x0:0x1));}),this[_0x24ebab(0x20e)](_0xdb7064);}['_handleHeartbeatEvent'](_0x4d463a){const _0x455444=_0x184c40;this[_0x455444(0x213)](_0x4d463a[_0x455444(0x3a5)]);}[_0x184c40(0x3f8)](_0x4409c3){const _0x20efe1=_0x184c40;localStorage['setItem'](_0x724989,JSON[_0x20efe1(0x313)](_0x4409c3));}[_0x184c40(0x27d)](){const _0xa8c4de=_0x184c40;this[_0xa8c4de(0x19e)]=window[_0xa8c4de(0x417)](()=>{const _0x1df830=_0xa8c4de;this[_0x1df830(0x3f8)]({'type':0x2,'memberID':this[_0x1df830(0x422)]});},_0x366d0e);}[_0x184c40(0x17f)](_0x366ae3){const _0x46f310=_0x184c40;return this['_unitStatus'][_0x46f310(0x4c2)](_0x366ae3)||this['_unitStatus']['set'](_0x366ae3,new _0x1f1780['BehaviorSubject'](0x0)),this[_0x46f310(0x3f9)][_0x46f310(0x3d9)](_0x366ae3);}}function _0xf68256(_0x48e32f){const _0x4de73c=_0x184c40;let _0x1d6d4f='';for(const _0x161681 of _0x48e32f){const {startOffset:_0x8cd816,endOffset:_0x48ec6c,isActive:_0x138103}=_0x161681;_0x1d6d4f[_0x4de73c(0x3bc)]&&(_0x1d6d4f+=','),_0x1d6d4f+=_0x8cd816+':'+_0x48ec6c+':'+(_0x138103?'1':'0');}return _0x1d6d4f;}function _0x197fec(_0x225348){const _0x1973a7=_0x184c40,_0x67b4c0=_0x225348[_0x1973a7(0x48a)](','),_0x28ae12=[];for(const _0x318b3c of _0x67b4c0){const [_0x10df0c,_0x5881d8,_0x211d44]=_0x318b3c[_0x1973a7(0x48a)](':');_0x28ae12[_0x1973a7(0x250)]({'startOffset':Number(_0x10df0c),'endOffset':Number(_0x5881d8),'collapsed':_0x10df0c===_0x5881d8,'isActive':_0x211d44==='1'});}return _0x28ae12[_0x1973a7(0x181)](_0x230116=>_0x230116[_0x1973a7(0x13b)])||(_0x28ae12[0x0]['isActive']=!0x0),_0x28ae12;}class _0x126509 extends _0x16d562[_0x184c40(0x204)]{constructor(){const _0xf68cdf=_0x184c40;super(...arguments),_0x1fbb55(this,'_collabCursorState$',new _0x1f1780[(_0xf68cdf(0x2f0))](null)),_0x1fbb55(this,_0xf68cdf(0x408),this['_collabCursorState$'][_0xf68cdf(0x376)]());}[_0x184c40(0x3d1)](_0x29326e){const {unitID:_0x1531b9,memberID:_0x274d43,textRanges:_0x52d89c}=_0x29326e,_0x5bb1ae=_0xf68256(_0x52d89c),_0x44f4b5={'unitID':_0x1531b9,'memberID':_0x274d43,'selection':_0x5bb1ae};this['_collabCursorState$']['next'](_0x44f4b5);}}var _0x17b97b=Object[_0x184c40(0x471)],_0x1cfedc=Object['getOwnPropertyDescriptor'],_0x400753=(_0x483f4a,_0x1ea830,_0x330cbf,_0x559de7)=>{const _0x2c0122=_0x184c40;for(var _0x2e87f4=_0x559de7>0x1?void 0x0:_0x559de7?_0x1cfedc(_0x1ea830,_0x330cbf):_0x1ea830,_0x15ebf2=_0x483f4a[_0x2c0122(0x3bc)]-0x1,_0x1d63bb;_0x15ebf2>=0x0;_0x15ebf2--)(_0x1d63bb=_0x483f4a[_0x15ebf2])&&(_0x2e87f4=(_0x559de7?_0x1d63bb(_0x1ea830,_0x330cbf,_0x2e87f4):_0x1d63bb(_0x2e87f4))||_0x2e87f4);return _0x559de7&&_0x2e87f4&&_0x17b97b(_0x1ea830,_0x330cbf,_0x2e87f4),_0x2e87f4;},_0x3fd77b=(_0x454e7f,_0x557768)=>(_0x34eff8,_0x22e2cb)=>_0x557768(_0x34eff8,_0x22e2cb,_0x454e7f);let _0x480601=class{constructor(_0x1f3434,_0x39cbec){const _0x44a2fa=_0x184c40;this[_0x44a2fa(0x183)]=_0x1f3434,this[_0x44a2fa(0x186)]=_0x39cbec;}[_0x184c40(0x2f1)](_0x53f0fb){const _0x1ec4df=_0x184c40;var _0x4e1d1b;const _0x496df6=this[_0x1ec4df(0x183)][_0x1ec4df(0x3d9)](_0x412f6a[_0x1ec4df(0x323)]),_0x29e080=(_0x4e1d1b=_0x496df6[_0x1ec4df(0x396)]())!=null?_0x4e1d1b:[];if(_0x29e080[_0x1ec4df(0x3bc)]===0x0)return;const _0x5bd027=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x53f0fb['unitID'],'actions':null,'textRanges':_0x29e080}}],_0x498c0c=this[_0x1ec4df(0x186)][_0x1ec4df(0x49b)](_0x53f0fb,_0x5bd027);if(!_0x1f42e3[_0x1ec4df(0x2c7)](_0x498c0c))throw _0x498c0c[_0x1ec4df(0x28e)];const _0x17ea18=_0x498c0c[_0x1ec4df(0x22b)][0x0][_0x1ec4df(0x290)][_0x1ec4df(0x1ae)];Array[_0x1ec4df(0x2ee)](_0x17ea18)&&_0x17ea18[_0x1ec4df(0x3bc)]&&_0x496df6[_0x1ec4df(0x411)](_0x17ea18,!0x1);}};_0x480601=_0x400753([_0x3fd77b(0x0,_0x16d562['Inject'](_0x16d562[_0x184c40(0x3a2)])),_0x3fd77b(0x1,_0x1f42e3[_0x184c40(0x254)])],_0x480601);const _0xfb0af4=new Set([_0x30fd53['InsertSheetMutation']['id']]);function _0x47b1ec(_0x40b89c,_0x4b461d,_0x4fa686,_0x186fe7,_0x5b4f0f){const _0x2a0b02=_0x184c40;var _0xe89c81,_0x1cd0f6,_0x5bd57b,_0x136735;const _0x1657bc=[];for(const _0x15bff1 of _0x40b89c)if(_0xfb0af4['has'](_0x15bff1['id'])){if(_0x1657bc[_0x2a0b02(0x3bc)]>0x0)break;_0x1657bc[_0x2a0b02(0x250)](_0x15bff1);break;}else _0x1657bc['push'](_0x15bff1);const _0x4a9d53=(_0x1cd0f6=(_0xe89c81=_0x5b4f0f[_0x2a0b02(0x203)]())==null?void 0x0:_0xe89c81['userID'])!=null?_0x1cd0f6:_0x2a0b02(0x271),_0x40ef14=(_0x136735=(_0x5bd57b=_0x5b4f0f[_0x2a0b02(0x203)]())==null?void 0x0:_0x5bd57b[_0x2a0b02(0x3a5)])!=null?_0x136735:_0x2a0b02(0x271);return{'changeset':{'unitID':_0x4b461d,'type':_0x1f42e3['mapDocumentTypeToUniverType'](_0x4fa686[_0x2a0b02(0x448)](_0x4b461d)),'baseRev':_0x186fe7['getCurrentRevOfUnit'](_0x4b461d),'revision':0x0,'userID':_0x4a9d53,'memberID':_0x40ef14,'mutations':_0x1657bc},'pendingMutations':_0x40b89c[_0x2a0b02(0x2c4)](_0x1657bc['length'])};}function _0x4d9781(_0x2c4670,_0x3b4d4f,_0x4d9976,_0x554258,_0x7ff11c){const _0x487ae=_0x184c40;var _0x3f8d93,_0xa64695,_0x384466,_0x2c3dfd;const _0xf178c0=[_0x2c4670[_0x487ae(0x36b)]((_0x37420e,_0x171403)=>{const _0x131f9a=_0x487ae;var _0xc9dc73;const {id:_0x2c54e3}=_0x37420e,{id:_0x38e17b,type:_0x3e4220}=_0x171403,_0x2325f7=(_0xc9dc73=_0x37420e[_0x131f9a(0x290)])!=null?_0xc9dc73:{'actions':null},_0x2d61c7=_0x171403[_0x131f9a(0x290)];if(_0x2c54e3&&_0x2c54e3!==_0x38e17b)throw new Error(_0x131f9a(0x297)+_0x2c54e3+'\x20-\x20'+_0x38e17b+'.');return{..._0x37420e,'id':_0x38e17b,'type':_0x3e4220,'params':{'unitId':_0x2d61c7[_0x131f9a(0x354)],'textRanges':_0x2d61c7[_0x131f9a(0x1ae)],'actions':_0x16d562[_0x131f9a(0x363)]['compose'](_0x2325f7[_0x131f9a(0x277)],_0x2d61c7[_0x131f9a(0x277)])}};},{})],_0x4c4bf0=(_0xa64695=(_0x3f8d93=_0x7ff11c['getCurrentUser']())==null?void 0x0:_0x3f8d93[_0x487ae(0x43a)])!=null?_0xa64695:_0x487ae(0x271),_0x3a7fd6=(_0x2c3dfd=(_0x384466=_0x7ff11c[_0x487ae(0x203)]())==null?void 0x0:_0x384466[_0x487ae(0x3a5)])!=null?_0x2c3dfd:_0x487ae(0x271);return{'changeset':{'unitID':_0x3b4d4f,'type':_0x1f42e3[_0x487ae(0x39a)](_0x4d9976[_0x487ae(0x448)](_0x3b4d4f)),'baseRev':_0x554258[_0x487ae(0x43e)](_0x3b4d4f),'revision':0x0,'userID':_0x4c4bf0,'memberID':_0x3a7fd6,'mutations':_0xf178c0},'pendingMutations':[]};}const _0x41b285={'id':_0x30fd53[_0x184c40(0x2ac)]['id'],'type':_0x16d562['CommandType']['MUTATION'],'params':{}};var _0x261cc5=Object['defineProperty'],_0x5ce599=Object[_0x184c40(0x34e)],_0x31579c=(_0x5b9499,_0x240321,_0x5af81e,_0x5b7045)=>{const _0x2213a4=_0x184c40;for(var _0xba488d=_0x5b7045>0x1?void 0x0:_0x5b7045?_0x5ce599(_0x240321,_0x5af81e):_0x240321,_0xc103b4=_0x5b9499[_0x2213a4(0x3bc)]-0x1,_0x805f3e;_0xc103b4>=0x0;_0xc103b4--)(_0x805f3e=_0x5b9499[_0xc103b4])&&(_0xba488d=(_0x5b7045?_0x805f3e(_0x240321,_0x5af81e,_0xba488d):_0x805f3e(_0xba488d))||_0xba488d);return _0x5b7045&&_0xba488d&&_0x261cc5(_0x240321,_0x5af81e,_0xba488d),_0xba488d;},_0x5e28d2=(_0x55c7a8,_0x47c4f4)=>(_0x3a4dd7,_0x1dfa06)=>_0x47c4f4(_0x3a4dd7,_0x1dfa06,_0x55c7a8),_0x55c585=(_0x328500=>(_0x328500['NOT_COLLAB']='not_collab',_0x328500[_0x184c40(0x42b)]=_0x184c40(0xeb),_0x328500[_0x184c40(0x117)]='pending',_0x328500[_0x184c40(0xc9)]=_0x184c40(0x2b0),_0x328500[_0x184c40(0xdb)]=_0x184c40(0x372),_0x328500[_0x184c40(0x2ea)]='fetch_missing',_0x328500['CONFLICT']=_0x184c40(0x403),_0x328500[_0x184c40(0x1dd)]=_0x184c40(0x455),_0x328500))(_0x55c585||{});class _0x17ed36{constructor(_0xca6653,_0x128f6a,_0x5e7a3f,_0xf5570a,_0x485852,_0x28711b,_0x54a450,_0x57cbcf,_0x11249c){const _0x27dfa9=_0x184c40;_0x1fbb55(this,_0x27dfa9(0x2de),null),_0x1fbb55(this,_0x27dfa9(0xb7),[]),(this[_0x27dfa9(0x445)]=_0xca6653,this[_0x27dfa9(0x340)]=_0x128f6a,this['_handler']=_0x485852,this[_0x27dfa9(0x3da)]=_0x28711b,this[_0x27dfa9(0x23f)]=_0x54a450,this['_revisionService']=_0x57cbcf,this[_0x27dfa9(0x103)]=_0x11249c,this[_0x27dfa9(0x2de)]=_0x5e7a3f,this[_0x27dfa9(0xb7)]=_0xf5570a);}['_checkMissing'](_0x51705e){const _0x56255c=_0x184c40,_0x5c4828=this[_0x56255c(0x223)][_0x56255c(0x43e)](this[_0x56255c(0x445)]);return _0x51705e[_0x56255c(0xb8)]>_0x5c4828+0x1?(this[_0x56255c(0x1fc)][_0x56255c(0x2ef)]({'from':_0x5c4828,'to':_0x51705e['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x185962){const _0x53e87e=_0x184c40;this['_undoRedoService'][_0x53e87e(0x356)](this[_0x53e87e(0x445)],_0x185962);}['_transformSelections'](_0xb1905c){const _0x5068a3=_0x184c40;var _0x2e712c,_0x1492fb;(_0x1492fb=(_0x2e712c=this['_handler'])[_0x5068a3(0xe7)])==null||_0x1492fb[_0x5068a3(0x3f3)](_0x2e712c,_0xb1905c);}[_0x184c40(0x4b5)](_0x242f30){const _0x25b821=_0x184c40;var _0xeab3a2,_0x4f77cf;return(_0x4f77cf=(_0xeab3a2=this[_0x25b821(0x1fc)])[_0x25b821(0xd3)])==null?void 0x0:_0x4f77cf[_0x25b821(0x3f3)](_0xeab3a2,_0x242f30);}['_transformRemoteChangesetByIMECache'](_0x55b404){const _0x135251=_0x184c40;var _0x4e5c0b,_0x508f94,_0x763522;return(_0x763522=(_0x508f94=(_0x4e5c0b=this[_0x135251(0x1fc)])[_0x135251(0x194)])==null?void 0x0:_0x508f94[_0x135251(0x3f3)](_0x4e5c0b,_0x55b404))!=null?_0x763522:_0x55b404;}['_syncEditingCollabCursor'](_0x5a5f7b){const _0x23dfa2=_0x184c40;var _0x2e0e1b,_0x29c0af;if(this[_0x23dfa2(0x340)]===_0x55b5ea[_0x23dfa2(0x2f5)]){const {unitID:_0x57040a,mutations:_0x27dbc2,memberID:_0x4ad22d}=_0x5a5f7b,_0x247c92=_0x27dbc2[0x0][_0x23dfa2(0x290)][_0x23dfa2(0x1ae)];Array[_0x23dfa2(0x2ee)](_0x247c92)&&_0x247c92[_0x23dfa2(0x3bc)]>0x0&&((_0x29c0af=(_0x2e0e1b=this[_0x23dfa2(0x1fc)])[_0x23dfa2(0x266)])==null||_0x29c0af[_0x23dfa2(0x3f3)](_0x2e0e1b,{'unitID':_0x57040a,'memberID':_0x4ad22d,'textRanges':_0x247c92}));}}[_0x184c40(0x208)](){const _0x346ba1=_0x184c40;this[_0x346ba1(0x103)]['updateOfflineData'](this[_0x346ba1(0x445)],this['type'],this[_0x346ba1(0x2de)],this[_0x346ba1(0xb7)]);}['_getCurrentRevision'](){const _0x3b5033=_0x184c40;return this[_0x3b5033(0x223)][_0x3b5033(0x43e)](this[_0x3b5033(0x445)]);}[_0x184c40(0x23e)](){const _0x5cc5be=_0x184c40;this[_0x5cc5be(0x223)][_0x5cc5be(0x295)](this['unitID']);}[_0x184c40(0x2f8)](_0x5ab35f){const _0x51ac36=_0x184c40;var _0x26a4b8;const _0x48687b=this[_0x51ac36(0x15f)](_0x5ab35f),_0x1df721=_0x16d562[_0x51ac36(0x175)](_0x48687b[_0x51ac36(0x15e)],this['_commandService'],{'fromCollab':!0x0});if(!_0x1df721[_0x51ac36(0x4d8)])throw _0x1df721['error']instanceof Error?_0x1df721[_0x51ac36(0x28e)]:new Error((_0x26a4b8=_0x1df721[_0x51ac36(0x28e)])!=null?_0x26a4b8:'[CollaborationState]:\x20apply\x20error!');this[_0x51ac36(0x4b5)](_0x48687b),this[_0x51ac36(0x4a5)](_0x5ab35f),this[_0x51ac36(0x404)](_0x48687b),this['_syncEditingCollabCursor'](_0x48687b),this[_0x51ac36(0x23e)]();}}let _0x45dea1=class extends _0x17ed36{constructor(_0x48e134,_0x19a313,_0xe209cb,_0x3d4880,_0x4c0203,_0x4f7819,_0x363033,_0x28f86f,_0x505b6f,_0x3c5e7d){const _0x352555=_0x184c40;super(_0x48e134,_0x19a313,null,[],_0xe209cb,_0x28f86f,_0x363033,_0x3d4880,_0x4c0203),_0x1fbb55(this,'status',_0x352555(0xeb)),(this[_0x352555(0x183)]=_0x4f7819,this[_0x352555(0xe6)]=_0x505b6f,this[_0x352555(0x186)]=_0x3c5e7d);}[_0x184c40(0x390)](_0x2d2ef6){const _0x5de80c=_0x184c40,_0x3212c3=this[_0x5de80c(0x183)][_0x5de80c(0x1d5)](_0x3d2df7,this[_0x5de80c(0x445)],this[_0x5de80c(0x340)],[_0x2d2ef6],this['_handler']);return _0x3212c3['_schedule'](),_0x3212c3[_0x5de80c(0x208)](),_0x3212c3;}[_0x184c40(0x114)](_0x5687b1){const _0x5ca941=_0x184c40;if(this[_0x5ca941(0x47b)](_0x5687b1))return this['_injector'][_0x5ca941(0x1d5)](_0x325f53,this['unitID'],this[_0x5ca941(0x340)],null,[],null,[_0x5687b1],this[_0x5ca941(0x1fc)]);try{const _0x2a3b21=this['_transformService'][_0x5ca941(0x49b)](_0x5687b1,[_0x41b285]);if(_0x1f42e3[_0x5ca941(0x2c7)](_0x2a3b21)){const {c1Prime:_0x3e0d71}=_0x2a3b21;return this['_executeRemoteChangeset'](_0x3e0d71),this;}throw _0x2a3b21[_0x5ca941(0x28e)];}catch(_0x3ef2f4){return this[_0x5ca941(0xe6)]['error'](_0x3ef2f4),this['_onConflict'](!0x1);}}[_0x184c40(0x3f6)](_0x413790){const _0x37b522=_0x184c40;return this[_0x37b522(0x183)][_0x37b522(0x1d5)](_0x6d3d79,this['unitID'],this[_0x37b522(0x340)],null,[],this[_0x37b522(0x1fc)],_0x413790);}[_0x184c40(0x3f2)](){const _0x63f402=_0x184c40;throw new Error(_0x63f402(0x360));}[_0x184c40(0x3e3)](){const _0xaba574=_0x184c40;throw new Error(_0xaba574(0x44f));}[_0x184c40(0x2df)](){const _0x4fec0d=_0x184c40;return this['_injector'][_0x4fec0d(0x1d5)](_0x48d8c3,this[_0x4fec0d(0x445)],this[_0x4fec0d(0x340)],null,[],this[_0x4fec0d(0x1fc)]);}[_0x184c40(0x4c1)](){return this;}[_0x184c40(0x1b3)](){const _0x19c548=_0x184c40;throw new Error(_0x19c548(0x144));}[_0x184c40(0x46b)](){const _0x2b5e07=_0x184c40,_0x3ad9a1=this[_0x2b5e07(0x223)][_0x2b5e07(0x43e)](this[_0x2b5e07(0x445)]);return this[_0x2b5e07(0x1fc)][_0x2b5e07(0x2ef)]({'from':_0x3ad9a1,'to':0x0}),this['_injector'][_0x2b5e07(0x1d5)](_0x325f53,this['unitID'],this[_0x2b5e07(0x340)],null,[],null,[],this[_0x2b5e07(0x1fc)]);}};_0x45dea1=_0x31579c([_0x5e28d2(0x3,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x4,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x5e28d2(0x5,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x5e28d2(0x6,_0x16d562['IUndoRedoService']),_0x5e28d2(0x7,_0x16d562['ICommandService']),_0x5e28d2(0x8,_0x16d562[_0x184c40(0x31a)]),_0x5e28d2(0x9,_0x1f42e3[_0x184c40(0x254)])],_0x45dea1);let _0x3d2df7=class extends _0x17ed36{constructor(_0x39610e,_0x16ca92,_0xaf716c,_0x434c7e,_0xddf02c,_0x3d89ae,_0x1f0403,_0x1a9f30,_0x1f906b,_0xd019c8,_0x14fe23,_0x488afa,_0x3e43ea,_0x50998d){const _0x33177c=_0x184c40;super(_0x39610e,_0x16ca92,null,_0xaf716c,_0x434c7e,_0xd019c8,_0x50998d,_0x3d89ae,_0x1f0403),_0x1fbb55(this,_0x33177c(0x362),_0x33177c(0x39e)),_0x1fbb55(this,_0x33177c(0x456),null),_0x1fbb55(this,_0x33177c(0x3f5),null),(this[_0x33177c(0x183)]=_0xddf02c,this[_0x33177c(0xcb)]=_0x1a9f30,this[_0x33177c(0xe6)]=_0x1f906b,this[_0x33177c(0x140)]=_0x14fe23,this['_transformService']=_0x488afa,this[_0x33177c(0x1b5)]=_0x3e43ea);}['appendMutation'](_0x2d5088){const _0xe86fd1=_0x184c40;return this['_pendingMutations'][_0xe86fd1(0x250)](_0x2d5088),this[_0xe86fd1(0x208)](),this;}[_0x184c40(0x114)](_0x39c975){const _0x319138=_0x184c40;if(this[_0x319138(0x47b)](_0x39c975))return this['_clearScheduledTask'](),this[_0x319138(0x183)][_0x319138(0x1d5)](_0x325f53,this[_0x319138(0x445)],this[_0x319138(0x340)],null,this[_0x319138(0xb7)],null,[_0x39c975],this['_handler']);try{const _0x5a1ec8=this[_0x319138(0x186)]['transformMutationsWithChangeset'](_0x39c975,this['_pendingMutations']);if(_0x1f42e3[_0x319138(0x2c7)](_0x5a1ec8)){const {c1Prime:_0x2387a1,m2Prime:_0x139b8b}=_0x5a1ec8;this[_0x319138(0x2f8)](_0x2387a1);const _0x49b30a=this[_0x319138(0x183)][_0x319138(0x1d5)](_0x3d2df7,this[_0x319138(0x445)],this[_0x319138(0x340)],_0x139b8b,this[_0x319138(0x1fc)]);return this[_0x319138(0x389)](),_0x49b30a[_0x319138(0x1a3)](this[_0x319138(0x456)]?Math[_0x319138(0x3ea)](0x0,new Date()[_0x319138(0x1b4)]()-this[_0x319138(0x456)]):this['_getSendChangesetTimeout']()),_0x49b30a;}throw _0x5a1ec8[_0x319138(0x28e)];}catch(_0x1a65d1){return this[_0x319138(0xe6)][_0x319138(0x28e)](_0x1a65d1),this[_0x319138(0x3f6)](!0x1);}}[_0x184c40(0x3f2)](){const _0x491c12=_0x184c40;throw new Error(_0x491c12(0x399));}[_0x184c40(0x3e3)](){const _0x57a9ea=_0x184c40;throw new Error(_0x57a9ea(0x4c8));}[_0x184c40(0x2df)](){const _0x47f825=_0x184c40;return this[_0x47f825(0x389)](),this[_0x47f825(0x183)][_0x47f825(0x1d5)](_0x48d8c3,this['unitID'],this[_0x47f825(0x340)],null,this[_0x47f825(0xb7)],this['_handler']);}[_0x184c40(0x4c1)](){return this;}[_0x184c40(0x1a3)](_0x32752b){const _0x234b01=_0x184c40,_0x3da695=_0x32752b!=null?_0x32752b:this[_0x234b01(0xf4)]();this[_0x234b01(0x456)]=new Date()[_0x234b01(0x1b4)](),this[_0x234b01(0x3f5)]=window['setTimeout'](()=>{const _0x55fdca=_0x234b01;this[_0x55fdca(0x389)]();let _0x160e1e=null;switch(this['type']){case _0x55b5ea[_0x55fdca(0x1ce)]:{_0x160e1e=_0x47b1ec(this[_0x55fdca(0xb7)],this['unitID'],this[_0x55fdca(0x1b5)],this[_0x55fdca(0x223)],this[_0x55fdca(0xcb)]);break;}case _0x55b5ea[_0x55fdca(0x2f5)]:{this[_0x55fdca(0xb7)][_0x55fdca(0x22d)](_0x3073b1=>_0x3073b1['id']===_0x412f6a[_0x55fdca(0x264)]['id'])?_0x160e1e=_0x4d9781(this[_0x55fdca(0xb7)],this[_0x55fdca(0x445)],this[_0x55fdca(0x1b5)],this[_0x55fdca(0x223)],this[_0x55fdca(0xcb)]):_0x160e1e=_0x47b1ec(this[_0x55fdca(0xb7)],this[_0x55fdca(0x445)],this[_0x55fdca(0x1b5)],this[_0x55fdca(0x223)],this[_0x55fdca(0xcb)]);break;}default:throw new Error(_0x55fdca(0x121)+this[_0x55fdca(0x340)]+'\x20in\x20_schedule.');}const {changeset:_0x4f2039,pendingMutations:_0x2b45d1}=_0x160e1e;this[_0x55fdca(0x1fc)][_0x55fdca(0x285)](_0x4f2039);const _0x5a9f00=_0x2b45d1['length']?this[_0x55fdca(0x183)][_0x55fdca(0x1d5)](_0x4fc9fe,this[_0x55fdca(0x445)],this[_0x55fdca(0x340)],_0x4f2039,_0x2b45d1,this[_0x55fdca(0x1fc)]):this[_0x55fdca(0x183)][_0x55fdca(0x1d5)](_0x4fcfbe,this[_0x55fdca(0x445)],this['type'],_0x4f2039,this[_0x55fdca(0x1fc)]);_0x5a9f00[_0x55fdca(0x208)](),this['_handler']['onStateChange'](this,_0x5a9f00);},_0x3da695);}[_0x184c40(0xf4)](){const _0x8b1af1=_0x184c40;var _0x9a703;const _0x25651a=this[_0x8b1af1(0x140)][_0x8b1af1(0xfb)](_0x5a4b90);return(_0x9a703=_0x25651a==null?void 0x0:_0x25651a[_0x8b1af1(0x293)])!=null?_0x9a703:0x7d0;}[_0x184c40(0x1b3)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x464a78=_0x184c40;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x464a78(0x3f5)]=null);}[_0x184c40(0x3f6)](_0x114a5d){const _0x4020d2=_0x184c40;return this[_0x4020d2(0x389)](),this['_injector'][_0x4020d2(0x1d5)](_0x6d3d79,this[_0x4020d2(0x445)],this[_0x4020d2(0x340)],null,this[_0x4020d2(0xb7)],this[_0x4020d2(0x1fc)],_0x114a5d);}};_0x3d2df7=_0x31579c([_0x5e28d2(0x4,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x5e28d2(0x5,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x6,_0x16d562['Inject'](_0xff46cc[_0x184c40(0x205)])),_0x5e28d2(0x7,_0x16d562['Inject'](_0x19c6b5)),_0x5e28d2(0x8,_0x16d562[_0x184c40(0x31a)]),_0x5e28d2(0x9,_0x16d562[_0x184c40(0x156)]),_0x5e28d2(0xa,_0x16d562[_0x184c40(0x317)]),_0x5e28d2(0xb,_0x1f42e3['ITransformService']),_0x5e28d2(0xc,_0x16d562[_0x184c40(0x466)]),_0x5e28d2(0xd,_0x16d562[_0x184c40(0x342)])],_0x3d2df7);let _0x4fcfbe=class extends _0x17ed36{constructor(_0x180aa0,_0x33318f,_0x6e5d79,_0xfc2c49,_0x1b5182,_0x113f40,_0x257361,_0x2cf5af,_0x212d80,_0x868962,_0x12a0b6){const _0x143afd=_0x184c40;super(_0x180aa0,_0x33318f,_0x6e5d79,[],_0xfc2c49,_0x2cf5af,_0x12a0b6,_0x113f40,_0x257361),_0x1fbb55(this,'status',_0x143afd(0x2b0)),(this[_0x143afd(0x183)]=_0x1b5182,this[_0x143afd(0xe6)]=_0x212d80,this[_0x143afd(0x186)]=_0x868962);}[_0x184c40(0x390)](_0x189b3f){const _0x1cb917=_0x184c40,_0x2e9496=this[_0x1cb917(0x183)][_0x1cb917(0x1d5)](_0x4fc9fe,this[_0x1cb917(0x445)],this[_0x1cb917(0x340)],this['_awaitingChangeset'],[_0x189b3f],this[_0x1cb917(0x1fc)]);return _0x2e9496[_0x1cb917(0x208)](),_0x2e9496;}['onRemoteChangeset'](_0x5b91e8){const _0x5749c5=_0x184c40;if(this[_0x5749c5(0x47b)](_0x5b91e8))return this[_0x5749c5(0x183)][_0x5749c5(0x1d5)](_0x325f53,this[_0x5749c5(0x445)],this[_0x5749c5(0x340)],this['_awaitingChangeset'],[],null,[_0x5b91e8],this[_0x5749c5(0x1fc)]);try{const _0x12b313=this['_transformService'][_0x5749c5(0x3de)]([_0x5b91e8],[this[_0x5749c5(0x2de)]],!0x1);if(_0x1f42e3[_0x5749c5(0x169)](_0x12b313)){const {c1Prime:_0x157fa2,c2Prime:_0x5766b9}=_0x12b313;this[_0x5749c5(0x2f8)](_0x157fa2[0x0]),_0x5766b9[0x0]['baseRev']=this['_getCurrentRevision']();const _0x1ded52=this['_injector'][_0x5749c5(0x1d5)](_0x4fcfbe,this['unitID'],this['type'],_0x5766b9[0x0],this[_0x5749c5(0x1fc)]);return _0x1ded52[_0x5749c5(0x208)](),_0x1ded52;}return this[_0x5749c5(0x3f6)](!0x1);}catch(_0x527a02){return this[_0x5749c5(0xe6)][_0x5749c5(0x28e)](_0x527a02),this[_0x5749c5(0x3f6)](!0x1);}}['onRemoteAck'](_0x596407){const _0x586e45=_0x184c40,_0x595e88=this[_0x586e45(0x223)]['getCurrentRevOfUnit'](this['unitID']);if(_0x596407[_0x586e45(0xb8)]<_0x595e88-0x1)return this;if(this[_0x586e45(0x47b)](_0x596407))return this[_0x586e45(0x183)]['createInstance'](_0x325f53,this['unitID'],this['type'],null,[],this[_0x586e45(0x2de)],[],this[_0x586e45(0x1fc)]);this[_0x586e45(0x23e)]();const _0x242e85=this[_0x586e45(0x183)][_0x586e45(0x1d5)](_0x45dea1,this[_0x586e45(0x445)],this['type'],this['_handler']);return _0x242e85[_0x586e45(0x208)](),_0x242e85;}['onRemoteRej'](_0x187ed1){const _0x397074=_0x184c40;return this[_0x397074(0x3f6)](!!(_0x187ed1!=null&&_0x187ed1['isPermissionRej']));}['toggleOffline'](){const _0x2dcfac=_0x184c40;return this[_0x2dcfac(0x183)][_0x2dcfac(0x1d5)](_0x48d8c3,this['unitID'],this[_0x2dcfac(0x340)],this[_0x2dcfac(0x2de)],[],this[_0x2dcfac(0x1fc)]);}[_0x184c40(0x4c1)](){return this;}[_0x184c40(0x1b3)](){const _0x4cdb1a=_0x184c40;this['_handler'][_0x4cdb1a(0x285)](this[_0x4cdb1a(0x2de)]);}[_0x184c40(0x3f6)](_0x2e436b){const _0x26a4a2=_0x184c40;return this[_0x26a4a2(0x183)][_0x26a4a2(0x1d5)](_0x6d3d79,this[_0x26a4a2(0x445)],this[_0x26a4a2(0x340)],this[_0x26a4a2(0x2de)],[],this['_handler'],_0x2e436b);}};_0x4fcfbe=_0x31579c([_0x5e28d2(0x4,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x5e28d2(0x5,_0x16d562['Inject'](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x6,_0x16d562['Inject'](_0xff46cc['LocalCacheService'])),_0x5e28d2(0x7,_0x16d562[_0x184c40(0x156)]),_0x5e28d2(0x8,_0x16d562['ILogService']),_0x5e28d2(0x9,_0x1f42e3[_0x184c40(0x254)]),_0x5e28d2(0xa,_0x16d562['IUndoRedoService'])],_0x4fcfbe);let _0x4fc9fe=class extends _0x17ed36{constructor(_0xe7261f,_0x24f5a0,_0x1eb86e,_0x1cb9df,_0x16585b,_0x26eba9,_0x5de7c6,_0x1e5ca4,_0x27c0be,_0x578668,_0x2a5e91,_0x33f7cc){const _0x12e1af=_0x184c40;super(_0xe7261f,_0x24f5a0,_0x1eb86e,_0x1cb9df,_0x16585b,_0x27c0be,_0x33f7cc,_0x5de7c6,_0x1e5ca4),_0x1fbb55(this,_0x12e1af(0x362),_0x12e1af(0x372)),(this[_0x12e1af(0x183)]=_0x26eba9,this['_logService']=_0x578668,this['_transformService']=_0x2a5e91);}['appendMutation'](_0x40bf97){const _0x560fc1=_0x184c40;return this[_0x560fc1(0xb7)][_0x560fc1(0x250)](_0x40bf97),this;}[_0x184c40(0x114)](_0x3958d4){const _0x3be90f=_0x184c40;if(this[_0x3be90f(0x47b)](_0x3958d4))return this[_0x3be90f(0x183)][_0x3be90f(0x1d5)](_0x325f53,this[_0x3be90f(0x445)],this[_0x3be90f(0x340)],this[_0x3be90f(0x2de)],this[_0x3be90f(0xb7)],null,[_0x3958d4],this['_handler']);try{const _0x1b2e35=this[_0x3be90f(0x186)][_0x3be90f(0x3de)]([_0x3958d4],[this[_0x3be90f(0x2de)]],!0x1);if(_0x1f42e3['isTransformChangesetsSuccess'](_0x1b2e35)){const {c1Prime:_0x187a75,c2Prime:_0x2c10e6}=_0x1b2e35,_0x4b245a=this[_0x3be90f(0x186)][_0x3be90f(0x49b)](_0x187a75[0x0],this['_pendingMutations']);if(_0x1f42e3['isTransformMutationsWithChangesetSuccess'](_0x4b245a)){const {c1Prime:_0x176840,m2Prime:_0x1869ee}=_0x4b245a;return this['_executeRemoteChangeset'](_0x176840),_0x2c10e6[0x0][_0x3be90f(0xed)]=this['_getCurrentRevision'](),this['_injector'][_0x3be90f(0x1d5)](_0x4fc9fe,this[_0x3be90f(0x445)],this['type'],_0x2c10e6[0x0],_0x1869ee,this['_handler']);}throw _0x4b245a[_0x3be90f(0x28e)];}throw _0x1b2e35['error'];}catch(_0x5f10ba){return this[_0x3be90f(0xe6)][_0x3be90f(0x28e)](_0x5f10ba),this[_0x3be90f(0x3f6)](!0x1);}}[_0x184c40(0x3f2)](_0x1787bc){const _0x3f8a58=_0x184c40;if(this[_0x3f8a58(0x47b)](_0x1787bc))return this[_0x3f8a58(0x183)][_0x3f8a58(0x1d5)](_0x325f53,this[_0x3f8a58(0x445)],this['type'],null,this[_0x3f8a58(0xb7)],this[_0x3f8a58(0x2de)],[],this['_handler']);this['_incrementRevisionNumber']();const _0xe1df85=this['_injector'][_0x3f8a58(0x1d5)](_0x3d2df7,this['unitID'],this[_0x3f8a58(0x340)],this[_0x3f8a58(0xb7)],this[_0x3f8a58(0x1fc)]);return _0xe1df85[_0x3f8a58(0x1a3)](),_0xe1df85['_updateLocalCache'](),_0xe1df85;}['onRemoteRej'](_0xb5bdf0){const _0x341e68=_0x184c40;return this[_0x341e68(0x3f6)](!!(_0xb5bdf0!=null&&_0xb5bdf0['isPermissionRej']));}[_0x184c40(0x2df)](){const _0x5894e6=_0x184c40;return this[_0x5894e6(0x183)][_0x5894e6(0x1d5)](_0x48d8c3,this[_0x5894e6(0x445)],this[_0x5894e6(0x340)],this[_0x5894e6(0x2de)],this['_pendingMutations'],this[_0x5894e6(0x1fc)]);}['toggleOnline'](){return this;}[_0x184c40(0x1b3)](){const _0x3e03c9=_0x184c40;this[_0x3e03c9(0x1fc)]['onSendChangeset'](this[_0x3e03c9(0x2de)]);}[_0x184c40(0x3f6)](_0x49a99){const _0x561f13=_0x184c40;return this[_0x561f13(0x183)][_0x561f13(0x1d5)](_0x6d3d79,this[_0x561f13(0x445)],this[_0x561f13(0x340)],null,this['_pendingMutations'],this[_0x561f13(0x1fc)],_0x49a99);}};_0x4fc9fe=_0x31579c([_0x5e28d2(0x5,_0x16d562['Inject'](_0x16d562[_0x184c40(0x3a2)])),_0x5e28d2(0x6,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x7,_0x16d562[_0x184c40(0x1e9)](_0xff46cc['LocalCacheService'])),_0x5e28d2(0x8,_0x16d562[_0x184c40(0x156)]),_0x5e28d2(0x9,_0x16d562['ILogService']),_0x5e28d2(0xa,_0x1f42e3['ITransformService']),_0x5e28d2(0xb,_0x16d562[_0x184c40(0x342)])],_0x4fc9fe);let _0x6d3d79=class extends _0x17ed36{constructor(_0x550c65,_0x19b509,_0x496bcc,_0x1117a2,_0xe4f1f4,_0x1d73ff=!0x1,_0x1368b4,_0xe0733e,_0xd68d1b,_0x5430cb,_0x2cdbaa,_0x2fd9f2,_0xb35af3){const _0x2fc9c8=_0x184c40;super(_0x550c65,_0x19b509,_0x496bcc,_0x1117a2,_0xe4f1f4,_0xe0733e,_0xd68d1b,_0x2cdbaa,_0x5430cb),_0x1fbb55(this,'status','conflict'),(this[_0x2fc9c8(0x4bb)]=_0x1d73ff,this['_permissionService']=_0x1368b4,this[_0x2fc9c8(0x2b4)]=_0x2fd9f2,this['_notificationService']=_0xb35af3,this[_0x2fc9c8(0x1e1)](),this[_0x2fc9c8(0x24f)](),this[_0x2fc9c8(0x4de)]());}[_0x184c40(0x390)](){return this;}[_0x184c40(0x114)](){return this;}['onRemoteAck'](){return this;}[_0x184c40(0x3e3)](){return this;}[_0x184c40(0x2df)](){return this;}[_0x184c40(0x4c1)](){return this;}['resend'](){const _0x261ca1=_0x184c40;throw new Error(_0x261ca1(0x2cf));}[_0x184c40(0x24f)](){const _0x3abec8=_0x184c40;this[_0x3abec8(0x103)][_0x3abec8(0x2c1)](this[_0x3abec8(0x445)],this['type'],null,[]);}[_0x184c40(0x1e1)](){const _0x14d149=_0x184c40;this[_0x14d149(0x4bb)]?this[_0x14d149(0x25c)][_0x14d149(0x1be)]({'title':this[_0x14d149(0x2b4)]['t'](_0x14d149(0x180)),'content':this[_0x14d149(0x2b4)]['t'](_0x14d149(0xc6)),'type':_0x14d149(0x28e),'duration':0x0}):this[_0x14d149(0x25c)][_0x14d149(0x1be)]({'title':this['_localeService']['t'](_0x14d149(0x12f)),'content':this[_0x14d149(0x2b4)]['t'](_0x14d149(0x333)),'type':_0x14d149(0x28e),'duration':0x0});}[_0x184c40(0x4de)](){const _0x15dd45=_0x184c40;this[_0x15dd45(0x1e2)][_0x15dd45(0x302)](new _0x30fd53['WorkbookEditablePermission'](this[_0x15dd45(0x445)])['id'],!0x1);}};_0x6d3d79=_0x31579c([_0x5e28d2(0x6,_0x16d562[_0x184c40(0x1e9)](_0x16d562['IPermissionService'])),_0x5e28d2(0x7,_0x16d562[_0x184c40(0x156)]),_0x5e28d2(0x8,_0x16d562['IUndoRedoService']),_0x5e28d2(0x9,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x5e28d2(0xa,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0xb,_0x16d562['Inject'](_0x16d562[_0x184c40(0x42c)])),_0x5e28d2(0xc,_0x5f2673[_0x184c40(0x3be)])],_0x6d3d79);let _0x48d8c3=class extends _0x17ed36{constructor(_0x4fa5ae,_0x2f4996,_0x3898f3,_0x23ef59,_0x302a93,_0x31a15d,_0x2ab803,_0x511e87,_0x2f3a2f,_0x16995a){const _0x2b7bda=_0x184c40;super(_0x4fa5ae,_0x2f4996,_0x3898f3,_0x23ef59,_0x302a93,_0x2f3a2f,_0x16995a,_0x2ab803,_0x511e87),_0x1fbb55(this,'status',_0x2b7bda(0x455)),this[_0x2b7bda(0x183)]=_0x31a15d;}[_0x184c40(0x390)](_0x377eb){const _0x7a208b=_0x184c40;return this[_0x7a208b(0xb7)][_0x7a208b(0x250)](_0x377eb),this['_updateLocalCache'](),this;}[_0x184c40(0x114)](_0x1517c1){const _0x3abc23=_0x184c40;throw new Error(_0x3abc23(0x136));}['onRemoteAck'](){const _0x1f6133=_0x184c40;throw new Error(_0x1f6133(0x22c));}[_0x184c40(0x3e3)](){const _0x1aeeea=_0x184c40;throw new Error(_0x1aeeea(0x14b));}[_0x184c40(0x2df)](){return this;}[_0x184c40(0x4c1)](){const _0x45a61e=_0x184c40,{_injector:_0x4b9bb4,_pendingMutations:_0xe5e885,_awaitingChangeset:_0x15847a,unitID:_0x3647ad,_handler:_0x37a382,type:_0x5c8c6a}=this,_0x3f33fc=_0x4bca3b(_0x4b9bb4,_0x3647ad,_0x5c8c6a,_0x15847a,_0xe5e885,_0x37a382);return _0x3f33fc instanceof _0x3d2df7?_0x3f33fc[_0x45a61e(0x1a3)]():(_0x3f33fc instanceof _0x4fc9fe||_0x3f33fc instanceof _0x4fcfbe)&&_0x3f33fc[_0x45a61e(0x1b3)](),_0x3f33fc;}[_0x184c40(0x1b3)](){const _0x55c990=_0x184c40;throw new Error(_0x55c990(0x12c));}};_0x48d8c3=_0x31579c([_0x5e28d2(0x5,_0x16d562[_0x184c40(0x1e9)](_0x16d562['Injector'])),_0x5e28d2(0x6,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x7,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x5e28d2(0x8,_0x16d562['ICommandService']),_0x5e28d2(0x9,_0x16d562['IUndoRedoService'])],_0x48d8c3);let _0x325f53=class extends _0x17ed36{constructor(_0x4b880b,_0x23f6df,_0x397bab,_0x1c7214,_0x34dca3,_0x43a7a8,_0x330637,_0x3bde57,_0x20a50a,_0x4d288f,_0x286c08,_0x4c742c,_0x2482c0,_0x299b72){const _0x1591fa=_0x184c40;super(_0x4b880b,_0x23f6df,_0x397bab,_0x1c7214,_0x330637,_0x4c742c,_0x2482c0,_0x20a50a,_0x4d288f),_0x1fbb55(this,_0x1591fa(0x362),_0x1591fa(0x1dc)),(this[_0x1591fa(0x11a)]=_0x34dca3,this[_0x1591fa(0x33d)]=_0x43a7a8,this['_injector']=_0x3bde57,this[_0x1591fa(0xe6)]=_0x286c08,this['_transformService']=_0x299b72);}[_0x184c40(0x382)](_0x311975){const _0x309d05=_0x184c40;try{const _0x2c3c97=[..._0x311975,...this['_queuedRemoteChangesets']],_0x430833=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x309d05(0x1fa)](_0x373834=>!!_0x373834);let _0x38d738,_0x2ca4fd;if(_0x430833[_0x309d05(0x3bc)]){const _0x9498e3=this['_transformService'][_0x309d05(0x3de)](_0x2c3c97,_0x430833,!0x1);if(!_0x1f42e3[_0x309d05(0x169)](_0x9498e3))throw _0x9498e3[_0x309d05(0x28e)];_0x38d738=_0x9498e3[_0x309d05(0x272)],_0x2ca4fd=_0x9498e3[_0x309d05(0x436)];}else _0x38d738=_0x2c3c97,_0x2ca4fd=[];let _0x246609=this['_pendingMutations'];_0x38d738[_0x309d05(0x284)](_0x4d1c1d=>{const _0x1ea432=_0x309d05;let _0x4e6d1c;if(_0x246609[_0x1ea432(0x3bc)]){const _0x4d9052=this[_0x1ea432(0x186)][_0x1ea432(0x49b)](_0x4d1c1d,_0x246609);if(!_0x1f42e3['isTransformMutationsWithChangesetSuccess'](_0x4d9052))throw _0x4d9052[_0x1ea432(0x28e)];_0x4e6d1c=_0x4d9052[_0x1ea432(0x272)],_0x246609=_0x4d9052[_0x1ea432(0x22b)];}else _0x4e6d1c=_0x4d1c1d;this[_0x1ea432(0x2f8)](_0x4e6d1c);}),this[_0x309d05(0x11a)]&&this[_0x309d05(0x23e)](),this[_0x309d05(0x2de)]&&_0x2ca4fd[_0x309d05(0x3bc)]&&(_0x2ca4fd[0x0][_0x309d05(0xed)]=this[_0x309d05(0x18b)]());let _0x5483c2;if(this[_0x309d05(0x2de)]&&_0x246609[_0x309d05(0x3bc)]!==0x0)_0x5483c2=this['_injector']['createInstance'](_0x4fc9fe,this[_0x309d05(0x445)],this[_0x309d05(0x340)],_0x2ca4fd[0x0],_0x246609,this['_handler']);else{if(this[_0x309d05(0x2de)]&&_0x246609['length']===0x0)_0x2ca4fd[0x0][_0x309d05(0xed)]=this['_getCurrentRevision'](),_0x5483c2=this[_0x309d05(0x183)][_0x309d05(0x1d5)](_0x4fcfbe,this[_0x309d05(0x445)],this[_0x309d05(0x340)],_0x2ca4fd[0x0],this[_0x309d05(0x1fc)]);else{if(_0x246609['length']!==0x0){const _0x5bb2bd=this[_0x309d05(0x183)][_0x309d05(0x1d5)](_0x3d2df7,this['unitID'],this['type'],_0x246609,this[_0x309d05(0x1fc)]);_0x5bb2bd[_0x309d05(0x1a3)](),_0x5483c2=_0x5bb2bd;}else _0x5483c2=this['_injector'][_0x309d05(0x1d5)](_0x45dea1,this['unitID'],this[_0x309d05(0x340)],this['_handler']);}}return _0x5483c2[_0x309d05(0x208)](),_0x5483c2;}catch(_0xeafa4a){return this[_0x309d05(0xe6)][_0x309d05(0x28e)](_0x309d05(0x2e0),_0x309d05(0x1d1),_0xeafa4a),this[_0x309d05(0x183)][_0x309d05(0x1d5)](_0x6d3d79,this['unitID'],this[_0x309d05(0x340)],this[_0x309d05(0x2de)],this[_0x309d05(0xb7)],this['_handler'],!0x1);}}[_0x184c40(0x1b3)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x184c40(0x390)](_0x59ca34){const _0x313ab9=_0x184c40;return this[_0x313ab9(0xb7)][_0x313ab9(0x250)](_0x59ca34),this;}[_0x184c40(0x114)](_0x520ebf){const _0x3fcf83=_0x184c40;return this[_0x3fcf83(0x33d)][_0x3fcf83(0x250)](_0x520ebf),this;}[_0x184c40(0x3f2)](_0x533ce7){const _0x3d00cb=_0x184c40;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error(_0x3d00cb(0x498));}[_0x184c40(0x3e3)](_0x16339d){const _0x2cce19=_0x184c40;return this[_0x2cce19(0x3f6)](!!(_0x16339d!=null&&_0x16339d[_0x2cce19(0x3df)]));}[_0x184c40(0x2df)](){const _0x293e98=_0x184c40;return this[_0x293e98(0x183)][_0x293e98(0x1d5)](_0x48d8c3,this[_0x293e98(0x445)],this[_0x293e98(0x340)],this[_0x293e98(0x2de)],this[_0x293e98(0xb7)],this[_0x293e98(0x1fc)]);}[_0x184c40(0x4c1)](){return this;}[_0x184c40(0x3f6)](_0x568111){const _0x197428=_0x184c40;return this['_injector']['createInstance'](_0x6d3d79,this['unitID'],this[_0x197428(0x340)],this[_0x197428(0x2de)],this[_0x197428(0xb7)],this[_0x197428(0x1fc)],_0x568111);}};_0x325f53=_0x31579c([_0x5e28d2(0x7,_0x16d562[_0x184c40(0x1e9)](_0x16d562['Injector'])),_0x5e28d2(0x8,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x9,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x5e28d2(0xa,_0x16d562[_0x184c40(0x31a)]),_0x5e28d2(0xb,_0x16d562[_0x184c40(0x156)]),_0x5e28d2(0xc,_0x16d562['IUndoRedoService']),_0x5e28d2(0xd,_0x1f42e3[_0x184c40(0x254)])],_0x325f53);function _0x4bca3b(_0x4d2dc8,_0x28c8d4,_0x2d580e,_0x4f8bbb,_0x2cef72,_0xab5e76){const _0x500a3d=_0x184c40;return _0x4f8bbb&&_0x2cef72[_0x500a3d(0x3bc)]?_0x4d2dc8['createInstance'](_0x4fc9fe,_0x28c8d4,_0x2d580e,_0x4f8bbb,_0x2cef72,_0xab5e76):_0x4f8bbb?_0x4d2dc8[_0x500a3d(0x1d5)](_0x4fcfbe,_0x28c8d4,_0x2d580e,_0x4f8bbb,_0xab5e76):_0x2cef72['length']?_0x4d2dc8[_0x500a3d(0x1d5)](_0x3d2df7,_0x28c8d4,_0x2d580e,_0x2cef72,_0xab5e76):_0x4d2dc8[_0x500a3d(0x1d5)](_0x45dea1,_0x28c8d4,_0x2d580e,_0xab5e76);}var _0x2cc415=Object[_0x184c40(0x471)],_0x31f00c=Object['getOwnPropertyDescriptor'],_0xd3d40c=(_0xd9c299,_0x4fbc9f,_0x3acec3,_0x4add05)=>{for(var _0x3b18e6=_0x4add05>0x1?void 0x0:_0x4add05?_0x31f00c(_0x4fbc9f,_0x3acec3):_0x4fbc9f,_0x133199=_0xd9c299['length']-0x1,_0x3c749f;_0x133199>=0x0;_0x133199--)(_0x3c749f=_0xd9c299[_0x133199])&&(_0x3b18e6=(_0x4add05?_0x3c749f(_0x4fbc9f,_0x3acec3,_0x3b18e6):_0x3c749f(_0x3b18e6))||_0x3b18e6);return _0x4add05&&_0x3b18e6&&_0x2cc415(_0x4fbc9f,_0x3acec3,_0x3b18e6),_0x3b18e6;},_0x1f40b1=(_0x27556c,_0x53e731)=>(_0x167b1b,_0x339de3)=>_0x53e731(_0x167b1b,_0x339de3,_0x27556c);_0xff46cc['CollaborationEntity']=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x543717,_0x1a3d1e,_0xbf0c4d,_0x5a571a,_0xa31302,_0x12b7ab,_0x57932e,_0x51f419,_0x324ff8,_0x17601d,_0x32050f,_0x51e82f,_0x524ff7){const _0x4497be=_0x184c40;super(),_0x1fbb55(this,_0x4497be(0x3d2),new _0x1f1780[(_0x4497be(0x2f0))](null)),_0x1fbb55(this,_0x4497be(0x1ee),this[_0x4497be(0x3d2)]['asObservable']()),_0x1fbb55(this,_0x4497be(0x421)),_0x1fbb55(this,_0x4497be(0x49c),!0x1),_0x1fbb55(this,'status$',this[_0x4497be(0x1ee)][_0x4497be(0x3b2)](_0x1f1780[_0x4497be(0x3ed)](_0x4b0614=>_0x4b0614?_0x4b0614[_0x4497be(0x362)]:_0x55c585[_0x4497be(0x1dd)]),_0x1f1780['shareReplay'](0x1))),_0x1fbb55(this,'_transitionLocked',!0x1),_0x1fbb55(this,_0x4497be(0x1d3),[]),(this['unitID']=_0x543717,this[_0x4497be(0x351)]=_0x1a3d1e,this[_0x4497be(0x316)]=_0xbf0c4d,this[_0x4497be(0x183)]=_0x5a571a,this[_0x4497be(0x103)]=_0xa31302,this[_0x4497be(0x20f)]=_0x12b7ab,this[_0x4497be(0x2b4)]=_0x57932e,this[_0x4497be(0x223)]=_0x51f419,this[_0x4497be(0xe6)]=_0x324ff8,this['_commandService']=_0x17601d,this[_0x4497be(0x4a3)]=_0x32050f,this[_0x4497be(0x1e2)]=_0x51e82f,this['_singleActiveUnitService']=_0x524ff7);}get['state'](){const _0x39c007=_0x184c40;return this[_0x39c007(0x421)];}async[_0x184c40(0x3e6)](){if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x184c40(0x257)](){const _0xcf680c=_0x184c40;return this['_collaborationPaused']=!0x0,_0x16d562[_0xcf680c(0x228)](()=>{const _0x109105=_0xcf680c;this[_0x109105(0x49c)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x5b7593){const _0x488ac5=_0x184c40;this[_0x488ac5(0x421)]=_0x5b7593,this[_0x488ac5(0x3d2)]['next'](_0x5b7593);}async[_0x184c40(0x2d7)](){const _0x259657=_0x184c40;var _0x464548;this[_0x259657(0x490)](await this[_0x259657(0x4e2)]()),this[_0x259657(0x276)]&&((_0x464548=this[_0x259657(0x276)])==null||_0x464548[_0x259657(0x4b7)](this['unitID']),this['disposeWithMe'](this['_singleActiveUnitService'][_0x259657(0x31d)](this[_0x259657(0x445)])['subscribe'](_0x183d9b=>{const _0x2a03cc=_0x259657;this[_0x2a03cc(0xe6)][_0x2a03cc(0x2b2)](_0x2a03cc(0x35f),'editing\x20status\x20changed\x20to',_0x183d9b),_0x183d9b===_0x2fccbf[_0x2a03cc(0x2b6)]?(this[_0x2a03cc(0x4a3)][_0x2a03cc(0x1be)]({'content':this[_0x2a03cc(0x2b4)]['t']('collaboration.single-unit.warning'),'type':_0x516637[_0x2a03cc(0x1ac)][_0x2a03cc(0xc8)]}),this[_0x2a03cc(0x1e2)]['updatePermissionPoint'](new _0x30fd53['WorkbookEditablePermission'](this[_0x2a03cc(0x445)])['id'],!0x1)):this['_permissionService']['updatePermissionPoint'](new _0x30fd53[(_0x2a03cc(0x4cc))](this[_0x2a03cc(0x445)])['id'],!0x0);})));let _0x4e9669=!0x1;return this[_0x259657(0xce)](this[_0x259657(0x351)]['sessionStatus$'][_0x259657(0x462)](_0x5061cb=>{const _0x278159=_0x259657;_0x5061cb===_0x17c413['ONLINE']?this[_0x278159(0x209)](_0x4e9669):_0x5061cb===_0x17c413['OFFLINE']&&(_0x4e9669=!0x0,this[_0x278159(0xe5)]());})),this[_0x259657(0xce)](this[_0x259657(0x351)][_0x259657(0x30c)][_0x259657(0x462)](_0xbd2d39=>{const _0x2ece36=_0x259657;try{switch(_0xbd2d39[_0x2ece36(0x150)]){case _0x1f42e3[_0x2ece36(0x336)]['NEW_CHANGESETS']:{this[_0x2ece36(0x201)](_0x1f42e3[_0x2ece36(0x26c)](_0xbd2d39['data']));break;}case _0x1f42e3[_0x2ece36(0x336)][_0x2ece36(0x47e)]:{this[_0x2ece36(0x492)](_0xbd2d39['data']);break;}case _0x1f42e3[_0x2ece36(0x336)]['CHANGESET_REJ']:{this[_0x2ece36(0x151)]();break;}case _0x1f42e3[_0x2ece36(0x336)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0xbd2d39['data'][_0x2ece36(0x361)][_0x2ece36(0x3ed)](_0xe5df3a=>_0x1f42e3['parseProtocolChangeset'](_0xe5df3a)));break;}case _0x1f42e3[_0x2ece36(0x336)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x4c2bb5){throw console[_0x2ece36(0x28e)]('Error\x20on\x20receiving\x20event',_0x4c2bb5),_0x4c2bb5;}})),this[_0x259657(0x421)];}[_0x184c40(0xd2)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x3104a7=_0x184c40;if(this[_0x3104a7(0x26b)])throw new Error(_0x3104a7(0x212));this[_0x3104a7(0x26b)]=!0x0;}[_0x184c40(0x4ca)](_0x5f5898){const _0x46291b=_0x184c40;this[_0x46291b(0x46e)](),this['_updateState'](this[_0x46291b(0x421)][_0x46291b(0x390)](_0x5f5898)),this['_unlockTransition']();}[_0x184c40(0x201)](_0x104dea){const _0x35257f=_0x184c40;if(!(_0x104dea[_0x35257f(0xb8)]<=this[_0x35257f(0x223)][_0x35257f(0x43e)](this[_0x35257f(0x445)]))){if(this[_0x35257f(0x49c)]){this[_0x35257f(0x1d3)][_0x35257f(0x250)](_0x104dea);return;}this[_0x35257f(0x147)](_0x104dea);}}[_0x184c40(0x21c)](){const _0x41876c=_0x184c40;this[_0x41876c(0x1d3)][_0x41876c(0x284)](_0x305f94=>this['_applyRemoteChangeset'](_0x305f94)),this[_0x41876c(0x1d3)]=[];}[_0x184c40(0x147)](_0x243f83){const _0x1e4483=_0x184c40,_0x4bbd6f=this['_compressMutationService']['interceptor'][_0x1e4483(0x3d5)](this[_0x1e4483(0x20f)][_0x1e4483(0x420)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x243f83[_0x1e4483(0x15e)],null)||_0x243f83[_0x1e4483(0x15e)],_0x4ca9ab={..._0x243f83,'mutations':_0x4bbd6f};this[_0x1e4483(0x46e)](),this['_updateState'](this[_0x1e4483(0x421)][_0x1e4483(0x114)](_0x4ca9ab)),this[_0x1e4483(0xd2)]();}[_0x184c40(0x492)](_0x5234c7){const _0xb43987=_0x184c40;this[_0xb43987(0x46e)](),this['_updateState'](this[_0xb43987(0x421)]['onRemoteAck'](_0x5234c7)),this[_0xb43987(0xd2)]();}[_0x184c40(0x151)](_0x283d6f){const _0x5b2098=_0x184c40;this[_0x5b2098(0x46e)](),this['_updateState'](this[_0x5b2098(0x421)][_0x5b2098(0x3e3)](_0x283d6f)),this[_0x5b2098(0xd2)]();}[_0x184c40(0x48b)](_0x5e1d18){const _0xfdff12=_0x184c40;if(!(this[_0xfdff12(0x421)]instanceof _0x325f53))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x57776f=_0x5e1d18[_0xfdff12(0x3ed)](_0x282417=>{const _0x5b59f4=_0xfdff12,_0x385722=this[_0x5b59f4(0x20f)]['interceptor'][_0x5b59f4(0x3d5)](this[_0x5b59f4(0x20f)][_0x5b59f4(0x420)][_0x5b59f4(0x16d)]()['COMPRESS_MUTATION_APPLY'])(_0x282417['mutations'],null)||_0x282417[_0x5b59f4(0x15e)];return{..._0x282417,'mutations':_0x385722};});this[_0xfdff12(0x46e)](),this[_0xfdff12(0x490)](this[_0xfdff12(0x421)][_0xfdff12(0x382)](_0x57776f)),this[_0xfdff12(0xd2)]();}[_0x184c40(0xe5)](){const _0x1b0c46=_0x184c40;this['_lockTransition'](),this['_updateState'](this[_0x1b0c46(0x421)]['toggleOffline']()),this[_0x1b0c46(0xd2)]();}['_toggleOnline'](_0x2c076d=!0x1){const _0x16a63e=_0x184c40;this[_0x16a63e(0x46e)](),this[_0x16a63e(0x490)](this['_state']['toggleOnline']()),this[_0x16a63e(0xd2)]();const _0x4a96c4=this[_0x16a63e(0x421)];_0x2c076d&&_0x4a96c4 instanceof _0x45dea1&&(this['_lockTransition'](),this[_0x16a63e(0x490)](_0x4a96c4['fetchMiss']()),this['_unlockTransition']());}async[_0x184c40(0x4e2)](){return new Promise(_0x71b25=>{const _0x529930=_0x2bb3;this[_0x529930(0x351)]['sessionStatus$']['pipe'](_0x1f1780['take'](0x1))['subscribe'](async _0x34eb80=>{const _0x1c1ded=_0x529930;_0x71b25(await this['_createInitialStateImpl'](_0x34eb80===_0x17c413[_0x1c1ded(0x273)]));});});}[_0x184c40(0x113)](){const _0x2de00b=this['unitID'];return{'onStateChange':(_0x27ffdf,_0x2945f6)=>{const _0xf534cb=_0x2bb3;if(_0x27ffdf!==this[_0xf534cb(0x421)])throw new Error(_0xf534cb(0x23b)+_0x27ffdf[_0xf534cb(0x362)]+_0xf534cb(0x1aa)+_0x2945f6[_0xf534cb(0x362)]+'\x0aCurrent:\x20'+this['_state'][_0xf534cb(0x362)]);this[_0xf534cb(0x490)](_0x2945f6);},'onSendChangeset':_0x720748=>{const _0x22c235=_0x2bb3,_0x154218={'eventID':_0x1f42e3['CollaborationEvent'][_0x22c235(0x4e0)],'data':{'unitID':_0x720748['unitID'],'unitType':this['_type'],'changeset':_0x720748,'memberID':this[_0x22c235(0x351)]['getMemberID']()}};this['session'][_0x22c235(0x17d)](_0x154218,this[_0x22c235(0x445)]);},'onMissingChangesets':({from:_0x5880db,to:_0xebbdd2})=>{const _0x5d0d21=_0x2bb3;this[_0x5d0d21(0xe6)][_0x5d0d21(0x2b2)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x5880db+'\x20to\x20'+_0xebbdd2);const _0x12797c={'eventID':_0x1f42e3['CollaborationEvent'][_0x5d0d21(0x430)],'data':{'unitID':_0x2de00b,'unitType':this[_0x5d0d21(0x316)],'from':_0x5880db,'to':_0xebbdd2}};this[_0x5d0d21(0x351)][_0x5d0d21(0x17d)](_0x12797c,this[_0x5d0d21(0x445)]);}};}async[_0x184c40(0x27a)](_0x47f4f9){const _0x16f8eb=_0x184c40;var _0x195f27,_0x2a1576;const _0x29db56=await this[_0x16f8eb(0x103)][_0x16f8eb(0x45f)](this[_0x16f8eb(0x445)]),_0x3f02ad=(_0x195f27=_0x29db56==null?void 0x0:_0x29db56[_0x16f8eb(0x15e)])!=null?_0x195f27:[],_0x48ce53=(_0x2a1576=_0x29db56==null?void 0x0:_0x29db56['awaitingChangeset'])!=null?_0x2a1576:null,_0x128892=this[_0x16f8eb(0x445)];try{this[_0x16f8eb(0x1b0)](_0x48ce53,_0x3f02ad);}catch(_0x1498f3){this[_0x16f8eb(0xe6)][_0x16f8eb(0x28e)](_0x1498f3);}const _0x4b6dd3=this['_createHandler']();if(_0x47f4f9){const _0x2b1233=_0x4bca3b(this[_0x16f8eb(0x183)],_0x128892,this[_0x16f8eb(0x316)],_0x48ce53,_0x3f02ad,_0x4b6dd3);return _0x2b1233 instanceof _0x3d2df7?_0x2b1233[_0x16f8eb(0x1a3)]():(_0x2b1233 instanceof _0x4fc9fe||_0x2b1233 instanceof _0x4fcfbe)&&_0x2b1233['resend'](),_0x2b1233;}return this['_injector']['createInstance'](_0x48d8c3,_0x128892,this[_0x16f8eb(0x316)],_0x48ce53,_0x3f02ad,_0x4b6dd3);}['_replayCachedMutations'](_0x4f18dd,_0x57ee92){const _0x416289=_0x184c40;var _0x4cb5b0,_0x331334;const _0xeb08db=this[_0x416289(0x20f)][_0x416289(0x420)][_0x416289(0x3d5)](this[_0x416289(0x20f)]['interceptor'][_0x416289(0x16d)]()[_0x416289(0x47f)]);(_0x4cb5b0=_0xeb08db((_0x4f18dd==null?void 0x0:_0x4f18dd[_0x416289(0x15e)])||[],null))==null||_0x4cb5b0[_0x416289(0x284)](_0x2ffb7e=>this[_0x416289(0x3da)][_0x416289(0x2d5)](_0x2ffb7e['id'],_0x2ffb7e['params'])),(_0x331334=_0xeb08db(_0x57ee92||[],null))==null||_0x331334['forEach'](_0x22f02e=>this[_0x416289(0x3da)][_0x416289(0x2d5)](_0x22f02e['id'],_0x22f02e['params']));}},_0xff46cc[_0x184c40(0x4ba)]=_0xd3d40c([_0x1f40b1(0x3,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x1f40b1(0x4,_0x16d562[_0x184c40(0x1e9)](_0xff46cc['LocalCacheService'])),_0x1f40b1(0x5,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x202)])),_0x1f40b1(0x6,_0x16d562['Inject'](_0x16d562['LocaleService'])),_0x1f40b1(0x7,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3['RevisionService'])),_0x1f40b1(0x8,_0x16d562[_0x184c40(0x31a)]),_0x1f40b1(0x9,_0x16d562[_0x184c40(0x156)]),_0x1f40b1(0xa,_0x5f2673[_0x184c40(0x16f)]),_0x1f40b1(0xb,_0x16d562[_0x184c40(0x3c2)]),_0x1f40b1(0xc,_0x16d562[_0x184c40(0x139)](_0x110502))],_0xff46cc[_0x184c40(0x4ba)]),_0xff46cc[_0x184c40(0x2c6)]=class extends _0xff46cc['CollaborationEntity']{constructor(_0x44415b,_0x58479b,_0xfb1d35,_0x5691a3,_0x332ef8,_0x524968,_0x5e4716,_0x53b34b,_0x5a8baf,_0x43479f,_0x239759,_0x5b27dd,_0x372b9a,_0x197a23,_0x148f0a,_0x9f9831,_0xf86b5){const _0x2e4438=_0x184c40;super(_0x44415b,_0xfb1d35,_0x58479b,_0x5691a3,_0x332ef8,_0x524968,_0x5e4716,_0x53b34b,_0x372b9a,_0x197a23,_0x148f0a,_0x9f9831,_0xf86b5),this['unitID']=_0x44415b,this[_0x2e4438(0x340)]=_0x58479b,this[_0x2e4438(0x4ce)]=_0x5a8baf,this[_0x2e4438(0x21d)]=_0x43479f,this['_docTransformSelectionsService']=_0x239759,this[_0x2e4438(0x195)]=_0x5b27dd;}[_0x184c40(0x113)](){const _0x290a8a=_0x184c40,_0x23f65a=super[_0x290a8a(0x113)]();return _0x23f65a[_0x290a8a(0xd3)]=_0x22a2cf=>this['_docTransformIMECacheService'][_0x290a8a(0x47a)](_0x22a2cf),_0x23f65a['onTransformSelections']=_0x2a00e8=>this[_0x290a8a(0x486)][_0x290a8a(0x2f1)](_0x2a00e8),_0x23f65a[_0x290a8a(0x266)]=_0x34be81=>this['_docSyncEditingCollabCursorService'][_0x290a8a(0x3d1)](_0x34be81),_0x23f65a[_0x290a8a(0x194)]=_0x37b692=>this[_0x290a8a(0x21d)][_0x290a8a(0x230)](_0x37b692),_0x23f65a;}async['_init'](){const _0x29e4ec=_0x184c40,_0x3118b4=await super['_init']();return this[_0x29e4ec(0xce)](this[_0x29e4ec(0x3da)][_0x29e4ec(0x398)]((_0x3a7cfa,_0x589420)=>{const _0x1925a0=_0x29e4ec;if(_0x3a7cfa[_0x1925a0(0x340)]!==_0x16d562['CommandType']['MUTATION']||_0x589420!=null&&_0x589420[_0x1925a0(0x414)]||_0x589420!=null&&_0x589420[_0x1925a0(0x14e)])return;const _0x495c88=_0x3a7cfa['params'];if((_0x495c88==null?void 0x0:_0x495c88[_0x1925a0(0x354)])!==this[_0x1925a0(0x445)])return;let _0x113af9=_0x3a7cfa;if(_0x113af9['id']===_0x412f6a[_0x1925a0(0x264)]['id']){const _0x662270=_0x113af9[_0x1925a0(0x290)];_0x113af9={'id':_0x412f6a['RichTextEditingMutation']['id'],'type':_0x16d562[_0x1925a0(0x4e4)][_0x1925a0(0x1bd)],'params':{'unitId':_0x662270[_0x1925a0(0x354)],'actions':_0x662270[_0x1925a0(0x277)],'textRanges':null}};}const _0x38376b=this[_0x1925a0(0x20f)][_0x1925a0(0x420)][_0x1925a0(0x3d5)](this[_0x1925a0(0x20f)]['interceptor'][_0x1925a0(0x16d)]()['COMPRESS_MUTATION_SEND'])([_0x113af9],null)||[_0x113af9];this['_onLocalMutation'](_0x38376b[0x0]);})),_0x3118b4;}},_0xff46cc['DocCollaborationEntity']=_0xd3d40c([_0x1f40b1(0x3,_0x16d562[_0x184c40(0x1e9)](_0x16d562['Injector'])),_0x1f40b1(0x4,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x1f40b1(0x5,_0x16d562['Inject'](_0x1f42e3[_0x184c40(0x202)])),_0x1f40b1(0x6,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x42c)])),_0x1f40b1(0x7,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x1f40b1(0x8,_0x16d562['Inject'](_0x123d63[_0x184c40(0x48d)])),_0x1f40b1(0x9,_0x16d562[_0x184c40(0x1e9)](_0x190714)),_0x1f40b1(0xa,_0x16d562[_0x184c40(0x1e9)](_0x480601)),_0x1f40b1(0xb,_0x16d562['Inject'](_0x126509)),_0x1f40b1(0xc,_0x16d562[_0x184c40(0x31a)]),_0x1f40b1(0xd,_0x16d562[_0x184c40(0x156)]),_0x1f40b1(0xe,_0x5f2673[_0x184c40(0x16f)]),_0x1f40b1(0xf,_0x16d562[_0x184c40(0x3c2)]),_0x1f40b1(0x10,_0x16d562['Optional'](_0x110502))],_0xff46cc[_0x184c40(0x2c6)]),_0xff46cc['SheetCollaborationEntity']=class extends _0xff46cc[_0x184c40(0x4ba)]{constructor(_0xa29f96,_0x3edd8e,_0x4ae1b9,_0x1e23fb,_0x1b2702,_0x25ea95,_0x457baa,_0x44f069,_0x38e409,_0x15f3cc,_0x823431,_0x26bfdd,_0x50e3e2,_0x41128d){const _0x2c8da8=_0x184c40;super(_0xa29f96,_0x4ae1b9,_0x3edd8e,_0x1e23fb,_0x1b2702,_0x25ea95,_0x457baa,_0x44f069,_0x15f3cc,_0x823431,_0x26bfdd,_0x50e3e2,_0x41128d),this[_0x2c8da8(0x445)]=_0xa29f96,this[_0x2c8da8(0x340)]=_0x3edd8e,this[_0x2c8da8(0x275)]=_0x38e409;}[_0x184c40(0x113)](){const _0x3924dd=_0x184c40,_0x929d08=super[_0x3924dd(0x113)]();return _0x929d08['onTransformSelections']=_0x1e28b3=>this[_0x3924dd(0x275)][_0x3924dd(0x2f1)](_0x1e28b3),_0x929d08;}async[_0x184c40(0x2d7)](){const _0x38f5be=_0x184c40,_0x4296e0=await super[_0x38f5be(0x2d7)]();return this[_0x38f5be(0xce)](this[_0x38f5be(0x3da)][_0x38f5be(0x398)]((_0x5620b7,_0xbe8855)=>{const _0x1b2fd5=_0x38f5be;if(_0x5620b7[_0x1b2fd5(0x340)]!==_0x16d562['CommandType'][_0x1b2fd5(0x1bd)]||_0xbe8855!=null&&_0xbe8855['fromCollab']||_0xbe8855!=null&&_0xbe8855[_0x1b2fd5(0x14e)])return;const _0x5b8778=_0x5620b7[_0x1b2fd5(0x290)];if((_0x5b8778==null?void 0x0:_0x5b8778[_0x1b2fd5(0x354)])!==this[_0x1b2fd5(0x445)])return;const _0x4ab1be=_0x5620b7,_0x29396c=this[_0x1b2fd5(0x20f)][_0x1b2fd5(0x420)][_0x1b2fd5(0x3d5)](this[_0x1b2fd5(0x20f)][_0x1b2fd5(0x420)][_0x1b2fd5(0x16d)]()[_0x1b2fd5(0x412)])([_0x4ab1be],null)||[_0x4ab1be];this[_0x1b2fd5(0x4ca)](_0x29396c[0x0]);})),_0x4296e0;}},_0xff46cc['SheetCollaborationEntity']=_0xd3d40c([_0x1f40b1(0x3,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x1f40b1(0x4,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x1f40b1(0x5,_0x16d562['Inject'](_0x1f42e3['CompressMutationService'])),_0x1f40b1(0x6,_0x16d562['Inject'](_0x16d562[_0x184c40(0x42c)])),_0x1f40b1(0x7,_0x16d562['Inject'](_0x1f42e3[_0x184c40(0x3a3)])),_0x1f40b1(0x8,_0x16d562['Inject'](_0x11c95c)),_0x1f40b1(0x9,_0x16d562[_0x184c40(0x31a)]),_0x1f40b1(0xa,_0x16d562[_0x184c40(0x156)]),_0x1f40b1(0xb,_0x5f2673['IMessageService']),_0x1f40b1(0xc,_0x16d562['IPermissionService']),_0x1f40b1(0xd,_0x16d562['Optional'](_0x110502))],_0xff46cc[_0x184c40(0x23c)]);var _0x12a2cc=Object[_0x184c40(0x471)],_0x4db3ba=Object[_0x184c40(0x34e)],_0x587650=(_0x5835f1,_0x4fb974,_0x24aef5,_0x420c5a)=>{const _0x5bd49b=_0x184c40;for(var _0x2f3f7c=_0x420c5a>0x1?void 0x0:_0x420c5a?_0x4db3ba(_0x4fb974,_0x24aef5):_0x4fb974,_0x285a2e=_0x5835f1[_0x5bd49b(0x3bc)]-0x1,_0x48f2b5;_0x285a2e>=0x0;_0x285a2e--)(_0x48f2b5=_0x5835f1[_0x285a2e])&&(_0x2f3f7c=(_0x420c5a?_0x48f2b5(_0x4fb974,_0x24aef5,_0x2f3f7c):_0x48f2b5(_0x2f3f7c))||_0x2f3f7c);return _0x420c5a&&_0x2f3f7c&&_0x12a2cc(_0x4fb974,_0x24aef5,_0x2f3f7c),_0x2f3f7c;},_0x22e5b7=(_0x4b3bbb,_0x4c905d)=>(_0x384729,_0x2a131c)=>_0x4c905d(_0x384729,_0x2a131c,_0x4b3bbb);_0xff46cc[_0x184c40(0x42f)]=class extends _0x16d562['RxDisposable']{constructor(_0x3680bc,_0x2eeef2,_0x2cfe43){const _0xbd53ae=_0x184c40;super(),_0x1fbb55(this,_0xbd53ae(0x1c2),new Map()),_0x1fbb55(this,_0xbd53ae(0x335),new _0x1f1780[(_0xbd53ae(0x193))]()),(this[_0xbd53ae(0x183)]=_0x3680bc,this['_collabSessionService']=_0x2eeef2,this[_0xbd53ae(0x1b5)]=_0x2cfe43,this[_0xbd53ae(0x2d7)]());}['dispose'](){const _0x44611e=_0x184c40;super[_0x44611e(0x35a)](),this[_0x44611e(0x1c2)][_0x44611e(0x284)](_0x8fd706=>_0x8fd706[_0x44611e(0x35a)]()),this[_0x44611e(0x1c2)][_0x44611e(0x460)]();}[_0x184c40(0x14c)](_0x1d38ae){const _0x3cfe5e=_0x184c40;var _0x4a353d;return(_0x4a353d=this[_0x3cfe5e(0x1c2)]['get'](_0x1d38ae))!=null?_0x4a353d:null;}[_0x184c40(0x2c2)](_0x534a4f){const _0x45456d=_0x184c40,_0x59a76a=this[_0x45456d(0x14c)](_0x534a4f);return _0x59a76a?_0x1f1780['of'](_0x59a76a):this[_0x45456d(0x335)][_0x45456d(0x3b2)](_0xdd90c[_0x45456d(0x1fa)](_0xc98d61=>_0xc98d61[_0x45456d(0x445)]===_0x534a4f));}[_0x184c40(0x2d7)](){const _0x5b487b=_0x184c40;this[_0x5b487b(0x1b5)]['getTypeOfUnitAdded$'](_0x16d562[_0x5b487b(0x1f9)][_0x5b487b(0x1ce)])[_0x5b487b(0x3b2)](_0x1f1780[_0x5b487b(0x2e1)](this[_0x5b487b(0x3fd)]),_0xdd90c[_0x5b487b(0x46d)](0x10))[_0x5b487b(0x462)](async _0x3895db=>{const _0x22c528=_0x5b487b,_0x40e8f6=_0x3895db[_0x22c528(0x17e)](),_0x194764=await this[_0x22c528(0x366)](_0x40e8f6,_0x55b5ea[_0x22c528(0x1ce)]);this[_0x22c528(0x1c2)]['set'](_0x40e8f6,_0x194764);}),this[_0x5b487b(0x1b5)]['getTypeOfUnitAdded$'](_0x16d562[_0x5b487b(0x1f9)][_0x5b487b(0x2f5)])[_0x5b487b(0x3b2)](_0x1f1780['takeUntil'](this[_0x5b487b(0x3fd)]),_0xdd90c[_0x5b487b(0x46d)](0x10))['pipe'](_0xdd90c['filter'](_0x580db3=>!_0x580db3[_0x5b487b(0x17e)]()[_0x5b487b(0x28c)]('__')))[_0x5b487b(0x462)](async _0x87c5ca=>{const _0x33bb8e=_0x5b487b,_0x596ab3=_0x87c5ca[_0x33bb8e(0x17e)](),_0x33c1f5=await this[_0x33bb8e(0x366)](_0x596ab3,_0x55b5ea[_0x33bb8e(0x2f5)]);this[_0x33bb8e(0x1c2)][_0x33bb8e(0x355)](_0x596ab3,_0x33c1f5);}),_0x1f1780[_0x5b487b(0x2dd)](this[_0x5b487b(0x1b5)][_0x5b487b(0x40c)](_0x16d562[_0x5b487b(0x1f9)]['UNIVER_SHEET']),this[_0x5b487b(0x1b5)][_0x5b487b(0x40c)](_0x16d562[_0x5b487b(0x1f9)]['UNIVER_DOC']))[_0x5b487b(0x3b2)](_0x1f1780[_0x5b487b(0x2e1)](this[_0x5b487b(0x3fd)]))[_0x5b487b(0x462)](_0x42a163=>{const _0x3059c2=_0x5b487b,_0x50d00f=_0x42a163[_0x3059c2(0x17e)](),_0x526361=this[_0x3059c2(0x1c2)][_0x3059c2(0x3d9)](_0x50d00f);_0x526361&&(_0x526361[_0x3059c2(0x35a)](),this['_entities'][_0x3059c2(0x2c9)](_0x50d00f));});}async[_0x184c40(0x366)](_0x13ff07,_0x4f2ce1){const _0x37784e=_0x184c40,_0x306673=await this[_0x37784e(0x315)][_0x37784e(0x371)](_0x13ff07),_0x48f95f=this[_0x37784e(0x183)][_0x37784e(0x1d5)](this[_0x37784e(0x163)](_0x4f2ce1),_0x13ff07,_0x4f2ce1,_0x306673);return await _0x48f95f[_0x37784e(0x3e6)](),this[_0x37784e(0x335)]['next'](_0x48f95f),_0x48f95f;}['_getCtorByUniverType'](_0x1b3d12){const _0x5aef6d=_0x184c40;switch(_0x1b3d12){case _0x55b5ea['UNIVER_DOC']:return _0xff46cc[_0x5aef6d(0x2c6)];case _0x55b5ea['UNIVER_SHEET']:return _0xff46cc[_0x5aef6d(0x23c)];default:throw new Error(_0x5aef6d(0x306)+_0x1b3d12);}}},_0xff46cc[_0x184c40(0x42f)]=_0x587650([_0x22e5b7(0x0,_0x16d562['Inject'](_0x16d562[_0x184c40(0x3a2)])),_0x22e5b7(0x1,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0xef)])),_0x22e5b7(0x2,_0x16d562['IUniverInstanceService'])],_0xff46cc[_0x184c40(0x42f)]);const _0x534db6=['purple300',_0x184c40(0x375),'verdancy600','red300',_0x184c40(0x31f),_0x184c40(0x19d)];class _0x3974b0 extends _0x16d562[_0x184c40(0x15c)]{constructor(){const _0xc661b3=_0x184c40;super(...arguments),_0x1fbb55(this,_0xc661b3(0x1cf),new Map()),_0x1fbb55(this,_0xc661b3(0x3c4),0x0);}[_0x184c40(0x370)](_0x254255){const _0x5dfad3=_0x184c40;if(this[_0x5dfad3(0x1cf)][_0x5dfad3(0x4c2)](_0x254255))return this[_0x5dfad3(0x1cf)][_0x5dfad3(0x3d9)](_0x254255);const _0x4afca6=_0x534db6[this[_0x5dfad3(0x3c4)]];return this[_0x5dfad3(0x3c4)]=(this[_0x5dfad3(0x3c4)]+0x1)%_0x534db6[_0x5dfad3(0x3bc)],this['_assignedColors'][_0x5dfad3(0x355)](_0x254255,_0x4afca6),_0x4afca6;}}var _0x5f5799=Object['defineProperty'],_0x3ab348=Object['getOwnPropertyDescriptor'],_0x52f2d6=(_0x39247d,_0x57d2e8,_0x1c30ac,_0x3efe8)=>{for(var _0xf24015=_0x3efe8>0x1?void 0x0:_0x3efe8?_0x3ab348(_0x57d2e8,_0x1c30ac):_0x57d2e8,_0x32e610=_0x39247d['length']-0x1,_0x2562e2;_0x32e610>=0x0;_0x32e610--)(_0x2562e2=_0x39247d[_0x32e610])&&(_0xf24015=(_0x3efe8?_0x2562e2(_0x57d2e8,_0x1c30ac,_0xf24015):_0x2562e2(_0xf24015))||_0xf24015);return _0x3efe8&&_0xf24015&&_0x5f5799(_0x57d2e8,_0x1c30ac,_0xf24015),_0xf24015;},_0x56c90f=(_0x2b7de2,_0x352a0f)=>(_0x4600e6,_0x47b8a2)=>_0x352a0f(_0x4600e6,_0x47b8a2,_0x2b7de2);const _0x15e3cf=0x12c,_0x474e62=0x64;let _0x55a301=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x54b9a1,_0x1f53c1,_0x279240,_0x249491,_0x302eb1,_0x451da8,_0x194c95,_0x5ac4a7,_0x1f29d9){const _0x23f13c=_0x184c40;super(),_0x1fbb55(this,_0x23f13c(0x341),!0x1),_0x1fbb55(this,_0x23f13c(0x2d7),!0x1),_0x1fbb55(this,_0x23f13c(0x350),new _0x1f1780[(_0x23f13c(0x2f0))](new Map())),_0x1fbb55(this,_0x23f13c(0x199),this[_0x23f13c(0x350)][_0x23f13c(0x376)]()),_0x1fbb55(this,_0x23f13c(0x2a9),new _0x1f1780[(_0x23f13c(0x2f0))]([])),_0x1fbb55(this,_0x23f13c(0x461),this[_0x23f13c(0x2a9)][_0x23f13c(0x3b2)](_0x1f1780[_0x23f13c(0x385)](_0x15e3cf))),_0x1fbb55(this,'_updateLocalCursor',_0x16d562[_0x23f13c(0x495)](_0x440850=>{const _0x5ef589=_0x23f13c,_0x1262d6={'eventID':_0x1f42e3['CollaborationEvent'][_0x5ef589(0x3cd)],'data':{'unitID':this[_0x5ef589(0x445)],'memberID':this[_0x5ef589(0x19a)][_0x5ef589(0x330)](),'selection':_0xf68256(_0x440850)}};this['_session']['send'](_0x1262d6,this[_0x5ef589(0x445)]);},_0x474e62)),(this['unitID']=_0x54b9a1,this['_session']=_0x1f53c1,this['_injector']=_0x279240,this['_colorAssignService']=_0x249491,this[_0x23f13c(0xcb)]=_0x302eb1,this[_0x23f13c(0x432)]=_0x451da8,this[_0x23f13c(0x186)]=_0x194c95,this[_0x23f13c(0x1b5)]=_0x5ac4a7,this['_commandService']=_0x1f29d9);}get[_0x184c40(0x12d)](){const _0xea300e=_0x184c40;return this[_0xea300e(0x350)]['getValue']();}get[_0x184c40(0x292)](){const _0xe42670=_0x184c40;return this[_0xe42670(0x2a9)]['getValue']();}['dispose'](){const _0x2c4b09=_0x184c40;super[_0x2c4b09(0x35a)](),this[_0x2c4b09(0x350)][_0x2c4b09(0x2d2)](new Map()),this[_0x2c4b09(0x350)][_0x2c4b09(0x12e)](),this[_0x2c4b09(0x2a9)][_0x2c4b09(0x2d2)]([]),this[_0x2c4b09(0x2a9)][_0x2c4b09(0x12e)]();}['init'](){const _0x49d2bb=_0x184c40;this['_init']||(this[_0x49d2bb(0x2d7)]=!0x0,this[_0x49d2bb(0x19a)][_0x49d2bb(0x11f)][_0x49d2bb(0x3b2)](_0x1f1780[_0x49d2bb(0x2e1)](this[_0x49d2bb(0x3fd)]))['subscribe'](_0x2af603=>{const _0x10a7d2=_0x49d2bb;_0x2af603===_0x17c413['ONLINE']?this[_0x10a7d2(0x209)]():this['_toggleOffline']();}),this['_session'][_0x49d2bb(0x30c)][_0x49d2bb(0x3b2)](_0x1f1780[_0x49d2bb(0x2e1)](this['dispose$']))[_0x49d2bb(0x462)](_0x38f8de=>{const _0x53c9a2=_0x49d2bb,_0xe24136=_0x38f8de[_0x53c9a2(0x150)];_0xe24136===_0x1f42e3[_0x53c9a2(0x336)][_0x53c9a2(0x3cd)]&&this[_0x53c9a2(0x268)](_0x38f8de),_0xe24136===_0x1f42e3['CollaborationEvent'][_0x53c9a2(0xf7)]&&this[_0x53c9a2(0x1ff)](_0x38f8de);}),this[_0x49d2bb(0xce)](this[_0x49d2bb(0x3da)][_0x49d2bb(0x398)](_0xf11599=>{const _0xd80420=_0x49d2bb,_0x45cf67=_0xf11599[_0xd80420(0x290)];_0x45cf67!=null&&this['_online']&&_0xf11599['id']===_0x412f6a[_0xd80420(0x33a)]['id']&&_0x45cf67['unitId']===this[_0xd80420(0x445)]&&_0x45cf67['isEditing']===!0x1&&this[_0xd80420(0x187)](_0x45cf67[_0xd80420(0x1da)]);})),this[_0x49d2bb(0x432)][_0x49d2bb(0x408)][_0x49d2bb(0x3b2)](_0x1f1780[_0x49d2bb(0x2e1)](this[_0x49d2bb(0x3fd)]))[_0x49d2bb(0x462)](_0x304197=>{const _0x23f982=_0x49d2bb;if((_0x304197==null?void 0x0:_0x304197[_0x23f982(0x445)])!==this['unitID'])return;const _0xeb03da={'eventID':_0x1f42e3[_0x23f982(0x336)][_0x23f982(0x3cd)],'data':_0x304197};this[_0x23f982(0x268)](_0xeb03da);}),this[_0x49d2bb(0xce)](this['_commandService']['onCommandExecuted'](_0x4a903b=>{const _0x8aa7ed=_0x49d2bb;if(_0x4a903b[_0x8aa7ed(0x290)]==null)return;const _0x105f0a=_0x4a903b[_0x8aa7ed(0x290)];if(_0x4a903b['id']!==_0x412f6a[_0x8aa7ed(0x264)]['id']||_0x105f0a['unitId']!==this[_0x8aa7ed(0x445)])return;const _0x25bebb={'id':_0x8aa7ed(0x2ca),'params':_0x105f0a},_0xeec174=this['cursorInfo'];for(const [_0x289a0c,_0x151cec]of _0xeec174){const _0x4ffde7={'id':_0x8aa7ed(0x2ca),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x151cec['ranges']}},_0x1f2b8a=this[_0x8aa7ed(0x186)]['transformMutation'](_0x25bebb,_0x4ffde7,!0x1);if(_0x1f42e3['isTransformMutationFailure'](_0x1f2b8a))throw _0x1f2b8a[_0x8aa7ed(0x28e)];_0xeec174[_0x8aa7ed(0x355)](_0x289a0c,{..._0x151cec,'ranges':_0x1f2b8a[_0x8aa7ed(0x22b)]['params'][_0x8aa7ed(0x1ae)]});}queueMicrotask(()=>{const _0x5a5115=_0x8aa7ed;this[_0x5a5115(0x350)][_0x5a5115(0x2d2)](_0xeec174);});})));}[_0x184c40(0x268)](_0x5dd40c){const _0x5d6ab2=_0x184c40;var _0x428952,_0x4f209b;const {memberID:_0x2e9f93,selection:_0x2002d2}=_0x5dd40c[_0x5d6ab2(0xe3)],_0x45adce=_0x197fec(_0x2002d2),_0x4e2cf1=(_0x4f209b=(_0x428952=this['_memberService'][_0x5d6ab2(0x3b4)](this[_0x5d6ab2(0x445)],_0x2e9f93))==null?void 0x0:_0x428952['name'])!=null?_0x4f209b:_0x5d6ab2(0x1f8),_0x19a271={'color':this['_colorAssignService'][_0x5d6ab2(0x370)](_0x2e9f93),'name':_0x4e2cf1,'ranges':_0x45adce},_0x5ad1fe=this[_0x5d6ab2(0x12d)];_0x5ad1fe['set'](_0x2e9f93,_0x19a271),this[_0x5d6ab2(0x350)][_0x5d6ab2(0x2d2)](_0x5ad1fe);}[_0x184c40(0x1ff)](_0x1cf7ee){const _0x10e84c=_0x184c40,{memberID:_0xb289e}=_0x1cf7ee['data'],_0xae7c05=this[_0x10e84c(0x12d)];_0xae7c05[_0x10e84c(0x2c9)](_0xb289e),this[_0x10e84c(0x350)][_0x10e84c(0x2d2)](_0xae7c05);}[_0x184c40(0x209)](){const _0x1db30c=_0x184c40;var _0x433cc5;if(this[_0x1db30c(0x341)]=!0x0,((_0x433cc5=this[_0x1db30c(0x1b5)][_0x1db30c(0x3eb)]())==null?void 0x0:_0x433cc5['getUnitId']())!==this[_0x1db30c(0x445)])return;const _0x2d5914=this['_injector']['get'](_0x412f6a[_0x1db30c(0x323)])[_0x1db30c(0x396)]();Array['isArray'](_0x2d5914)&&_0x2d5914[_0x1db30c(0x3bc)]>0x0&&this[_0x1db30c(0x187)](_0x2d5914);}['_toggleOffline'](){this['_online']=!0x1;}};_0x55a301=_0x52f2d6([_0x56c90f(0x2,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x56c90f(0x3,_0x16d562[_0x184c40(0x1e9)](_0x3974b0)),_0x56c90f(0x4,_0x16d562[_0x184c40(0x1e9)](_0x19c6b5)),_0x56c90f(0x5,_0x16d562[_0x184c40(0x1e9)](_0x126509)),_0x56c90f(0x6,_0x1f42e3[_0x184c40(0x254)]),_0x56c90f(0x7,_0x16d562[_0x184c40(0x466)]),_0x56c90f(0x8,_0x16d562[_0x184c40(0x156)])],_0x55a301);var _0x3a5471=Object['defineProperty'],_0x5c1c06=Object[_0x184c40(0x34e)],_0x4613d9=(_0x57ac72,_0x1b9432,_0x2b63c6,_0x4794e7)=>{for(var _0x55a869=_0x4794e7>0x1?void 0x0:_0x4794e7?_0x5c1c06(_0x1b9432,_0x2b63c6):_0x1b9432,_0x181609=_0x57ac72['length']-0x1,_0x39f2c3;_0x181609>=0x0;_0x181609--)(_0x39f2c3=_0x57ac72[_0x181609])&&(_0x55a869=(_0x4794e7?_0x39f2c3(_0x1b9432,_0x2b63c6,_0x55a869):_0x39f2c3(_0x55a869))||_0x55a869);return _0x4794e7&&_0x55a869&&_0x3a5471(_0x1b9432,_0x2b63c6,_0x55a869),_0x55a869;},_0x10cb01=(_0x2d14a8,_0x2ef2d8)=>(_0x11e3e5,_0x249a59)=>_0x2ef2d8(_0x11e3e5,_0x249a59,_0x2d14a8);const _0x203721=0x12c,_0x2522f9=0x64,_0x22dd7e=()=>{let _0x10ec77=[],_0x199774=!0x1;return _0x282bb7=>{const _0x171dcc=_0x2bb3;_0x10ec77[_0x171dcc(0x250)](_0x282bb7),_0x199774||(_0x199774=!0x0,setTimeout(()=>{const _0x4e2d88=_0x171dcc;_0x10ec77[_0x4e2d88(0x284)](_0x45135f=>_0x45135f()),_0x10ec77=[],_0x199774=!0x1;}));};};let _0x537a93=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x3ddd5f,_0x49420b,_0x38b9ff,_0x83fbf,_0x2a6341,_0x58eeff,_0x47789c,_0x12df98){const _0x3f6067=_0x184c40;super(),_0x1fbb55(this,_0x3f6067(0x341),!0x1),_0x1fbb55(this,'_init',!0x1),_0x1fbb55(this,'_cursorInfo$',new _0x1f1780['BehaviorSubject'](new Map())),_0x1fbb55(this,_0x3f6067(0x199),this[_0x3f6067(0x350)][_0x3f6067(0x376)]()),_0x1fbb55(this,'_roomMembers$',new _0x1f1780[(_0x3f6067(0x2f0))]([])),_0x1fbb55(this,_0x3f6067(0x461),this[_0x3f6067(0x2a9)][_0x3f6067(0x3b2)](_0x1f1780[_0x3f6067(0x385)](_0x203721))),_0x1fbb55(this,_0x3f6067(0x187),_0x16d562[_0x3f6067(0x495)]((_0x39d202,_0x3077ad)=>{const _0x1fe99a=_0x3f6067,_0x137440={'eventID':_0x1f42e3['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x1fe99a(0x19a)][_0x1fe99a(0x330)](),'selection':_0x5b77fa['serializeRangeWithSheet'](_0x39d202,_0x3077ad[_0x1fe99a(0x33b)])}};this[_0x1fe99a(0x19a)][_0x1fe99a(0x17d)](_0x137440,this[_0x1fe99a(0x445)]);},_0x2522f9)),(this['unitID']=_0x3ddd5f,this[_0x3f6067(0x19a)]=_0x49420b,this['_injector']=_0x38b9ff,this['_colorAssignService']=_0x83fbf,this['_memberService']=_0x2a6341,this[_0x3f6067(0x1b5)]=_0x58eeff,this[_0x3f6067(0x3da)]=_0x47789c,this[_0x3f6067(0x2fe)]=_0x12df98);}get['cursorInfo'](){const _0x3bb3fe=_0x184c40;return this[_0x3bb3fe(0x350)][_0x3bb3fe(0x22f)]();}get[_0x184c40(0x292)](){const _0x5b75bf=_0x184c40;return this[_0x5b75bf(0x2a9)]['getValue']();}[_0x184c40(0x35a)](){const _0x53a737=_0x184c40;super['dispose'](),this['_cursorInfo$'][_0x53a737(0x2d2)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x53a737(0x12e)]();}[_0x184c40(0x3e6)](){const _0x5d3f49=_0x184c40;this['_init']||(this[_0x5d3f49(0x2d7)]=!0x0,this[_0x5d3f49(0x19a)][_0x5d3f49(0x11f)]['pipe'](_0x1f1780[_0x5d3f49(0x2e1)](this[_0x5d3f49(0x3fd)]))['subscribe'](_0x2f8a0e=>{const _0x3170b4=_0x5d3f49;_0x2f8a0e===_0x17c413['ONLINE']?this[_0x3170b4(0x209)]():this['_toggleOffline']();}),this[_0x5d3f49(0x19a)][_0x5d3f49(0x30c)]['pipe'](_0x1f1780[_0x5d3f49(0x2e1)](this['dispose$']))[_0x5d3f49(0x462)](_0x415444=>{const _0x375fa4=_0x5d3f49,_0x5eb376=_0x415444['eventID'];_0x5eb376===_0x1f42e3[_0x375fa4(0x336)]['UPDATE_CURSOR']&&this[_0x375fa4(0x268)](_0x415444),_0x5eb376===_0x1f42e3[_0x375fa4(0x336)][_0x375fa4(0xf7)]&&this[_0x375fa4(0x1ff)](_0x415444);}),this[_0x5d3f49(0x161)](),this['disposeWithMe'](this['_commandService'][_0x5d3f49(0x398)](_0x22ccbb=>{const _0x8568ee=_0x5d3f49;if(this[_0x8568ee(0x341)]&&_0x22ccbb['id']===_0x30fd53['SetSelectionsOperation']['id']&&_0x22ccbb['params'][_0x8568ee(0x354)]===this[_0x8568ee(0x445)]){const _0x58a6b7=_0x22ccbb['params'];this[_0x8568ee(0x187)](_0x58a6b7[_0x8568ee(0x3fb)],_0x58a6b7[_0x8568ee(0x437)][0x0]);}})));}[_0x184c40(0x268)](_0x245a2a){const _0x2994ff=_0x184c40;var _0x1d7a79,_0x592498;const {memberID:_0x45bbeb,selection:_0xc61204}=_0x245a2a[_0x2994ff(0xe3)],{sheetName:_0x2b0428,range:_0x2d18df}=_0x5b77fa[_0x2994ff(0x39d)](_0xc61204),_0x2550f3={'name':(_0x592498=(_0x1d7a79=this[_0x2994ff(0xcb)][_0x2994ff(0x3b4)](this[_0x2994ff(0x445)],_0x45bbeb))==null?void 0x0:_0x1d7a79[_0x2994ff(0x2d8)])!=null?_0x592498:_0x2994ff(0x1f8),'range':this[_0x2994ff(0x450)](_0x2b0428,_0x2d18df),'sheetID':_0x2b0428,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x45bbeb),'selection':_0xc61204},_0x41a8b8=this[_0x2994ff(0x12d)];_0x41a8b8[_0x2994ff(0x355)](_0x45bbeb,_0x2550f3),this['_cursorInfo$'][_0x2994ff(0x2d2)](_0x41a8b8);}[_0x184c40(0x1ff)](_0x31d88c){const _0x596bd0=_0x184c40,{memberID:_0x419a1b}=_0x31d88c[_0x596bd0(0xe3)],_0x3d7f4a=this[_0x596bd0(0x12d)];_0x3d7f4a[_0x596bd0(0x2c9)](_0x419a1b),this[_0x596bd0(0x350)][_0x596bd0(0x2d2)](_0x3d7f4a);}[_0x184c40(0x450)](_0x5e9866,_0xd0a73c){const _0x3dad37=_0x184c40;var _0x33b68e,_0xc85faa;const _0x25517b=(_0xc85faa=(_0x33b68e=this[_0x3dad37(0x1b5)][_0x3dad37(0x3c5)](this['unitID']))==null?void 0x0:_0x33b68e[_0x3dad37(0x130)](_0x5e9866))==null?void 0x0:_0xc85faa[_0x3dad37(0x256)]();return(_0x25517b==null?void 0x0:_0x25517b[_0x3dad37(0x2a2)](_0x2afae4=>_0x16d562[_0x3dad37(0x379)]['contains'](_0x2afae4,_0xd0a73c)))||_0xd0a73c;}[_0x184c40(0x161)](){const _0x5d9fc1=_0x184c40,_0xad2f0=new _0x16d562['DisposableCollection'](),_0x10c524=_0x22dd7e(),_0xf74809=()=>{_0xad2f0['dispose']();const _0x2a5def=(_0xb7fc9c,_0x1de733,_0x1622a7,_0x34f505)=>{const _0x21ef70=_0x2bb3;let _0x3276f3=[];switch(_0xb7fc9c['id']){case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x40a)]:{_0x3276f3=_0x30fd53['handleDeleteRangeMoveLeft'](_0xb7fc9c,_0x34f505);break;}case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x397)]:{_0x3276f3=_0x30fd53['handleDeleteRangeMoveUp'](_0xb7fc9c,_0x34f505);break;}case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x3d0)]:{_0x3276f3=_0x30fd53[_0x21ef70(0x415)](_0xb7fc9c,_0x34f505);break;}case _0x30fd53['EffectRefRangId'][_0x21ef70(0x36e)]:{_0x3276f3=_0x30fd53[_0x21ef70(0x4cd)](_0xb7fc9c,_0x34f505);break;}case _0x30fd53['EffectRefRangId'][_0x21ef70(0x259)]:{_0x3276f3=_0x30fd53['handleInsertRangeMoveRight'](_0xb7fc9c,_0x34f505);break;}case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x2ed)]:{_0x3276f3=_0x30fd53[_0x21ef70(0x2da)](_0xb7fc9c,_0x34f505);break;}case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x1f4)]:{_0x3276f3=_0x30fd53['handleMoveRange'](_0xb7fc9c,_0x34f505);break;}case _0x30fd53['EffectRefRangId']['RemoveColCommandId']:{_0x3276f3=_0x30fd53[_0x21ef70(0xff)](_0xb7fc9c,_0x34f505);break;}case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x220)]:{_0x3276f3=_0x30fd53[_0x21ef70(0x481)](_0xb7fc9c,_0x34f505);break;}}const _0x40b0df=_0x30fd53[_0x21ef70(0x1b2)](_0x3276f3,_0x34f505),_0x2aaf8c=this[_0x21ef70(0x12d)][_0x21ef70(0x3d9)](_0x1de733);if(_0x2aaf8c&&_0x40b0df){const _0x7d7e4d={..._0x2aaf8c,'range':_0x40b0df};this['cursorInfo']['set'](_0x1de733,_0x7d7e4d),_0x10c524(()=>{const _0x448244=this['_refRangeService']['registerRefRange'](_0x40b0df,_0x39ceb4=>(_0x448244['dispose'](),_0x2a5def(_0x39ceb4,_0x1de733,_0x1622a7,_0x40b0df)));_0xad2f0['add'](_0x448244);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x7c5060,_0x52154d)=>{const _0x26611d=_0x2bb3,{range:_0xa5151c,sheetID:_0x14230a}=_0x7c5060,_0x190765=this[_0x26611d(0x2fe)][_0x26611d(0x218)](_0xa5151c,_0x7b1904=>(_0x190765[_0x26611d(0x35a)](),_0x2a5def(_0x7b1904,_0x52154d,_0x14230a,_0xa5151c)));_0xad2f0[_0x26611d(0x279)](_0x190765);});};this[_0x5d9fc1(0xce)](_0x16d562[_0x5d9fc1(0x228)](this[_0x5d9fc1(0x350)][_0x5d9fc1(0x462)](()=>{_0xf74809();})));}[_0x184c40(0x209)](){const _0x547e5d=_0x184c40;var _0xd7bdc8,_0x5ef0f5;if(this['_online']=!0x0,((_0xd7bdc8=this[_0x547e5d(0x1b5)][_0x547e5d(0x3eb)]())==null?void 0x0:_0xd7bdc8[_0x547e5d(0x17e)]())!==this['unitID'])return;const _0x1fb3d4=(_0x5ef0f5=this['_injector'][_0x547e5d(0x3d9)](_0x30fd53[_0x547e5d(0x2e4)])['getCurrentSelections']())==null?void 0x0:_0x5ef0f5[0x0],_0x536fb2=this[_0x547e5d(0x1b5)][_0x547e5d(0x3a8)](_0x16d562[_0x547e5d(0x1f9)][_0x547e5d(0x1ce)])[_0x547e5d(0x1f6)]();_0x1fb3d4&&_0x536fb2&&this[_0x547e5d(0x187)](_0x536fb2['getSheetId'](),_0x1fb3d4);}[_0x184c40(0xe5)](){const _0x57e5e0=_0x184c40;this[_0x57e5e0(0x341)]=!0x1;}};_0x537a93=_0x4613d9([_0x10cb01(0x2,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x10cb01(0x3,_0x16d562[_0x184c40(0x1e9)](_0x3974b0)),_0x10cb01(0x4,_0x16d562[_0x184c40(0x1e9)](_0x19c6b5)),_0x10cb01(0x5,_0x16d562['IUniverInstanceService']),_0x10cb01(0x6,_0x16d562['ICommandService']),_0x10cb01(0x7,_0x16d562[_0x184c40(0x1e9)](_0x30fd53[_0x184c40(0x1fe)]))],_0x537a93);var _0x1bef67=Object[_0x184c40(0x471)],_0xcf7bb0=Object['getOwnPropertyDescriptor'],_0x414922=(_0x583f09,_0x25d5d3,_0x5cebc1,_0x3a3e70)=>{const _0x30df43=_0x184c40;for(var _0x16aeb6=_0x3a3e70>0x1?void 0x0:_0x3a3e70?_0xcf7bb0(_0x25d5d3,_0x5cebc1):_0x25d5d3,_0x5e8407=_0x583f09[_0x30df43(0x3bc)]-0x1,_0x4f1512;_0x5e8407>=0x0;_0x5e8407--)(_0x4f1512=_0x583f09[_0x5e8407])&&(_0x16aeb6=(_0x3a3e70?_0x4f1512(_0x25d5d3,_0x5cebc1,_0x16aeb6):_0x4f1512(_0x16aeb6))||_0x16aeb6);return _0x3a3e70&&_0x16aeb6&&_0x1bef67(_0x25d5d3,_0x5cebc1,_0x16aeb6),_0x16aeb6;},_0x21acac=(_0x21a7d0,_0x3a40b2)=>(_0x265f5f,_0x75f6a6)=>_0x3a40b2(_0x265f5f,_0x75f6a6,_0x21a7d0);let _0x5ca174=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x454cf8,_0x54f1bd,_0x4166d8){const _0x422879=_0x184c40;super(),_0x1fbb55(this,_0x422879(0x1c2),new Map()),_0x1fbb55(this,_0x422879(0x335),new _0x1f1780[(_0x422879(0x193))]()),(this[_0x422879(0x1b5)]=_0x454cf8,this[_0x422879(0x183)]=_0x54f1bd,this[_0x422879(0x315)]=_0x4166d8,this[_0x422879(0x2d7)]());}[_0x184c40(0x35a)](){const _0x50e95c=_0x184c40;super['dispose'](),this[_0x50e95c(0x335)][_0x50e95c(0x12e)](),this['_entities'][_0x50e95c(0x284)](_0x3cbfe4=>_0x3cbfe4['dispose']());}[_0x184c40(0x3d3)](_0x3ee4fc){const _0x195847=_0x184c40;return this[_0x195847(0x1c2)][_0x195847(0x4c2)](_0x3ee4fc)?this[_0x195847(0x1c2)][_0x195847(0x3d9)](_0x3ee4fc)[_0x195847(0x199)]:this[_0x195847(0x335)]['pipe'](_0x1f1780[_0x195847(0x1fa)](_0x1c0760=>_0x1c0760[_0x195847(0x445)]===_0x3ee4fc),_0x1f1780[_0x195847(0x234)](_0x4c80be=>_0x4c80be['cursorInfo$']));}[_0x184c40(0x2d7)](){const _0x13ba00=_0x184c40;this[_0x13ba00(0x1b5)]['getTypeOfUnitAdded$'](_0x16d562[_0x13ba00(0x1f9)][_0x13ba00(0x1ce)])[_0x13ba00(0x3b2)](_0x1f1780[_0x13ba00(0x2e1)](this['dispose$']))[_0x13ba00(0x462)](async _0x5d8060=>{const _0x4ad7f0=_0x13ba00,_0x18cdd7=_0x5d8060[_0x4ad7f0(0x17e)](),_0x703750=await this[_0x4ad7f0(0x364)](_0x18cdd7);this[_0x4ad7f0(0x335)][_0x4ad7f0(0x2d2)](_0x703750),this[_0x4ad7f0(0x1c2)]['set'](_0x18cdd7,_0x703750);}),this['_univerInstanceService'][_0x13ba00(0x304)](_0x16d562['UniverInstanceType'][_0x13ba00(0x2f5)])[_0x13ba00(0x3b2)](_0x1f1780[_0x13ba00(0x2e1)](this['dispose$']))[_0x13ba00(0x3b2)](_0x1f1780['filter'](_0x328c50=>!_0x328c50[_0x13ba00(0x17e)]()['startsWith']('__')))['subscribe'](async _0x37a5e3=>{const _0x2d73a3=_0x13ba00,_0x1b43a0=_0x37a5e3[_0x2d73a3(0x17e)](),_0x2c51b5=await this['_startDocCollabCursor'](_0x1b43a0);this['_entityInit$'][_0x2d73a3(0x2d2)](_0x2c51b5),this['_entities'][_0x2d73a3(0x355)](_0x1b43a0,_0x2c51b5);}),_0x1f1780[_0x13ba00(0x2dd)](this[_0x13ba00(0x1b5)][_0x13ba00(0x40c)](_0x16d562[_0x13ba00(0x1f9)][_0x13ba00(0x2f5)]),this[_0x13ba00(0x1b5)][_0x13ba00(0x40c)](_0x16d562[_0x13ba00(0x1f9)][_0x13ba00(0x1ce)]))['pipe'](_0x1f1780['takeUntil'](this[_0x13ba00(0x3fd)]))[_0x13ba00(0x462)](_0x50f7e7=>{const _0x3fdb1e=_0x13ba00,_0x68084e=_0x50f7e7[_0x3fdb1e(0x17e)](),_0x8499a8=this[_0x3fdb1e(0x1c2)][_0x3fdb1e(0x3d9)](_0x68084e);_0x8499a8&&(_0x8499a8['dispose'](),this[_0x3fdb1e(0x1c2)][_0x3fdb1e(0x2c9)](_0x68084e));});}async['_startSheetCollabCursor'](_0x145d56){const _0x4c638c=_0x184c40,_0x412ad3=await this[_0x4c638c(0x315)][_0x4c638c(0x371)](_0x145d56),_0x1e7cf7=this[_0x4c638c(0x183)][_0x4c638c(0x1d5)](_0x537a93,_0x145d56,_0x412ad3);return _0x1e7cf7['init'](),_0x1e7cf7;}async['_startDocCollabCursor'](_0x475763){const _0x129f79=_0x184c40,_0x10e80f=await this[_0x129f79(0x315)][_0x129f79(0x371)](_0x475763),_0x29a2cd=this[_0x129f79(0x183)]['createInstance'](_0x55a301,_0x475763,_0x10e80f);return _0x29a2cd[_0x129f79(0x3e6)](),_0x29a2cd;}};_0x5ca174=_0x414922([_0x21acac(0x0,_0x16d562[_0x184c40(0x466)]),_0x21acac(0x1,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x21acac(0x2,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0xef)]))],_0x5ca174);const _0x3feec9=0x14,_0x5bc6d3=0xc8,_0x4b6da6=0x4,_0x1067ea=0x5;function _0x1a47b0(_0x215420,_0x42e9cb){const _0x1110ab=_0x184c40;let {radius:_0x48b5db,width:_0x22123f,height:_0x3642fb}=_0x42e9cb;_0x48b5db=_0x48b5db!=null?_0x48b5db:0x0,_0x22123f=_0x22123f!=null?_0x22123f:0x1e,_0x3642fb=_0x3642fb!=null?_0x3642fb:0x1e;let _0x34684f=0x0,_0x178186=0x0,_0x58d4fd=0x0;_0x34684f=_0x178186=_0x58d4fd=Math[_0x1110ab(0x124)](_0x48b5db,_0x22123f/0x2,_0x3642fb/0x2),_0x215420[_0x1110ab(0x45a)](),_0x215420[_0x1110ab(0x2d1)](_0x34684f,0x0),_0x215420[_0x1110ab(0x37e)](_0x22123f-_0x178186,0x0),_0x215420[_0x1110ab(0x43d)](_0x22123f-_0x178186,_0x178186,_0x178186,Math['PI']*0x3/0x2,0x0,!0x1),_0x215420[_0x1110ab(0x37e)](_0x22123f,_0x3642fb-_0x58d4fd),_0x215420[_0x1110ab(0x43d)](_0x22123f-_0x58d4fd,_0x3642fb-_0x58d4fd,_0x58d4fd,0x0,Math['PI']/0x2,!0x1),_0x215420[_0x1110ab(0x37e)](0x0,_0x3642fb),_0x215420['lineTo'](0x0,_0x34684f),_0x215420[_0x1110ab(0x43d)](_0x34684f,_0x34684f,_0x34684f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x215420[_0x1110ab(0x43f)](),_0x42e9cb['fill']&&(_0x215420[_0x1110ab(0x378)](),_0x215420[_0x1110ab(0x24b)]=_0x42e9cb[_0x1110ab(0x3ad)],_0x42e9cb[_0x1110ab(0x1e5)]===_0x1110ab(0x109)?_0x215420[_0x1110ab(0x3ad)](_0x1110ab(0x109)):_0x215420[_0x1110ab(0x3ad)](),_0x215420[_0x1110ab(0x119)]());}class _0x431bce extends _0x4c937c[_0x184c40(0x18e)]{constructor(_0xc9d8cd,_0x2197e9){const _0x1c38c6=_0x184c40;super(_0xc9d8cd,_0x2197e9),_0x1fbb55(this,_0x1c38c6(0x39b)),_0x1fbb55(this,'text'),(this['color']=_0x2197e9==null?void 0x0:_0x2197e9[_0x1c38c6(0x39b)],this[_0x1c38c6(0x1af)]=_0x2197e9==null?void 0x0:_0x2197e9[_0x1c38c6(0x1af)]);}static[_0x184c40(0xcc)](_0x514c20,_0x3ddc67){const _0x4aed6c=_0x184c40,{text:_0x421ff1,color:_0xa10f50}=_0x3ddc67;_0x514c20[_0x4aed6c(0x378)](),_0x514c20[_0x4aed6c(0x2eb)]=_0x4aed6c(0x447);const _0x3da500=_0x514c20[_0x4aed6c(0x14d)](_0x421ff1)[_0x4aed6c(0xc2)],_0x185280=Math[_0x4aed6c(0x124)](_0x3da500+0x2*_0x4b6da6,_0x5bc6d3);_0x1a47b0(_0x514c20,{'height':_0x3feec9,'radius':0x4,'width':_0x185280,'fill':_0xa10f50,'evented':!0x1}),_0x514c20[_0x4aed6c(0x24b)]=_0x4aed6c(0x32d);const _0x5d3efc=_0x4b6da6,_0xdad31f=_0x3feec9-_0x1067ea,_0x38ece8=_0x5bc6d3-0x2*_0x4b6da6;if(_0x3da500>_0x38ece8){let _0x3c6618='',_0x2cdec6=0x0;for(const _0x4a2ce7 of _0x421ff1){const _0x3ad39d=_0x514c20['measureText'](_0x4a2ce7)[_0x4aed6c(0xc2)];if(_0x2cdec6+_0x3ad39d<=_0x38ece8-_0x514c20[_0x4aed6c(0x14d)]('...')[_0x4aed6c(0xc2)])_0x3c6618+=_0x4a2ce7,_0x2cdec6+=_0x3ad39d;else{_0x3c6618+=_0x4aed6c(0x221);break;}}_0x514c20[_0x4aed6c(0x2ad)](_0x3c6618,_0x5d3efc,_0xdad31f);}else _0x514c20['fillText'](_0x421ff1,_0x5d3efc,_0xdad31f);_0x514c20[_0x4aed6c(0x119)]();}[_0x184c40(0x4e3)](_0x4b2fcb){const _0x51ba26=_0x184c40;_0x431bce[_0x51ba26(0xcc)](_0x4b2fcb,this);}}const _0x9cdef='collab-text-anchor-',_0x4b0093=_0x184c40(0x429),_0xd48d=_0x184c40(0x423),_0x3c254c=0x6,_0x53e878=1.5,_0x38d287=0x4,_0x8cde03=1.5,_0x21f2e0=_0x184c40(0x21f);class _0x30125d{constructor(_0x2e6045,_0x43355f,_0x41c201,_0x4312d3){const _0x76f167=_0x184c40;_0x1fbb55(this,_0x76f167(0x1bc),[]),_0x1fbb55(this,'_anchor',null),_0x1fbb55(this,_0x76f167(0x29d),null),_0x1fbb55(this,_0x76f167(0x4a4),null),_0x1fbb55(this,_0x76f167(0x4d0),null),_0x1fbb55(this,_0x76f167(0x2ba),null),(this[_0x76f167(0x4aa)]=_0x2e6045,this[_0x76f167(0x47d)]=_0x43355f,this['_docSkeleton']=_0x41c201,this[_0x76f167(0x1c0)]=_0x4312d3,this[_0x76f167(0x18c)]());}set[_0x184c40(0x3e9)](_0x54da06){const _0x3fe180=_0x184c40;_0x54da06?(this[_0x3fe180(0x4a4)]&&this['_anchorDot'][_0x3fe180(0xc4)](),this[_0x3fe180(0x29d)]&&this[_0x3fe180(0x29d)][_0x3fe180(0x1be)]()):(this[_0x3fe180(0x4a4)]&&this[_0x3fe180(0x4a4)][_0x3fe180(0x1be)](),this[_0x3fe180(0x29d)]&&this['_textBubble'][_0x3fe180(0xc4)]());}[_0x184c40(0x35a)](){const _0x232f5d=_0x184c40;for(const _0x2903e6 of this[_0x232f5d(0x1bc)])_0x2903e6[_0x232f5d(0x35a)]();this[_0x232f5d(0x29d)]&&this['_textBubble']['dispose'](),this[_0x232f5d(0x4a4)]&&this[_0x232f5d(0x4a4)][_0x232f5d(0x35a)](),this[_0x232f5d(0x1fd)]&&this['_anchor']['dispose'](),this[_0x232f5d(0x2ba)]&&this['_eventUnsubscribe']();}['_render'](){const _0x3f3f9e=_0x184c40;var _0x16552b;const {_docSkeleton:_0x1e3675,_document:_0x52af00}=this,{color:_0x5d5dfb,name:_0x701b29,ranges:_0x32aa2f}=this['_cursor'],_0x300263=_0x52af00[_0x3f3f9e(0x108)](),{docsLeft:_0x235b1b,docsTop:_0x1c82ec}=_0x300263,_0xb87a9b=new _0x123d63[(_0x3f3f9e(0x13a))](_0x300263,_0x1e3675);for(const {startOffset:_0x466cb7,endOffset:_0x3c399b,collapsed:_0x50601d,isActive:_0x28c9d3}of _0x32aa2f){const _0x2733fb=_0x1e3675[_0x3f3f9e(0x310)](_0x466cb7),_0x23ad9d=_0x1e3675[_0x3f3f9e(0x310)](_0x3c399b);if(_0x28c9d3){const {contentBoxPointGroup:_0xa6e3b1}=_0xb87a9b[_0x3f3f9e(0x2ae)](_0x23ad9d,_0x23ad9d);if(_0xa6e3b1[_0x3f3f9e(0x3bc)]===0x0)continue;this[_0x3f3f9e(0x4d3)](_0x5d5dfb,_0xa6e3b1,_0x235b1b,_0x1c82ec,_0x701b29),this[_0x3f3f9e(0x2ba)]=this['_handleHover']();}if(!_0x50601d&&_0x2733fb&&_0x23ad9d){if(_0x123d63[_0x3f3f9e(0x241)](_0x2733fb,_0x23ad9d)){const _0x96f995=new _0x123d63[(_0x3f3f9e(0x41c))](_0x300263,_0x1e3675),{pointGroup:_0x561cfe}=(_0x16552b=_0x96f995[_0x3f3f9e(0x2ae)](_0x2733fb,_0x23ad9d))!=null?_0x16552b:{};if(_0x561cfe==null||_0x561cfe[_0x3f3f9e(0x3bc)]===0x0)continue;this[_0x3f3f9e(0x1c5)](_0x5d5dfb,_0x561cfe,_0x235b1b,_0x1c82ec);}else{const {contentBoxPointGroup:_0x1140de}=_0xb87a9b[_0x3f3f9e(0x2ae)](_0x2733fb,_0x23ad9d);if(_0x1140de[_0x3f3f9e(0x3bc)]===0x0)continue;this[_0x3f3f9e(0x299)](_0x5d5dfb,_0x1140de,_0x235b1b,_0x1c82ec);}}}}[_0x184c40(0x4d3)](_0x5f1fbe,_0x4b34ad,_0x275ed5,_0xc35597,_0x3b9ea7){const _0x2b638c=_0x184c40,_0x3d5943=this[_0x2b638c(0x225)](_0x4b34ad),{left:_0x54889f,top:_0x11ec3c,height:_0x177e79}=_0x3d5943,_0x5033ec=this[_0x2b638c(0xbb)](),_0x488b20=_0x8cde03/_0x5033ec,_0x54ea85=new _0x4c937c['Rect'](_0x9cdef+_0x16d562[_0x2b638c(0x1df)][_0x2b638c(0x128)](_0x3c254c),{'left':_0x54889f+_0x275ed5-_0x488b20,'top':_0x11ec3c+_0xc35597,'height':_0x177e79,'width':_0x53e878,'fill':_0x5f1fbe||_0x4c937c['getColor'](_0x16d562[_0x2b638c(0x1c1)][_0x2b638c(0x40d)],0x0),'strokeWidth':_0x488b20,'stroke':_0x21f2e0,'evented':!0x0});this['_anchor']=_0x54ea85,this[_0x2b638c(0x47d)][_0x2b638c(0x1c6)](_0x54ea85,_0x123d63[_0x2b638c(0xe4)]);const _0x1cf60a=new _0x4c937c[(_0x2b638c(0x3b1))](_0x9cdef+_0x16d562[_0x2b638c(0x1df)][_0x2b638c(0x128)](_0x3c254c),{'left':_0x54889f+_0x275ed5-_0x488b20,'top':_0x11ec3c+_0xc35597-_0x38d287/0x2,'height':_0x38d287,'width':_0x38d287,'fill':_0x5f1fbe||_0x4c937c[_0x2b638c(0x164)](_0x16d562[_0x2b638c(0x1c1)][_0x2b638c(0x40d)],0x0),'strokeWidth':0x0,'stroke':_0x5f1fbe||_0x4c937c['getColor'](_0x16d562[_0x2b638c(0x1c1)]['black'],0x0),'evented':!0x1});this[_0x2b638c(0x4a4)]=_0x1cf60a,this[_0x2b638c(0x47d)][_0x2b638c(0x1c6)](_0x1cf60a,_0x123d63[_0x2b638c(0xe4)]);const _0x2943b2=new _0x431bce(_0x9cdef+_0x16d562['Tools'][_0x2b638c(0x128)](_0x3c254c),{'left':_0x54889f+_0x275ed5-_0x488b20,'top':_0x11ec3c+_0xc35597-_0x3feec9,'text':_0x3b9ea7,'color':_0x5f1fbe});this['_textBubble']=_0x2943b2,this[_0x2b638c(0x47d)]['addObject'](_0x2943b2,_0x123d63[_0x2b638c(0xe4)]),this['_hover']=!0x1;}[_0x184c40(0x4af)](){const _0x3eb65f=_0x184c40,_0x131548=this['_anchor'][_0x3eb65f(0x37c)][_0x3eb65f(0x4ad)](()=>{const _0x20342b=_0x3eb65f;this[_0x20342b(0x3e9)]=!0x0;}),_0xb978a9=this['_anchor'][_0x3eb65f(0x1f7)][_0x3eb65f(0x4ad)](()=>{const _0x44d84d=_0x3eb65f;this[_0x44d84d(0x4d0)]&&clearTimeout(this[_0x44d84d(0x4d0)]),this[_0x44d84d(0x4d0)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x379837=_0x3eb65f;_0x131548['unsubscribe'](),_0xb978a9[_0x379837(0x260)]();};}['_drawTextRange'](_0x54b2c3,_0x180a02,_0x383068,_0x1ceff5){const _0x3cefcd=_0x184c40,_0x3eb5a9=new _0x16d562[(_0x3cefcd(0x483))](_0x54b2c3)[_0x3cefcd(0x4bd)](0.2)[_0x3cefcd(0x131)](),_0x36dc99=new _0x4c937c[(_0x3cefcd(0x106))](_0x4b0093+_0x16d562[_0x3cefcd(0x1df)][_0x3cefcd(0x128)](_0x3c254c),{'pointsGroup':_0x180a02,'fill':_0x3eb5a9||_0x4c937c[_0x3cefcd(0x164)](_0x16d562[_0x3cefcd(0x1c1)]['black'],0.2),'left':_0x383068,'top':_0x1ceff5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3cefcd(0x1bc)][_0x3cefcd(0x250)](_0x36dc99),this['_scene'][_0x3cefcd(0x1c6)](_0x36dc99,_0x123d63['TEXT_RANGE_LAYER_INDEX']);}[_0x184c40(0x1c5)](_0x416923,_0x54e4e5,_0x577ef4,_0x1050f1){const _0x5b7af6=_0x184c40,_0x55e31f=new _0x16d562[(_0x5b7af6(0x483))](_0x416923)[_0x5b7af6(0x4bd)](0.2)[_0x5b7af6(0x131)](),_0x1aa4ea=new _0x4c937c[(_0x5b7af6(0x106))](_0xd48d+_0x16d562[_0x5b7af6(0x1df)][_0x5b7af6(0x128)](_0x3c254c),{'pointsGroup':_0x54e4e5,'fill':_0x55e31f||_0x4c937c[_0x5b7af6(0x164)](_0x16d562[_0x5b7af6(0x1c1)][_0x5b7af6(0x40d)],0.2),'left':_0x577ef4,'top':_0x1050f1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5b7af6(0x250)](_0x1aa4ea),this[_0x5b7af6(0x47d)][_0x5b7af6(0x1c6)](_0x1aa4ea,_0x123d63['TEXT_RANGE_LAYER_INDEX']);}[_0x184c40(0x225)](_0x3c2d9e){const _0x13197f=_0x3c2d9e[0x0],_0x2b30a8=_0x13197f[0x0],_0x20ad67=_0x13197f[0x2],{x:_0x381b5c,y:_0x2b91b3}=_0x2b30a8,{x:_0x1e8fc9,y:_0x4d41c4}=_0x20ad67;return{'left':_0x381b5c,'top':_0x2b91b3,'width':_0x1e8fc9-_0x381b5c,'height':_0x4d41c4-_0x2b91b3};}[_0x184c40(0xbb)](){const _0x48ab8e=_0x184c40,{scaleX:_0x35747b,scaleY:_0x51c6eb}=this[_0x48ab8e(0x47d)][_0x48ab8e(0x3ac)]();return Math[_0x48ab8e(0x3ea)](_0x35747b,_0x51c6eb);}}var _0x39a38b=Object['defineProperty'],_0x35c223=Object[_0x184c40(0x34e)],_0x2554c4=(_0x41f33e,_0x52b003,_0x3a44dd,_0x44a173)=>{const _0x3a79ec=_0x184c40;for(var _0x5780a3=_0x44a173>0x1?void 0x0:_0x44a173?_0x35c223(_0x52b003,_0x3a44dd):_0x52b003,_0x300898=_0x41f33e[_0x3a79ec(0x3bc)]-0x1,_0x1ad033;_0x300898>=0x0;_0x300898--)(_0x1ad033=_0x41f33e[_0x300898])&&(_0x5780a3=(_0x44a173?_0x1ad033(_0x52b003,_0x3a44dd,_0x5780a3):_0x1ad033(_0x5780a3))||_0x5780a3);return _0x44a173&&_0x5780a3&&_0x39a38b(_0x52b003,_0x3a44dd,_0x5780a3),_0x5780a3;},_0x7a50a4=(_0x2f9514,_0x513c1c)=>(_0x9d13f8,_0x38de99)=>_0x513c1c(_0x9d13f8,_0x38de99,_0x2f9514);let _0x228f1a=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x5a5a56,_0xee60ff,_0x275eac,_0x1fc132,_0x4c5d04){const _0x510c1e=_0x184c40;super(),_0x1fbb55(this,_0x510c1e(0x373),[]),_0x1fbb55(this,_0x510c1e(0x1d2),[]),(this[_0x510c1e(0x35c)]=_0x5a5a56,this[_0x510c1e(0x2a7)]=_0xee60ff,this[_0x510c1e(0x41d)]=_0x275eac,this[_0x510c1e(0x3da)]=_0x1fc132,this[_0x510c1e(0x17a)]=_0x4c5d04,this[_0x510c1e(0x2d7)]());}[_0x184c40(0x2d7)](){const _0x25caaa=_0x184c40,_0x3c9a4c=this[_0x25caaa(0x35c)][_0x25caaa(0x354)],_0xdca705=this[_0x25caaa(0x2a7)];this[_0x25caaa(0xce)](_0x1f1780[_0x25caaa(0x111)]([this[_0x25caaa(0x41d)][_0x25caaa(0x3d3)](_0x3c9a4c),this['_themeService'][_0x25caaa(0x15b)]])[_0x25caaa(0x3b2)](_0xdd90c['map'](([_0xd9f20e,_0x325f29])=>({'skeleton':_0xdca705[_0x25caaa(0x3cb)](),'cursors':[..._0xd9f20e[_0x25caaa(0xb4)]()][_0x25caaa(0x28d)](_0x40f67a=>({..._0x40f67a,'color':_0x325f29[_0x40f67a[_0x25caaa(0x39b)]]}))})))['subscribe'](_0x758080=>{const _0x23dea0=_0x25caaa;if(this[_0x23dea0(0x3bb)](),_0x758080){const {skeleton:_0x32262c,cursors:_0x4958ad}=_0x758080;this[_0x23dea0(0x3ce)](_0x32262c,_0x4958ad);}})),this[_0x25caaa(0x26d)](),this['_initCommandExecutedListener']();}[_0x184c40(0x3ce)](_0x2f57f3,_0x299527){const _0x5623d3=_0x184c40,{scene:_0x3595e6,mainComponent:_0x4a4fb0}=this[_0x5623d3(0x35c)],_0xb67093=_0x299527[_0x5623d3(0x3ed)](_0x227db6=>new _0x30125d(_0x227db6,_0x3595e6,_0x2f57f3,_0x4a4fb0));this[_0x5623d3(0x373)]=_0xb67093,this[_0x5623d3(0x1d2)]=_0x299527;}[_0x184c40(0x2e6)](){const _0x22042e=_0x184c40;this[_0x22042e(0x3bb)]();const {scene:_0x5cb825,mainComponent:_0x2b95a5}=this['_context'],_0x53c4c5=this[_0x22042e(0x2a7)][_0x22042e(0x3cb)](),_0x28906c=this[_0x22042e(0x1d2)][_0x22042e(0x3ed)](_0x374c42=>new _0x30125d(_0x374c42,_0x5cb825,_0x53c4c5,_0x2b95a5));this[_0x22042e(0x373)]=_0x28906c;}['_removeCollabCursors'](){const _0x33b01b=_0x184c40;this['_cursorShapes'][_0x33b01b(0x284)](_0x2bd716=>_0x2bd716[_0x33b01b(0x35a)]()),this[_0x33b01b(0x373)]=[];}[_0x184c40(0x269)](){const _0x260441=_0x184c40,_0x40e678=[_0x123d63[_0x260441(0x34b)]['id']];this[_0x260441(0xce)](this[_0x260441(0x3da)]['onCommandExecuted'](_0xf8991c=>{const _0x36b25b=_0x260441;_0x40e678[_0x36b25b(0x439)](_0xf8991c['id'])&&_0xf8991c[_0x36b25b(0x290)][_0x36b25b(0x354)]===this['_context'][_0x36b25b(0x354)]&&this[_0x36b25b(0x2e6)]();}));}[_0x184c40(0x26d)](){const _0x3e3adc=_0x184c40;this[_0x3e3adc(0xce)](_0x16d562[_0x3e3adc(0x15a)](this[_0x3e3adc(0x35c)][_0x3e3adc(0x38a)][_0x3e3adc(0x1b7)])[_0x3e3adc(0x3b2)](_0xdd90c[_0x3e3adc(0x1fa)](_0x19d118=>_0x19d118[_0x3e3adc(0x340)]===_0x4c937c[_0x3e3adc(0x1d7)][_0x3e3adc(0x45c)]),_0xdd90c['throttleTime'](0x10))[_0x3e3adc(0x462)](()=>{const _0x345933=_0x3e3adc;this[_0x345933(0x2e6)]();}));}};_0x228f1a=_0x2554c4([_0x7a50a4(0x1,_0x16d562[_0x184c40(0x1e9)](_0x412f6a[_0x184c40(0x33c)])),_0x7a50a4(0x2,_0x16d562[_0x184c40(0x1e9)](_0x5ca174)),_0x7a50a4(0x3,_0x16d562[_0x184c40(0x156)]),_0x7a50a4(0x4,_0x16d562['Inject'](_0x16d562[_0x184c40(0x1b6)]))],_0x228f1a);const _0x5f114c=0x1,_0x3ce3ae=1.5;class _0x3ac695 extends _0x4c937c['Shape']{constructor(_0x3408ec,_0x2a302f){const _0x137aa4=_0x184c40;super(_0x3408ec,_0x2a302f),_0x1fbb55(this,_0x137aa4(0xc3)),_0x1fbb55(this,_0x137aa4(0x2a3),!0x1),_0x1fbb55(this,'_range'),_0x1fbb55(this,_0x137aa4(0x1d8),''),_0x1fbb55(this,_0x137aa4(0xb9),'top'),_0x1fbb55(this,_0x137aa4(0x148)),(_0x2a302f&&this['setShapeProps'](_0x2a302f),this[_0x137aa4(0x37c)][_0x137aa4(0x4ad)](()=>this[_0x137aa4(0x491)]({'hovered':!0x0})),this[_0x137aa4(0x1f7)][_0x137aa4(0x4ad)](()=>this[_0x137aa4(0x491)]({'hovered':!0x1})));}['setShapeProps'](_0xd89d20){const _0x57cfc0=_0x184c40;var _0x23b22d,_0x3d0c94,_0x553588,_0x3c0ce9,_0x32e369,_0x5205ca;this[_0x57cfc0(0xc3)]=(_0x23b22d=_0xd89d20[_0x57cfc0(0x39b)])!=null?_0x23b22d:this[_0x57cfc0(0xc3)],this[_0x57cfc0(0x2a3)]=(_0x3d0c94=_0xd89d20[_0x57cfc0(0xd5)])!=null?_0x3d0c94:this['_hovered'],this[_0x57cfc0(0xfa)]=(_0x553588=_0xd89d20[_0x57cfc0(0x33b)])!=null?_0x553588:this['_range'],this[_0x57cfc0(0x1d8)]=(_0x3c0ce9=_0xd89d20[_0x57cfc0(0x2d8)])!=null?_0x3c0ce9:this[_0x57cfc0(0x1d8)],this[_0x57cfc0(0xb9)]=(_0x32e369=_0xd89d20[_0x57cfc0(0x142)])!=null?_0x32e369:this['_labelPosition'],this[_0x57cfc0(0x148)]=(_0x5205ca=_0xd89d20['backgroundColor'])!=null?_0x5205ca:this[_0x57cfc0(0x148)],this[_0x57cfc0(0x4a7)]({'width':_0xd89d20[_0x57cfc0(0xc2)],'height':_0xd89d20[_0x57cfc0(0xe0)]});}[_0x184c40(0xba)](_0x26c2bd){const _0x1ae21f=_0x184c40,{row:_0x52722f,column:_0x5a8350}=_0x26c2bd;if(_0x52722f>=this[_0x1ae21f(0xfa)][_0x1ae21f(0x4ae)]&&_0x52722f<=this['_range']['endRow']&&_0x5a8350>=this[_0x1ae21f(0xfa)][_0x1ae21f(0x4d1)]&&_0x5a8350<=this[_0x1ae21f(0xfa)][_0x1ae21f(0x270)]){this[_0x1ae21f(0x491)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x363bef){return!0x1;}[_0x184c40(0x4e3)](_0x305296){const _0x55deb8=_0x184c40;_0x4c937c['Rect'][_0x55deb8(0xcc)](_0x305296,{'width':this[_0x55deb8(0xc2)],'height':this[_0x55deb8(0xe0)],'strokeWidth':_0x3ce3ae,'stroke':this[_0x55deb8(0xc3)],'evented':!0x1,'fill':this[_0x55deb8(0x148)]}),this[_0x55deb8(0x2a3)]&&(_0x305296[_0x55deb8(0x378)](),_0x305296[_0x55deb8(0x42a)](0x1,0x0,0x0,0x1,this[_0x55deb8(0xc2)],this[_0x55deb8(0xb9)]===_0x55deb8(0x288)?0x0:-_0x3feec9),_0x431bce[_0x55deb8(0xcc)](_0x305296,{'text':this[_0x55deb8(0x1d8)],'color':this[_0x55deb8(0xc3)]}),_0x305296[_0x55deb8(0x119)]());}}var _0x1db7d2=Object[_0x184c40(0x471)],_0x3c2ad4=Object['getOwnPropertyDescriptor'],_0x557fd5=(_0x506d34,_0x1e8936,_0x4ad9a5,_0x5eebb2)=>{for(var _0x10fca8=_0x5eebb2>0x1?void 0x0:_0x5eebb2?_0x3c2ad4(_0x1e8936,_0x4ad9a5):_0x1e8936,_0x4fd460=_0x506d34['length']-0x1,_0xcbb5f5;_0x4fd460>=0x0;_0x4fd460--)(_0xcbb5f5=_0x506d34[_0x4fd460])&&(_0x10fca8=(_0x5eebb2?_0xcbb5f5(_0x1e8936,_0x4ad9a5,_0x10fca8):_0xcbb5f5(_0x10fca8))||_0x10fca8);return _0x5eebb2&&_0x10fca8&&_0x1db7d2(_0x1e8936,_0x4ad9a5,_0x10fca8),_0x10fca8;},_0x5a2985=(_0x2426ee,_0x4b9224)=>(_0x57ea58,_0x29320b)=>_0x4b9224(_0x57ea58,_0x29320b,_0x2426ee);const _0x58fcec=0x1389;let _0x323648=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x13d6a8,_0x5ab56,_0x27bc0d,_0x23d2e4){const _0x13ab1a=_0x184c40;super(),_0x1fbb55(this,_0x13ab1a(0x1d2),new Set()),_0x1fbb55(this,_0x13ab1a(0x431),null),(this[_0x13ab1a(0x35c)]=_0x13d6a8,this['_sheetSkeletonManagerService']=_0x5ab56,this[_0x13ab1a(0x41d)]=_0x27bc0d,this[_0x13ab1a(0x17a)]=_0x23d2e4,this['_init']());}[_0x184c40(0x2d7)](){const _0x3d3abb=_0x184c40;this['_sheetSkeletonManagerService'][_0x3d3abb(0x480)][_0x3d3abb(0x3b2)](_0xdd90c[_0x3d3abb(0x2e1)](this[_0x3d3abb(0x3fd)]),_0xdd90c[_0x3d3abb(0x234)](_0x42e93d=>{const _0x3d52d5=_0x3d3abb;if(_0x42e93d){const _0x328932=_0x42e93d[_0x3d52d5(0x21a)];return _0x1f1780['combineLatest'](this[_0x3d52d5(0x41d)][_0x3d52d5(0x3d3)](this[_0x3d52d5(0x35c)]['unitId']),this[_0x3d52d5(0x17a)]['currentTheme$'])[_0x3d52d5(0x3b2)](_0xdd90c[_0x3d52d5(0x3ed)](([_0x40f7f3,_0x55689e])=>{const _0x3b7f02=_0x3d52d5,_0x3c6864=new Map();return _0x40f7f3[_0x3b7f02(0x284)]((_0x15c240,_0x591ce0)=>{const _0x374996=_0x3b7f02;if(_0x15c240[_0x374996(0x210)]===_0x328932){const _0xd72272={..._0x15c240};_0xd72272['color']=_0x55689e[_0x15c240['color']],_0x3c6864[_0x374996(0x355)](_0x591ce0,_0xd72272);}}),{'skeleton':_0x42e93d,'cursors':_0x3c6864};}));}return _0x1f1780['of']({'skeleton':null,'cursors':new Map()});}))[_0x3d3abb(0x462)](({skeleton:_0xf1b05b,cursors:_0x58ea77})=>{const _0x2f9164=_0x3d3abb;this[_0x2f9164(0x3bb)](),_0xf1b05b&&this[_0x2f9164(0x3ce)](_0xf1b05b,_0x58ea77);}),this[_0x3d3abb(0x36f)][_0x3d3abb(0x480)][_0x3d3abb(0x462)](_0x27791d=>{const _0x4bf986=_0x3d3abb;if(_0x27791d==null)return;const {skeleton:_0x4fddb4}=_0x27791d,{scene:_0x2f5630}=this[_0x4bf986(0x35c)];_0x2f5630[_0x4bf986(0x1e3)][_0x4bf986(0x4ad)](_0x16d562[_0x4bf986(0x495)](_0x111336=>{const _0x246d6d=_0x4bf986;var _0x196b7f,_0xabd1ed;const {offsetX:_0x210700,offsetY:_0x14ee21}=_0x111336,{x:_0x41f26a,y:_0x39c2da}=_0x2f5630[_0x246d6d(0x2bc)](_0x4c937c[_0x246d6d(0x365)][_0x246d6d(0xfc)]([_0x210700,_0x14ee21])),{scaleX:_0x397fbf,scaleY:_0x4a2d9b}=_0x2f5630['getAncestorScale'](),_0x14fa09=_0x2f5630['getViewport'](_0x3f2b28[_0x246d6d(0x2bf)][_0x246d6d(0x236)]),_0xa69b9a=_0x2f5630[_0x246d6d(0x347)](_0x4c937c[_0x246d6d(0x365)][_0x246d6d(0xfc)]([_0x41f26a,_0x39c2da]),_0x14fa09),_0xe6ec7d=_0x4fddb4[_0x246d6d(0x159)](_0x210700,_0x14ee21,_0x397fbf,_0x4a2d9b,_0xa69b9a);((_0x196b7f=this[_0x246d6d(0x431)])==null?void 0x0:_0x196b7f[_0x246d6d(0xbd)])===_0xe6ec7d[_0x246d6d(0xbd)]&&((_0xabd1ed=this[_0x246d6d(0x431)])==null?void 0x0:_0xabd1ed[_0x246d6d(0x291)])===_0xe6ec7d[_0x246d6d(0x291)]||this['_cursors'][_0x246d6d(0x284)](_0x12c215=>{_0x12c215['onMouseMove'](_0xe6ec7d);});},0x64));});}[_0x184c40(0x3ce)](_0x447f94,_0x4ad29a){const _0x14e097=_0x184c40;var _0x3efd42;const _0x5a0fd0=(_0x3efd42=this['_sheetSkeletonManagerService'][_0x14e097(0x244)]())==null?void 0x0:_0x3efd42['skeleton'];if(!_0x5a0fd0)return;const _0x36beb2=this[_0x14e097(0x28b)]();if(!_0x36beb2)return;this[_0x14e097(0x1d2)][_0x14e097(0x284)](_0x4328b9=>{const _0x1cf7fe=_0x14e097;_0x4328b9[_0x1cf7fe(0x1ef)]();});const {scene:_0x56f2a2}=_0x36beb2,_0x1bef65=_0x12a03a(Array['from'](_0x4ad29a[_0x14e097(0xb4)]()))['map'](_0xe8bd3a=>{const _0x4aa232=_0x14e097,{color:_0x1af361,range:_0x451f86,name:_0x1e66db,selection:_0xd08408,sheetID:_0x1afc0d}=_0xe8bd3a,{startColumn:_0x277a3b,startRow:_0x1a859b,endColumn:_0x338832,endRow:_0xa61d2d}=_0x451f86,_0x4e40f6=_0x3f2b28[_0x4aa232(0x36c)](_0x1a859b,_0x277a3b,_0x56f2a2,_0x5a0fd0),_0x54b5cb=_0x3f2b28[_0x4aa232(0x36c)](_0xa61d2d,_0x338832,_0x56f2a2,_0x5a0fd0),{columnHeaderHeightAndMarginTop:_0x507d3c}=_0x5a0fd0,{startX:_0x2f9109,startY:_0x93a902}=_0x4e40f6,{endX:_0x38cef3,endY:_0x5f3a80}=_0x54b5cb,_0x4119aa=_0x38cef3-_0x2f9109,_0x4e5b47=_0x5f3a80-_0x93a902,_0x5387d9={'labelPosition':_0x93a902-_0x507d3c>=_0x3feec9?_0x4aa232(0x3bd):_0x4aa232(0x288),'sheetID':_0x1afc0d,'range':_0x451f86,'color':_0x1af361,'name':_0x1e66db,'selection':_0xd08408,'left':_0x2f9109,'top':_0x93a902,'width':_0x4119aa,'height':_0x4e5b47,'evented':!0x1,'zIndex':_0x58fcec};return new _0x3ac695(_0x1e66db,_0x5387d9);});_0x56f2a2[_0x14e097(0x391)](_0x1bef65,_0x5f114c),this['_cursors']=new Set(_0x1bef65);}[_0x184c40(0x3bb)](){const _0x19a2b9=_0x184c40;var _0x48aa50;(_0x48aa50=this[_0x19a2b9(0x1d2)])==null||_0x48aa50[_0x19a2b9(0x284)](_0x1c413f=>_0x1c413f['dispose']());}[_0x184c40(0x28b)](){const _0x2e1c50=_0x184c40;return _0x3f2b28[_0x2e1c50(0x13c)](this[_0x2e1c50(0x35c)]['unit'],this[_0x2e1c50(0x35c)]);}};_0x323648=_0x557fd5([_0x5a2985(0x1,_0x16d562[_0x184c40(0x1e9)](_0x3f2b28[_0x184c40(0x3fc)])),_0x5a2985(0x2,_0x16d562[_0x184c40(0x1e9)](_0x5ca174)),_0x5a2985(0x3,_0x16d562['Inject'](_0x16d562[_0x184c40(0x1b6)]))],_0x323648);function _0x12a03a(_0x3b9604){const _0x47d640=_0x184c40,_0x4942bb=new Map();return _0x3b9604['forEach'](_0x114150=>{const _0x594e08=_0x2bb3;if(_0x4942bb[_0x594e08(0x4c2)](_0x114150[_0x594e08(0x478)])){const _0x289e40=_0x4942bb[_0x594e08(0x3d9)](_0x114150[_0x594e08(0x478)]);_0x289e40[_0x594e08(0x2d8)]+=',\x20'+_0x114150['name'];}else _0x4942bb[_0x594e08(0x355)](_0x114150[_0x594e08(0x478)],_0x114150);}),Array['from'](_0x4942bb[_0x47d640(0xb4)]());}var _0xb0f4a8=function(){const _0x48db17=_0x184c40;return _0xb0f4a8=Object[_0x48db17(0x4a1)]||function(_0xeb8f7b){const _0x3ed019=_0x48db17;for(var _0x2d4798,_0x3b2ed3=0x1,_0x198ab1=arguments[_0x3ed019(0x3bc)];_0x3b2ed3<_0x198ab1;_0x3b2ed3++){_0x2d4798=arguments[_0x3b2ed3];for(var _0x4587ed in _0x2d4798)Object[_0x3ed019(0x25b)][_0x3ed019(0x3b3)][_0x3ed019(0x3f3)](_0x2d4798,_0x4587ed)&&(_0xeb8f7b[_0x4587ed]=_0x2d4798[_0x4587ed]);}return _0xeb8f7b;},_0xb0f4a8['apply'](this,arguments);},_0x53fbb1=function(_0x81826a,_0x5f5045){const _0x46c85c=_0x184c40;var _0x4042e8={};for(var _0xa1ef3c in _0x81826a)Object[_0x46c85c(0x25b)][_0x46c85c(0x3b3)][_0x46c85c(0x3f3)](_0x81826a,_0xa1ef3c)&&_0x5f5045[_0x46c85c(0x13d)](_0xa1ef3c)<0x0&&(_0x4042e8[_0xa1ef3c]=_0x81826a[_0xa1ef3c]);if(_0x81826a!=null&&typeof Object[_0x46c85c(0x10e)]==_0x46c85c(0x1e7)){for(var _0x22d80c=0x0,_0xa1ef3c=Object['getOwnPropertySymbols'](_0x81826a);_0x22d80c<_0xa1ef3c[_0x46c85c(0x3bc)];_0x22d80c++)_0x5f5045['indexOf'](_0xa1ef3c[_0x22d80c])<0x0&&Object[_0x46c85c(0x25b)][_0x46c85c(0x31e)][_0x46c85c(0x3f3)](_0x81826a,_0xa1ef3c[_0x22d80c])&&(_0x4042e8[_0xa1ef3c[_0x22d80c]]=_0x81826a[_0xa1ef3c[_0x22d80c]]);}return _0x4042e8;},_0x155c14=_0x53f0ab['forwardRef'](function(_0x2dc288,_0x2b8d3d){const _0x5e7530=_0x184c40;var _0x4bbe8d=_0x2dc288[_0x5e7530(0x30a)],_0x5700d3=_0x2dc288['id'],_0x4ef794=_0x2dc288[_0x5e7530(0x1a1)],_0x57ac3a=_0x2dc288[_0x5e7530(0xd1)],_0x94cf39=_0x53fbb1(_0x2dc288,[_0x5e7530(0x30a),'id',_0x5e7530(0x1a1),_0x5e7530(0xd1)]),_0x2c13b5=_0x5e7530(0x134)[_0x5e7530(0xc0)](_0x5700d3,'\x20')[_0x5e7530(0xc0)](_0x4ef794||'')['trim'](),_0x496edf=_0x53f0ab[_0x5e7530(0x16a)]('_'[_0x5e7530(0xc0)](_0x1b8175()));return _0x2a30c6(_0x4bbe8d,''[_0x5e7530(0xc0)](_0x5700d3),{'defIds':_0x4bbe8d[_0x5e7530(0x4cf)],'idSuffix':_0x496edf[_0x5e7530(0x3bf)]},_0xb0f4a8({'ref':_0x2b8d3d,'className':_0x2c13b5},_0x94cf39),_0x57ac3a);});function _0x2a30c6(_0x14af37,_0x252efa,_0x4aa1a4,_0x35cae8,_0x2d4f51){const _0x418105=_0x184c40;return _0x53f0ab[_0x418105(0x309)](_0x14af37[_0x418105(0x30b)],_0xb0f4a8(_0xb0f4a8({'key':_0x252efa},_0xd7fb42(_0x14af37,_0x4aa1a4,_0x2d4f51)),_0x35cae8),(_0x214b19(_0x14af37,_0x4aa1a4)[_0x418105(0x286)]||[])['map'](function(_0x44b623,_0x1156c7){const _0x570724=_0x418105;return _0x2a30c6(_0x44b623,''['concat'](_0x252efa,'-')['concat'](_0x14af37[_0x570724(0x30b)],'-')['concat'](_0x1156c7),_0x4aa1a4,void 0x0,_0x2d4f51);}));}function _0xd7fb42(_0x5c8cca,_0x3b2904,_0x4fd4dd){const _0x50afde=_0x184c40;var _0x19e8c2=_0xb0f4a8({},_0x5c8cca[_0x50afde(0xcd)]);_0x4fd4dd!=null&&_0x4fd4dd[_0x50afde(0x3b8)]&&_0x19e8c2[_0x50afde(0x3ad)]===_0x50afde(0x3b8)&&(_0x19e8c2['fill']=_0x4fd4dd[_0x50afde(0x3b8)]);var _0x740cdb=_0x3b2904[_0x50afde(0x4cf)];return!_0x740cdb||_0x740cdb['length']===0x0||(_0x5c8cca['tag']==='use'&&_0x19e8c2[_0x50afde(0x215)]&&(_0x19e8c2[_0x50afde(0x215)]=_0x19e8c2[_0x50afde(0x215)]+_0x3b2904['idSuffix']),Object[_0x50afde(0x388)](_0x19e8c2)[_0x50afde(0x284)](function(_0x1f1c7c){const _0x313511=_0x50afde;var _0x359056=_0x1f1c7c[0x0],_0x403f7b=_0x1f1c7c[0x1];typeof _0x403f7b==_0x313511(0xb5)&&(_0x19e8c2[_0x359056]=_0x403f7b[_0x313511(0x3d6)](/url\(#(.*)\)/,_0x313511(0x3dc)[_0x313511(0xc0)](_0x3b2904[_0x313511(0x2ce)],')')));})),_0x19e8c2;}function _0x214b19(_0x4714a5,_0x14730b){const _0x50e667=_0x184c40;var _0x2f6e4f,_0x4eaeec=_0x14730b[_0x50e667(0x4cf)];return!_0x4eaeec||_0x4eaeec[_0x50e667(0x3bc)]===0x0?_0x4714a5:_0x4714a5[_0x50e667(0x30b)]===_0x50e667(0x1b8)&&(!((_0x2f6e4f=_0x4714a5[_0x50e667(0x286)])===null||_0x2f6e4f===void 0x0)&&_0x2f6e4f[_0x50e667(0x3bc)])?_0xb0f4a8(_0xb0f4a8({},_0x4714a5),{'children':_0x4714a5[_0x50e667(0x286)][_0x50e667(0x3ed)](function(_0xcc9a87){const _0x5830b3=_0x50e667;return typeof _0xcc9a87[_0x5830b3(0xcd)]['id']==_0x5830b3(0xb5)&&_0x4eaeec&&_0x4eaeec['indexOf'](_0xcc9a87[_0x5830b3(0xcd)]['id'])>-0x1?_0xb0f4a8(_0xb0f4a8({},_0xcc9a87),{'attrs':_0xb0f4a8(_0xb0f4a8({},_0xcc9a87[_0x5830b3(0xcd)]),{'id':_0xcc9a87[_0x5830b3(0xcd)]['id']+_0x14730b['idSuffix']})}):_0xcc9a87;})}):_0x4714a5;}function _0x1b8175(){const _0x15b8bb=_0x184c40;return Math[_0x15b8bb(0x41e)]()['toString'](0x24)[_0x15b8bb(0x4c5)](0x2,0x8);}_0x155c14['displayName']='UniverIcon';var _0x37e9b1={'tag':_0x184c40(0x2f6),'attrs':{'fill':_0x184c40(0x458),'viewBox':_0x184c40(0x247),'width':_0x184c40(0x4dd),'height':_0x184c40(0x4dd)},'children':[{'tag':'g','attrs':{'clipPath':_0x184c40(0xf8)},'children':[{'tag':_0x184c40(0x129),'attrs':{'stroke':_0x184c40(0x27c),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x184c40(0x39f),'strokeLinejoin':_0x184c40(0x39f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x184c40(0x368),'attrs':{'id':_0x184c40(0xf1)},'children':[{'tag':_0x184c40(0x129),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x184c40(0xf1)]},_0x28bfcd=_0x53f0ab[_0x184c40(0x4a8)](function(_0x5e1ef7,_0x4b33f0){const _0x29e680=_0x184c40;return _0x53f0ab[_0x29e680(0x309)](_0x155c14,Object[_0x29e680(0x4a1)]({},_0x5e1ef7,{'id':_0x29e680(0x3b9),'ref':_0x4b33f0,'icon':_0x37e9b1}));});_0x28bfcd['displayName']='OffLineSingle';var _0x43cd60={'tag':'svg','attrs':{'fill':_0x184c40(0x458),'viewBox':'0\x200\x2017\x2016','width':_0x184c40(0x4dd),'height':_0x184c40(0x4dd)},'children':[{'tag':'g','attrs':{'clipPath':_0x184c40(0x2e3)},'children':[{'tag':'path','attrs':{'stroke':_0x184c40(0x27c),'d':_0x184c40(0xbc),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x184c40(0x1b8),'attrs':{},'children':[{'tag':_0x184c40(0x368),'attrs':{'id':_0x184c40(0x424)},'children':[{'tag':'path','attrs':{'fill':_0x184c40(0x2d3),'d':_0x184c40(0x328),'transform':_0x184c40(0x155)}}]}]}],'defIds':[_0x184c40(0x424)]},_0x4868ce=_0x53f0ab[_0x184c40(0x4a8)](function(_0x4fe0ab,_0x5f46af){const _0x5208d2=_0x184c40;return _0x53f0ab[_0x5208d2(0x309)](_0x155c14,Object[_0x5208d2(0x4a1)]({},_0x4fe0ab,{'id':_0x5208d2(0x3cc),'ref':_0x5f46af,'icon':_0x43cd60}));});_0x4868ce[_0x184c40(0x283)]=_0x184c40(0x467);const _0x300896={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x184c40(0x219),'onlineStatus':_0x184c40(0x3ba),'online':_0x184c40(0x3cf),'offline':'univer-offline'};function _0x38977f(_0x1ec3b0){const _0x3f9d01=_0x184c40;switch(_0x1ec3b0){case _0x55c585[_0x3f9d01(0x1dd)]:return _0x3f9d01(0x463);case _0x55c585[_0x3f9d01(0x2cc)]:return _0x3f9d01(0x100);case _0x55c585[_0x3f9d01(0x2ea)]:return'collabStatus.fetchMiss';case _0x55c585[_0x3f9d01(0x318)]:return _0x3f9d01(0x102);case _0x55c585['PENDING']:case _0x55c585[_0x3f9d01(0xc9)]:case _0x55c585[_0x3f9d01(0xdb)]:return _0x3f9d01(0x173);case _0x55c585[_0x3f9d01(0x42b)]:return _0x3f9d01(0x4c0);}}function _0x25575c(_0x5a6d4f){const _0x2dcde4=_0x184c40,{status$:_0x27bc4f}=_0x5a6d4f,_0x657c90=_0x5f2673['useObservable'](_0x27bc4f,_0x55c585[_0x2dcde4(0x318)]),_0x3b9ec9=_0x16d562[_0x2dcde4(0x3e4)](_0x16d562['LocaleService']),_0x796924=_0x16d562[_0x2dcde4(0x3e4)](_0xff46cc[_0x2dcde4(0xef)]),_0x55b595=_0x657c90!==_0x55c585[_0x2dcde4(0x1dd)],_0x210d8e=_0x3b9ec9['t'](_0x38977f(_0x657c90)),_0x367cea=_0x290bfa(_0x300896['onlineStatus'],{[_0x300896[_0x2dcde4(0x45d)]]:_0x55b595,[_0x300896[_0x2dcde4(0x455)]]:!_0x55b595}),_0x50d9f6=_0x55b595?_0x53f0ab[_0x2dcde4(0x309)](_0x4868ce,null):_0x53f0ab['createElement'](_0x28bfcd,null),_0x1d9985=_0x53f0ab['useCallback'](()=>{const _0x360e92=_0x2dcde4;_0x55b595||_0x796924[_0x360e92(0x34f)]();},[_0x55b595,_0x796924]);function _0x334cd3(){const _0x118a93=_0x2dcde4;return _0x53f0ab[_0x118a93(0x309)]('div',{'className':_0x367cea,'onClick':_0x1d9985},_0x53f0ab['createElement'](_0x118a93(0x4a6),{'className':_0x300896[_0x118a93(0x11e)]},_0x50d9f6),_0x53f0ab[_0x118a93(0x309)](_0x118a93(0x4a6),{'className':_0x300896['onlineStatusTitle']},_0x210d8e));}return _0x55b595?_0x334cd3():_0x53f0ab[_0x2dcde4(0x309)](_0x516637[_0x2dcde4(0x278)],{'title':_0x3b9ec9['t'](_0x2dcde4(0x489))},_0x334cd3());}var _0x365493=Object['defineProperty'],_0x16947a=Object['getOwnPropertyDescriptor'],_0x4a97d3=(_0x4d5294,_0x474809,_0xb4d8f2,_0x8faabc)=>{const _0x3f7603=_0x184c40;for(var _0x2c9a98=_0x8faabc>0x1?void 0x0:_0x8faabc?_0x16947a(_0x474809,_0xb4d8f2):_0x474809,_0x281ab0=_0x4d5294[_0x3f7603(0x3bc)]-0x1,_0x508aed;_0x281ab0>=0x0;_0x281ab0--)(_0x508aed=_0x4d5294[_0x281ab0])&&(_0x2c9a98=(_0x8faabc?_0x508aed(_0x474809,_0xb4d8f2,_0x2c9a98):_0x508aed(_0x2c9a98))||_0x2c9a98);return _0x8faabc&&_0x2c9a98&&_0x365493(_0x474809,_0xb4d8f2,_0x2c9a98),_0x2c9a98;},_0x17bd14=(_0x3f79d3,_0x218ac0)=>(_0x22b1eb,_0x2aae5f)=>_0x218ac0(_0x22b1eb,_0x2aae5f,_0x3f79d3);_0xff46cc[_0x184c40(0x207)]=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x371957,_0x41c1c4,_0x17e3ac,_0x5b5196){const _0x26d5a3=_0x184c40;super(),_0x1fbb55(this,_0x26d5a3(0x475),new _0x1f1780[(_0x26d5a3(0x2f0))](_0x55c585[_0x26d5a3(0x318)])),(this[_0x26d5a3(0x1b5)]=_0x371957,this[_0x26d5a3(0x1a8)]=_0x41c1c4,this[_0x26d5a3(0x183)]=_0x17e3ac,this['_collaborationController']=_0x5b5196,this[_0x26d5a3(0x253)](),this[_0x26d5a3(0x15d)]());}['_initStatusListener'](){const _0x377d0f=_0x184c40;this['disposeWithMe'](this[_0x377d0f(0x1b5)][_0x377d0f(0x320)][_0x377d0f(0x3b2)](_0x1f1780[_0x377d0f(0x234)](()=>{const _0x5e380f=_0x377d0f,_0x5b5500=this[_0x5e380f(0x1b5)][_0x5e380f(0x3eb)]();return _0x5b5500?this[_0x5e380f(0x25f)][_0x5e380f(0x2c2)](_0x5b5500[_0x5e380f(0x17e)]()):_0x1f1780['of'](null);}),_0x1f1780[_0x377d0f(0x234)](_0x1b1843=>_0x1b1843?_0x1b1843[_0x377d0f(0x2a6)]:_0x1f1780['of'](_0x55c585[_0x377d0f(0x318)])))[_0x377d0f(0x462)](_0x24c816=>{const _0x3ba6f0=_0x377d0f;this[_0x3ba6f0(0x475)][_0x3ba6f0(0x2d2)](_0x24c816);}));}[_0x184c40(0x253)](){const _0x415587=_0x184c40;this[_0x415587(0xce)](this[_0x415587(0x1a8)][_0x415587(0x248)](_0x5f2673['BuiltInUIPart']['HEADER_MENU'],()=>_0x16d562[_0x415587(0x2ab)](_0x26410d({'status$':this[_0x415587(0x475)][_0x415587(0x376)]()}),this['_injector'])));}},_0xff46cc['DesktopCollaborationStatusDisplayController']=_0x4a97d3([_0x17bd14(0x0,_0x16d562[_0x184c40(0x466)]),_0x17bd14(0x1,_0x5f2673[_0x184c40(0x200)]),_0x17bd14(0x2,_0x16d562['Inject'](_0x16d562[_0x184c40(0x3a2)])),_0x17bd14(0x3,_0x16d562[_0x184c40(0x1e9)](_0xff46cc['CollaborationController']))],_0xff46cc[_0x184c40(0x207)]);function _0x26410d(_0x29cf55){const {status$:_0x4e7525}=_0x29cf55;return function(){return _0x53f0ab['createElement'](_0x25575c,{'status$':_0x4e7525});};}const _0x3c63e6=_0x16d562[_0x184c40(0xcf)](_0x184c40(0x1bf));var _0x5d73ab=Object[_0x184c40(0x471)],_0x31a230=Object[_0x184c40(0x34e)],_0x417000=(_0x2a4986,_0x4063b1,_0x4d803c,_0x2ba14f)=>{for(var _0x32ae20=_0x2ba14f>0x1?void 0x0:_0x2ba14f?_0x31a230(_0x4063b1,_0x4d803c):_0x4063b1,_0x54901e=_0x2a4986['length']-0x1,_0x4b4da4;_0x54901e>=0x0;_0x54901e--)(_0x4b4da4=_0x2a4986[_0x54901e])&&(_0x32ae20=(_0x2ba14f?_0x4b4da4(_0x4063b1,_0x4d803c,_0x32ae20):_0x4b4da4(_0x32ae20))||_0x32ae20);return _0x2ba14f&&_0x32ae20&&_0x5d73ab(_0x4063b1,_0x4d803c,_0x32ae20),_0x32ae20;},_0x35cb3f=(_0x4525b4,_0x4e6b24)=>(_0x1f3390,_0x5e54ec)=>_0x4e6b24(_0x1f3390,_0x5e54ec,_0x4525b4);_0xff46cc[_0x184c40(0x400)]=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x32d565,_0x462246,_0x509f9e,_0x16e9a2,_0x2ca2f7,_0x17d0d2){const _0x285e36=_0x184c40;super(),this[_0x285e36(0x20b)]=_0x32d565,this[_0x285e36(0xe6)]=_0x462246,this[_0x285e36(0x3da)]=_0x509f9e,this[_0x285e36(0x103)]=_0x16e9a2,this[_0x285e36(0x1b1)]=_0x2ca2f7,_0x17d0d2?_0x17d0d2==null||_0x17d0d2[_0x285e36(0x49d)]()[_0x285e36(0xbf)](()=>this[_0x285e36(0x2d7)]()):(this[_0x285e36(0xe6)]['debug'](_0x285e36(0x14a),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x285e36(0x2d7)]());}async[_0x184c40(0x2d7)](){const _0x22f29c=_0x184c40,_0x3a6d80=this[_0x22f29c(0x20b)][_0x22f29c(0x2aa)](_0x22f29c(0xd6)),_0x13067f=this[_0x22f29c(0x20b)]['getParam'](_0x22f29c(0x340));if(!_0x3a6d80||!_0x13067f){this['_logService'][_0x22f29c(0x2b2)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x13067f)){case _0x55b5ea[_0x22f29c(0x1ce)]:{const _0x435e0a=await this[_0x22f29c(0x237)](_0x3a6d80);this[_0x22f29c(0x16e)](_0x435e0a);break;}case _0x55b5ea[_0x22f29c(0x2f5)]:{await this[_0x22f29c(0x2bb)](_0x3a6d80);break;}default:{this[_0x22f29c(0xe6)]['error'](_0x22f29c(0x14a),_0x22f29c(0x104));break;}}}async['_setupSubUnitSync'](_0xbabe89){const _0x44f9d3=_0x184c40;await this[_0x44f9d3(0x21b)](_0xbabe89),_0xbabe89[_0x44f9d3(0x3a9)][_0x44f9d3(0x3b2)](_0x1f1780[_0x44f9d3(0x2e1)](this[_0x44f9d3(0x3fd)]))[_0x44f9d3(0x462)](_0x16f5ad=>{const _0x4c9c8a=_0x44f9d3;_0x16f5ad&&this[_0x4c9c8a(0x1a0)](_0x16f5ad);}),this[_0x44f9d3(0x20b)][_0x44f9d3(0x162)][_0x44f9d3(0x3b2)](_0x1f1780[_0x44f9d3(0x2e1)](this['dispose$']))[_0x44f9d3(0x462)](()=>this['_updateSubUnitFromURLParams'](_0xbabe89));}[_0x184c40(0x1a0)](_0x99cd92,_0x46ad2b=!0x1){const _0x33093d=_0x184c40,_0x2f8945=this['_urlService'][_0x33093d(0x2aa)](_0x33093d(0x374));_0x99cd92[_0x33093d(0xec)]()!==_0x2f8945&&this[_0x33093d(0x20b)][_0x33093d(0xe2)](_0x33093d(0x374),_0x99cd92[_0x33093d(0xec)](),_0x46ad2b);}async[_0x184c40(0x21b)](_0x5a3604){const _0x1022a8=_0x184c40;var _0x3cac80;const _0x45acaf=this[_0x1022a8(0x20b)]['getParam'](_0x1022a8(0x374));if(!_0x45acaf||!_0x5a3604[_0x1022a8(0x130)](_0x45acaf)){const _0x39d6b1=_0x5a3604[_0x1022a8(0x158)]()[0x0],_0x5a4679=_0x5a3604[_0x1022a8(0x130)](_0x39d6b1);if(!_0x5a4679)return;this[_0x1022a8(0x1a0)](_0x5a4679,!0x0),await this[_0x1022a8(0x3da)][_0x1022a8(0x2d5)](_0x30fd53[_0x1022a8(0x406)]['id'],{'unitId':_0x5a3604[_0x1022a8(0x17e)](),'subUnitId':_0x39d6b1});return;}((_0x3cac80=_0x5a3604[_0x1022a8(0x1f6)]())==null?void 0x0:_0x3cac80[_0x1022a8(0xec)]())!==_0x45acaf&&await this[_0x1022a8(0x3da)][_0x1022a8(0x2d5)](_0x30fd53[_0x1022a8(0x406)]['id'],{'unitId':_0x5a3604[_0x1022a8(0x17e)](),'subUnitId':_0x45acaf});}async['_loadSheet'](_0x37e6e9){const _0x43b144=_0x184c40;let _0xae5f9f=0x0;const _0x766142=await this['_localCacheService'][_0x43b144(0x45f)](_0x37e6e9);return _0x766142&&(_0x766142[_0x43b144(0x344)]||_0x766142['mutations'][_0x43b144(0x3bc)]!==0x0)&&(_0xae5f9f=_0x766142[_0x43b144(0x407)]),_0xae5f9f===0x0&&this[_0x43b144(0xe6)][_0x43b144(0x2b2)]('[DataLoaderController]',_0x43b144(0x166)),this[_0x43b144(0x1b1)][_0x43b144(0x40e)](_0x37e6e9,_0xae5f9f);}async[_0x184c40(0x2bb)](_0x5949b5){const _0x55b26c=_0x184c40;let _0x3c3abb=0x0;const _0x562e9b=await this['_localCacheService'][_0x55b26c(0x45f)](_0x5949b5);return _0x562e9b&&(_0x562e9b[_0x55b26c(0x344)]||_0x562e9b[_0x55b26c(0x15e)][_0x55b26c(0x3bc)]!==0x0)&&(_0x3c3abb=_0x562e9b['rev']),_0x3c3abb===0x0&&this[_0x55b26c(0xe6)]['debug']('[DataLoaderController]',_0x55b26c(0x166)),this[_0x55b26c(0x1b1)][_0x55b26c(0x383)](_0x5949b5,_0x3c3abb);}},_0xff46cc[_0x184c40(0x400)]=_0x417000([_0x35cb3f(0x0,_0x3c63e6),_0x35cb3f(0x1,_0x16d562[_0x184c40(0x31a)]),_0x35cb3f(0x2,_0x16d562[_0x184c40(0x156)]),_0x35cb3f(0x3,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x35cb3f(0x4,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3b5)])),_0x35cb3f(0x5,_0x16d562['Optional'](_0x2c05f2['IRemoteInstanceService']))],_0xff46cc['DataLoaderController']);var _0x41466f=Object[_0x184c40(0x471)],_0x4aabc9=Object['getOwnPropertyDescriptor'],_0xea3ff0=(_0x47bcb2,_0xc782dc,_0x248be1,_0x20daa3)=>{for(var _0x5385cc=_0x20daa3>0x1?void 0x0:_0x20daa3?_0x4aabc9(_0xc782dc,_0x248be1):_0xc782dc,_0x2119e4=_0x47bcb2['length']-0x1,_0x2c85fa;_0x2119e4>=0x0;_0x2119e4--)(_0x2c85fa=_0x47bcb2[_0x2119e4])&&(_0x5385cc=(_0x20daa3?_0x2c85fa(_0xc782dc,_0x248be1,_0x5385cc):_0x2c85fa(_0x5385cc))||_0x5385cc);return _0x20daa3&&_0x5385cc&&_0x41466f(_0xc782dc,_0x248be1,_0x5385cc),_0x5385cc;},_0x14151e=(_0x355f37,_0x18b27a)=>(_0x21ffa2,_0xb5637e)=>_0x18b27a(_0x21ffa2,_0xb5637e,_0x355f37);const _0x302e83=_0x184c40(0x11d),_0x2c00a0=_0x184c40(0x27e);let _0x47a8b6=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x380070,_0x4a799c){const _0x27ba01=_0x184c40;super(),this['_univerInstanceService']=_0x380070,this['_configService']=_0x4a799c,this[_0x27ba01(0x2d7)]();}[_0x184c40(0x2d7)](){const _0xdf3dcb=_0x184c40;this['disposeWithMe'](this[_0xdf3dcb(0x1b5)]['focused$'][_0xdf3dcb(0x462)](()=>{const _0x2e20d7=_0xdf3dcb;var _0xacc147;const _0xda8db2=this[_0x2e20d7(0x1b5)][_0x2e20d7(0x3eb)]();let _0x122806=(_0xacc147=this[_0x2e20d7(0x140)][_0x2e20d7(0xfb)](_0x302e83))!=null?_0xacc147:_0x2c00a0;_0xda8db2 instanceof _0x16d562[_0x2e20d7(0x24c)]&&(_0x122806=_0xda8db2[_0x2e20d7(0x2d8)]),document['title']=_0x122806;}));}};_0x47a8b6=_0xea3ff0([_0x14151e(0x0,_0x16d562[_0x184c40(0x466)]),_0x14151e(0x1,_0x16d562[_0x184c40(0x317)])],_0x47a8b6);var _0x59c68b=Object[_0x184c40(0x471)],_0x289b54=Object[_0x184c40(0x34e)],_0x1f4ef8=(_0x5256df,_0x84d28e,_0x563320,_0x23a2b6)=>{const _0x31dd94=_0x184c40;for(var _0x10d296=_0x23a2b6>0x1?void 0x0:_0x23a2b6?_0x289b54(_0x84d28e,_0x563320):_0x84d28e,_0x138d71=_0x5256df[_0x31dd94(0x3bc)]-0x1,_0x229a12;_0x138d71>=0x0;_0x138d71--)(_0x229a12=_0x5256df[_0x138d71])&&(_0x10d296=(_0x23a2b6?_0x229a12(_0x84d28e,_0x563320,_0x10d296):_0x229a12(_0x10d296))||_0x10d296);return _0x23a2b6&&_0x10d296&&_0x59c68b(_0x84d28e,_0x563320,_0x10d296),_0x10d296;},_0xe24ad9=(_0x3ada02,_0x8eac6b)=>(_0x219751,_0x1c0e23)=>_0x8eac6b(_0x219751,_0x1c0e23,_0x3ada02);let _0x46c8bd=class{constructor(_0x362a23,_0x33f76f,_0x808ee0){const _0x1c2087=_0x184c40;this[_0x1c2087(0x140)]=_0x362a23,this[_0x1c2087(0x19b)]=_0x33f76f,this[_0x1c2087(0x387)]=_0x808ee0,this[_0x1c2087(0x3e6)]();}[_0x184c40(0x3e6)](){const _0x24cd47=_0x184c40;this[_0x24cd47(0x19b)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x19b33f,_0x32dfcd)=>_0x32dfcd(_0x19b33f)[_0x24cd47(0x3b2)](_0x1f1780[_0x24cd47(0x171)](async _0x1635cf=>{const _0x184f31=_0x24cd47,_0x581d5a=_0x1635cf;if(_0x581d5a[_0x184f31(0x362)]===0x191&&window[_0x184f31(0x4b0)](this[_0x184f31(0x387)]['t']('auth.needGotoLoginAlert'))){const _0x41499b=window[_0x184f31(0x120)](window[_0x184f31(0x3d7)][_0x184f31(0x4be)]);window[_0x184f31(0x3d7)][_0x184f31(0x4be)]=this[_0x184f31(0x2fa)]()+_0x184f31(0x37f)+_0x41499b;}return _0x581d5a;}))});}[_0x184c40(0x2fa)](){const _0x3a6ec8=_0x184c40;var _0x83a9d6,_0x3f40fb;const _0x5907ac=this[_0x3a6ec8(0x140)][_0x3a6ec8(0xfb)](_0x465855),_0x37b311=this[_0x3a6ec8(0x140)][_0x3a6ec8(0xfb)](_0x5a4b90);return(_0x3f40fb=(_0x83a9d6=_0x37b311==null?void 0x0:_0x37b311['loginUrlKey'])!=null?_0x83a9d6:_0x5907ac)!=null?_0x3f40fb:_0x514271;}};_0x46c8bd=_0x1f4ef8([_0xe24ad9(0x0,_0x16d562[_0x184c40(0x317)]),_0xe24ad9(0x1,_0x16d562[_0x184c40(0x1e9)](_0x494277['HTTPService'])),_0xe24ad9(0x2,_0x16d562['Inject'](_0x16d562[_0x184c40(0x42c)]))],_0x46c8bd);var _0x429807=Object[_0x184c40(0x471)],_0x1f86d8=Object[_0x184c40(0x34e)],_0x15bfb5=(_0x573d64,_0x5e731e,_0x5c7a69,_0x292dac)=>{const _0x59b06b=_0x184c40;for(var _0x190ead=_0x292dac>0x1?void 0x0:_0x292dac?_0x1f86d8(_0x5e731e,_0x5c7a69):_0x5e731e,_0x16b5d3=_0x573d64[_0x59b06b(0x3bc)]-0x1,_0x42842a;_0x16b5d3>=0x0;_0x16b5d3--)(_0x42842a=_0x573d64[_0x16b5d3])&&(_0x190ead=(_0x292dac?_0x42842a(_0x5e731e,_0x5c7a69,_0x190ead):_0x42842a(_0x190ead))||_0x190ead);return _0x292dac&&_0x190ead&&_0x429807(_0x5e731e,_0x5c7a69,_0x190ead),_0x190ead;},_0x55f8bb=(_0x43c09f,_0x2acf53)=>(_0x392f21,_0x105d1e)=>_0x2acf53(_0x392f21,_0x105d1e,_0x43c09f);const _0x1f03d7=_0x184c40(0x4c9),_0x5ea1ff=_0x184c40(0x484);_0xff46cc['AuthzIoHttpService']=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x5c1be8,_0x21ba21){const _0x2ed632=_0x184c40;super(),this['_HTTPService']=_0x5c1be8,this[_0x2ed632(0x140)]=_0x21ba21,this[_0x2ed632(0x469)]();}[_0x184c40(0x469)](){const _0x5621b4=_0x184c40,_0x2a1324=this;this[_0x5621b4(0xce)](this[_0x5621b4(0x115)][_0x5621b4(0x2cd)]({'priority':0x3e7,'interceptor':_0x494277[_0x5621b4(0x319)]({'isMatch'(_0x103819){const _0x3474d6=_0x5621b4;var _0x321dd8;if(_0x103819[_0x3474d6(0x3ab)]===_0x3474d6(0x45b)&&((_0x321dd8=_0x103819['requestParams'])!=null&&_0x321dd8[_0x3474d6(0xd7)])){const {objectID:_0x5f8165,objectType:_0x4bcbc3}=_0x103819[_0x3474d6(0x38d)]['body']||{};if(!_0x5f8165||_0x4bcbc3===void 0x0)return!0x1;const _0x198c4d=_0x2a1324[_0x3474d6(0x477)]()+'/'+_0x4bcbc3+_0x3474d6(0x137)+_0x5f8165+_0x3474d6(0xde);if(_0x103819[_0x3474d6(0x413)]===_0x198c4d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x209e1a){const _0x108599=_0x5621b4;var _0x1273dd;return(_0x1273dd=_0x209e1a[_0x108599(0x38d)])==null?void 0x0:_0x1273dd['body'];},'mergeParamsToRequest'(_0x17658e,_0x57276e){const _0x417601=_0x5621b4,_0x1489c4=_0x2a1324['_getAPIPrefixPath']()+_0x417601(0x3f1),_0x440b8c=_0x17658e['reduce']((_0x4ef167,_0x539f09)=>{const _0x1e7570=_0x417601,{unitID:_0x4cee98,objectID:_0x38669c,objectType:_0x1daef3,actions:_0x2a908b}=_0x539f09;return _0x4ef167[_0x4cee98]||(_0x4ef167[_0x4cee98]={}),_0x4ef167[_0x4cee98][_0x38669c]||(_0x4ef167[_0x4cee98][_0x38669c]={'objectID':_0x38669c,'objectType':_0x1daef3,'actions':[]}),_0x4ef167[_0x4cee98][_0x38669c][_0x1e7570(0x277)][_0x1e7570(0x250)](..._0x2a908b),_0x4ef167;},{}),_0x20eada=[];for(const _0x453819 in _0x440b8c)for(const _0x4ba856 in _0x440b8c[_0x453819]){const {actions:_0x46f799,objectType:_0x5ae6e5}=_0x440b8c[_0x453819][_0x4ba856],_0x7dddf7=[...new Set(_0x46f799)];_0x20eada['push']({'unitID':_0x453819,'objectID':_0x4ba856,'objectType':_0x5ae6e5,'actions':_0x7dddf7});}return new _0x494277[(_0x417601(0x122))]('POST',_0x1489c4,{'headers':_0x57276e[_0x417601(0x280)],'withCredentials':_0x57276e[_0x417601(0x41f)],'responseType':_0x57276e[_0x417601(0x1a6)],'body':{'requests':_0x20eada}});}},{'distributeResult'(_0x28dcbb,_0x50edd4){const _0x876a12=_0x5621b4,{objectActions:_0x29824e}=_0x28dcbb;return _0x50edd4[_0x876a12(0x3ed)](_0x42cd13=>{const _0x35a365=_0x876a12,{unitID:_0xebfe3a,objectID:_0x1841ee,actions:_0x47d429}=_0x42cd13,_0x509425=_0x29824e[_0x35a365(0x2a2)](_0x5d1b60=>_0x5d1b60[_0x35a365(0x445)]===_0xebfe3a&&_0x5d1b60[_0x35a365(0x1a4)]===_0x1841ee),_0x47d2bd=_0x47d429['map'](_0x3ed1cf=>_0x509425==null?void 0x0:_0x509425[_0x35a365(0x277)][_0x35a365(0x2a2)](_0x185250=>_0x185250[_0x35a365(0x35b)]===_0x3ed1cf))[_0x35a365(0x1fa)](_0xbd97fb=>!!_0xbd97fb);return{'config':_0x42cd13,'result':{'actions':_0x47d2bd,'error':_0x28dcbb[_0x35a365(0x28e)]}};});}})}));}[_0x184c40(0x477)](){const _0x525a7c=_0x184c40;var _0x356b2f,_0x21d34c;const _0x421474=this[_0x525a7c(0x140)][_0x525a7c(0xfb)](_0x1f03d7),_0x396a2e=this[_0x525a7c(0x140)][_0x525a7c(0xfb)](_0x5a4b90);return(_0x21d34c=(_0x356b2f=_0x396a2e==null?void 0x0:_0x396a2e[_0x525a7c(0x35e)])!=null?_0x356b2f:_0x421474)!=null?_0x21d34c:_0x5ea1ff;}async[_0x184c40(0x233)](_0x1a404e){const _0x19d691=_0x184c40,_0x3591a3=this[_0x19d691(0x477)]()+'/'+_0x1a404e[_0x19d691(0x242)]+_0x19d691(0x4d4);return(await this[_0x19d691(0x115)][_0x19d691(0x46a)](_0x3591a3,{'body':_0x1a404e}))['body'][_0x19d691(0x1a4)]||'';}async['list'](_0x1c340c){const _0x20d108=_0x184c40,_0x47df44=this[_0x20d108(0x477)]()+_0x20d108(0x1cd);return(await this['_HTTPService'][_0x20d108(0x46a)](_0x47df44,{'body':_0x1c340c}))[_0x20d108(0xd7)][_0x20d108(0x245)];}async['update'](_0x2d18d7){const _0x63137f=_0x184c40,_0x4ce70d=this[_0x63137f(0x477)]()+'/'+_0x2d18d7['objectType']+_0x63137f(0x137)+_0x2d18d7[_0x63137f(0x1a4)];await this['_HTTPService'][_0x63137f(0x1f1)](_0x4ce70d,{'body':_0x2d18d7});}async[_0x184c40(0x449)](_0x4d36f7){const _0x423470=_0x184c40,_0x333048=this[_0x423470(0x477)]()+'/'+_0x4d36f7['objectType']+_0x423470(0x137)+_0x4d36f7[_0x423470(0x1a4)]+_0x423470(0xde);return(await this[_0x423470(0x115)][_0x423470(0x46a)](_0x333048,{'body':_0x4d36f7}))[_0x423470(0xd7)][_0x423470(0x277)];}async[_0x184c40(0x224)](_0x32bef0){const _0x185fa5=_0x184c40,_0xcbca50=this[_0x185fa5(0x477)]()+_0x185fa5(0x3f1);return(await this[_0x185fa5(0x115)][_0x185fa5(0x46a)](_0xcbca50,{'body':{'requests':_0x32bef0}}))[_0x185fa5(0xd7)][_0x185fa5(0x30f)];}async['listRoles'](_0x526042){const _0x220468=_0x184c40,_0x4014a1=this[_0x220468(0x477)]()+'/'+_0x526042[_0x220468(0x242)]+_0x220468(0x118),_0xf10a3c=await this[_0x220468(0x115)][_0x220468(0x46a)](_0x4014a1,{'body':_0x526042});return{'roles':_0xf10a3c[_0x220468(0xd7)][_0x220468(0x3f7)],'actions':_0xf10a3c['body']['actions']};}async[_0x184c40(0x410)](_0x4bd569){const _0x1eace4=_0x184c40,_0xd1451=this[_0x1eace4(0x477)]()+_0x1eace4(0xf0);await this[_0x1eace4(0x115)][_0x1eace4(0x2c9)](_0xd1451,{'params':{'collaboratorID':_0x4bd569[_0x1eace4(0x17b)],'objectID':_0x4bd569['objectID'],'unitID':_0x4bd569['unitID']}});}async[_0x184c40(0x217)](_0x439879){const _0x104280=_0x184c40,_0x31a787=this[_0x104280(0x477)]()+_0x104280(0xf0);await this['_HTTPService'][_0x104280(0x27b)](_0x31a787,{'body':_0x439879});}async[_0x184c40(0xc1)](_0x328e4b){const _0x27ebce=_0x184c40,_0x520ab1=this[_0x27ebce(0x477)]()+_0x27ebce(0xf0);await this[_0x27ebce(0x115)]['post'](_0x520ab1,{'body':_0x328e4b});}async[_0x184c40(0x2e5)](_0x263149){const _0x32ff82=_0x184c40,_0x1ebdb6=this[_0x32ff82(0x477)]()+'/collaborator';return(await this[_0x32ff82(0x115)][_0x32ff82(0x3d9)](_0x1ebdb6,{'params':{'objectID':_0x263149['objectID'],'unitID':_0x263149[_0x32ff82(0x445)]}}))[_0x32ff82(0xd7)][_0x32ff82(0xdc)];}async[_0x184c40(0x153)](_0x23560c){const _0x239c2c=_0x184c40,_0x1c4db5=this[_0x239c2c(0x477)]()+'/collaborator';await this['_HTTPService'][_0x239c2c(0x1f1)](_0x1c4db5,{'body':_0x23560c});}},_0xff46cc['AuthzIoHttpService']=_0x15bfb5([_0x55f8bb(0x0,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x265)])),_0x55f8bb(0x1,_0x16d562[_0x184c40(0x1e9)](_0x16d562['IConfigService']))],_0xff46cc['AuthzIoHttpService']);var _0x2258ca=Object['defineProperty'],_0x4cf5fd=Object[_0x184c40(0x34e)],_0x3d212c=(_0x500630,_0x4ed7a9,_0xcb6366,_0x14747c)=>{for(var _0x3dd055=_0x14747c>0x1?void 0x0:_0x14747c?_0x4cf5fd(_0x4ed7a9,_0xcb6366):_0x4ed7a9,_0x1b5559=_0x500630['length']-0x1,_0x14993c;_0x1b5559>=0x0;_0x1b5559--)(_0x14993c=_0x500630[_0x1b5559])&&(_0x3dd055=(_0x14747c?_0x14993c(_0x4ed7a9,_0xcb6366,_0x3dd055):_0x14993c(_0x3dd055))||_0x3dd055);return _0x14747c&&_0x3dd055&&_0x2258ca(_0x4ed7a9,_0xcb6366,_0x3dd055),_0x3dd055;},_0x46c961=(_0x32c562,_0x5049b3)=>(_0x58c6fd,_0x1c88c7)=>_0x5049b3(_0x58c6fd,_0x1c88c7,_0x32c562);let _0x583d32=class{constructor(_0x42281c){const _0x22a02f=_0x184c40;this[_0x22a02f(0x19b)]=_0x42281c,this[_0x22a02f(0x425)]();}[_0x184c40(0x425)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x2d4bf6,_0x2708c9)=>{const _0x421cce=_0x2bb3,_0x204858=_0x2d4bf6['headers'],_0xecac5a=_0x2aaf28[_0x421cce(0x43b)]();return _0xecac5a&&_0x204858[_0x421cce(0x355)](_0x421cce(0x135),_0xecac5a),_0x2708c9(_0x2d4bf6);}});}};_0x583d32=_0x3d212c([_0x46c961(0x0,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x265)]))],_0x583d32);var _0x17101b=Object['defineProperty'],_0x4a9f5f=Object[_0x184c40(0x34e)],_0x1e9521=(_0x5e5811,_0x4c1cb1,_0x92ee2e,_0x38c84c)=>{const _0xa00552=_0x184c40;for(var _0x4d7d2c=_0x38c84c>0x1?void 0x0:_0x38c84c?_0x4a9f5f(_0x4c1cb1,_0x92ee2e):_0x4c1cb1,_0x315f39=_0x5e5811[_0xa00552(0x3bc)]-0x1,_0x342cb3;_0x315f39>=0x0;_0x315f39--)(_0x342cb3=_0x5e5811[_0x315f39])&&(_0x4d7d2c=(_0x38c84c?_0x342cb3(_0x4c1cb1,_0x92ee2e,_0x4d7d2c):_0x342cb3(_0x4d7d2c))||_0x4d7d2c);return _0x38c84c&&_0x4d7d2c&&_0x17101b(_0x4c1cb1,_0x92ee2e,_0x4d7d2c),_0x4d7d2c;},_0x545264=(_0xcce98c,_0x8f83bb)=>(_0x1154a6,_0x3382ba)=>_0x8f83bb(_0x1154a6,_0x3382ba,_0xcce98c);const _0x44b9b0=[_0x184c40(0x18a),_0x184c40(0x3c8),'image/jpg',_0x184c40(0x1d0),_0x184c40(0x4ab)],_0x36eb18=0x5*0x400*0x400,_0xb07d0e=_0x184c40(0x2a5),_0x809917='/universer-api/stream/file/upload',_0x2e6c63=_0x184c40(0x198),_0x3adfdf=_0x184c40(0x452);_0xff46cc[_0x184c40(0x42d)]=class{constructor(_0x74ca42,_0x4b9e9e,_0x231a59){const _0x4d9c39=_0x184c40;_0x1fbb55(this,'_waitCount',0x0),_0x1fbb55(this,_0x4d9c39(0x1ba),new _0x1f1780[(_0x4d9c39(0x193))]()),_0x1fbb55(this,_0x4d9c39(0x116),this['_change$']),_0x1fbb55(this,'_imageSourceCache',new Map()),(this[_0x4d9c39(0x19b)]=_0x74ca42,this['_configService']=_0x4b9e9e,this['_univerInstanceService']=_0x231a59);}[_0x184c40(0x192)](_0x5b5717){const _0x500bf0=_0x184c40;this[_0x500bf0(0x2f2)]=_0x5b5717,this[_0x500bf0(0x1ba)]['next'](_0x5b5717);}[_0x184c40(0x35d)](_0x3ca339,_0x5dcbea){const _0x4f39c4=_0x184c40;if(_0x5dcbea===_0x33ea92[_0x4f39c4(0x2b5)][_0x4f39c4(0x11c)]){const _0x1b580c=new Image();return _0x1b580c[_0x4f39c4(0x497)]=_0x3ca339,_0x1b580c;}return this[_0x4f39c4(0x345)]['get'](_0x3ca339);}['addImageSourceCache'](_0x31e765,_0x33c51c,_0x364dcf){const _0x1a573d=_0x184c40;_0x33c51c===_0x33ea92[_0x1a573d(0x2b5)]['BASE64']||_0x364dcf==null||this['_imageSourceCache'][_0x1a573d(0x355)](_0x31e765,_0x364dcf);}async['getImage'](_0x14853e){const _0x49596a=_0x184c40;try{const _0x75ffec=this[_0x49596a(0x384)](this['_getSignURL'](),''+_0x14853e),_0x4a0ebc=(await this[_0x49596a(0x19b)][_0x49596a(0x3d9)](_0x75ffec))[_0x49596a(0xd7)];if(_0x4a0ebc[_0x49596a(0x28e)]&&_0x4a0ebc[_0x49596a(0x28e)]['code']===_0x4803e2['OK']){const _0x4c542f=new URL(_0x4a0ebc['url'],this[_0x49596a(0x1f0)]())[_0x49596a(0x174)]();return Promise[_0x49596a(0x47c)](_0x4c542f);}return Promise[_0x49596a(0x258)](_0x4a0ebc[_0x49596a(0x28e)]);}catch(_0x40d3dd){return Promise['reject'](_0x40d3dd);}}async[_0x184c40(0x226)](_0xb9c662){const _0x5c3426=_0x184c40;let _0x3ec525='';if(!_0x44b9b0[_0x5c3426(0x439)](_0xb9c662[_0x5c3426(0x340)]))return this[_0x5c3426(0x48e)](),Promise[_0x5c3426(0x258)](new Error(_0x33ea92[_0x5c3426(0x49a)][_0x5c3426(0x261)]));if(_0xb9c662[_0x5c3426(0x36a)]>_0x36eb18)return this[_0x5c3426(0x48e)](),Promise[_0x5c3426(0x258)](new Error(_0x33ea92['ImageUploadStatusType'][_0x5c3426(0x16b)]));try{const _0x361c4e=new FormData();_0x361c4e[_0x5c3426(0xd0)](_0x5c3426(0x22a),_0xb9c662);const _0x6175ca=this[_0x5c3426(0x1b5)]['getFocusedUnit'](),_0x3ba3f1=_0x6175ca==null?void 0x0:_0x6175ca[_0x5c3426(0x17e)]();if(!_0x3ba3f1)throw new Error(_0x5c3426(0x1fb));const _0x1f3de4=this[_0x5c3426(0x1f2)]()+_0x5c3426(0x44b)+_0xb9c662[_0x5c3426(0x36a)][_0x5c3426(0x174)]()+'&source='+_0x4a0f51['UnitEmbedded']+_0x5c3426(0x3fe)+encodeURIComponent(_0x3ba3f1),_0x2a7e30=await(await fetch(_0x1f3de4,{'method':_0x5c3426(0x45b),'body':_0x361c4e}))[_0x5c3426(0x3ca)]();if(typeof _0x2a7e30[_0x5c3426(0x1c9)]!=_0x5c3426(0xb5))return this[_0x5c3426(0x48e)](),Promise[_0x5c3426(0x258)](new Error(_0x33ea92[_0x5c3426(0x49a)][_0x5c3426(0x189)]));_0x3ec525=_0x2a7e30[_0x5c3426(0x1c9)];}catch{return this[_0x5c3426(0x48e)](),Promise['reject'](new Error(_0x33ea92[_0x5c3426(0x49a)][_0x5c3426(0x189)]));}return new Promise((_0x2840ef,_0x4a7f21)=>{const _0x441d9d=_0x5c3426,_0x5ebab4=new FileReader();_0x5ebab4[_0x441d9d(0x470)](_0xb9c662),_0x5ebab4['onload']=_0x4a0edd=>{const _0x3fc2c5=_0x441d9d;var _0x4a77e3;const _0x3d0bd0=(_0x4a77e3=_0x4a0edd[_0x3fc2c5(0x2fc)])==null?void 0x0:_0x4a77e3['result'];if(_0x3d0bd0==null){this[_0x3fc2c5(0x48e)](),_0x4a7f21(new Error(_0x33ea92[_0x3fc2c5(0x49a)][_0x3fc2c5(0x189)]));return;}const _0xe150b2=_0x16d562[_0x3fc2c5(0x1df)][_0x3fc2c5(0x128)](0x6);_0x2840ef({'imageId':_0xe150b2,'imageSourceType':_0x33ea92[_0x3fc2c5(0x2b5)]['UUID'],'source':_0x3ec525,'base64Cache':_0x3d0bd0,'status':_0x33ea92['ImageUploadStatusType'][_0x3fc2c5(0x246)]}),this['_decreaseWaiting']();};});}[_0x184c40(0x1f2)](){const _0x518042=_0x184c40;var _0x401697,_0x38c238;const _0x52649e=this[_0x518042(0x140)][_0x518042(0xfb)](_0xb07d0e),_0x566e35=this[_0x518042(0x140)]['getConfig'](_0x5a4b90);return(_0x38c238=(_0x401697=_0x566e35==null?void 0x0:_0x566e35['uploadFileServerUrl'])!=null?_0x401697:_0x52649e)!=null?_0x38c238:_0x809917;}[_0x184c40(0x4b8)](){const _0x365127=_0x184c40;var _0x1449be,_0x3804ba;const _0x470061=this[_0x365127(0x140)][_0x365127(0xfb)](_0x2e6c63),_0x288c25=this[_0x365127(0x140)][_0x365127(0xfb)](_0x5a4b90);return(_0x3804ba=(_0x1449be=_0x288c25==null?void 0x0:_0x288c25[_0x365127(0x34a)])!=null?_0x1449be:_0x470061)!=null?_0x3804ba:_0x3adfdf;}[_0x184c40(0x1f0)](){const _0x72ec95=_0x184c40;var _0x13f2a9;const _0x3ff998=this['_configService'][_0x72ec95(0xfb)](_0x5a4b90);return(_0x13f2a9=_0x3ff998==null?void 0x0:_0x3ff998[_0x72ec95(0x3fa)])!=null?_0x13f2a9:location['origin'];}[_0x184c40(0x384)](_0x361a3d,_0x45093c){const _0x175797=_0x184c40;return _0x361a3d[_0x175797(0x3d6)](_0x175797(0x494),_0x45093c);}[_0x184c40(0x48e)](){const _0x1bb3e9=_0x184c40;this[_0x1bb3e9(0x2f2)]-=0x1,this['_change$'][_0x1bb3e9(0x2d2)](this[_0x1bb3e9(0x2f2)]);}},_0xff46cc[_0x184c40(0x42d)]=_0x1e9521([_0x545264(0x0,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x265)])),_0x545264(0x1,_0x16d562['IConfigService']),_0x545264(0x2,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x466)]))],_0xff46cc[_0x184c40(0x42d)]);var _0x2d56cb=Object[_0x184c40(0x471)],_0x2dceb3=Object[_0x184c40(0x34e)],_0x19f015=(_0x3d01b7,_0x8e7348,_0x3fc15f,_0x13d49e)=>{const _0xc28795=_0x184c40;for(var _0x131064=_0x13d49e>0x1?void 0x0:_0x13d49e?_0x2dceb3(_0x8e7348,_0x3fc15f):_0x8e7348,_0x28287d=_0x3d01b7[_0xc28795(0x3bc)]-0x1,_0x5732db;_0x28287d>=0x0;_0x28287d--)(_0x5732db=_0x3d01b7[_0x28287d])&&(_0x131064=(_0x13d49e?_0x5732db(_0x8e7348,_0x3fc15f,_0x131064):_0x5732db(_0x131064))||_0x131064);return _0x13d49e&&_0x131064&&_0x2d56cb(_0x8e7348,_0x3fc15f,_0x131064),_0x131064;},_0x4a96d3=(_0x168be7,_0x4dfa1e)=>(_0x1eb36e,_0x4da2e8)=>_0x4dfa1e(_0x1eb36e,_0x4da2e8,_0x168be7);let _0x152d7d=class extends _0x16d562['RxDisposable']{constructor(_0x2fc9cf,_0x803090,_0x187ecc,_0x20f3c5,_0xe330f0){const _0x20a4bd=_0x184c40;super(),this['_injector']=_0x2fc9cf,this[_0x20a4bd(0x1b5)]=_0x803090,this[_0x20a4bd(0x1e2)]=_0x187ecc,this[_0x20a4bd(0x2f7)]=_0x20f3c5,this[_0x20a4bd(0x2b4)]=_0xe330f0,this[_0x20a4bd(0x176)](),this[_0x20a4bd(0x3a7)]();}[_0x184c40(0x3a7)](){const _0x1640a7=_0x184c40,_0x5b285e=async _0x3e7b3f=>{const _0xb99575=_0x2bb3;(await this[_0xb99575(0x2f7)][_0xb99575(0x371)](_0x3e7b3f))['event$']['pipe'](_0xdd90c[_0xb99575(0x1fa)](_0x5d3948=>_0x5d3948[_0xb99575(0x150)]===_0x1f42e3[_0xb99575(0x336)]['SHOULD_CLOSE_CONN']),_0xdd90c[_0xb99575(0x2e1)](this[_0xb99575(0x3fd)]))['subscribe'](_0x1a451a=>{const _0x3e1715=_0xb99575,_0x58ea73=_0x1a451a,{reason:_0x704311}=_0x58ea73[_0x3e1715(0xe3)];this[_0x3e1715(0x183)][_0x3e1715(0x3d9)](_0x5f2673[_0x3e1715(0x16f)])[_0x3e1715(0x1be)]({'type':_0x516637[_0x3e1715(0x1ac)][_0x3e1715(0x3af)],'content':this[_0x3e1715(0x2b4)]['t'](_0x3e1715(0x2d0))+'('+_0x704311+')'}),this[_0x3e1715(0x1e2)][_0x3e1715(0x302)](new _0x30fd53['WorkbookEditablePermission'](_0x3e7b3f)['id'],!0x1),this['_collaborationSessionService'][_0x3e1715(0x3a1)](_0x3e7b3f);});};_0x1f1780[_0x1640a7(0x2dd)](this['_univerInstanceService'][_0x1640a7(0x304)](_0x16d562[_0x1640a7(0x1f9)][_0x1640a7(0x1ce)]),this[_0x1640a7(0x1b5)][_0x1640a7(0x304)](_0x16d562[_0x1640a7(0x1f9)][_0x1640a7(0x2f5)]))['pipe'](_0xdd90c[_0x1640a7(0x3ed)](_0x5e8290=>_0x5e8290[_0x1640a7(0x17e)]()),_0xdd90c[_0x1640a7(0x1fa)](_0x5ac5ba=>!_0x16d562[_0x1640a7(0x457)](_0x5ac5ba)),_0xdd90c[_0x1640a7(0x2e1)](this[_0x1640a7(0x3fd)]))[_0x1640a7(0x462)](_0x5f150c=>{_0x5b285e(_0x5f150c);});}[_0x184c40(0x176)](){const _0x3e0336=_0x184c40,_0x467040=async _0x9f9b6e=>{const _0x4dbb56=_0x2bb3;(await this[_0x4dbb56(0x2f7)][_0x4dbb56(0x371)](_0x9f9b6e))['event$']['pipe'](_0xdd90c[_0x4dbb56(0x1fa)](_0x59c33e=>_0x59c33e[_0x4dbb56(0x150)]===_0x1f42e3[_0x4dbb56(0x336)][_0x4dbb56(0x3c1)]),_0xdd90c[_0x4dbb56(0x2e1)](this[_0x4dbb56(0x3fd)]))[_0x4dbb56(0x462)](_0x4aa431=>{const _0x9d216a=_0x4dbb56,_0x27fd0c=_0x4aa431,{objectId:_0x160acc}=_0x27fd0c[_0x9d216a(0xe3)],_0x51f36a=this[_0x9d216a(0x183)]['get'](_0x3f2b28[_0x9d216a(0x338)]);_0x160acc===_0x9f9b6e?_0x51f36a[_0x9d216a(0x25d)](_0x9f9b6e):_0x51f36a[_0x9d216a(0x4df)](_0x9f9b6e,_0x160acc);});};_0x1f1780[_0x3e0336(0x2dd)](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x16d562[_0x3e0336(0x1f9)]['UNIVER_SHEET']),this[_0x3e0336(0x1b5)][_0x3e0336(0x304)](_0x16d562[_0x3e0336(0x1f9)]['UNIVER_DOC']))[_0x3e0336(0x3b2)](_0xdd90c[_0x3e0336(0x3ed)](_0x2af413=>_0x2af413[_0x3e0336(0x17e)]()),_0xdd90c[_0x3e0336(0x1fa)](_0x58d7db=>!_0x16d562['isInternalEditorID'](_0x58d7db)),_0xdd90c[_0x3e0336(0x2e1)](this[_0x3e0336(0x3fd)]))['subscribe'](_0x424f5a=>{_0x467040(_0x424f5a);});}};_0x152d7d=_0x19f015([_0x4a96d3(0x0,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x4a96d3(0x1,_0x16d562[_0x184c40(0x466)]),_0x4a96d3(0x2,_0x16d562[_0x184c40(0x3c2)]),_0x4a96d3(0x3,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0xef)])),_0x4a96d3(0x4,_0x16d562['Inject'](_0x16d562[_0x184c40(0x42c)]))],_0x152d7d);var _0xd62127=Object[_0x184c40(0x471)],_0x334b3c=Object[_0x184c40(0x34e)],_0x132656=(_0x243ebc,_0x228479,_0x33684c,_0x4614a7)=>{const _0x446709=_0x184c40;for(var _0x35a6d3=_0x4614a7>0x1?void 0x0:_0x4614a7?_0x334b3c(_0x228479,_0x33684c):_0x228479,_0x2d1a12=_0x243ebc[_0x446709(0x3bc)]-0x1,_0x15c6e3;_0x2d1a12>=0x0;_0x2d1a12--)(_0x15c6e3=_0x243ebc[_0x2d1a12])&&(_0x35a6d3=(_0x4614a7?_0x15c6e3(_0x228479,_0x33684c,_0x35a6d3):_0x15c6e3(_0x35a6d3))||_0x35a6d3);return _0x4614a7&&_0x35a6d3&&_0xd62127(_0x228479,_0x33684c,_0x35a6d3),_0x35a6d3;},_0x5d4344=(_0x488e33,_0x2da8e8)=>(_0x38943b,_0x11a92c)=>_0x2da8e8(_0x38943b,_0x11a92c,_0x488e33);_0xff46cc['SnapshotServerOverHTTPService']=class{constructor(_0x81d9f0,_0x170c1e){const _0x4a3d5e=_0x184c40;this[_0x4a3d5e(0x140)]=_0x81d9f0,this[_0x4a3d5e(0x19b)]=_0x170c1e;}async[_0x184c40(0x446)](_0x580462,_0x1dcd0b){const _0x5a4f1f=_0x184c40;var _0x1e1fae;const {unitID:_0xe9b5da,type:_0x307f74,revision:_0x1334a4=0x0}=_0x1dcd0b,_0x1295eb=this['_getSnapshotAPIPrefix']()+'/'+_0x307f74+_0x5a4f1f(0x459)+_0xe9b5da+_0x5a4f1f(0x20a)+_0x1334a4,_0xfca970=(await this['_httpService'][_0x5a4f1f(0x3d9)](_0x1295eb))[_0x5a4f1f(0xd7)],_0x1180ef=(_0x1e1fae=_0xfca970[_0x5a4f1f(0x38c)])==null?void 0x0:_0x1e1fae['workbook'];if(_0x1180ef){const _0x4c9c6f=_0x1180ef==null?void 0x0:_0x1180ef[_0x5a4f1f(0x474)],_0x437c69=_0x1f42e3[_0x5a4f1f(0x3dd)][_0x5a4f1f(0x4c7)](_0x1f42e3[_0x5a4f1f(0x300)](_0x4c9c6f));_0x1180ef[_0x5a4f1f(0x474)]=_0x437c69,Object['entries'](_0x1180ef['sheets'])[_0x5a4f1f(0x284)](([,_0x32bade])=>{const _0x172a5e=_0x5a4f1f,_0xd1dc38=_0x32bade[_0x172a5e(0x474)],_0x3f1b3f=_0x1f42e3[_0x172a5e(0x3dd)]['encode'](_0x1f42e3[_0x172a5e(0x300)](_0xd1dc38));_0x32bade[_0x172a5e(0x474)]=_0x3f1b3f;});}return _0xfca970;}async[_0x184c40(0x32e)](_0x780d14,_0x49cfc2){const _0x3f6b3f=_0x184c40,{unitID:_0x391df6,type:_0x275e3b,blockID:_0x2624e6}=_0x49cfc2,_0x30045d=this[_0x3f6b3f(0xc7)]()+'/'+_0x275e3b+'/unit/'+_0x391df6+'/block/'+_0x2624e6;return(await this['_httpService']['get'](_0x30045d))[_0x3f6b3f(0xd7)];}async['getDeserializedSheetBlock'](_0x47e7fc,_0x422f58){const _0x1876c0=_0x184c40,{unitID:_0x1ca6df,type:_0xde5eef,blockID:_0x5bb3ec}=_0x422f58,_0x25bb7c=this[_0x1876c0(0xc7)]()+_0x1876c0(0x2ff)+_0xde5eef+_0x1876c0(0x459)+_0x1ca6df+'/block/'+_0x5bb3ec;return(await this[_0x1876c0(0x19b)][_0x1876c0(0x3d9)](_0x25bb7c))[_0x1876c0(0xd7)];}async[_0x184c40(0x143)](_0x2a6165,_0x3f7044){const _0x2c9a91=_0x184c40,{unitID:_0x30bdbd,type:_0x518104,from:_0x3eef7d,to:_0x2e883f}=_0x3f7044,_0x16133a=this[_0x2c9a91(0xc7)]()+'/'+_0x518104+_0x2c9a91(0x459)+_0x30bdbd+_0x2c9a91(0x38f)+_0x3eef7d+'&to='+_0x2e883f;return(await this[_0x2c9a91(0x19b)][_0x2c9a91(0x3d9)](_0x16133a))[_0x2c9a91(0xd7)];}[_0x184c40(0x314)](){const _0x56207e=_0x184c40;var _0x6f222b;return(_0x6f222b=this[_0x56207e(0x140)][_0x56207e(0xfb)](_0x2d7a77))!=null?_0x6f222b:this[_0x56207e(0xc7)]();}[_0x184c40(0xc7)](){const _0x4575dc=_0x184c40;var _0x3d7e4e,_0x520bcd;const _0x13a4d0=this['_configService']['getConfig'](_0x3521ea),_0x534f0d=this['_configService'][_0x4575dc(0xfb)](_0x5a4b90);return(_0x520bcd=(_0x3d7e4e=_0x534f0d==null?void 0x0:_0x534f0d['snapshotServerUrl'])!=null?_0x3d7e4e:_0x13a4d0)!=null?_0x520bcd:_0x43d0da;}async[_0x184c40(0x243)](_0xc8c784,_0x3d4c7d){const _0xbfe003=_0x184c40,_0x8c7420=_0xbfe003(0x238)+_0x3d4c7d[_0xbfe003(0x340)]+_0xbfe003(0x459)+_0x3d4c7d[_0xbfe003(0x445)]+_0xbfe003(0x38b);return(await this[_0xbfe003(0x19b)][_0xbfe003(0x3d9)](_0x8c7420,{'params':{'resourceId':JSON[_0xbfe003(0x313)](_0x3d4c7d[_0xbfe003(0x482)])}}))[_0xbfe003(0xd7)];}[_0x184c40(0xf9)](){const _0x599c5c=_0x184c40;throw new Error(_0x599c5c(0x26f));}[_0x184c40(0x37a)](){const _0x1612d7=_0x184c40;throw new Error(_0x1612d7(0x26f));}[_0x184c40(0x3ec)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x184c40(0xc5)](){const _0x3ce90e=_0x184c40;throw new Error(_0x3ce90e(0x26f));}},_0xff46cc[_0x184c40(0x41b)]=_0x132656([_0x5d4344(0x0,_0x16d562[_0x184c40(0x317)]),_0x5d4344(0x1,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x265)]))],_0xff46cc[_0x184c40(0x41b)]);var _0x5c0486=Object[_0x184c40(0x471)],_0x117254=Object['getOwnPropertyDescriptor'],_0x5951a6=(_0x29a043,_0x4ea5c1,_0x2a7ff1,_0xc1b8c3)=>{const _0xf00d35=_0x184c40;for(var _0x21d5a2=_0xc1b8c3>0x1?void 0x0:_0xc1b8c3?_0x117254(_0x4ea5c1,_0x2a7ff1):_0x4ea5c1,_0x19568e=_0x29a043[_0xf00d35(0x3bc)]-0x1,_0x5a5066;_0x19568e>=0x0;_0x19568e--)(_0x5a5066=_0x29a043[_0x19568e])&&(_0x21d5a2=(_0xc1b8c3?_0x5a5066(_0x4ea5c1,_0x2a7ff1,_0x21d5a2):_0x5a5066(_0x21d5a2))||_0x21d5a2);return _0xc1b8c3&&_0x21d5a2&&_0x5c0486(_0x4ea5c1,_0x2a7ff1,_0x21d5a2),_0x21d5a2;},_0x250842=(_0x5c425b,_0x39f12c)=>(_0x339e06,_0x34f74c)=>_0x39f12c(_0x339e06,_0x34f74c,_0x5c425b);let _0x9851b4=class extends _0x16d562[_0x184c40(0x343)]{constructor(_0x22c777,_0x50c3ee,_0x49bb91,_0x34353c,_0x289cb3){const _0x3c015a=_0x184c40;super(_0x22c777,_0x50c3ee,_0x49bb91),this[_0x3c015a(0x186)]=_0x34353c,this[_0x3c015a(0xe6)]=_0x289cb3;}[_0x184c40(0x356)](_0x395fbc,_0x11e604){const _0x152ff3=_0x184c40,_0x430940=this[_0x152ff3(0x3ef)](_0x395fbc);if(_0x430940)try{const _0x17c78e=this[_0x152ff3(0x2b9)](_0x430940,_0x11e604);this['_substituteUndoStack'](_0x395fbc,_0x17c78e);}catch(_0x683b2){this[_0x152ff3(0xe6)][_0x152ff3(0x28e)]('[CollaborationUndoRedoService]',_0x683b2),this[_0x152ff3(0x2b1)](_0x395fbc);}const _0x25ee1b=this[_0x152ff3(0x2d6)](_0x395fbc);if(_0x25ee1b)try{const _0xa12c54=this[_0x152ff3(0x2b9)](_0x25ee1b,_0x11e604);this[_0x152ff3(0x303)](_0x395fbc,_0xa12c54);}catch(_0x503dcb){this[_0x152ff3(0xe6)][_0x152ff3(0x28e)](_0x503dcb),this[_0x152ff3(0x24d)](_0x395fbc);}}[_0x184c40(0x2b1)](_0x5e7bcd){const _0x41b78c=_0x184c40,_0x29f548=this[_0x41b78c(0x3ef)](_0x5e7bcd);_0x29f548&&(_0x29f548[_0x41b78c(0x3bc)]=0x0,this[_0x41b78c(0xca)]());}['_clearRedo'](_0x55b60a){const _0x3ec06a=_0x184c40,_0xd65141=this['_getRedoStack'](_0x55b60a);_0xd65141&&(_0xd65141[_0x3ec06a(0x3bc)]=0x0,this[_0x3ec06a(0xca)]());}['_substituteUndoStack'](_0x2eda47,_0x46e70c){const _0x40b4da=_0x184c40;this[_0x40b4da(0x394)][_0x40b4da(0x355)](_0x2eda47,_0x46e70c),this[_0x40b4da(0xca)]();}['_substituteRedoStack'](_0x25aaad,_0x28fb14){const _0x337b77=_0x184c40;this[_0x337b77(0x31b)][_0x337b77(0x355)](_0x25aaad,_0x28fb14),this[_0x337b77(0xca)]();}[_0x184c40(0x2b9)](_0x26f4be,_0x59252f){const _0xdaf536=_0x184c40,_0x2b7790=[];let _0x4b38ec=_0x59252f,_0xc242f3=_0x59252f;for(let _0x556735=_0x26f4be[_0xdaf536(0x3bc)]-0x1;_0x556735>=0x0;_0x556735--){const {unitID:_0x2abac2,undoMutations:_0x220655,redoMutations:_0x15875c}=_0x26f4be[_0x556735],_0x2d4ff8=this[_0xdaf536(0x186)][_0xdaf536(0x49b)](_0x4b38ec,_0x220655),_0x3b97a3=this[_0xdaf536(0x186)][_0xdaf536(0x49b)](_0xc242f3,_0x15875c);if(_0x1f42e3['isTransformMutationsWithChangesetFailure'](_0x2d4ff8)||_0x1f42e3[_0xdaf536(0x4cb)](_0x3b97a3)){this[_0xdaf536(0xe6)]['error'](_0xdaf536(0x27f),_0xdaf536(0x132),_0x2d4ff8,_0x3b97a3);break;}_0x4b38ec=_0x2d4ff8[_0xdaf536(0x272)],_0xc242f3=_0x3b97a3[_0xdaf536(0x272)],_0x2b7790[_0xdaf536(0x250)]({'unitID':_0x2abac2,'undoMutations':_0x2d4ff8[_0xdaf536(0x22b)],'redoMutations':_0x3b97a3[_0xdaf536(0x22b)]});}return _0x2b7790[_0xdaf536(0x426)]();}};_0x9851b4=_0x5951a6([_0x250842(0x0,_0x16d562[_0x184c40(0x466)]),_0x250842(0x1,_0x16d562[_0x184c40(0x156)]),_0x250842(0x2,_0x16d562[_0x184c40(0x1e8)]),_0x250842(0x3,_0x1f42e3[_0x184c40(0x254)]),_0x250842(0x4,_0x16d562[_0x184c40(0x31a)])],_0x9851b4);class _0x2b1751 extends _0x16d562['RxDisposable']{constructor(){const _0x22857e=_0x184c40;super(),_0x1fbb55(this,'urlChange$'),this[_0x22857e(0x162)]=_0x1f1780[_0x22857e(0x34d)](window,_0x22857e(0xf6))[_0x22857e(0x3b2)](_0x1f1780['takeUntil'](this[_0x22857e(0x3fd)]),_0x1f1780[_0x22857e(0x2fb)](0x1),_0x1f1780[_0x22857e(0x29b)](void 0x0));}[_0x184c40(0xe2)](_0x5b004a,_0x7759bc,_0x59e045=!0x1){const _0x57a9a6=_0x184c40,_0x459438=new URL(window['location'][_0x57a9a6(0x4be)]);_0x459438[_0x57a9a6(0x146)][_0x57a9a6(0x355)](_0x5b004a,_0x7759bc),_0x59e045?window[_0x57a9a6(0xf5)][_0x57a9a6(0x206)]('','',_0x459438['toString']()):window[_0x57a9a6(0xf5)]['pushState']('','',_0x459438[_0x57a9a6(0x174)]());}[_0x184c40(0x326)](_0x2c91fe,_0x2e0444=!0x1){const _0x1c273c=_0x184c40,_0x47ae16=new URL(window['location']['href']);_0x47ae16[_0x1c273c(0x146)][_0x1c273c(0x2c9)](_0x2c91fe),_0x2e0444?window[_0x1c273c(0xf5)][_0x1c273c(0x206)]('','',_0x47ae16[_0x1c273c(0x174)]()):window[_0x1c273c(0xf5)]['pushState']('','',_0x47ae16[_0x1c273c(0x174)]());}['getParam'](_0x36886c){const _0x5e064c=_0x184c40;var _0xb2ba8f;return(_0xb2ba8f=new URL(window[_0x5e064c(0x3d7)][_0x5e064c(0x4be)])[_0x5e064c(0x146)][_0x5e064c(0x3d9)](_0x36886c))!=null?_0xb2ba8f:void 0x0;}}var _0x398c7c=Object[_0x184c40(0x471)],_0x36bf56=Object[_0x184c40(0x34e)],_0x26a7e1=(_0x456abe,_0x16a5cb,_0x44707f)=>_0x16a5cb in _0x456abe?_0x398c7c(_0x456abe,_0x16a5cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44707f}):_0x456abe[_0x16a5cb]=_0x44707f,_0x29e8a8=(_0x3e05cc,_0x482161,_0x2567a6,_0x2c04c7)=>{const _0x284e55=_0x184c40;for(var _0x436065=_0x2c04c7>0x1?void 0x0:_0x2c04c7?_0x36bf56(_0x482161,_0x2567a6):_0x482161,_0xc8ed7f=_0x3e05cc[_0x284e55(0x3bc)]-0x1,_0x41b971;_0xc8ed7f>=0x0;_0xc8ed7f--)(_0x41b971=_0x3e05cc[_0xc8ed7f])&&(_0x436065=(_0x2c04c7?_0x41b971(_0x482161,_0x2567a6,_0x436065):_0x41b971(_0x436065))||_0x436065);return _0x2c04c7&&_0x436065&&_0x398c7c(_0x482161,_0x2567a6,_0x436065),_0x436065;},_0x27b2f2=(_0x4d980d,_0x49c437)=>(_0x326037,_0x4f2c31)=>_0x49c437(_0x326037,_0x4f2c31,_0x4d980d),_0x114457=(_0x23e5dc,_0x31ff59,_0x20c5a8)=>_0x26a7e1(_0x23e5dc,_0x31ff59+'',_0x20c5a8);const _0x5287c3=_0x184c40(0x442);_0xff46cc[_0x184c40(0x29e)]=class extends _0x16d562[_0x184c40(0x17c)]{constructor(_0x16ead7=_0x17a026,_0x1662c,_0x4fe4ed,_0x26465e,_0x36f8fe){const _0x55d55d=_0x184c40;super(),this['_config']=_0x16ead7,this[_0x55d55d(0xe6)]=_0x1662c,this['_renderManagerService']=_0x4fe4ed,this[_0x55d55d(0x183)]=_0x26465e,this[_0x55d55d(0x140)]=_0x36f8fe;const {..._0x43b4cd}=this[_0x55d55d(0x4c3)];this[_0x55d55d(0x140)][_0x55d55d(0x1ab)](_0x5a4b90,_0x43b4cd);}[_0x184c40(0x289)](){const _0xbbf0a2=_0x184c40;this[_0xbbf0a2(0xd4)](),_0x16d562['touchDependencies'](this[_0xbbf0a2(0x183)],[[_0x5ca174],[_0xff46cc['DataLoaderController']],[_0x152d7d]]);}[_0x184c40(0x154)](){const _0x6d0015=_0x184c40;_0x16d562[_0x6d0015(0x29f)](this[_0x6d0015(0x183)],[[_0x47a8b6]]);}[_0x184c40(0x30e)](){const _0x17045e=_0x184c40;this[_0x17045e(0x2f9)]();}[_0x184c40(0xd4)](){const _0x14e6ea=_0x184c40;var _0x1ff8e3,_0x542204,_0x58ccda,_0x1a4c5a;this[_0x14e6ea(0x183)][_0x14e6ea(0x4c2)](_0x16d562[_0x14e6ea(0x342)])&&this[_0x14e6ea(0xe6)][_0x14e6ea(0x28e)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x7e6ade=[[_0x16d562[_0x14e6ea(0x342)],{'useClass':_0x9851b4}],[_0xff46cc[_0x14e6ea(0xef)]],[_0x3974b0],[_0x494277[_0x14e6ea(0x265)]],[_0x3c63e6,{'useClass':_0x2b1751}],[_0x19c6b5],[_0xff46cc[_0x14e6ea(0x205)]],[_0x494277['WebSocketService']],[_0x11c95c],[_0x480601],[_0x190714],[_0x126509],[_0x46c8bd],[_0x583d32],[_0xd11c7b],[_0x152d7d],[_0x4606ff,{'useClass':(_0x542204=(_0x1ff8e3=this[_0x14e6ea(0x4c3)])==null?void 0x0:_0x1ff8e3[_0x14e6ea(0x1ca)])!=null?_0x542204:_0xff46cc[_0x14e6ea(0x16c)]}],[_0x494277[_0x14e6ea(0x433)],{'useClass':_0x494277['XHRHTTPImplementation']}],[_0x1f42e3[_0x14e6ea(0x145)],{'useClass':_0xff46cc[_0x14e6ea(0x41b)]}],[_0x16d562[_0x14e6ea(0x1c4)],{'useClass':_0xff46cc['AuthzIoHttpService']}],[_0x33ea92[_0x14e6ea(0x434)],{'useClass':_0xff46cc[_0x14e6ea(0x42d)]}],[_0xff46cc[_0x14e6ea(0x42f)]],[_0xff46cc[_0x14e6ea(0x400)]],[_0xff46cc[_0x14e6ea(0x207)]],[_0x47a8b6],[_0x5ca174]];(_0x58ccda=this[_0x14e6ea(0x4c3)])!=null&&_0x58ccda[_0x14e6ea(0x428)]&&_0x7e6ade[_0x14e6ea(0x250)]([_0x110502,{'useClass':_0x569ce6}]),_0x7e6ade=_0x16d562['mergeOverrideWithDependencies'](_0x7e6ade,(_0x1a4c5a=this[_0x14e6ea(0x4c3)])==null?void 0x0:_0x1a4c5a[_0x14e6ea(0x416)]),_0x7e6ade[_0x14e6ea(0x284)](_0x12482f=>this[_0x14e6ea(0x183)][_0x14e6ea(0x279)](_0x12482f)),this[_0x14e6ea(0x386)]();}['_registerRenderDependencies'](){const _0x1fb658=_0x184c40;this[_0x1fb658(0xce)](this[_0x1fb658(0x1d4)]['registerRenderModule'](_0x16d562[_0x1fb658(0x1f9)]['UNIVER_DOC'],[_0x228f1a])),this[_0x1fb658(0xce)](this[_0x1fb658(0x1d4)][_0x1fb658(0x331)](_0x16d562['UniverInstanceType'][_0x1fb658(0x1ce)],[_0x323648]));}[_0x184c40(0x386)](){const _0x1d2ea2=_0x184c40;var _0x57f1d2,_0xa66937;this[_0x1d2ea2(0x183)][_0x1d2ea2(0x3d9)](_0x494277['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x494277[_0x1d2ea2(0x1a7)]({'maxParallel':0x6})}),this[_0x1d2ea2(0x183)]['get'](_0x583d32),(_0x57f1d2=this[_0x1d2ea2(0x4c3)])!=null&&_0x57f1d2[_0x1d2ea2(0x31c)]||this['_injector'][_0x1d2ea2(0x3d9)](_0xff46cc['LocalCacheService'])[_0x1d2ea2(0x2d4)](),(_0xa66937=this[_0x1d2ea2(0x4c3)])!=null&&_0xa66937[_0x1d2ea2(0x20d)]&&this[_0x1d2ea2(0x183)]['get'](_0x46c8bd),this[_0x1d2ea2(0x183)][_0x1d2ea2(0x3d9)](_0xff46cc[_0x1d2ea2(0x42f)]),this[_0x1d2ea2(0x183)][_0x1d2ea2(0x4c2)](_0xff46cc['DesktopCollaborationStatusDisplayController'])&&this['_injector'][_0x1d2ea2(0x3d9)](_0xff46cc[_0x1d2ea2(0x207)]);}},_0x114457(_0xff46cc[_0x184c40(0x29e)],_0x184c40(0x3ee),_0x5287c3),_0xff46cc['UniverCollaborationClientPlugin']=_0x29e8a8([_0x16d562[_0x184c40(0x4dc)](_0x1f42e3['UniverCollaborationPlugin']),_0x27b2f2(0x1,_0x16d562[_0x184c40(0x31a)]),_0x27b2f2(0x2,_0x4c937c['IRenderManagerService']),_0x27b2f2(0x3,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x27b2f2(0x4,_0x16d562[_0x184c40(0x317)])],_0xff46cc['UniverCollaborationClientPlugin']),_0xff46cc['AUTHZ_URL_KEY']=_0x1f03d7,_0xff46cc[_0x184c40(0x419)]=_0x13fd55,_0xff46cc['COLLAB_WEB_SOCKET_URL_KEY']=_0x306eb0,_0xff46cc[_0x184c40(0x23d)]=_0x55c585,_0xff46cc[_0x184c40(0x255)]=_0x25575c,_0xff46cc[_0x184c40(0x10c)]=_0xd11c7b,_0xff46cc['HEARTBEAT_INTERVAL_KEY']=_0x446ff7,_0xff46cc[_0x184c40(0x1e6)]=_0xe2e447,_0xff46cc[_0x184c40(0x443)]=_0x4606ff,_0xff46cc['IURLService']=_0x3c63e6,_0xff46cc[_0x184c40(0x235)]=_0x103e56,_0xff46cc[_0x184c40(0x2e9)]=_0x465855,_0xff46cc[_0x184c40(0x4bc)]=_0x1fe909,_0xff46cc[_0x184c40(0x34c)]=_0x142850,_0xff46cc[_0x184c40(0x45e)]=_0x3521ea,_0xff46cc['SNAPSHOT_URL_KEY']=_0x2d7a77,_0xff46cc[_0x184c40(0x2e8)]=_0x17c413,_0xff46cc['SheetCollabCursorShape']=_0x3ac695,_0xff46cc[_0x184c40(0x20c)]=_0x2b1751,_0xff46cc[_0x184c40(0x32b)]=_0x3f3a5c,_0xff46cc['serializeCombRequest']=_0xa22d57,Object[_0x184c40(0x471)](_0xff46cc,Symbol['toStringTag'],{'value':_0x184c40(0x4a2)});}));function _0x2bb3(_0x3aa228,_0x11a0ca){const _0x3a29b6=_0x3a29();return _0x2bb3=function(_0x2bb32d,_0x1de174){_0x2bb32d=_0x2bb32d-0xb3;let _0x491588=_0x3a29b6[_0x2bb32d];return _0x491588;},_0x2bb3(_0x3aa228,_0x11a0ca);}function _0x3a29(){const _0x43dd41=['DataLoaderController','/universer-api/snapshot','_onMessage','conflict','_transformSelections','liveShareNewHost','SetWorksheetActivateCommand','rev','collabCursorState$','_sessions','DeleteRangeMoveLeftCommandId','_onUserLeave','getTypeOfUnitDisposed$','black','loadSheet','_clearCollaborationTimeoutTimer','deleteCollaborator','replaceTextRanges','COMPRESS_MUTATION_SEND','url','fromCollab','handleInsertCol','override','setInterval','UniverDocs','COLLAB_SUBMIT_CHANGESET_URL_KEY','_sessionStatus$','SnapshotServerOverHTTPService','NodePositionConvertToRectRange','_collabCursorController','random','withCredentials','interceptor','_state','_id','collab-rect-range-','on-line-single_clip0_910_349','_initRequestHeader','reverse','session.room-full','enableSingleActiveInstanceLock','collab-text-range-','transform','SYNCED','LocaleService','ImageIoService','createSocket','CollaborationController','FETCH_MISSING','_lastPointer','_syncEditingCollabCursorService','IHTTPImplementation','IImageIoService','_instanceService','c2Prime','selections','UniverUi','includes','userID','getAttachHeader','COMMENT_UPDATE','arc','getCurrentRevOfUnit','closePath','CONNECTOR_DATA_TOO_LARGE','INTERNAL_ERROR','UNIVER_COLLABORATION_CLIENT_PLUGIN','ICollaborationSocketService','@univerjs/ui','unitID','getUnitOnRev','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getUnitType','allowed','DocIMEInputManagerService','?size=','getActiveRange','collaboration_new_changeset','setCurrentUser','[SyncedState]:\x20received\x20rejection.','_getMergeRange','telemetry\x20info\x20is\x20not\x20initialized','/universer-api/file/{fileID}/sign-url','_snapshotServerService','@univerjs-pro/collaboration','offline','_scheduleTimestamp','isInternalEditorID','none','/unit/','beginPath','POST','resize','online','SNAPSHOT_SERVER_URL_KEY','loadOfflineData','clear','roomMembers$','subscribe','collabStatus.offline','_sendHeartbeat','SetSelectionsOperation','IUniverInstanceService','OnLineSingle','UniverCollaboration','_initMergeInterceptor','post','fetchMiss','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','delay','_lockTransition','getUndoRedoMutationParamsCache','readAsDataURL','defineProperty','operators','1884860dXsfJT','originalMeta','_status$','socket\x20open.','_getAPIPrefixPath','selection','transformMutation','transformIMECache','_checkMissing','resolve','_scene','CHANGESET_ACK','COMPRESS_MUTATION_APPLY','currentSkeleton$','handleIRemoveRow','resourceIDs','ColorKit','/universer-api/authz','HELLO','_docTransformSelectionsService','getUnit','1588896ehQkBl','collab-client.tooltip.reconnect','split','_onFetchMissResult','_onConnectionOpen','DocStateChangeManagerService','_decreaseWaiting','_socketMessageSubscription','_updateState','setShapeProps','_onRemoteACK','HEARTBEAT_TIMEOUT','{fileID}','debounce','_onJoinRoomEvent','src','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','WebSocketService','ImageUploadStatusType','transformMutationsWithChangeset','_collaborationPaused','whenReady','HttpExport','commentUpdateEvent','sessionStatus','assign','Module','_messageService','_anchorDot','_transformUndoredo','div','transformByState','forwardRef','LEAVE','_cursor','image/bmp','members','subscribeEvent','startRow','_handleHover','confirm','RECV','visibilitychange','exports','LICENSE_IMPORT_SIZE_EXCEEDED','_transformIMECache','UniverDesign','editingUnit','_getSignURL','_telemetryInfo','CollaborationEntity','_isPermissionRej','RETRY_CONNECTING_MAX_COUNT_KEY','setAlpha','href','socket$','collabStatus.synced','toggleOnline','has','_config','@univerjs/docs-ui','substring','ALREADY_EXISTS','encode','[PendingState]:\x20received\x20rejection.','AUTHZ_URL_KEY','_onLocalMutation','isTransformMutationsWithChangesetFailure','WorkbookEditablePermission','handleInsertRangeMoveDown','_docStateChangeManagerService','defIds','_hideTimer','startColumn','rxjs','_drawAnchor','/object','NEW_CHANGESETS','with','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','result','APPLY_PERMISSION_DENIED','_clearOtherTimers','UserManagerService','DependentOn','1em','_disableEditing','refreshPermission','SUBMIT_CHANGESET','EffectRefRangId','_createInitialState','_draw','CommandType','LICENSE_EXPORT_SIZE_EXCEEDED','values','string','YUUMI_RATE_OVER_LIMIT','_pendingMutations','revision','_labelPosition','onMouseMove','_getScale','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','column','FAIL','then','concat','createCollaborator','width','_color','hide','copyFileMeta','permission.content','_getAPIPrefix','Warning','AWAITING','_updateStatus','_memberService','drawWith','attrs','disposeWithMe','createIdentifier','append','extend','_unlockTransition','onTransformIME','_registerDependencies','hovered','unit','body','error$','key','@univerjs/rpc','AWAITING_WITH_PENDING','collaborators','_scheduleCollaborationTimeoutTimer','/allowed','UniverEngineRender','height','1585523jKYXjY','setParam','data','TEXT_RANGE_LAYER_INDEX','_toggleOffline','_logService','onTransformSelections','newCsEvent','roomInfos','_setupBeforeClosingHandler','synced','getSheetId','baseRev','removeMember','CollaborationSessionService','/collaborator','off-line-single_clip0_910_343','parse','updateCursorEvent','_getSendChangesetTimeout','history','popstate','USERS_LEAVE','url(#off-line-single_clip0_910_343)','saveSnapshot','_range','getConfig','FromArray','_beforeCloseService','RETRY_CONNECTING_MAX_COUNT','handleIRemoveCol','collabStatus.conflict','clearInterval','collabStatus.notCollab','_localCacheService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_startTelemetryCollaborationNewChangeset','RegularPolygon','@univerjs/design','getOffsetConfig','evenodd','@univerjs/core','_timeoutTimer','CommentService','collaboration-client.offline-data-not-saved','getOwnPropertySymbols','UniverNetwork','PERMISSION_DENIED','combineLatest','PSEUDO_FETCH_MISSING_RESULT','_createHandler','onRemoteChangeset','_HTTPService','change$','PENDING','/role','restore','_acknowledgedAwaitingChangeset','_clearTimeoutTimer','BASE64','DEFAULT_FILE_NAME','onlineStatusIcon','sessionStatus$','encodeURIComponent','[PendingState]:\x20unhandled\x20univer\x20type:\x20','HTTPRequest','_unitOnClients','min','cmd','@univerjs/engine-formula','capture','generateRandomId','path','getWorkbookSelections','react','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','cursorInfo','complete','conflict.title','getSheetBySheetId','toRgbString','transformStack\x20failed!','UniverSheets','univerjs-icon\x20univerjs-icon-','x-univer-host','[OfflineState]:\x20received\x20changeset.','/object/','startTime','Optional','NodePositionConvertToCursor','isActive','getSheetObject','indexOf','UniverRpc','@univerjs/docs','_configService','NO_OTHER_CLIENTS_EDITING','labelPosition','fetchMissingChangesets','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','ISnapshotServerService','searchParams','_applyRemoteChangeset','_backgroundColor','socket\x20close','[DataLoaderController]','[OfflineState]:\x20received\x20rejection.','getCollabEntity','measureText','onlyLocal','@univerjs/engine-render','eventID','_onRemoteRejected','collaboration-client.config','putCollaborators','onReady','translate(.97)','ICommandService','_cachedData','getUnhiddenWorksheets','getCellPositionByOffset','fromEventSubject','currentTheme$','Disposable','_initStatusListener','mutations','_transformRemoteChangesetByIMECache','LIVESHARE_NEW_HOST','_onRefRangeChange','urlChange$','_getCtorByUniverType','getColor','clsx','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','UniverDocsUi','LIVESHARE_TERMINATE','isTransformChangesetsSuccess','useRef','ERROR_EXCEED_SIZE','CollaborationSocketService','getInterceptPoints','_setupSubUnitSync','IMessageService','unshift','concatMap','SNAPSHOT_URL_KEY','collabStatus.syncing','toString','sequenceExecute','_initUnitPermissionChange','_handleLeaveEvent','UNIVER_PROJECT','_saveCache','_themeService','collaboratorID','Plugin','send','getUnitId','_ensureSubject','permission.title','some','rxjs/operators','_injector','duration','_retryConnectingTimer','_transformService','_updateLocalCursor','_removeRoom','ERROR_IMAGE','image/png','_getCurrentRevision','_render','_disabled','Shape','unit-cache-','permissionRejEvent','exhaustSavingTask','setWaitCount','Subject','onTransformRemoteChangesetByIMECache','_docSyncEditingCollabCursorService','saveOfflineData','SNAPSHOT_HAS_BEEN_REMOVED','EXCHANGE_SIGN_URL_SERVER_URL_KEY','cursorInfo$','_session','_httpService','LICENSE_DISTRO_REJECTED','gold400','_heartbeatTimer','MSG_FOR_ERROR','_updateURLWithCurrentState','className','_unitID','_schedule','objectID','updatePermissionObjEvent','responseType','ThresholdInterceptorFactory','_uiPartsService','_commentUpdate$','\x0aAfter:\x20','setConfig','MessageType','session.collaboration-timeout','textRanges','text','_replayCachedMutations','_snapshotService','runRefRangeMutations','resend','getTime','_univerInstanceService','ThemeService','onTransformChange$','defs','_onConnectionFailed','_change$','routeKey','_shapes','MUTATION','show','uni.network.url-service','_document','COLORS','_entities','session.will-retry','IAuthzIoService','_drawRectRange','addObject','9261785cyrBaS','joinEvent','FileId','socketService','_tryEnsureSocket','symbol','/-/object/list','UNIVER_SHEET','_assignedColors','image/gif','failed\x20to\x20apply\x20missed\x20changesets!','_cursors','_remoteChangesetQueue','_renderManagerService','createInstance','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_name','_onRecvEvent','ranges','3656838uETFZp','fetch_missing','OFFLINE','csRejEvent','Tools','APPLY_REJECT','_showConflictNotification','_permissionService','onPointerMove$','LIVESHARE_FETCH_OPERATIONS','fillRule','HEARTBEAT_TIMEOUT_KEY','function','IContextService','Inject','amd','submit\x20changeset\x20error!','connection\x20error','_submitChangeset','state$','makeDirty','_getDownloadEndpointURL','put','_getUploadFileURL','SEND_CHANGESET_TIMEOUT','MoveRangeCommandId','object','getActiveSheet','onPointerLeave$','Unknown\x20user','UniverInstanceType','filter','unitId\x20is\x20not\x20found','_handler','_anchor','RefRangeService','_onCursorDelete','IUIPartsService','_onRemoteChangeset','CompressMutationService','getCurrentUser','RxDisposable','LocalCacheService','replaceState','DesktopCollaborationStatusDisplayController','_updateLocalCache','_toggleOnline','/rev/','_urlService','WebURLService','enableAuthServer','_removeClearOtherTimer','_compressMutationService','sheetID','[CollaborationSessionService]:\x20socket\x20error','[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.','_scheduleClearOtherTimer','newValue','xlink:href','_userManagerService','updateCollaborator','registerRefRange','univer-online-status-title','sheetId','_updateSubUnitFromURLParams','_exhaustRemoteChangesetQueue','_docTransformIMECacheService','YUUMI_UNABLE_LOAD_URL','rgba(255,\x20255,\x20255,\x200.01)','RemoveRowCommandId','...','_onUserJoin','_revisionService','batchAllowed','_getAnchorBounding','saveImage','_sendHeartbeatTimer','toDisposable','setUndoRedoMutationParamsCache','file','m2Prime','[OfflineState]:\x20received\x20acknowledgement.','every','open$','getValue','transformRemoteChangeset','setTimeout','_handleEvent','create','switchMap','LOCAL_CACHE_INTERVAL_KEY','VIEW_MAIN','_loadSheet','/universer-api/snapshot/','LOCAL_CACHE_INTERVAL','6781397pUPypC','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','SheetCollaborationEntity','CollaborationStatus','_incrementRevisionNumber','_undoRedoService','_saveTaskMap','isValidRectRange','objectType','getResourcesRequest','getCurrent','objects','SUCCUSS','0\x200\x2016\x2016','registerComponent','close$','_joinRoom','fillStyle','Workbook','_clearRedo','UniverCollaborationClient','_clearLocalCache','push','getRenderById','UNRECOGNIZED','_initStatusComponent','ITransformService','CollaborationStatusDisplay','getMergeData','pauseCollaboration','reject','InsertRangeMoveRightCommandId','IRenderManagerService','prototype','_notificationService','initWorkbookPermissionChange','LICENSE_MAX_UNITS_EXCEEDED','_collaborationController','unsubscribe','ERROR_IMAGE_TYPE','_throwTelemetryCollaborationNewChangeset','JOIN','RichTextEditingMutation','HTTPService','onSyncEditingCollabCursor','3034509rweYHo','_onCursorUpdate','_initCommandExecutedListener','SNAPSHOT_INVALID_SNAPSHOT','_transitionLocked','parseProtocolChangeset','_initResize','take','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','endColumn','unknown','c1Prime','ONLINE','disposeUnit','_sheetTransformSelectionsService','_singleActiveUnitService','actions','Tooltip','add','_createInitialStateImpl','patch','currentColor','_scheduleHeartbeat','Univer','[CollaborationUndoRedoService]','headers','APPLY_REVISION_CONFILICT','message$','displayName','forEach','onSendChangeset','children','YUUMI_SUBSCRIPTION_NOT_FOUND','bottom','onStarting','_clearHeartbeatTimer','_getSheetObject','startsWith','flatMap','error','collaboration-session-retry','params','row','roomMembers','sendChangesetTimeout','_event$','incrementRevOfUnit','now','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','UNIVER_UNKNOWN','_drawTextRange','deepClone','mapTo','UNIVER_SLIDE','_textBubble','UniverCollaborationClientPlugin','touchDependencies','enableLocalCache','UnitSnapshot','find','_hovered','joinRsp','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','status$','_docSkeletonManagerService','React','_roomMembers$','getParam','connectInjector','EmptyMutation','fillText','getRangePointData','collabWebSocketUrl','awaiting','_clearUndo','debug','UniverTelemetry','_localeService','ImageSourceType','OTHER_CLIENTS_EDITING','clearTimeout','_telemetryService','_transformStack','_eventUnsubscribe','_loadDoc','getRelativeToViewportCoord','_listenToOfflineEvent','@univerjs/telemetry','VIEWPORT_KEY','_handleJoinEvent','updateOfflineData','getCollabEntity$','close','slice','ILocalStorageService','DocCollaborationEntity','isTransformMutationsWithChangesetSuccess','getCurrentSelections','delete','doc.mutation.rich-text-editing','updateMember','CONFLICT','registerHTTPInterceptor','idSuffix','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','collaboration.closeRoom','moveTo','next','#fff','disableLocalCache','executeCommand','_getRedoStack','_init','name','_commentService','handleInsertRow','TOO_MANY_REQUESTS','_socketService','merge','_awaitingChangeset','toggleOffline','[FetchMissState]','takeUntil','stopTime','url(#on-line-single_clip0_910_349)','SheetsSelectionsService','listCollaborators','_refreshCollabCursors','UNAUTHENTICATED','SessionStatus','LOGIN_URL_KEY','FETCH_MISS','font','DisposableCollection','InsertRowCommandId','isArray','onMissingChangesets','BehaviorSubject','transformSelections','_waitCount','LIVESHARE_OPERATION','_stopTelemetryCollaborationNewChangeset','UNIVER_DOC','svg','_collaborationSessionService','_executeRemoteChangeset','_registerRenderDependencies','_getLoginPath','shareReplay','target','_listenToOnlineEvent','_refRangeService','/block/','b64DecodeUnicode','_candidateSocket','updatePermissionPoint','_substituteRedoStack','getTypeOfUnitAdded$','UniverSheetsUi','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','SHOULD_CLOSE_CONN','unload','createElement','icon','tag','event$','@univerjs/sheets-ui','onRendered','objectActions','findNodePositionByCharIndex','APPLY_NON_SEQUENTIAL_REVISION','collaMsg','stringify','_getSnapshotAPIPrefix','_collabSessionService','_type','IConfigService','NOT_COLLAB','MergeInterceptorFactory','ILogService','_redoStacks','enableOfflineEditing','getUnitStatus$','propertyIsEnumerable','blue400','focused$','_collaborationTimeoutTimer','parseChangesetToProtocol','DocSelectionManagerService','session.connection-failed','NOT_FOUND','removeParam','_rescheduleHeartbeat','M0\x200H16V16H0z','HttpImport','@univerjs-pro/license','deserializeToCombResponse','[CollaborationSession]','#FFF','getSheetBlock','infoRsp','getMemberID','registerRenderModule','UNDEFINED','conflict.content','COMPLETION_FINISHED','_entityInit$','CollaborationEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SheetPermissionInitController','_transformUndoRedoStack','SetTextSelectionsOperation','range','DocSkeletonManagerService','_queuedRemoteChangesets','IBeforeCloseService','UniverCore','type','_online','IUndoRedoService','LocalUndoRedoService','awaitingChangeset','_imageSourceCache','_onOffline','getVpScrollXYInfoByPosToVp','onCommentUpdate','addEventListener','signUrlServerUrl','SetDocZoomRatioOperation','SEND_CHANGESET_TIMEOUT_KEY','fromEvent','getOwnPropertyDescriptor','reconnect','_cursorInfo$','session','_retryCount','USERS_ENTER','unitId','set','transformUndoRedo','CollaborationSession','ITelemetryService','COLLAB_SUBMIT_CHANGESET_URL','dispose','action','_context','getImageSourceCache','authzUrl','[CollaborationEntity]','[SyncedState]:\x20received\x20acknowledgement.','changesets','status','JSONX','_startSheetCollabCursor','Vector2','_startCollaboration','save\x20fail\x20reason\x20is\x20','clipPath','JOINING','size','reduce','getCoordByCell','IDLE','InsertRangeMoveDownCommandId','_sheetSkeletonManagerService','assignAColorForMemberID','requireSession','awaiting_with_pending','_cursorShapes','subunit','jiqing500','asObservable','INGEST','save','Rectangle','saveSheetBlock','setActiveRange','onPointerEnter$','_scheduleSaving','lineTo','?url=','setItem','apply','onMissedChangesetFetched','loadDoc','_replaceFileID','debounceTime','_initModules','localeService','entries','_clearScheduledTask','engine','/resources','snapshot','requestParams','catch','/fetchmissing?from=','appendMutation','addObjects','isTransformMutationFailure','_shouldReportTelemetry','_undoStacks','_roomMembers','getDocRanges','DeleteRangeMoveUpCommandId','onCommandExecuted','[PendingState]:\x20received\x20acknowledgement.','mapDocumentTypeToUniverType','color','_getSaveTimeout','deserializeRangeWithSheet','pending','round','code','closeSession','Injector','RevisionService','all','memberID','_tryReconnect','_initCloseConn','getCurrentUnitForType','activeSheet$','[CollaborationSessionService]','method','getAncestorScale','fill','UniverDrawing','Error','CHANGESET_REJ','Rect','pipe','hasOwnProperty','getMember','SnapshotService','HEARTBEAT','m1Prime','colorChannel1','off-line-single','univer-online-status','_removeCollabCursors','length','top','INotificationService','current','_socket','UPDATE_PERMISSION_OBJ','IPermissionService','_members','_colorIndex','getUniverSheetInstance','_socketReady','YUUMI_URL_COL_OUT_OF_RANGE','image/jpeg','liveShareOperation','json','getSkeleton','on-line-single','UPDATE_CURSOR','_updateCollabCursors','univer-online','InsertColCommandId','syncEditingCollabCursor','_state$','getCollabCursors$','@univerjs/network','fetchThroughInterceptors','replace','location','collabSubmitChangesetUrl','get','_commandService','LIVESHARE_REQUEST_HOST','url(#$1','textEncoder','transformChangesets','isPermissionRej','_createSocket','_socket$','_selfUnitIDs','onRemoteRej','useDependency','UnitEmbedded','init','INVALID_ARGUMENT','visibilityState','_hover','max','getFocusedUnit','saveChangeset','map','pluginName','_getUndoStack','_initEventListeners','/-/object/-/batch_allowed','onRemoteAck','call','retryConnectingInterval','_sendingTimer','_onConflict','roles','_send','_unitStatus','downloadEndpointUrl','subUnitId','SheetSkeletonManagerService','dispose$','&assign=','_localStorageService'];_0x3a29=function(){return _0x43dd41;};return _0x3a29();}
|