@univerjs-pro/collaboration-client 0.3.0-alpha.1 → 0.3.0-nightly.202410101606

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/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4f28(_0x3ff7e0,_0x2117e1){const _0x197e9b=_0x197e();return _0x4f28=function(_0x4f287d,_0x313925){_0x4f287d=_0x4f287d-0xd7;let _0x115a5e=_0x197e9b[_0x4f287d];return _0x115a5e;},_0x4f28(_0x3ff7e0,_0x2117e1);}(function(_0x5f2f0d,_0x4c65dd){const _0x1194a4=_0x4f28,_0x4e3541=_0x5f2f0d();while(!![]){try{const _0x320fb9=parseInt(_0x1194a4(0x136))/0x1+parseInt(_0x1194a4(0x2ee))/0x2*(-parseInt(_0x1194a4(0x142))/0x3)+-parseInt(_0x1194a4(0x480))/0x4+-parseInt(_0x1194a4(0x283))/0x5*(parseInt(_0x1194a4(0x25b))/0x6)+-parseInt(_0x1194a4(0x176))/0x7+parseInt(_0x1194a4(0x436))/0x8+parseInt(_0x1194a4(0x3b7))/0x9*(parseInt(_0x1194a4(0x49d))/0xa);if(_0x320fb9===_0x4c65dd)break;else _0x4e3541['push'](_0x4e3541['shift']());}catch(_0x54b1c7){_0x4e3541['push'](_0x4e3541['shift']());}}}(_0x197e,0x25e28),function(_0x2b5c99,_0x124792){const _0x45b43f=_0x4f28;typeof exports=='object'&&typeof module<'u'?_0x124792(exports,require(_0x45b43f(0x346)),require('rxjs'),require(_0x45b43f(0x303)),require(_0x45b43f(0x120)),require(_0x45b43f(0x491)),require(_0x45b43f(0x158)),require(_0x45b43f(0x3f8)),require('@univerjs/telemetry'),require(_0x45b43f(0x4f4)),require('@univerjs/docs-ui'),require('@univerjs/sheets'),require(_0x45b43f(0x4ae)),require('@univerjs/drawing'),require('@univerjs/engine-formula'),require(_0x45b43f(0x192)),require(_0x45b43f(0x145)),require(_0x45b43f(0x1fb)),require(_0x45b43f(0x3dd)),require('@univerjs-pro/license')):typeof define==_0x45b43f(0x4ab)&&define['amd']?define([_0x45b43f(0x1e1),_0x45b43f(0x346),'rxjs','rxjs/operators',_0x45b43f(0x120),'@univerjs/ui',_0x45b43f(0x158),_0x45b43f(0x3f8),_0x45b43f(0x494),_0x45b43f(0x4f4),_0x45b43f(0x3c4),'@univerjs/sheets',_0x45b43f(0x4ae),_0x45b43f(0x39e),_0x45b43f(0x13b),_0x45b43f(0x192),_0x45b43f(0x145),_0x45b43f(0x1fb),_0x45b43f(0x3dd),'@univerjs-pro/license'],_0x124792):(_0x2b5c99=typeof globalThis<'u'?globalThis:_0x2b5c99||self,_0x124792(_0x2b5c99[_0x45b43f(0x3ec)]={},_0x2b5c99[_0x45b43f(0x117)],_0x2b5c99[_0x45b43f(0x2c8)],_0x2b5c99[_0x45b43f(0x2c8)]['operators'],_0x2b5c99[_0x45b43f(0xe7)],_0x2b5c99[_0x45b43f(0x387)],_0x2b5c99[_0x45b43f(0x24b)],_0x2b5c99[_0x45b43f(0x357)],_0x2b5c99['UniverTelemetry'],_0x2b5c99['UniverDocs'],_0x2b5c99[_0x45b43f(0x270)],_0x2b5c99[_0x45b43f(0x390)],_0x2b5c99[_0x45b43f(0x3b9)],_0x2b5c99[_0x45b43f(0x122)],_0x2b5c99[_0x45b43f(0x22e)],_0x2b5c99['UniverSheetsUi'],_0x2b5c99[_0x45b43f(0x420)],_0x2b5c99[_0x45b43f(0x1fb)],_0x2b5c99['UniverRpc'],_0x2b5c99[_0x45b43f(0x1ad)]));}(this,function(_0x48e51e,_0x5b7cfd,_0x266483,_0x51de38,_0x4466a1,_0x2ce95d,_0x4ba5d1,_0x56cbe4,_0x36caba,_0x3e2148,_0x618f14,_0xa62622,_0x46e2e3,_0x35c9a1,_0x4d1b35,_0x4a372b,_0x1b993c,_0x3f7833,_0x429288,_0x5d1cbc){'use strict';const _0x3bc2c8=_0x4f28;var _0x2191c6=Object[_0x3bc2c8(0x361)],_0x332791=(_0x46b4d2,_0x3e8ac5,_0xc9718c)=>_0x3e8ac5 in _0x46b4d2?_0x2191c6(_0x46b4d2,_0x3e8ac5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc9718c}):_0x46b4d2[_0x3e8ac5]=_0xc9718c,_0x314dc6=(_0x13ca81,_0x2eb2fe,_0x2cfd68)=>_0x332791(_0x13ca81,typeof _0x2eb2fe!=_0x3bc2c8(0x13a)?_0x2eb2fe+'':_0x2eb2fe,_0x2cfd68);const _0x504faf='SNAPSHOT_SERVER_URL_KEY',_0x56ac46=_0x3bc2c8(0x2ff),_0x1a9cce='SNAPSHOT_URL_KEY',_0x2d7fa5=_0x3bc2c8(0xf3),_0x4989e3='COLLAB_WEB_SOCKET_URL',_0x2cc1a0='ws://127.0.0.1:8000/universer-api/comb/connect',_0x4afd24=_0x3bc2c8(0x134),_0x372540='HEARTBEAT_TIMEOUT',_0x191200=_0x3bc2c8(0x26e),_0x23080c='LOCAL_CACHE_INTERVAL',_0x3bca7a=_0x3bc2c8(0x2bb),_0x62b297=_0x3bc2c8(0x43f),_0x29174f=_0x3bc2c8(0x4dd),_0x46f52c=_0x3bc2c8(0xde);var _0x5f32a2=(_0x1ed04f=>(_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x307)]=0x0]='UNDEFINED',_0x1ed04f[_0x1ed04f['OK']=0x1]='OK',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x459)]=0x2]=_0x3bc2c8(0x459),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x254)]=0x3]=_0x3bc2c8(0x254),_0x1ed04f[_0x1ed04f['NOT_FOUND']=0x4]=_0x3bc2c8(0x4c9),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4de)]=0x5]=_0x3bc2c8(0x4de),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x485)]=0x6]=_0x3bc2c8(0x485),_0x1ed04f[_0x1ed04f['INVALID_ARGUMENT']=0x7]=_0x3bc2c8(0x124),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x23d)]=0x8]=_0x3bc2c8(0x23d),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4db)]=0x9]='COMPLETION_FINISHED',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x200)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x3f7)]=0x1771]=_0x3bc2c8(0x3f7),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x304)]=0x1772]=_0x3bc2c8(0x304),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x46e)]=0x1b59]=_0x3bc2c8(0x46e),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4b7)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x11b)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x497)]=0x1b5c]=_0x3bc2c8(0x497),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x26b)]=0x1f41]=_0x3bc2c8(0x26b),_0x1ed04f[_0x1ed04f['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3bc2c8(0x271),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x25f)]=0x232a]=_0x3bc2c8(0x25f),_0x1ed04f[_0x1ed04f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3bc2c8(0x2e8),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x29d)]=0x232c]=_0x3bc2c8(0x29d),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4b4)]=0x232d]=_0x3bc2c8(0x4b4),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x3c5)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1ed04f[_0x1ed04f['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3bc2c8(0x382),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x1b2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x339)]=0x2714]=_0x3bc2c8(0x339),_0x1ed04f[_0x1ed04f['UNRECOGNIZED']=-0x1]=_0x3bc2c8(0x396),_0x1ed04f))(_0x5f32a2||{}),_0x249560=(_0xb1d6d1=>(_0xb1d6d1[_0xb1d6d1['UNIVER_UNKNOWN']=0x0]=_0x3bc2c8(0x11c),_0xb1d6d1[_0xb1d6d1['UNIVER_DOC']=0x1]=_0x3bc2c8(0x3a6),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x301)]=0x2]=_0x3bc2c8(0x301),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x202)]=0x3]='UNIVER_SLIDE',_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x329)]=0x4]=_0x3bc2c8(0x329),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x396)]=-0x1]=_0x3bc2c8(0x396),_0xb1d6d1))(_0x249560||{}),_0x4e6b2d=(_0x58181d=>(_0x58181d[_0x58181d[_0x3bc2c8(0x4ca)]=0x0]='UNKNOWN_CMD',_0x58181d[_0x58181d['HELLO']=0x1]=_0x3bc2c8(0x4a4),_0x58181d[_0x58181d[_0x3bc2c8(0x3e3)]=0x2]=_0x3bc2c8(0x3e3),_0x58181d[_0x58181d[_0x3bc2c8(0x16e)]=0x3]=_0x3bc2c8(0x16e),_0x58181d[_0x58181d[_0x3bc2c8(0x148)]=0x4]=_0x3bc2c8(0x148),_0x58181d[_0x58181d[_0x3bc2c8(0x1f0)]=0x5]=_0x3bc2c8(0x1f0),_0x58181d[_0x58181d['RECV']=0x6]=_0x3bc2c8(0x31c),_0x58181d[_0x58181d['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x58181d))(_0x4e6b2d||{}),_0x4a2846=(_0x570b65=>(_0x570b65[_0x570b65['UNKNOWN_CODE']=0x0]=_0x3bc2c8(0x2c0),_0x570b65[_0x570b65['OK']=0x1]='OK',_0x570b65[_0x570b65[_0x3bc2c8(0x27e)]=0x2]='FAIL',_0x570b65[_0x570b65['UNRECOGNIZED']=-0x1]=_0x3bc2c8(0x396),_0x570b65))(_0x4a2846||{}),_0x1817d2=(_0x17dd5a=>(_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x4fa)]=0x0]=_0x3bc2c8(0x4fa),_0x17dd5a[_0x17dd5a['HttpImport']=0x1]=_0x3bc2c8(0xf0),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x24e)]=0x2]=_0x3bc2c8(0x24e),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0xd9)]=0x3]=_0x3bc2c8(0xd9),_0x17dd5a[_0x17dd5a['UnitSnapshot']=0x4]=_0x3bc2c8(0x333),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x396)]=-0x1]=_0x3bc2c8(0x396),_0x17dd5a))(_0x1817d2||{});const _0xa50aed=_0x3bc2c8(0x371),_0xdae42f={};function _0x262567(_0x4371b0){const _0xff810f=_0x3bc2c8;var _0x4c056b,_0x11ef33,_0x2ed13e,_0x82346c;const _0x4187a4=_0x4371b0[_0xff810f(0x2db)],_0x512bb7=JSON[_0xff810f(0x4ec)](_0x4187a4);switch(_0x512bb7[_0xff810f(0x1a4)]){case _0x4e6b2d[_0xff810f(0x1f0)]:case _0x4e6b2d[_0xff810f(0x4a4)]:{const _0x38781c=_0x512bb7[_0xff810f(0x2b0)];return{..._0x512bb7,'data':_0x38781c,'cmd':_0x512bb7[_0xff810f(0x1a4)]};}case _0x4e6b2d[_0xff810f(0x3e3)]:{const _0xeb3963=_0x512bb7[_0xff810f(0x32b)];return{..._0x512bb7,'data':_0xeb3963,'cmd':_0x512bb7[_0xff810f(0x1a4)]};}case _0x4e6b2d[_0xff810f(0x31c)]:{const _0x2389e1=_0x512bb7['collaMsg'];switch(_0x2389e1[_0xff810f(0xe1)]){case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x41b)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x4c056b=_0x2389e1[_0xff810f(0x226)])==null?void 0x0:_0x4c056b['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x4f7)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x11ef33=_0x2389e1[_0xff810f(0x141)])==null?void 0x0:_0x11ef33['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x455)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x2ed13e=_0x2389e1[_0xff810f(0x50e)])==null?void 0x0:_0x2ed13e['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x4c3)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x82346c=_0x2389e1['csRejEvent'])==null?void 0x0:_0x82346c['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x234)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x4f5)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent']['USERS_ENTER']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x3aa)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)]['USERS_LEAVE']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x1ff)]},'cmd':_0x512bb7['cmd']};case _0x56cbe4[_0xff810f(0x484)]['LIVESHARE_NEW_HOST']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x31b)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x291)]:case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x429)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1['liveShareOperation']},'cmd':_0x512bb7['cmd']};case _0x56cbe4[_0xff810f(0x484)]['LIVESHARE_TERMINATE']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x31b)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x500)]:return{..._0x512bb7,'data':_0x2389e1,'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x507)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x205)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x187)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x2c2)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x2b7)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};default:return _0x512bb7;}}default:return _0x512bb7;}}function _0x3eb981(_0x3a1176){const _0x4ef2bb=_0x3bc2c8;switch(_0x3a1176[_0x4ef2bb(0x1a4)]){case _0x4e6b2d[_0x4ef2bb(0x1f0)]:case _0x4e6b2d[_0x4ef2bb(0x4a4)]:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)]});case _0x4e6b2d[_0x4ef2bb(0x148)]:{let _0x57d048;switch(_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0xe1)]){case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x234)]:{_0x57d048={'eventID':_0x56cbe4['CollaborationEvent'][_0x4ef2bb(0x234)],'updateCursorEvent':_0x3a1176['data']['data']};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x44d)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x44d)],'leaveEvent':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x280)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)]['USERS_ENTER'],'joinEvent':_0x3a1176[_0x4ef2bb(0x2db)]['data']};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x12b)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x12b)],'liveShareNewHost':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x429)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x429)],'liveShareOperation':_0x3a1176['data'][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x42a)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x42a)],'liveShareTerminate':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)]['LIVESHARE_REQUEST_HOST']:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x463)],'liveShareRequestHost':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x291)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x291)]};break;}default:_0x57d048={'eventID':_0x3a1176['data'][_0x4ef2bb(0xe1)]};}return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176['cmd'],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'collaMsg':_0x57d048});}case _0x4e6b2d['JOIN']:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'joinReq':_0x3a1176[_0x4ef2bb(0x2db)]});case _0x4e6b2d[_0x4ef2bb(0x16e)]:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'leaveReq':_0x3a1176[_0x4ef2bb(0x2db)]});default:throw new Error(_0x4ef2bb(0x151));}}var _0x5e3302=Object[_0x3bc2c8(0x361)],_0xf005e8=Object['getOwnPropertyDescriptor'],_0x1f28f1=(_0x233af9,_0x46f289,_0x54ad5f,_0x4e241d)=>{const _0x41799d=_0x3bc2c8;for(var _0x6fa1ed=_0x4e241d>0x1?void 0x0:_0x4e241d?_0xf005e8(_0x46f289,_0x54ad5f):_0x46f289,_0x2c7140=_0x233af9[_0x41799d(0x3d6)]-0x1,_0x1333c4;_0x2c7140>=0x0;_0x2c7140--)(_0x1333c4=_0x233af9[_0x2c7140])&&(_0x6fa1ed=(_0x4e241d?_0x1333c4(_0x46f289,_0x54ad5f,_0x6fa1ed):_0x1333c4(_0x6fa1ed))||_0x6fa1ed);return _0x4e241d&&_0x6fa1ed&&_0x5e3302(_0x46f289,_0x54ad5f,_0x6fa1ed),_0x6fa1ed;},_0x4d9d27=(_0x344bdb,_0x208b1f)=>(_0xf054fb,_0x58a522)=>_0x208b1f(_0xf054fb,_0x58a522,_0x344bdb);const _0x2644e7=_0x5b7cfd[_0x3bc2c8(0x20d)](_0x3bc2c8(0x250));function _0x256d97(_0x21e11d,_0xe966e2,_0x34c1e5){const _0xa4ffeb=_0x3bc2c8;return _0x21e11d+'/'+_0xe966e2+_0xa4ffeb(0x248)+_0x34c1e5+'/new_changes';}_0x48e51e[_0x3bc2c8(0x17f)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x5679eb,_0xe4a9a1,_0xc4e86a,_0x4c23b3,_0x1f182d){const _0x431002=_0x3bc2c8;super(),this['_http']=_0x5679eb,this[_0x431002(0x442)]=_0xe4a9a1,this[_0x431002(0x4cb)]=_0xc4e86a,this[_0x431002(0x4e7)]=_0x4c23b3,this[_0x431002(0x1ea)]=_0x1f182d;}['createSocket'](_0x42fb25){const _0x413f47=_0x3bc2c8,_0x1b5af8=this['_ws'][_0x413f47(0x245)](_0x42fb25);if(!_0x1b5af8)throw new Error(_0x413f47(0x186));const _0x54ec8e=new _0x5b7cfd['DisposableCollection'](),_0x45e8c3=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e['add'](_0x1b5af8[_0x413f47(0x1ab)][_0x413f47(0x2f5)](_0x290e83=>_0x45e8c3[_0x413f47(0xe4)](_0x290e83))),_0x54ec8e['add'](_0x5b7cfd['toDisposable'](()=>_0x45e8c3[_0x413f47(0x10e)]()));const _0x348db6=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e[_0x413f47(0x225)](_0x1b5af8['error$']['subscribe'](_0x44693d=>_0x348db6['next'](_0x44693d))),_0x54ec8e[_0x413f47(0x225)](_0x5b7cfd[_0x413f47(0x3d9)](()=>_0x348db6[_0x413f47(0x10e)]()));const _0x43cfdc=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e[_0x413f47(0x225)](_0x1b5af8[_0x413f47(0x2c4)]['subscribe'](_0x569955=>{const _0x486987=_0x413f47,_0xf755e3=_0x262567(_0x569955);_0x43cfdc[_0x486987(0xe4)](_0xf755e3);})),_0x54ec8e['add'](_0x5b7cfd['toDisposable'](()=>_0x43cfdc['complete']()));let _0x4d49f4;const _0x229a11=()=>{const _0x168d71=_0x413f47;_0x348db6['next'](new Event(_0x168d71(0x4d4))),_0x45e8c3[_0x168d71(0xe4)](new CloseEvent('connection\x20error')),_0x4d49f4[_0x168d71(0x212)]();};return _0x4d49f4={'memberID':'','close$':_0x45e8c3[_0x413f47(0x4eb)](),'error$':_0x348db6[_0x413f47(0x4eb)](),'open$':_0x1b5af8[_0x413f47(0x299)],'message$':_0x43cfdc[_0x413f47(0x4eb)](),'send':_0x5efd96=>{const _0xb8e865=_0x413f47;if(_0x5efd96[_0xb8e865(0x1a4)]===_0x4e6b2d[_0xb8e865(0x148)]){if(_0x5efd96['data'][_0xb8e865(0xe1)]===_0x56cbe4['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0xb8e865(0x17c)](_0x4d49f4,_0x5efd96[_0xb8e865(0x2db)])[_0xb8e865(0x2bd)](_0xd14924=>{const _0x2e8a23=_0xb8e865;this['_logService'][_0x2e8a23(0x476)](_0xd14924),_0x229a11();});return;}if(_0x5efd96[_0xb8e865(0x2db)][_0xb8e865(0xe1)]===_0x56cbe4['CollaborationEvent'][_0xb8e865(0x123)]){const _0x3ab3a6=_0x5efd96['data'];this[_0xb8e865(0x2ca)](_0x3ab3a6)[_0xb8e865(0x3a3)](_0x392009=>{const _0x46e0e6=_0xb8e865;_0x43cfdc['next']({'cmd':_0x4e6b2d[_0x46e0e6(0x31c)],'code':_0x4a2846['OK'],'routeKey':_0x3ab3a6[_0x46e0e6(0x2db)][_0x46e0e6(0x1b0)],'routeType':'','data':{'eventID':_0x56cbe4[_0x46e0e6(0x484)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x392009}}});})[_0xb8e865(0x2bd)](_0x2d1233=>{const _0x4163de=_0xb8e865;this[_0x4163de(0x4e7)][_0x4163de(0x476)](_0x2d1233),_0x229a11();});return;}}_0x1b5af8[_0xb8e865(0x441)](_0x3eb981(_0x5efd96));},'close':()=>{const _0x355ec0=_0x413f47;_0x1b5af8[_0x355ec0(0x212)](),_0x54ec8e[_0x355ec0(0x314)]();}},_0x4d49f4;}async[_0x3bc2c8(0x17c)](_0xcc87b7,_0x3cb064){const _0x4ac4f1=_0x3bc2c8;var _0xb469ca,_0x2cab7a;const {unitType:_0x28f508,unitID:_0x3418e2,changeset:_0x3d4ec0}=_0x3cb064[_0x4ac4f1(0x2db)],_0x45456d={'unitID':_0x3418e2,'memberID':_0xcc87b7[_0x4ac4f1(0x48f)],'type':_0x28f508,'changeset':_0x56cbe4[_0x4ac4f1(0x12e)](_0x3d4ec0)},_0x32435b=this[_0x4ac4f1(0x4cb)][_0x4ac4f1(0x1db)](_0x3bca7a),_0x5c7455=this[_0x4ac4f1(0x4cb)][_0x4ac4f1(0x1db)](_0xa50aed),_0x3818b7=_0x256d97((_0x2cab7a=(_0xb469ca=_0x5c7455==null?void 0x0:_0x5c7455[_0x4ac4f1(0x129)])!=null?_0xb469ca:_0x32435b)!=null?_0x2cab7a:_0x62b297,_0x28f508,_0x3418e2);try{await this[_0x4ac4f1(0xfa)][_0x4ac4f1(0x15b)](_0x3818b7,{'body':_0x45456d});}catch(_0x543dc6){throw this[_0x4ac4f1(0x4e7)][_0x4ac4f1(0x476)](_0x4ac4f1(0x2e4),_0x4ac4f1(0x39a)),_0x543dc6;}}async[_0x3bc2c8(0x2ca)](_0x57ee56){const _0x40e892=_0x3bc2c8,{unitID:_0x40abca,from:_0x8e698b,to:_0x4faff1,unitType:_0x1c0f98}=_0x57ee56[_0x40e892(0x2db)];return(await this[_0x40e892(0x1ea)][_0x40e892(0x4ea)]({'metadata':void 0x0},{'unitID':_0x40abca,'type':_0x1c0f98,'from':_0x8e698b,'to':_0x4faff1}))['changesets'];}},_0x48e51e[_0x3bc2c8(0x17f)]=_0x1f28f1([_0x4d9d27(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1['HTTPService'])),_0x4d9d27(0x1,_0x5b7cfd['Inject'](_0x4ba5d1['WebSocketService'])),_0x4d9d27(0x2,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x4d9d27(0x3,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x4d9d27(0x4,_0x56cbe4['ISnapshotServerService'])],_0x48e51e['CollaborationSocketService']);const _0x2b6b65=_0x3bc2c8(0xfc);function _0x342318(_0x3c6db0){const _0x804155=_0x3bc2c8;return JSON[_0x804155(0x2fb)](_0x3c6db0)[_0x804155(0x3d6)];}class _0x1225af{constructor(){const _0x3f7599=_0x3bc2c8;_0x314dc6(this,'_commentUpdate$',new _0x266483[(_0x3f7599(0x2e5))]()),_0x314dc6(this,_0x3f7599(0x128),this['_commentUpdate$'][_0x3f7599(0x4eb)]());}[_0x3bc2c8(0x273)](_0x65d132){const _0x476fd1=_0x3bc2c8;this[_0x476fd1(0x12a)]['next'](_0x65d132);}}var _0x4fd6ae=Object['defineProperty'],_0x362e42=Object['getOwnPropertyDescriptor'],_0x337288=(_0x3b80ab,_0x406cbf,_0x45c559,_0x5aec8d)=>{const _0x38aef6=_0x3bc2c8;for(var _0x4c2ede=_0x5aec8d>0x1?void 0x0:_0x5aec8d?_0x362e42(_0x406cbf,_0x45c559):_0x406cbf,_0x790854=_0x3b80ab[_0x38aef6(0x3d6)]-0x1,_0x32e765;_0x790854>=0x0;_0x790854--)(_0x32e765=_0x3b80ab[_0x790854])&&(_0x4c2ede=(_0x5aec8d?_0x32e765(_0x406cbf,_0x45c559,_0x4c2ede):_0x32e765(_0x4c2ede))||_0x4c2ede);return _0x5aec8d&&_0x4c2ede&&_0x4fd6ae(_0x406cbf,_0x45c559,_0x4c2ede),_0x4c2ede;},_0x3a5a0d=(_0x5e5df1,_0x30a697)=>(_0x53cfb0,_0x21ba8d)=>_0x30a697(_0x53cfb0,_0x21ba8d,_0x5e5df1);let _0x587d5a=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x5a21bf,_0x5271a7){const _0x47e72b=_0x3bc2c8;super(),_0x314dc6(this,_0x47e72b(0x3e6),new Map()),(this[_0x47e72b(0x10b)]=_0x5a21bf,this[_0x47e72b(0x238)]=_0x5271a7,this[_0x47e72b(0x131)](_0x5b7cfd[_0x47e72b(0x3d9)](_0x266483[_0x47e72b(0x2a5)](this['_univerInstanceService'][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)]['UNIVER_SHEET'])['pipe'](_0x51de38['map'](_0x40e7ce=>_0x40e7ce[_0x47e72b(0x183)]())),this[_0x47e72b(0x10b)][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)][_0x47e72b(0x3a6)])[_0x47e72b(0x198)](_0x51de38[_0x47e72b(0x39c)](_0x11df8f=>_0x11df8f[_0x47e72b(0x183)]())),this[_0x47e72b(0x10b)][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)][_0x47e72b(0x202)])[_0x47e72b(0x198)](_0x51de38[_0x47e72b(0x39c)](_0x29cabb=>_0x29cabb[_0x47e72b(0x183)]())))[_0x47e72b(0x2f5)](_0x2f0939=>this['_removeRoom'](_0x2f0939)))));}['setCurrentUser'](_0x332a67){const _0x39946c=_0x3bc2c8;this['_userManagerService'][_0x39946c(0x4ba)](_0x332a67);}[_0x3bc2c8(0x105)](){const _0x1f1678=_0x3bc2c8;return this['_userManagerService'][_0x1f1678(0x105)]();}[_0x3bc2c8(0x167)](_0x1d6eef,_0x27138c){const _0x59fb33=_0x3bc2c8;let _0x34fbfe=this[_0x59fb33(0x3e6)][_0x59fb33(0x451)](_0x1d6eef);_0x34fbfe||(_0x34fbfe=new _0x10db63(),this[_0x59fb33(0x3e6)][_0x59fb33(0x10d)](_0x1d6eef,_0x34fbfe)),_0x34fbfe['updateMember'](_0x27138c);}[_0x3bc2c8(0x3ba)](_0x3c4555,_0x3278de){const _0x5b2da2=_0x3bc2c8,_0x4542b9=this[_0x5b2da2(0x3e6)]['get'](_0x3c4555);_0x4542b9&&_0x4542b9[_0x5b2da2(0x3ba)](_0x3278de);}[_0x3bc2c8(0x50a)](_0xde9b67){const _0xe4507a=_0x3bc2c8;return this['_roomMembers'][_0xe4507a(0x451)](_0xde9b67);}['getMember'](_0x5a4b15,_0x5e1bdd){const _0x471eb5=this['_roomMembers']['get'](_0x5a4b15);if(_0x471eb5)return _0x471eb5['getMember'](_0x5e1bdd);}[_0x3bc2c8(0x18e)](_0x3d5e9d){const _0x5f2e25=_0x3bc2c8,_0x767172=this[_0x5f2e25(0x3e6)][_0x5f2e25(0x451)](_0x3d5e9d);_0x767172&&(_0x767172[_0x5f2e25(0x314)](),this['_roomMembers']['delete'](_0x3d5e9d));}[_0x3bc2c8(0x314)](){const _0x1d461c=_0x3bc2c8;this[_0x1d461c(0x3e6)][_0x1d461c(0x255)](_0x56dd08=>_0x56dd08[_0x1d461c(0x314)]()),this[_0x1d461c(0x3e6)]['clear']();}};_0x587d5a=_0x337288([_0x3a5a0d(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x3a5a0d(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x3d4)]))],_0x587d5a);class _0x10db63 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0xc452ad=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0xc452ad(0x3d0),new Map());}[_0x3bc2c8(0x314)](){const _0x2013bf=_0x3bc2c8;this[_0x2013bf(0x3d0)]['clear']();}[_0x3bc2c8(0x167)](_0x12d173){const _0x5d109c=_0x3bc2c8;this['_members'][_0x5d109c(0x10d)](_0x12d173['memberID'],_0x12d173);}[_0x3bc2c8(0x3ba)](_0x104733){const _0x368078=_0x3bc2c8;this['_members'][_0x368078(0x344)](_0x104733);}['getMember'](_0x184b35){const _0x46bb57=_0x3bc2c8;return this['_members'][_0x46bb57(0x451)](_0x184b35);}}var _0x38a672=Object['defineProperty'],_0x218075=Object[_0x3bc2c8(0x48b)],_0x1c142f=(_0x57d87d,_0x2d1189,_0x18896d,_0x251fe7)=>{const _0x2645b2=_0x3bc2c8;for(var _0x29fbd2=_0x251fe7>0x1?void 0x0:_0x251fe7?_0x218075(_0x2d1189,_0x18896d):_0x2d1189,_0x337cfb=_0x57d87d[_0x2645b2(0x3d6)]-0x1,_0x244b3b;_0x337cfb>=0x0;_0x337cfb--)(_0x244b3b=_0x57d87d[_0x337cfb])&&(_0x29fbd2=(_0x251fe7?_0x244b3b(_0x2d1189,_0x18896d,_0x29fbd2):_0x244b3b(_0x29fbd2))||_0x29fbd2);return _0x251fe7&&_0x29fbd2&&_0x38a672(_0x2d1189,_0x18896d,_0x29fbd2),_0x29fbd2;},_0x2e5a66=(_0xa254c2,_0x422e11)=>(_0x5179f9,_0x35763c)=>_0x422e11(_0x5179f9,_0x35763c,_0xa254c2),_0x2d9d4e=(_0xa6f3fa=>(_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x274)]=0x0]=_0x3bc2c8(0x274),_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x1c8)]=0x1]='JOINING',_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x3b0)]=0x2]=_0x3bc2c8(0x3b0),_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x322)]=0x3]=_0x3bc2c8(0x322),_0xa6f3fa))(_0x2d9d4e||{});_0x48e51e[_0x3bc2c8(0x246)]=class extends _0x5b7cfd['RxDisposable']{constructor(_0x291ac3,_0x389233,_0x5683c6,_0x135482,_0x470cc1,_0x57229f,_0x549388,_0xb2d1ce,_0x360caa,_0x7471ec){const _0x4ef807=_0x3bc2c8;super(),_0x314dc6(this,_0x4ef807(0x426),new _0x266483[(_0x4ef807(0x43e))](0x0)),_0x314dc6(this,_0x4ef807(0x509),this[_0x4ef807(0x426)][_0x4ef807(0x4eb)]()),_0x314dc6(this,'_event$',new _0x266483['Subject']()),_0x314dc6(this,_0x4ef807(0x164),this[_0x4ef807(0x478)][_0x4ef807(0x4eb)]()),_0x314dc6(this,_0x4ef807(0x3d1)),_0x314dc6(this,'_socketMessageSubscription'),_0x314dc6(this,_0x4ef807(0x21e)),_0x314dc6(this,_0x4ef807(0x453),!0x1),_0x314dc6(this,_0x4ef807(0x23f),null),(this[_0x4ef807(0x4c7)]=_0x291ac3,this[_0x4ef807(0x4e7)]=_0x5683c6,this['_beforeCloseService']=_0x135482,this[_0x4ef807(0x1d6)]=_0x470cc1,this[_0x4ef807(0x4cb)]=_0x57229f,this[_0x4ef807(0x24c)]=_0x549388,this[_0x4ef807(0x159)]=_0xb2d1ce,this[_0x4ef807(0x19b)]=_0x360caa,this['_telemetryService']=_0x7471ec,this[_0x4ef807(0x453)]=!!this[_0x4ef807(0x1b4)],_0x389233[_0x4ef807(0x198)](_0x266483[_0x4ef807(0x46b)](this[_0x4ef807(0x2dd)]))[_0x4ef807(0x2f5)](_0x89baae=>{const _0x2fdca7=_0x4ef807;var _0x17fdd3;typeof _0x89baae>'u'||(this[_0x2fdca7(0x3d1)]=_0x89baae,_0x89baae?(this[_0x2fdca7(0x3e0)](_0x89baae),this['_socketMessageSubscription']=_0x89baae['message$'][_0x2fdca7(0x2f5)](_0x4aabb8=>{const _0xefe316=_0x2fdca7;_0x4aabb8[_0xefe316(0x40d)]===this[_0xefe316(0x4c7)]&&this['_onCombEvent'](_0x4aabb8);})):(this[_0x2fdca7(0x471)](),this[_0x2fdca7(0x426)][_0x2fdca7(0xe4)](0x2),(_0x17fdd3=this['_socketMessageSubscription'])==null||_0x17fdd3[_0x2fdca7(0x114)](),this[_0x2fdca7(0x481)]=null));}),this['disposeWithMe'](this[_0x4ef807(0x2ec)]['registerOnClose'](()=>{const _0x3da3ee=_0x4ef807;var _0x1162fd;(_0x1162fd=this[_0x3da3ee(0x3d1)])==null||_0x1162fd['send']({'cmd':_0x4e6b2d[_0x3da3ee(0x16e)],'data':{'roomID':this[_0x3da3ee(0x4c7)]}});})));}get['sessionStatus'](){return this['_sessionStatus$']['getValue']();}[_0x3bc2c8(0x2d0)](){const _0x508d16=_0x3bc2c8;var _0x11de7b,_0x5b652d;return(_0x5b652d=(_0x11de7b=this['_socket'])==null?void 0x0:_0x11de7b[_0x508d16(0x48f)])!=null?_0x5b652d:null;}['dispose'](){const _0x5038a3=_0x3bc2c8;super[_0x5038a3(0x314)](),this[_0x5038a3(0x2dd)]['next'](),this[_0x5038a3(0x2dd)][_0x5038a3(0x10e)]();}['close'](){const _0xaedf69=_0x3bc2c8;var _0x1f1d24,_0x33aa9e;this[_0xaedf69(0x471)](),(_0x1f1d24=this[_0xaedf69(0x3d1)])==null||_0x1f1d24[_0xaedf69(0x441)]({'cmd':_0x4e6b2d[_0xaedf69(0x16e)],'data':{'roomID':this['_unitID']}}),(_0x33aa9e=this[_0xaedf69(0x3d1)])==null||_0x33aa9e['close'](),this[_0xaedf69(0x478)][_0xaedf69(0x10e)](),this[_0xaedf69(0x426)][_0xaedf69(0x10e)](),this['dispose']();}[_0x3bc2c8(0x149)](_0x5866af){const _0x3c04bc=_0x3bc2c8;_0x5866af[_0x3c04bc(0x1a4)]===_0x4e6b2d['JOIN']?this[_0x3c04bc(0x13f)](_0x5866af):_0x5866af[_0x3c04bc(0x1a4)]===_0x4e6b2d['RECV']&&this[_0x3c04bc(0x10c)](_0x5866af);}[_0x3bc2c8(0x3e0)](_0x33ccf0){const _0x10967b=_0x3bc2c8;this['_sessionStatus$'][_0x10967b(0xe4)](0x1),_0x33ccf0[_0x10967b(0x441)]({'cmd':_0x4e6b2d[_0x10967b(0x3e3)],'routeKey':this[_0x10967b(0x4c7)],'routeType':'','data':{'rooms':[{'roomID':this[_0x10967b(0x4c7)]}]}});}[_0x3bc2c8(0x13f)](_0x2659a2){const _0xb4dbf2=_0x3bc2c8;var _0x80312a;if(_0x2659a2[_0xb4dbf2(0x337)]===_0x4a2846[_0xb4dbf2(0x27e)]){this[_0xb4dbf2(0x1d6)][_0xb4dbf2(0x29f)]({'type':_0x4466a1[_0xb4dbf2(0x185)]['Warning'],'content':this[_0xb4dbf2(0x24c)]['t']('session.room-full')}),this[_0xb4dbf2(0x426)][_0xb4dbf2(0xe4)](0x2);return;}this['_sessionStatus$'][_0xb4dbf2(0xe4)](0x3);const _0xec303f=(_0x80312a=_0x2659a2[_0xb4dbf2(0x2db)][_0xb4dbf2(0x102)][this[_0xb4dbf2(0x4c7)]])==null?void 0x0:_0x80312a[_0xb4dbf2(0x162)];_0xec303f&&_0xec303f[_0xb4dbf2(0x255)](_0x4555a3=>this['_memberService'][_0xb4dbf2(0x167)](this['_unitID'],_0x4555a3));}[_0x3bc2c8(0x10c)](_0x170fb7){const _0x3ed4c8=_0x3bc2c8;try{const _0x36ca41=_0x170fb7[_0x3ed4c8(0x2db)];switch(_0x36ca41[_0x3ed4c8(0xe1)]){case _0x56cbe4[_0x3ed4c8(0x484)][_0x3ed4c8(0x280)]:this['_onUserJoin'](_0x36ca41),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)]['USERS_LEAVE']:this[_0x3ed4c8(0x2cb)](_0x36ca41),this[_0x3ed4c8(0x478)]['next'](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)]['CHANGESET_ACK']:this[_0x3ed4c8(0x1f4)](),this[_0x3ed4c8(0x4c5)](),this['_event$'][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4['CollaborationEvent'][_0x3ed4c8(0x500)]:this[_0x3ed4c8(0x4e7)][_0x3ed4c8(0x476)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x3ed4c8(0x2fb)](_0x36ca41)),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)][_0x3ed4c8(0x507)]:this[_0x3ed4c8(0x19b)][_0x3ed4c8(0x273)](_0x36ca41['data']),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;default:this[_0x3ed4c8(0x478)]['next'](_0x36ca41);}}catch(_0x31252e){this[_0x3ed4c8(0x4e7)][_0x3ed4c8(0x476)](_0x31252e,_0x170fb7);}}[_0x3bc2c8(0x414)](_0x2c97c8){const _0x2da873=_0x3bc2c8;this['_memberService']['updateMember'](this[_0x2da873(0x4c7)],_0x2c97c8[_0x2da873(0x2db)]);}[_0x3bc2c8(0x2cb)](_0x452a7d){const _0x4af6f9=_0x3bc2c8;this[_0x4af6f9(0x159)][_0x4af6f9(0x3ba)](this[_0x4af6f9(0x4c7)],_0x452a7d[_0x4af6f9(0x2db)][_0x4af6f9(0x48f)]);}async[_0x3bc2c8(0x441)](_0x4f1aff,_0x5b46eb){const _0x216f3f=_0x3bc2c8;if(this[_0x216f3f(0xee)]!==0x3||!this[_0x216f3f(0x3d1)])throw new Error(_0x216f3f(0x3df));try{_0x4f1aff['eventID']===_0x56cbe4[_0x216f3f(0x484)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x4f1aff)),this[_0x216f3f(0x3d1)][_0x216f3f(0x441)]({'cmd':_0x4e6b2d[_0x216f3f(0x148)],'routeKey':_0x5b46eb,'routeType':'','data':_0x4f1aff});}catch(_0x559e2e){this['_logService'][_0x216f3f(0x476)](_0x559e2e);}}[_0x3bc2c8(0x281)](){const _0x2b0cc7=_0x3bc2c8;var _0x5cf722;this[_0x2b0cc7(0x21e)]=window['setTimeout'](()=>{const _0xa3b2a1=_0x2b0cc7;this[_0xa3b2a1(0x21e)]=null,this[_0xa3b2a1(0x1d6)][_0xa3b2a1(0x29f)]({'type':_0x4466a1[_0xa3b2a1(0x185)][_0xa3b2a1(0x34e)],'content':this[_0xa3b2a1(0x24c)]['t'](_0xa3b2a1(0x14b))});},(_0x5cf722=this[_0x2b0cc7(0x4cb)][_0x2b0cc7(0x1db)](_0x372540))!=null?_0x5cf722:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x4b0fb7=_0x3bc2c8;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x4b0fb7(0x21e)]=null);}[_0x3bc2c8(0x4cd)](_0x4e96ff){const _0x22aa8a=_0x3bc2c8;if(!this['_shouldReportTelemetry'])return;const {data:_0x3c1e74}=_0x4e96ff,{unitID:_0x55873d,changeset:_0x33869}=_0x3c1e74,{mutations:_0x781708,type:_0x582494}=_0x33869;this[_0x22aa8a(0x23f)]={'unitId':_0x55873d,'type':_0x582494,'startTime':performance[_0x22aa8a(0x2ef)](),'stopTime':0x0,'duration':0x0,'size':_0x342318(_0x781708)};}[_0x3bc2c8(0x1f4)](){const _0x126282=_0x3bc2c8;if(this[_0x126282(0x453)]){if(!this['_telemetryInfo']){this[_0x126282(0x4e7)][_0x126282(0x476)](_0x126282(0x2e4),_0x126282(0x45b));return;}this[_0x126282(0x23f)][_0x126282(0x42f)]=performance[_0x126282(0x2ef)](),this[_0x126282(0x23f)][_0x126282(0x470)]=this[_0x126282(0x23f)]['stopTime']-this['_telemetryInfo'][_0x126282(0x4d2)],this[_0x126282(0x1b4)][_0x126282(0x15c)](_0x2b6b65,this[_0x126282(0x23f)]),this[_0x126282(0x23f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x5f23a6=_0x3bc2c8;this[_0x5f23a6(0x23f)]=null;}},_0x48e51e[_0x3bc2c8(0x246)]=_0x1c142f([_0x2e5a66(0x2,_0x5b7cfd['ILogService']),_0x2e5a66(0x3,_0x2ce95d[_0x3bc2c8(0x309)]),_0x2e5a66(0x4,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x2e5a66(0x5,_0x5b7cfd['IConfigService']),_0x2e5a66(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)])),_0x2e5a66(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2e5a66(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x1225af)),_0x2e5a66(0x9,_0x5b7cfd[_0x3bc2c8(0x259)](_0x36caba[_0x3bc2c8(0x32d)]))],_0x48e51e[_0x3bc2c8(0x246)]);var _0x32a86a=Object[_0x3bc2c8(0x361)],_0xa2605f=Object[_0x3bc2c8(0x48b)],_0x41140d=(_0x4e34a9,_0x4b73aa,_0xd03813,_0x1c2c52)=>{const _0x59ad49=_0x3bc2c8;for(var _0x3f5321=_0x1c2c52>0x1?void 0x0:_0x1c2c52?_0xa2605f(_0x4b73aa,_0xd03813):_0x4b73aa,_0x2d8a8a=_0x4e34a9[_0x59ad49(0x3d6)]-0x1,_0x40a591;_0x2d8a8a>=0x0;_0x2d8a8a--)(_0x40a591=_0x4e34a9[_0x2d8a8a])&&(_0x3f5321=(_0x1c2c52?_0x40a591(_0x4b73aa,_0xd03813,_0x3f5321):_0x40a591(_0x3f5321))||_0x3f5321);return _0x1c2c52&&_0x3f5321&&_0x32a86a(_0x4b73aa,_0xd03813,_0x3f5321),_0x3f5321;},_0x388c8c=(_0x28e732,_0x5b2e66)=>(_0x245180,_0x218efd)=>_0x5b2e66(_0x245180,_0x218efd,_0x28e732);_0x48e51e[_0x3bc2c8(0x1d8)]=class extends _0x5b7cfd['Disposable']{constructor(_0x5d1839,_0x29355b,_0x7845a1,_0x2c54e5,_0x5f3cb4,_0x38ff1b){const _0x96442b=_0x3bc2c8;super(),_0x314dc6(this,_0x96442b(0x1b7),new _0x266483[(_0x96442b(0x43e))](void 0x0)),_0x314dc6(this,_0x96442b(0x477),this[_0x96442b(0x1b7)][_0x96442b(0x4eb)]()),_0x314dc6(this,'_candidateSocket',null),_0x314dc6(this,'_sessions',new Map()),_0x314dc6(this,_0x96442b(0x400),new _0x266483['BehaviorSubject'](_0x2d9d4e[_0x96442b(0x274)])),_0x314dc6(this,_0x96442b(0x294),this[_0x96442b(0x400)]['asObservable']()),_0x314dc6(this,'_socketReady',!0x1),_0x314dc6(this,'_retryConnectingTimer'),_0x314dc6(this,_0x96442b(0x1da),0x0),_0x314dc6(this,'_sendHeartbeatTimer'),_0x314dc6(this,_0x96442b(0x247)),(this[_0x96442b(0x30f)]=_0x5d1839,this[_0x96442b(0x24c)]=_0x29355b,this[_0x96442b(0x1d6)]=_0x7845a1,this[_0x96442b(0x4e7)]=_0x2c54e5,this['_configService']=_0x5f3cb4,this[_0x96442b(0x2ac)]=_0x38ff1b,this['_initEventListeners']());}get[_0x3bc2c8(0x3d1)](){const _0x3d2cfd=_0x3bc2c8;return this[_0x3d2cfd(0x1b7)][_0x3d2cfd(0x21b)]();}[_0x3bc2c8(0x241)](){const _0x3988d6=_0x3bc2c8;this[_0x3988d6(0x50f)](),this[_0x3988d6(0x381)]();}[_0x3bc2c8(0x314)](){const _0x39528a=_0x3bc2c8;super[_0x39528a(0x314)](),this['_sessions']['forEach'](_0x13ac19=>_0x13ac19[_0x39528a(0x314)]()),this['_sessions'][_0x39528a(0x174)](),this['_status$'][_0x39528a(0x10e)]();}async['requireSession'](_0x494334){const _0x37f7c1=_0x3bc2c8;if(this[_0x37f7c1(0x4d6)][_0x37f7c1(0x232)](_0x494334))return this[_0x37f7c1(0x4d6)]['get'](_0x494334);this[_0x37f7c1(0x108)]();const _0x25d79b=this[_0x37f7c1(0x30f)][_0x37f7c1(0x1a3)](_0x48e51e['CollaborationSession'],_0x494334,this['_socket$'][_0x37f7c1(0x4eb)]());return this[_0x37f7c1(0x4d6)][_0x37f7c1(0x10d)](_0x494334,_0x25d79b),_0x25d79b;}[_0x3bc2c8(0x3f6)](_0x42bf40){const _0x94b475=_0x3bc2c8;var _0x114ad7;const _0x283959=this['_sessions'][_0x94b475(0x451)](_0x42bf40);_0x283959&&(this[_0x94b475(0x4d6)][_0x94b475(0x344)](_0x42bf40),_0x283959['close']()),this[_0x94b475(0x4d6)][_0x94b475(0x127)]||(_0x114ad7=this[_0x94b475(0x3d1)])==null||_0x114ad7[_0x94b475(0x212)]();}[_0x3bc2c8(0x28d)](){const _0x310312=_0x3bc2c8;this[_0x310312(0x1da)]=0x0,this[_0x310312(0x26d)]!=null&&(clearTimeout(this[_0x310312(0x26d)]),this['_retryConnectingTimer']=null),this[_0x310312(0x2f3)]();}[_0x3bc2c8(0x4e2)](){const _0x4d5618=_0x3bc2c8;var _0x6f1935,_0x220372;const _0x5b039d=this['_configService'][_0x4d5618(0x1db)](_0x4989e3),_0x3a2ece=this['_configService'][_0x4d5618(0x1db)](_0xa50aed),_0x13965f=(_0x220372=(_0x6f1935=_0x3a2ece==null?void 0x0:_0x3a2ece[_0x4d5618(0x37d)])!=null?_0x6f1935:_0x5b039d)!=null?_0x220372:_0x2cc1a0,_0xbcbba8=this['_socketService'][_0x4d5618(0x245)](_0x13965f);return this[_0x4d5618(0x1fa)]=_0xbcbba8,_0xbcbba8;}['_tryEnsureSocket'](){const _0x148a7c=_0x3bc2c8;var _0x319b8a,_0x1406d4;try{const _0x1ce87c=(_0x1406d4=(_0x319b8a=this['_socket'])!=null?_0x319b8a:this[_0x148a7c(0x1fa)])!=null?_0x1406d4:this['_createSocket']();if(_0x1ce87c){const _0x472aa4=_0x1ce87c[_0x148a7c(0x441)];_0x1ce87c[_0x148a7c(0x441)]=_0x17b2ca=>(this[_0x148a7c(0x110)](),_0x472aa4[_0x148a7c(0x458)](_0x1ce87c,[_0x17b2ca])),_0x1ce87c[_0x148a7c(0x2c4)][_0x148a7c(0x2f5)](_0x918619=>this[_0x148a7c(0x4a0)](_0x1ce87c,_0x918619)),_0x1ce87c['error$'][_0x148a7c(0x198)](_0x51de38[_0x148a7c(0x38a)](0x1))['subscribe'](_0x2a04d8=>this[_0x148a7c(0x4e7)][_0x148a7c(0x476)]('[CollaborationSessionService]:\x20socket\x20error',_0x2a04d8)),_0x1ce87c[_0x148a7c(0x299)]['pipe'](_0x51de38['take'](0x1))[_0x148a7c(0x2f5)](()=>{const _0x28347a=_0x148a7c;this[_0x28347a(0x506)](_0x1ce87c);}),_0x1ce87c['close$'][_0x148a7c(0x198)](_0x51de38[_0x148a7c(0x38a)](0x1))[_0x148a7c(0x2f5)](_0x29bf3a=>{const _0x54cae1=_0x148a7c;this[_0x54cae1(0x4e7)][_0x54cae1(0x46f)]('[CollaborationSessionService]',_0x54cae1(0x48c),_0x29bf3a),this[_0x54cae1(0x3c9)]();});}}catch(_0x29d712){this[_0x148a7c(0x4e7)][_0x148a7c(0x476)](_0x29d712),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x2d215d){const _0x5be400=_0x3bc2c8;this[_0x5be400(0x4e7)][_0x5be400(0x46f)](_0x5be400(0x233),_0x5be400(0x1eb)),_0x2d215d[_0x5be400(0x441)]({'cmd':_0x4e6b2d[_0x5be400(0x4a4)]}),this[_0x5be400(0x110)]();}[_0x3bc2c8(0x50f)](){const _0x37551f=_0x3bc2c8;window['addEventListener'](_0x37551f(0x392),()=>this[_0x37551f(0x16a)]());}[_0x3bc2c8(0x16a)](){const _0x1516c2=_0x3bc2c8;this[_0x1516c2(0x505)]=!0x1,this[_0x1516c2(0x1fa)]=null,this['_status$'][_0x1516c2(0xe4)](_0x2d9d4e[_0x1516c2(0x3b0)]),this[_0x1516c2(0x1b7)][_0x1516c2(0xe4)](null),this[_0x1516c2(0x45e)](),this[_0x1516c2(0x363)]();}[_0x3bc2c8(0x3c9)](){const _0x5121a0=_0x3bc2c8;var _0x84eec0;this[_0x5121a0(0x16a)](),this[_0x5121a0(0x1da)]<((_0x84eec0=this[_0x5121a0(0x4cb)][_0x5121a0(0x1db)](_0x191200))!=null?_0x84eec0:0x3)?(this['_messageService'][_0x5121a0(0x29f)]({'key':_0x5121a0(0x3c3),'type':_0x4466a1[_0x5121a0(0x185)]['Warning'],'content':this[_0x5121a0(0x24c)]['t']('session.will-retry')}),this[_0x5121a0(0x2f3)]()):this['_messageService'][_0x5121a0(0x29f)]({'key':_0x5121a0(0x3c3),'type':_0x4466a1['MessageType'][_0x5121a0(0x34e)],'content':this[_0x5121a0(0x24c)]['t'](_0x5121a0(0xed))});}[_0x3bc2c8(0x381)](){const _0xb8c6c9=_0x3bc2c8,_0x32fa17=()=>{const _0x3a012b=_0x4f28;this[_0x3a012b(0x3d1)]||this[_0x3a012b(0x28d)]();},_0x43b5af=()=>{const _0xaba48b=_0x4f28;this[_0xaba48b(0x3d1)]||document[_0xaba48b(0x2d9)]===_0xaba48b(0x27c)||this[_0xaba48b(0x28d)]();};window['addEventListener'](_0xb8c6c9(0x3eb),_0x32fa17),document[_0xb8c6c9(0x435)](_0xb8c6c9(0x35f),_0x43b5af);}[_0x3bc2c8(0x2f3)](){const _0x4509e5=_0x3bc2c8;var _0x1b8b99;const _0x473ead=this[_0x4509e5(0x1da)],_0x35d135=this['_configService'][_0x4509e5(0x1db)](_0xa50aed),_0x46d3c5=_0x473ead===0x0?0x0:((_0x1b8b99=_0x35d135==null?void 0x0:_0x35d135[_0x4509e5(0x17e)])!=null?_0x1b8b99:0x4e20)*0x2**_0x473ead;this[_0x4509e5(0x26d)]=window[_0x4509e5(0x19f)](()=>{const _0x36d5b8=_0x4509e5;clearTimeout(this[_0x36d5b8(0x26d)]),this[_0x36d5b8(0x26d)]=null,this['_tryEnsureSocket']();},_0x46d3c5),this[_0x4509e5(0x1da)]+=0x1;}[_0x3bc2c8(0x4a0)](_0x120d74,_0x1783d5){const _0x47baf4=_0x3bc2c8,{cmd:_0x131c6b}=_0x1783d5;_0x131c6b===_0x4e6b2d[_0x47baf4(0x4a4)]&&!this[_0x47baf4(0x505)]&&(_0x120d74[_0x47baf4(0x48f)]=_0x1783d5[_0x47baf4(0x2db)][_0x47baf4(0x48f)],this[_0x47baf4(0x1b7)][_0x47baf4(0xe4)](_0x120d74),this[_0x47baf4(0x400)][_0x47baf4(0xe4)](_0x2d9d4e[_0x47baf4(0x322)]),this['_socketReady']=!0x0,this[_0x47baf4(0x1fa)]=null),_0x131c6b===_0x4e6b2d[_0x47baf4(0x1f0)]&&this['_clearTimeoutTimer'](),this[_0x47baf4(0x110)]();}[_0x3bc2c8(0x110)](){const _0x2a91a8=_0x3bc2c8;var _0x1fae90;this[_0x2a91a8(0x363)](),this[_0x2a91a8(0x46a)]=window[_0x2a91a8(0x19f)](()=>this[_0x2a91a8(0x1c0)](),(_0x1fae90=this[_0x2a91a8(0x4cb)]['getConfig'](_0x4afd24))!=null?_0x1fae90:0x7530);}[_0x3bc2c8(0x1c0)](){const _0x51c9d9=_0x3bc2c8;this[_0x51c9d9(0x3d1)][_0x51c9d9(0x441)]({'cmd':_0x4e6b2d['HEARTBEAT']}),this[_0x51c9d9(0x3f5)]();}[_0x3bc2c8(0x3f5)](){const _0x1f82db=_0x3bc2c8;var _0x5a8c35;this[_0x1f82db(0x247)]=window['setTimeout'](()=>this[_0x1f82db(0x3c9)](),(_0x5a8c35=this[_0x1f82db(0x4cb)][_0x1f82db(0x1db)](_0x372540))!=null?_0x5a8c35:0x4e20);}['_clearHeartbeatTimer'](){const _0x32b2b0=_0x3bc2c8;this[_0x32b2b0(0x46a)]!=null&&(clearTimeout(this[_0x32b2b0(0x46a)]),this['_sendHeartbeatTimer']=null);}[_0x3bc2c8(0x45e)](){const _0x4fbd1e=_0x3bc2c8;this[_0x4fbd1e(0x247)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},_0x48e51e[_0x3bc2c8(0x1d8)]=_0x41140d([_0x388c8c(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x388c8c(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x388c8c(0x2,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x388c8c(0x3,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x388c8c(0x4,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x388c8c(0x5,_0x2644e7)],_0x48e51e[_0x3bc2c8(0x1d8)]);var _0x13a2ff=Object[_0x3bc2c8(0x361)],_0x1cae8f=Object[_0x3bc2c8(0x48b)],_0x5e6cda=(_0x4d1bc2,_0x475bca,_0x308f1d,_0x3bd422)=>{const _0x850c41=_0x3bc2c8;for(var _0x5b124b=_0x3bd422>0x1?void 0x0:_0x3bd422?_0x1cae8f(_0x475bca,_0x308f1d):_0x475bca,_0x13184b=_0x4d1bc2[_0x850c41(0x3d6)]-0x1,_0x6e2fbf;_0x13184b>=0x0;_0x13184b--)(_0x6e2fbf=_0x4d1bc2[_0x13184b])&&(_0x5b124b=(_0x3bd422?_0x6e2fbf(_0x475bca,_0x308f1d,_0x5b124b):_0x6e2fbf(_0x5b124b))||_0x5b124b);return _0x3bd422&&_0x5b124b&&_0x13a2ff(_0x475bca,_0x308f1d,_0x5b124b),_0x5b124b;},_0x2d90e0=(_0x26a0c5,_0x769a3e)=>(_0x32a1e5,_0x14c085)=>_0x769a3e(_0x32a1e5,_0x14c085,_0x26a0c5);let _0x1e6c69=class{constructor(_0x25f496,_0x5a7ce4,_0x3a63db){const _0x920ce8=_0x3bc2c8;this[_0x920ce8(0x30f)]=_0x25f496,this[_0x920ce8(0x3a1)]=_0x5a7ce4,this['_renderManagerService']=_0x3a63db;}['transformIMECache'](_0x52a6a4){this['_transformUndoRedoStack'](_0x52a6a4),this['_transformPreviousActiveRange'](_0x52a6a4);}[_0x3bc2c8(0x3fb)](_0x1ddcad){const _0x50dc93=_0x3bc2c8,{unitID:_0x3f3c8f}=_0x1ddcad,_0xd0d302=this[_0x50dc93(0x4bd)]['getRenderById'](_0x3f3c8f)[_0x50dc93(0x1a6)](_0x618f14[_0x50dc93(0x1c2)]),{redoCache:_0x4daed4}=_0xd0d302[_0x50dc93(0x48d)]();if(_0x4daed4[_0x50dc93(0x3d6)]===0x0)return _0x1ddcad;let _0x299b78=_0x5b7cfd['Tools']['deepClone'](_0x1ddcad[_0x50dc93(0x1fc)][0x0]);for(let _0x4a5260=0x0;_0x4a5260<_0x4daed4['length'];_0x4a5260++){const _0x5aa6fa={'id':'doc.mutation.rich-text-editing','params':{..._0x4daed4[_0x4a5260]}},_0x529821=this[_0x50dc93(0x3a1)][_0x50dc93(0x31d)](_0x299b78,_0x5aa6fa,!0x1);if(_0x56cbe4[_0x50dc93(0x197)](_0x529821))throw _0x529821[_0x50dc93(0x476)];_0x299b78=_0x529821['m1Prime'];}return{..._0x5b7cfd[_0x50dc93(0x2f6)][_0x50dc93(0x29b)](_0x1ddcad),'mutations':[_0x299b78]};}['_transformUndoRedoStack'](_0x27a529){const _0x1d9f82=_0x3bc2c8,{unitID:_0x565bae}=_0x27a529,_0x437937=this[_0x1d9f82(0x4bd)]['getRenderById'](_0x565bae)[_0x1d9f82(0x1a6)](_0x618f14[_0x1d9f82(0x1c2)]),{undoCache:_0x12b8ef,redoCache:_0x26db0e}=_0x437937[_0x1d9f82(0x48d)]();if(_0x12b8ef[_0x1d9f82(0x3d6)]===0x0||_0x26db0e[_0x1d9f82(0x3d6)]===0x0)return;const _0x4f6950=[],_0x582ce1=[];let _0x23c701=_0x5b7cfd[_0x1d9f82(0x2f6)]['deepClone'](_0x27a529[_0x1d9f82(0x1fc)][0x0]),_0x4c774e=_0x5b7cfd[_0x1d9f82(0x2f6)][_0x1d9f82(0x29b)](_0x27a529['mutations'][0x0]);for(let _0x515b7d=_0x12b8ef[_0x1d9f82(0x3d6)]-0x1;_0x515b7d>=0x0;_0x515b7d--){const _0x45a1e4={'id':'doc.mutation.rich-text-editing','params':{..._0x12b8ef[_0x515b7d]}},_0x3d7f81={'id':'doc.mutation.rich-text-editing','params':{..._0x26db0e[_0x515b7d]}},_0x2adfca=this['_transformService'][_0x1d9f82(0x31d)](_0x23c701,_0x45a1e4,!0x1),_0x6bb644=this[_0x1d9f82(0x3a1)][_0x1d9f82(0x31d)](_0x4c774e,_0x3d7f81,!0x1);if(_0x56cbe4['isTransformMutationFailure'](_0x2adfca))throw _0x2adfca['error'];if(_0x56cbe4[_0x1d9f82(0x197)](_0x6bb644))throw _0x6bb644[_0x1d9f82(0x476)];_0x4f6950[_0x1d9f82(0x377)](_0x2adfca[_0x1d9f82(0x275)][_0x1d9f82(0x3c2)]),_0x582ce1[_0x1d9f82(0x377)](_0x6bb644[_0x1d9f82(0x275)]['params']),_0x23c701=_0x2adfca[_0x1d9f82(0x32c)],_0x4c774e=_0x6bb644[_0x1d9f82(0x32c)];}_0x437937[_0x1d9f82(0x486)]({'undoCache':_0x4f6950,'redoCache':_0x582ce1});}[_0x3bc2c8(0x3f2)](_0x31c5a7){const _0x2d1ae4=_0x3bc2c8,{unitID:_0x54e2eb}=_0x31c5a7,_0x2d753b=this[_0x2d1ae4(0x4bd)]['getRenderById'](_0x54e2eb)['with'](_0x618f14[_0x2d1ae4(0x1c2)]),_0x4fcf0f=_0x2d753b['getActiveRange']();if(_0x4fcf0f==null)return;const _0x43e8a8=[{'id':_0x2d1ae4(0x2d2),'params':{'unitId':_0x31c5a7[_0x2d1ae4(0x1b0)],'actions':null,'textRanges':[_0x4fcf0f]}}],_0x3ca9b2=this[_0x2d1ae4(0x3a1)][_0x2d1ae4(0x4b8)](_0x31c5a7,_0x43e8a8);if(!_0x56cbe4[_0x2d1ae4(0x180)](_0x3ca9b2))throw _0x3ca9b2[_0x2d1ae4(0x476)];const _0x153b06=_0x3ca9b2[_0x2d1ae4(0x275)][0x0][_0x2d1ae4(0x3c2)][_0x2d1ae4(0x138)];Array['isArray'](_0x153b06)&&_0x153b06[_0x2d1ae4(0x3d6)]&&_0x2d753b[_0x2d1ae4(0x14e)](_0x153b06[0x0]);}};_0x1e6c69=_0x5e6cda([_0x2d90e0(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2d90e0(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x2d90e0(0x2,_0x46e2e3[_0x3bc2c8(0x37e)])],_0x1e6c69);var _0xabb556=Object[_0x3bc2c8(0x361)],_0x3026f1=Object[_0x3bc2c8(0x48b)],_0x4476ed=(_0x1c324d,_0x1c46bd,_0x44fda6,_0x29cfc0)=>{for(var _0x4cf889=_0x29cfc0>0x1?void 0x0:_0x29cfc0?_0x3026f1(_0x1c46bd,_0x44fda6):_0x1c46bd,_0x25506f=_0x1c324d['length']-0x1,_0x37336;_0x25506f>=0x0;_0x25506f--)(_0x37336=_0x1c324d[_0x25506f])&&(_0x4cf889=(_0x29cfc0?_0x37336(_0x1c46bd,_0x44fda6,_0x4cf889):_0x37336(_0x4cf889))||_0x4cf889);return _0x29cfc0&&_0x4cf889&&_0xabb556(_0x1c46bd,_0x44fda6,_0x4cf889),_0x4cf889;},_0x210132=(_0x17be3e,_0xa292cf)=>(_0x413779,_0x2ca103)=>_0xa292cf(_0x413779,_0x2ca103,_0x17be3e);_0x48e51e[_0x3bc2c8(0x47d)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x4eadf8,_0x27bf38,_0x52f085,_0x4c6180,_0x29615a){const _0x45676d=_0x3bc2c8;super(),_0x314dc6(this,_0x45676d(0x125),new Map()),_0x314dc6(this,_0x45676d(0x2ba),new Map()),_0x314dc6(this,'_disabled',!0x1),(this[_0x45676d(0x4cb)]=_0x4eadf8,this[_0x45676d(0x163)]=_0x27bf38,this['_beforeCloseService']=_0x52f085,this[_0x45676d(0x24c)]=_0x4c6180,this[_0x45676d(0x49a)]=_0x29615a,this[_0x45676d(0x1bf)]());}[_0x3bc2c8(0x397)](){const _0x4f3741=_0x3bc2c8;this[_0x4f3741(0x324)]=!0x0;}[_0x3bc2c8(0x412)](){this['_disabled']=!0x1;}[_0x3bc2c8(0x314)](){const _0xf8fbf4=_0x3bc2c8;this[_0xf8fbf4(0x4c1)]()[_0xf8fbf4(0x3a3)](()=>super['dispose']());}async['loadOfflineData'](_0x1cfd12){const _0x83239d=_0x3bc2c8;return this[_0x83239d(0x324)]?null:this['_localStorageService'][_0x83239d(0x2f1)](_0x261829(_0x1cfd12));}async[_0x3bc2c8(0x367)](_0x35dd68,_0x508c16){const _0x5227ad=_0x3bc2c8;return!!this[_0x5227ad(0x163)][_0x5227ad(0x3bc)](_0x35dd68,_0x508c16);}[_0x3bc2c8(0x4ee)](_0x40fe5e,_0x526eac,_0x4b817f,_0x432742){const _0x3ef44d=_0x3bc2c8,_0x26651d=this[_0x3ef44d(0x49a)][_0x3ef44d(0x22d)](_0x40fe5e);this[_0x3ef44d(0x125)][_0x3ef44d(0x10d)](_0x40fe5e,{'unitID':_0x40fe5e,'type':_0x526eac,'awaitingChangeset':_0x4b817f,'mutations':_0x432742,'rev':_0x26651d}),this['_saveTaskMap']['has'](_0x40fe5e)||this[_0x3ef44d(0x4f3)](_0x40fe5e);}['_scheduleSaving'](_0x3cad75){const _0x170741=_0x3bc2c8,_0x5a556d=this[_0x170741(0xeb)]();_0x5a556d===0x0?this[_0x170741(0x2fe)](_0x3cad75):this['_saveTaskMap'][_0x170741(0x10d)](_0x3cad75,setTimeout(()=>this[_0x170741(0x2fe)](_0x3cad75),_0x5a556d));}[_0x3bc2c8(0xeb)](){const _0x2c9b4e=_0x3bc2c8;var _0x15bf01;return(_0x15bf01=this[_0x2c9b4e(0x4cb)][_0x2c9b4e(0x1db)](_0x23080c))!=null?_0x15bf01:0x3e8;}[_0x3bc2c8(0x2fe)](_0xad9003){const _0x56a7d7=_0x3bc2c8,_0x3f05cb=this[_0x56a7d7(0x2ba)]['get'](_0xad9003);return _0x3f05cb!==void 0x0&&window['clearTimeout'](_0x3f05cb),this['_localStorageService']['setItem'](_0x261829(_0xad9003),this['_cachedData'][_0x56a7d7(0x451)](_0xad9003))['then'](()=>this[_0x56a7d7(0x2ba)][_0x56a7d7(0x344)](_0xad9003));}async['exhaustSavingTask'](){const _0x4fdf54=_0x3bc2c8,_0x270b28=[];this[_0x4fdf54(0x2ba)][_0x4fdf54(0x255)]((_0xe425c8,_0x3ad9c1)=>{const _0x75eced=_0x4fdf54;window['clearTimeout'](_0xe425c8),_0x270b28[_0x75eced(0x13d)](this[_0x75eced(0x2fe)](_0x3ad9c1)[_0x75eced(0x3a3)](()=>{const _0x7fc659=_0x75eced;this[_0x7fc659(0x2ba)][_0x7fc659(0x344)](_0x3ad9c1);}));}),await Promise[_0x4fdf54(0x21a)](_0x270b28);}[_0x3bc2c8(0x1bf)](){const _0x128679=_0x3bc2c8;this[_0x128679(0x131)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x263b2e=_0x128679;if(this[_0x263b2e(0x2ba)]['size'])return this['_localeService']['t'](_0x263b2e(0x42c));}));}},_0x48e51e[_0x3bc2c8(0x47d)]=_0x4476ed([_0x210132(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x210132(0x1,_0x5b7cfd[_0x3bc2c8(0x4d1)]),_0x210132(0x2,_0x2ce95d['IBeforeCloseService']),_0x210132(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x210132(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)]))],_0x48e51e[_0x3bc2c8(0x47d)]);function _0x261829(_0x55ad0a){return'unit-cache-'+_0x55ad0a;}var _0x519a14=Object[_0x3bc2c8(0x361)],_0x53f843=Object[_0x3bc2c8(0x48b)],_0x1b9d69=(_0x28cbc1,_0x18948a,_0x27196f,_0x27b2a9)=>{const _0x25449c=_0x3bc2c8;for(var _0x67ab64=_0x27b2a9>0x1?void 0x0:_0x27b2a9?_0x53f843(_0x18948a,_0x27196f):_0x18948a,_0x2a8e7f=_0x28cbc1[_0x25449c(0x3d6)]-0x1,_0x333d83;_0x2a8e7f>=0x0;_0x2a8e7f--)(_0x333d83=_0x28cbc1[_0x2a8e7f])&&(_0x67ab64=(_0x27b2a9?_0x333d83(_0x18948a,_0x27196f,_0x67ab64):_0x333d83(_0x67ab64))||_0x67ab64);return _0x27b2a9&&_0x67ab64&&_0x519a14(_0x18948a,_0x27196f,_0x67ab64),_0x67ab64;},_0x591682=(_0x4fdf01,_0x46d8af)=>(_0x2ce797,_0x378aa9)=>_0x46d8af(_0x2ce797,_0x378aa9,_0x4fdf01);function _0x5eafe9(_0x47ca35){const _0x4319cd=_0x3bc2c8,{unitID:_0xd877a8,mutations:_0x2d1552}=_0x47ca35;return{'unitId':_0xd877a8,'subUnitId':_0x2d1552[0x0][_0x4319cd(0x3c2)][_0x4319cd(0x2e3)]};}let _0x2cedfe=class{constructor(_0x51d68f,_0x5f56b4,_0x38013d){const _0xc07845=_0x3bc2c8;this[_0xc07845(0x30f)]=_0x51d68f,this['_transformService']=_0x5f56b4,this[_0xc07845(0x2cd)]=_0x38013d;}[_0x3bc2c8(0x109)](_0x33ebcd){const _0x3b1a0d=_0x3bc2c8;var _0x477709,_0x2af312,_0xf332cb,_0x11f23a;const _0x519862=this[_0x3b1a0d(0x30f)][_0x3b1a0d(0x451)](_0xa62622['SheetsSelectionsService']),{unitId:_0x4880e2,subUnitId:_0xb76232}=_0x5eafe9(_0x33ebcd),_0x33081d=_0x519862['getWorkbookSelections'](_0x4880e2)[_0x3b1a0d(0x222)](),_0x5a5983=(_0x2af312=(_0x477709=this[_0x3b1a0d(0x2cd)][_0x3b1a0d(0x467)](_0x4880e2))==null?void 0x0:_0x477709[_0x3b1a0d(0x240)]())==null?void 0x0:_0x2af312[_0x3b1a0d(0x43d)]();if(_0x33081d[_0x3b1a0d(0x3d6)]===0x0||!_0x4880e2||!_0xb76232)return;const _0x3709d2=[{'id':_0xa62622[_0x3b1a0d(0x32e)]['id'],'params':{'unitId':_0x4880e2,'subUnitId':_0x5a5983,'selections':_0x5b7cfd[_0x3b1a0d(0x2f6)][_0x3b1a0d(0x29b)](_0x33081d)}}],_0x1082a4=this[_0x3b1a0d(0x3a1)][_0x3b1a0d(0x4b8)](_0x33ebcd,_0x3709d2);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x1082a4))throw _0x1082a4[_0x3b1a0d(0x476)];const _0x154bf7=(_0x11f23a=(_0xf332cb=_0x1082a4[_0x3b1a0d(0x275)][0x0])==null?void 0x0:_0xf332cb[_0x3b1a0d(0x3c2)])==null?void 0x0:_0x11f23a[_0x3b1a0d(0x4ff)];Array[_0x3b1a0d(0x1cc)](_0x154bf7)&&_0x154bf7[_0x3b1a0d(0x3d6)]&&this[_0x3b1a0d(0x30f)][_0x3b1a0d(0x451)](_0x5b7cfd[_0x3b1a0d(0x27d)])[_0x3b1a0d(0x2a7)](_0xa62622[_0x3b1a0d(0x32e)]['id'],{'unitId':_0x4880e2,'subUnitId':_0x5a5983,'selections':_0x154bf7});}};_0x2cedfe=_0x1b9d69([_0x591682(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x591682(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x591682(0x2,_0x5b7cfd[_0x3bc2c8(0x29e)])],_0x2cedfe);const _0x5e9761=_0x5b7cfd[_0x3bc2c8(0x20d)]('univer-pro.collaboration-client.single-active-unit-service');var _0x695cf2=(_0x3d3f52=>(_0x3d3f52[_0x3d3f52['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3d3f52[_0x3d3f52[_0x3bc2c8(0x3de)]=0x1]=_0x3bc2c8(0x3de),_0x3d3f52))(_0x695cf2||{});const _0x2ff85a=0x7530,_0x5f0b59=_0x3bc2c8(0x4a7);class _0x384617 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0x1b8363=_0x3bc2c8;super(),_0x314dc6(this,'_id',_0x5b7cfd[_0x1b8363(0x2f6)][_0x1b8363(0x1d9)]()),_0x314dc6(this,_0x1b8363(0x34f),new Set()),_0x314dc6(this,_0x1b8363(0x34c),new Map()),_0x314dc6(this,_0x1b8363(0x290),null),_0x314dc6(this,'_clearOtherTimers',new Map()),_0x314dc6(this,_0x1b8363(0x15d),new Map()),this['_init']();}[_0x3bc2c8(0x314)](){const _0x3d518f=_0x3bc2c8;super[_0x3d518f(0x314)](),this[_0x3d518f(0x4dc)]['forEach']((_0xac10a,_0x2b10cc)=>this[_0x3d518f(0x23e)](_0x2b10cc)),this[_0x3d518f(0x290)]&&window[_0x3d518f(0x40c)](this[_0x3d518f(0x290)]);}[_0x3bc2c8(0x112)](_0x4f4147){const _0x3b2c73=_0x3bc2c8;return this[_0x3b2c73(0x169)](_0x4f4147)[_0x3b2c73(0x198)](_0x266483['distinctUntilChanged']());}[_0x3bc2c8(0x179)](_0x11c06d){const _0x57a5a7=_0x3bc2c8;this['_selfUnitIDs'][_0x57a5a7(0x127)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x57a5a7(0x225)](_0x11c06d),this[_0x57a5a7(0x1ca)]({'type':0x0,'memberID':this[_0x57a5a7(0x28e)],'unitIDs':[_0x11c06d],'isForwarded':!0x1});}['disposeUnit'](_0x379195){const _0x888ea0=_0x3bc2c8;this[_0x888ea0(0x34f)][_0x888ea0(0x344)](_0x379195),this['_selfUnitIDs'][_0x888ea0(0x127)]===0x0&&this[_0x888ea0(0x290)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x3018bc=_0x3bc2c8;this[_0x3018bc(0x131)](_0x5b7cfd[_0x3018bc(0x3d9)](_0x266483[_0x3018bc(0x408)](window,'storage')[_0x3018bc(0x2f5)](_0x1f4e3e=>{const _0xbb27ce=_0x3018bc;if(_0x1f4e3e[_0xbb27ce(0x438)]!==_0x5f0b59||!_0x1f4e3e[_0xbb27ce(0x44b)])return;const _0x2c9bb3=JSON[_0xbb27ce(0x4ec)](_0x1f4e3e['newValue']);this['_handleEvent'](_0x2c9bb3);}))),window[_0x3018bc(0x435)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x3018bc(0x28e)],'unitIDs':Array[_0x3018bc(0x1e3)](this[_0x3018bc(0x34f)])}));}[_0x3bc2c8(0x3b4)](_0x44c83b){const _0x1aadd4=_0x3bc2c8;switch(_0x44c83b['type']){case 0x0:this[_0x1aadd4(0x18c)](_0x44c83b);break;case 0x1:this[_0x1aadd4(0x10f)](_0x44c83b);break;case 0x2:this['_handleHeartbeatEvent'](_0x44c83b);break;}}[_0x3bc2c8(0x18c)](_0x55828a){const _0x1b0d7f=_0x3bc2c8,{unitIDs:_0x3d2640,memberID:_0x4c3cbb,isForwarded:_0x5e176b}=_0x55828a;_0x3d2640[_0x1b0d7f(0x255)](_0x531a15=>{const _0x548529=_0x1b0d7f;if(!_0x5e176b&&this[_0x548529(0x34c)][_0x548529(0x232)](_0x531a15)&&this['_ensureSubject'](_0x531a15)[_0x548529(0xe4)](0x1),!this[_0x548529(0x34c)]['has'](_0x531a15)||!this[_0x548529(0x34c)][_0x548529(0x451)](_0x531a15)['has'](_0x4c3cbb)){const _0x560ad4=this[_0x548529(0x34c)]['get'](_0x531a15)||new Set();_0x560ad4[_0x548529(0x225)](_0x4c3cbb),this[_0x548529(0x34c)][_0x548529(0x10d)](_0x531a15,_0x560ad4),this[_0x548529(0x383)](_0x4c3cbb);}}),_0x5e176b||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1b0d7f(0x34f)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x18119c){const _0x12a0c5=_0x3bc2c8;this[_0x12a0c5(0x23e)](_0x18119c);const _0x3e4ec7=window[_0x12a0c5(0x19f)](()=>{this['_unitOnClients']['forEach'](_0x303923=>{const _0x5c6221=_0x4f28;_0x303923[_0x5c6221(0x344)](_0x18119c);});},_0x2ff85a*0x2);this['_clearOtherTimers'][_0x12a0c5(0x10d)](_0x18119c,_0x3e4ec7);}[_0x3bc2c8(0x23e)](_0x5ecec9){const _0x592b9d=_0x3bc2c8;if(this[_0x592b9d(0x4dc)][_0x592b9d(0x232)](_0x5ecec9)){const _0x34c26c=this[_0x592b9d(0x4dc)][_0x592b9d(0x451)](_0x5ecec9);_0x34c26c&&window['clearTimeout'](_0x34c26c),this[_0x592b9d(0x4dc)]['set'](_0x5ecec9,null);}}[_0x3bc2c8(0x10f)](_0x3595eb){const _0x3d2d57=_0x3bc2c8,{memberID:_0x22d169,unitIDs:_0x3670ad}=_0x3595eb;_0x3670ad['forEach'](_0x167345=>{const _0x6b2ffd=_0x4f28;var _0x28f9a3;const _0x5c9ba2=this[_0x6b2ffd(0x34c)][_0x6b2ffd(0x451)](_0x167345);_0x5c9ba2&&(_0x5c9ba2[_0x6b2ffd(0x344)](_0x22d169),(_0x28f9a3=this[_0x6b2ffd(0x169)](_0x167345))==null||_0x28f9a3[_0x6b2ffd(0xe4)](_0x5c9ba2[_0x6b2ffd(0x127)]===0x0?0x0:0x1));}),this[_0x3d2d57(0x23e)](_0x22d169);}[_0x3bc2c8(0x144)](_0x3f9189){const _0x3dc727=_0x3bc2c8;this[_0x3dc727(0x383)](_0x3f9189[_0x3dc727(0x48f)]);}[_0x3bc2c8(0x1ca)](_0x105a7f){const _0x722b35=_0x3bc2c8;localStorage[_0x722b35(0x3bc)](_0x5f0b59,JSON['stringify'](_0x105a7f));}[_0x3bc2c8(0x11f)](){const _0x5bba74=_0x3bc2c8;this[_0x5bba74(0x290)]=window['setInterval'](()=>{const _0x53d2cb=_0x5bba74;this[_0x53d2cb(0x1ca)]({'type':0x2,'memberID':this[_0x53d2cb(0x28e)]});},_0x2ff85a);}[_0x3bc2c8(0x169)](_0x27a358){const _0x53d96e=_0x3bc2c8;return this[_0x53d96e(0x15d)][_0x53d96e(0x232)](_0x27a358)||this[_0x53d96e(0x15d)][_0x53d96e(0x10d)](_0x27a358,new _0x266483['BehaviorSubject'](0x0)),this['_unitStatus']['get'](_0x27a358);}}function _0x57f458(_0x54c21b){let _0x218d1b='';for(const _0x39835b of _0x54c21b){const {startOffset:_0x47d93f,endOffset:_0x2c060c,isActive:_0x303554}=_0x39835b;_0x218d1b['length']&&(_0x218d1b+=','),_0x218d1b+=_0x47d93f+':'+_0x2c060c+':'+(_0x303554?'1':'0');}return _0x218d1b;}function _0x39789b(_0x11fe73){const _0x2b642b=_0x3bc2c8,_0x40bf89=_0x11fe73[_0x2b642b(0x1f6)](','),_0x1e182f=[];for(const _0x3a45ec of _0x40bf89){const [_0x1d494c,_0x21b082,_0x3d050c]=_0x3a45ec['split'](':');_0x1e182f[_0x2b642b(0x13d)]({'startOffset':Number(_0x1d494c),'endOffset':Number(_0x21b082),'collapsed':_0x1d494c===_0x21b082,'isActive':_0x3d050c==='1'});}return _0x1e182f['some'](_0x52b846=>_0x52b846[_0x2b642b(0x2aa)])||(_0x1e182f[0x0]['isActive']=!0x0),_0x1e182f;}class _0x56b650 extends _0x5b7cfd['RxDisposable']{constructor(){const _0x5cf14c=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0x5cf14c(0x380),new _0x266483[(_0x5cf14c(0x43e))](null)),_0x314dc6(this,_0x5cf14c(0x1b9),this[_0x5cf14c(0x380)][_0x5cf14c(0x4eb)]());}[_0x3bc2c8(0x195)](_0x29d1f9){const {unitID:_0x47bbea,memberID:_0x306b56,textRanges:_0x130a82}=_0x29d1f9,_0xdaef17=_0x57f458(_0x130a82),_0x5e305a={'unitID':_0x47bbea,'memberID':_0x306b56,'selection':_0xdaef17};this['_collabCursorState$']['next'](_0x5e305a);}}var _0x926cc6=Object[_0x3bc2c8(0x361)],_0x3c39c9=Object[_0x3bc2c8(0x48b)],_0x14fbbb=(_0xc9eb79,_0x1825b5,_0x4c167a,_0x19d5a3)=>{for(var _0x5a64db=_0x19d5a3>0x1?void 0x0:_0x19d5a3?_0x3c39c9(_0x1825b5,_0x4c167a):_0x1825b5,_0x5f48cf=_0xc9eb79['length']-0x1,_0x4da180;_0x5f48cf>=0x0;_0x5f48cf--)(_0x4da180=_0xc9eb79[_0x5f48cf])&&(_0x5a64db=(_0x19d5a3?_0x4da180(_0x1825b5,_0x4c167a,_0x5a64db):_0x4da180(_0x5a64db))||_0x5a64db);return _0x19d5a3&&_0x5a64db&&_0x926cc6(_0x1825b5,_0x4c167a,_0x5a64db),_0x5a64db;},_0x527238=(_0xa17694,_0x2e12a7)=>(_0x5b008c,_0x1b5b5b)=>_0x2e12a7(_0x5b008c,_0x1b5b5b,_0xa17694);let _0x12ef35=class{constructor(_0x12c520,_0x40e9ba){const _0x2281c4=_0x3bc2c8;this[_0x2281c4(0x30f)]=_0x12c520,this[_0x2281c4(0x3a1)]=_0x40e9ba;}['transformSelections'](_0x3a4a99){const _0x425454=_0x3bc2c8;var _0x3c81b4;const _0x42182b=this['_injector']['get'](_0x3e2148[_0x425454(0x2c1)]),_0x348b63=(_0x3c81b4=_0x42182b['getDocRanges']())!=null?_0x3c81b4:[];if(_0x348b63['length']===0x0)return;const _0x34e866=[{'id':_0x425454(0x2d2),'params':{'unitId':_0x3a4a99[_0x425454(0x1b0)],'actions':null,'textRanges':_0x348b63}}],_0x1ce4a3=this[_0x425454(0x3a1)]['transformMutationsWithChangeset'](_0x3a4a99,_0x34e866);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x1ce4a3))throw _0x1ce4a3[_0x425454(0x476)];const _0x4285f4=_0x1ce4a3['m2Prime'][0x0][_0x425454(0x3c2)][_0x425454(0x138)];Array[_0x425454(0x1cc)](_0x4285f4)&&_0x4285f4[_0x425454(0x3d6)]&&_0x42182b[_0x425454(0x464)](_0x4285f4,!0x1);}};_0x12ef35=_0x14fbbb([_0x527238(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x527238(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x12ef35);const _0x2533e1=new Set([_0xa62622[_0x3bc2c8(0x253)]['id']]);function _0x23aaad(_0x5c6ed7,_0x1c1d36,_0x18af57,_0x659c13,_0x476de7){const _0x386e65=_0x3bc2c8;var _0x194661,_0x2544f1,_0xb514e,_0x37436b;const _0x2485da=[];for(const _0xfe7d57 of _0x5c6ed7)if(_0x2533e1[_0x386e65(0x232)](_0xfe7d57['id'])){if(_0x2485da[_0x386e65(0x3d6)]>0x0)break;_0x2485da['push'](_0xfe7d57);break;}else _0x2485da[_0x386e65(0x13d)](_0xfe7d57);const _0x4ab587=(_0x2544f1=(_0x194661=_0x476de7[_0x386e65(0x105)]())==null?void 0x0:_0x194661[_0x386e65(0x13e)])!=null?_0x2544f1:_0x386e65(0x388),_0x51b4e2=(_0x37436b=(_0xb514e=_0x476de7[_0x386e65(0x105)]())==null?void 0x0:_0xb514e[_0x386e65(0x48f)])!=null?_0x37436b:_0x386e65(0x388);return{'changeset':{'unitID':_0x1c1d36,'type':_0x56cbe4[_0x386e65(0x24a)](_0x18af57[_0x386e65(0x28c)](_0x1c1d36)),'baseRev':_0x659c13[_0x386e65(0x22d)](_0x1c1d36),'revision':0x0,'userID':_0x4ab587,'memberID':_0x51b4e2,'mutations':_0x2485da},'pendingMutations':_0x5c6ed7[_0x386e65(0xef)](_0x2485da[_0x386e65(0x3d6)])};}function _0x581ccf(_0x4dbf9a,_0xb10010,_0x5310ad,_0x47ae78,_0x5bb3d3){const _0x41eb76=_0x3bc2c8;var _0x1fde3a,_0xdd26d6,_0x561dcd,_0x482c07;const _0x5319f1=[_0x4dbf9a[_0x41eb76(0x4f1)]((_0x45c534,_0x1a762f)=>{const _0x32f2f0=_0x41eb76;var _0x8d6ec6;const {id:_0x1d8173}=_0x45c534,{id:_0x294d01,type:_0x199c78}=_0x1a762f,_0x294dc4=(_0x8d6ec6=_0x45c534['params'])!=null?_0x8d6ec6:{'actions':null},_0x50d7c3=_0x1a762f[_0x32f2f0(0x3c2)];if(_0x1d8173&&_0x1d8173!==_0x294d01)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1d8173+_0x32f2f0(0x1a7)+_0x294d01+'.');return{..._0x45c534,'id':_0x294d01,'type':_0x199c78,'params':{'unitId':_0x50d7c3[_0x32f2f0(0x373)],'textRanges':_0x50d7c3[_0x32f2f0(0x138)],'actions':_0x5b7cfd[_0x32f2f0(0x46c)][_0x32f2f0(0x14d)](_0x294dc4[_0x32f2f0(0x2fd)],_0x50d7c3[_0x32f2f0(0x2fd)])}};},{})],_0x24142e=(_0xdd26d6=(_0x1fde3a=_0x5bb3d3[_0x41eb76(0x105)]())==null?void 0x0:_0x1fde3a[_0x41eb76(0x13e)])!=null?_0xdd26d6:_0x41eb76(0x388),_0x5162a8=(_0x482c07=(_0x561dcd=_0x5bb3d3[_0x41eb76(0x105)]())==null?void 0x0:_0x561dcd[_0x41eb76(0x48f)])!=null?_0x482c07:_0x41eb76(0x388);return{'changeset':{'unitID':_0xb10010,'type':_0x56cbe4[_0x41eb76(0x24a)](_0x5310ad[_0x41eb76(0x28c)](_0xb10010)),'baseRev':_0x47ae78[_0x41eb76(0x22d)](_0xb10010),'revision':0x0,'userID':_0x24142e,'memberID':_0x5162a8,'mutations':_0x5319f1},'pendingMutations':[]};}const _0x5844c5={'id':_0xa62622[_0x3bc2c8(0x196)]['id'],'type':_0x5b7cfd['CommandType'][_0x3bc2c8(0x374)],'params':{}};var _0x2ccec7=Object[_0x3bc2c8(0x361)],_0x1b82a6=Object['getOwnPropertyDescriptor'],_0x107b64=(_0x9cd2b,_0x2317c4,_0x38a486,_0xd104d)=>{const _0x738a90=_0x3bc2c8;for(var _0x2b8bea=_0xd104d>0x1?void 0x0:_0xd104d?_0x1b82a6(_0x2317c4,_0x38a486):_0x2317c4,_0x1c8134=_0x9cd2b[_0x738a90(0x3d6)]-0x1,_0x2f6e87;_0x1c8134>=0x0;_0x1c8134--)(_0x2f6e87=_0x9cd2b[_0x1c8134])&&(_0x2b8bea=(_0xd104d?_0x2f6e87(_0x2317c4,_0x38a486,_0x2b8bea):_0x2f6e87(_0x2b8bea))||_0x2b8bea);return _0xd104d&&_0x2b8bea&&_0x2ccec7(_0x2317c4,_0x38a486,_0x2b8bea),_0x2b8bea;},_0x45b06d=(_0x41e99d,_0x43bc76)=>(_0x1c98aa,_0x48f161)=>_0x43bc76(_0x1c98aa,_0x48f161,_0x41e99d),_0x5926c5=(_0x4ee04d=>(_0x4ee04d[_0x3bc2c8(0x352)]='not_collab',_0x4ee04d[_0x3bc2c8(0xfd)]='synced',_0x4ee04d[_0x3bc2c8(0x263)]='pending',_0x4ee04d[_0x3bc2c8(0x4b9)]=_0x3bc2c8(0x265),_0x4ee04d[_0x3bc2c8(0x268)]=_0x3bc2c8(0x41a),_0x4ee04d[_0x3bc2c8(0x104)]=_0x3bc2c8(0x4a1),_0x4ee04d[_0x3bc2c8(0x35d)]=_0x3bc2c8(0x209),_0x4ee04d[_0x3bc2c8(0x3b0)]=_0x3bc2c8(0x392),_0x4ee04d))(_0x5926c5||{});class _0xa8a4b9{constructor(_0x107178,_0x4959cd,_0x1f7f91,_0x33b089,_0x255e1d,_0x40cf48,_0x470c01,_0x22209c,_0x301d64){const _0x5d1b03=_0x3bc2c8;_0x314dc6(this,_0x5d1b03(0x4e1),null),_0x314dc6(this,'_pendingMutations',[]),(this[_0x5d1b03(0x1b0)]=_0x107178,this[_0x5d1b03(0x413)]=_0x4959cd,this[_0x5d1b03(0x1f7)]=_0x255e1d,this[_0x5d1b03(0x2c6)]=_0x40cf48,this[_0x5d1b03(0x310)]=_0x470c01,this[_0x5d1b03(0x49a)]=_0x22209c,this['_localCacheService']=_0x301d64,this['_awaitingChangeset']=_0x1f7f91,this[_0x5d1b03(0x3e2)]=_0x33b089);}['_checkMissing'](_0x513164){const _0x1ff405=_0x3bc2c8,_0x1d495b=this[_0x1ff405(0x49a)][_0x1ff405(0x22d)](this[_0x1ff405(0x1b0)]);return _0x513164[_0x1ff405(0x1b1)]>_0x1d495b+0x1?(this[_0x1ff405(0x1f7)][_0x1ff405(0x514)]({'from':_0x1d495b,'to':_0x513164[_0x1ff405(0x1b1)]-0x1}),!0x0):!0x1;}[_0x3bc2c8(0x199)](_0x414360){const _0x1a190e=_0x3bc2c8;this[_0x1a190e(0x310)][_0x1a190e(0x1c6)](this[_0x1a190e(0x1b0)],_0x414360);}['_transformSelections'](_0x27927b){const _0x4760f9=_0x3bc2c8;var _0x1f4121,_0x201739;(_0x201739=(_0x1f4121=this[_0x4760f9(0x1f7)])[_0x4760f9(0x4b2)])==null||_0x201739[_0x4760f9(0x126)](_0x1f4121,_0x27927b);}[_0x3bc2c8(0x461)](_0xbeb817){const _0x27ce0b=_0x3bc2c8;var _0x55fb08,_0x2c23ff;return(_0x2c23ff=(_0x55fb08=this[_0x27ce0b(0x1f7)])[_0x27ce0b(0x1a9)])==null?void 0x0:_0x2c23ff['call'](_0x55fb08,_0xbeb817);}[_0x3bc2c8(0x3b2)](_0x5a637e){const _0xe1bb4a=_0x3bc2c8;var _0x14d300,_0x4508df,_0x3b8c81;return(_0x3b8c81=(_0x4508df=(_0x14d300=this[_0xe1bb4a(0x1f7)])[_0xe1bb4a(0x258)])==null?void 0x0:_0x4508df[_0xe1bb4a(0x126)](_0x14d300,_0x5a637e))!=null?_0x3b8c81:_0x5a637e;}[_0x3bc2c8(0x44a)](_0x9e0a33){const _0x51a77e=_0x3bc2c8;var _0x5360e0,_0xcebb28;if(this[_0x51a77e(0x413)]===_0x249560[_0x51a77e(0x3a6)]){const {unitID:_0x2014a6,mutations:_0x370dcd,memberID:_0x306380}=_0x9e0a33,_0x4d94e9=_0x370dcd[0x0][_0x51a77e(0x3c2)]['textRanges'];Array['isArray'](_0x4d94e9)&&_0x4d94e9[_0x51a77e(0x3d6)]>0x0&&((_0xcebb28=(_0x5360e0=this[_0x51a77e(0x1f7)])[_0x51a77e(0x2e0)])==null||_0xcebb28['call'](_0x5360e0,{'unitID':_0x2014a6,'memberID':_0x306380,'textRanges':_0x4d94e9}));}}[_0x3bc2c8(0x100)](){const _0x137635=_0x3bc2c8;this['_localCacheService'][_0x137635(0x4ee)](this[_0x137635(0x1b0)],this['type'],this[_0x137635(0x4e1)],this[_0x137635(0x3e2)]);}['_getCurrentRevision'](){const _0x33ffe7=_0x3bc2c8;return this[_0x33ffe7(0x49a)][_0x33ffe7(0x22d)](this[_0x33ffe7(0x1b0)]);}[_0x3bc2c8(0x393)](){const _0x373fcc=_0x3bc2c8;this[_0x373fcc(0x49a)][_0x373fcc(0x157)](this[_0x373fcc(0x1b0)]);}[_0x3bc2c8(0x350)](_0xa3dc7f){const _0x67958a=_0x3bc2c8;var _0x38b6fa;const _0x594c24=this['_transformRemoteChangesetByIMECache'](_0xa3dc7f),_0x31d86b=_0x5b7cfd[_0x67958a(0x16b)](_0x594c24[_0x67958a(0x1fc)],this[_0x67958a(0x2c6)],{'fromCollab':!0x0});if(!_0x31d86b['result'])throw _0x31d86b[_0x67958a(0x476)]instanceof Error?_0x31d86b['error']:new Error((_0x38b6fa=_0x31d86b[_0x67958a(0x476)])!=null?_0x38b6fa:_0x67958a(0x216));this[_0x67958a(0x461)](_0x594c24),this['_transformUndoredo'](_0xa3dc7f),this[_0x67958a(0x421)](_0x594c24),this[_0x67958a(0x44a)](_0x594c24),this[_0x67958a(0x393)]();}}let _0x5124ae=class extends _0xa8a4b9{constructor(_0x2cf784,_0xb7b634,_0x479646,_0x4babc5,_0x5581d3,_0x3e834a,_0x9da254,_0x5aa283,_0x3c4caf,_0x58023c){const _0x32f659=_0x3bc2c8;super(_0x2cf784,_0xb7b634,null,[],_0x479646,_0x5aa283,_0x9da254,_0x4babc5,_0x5581d3),_0x314dc6(this,_0x32f659(0x4ad),_0x32f659(0x11e)),(this['_injector']=_0x3e834a,this[_0x32f659(0x4e7)]=_0x3c4caf,this['_transformService']=_0x58023c);}[_0x3bc2c8(0x295)](_0xf9323d){const _0x45492b=_0x3bc2c8,_0x413863=this[_0x45492b(0x30f)][_0x45492b(0x1a3)](_0x5f4482,this[_0x45492b(0x1b0)],this[_0x45492b(0x413)],[_0xf9323d],this[_0x45492b(0x1f7)]);return _0x413863[_0x45492b(0x364)](),_0x413863[_0x45492b(0x100)](),_0x413863;}[_0x3bc2c8(0x384)](_0x1a2dfd){const _0x5a52ad=_0x3bc2c8;if(this['_checkMissing'](_0x1a2dfd))return this[_0x5a52ad(0x30f)][_0x5a52ad(0x1a3)](_0x75f119,this[_0x5a52ad(0x1b0)],this[_0x5a52ad(0x413)],null,[],null,[_0x1a2dfd],this[_0x5a52ad(0x1f7)]);try{const _0x138527=this[_0x5a52ad(0x3a1)][_0x5a52ad(0x4b8)](_0x1a2dfd,[_0x5844c5]);if(_0x56cbe4[_0x5a52ad(0x180)](_0x138527)){const {c1Prime:_0x158cc1}=_0x138527;return this[_0x5a52ad(0x350)](_0x158cc1),this;}throw _0x138527[_0x5a52ad(0x476)];}catch(_0x2ece6d){return this[_0x5a52ad(0x4e7)]['error'](_0x2ece6d),this['_onConflict'](!0x1);}}[_0x3bc2c8(0x2be)](_0x2d9bf9){const _0x101b73=_0x3bc2c8;return this[_0x101b73(0x30f)][_0x101b73(0x1a3)](_0x20ac70,this[_0x101b73(0x1b0)],this[_0x101b73(0x413)],null,[],this[_0x101b73(0x1f7)],_0x2d9bf9);}[_0x3bc2c8(0xf5)](){const _0x4b0257=_0x3bc2c8;throw new Error(_0x4b0257(0x137));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x42f11c=_0x3bc2c8;return this[_0x42f11c(0x30f)][_0x42f11c(0x1a3)](_0x8646cf,this['unitID'],this[_0x42f11c(0x413)],null,[],this[_0x42f11c(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}[_0x3bc2c8(0x423)](){const _0x3551ee=_0x3bc2c8;throw new Error(_0x3551ee(0x12f));}['fetchMiss'](){const _0x2c1ffb=_0x3bc2c8,_0x55bbfb=this[_0x2c1ffb(0x49a)][_0x2c1ffb(0x22d)](this[_0x2c1ffb(0x1b0)]);return this[_0x2c1ffb(0x1f7)]['onMissingChangesets']({'from':_0x55bbfb,'to':0x0}),this[_0x2c1ffb(0x30f)][_0x2c1ffb(0x1a3)](_0x75f119,this['unitID'],this[_0x2c1ffb(0x413)],null,[],null,[],this[_0x2c1ffb(0x1f7)]);}};_0x5124ae=_0x107b64([_0x45b06d(0x3,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x5124ae);let _0x5f4482=class extends _0xa8a4b9{constructor(_0x46af10,_0x531f0e,_0x4ffd47,_0x5795fe,_0x427166,_0x2f2892,_0x15d815,_0x309bfb,_0x25670a,_0x4a0b74,_0x334f9f,_0x5b13c6,_0x1c30a9,_0x4bc876){const _0x5d6087=_0x3bc2c8;super(_0x46af10,_0x531f0e,null,_0x4ffd47,_0x5795fe,_0x4a0b74,_0x4bc876,_0x2f2892,_0x15d815),_0x314dc6(this,_0x5d6087(0x4ad),_0x5d6087(0x389)),_0x314dc6(this,_0x5d6087(0x430),null),_0x314dc6(this,_0x5d6087(0x32f),null),(this[_0x5d6087(0x30f)]=_0x427166,this[_0x5d6087(0x159)]=_0x309bfb,this[_0x5d6087(0x4e7)]=_0x25670a,this[_0x5d6087(0x4cb)]=_0x334f9f,this[_0x5d6087(0x3a1)]=_0x5b13c6,this[_0x5d6087(0x10b)]=_0x1c30a9);}[_0x3bc2c8(0x295)](_0x440a67){return this['_pendingMutations']['push'](_0x440a67),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x323a16){const _0xadd395=_0x3bc2c8;if(this[_0xadd395(0x36f)](_0x323a16))return this['_clearScheduledTask'](),this[_0xadd395(0x30f)]['createInstance'](_0x75f119,this[_0xadd395(0x1b0)],this[_0xadd395(0x413)],null,this['_pendingMutations'],null,[_0x323a16],this['_handler']);try{const _0x457f3d=this[_0xadd395(0x3a1)][_0xadd395(0x4b8)](_0x323a16,this[_0xadd395(0x3e2)]);if(_0x56cbe4[_0xadd395(0x180)](_0x457f3d)){const {c1Prime:_0x1581ba,m2Prime:_0x1b46ff}=_0x457f3d;this['_executeRemoteChangeset'](_0x1581ba);const _0x312ad4=this[_0xadd395(0x30f)]['createInstance'](_0x5f4482,this[_0xadd395(0x1b0)],this[_0xadd395(0x413)],_0x1b46ff,this[_0xadd395(0x1f7)]);return this['_clearScheduledTask'](),_0x312ad4[_0xadd395(0x364)](this[_0xadd395(0x430)]?Math[_0xadd395(0x26a)](0x0,new Date()[_0xadd395(0x3f3)]()-this[_0xadd395(0x430)]):this['_getSendChangesetTimeout']()),_0x312ad4;}throw _0x457f3d[_0xadd395(0x476)];}catch(_0x1de043){return this[_0xadd395(0x4e7)]['error'](_0x1de043),this[_0xadd395(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](){const _0x129a5d=_0x3bc2c8;throw new Error(_0x129a5d(0x43b));}[_0x3bc2c8(0x38f)](){const _0x486359=_0x3bc2c8;throw new Error(_0x486359(0x25a));}['toggleOffline'](){const _0x2c7f09=_0x3bc2c8;return this[_0x2c7f09(0x2a8)](),this[_0x2c7f09(0x30f)][_0x2c7f09(0x1a3)](_0x8646cf,this[_0x2c7f09(0x1b0)],this[_0x2c7f09(0x413)],null,this[_0x2c7f09(0x3e2)],this[_0x2c7f09(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}['_schedule'](_0x31792b){const _0x41a8b1=_0x3bc2c8,_0x52aade=_0x31792b!=null?_0x31792b:this[_0x41a8b1(0x4fc)]();this[_0x41a8b1(0x430)]=new Date()[_0x41a8b1(0x3f3)](),this[_0x41a8b1(0x32f)]=window[_0x41a8b1(0x19f)](()=>{const _0x4be336=_0x41a8b1;this[_0x4be336(0x2a8)]();let _0x3983ad=null;switch(this[_0x4be336(0x413)]){case _0x249560[_0x4be336(0x301)]:{_0x3983ad=_0x23aaad(this['_pendingMutations'],this[_0x4be336(0x1b0)],this[_0x4be336(0x10b)],this['_revisionService'],this[_0x4be336(0x159)]);break;}case _0x249560['UNIVER_DOC']:{this[_0x4be336(0x3e2)][_0x4be336(0x201)](_0x2550ee=>_0x2550ee['id']===_0x3e2148[_0x4be336(0x368)]['id'])?_0x3983ad=_0x581ccf(this[_0x4be336(0x3e2)],this['unitID'],this[_0x4be336(0x10b)],this[_0x4be336(0x49a)],this[_0x4be336(0x159)]):_0x3983ad=_0x23aaad(this['_pendingMutations'],this['unitID'],this[_0x4be336(0x10b)],this['_revisionService'],this[_0x4be336(0x159)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4be336(0x413)]+'\x20in\x20_schedule.');}const {changeset:_0x35c3d3,pendingMutations:_0x18b4ae}=_0x3983ad;this[_0x4be336(0x1f7)][_0x4be336(0x3d5)](_0x35c3d3);const _0x2f9502=_0x18b4ae[_0x4be336(0x3d6)]?this['_injector'][_0x4be336(0x1a3)](_0x22cc58,this[_0x4be336(0x1b0)],this['type'],_0x35c3d3,_0x18b4ae,this[_0x4be336(0x1f7)]):this[_0x4be336(0x30f)][_0x4be336(0x1a3)](_0x3cd767,this[_0x4be336(0x1b0)],this[_0x4be336(0x413)],_0x35c3d3,this[_0x4be336(0x1f7)]);_0x2f9502[_0x4be336(0x100)](),this[_0x4be336(0x1f7)][_0x4be336(0x311)](this,_0x2f9502);},_0x52aade);}[_0x3bc2c8(0x4fc)](){const _0x2fb5a6=_0x3bc2c8;var _0x122a7a;const _0xa13b0b=this[_0x2fb5a6(0x4cb)]['getConfig'](_0xa50aed);return(_0x122a7a=_0xa13b0b==null?void 0x0:_0xa13b0b[_0x2fb5a6(0x42b)])!=null?_0x122a7a:0x7d0;}['resend'](){const _0x5f3889=_0x3bc2c8;throw new Error(_0x5f3889(0x4af));}[_0x3bc2c8(0x2a8)](){const _0x1505e9=_0x3bc2c8;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1505e9(0x32f)]),this['_sendingTimer']=null);}['_onConflict'](_0x3467db){const _0x3710d4=_0x3bc2c8;return this[_0x3710d4(0x2a8)](),this[_0x3710d4(0x30f)]['createInstance'](_0x20ac70,this[_0x3710d4(0x1b0)],this[_0x3710d4(0x413)],null,this[_0x3710d4(0x3e2)],this[_0x3710d4(0x1f7)],_0x3467db);}};_0x5f4482=_0x107b64([_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x45b06d(0x7,_0x5b7cfd['Inject'](_0x587d5a)),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x5b7cfd['ICommandService']),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x45b06d(0xb,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xc,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x45b06d(0xd,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x5f4482);let _0x3cd767=class extends _0xa8a4b9{constructor(_0x531107,_0x5a6253,_0x3b2f4e,_0x406d7a,_0x2011ad,_0x190bf6,_0x27a2a3,_0x11a400,_0x10d5f2,_0x59ba25,_0x14266d){const _0x23614f=_0x3bc2c8;super(_0x531107,_0x5a6253,_0x3b2f4e,[],_0x406d7a,_0x11a400,_0x14266d,_0x190bf6,_0x27a2a3),_0x314dc6(this,'status','awaiting'),(this['_injector']=_0x2011ad,this[_0x23614f(0x4e7)]=_0x10d5f2,this[_0x23614f(0x3a1)]=_0x59ba25);}[_0x3bc2c8(0x295)](_0x2ac3ce){const _0xc70673=_0x3bc2c8,_0x145a33=this[_0xc70673(0x30f)]['createInstance'](_0x22cc58,this[_0xc70673(0x1b0)],this['type'],this[_0xc70673(0x4e1)],[_0x2ac3ce],this[_0xc70673(0x1f7)]);return _0x145a33['_updateLocalCache'](),_0x145a33;}[_0x3bc2c8(0x384)](_0xf8e6){const _0x189aaa=_0x3bc2c8;if(this[_0x189aaa(0x36f)](_0xf8e6))return this[_0x189aaa(0x30f)]['createInstance'](_0x75f119,this[_0x189aaa(0x1b0)],this[_0x189aaa(0x413)],this['_awaitingChangeset'],[],null,[_0xf8e6],this[_0x189aaa(0x1f7)]);try{const _0x1a905f=this['_transformService'][_0x189aaa(0x175)]([_0xf8e6],[this[_0x189aaa(0x4e1)]],!0x1);if(_0x56cbe4['isTransformChangesetsSuccess'](_0x1a905f)){const {c1Prime:_0x59a6c1,c2Prime:_0xbd6a85}=_0x1a905f;this[_0x189aaa(0x350)](_0x59a6c1[0x0]),_0xbd6a85[0x0][_0x189aaa(0x143)]=this[_0x189aaa(0x21c)]();const _0x1e5f41=this[_0x189aaa(0x30f)][_0x189aaa(0x1a3)](_0x3cd767,this[_0x189aaa(0x1b0)],this[_0x189aaa(0x413)],_0xbd6a85[0x0],this[_0x189aaa(0x1f7)]);return _0x1e5f41[_0x189aaa(0x100)](),_0x1e5f41;}return this[_0x189aaa(0x2be)](!0x1);}catch(_0x191ed2){return this[_0x189aaa(0x4e7)]['error'](_0x191ed2),this[_0x189aaa(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](_0x1e1d56){const _0x19b2dd=_0x3bc2c8,_0x202927=this[_0x19b2dd(0x49a)]['getCurrentRevOfUnit'](this[_0x19b2dd(0x1b0)]);if(_0x1e1d56['revision']<_0x202927-0x1)return this;if(this['_checkMissing'](_0x1e1d56))return this[_0x19b2dd(0x30f)]['createInstance'](_0x75f119,this[_0x19b2dd(0x1b0)],this[_0x19b2dd(0x413)],null,[],this[_0x19b2dd(0x4e1)],[],this['_handler']);this[_0x19b2dd(0x393)]();const _0x501f1c=this[_0x19b2dd(0x30f)][_0x19b2dd(0x1a3)](_0x5124ae,this[_0x19b2dd(0x1b0)],this[_0x19b2dd(0x413)],this[_0x19b2dd(0x1f7)]);return _0x501f1c[_0x19b2dd(0x100)](),_0x501f1c;}[_0x3bc2c8(0x38f)](_0x4e1176){const _0x2351d7=_0x3bc2c8;return this[_0x2351d7(0x2be)](!!(_0x4e1176!=null&&_0x4e1176[_0x2351d7(0x30a)]));}[_0x3bc2c8(0x495)](){const _0x2a81e2=_0x3bc2c8;return this['_injector']['createInstance'](_0x8646cf,this[_0x2a81e2(0x1b0)],this['type'],this[_0x2a81e2(0x4e1)],[],this[_0x2a81e2(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}['resend'](){const _0x23d279=_0x3bc2c8;this[_0x23d279(0x1f7)][_0x23d279(0x3d5)](this[_0x23d279(0x4e1)]);}[_0x3bc2c8(0x2be)](_0x2f36a9){const _0xbd5355=_0x3bc2c8;return this[_0xbd5355(0x30f)][_0xbd5355(0x1a3)](_0x20ac70,this[_0xbd5355(0x1b0)],this[_0xbd5355(0x413)],this[_0xbd5355(0x4e1)],[],this[_0xbd5355(0x1f7)],_0x2f36a9);}};_0x3cd767=_0x107b64([_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x45b06d(0x5,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xa,_0x5b7cfd['IUndoRedoService'])],_0x3cd767);let _0x22cc58=class extends _0xa8a4b9{constructor(_0x59bf00,_0x1484f5,_0x92683b,_0x199bd8,_0xd01006,_0x39a265,_0x215c2b,_0x17d48f,_0x944381,_0x9190f0,_0x550378,_0x1e33d0){const _0x5ba40c=_0x3bc2c8;super(_0x59bf00,_0x1484f5,_0x92683b,_0x199bd8,_0xd01006,_0x944381,_0x1e33d0,_0x215c2b,_0x17d48f),_0x314dc6(this,_0x5ba40c(0x4ad),_0x5ba40c(0x41a)),(this[_0x5ba40c(0x30f)]=_0x39a265,this['_logService']=_0x9190f0,this['_transformService']=_0x550378);}[_0x3bc2c8(0x295)](_0x24e649){const _0x813a6f=_0x3bc2c8;return this[_0x813a6f(0x3e2)][_0x813a6f(0x13d)](_0x24e649),this;}[_0x3bc2c8(0x384)](_0x3afded){const _0x4c8613=_0x3bc2c8;if(this[_0x4c8613(0x36f)](_0x3afded))return this[_0x4c8613(0x30f)][_0x4c8613(0x1a3)](_0x75f119,this[_0x4c8613(0x1b0)],this['type'],this[_0x4c8613(0x4e1)],this[_0x4c8613(0x3e2)],null,[_0x3afded],this[_0x4c8613(0x1f7)]);try{const _0x389d42=this[_0x4c8613(0x3a1)][_0x4c8613(0x175)]([_0x3afded],[this[_0x4c8613(0x4e1)]],!0x1);if(_0x56cbe4['isTransformChangesetsSuccess'](_0x389d42)){const {c1Prime:_0x4e491b,c2Prime:_0x13cb9f}=_0x389d42,_0x3c6ef5=this[_0x4c8613(0x3a1)][_0x4c8613(0x4b8)](_0x4e491b[0x0],this['_pendingMutations']);if(_0x56cbe4[_0x4c8613(0x180)](_0x3c6ef5)){const {c1Prime:_0x202685,m2Prime:_0x47e621}=_0x3c6ef5;return this[_0x4c8613(0x350)](_0x202685),_0x13cb9f[0x0][_0x4c8613(0x143)]=this[_0x4c8613(0x21c)](),this['_injector']['createInstance'](_0x22cc58,this[_0x4c8613(0x1b0)],this[_0x4c8613(0x413)],_0x13cb9f[0x0],_0x47e621,this[_0x4c8613(0x1f7)]);}throw _0x3c6ef5[_0x4c8613(0x476)];}throw _0x389d42[_0x4c8613(0x476)];}catch(_0x24d1b7){return this[_0x4c8613(0x4e7)][_0x4c8613(0x476)](_0x24d1b7),this[_0x4c8613(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](_0x2e8e9c){const _0xe46b8c=_0x3bc2c8;if(this['_checkMissing'](_0x2e8e9c))return this[_0xe46b8c(0x30f)]['createInstance'](_0x75f119,this['unitID'],this[_0xe46b8c(0x413)],null,this[_0xe46b8c(0x3e2)],this[_0xe46b8c(0x4e1)],[],this['_handler']);this[_0xe46b8c(0x393)]();const _0x96419=this[_0xe46b8c(0x30f)][_0xe46b8c(0x1a3)](_0x5f4482,this[_0xe46b8c(0x1b0)],this[_0xe46b8c(0x413)],this[_0xe46b8c(0x3e2)],this[_0xe46b8c(0x1f7)]);return _0x96419[_0xe46b8c(0x364)](),_0x96419[_0xe46b8c(0x100)](),_0x96419;}['onRemoteRej'](_0x311f22){const _0x230ed0=_0x3bc2c8;return this[_0x230ed0(0x2be)](!!(_0x311f22!=null&&_0x311f22['isPermissionRej']));}['toggleOffline'](){const _0x481682=_0x3bc2c8;return this[_0x481682(0x30f)][_0x481682(0x1a3)](_0x8646cf,this[_0x481682(0x1b0)],this[_0x481682(0x413)],this['_awaitingChangeset'],this[_0x481682(0x3e2)],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x9abe91=_0x3bc2c8;this[_0x9abe91(0x1f7)][_0x9abe91(0x3d5)](this[_0x9abe91(0x4e1)]);}[_0x3bc2c8(0x2be)](_0xb0eff0){const _0x35bf37=_0x3bc2c8;return this[_0x35bf37(0x30f)][_0x35bf37(0x1a3)](_0x20ac70,this[_0x35bf37(0x1b0)],this[_0x35bf37(0x413)],null,this['_pendingMutations'],this['_handler'],_0xb0eff0);}};_0x22cc58=_0x107b64([_0x45b06d(0x5,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x7,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0xa,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x22cc58);let _0x20ac70=class extends _0xa8a4b9{constructor(_0x50a852,_0x4d4c73,_0x516984,_0x398c67,_0x566555,_0x4d5b35=!0x1,_0x160455,_0xcae5a9,_0x4ef7c3,_0x54efa7,_0x20c2e9,_0x4c8116,_0x3e9ffb){const _0x32e3d0=_0x3bc2c8;super(_0x50a852,_0x4d4c73,_0x516984,_0x398c67,_0x566555,_0xcae5a9,_0x4ef7c3,_0x20c2e9,_0x54efa7),_0x314dc6(this,_0x32e3d0(0x4ad),_0x32e3d0(0x209)),(this[_0x32e3d0(0x338)]=_0x4d5b35,this['_permissionService']=_0x160455,this[_0x32e3d0(0x24c)]=_0x4c8116,this['_notificationService']=_0x3e9ffb,this[_0x32e3d0(0x4e4)](),this[_0x32e3d0(0x43a)](),this[_0x32e3d0(0x11a)]());}['appendMutation'](){return this;}[_0x3bc2c8(0x384)](){return this;}[_0x3bc2c8(0xf5)](){return this;}[_0x3bc2c8(0x38f)](){return this;}['toggleOffline'](){return this;}[_0x3bc2c8(0x20e)](){return this;}[_0x3bc2c8(0x423)](){const _0x5a7e9d=_0x3bc2c8;throw new Error(_0x5a7e9d(0x1d7));}[_0x3bc2c8(0x43a)](){const _0x66db09=_0x3bc2c8;this[_0x66db09(0x3bf)][_0x66db09(0x4ee)](this[_0x66db09(0x1b0)],this[_0x66db09(0x413)],null,[]);}['_showConflictNotification'](){const _0x260573=_0x3bc2c8;this[_0x260573(0x338)]?this[_0x260573(0x29a)]['show']({'title':this[_0x260573(0x24c)]['t'](_0x260573(0x33b)),'content':this[_0x260573(0x24c)]['t'](_0x260573(0x406)),'type':_0x260573(0x476),'duration':0x0}):this[_0x260573(0x29a)][_0x260573(0x29f)]({'title':this[_0x260573(0x24c)]['t']('conflict.title'),'content':this[_0x260573(0x24c)]['t'](_0x260573(0x49f)),'type':_0x260573(0x476),'duration':0x0});}[_0x3bc2c8(0x11a)](){const _0x5e9a34=_0x3bc2c8;this[_0x5e9a34(0x106)][_0x5e9a34(0x37a)](new _0xa62622['WorkbookEditablePermission'](this[_0x5e9a34(0x1b0)])['id'],!0x1);}};_0x20ac70=_0x107b64([_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x342)])),_0x45b06d(0x7,_0x5b7cfd['ICommandService']),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0x9,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)])),_0x45b06d(0xc,_0x2ce95d[_0x3bc2c8(0x2c3)])],_0x20ac70);let _0x8646cf=class extends _0xa8a4b9{constructor(_0x233d32,_0x417e93,_0x3ab169,_0x20dbb7,_0x4488ac,_0x1b0954,_0xe45562,_0x4ec367,_0xd5b502,_0x4f2055){super(_0x233d32,_0x417e93,_0x3ab169,_0x20dbb7,_0x4488ac,_0xd5b502,_0x4f2055,_0xe45562,_0x4ec367),_0x314dc6(this,'status','offline'),this['_injector']=_0x1b0954;}['appendMutation'](_0x59b588){const _0x115cb3=_0x3bc2c8;return this[_0x115cb3(0x3e2)][_0x115cb3(0x13d)](_0x59b588),this[_0x115cb3(0x100)](),this;}[_0x3bc2c8(0x384)](_0x43afbe){const _0xfbcceb=_0x3bc2c8;throw new Error(_0xfbcceb(0x2a3));}[_0x3bc2c8(0xf5)](){const _0x441481=_0x3bc2c8;throw new Error(_0x441481(0x41d));}[_0x3bc2c8(0x38f)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3bc2c8(0x495)](){return this;}[_0x3bc2c8(0x20e)](){const _0x5bf9dc=_0x3bc2c8,{_injector:_0x1b8cb6,_pendingMutations:_0x4247b2,_awaitingChangeset:_0x2fde7f,unitID:_0x52200c,_handler:_0x19f373,type:_0x29abe6}=this,_0x3b373e=_0x3d51b3(_0x1b8cb6,_0x52200c,_0x29abe6,_0x2fde7f,_0x4247b2,_0x19f373);return _0x3b373e instanceof _0x5f4482?_0x3b373e[_0x5bf9dc(0x364)]():(_0x3b373e instanceof _0x22cc58||_0x3b373e instanceof _0x3cd767)&&_0x3b373e[_0x5bf9dc(0x423)](),_0x3b373e;}[_0x3bc2c8(0x423)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x8646cf=_0x107b64([_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x8646cf);let _0x75f119=class extends _0xa8a4b9{constructor(_0x330eec,_0xe7870b,_0x2d3642,_0xc74994,_0x2fd6fa,_0x1fbce8,_0x4abaf1,_0x4a7802,_0x2933ac,_0x129c6e,_0x27a531,_0x100628,_0x464f32,_0x34a5cd){const _0x113dd2=_0x3bc2c8;super(_0x330eec,_0xe7870b,_0x2d3642,_0xc74994,_0x4abaf1,_0x100628,_0x464f32,_0x2933ac,_0x129c6e),_0x314dc6(this,_0x113dd2(0x4ad),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x2fd6fa,this[_0x113dd2(0x189)]=_0x1fbce8,this[_0x113dd2(0x30f)]=_0x4a7802,this[_0x113dd2(0x4e7)]=_0x27a531,this[_0x113dd2(0x3a1)]=_0x34a5cd);}[_0x3bc2c8(0x42e)](_0x2026a0){const _0x489b8a=_0x3bc2c8;try{const _0x401404=[..._0x2026a0,...this['_queuedRemoteChangesets']],_0x328cde=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x489b8a(0x3b6)](_0x39916b=>!!_0x39916b);let _0x2917d4,_0x2575e6;if(_0x328cde[_0x489b8a(0x3d6)]){const _0x316b63=this[_0x489b8a(0x3a1)][_0x489b8a(0x175)](_0x401404,_0x328cde,!0x1);if(!_0x56cbe4[_0x489b8a(0x3c8)](_0x316b63))throw _0x316b63['error'];_0x2917d4=_0x316b63[_0x489b8a(0x1c9)],_0x2575e6=_0x316b63[_0x489b8a(0x191)];}else _0x2917d4=_0x401404,_0x2575e6=[];let _0x1dc054=this[_0x489b8a(0x3e2)];_0x2917d4[_0x489b8a(0x255)](_0x133760=>{const _0x4da725=_0x489b8a;let _0x2032fc;if(_0x1dc054[_0x4da725(0x3d6)]){const _0x183563=this['_transformService'][_0x4da725(0x4b8)](_0x133760,_0x1dc054);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x183563))throw _0x183563[_0x4da725(0x476)];_0x2032fc=_0x183563[_0x4da725(0x1c9)],_0x1dc054=_0x183563['m2Prime'];}else _0x2032fc=_0x133760;this['_executeRemoteChangeset'](_0x2032fc);}),this[_0x489b8a(0x45f)]&&this[_0x489b8a(0x393)](),this[_0x489b8a(0x4e1)]&&_0x2575e6[_0x489b8a(0x3d6)]&&(_0x2575e6[0x0]['baseRev']=this[_0x489b8a(0x21c)]());let _0x2afaba;if(this[_0x489b8a(0x4e1)]&&_0x1dc054[_0x489b8a(0x3d6)]!==0x0)_0x2afaba=this[_0x489b8a(0x30f)][_0x489b8a(0x1a3)](_0x22cc58,this[_0x489b8a(0x1b0)],this['type'],_0x2575e6[0x0],_0x1dc054,this[_0x489b8a(0x1f7)]);else{if(this[_0x489b8a(0x4e1)]&&_0x1dc054[_0x489b8a(0x3d6)]===0x0)_0x2575e6[0x0]['baseRev']=this[_0x489b8a(0x21c)](),_0x2afaba=this['_injector'][_0x489b8a(0x1a3)](_0x3cd767,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],_0x2575e6[0x0],this['_handler']);else{if(_0x1dc054[_0x489b8a(0x3d6)]!==0x0){const _0xdc773c=this['_injector']['createInstance'](_0x5f4482,this[_0x489b8a(0x1b0)],this['type'],_0x1dc054,this[_0x489b8a(0x1f7)]);_0xdc773c[_0x489b8a(0x364)](),_0x2afaba=_0xdc773c;}else _0x2afaba=this[_0x489b8a(0x30f)]['createInstance'](_0x5124ae,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],this[_0x489b8a(0x1f7)]);}}return _0x2afaba[_0x489b8a(0x100)](),_0x2afaba;}catch(_0x4d3adc){return this['_logService']['error'](_0x489b8a(0x513),_0x489b8a(0x12d),_0x4d3adc),this[_0x489b8a(0x30f)][_0x489b8a(0x1a3)](_0x20ac70,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],this[_0x489b8a(0x4e1)],this[_0x489b8a(0x3e2)],this[_0x489b8a(0x1f7)],!0x1);}}[_0x3bc2c8(0x423)](){const _0x1b9ab9=_0x3bc2c8;throw new Error(_0x1b9ab9(0x4d0));}['appendMutation'](_0x33b2dd){const _0x1ed4ae=_0x3bc2c8;return this[_0x1ed4ae(0x3e2)][_0x1ed4ae(0x13d)](_0x33b2dd),this;}[_0x3bc2c8(0x384)](_0x20714b){const _0x36afbf=_0x3bc2c8;return this[_0x36afbf(0x189)]['push'](_0x20714b),this;}[_0x3bc2c8(0xf5)](_0x3f0d5e){const _0x59243b=_0x3bc2c8;if(this['_awaitingChangeset'])return this[_0x59243b(0x45f)]=this[_0x59243b(0x4e1)],this[_0x59243b(0x4e1)]=null,this;throw new Error(_0x59243b(0x4fe));}[_0x3bc2c8(0x38f)](_0x133898){const _0x4a696c=_0x3bc2c8;return this['_onConflict'](!!(_0x133898!=null&&_0x133898[_0x4a696c(0x30a)]));}[_0x3bc2c8(0x495)](){const _0x1a12fa=_0x3bc2c8;return this[_0x1a12fa(0x30f)][_0x1a12fa(0x1a3)](_0x8646cf,this[_0x1a12fa(0x1b0)],this[_0x1a12fa(0x413)],this[_0x1a12fa(0x4e1)],this[_0x1a12fa(0x3e2)],this[_0x1a12fa(0x1f7)]);}['toggleOnline'](){return this;}[_0x3bc2c8(0x2be)](_0x2ef059){const _0x4c5517=_0x3bc2c8;return this[_0x4c5517(0x30f)][_0x4c5517(0x1a3)](_0x20ac70,this[_0x4c5517(0x1b0)],this[_0x4c5517(0x413)],this[_0x4c5517(0x4e1)],this[_0x4c5517(0x3e2)],this[_0x4c5517(0x1f7)],_0x2ef059);}};_0x75f119=_0x107b64([_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0xc,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0xd,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x75f119);function _0x3d51b3(_0x23d7f0,_0x42e99c,_0x51cf12,_0x30a137,_0x398708,_0x146776){const _0x436e3e=_0x3bc2c8;return _0x30a137&&_0x398708['length']?_0x23d7f0[_0x436e3e(0x1a3)](_0x22cc58,_0x42e99c,_0x51cf12,_0x30a137,_0x398708,_0x146776):_0x30a137?_0x23d7f0[_0x436e3e(0x1a3)](_0x3cd767,_0x42e99c,_0x51cf12,_0x30a137,_0x146776):_0x398708[_0x436e3e(0x3d6)]?_0x23d7f0['createInstance'](_0x5f4482,_0x42e99c,_0x51cf12,_0x398708,_0x146776):_0x23d7f0[_0x436e3e(0x1a3)](_0x5124ae,_0x42e99c,_0x51cf12,_0x146776);}var _0x33d66a=Object[_0x3bc2c8(0x361)],_0x48ab0e=Object[_0x3bc2c8(0x48b)],_0xedaaab=(_0x3c9a18,_0x51f08f,_0x145830,_0x40adc4)=>{for(var _0x325f1d=_0x40adc4>0x1?void 0x0:_0x40adc4?_0x48ab0e(_0x51f08f,_0x145830):_0x51f08f,_0x36e851=_0x3c9a18['length']-0x1,_0x2df619;_0x36e851>=0x0;_0x36e851--)(_0x2df619=_0x3c9a18[_0x36e851])&&(_0x325f1d=(_0x40adc4?_0x2df619(_0x51f08f,_0x145830,_0x325f1d):_0x2df619(_0x325f1d))||_0x325f1d);return _0x40adc4&&_0x325f1d&&_0x33d66a(_0x51f08f,_0x145830,_0x325f1d),_0x325f1d;},_0x2ca542=(_0x53c105,_0x453f10)=>(_0x59aa67,_0xd94d6c)=>_0x453f10(_0x59aa67,_0xd94d6c,_0x53c105);_0x48e51e[_0x3bc2c8(0x193)]=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x27a9df,_0x36af83,_0x10a1f3,_0xedf0bb,_0x4eb5ed,_0x3f3ce3,_0x2b04a4,_0x2f9226,_0x301193,_0x126945,_0x1700ae,_0x3f0115,_0x25b03b){const _0x7b85df=_0x3bc2c8;super(),_0x314dc6(this,_0x7b85df(0x503),new _0x266483[(_0x7b85df(0x43e))](null)),_0x314dc6(this,_0x7b85df(0x1e5),this[_0x7b85df(0x503)][_0x7b85df(0x4eb)]()),_0x314dc6(this,'_state'),_0x314dc6(this,_0x7b85df(0x39f),!0x1),_0x314dc6(this,_0x7b85df(0x294),this['state$'][_0x7b85df(0x198)](_0x266483[_0x7b85df(0x39c)](_0x4bbe88=>_0x4bbe88?_0x4bbe88['status']:_0x5926c5[_0x7b85df(0x3b0)]),_0x266483['shareReplay'](0x1))),_0x314dc6(this,_0x7b85df(0x3cd),!0x1),_0x314dc6(this,_0x7b85df(0x229),[]),(this[_0x7b85df(0x1b0)]=_0x27a9df,this[_0x7b85df(0x3d7)]=_0x36af83,this[_0x7b85df(0x251)]=_0x10a1f3,this[_0x7b85df(0x30f)]=_0xedf0bb,this['_localCacheService']=_0x4eb5ed,this[_0x7b85df(0x2a4)]=_0x3f3ce3,this[_0x7b85df(0x24c)]=_0x2b04a4,this[_0x7b85df(0x49a)]=_0x2f9226,this[_0x7b85df(0x4e7)]=_0x301193,this[_0x7b85df(0x2c6)]=_0x126945,this[_0x7b85df(0x1d6)]=_0x1700ae,this[_0x7b85df(0x106)]=_0x3f0115,this[_0x7b85df(0x139)]=_0x25b03b);}get[_0x3bc2c8(0x214)](){const _0x57cf01=_0x3bc2c8;return this[_0x57cf01(0x2b3)];}async[_0x3bc2c8(0x341)](){const _0x2473e8=_0x3bc2c8;if(this[_0x2473e8(0x214)])throw new Error(_0x2473e8(0xd8));await this['_init']();}[_0x3bc2c8(0x165)](){const _0x397fbd=_0x3bc2c8;return this[_0x397fbd(0x39f)]=!0x0,_0x5b7cfd[_0x397fbd(0x3d9)](()=>{const _0x445800=_0x397fbd;this[_0x445800(0x39f)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x532080){const _0x20eac3=_0x3bc2c8;this[_0x20eac3(0x2b3)]=_0x532080,this[_0x20eac3(0x503)][_0x20eac3(0xe4)](_0x532080);}async['_init'](){const _0x498ddb=_0x3bc2c8;var _0x192934;this[_0x498ddb(0x25e)](await this[_0x498ddb(0x3ed)]()),this[_0x498ddb(0x139)]&&((_0x192934=this[_0x498ddb(0x139)])==null||_0x192934['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x498ddb(0x139)][_0x498ddb(0x112)](this[_0x498ddb(0x1b0)])[_0x498ddb(0x2f5)](_0x462b20=>{const _0x58d2aa=_0x498ddb;this[_0x58d2aa(0x4e7)][_0x58d2aa(0x46f)](_0x58d2aa(0x3ab),_0x58d2aa(0x292),_0x462b20),_0x462b20===_0x695cf2[_0x58d2aa(0x3de)]?(this['_messageService'][_0x58d2aa(0x29f)]({'content':this[_0x58d2aa(0x24c)]['t'](_0x58d2aa(0x398)),'type':_0x4466a1[_0x58d2aa(0x185)][_0x58d2aa(0x1f8)]}),this[_0x58d2aa(0x106)][_0x58d2aa(0x37a)](new _0xa62622['WorkbookEditablePermission'](this[_0x58d2aa(0x1b0)])['id'],!0x1)):this[_0x58d2aa(0x106)]['updatePermissionPoint'](new _0xa62622[(_0x58d2aa(0x4cf))](this[_0x58d2aa(0x1b0)])['id'],!0x0);})));let _0x27ce9d=!0x1;return this[_0x498ddb(0x131)](this[_0x498ddb(0x3d7)][_0x498ddb(0x509)][_0x498ddb(0x2f5)](_0x3c0b6b=>{const _0x2ce2ef=_0x498ddb;_0x3c0b6b===_0x2d9d4e[_0x2ce2ef(0x322)]?this['_toggleOnline'](_0x27ce9d):_0x3c0b6b===_0x2d9d4e[_0x2ce2ef(0x3b0)]&&(_0x27ce9d=!0x0,this['_toggleOffline']());})),this[_0x498ddb(0x131)](this[_0x498ddb(0x3d7)][_0x498ddb(0x164)][_0x498ddb(0x2f5)](_0x2e66f4=>{const _0x593f8c=_0x498ddb;try{switch(_0x2e66f4[_0x593f8c(0xe1)]){case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x455)]:{this[_0x593f8c(0x261)](_0x56cbe4[_0x593f8c(0x242)](_0x2e66f4[_0x593f8c(0x2db)]));break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x4f7)]:{this[_0x593f8c(0x24f)](_0x2e66f4[_0x593f8c(0x2db)]);break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x4c3)]:{this[_0x593f8c(0x359)]();break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x23c)]:{this[_0x593f8c(0x11d)](_0x2e66f4['data']['changesets'][_0x593f8c(0x39c)](_0x19cbe0=>_0x56cbe4[_0x593f8c(0x242)](_0x19cbe0)));break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x41b)]:this[_0x593f8c(0x359)]({'isPermissionRej':!0x0});}}catch(_0x2f5c40){throw console[_0x593f8c(0x476)](_0x593f8c(0x320),_0x2f5c40),_0x2f5c40;}})),this[_0x498ddb(0x2b3)];}[_0x3bc2c8(0x172)](){const _0x519af9=_0x3bc2c8;this[_0x519af9(0x3cd)]=!0x1;}['_lockTransition'](){const _0x4e6095=_0x3bc2c8;if(this[_0x4e6095(0x3cd)])throw new Error(_0x4e6095(0x22c));this[_0x4e6095(0x3cd)]=!0x0;}[_0x3bc2c8(0x1de)](_0x7f83e1){const _0x319f31=_0x3bc2c8;this['_lockTransition'](),this[_0x319f31(0x25e)](this['_state'][_0x319f31(0x295)](_0x7f83e1)),this[_0x319f31(0x172)]();}[_0x3bc2c8(0x261)](_0x2f372c){const _0x379765=_0x3bc2c8;if(!(_0x2f372c[_0x379765(0x1b1)]<=this['_revisionService'][_0x379765(0x22d)](this[_0x379765(0x1b0)]))){if(this['_collaborationPaused']){this[_0x379765(0x229)][_0x379765(0x13d)](_0x2f372c);return;}this[_0x379765(0x146)](_0x2f372c);}}['_exhaustRemoteChangesetQueue'](){const _0x5aa4b2=_0x3bc2c8;this[_0x5aa4b2(0x229)][_0x5aa4b2(0x255)](_0x4185bf=>this[_0x5aa4b2(0x146)](_0x4185bf)),this[_0x5aa4b2(0x229)]=[];}[_0x3bc2c8(0x146)](_0x51aebe){const _0x27ff22=_0x3bc2c8,_0x28d1c8=this[_0x27ff22(0x2a4)][_0x27ff22(0x282)][_0x27ff22(0x35b)](this[_0x27ff22(0x2a4)][_0x27ff22(0x282)][_0x27ff22(0x27f)]()[_0x27ff22(0x50b)])(_0x51aebe[_0x27ff22(0x1fc)],null)||_0x51aebe[_0x27ff22(0x1fc)],_0x31c8fd={..._0x51aebe,'mutations':_0x28d1c8};this[_0x27ff22(0x2c5)](),this[_0x27ff22(0x25e)](this['_state'][_0x27ff22(0x384)](_0x31c8fd)),this[_0x27ff22(0x172)]();}[_0x3bc2c8(0x24f)](_0x3708cc){const _0x1b35cb=_0x3bc2c8;this['_lockTransition'](),this[_0x1b35cb(0x25e)](this[_0x1b35cb(0x2b3)][_0x1b35cb(0xf5)](_0x3708cc)),this[_0x1b35cb(0x172)]();}[_0x3bc2c8(0x359)](_0x2700c8){const _0x28888f=_0x3bc2c8;this[_0x28888f(0x2c5)](),this[_0x28888f(0x25e)](this[_0x28888f(0x2b3)][_0x28888f(0x38f)](_0x2700c8)),this[_0x28888f(0x172)]();}[_0x3bc2c8(0x11d)](_0x5aaae2){const _0x5c2e9e=_0x3bc2c8;if(!(this[_0x5c2e9e(0x2b3)]instanceof _0x75f119))throw new TypeError(_0x5c2e9e(0x287));const _0x1bbf8a=_0x5aaae2[_0x5c2e9e(0x39c)](_0x29268e=>{const _0x5edcac=_0x5c2e9e,_0x47fff9=this[_0x5edcac(0x2a4)]['interceptor'][_0x5edcac(0x35b)](this[_0x5edcac(0x2a4)][_0x5edcac(0x282)][_0x5edcac(0x27f)]()[_0x5edcac(0x50b)])(_0x29268e[_0x5edcac(0x1fc)],null)||_0x29268e[_0x5edcac(0x1fc)];return{..._0x29268e,'mutations':_0x47fff9};});this[_0x5c2e9e(0x2c5)](),this['_updateState'](this['_state'][_0x5c2e9e(0x42e)](_0x1bbf8a)),this['_unlockTransition']();}[_0x3bc2c8(0x3e9)](){const _0x571fd2=_0x3bc2c8;this['_lockTransition'](),this[_0x571fd2(0x25e)](this[_0x571fd2(0x2b3)][_0x571fd2(0x495)]()),this[_0x571fd2(0x172)]();}['_toggleOnline'](_0x1da87d=!0x1){const _0x1f03ea=_0x3bc2c8;this['_lockTransition'](),this['_updateState'](this['_state'][_0x1f03ea(0x20e)]()),this[_0x1f03ea(0x172)]();const _0xe68213=this[_0x1f03ea(0x2b3)];_0x1da87d&&_0xe68213 instanceof _0x5124ae&&(this['_lockTransition'](),this['_updateState'](_0xe68213[_0x1f03ea(0x208)]()),this['_unlockTransition']());}async[_0x3bc2c8(0x3ed)](){return new Promise(_0xb6ce8c=>{const _0x3c5b3f=_0x4f28;this[_0x3c5b3f(0x3d7)]['sessionStatus$'][_0x3c5b3f(0x198)](_0x266483[_0x3c5b3f(0x38a)](0x1))[_0x3c5b3f(0x2f5)](async _0x2325a3=>{const _0x403cdd=_0x3c5b3f;_0xb6ce8c(await this[_0x403cdd(0x1ee)](_0x2325a3===_0x2d9d4e[_0x403cdd(0x322)]));});});}[_0x3bc2c8(0x15e)](){const _0x2a8a6b=_0x3bc2c8,_0x10aae1=this[_0x2a8a6b(0x1b0)];return{'onStateChange':(_0x440923,_0x252811)=>{const _0xf1c0aa=_0x2a8a6b;if(_0x440923!==this[_0xf1c0aa(0x2b3)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x440923[_0xf1c0aa(0x4ad)]+_0xf1c0aa(0x330)+_0x252811[_0xf1c0aa(0x4ad)]+_0xf1c0aa(0xe8)+this[_0xf1c0aa(0x2b3)][_0xf1c0aa(0x4ad)]);this[_0xf1c0aa(0x25e)](_0x252811);},'onSendChangeset':_0x490b8d=>{const _0x370c8b=_0x2a8a6b,_0x964554={'eventID':_0x56cbe4[_0x370c8b(0x484)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x490b8d[_0x370c8b(0x1b0)],'unitType':this[_0x370c8b(0x251)],'changeset':_0x490b8d,'memberID':this[_0x370c8b(0x3d7)][_0x370c8b(0x2d0)]()}};this['session'][_0x370c8b(0x441)](_0x964554,this[_0x370c8b(0x1b0)]);},'onMissingChangesets':({from:_0x4302ee,to:_0x394c3b})=>{const _0xd91bc=_0x2a8a6b;this[_0xd91bc(0x4e7)][_0xd91bc(0x46f)]('[CollaborationEntity]',_0xd91bc(0x41f)+_0x4302ee+_0xd91bc(0x18b)+_0x394c3b);const _0x2f6512={'eventID':_0x56cbe4[_0xd91bc(0x484)][_0xd91bc(0x123)],'data':{'unitID':_0x10aae1,'unitType':this['_type'],'from':_0x4302ee,'to':_0x394c3b}};this[_0xd91bc(0x3d7)][_0xd91bc(0x441)](_0x2f6512,this[_0xd91bc(0x1b0)]);}};}async[_0x3bc2c8(0x1ee)](_0xd6bd3f){const _0x453d9c=_0x3bc2c8;var _0x8aecb2,_0x350bdf;const _0x413209=await this[_0x453d9c(0x3bf)][_0x453d9c(0x30b)](this[_0x453d9c(0x1b0)]),_0x513b1b=(_0x8aecb2=_0x413209==null?void 0x0:_0x413209['mutations'])!=null?_0x8aecb2:[],_0x262499=(_0x350bdf=_0x413209==null?void 0x0:_0x413209[_0x453d9c(0x3e1)])!=null?_0x350bdf:null,_0x14e521=this['unitID'];try{this[_0x453d9c(0x1b6)](_0x262499,_0x513b1b);}catch(_0x4af9d7){this['_logService']['error'](_0x4af9d7);}const _0x155c40=this['_createHandler']();if(_0xd6bd3f){const _0x17f860=_0x3d51b3(this[_0x453d9c(0x30f)],_0x14e521,this[_0x453d9c(0x251)],_0x262499,_0x513b1b,_0x155c40);return _0x17f860 instanceof _0x5f4482?_0x17f860[_0x453d9c(0x364)]():(_0x17f860 instanceof _0x22cc58||_0x17f860 instanceof _0x3cd767)&&_0x17f860[_0x453d9c(0x423)](),_0x17f860;}return this[_0x453d9c(0x30f)][_0x453d9c(0x1a3)](_0x8646cf,_0x14e521,this[_0x453d9c(0x251)],_0x262499,_0x513b1b,_0x155c40);}[_0x3bc2c8(0x1b6)](_0x137ba3,_0x30a45e){const _0x6c015a=_0x3bc2c8;var _0x2b1eb8,_0x54d0b7;const _0x1a271b=this['_compressMutationService']['interceptor'][_0x6c015a(0x35b)](this[_0x6c015a(0x2a4)][_0x6c015a(0x282)][_0x6c015a(0x27f)]()[_0x6c015a(0x50b)]);(_0x2b1eb8=_0x1a271b((_0x137ba3==null?void 0x0:_0x137ba3[_0x6c015a(0x1fc)])||[],null))==null||_0x2b1eb8[_0x6c015a(0x255)](_0x235b70=>this[_0x6c015a(0x2c6)]['executeCommand'](_0x235b70['id'],_0x235b70[_0x6c015a(0x3c2)])),(_0x54d0b7=_0x1a271b(_0x30a45e||[],null))==null||_0x54d0b7['forEach'](_0x1a8d67=>this['_commandService']['executeCommand'](_0x1a8d67['id'],_0x1a8d67[_0x6c015a(0x3c2)]));}},_0x48e51e[_0x3bc2c8(0x193)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2ca542(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x2ca542(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['CompressMutationService'])),_0x2ca542(0x6,_0x5b7cfd['Inject'](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xa,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x2ca542(0xb,_0x5b7cfd['IPermissionService']),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x259)](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x193)]),_0x48e51e[_0x3bc2c8(0x355)]=class extends _0x48e51e['CollaborationEntity']{constructor(_0x24ea8f,_0x114a0b,_0x517d92,_0x36e1d9,_0x37c69e,_0x2d341d,_0x140905,_0x3772ac,_0x248044,_0x5b5540,_0x257964,_0x2808df,_0x12376a,_0x30f18a,_0x394d95,_0x82ccc1,_0x5bad4c){const _0x3417aa=_0x3bc2c8;super(_0x24ea8f,_0x517d92,_0x114a0b,_0x36e1d9,_0x37c69e,_0x2d341d,_0x140905,_0x3772ac,_0x12376a,_0x30f18a,_0x394d95,_0x82ccc1,_0x5bad4c),this[_0x3417aa(0x1b0)]=_0x24ea8f,this[_0x3417aa(0x413)]=_0x114a0b,this[_0x3417aa(0x3a4)]=_0x248044,this[_0x3417aa(0x515)]=_0x5b5540,this[_0x3417aa(0x450)]=_0x257964,this[_0x3417aa(0x25c)]=_0x2808df;}[_0x3bc2c8(0x15e)](){const _0x2a200e=_0x3bc2c8,_0x45dac4=super['_createHandler']();return _0x45dac4[_0x2a200e(0x1a9)]=_0x2dd753=>this[_0x2a200e(0x515)][_0x2a200e(0x43c)](_0x2dd753),_0x45dac4[_0x2a200e(0x4b2)]=_0x20bac7=>this[_0x2a200e(0x450)][_0x2a200e(0x109)](_0x20bac7),_0x45dac4[_0x2a200e(0x2e0)]=_0x16c546=>this[_0x2a200e(0x25c)][_0x2a200e(0x195)](_0x16c546),_0x45dac4[_0x2a200e(0x258)]=_0x5070a8=>this[_0x2a200e(0x515)][_0x2a200e(0x3fb)](_0x5070a8),_0x45dac4;}async[_0x3bc2c8(0x276)](){const _0x1159b8=_0x3bc2c8,_0x609a70=await super['_init']();return this[_0x1159b8(0x131)](this[_0x1159b8(0x2c6)]['onCommandExecuted']((_0x35e2ef,_0x38dd80)=>{const _0x10d20c=_0x1159b8;if(_0x35e2ef['type']!==_0x5b7cfd['CommandType'][_0x10d20c(0x374)]||_0x38dd80!=null&&_0x38dd80[_0x10d20c(0x38d)]||_0x38dd80!=null&&_0x38dd80[_0x10d20c(0x4b3)])return;const _0x4565cc=_0x35e2ef[_0x10d20c(0x3c2)];if((_0x4565cc==null?void 0x0:_0x4565cc[_0x10d20c(0x373)])!==this['unitID'])return;let _0x18010b=_0x35e2ef;if(_0x18010b['id']===_0x3e2148['RichTextEditingMutation']['id']){const _0x226aca=_0x18010b[_0x10d20c(0x3c2)];_0x18010b={'id':_0x3e2148[_0x10d20c(0x368)]['id'],'type':_0x5b7cfd[_0x10d20c(0x425)][_0x10d20c(0x374)],'params':{'unitId':_0x226aca['unitId'],'actions':_0x226aca[_0x10d20c(0x2fd)],'textRanges':null}};}const _0x2e37b6=this['_compressMutationService']['interceptor'][_0x10d20c(0x35b)](this[_0x10d20c(0x2a4)][_0x10d20c(0x282)][_0x10d20c(0x27f)]()['COMPRESS_MUTATION_SEND'])([_0x18010b],null)||[_0x18010b];this[_0x10d20c(0x1de)](_0x2e37b6[0x0]);})),_0x609a70;}},_0x48e51e[_0x3bc2c8(0x355)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2ca542(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x2ca542(0x5,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x375)])),_0x2ca542(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['RevisionService'])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x618f14[_0x3bc2c8(0x1e9)])),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x1e6c69)),_0x2ca542(0xa,_0x5b7cfd['Inject'](_0x12ef35)),_0x2ca542(0xb,_0x5b7cfd['Inject'](_0x56b650)),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0xd,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xe,_0x2ce95d['IMessageService']),_0x2ca542(0xf,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2ca542(0x10,_0x5b7cfd['Optional'](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x355)]),_0x48e51e[_0x3bc2c8(0x449)]=class extends _0x48e51e['CollaborationEntity']{constructor(_0x291007,_0x470c6c,_0x5da244,_0x1430a9,_0xd8ba8c,_0x93abcf,_0xb1c9b5,_0x3ba0d8,_0x3643f0,_0x790161,_0x141cb5,_0x31ffa0,_0x14d815,_0xe6adde){const _0x1385ed=_0x3bc2c8;super(_0x291007,_0x5da244,_0x470c6c,_0x1430a9,_0xd8ba8c,_0x93abcf,_0xb1c9b5,_0x3ba0d8,_0x790161,_0x141cb5,_0x31ffa0,_0x14d815,_0xe6adde),this['unitID']=_0x291007,this[_0x1385ed(0x413)]=_0x470c6c,this[_0x1385ed(0x170)]=_0x3643f0;}[_0x3bc2c8(0x15e)](){const _0x32ead7=_0x3bc2c8,_0x171ea0=super[_0x32ead7(0x15e)]();return _0x171ea0['onTransformSelections']=_0x8f0fc0=>this[_0x32ead7(0x170)][_0x32ead7(0x109)](_0x8f0fc0),_0x171ea0;}async['_init'](){const _0x571e4e=_0x3bc2c8,_0x45346c=await super[_0x571e4e(0x276)]();return this[_0x571e4e(0x131)](this[_0x571e4e(0x2c6)][_0x571e4e(0x15f)]((_0xce5870,_0x270000)=>{const _0x5d68fc=_0x571e4e;if(_0xce5870[_0x5d68fc(0x413)]!==_0x5b7cfd['CommandType'][_0x5d68fc(0x374)]||_0x270000!=null&&_0x270000[_0x5d68fc(0x38d)]||_0x270000!=null&&_0x270000[_0x5d68fc(0x4b3)])return;const _0x5869ec=_0xce5870['params'];if((_0x5869ec==null?void 0x0:_0x5869ec[_0x5d68fc(0x373)])!==this['unitID'])return;const _0xce42b0=_0xce5870,_0x34b414=this[_0x5d68fc(0x2a4)][_0x5d68fc(0x282)][_0x5d68fc(0x35b)](this[_0x5d68fc(0x2a4)][_0x5d68fc(0x282)][_0x5d68fc(0x27f)]()[_0x5d68fc(0x221)])([_0xce42b0],null)||[_0xce42b0];this['_onLocalMutation'](_0x34b414[0x0]);})),_0x45346c;}},_0x48e51e[_0x3bc2c8(0x449)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd['Inject'](_0x5b7cfd['Injector'])),_0x2ca542(0x4,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x2ca542(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['CompressMutationService'])),_0x2ca542(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2cedfe)),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0xa,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xb,_0x2ce95d['IMessageService']),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2ca542(0xd,_0x5b7cfd['Optional'](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x449)]);var _0x3faff2=Object['defineProperty'],_0x217d22=Object[_0x3bc2c8(0x48b)],_0x2d901a=(_0x26cb89,_0x48b274,_0x2e12ef,_0xa00df3)=>{const _0x3b6d90=_0x3bc2c8;for(var _0x18d4b1=_0xa00df3>0x1?void 0x0:_0xa00df3?_0x217d22(_0x48b274,_0x2e12ef):_0x48b274,_0x311c3f=_0x26cb89[_0x3b6d90(0x3d6)]-0x1,_0x54057f;_0x311c3f>=0x0;_0x311c3f--)(_0x54057f=_0x26cb89[_0x311c3f])&&(_0x18d4b1=(_0xa00df3?_0x54057f(_0x48b274,_0x2e12ef,_0x18d4b1):_0x54057f(_0x18d4b1))||_0x18d4b1);return _0xa00df3&&_0x18d4b1&&_0x3faff2(_0x48b274,_0x2e12ef,_0x18d4b1),_0x18d4b1;},_0x3148ae=(_0x472bd7,_0xb7b504)=>(_0x3252d9,_0x22355d)=>_0xb7b504(_0x3252d9,_0x22355d,_0x472bd7);_0x48e51e[_0x3bc2c8(0x30c)]=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x350154,_0x3d8750,_0x2f7ab7){const _0x2eb46a=_0x3bc2c8;super(),_0x314dc6(this,_0x2eb46a(0x2af),new Map()),_0x314dc6(this,_0x2eb46a(0x1cb),new _0x266483[(_0x2eb46a(0x2e5))]()),(this['_injector']=_0x350154,this[_0x2eb46a(0x24d)]=_0x3d8750,this[_0x2eb46a(0x10b)]=_0x2f7ab7,this[_0x2eb46a(0x276)]());}[_0x3bc2c8(0x314)](){const _0xf65ec=_0x3bc2c8;super[_0xf65ec(0x314)](),this[_0xf65ec(0x2af)][_0xf65ec(0x255)](_0x2e849b=>_0x2e849b['dispose']()),this['_entities']['clear']();}['getCollabEntity'](_0x2918dc){const _0x28e05f=_0x3bc2c8;var _0x40ea10;return(_0x40ea10=this[_0x28e05f(0x2af)][_0x28e05f(0x451)](_0x2918dc))!=null?_0x40ea10:null;}[_0x3bc2c8(0x27a)](_0x24bd2c){const _0x53d9e8=_0x3bc2c8,_0x22c8e0=this[_0x53d9e8(0x36d)](_0x24bd2c);return _0x22c8e0?_0x266483['of'](_0x22c8e0):this[_0x53d9e8(0x1cb)][_0x53d9e8(0x198)](_0x51de38[_0x53d9e8(0x3b6)](_0x53db27=>_0x53db27['unitID']===_0x24bd2c));}[_0x3bc2c8(0x276)](){const _0x2d9852=_0x3bc2c8;this[_0x2d9852(0x10b)][_0x2d9852(0x327)](_0x5b7cfd['UniverInstanceType'][_0x2d9852(0x301)])[_0x2d9852(0x198)](_0x266483[_0x2d9852(0x46b)](this[_0x2d9852(0x2dd)]),_0x51de38[_0x2d9852(0x19d)](0x10))[_0x2d9852(0x2f5)](async _0x16789c=>{const _0x546a1e=_0x2d9852,_0x23239a=_0x16789c[_0x546a1e(0x183)](),_0x227302=await this['_startCollaboration'](_0x23239a,_0x249560[_0x546a1e(0x301)]);this['_entities']['set'](_0x23239a,_0x227302);}),this[_0x2d9852(0x10b)][_0x2d9852(0x327)](_0x5b7cfd[_0x2d9852(0x4bb)][_0x2d9852(0x3a6)])['pipe'](_0x266483['takeUntil'](this[_0x2d9852(0x2dd)]),_0x51de38[_0x2d9852(0x19d)](0x10))[_0x2d9852(0x198)](_0x51de38['filter'](_0x39208e=>!_0x39208e[_0x2d9852(0x183)]()['startsWith']('__')))[_0x2d9852(0x2f5)](async _0x32bee5=>{const _0x2baa99=_0x2d9852,_0x5b266f=_0x32bee5[_0x2baa99(0x183)](),_0x2793ef=await this[_0x2baa99(0xea)](_0x5b266f,_0x249560[_0x2baa99(0x3a6)]);this[_0x2baa99(0x2af)][_0x2baa99(0x10d)](_0x5b266f,_0x2793ef);}),_0x266483['merge'](this[_0x2d9852(0x10b)][_0x2d9852(0x4a5)](_0x5b7cfd['UniverInstanceType'][_0x2d9852(0x301)]),this[_0x2d9852(0x10b)]['getTypeOfUnitDisposed$'](_0x5b7cfd[_0x2d9852(0x4bb)][_0x2d9852(0x3a6)]))[_0x2d9852(0x198)](_0x266483[_0x2d9852(0x46b)](this[_0x2d9852(0x2dd)]))['subscribe'](_0x1382ab=>{const _0x5f347d=_0x2d9852,_0x4215be=_0x1382ab[_0x5f347d(0x183)](),_0x233fa7=this[_0x5f347d(0x2af)][_0x5f347d(0x451)](_0x4215be);_0x233fa7&&(_0x233fa7[_0x5f347d(0x314)](),this[_0x5f347d(0x2af)]['delete'](_0x4215be));});}async['_startCollaboration'](_0x210400,_0x52eea6){const _0x13e56e=_0x3bc2c8,_0x4671ae=await this[_0x13e56e(0x24d)]['requireSession'](_0x210400),_0xf3423e=this[_0x13e56e(0x30f)][_0x13e56e(0x1a3)](this[_0x13e56e(0xdd)](_0x52eea6),_0x210400,_0x52eea6,_0x4671ae);return await _0xf3423e[_0x13e56e(0x341)](),this[_0x13e56e(0x1cb)][_0x13e56e(0xe4)](_0xf3423e),_0xf3423e;}[_0x3bc2c8(0xdd)](_0x4f4bef){const _0xdd78eb=_0x3bc2c8;switch(_0x4f4bef){case _0x249560[_0xdd78eb(0x3a6)]:return _0x48e51e[_0xdd78eb(0x355)];case _0x249560[_0xdd78eb(0x301)]:return _0x48e51e['SheetCollaborationEntity'];default:throw new Error(_0xdd78eb(0x1e7)+_0x4f4bef);}}},_0x48e51e[_0x3bc2c8(0x30c)]=_0x2d901a([_0x3148ae(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x3148ae(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['CollaborationSessionService'])),_0x3148ae(0x2,_0x5b7cfd['IUniverInstanceService'])],_0x48e51e[_0x3bc2c8(0x30c)]);const _0x3d2988=['purple300',_0x3bc2c8(0x22b),_0x3bc2c8(0x317),_0x3bc2c8(0x18f),_0x3bc2c8(0x4e8),_0x3bc2c8(0x443)];class _0x2e16f3 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0x51604b=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0x51604b(0x2b4),new Map()),_0x314dc6(this,_0x51604b(0x171),0x0);}[_0x3bc2c8(0x33d)](_0x49be37){const _0x5e6566=_0x3bc2c8;if(this[_0x5e6566(0x2b4)][_0x5e6566(0x232)](_0x49be37))return this['_assignedColors'][_0x5e6566(0x451)](_0x49be37);const _0x263bde=_0x3d2988[this[_0x5e6566(0x171)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x3d2988[_0x5e6566(0x3d6)],this['_assignedColors'][_0x5e6566(0x10d)](_0x49be37,_0x263bde),_0x263bde;}}var _0x4da243=Object[_0x3bc2c8(0x361)],_0x4d914d=Object[_0x3bc2c8(0x48b)],_0x1bb410=(_0x1487f2,_0x3a1efe,_0x59a8da,_0x56158a)=>{for(var _0x3b5561=_0x56158a>0x1?void 0x0:_0x56158a?_0x4d914d(_0x3a1efe,_0x59a8da):_0x3a1efe,_0x3b091b=_0x1487f2['length']-0x1,_0x5d3257;_0x3b091b>=0x0;_0x3b091b--)(_0x5d3257=_0x1487f2[_0x3b091b])&&(_0x3b5561=(_0x56158a?_0x5d3257(_0x3a1efe,_0x59a8da,_0x3b5561):_0x5d3257(_0x3b5561))||_0x3b5561);return _0x56158a&&_0x3b5561&&_0x4da243(_0x3a1efe,_0x59a8da,_0x3b5561),_0x3b5561;},_0x2ff648=(_0x85d661,_0x144e6a)=>(_0x423871,_0x21a280)=>_0x144e6a(_0x423871,_0x21a280,_0x85d661);const _0x205ac8=0x12c,_0x2d56cf=0x64,_0x451ef2=()=>{let _0x1d4a20=[],_0x45eec5=!0x1;return _0x47533a=>{const _0x29313d=_0x4f28;_0x1d4a20[_0x29313d(0x13d)](_0x47533a),_0x45eec5||(_0x45eec5=!0x0,setTimeout(()=>{const _0x1b44b0=_0x29313d;_0x1d4a20[_0x1b44b0(0x255)](_0x2ab970=>_0x2ab970()),_0x1d4a20=[],_0x45eec5=!0x1;}));};};let _0x1a3ce8=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x4fb3c5,_0xa488b1,_0x2b847e,_0x2acaf2,_0x447fec,_0x2f8af7,_0x17a1f1,_0x404e0f){const _0x3dd2af=_0x3bc2c8;super(),_0x314dc6(this,_0x3dd2af(0x404),!0x1),_0x314dc6(this,_0x3dd2af(0x276),!0x1),_0x314dc6(this,_0x3dd2af(0x269),new _0x266483[(_0x3dd2af(0x43e))](new Map())),_0x314dc6(this,_0x3dd2af(0x401),this['_cursorInfo$'][_0x3dd2af(0x4eb)]()),_0x314dc6(this,'_roomMembers$',new _0x266483[(_0x3dd2af(0x43e))]([])),_0x314dc6(this,_0x3dd2af(0x3a0),this[_0x3dd2af(0x49b)][_0x3dd2af(0x198)](_0x266483[_0x3dd2af(0x41c)](_0x205ac8))),_0x314dc6(this,_0x3dd2af(0x409),_0x5b7cfd[_0x3dd2af(0x115)]((_0x22d196,_0x3454ab)=>{const _0x463569=_0x3dd2af,_0x5d26f7={'eventID':_0x56cbe4[_0x463569(0x484)][_0x463569(0x234)],'data':{'unitID':this['unitID'],'memberID':this[_0x463569(0x3cf)][_0x463569(0x2d0)](),'selection':_0x4d1b35[_0x463569(0x211)](_0x22d196,_0x3454ab[_0x463569(0x177)])}};this['_session']['send'](_0x5d26f7,this[_0x463569(0x1b0)]);},_0x2d56cf)),(this[_0x3dd2af(0x1b0)]=_0x4fb3c5,this['_session']=_0xa488b1,this[_0x3dd2af(0x30f)]=_0x2b847e,this[_0x3dd2af(0x184)]=_0x2acaf2,this[_0x3dd2af(0x159)]=_0x447fec,this['_univerInstanceService']=_0x2f8af7,this[_0x3dd2af(0x2c6)]=_0x17a1f1,this[_0x3dd2af(0x243)]=_0x404e0f);}get['cursorInfo'](){const _0x3fbc6f=_0x3bc2c8;return this[_0x3fbc6f(0x269)][_0x3fbc6f(0x21b)]();}get[_0x3bc2c8(0x3d3)](){const _0x31863c=_0x3bc2c8;return this[_0x31863c(0x49b)][_0x31863c(0x21b)]();}[_0x3bc2c8(0x314)](){const _0x4e434e=_0x3bc2c8;super[_0x4e434e(0x314)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x4e434e(0x10e)](),this[_0x4e434e(0x49b)][_0x4e434e(0xe4)]([]),this[_0x4e434e(0x49b)][_0x4e434e(0x10e)]();}[_0x3bc2c8(0x341)](){const _0x2fea70=_0x3bc2c8;this[_0x2fea70(0x276)]||(this[_0x2fea70(0x276)]=!0x0,this[_0x2fea70(0x3cf)][_0x2fea70(0x509)][_0x2fea70(0x198)](_0x266483['takeUntil'](this[_0x2fea70(0x2dd)]))['subscribe'](_0x155047=>{const _0x499ae0=_0x2fea70;_0x155047===_0x2d9d4e[_0x499ae0(0x322)]?this['_toggleOnline']():this[_0x499ae0(0x3e9)]();}),this[_0x2fea70(0x3cf)][_0x2fea70(0x164)][_0x2fea70(0x198)](_0x266483['takeUntil'](this[_0x2fea70(0x2dd)]))[_0x2fea70(0x2f5)](_0x1dd4e5=>{const _0x439ad5=_0x2fea70,_0x1290b4=_0x1dd4e5[_0x439ad5(0xe1)];_0x1290b4===_0x56cbe4[_0x439ad5(0x484)][_0x439ad5(0x234)]&&this['_onCursorUpdate'](_0x1dd4e5),_0x1290b4===_0x56cbe4['CollaborationEvent'][_0x439ad5(0x44d)]&&this[_0x439ad5(0x369)](_0x1dd4e5);}),this['_onRefRangeChange'](),this[_0x2fea70(0x131)](this[_0x2fea70(0x2c6)]['onCommandExecuted'](_0x1bc180=>{const _0x187af7=_0x2fea70;if(this[_0x187af7(0x404)]&&_0x1bc180['id']===_0xa62622[_0x187af7(0x32e)]['id']&&_0x1bc180[_0x187af7(0x3c2)][_0x187af7(0x373)]===this['unitID']){const _0x302b82=_0x1bc180[_0x187af7(0x3c2)];this[_0x187af7(0x409)](_0x302b82[_0x187af7(0x2e3)],_0x302b82[_0x187af7(0x4ff)][0x0]);}})));}[_0x3bc2c8(0x512)](_0x2392cd){const _0x3fa984=_0x3bc2c8;var _0x87f540,_0x280117;const {memberID:_0x206fe0,selection:_0x402d0f}=_0x2392cd[_0x3fa984(0x2db)],{sheetName:_0x6cb935,range:_0x2a9d0f}=_0x4d1b35['deserializeRangeWithSheet'](_0x402d0f),_0x5b238e={'name':(_0x280117=(_0x87f540=this[_0x3fa984(0x159)][_0x3fa984(0x3c1)](this['unitID'],_0x206fe0))==null?void 0x0:_0x87f540['name'])!=null?_0x280117:_0x3fa984(0x1ce),'range':this['_getMergeRange'](_0x6cb935,_0x2a9d0f),'sheetID':_0x6cb935,'color':this['_colorAssignService'][_0x3fa984(0x33d)](_0x206fe0),'selection':_0x402d0f},_0x213984=this[_0x3fa984(0x4b6)];_0x213984[_0x3fa984(0x10d)](_0x206fe0,_0x5b238e),this[_0x3fa984(0x269)][_0x3fa984(0xe4)](_0x213984);}['_onCursorDelete'](_0x4554e0){const _0x25df59=_0x3bc2c8,{memberID:_0x23c2e2}=_0x4554e0[_0x25df59(0x2db)],_0x6228cb=this[_0x25df59(0x4b6)];_0x6228cb[_0x25df59(0x344)](_0x23c2e2),this[_0x25df59(0x269)]['next'](_0x6228cb);}['_getMergeRange'](_0x3f8318,_0x280993){const _0x39ef20=_0x3bc2c8;var _0x4dfec4,_0x34d3fb;const _0x35722d=(_0x34d3fb=(_0x4dfec4=this[_0x39ef20(0x10b)][_0x39ef20(0x279)](this[_0x39ef20(0x1b0)]))==null?void 0x0:_0x4dfec4[_0x39ef20(0x132)](_0x3f8318))==null?void 0x0:_0x34d3fb[_0x39ef20(0x35a)]();return(_0x35722d==null?void 0x0:_0x35722d[_0x39ef20(0xf7)](_0x282e39=>_0x5b7cfd[_0x39ef20(0x224)][_0x39ef20(0x2fc)](_0x282e39,_0x280993)))||_0x280993;}[_0x3bc2c8(0x217)](){const _0x108777=_0x3bc2c8,_0x5ef3b2=new _0x5b7cfd[(_0x108777(0x12c))](),_0x3c81af=_0x451ef2(),_0x1cc1e1=()=>{const _0x2da676=_0x108777;_0x5ef3b2[_0x2da676(0x314)]();const _0xce86a2=(_0x57052a,_0x21dab1,_0xaf0cac,_0x433ad4)=>{const _0x14fe69=_0x2da676;let _0x34799b=[];switch(_0x57052a['id']){case _0xa62622['EffectRefRangId'][_0x14fe69(0x41e)]:{_0x34799b=_0xa62622[_0x14fe69(0x116)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x4bc)]:{_0x34799b=_0xa62622['handleDeleteRangeMoveUp'](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x1dd)]:{_0x34799b=_0xa62622[_0x14fe69(0x328)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x399)]:{_0x34799b=_0xa62622[_0x14fe69(0x267)](_0x57052a,_0x433ad4);break;}case _0xa62622['EffectRefRangId'][_0x14fe69(0x323)]:{_0x34799b=_0xa62622[_0x14fe69(0x215)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0xda)]:{_0x34799b=_0xa62622[_0x14fe69(0x227)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x297)]:{_0x34799b=_0xa62622[_0x14fe69(0x288)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x182)]:{_0x34799b=_0xa62622['handleIRemoveCol'](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x456)]:{_0x34799b=_0xa62622[_0x14fe69(0x2bc)](_0x57052a,_0x433ad4);break;}}const _0x28e1cf=_0xa62622['runRefRangeMutations'](_0x34799b,_0x433ad4),_0x277039=this['cursorInfo']['get'](_0x21dab1);if(_0x277039&&_0x28e1cf){const _0x7c0cd4={..._0x277039,'range':_0x28e1cf};this['cursorInfo']['set'](_0x21dab1,_0x7c0cd4),_0x3c81af(()=>{const _0x1d9400=_0x14fe69,_0x540157=this[_0x1d9400(0x243)]['registerRefRange'](_0x28e1cf,_0x424d51=>(_0x540157[_0x1d9400(0x314)](),_0xce86a2(_0x424d51,_0x21dab1,_0xaf0cac,_0x28e1cf)));_0x5ef3b2[_0x1d9400(0x225)](_0x540157);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2da676(0x255)]((_0x2afa6a,_0xbbbeb8)=>{const _0x3ab25b=_0x2da676,{range:_0x3d9b1c,sheetID:_0x203ed6}=_0x2afa6a,_0x24aa44=this['_refRangeService'][_0x3ab25b(0x223)](_0x3d9b1c,_0x53c8d0=>(_0x24aa44['dispose'](),_0xce86a2(_0x53c8d0,_0xbbbeb8,_0x203ed6,_0x3d9b1c)));_0x5ef3b2[_0x3ab25b(0x225)](_0x24aa44);});};this['disposeWithMe'](_0x5b7cfd[_0x108777(0x3d9)](this[_0x108777(0x269)][_0x108777(0x2f5)](()=>{_0x1cc1e1();})));}[_0x3bc2c8(0x358)](){const _0x231e54=_0x3bc2c8;var _0x9c4577,_0xd058f5;if(this[_0x231e54(0x404)]=!0x0,((_0x9c4577=this[_0x231e54(0x10b)][_0x231e54(0x1b8)]())==null?void 0x0:_0x9c4577[_0x231e54(0x183)]())!==this[_0x231e54(0x1b0)])return;const _0x5c3a89=(_0xd058f5=this[_0x231e54(0x30f)][_0x231e54(0x451)](_0xa62622[_0x231e54(0x34b)])['getCurrentSelections']())==null?void 0x0:_0xd058f5[0x0],_0x4642a3=this[_0x231e54(0x10b)]['getCurrentUnitForType'](_0x5b7cfd[_0x231e54(0x4bb)][_0x231e54(0x301)])['getActiveSheet']();_0x5c3a89&&_0x4642a3&&this[_0x231e54(0x409)](_0x4642a3[_0x231e54(0x43d)](),_0x5c3a89);}[_0x3bc2c8(0x3e9)](){const _0x2c77ae=_0x3bc2c8;this[_0x2c77ae(0x404)]=!0x1;}};_0x1a3ce8=_0x1bb410([_0x2ff648(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2ff648(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2e16f3)),_0x2ff648(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2ff648(0x5,_0x5b7cfd['IUniverInstanceService']),_0x2ff648(0x6,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ff648(0x7,_0x5b7cfd['Inject'](_0xa62622['RefRangeService']))],_0x1a3ce8);var _0x41752a=Object[_0x3bc2c8(0x361)],_0x387954=Object[_0x3bc2c8(0x48b)],_0x49e3d6=(_0x5e2a67,_0x957da0,_0x1e6bfd,_0x1dec26)=>{const _0x28694f=_0x3bc2c8;for(var _0xdc9859=_0x1dec26>0x1?void 0x0:_0x1dec26?_0x387954(_0x957da0,_0x1e6bfd):_0x957da0,_0x55051b=_0x5e2a67[_0x28694f(0x3d6)]-0x1,_0x6e80a6;_0x55051b>=0x0;_0x55051b--)(_0x6e80a6=_0x5e2a67[_0x55051b])&&(_0xdc9859=(_0x1dec26?_0x6e80a6(_0x957da0,_0x1e6bfd,_0xdc9859):_0x6e80a6(_0xdc9859))||_0xdc9859);return _0x1dec26&&_0xdc9859&&_0x41752a(_0x957da0,_0x1e6bfd,_0xdc9859),_0xdc9859;},_0x2f60ff=(_0x1bfd2b,_0x5a51e9)=>(_0x435a8a,_0x3b6904)=>_0x5a51e9(_0x435a8a,_0x3b6904,_0x1bfd2b);const _0x5427ce=0x12c,_0x1ef830=0x64;let _0x2063a7=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x3b225e,_0x4c0cb6,_0xcb583f,_0x187c1b,_0x20d807,_0x1f45b0,_0x49dd8f,_0x357ff0,_0x17ca73){const _0x26a78c=_0x3bc2c8;super(),_0x314dc6(this,'_online',!0x1),_0x314dc6(this,_0x26a78c(0x276),!0x1),_0x314dc6(this,_0x26a78c(0x269),new _0x266483[(_0x26a78c(0x43e))](new Map())),_0x314dc6(this,_0x26a78c(0x401),this[_0x26a78c(0x269)][_0x26a78c(0x4eb)]()),_0x314dc6(this,'_roomMembers$',new _0x266483[(_0x26a78c(0x43e))]([])),_0x314dc6(this,'roomMembers$',this[_0x26a78c(0x49b)][_0x26a78c(0x198)](_0x266483[_0x26a78c(0x41c)](_0x5427ce))),_0x314dc6(this,_0x26a78c(0x409),_0x5b7cfd[_0x26a78c(0x115)](_0x19e0ac=>{const _0x4724da=_0x26a78c,_0x43e757={'eventID':_0x56cbe4[_0x4724da(0x484)][_0x4724da(0x234)],'data':{'unitID':this[_0x4724da(0x1b0)],'memberID':this[_0x4724da(0x3cf)][_0x4724da(0x2d0)](),'selection':_0x57f458(_0x19e0ac)}};this[_0x4724da(0x3cf)][_0x4724da(0x441)](_0x43e757,this[_0x4724da(0x1b0)]);},_0x1ef830)),(this[_0x26a78c(0x1b0)]=_0x3b225e,this['_session']=_0x4c0cb6,this[_0x26a78c(0x30f)]=_0xcb583f,this[_0x26a78c(0x184)]=_0x187c1b,this[_0x26a78c(0x159)]=_0x20d807,this[_0x26a78c(0x38c)]=_0x1f45b0,this[_0x26a78c(0x3a1)]=_0x49dd8f,this[_0x26a78c(0x10b)]=_0x357ff0,this[_0x26a78c(0x2c6)]=_0x17ca73);}get[_0x3bc2c8(0x4b6)](){const _0x476ff3=_0x3bc2c8;return this[_0x476ff3(0x269)][_0x476ff3(0x21b)]();}get[_0x3bc2c8(0x3d3)](){const _0x1538e4=_0x3bc2c8;return this[_0x1538e4(0x49b)][_0x1538e4(0x21b)]();}[_0x3bc2c8(0x314)](){const _0x1b3275=_0x3bc2c8;super[_0x1b3275(0x314)](),this['_cursorInfo$'][_0x1b3275(0xe4)](new Map()),this['_cursorInfo$']['complete'](),this[_0x1b3275(0x49b)][_0x1b3275(0xe4)]([]),this[_0x1b3275(0x49b)][_0x1b3275(0x10e)]();}[_0x3bc2c8(0x341)](){const _0xa14973=_0x3bc2c8;this[_0xa14973(0x276)]||(this['_init']=!0x0,this[_0xa14973(0x3cf)]['sessionStatus$'][_0xa14973(0x198)](_0x266483[_0xa14973(0x46b)](this[_0xa14973(0x2dd)]))[_0xa14973(0x2f5)](_0x4973da=>{const _0x32a0e4=_0xa14973;_0x4973da===_0x2d9d4e['ONLINE']?this[_0x32a0e4(0x358)]():this[_0x32a0e4(0x3e9)]();}),this[_0xa14973(0x3cf)][_0xa14973(0x164)][_0xa14973(0x198)](_0x266483['takeUntil'](this[_0xa14973(0x2dd)]))[_0xa14973(0x2f5)](_0x4ccb67=>{const _0x10e439=_0xa14973,_0x137696=_0x4ccb67['eventID'];_0x137696===_0x56cbe4['CollaborationEvent'][_0x10e439(0x234)]&&this['_onCursorUpdate'](_0x4ccb67),_0x137696===_0x56cbe4['CollaborationEvent'][_0x10e439(0x44d)]&&this['_onCursorDelete'](_0x4ccb67);}),this['disposeWithMe'](this[_0xa14973(0x2c6)][_0xa14973(0x15f)](_0x36d67a=>{const _0x4e67ed=_0xa14973,_0x4c3b69=_0x36d67a[_0x4e67ed(0x3c2)];_0x4c3b69!=null&&this[_0x4e67ed(0x404)]&&_0x36d67a['id']===_0x3e2148[_0x4e67ed(0x1aa)]['id']&&_0x4c3b69[_0x4e67ed(0x373)]===this[_0x4e67ed(0x1b0)]&&_0x4c3b69['isEditing']===!0x1&&this[_0x4e67ed(0x409)](_0x4c3b69[_0x4e67ed(0x2d5)]);})),this['_syncEditingCollabCursorService'][_0xa14973(0x1b9)][_0xa14973(0x198)](_0x266483[_0xa14973(0x46b)](this[_0xa14973(0x2dd)]))['subscribe'](_0x556c4b=>{const _0x58cb93=_0xa14973;if((_0x556c4b==null?void 0x0:_0x556c4b[_0x58cb93(0x1b0)])!==this[_0x58cb93(0x1b0)])return;const _0x187f16={'eventID':_0x56cbe4[_0x58cb93(0x484)][_0x58cb93(0x234)],'data':_0x556c4b};this['_onCursorUpdate'](_0x187f16);}),this[_0xa14973(0x131)](this[_0xa14973(0x2c6)]['onCommandExecuted'](_0x541f2a=>{const _0x4b6633=_0xa14973;if(_0x541f2a[_0x4b6633(0x3c2)]==null)return;const _0x5242cf=_0x541f2a[_0x4b6633(0x3c2)];if(_0x541f2a['id']!==_0x3e2148['RichTextEditingMutation']['id']||_0x5242cf[_0x4b6633(0x373)]!==this[_0x4b6633(0x1b0)])return;const _0x1716af={'id':_0x4b6633(0x2d2),'params':_0x5242cf},_0x1fbe5d=this[_0x4b6633(0x4b6)];for(const [_0xe43722,_0x59a3f4]of _0x1fbe5d){const _0x20cdc9={'id':_0x4b6633(0x2d2),'params':{'unitId':this[_0x4b6633(0x1b0)],'actions':null,'textRanges':_0x59a3f4[_0x4b6633(0x2d5)]}},_0x12538e=this[_0x4b6633(0x3a1)]['transformMutation'](_0x1716af,_0x20cdc9,!0x1);if(_0x56cbe4[_0x4b6633(0x197)](_0x12538e))throw _0x12538e[_0x4b6633(0x476)];_0x1fbe5d[_0x4b6633(0x10d)](_0xe43722,{..._0x59a3f4,'ranges':_0x12538e[_0x4b6633(0x275)]['params'][_0x4b6633(0x138)]});}queueMicrotask(()=>{const _0x3f32a8=_0x4b6633;this[_0x3f32a8(0x269)][_0x3f32a8(0xe4)](_0x1fbe5d);});})));}[_0x3bc2c8(0x512)](_0x448554){const _0x293b22=_0x3bc2c8;var _0x247391,_0x5cf58b;const {memberID:_0x5558b7,selection:_0x34d2a9}=_0x448554[_0x293b22(0x2db)],_0x19e780=_0x39789b(_0x34d2a9),_0x177a63=(_0x5cf58b=(_0x247391=this[_0x293b22(0x159)][_0x293b22(0x3c1)](this['unitID'],_0x5558b7))==null?void 0x0:_0x247391['name'])!=null?_0x5cf58b:'Unknown\x20user',_0x3bd6e0={'color':this[_0x293b22(0x184)]['assignAColorForMemberID'](_0x5558b7),'name':_0x177a63,'ranges':_0x19e780},_0x42f4bd=this[_0x293b22(0x4b6)];_0x42f4bd[_0x293b22(0x10d)](_0x5558b7,_0x3bd6e0),this[_0x293b22(0x269)]['next'](_0x42f4bd);}[_0x3bc2c8(0x369)](_0x252bb4){const _0x1e60d0=_0x3bc2c8,{memberID:_0x1a873d}=_0x252bb4['data'],_0x1b192e=this[_0x1e60d0(0x4b6)];_0x1b192e[_0x1e60d0(0x344)](_0x1a873d),this['_cursorInfo$'][_0x1e60d0(0xe4)](_0x1b192e);}['_toggleOnline'](){const _0x272229=_0x3bc2c8;var _0x506944;if(this['_online']=!0x0,((_0x506944=this[_0x272229(0x10b)][_0x272229(0x1b8)]())==null?void 0x0:_0x506944[_0x272229(0x183)]())!==this[_0x272229(0x1b0)])return;const _0x14d1b9=this[_0x272229(0x30f)]['get'](_0x3e2148['DocSelectionManagerService'])[_0x272229(0x46d)]();Array[_0x272229(0x1cc)](_0x14d1b9)&&_0x14d1b9[_0x272229(0x3d6)]>0x0&&this['_updateLocalCursor'](_0x14d1b9);}[_0x3bc2c8(0x3e9)](){const _0x2a8867=_0x3bc2c8;this[_0x2a8867(0x404)]=!0x1;}};_0x2063a7=_0x49e3d6([_0x2f60ff(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2f60ff(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2e16f3)),_0x2f60ff(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2f60ff(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56b650)),_0x2f60ff(0x6,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x2f60ff(0x7,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x2f60ff(0x8,_0x5b7cfd['ICommandService'])],_0x2063a7);var _0x310a3f=Object[_0x3bc2c8(0x361)],_0x2b8eca=Object[_0x3bc2c8(0x48b)],_0x394fdc=(_0x2c774e,_0x3084a5,_0x1e288c,_0x510cd0)=>{const _0x3b6bcc=_0x3bc2c8;for(var _0x5a7370=_0x510cd0>0x1?void 0x0:_0x510cd0?_0x2b8eca(_0x3084a5,_0x1e288c):_0x3084a5,_0x4448f1=_0x2c774e[_0x3b6bcc(0x3d6)]-0x1,_0xe6dc3d;_0x4448f1>=0x0;_0x4448f1--)(_0xe6dc3d=_0x2c774e[_0x4448f1])&&(_0x5a7370=(_0x510cd0?_0xe6dc3d(_0x3084a5,_0x1e288c,_0x5a7370):_0xe6dc3d(_0x5a7370))||_0x5a7370);return _0x510cd0&&_0x5a7370&&_0x310a3f(_0x3084a5,_0x1e288c,_0x5a7370),_0x5a7370;},_0x53e2b2=(_0x383554,_0x1bd874)=>(_0x283b7c,_0x16df0a)=>_0x1bd874(_0x283b7c,_0x16df0a,_0x383554);let _0x47bd3e=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x53c64a,_0x36beeb,_0x39a921){const _0x11742b=_0x3bc2c8;super(),_0x314dc6(this,'_entities',new Map()),_0x314dc6(this,_0x11742b(0x1cb),new _0x266483['Subject']()),(this[_0x11742b(0x10b)]=_0x53c64a,this[_0x11742b(0x30f)]=_0x36beeb,this[_0x11742b(0x24d)]=_0x39a921,this[_0x11742b(0x276)]());}[_0x3bc2c8(0x314)](){const _0x4c4641=_0x3bc2c8;super[_0x4c4641(0x314)](),this[_0x4c4641(0x1cb)][_0x4c4641(0x10e)](),this[_0x4c4641(0x2af)][_0x4c4641(0x255)](_0x3563d6=>_0x3563d6[_0x4c4641(0x314)]());}[_0x3bc2c8(0x4c6)](_0x4e7241){const _0x47693b=_0x3bc2c8;return this[_0x47693b(0x2af)][_0x47693b(0x232)](_0x4e7241)?this[_0x47693b(0x2af)]['get'](_0x4e7241)['cursorInfo$']:this['_entityInit$'][_0x47693b(0x198)](_0x266483['filter'](_0x22f28d=>_0x22f28d[_0x47693b(0x1b0)]===_0x4e7241),_0x266483['switchMap'](_0x59dca1=>_0x59dca1[_0x47693b(0x401)]));}[_0x3bc2c8(0x276)](){const _0x5e133f=_0x3bc2c8;this[_0x5e133f(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5e133f(0x4bb)]['UNIVER_SHEET'])[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x46b)](this[_0x5e133f(0x2dd)]))[_0x5e133f(0x2f5)](async _0x3c46ca=>{const _0x5f555a=_0x5e133f,_0x3dcbe3=_0x3c46ca[_0x5f555a(0x183)](),_0x456a1f=await this['_startSheetCollabCursor'](_0x3dcbe3);this[_0x5f555a(0x1cb)][_0x5f555a(0xe4)](_0x456a1f),this[_0x5f555a(0x2af)][_0x5f555a(0x10d)](_0x3dcbe3,_0x456a1f);}),this[_0x5e133f(0x10b)][_0x5e133f(0x327)](_0x5b7cfd[_0x5e133f(0x4bb)][_0x5e133f(0x3a6)])[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x46b)](this[_0x5e133f(0x2dd)]))[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x3b6)](_0x891f93=>!_0x891f93[_0x5e133f(0x183)]()['startsWith']('__')))[_0x5e133f(0x2f5)](async _0x5932c5=>{const _0x173235=_0x5e133f,_0x5a13b8=_0x5932c5[_0x173235(0x183)](),_0x9ebe64=await this[_0x173235(0x3bb)](_0x5a13b8);this['_entityInit$'][_0x173235(0xe4)](_0x9ebe64),this[_0x173235(0x2af)][_0x173235(0x10d)](_0x5a13b8,_0x9ebe64);}),_0x266483['merge'](this[_0x5e133f(0x10b)][_0x5e133f(0x4a5)](_0x5b7cfd[_0x5e133f(0x4bb)][_0x5e133f(0x3a6)]),this['_univerInstanceService'][_0x5e133f(0x4a5)](_0x5b7cfd['UniverInstanceType'][_0x5e133f(0x301)]))[_0x5e133f(0x198)](_0x266483['takeUntil'](this['dispose$']))[_0x5e133f(0x2f5)](_0x414575=>{const _0x3d0242=_0x5e133f,_0x15b358=_0x414575[_0x3d0242(0x183)](),_0x1d43b4=this[_0x3d0242(0x2af)][_0x3d0242(0x451)](_0x15b358);_0x1d43b4&&(_0x1d43b4[_0x3d0242(0x314)](),this[_0x3d0242(0x2af)][_0x3d0242(0x344)](_0x15b358));});}async[_0x3bc2c8(0x252)](_0x872b87){const _0x4f91e2=_0x3bc2c8,_0x3c6141=await this['_collabSessionService']['requireSession'](_0x872b87),_0xd222cf=this[_0x4f91e2(0x30f)]['createInstance'](_0x1a3ce8,_0x872b87,_0x3c6141);return _0xd222cf['init'](),_0xd222cf;}async[_0x3bc2c8(0x3bb)](_0x9a86aa){const _0x3bf350=_0x3bc2c8,_0x35aeaa=await this[_0x3bf350(0x24d)][_0x3bf350(0x318)](_0x9a86aa),_0x337961=this[_0x3bf350(0x30f)][_0x3bf350(0x1a3)](_0x2063a7,_0x9a86aa,_0x35aeaa);return _0x337961[_0x3bf350(0x341)](),_0x337961;}};_0x47bd3e=_0x394fdc([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x47bd3e),_0x53e2b2(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x53e2b2(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x53e2b2(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x1d8)]))],_0x47bd3e);const _0x433f4b=0x14,_0x297918=0xc8,_0x291fc2=0x4,_0x2ef760=0x5;function _0x27214b(_0x4be302,_0x2ab050){const _0x508c48=_0x3bc2c8;let {radius:_0xe704cd,width:_0x29b2d8,height:_0x1b7970}=_0x2ab050;_0xe704cd=_0xe704cd!=null?_0xe704cd:0x0,_0x29b2d8=_0x29b2d8!=null?_0x29b2d8:0x1e,_0x1b7970=_0x1b7970!=null?_0x1b7970:0x1e;let _0x20a282=0x0,_0x3bceed=0x0,_0x2f7fe8=0x0;_0x20a282=_0x3bceed=_0x2f7fe8=Math[_0x508c48(0x17d)](_0xe704cd,_0x29b2d8/0x2,_0x1b7970/0x2),_0x4be302[_0x508c48(0x154)](),_0x4be302[_0x508c48(0x319)](_0x20a282,0x0),_0x4be302['lineTo'](_0x29b2d8-_0x3bceed,0x0),_0x4be302[_0x508c48(0x256)](_0x29b2d8-_0x3bceed,_0x3bceed,_0x3bceed,Math['PI']*0x3/0x2,0x0,!0x1),_0x4be302['lineTo'](_0x29b2d8,_0x1b7970-_0x2f7fe8),_0x4be302[_0x508c48(0x256)](_0x29b2d8-_0x2f7fe8,_0x1b7970-_0x2f7fe8,_0x2f7fe8,0x0,Math['PI']/0x2,!0x1),_0x4be302[_0x508c48(0x366)](0x0,_0x1b7970),_0x4be302[_0x508c48(0x366)](0x0,_0x20a282),_0x4be302[_0x508c48(0x256)](_0x20a282,_0x20a282,_0x20a282,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4be302[_0x508c48(0x21f)](),_0x2ab050[_0x508c48(0xe6)]&&(_0x4be302['save'](),_0x4be302[_0x508c48(0x2a0)]=_0x2ab050[_0x508c48(0xe6)],_0x2ab050[_0x508c48(0x4d8)]===_0x508c48(0x2df)?_0x4be302['fill'](_0x508c48(0x2df)):_0x4be302[_0x508c48(0xe6)](),_0x4be302[_0x508c48(0x468)]());}class _0xb13772 extends _0x46e2e3[_0x3bc2c8(0x343)]{constructor(_0x2fa082,_0x49c00c){const _0x2f7639=_0x3bc2c8;super(_0x2fa082,_0x49c00c),_0x314dc6(this,_0x2f7639(0x3da)),_0x314dc6(this,'text'),(this[_0x2f7639(0x3da)]=_0x49c00c==null?void 0x0:_0x49c00c[_0x2f7639(0x3da)],this[_0x2f7639(0x2a2)]=_0x49c00c==null?void 0x0:_0x49c00c['text']);}static[_0x3bc2c8(0xff)](_0x2097b5,_0x27727a){const _0x4ef287=_0x3bc2c8,{text:_0x464bab,color:_0x491705}=_0x27727a;_0x2097b5[_0x4ef287(0x3b3)](),_0x2097b5[_0x4ef287(0x3f0)]=_0x4ef287(0x19c);const _0x289e04=_0x2097b5['measureText'](_0x464bab)[_0x4ef287(0x1b3)],_0xbcc93f=Math[_0x4ef287(0x17d)](_0x289e04+0x2*_0x291fc2,_0x297918);_0x27214b(_0x2097b5,{'height':_0x433f4b,'radius':0x4,'width':_0xbcc93f,'fill':_0x491705,'evented':!0x1}),_0x2097b5['fillStyle']=_0x4ef287(0x499);const _0x22434f=_0x291fc2,_0x40c4b0=_0x433f4b-_0x2ef760,_0x2eb7d4=_0x297918-0x2*_0x291fc2;if(_0x289e04>_0x2eb7d4){let _0x547f10='',_0x218267=0x0;for(const _0x3ba4ca of _0x464bab){const _0x1ae43f=_0x2097b5[_0x4ef287(0x4aa)](_0x3ba4ca)['width'];if(_0x218267+_0x1ae43f<=_0x2eb7d4-_0x2097b5[_0x4ef287(0x4aa)](_0x4ef287(0x1fd))[_0x4ef287(0x1b3)])_0x547f10+=_0x3ba4ca,_0x218267+=_0x1ae43f;else{_0x547f10+=_0x4ef287(0x1fd);break;}}_0x2097b5['fillText'](_0x547f10,_0x22434f,_0x40c4b0);}else _0x2097b5[_0x4ef287(0x278)](_0x464bab,_0x22434f,_0x40c4b0);_0x2097b5[_0x4ef287(0x468)]();}[_0x3bc2c8(0x1c7)](_0x5d6abb){const _0x367cae=_0x3bc2c8;_0xb13772[_0x367cae(0xff)](_0x5d6abb,this);}}const _0x255709=_0x3bc2c8(0x30d),_0x3eff7a=_0x3bc2c8(0x14a),_0x1da325=_0x3bc2c8(0x220),_0x506fa5=0x6,_0x5221cc=1.5,_0x521a07=0x4,_0x55c328=1.5,_0x2bf989=_0x3bc2c8(0x490);class _0x330227{constructor(_0x4d7dde,_0x3fadb0,_0x1bfb63,_0x4a535f){const _0xfba18f=_0x3bc2c8;_0x314dc6(this,_0xfba18f(0x21d),[]),_0x314dc6(this,_0xfba18f(0x231),null),_0x314dc6(this,_0xfba18f(0x351),null),_0x314dc6(this,'_anchorDot',null),_0x314dc6(this,_0xfba18f(0x4cc),null),_0x314dc6(this,'_eventUnsubscribe',null),(this[_0xfba18f(0x362)]=_0x4d7dde,this['_scene']=_0x3fadb0,this[_0xfba18f(0xdf)]=_0x1bfb63,this['_document']=_0x4a535f,this[_0xfba18f(0x379)]());}set[_0x3bc2c8(0x1ed)](_0x1296a2){const _0x1988ef=_0x3bc2c8;_0x1296a2?(this[_0x1988ef(0x2f7)]&&this[_0x1988ef(0x2f7)][_0x1988ef(0x47e)](),this[_0x1988ef(0x351)]&&this[_0x1988ef(0x351)][_0x1988ef(0x29f)]()):(this[_0x1988ef(0x2f7)]&&this['_anchorDot']['show'](),this[_0x1988ef(0x351)]&&this[_0x1988ef(0x351)]['hide']());}['dispose'](){const _0x3cf148=_0x3bc2c8;for(const _0x15f1f5 of this[_0x3cf148(0x21d)])_0x15f1f5[_0x3cf148(0x314)]();this[_0x3cf148(0x351)]&&this[_0x3cf148(0x351)][_0x3cf148(0x314)](),this[_0x3cf148(0x2f7)]&&this['_anchorDot'][_0x3cf148(0x314)](),this[_0x3cf148(0x231)]&&this[_0x3cf148(0x231)][_0x3cf148(0x314)](),this[_0x3cf148(0x3fc)]&&this[_0x3cf148(0x3fc)]();}[_0x3bc2c8(0x379)](){const _0x31a2c3=_0x3bc2c8;var _0x1e7d3f;const {_docSkeleton:_0x4c2fee,_document:_0x4430a3}=this,{color:_0x7d9f22,name:_0x3fd76a,ranges:_0x329f75}=this[_0x31a2c3(0x362)],_0x399e10=_0x4430a3[_0x31a2c3(0x2d1)](),{docsLeft:_0x14fc12,docsTop:_0x3fe0ba}=_0x399e10,_0x48cc1b=new _0x618f14[(_0x31a2c3(0xf4))](_0x399e10,_0x4c2fee);for(const {startOffset:_0x561fc3,endOffset:_0x5f25b7,collapsed:_0x43e706,isActive:_0xf27d01}of _0x329f75){const _0x17883f=_0x4c2fee['findNodePositionByCharIndex'](_0x561fc3),_0x3bdb49=_0x4c2fee[_0x31a2c3(0x150)](_0x5f25b7);if(_0xf27d01){const {contentBoxPointGroup:_0x6304a1}=_0x48cc1b['getRangePointData'](_0x3bdb49,_0x3bdb49);if(_0x6304a1[_0x31a2c3(0x3d6)]===0x0)continue;this[_0x31a2c3(0x286)](_0x7d9f22,_0x6304a1,_0x14fc12,_0x3fe0ba,_0x3fd76a),this[_0x31a2c3(0x3fc)]=this[_0x31a2c3(0x365)]();}if(!_0x43e706&&_0x17883f&&_0x3bdb49){if(_0x618f14[_0x31a2c3(0x36a)](_0x17883f,_0x3bdb49)){const _0x1deb30=new _0x618f14[(_0x31a2c3(0x239))](_0x399e10,_0x4c2fee),{pointGroup:_0xbdda10}=(_0x1e7d3f=_0x1deb30[_0x31a2c3(0x334)](_0x17883f,_0x3bdb49))!=null?_0x1e7d3f:{};if(_0xbdda10==null||_0xbdda10['length']===0x0)continue;this['_drawRectRange'](_0x7d9f22,_0xbdda10,_0x14fc12,_0x3fe0ba);}else{const {contentBoxPointGroup:_0x89b832}=_0x48cc1b[_0x31a2c3(0x334)](_0x17883f,_0x3bdb49);if(_0x89b832[_0x31a2c3(0x3d6)]===0x0)continue;this[_0x31a2c3(0x437)](_0x7d9f22,_0x89b832,_0x14fc12,_0x3fe0ba);}}}}[_0x3bc2c8(0x286)](_0x30fdde,_0xfdcf1d,_0x508a86,_0x481047,_0x128553){const _0x14a5d1=_0x3bc2c8,_0x16cfc4=this['_getAnchorBounding'](_0xfdcf1d),{left:_0x17bc78,top:_0x3953f3,height:_0x500c10}=_0x16cfc4,_0x4ee4d4=this[_0x14a5d1(0x316)](),_0x42dc2d=_0x55c328/_0x4ee4d4,_0x569e2f=new _0x46e2e3['Rect'](_0x255709+_0x5b7cfd[_0x14a5d1(0x2f6)]['generateRandomId'](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047,'height':_0x500c10,'width':_0x5221cc,'fill':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'strokeWidth':_0x42dc2d,'stroke':_0x2bf989,'evented':!0x0});this['_anchor']=_0x569e2f,this[_0x14a5d1(0x4f0)][_0x14a5d1(0x1a5)](_0x569e2f,_0x618f14[_0x14a5d1(0x2ad)]);const _0x223fb8=new _0x46e2e3['Rect'](_0x255709+_0x5b7cfd['Tools'][_0x14a5d1(0x1d9)](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047-_0x521a07/0x2,'height':_0x521a07,'width':_0x521a07,'fill':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'strokeWidth':0x0,'stroke':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'evented':!0x1});this[_0x14a5d1(0x2f7)]=_0x223fb8,this['_scene'][_0x14a5d1(0x1a5)](_0x223fb8,_0x618f14['TEXT_RANGE_LAYER_INDEX']);const _0x29d7df=new _0xb13772(_0x255709+_0x5b7cfd[_0x14a5d1(0x2f6)]['generateRandomId'](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047-_0x433f4b,'text':_0x128553,'color':_0x30fdde});this[_0x14a5d1(0x351)]=_0x29d7df,this['_scene']['addObject'](_0x29d7df,_0x618f14[_0x14a5d1(0x2ad)]),this[_0x14a5d1(0x1ed)]=!0x1;}[_0x3bc2c8(0x365)](){const _0x989078=_0x3bc2c8,_0x552300=this[_0x989078(0x231)]['onPointerEnter$'][_0x989078(0x457)](()=>{this['_hover']=!0x0;}),_0xd11fd2=this[_0x989078(0x231)][_0x989078(0x34d)][_0x989078(0x457)](()=>{const _0x2218d0=_0x989078;this[_0x2218d0(0x4cc)]&&clearTimeout(this[_0x2218d0(0x4cc)]),this['_hideTimer']=setTimeout(()=>{const _0x325fd2=_0x2218d0;this[_0x325fd2(0x1ed)]=!0x1;},0x7d0);});return()=>{const _0x123c90=_0x989078;_0x552300[_0x123c90(0x114)](),_0xd11fd2['unsubscribe']();};}[_0x3bc2c8(0x437)](_0x2eee2a,_0x2940d8,_0x3078e0,_0x43f0fa){const _0x3ea458=_0x3bc2c8,_0x3e6734=new _0x5b7cfd[(_0x3ea458(0x496))](_0x2eee2a)['setAlpha'](0.2)[_0x3ea458(0x360)](),_0x3957ef=new _0x46e2e3[(_0x3ea458(0x47c))](_0x3eff7a+_0x5b7cfd[_0x3ea458(0x2f6)][_0x3ea458(0x1d9)](_0x506fa5),{'pointsGroup':_0x2940d8,'fill':_0x3e6734||_0x46e2e3[_0x3ea458(0x3cc)](_0x5b7cfd[_0x3ea458(0x3f4)][_0x3ea458(0x439)],0.2),'left':_0x3078e0,'top':_0x43f0fa,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3ea458(0x21d)][_0x3ea458(0x13d)](_0x3957ef),this[_0x3ea458(0x4f0)]['addObject'](_0x3957ef,_0x618f14[_0x3ea458(0x2ad)]);}[_0x3bc2c8(0x2fa)](_0x1c38d9,_0x5df758,_0x56b2eb,_0x4ea399){const _0x20066e=_0x3bc2c8,_0xa57774=new _0x5b7cfd[(_0x20066e(0x496))](_0x1c38d9)[_0x20066e(0x4b5)](0.2)[_0x20066e(0x360)](),_0x39c583=new _0x46e2e3[(_0x20066e(0x47c))](_0x1da325+_0x5b7cfd['Tools'][_0x20066e(0x1d9)](_0x506fa5),{'pointsGroup':_0x5df758,'fill':_0xa57774||_0x46e2e3[_0x20066e(0x3cc)](_0x5b7cfd[_0x20066e(0x3f4)][_0x20066e(0x439)],0.2),'left':_0x56b2eb,'top':_0x4ea399,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20066e(0x21d)][_0x20066e(0x13d)](_0x39c583),this[_0x20066e(0x4f0)][_0x20066e(0x1a5)](_0x39c583,_0x618f14[_0x20066e(0x2ad)]);}[_0x3bc2c8(0x27b)](_0x1d51fc){const _0x3a86fb=_0x1d51fc[0x0],_0x3f1f20=_0x3a86fb[0x0],_0x4bb393=_0x3a86fb[0x2],{x:_0x515343,y:_0x905f34}=_0x3f1f20,{x:_0x1fb7c3,y:_0x42b07d}=_0x4bb393;return{'left':_0x515343,'top':_0x905f34,'width':_0x1fb7c3-_0x515343,'height':_0x42b07d-_0x905f34};}[_0x3bc2c8(0x316)](){const _0x314859=_0x3bc2c8,{scaleX:_0x19ee83,scaleY:_0x353371}=this[_0x314859(0x4f0)]['getAncestorScale']();return Math['max'](_0x19ee83,_0x353371);}}var _0x355836=Object[_0x3bc2c8(0x361)],_0x25da5f=Object[_0x3bc2c8(0x48b)],_0x4fae0c=(_0x42eec8,_0x41c80d,_0x14f2c5,_0x584226)=>{for(var _0x1a6890=_0x584226>0x1?void 0x0:_0x584226?_0x25da5f(_0x41c80d,_0x14f2c5):_0x41c80d,_0x3e00a5=_0x42eec8['length']-0x1,_0x51df87;_0x3e00a5>=0x0;_0x3e00a5--)(_0x51df87=_0x42eec8[_0x3e00a5])&&(_0x1a6890=(_0x584226?_0x51df87(_0x41c80d,_0x14f2c5,_0x1a6890):_0x51df87(_0x1a6890))||_0x1a6890);return _0x584226&&_0x1a6890&&_0x355836(_0x41c80d,_0x14f2c5,_0x1a6890),_0x1a6890;},_0x4c8c24=(_0x2e1337,_0x1131a2)=>(_0x4f04b9,_0x28996e)=>_0x1131a2(_0x4f04b9,_0x28996e,_0x2e1337);let _0x260281=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x400fac,_0x487bd3,_0x49082b,_0x2982ea,_0x4b35b1){const _0x260dab=_0x3bc2c8;super(),_0x314dc6(this,'_cursorShapes',[]),_0x314dc6(this,_0x260dab(0x10a),[]),(this[_0x260dab(0x331)]=_0x400fac,this[_0x260dab(0x434)]=_0x487bd3,this[_0x260dab(0xf8)]=_0x49082b,this['_commandService']=_0x2982ea,this['_themeService']=_0x4b35b1,this[_0x260dab(0x276)]());}[_0x3bc2c8(0x276)](){const _0x504f79=_0x3bc2c8,_0xafcf92=this[_0x504f79(0x331)][_0x504f79(0x373)],_0x48b83f=this[_0x504f79(0x434)];this[_0x504f79(0x131)](_0x266483[_0x504f79(0x1ef)]([this[_0x504f79(0xf8)][_0x504f79(0x4c6)](_0xafcf92),this[_0x504f79(0x348)][_0x504f79(0x230)]])[_0x504f79(0x198)](_0x51de38[_0x504f79(0x39c)](([_0x2d381a,_0x230179])=>({'skeleton':_0x48b83f[_0x504f79(0x26f)](),'cursors':[..._0x2d381a[_0x504f79(0x4c2)]()][_0x504f79(0x448)](_0x31a71f=>({..._0x31a71f,'color':_0x230179[_0x31a71f[_0x504f79(0x3da)]]}))})))[_0x504f79(0x2f5)](_0x4dad92=>{const _0x434181=_0x504f79;if(this[_0x434181(0x2a9)](),_0x4dad92){const {skeleton:_0x57aafb,cursors:_0x123c0d}=_0x4dad92;this[_0x434181(0x37c)](_0x57aafb,_0x123c0d);}})),this[_0x504f79(0xfe)](),this[_0x504f79(0x4a6)]();}[_0x3bc2c8(0x37c)](_0xf89e9b,_0x27ae18){const _0x2291d0=_0x3bc2c8,{scene:_0x5a0ccb,mainComponent:_0x1775a8}=this[_0x2291d0(0x331)],_0x509170=_0x27ae18[_0x2291d0(0x39c)](_0x1988f4=>new _0x330227(_0x1988f4,_0x5a0ccb,_0xf89e9b,_0x1775a8));this[_0x2291d0(0xf2)]=_0x509170,this[_0x2291d0(0x10a)]=_0x27ae18;}[_0x3bc2c8(0x236)](){const _0x3e5df8=_0x3bc2c8;this[_0x3e5df8(0x2a9)]();const {scene:_0x66cbf8,mainComponent:_0x5ebcd7}=this['_context'],_0x205ae8=this[_0x3e5df8(0x434)][_0x3e5df8(0x26f)](),_0x4f178a=this[_0x3e5df8(0x10a)][_0x3e5df8(0x39c)](_0x15a943=>new _0x330227(_0x15a943,_0x66cbf8,_0x205ae8,_0x5ebcd7));this['_cursorShapes']=_0x4f178a;}[_0x3bc2c8(0x2a9)](){const _0x2dba12=_0x3bc2c8;this['_cursorShapes']['forEach'](_0x165807=>_0x165807[_0x2dba12(0x314)]()),this[_0x2dba12(0xf2)]=[];}[_0x3bc2c8(0x4a6)](){const _0x4ea157=_0x3bc2c8,_0x20f68c=[_0x618f14[_0x4ea157(0x3af)]['id']];this['disposeWithMe'](this[_0x4ea157(0x2c6)][_0x4ea157(0x15f)](_0x5bf0e7=>{const _0x23d03f=_0x4ea157;_0x20f68c[_0x23d03f(0x3a9)](_0x5bf0e7['id'])&&_0x5bf0e7['params'][_0x23d03f(0x373)]===this[_0x23d03f(0x331)][_0x23d03f(0x373)]&&this['_refreshCollabCursors']();}));}[_0x3bc2c8(0xfe)](){const _0x318200=_0x3bc2c8;this[_0x318200(0x131)](_0x5b7cfd[_0x318200(0x444)](this[_0x318200(0x331)][_0x318200(0x249)][_0x318200(0x3fa)])[_0x318200(0x198)](_0x51de38[_0x318200(0x3b6)](_0xebe101=>_0xebe101[_0x318200(0x413)]===_0x46e2e3[_0x318200(0x2ae)][_0x318200(0x2d3)]),_0x51de38[_0x318200(0x4f6)](0x10))[_0x318200(0x2f5)](()=>{const _0x5c076c=_0x318200;this[_0x5c076c(0x236)]();}));}};_0x260281=_0x4fae0c([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x1e0)],_0x260281),_0x4c8c24(0x1,_0x5b7cfd['Inject'](_0x3e2148[_0x3bc2c8(0x3ca)])),_0x4c8c24(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x47bd3e)),_0x4c8c24(0x3,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x4c8c24(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x308)]))],_0x260281);const _0x26cee5=0x1,_0x3fc450=1.5;class _0x44ac57 extends _0x46e2e3[_0x3bc2c8(0x343)]{constructor(_0x5162b6,_0x1e36c8){const _0x38e431=_0x3bc2c8;super(_0x5162b6,_0x1e36c8),_0x314dc6(this,_0x38e431(0x20c)),_0x314dc6(this,'_hovered',!0x1),_0x314dc6(this,_0x38e431(0x16c)),_0x314dc6(this,_0x38e431(0x4be),''),_0x314dc6(this,_0x38e431(0x483),_0x38e431(0x264)),_0x314dc6(this,_0x38e431(0x260)),(_0x1e36c8&&this['setShapeProps'](_0x1e36c8),this[_0x38e431(0x3e4)][_0x38e431(0x457)](()=>this[_0x38e431(0x3ef)]({'hovered':!0x0})),this[_0x38e431(0x34d)][_0x38e431(0x457)](()=>this[_0x38e431(0x3ef)]({'hovered':!0x1})));}['setShapeProps'](_0x1e0cfa){const _0x166df9=_0x3bc2c8;var _0x155894,_0x1cd2a6,_0xd4023a,_0x4a2ddd,_0x31c47e,_0x44df32;this[_0x166df9(0x20c)]=(_0x155894=_0x1e0cfa['color'])!=null?_0x155894:this[_0x166df9(0x20c)],this[_0x166df9(0x277)]=(_0x1cd2a6=_0x1e0cfa[_0x166df9(0x432)])!=null?_0x1cd2a6:this[_0x166df9(0x277)],this[_0x166df9(0x16c)]=(_0xd4023a=_0x1e0cfa[_0x166df9(0x177)])!=null?_0xd4023a:this[_0x166df9(0x16c)],this['_name']=(_0x4a2ddd=_0x1e0cfa['name'])!=null?_0x4a2ddd:this[_0x166df9(0x4be)],this[_0x166df9(0x483)]=(_0x31c47e=_0x1e0cfa[_0x166df9(0x428)])!=null?_0x31c47e:this[_0x166df9(0x483)],this['_backgroundColor']=(_0x44df32=_0x1e0cfa['backgroundColor'])!=null?_0x44df32:this['_backgroundColor'],this['transformByState']({'width':_0x1e0cfa['width'],'height':_0x1e0cfa[_0x166df9(0x3e5)]});}[_0x3bc2c8(0x427)](_0xeaf19e){const _0x770c0c=_0x3bc2c8,{row:_0x203b23,column:_0x3df94e}=_0xeaf19e;if(_0x203b23>=this[_0x770c0c(0x16c)][_0x770c0c(0x257)]&&_0x203b23<=this[_0x770c0c(0x16c)][_0x770c0c(0x370)]&&_0x3df94e>=this[_0x770c0c(0x16c)][_0x770c0c(0x17a)]&&_0x3df94e<=this[_0x770c0c(0x16c)][_0x770c0c(0x460)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3bc2c8(0x422)](_0x3264bc){return!0x1;}[_0x3bc2c8(0x1c7)](_0x16cc4d){const _0xc3c6fc=_0x3bc2c8;_0x46e2e3[_0xc3c6fc(0x1c3)]['drawWith'](_0x16cc4d,{'width':this[_0xc3c6fc(0x1b3)],'height':this[_0xc3c6fc(0x3e5)],'strokeWidth':_0x3fc450,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc3c6fc(0x260)]}),this[_0xc3c6fc(0x277)]&&(_0x16cc4d['save'](),_0x16cc4d['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0xc3c6fc(0x483)]===_0xc3c6fc(0x4ac)?0x0:-_0x433f4b),_0xb13772[_0xc3c6fc(0xff)](_0x16cc4d,{'text':this[_0xc3c6fc(0x4be)],'color':this[_0xc3c6fc(0x20c)]}),_0x16cc4d[_0xc3c6fc(0x468)]());}}var _0x5808aa=Object[_0x3bc2c8(0x361)],_0x1104f7=Object[_0x3bc2c8(0x48b)],_0x5c93f6=(_0x5c0922,_0x5b0e1b,_0x2f0107,_0x1dd326)=>{const _0x882e4f=_0x3bc2c8;for(var _0x3a9202=_0x1dd326>0x1?void 0x0:_0x1dd326?_0x1104f7(_0x5b0e1b,_0x2f0107):_0x5b0e1b,_0x3f12ed=_0x5c0922[_0x882e4f(0x3d6)]-0x1,_0x3d9cf4;_0x3f12ed>=0x0;_0x3f12ed--)(_0x3d9cf4=_0x5c0922[_0x3f12ed])&&(_0x3a9202=(_0x1dd326?_0x3d9cf4(_0x5b0e1b,_0x2f0107,_0x3a9202):_0x3d9cf4(_0x3a9202))||_0x3a9202);return _0x1dd326&&_0x3a9202&&_0x5808aa(_0x5b0e1b,_0x2f0107,_0x3a9202),_0x3a9202;},_0x35f6d1=(_0x4b1141,_0x529007)=>(_0x115a33,_0x4f9639)=>_0x529007(_0x115a33,_0x4f9639,_0x4b1141);const _0x3dacb1=0x1389;let _0x18e89b=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x4380e9,_0x484e6d,_0x39e9ef,_0x223540){const _0x47ca74=_0x3bc2c8;super(),_0x314dc6(this,_0x47ca74(0x10a),new Set()),_0x314dc6(this,_0x47ca74(0x4ef),null),(this['_context']=_0x4380e9,this[_0x47ca74(0x4b0)]=_0x484e6d,this['_collabCursorController']=_0x39e9ef,this['_themeService']=_0x223540,this['_init']());}[_0x3bc2c8(0x276)](){const _0x8a399b=_0x3bc2c8;this[_0x8a399b(0x4b0)]['currentSkeleton$'][_0x8a399b(0x198)](_0x51de38['takeUntil'](this['dispose$']),_0x51de38[_0x8a399b(0x4a8)](_0x12176a=>{const _0x11b85c=_0x8a399b;if(_0x12176a){const _0x4de74b=_0x12176a[_0x11b85c(0x1e2)];return _0x266483[_0x11b85c(0x1ef)](this[_0x11b85c(0xf8)][_0x11b85c(0x4c6)](this[_0x11b85c(0x331)]['unitId']),this[_0x11b85c(0x348)][_0x11b85c(0x230)])[_0x11b85c(0x198)](_0x51de38['map'](([_0x3c17da,_0x1137c4])=>{const _0x3759e4=_0x11b85c,_0x1deb1d=new Map();return _0x3c17da[_0x3759e4(0x255)]((_0x4fae89,_0x2ee577)=>{const _0x1237ab=_0x3759e4;if(_0x4fae89[_0x1237ab(0x415)]===_0x4de74b){const _0x3eec82={..._0x4fae89};_0x3eec82['color']=_0x1137c4[_0x4fae89[_0x1237ab(0x3da)]],_0x1deb1d[_0x1237ab(0x10d)](_0x2ee577,_0x3eec82);}}),{'skeleton':_0x12176a,'cursors':_0x1deb1d};}));}return _0x266483['of']({'skeleton':null,'cursors':new Map()});}))[_0x8a399b(0x2f5)](({skeleton:_0x531b97,cursors:_0x5aed34})=>{const _0x3fc575=_0x8a399b;this[_0x3fc575(0x2a9)](),_0x531b97&&this['_updateCollabCursors'](_0x531b97,_0x5aed34);}),this[_0x8a399b(0x4b0)]['currentSkeleton$'][_0x8a399b(0x2f5)](_0x405e15=>{const _0x1308cf=_0x8a399b;if(_0x405e15==null)return;const {skeleton:_0x196c83}=_0x405e15,{scene:_0x1f5806}=this['_context'];_0x1f5806['onPointerMove$'][_0x1308cf(0x457)](_0x5b7cfd[_0x1308cf(0x115)](_0x249730=>{const _0x3b9635=_0x1308cf;var _0x456e80,_0xf56c1d;const {offsetX:_0x3a1ec9,offsetY:_0x1d645e}=_0x249730,{x:_0xcea085,y:_0x6b400c}=_0x1f5806[_0x3b9635(0x272)](_0x46e2e3[_0x3b9635(0x121)][_0x3b9635(0x2e6)]([_0x3a1ec9,_0x1d645e])),{scaleX:_0x563f1b,scaleY:_0x53beaa}=_0x1f5806['getAncestorScale'](),_0x168940=_0x1f5806[_0x3b9635(0x47f)](_0x4a372b[_0x3b9635(0x178)][_0x3b9635(0x501)]),_0x2cb638=_0x1f5806[_0x3b9635(0x133)](_0x46e2e3[_0x3b9635(0x121)][_0x3b9635(0x2e6)]([_0xcea085,_0x6b400c]),_0x168940),_0x58005c=_0x196c83[_0x3b9635(0x4e5)](_0x3a1ec9,_0x1d645e,_0x563f1b,_0x53beaa,_0x2cb638);((_0x456e80=this[_0x3b9635(0x4ef)])==null?void 0x0:_0x456e80['column'])===_0x58005c[_0x3b9635(0x1e4)]&&((_0xf56c1d=this[_0x3b9635(0x4ef)])==null?void 0x0:_0xf56c1d[_0x3b9635(0x39d)])===_0x58005c['row']||this[_0x3b9635(0x10a)][_0x3b9635(0x255)](_0x47fab4=>{const _0x192dfa=_0x3b9635;_0x47fab4[_0x192dfa(0x427)](_0x58005c);});},0x64));});}['_updateCollabCursors'](_0x5ebc5e,_0x52f80a){const _0x806d37=_0x3bc2c8;var _0x713f66;const _0x19114c=(_0x713f66=this['_sheetSkeletonManagerService'][_0x806d37(0x48e)]())==null?void 0x0:_0x713f66[_0x806d37(0x1bc)];if(!_0x19114c)return;const _0xda43aa=this[_0x806d37(0x20f)]();if(!_0xda43aa)return;this[_0x806d37(0x10a)][_0x806d37(0x255)](_0xa1098=>{const _0x148609=_0x806d37;_0xa1098[_0x148609(0x488)]();});const {scene:_0x1b7ee9}=_0xda43aa,_0x207245=_0x5e3529(Array[_0x806d37(0x1e3)](_0x52f80a[_0x806d37(0x4c2)]()))[_0x806d37(0x39c)](_0x53ec29=>{const _0x5a6ee3=_0x806d37,{color:_0x4c2840,range:_0x188e94,name:_0x54f06f,selection:_0x2dbf89,sheetID:_0x597908}=_0x53ec29,{startColumn:_0x165855,startRow:_0xc5e3c7,endColumn:_0x38e12b,endRow:_0x22d30b}=_0x188e94,_0x59a45c=_0x4a372b[_0x5a6ee3(0x3b8)](_0xc5e3c7,_0x165855,_0x1b7ee9,_0x19114c),_0x553709=_0x4a372b[_0x5a6ee3(0x3b8)](_0x22d30b,_0x38e12b,_0x1b7ee9,_0x19114c),{columnHeaderHeightAndMarginTop:_0x4f1347}=_0x19114c,{startX:_0x105e79,startY:_0x24c616}=_0x59a45c,{endX:_0x181416,endY:_0x284159}=_0x553709,_0x23504b=_0x181416-_0x105e79,_0x5b078a=_0x284159-_0x24c616,_0x1822bb={'labelPosition':_0x24c616-_0x4f1347>=_0x433f4b?'top':_0x5a6ee3(0x4ac),'sheetID':_0x597908,'range':_0x188e94,'color':_0x4c2840,'name':_0x54f06f,'selection':_0x2dbf89,'left':_0x105e79,'top':_0x24c616,'width':_0x23504b,'height':_0x5b078a,'evented':!0x1,'zIndex':_0x3dacb1};return new _0x44ac57(_0x54f06f,_0x1822bb);});_0x1b7ee9[_0x806d37(0x445)](_0x207245,_0x26cee5),this['_cursors']=new Set(_0x207245);}[_0x3bc2c8(0x2a9)](){const _0x17f332=_0x3bc2c8;var _0x45177d;(_0x45177d=this['_cursors'])==null||_0x45177d[_0x17f332(0x255)](_0x32952a=>_0x32952a[_0x17f332(0x314)]());}['_getSheetObject'](){const _0x2b1367=_0x3bc2c8;return _0x4a372b['getSheetObject'](this[_0x2b1367(0x331)][_0x2b1367(0x155)],this[_0x2b1367(0x331)]);}};_0x18e89b=_0x5c93f6([_0x35f6d1(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4a372b[_0x3bc2c8(0x18d)])),_0x35f6d1(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x47bd3e)),_0x35f6d1(0x3,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x308)]))],_0x18e89b);function _0x5e3529(_0x30fc69){const _0xfb23de=_0x3bc2c8,_0x5e63c0=new Map();return _0x30fc69[_0xfb23de(0x255)](_0x7954e1=>{const _0xef1212=_0xfb23de;if(_0x5e63c0[_0xef1212(0x232)](_0x7954e1[_0xef1212(0x2b1)])){const _0x80d5b6=_0x5e63c0[_0xef1212(0x451)](_0x7954e1['selection']);_0x80d5b6[_0xef1212(0x161)]+=',\x20'+_0x7954e1[_0xef1212(0x161)];}else _0x5e63c0[_0xef1212(0x10d)](_0x7954e1['selection'],_0x7954e1);}),Array[_0xfb23de(0x1e3)](_0x5e63c0['values']());}var _0x531d50=function(){const _0x56a5b2=_0x3bc2c8;return _0x531d50=Object[_0x56a5b2(0x4b1)]||function(_0x1ea76c){const _0x5df324=_0x56a5b2;for(var _0x4aeaa0,_0x1dd5c8=0x1,_0x57769f=arguments[_0x5df324(0x3d6)];_0x1dd5c8<_0x57769f;_0x1dd5c8++){_0x4aeaa0=arguments[_0x1dd5c8];for(var _0xe57257 in _0x4aeaa0)Object['prototype'][_0x5df324(0x44f)][_0x5df324(0x126)](_0x4aeaa0,_0xe57257)&&(_0x1ea76c[_0xe57257]=_0x4aeaa0[_0xe57257]);}return _0x1ea76c;},_0x531d50[_0x56a5b2(0x458)](this,arguments);},_0x4d0f31=function(_0x534146,_0x5ce0d5){const _0xa7dcda=_0x3bc2c8;var _0x1a4d87={};for(var _0x16723d in _0x534146)Object['prototype'][_0xa7dcda(0x44f)][_0xa7dcda(0x126)](_0x534146,_0x16723d)&&_0x5ce0d5[_0xa7dcda(0x3d2)](_0x16723d)<0x0&&(_0x1a4d87[_0x16723d]=_0x534146[_0x16723d]);if(_0x534146!=null&&typeof Object['getOwnPropertySymbols']==_0xa7dcda(0x4ab)){for(var _0x215986=0x0,_0x16723d=Object[_0xa7dcda(0x4c8)](_0x534146);_0x215986<_0x16723d[_0xa7dcda(0x3d6)];_0x215986++)_0x5ce0d5[_0xa7dcda(0x3d2)](_0x16723d[_0x215986])<0x0&&Object[_0xa7dcda(0x293)]['propertyIsEnumerable'][_0xa7dcda(0x126)](_0x534146,_0x16723d[_0x215986])&&(_0x1a4d87[_0x16723d[_0x215986]]=_0x534146[_0x16723d[_0x215986]]);}return _0x1a4d87;},_0x430fdf=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x14590b,_0x464674){const _0x47292b=_0x3bc2c8;var _0x1fc5ea=_0x14590b[_0x47292b(0x45d)],_0x30051e=_0x14590b['id'],_0x4a235c=_0x14590b['className'],_0x42c47f=_0x14590b[_0x47292b(0x473)],_0x206809=_0x4d0f31(_0x14590b,[_0x47292b(0x45d),'id',_0x47292b(0x508),_0x47292b(0x473)]),_0xb6358e='univerjs-icon\x20univerjs-icon-'[_0x47292b(0x353)](_0x30051e,'\x20')[_0x47292b(0x353)](_0x4a235c||'')[_0x47292b(0x2da)](),_0x151c2a=_0x1b993c['useRef']('_'[_0x47292b(0x353)](_0x50a049()));return _0x26bb80(_0x1fc5ea,''[_0x47292b(0x353)](_0x30051e),{'defIds':_0x1fc5ea[_0x47292b(0x37f)],'idSuffix':_0x151c2a[_0x47292b(0x4fb)]},_0x531d50({'ref':_0x464674,'className':_0xb6358e},_0x206809),_0x42c47f);});function _0x26bb80(_0x1bc876,_0x1f6444,_0x4011bc,_0x4c625b,_0x4518b8){const _0x59e4aa=_0x3bc2c8;return _0x1b993c[_0x59e4aa(0x213)](_0x1bc876['tag'],_0x531d50(_0x531d50({'key':_0x1f6444},_0x1578db(_0x1bc876,_0x4011bc,_0x4518b8)),_0x4c625b),(_0x1d34b7(_0x1bc876,_0x4011bc)[_0x59e4aa(0x3db)]||[])['map'](function(_0x5e934d,_0x29a713){const _0xa52f3d=_0x59e4aa;return _0x26bb80(_0x5e934d,''[_0xa52f3d(0x353)](_0x1f6444,'-')[_0xa52f3d(0x353)](_0x1bc876[_0xa52f3d(0x44c)],'-')[_0xa52f3d(0x353)](_0x29a713),_0x4011bc,void 0x0,_0x4518b8);}));}function _0x1578db(_0x11e1c2,_0x41edcd,_0x42fbfc){const _0x107169=_0x3bc2c8;var _0x29c436=_0x531d50({},_0x11e1c2['attrs']);_0x42fbfc!=null&&_0x42fbfc[_0x107169(0x3f1)]&&_0x29c436[_0x107169(0xe6)]===_0x107169(0x3f1)&&(_0x29c436[_0x107169(0xe6)]=_0x42fbfc['colorChannel1']);var _0x1aa831=_0x41edcd[_0x107169(0x37f)];return!_0x1aa831||_0x1aa831[_0x107169(0x3d6)]===0x0||(_0x11e1c2[_0x107169(0x44c)]==='use'&&_0x29c436[_0x107169(0x30e)]&&(_0x29c436['xlink:href']=_0x29c436[_0x107169(0x30e)]+_0x41edcd[_0x107169(0x1ec)]),Object['entries'](_0x29c436)['forEach'](function(_0x16502a){const _0x4c0934=_0x107169;var _0x3d787a=_0x16502a[0x0],_0x497678=_0x16502a[0x1];typeof _0x497678=='string'&&(_0x29c436[_0x3d787a]=_0x497678[_0x4c0934(0x47a)](/url\(#(.*)\)/,_0x4c0934(0x190)['concat'](_0x41edcd['idSuffix'],')')));})),_0x29c436;}function _0x1d34b7(_0x2dfe0b,_0x2f4be8){const _0x3adafc=_0x3bc2c8;var _0x209374,_0x29c2b2=_0x2f4be8['defIds'];return!_0x29c2b2||_0x29c2b2[_0x3adafc(0x3d6)]===0x0?_0x2dfe0b:_0x2dfe0b[_0x3adafc(0x44c)]===_0x3adafc(0x31a)&&(!((_0x209374=_0x2dfe0b['children'])===null||_0x209374===void 0x0)&&_0x209374[_0x3adafc(0x3d6)])?_0x531d50(_0x531d50({},_0x2dfe0b),{'children':_0x2dfe0b[_0x3adafc(0x3db)][_0x3adafc(0x39c)](function(_0x11be5c){const _0x496669=_0x3adafc;return typeof _0x11be5c[_0x496669(0x1df)]['id']==_0x496669(0x210)&&_0x29c2b2&&_0x29c2b2[_0x496669(0x3d2)](_0x11be5c[_0x496669(0x1df)]['id'])>-0x1?_0x531d50(_0x531d50({},_0x11be5c),{'attrs':_0x531d50(_0x531d50({},_0x11be5c[_0x496669(0x1df)]),{'id':_0x11be5c['attrs']['id']+_0x2f4be8['idSuffix']})}):_0x11be5c;})}):_0x2dfe0b;}function _0x50a049(){const _0x18e4dd=_0x3bc2c8;return Math['random']()[_0x18e4dd(0x35c)](0x24)[_0x18e4dd(0x1c1)](0x2,0x8);}_0x430fdf[_0x3bc2c8(0x407)]=_0x3bc2c8(0x42d);var _0x33d4af={'tag':_0x3bc2c8(0x474),'attrs':{'fill':'none','viewBox':_0x3bc2c8(0x4e3),'width':'1em','height':_0x3bc2c8(0x4d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x3bc2c8(0x502)},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'stroke':_0x3bc2c8(0x31e),'d':_0x3bc2c8(0x38e),'strokeLinecap':_0x3bc2c8(0x4d3),'strokeLinejoin':_0x3bc2c8(0x4d3),'strokeWidth':1.2}}]},{'tag':_0x3bc2c8(0x31a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'fill':_0x3bc2c8(0x354),'d':_0x3bc2c8(0xdc)}}]}]}],'defIds':[_0x3bc2c8(0x345)]},_0x237fca=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x5a00dd,_0x6920a7){const _0x433f0a=_0x3bc2c8;return _0x1b993c[_0x433f0a(0x213)](_0x430fdf,Object[_0x433f0a(0x4b1)]({},_0x5a00dd,{'id':_0x433f0a(0x1dc),'ref':_0x6920a7,'icon':_0x33d4af}));});_0x237fca['displayName']=_0x3bc2c8(0x244);var _0x42bcec={'tag':_0x3bc2c8(0x474),'attrs':{'fill':_0x3bc2c8(0x3a8),'viewBox':'0\x200\x2017\x2016','width':_0x3bc2c8(0x4d5),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'stroke':_0x3bc2c8(0x31e),'d':_0x3bc2c8(0x28a),'strokeLinecap':_0x3bc2c8(0x4d3),'strokeLinejoin':_0x3bc2c8(0x4d3),'strokeWidth':1.2}}]},{'tag':_0x3bc2c8(0x31a),'attrs':{},'children':[{'tag':_0x3bc2c8(0x237),'attrs':{'id':_0x3bc2c8(0x49c)},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'fill':_0x3bc2c8(0x354),'d':_0x3bc2c8(0xdc),'transform':_0x3bc2c8(0x1bd)}}]}]}],'defIds':[_0x3bc2c8(0x49c)]},_0x23f251=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x1605a6,_0x4b17d0){const _0x5a30cf=_0x3bc2c8;return _0x1b993c['createElement'](_0x430fdf,Object[_0x5a30cf(0x4b1)]({},_0x1605a6,{'id':_0x5a30cf(0x1d2),'ref':_0x4b17d0,'icon':_0x42bcec}));});_0x23f251[_0x3bc2c8(0x407)]=_0x3bc2c8(0x18a);const _0x1a4172={'onlineStatusIcon':_0x3bc2c8(0x153),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x3bc2c8(0x284),'online':_0x3bc2c8(0x1f5),'offline':_0x3bc2c8(0xe5)};function _0x45a2ae(_0x57a7bc){const _0x3143d1=_0x3bc2c8;switch(_0x57a7bc){case _0x5926c5['OFFLINE']:return'collabStatus.offline';case _0x5926c5[_0x3143d1(0x35d)]:return _0x3143d1(0x4ce);case _0x5926c5[_0x3143d1(0x104)]:return _0x3143d1(0x336);case _0x5926c5[_0x3143d1(0x352)]:return _0x3143d1(0x4e9);case _0x5926c5[_0x3143d1(0x263)]:case _0x5926c5['AWAITING']:case _0x5926c5[_0x3143d1(0x268)]:return'collabStatus.syncing';case _0x5926c5[_0x3143d1(0xfd)]:return _0x3143d1(0x418);}}function _0x2c3280(_0x280f4c){const _0x5c36d0=_0x3bc2c8,{status$:_0x480b9e}=_0x280f4c,_0xd00258=_0x2ce95d['useObservable'](_0x480b9e,_0x5926c5[_0x5c36d0(0x352)]),_0x4414e3=_0x5b7cfd[_0x5c36d0(0x3ff)](_0x5b7cfd[_0x5c36d0(0x385)]),_0x5ce884=_0x5b7cfd[_0x5c36d0(0x3ff)](_0x48e51e[_0x5c36d0(0x1d8)]),_0x122164=_0xd00258!==_0x5926c5[_0x5c36d0(0x3b0)],_0x4fb46c=_0x4414e3['t'](_0x45a2ae(_0xd00258)),_0x478dfa=_0x3f7833(_0x1a4172[_0x5c36d0(0x1a2)],{[_0x1a4172[_0x5c36d0(0x3eb)]]:_0x122164,[_0x1a4172[_0x5c36d0(0x392)]]:!_0x122164}),_0x777c13=_0x122164?_0x1b993c[_0x5c36d0(0x213)](_0x23f251,null):_0x1b993c[_0x5c36d0(0x213)](_0x237fca,null),_0x30396a=_0x1b993c[_0x5c36d0(0xe0)](()=>{const _0x568c35=_0x5c36d0;_0x122164||_0x5ce884[_0x568c35(0x28d)]();},[_0x122164,_0x5ce884]);function _0x47add1(){const _0x8741bc=_0x5c36d0;return _0x1b993c[_0x8741bc(0x213)](_0x8741bc(0x20a),{'className':_0x478dfa,'onClick':_0x30396a},_0x1b993c[_0x8741bc(0x213)]('div',{'className':_0x1a4172[_0x8741bc(0x266)]},_0x777c13),_0x1b993c[_0x8741bc(0x213)]('div',{'className':_0x1a4172['onlineStatusTitle']},_0x4fb46c));}return _0x122164?_0x47add1():_0x1b993c[_0x5c36d0(0x213)](_0x4466a1[_0x5c36d0(0x386)],{'title':_0x4414e3['t']('collab-client.tooltip.reconnect')},_0x47add1());}var _0x50b81e=Object[_0x3bc2c8(0x361)],_0x50292a=Object[_0x3bc2c8(0x48b)],_0x969e56=(_0x2d147f,_0x22e09d,_0x3ca6fc,_0x482696)=>{const _0x31838f=_0x3bc2c8;for(var _0xeb5e43=_0x482696>0x1?void 0x0:_0x482696?_0x50292a(_0x22e09d,_0x3ca6fc):_0x22e09d,_0xc84db1=_0x2d147f[_0x31838f(0x3d6)]-0x1,_0x1f5ab5;_0xc84db1>=0x0;_0xc84db1--)(_0x1f5ab5=_0x2d147f[_0xc84db1])&&(_0xeb5e43=(_0x482696?_0x1f5ab5(_0x22e09d,_0x3ca6fc,_0xeb5e43):_0x1f5ab5(_0xeb5e43))||_0xeb5e43);return _0x482696&&_0xeb5e43&&_0x50b81e(_0x22e09d,_0x3ca6fc,_0xeb5e43),_0xeb5e43;},_0x521eee=(_0xa99342,_0x53ea5a)=>(_0xa8c325,_0x23c538)=>_0x53ea5a(_0xa8c325,_0x23c538,_0xa99342);_0x48e51e[_0x3bc2c8(0x4ed)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x478886,_0x513413,_0x3f8570,_0x465099){const _0x38a3ce=_0x3bc2c8;super(),_0x314dc6(this,_0x38a3ce(0x400),new _0x266483[(_0x38a3ce(0x43e))](_0x5926c5[_0x38a3ce(0x352)])),(this[_0x38a3ce(0x10b)]=_0x478886,this['_uiPartsService']=_0x513413,this['_injector']=_0x3f8570,this['_collaborationController']=_0x465099,this[_0x38a3ce(0x3ae)](),this[_0x38a3ce(0x50c)]());}['_initStatusListener'](){const _0x46ed8d=_0x3bc2c8;this[_0x46ed8d(0x131)](this[_0x46ed8d(0x10b)][_0x46ed8d(0x228)][_0x46ed8d(0x198)](_0x266483[_0x46ed8d(0x4a8)](()=>{const _0x1b4afb=_0x46ed8d,_0x2fee15=this[_0x1b4afb(0x10b)]['getFocusedUnit']();return _0x2fee15?this[_0x1b4afb(0x2b2)][_0x1b4afb(0x27a)](_0x2fee15[_0x1b4afb(0x183)]()):_0x266483['of'](null);}),_0x266483[_0x46ed8d(0x4a8)](_0x2f460b=>_0x2f460b?_0x2f460b[_0x46ed8d(0x294)]:_0x266483['of'](_0x5926c5[_0x46ed8d(0x352)])))[_0x46ed8d(0x2f5)](_0x29e6ef=>{const _0x4187e7=_0x46ed8d;this[_0x4187e7(0x400)]['next'](_0x29e6ef);}));}[_0x3bc2c8(0x3ae)](){const _0x332b17=_0x3bc2c8;this[_0x332b17(0x131)](this['_uiPartsService'][_0x332b17(0xd7)](_0x2ce95d[_0x332b17(0x1f3)]['HEADER_MENU'],()=>_0x5b7cfd[_0x332b17(0x4df)](_0x149a3b({'status$':this[_0x332b17(0x400)][_0x332b17(0x4eb)]()}),this[_0x332b17(0x30f)])));}},_0x48e51e[_0x3bc2c8(0x4ed)]=_0x969e56([_0x521eee(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x521eee(0x1,_0x2ce95d['IUIPartsService']),_0x521eee(0x2,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x521eee(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x30c)]))],_0x48e51e[_0x3bc2c8(0x4ed)]);function _0x149a3b(_0x356288){const {status$:_0x222945}=_0x356288;return function(){return _0x1b993c['createElement'](_0x2c3280,{'status$':_0x222945});};}const _0x325c17=_0x5b7cfd['createIdentifier'](_0x3bc2c8(0x19e));var _0x23ac03=Object[_0x3bc2c8(0x361)],_0x2037ff=Object[_0x3bc2c8(0x48b)],_0x311bd6=(_0x5c9e48,_0x48820c,_0x225a89,_0x6a7cfe)=>{for(var _0x325694=_0x6a7cfe>0x1?void 0x0:_0x6a7cfe?_0x2037ff(_0x48820c,_0x225a89):_0x48820c,_0x37a933=_0x5c9e48['length']-0x1,_0x59965d;_0x37a933>=0x0;_0x37a933--)(_0x59965d=_0x5c9e48[_0x37a933])&&(_0x325694=(_0x6a7cfe?_0x59965d(_0x48820c,_0x225a89,_0x325694):_0x59965d(_0x325694))||_0x325694);return _0x6a7cfe&&_0x325694&&_0x23ac03(_0x48820c,_0x225a89,_0x325694),_0x325694;},_0x37f9ca=(_0x3ea53b,_0x41abad)=>(_0x2e825c,_0x4cc5d0)=>_0x41abad(_0x2e825c,_0x4cc5d0,_0x3ea53b);_0x48e51e[_0x3bc2c8(0x3a2)]=class extends _0x5b7cfd['RxDisposable']{constructor(_0xf1a53b,_0xbdb6f8,_0x526412,_0x3480c3,_0x2f3860,_0x210a7e){const _0x5a00eb=_0x3bc2c8;super(),this[_0x5a00eb(0x4d9)]=_0xf1a53b,this[_0x5a00eb(0x4e7)]=_0xbdb6f8,this[_0x5a00eb(0x2c6)]=_0x526412,this['_localCacheService']=_0x3480c3,this[_0x5a00eb(0x1f2)]=_0x2f3860,_0x210a7e?_0x210a7e==null||_0x210a7e[_0x5a00eb(0x33a)]()[_0x5a00eb(0x3a3)](()=>this[_0x5a00eb(0x276)]()):(this[_0x5a00eb(0x4e7)]['debug'](_0x5a00eb(0x218),_0x5a00eb(0x3cb)),this[_0x5a00eb(0x276)]());}async[_0x3bc2c8(0x276)](){const _0xa0096b=_0x3bc2c8,_0x51b5da=this[_0xa0096b(0x4d9)][_0xa0096b(0x22f)]('unit'),_0x44163d=this['_urlService']['getParam'](_0xa0096b(0x413));if(!_0x51b5da||!_0x44163d){this[_0xa0096b(0x4e7)]['debug'](_0xa0096b(0x218),_0xa0096b(0x424));return;}switch(Number(_0x44163d)){case _0x249560[_0xa0096b(0x301)]:{const _0x4b164b=await this[_0xa0096b(0x2e9)](_0x51b5da);this[_0xa0096b(0x2cf)](_0x4b164b);break;}case _0x249560['UNIVER_DOC']:{await this[_0xa0096b(0x2a1)](_0x51b5da);break;}default:{this['_logService'][_0xa0096b(0x476)]('[DataLoaderController]',_0xa0096b(0x130));break;}}}async['_setupSubUnitSync'](_0x994924){const _0x191d7a=_0x3bc2c8;await this[_0x191d7a(0x510)](_0x994924),_0x994924[_0x191d7a(0x3d8)][_0x191d7a(0x198)](_0x266483['takeUntil'](this[_0x191d7a(0x2dd)]))[_0x191d7a(0x2f5)](_0x2291a3=>{const _0x259d6a=_0x191d7a;_0x2291a3&&this[_0x259d6a(0x347)](_0x2291a3);}),this['_urlService'][_0x191d7a(0x26c)][_0x191d7a(0x198)](_0x266483['takeUntil'](this[_0x191d7a(0x2dd)]))[_0x191d7a(0x2f5)](()=>this['_updateSubUnitFromURLParams'](_0x994924));}[_0x3bc2c8(0x347)](_0x1cb91f,_0xe1c168=!0x1){const _0x401f86=_0x3bc2c8,_0x56a48e=this[_0x401f86(0x4d9)]['getParam'](_0x401f86(0x2ce));_0x1cb91f[_0x401f86(0x43d)]()!==_0x56a48e&&this[_0x401f86(0x4d9)][_0x401f86(0x40f)]('subunit',_0x1cb91f[_0x401f86(0x43d)](),_0xe1c168);}async[_0x3bc2c8(0x510)](_0xd0f6b5){const _0x347144=_0x3bc2c8;var _0x24e10e;const _0x4dc6a7=this[_0x347144(0x4d9)]['getParam'](_0x347144(0x2ce));if(!_0x4dc6a7||!_0xd0f6b5[_0x347144(0x132)](_0x4dc6a7)){const _0x5d4cfe=_0xd0f6b5[_0x347144(0x4c4)]()[0x0],_0x2c638c=_0xd0f6b5[_0x347144(0x132)](_0x5d4cfe);if(!_0x2c638c)return;this[_0x347144(0x347)](_0x2c638c,!0x0),await this[_0x347144(0x2c6)]['executeCommand'](_0xa62622[_0x347144(0x23a)]['id'],{'unitId':_0xd0f6b5[_0x347144(0x183)](),'subUnitId':_0x5d4cfe});return;}((_0x24e10e=_0xd0f6b5[_0x347144(0x240)]())==null?void 0x0:_0x24e10e[_0x347144(0x43d)]())!==_0x4dc6a7&&await this['_commandService'][_0x347144(0x2a7)](_0xa62622['SetWorksheetActivateCommand']['id'],{'unitId':_0xd0f6b5[_0x347144(0x183)](),'subUnitId':_0x4dc6a7});}async['_loadSheet'](_0x427a9e){const _0x323cf6=_0x3bc2c8;let _0x11091e=0x0;const _0x56a5f4=await this[_0x323cf6(0x3bf)]['loadOfflineData'](_0x427a9e);return _0x56a5f4&&(_0x56a5f4[_0x323cf6(0x3e1)]||_0x56a5f4['mutations'][_0x323cf6(0x3d6)]!==0x0)&&(_0x11091e=_0x56a5f4['rev']),_0x11091e===0x0&&this[_0x323cf6(0x4e7)][_0x323cf6(0x46f)](_0x323cf6(0x218),_0x323cf6(0x160)),this[_0x323cf6(0x1f2)][_0x323cf6(0x4a9)](_0x427a9e,_0x11091e);}async[_0x3bc2c8(0x2a1)](_0x3a276c){const _0x43cb7d=_0x3bc2c8;let _0x329250=0x0;const _0x5225b1=await this['_localCacheService'][_0x43cb7d(0x30b)](_0x3a276c);return _0x5225b1&&(_0x5225b1[_0x43cb7d(0x3e1)]||_0x5225b1[_0x43cb7d(0x1fc)][_0x43cb7d(0x3d6)]!==0x0)&&(_0x329250=_0x5225b1[_0x43cb7d(0x3c6)]),_0x329250===0x0&&this[_0x43cb7d(0x4e7)][_0x43cb7d(0x46f)]('[DataLoaderController]',_0x43cb7d(0x160)),this['_snapshotService'][_0x43cb7d(0x188)](_0x3a276c,_0x329250);}},_0x48e51e[_0x3bc2c8(0x3a2)]=_0x311bd6([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x48e51e['DataLoaderController']),_0x37f9ca(0x0,_0x325c17),_0x37f9ca(0x1,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x37f9ca(0x2,_0x5b7cfd['ICommandService']),_0x37f9ca(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x37f9ca(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x306)])),_0x37f9ca(0x5,_0x5b7cfd[_0x3bc2c8(0x259)](_0x429288[_0x3bc2c8(0xe9)]))],_0x48e51e['DataLoaderController']);var _0x292d6c=Object['defineProperty'],_0x33a7ef=Object['getOwnPropertyDescriptor'],_0x94badb=(_0x170632,_0x53d432,_0x1d9240,_0x5c7a05)=>{const _0x11fa1c=_0x3bc2c8;for(var _0x140325=_0x5c7a05>0x1?void 0x0:_0x5c7a05?_0x33a7ef(_0x53d432,_0x1d9240):_0x53d432,_0x3ce4c6=_0x170632[_0x11fa1c(0x3d6)]-0x1,_0x272419;_0x3ce4c6>=0x0;_0x3ce4c6--)(_0x272419=_0x170632[_0x3ce4c6])&&(_0x140325=(_0x5c7a05?_0x272419(_0x53d432,_0x1d9240,_0x140325):_0x272419(_0x140325))||_0x140325);return _0x5c7a05&&_0x140325&&_0x292d6c(_0x53d432,_0x1d9240,_0x140325),_0x140325;},_0x2f9e18=(_0x278c9c,_0x463301)=>(_0x5f2c95,_0x581d3f)=>_0x463301(_0x5f2c95,_0x581d3f,_0x278c9c);const _0x224a02=_0x3bc2c8(0x40b),_0x3f8b75=_0x3bc2c8(0x312);let _0x34caf5=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x7d3201,_0xd3a20){const _0x85db61=_0x3bc2c8;super(),this[_0x85db61(0x10b)]=_0x7d3201,this[_0x85db61(0x4cb)]=_0xd3a20,this['_init']();}[_0x3bc2c8(0x276)](){const _0x310529=_0x3bc2c8;this[_0x310529(0x131)](_0x5b7cfd[_0x310529(0x3d9)](this[_0x310529(0x10b)][_0x310529(0x228)]['subscribe'](()=>{const _0x5acb2f=_0x310529;var _0x221e4a;const _0x1f6e38=this['_univerInstanceService'][_0x5acb2f(0x1b8)]();let _0x218bb5=(_0x221e4a=this[_0x5acb2f(0x4cb)][_0x5acb2f(0x1db)](_0x224a02))!=null?_0x221e4a:_0x3f8b75;_0x1f6e38 instanceof _0x5b7cfd[_0x5acb2f(0x2d8)]&&(_0x218bb5=_0x1f6e38[_0x5acb2f(0x161)]),document[_0x5acb2f(0x17b)]=_0x218bb5;})));}};_0x34caf5=_0x94badb([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x36c)],_0x34caf5),_0x2f9e18(0x0,_0x5b7cfd['IUniverInstanceService']),_0x2f9e18(0x1,_0x5b7cfd[_0x3bc2c8(0x262)])],_0x34caf5);var _0x26c84f=Object[_0x3bc2c8(0x361)],_0x4c0355=Object[_0x3bc2c8(0x48b)],_0x4408fd=(_0x3fec3b,_0x2b71a2,_0x46405d,_0x194af9)=>{const _0x27ee51=_0x3bc2c8;for(var _0x49cf0a=_0x194af9>0x1?void 0x0:_0x194af9?_0x4c0355(_0x2b71a2,_0x46405d):_0x2b71a2,_0x545329=_0x3fec3b[_0x27ee51(0x3d6)]-0x1,_0x32399e;_0x545329>=0x0;_0x545329--)(_0x32399e=_0x3fec3b[_0x545329])&&(_0x49cf0a=(_0x194af9?_0x32399e(_0x2b71a2,_0x46405d,_0x49cf0a):_0x32399e(_0x49cf0a))||_0x49cf0a);return _0x194af9&&_0x49cf0a&&_0x26c84f(_0x2b71a2,_0x46405d,_0x49cf0a),_0x49cf0a;},_0xc8a478=(_0x5d8da4,_0x44de50)=>(_0x59d3f8,_0x493f23)=>_0x44de50(_0x59d3f8,_0x493f23,_0x5d8da4);let _0x52d4b9=class{constructor(_0x30f0bd,_0x403324,_0x5a4d79){const _0x15407f=_0x3bc2c8;this[_0x15407f(0x4cb)]=_0x30f0bd,this['_httpService']=_0x403324,this[_0x15407f(0x2f0)]=_0x5a4d79,this[_0x15407f(0x341)]();}['init'](){const _0x19fece=_0x3bc2c8;this[_0x19fece(0x305)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4df035,_0x438693)=>_0x438693(_0x4df035)[_0x19fece(0x198)](_0x266483[_0x19fece(0x2eb)](async _0x360c92=>{const _0xdfac2e=_0x19fece,_0x64d36a=_0x360c92;if(_0x64d36a[_0xdfac2e(0x4ad)]===0x191&&window['confirm'](this[_0xdfac2e(0x2f0)]['t']('auth.needGotoLoginAlert'))){const _0x31b11e=window[_0xdfac2e(0x4fd)](window['location'][_0xdfac2e(0x4e0)]);window[_0xdfac2e(0x31f)]['href']=this['_getLoginPath']()+_0xdfac2e(0x168)+_0x31b11e;}return _0x64d36a;}))});}[_0x3bc2c8(0x2d6)](){const _0x3c3e18=_0x3bc2c8;var _0x295a69,_0x3d9368;const _0x32e0a1=this[_0x3c3e18(0x4cb)][_0x3c3e18(0x1db)](_0x29174f),_0x7cefb0=this[_0x3c3e18(0x4cb)][_0x3c3e18(0x1db)](_0xa50aed);return(_0x3d9368=(_0x295a69=_0x7cefb0==null?void 0x0:_0x7cefb0[_0x3c3e18(0x36e)])!=null?_0x295a69:_0x32e0a1)!=null?_0x3d9368:_0x46f52c;}};_0x52d4b9=_0x4408fd([_0xc8a478(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0xc8a478(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0xc8a478(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)]))],_0x52d4b9);var _0x53c2b7=Object[_0x3bc2c8(0x361)],_0xf7a8c4=Object['getOwnPropertyDescriptor'],_0x352dbc=(_0x237244,_0x2277f0,_0x5d0941,_0x41e8e5)=>{const _0x4bbc3d=_0x3bc2c8;for(var _0x629d58=_0x41e8e5>0x1?void 0x0:_0x41e8e5?_0xf7a8c4(_0x2277f0,_0x5d0941):_0x2277f0,_0x4469cf=_0x237244[_0x4bbc3d(0x3d6)]-0x1,_0x110546;_0x4469cf>=0x0;_0x4469cf--)(_0x110546=_0x237244[_0x4469cf])&&(_0x629d58=(_0x41e8e5?_0x110546(_0x2277f0,_0x5d0941,_0x629d58):_0x110546(_0x629d58))||_0x629d58);return _0x41e8e5&&_0x629d58&&_0x53c2b7(_0x2277f0,_0x5d0941,_0x629d58),_0x629d58;},_0x287087=(_0x288091,_0x325b88)=>(_0x17e192,_0x33fd63)=>_0x325b88(_0x17e192,_0x33fd63,_0x288091);const _0x27ab3d=_0x3bc2c8(0x3e7),_0x175fbd=_0x3bc2c8(0x135);_0x48e51e['AuthzIoHttpService']=class extends _0x5b7cfd['Disposable']{constructor(_0x3e1bc0,_0x4e62f6){const _0x509a78=_0x3bc2c8;super(),this[_0x509a78(0x472)]=_0x3e1bc0,this[_0x509a78(0x4cb)]=_0x4e62f6,this[_0x509a78(0x2ed)]();}[_0x3bc2c8(0x2ed)](){const _0x429afb=_0x3bc2c8,_0x3f9165=this;this['disposeWithMe'](this[_0x429afb(0x472)][_0x429afb(0x1d0)]({'priority':0x3e7,'interceptor':_0x4ba5d1['MergeInterceptorFactory']({'isMatch'(_0x31cdfb){const _0x40a853=_0x429afb;var _0x3ab5f1;if(_0x31cdfb[_0x40a853(0x492)]===_0x40a853(0x411)&&((_0x3ab5f1=_0x31cdfb['requestParams'])!=null&&_0x3ab5f1['body'])){const {objectID:_0x357336,objectType:_0xc8fbaa}=_0x31cdfb['requestParams'][_0x40a853(0x1fe)]||{};if(!_0x357336||_0xc8fbaa===void 0x0)return!0x1;const _0x514c82=_0x3f9165['_getAPIPrefixPath']()+'/'+_0xc8fbaa+'/object/'+_0x357336+_0x40a853(0x1b5);if(_0x31cdfb['url']===_0x514c82)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x283db2){const _0x42f5b0=_0x429afb;var _0x187638;return(_0x187638=_0x283db2[_0x42f5b0(0x4da)])==null?void 0x0:_0x187638['body'];},'mergeParamsToRequest'(_0x2a318f,_0x976f24){const _0x7516e6=_0x429afb,_0x262ad2=_0x3f9165[_0x7516e6(0x403)]()+_0x7516e6(0xf1),_0x5e28b2=_0x2a318f[_0x7516e6(0x4f1)]((_0xbc42d0,_0x271d0f)=>{const _0x26f8c6=_0x7516e6,{unitID:_0x357d91,objectID:_0x495cb6,objectType:_0x1ff913,actions:_0xde8cf8}=_0x271d0f;return _0xbc42d0[_0x357d91]||(_0xbc42d0[_0x357d91]={}),_0xbc42d0[_0x357d91][_0x495cb6]||(_0xbc42d0[_0x357d91][_0x495cb6]={'objectID':_0x495cb6,'objectType':_0x1ff913,'actions':[]}),_0xbc42d0[_0x357d91][_0x495cb6]['actions'][_0x26f8c6(0x13d)](..._0xde8cf8),_0xbc42d0;},{}),_0x1fc91b=[];for(const _0x104284 in _0x5e28b2)for(const _0x17d533 in _0x5e28b2[_0x104284]){const {actions:_0xf5decb,objectType:_0xf4be30}=_0x5e28b2[_0x104284][_0x17d533],_0x230421=[...new Set(_0xf5decb)];_0x1fc91b['push']({'unitID':_0x104284,'objectID':_0x17d533,'objectType':_0xf4be30,'actions':_0x230421});}return new _0x4ba5d1[(_0x7516e6(0x28f))](_0x7516e6(0x411),_0x262ad2,{'headers':_0x976f24[_0x7516e6(0x2e2)],'withCredentials':_0x976f24[_0x7516e6(0x166)],'responseType':_0x976f24[_0x7516e6(0x101)],'body':{'requests':_0x1fc91b}});}},{'distributeResult'(_0x1c5cad,_0x711fbb){const _0x54dfb9=_0x429afb,{objectActions:_0x2e9cbf}=_0x1c5cad;return _0x711fbb[_0x54dfb9(0x39c)](_0x3ece0=>{const _0xe03704=_0x54dfb9,{unitID:_0x4ba930,objectID:_0x236d87,actions:_0x1c168e}=_0x3ece0,_0x176340=_0x2e9cbf[_0xe03704(0xf7)](_0xa3457a=>_0xa3457a[_0xe03704(0x1b0)]===_0x4ba930&&_0xa3457a[_0xe03704(0x3dc)]===_0x236d87),_0x3095d5=_0x1c168e[_0xe03704(0x39c)](_0x1c8e72=>_0x176340==null?void 0x0:_0x176340['actions'][_0xe03704(0xf7)](_0x552d26=>_0x552d26[_0xe03704(0x113)]===_0x1c8e72))[_0xe03704(0x3b6)](_0x334ae5=>!!_0x334ae5);return{'config':_0x3ece0,'result':{'actions':_0x3095d5,'error':_0x1c5cad['error']}};});}})}));}[_0x3bc2c8(0x403)](){const _0x4881c3=_0x3bc2c8;var _0x24606f,_0x153287;const _0x577c32=this[_0x4881c3(0x4cb)][_0x4881c3(0x1db)](_0x27ab3d),_0x4b1189=this[_0x4881c3(0x4cb)][_0x4881c3(0x1db)](_0xa50aed);return(_0x153287=(_0x24606f=_0x4b1189==null?void 0x0:_0x4b1189[_0x4881c3(0x2b5)])!=null?_0x24606f:_0x577c32)!=null?_0x153287:_0x175fbd;}async[_0x3bc2c8(0x3b5)](_0x357c1e){const _0x2f16f3=_0x3bc2c8,_0x40b497=this[_0x2f16f3(0x403)]()+'/'+_0x357c1e[_0x2f16f3(0x2e7)]+'/object';return(await this[_0x2f16f3(0x472)][_0x2f16f3(0x15b)](_0x40b497,{'body':_0x357c1e}))[_0x2f16f3(0x1fe)][_0x2f16f3(0x3dc)]||'';}async[_0x3bc2c8(0x204)](_0x5ba0c9){const _0x19f030=_0x3bc2c8,_0x4e9264=this[_0x19f030(0x403)]()+_0x19f030(0xe2);return(await this[_0x19f030(0x472)][_0x19f030(0x15b)](_0x4e9264,{'body':_0x5ba0c9}))[_0x19f030(0x1fe)][_0x19f030(0x285)];}async[_0x3bc2c8(0x16f)](_0x3dc4a7){const _0x195c14=_0x3bc2c8,_0x423e5d=this[_0x195c14(0x403)]()+'/'+_0x3dc4a7[_0x195c14(0x2e7)]+'/object/'+_0x3dc4a7[_0x195c14(0x3dc)];await this[_0x195c14(0x472)]['put'](_0x423e5d,{'body':_0x3dc4a7});}async[_0x3bc2c8(0x489)](_0x507f73){const _0x485e6a=_0x3bc2c8,_0x23f6c7=this[_0x485e6a(0x403)]()+'/'+_0x507f73['objectType']+_0x485e6a(0x1be)+_0x507f73['objectID']+_0x485e6a(0x1b5);return(await this[_0x485e6a(0x472)][_0x485e6a(0x15b)](_0x23f6c7,{'body':_0x507f73}))['body'][_0x485e6a(0x2fd)];}async[_0x3bc2c8(0x321)](_0x184a6e){const _0x39d827=_0x3bc2c8,_0x4066f5=this[_0x39d827(0x403)]()+'/-/object/-/batch_allowed';return(await this[_0x39d827(0x472)][_0x39d827(0x15b)](_0x4066f5,{'body':{'requests':_0x184a6e}}))[_0x39d827(0x1fe)][_0x39d827(0x315)];}async['listRoles'](_0x4fbeaa){const _0x29fa2f=_0x3bc2c8,_0x1d2342=this[_0x29fa2f(0x403)]()+'/'+_0x4fbeaa[_0x29fa2f(0x2e7)]+_0x29fa2f(0x107),_0x308a37=await this[_0x29fa2f(0x472)][_0x29fa2f(0x15b)](_0x1d2342,{'body':_0x4fbeaa});return{'roles':_0x308a37[_0x29fa2f(0x1fe)][_0x29fa2f(0x2bf)],'actions':_0x308a37['body'][_0x29fa2f(0x2fd)]};}async[_0x3bc2c8(0x332)](_0x26fc36){const _0x521fad=_0x3bc2c8,_0x1b031c=this['_getAPIPrefixPath']()+_0x521fad(0x1f1);await this['_HTTPService'][_0x521fad(0x344)](_0x1b031c,{'params':{'collaboratorID':_0x26fc36[_0x521fad(0x207)],'objectID':_0x26fc36[_0x521fad(0x3dc)],'unitID':_0x26fc36[_0x521fad(0x1b0)]}});}async[_0x3bc2c8(0x466)](_0xaa869e){const _0x361c99=_0x3bc2c8,_0x2f938d=this[_0x361c99(0x403)]()+'/collaborator';await this[_0x361c99(0x472)][_0x361c99(0x3ee)](_0x2f938d,{'body':_0xaa869e});}async[_0x3bc2c8(0x1f9)](_0x14b580){const _0x2823c6=_0x3bc2c8,_0x44f3dc=this[_0x2823c6(0x403)]()+_0x2823c6(0x1f1);await this['_HTTPService'][_0x2823c6(0x15b)](_0x44f3dc,{'body':_0x14b580});}async['listCollaborators'](_0x221364){const _0x32ac7c=_0x3bc2c8,_0x5e992e=this[_0x32ac7c(0x403)]()+_0x32ac7c(0x1f1);return(await this[_0x32ac7c(0x472)][_0x32ac7c(0x451)](_0x5e992e,{'params':{'objectID':_0x221364[_0x32ac7c(0x3dc)],'unitID':_0x221364[_0x32ac7c(0x1b0)]}}))['body'][_0x32ac7c(0x1cd)];}async[_0x3bc2c8(0x49e)](_0x506a38){const _0x379d7b=_0x3bc2c8,_0x2ad7bf=this[_0x379d7b(0x403)]()+_0x379d7b(0x1f1);await this[_0x379d7b(0x472)]['put'](_0x2ad7bf,{'body':_0x506a38});}},_0x48e51e[_0x3bc2c8(0x4d7)]=_0x352dbc([_0x287087(0x0,_0x5b7cfd['Inject'](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0x287087(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x262)]))],_0x48e51e[_0x3bc2c8(0x4d7)]);var _0x2a7c9a=Object['defineProperty'],_0x13eba2=Object['getOwnPropertyDescriptor'],_0x48aa50=(_0x427d53,_0x37457c,_0x3f3d35,_0x5da974)=>{const _0x4dd6c0=_0x3bc2c8;for(var _0x550db2=_0x5da974>0x1?void 0x0:_0x5da974?_0x13eba2(_0x37457c,_0x3f3d35):_0x37457c,_0x3fb20e=_0x427d53[_0x4dd6c0(0x3d6)]-0x1,_0x2948f2;_0x3fb20e>=0x0;_0x3fb20e--)(_0x2948f2=_0x427d53[_0x3fb20e])&&(_0x550db2=(_0x5da974?_0x2948f2(_0x37457c,_0x3f3d35,_0x550db2):_0x2948f2(_0x550db2))||_0x550db2);return _0x5da974&&_0x550db2&&_0x2a7c9a(_0x37457c,_0x3f3d35,_0x550db2),_0x550db2;},_0x448430=(_0x1fc575,_0x2a51b7)=>(_0x4e097c,_0x1fe83c)=>_0x2a51b7(_0x4e097c,_0x1fe83c,_0x1fc575);let _0x4173ed=class{constructor(_0xbe1f8b){const _0x598d8d=_0x3bc2c8;this[_0x598d8d(0x305)]=_0xbe1f8b,this['_initRequestHeader']();}[_0x3bc2c8(0x2dc)](){const _0x3fa688=_0x3bc2c8;this[_0x3fa688(0x305)][_0x3fa688(0x1d0)]({'interceptor':(_0x1514af,_0x1b4cb7)=>{const _0x3879fe=_0x3fa688,_0x219002=_0x1514af[_0x3879fe(0x2e2)],_0x4709c2=_0x5d1cbc[_0x3879fe(0x2c7)]();return _0x4709c2&&_0x219002[_0x3879fe(0x10d)](_0x3879fe(0x289),_0x4709c2),_0x1b4cb7(_0x1514af);}});}};_0x4173ed=_0x48aa50([_0x448430(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)]))],_0x4173ed);var _0x3b9851=Object[_0x3bc2c8(0x361)],_0x33d243=Object[_0x3bc2c8(0x48b)],_0x1b6126=(_0x47c77b,_0x452f6b,_0x4a5ff2,_0x549712)=>{const _0x59f9b8=_0x3bc2c8;for(var _0x10110c=_0x549712>0x1?void 0x0:_0x549712?_0x33d243(_0x452f6b,_0x4a5ff2):_0x452f6b,_0x2fbb22=_0x47c77b[_0x59f9b8(0x3d6)]-0x1,_0x35db;_0x2fbb22>=0x0;_0x2fbb22--)(_0x35db=_0x47c77b[_0x2fbb22])&&(_0x10110c=(_0x549712?_0x35db(_0x452f6b,_0x4a5ff2,_0x10110c):_0x35db(_0x10110c))||_0x10110c);return _0x549712&&_0x10110c&&_0x3b9851(_0x452f6b,_0x4a5ff2,_0x10110c),_0x10110c;},_0x5cdffc=(_0x6d9b11,_0x4a3499)=>(_0x3ed1e5,_0x390dc7)=>_0x4a3499(_0x3ed1e5,_0x390dc7,_0x6d9b11);const _0x30e2bb=[_0x3bc2c8(0x4f9),_0x3bc2c8(0x3ac),_0x3bc2c8(0x2b8),'image/gif',_0x3bc2c8(0x440)],_0x3ae676=0x5*0x400*0x400,_0x31971b=_0x3bc2c8(0x103),_0x4f6976=_0x3bc2c8(0x4f8),_0x3ca7d3=_0x3bc2c8(0x3ad),_0x2d70ba='/universer-api/file/{fileID}/sign-url';_0x48e51e[_0x3bc2c8(0x203)]=class{constructor(_0x99bb36,_0x99de5b,_0x1c7023){const _0xcf7628=_0x3bc2c8;_0x314dc6(this,_0xcf7628(0x47b),0x0),_0x314dc6(this,_0xcf7628(0x206),new _0x266483[(_0xcf7628(0x2e5))]()),_0x314dc6(this,_0xcf7628(0x2c9),this[_0xcf7628(0x206)]),_0x314dc6(this,_0xcf7628(0x1a1),new Map()),(this[_0xcf7628(0x305)]=_0x99bb36,this[_0xcf7628(0x4cb)]=_0x99de5b,this['_univerInstanceService']=_0x1c7023);}[_0x3bc2c8(0x3fe)](_0x29c884){const _0x3b367a=_0x3bc2c8;this[_0x3b367a(0x47b)]=_0x29c884,this[_0x3b367a(0x206)][_0x3b367a(0xe4)](_0x29c884);}[_0x3bc2c8(0x3ce)](_0x398379,_0x4e824d){const _0x40abb6=_0x3bc2c8;if(_0x4e824d===_0x35c9a1[_0x40abb6(0xf6)][_0x40abb6(0x1e8)]){const _0x12acd7=new Image();return _0x12acd7[_0x40abb6(0x39b)]=_0x398379,_0x12acd7;}return this['_imageSourceCache'][_0x40abb6(0x451)](_0x398379);}[_0x3bc2c8(0x3ea)](_0x1e2d1c,_0x16fb47,_0x37655e){const _0x540105=_0x3bc2c8;_0x16fb47===_0x35c9a1[_0x540105(0xf6)][_0x540105(0x1e8)]||_0x37655e==null||this['_imageSourceCache'][_0x540105(0x10d)](_0x1e2d1c,_0x37655e);}async[_0x3bc2c8(0x2ab)](_0x4dca53){const _0x2a5f2c=_0x3bc2c8;try{const _0x10f332=this['_replaceFileID'](this['_getSignURL'](),''+_0x4dca53),_0x476d74=(await this[_0x2a5f2c(0x305)]['get'](_0x10f332))[_0x2a5f2c(0x1fe)];if(_0x476d74[_0x2a5f2c(0x476)]&&_0x476d74[_0x2a5f2c(0x476)][_0x2a5f2c(0x337)]===_0x5f32a2['OK']){const _0x2989fb=new URL(_0x476d74['url'],this[_0x2a5f2c(0x417)]())['toString']();return Promise[_0x2a5f2c(0x511)](_0x2989fb);}return Promise[_0x2a5f2c(0x325)](_0x476d74[_0x2a5f2c(0x476)]);}catch(_0x358844){return Promise[_0x2a5f2c(0x325)](_0x358844);}}async[_0x3bc2c8(0x298)](_0x3c2731){const _0x1c7bde=_0x3bc2c8;let _0x4f9491='';if(!_0x30e2bb[_0x1c7bde(0x3a9)](_0x3c2731[_0x1c7bde(0x413)]))return this['_decreaseWaiting'](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x173)]));if(_0x3c2731['size']>_0x3ae676)return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x296)]));try{const _0x33f118=new FormData();_0x33f118[_0x1c7bde(0x1d5)](_0x1c7bde(0x452),_0x3c2731);const _0x5c246d=this[_0x1c7bde(0x10b)][_0x1c7bde(0x1b8)](),_0x3eaffe=_0x5c246d==null?void 0x0:_0x5c246d[_0x1c7bde(0x183)]();if(!_0x3eaffe)throw new Error(_0x1c7bde(0x372));const _0x1315ad=this[_0x1c7bde(0x23b)]()+_0x1c7bde(0x15a)+_0x3c2731[_0x1c7bde(0x127)]['toString']()+_0x1c7bde(0x36b)+_0x1817d2[_0x1c7bde(0xd9)]+_0x1c7bde(0x447)+encodeURIComponent(_0x3eaffe),_0x3ef636=await(await fetch(_0x1315ad,{'method':_0x1c7bde(0x411),'body':_0x33f118}))[_0x1c7bde(0x1d3)]();if(typeof _0x3ef636[_0x1c7bde(0x1a0)]!=_0x1c7bde(0x210))return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x147)]));_0x4f9491=_0x3ef636['FileId'];}catch{return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)]['ERROR_IMAGE']));}return new Promise((_0x19532c,_0x13f3e0)=>{const _0x2a5676=_0x1c7bde,_0x2c2f96=new FileReader();_0x2c2f96[_0x2a5676(0x3b1)](_0x3c2731),_0x2c2f96['onload']=_0x560d0b=>{const _0x2ecf5f=_0x2a5676;var _0x1397f8;const _0x1f9838=(_0x1397f8=_0x560d0b[_0x2ecf5f(0x40a)])==null?void 0x0:_0x1397f8[_0x2ecf5f(0x2d4)];if(_0x1f9838==null){this[_0x2ecf5f(0x33e)](),_0x13f3e0(new Error(_0x35c9a1[_0x2ecf5f(0xf9)][_0x2ecf5f(0x147)]));return;}const _0x71b628=_0x5b7cfd[_0x2ecf5f(0x2f6)][_0x2ecf5f(0x1d9)](0x6);_0x19532c({'imageId':_0x71b628,'imageSourceType':_0x35c9a1[_0x2ecf5f(0xf6)][_0x2ecf5f(0xdb)],'source':_0x4f9491,'base64Cache':_0x1f9838,'status':_0x35c9a1[_0x2ecf5f(0xf9)][_0x2ecf5f(0x454)]}),this['_decreaseWaiting']();};});}[_0x3bc2c8(0x23b)](){const _0x476121=_0x3bc2c8;var _0x3ec767,_0x23460d;const _0x3d2a78=this['_configService']['getConfig'](_0x31971b),_0x47c333=this['_configService'][_0x476121(0x1db)](_0xa50aed);return(_0x23460d=(_0x3ec767=_0x47c333==null?void 0x0:_0x47c333[_0x476121(0x376)])!=null?_0x3ec767:_0x3d2a78)!=null?_0x23460d:_0x4f6976;}[_0x3bc2c8(0x22a)](){const _0xd3f890=_0x3bc2c8;var _0x452550,_0x19f163;const _0x36735d=this[_0xd3f890(0x4cb)]['getConfig'](_0x3ca7d3),_0x259f68=this[_0xd3f890(0x4cb)][_0xd3f890(0x1db)](_0xa50aed);return(_0x19f163=(_0x452550=_0x259f68==null?void 0x0:_0x259f68[_0xd3f890(0x14f)])!=null?_0x452550:_0x36735d)!=null?_0x19f163:_0x2d70ba;}[_0x3bc2c8(0x417)](){const _0x4ed735=_0x3bc2c8;var _0x2925d1;const _0x47b227=this[_0x4ed735(0x4cb)]['getConfig'](_0xa50aed);return(_0x2925d1=_0x47b227==null?void 0x0:_0x47b227['downloadEndpointUrl'])!=null?_0x2925d1:location[_0x4ed735(0x394)];}[_0x3bc2c8(0x340)](_0x314f45,_0x3feb16){const _0x3225e6=_0x3bc2c8;return _0x314f45[_0x3225e6(0x47a)](_0x3225e6(0x4a3),_0x3feb16);}['_decreaseWaiting'](){const _0x3e6a9c=_0x3bc2c8;this[_0x3e6a9c(0x47b)]-=0x1,this[_0x3e6a9c(0x206)][_0x3e6a9c(0xe4)](this['_waitCount']);}},_0x48e51e[_0x3bc2c8(0x203)]=_0x1b6126([_0x5cdffc(0x0,_0x5b7cfd['Inject'](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0x5cdffc(0x1,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x5cdffc(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x29e)]))],_0x48e51e[_0x3bc2c8(0x203)]);var _0x174f6d=Object['defineProperty'],_0x4b3f03=Object[_0x3bc2c8(0x48b)],_0x24b5c3=(_0x624a9c,_0x83a2bf,_0x4dd0c6,_0x103f2c)=>{const _0x1a1265=_0x3bc2c8;for(var _0x1c1ff6=_0x103f2c>0x1?void 0x0:_0x103f2c?_0x4b3f03(_0x83a2bf,_0x4dd0c6):_0x83a2bf,_0x1837a6=_0x624a9c[_0x1a1265(0x3d6)]-0x1,_0xe9a844;_0x1837a6>=0x0;_0x1837a6--)(_0xe9a844=_0x624a9c[_0x1837a6])&&(_0x1c1ff6=(_0x103f2c?_0xe9a844(_0x83a2bf,_0x4dd0c6,_0x1c1ff6):_0xe9a844(_0x1c1ff6))||_0x1c1ff6);return _0x103f2c&&_0x1c1ff6&&_0x174f6d(_0x83a2bf,_0x4dd0c6,_0x1c1ff6),_0x1c1ff6;},_0x2fbf8b=(_0x2f5815,_0x4d7b1e)=>(_0x2ebce1,_0x5a4aa6)=>_0x4d7b1e(_0x2ebce1,_0x5a4aa6,_0x2f5815);let _0x21857a=class extends _0x5b7cfd['RxDisposable']{constructor(_0x24d140,_0x1c9f6f,_0xf094f7,_0x3c53bb,_0x3ac6af){const _0x43435f=_0x3bc2c8;super(),this[_0x43435f(0x30f)]=_0x24d140,this[_0x43435f(0x10b)]=_0x1c9f6f,this[_0x43435f(0x106)]=_0xf094f7,this[_0x43435f(0x3bd)]=_0x3c53bb,this[_0x43435f(0x24c)]=_0x3ac6af,this[_0x43435f(0x2f8)](),this[_0x43435f(0x152)]();}[_0x3bc2c8(0x152)](){const _0x5c419b=_0x3bc2c8,_0x5443f8=async _0xf92ab4=>{const _0x1494b5=_0x4f28;(await this[_0x1494b5(0x3bd)][_0x1494b5(0x318)](_0xf92ab4))[_0x1494b5(0x164)]['pipe'](_0x51de38[_0x1494b5(0x3b6)](_0xad937b=>_0xad937b['eventID']===_0x56cbe4[_0x1494b5(0x484)][_0x1494b5(0x2c2)]),_0x51de38[_0x1494b5(0x46b)](this[_0x1494b5(0x2dd)]))[_0x1494b5(0x2f5)](_0x49a33e=>{const _0x1c0015=_0x1494b5,_0x3a14bc=_0x49a33e,{reason:_0x50160b}=_0x3a14bc[_0x1c0015(0x2db)];this[_0x1c0015(0x30f)][_0x1c0015(0x451)](_0x2ce95d[_0x1c0015(0x1af)])[_0x1c0015(0x29f)]({'type':_0x4466a1[_0x1c0015(0x185)][_0x1c0015(0x34e)],'content':this[_0x1c0015(0x24c)]['t'](_0x1c0015(0x29c))+'('+_0x50160b+')'}),this[_0x1c0015(0x106)]['updatePermissionPoint'](new _0xa62622['WorkbookEditablePermission'](_0xf92ab4)['id'],!0x1),this[_0x1c0015(0x3bd)][_0x1c0015(0x3f6)](_0xf92ab4);});};_0x266483['merge'](this[_0x5c419b(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5c419b(0x4bb)][_0x5c419b(0x301)]),this[_0x5c419b(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5c419b(0x4bb)]['UNIVER_DOC']))['pipe'](_0x51de38[_0x5c419b(0x39c)](_0x426c41=>_0x426c41[_0x5c419b(0x183)]()),_0x51de38[_0x5c419b(0x3b6)](_0x257d0d=>!_0x5b7cfd['isInternalEditorID'](_0x257d0d)),_0x51de38[_0x5c419b(0x46b)](this[_0x5c419b(0x2dd)]))['subscribe'](_0x49a89a=>{_0x5443f8(_0x49a89a);});}[_0x3bc2c8(0x2f8)](){const _0x42c38b=_0x3bc2c8,_0x393747=async _0x3ea497=>{const _0xc2061b=_0x4f28;(await this[_0xc2061b(0x3bd)]['requireSession'](_0x3ea497))[_0xc2061b(0x164)][_0xc2061b(0x198)](_0x51de38[_0xc2061b(0x3b6)](_0x156567=>_0x156567[_0xc2061b(0xe1)]===_0x56cbe4[_0xc2061b(0x484)]['UPDATE_PERMISSION_OBJ']),_0x51de38['takeUntil'](this['dispose$']))[_0xc2061b(0x2f5)](_0x3cb216=>{const _0x4665b3=_0xc2061b,_0x1e27fb=_0x3cb216,{objectId:_0x28f6ec}=_0x1e27fb['data'],_0x5a08dd=this[_0x4665b3(0x30f)][_0x4665b3(0x451)](_0x4a372b['SheetPermissionInitController']);_0x28f6ec===_0x3ea497?_0x5a08dd[_0x4665b3(0x446)](_0x3ea497):_0x5a08dd[_0x4665b3(0x493)](_0x3ea497,_0x28f6ec);});};_0x266483[_0x42c38b(0x2a5)](this[_0x42c38b(0x10b)][_0x42c38b(0x327)](_0x5b7cfd['UniverInstanceType']['UNIVER_SHEET']),this[_0x42c38b(0x10b)][_0x42c38b(0x327)](_0x5b7cfd['UniverInstanceType'][_0x42c38b(0x3a6)]))[_0x42c38b(0x198)](_0x51de38[_0x42c38b(0x39c)](_0xb13374=>_0xb13374[_0x42c38b(0x183)]()),_0x51de38['filter'](_0x532df5=>!_0x5b7cfd[_0x42c38b(0x2f9)](_0x532df5)),_0x51de38[_0x42c38b(0x46b)](this[_0x42c38b(0x2dd)]))[_0x42c38b(0x2f5)](_0x2dac5f=>{_0x393747(_0x2dac5f);});}};_0x21857a=_0x24b5c3([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x21857a),_0x2fbf8b(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2fbf8b(0x1,_0x5b7cfd['IUniverInstanceService']),_0x2fbf8b(0x2,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2fbf8b(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['CollaborationSessionService'])),_0x2fbf8b(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)]))],_0x21857a);var _0x60bfa=Object[_0x3bc2c8(0x361)],_0x4f846c=Object[_0x3bc2c8(0x48b)],_0x5f530c=(_0x592a1a,_0x3699c0,_0x5eef23,_0x4517ee)=>{const _0x3370d5=_0x3bc2c8;for(var _0x23ba32=_0x4517ee>0x1?void 0x0:_0x4517ee?_0x4f846c(_0x3699c0,_0x5eef23):_0x3699c0,_0x3a1063=_0x592a1a[_0x3370d5(0x3d6)]-0x1,_0x41504f;_0x3a1063>=0x0;_0x3a1063--)(_0x41504f=_0x592a1a[_0x3a1063])&&(_0x23ba32=(_0x4517ee?_0x41504f(_0x3699c0,_0x5eef23,_0x23ba32):_0x41504f(_0x23ba32))||_0x23ba32);return _0x4517ee&&_0x23ba32&&_0x60bfa(_0x3699c0,_0x5eef23,_0x23ba32),_0x23ba32;},_0x37d277=(_0x45c3b1,_0x242d95)=>(_0x444d38,_0x229a4b)=>_0x242d95(_0x444d38,_0x229a4b,_0x45c3b1);_0x48e51e[_0x3bc2c8(0x1ac)]=class{constructor(_0x20b927,_0x3b6273){this['_configService']=_0x20b927,this['_httpService']=_0x3b6273;}async[_0x3bc2c8(0x181)](_0x3d6209,_0x197371){const _0x24630e=_0x3bc2c8;var _0x37d28a;const {unitID:_0x4d97d4,type:_0xbacbd,revision:_0x553086=0x0}=_0x197371,_0x2fce74=this[_0x24630e(0x326)]()+'/'+_0xbacbd+_0x24630e(0x248)+_0x4d97d4+_0x24630e(0x482)+_0x553086,_0x137dce=(await this[_0x24630e(0x305)]['get'](_0x2fce74))[_0x24630e(0x1fe)],_0x28ab67=(_0x37d28a=_0x137dce[_0x24630e(0x25d)])==null?void 0x0:_0x37d28a[_0x24630e(0x2cc)];if(_0x28ab67){const _0x1f14e0=_0x28ab67==null?void 0x0:_0x28ab67['originalMeta'],_0x223de0=_0x56cbe4[_0x24630e(0x405)]['encode'](_0x56cbe4['b64DecodeUnicode'](_0x1f14e0));_0x28ab67[_0x24630e(0x4e6)]=_0x223de0,Object[_0x24630e(0x3a5)](_0x28ab67[_0x24630e(0x2a6)])[_0x24630e(0x255)](([,_0x520994])=>{const _0x10406e=_0x24630e,_0x347301=_0x520994[_0x10406e(0x4e6)],_0x865dd1=_0x56cbe4['textEncoder'][_0x10406e(0x48a)](_0x56cbe4['b64DecodeUnicode'](_0x347301));_0x520994['originalMeta']=_0x865dd1;});}return _0x137dce;}async['getSheetBlock'](_0x3c85c9,_0x3c7f43){const _0x281442=_0x3bc2c8,{unitID:_0x2bd124,type:_0x2896c4,blockID:_0x363767}=_0x3c7f43,_0x234f79=this['_getAPIPrefix']()+'/'+_0x2896c4+_0x281442(0x248)+_0x2bd124+'/block/'+_0x363767;return(await this['_httpService'][_0x281442(0x451)](_0x234f79))[_0x281442(0x1fe)];}async[_0x3bc2c8(0xe3)](_0x5c5482,_0x5b2452){const _0x14c051=_0x3bc2c8,{unitID:_0x4c3f19,type:_0x1af613,blockID:_0xb5e345}=_0x5b2452,_0x564ce0=this['_getAPIPrefix']()+_0x14c051(0x504)+_0x1af613+_0x14c051(0x248)+_0x4c3f19+'/block/'+_0xb5e345;return(await this['_httpService'][_0x14c051(0x451)](_0x564ce0))[_0x14c051(0x1fe)];}async[_0x3bc2c8(0x4ea)](_0x4609a0,_0x343dff){const _0x247b65=_0x3bc2c8,{unitID:_0x5f5f9f,type:_0x128337,from:_0x4e77e0,to:_0x38ff1d}=_0x343dff,_0xba7fe0=this[_0x247b65(0x2e1)]()+'/'+_0x128337+'/unit/'+_0x5f5f9f+_0x247b65(0x302)+_0x4e77e0+_0x247b65(0x419)+_0x38ff1d;return(await this[_0x247b65(0x305)]['get'](_0xba7fe0))[_0x247b65(0x1fe)];}['_getSnapshotAPIPrefix'](){const _0x5d2162=_0x3bc2c8;var _0x183148;return(_0x183148=this[_0x5d2162(0x4cb)][_0x5d2162(0x1db)](_0x1a9cce))!=null?_0x183148:this[_0x5d2162(0x2e1)]();}[_0x3bc2c8(0x2e1)](){const _0x55d0ec=_0x3bc2c8;var _0x5de212,_0x3e80ce;const _0x1d777f=this[_0x55d0ec(0x4cb)][_0x55d0ec(0x1db)](_0x504faf),_0x5e4bb6=this[_0x55d0ec(0x4cb)]['getConfig'](_0xa50aed);return(_0x3e80ce=(_0x5de212=_0x5e4bb6==null?void 0x0:_0x5e4bb6[_0x55d0ec(0x219)])!=null?_0x5de212:_0x1d777f)!=null?_0x3e80ce:_0x56ac46;}async[_0x3bc2c8(0x356)](_0x3074af,_0x15925f){const _0x875186=_0x3bc2c8,_0xa6911a=_0x875186(0x4f2)+_0x15925f['type']+_0x875186(0x248)+_0x15925f[_0x875186(0x1b0)]+_0x875186(0x3c0);return(await this[_0x875186(0x305)][_0x875186(0x451)](_0xa6911a,{'params':{'resourceId':JSON[_0x875186(0x2fb)](_0x15925f[_0x875186(0x40e)])}}))[_0x875186(0x1fe)];}['saveSnapshot'](){const _0x24ad3f=_0x3bc2c8;throw new Error(_0x24ad3f(0x32a));}[_0x3bc2c8(0x1c5)](){const _0x4197ed=_0x3bc2c8;throw new Error(_0x4197ed(0x32a));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x151a7f=_0x3bc2c8;throw new Error(_0x151a7f(0x32a));}},_0x48e51e[_0x3bc2c8(0x1ac)]=_0x5f530c([_0x37d277(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x37d277(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)]))],_0x48e51e[_0x3bc2c8(0x1ac)]);var _0x22fefa=Object[_0x3bc2c8(0x361)],_0x3ec19e=Object[_0x3bc2c8(0x48b)],_0x432d00=(_0x5db213,_0x3b2d93,_0x2dd3bc,_0x1333ba)=>{for(var _0x400d97=_0x1333ba>0x1?void 0x0:_0x1333ba?_0x3ec19e(_0x3b2d93,_0x2dd3bc):_0x3b2d93,_0x1f6dbd=_0x5db213['length']-0x1,_0xa417b5;_0x1f6dbd>=0x0;_0x1f6dbd--)(_0xa417b5=_0x5db213[_0x1f6dbd])&&(_0x400d97=(_0x1333ba?_0xa417b5(_0x3b2d93,_0x2dd3bc,_0x400d97):_0xa417b5(_0x400d97))||_0x400d97);return _0x1333ba&&_0x400d97&&_0x22fefa(_0x3b2d93,_0x2dd3bc,_0x400d97),_0x400d97;},_0x5289c5=(_0x7f8d87,_0x571a29)=>(_0x40db1c,_0x28a789)=>_0x571a29(_0x40db1c,_0x28a789,_0x7f8d87);let _0x55a5f9=class extends _0x5b7cfd[_0x3bc2c8(0x140)]{constructor(_0x4f699b,_0x16a030,_0x388f63,_0x12cb66,_0xa77333){const _0x4ba60d=_0x3bc2c8;super(_0x4f699b,_0x16a030,_0x388f63),this[_0x4ba60d(0x3a1)]=_0x12cb66,this[_0x4ba60d(0x4e7)]=_0xa77333;}['transformUndoRedo'](_0x501579,_0x544b3e){const _0x1aa031=_0x3bc2c8,_0x55557f=this['_getUndoStack'](_0x501579);if(_0x55557f)try{const _0x20fa39=this[_0x1aa031(0x3e8)](_0x55557f,_0x544b3e);this[_0x1aa031(0x3fd)](_0x501579,_0x20fa39);}catch(_0x18c0b5){this[_0x1aa031(0x4e7)][_0x1aa031(0x476)](_0x1aa031(0x487),_0x18c0b5),this[_0x1aa031(0x1ae)](_0x501579);}const _0x4943e1=this['_getRedoStack'](_0x501579);if(_0x4943e1)try{const _0x321cc4=this['_transformStack'](_0x4943e1,_0x544b3e);this[_0x1aa031(0x378)](_0x501579,_0x321cc4);}catch(_0x12fe90){this[_0x1aa031(0x4e7)]['error'](_0x12fe90),this[_0x1aa031(0x14c)](_0x501579);}}['_clearUndo'](_0x318e62){const _0x35e125=_0x3bc2c8,_0x16e550=this[_0x35e125(0x1cf)](_0x318e62);_0x16e550&&(_0x16e550[_0x35e125(0x3d6)]=0x0,this[_0x35e125(0x3be)]());}[_0x3bc2c8(0x14c)](_0x149d7f){const _0x1d7c62=_0x3bc2c8,_0x142f71=this[_0x1d7c62(0x194)](_0x149d7f);_0x142f71&&(_0x142f71[_0x1d7c62(0x3d6)]=0x0,this[_0x1d7c62(0x3be)]());}['_substituteUndoStack'](_0x228038,_0x2ef5df){const _0x57bc9e=_0x3bc2c8;this['_undoStacks']['set'](_0x228038,_0x2ef5df),this[_0x57bc9e(0x3be)]();}[_0x3bc2c8(0x378)](_0x2047ac,_0x30c2a3){const _0x2e4201=_0x3bc2c8;this[_0x2e4201(0x3f9)][_0x2e4201(0x10d)](_0x2047ac,_0x30c2a3),this[_0x2e4201(0x3be)]();}[_0x3bc2c8(0x3e8)](_0x2278a1,_0x5dc875){const _0x4ab4b4=_0x3bc2c8,_0x2fb912=[];let _0x2c05bf=_0x5dc875,_0x4153e8=_0x5dc875;for(let _0x1e63cd=_0x2278a1[_0x4ab4b4(0x3d6)]-0x1;_0x1e63cd>=0x0;_0x1e63cd--){const {unitID:_0x1f5b70,undoMutations:_0xdc463d,redoMutations:_0x1728b5}=_0x2278a1[_0x1e63cd],_0x18f712=this[_0x4ab4b4(0x3a1)][_0x4ab4b4(0x4b8)](_0x2c05bf,_0xdc463d),_0x5578ae=this[_0x4ab4b4(0x3a1)][_0x4ab4b4(0x4b8)](_0x4153e8,_0x1728b5);if(_0x56cbe4['isTransformMutationsWithChangesetFailure'](_0x18f712)||_0x56cbe4[_0x4ab4b4(0x475)](_0x5578ae)){this[_0x4ab4b4(0x4e7)]['error']('[CollaborationUndoRedoService]',_0x4ab4b4(0xec),_0x18f712,_0x5578ae);break;}_0x2c05bf=_0x18f712[_0x4ab4b4(0x1c9)],_0x4153e8=_0x5578ae[_0x4ab4b4(0x1c9)],_0x2fb912[_0x4ab4b4(0x13d)]({'unitID':_0x1f5b70,'undoMutations':_0x18f712['m2Prime'],'redoMutations':_0x5578ae['m2Prime']});}return _0x2fb912[_0x4ab4b4(0x37b)]();}};_0x55a5f9=_0x432d00([_0x5289c5(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x5289c5(0x1,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x5289c5(0x2,_0x5b7cfd[_0x3bc2c8(0x391)]),_0x5289c5(0x3,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x5289c5(0x4,_0x5b7cfd[_0x3bc2c8(0x1e6)])],_0x55a5f9);class _0x5f03ac extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(){const _0xbdcece=_0x3bc2c8;super(),_0x314dc6(this,_0xbdcece(0x26c)),this[_0xbdcece(0x26c)]=_0x266483[_0xbdcece(0x408)](window,_0xbdcece(0x2f2))[_0xbdcece(0x198)](_0x266483['takeUntil'](this[_0xbdcece(0x2dd)]),_0x266483[_0xbdcece(0x119)](0x1),_0x266483[_0xbdcece(0x45c)](void 0x0));}[_0x3bc2c8(0x40f)](_0x57b1b5,_0x4d6973,_0x5f28d7=!0x1){const _0x5049c0=_0x3bc2c8,_0x3db6e2=new URL(window[_0x5049c0(0x31f)][_0x5049c0(0x4e0)]);_0x3db6e2['searchParams'][_0x5049c0(0x10d)](_0x57b1b5,_0x4d6973),_0x5f28d7?window[_0x5049c0(0x1d1)][_0x5049c0(0x33c)]('','',_0x3db6e2[_0x5049c0(0x35c)]()):window[_0x5049c0(0x1d1)]['pushState']('','',_0x3db6e2[_0x5049c0(0x35c)]());}[_0x3bc2c8(0x3a7)](_0x596b3c,_0x2e1ef7=!0x1){const _0x2f69e5=_0x3bc2c8,_0x1aa4cd=new URL(window['location'][_0x2f69e5(0x4e0)]);_0x1aa4cd[_0x2f69e5(0x1bb)][_0x2f69e5(0x344)](_0x596b3c),_0x2e1ef7?window[_0x2f69e5(0x1d1)][_0x2f69e5(0x33c)]('','',_0x1aa4cd[_0x2f69e5(0x35c)]()):window[_0x2f69e5(0x1d1)][_0x2f69e5(0x410)]('','',_0x1aa4cd[_0x2f69e5(0x35c)]());}[_0x3bc2c8(0x22f)](_0x53e543){const _0x3875cb=_0x3bc2c8;var _0x10c4b0;return(_0x10c4b0=new URL(window[_0x3875cb(0x31f)][_0x3875cb(0x4e0)])[_0x3875cb(0x1bb)][_0x3875cb(0x451)](_0x53e543))!=null?_0x10c4b0:void 0x0;}}var _0x1fcae2=Object[_0x3bc2c8(0x361)],_0x43c632=Object[_0x3bc2c8(0x48b)],_0x1b86b7=(_0x1c89ad,_0x56d888,_0x54cc9c)=>_0x56d888 in _0x1c89ad?_0x1fcae2(_0x1c89ad,_0x56d888,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54cc9c}):_0x1c89ad[_0x56d888]=_0x54cc9c,_0x3f0858=(_0x5b3abe,_0x47097f,_0x4e23fe,_0xa2ef2c)=>{const _0x109717=_0x3bc2c8;for(var _0xe401ad=_0xa2ef2c>0x1?void 0x0:_0xa2ef2c?_0x43c632(_0x47097f,_0x4e23fe):_0x47097f,_0xaff66=_0x5b3abe[_0x109717(0x3d6)]-0x1,_0x151d19;_0xaff66>=0x0;_0xaff66--)(_0x151d19=_0x5b3abe[_0xaff66])&&(_0xe401ad=(_0xa2ef2c?_0x151d19(_0x47097f,_0x4e23fe,_0xe401ad):_0x151d19(_0xe401ad))||_0xe401ad);return _0xa2ef2c&&_0xe401ad&&_0x1fcae2(_0x47097f,_0x4e23fe,_0xe401ad),_0xe401ad;},_0x154545=(_0x2c31c9,_0x399efb)=>(_0x347b48,_0x303442)=>_0x399efb(_0x347b48,_0x303442,_0x2c31c9),_0x393c30=(_0x25a76d,_0x2d70de,_0x30fa33)=>_0x1b86b7(_0x25a76d,_0x2d70de+'',_0x30fa33);const _0x141509='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x48e51e[_0x3bc2c8(0x465)]=class extends _0x5b7cfd['Plugin']{constructor(_0x4ac9a=_0xdae42f,_0xccc267,_0x1f9189,_0x2491f7,_0x43e87b){const _0x4d8d13=_0x3bc2c8;super(),this[_0x4d8d13(0x335)]=_0x4ac9a,this[_0x4d8d13(0x4e7)]=_0xccc267,this['_renderManagerService']=_0x1f9189,this['_injector']=_0x2491f7,this[_0x4d8d13(0x4cb)]=_0x43e87b;const {..._0x159e42}=this[_0x4d8d13(0x335)];this[_0x4d8d13(0x4cb)]['setConfig'](_0xa50aed,_0x159e42);}[_0x3bc2c8(0x4a2)](){const _0x4ad590=_0x3bc2c8;this[_0x4ad590(0x16d)]();}['onRendered'](){const _0x29e7d8=_0x3bc2c8;this[_0x29e7d8(0x34a)]();}[_0x3bc2c8(0x16d)](){const _0x58ce81=_0x3bc2c8;var _0x65f5d,_0x40354c,_0x4138b4,_0x2a22d0;this[_0x58ce81(0x30f)]['has'](_0x5b7cfd['IUndoRedoService'])&&this['_logService'][_0x58ce81(0x476)](_0x58ce81(0x416),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x244b63=[[_0x5b7cfd[_0x58ce81(0x313)],{'useClass':_0x55a5f9}],[_0x48e51e[_0x58ce81(0x1d8)]],[_0x2e16f3],[_0x4ba5d1[_0x58ce81(0x38b)]],[_0x325c17,{'useClass':_0x5f03ac}],[_0x587d5a],[_0x48e51e['LocalCacheService']],[_0x4ba5d1[_0x58ce81(0x479)]],[_0x2cedfe],[_0x12ef35],[_0x1e6c69],[_0x56b650],[_0x52d4b9],[_0x4173ed],[_0x1225af],[_0x21857a],[_0x2644e7,{'useClass':(_0x40354c=(_0x65f5d=this[_0x58ce81(0x335)])==null?void 0x0:_0x65f5d['socketService'])!=null?_0x40354c:_0x48e51e[_0x58ce81(0x17f)]}],[_0x4ba5d1['IHTTPImplementation'],{'useClass':_0x4ba5d1[_0x58ce81(0x433)]}],[_0x56cbe4[_0x58ce81(0x118)],{'useClass':_0x48e51e[_0x58ce81(0x1ac)]}],[_0x5b7cfd['IAuthzIoService'],{'useClass':_0x48e51e[_0x58ce81(0x4d7)]}],[_0x35c9a1['IImageIoService'],{'useClass':_0x48e51e[_0x58ce81(0x203)]}],[_0x48e51e[_0x58ce81(0x30c)]],[_0x48e51e[_0x58ce81(0x3a2)]],[_0x48e51e[_0x58ce81(0x4ed)]],[_0x34caf5],[_0x47bd3e]];(_0x4138b4=this[_0x58ce81(0x335)])!=null&&_0x4138b4[_0x58ce81(0x469)]&&_0x244b63[_0x58ce81(0x13d)]([_0x5e9761,{'useClass':_0x384617}]),_0x244b63=_0x5b7cfd['mergeOverrideWithDependencies'](_0x244b63,(_0x2a22d0=this[_0x58ce81(0x335)])==null?void 0x0:_0x2a22d0[_0x58ce81(0x349)]),_0x244b63[_0x58ce81(0x255)](_0x53f0f1=>this[_0x58ce81(0x30f)][_0x58ce81(0x225)](_0x53f0f1)),this[_0x58ce81(0x431)]();}[_0x3bc2c8(0x34a)](){const _0x56be47=_0x3bc2c8;this[_0x56be47(0x131)](this['_renderManagerService'][_0x56be47(0x156)](_0x5b7cfd[_0x56be47(0x4bb)][_0x56be47(0x3a6)],[_0x260281])),this[_0x56be47(0x131)](this[_0x56be47(0x4bd)][_0x56be47(0x156)](_0x5b7cfd[_0x56be47(0x4bb)][_0x56be47(0x301)],[_0x18e89b]));}['_initModules'](){const _0x1fae14=_0x3bc2c8;var _0x4bc4f7,_0x41b3d1;this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x4ba5d1['HTTPService'])[_0x1fae14(0x1d0)]({'priority':0x14,'interceptor':_0x4ba5d1['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x1fae14(0x30f)]['get'](_0x4173ed),(_0x4bc4f7=this[_0x1fae14(0x335)])!=null&&_0x4bc4f7[_0x1fae14(0x2b6)]||this[_0x1fae14(0x30f)]['get'](_0x48e51e[_0x1fae14(0x47d)])[_0x1fae14(0x397)](),(_0x41b3d1=this['_config'])!=null&&_0x41b3d1[_0x1fae14(0x300)]&&this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x52d4b9),this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x48e51e[_0x1fae14(0x30c)]),this[_0x1fae14(0x30f)][_0x1fae14(0x232)](_0x48e51e[_0x1fae14(0x4ed)])&&this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x48e51e[_0x1fae14(0x4ed)]);}},_0x393c30(_0x48e51e[_0x3bc2c8(0x465)],_0x3bc2c8(0x45a),_0x141509),_0x48e51e['UniverCollaborationClientPlugin']=_0x3f0858([_0x5b7cfd['DependentOn'](_0x56cbe4[_0x3bc2c8(0x19a)]),_0x154545(0x1,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x154545(0x2,_0x46e2e3[_0x3bc2c8(0x37e)]),_0x154545(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x154545(0x4,_0x5b7cfd['IConfigService'])],_0x48e51e[_0x3bc2c8(0x465)]),_0x48e51e[_0x3bc2c8(0x3e7)]=_0x27ab3d,_0x48e51e[_0x3bc2c8(0x402)]=_0x3bca7a,_0x48e51e['COLLAB_WEB_SOCKET_URL_KEY']=_0x4989e3,_0x48e51e[_0x3bc2c8(0x2d7)]=_0x5926c5,_0x48e51e[_0x3bc2c8(0x235)]=_0x2c3280,_0x48e51e[_0x3bc2c8(0x28b)]=_0x1225af,_0x48e51e[_0x3bc2c8(0x2f4)]=_0x4afd24,_0x48e51e['HEARTBEAT_TIMEOUT_KEY']=_0x372540,_0x48e51e['ICollaborationSocketService']=_0x2644e7,_0x48e51e[_0x3bc2c8(0x1ba)]=_0x325c17,_0x48e51e[_0x3bc2c8(0x2b9)]=_0x23080c,_0x48e51e[_0x3bc2c8(0x4dd)]=_0x29174f,_0x48e51e[_0x3bc2c8(0x35e)]=_0x191200,_0x48e51e['SEND_CHANGESET_TIMEOUT_KEY']=_0x2d7fa5,_0x48e51e['SNAPSHOT_SERVER_URL_KEY']=_0x504faf,_0x48e51e[_0x3bc2c8(0x498)]=_0x1a9cce,_0x48e51e['SessionStatus']=_0x2d9d4e,_0x48e51e[_0x3bc2c8(0x2de)]=_0x44ac57,_0x48e51e[_0x3bc2c8(0x1c4)]=_0x5f03ac,_0x48e51e[_0x3bc2c8(0x1a8)]=_0x262567,_0x48e51e[_0x3bc2c8(0x395)]=_0x3eb981,Object[_0x3bc2c8(0x361)](_0x48e51e,Symbol['toStringTag'],{'value':_0x3bc2c8(0x4bf)});}));function _0x197e(){const _0x5230b5=['indexOf','roomMembers','UserManagerService','onSendChangeset','length','session','activeSheet$','toDisposable','color','children','objectID','@univerjs/rpc','OTHER_CLIENTS_EDITING','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_joinRoom','awaitingChangeset','_pendingMutations','JOIN','onPointerEnter$','height','_roomMembers','AUTHZ_URL_KEY','_transformStack','_toggleOffline','addImageSourceCache','online','UniverCollaborationClient','_createInitialState','patch','setShapeProps','font','colorChannel1','_transformPreviousActiveRange','getTime','COLORS','_waitForHeartbeatResponse','closeSession','SNAPSHOT_INVALID_SNAPSHOT','@univerjs-pro/collaboration','_redoStacks','onTransformChange$','transformRemoteChangeset','_eventUnsubscribe','_substituteUndoStack','setWaitCount','useDependency','_status$','cursorInfo$','COLLAB_SUBMIT_CHANGESET_URL_KEY','_getAPIPrefixPath','_online','textEncoder','permission.content','displayName','fromEvent','_updateLocalCursor','target','DEFAULT_FILE_NAME','clearInterval','routeKey','resourceIDs','setParam','pushState','POST','enableLocalCache','type','_onUserJoin','sheetID','[UniverCollaborationClientPlugin]','_getDownloadEndpointURL','collabStatus.synced','&to=','awaiting_with_pending','PERMISSION_REJ','debounceTime','[OfflineState]:\x20received\x20acknowledgement.','DeleteRangeMoveLeftCommandId','fetching\x20missing\x20changesets\x20from\x20','React','_transformSelections','triggerDblclick','resend','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CommandType','_sessionStatus$','onMouseMove','labelPosition','LIVESHARE_OPERATION','LIVESHARE_TERMINATE','sendChangesetTimeout','collaboration-client.offline-data-not-saved','UniverIcon','onMissedChangesetFetched','stopTime','_scheduleTimestamp','_initModules','hovered','XHRHTTPImplementation','_docSkeletonManagerService','addEventListener','649272hNmxKV','_drawTextRange','key','black','_clearLocalCache','[PendingState]:\x20received\x20acknowledgement.','transformIMECache','getSheetId','BehaviorSubject','/universer-api/comb','image/bmp','send','_ws','gold400','fromEventSubject','addObjects','initWorkbookPermissionChange','&assign=','flatMap','SheetCollaborationEntity','_syncEditingCollabCursor','newValue','tag','USERS_LEAVE','RevisionService','hasOwnProperty','_docTransformSelectionsService','get','file','_shouldReportTelemetry','SUCCUSS','NEW_CHANGESETS','RemoveRowCommandId','subscribeEvent','apply','INTERNAL_ERROR','pluginName','telemetry\x20info\x20is\x20not\x20initialized','mapTo','icon','_clearTimeoutTimer','_acknowledgedAwaitingChangeset','endColumn','_transformIMECache','RxDisposable','LIVESHARE_REQUEST_HOST','replaceTextRanges','UniverCollaborationClientPlugin','updateCollaborator','getUnit','restore','enableSingleActiveInstanceLock','_sendHeartbeatTimer','takeUntil','JSONX','getDocRanges','APPLY_REJECT','debug','duration','_throwTelemetryCollaborationNewChangeset','_HTTPService','extend','svg','isTransformMutationsWithChangesetFailure','error','socket$','_event$','WebSocketService','replace','_waitCount','RegularPolygon','LocalCacheService','hide','getViewport','843364WioRfM','_socketMessageSubscription','/rev/','_labelPosition','CollaborationEvent','ALREADY_EXISTS','setUndoRedoMutationParamsCache','[CollaborationUndoRedoService]','makeDirty','allowed','encode','getOwnPropertyDescriptor','socket\x20close','getUndoRedoMutationParamsCache','getCurrent','memberID','rgba(255,\x20255,\x20255,\x200.01)','@univerjs/ui','method','refreshPermission','@univerjs/telemetry','toggleOffline','ColorKit','APPLY_PERMISSION_DENIED','SNAPSHOT_URL_KEY','#FFF','_revisionService','_roomMembers$','on-line-single_clip0_910_349','10TRrphZ','putCollaborators','conflict.content','_onMessage','fetch_missing','onStarting','{fileID}','HELLO','getTypeOfUnitDisposed$','_initCommandExecutedListener','ACTIVE_UNIT_EVENT_CHANNEL','switchMap','loadSheet','measureText','function','bottom','status','@univerjs/engine-render','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_sheetSkeletonManagerService','assign','onTransformSelections','onlyLocal','LICENSE_DISTRO_REJECTED','setAlpha','cursorInfo','APPLY_NON_SEQUENTIAL_REVISION','transformMutationsWithChangeset','AWAITING','setCurrentUser','UniverInstanceType','DeleteRangeMoveUpCommandId','_renderManagerService','_name','Module','Starting','exhaustSavingTask','values','CHANGESET_REJ','getUnhiddenWorksheets','_clearCollaborationTimeoutTimer','getCollabCursors$','_unitID','getOwnPropertySymbols','NOT_FOUND','UNKNOWN_CMD','_configService','_hideTimer','_startTelemetryCollaborationNewChangeset','collabStatus.conflict','WorkbookEditablePermission','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','ILocalStorageService','startTime','round','connection\x20error','1em','_sessions','AuthzIoHttpService','fillRule','_urlService','requestParams','COMPLETION_FINISHED','_clearOtherTimers','LOGIN_URL_KEY','UNAUTHENTICATED','connectInjector','href','_awaitingChangeset','_createSocket','0\x200\x2016\x2016','_showConflictNotification','getCellPositionByOffset','originalMeta','_logService','blue400','collabStatus.notCollab','fetchMissingChangesets','asObservable','parse','DesktopCollaborationStatusDisplayController','updateOfflineData','_lastPointer','_scene','reduce','/universer-api/snapshot/','_scheduleSaving','@univerjs/docs','updateCursorEvent','throttleTime','CHANGESET_ACK','/universer-api/stream/file/upload','image/png','Undefined','current','_getSendChangesetTimeout','encodeURIComponent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','selections','MSG_FOR_ERROR','VIEW_MAIN','url(#off-line-single_clip0_910_343)','_state$','/block/','_socketReady','_onConnectionOpen','COMMENT_UPDATE','className','sessionStatus$','getRoom','COMPRESS_MUTATION_APPLY','_initStatusListener','OnLifecycle','newCsEvent','_listenToOfflineEvent','_updateSubUnitFromURLParams','resolve','_onCursorUpdate','[FetchMissState]','onMissingChangesets','_docTransformIMECacheService','registerComponent','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','UnitEmbedded','InsertRowCommandId','UUID','M0\x200H16V16H0z','_getCtorByUniverType','/universer-api/oidc/authpage','_docSkeleton','useCallback','eventID','/-/object/list','getDeserializedSheetBlock','next','univer-offline','fill','UniverDesign','\x0aCurrent:\x20','IRemoteInstanceService','_startCollaboration','_getSaveTimeout','transformStack\x20failed!','session.connection-failed','sessionStatus','slice','HttpImport','/-/object/-/batch_allowed','_cursorShapes','SEND_CHANGESET_TIMEOUT','NodePositionConvertToCursor','onRemoteAck','ImageSourceType','find','_collabCursorController','ImageUploadStatusType','_http','EffectRefRangId','collaboration_new_changeset','SYNCED','_initResize','drawWith','_updateLocalCache','responseType','roomInfos','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','FETCH_MISS','getCurrentUser','_permissionService','/role','_tryEnsureSocket','transformSelections','_cursors','_univerInstanceService','_onRecvEvent','set','complete','_handleLeaveEvent','_rescheduleHeartbeat','Injector','getUnitStatus$','action','unsubscribe','debounce','handleDeleteRangeMoveLeft','UniverCore','ISnapshotServerService','shareReplay','_disableEditing','APPLY_REVISION_CONFILICT','UNIVER_UNKNOWN','_onFetchMissResult','synced','_scheduleHeartbeat','@univerjs/design','Vector2','UniverDrawing','FETCH_MISSING','INVALID_ARGUMENT','_cachedData','call','size','commentUpdate$','collabSubmitChangesetUrl','_commentUpdate$','LIVESHARE_NEW_HOST','DisposableCollection','failed\x20to\x20apply\x20missed\x20changesets!','parseChangesetToProtocol','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','disposeWithMe','getSheetBySheetId','getVpScrollXYInfoByPosToVp','HEARTBEAT_INTERVAL','/universer-api/authz','128445DHscXR','[SyncedState]:\x20received\x20acknowledgement.','textRanges','_singleActiveUnitService','symbol','@univerjs/engine-formula','Inject','push','userID','_onJoinRoomEvent','LocalUndoRedoService','csAckEvent','3hvfZMw','baseRev','_handleHeartbeatEvent','react','_applyRemoteChangeset','ERROR_IMAGE','INGEST','_onCombEvent','collab-text-range-','session.collaboration-timeout','_clearRedo','compose','setActiveRange','signUrlServerUrl','findNodePositionByCharIndex','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_initCloseConn','univer-online-status-icon','beginPath','unit','registerRenderModule','incrementRevOfUnit','@univerjs/network','_memberService','?size=','post','capture','_unitStatus','_createHandler','onCommandExecuted','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','name','members','_localStorageService','event$','pauseCollaboration','withCredentials','updateMember','?url=','_ensureSubject','_onOffline','sequenceExecute','_range','_registerDependencies','LEAVE','update','_sheetTransformSelectionsService','_colorIndex','_unlockTransition','ERROR_IMAGE_TYPE','clear','transformChangesets','4088szltQB','range','VIEWPORT_KEY','editingUnit','startColumn','title','_submitChangeset','min','retryConnectingInterval','CollaborationSocketService','isTransformMutationsWithChangesetSuccess','getUnitOnRev','RemoveColCommandId','getUnitId','_colorAssignService','MessageType','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','updatePermissionObjEvent','loadDoc','_queuedRemoteChangesets','OnLineSingle','\x20to\x20','_handleJoinEvent','SheetSkeletonManagerService','_removeRoom','red300','url(#$1','c2Prime','@univerjs/sheets-ui','CollaborationEntity','_getRedoStack','syncEditingCollabCursor','EmptyMutation','isTransformMutationFailure','pipe','_transformUndoredo','UniverCollaborationPlugin','_commentService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','delay','uni.network.url-service','setTimeout','FileId','_imageSourceCache','onlineStatus','createInstance','cmd','addObject','with','\x20-\x20','deserializeToCombResponse','onTransformIME','SetTextSelectionsOperation','close$','SnapshotServerOverHTTPService','UniverLicense','_clearUndo','IMessageService','unitID','revision','YUUMI_RATE_OVER_LIMIT','width','_telemetryService','/allowed','_replayCachedMutations','_socket$','getFocusedUnit','collabCursorState$','IURLService','searchParams','skeleton','translate(.97)','/object/','_setupBeforeClosingHandler','_sendHeartbeat','substring','DocIMEInputManagerService','Rect','WebURLService','saveSheetBlock','transformUndoRedo','_draw','JOINING','c1Prime','_send','_entityInit$','isArray','collaborators','Unknown\x20user','_getUndoStack','registerHTTPInterceptor','history','on-line-single','json','Disposable','append','_messageService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','CollaborationSessionService','generateRandomId','_retryCount','getConfig','off-line-single','InsertColCommandId','_onLocalMutation','attrs','Steady','exports','sheetId','from','column','state$','ILogService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','BASE64','DocStateChangeManagerService','_snapshotServerService','socket\x20open.','idSuffix','_hover','_createInitialStateImpl','combineLatest','HEARTBEAT','/collaborator','_snapshotService','BuiltInUIPart','_stopTelemetryCollaborationNewChangeset','univer-online','split','_handler','Warning','createCollaborator','_candidateSocket','clsx','mutations','...','body','leaveEvent','CHANGESET_REVISION_CONFILICT','every','UNIVER_SLIDE','ImageIoService','list','commentUpdateEvent','_change$','collaboratorID','fetchMiss','conflict','div','LifecycleStages','_color','createIdentifier','toggleOnline','_getSheetObject','string','serializeRangeWithSheet','close','createElement','state','handleInsertRangeMoveRight','[CollaborationState]:\x20apply\x20error!','_onRefRangeChange','[DataLoaderController]','snapshotServerUrl','all','getValue','_getCurrentRevision','_shapes','_collaborationTimeoutTimer','closePath','collab-rect-range-','COMPRESS_MUTATION_SEND','getCurrentSelections','registerRefRange','Rectangle','add','permissionRejEvent','handleInsertRow','focused$','_remoteChangesetQueue','_getSignURL','jiqing500','[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.','getCurrentRevOfUnit','UniverEngineFormula','getParam','currentTheme$','_anchor','has','[CollaborationSessionService]','UPDATE_CURSOR','CollaborationStatusDisplay','_refreshCollabCursors','clipPath','_userManagerService','NodePositionConvertToRectRange','SetWorksheetActivateCommand','_getUploadFileURL','PSEUDO_FETCH_MISSING_RESULT','TOO_MANY_REQUESTS','_removeClearOtherTimer','_telemetryInfo','getActiveSheet','_initEventListeners','parseProtocolChangeset','_refRangeService','OffLineSingle','createSocket','CollaborationSession','_timeoutTimer','/unit/','engine','mapDocumentTypeToUniverType','UniverNetwork','_localeService','_collabSessionService','HttpExport','_onRemoteACK','univer-pro.collaboration-client-socket-service','_type','_startSheetCollabCursor','InsertSheetMutation','PERMISSION_DENIED','forEach','arc','startRow','onTransformRemoteChangesetByIMECache','Optional','[PendingState]:\x20received\x20rejection.','168ueFXFt','_docSyncEditingCollabCursorService','snapshot','_updateState','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_backgroundColor','_onRemoteChangeset','IConfigService','PENDING','top','awaiting','onlineStatusIcon','handleInsertRangeMoveDown','AWAITING_WITH_PENDING','_cursorInfo$','max','CONNECTOR_DATA_TOO_LARGE','urlChange$','_retryConnectingTimer','RETRY_CONNECTING_MAX_COUNT','getSkeleton','UniverDocsUi','LICENSE_MAX_UNITS_EXCEEDED','getRelativeToViewportCoord','onCommentUpdate','IDLE','m2Prime','_init','_hovered','fillText','getUniverSheetInstance','getCollabEntity$','_getAnchorBounding','hidden','ICommandService','FAIL','getInterceptPoints','USERS_ENTER','_scheduleCollaborationTimeoutTimer','interceptor','3415rCOFCn','univer-online-status','objects','_drawAnchor','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','handleMoveRange','x-univer-host','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','CommentService','getUnitType','reconnect','_id','HTTPRequest','_heartbeatTimer','LIVESHARE_FETCH_OPERATIONS','editing\x20status\x20changed\x20to','prototype','status$','appendMutation','ERROR_EXCEED_SIZE','MoveRangeCommandId','saveImage','open$','_notificationService','deepClone','collaboration.closeRoom','LICENSE_EXPORT_SIZE_EXCEEDED','IUniverInstanceService','show','fillStyle','_loadDoc','text','[OfflineState]:\x20received\x20changeset.','_compressMutationService','merge','sheets','executeCommand','_clearScheduledTask','_removeCollabCursors','isActive','getImage','_socketService','TEXT_RANGE_LAYER_INDEX','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_entities','infoRsp','selection','_collaborationController','_state','_assignedColors','authzUrl','enableOfflineEditing','shouldCloseConn','image/jpg','LOCAL_CACHE_INTERVAL_KEY','_saveTaskMap','COLLAB_SUBMIT_CHANGESET_URL','handleIRemoveRow','catch','_onConflict','roles','UNKNOWN_CODE','DocSelectionManagerService','SHOULD_CLOSE_CONN','INotificationService','message$','_lockTransition','_commandService','getAttachHeader','rxjs','change$','_fetchMissChangesets','_onUserLeave','workbook','_instanceService','subunit','_setupSubUnitSync','getMemberID','getOffsetConfig','doc.mutation.rich-text-editing','resize','result','ranges','_getLoginPath','CollaborationStatus','Workbook','visibilityState','trim','data','_initRequestHeader','dispose$','SheetCollabCursorShape','evenodd','onSyncEditingCollabCursor','_getAPIPrefix','headers','subUnitId','[CollaborationSession]','Subject','FromArray','objectType','LICENSE_IMPORT_SIZE_EXCEEDED','_loadSheet','ITransformService','concatMap','_beforeCloseService','_initMergeInterceptor','206372uMuYiT','now','localeService','getItem','popstate','_tryReconnect','HEARTBEAT_INTERVAL_KEY','subscribe','Tools','_anchorDot','_initUnitPermissionChange','isInternalEditorID','_drawRectRange','stringify','contains','actions','_saveCache','/universer-api/snapshot','enableAuthServer','UNIVER_SHEET','/fetchmissing?from=','rxjs/operators','SNAPSHOT_HAS_BEEN_REMOVED','_httpService','SnapshotService','UNDEFINED','ThemeService','IBeforeCloseService','isPermissionRej','loadOfflineData','CollaborationController','collab-text-anchor-','xlink:href','_injector','_undoRedoService','onStateChange','Univer','IUndoRedoService','dispose','objectActions','_getScale','verdancy600','requireSession','moveTo','defs','liveShareNewHost','RECV','transformMutation','currentColor','location','Error\x20on\x20receiving\x20event','batchAllowed','ONLINE','InsertRangeMoveRightCommandId','_disabled','reject','_getSnapshotAPIPrefix','getTypeOfUnitAdded$','handleInsertCol','UNIVER_PROJECT','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','joinRsp','m1Prime','ITelemetryService','SetSelectionsOperation','_sendingTimer','\x0aAfter:\x20','_context','deleteCollaborator','UnitSnapshot','getRangePointData','_config','collabStatus.fetchMiss','code','_isPermissionRej','YUUMI_SUBSCRIPTION_NOT_FOUND','whenReady','permission.title','replaceState','assignAColorForMemberID','_decreaseWaiting','path','_replaceFileID','init','IPermissionService','Shape','delete','off-line-single_clip0_910_343','@univerjs/core','_updateURLWithCurrentState','_themeService','override','_registerRenderDependencies','SheetsSelectionsService','_unitOnClients','onPointerLeave$','Error','_selfUnitIDs','_executeRemoteChangeset','_textBubble','NOT_COLLAB','concat','#fff','DocCollaborationEntity','getResourcesRequest','UniverCollaboration','_toggleOnline','_onRemoteRejected','getMergeData','fetchThroughInterceptors','toString','CONFLICT','RETRY_CONNECTING_MAX_COUNT_KEY','visibilitychange','toRgbString','defineProperty','_cursor','_clearHeartbeatTimer','_schedule','_handleHover','lineTo','saveOfflineData','RichTextEditingMutation','_onCursorDelete','isValidRectRange','&source=','Ready','getCollabEntity','loginUrlKey','_checkMissing','endRow','collaboration-client.config','unitId\x20is\x20not\x20found','unitId','MUTATION','CompressMutationService','uploadFileServerUrl','unshift','_substituteRedoStack','_render','updatePermissionPoint','reverse','_updateCollabCursors','collabWebSocketUrl','IRenderManagerService','defIds','_collabCursorState$','_listenToOnlineEvent','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleClearOtherTimer','onRemoteChangeset','LocaleService','Tooltip','UniverUi','unknown','pending','take','HTTPService','_syncEditingCollabCursorService','fromCollab','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','onRemoteRej','UniverSheets','IContextService','offline','_incrementRevisionNumber','origin','serializeCombRequest','UNRECOGNIZED','disableLocalCache','collaboration.single-unit.warning','InsertRangeMoveDownCommandId','submit\x20changeset\x20error!','src','map','row','@univerjs/drawing','_collaborationPaused','roomMembers$','_transformService','DataLoaderController','then','_docStateChangeManagerService','entries','UNIVER_DOC','removeParam','none','includes','joinEvent','[CollaborationEntity]','image/jpeg','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_initStatusComponent','SetDocZoomRatioOperation','OFFLINE','readAsDataURL','_transformRemoteChangesetByIMECache','save','_handleEvent','create','filter','2513763RqBVeO','getCoordByCell','UniverEngineRender','removeMember','_startDocCollabCursor','setItem','_collaborationSessionService','_updateStatus','_localCacheService','/resources','getMember','params','collaboration-session-retry','@univerjs/docs-ui','YUUMI_UNABLE_LOAD_URL','rev','forwardRef','isTransformChangesetsSuccess','_onConnectionFailed','DocSkeletonManagerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getColor','_transitionLocked','getImageSourceCache','_session','_members','_socket'];_0x197e=function(){return _0x5230b5;};return _0x197e();}
1
+ function _0x4522(){const _0x3b0dbc=['url(#on-line-single_clip0_910_349)','_toggleOffline','_transformPreviousActiveRange','10PqYjMe','setCurrentUser','_initStatusComponent','_onRefRangeChange','_updateLocalCursor','evenodd','indexOf','ITelemetryService','SNAPSHOT_SERVER_URL_KEY','[OfflineState]:\x20received\x20changeset.','unitId','[OfflineState]:\x20received\x20acknowledgement.','dispose','SEND_CHANGESET_TIMEOUT','height','handleDeleteRangeMoveLeft','actions','/universer-api/file/{fileID}/sign-url','history','enableAuthServer','updateOfflineData','Rectangle','isTransformMutationsWithChangesetFailure','href','ColorKit','addEventListener','reduce','list','appendMutation','_onConnectionFailed','_snapshotService','urlChange$','getDocRanges','_retryCount','setTimeout','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','DependentOn','_collabCursorState$','image/jpg','CollaborationController','getCurrentSelections','ALREADY_EXISTS','_heartbeatTimer','file','m1Prime','_getUploadFileURL','@univerjs/design','_instanceService','not_collab','_toggleOnline','awaiting','fromEvent','IUndoRedoService','/collaborator','_initResize','_handleEvent','getRenderById','_pendingMutations','_docTransformSelectionsService','closeSession','_ws','csRejEvent','encode','prototype','exports','_onMessage','moveTo','has','mutations','gold400','@univerjs/engine-formula','LICENSE_IMPORT_SIZE_EXCEEDED','ERROR_IMAGE','getSheetObject','saveSheetBlock','isTransformChangesetsSuccess','awaitingChangeset','[PendingState]:\x20received\x20acknowledgement.','off-line-single_clip0_910_343','NOT_FOUND','YUUMI_RATE_OVER_LIMIT','_imageSourceCache','LocalCacheService','addObjects','_onUserLeave','_hideTimer','MSG_FOR_ERROR','_clearLocalCache','/universer-api/snapshot','CollaborationSession','_clearScheduledTask','deserializeToCombResponse','_queuedRemoteChangesets','_docSkeletonManagerService','_transformSelections','UniverEngineRender','text','jiqing500','mapTo','_removeRoom','_applyRemoteChangeset','41988pJwiJh','[PendingState]:\x20unhandled\x20univer\x20type:\x20','Error\x20on\x20receiving\x20event','\x20-\x20','textEncoder','_color','ImageSourceType','from','CollaborationEvent','result','49UrURaS','CommandType','#FFF','_unitOnClients','findNodePositionByCharIndex','LocaleService','toRgbString','@univerjs/drawing','serializeCombRequest','303416yStCZc','_getAnchorBounding','OTHER_CLIENTS_EDITING','UNIVER_UNKNOWN','off-line-single','_state','every','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','arc','ranges','assignAColorForMemberID','OnLineSingle','getCurrentRevOfUnit','_lockTransition','getCurrentUser','enableOfflineEditing','close','subunit','reverse','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','_stopTelemetryCollaborationNewChangeset','infoRsp','1132119hoSQtY','createIdentifier','isPermissionRej','fetchMiss','now','RemoveRowCommandId','method','clipPath','InsertColCommandId','fetchThroughInterceptors','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_render','_schedule','image/jpeg','MoveRangeCommandId','EmptyMutation','_localStorageService','mapDocumentTypeToUniverType','roomMembers','roomInfos','getInterceptPoints','SetDocZoomRatioOperation','src','originalMeta','_socket$','_selfUnitIDs','_unitStatus','_ensureSubject','NO_OTHER_CLIENTS_EDITING','getMemberID','color','transformUndoRedo','conflict','_onJoinRoomEvent','loginUrlKey','InsertRangeMoveDownCommandId','NOT_COLLAB','flatMap','generateRandomId','eventID','svg','_docSkeleton','_scheduleHeartbeat','_clearUndo','PSEUDO_FETCH_MISSING_RESULT','BASE64','exhaustSavingTask','colorChannel1','online','_initModules','shouldCloseConn','use','setActiveRange','startsWith','Inject','loadOfflineData','_assignedColors','getUndoRedoMutationParamsCache','asObservable','SetSelectionsOperation','_waitForHeartbeatResponse','subscribe','DocSelectionManagerService','AUTHZ_URL_KEY','RETRY_CONNECTING_MAX_COUNT_KEY','_handler','LOCAL_CACHE_INTERVAL_KEY','allowed','collab-rect-range-','top','_id','_onCursorDelete','amd','getCollabCursors$','_sendHeartbeat','font','_state$','SheetSkeletonManagerService','deepClone','[FetchMissState]','onSendChangeset','_undoRedoService','onStarting','CompressMutationService','operators','HTTPRequest','HEARTBEAT_INTERVAL_KEY','forwardRef','restore','setConfig','subUnitId','collaboratorID','handleInsertCol','_transformStack','get','UPDATE_CURSOR','/block/','_univerInstanceService','transformRemoteChangeset','VIEW_MAIN','url(#off-line-single_clip0_910_343)','JOIN','ITransformService','APPLY_PERMISSION_DENIED','_clearTimeoutTimer','resend','[OfflineState]:\x20received\x20rejection.','onlyLocal','ACTIVE_UNIT_EVENT_CHANNEL','_createInitialState','_configService','throttleTime','collaboration-session-retry','_createHandler','_memberService','getUnhiddenWorksheets','rxjs/operators','_sendHeartbeatTimer','LIVESHARE_TERMINATE','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','IContextService','RegularPolygon','_commandService','cursorInfo','COMPLETION_FINISHED','getMergeData','UniverCollaborationClientPlugin','_acknowledgedAwaitingChangeset','Warning','FromArray','#fff','revision','1em','getConfig','getUnitType','_clearHeartbeatTimer','onPointerLeave$','LIVESHARE_OPERATION','registerComponent','_telemetryInfo','_sheetTransformSelectionsService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','forEach','getTime','unit','_registerDependencies','stopTime','COMMENT_UPDATE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_updateStatus','sessionStatus$','INVALID_ARGUMENT','getResourcesRequest','_joinRoom','DesktopCollaborationStatusDisplayController','getColor','getCollabEntity$','_sessionStatus$','BuiltInUIPart','_updateState','getMember','&source=','_removeClearOtherTimer','focused$','OFFLINE','/universer-api/stream/file/upload','_eventUnsubscribe','ONLINE','toDisposable','measureText','params','routeKey','with','SNAPSHOT_INVALID_SNAPSHOT','localeService','save','memberID','setInterval','endColumn','getOwnPropertySymbols','DocSkeletonManagerService','clear','isValidRectRange','auth.needGotoLoginAlert','/object/','UNIVER_SHEET','onRendered','idSuffix','UniverDrawing','add','_localCacheService','message$','registerRefRange','csAckEvent','ICollaborationSocketService','loadDoc','isActive','SnapshotServerOverHTTPService','univer-online-status-title','_drawAnchor','_messageService','onCommandExecuted','delay','_change$','_onConflict','_handleHeartbeatEvent','runRefRangeMutations','@univerjs-pro/collaboration','location','name','Undefined','fromCollab','onSyncEditingCollabCursor','UPDATE_PERMISSION_OBJ','_session','UniverDesign','RefRangeService','saveImage','COLLAB_SUBMIT_CHANGESET_URL_KEY','CHANGESET_REJ','ILogService','purple300','IMessageService','_init','Disposable','@univerjs/core','DeleteRangeMoveLeftCommandId','35ZcvrRA','currentSkeleton$','failed\x20to\x20apply\x20missed\x20changesets!','INGEST','hidden','[UniverCollaborationClientPlugin]','function','getCoordByCell','_online','defineProperty','_uiPartsService','getRangePointData','reconnect','visibilityState','_shapes','_range','_getMergeRange','SessionStatus','_saveCache','path','fetch_missing','UNIVER_PROJECT','_collabSessionService','loadSheet','trim','translate(.97)','_initRequestHeader','isTransformMutationsWithChangesetSuccess','@univerjs/telemetry','_handleJoinEvent','registerHTTPInterceptor','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','replaceTextRanges','UnitSnapshot','&assign=','duration','clsx','_injector','RemoveColCommandId','replace','_onRemoteACK','getUniverSheetInstance','listRoles','IRemoteInstanceService','searchParams','getActiveRange','_timeoutTimer','_socketService','_getUndoStack','LocalUndoRedoService','snapshot','ThresholdInterceptorFactory','_labelPosition','unload','_createSocket','_collaborationController','_showConflictNotification','_remoteChangesetQueue','_type','onPointerEnter$','_initStatusListener','WebSocketService','_substituteUndoStack','collaboration.single-unit.warning','fill','bottom','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_getSendChangesetTimeout','_compressMutationService','length','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','parse','url','_colorAssignService','\x0aCurrent:\x20','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','session.collaboration-timeout','UNKNOWN_CMD','UNIVER_DOC','_handleLeaveEvent','_redoStacks','UniverCollaboration','sheetId','UniverEngineFormula','639scDNkA','_sheetSkeletonManagerService','_hovered','@univerjs/sheets-ui','HTTPService','debounce','_decreaseWaiting','Unknown\x20user','_name','filter','_transformIMECache','_syncEditingCollabCursorService','readAsDataURL','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','CollaborationStatus','LICENSE_MAX_UNITS_EXCEEDED','startRow','[SyncedState]:\x20received\x20rejection.','blue400','IUniverInstanceService','transformIMECache','12HzFvRe','UniverLicense','tag','set','baseRev','currentTheme$','_docStateChangeManagerService','show','useObservable','LOCAL_CACHE_INTERVAL','handleIRemoveRow','HEARTBEAT_INTERVAL','onTransformIME','interceptor','_isPermissionRej','LIVESHARE_REQUEST_HOST','collaMsg','reject','_startCollaboration','retryConnectingInterval','apply','PERMISSION_DENIED','PENDING','MessageType','find','YUUMI_URL_COL_OUT_OF_RANGE','m2Prime','getRoom','AWAITING_WITH_PENDING','_socketReady','_sessions','changesets','getValue','LEAVE','_scene','xlink:href','_getSnapshotAPIPrefix','@univerjs/network','LIVESHARE_FETCH_OPERATIONS','IConfigService','defIds','InsertRangeMoveRightCommandId','combineLatest','_transformRemoteChangesetByIMECache','_HTTPService','uploadFileServerUrl','_setupSubUnitSync','_onCombEvent','UUID','red300','transformChangesets','Univer','EXCHANGE_SIGN_URL_SERVER_URL_KEY','startColumn','addObject','TEXT_RANGE_LAYER_INDEX','_waitCount','CollaborationSocketService','SheetCollabCursorShape','onPointerMove$','FETCH_MISS','send','transformMutationsWithChangeset','fetchMissingChangesets','SNAPSHOT_URL_KEY','SheetsSelectionsService','_socketMessageSubscription','entries','symbol','close$','univer-online-status','patch','newValue','RevisionService','setParam','[CollaborationUndoRedoService]','useRef','change$','currentColor','FETCH_MISSING','SheetPermissionInitController','_renderManagerService','\x0aAfter:\x20','onRemoteAck','_replayCachedMutations','call','_unitID','_backgroundColor','telemetry\x20info\x20is\x20not\x20initialized','TRANSFORM_CHANGE_OBSERVABLE_TYPE','enableLocalCache','_scheduleCollaborationTimeoutTimer','selection','switchMap','_cursorShapes','@univerjs/sheets','_initCloseConn','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_commentService','MUTATION','LICENSE_DISTRO_REJECTED','permission.title','collaboration.closeRoom','updatePermissionPoint','4252ucLlhh','_startTelemetryCollaborationNewChangeset','DisposableCollection','onRemoteRej','UniverInstanceType','capture','_loadSheet','refreshPermission','UniverSheets','permissionRejEvent','_socket','_cursors','/resources','_throwTelemetryCollaborationNewChangeset','onMissingChangesets','UniverTelemetry','fromEventSubject','[CollaborationEntity]','black','objects','body','USERS_LEAVE','[DataLoaderController]','pushState','toggleOnline','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','offline','UserManagerService','session.connection-failed','clearTimeout','Shape','IBeforeCloseService','registerBeforeClose','collabStatus.notCollab','createInstance','pending','_collaborationSessionService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_clearRedo','_handleHover','_getScale','size','UnitEmbedded','socket$','getSheetBySheetId','url(#$1','YUUMI_UNABLE_LOAD_URL','responseType','getTypeOfUnitDisposed$','collab-text-anchor-','getSheetId','disposeWithMe','toggleOffline','children','substring','_status$','rev','saveSnapshot','triggerDblclick','fillStyle','_getLoginPath','stringify','editingUnit','_updateCollabCursors','univerjs-icon\x20univerjs-icon-','CHANGESET_ACK','_shouldReportTelemetry','getUnitId','downloadEndpointUrl','hide','_cachedData','contains','socket\x20open.','removeMember','on-line-single','object','saveOfflineData','UNIVER_SLIDE','AWAITING','RETRY_CONNECTING_MAX_COUNT','hasOwnProperty','userID','AuthzIoHttpService','putCollaborators','getOffsetConfig','onTransformRemoteChangesetByIMECache','unknown','NEW_CHANGESETS','isInternalEditorID','getAncestorScale','POST','fillText','_awaitingChangeset','_scheduleSaving','concat','sheets','Tooltip','liveShareNewHost','IAuthzIoService','HEARTBEAT','textRanges','session','_clearCollaborationTimeoutTimer','_onCursorUpdate','deserializeRangeWithSheet','replaceState','encodeURIComponent','8ExGCYR','USERS_ENTER','uni.network.url-service','_substituteRedoStack','_entities','_drawTextRange','createElement','0\x200\x2016\x2016','WorkbookEditablePermission','[PendingState]:\x20received\x20rejection.','compose','collabCursorState$','@univerjs/rpc','put','_clearOtherTimers','map','transformSelections','x-univer-host','getImageSourceCache','_retryConnectingTimer','ISnapshotServerService','onTransformSelections','synced','COLORS','SheetCollaborationEntity','_createInitialStateImpl','type','concatMap','registerRenderModule','_getSheetObject','socketService','current','_updateSubUnitFromURLParams','_context','PERMISSION_REJ','connection\x20error','_executeRemoteChangeset','title','_initUnitPermissionChange','push','_exhaustRemoteChangesetQueue','_disableEditing','_refreshCollabCursors','status','_fetchMissChangesets','toString','error','FAIL','commentUpdate$','Vector2','registerOnClose','_rescheduleHeartbeat','getVpScrollXYInfoByPosToVp','RECV','_docSyncEditingCollabCursorService','UNAUTHENTICATED','doc.mutation.rich-text-editing','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','APPLY_REVISION_CONFILICT','takeUntil','BehaviorSubject','collabStatus.syncing','transformMutation','create','joinRsp','onStateChange','useCallback','_sendingTimer','roles','XHRHTTPImplementation','Optional','connectInjector','_docTransformIMECacheService','UNKNOWN_CODE','pipe','executeCommand','_scheduleTimestamp','sequenceExecute','getOwnPropertyDescriptor','shareReplay','\x20to\x20','VIEWPORT_KEY','Subject','IURLService','_logService','_replaceFileID','_transformUndoRedoStack','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','/rev/','\x20in\x20_schedule.','_textBubble','APPLY_NON_SEQUENTIAL_REVISION','RichTextEditingMutation','ILocalStorageService','Workbook','signUrlServerUrl','@univerjs/ui','ERROR_IMAGE_TYPE','getRelativeToViewportCoord','DocCollaborationEntity','[CollaborationState]:\x20apply\x20error!','/-/object/-/batch_allowed','_listenToOnlineEvent','HELLO','unit-cache-','requireSession','SNAPSHOT_HAS_BEEN_REMOVED','DocStateChangeManagerService','getCellPositionByOffset','EffectRefRangId','isEditing','awaiting_with_pending','_onFetchMissResult','_http','_event$','_checkMissing','[CollaborationSessionService]','_listenToOfflineEvent','split','dispose$','IUIPartsService','min','/role','session.room-full','complete','activeSheet$','onlineStatus','LIVESHARE_NEW_HOST','_members','_themeService','collabWebSocketUrl','collabStatus.synced','defs','c1Prime','HttpExport','getActiveSheet','3116267GVVPiY','cmd','cursorInfo$','UniverCollaborationPlugin','WebURLService','collabStatus.conflict','SYNCED','deleteCollaborator','OffLineSingle','/unit/','_initCommandExecutedListener','collabStatus.fetchMiss','handleInsertRangeMoveDown','collaboration_new_changeset','_permissionService','onRemoteChangeset','HEARTBEAT_TIMEOUT_KEY','3782467xBpmwf','_getSignURL','_userManagerService','COLLAB_WEB_SOCKET_URL','status$','submit\x20changeset\x20error!','unsubscribe','?url=','disableLocalCache','data','getParam','FileId','IPermissionService','init','M0\x200H16V16H0z','LICENSE_EXPORT_SIZE_EXCEEDED','IImageIoService','setItem','event$','_onRemoteChangeset','_refRangeService','collab-client.tooltip.reconnect','_scheduleClearOtherTimer','_registerRenderDependencies','updateMember','objectID','{fileID}','INTERNAL_ERROR','delete','SHOULD_CLOSE_CONN','getFocusedUnit','roomMembers$','_onLocalMutation','_tryReconnect','INotificationService','_document','120642NaQeya','update','_removeCollabCursors','UniverNetwork','round','_initMergeInterceptor','handleInsertRangeMoveRight','_onUserJoin','IRenderManagerService','_disabled','sheetID','extend','COMPRESS_MUTATION_APPLY','Tools','ImageIoService','?size=','_collaborationPaused','open$','Injector','slice','range','HEADER_MENU','values','onload','toStringTag','_localeService','Rect','backgroundColor','_getCurrentRevision','rxjs','Error','_updateURLWithCurrentState','SUCCUSS','_incrementRevisionNumber','objectType','div','HttpImport','UniverCore','headers','React','UNRECOGNIZED','requestParams','_config','image/bmp','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','rgba(255,\x20255,\x20255,\x200.01)','onMissedChangesetFetched','unitID','saveChangeset','_lastPointer','onReady','RxDisposable','joinEvent','fetching\x20missing\x20changesets\x20from\x20','liveShareOperation','withCredentials','override','_loadDoc','drawWith','@univerjs/docs','_roomMembers$','_startDocCollabCursor','_initEventListeners','_anchor','/universer-api/oidc/authpage','getCollabEntity','...','_send','_syncEditingCollabCursor','_transformService','_startSheetCollabCursor','IDLE','commentUpdateEvent','_getCtorByUniverType','@univerjs-pro/license','includes','COMPRESS_MUTATION_SEND','CHANGESET_REVISION_CONFILICT','merge','makeDirty','storage','_cursorInfo$','MergeInterceptorFactory','debug','onMouseMove','_onConnectionOpen','/new_changes','/allowed','updateCursorEvent','_entityInit$','unshift','_onOffline','_singleActiveUnitService','endRow','getImage','TOO_MANY_REQUESTS','getViewport','_roomMembers','_collabCursorController','post','setAlpha','_revisionService','_colorIndex','row','_draw','_beforeCloseService','SUBMIT_CHANGESET','setShapeProps','_urlService','max','all','sessionStatus','useDependency','string','_tryEnsureSocket','_telemetryService','@univerjs/docs-ui','pluginName','react','CollaborationSessionService','conflict.title','closePath','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','CONFLICT','_getDownloadEndpointURL','univer-online-status-icon','syncEditingCollabCursor','CommentService','width','assign','image/gif','[CollaborationSessionService]:\x20socket\x20error','take','_setupBeforeClosingHandler','CONNECTOR_DATA_TOO_LARGE','_candidateSocket','debounceTime','startTime','next','state','onlineStatusIcon','getAttachHeader','&to=','_transformUndoredo','_anchorDot','[CollaborationSession]','propertyIsEnumerable','_httpService','pauseCollaboration','UniverSheetsUi','ICommandService','SEND_CHANGESET_TIMEOUT_KEY','_onRemoteRejected','_getAPIPrefix','newCsEvent','_transitionLocked','/universer-api/authz','@univerjs/engine-render','_hover','removeParam','ERROR_EXCEED_SIZE','_commentUpdate$','_collaborationTimeoutTimer','getItem','onTransformChange$','column','ThemeService','_getAPIPrefixPath','getTypeOfUnitAdded$','mergeOverrideWithDependencies','createSocket','selections','on-line-single_clip0_910_349','verdancy600','0\x200\x2017\x2016','then','isTransformMutationFailure','state$','_getRedoStack','CollaborationEntity','isArray','addImageSourceCache','/universer-api/comb','SetTextSelectionsOperation','subscribeEvent','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','handleDeleteRangeMoveUp','_unlockTransition','getSkeleton','UNDEFINED','_drawRectRange','UniverCollaborationClient','DataLoaderController','ImageUploadStatusType','getCurrent','DocIMEInputManagerService','b64DecodeUnicode','displayName','attrs','/fetchmissing?from=','transformStack\x20failed!','_getSaveTimeout','_saveTaskMap','_notificationService','_updateLocalCache','createCollaborator','lineTo','_onRecvEvent'];_0x4522=function(){return _0x3b0dbc;};return _0x4522();}function _0x3ebc(_0x38c69c,_0x45c4c4){const _0x45226d=_0x4522();return _0x3ebc=function(_0x3ebcb4,_0x57b1e5){_0x3ebcb4=_0x3ebcb4-0x98;let _0x55a057=_0x45226d[_0x3ebcb4];return _0x55a057;},_0x3ebc(_0x38c69c,_0x45c4c4);}(function(_0x951ca,_0x2617cd){const _0x255302=_0x3ebc,_0x3edf78=_0x951ca();while(!![]){try{const _0x3ec50f=-parseInt(_0x255302(0x2b3))/0x1*(parseInt(_0x255302(0x4a8))/0x2)+parseInt(_0x255302(0x1cb))/0x3*(-parseInt(_0x255302(0x248))/0x4)+parseInt(_0x255302(0x177))/0x5*(parseInt(_0x255302(0x370))/0x6)+parseInt(_0x255302(0x4b2))/0x7*(parseInt(_0x255302(0x4bb))/0x8)+-parseInt(_0x255302(0x4d1))/0x9*(-parseInt(_0x255302(0x443))/0xa)+-parseInt(_0x255302(0x33b))/0xb+parseInt(_0x255302(0x1e0))/0xc*(parseInt(_0x255302(0x34c))/0xd);if(_0x3ec50f===_0x2617cd)break;else _0x3edf78['push'](_0x3edf78['shift']());}catch(_0x379616){_0x3edf78['push'](_0x3edf78['shift']());}}}(_0x4522,0x237a8),function(_0x34f6e4,_0x28359d){const _0x1cfac4=_0x3ebc;typeof exports==_0x1cfac4(0x293)&&typeof module<'u'?_0x28359d(exports,require('@univerjs/core'),require(_0x1cfac4(0x38d)),require(_0x1cfac4(0x108)),require(_0x1cfac4(0x471)),require('@univerjs/ui'),require(_0x1cfac4(0x205)),require(_0x1cfac4(0x163)),require(_0x1cfac4(0x193)),require(_0x1cfac4(0x3ab)),require(_0x1cfac4(0x3e4)),require(_0x1cfac4(0x23f)),require(_0x1cfac4(0x40d)),require('@univerjs/drawing'),require(_0x1cfac4(0x489)),require(_0x1cfac4(0x1ce)),require(_0x1cfac4(0x3e6)),require(_0x1cfac4(0x19b)),require(_0x1cfac4(0x2bf)),require(_0x1cfac4(0x3ba))):typeof define==_0x1cfac4(0x17d)&&define[_0x1cfac4(0xdc)]?define([_0x1cfac4(0x483),_0x1cfac4(0x175),_0x1cfac4(0x38d),_0x1cfac4(0x108),_0x1cfac4(0x471),_0x1cfac4(0x313),'@univerjs/network','@univerjs-pro/collaboration',_0x1cfac4(0x193),_0x1cfac4(0x3ab),'@univerjs/docs-ui',_0x1cfac4(0x23f),_0x1cfac4(0x40d),_0x1cfac4(0x4b9),_0x1cfac4(0x489),'@univerjs/sheets-ui',_0x1cfac4(0x3e6),'clsx',_0x1cfac4(0x2bf),'@univerjs-pro/license'],_0x28359d):(_0x34f6e4=typeof globalThis<'u'?globalThis:_0x34f6e4||self,_0x28359d(_0x34f6e4[_0x1cfac4(0x42f)]={},_0x34f6e4[_0x1cfac4(0x395)],_0x34f6e4['rxjs'],_0x34f6e4[_0x1cfac4(0x38d)][_0x1cfac4(0xe8)],_0x34f6e4[_0x1cfac4(0x16b)],_0x34f6e4['UniverUi'],_0x34f6e4[_0x1cfac4(0x373)],_0x34f6e4[_0x1cfac4(0x1c8)],_0x34f6e4[_0x1cfac4(0x257)],_0x34f6e4['UniverDocs'],_0x34f6e4['UniverDocsUi'],_0x34f6e4[_0x1cfac4(0x250)],_0x34f6e4[_0x1cfac4(0x4a2)],_0x34f6e4[_0x1cfac4(0x150)],_0x34f6e4[_0x1cfac4(0x1ca)],_0x34f6e4[_0x1cfac4(0x405)],_0x34f6e4[_0x1cfac4(0x397)],_0x34f6e4[_0x1cfac4(0x19b)],_0x34f6e4['UniverRpc'],_0x34f6e4[_0x1cfac4(0x1e1)]));}(this,function(_0x18e336,_0x52e410,_0xe9c73a,_0x5a1ba2,_0x716320,_0x4d3b05,_0x302c55,_0x133afc,_0x486b59,_0x1497bb,_0x589b5b,_0x547cac,_0xa52036,_0x102a58,_0x4281cc,_0x35e820,_0x401663,_0xbbbc75,_0xdcab88,_0x1cf26d){'use strict';const _0x18b736=_0x3ebc;var _0x587ba1=Object['defineProperty'],_0x5687c9=(_0x28ad56,_0x5c988d,_0x4a1355)=>_0x5c988d in _0x28ad56?_0x587ba1(_0x28ad56,_0x5c988d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a1355}):_0x28ad56[_0x5c988d]=_0x4a1355,_0x2dd6ee=(_0x960139,_0x4d40b6,_0x4bda39)=>_0x5687c9(_0x960139,typeof _0x4d40b6!=_0x18b736(0x224)?_0x4d40b6+'':_0x4d40b6,_0x4bda39);const _0x33c214=_0x18b736(0x44b),_0x50bf4d=_0x18b736(0x49b),_0x5ae436=_0x18b736(0x220),_0x2ba860=_0x18b736(0x450),_0x456542=_0x18b736(0x34f),_0x3df329='ws://127.0.0.1:8000/universer-api/comb/connect',_0x3a3913=_0x18b736(0x1eb),_0x2d6e65='HEARTBEAT_TIMEOUT',_0x18f143=_0x18b736(0x297),_0x27ab77=_0x18b736(0x1e9),_0x42f1d2='COLLAB_SUBMIT_CHANGESET_URL',_0x742b91=_0x18b736(0x426),_0x35248d='LOGIN_URL_KEY',_0x355402=_0x18b736(0x3b0);var _0x1b55b1=(_0x7a5309=>(_0x7a5309[_0x7a5309[_0x18b736(0x42d)]=0x0]='UNDEFINED',_0x7a5309[_0x7a5309['OK']=0x1]='OK',_0x7a5309[_0x7a5309['INTERNAL_ERROR']=0x2]=_0x18b736(0x367),_0x7a5309[_0x7a5309[_0x18b736(0x1f5)]=0x3]='PERMISSION_DENIED',_0x7a5309[_0x7a5309[_0x18b736(0x492)]=0x4]=_0x18b736(0x492),_0x7a5309[_0x7a5309[_0x18b736(0x2ea)]=0x5]=_0x18b736(0x2ea),_0x7a5309[_0x7a5309[_0x18b736(0x46c)]=0x6]=_0x18b736(0x46c),_0x7a5309[_0x7a5309['INVALID_ARGUMENT']=0x7]=_0x18b736(0x12b),_0x7a5309[_0x7a5309[_0x18b736(0x3cf)]=0x8]=_0x18b736(0x3cf),_0x7a5309[_0x7a5309['COMPLETION_FINISHED']=0x9]=_0x18b736(0x110),_0x7a5309[_0x7a5309[_0x18b736(0x3bd)]=0x1389]=_0x18b736(0x3bd),_0x7a5309[_0x7a5309[_0x18b736(0x141)]=0x1771]=_0x18b736(0x141),_0x7a5309[_0x7a5309[_0x18b736(0x31d)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x7a5309[_0x7a5309['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x7a5309[_0x7a5309[_0x18b736(0x30e)]=0x1b5a]=_0x18b736(0x30e),_0x7a5309[_0x7a5309['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x18b736(0x2ed),_0x7a5309[_0x7a5309[_0x18b736(0xfb)]=0x1b5c]=_0x18b736(0xfb),_0x7a5309[_0x7a5309[_0x18b736(0x3f6)]=0x1f41]=_0x18b736(0x3f6),_0x7a5309[_0x7a5309[_0x18b736(0x1da)]=0x2329]=_0x18b736(0x1da),_0x7a5309[_0x7a5309['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x18b736(0x1c2),_0x7a5309[_0x7a5309['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x18b736(0x48a),_0x7a5309[_0x7a5309[_0x18b736(0x35b)]=0x232c]=_0x18b736(0x35b),_0x7a5309[_0x7a5309[_0x18b736(0x244)]=0x232d]=_0x18b736(0x244),_0x7a5309[_0x7a5309[_0x18b736(0x276)]=0x2711]=_0x18b736(0x276),_0x7a5309[_0x7a5309[_0x18b736(0x1f9)]=0x2712]=_0x18b736(0x1f9),_0x7a5309[_0x7a5309[_0x18b736(0x493)]=0x2713]=_0x18b736(0x493),_0x7a5309[_0x7a5309['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x7a5309[_0x7a5309[_0x18b736(0x398)]=-0x1]=_0x18b736(0x398),_0x7a5309))(_0x1b55b1||{}),_0xe94575=(_0x3a9ac9=>(_0x3a9ac9[_0x3a9ac9[_0x18b736(0x4be)]=0x0]='UNIVER_UNKNOWN',_0x3a9ac9[_0x3a9ac9['UNIVER_DOC']=0x1]=_0x18b736(0x1c5),_0x3a9ac9[_0x3a9ac9[_0x18b736(0x14d)]=0x2]='UNIVER_SHEET',_0x3a9ac9[_0x3a9ac9[_0x18b736(0x295)]=0x3]='UNIVER_SLIDE',_0x3a9ac9[_0x3a9ac9[_0x18b736(0x18c)]=0x4]=_0x18b736(0x18c),_0x3a9ac9[_0x3a9ac9[_0x18b736(0x398)]=-0x1]=_0x18b736(0x398),_0x3a9ac9))(_0xe94575||{}),_0x5c6d4f=(_0xafec54=>(_0xafec54[_0xafec54[_0x18b736(0x1c4)]=0x0]=_0x18b736(0x1c4),_0xafec54[_0xafec54['HELLO']=0x1]='HELLO',_0xafec54[_0xafec54[_0x18b736(0xf9)]=0x2]=_0x18b736(0xf9),_0xafec54[_0xafec54[_0x18b736(0x201)]=0x3]=_0x18b736(0x201),_0xafec54[_0xafec54[_0x18b736(0x17a)]=0x4]=_0x18b736(0x17a),_0xafec54[_0xafec54['HEARTBEAT']=0x5]=_0x18b736(0x2ab),_0xafec54[_0xafec54[_0x18b736(0x2e8)]=0x6]=_0x18b736(0x2e8),_0xafec54[_0xafec54[_0x18b736(0x398)]=-0x1]=_0x18b736(0x398),_0xafec54))(_0x5c6d4f||{}),_0x47137a=(_0x336f87=>(_0x336f87[_0x336f87[_0x18b736(0x2fc)]=0x0]=_0x18b736(0x2fc),_0x336f87[_0x336f87['OK']=0x1]='OK',_0x336f87[_0x336f87[_0x18b736(0x2e2)]=0x2]=_0x18b736(0x2e2),_0x336f87[_0x336f87['UNRECOGNIZED']=-0x1]=_0x18b736(0x398),_0x336f87))(_0x47137a||{}),_0x27a8ed=(_0xd72ce5=>(_0xd72ce5[_0xd72ce5[_0x18b736(0x166)]=0x0]=_0x18b736(0x166),_0xd72ce5[_0xd72ce5[_0x18b736(0x394)]=0x1]=_0x18b736(0x394),_0xd72ce5[_0xd72ce5[_0x18b736(0x339)]=0x2]=_0x18b736(0x339),_0xd72ce5[_0xd72ce5[_0x18b736(0x272)]=0x3]=_0x18b736(0x272),_0xd72ce5[_0xd72ce5[_0x18b736(0x198)]=0x4]=_0x18b736(0x198),_0xd72ce5[_0xd72ce5[_0x18b736(0x398)]=-0x1]='UNRECOGNIZED',_0xd72ce5))(_0x27a8ed||{});const _0x48532f='collaboration-client.config',_0x51ea40={};function _0x5974b8(_0x57bf27){const _0x49a2ba=_0x18b736;var _0x16b13b,_0x3a6bf0,_0x3c8487,_0x19ad4a;const _0x38e898=_0x57bf27[_0x49a2ba(0x355)],_0x8a3f1d=JSON[_0x49a2ba(0x1be)](_0x38e898);switch(_0x8a3f1d[_0x49a2ba(0x33c)]){case _0x5c6d4f[_0x49a2ba(0x2ab)]:case _0x5c6d4f[_0x49a2ba(0x31a)]:{const _0x31d829=_0x8a3f1d[_0x49a2ba(0x4d0)];return{..._0x8a3f1d,'data':_0x31d829,'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};}case _0x5c6d4f[_0x49a2ba(0xf9)]:{const _0x481bec=_0x8a3f1d[_0x49a2ba(0x2f3)];return{..._0x8a3f1d,'data':_0x481bec,'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};}case _0x5c6d4f[_0x49a2ba(0x2e8)]:{const _0x4d6411=_0x8a3f1d[_0x49a2ba(0x1f0)];switch(_0x4d6411[_0x49a2ba(0xbb)]){case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x2d5)]:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':(_0x16b13b=_0x4d6411[_0x49a2ba(0x251)])==null?void 0x0:_0x16b13b['cs']},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x289)]:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':(_0x3a6bf0=_0x4d6411[_0x49a2ba(0x155)])==null?void 0x0:_0x3a6bf0['cs']},'cmd':_0x8a3f1d['cmd']};case _0x133afc['CollaborationEvent'][_0x49a2ba(0x29f)]:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':(_0x3c8487=_0x4d6411[_0x49a2ba(0x40a)])==null?void 0x0:_0x3c8487['cs']},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x16f)]:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':(_0x19ad4a=_0x4d6411[_0x49a2ba(0x480)])==null?void 0x0:_0x19ad4a['cs']},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':_0x4d6411[_0x49a2ba(0x3c8)]},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x2b4)]:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':_0x4d6411[_0x49a2ba(0x3a4)]},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x25d)]:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':_0x4d6411['leaveEvent']},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x332)]:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':_0x4d6411[_0x49a2ba(0x2a9)]},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x206)]:case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x11d)]:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':_0x4d6411[_0x49a2ba(0x3a6)]},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc[_0x49a2ba(0x4b0)]['LIVESHARE_TERMINATE']:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':_0x4d6411[_0x49a2ba(0x2a9)]},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x499)]:return{..._0x8a3f1d,'data':_0x4d6411,'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':_0x4d6411[_0x49a2ba(0x3b8)]},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x169)]:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':_0x4d6411['updatePermissionObjEvent']},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};case _0x133afc[_0x49a2ba(0x4b0)][_0x49a2ba(0x369)]:return{..._0x8a3f1d,'data':{..._0x4d6411,'data':_0x4d6411[_0x49a2ba(0xc6)]},'cmd':_0x8a3f1d[_0x49a2ba(0x33c)]};default:return _0x8a3f1d;}}default:return _0x8a3f1d;}}function _0x511940(_0x3fe146){const _0x2ea2e8=_0x18b736;switch(_0x3fe146['cmd']){case _0x5c6d4f[_0x2ea2e8(0x2ab)]:case _0x5c6d4f['HELLO']:return JSON[_0x2ea2e8(0x285)]({'cmd':_0x3fe146['cmd'],'routeKey':_0x3fe146[_0x2ea2e8(0x13f)]});case _0x5c6d4f[_0x2ea2e8(0x17a)]:{let _0x2e37ab;switch(_0x3fe146[_0x2ea2e8(0x355)][_0x2ea2e8(0xbb)]){case _0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0xf3)]:{_0x2e37ab={'eventID':_0x133afc['CollaborationEvent'][_0x2ea2e8(0xf3)],'updateCursorEvent':_0x3fe146['data'][_0x2ea2e8(0x355)]};break;}case _0x133afc['CollaborationEvent'][_0x2ea2e8(0x25d)]:{_0x2e37ab={'eventID':_0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0x25d)],'leaveEvent':_0x3fe146[_0x2ea2e8(0x355)]['data']};break;}case _0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0x2b4)]:{_0x2e37ab={'eventID':_0x133afc['CollaborationEvent'][_0x2ea2e8(0x2b4)],'joinEvent':_0x3fe146['data']['data']};break;}case _0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0x332)]:{_0x2e37ab={'eventID':_0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0x332)],'liveShareNewHost':_0x3fe146[_0x2ea2e8(0x355)]['data']};break;}case _0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0x11d)]:{_0x2e37ab={'eventID':_0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0x11d)],'liveShareOperation':_0x3fe146['data'][_0x2ea2e8(0x355)]};break;}case _0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0x10a)]:{_0x2e37ab={'eventID':_0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0x10a)],'liveShareTerminate':_0x3fe146['data'][_0x2ea2e8(0x355)]};break;}case _0x133afc['CollaborationEvent'][_0x2ea2e8(0x1ef)]:{_0x2e37ab={'eventID':_0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0x1ef)],'liveShareRequestHost':_0x3fe146[_0x2ea2e8(0x355)][_0x2ea2e8(0x355)]};break;}case _0x133afc[_0x2ea2e8(0x4b0)]['LIVESHARE_FETCH_OPERATIONS']:{_0x2e37ab={'eventID':_0x133afc[_0x2ea2e8(0x4b0)][_0x2ea2e8(0x206)]};break;}default:_0x2e37ab={'eventID':_0x3fe146['data'][_0x2ea2e8(0xbb)]};}return JSON[_0x2ea2e8(0x285)]({'cmd':_0x3fe146[_0x2ea2e8(0x33c)],'routeKey':_0x3fe146[_0x2ea2e8(0x13f)],'collaMsg':_0x2e37ab});}case _0x5c6d4f[_0x2ea2e8(0xf9)]:return JSON[_0x2ea2e8(0x285)]({'cmd':_0x3fe146[_0x2ea2e8(0x33c)],'routeKey':_0x3fe146[_0x2ea2e8(0x13f)],'joinReq':_0x3fe146[_0x2ea2e8(0x355)]});case _0x5c6d4f['LEAVE']:return JSON[_0x2ea2e8(0x285)]({'cmd':_0x3fe146['cmd'],'routeKey':_0x3fe146[_0x2ea2e8(0x13f)],'leaveReq':_0x3fe146['data']});default:throw new Error(_0x2ea2e8(0x4c2));}}var _0x295c09=Object['defineProperty'],_0x4f71d0=Object[_0x18b736(0x301)],_0x2b3da0=(_0x2ff9a1,_0x531991,_0x1f6375,_0x57f744)=>{const _0x4d1b4b=_0x18b736;for(var _0x2f8fb7=_0x57f744>0x1?void 0x0:_0x57f744?_0x4f71d0(_0x531991,_0x1f6375):_0x531991,_0x4f3c7b=_0x2ff9a1[_0x4d1b4b(0x1bc)]-0x1,_0x4e73f3;_0x4f3c7b>=0x0;_0x4f3c7b--)(_0x4e73f3=_0x2ff9a1[_0x4f3c7b])&&(_0x2f8fb7=(_0x57f744?_0x4e73f3(_0x531991,_0x1f6375,_0x2f8fb7):_0x4e73f3(_0x2f8fb7))||_0x2f8fb7);return _0x57f744&&_0x2f8fb7&&_0x295c09(_0x531991,_0x1f6375,_0x2f8fb7),_0x2f8fb7;},_0xfc127e=(_0x161b01,_0x371bf3)=>(_0x14ba78,_0x40deed)=>_0x371bf3(_0x14ba78,_0x40deed,_0x161b01);const _0x10def0=_0x52e410['createIdentifier']('univer-pro.collaboration-client-socket-service');function _0x1c017a(_0x22ef2c,_0x568918,_0x4cef64){const _0x103d53=_0x18b736;return _0x22ef2c+'/'+_0x568918+_0x103d53(0x344)+_0x4cef64+_0x103d53(0x3c6);}_0x18e336[_0x18b736(0x219)]=class extends _0x52e410[_0x18b736(0x174)]{constructor(_0x3ed3e1,_0x5ddd67,_0x3501e1,_0x5136c2,_0x43f94b){const _0xc6e72a=_0x18b736;super(),this[_0xc6e72a(0x324)]=_0x3ed3e1,this[_0xc6e72a(0x47f)]=_0x5ddd67,this[_0xc6e72a(0x102)]=_0x3501e1,this['_logService']=_0x5136c2,this['_snapshotServerService']=_0x43f94b;}[_0x18b736(0x41a)](_0xa1253e){const _0x4010ea=_0x18b736,_0x31791a=this['_ws'][_0x4010ea(0x41a)](_0xa1253e);if(!_0x31791a)throw new Error(_0x4010ea(0x3ea));const _0x1d5daa=new _0x52e410['DisposableCollection'](),_0x1eab88=new _0xe9c73a[(_0x4010ea(0x305))]();_0x1d5daa[_0x4010ea(0x151)](_0x31791a['close$']['subscribe'](_0xd8d2a=>_0x1eab88[_0x4010ea(0x3fa)](_0xd8d2a))),_0x1d5daa['add'](_0x52e410[_0x4010ea(0x13c)](()=>_0x1eab88[_0x4010ea(0x32f)]()));const _0x89c029=new _0xe9c73a['Subject']();_0x1d5daa[_0x4010ea(0x151)](_0x31791a['error$'][_0x4010ea(0xd1)](_0x5466d9=>_0x89c029['next'](_0x5466d9))),_0x1d5daa[_0x4010ea(0x151)](_0x52e410['toDisposable'](()=>_0x89c029['complete']()));const _0x32f5d3=new _0xe9c73a[(_0x4010ea(0x305))]();_0x1d5daa[_0x4010ea(0x151)](_0x31791a[_0x4010ea(0x153)][_0x4010ea(0xd1)](_0x141d44=>{const _0xfb9795=_0x4010ea,_0x264ade=_0x5974b8(_0x141d44);_0x32f5d3[_0xfb9795(0x3fa)](_0x264ade);})),_0x1d5daa['add'](_0x52e410[_0x4010ea(0x13c)](()=>_0x32f5d3['complete']()));let _0xc9a375;const _0x2c9cbd=()=>{const _0x5e20d3=_0x4010ea;_0x89c029[_0x5e20d3(0x3fa)](new Event(_0x5e20d3(0x2d6))),_0x1eab88[_0x5e20d3(0x3fa)](new CloseEvent(_0x5e20d3(0x2d6))),_0xc9a375[_0x5e20d3(0x4cb)]();};return _0xc9a375={'memberID':'','close$':_0x1eab88['asObservable'](),'error$':_0x89c029[_0x4010ea(0xce)](),'open$':_0x31791a[_0x4010ea(0x381)],'message$':_0x32f5d3[_0x4010ea(0xce)](),'send':_0x3c07d6=>{const _0x21c579=_0x4010ea;if(_0x3c07d6['cmd']===_0x5c6d4f[_0x21c579(0x17a)]){if(_0x3c07d6['data'][_0x21c579(0xbb)]===_0x133afc[_0x21c579(0x4b0)][_0x21c579(0x3da)]){this['_submitChangeset'](_0xc9a375,_0x3c07d6[_0x21c579(0x355)])['catch'](_0xdf338a=>{const _0x3168ef=_0x21c579;this[_0x3168ef(0x307)]['error'](_0xdf338a),_0x2c9cbd();});return;}if(_0x3c07d6[_0x21c579(0x355)][_0x21c579(0xbb)]===_0x133afc[_0x21c579(0x4b0)][_0x21c579(0x22f)]){const _0x1590b3=_0x3c07d6[_0x21c579(0x355)];this['_fetchMissChangesets'](_0x1590b3)[_0x21c579(0x41f)](_0x42cfc4=>{const _0x4ebdd2=_0x21c579;_0x32f5d3[_0x4ebdd2(0x3fa)]({'cmd':_0x5c6d4f[_0x4ebdd2(0x2e8)],'code':_0x47137a['OK'],'routeKey':_0x1590b3[_0x4ebdd2(0x355)][_0x4ebdd2(0x39f)],'routeType':'','data':{'eventID':_0x133afc['CollaborationEvent'][_0x4ebdd2(0xc0)],'data':{'changesets':_0x42cfc4}}});})['catch'](_0x5a1880=>{const _0x339595=_0x21c579;this['_logService'][_0x339595(0x2e1)](_0x5a1880),_0x2c9cbd();});return;}}_0x31791a[_0x21c579(0x21d)](_0x511940(_0x3c07d6));},'close':()=>{const _0x36b486=_0x4010ea;_0x31791a[_0x36b486(0x4cb)](),_0x1d5daa[_0x36b486(0x44f)]();}},_0xc9a375;}async['_submitChangeset'](_0x39f7d4,_0x5dd71e){const _0x3cbb6a=_0x18b736;var _0xadeb6a,_0x37f0b3;const {unitType:_0x4e7a87,unitID:_0x155b59,changeset:_0x1bc229}=_0x5dd71e[_0x3cbb6a(0x355)],_0x338220={'unitID':_0x155b59,'memberID':_0x39f7d4[_0x3cbb6a(0x144)],'type':_0x4e7a87,'changeset':_0x133afc['parseChangesetToProtocol'](_0x1bc229)},_0x2238f5=this[_0x3cbb6a(0x102)][_0x3cbb6a(0x119)](_0x42f1d2),_0x482f6c=this[_0x3cbb6a(0x102)][_0x3cbb6a(0x119)](_0x48532f),_0x1a8479=_0x1c017a((_0x37f0b3=(_0xadeb6a=_0x482f6c==null?void 0x0:_0x482f6c['collabSubmitChangesetUrl'])!=null?_0xadeb6a:_0x2238f5)!=null?_0x37f0b3:_0x742b91,_0x4e7a87,_0x155b59);try{await this[_0x3cbb6a(0x324)][_0x3cbb6a(0x3d3)](_0x1a8479,{'body':_0x338220});}catch(_0x4db36c){throw this[_0x3cbb6a(0x307)][_0x3cbb6a(0x2e1)](_0x3cbb6a(0x401),_0x3cbb6a(0x351)),_0x4db36c;}}async[_0x18b736(0x2df)](_0x1f6ee5){const _0x451b91=_0x18b736,{unitID:_0x196ff6,from:_0x275635,to:_0x332376,unitType:_0x34b635}=_0x1f6ee5[_0x451b91(0x355)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x196ff6,'type':_0x34b635,'from':_0x275635,'to':_0x332376}))[_0x451b91(0x1ff)];}},_0x18e336['CollaborationSocketService']=_0x2b3da0([_0xfc127e(0x0,_0x52e410[_0x18b736(0xca)](_0x302c55[_0x18b736(0x1cf)])),_0xfc127e(0x1,_0x52e410[_0x18b736(0xca)](_0x302c55['WebSocketService'])),_0xfc127e(0x2,_0x52e410[_0x18b736(0x207)]),_0xfc127e(0x3,_0x52e410['ILogService']),_0xfc127e(0x4,_0x133afc[_0x18b736(0x2c7)])],_0x18e336[_0x18b736(0x219)]);const _0x28d7c9=_0x18b736(0x348);function _0x161d86(_0x104e8a){const _0x8c0e58=_0x18b736;return JSON['stringify'](_0x104e8a)[_0x8c0e58(0x1bc)];}class _0xf24c31{constructor(){const _0x45fcf8=_0x18b736;_0x2dd6ee(this,_0x45fcf8(0x411),new _0xe9c73a[(_0x45fcf8(0x305))]()),_0x2dd6ee(this,_0x45fcf8(0x2e3),this[_0x45fcf8(0x411)][_0x45fcf8(0xce)]());}['onCommentUpdate'](_0x356d11){const _0x4c8a6a=_0x18b736;this[_0x4c8a6a(0x411)]['next'](_0x356d11);}}var _0x524190=Object[_0x18b736(0x180)],_0x3db9a2=Object[_0x18b736(0x301)],_0x219e78=(_0x1e84d6,_0x449f4f,_0x128c13,_0x4df51a)=>{const _0x19f774=_0x18b736;for(var _0x279152=_0x4df51a>0x1?void 0x0:_0x4df51a?_0x3db9a2(_0x449f4f,_0x128c13):_0x449f4f,_0x10105d=_0x1e84d6[_0x19f774(0x1bc)]-0x1,_0x577e2b;_0x10105d>=0x0;_0x10105d--)(_0x577e2b=_0x1e84d6[_0x10105d])&&(_0x279152=(_0x4df51a?_0x577e2b(_0x449f4f,_0x128c13,_0x279152):_0x577e2b(_0x279152))||_0x279152);return _0x4df51a&&_0x279152&&_0x524190(_0x449f4f,_0x128c13,_0x279152),_0x279152;},_0x3e1572=(_0x10a65e,_0x10b28e)=>(_0x463864,_0x3b0923)=>_0x10b28e(_0x463864,_0x3b0923,_0x10a65e);let _0xc4e50a=class extends _0x52e410['Disposable']{constructor(_0x5e9514,_0xe85afc){const _0x3ad453=_0x18b736;super(),_0x2dd6ee(this,_0x3ad453(0x3d1),new Map()),(this['_univerInstanceService']=_0x5e9514,this[_0x3ad453(0x34e)]=_0xe85afc,this[_0x3ad453(0x27b)](_0x52e410['toDisposable'](_0xe9c73a[_0x3ad453(0x3be)](this[_0x3ad453(0xf5)][_0x3ad453(0x278)](_0x52e410[_0x3ad453(0x24c)][_0x3ad453(0x14d)])[_0x3ad453(0x2fd)](_0x5a1ba2['map'](_0xc0c91a=>_0xc0c91a[_0x3ad453(0x28b)]())),this['_univerInstanceService'][_0x3ad453(0x278)](_0x52e410[_0x3ad453(0x24c)][_0x3ad453(0x1c5)])[_0x3ad453(0x2fd)](_0x5a1ba2[_0x3ad453(0x2c2)](_0x39862e=>_0x39862e['getUnitId']())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x52e410[_0x3ad453(0x24c)]['UNIVER_SLIDE'])[_0x3ad453(0x2fd)](_0x5a1ba2[_0x3ad453(0x2c2)](_0x2155d5=>_0x2155d5['getUnitId']())))[_0x3ad453(0xd1)](_0x934151=>this[_0x3ad453(0x4a6)](_0x934151)))));}[_0x18b736(0x444)](_0x22176c){this['_userManagerService']['setCurrentUser'](_0x22176c);}[_0x18b736(0x4c9)](){const _0x1e8b76=_0x18b736;return this['_userManagerService'][_0x1e8b76(0x4c9)]();}[_0x18b736(0x364)](_0x5d0a00,_0x246697){const _0x3edbbc=_0x18b736;let _0x18a59d=this[_0x3edbbc(0x3d1)][_0x3edbbc(0xf2)](_0x5d0a00);_0x18a59d||(_0x18a59d=new _0x9bddbf(),this[_0x3edbbc(0x3d1)][_0x3edbbc(0x1e3)](_0x5d0a00,_0x18a59d)),_0x18a59d[_0x3edbbc(0x364)](_0x246697);}['removeMember'](_0x46e668,_0xda2f3){const _0x577c87=_0x18b736,_0x2a2d8d=this[_0x577c87(0x3d1)][_0x577c87(0xf2)](_0x46e668);_0x2a2d8d&&_0x2a2d8d[_0x577c87(0x291)](_0xda2f3);}[_0x18b736(0x1fb)](_0x5a7f82){const _0x431ff2=_0x18b736;return this[_0x431ff2(0x3d1)]['get'](_0x5a7f82);}[_0x18b736(0x134)](_0x20a85d,_0x53a5a5){const _0x9881b7=_0x18b736,_0x5b2cf7=this[_0x9881b7(0x3d1)]['get'](_0x20a85d);if(_0x5b2cf7)return _0x5b2cf7[_0x9881b7(0x134)](_0x53a5a5);}[_0x18b736(0x4a6)](_0x5b3ce5){const _0x25d920=_0x18b736,_0x4e6149=this[_0x25d920(0x3d1)][_0x25d920(0xf2)](_0x5b3ce5);_0x4e6149&&(_0x4e6149[_0x25d920(0x44f)](),this[_0x25d920(0x3d1)][_0x25d920(0x368)](_0x5b3ce5));}['dispose'](){const _0x39045f=_0x18b736;this[_0x39045f(0x3d1)][_0x39045f(0x122)](_0x181c1d=>_0x181c1d[_0x39045f(0x44f)]()),this[_0x39045f(0x3d1)][_0x39045f(0x149)]();}};_0xc4e50a=_0x219e78([_0x3e1572(0x0,_0x52e410['IUniverInstanceService']),_0x3e1572(0x1,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x263)]))],_0xc4e50a);class _0x9bddbf extends _0x52e410[_0x18b736(0x174)]{constructor(){const _0x1a31aa=_0x18b736;super(...arguments),_0x2dd6ee(this,_0x1a31aa(0x333),new Map());}['dispose'](){const _0x4fe1ac=_0x18b736;this[_0x4fe1ac(0x333)]['clear']();}[_0x18b736(0x364)](_0x1bed22){const _0x36dd47=_0x18b736;this['_members'][_0x36dd47(0x1e3)](_0x1bed22['memberID'],_0x1bed22);}[_0x18b736(0x291)](_0x5c8809){const _0x2a4f75=_0x18b736;this[_0x2a4f75(0x333)][_0x2a4f75(0x368)](_0x5c8809);}['getMember'](_0x1eac29){const _0x359eba=_0x18b736;return this['_members'][_0x359eba(0xf2)](_0x1eac29);}}var _0x1ed756=Object[_0x18b736(0x180)],_0x4b13d3=Object[_0x18b736(0x301)],_0x306c02=(_0x32a87c,_0x2ff015,_0x13fc4d,_0x4e3d47)=>{const _0x362267=_0x18b736;for(var _0x1cf72f=_0x4e3d47>0x1?void 0x0:_0x4e3d47?_0x4b13d3(_0x2ff015,_0x13fc4d):_0x2ff015,_0x3fb4ad=_0x32a87c[_0x362267(0x1bc)]-0x1,_0x4d4dde;_0x3fb4ad>=0x0;_0x3fb4ad--)(_0x4d4dde=_0x32a87c[_0x3fb4ad])&&(_0x1cf72f=(_0x4e3d47?_0x4d4dde(_0x2ff015,_0x13fc4d,_0x1cf72f):_0x4d4dde(_0x1cf72f))||_0x1cf72f);return _0x4e3d47&&_0x1cf72f&&_0x1ed756(_0x2ff015,_0x13fc4d,_0x1cf72f),_0x1cf72f;},_0x5e435f=(_0x3f8a2a,_0x42d744)=>(_0x4078e4,_0x3eb575)=>_0x42d744(_0x4078e4,_0x3eb575,_0x3f8a2a),_0x30eb01=(_0xea93cf=>(_0xea93cf[_0xea93cf['IDLE']=0x0]=_0x18b736(0x3b7),_0xea93cf[_0xea93cf['JOINING']=0x1]='JOINING',_0xea93cf[_0xea93cf[_0x18b736(0x138)]=0x2]=_0x18b736(0x138),_0xea93cf[_0xea93cf[_0x18b736(0x13b)]=0x3]=_0x18b736(0x13b),_0xea93cf))(_0x30eb01||{});_0x18e336[_0x18b736(0x49c)]=class extends _0x52e410[_0x18b736(0x3a3)]{constructor(_0x4050a3,_0x945ccd,_0x40a436,_0x556363,_0x1a34ec,_0x31ff8e,_0x2c1bfd,_0x179509,_0x410a12,_0x453b45){const _0x22008b=_0x18b736;super(),_0x2dd6ee(this,'_sessionStatus$',new _0xe9c73a[(_0x22008b(0x2ef))](0x0)),_0x2dd6ee(this,'sessionStatus$',this[_0x22008b(0x131)][_0x22008b(0xce)]()),_0x2dd6ee(this,_0x22008b(0x325),new _0xe9c73a[(_0x22008b(0x305))]()),_0x2dd6ee(this,_0x22008b(0x35e),this['_event$']['asObservable']()),_0x2dd6ee(this,_0x22008b(0x252)),_0x2dd6ee(this,_0x22008b(0x222)),_0x2dd6ee(this,_0x22008b(0x412)),_0x2dd6ee(this,'_shouldReportTelemetry',!0x1),_0x2dd6ee(this,'_telemetryInfo',null),(this[_0x22008b(0x236)]=_0x4050a3,this[_0x22008b(0x307)]=_0x40a436,this[_0x22008b(0x3d9)]=_0x556363,this[_0x22008b(0x15c)]=_0x1a34ec,this[_0x22008b(0x102)]=_0x31ff8e,this[_0x22008b(0x389)]=_0x2c1bfd,this['_memberService']=_0x179509,this[_0x22008b(0x242)]=_0x410a12,this['_telemetryService']=_0x453b45,this[_0x22008b(0x28a)]=!!this['_telemetryService'],_0x945ccd[_0x22008b(0x2fd)](_0xe9c73a[_0x22008b(0x2ee)](this[_0x22008b(0x32a)]))[_0x22008b(0xd1)](_0x3a0531=>{const _0x31defc=_0x22008b;var _0x83f3ac;typeof _0x3a0531>'u'||(this['_socket']=_0x3a0531,_0x3a0531?(this[_0x31defc(0x12d)](_0x3a0531),this[_0x31defc(0x222)]=_0x3a0531['message$'][_0x31defc(0xd1)](_0x5e7fd4=>{const _0x46eaac=_0x31defc;_0x5e7fd4['routeKey']===this['_unitID']&&this[_0x46eaac(0x20f)](_0x5e7fd4);})):(this[_0x31defc(0x255)](),this['_sessionStatus$'][_0x31defc(0x3fa)](0x2),(_0x83f3ac=this[_0x31defc(0x222)])==null||_0x83f3ac[_0x31defc(0x352)](),this['_socketMessageSubscription']=null));}),this[_0x22008b(0x27b)](this['_beforeCloseService'][_0x22008b(0x2e5)](()=>{const _0x4953e1=_0x22008b;var _0x2290f7;(_0x2290f7=this[_0x4953e1(0x252)])==null||_0x2290f7['send']({'cmd':_0x5c6d4f['LEAVE'],'data':{'roomID':this[_0x4953e1(0x236)]}});})));}get[_0x18b736(0x3df)](){const _0x58afed=_0x18b736;return this[_0x58afed(0x131)][_0x58afed(0x200)]();}[_0x18b736(0xb1)](){var _0x29a130,_0xf7f99c;return(_0xf7f99c=(_0x29a130=this['_socket'])==null?void 0x0:_0x29a130['memberID'])!=null?_0xf7f99c:null;}[_0x18b736(0x44f)](){const _0x2c32f7=_0x18b736;super['dispose'](),this[_0x2c32f7(0x32a)][_0x2c32f7(0x3fa)](),this[_0x2c32f7(0x32a)][_0x2c32f7(0x32f)]();}['close'](){const _0x58be5a=_0x18b736;var _0x55f9b3,_0x24fece;this['_throwTelemetryCollaborationNewChangeset'](),(_0x55f9b3=this[_0x58be5a(0x252)])==null||_0x55f9b3[_0x58be5a(0x21d)]({'cmd':_0x5c6d4f[_0x58be5a(0x201)],'data':{'roomID':this[_0x58be5a(0x236)]}}),(_0x24fece=this[_0x58be5a(0x252)])==null||_0x24fece[_0x58be5a(0x4cb)](),this[_0x58be5a(0x325)][_0x58be5a(0x32f)](),this[_0x58be5a(0x131)][_0x58be5a(0x32f)](),this['dispose']();}[_0x18b736(0x20f)](_0x5d4b7e){const _0x596c2b=_0x18b736;_0x5d4b7e[_0x596c2b(0x33c)]===_0x5c6d4f['JOIN']?this[_0x596c2b(0xb5)](_0x5d4b7e):_0x5d4b7e[_0x596c2b(0x33c)]===_0x5c6d4f[_0x596c2b(0x2e8)]&&this[_0x596c2b(0x43f)](_0x5d4b7e);}[_0x18b736(0x12d)](_0x171633){const _0x2566a0=_0x18b736;this[_0x2566a0(0x131)][_0x2566a0(0x3fa)](0x1),_0x171633[_0x2566a0(0x21d)]({'cmd':_0x5c6d4f['JOIN'],'routeKey':this[_0x2566a0(0x236)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x18b736(0xb5)](_0x2888e8){const _0x2f824c=_0x18b736;var _0x4270bb;if(_0x2888e8['code']===_0x47137a[_0x2f824c(0x2e2)]){this[_0x2f824c(0x15c)][_0x2f824c(0x1e7)]({'type':_0x716320[_0x2f824c(0x1f7)][_0x2f824c(0x114)],'content':this[_0x2f824c(0x389)]['t'](_0x2f824c(0x32e))}),this[_0x2f824c(0x131)][_0x2f824c(0x3fa)](0x2);return;}this['_sessionStatus$'][_0x2f824c(0x3fa)](0x3);const _0xc712f9=(_0x4270bb=_0x2888e8[_0x2f824c(0x355)][_0x2f824c(0xa7)][this[_0x2f824c(0x236)]])==null?void 0x0:_0x4270bb['members'];_0xc712f9&&_0xc712f9[_0x2f824c(0x122)](_0x27677=>this[_0x2f824c(0x106)]['updateMember'](this[_0x2f824c(0x236)],_0x27677));}[_0x18b736(0x43f)](_0x225ad3){const _0x5d0cdf=_0x18b736;try{const _0x163874=_0x225ad3[_0x5d0cdf(0x355)];switch(_0x163874[_0x5d0cdf(0xbb)]){case _0x133afc['CollaborationEvent'][_0x5d0cdf(0x2b4)]:this[_0x5d0cdf(0x377)](_0x163874),this[_0x5d0cdf(0x325)]['next'](_0x163874);break;case _0x133afc[_0x5d0cdf(0x4b0)]['USERS_LEAVE']:this[_0x5d0cdf(0x497)](_0x163874),this['_event$'][_0x5d0cdf(0x3fa)](_0x163874);break;case _0x133afc[_0x5d0cdf(0x4b0)][_0x5d0cdf(0x289)]:this[_0x5d0cdf(0x4cf)](),this[_0x5d0cdf(0x2ae)](),this[_0x5d0cdf(0x325)]['next'](_0x163874);break;case _0x133afc[_0x5d0cdf(0x4b0)][_0x5d0cdf(0x499)]:this[_0x5d0cdf(0x307)][_0x5d0cdf(0x2e1)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x5d0cdf(0x285)](_0x163874)),this['_event$']['next'](_0x163874);break;case _0x133afc[_0x5d0cdf(0x4b0)][_0x5d0cdf(0x127)]:this[_0x5d0cdf(0x242)]['onCommentUpdate'](_0x163874[_0x5d0cdf(0x355)]),this[_0x5d0cdf(0x325)][_0x5d0cdf(0x3fa)](_0x163874);break;default:this[_0x5d0cdf(0x325)][_0x5d0cdf(0x3fa)](_0x163874);}}catch(_0x2859ab){this[_0x5d0cdf(0x307)][_0x5d0cdf(0x2e1)](_0x2859ab,_0x225ad3);}}[_0x18b736(0x377)](_0x3984eb){const _0x1a6a90=_0x18b736;this[_0x1a6a90(0x106)][_0x1a6a90(0x364)](this['_unitID'],_0x3984eb['data']);}[_0x18b736(0x497)](_0x416087){const _0x13f31b=_0x18b736;this['_memberService'][_0x13f31b(0x291)](this[_0x13f31b(0x236)],_0x416087['data'][_0x13f31b(0x144)]);}async[_0x18b736(0x21d)](_0x253ad3,_0x292259){const _0xaa6ff0=_0x18b736;if(this[_0xaa6ff0(0x3df)]!==0x3||!this['_socket'])throw new Error(_0xaa6ff0(0x196));try{_0x253ad3['eventID']===_0x133afc['CollaborationEvent'][_0xaa6ff0(0x3da)]&&(this[_0xaa6ff0(0x23b)](),this[_0xaa6ff0(0x249)](_0x253ad3)),this[_0xaa6ff0(0x252)][_0xaa6ff0(0x21d)]({'cmd':_0x5c6d4f[_0xaa6ff0(0x17a)],'routeKey':_0x292259,'routeType':'','data':_0x253ad3});}catch(_0x498791){this[_0xaa6ff0(0x307)]['error'](_0x498791);}}['_scheduleCollaborationTimeoutTimer'](){const _0x918872=_0x18b736;var _0x36e9a4;this[_0x918872(0x412)]=window[_0x918872(0x465)](()=>{const _0x3d5594=_0x918872;this[_0x3d5594(0x412)]=null,this[_0x3d5594(0x15c)][_0x3d5594(0x1e7)]({'type':_0x716320[_0x3d5594(0x1f7)][_0x3d5594(0x38e)],'content':this[_0x3d5594(0x389)]['t'](_0x3d5594(0x1c3))});},(_0x36e9a4=this['_configService'][_0x918872(0x119)](_0x2d6e65))!=null?_0x36e9a4:0x4e20);}[_0x18b736(0x2ae)](){const _0x67b4b0=_0x18b736;this[_0x67b4b0(0x412)]&&(clearTimeout(this[_0x67b4b0(0x412)]),this[_0x67b4b0(0x412)]=null);}[_0x18b736(0x249)](_0x497b93){const _0x4213ff=_0x18b736;if(!this[_0x4213ff(0x28a)])return;const {data:_0x28d717}=_0x497b93,{unitID:_0x11b2db,changeset:_0x2d5e2c}=_0x28d717,{mutations:_0x52ea9e,type:_0x134ad6}=_0x2d5e2c;this[_0x4213ff(0x11f)]={'unitId':_0x11b2db,'type':_0x134ad6,'startTime':performance[_0x4213ff(0x98)](),'stopTime':0x0,'duration':0x0,'size':_0x161d86(_0x52ea9e)};}[_0x18b736(0x4cf)](){const _0x528186=_0x18b736;if(this[_0x528186(0x28a)]){if(!this['_telemetryInfo']){this['_logService']['error']('[CollaborationSession]',_0x528186(0x238));return;}this['_telemetryInfo'][_0x528186(0x126)]=performance['now'](),this[_0x528186(0x11f)][_0x528186(0x19a)]=this[_0x528186(0x11f)][_0x528186(0x126)]-this[_0x528186(0x11f)][_0x528186(0x3f9)],this[_0x528186(0x3e3)][_0x528186(0x24d)](_0x28d7c9,this[_0x528186(0x11f)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x3a11b7=_0x18b736;this[_0x3a11b7(0x11f)]=null;}},_0x18e336['CollaborationSession']=_0x306c02([_0x5e435f(0x2,_0x52e410['ILogService']),_0x5e435f(0x3,_0x4d3b05[_0x18b736(0x267)]),_0x5e435f(0x4,_0x4d3b05[_0x18b736(0x172)]),_0x5e435f(0x5,_0x52e410['IConfigService']),_0x5e435f(0x6,_0x52e410['Inject'](_0x52e410[_0x18b736(0x4b7)])),_0x5e435f(0x7,_0x52e410['Inject'](_0xc4e50a)),_0x5e435f(0x8,_0x52e410[_0x18b736(0xca)](_0xf24c31)),_0x5e435f(0x9,_0x52e410[_0x18b736(0x2f9)](_0x486b59[_0x18b736(0x44a)]))],_0x18e336[_0x18b736(0x49c)]);var _0x424616=Object[_0x18b736(0x180)],_0x56025f=Object[_0x18b736(0x301)],_0x5166fa=(_0x84c38c,_0x368f72,_0x7330d3,_0x30a5db)=>{const _0x13faf5=_0x18b736;for(var _0x27c5bb=_0x30a5db>0x1?void 0x0:_0x30a5db?_0x56025f(_0x368f72,_0x7330d3):_0x368f72,_0x12bb09=_0x84c38c[_0x13faf5(0x1bc)]-0x1,_0x3327af;_0x12bb09>=0x0;_0x12bb09--)(_0x3327af=_0x84c38c[_0x12bb09])&&(_0x27c5bb=(_0x30a5db?_0x3327af(_0x368f72,_0x7330d3,_0x27c5bb):_0x3327af(_0x27c5bb))||_0x27c5bb);return _0x30a5db&&_0x27c5bb&&_0x424616(_0x368f72,_0x7330d3,_0x27c5bb),_0x27c5bb;},_0x298d89=(_0x10d5f1,_0x479ced)=>(_0xaa8c5a,_0x1c3eb8)=>_0x479ced(_0xaa8c5a,_0x1c3eb8,_0x10d5f1);_0x18e336[_0x18b736(0x3e7)]=class extends _0x52e410[_0x18b736(0x174)]{constructor(_0x161000,_0x598600,_0x8beeff,_0x5c7267,_0x4a17c7,_0x51fbf3){const _0x5f447a=_0x18b736;super(),_0x2dd6ee(this,'_socket$',new _0xe9c73a[(_0x5f447a(0x2ef))](void 0x0)),_0x2dd6ee(this,_0x5f447a(0x273),this[_0x5f447a(0xac)][_0x5f447a(0xce)]()),_0x2dd6ee(this,'_candidateSocket',null),_0x2dd6ee(this,_0x5f447a(0x1fe),new Map()),_0x2dd6ee(this,_0x5f447a(0x27f),new _0xe9c73a[(_0x5f447a(0x2ef))](_0x30eb01[_0x5f447a(0x3b7)])),_0x2dd6ee(this,_0x5f447a(0x350),this[_0x5f447a(0x27f)][_0x5f447a(0xce)]()),_0x2dd6ee(this,_0x5f447a(0x1fd),!0x1),_0x2dd6ee(this,'_retryConnectingTimer'),_0x2dd6ee(this,_0x5f447a(0x464),0x0),_0x2dd6ee(this,_0x5f447a(0x109)),_0x2dd6ee(this,_0x5f447a(0x1a5)),(this[_0x5f447a(0x19c)]=_0x161000,this[_0x5f447a(0x389)]=_0x598600,this[_0x5f447a(0x15c)]=_0x8beeff,this[_0x5f447a(0x307)]=_0x5c7267,this[_0x5f447a(0x102)]=_0x4a17c7,this[_0x5f447a(0x1a6)]=_0x51fbf3,this[_0x5f447a(0x3ae)]());}get[_0x18b736(0x252)](){const _0x17433=_0x18b736;return this[_0x17433(0xac)]['getValue']();}['_initEventListeners'](){const _0x3cb022=_0x18b736;this[_0x3cb022(0x328)](),this[_0x3cb022(0x319)]();}[_0x18b736(0x44f)](){const _0x56a359=_0x18b736;super[_0x56a359(0x44f)](),this[_0x56a359(0x1fe)][_0x56a359(0x122)](_0x53132b=>_0x53132b[_0x56a359(0x44f)]()),this[_0x56a359(0x1fe)][_0x56a359(0x149)](),this[_0x56a359(0x27f)][_0x56a359(0x32f)]();}async[_0x18b736(0x31c)](_0x9126d8){const _0x29dd64=_0x18b736;if(this[_0x29dd64(0x1fe)]['has'](_0x9126d8))return this[_0x29dd64(0x1fe)]['get'](_0x9126d8);this[_0x29dd64(0x3e2)]();const _0x55d6dd=this[_0x29dd64(0x19c)][_0x29dd64(0x26a)](_0x18e336['CollaborationSession'],_0x9126d8,this[_0x29dd64(0xac)][_0x29dd64(0xce)]());return this[_0x29dd64(0x1fe)][_0x29dd64(0x1e3)](_0x9126d8,_0x55d6dd),_0x55d6dd;}[_0x18b736(0x47e)](_0x2dc7b2){const _0x106cb1=_0x18b736;var _0x168835;const _0x14f399=this[_0x106cb1(0x1fe)][_0x106cb1(0xf2)](_0x2dc7b2);_0x14f399&&(this[_0x106cb1(0x1fe)]['delete'](_0x2dc7b2),_0x14f399[_0x106cb1(0x4cb)]()),this[_0x106cb1(0x1fe)]['size']||(_0x168835=this[_0x106cb1(0x252)])==null||_0x168835[_0x106cb1(0x4cb)]();}['reconnect'](){const _0x2c3f4e=_0x18b736;this[_0x2c3f4e(0x464)]=0x0,this[_0x2c3f4e(0x2c6)]!=null&&(clearTimeout(this[_0x2c3f4e(0x2c6)]),this['_retryConnectingTimer']=null),this[_0x2c3f4e(0x36d)]();}[_0x18b736(0x1ad)](){const _0xb6b941=_0x18b736;var _0x211ff0,_0x20018d;const _0x4b913d=this[_0xb6b941(0x102)]['getConfig'](_0x456542),_0x3075e6=this[_0xb6b941(0x102)][_0xb6b941(0x119)](_0x48532f),_0x13e0ef=(_0x20018d=(_0x211ff0=_0x3075e6==null?void 0x0:_0x3075e6[_0xb6b941(0x335)])!=null?_0x211ff0:_0x4b913d)!=null?_0x20018d:_0x3df329,_0x9a815b=this['_socketService'][_0xb6b941(0x41a)](_0x13e0ef);return this[_0xb6b941(0x3f7)]=_0x9a815b,_0x9a815b;}[_0x18b736(0x3e2)](){const _0x3089a2=_0x18b736;var _0x325ef3,_0x509f74;try{const _0x443239=(_0x509f74=(_0x325ef3=this[_0x3089a2(0x252)])!=null?_0x325ef3:this['_candidateSocket'])!=null?_0x509f74:this[_0x3089a2(0x1ad)]();if(_0x443239){const _0x190fe3=_0x443239[_0x3089a2(0x21d)];_0x443239[_0x3089a2(0x21d)]=_0x3f195e=>(this['_rescheduleHeartbeat'](),_0x190fe3[_0x3089a2(0x1f4)](_0x443239,[_0x3f195e])),_0x443239[_0x3089a2(0x153)]['subscribe'](_0x197e18=>this['_onMessage'](_0x443239,_0x197e18)),_0x443239['error$'][_0x3089a2(0x2fd)](_0x5a1ba2[_0x3089a2(0x3f4)](0x1))[_0x3089a2(0xd1)](_0x25f1a3=>this[_0x3089a2(0x307)][_0x3089a2(0x2e1)](_0x3089a2(0x3f3),_0x25f1a3)),_0x443239[_0x3089a2(0x381)][_0x3089a2(0x2fd)](_0x5a1ba2[_0x3089a2(0x3f4)](0x1))[_0x3089a2(0xd1)](()=>{const _0x1dd8d1=_0x3089a2;this[_0x1dd8d1(0x3c5)](_0x443239);}),_0x443239[_0x3089a2(0x225)][_0x3089a2(0x2fd)](_0x5a1ba2[_0x3089a2(0x3f4)](0x1))[_0x3089a2(0xd1)](_0x436719=>{const _0x30d174=_0x3089a2;this['_logService'][_0x30d174(0x3c3)]('[CollaborationSessionService]','socket\x20close',_0x436719),this[_0x30d174(0x460)]();});}}catch(_0x313b2b){this[_0x3089a2(0x307)][_0x3089a2(0x2e1)](_0x313b2b),this['_onConnectionFailed']();}}[_0x18b736(0x3c5)](_0x42ae3d){const _0x1215f9=_0x18b736;this[_0x1215f9(0x307)][_0x1215f9(0x3c3)](_0x1215f9(0x327),_0x1215f9(0x290)),_0x42ae3d[_0x1215f9(0x21d)]({'cmd':_0x5c6d4f['HELLO']}),this['_rescheduleHeartbeat']();}[_0x18b736(0x328)](){const _0x11b40b=_0x18b736;window['addEventListener']('offline',()=>this[_0x11b40b(0x3cb)]());}[_0x18b736(0x3cb)](){const _0x17a16a=_0x18b736;this[_0x17a16a(0x1fd)]=!0x1,this['_candidateSocket']=null,this[_0x17a16a(0x27f)][_0x17a16a(0x3fa)](_0x30eb01[_0x17a16a(0x138)]),this[_0x17a16a(0xac)][_0x17a16a(0x3fa)](null),this['_clearTimeoutTimer'](),this[_0x17a16a(0x11b)]();}[_0x18b736(0x460)](){const _0x849cc4=_0x18b736;var _0x1ee9fb;this[_0x849cc4(0x3cb)](),this[_0x849cc4(0x464)]<((_0x1ee9fb=this['_configService'][_0x849cc4(0x119)](_0x18f143))!=null?_0x1ee9fb:0x3)?(this['_messageService'][_0x849cc4(0x1e7)]({'key':_0x849cc4(0x104),'type':_0x716320['MessageType'][_0x849cc4(0x114)],'content':this[_0x849cc4(0x389)]['t']('session.will-retry')}),this[_0x849cc4(0x36d)]()):this[_0x849cc4(0x15c)][_0x849cc4(0x1e7)]({'key':_0x849cc4(0x104),'type':_0x716320[_0x849cc4(0x1f7)]['Error'],'content':this[_0x849cc4(0x389)]['t'](_0x849cc4(0x264))});}['_listenToOnlineEvent'](){const _0x5816b6=_0x18b736,_0x59a214=()=>{const _0x1884ec=_0x3ebc;this[_0x1884ec(0x252)]||this[_0x1884ec(0x183)]();},_0x5920e8=()=>{const _0x22f1ea=_0x3ebc;this['_socket']||document[_0x22f1ea(0x184)]===_0x22f1ea(0x17b)||this[_0x22f1ea(0x183)]();};window[_0x5816b6(0x45c)](_0x5816b6(0xc4),_0x59a214),document[_0x5816b6(0x45c)]('visibilitychange',_0x5920e8);}[_0x18b736(0x36d)](){const _0x5e108b=_0x18b736;var _0x5ab9d9;const _0x102415=this[_0x5e108b(0x464)],_0x46fa04=this[_0x5e108b(0x102)][_0x5e108b(0x119)](_0x48532f),_0x22c178=_0x102415===0x0?0x0:((_0x5ab9d9=_0x46fa04==null?void 0x0:_0x46fa04[_0x5e108b(0x1f3)])!=null?_0x5ab9d9:0x4e20)*0x2**_0x102415;this[_0x5e108b(0x2c6)]=window[_0x5e108b(0x465)](()=>{const _0x181f1a=_0x5e108b;clearTimeout(this[_0x181f1a(0x2c6)]),this[_0x181f1a(0x2c6)]=null,this[_0x181f1a(0x3e2)]();},_0x22c178),this['_retryCount']+=0x1;}[_0x18b736(0x484)](_0x37d369,_0x4a3ebe){const _0x1a7878=_0x18b736,{cmd:_0x3c22c8}=_0x4a3ebe;_0x3c22c8===_0x5c6d4f[_0x1a7878(0x31a)]&&!this[_0x1a7878(0x1fd)]&&(_0x37d369[_0x1a7878(0x144)]=_0x4a3ebe[_0x1a7878(0x355)][_0x1a7878(0x144)],this[_0x1a7878(0xac)][_0x1a7878(0x3fa)](_0x37d369),this[_0x1a7878(0x27f)]['next'](_0x30eb01[_0x1a7878(0x13b)]),this[_0x1a7878(0x1fd)]=!0x0,this['_candidateSocket']=null),_0x3c22c8===_0x5c6d4f['HEARTBEAT']&&this[_0x1a7878(0xfc)](),this['_rescheduleHeartbeat']();}[_0x18b736(0x2e6)](){const _0x37d8e7=_0x18b736;var _0x36b45a;this[_0x37d8e7(0x11b)](),this[_0x37d8e7(0x109)]=window[_0x37d8e7(0x465)](()=>this[_0x37d8e7(0xde)](),(_0x36b45a=this[_0x37d8e7(0x102)][_0x37d8e7(0x119)](_0x3a3913))!=null?_0x36b45a:0x7530);}[_0x18b736(0xde)](){const _0x412497=_0x18b736;this[_0x412497(0x252)]['send']({'cmd':_0x5c6d4f['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x18b736(0xd0)](){const _0x196b87=_0x18b736;var _0x3d8ac5;this[_0x196b87(0x1a5)]=window['setTimeout'](()=>this[_0x196b87(0x460)](),(_0x3d8ac5=this[_0x196b87(0x102)][_0x196b87(0x119)](_0x2d6e65))!=null?_0x3d8ac5:0x4e20);}[_0x18b736(0x11b)](){const _0x28878a=_0x18b736;this[_0x28878a(0x109)]!=null&&(clearTimeout(this[_0x28878a(0x109)]),this[_0x28878a(0x109)]=null);}['_clearTimeoutTimer'](){const _0x3210a8=_0x18b736;this[_0x3210a8(0x1a5)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3210a8(0x1a5)]=null);}},_0x18e336[_0x18b736(0x3e7)]=_0x5166fa([_0x298d89(0x0,_0x52e410[_0x18b736(0xca)](_0x52e410['Injector'])),_0x298d89(0x1,_0x52e410[_0x18b736(0xca)](_0x52e410['LocaleService'])),_0x298d89(0x2,_0x4d3b05[_0x18b736(0x172)]),_0x298d89(0x3,_0x52e410[_0x18b736(0x170)]),_0x298d89(0x4,_0x52e410[_0x18b736(0x207)]),_0x298d89(0x5,_0x10def0)],_0x18e336[_0x18b736(0x3e7)]);var _0x534885=Object[_0x18b736(0x180)],_0x1d4306=Object[_0x18b736(0x301)],_0x1695bc=(_0x4644b9,_0x279c73,_0xb3e901,_0x24d061)=>{const _0x34b95c=_0x18b736;for(var _0x2ff42a=_0x24d061>0x1?void 0x0:_0x24d061?_0x1d4306(_0x279c73,_0xb3e901):_0x279c73,_0x227884=_0x4644b9[_0x34b95c(0x1bc)]-0x1,_0x53a4ed;_0x227884>=0x0;_0x227884--)(_0x53a4ed=_0x4644b9[_0x227884])&&(_0x2ff42a=(_0x24d061?_0x53a4ed(_0x279c73,_0xb3e901,_0x2ff42a):_0x53a4ed(_0x2ff42a))||_0x2ff42a);return _0x24d061&&_0x2ff42a&&_0x534885(_0x279c73,_0xb3e901,_0x2ff42a),_0x2ff42a;},_0x5ee3fb=(_0x1c8505,_0x2719c4)=>(_0x1512f8,_0x440282)=>_0x2719c4(_0x1512f8,_0x440282,_0x1c8505);let _0x563df6=class{constructor(_0x52b5d4,_0x4c8f50,_0x2860aa){const _0x1da8e6=_0x18b736;this[_0x1da8e6(0x19c)]=_0x52b5d4,this[_0x1da8e6(0x3b5)]=_0x4c8f50,this[_0x1da8e6(0x231)]=_0x2860aa;}[_0x18b736(0x1df)](_0x482c2e){const _0x219b80=_0x18b736;this[_0x219b80(0x309)](_0x482c2e),this[_0x219b80(0x442)](_0x482c2e);}[_0x18b736(0xf6)](_0x26148d){const _0x515275=_0x18b736,{unitID:_0x42fc48}=_0x26148d,_0x1110c1=this['_renderManagerService'][_0x515275(0x47b)](_0x42fc48)[_0x515275(0x140)](_0x589b5b[_0x515275(0x433)]),{redoCache:_0x39601a}=_0x1110c1[_0x515275(0xcd)]();if(_0x39601a[_0x515275(0x1bc)]===0x0)return _0x26148d;let _0x375319=_0x52e410[_0x515275(0x37d)][_0x515275(0xe2)](_0x26148d['mutations'][0x0]);for(let _0x1e7679=0x0;_0x1e7679<_0x39601a[_0x515275(0x1bc)];_0x1e7679++){const _0x9c0e7a={'id':_0x515275(0x2eb),'params':{..._0x39601a[_0x1e7679]}},_0x2e3342=this[_0x515275(0x3b5)][_0x515275(0x2f1)](_0x375319,_0x9c0e7a,!0x1);if(_0x133afc[_0x515275(0x420)](_0x2e3342))throw _0x2e3342[_0x515275(0x2e1)];_0x375319=_0x2e3342['m1Prime'];}return{..._0x52e410[_0x515275(0x37d)]['deepClone'](_0x26148d),'mutations':[_0x375319]};}[_0x18b736(0x309)](_0x409b19){const _0x49232d=_0x18b736,{unitID:_0x4508cd}=_0x409b19,_0x288b06=this[_0x49232d(0x231)]['getRenderById'](_0x4508cd)['with'](_0x589b5b['DocIMEInputManagerService']),{undoCache:_0x5da086,redoCache:_0x1f1d14}=_0x288b06[_0x49232d(0xcd)]();if(_0x5da086[_0x49232d(0x1bc)]===0x0||_0x1f1d14['length']===0x0)return;const _0x2ea7c4=[],_0xffcee1=[];let _0x6ecd12=_0x52e410[_0x49232d(0x37d)][_0x49232d(0xe2)](_0x409b19[_0x49232d(0x487)][0x0]),_0x3170bb=_0x52e410[_0x49232d(0x37d)][_0x49232d(0xe2)](_0x409b19[_0x49232d(0x487)][0x0]);for(let _0x327bc2=_0x5da086[_0x49232d(0x1bc)]-0x1;_0x327bc2>=0x0;_0x327bc2--){const _0x2e11c9={'id':_0x49232d(0x2eb),'params':{..._0x5da086[_0x327bc2]}},_0x15b35c={'id':_0x49232d(0x2eb),'params':{..._0x1f1d14[_0x327bc2]}},_0x1b3e36=this[_0x49232d(0x3b5)][_0x49232d(0x2f1)](_0x6ecd12,_0x2e11c9,!0x1),_0xa6bf52=this['_transformService'][_0x49232d(0x2f1)](_0x3170bb,_0x15b35c,!0x1);if(_0x133afc[_0x49232d(0x420)](_0x1b3e36))throw _0x1b3e36['error'];if(_0x133afc['isTransformMutationFailure'](_0xa6bf52))throw _0xa6bf52[_0x49232d(0x2e1)];_0x2ea7c4[_0x49232d(0x3ca)](_0x1b3e36[_0x49232d(0x1fa)]['params']),_0xffcee1[_0x49232d(0x3ca)](_0xa6bf52[_0x49232d(0x1fa)]['params']),_0x6ecd12=_0x1b3e36[_0x49232d(0x46f)],_0x3170bb=_0xa6bf52[_0x49232d(0x46f)];}_0x288b06['setUndoRedoMutationParamsCache']({'undoCache':_0x2ea7c4,'redoCache':_0xffcee1});}[_0x18b736(0x442)](_0xdac041){const _0x5e8eda=_0x18b736,{unitID:_0x4e445c}=_0xdac041,_0x54bb0e=this['_renderManagerService']['getRenderById'](_0x4e445c)[_0x5e8eda(0x140)](_0x589b5b['DocIMEInputManagerService']),_0x2d49df=_0x54bb0e[_0x5e8eda(0x1a4)]();if(_0x2d49df==null)return;const _0x14f0c3=[{'id':_0x5e8eda(0x2eb),'params':{'unitId':_0xdac041[_0x5e8eda(0x39f)],'actions':null,'textRanges':[_0x2d49df]}}],_0x326f12=this[_0x5e8eda(0x3b5)][_0x5e8eda(0x21e)](_0xdac041,_0x14f0c3);if(!_0x133afc['isTransformMutationsWithChangesetSuccess'](_0x326f12))throw _0x326f12['error'];const _0x2d462a=_0x326f12[_0x5e8eda(0x1fa)][0x0][_0x5e8eda(0x13e)]['textRanges'];Array[_0x5e8eda(0x424)](_0x2d462a)&&_0x2d462a['length']&&_0x54bb0e[_0x5e8eda(0xc8)](_0x2d462a[0x0]);}};_0x563df6=_0x1695bc([_0x5ee3fb(0x0,_0x52e410['Inject'](_0x52e410[_0x18b736(0x382)])),_0x5ee3fb(0x1,_0x133afc[_0x18b736(0xfa)]),_0x5ee3fb(0x2,_0xa52036[_0x18b736(0x378)])],_0x563df6);var _0x228293=Object[_0x18b736(0x180)],_0x852cf4=Object[_0x18b736(0x301)],_0x35ae27=(_0x405e48,_0x17e09c,_0x17fe01,_0x51c8c6)=>{const _0x22f220=_0x18b736;for(var _0x257caf=_0x51c8c6>0x1?void 0x0:_0x51c8c6?_0x852cf4(_0x17e09c,_0x17fe01):_0x17e09c,_0x51d5cb=_0x405e48[_0x22f220(0x1bc)]-0x1,_0x3af459;_0x51d5cb>=0x0;_0x51d5cb--)(_0x3af459=_0x405e48[_0x51d5cb])&&(_0x257caf=(_0x51c8c6?_0x3af459(_0x17e09c,_0x17fe01,_0x257caf):_0x3af459(_0x257caf))||_0x257caf);return _0x51c8c6&&_0x257caf&&_0x228293(_0x17e09c,_0x17fe01,_0x257caf),_0x257caf;},_0x37d7e3=(_0x24f270,_0x2ec3aa)=>(_0x43fb92,_0x59e004)=>_0x2ec3aa(_0x43fb92,_0x59e004,_0x24f270);_0x18e336[_0x18b736(0x495)]=class extends _0x52e410[_0x18b736(0x174)]{constructor(_0x4f2e26,_0x4173c3,_0x3a5de5,_0x5ac275,_0xf7e7d7){const _0x422198=_0x18b736;super(),_0x2dd6ee(this,_0x422198(0x28e),new Map()),_0x2dd6ee(this,_0x422198(0x43a),new Map()),_0x2dd6ee(this,'_disabled',!0x1),(this[_0x422198(0x102)]=_0x4f2e26,this['_localStorageService']=_0x4173c3,this['_beforeCloseService']=_0x3a5de5,this[_0x422198(0x389)]=_0x5ac275,this[_0x422198(0x3d5)]=_0xf7e7d7,this[_0x422198(0x3f5)]());}[_0x18b736(0x354)](){const _0x38e0f4=_0x18b736;this[_0x38e0f4(0x379)]=!0x0;}[_0x18b736(0x23a)](){const _0x14f22d=_0x18b736;this[_0x14f22d(0x379)]=!0x1;}[_0x18b736(0x44f)](){const _0x37190d=_0x18b736;this[_0x37190d(0xc2)]()[_0x37190d(0x41f)](()=>super[_0x37190d(0x44f)]());}async[_0x18b736(0xcb)](_0x5a46d8){const _0xec2004=_0x18b736;return this[_0xec2004(0x379)]?null:this[_0xec2004(0xa4)][_0xec2004(0x413)](_0xc4c858(_0x5a46d8));}async[_0x18b736(0x294)](_0x2321e6,_0x3b3345){const _0x516f03=_0x18b736;return!!this['_localStorageService'][_0x516f03(0x35d)](_0x2321e6,_0x3b3345);}['updateOfflineData'](_0x162d8d,_0x55de0b,_0x566a3a,_0x556b5f){const _0x3dea4e=_0x18b736,_0x59c6af=this[_0x3dea4e(0x3d5)][_0x3dea4e(0x4c7)](_0x162d8d);this['_cachedData'][_0x3dea4e(0x1e3)](_0x162d8d,{'unitID':_0x162d8d,'type':_0x55de0b,'awaitingChangeset':_0x566a3a,'mutations':_0x556b5f,'rev':_0x59c6af}),this['_saveTaskMap'][_0x3dea4e(0x486)](_0x162d8d)||this[_0x3dea4e(0x2a5)](_0x162d8d);}[_0x18b736(0x2a5)](_0x207a25){const _0x10a3c2=_0x18b736,_0x590916=this['_getSaveTimeout']();_0x590916===0x0?this[_0x10a3c2(0x189)](_0x207a25):this[_0x10a3c2(0x43a)][_0x10a3c2(0x1e3)](_0x207a25,setTimeout(()=>this[_0x10a3c2(0x189)](_0x207a25),_0x590916));}[_0x18b736(0x439)](){const _0x5e61f6=_0x18b736;var _0x36e4f3;return(_0x36e4f3=this[_0x5e61f6(0x102)][_0x5e61f6(0x119)](_0x27ab77))!=null?_0x36e4f3:0x3e8;}[_0x18b736(0x189)](_0x235d30){const _0x4c110e=_0x18b736,_0x141461=this[_0x4c110e(0x43a)]['get'](_0x235d30);return _0x141461!==void 0x0&&window[_0x4c110e(0x265)](_0x141461),this['_localStorageService'][_0x4c110e(0x35d)](_0xc4c858(_0x235d30),this[_0x4c110e(0x28e)][_0x4c110e(0xf2)](_0x235d30))['then'](()=>this['_saveTaskMap'][_0x4c110e(0x368)](_0x235d30));}async[_0x18b736(0xc2)](){const _0x230685=_0x18b736,_0xa6dc62=[];this[_0x230685(0x43a)]['forEach']((_0x1cbd01,_0x465e3a)=>{const _0x18f3ba=_0x230685;window[_0x18f3ba(0x265)](_0x1cbd01),_0xa6dc62[_0x18f3ba(0x2da)](this[_0x18f3ba(0x189)](_0x465e3a)[_0x18f3ba(0x41f)](()=>{const _0x4db917=_0x18f3ba;this[_0x4db917(0x43a)]['delete'](_0x465e3a);}));}),await Promise[_0x230685(0x3de)](_0xa6dc62);}['_setupBeforeClosingHandler'](){const _0x59315c=_0x18b736;this[_0x59315c(0x27b)](this['_beforeCloseService'][_0x59315c(0x268)](()=>{const _0x205f09=_0x59315c;if(this[_0x205f09(0x43a)][_0x205f09(0x271)])return this[_0x205f09(0x389)]['t']('collaboration-client.offline-data-not-saved');}));}},_0x18e336[_0x18b736(0x495)]=_0x35ae27([_0x37d7e3(0x0,_0x52e410[_0x18b736(0x207)]),_0x37d7e3(0x1,_0x52e410[_0x18b736(0x310)]),_0x37d7e3(0x2,_0x4d3b05['IBeforeCloseService']),_0x37d7e3(0x3,_0x52e410['Inject'](_0x52e410[_0x18b736(0x4b7)])),_0x37d7e3(0x4,_0x52e410[_0x18b736(0xca)](_0x133afc[_0x18b736(0x229)]))],_0x18e336['LocalCacheService']);function _0xc4c858(_0xa39cfb){const _0x3f8995=_0x18b736;return _0x3f8995(0x31b)+_0xa39cfb;}var _0x24c3da=Object[_0x18b736(0x180)],_0x50e732=Object[_0x18b736(0x301)],_0x3f5510=(_0x5ed9cc,_0x29d8eb,_0x3e482a,_0x593848)=>{const _0x5caca1=_0x18b736;for(var _0x5a72c6=_0x593848>0x1?void 0x0:_0x593848?_0x50e732(_0x29d8eb,_0x3e482a):_0x29d8eb,_0x48d3ef=_0x5ed9cc[_0x5caca1(0x1bc)]-0x1,_0x24686c;_0x48d3ef>=0x0;_0x48d3ef--)(_0x24686c=_0x5ed9cc[_0x48d3ef])&&(_0x5a72c6=(_0x593848?_0x24686c(_0x29d8eb,_0x3e482a,_0x5a72c6):_0x24686c(_0x5a72c6))||_0x5a72c6);return _0x593848&&_0x5a72c6&&_0x24c3da(_0x29d8eb,_0x3e482a,_0x5a72c6),_0x5a72c6;},_0x2a64ac=(_0x30f75c,_0x2a8075)=>(_0xae2824,_0x352004)=>_0x2a8075(_0xae2824,_0x352004,_0x30f75c);function _0x43edb5(_0x246a7b){const _0x2f8448=_0x18b736,{unitID:_0x3f11aa,mutations:_0x3fed6b}=_0x246a7b;return{'unitId':_0x3f11aa,'subUnitId':_0x3fed6b[0x0][_0x2f8448(0x13e)][_0x2f8448(0xee)]};}let _0xfe8c3b=class{constructor(_0x3904af,_0x490f49,_0x3efd2e){const _0x1edd05=_0x18b736;this[_0x1edd05(0x19c)]=_0x3904af,this[_0x1edd05(0x3b5)]=_0x490f49,this[_0x1edd05(0x472)]=_0x3efd2e;}[_0x18b736(0x2c3)](_0xcc3963){const _0xb31c0f=_0x18b736;var _0x1ae79f,_0x49037c,_0x2740fc,_0xaf7852;const _0x1f988d=this[_0xb31c0f(0x19c)][_0xb31c0f(0xf2)](_0x547cac['SheetsSelectionsService']),{unitId:_0x4e8bf2,subUnitId:_0x54c0fd}=_0x43edb5(_0xcc3963),_0x17c811=_0x1f988d['getWorkbookSelections'](_0x4e8bf2)[_0xb31c0f(0x46b)](),_0xc5c504=(_0x49037c=(_0x1ae79f=this['_instanceService']['getUnit'](_0x4e8bf2))==null?void 0x0:_0x1ae79f[_0xb31c0f(0x33a)]())==null?void 0x0:_0x49037c[_0xb31c0f(0x27a)]();if(_0x17c811[_0xb31c0f(0x1bc)]===0x0||!_0x4e8bf2||!_0x54c0fd)return;const _0x391379=[{'id':_0x547cac['SetSelectionsOperation']['id'],'params':{'unitId':_0x4e8bf2,'subUnitId':_0xc5c504,'selections':_0x52e410['Tools'][_0xb31c0f(0xe2)](_0x17c811)}}],_0x206fd5=this[_0xb31c0f(0x3b5)][_0xb31c0f(0x21e)](_0xcc3963,_0x391379);if(!_0x133afc[_0xb31c0f(0x192)](_0x206fd5))throw _0x206fd5['error'];const _0x2d3b9d=(_0xaf7852=(_0x2740fc=_0x206fd5[_0xb31c0f(0x1fa)][0x0])==null?void 0x0:_0x2740fc[_0xb31c0f(0x13e)])==null?void 0x0:_0xaf7852[_0xb31c0f(0x41b)];Array[_0xb31c0f(0x424)](_0x2d3b9d)&&_0x2d3b9d['length']&&this[_0xb31c0f(0x19c)][_0xb31c0f(0xf2)](_0x52e410[_0xb31c0f(0x406)])[_0xb31c0f(0x2fe)](_0x547cac[_0xb31c0f(0xcf)]['id'],{'unitId':_0x4e8bf2,'subUnitId':_0xc5c504,'selections':_0x2d3b9d});}};_0xfe8c3b=_0x3f5510([_0x2a64ac(0x0,_0x52e410[_0x18b736(0xca)](_0x52e410['Injector'])),_0x2a64ac(0x1,_0x133afc[_0x18b736(0xfa)]),_0x2a64ac(0x2,_0x52e410[_0x18b736(0x1de)])],_0xfe8c3b);const _0x44fc1a=_0x52e410[_0x18b736(0x4d2)]('univer-pro.collaboration-client.single-active-unit-service');var _0x3c3735=(_0x5b8f92=>(_0x5b8f92[_0x5b8f92[_0x18b736(0xb0)]=0x0]=_0x18b736(0xb0),_0x5b8f92[_0x5b8f92[_0x18b736(0x4bd)]=0x1]=_0x18b736(0x4bd),_0x5b8f92))(_0x3c3735||{});const _0x1712cf=0x7530,_0xa6e248=_0x18b736(0x100);class _0x33d71c extends _0x52e410[_0x18b736(0x174)]{constructor(){const _0x3991bb=_0x18b736;super(),_0x2dd6ee(this,_0x3991bb(0xda),_0x52e410['Tools'][_0x3991bb(0xba)]()),_0x2dd6ee(this,_0x3991bb(0xad),new Set()),_0x2dd6ee(this,_0x3991bb(0x4b5),new Map()),_0x2dd6ee(this,_0x3991bb(0x46d),null),_0x2dd6ee(this,'_clearOtherTimers',new Map()),_0x2dd6ee(this,_0x3991bb(0xae),new Map()),this[_0x3991bb(0x173)]();}[_0x18b736(0x44f)](){const _0x4adfb4=_0x18b736;super[_0x4adfb4(0x44f)](),this[_0x4adfb4(0x2c1)][_0x4adfb4(0x122)]((_0x5c0f22,_0x313063)=>this[_0x4adfb4(0x136)](_0x313063)),this[_0x4adfb4(0x46d)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x31e902){const _0x53d338=_0x18b736;return this[_0x53d338(0xaf)](_0x31e902)[_0x53d338(0x2fd)](_0xe9c73a['distinctUntilChanged']());}['editingUnit'](_0x13d744){const _0x2a891b=_0x18b736;this[_0x2a891b(0xad)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x2a891b(0xad)][_0x2a891b(0x151)](_0x13d744),this[_0x2a891b(0x3b3)]({'type':0x0,'memberID':this[_0x2a891b(0xda)],'unitIDs':[_0x13d744],'isForwarded':!0x1});}['disposeUnit'](_0x3861d0){const _0x44d75e=_0x18b736;this[_0x44d75e(0xad)]['delete'](_0x3861d0),this[_0x44d75e(0xad)]['size']===0x0&&this[_0x44d75e(0x46d)]&&window['clearInterval'](this[_0x44d75e(0x46d)]);}[_0x18b736(0x173)](){const _0x45a7cc=_0x18b736;this['disposeWithMe'](_0x52e410[_0x45a7cc(0x13c)](_0xe9c73a[_0x45a7cc(0x476)](window,_0x45a7cc(0x3c0))['subscribe'](_0x31df20=>{const _0x48e6f7=_0x45a7cc;if(_0x31df20['key']!==_0xa6e248||!_0x31df20[_0x48e6f7(0x228)])return;const _0x5e7462=JSON[_0x48e6f7(0x1be)](_0x31df20[_0x48e6f7(0x228)]);this['_handleEvent'](_0x5e7462);}))),window['addEventListener'](_0x45a7cc(0x1ac),()=>this['_send']({'type':0x1,'memberID':this[_0x45a7cc(0xda)],'unitIDs':Array['from'](this[_0x45a7cc(0xad)])}));}[_0x18b736(0x47a)](_0xb636e9){const _0x29623a=_0x18b736;switch(_0xb636e9[_0x29623a(0x2cd)]){case 0x0:this[_0x29623a(0x194)](_0xb636e9);break;case 0x1:this[_0x29623a(0x1c6)](_0xb636e9);break;case 0x2:this[_0x29623a(0x161)](_0xb636e9);break;}}['_handleJoinEvent'](_0x1346eb){const _0x5cf04d=_0x18b736,{unitIDs:_0x1c9c8c,memberID:_0x1a38e0,isForwarded:_0x478161}=_0x1346eb;_0x1c9c8c['forEach'](_0x16487b=>{const _0x209839=_0x3ebc;if(!_0x478161&&this[_0x209839(0x4b5)][_0x209839(0x486)](_0x16487b)&&this['_ensureSubject'](_0x16487b)[_0x209839(0x3fa)](0x1),!this['_unitOnClients'][_0x209839(0x486)](_0x16487b)||!this[_0x209839(0x4b5)]['get'](_0x16487b)[_0x209839(0x486)](_0x1a38e0)){const _0x21b7b8=this[_0x209839(0x4b5)]['get'](_0x16487b)||new Set();_0x21b7b8[_0x209839(0x151)](_0x1a38e0),this['_unitOnClients'][_0x209839(0x1e3)](_0x16487b,_0x21b7b8),this[_0x209839(0x362)](_0x1a38e0);}}),_0x478161||this[_0x5cf04d(0x3b3)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5a8dd4){const _0x39cec3=_0x18b736;this[_0x39cec3(0x136)](_0x5a8dd4);const _0x4d544=window['setTimeout'](()=>{const _0x17d659=_0x39cec3;this['_unitOnClients'][_0x17d659(0x122)](_0x15918a=>{const _0x3095cb=_0x17d659;_0x15918a[_0x3095cb(0x368)](_0x5a8dd4);});},_0x1712cf*0x2);this[_0x39cec3(0x2c1)][_0x39cec3(0x1e3)](_0x5a8dd4,_0x4d544);}[_0x18b736(0x136)](_0x309e6c){const _0x5701d6=_0x18b736;if(this['_clearOtherTimers']['has'](_0x309e6c)){const _0x2e7252=this[_0x5701d6(0x2c1)]['get'](_0x309e6c);_0x2e7252&&window[_0x5701d6(0x265)](_0x2e7252),this[_0x5701d6(0x2c1)][_0x5701d6(0x1e3)](_0x309e6c,null);}}[_0x18b736(0x1c6)](_0x7d43da){const _0x33befd=_0x18b736,{memberID:_0x2d923b,unitIDs:_0x295811}=_0x7d43da;_0x295811[_0x33befd(0x122)](_0x4e3d4a=>{const _0x33e1e6=_0x33befd;var _0x580e09;const _0x1067dd=this[_0x33e1e6(0x4b5)][_0x33e1e6(0xf2)](_0x4e3d4a);_0x1067dd&&(_0x1067dd['delete'](_0x2d923b),(_0x580e09=this[_0x33e1e6(0xaf)](_0x4e3d4a))==null||_0x580e09[_0x33e1e6(0x3fa)](_0x1067dd[_0x33e1e6(0x271)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x2d923b);}[_0x18b736(0x161)](_0x16a367){const _0x3fb444=_0x18b736;this['_scheduleClearOtherTimer'](_0x16a367[_0x3fb444(0x144)]);}['_send'](_0x54e226){const _0x45ee18=_0x18b736;localStorage['setItem'](_0xa6e248,JSON[_0x45ee18(0x285)](_0x54e226));}[_0x18b736(0xbe)](){const _0x42f69b=_0x18b736;this[_0x42f69b(0x46d)]=window[_0x42f69b(0x145)](()=>{const _0x361ca0=_0x42f69b;this[_0x361ca0(0x3b3)]({'type':0x2,'memberID':this[_0x361ca0(0xda)]});},_0x1712cf);}['_ensureSubject'](_0x5800bf){const _0x4f3225=_0x18b736;return this[_0x4f3225(0xae)]['has'](_0x5800bf)||this['_unitStatus'][_0x4f3225(0x1e3)](_0x5800bf,new _0xe9c73a[(_0x4f3225(0x2ef))](0x0)),this[_0x4f3225(0xae)]['get'](_0x5800bf);}}function _0x564c2f(_0x521319){const _0x2c39f9=_0x18b736;let _0x3ce479='';for(const _0x1306de of _0x521319){const {startOffset:_0x21a95f,endOffset:_0x539209,isActive:_0x5019d2}=_0x1306de;_0x3ce479[_0x2c39f9(0x1bc)]&&(_0x3ce479+=','),_0x3ce479+=_0x21a95f+':'+_0x539209+':'+(_0x5019d2?'1':'0');}return _0x3ce479;}function _0x4ac9a8(_0x1e55f9){const _0x5b1098=_0x18b736,_0x27db32=_0x1e55f9[_0x5b1098(0x329)](','),_0x2b5c7d=[];for(const _0x3effa7 of _0x27db32){const [_0x18c6a8,_0x11fd13,_0x5daa1f]=_0x3effa7[_0x5b1098(0x329)](':');_0x2b5c7d[_0x5b1098(0x2da)]({'startOffset':Number(_0x18c6a8),'endOffset':Number(_0x11fd13),'collapsed':_0x18c6a8===_0x11fd13,'isActive':_0x5daa1f==='1'});}return _0x2b5c7d['some'](_0x108c2b=>_0x108c2b[_0x5b1098(0x158)])||(_0x2b5c7d[0x0][_0x5b1098(0x158)]=!0x0),_0x2b5c7d;}class _0x3ca707 extends _0x52e410[_0x18b736(0x3a3)]{constructor(){const _0x173e55=_0x18b736;super(...arguments),_0x2dd6ee(this,_0x173e55(0x468),new _0xe9c73a[(_0x173e55(0x2ef))](null)),_0x2dd6ee(this,_0x173e55(0x2be),this[_0x173e55(0x468)][_0x173e55(0xce)]());}[_0x18b736(0x3ee)](_0x1c8dd6){const _0x47a299=_0x18b736,{unitID:_0x8ca8fe,memberID:_0x64438c,textRanges:_0x4ca828}=_0x1c8dd6,_0x1d0055=_0x564c2f(_0x4ca828),_0x3a381d={'unitID':_0x8ca8fe,'memberID':_0x64438c,'selection':_0x1d0055};this[_0x47a299(0x468)][_0x47a299(0x3fa)](_0x3a381d);}}var _0x548171=Object[_0x18b736(0x180)],_0xb22947=Object['getOwnPropertyDescriptor'],_0x25235e=(_0x4dca20,_0x4b8345,_0x125fef,_0x11f1e4)=>{const _0x44d101=_0x18b736;for(var _0x5082a6=_0x11f1e4>0x1?void 0x0:_0x11f1e4?_0xb22947(_0x4b8345,_0x125fef):_0x4b8345,_0x23a204=_0x4dca20[_0x44d101(0x1bc)]-0x1,_0x55133a;_0x23a204>=0x0;_0x23a204--)(_0x55133a=_0x4dca20[_0x23a204])&&(_0x5082a6=(_0x11f1e4?_0x55133a(_0x4b8345,_0x125fef,_0x5082a6):_0x55133a(_0x5082a6))||_0x5082a6);return _0x11f1e4&&_0x5082a6&&_0x548171(_0x4b8345,_0x125fef,_0x5082a6),_0x5082a6;},_0x5e6671=(_0x171e2c,_0x54a2dc)=>(_0x17c7d9,_0x389415)=>_0x54a2dc(_0x17c7d9,_0x389415,_0x171e2c);let _0x217b10=class{constructor(_0x3adc45,_0x4ccfd4){this['_injector']=_0x3adc45,this['_transformService']=_0x4ccfd4;}[_0x18b736(0x2c3)](_0x6774b5){const _0x50ce5f=_0x18b736;var _0x3fc50d;const _0x53721b=this[_0x50ce5f(0x19c)][_0x50ce5f(0xf2)](_0x1497bb[_0x50ce5f(0xd2)]),_0x4dae90=(_0x3fc50d=_0x53721b[_0x50ce5f(0x463)]())!=null?_0x3fc50d:[];if(_0x4dae90[_0x50ce5f(0x1bc)]===0x0)return;const _0x171ebb=[{'id':_0x50ce5f(0x2eb),'params':{'unitId':_0x6774b5[_0x50ce5f(0x39f)],'actions':null,'textRanges':_0x4dae90}}],_0x2cb101=this[_0x50ce5f(0x3b5)]['transformMutationsWithChangeset'](_0x6774b5,_0x171ebb);if(!_0x133afc[_0x50ce5f(0x192)](_0x2cb101))throw _0x2cb101[_0x50ce5f(0x2e1)];const _0x2068da=_0x2cb101[_0x50ce5f(0x1fa)][0x0]['params']['textRanges'];Array['isArray'](_0x2068da)&&_0x2068da['length']&&_0x53721b[_0x50ce5f(0x197)](_0x2068da,!0x1);}};_0x217b10=_0x25235e([_0x5e6671(0x0,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x382)])),_0x5e6671(0x1,_0x133afc['ITransformService'])],_0x217b10);const _0x195877=new Set([_0x547cac['InsertSheetMutation']['id']]);function _0x577684(_0x2caf54,_0xb7d67b,_0x5b69d9,_0x2cf7bf,_0x1681e){const _0x214f5d=_0x18b736;var _0xb74d6a,_0x3a385e,_0xd6f408,_0x32a074;const _0x1a4f27=[];for(const _0x116802 of _0x2caf54)if(_0x195877['has'](_0x116802['id'])){if(_0x1a4f27[_0x214f5d(0x1bc)]>0x0)break;_0x1a4f27[_0x214f5d(0x2da)](_0x116802);break;}else _0x1a4f27['push'](_0x116802);const _0x121334=(_0x3a385e=(_0xb74d6a=_0x1681e[_0x214f5d(0x4c9)]())==null?void 0x0:_0xb74d6a[_0x214f5d(0x299)])!=null?_0x3a385e:'unknown',_0x59e61a=(_0x32a074=(_0xd6f408=_0x1681e['getCurrentUser']())==null?void 0x0:_0xd6f408['memberID'])!=null?_0x32a074:_0x214f5d(0x29e);return{'changeset':{'unitID':_0xb7d67b,'type':_0x133afc[_0x214f5d(0xa5)](_0x5b69d9[_0x214f5d(0x11a)](_0xb7d67b)),'baseRev':_0x2cf7bf[_0x214f5d(0x4c7)](_0xb7d67b),'revision':0x0,'userID':_0x121334,'memberID':_0x59e61a,'mutations':_0x1a4f27},'pendingMutations':_0x2caf54[_0x214f5d(0x383)](_0x1a4f27[_0x214f5d(0x1bc)])};}function _0x5f24bc(_0x377634,_0x28c120,_0x176204,_0x23420a,_0x2c6eda){const _0x363e09=_0x18b736;var _0x40a29f,_0x115620,_0x4f857d,_0x589263;const _0xd019a3=[_0x377634[_0x363e09(0x45d)]((_0x15108f,_0x206b9f)=>{const _0x5a9019=_0x363e09;var _0x2d1a47;const {id:_0x27e0a7}=_0x15108f,{id:_0x2fa6cf,type:_0x114e46}=_0x206b9f,_0x5d6f19=(_0x2d1a47=_0x15108f['params'])!=null?_0x2d1a47:{'actions':null},_0x106080=_0x206b9f[_0x5a9019(0x13e)];if(_0x27e0a7&&_0x27e0a7!==_0x2fa6cf)throw new Error(_0x5a9019(0x26d)+_0x27e0a7+_0x5a9019(0x4ab)+_0x2fa6cf+'.');return{..._0x15108f,'id':_0x2fa6cf,'type':_0x114e46,'params':{'unitId':_0x106080[_0x5a9019(0x44d)],'textRanges':_0x106080[_0x5a9019(0x2ac)],'actions':_0x52e410['JSONX'][_0x5a9019(0x2bd)](_0x5d6f19[_0x5a9019(0x453)],_0x106080[_0x5a9019(0x453)])}};},{})],_0x4432af=(_0x115620=(_0x40a29f=_0x2c6eda[_0x363e09(0x4c9)]())==null?void 0x0:_0x40a29f[_0x363e09(0x299)])!=null?_0x115620:_0x363e09(0x29e),_0x2998f6=(_0x589263=(_0x4f857d=_0x2c6eda['getCurrentUser']())==null?void 0x0:_0x4f857d[_0x363e09(0x144)])!=null?_0x589263:'unknown';return{'changeset':{'unitID':_0x28c120,'type':_0x133afc[_0x363e09(0xa5)](_0x176204[_0x363e09(0x11a)](_0x28c120)),'baseRev':_0x23420a[_0x363e09(0x4c7)](_0x28c120),'revision':0x0,'userID':_0x4432af,'memberID':_0x2998f6,'mutations':_0xd019a3},'pendingMutations':[]};}const _0x576747={'id':_0x547cac[_0x18b736(0xa3)]['id'],'type':_0x52e410[_0x18b736(0x4b3)][_0x18b736(0x243)],'params':{}};var _0x2cdb9c=Object[_0x18b736(0x180)],_0x298cd8=Object[_0x18b736(0x301)],_0x10fda=(_0x4025aa,_0x8f4de,_0x577eae,_0x27c385)=>{const _0x4b1039=_0x18b736;for(var _0x133b4f=_0x27c385>0x1?void 0x0:_0x27c385?_0x298cd8(_0x8f4de,_0x577eae):_0x8f4de,_0x40965b=_0x4025aa[_0x4b1039(0x1bc)]-0x1,_0xeaa71b;_0x40965b>=0x0;_0x40965b--)(_0xeaa71b=_0x4025aa[_0x40965b])&&(_0x133b4f=(_0x27c385?_0xeaa71b(_0x8f4de,_0x577eae,_0x133b4f):_0xeaa71b(_0x133b4f))||_0x133b4f);return _0x27c385&&_0x133b4f&&_0x2cdb9c(_0x8f4de,_0x577eae,_0x133b4f),_0x133b4f;},_0x1f2bea=(_0x266e24,_0xe0283)=>(_0x5f408e,_0x117e9f)=>_0xe0283(_0x5f408e,_0x117e9f,_0x266e24),_0x1a9629=(_0x27b47d=>(_0x27b47d[_0x18b736(0xb8)]=_0x18b736(0x473),_0x27b47d[_0x18b736(0x341)]=_0x18b736(0x2c9),_0x27b47d[_0x18b736(0x1f6)]=_0x18b736(0x26b),_0x27b47d[_0x18b736(0x296)]=_0x18b736(0x475),_0x27b47d[_0x18b736(0x1fc)]=_0x18b736(0x322),_0x27b47d[_0x18b736(0x21c)]=_0x18b736(0x18b),_0x27b47d[_0x18b736(0x3eb)]=_0x18b736(0xb4),_0x27b47d[_0x18b736(0x138)]=_0x18b736(0x262),_0x27b47d))(_0x1a9629||{});class _0xbf2d80{constructor(_0x2235c2,_0x3d8ddb,_0x2d23f0,_0x1eefe1,_0x4be438,_0x579a2f,_0x2b591d,_0x52b402,_0x2583ea){const _0x2e5b9d=_0x18b736;_0x2dd6ee(this,_0x2e5b9d(0x2a4),null),_0x2dd6ee(this,'_pendingMutations',[]),(this[_0x2e5b9d(0x39f)]=_0x2235c2,this[_0x2e5b9d(0x2cd)]=_0x3d8ddb,this[_0x2e5b9d(0xd5)]=_0x4be438,this[_0x2e5b9d(0x10e)]=_0x579a2f,this[_0x2e5b9d(0xe5)]=_0x2b591d,this['_revisionService']=_0x52b402,this[_0x2e5b9d(0x152)]=_0x2583ea,this[_0x2e5b9d(0x2a4)]=_0x2d23f0,this['_pendingMutations']=_0x1eefe1);}[_0x18b736(0x326)](_0x13e0d8){const _0x55ffe9=_0x18b736,_0x1de3f5=this[_0x55ffe9(0x3d5)][_0x55ffe9(0x4c7)](this[_0x55ffe9(0x39f)]);return _0x13e0d8[_0x55ffe9(0x117)]>_0x1de3f5+0x1?(this[_0x55ffe9(0xd5)][_0x55ffe9(0x256)]({'from':_0x1de3f5,'to':_0x13e0d8['revision']-0x1}),!0x0):!0x1;}[_0x18b736(0x3ff)](_0x3b489c){const _0x12d4ac=_0x18b736;this[_0x12d4ac(0xe5)][_0x12d4ac(0xb3)](this[_0x12d4ac(0x39f)],_0x3b489c);}[_0x18b736(0x4a1)](_0x4b24cf){const _0x383bac=_0x18b736;var _0xe59447,_0x1f1f84;(_0x1f1f84=(_0xe59447=this[_0x383bac(0xd5)])[_0x383bac(0x2c8)])==null||_0x1f1f84[_0x383bac(0x235)](_0xe59447,_0x4b24cf);}['_transformIMECache'](_0x4f35f6){const _0x3d5720=_0x18b736;var _0x4a5b62,_0x5286ae;return(_0x5286ae=(_0x4a5b62=this[_0x3d5720(0xd5)])[_0x3d5720(0x1ec)])==null?void 0x0:_0x5286ae[_0x3d5720(0x235)](_0x4a5b62,_0x4f35f6);}[_0x18b736(0x20b)](_0x1489a7){const _0x1c9464=_0x18b736;var _0x75aa16,_0x20a31d,_0x489dd3;return(_0x489dd3=(_0x20a31d=(_0x75aa16=this[_0x1c9464(0xd5)])[_0x1c9464(0x29d)])==null?void 0x0:_0x20a31d[_0x1c9464(0x235)](_0x75aa16,_0x1489a7))!=null?_0x489dd3:_0x1489a7;}['_syncEditingCollabCursor'](_0x5c3c83){const _0x4bb687=_0x18b736;var _0x1f6524,_0x51be79;if(this[_0x4bb687(0x2cd)]===_0xe94575[_0x4bb687(0x1c5)]){const {unitID:_0x4a456c,mutations:_0x2218d6,memberID:_0x680087}=_0x5c3c83,_0xda0220=_0x2218d6[0x0][_0x4bb687(0x13e)][_0x4bb687(0x2ac)];Array['isArray'](_0xda0220)&&_0xda0220[_0x4bb687(0x1bc)]>0x0&&((_0x51be79=(_0x1f6524=this[_0x4bb687(0xd5)])[_0x4bb687(0x168)])==null||_0x51be79[_0x4bb687(0x235)](_0x1f6524,{'unitID':_0x4a456c,'memberID':_0x680087,'textRanges':_0xda0220}));}}['_updateLocalCache'](){const _0x39d7e4=_0x18b736;this['_localCacheService']['updateOfflineData'](this[_0x39d7e4(0x39f)],this[_0x39d7e4(0x2cd)],this[_0x39d7e4(0x2a4)],this[_0x39d7e4(0x47c)]);}[_0x18b736(0x38c)](){const _0x406ba4=_0x18b736;return this[_0x406ba4(0x3d5)][_0x406ba4(0x4c7)](this[_0x406ba4(0x39f)]);}[_0x18b736(0x391)](){const _0x49d281=_0x18b736;this['_revisionService']['incrementRevOfUnit'](this[_0x49d281(0x39f)]);}[_0x18b736(0x2d7)](_0x151230){const _0x2dcb23=_0x18b736;var _0x53f3dc;const _0x17ad08=this[_0x2dcb23(0x20b)](_0x151230),_0x521e65=_0x52e410[_0x2dcb23(0x300)](_0x17ad08[_0x2dcb23(0x487)],this['_commandService'],{'fromCollab':!0x0});if(!_0x521e65[_0x2dcb23(0x4b1)])throw _0x521e65[_0x2dcb23(0x2e1)]instanceof Error?_0x521e65[_0x2dcb23(0x2e1)]:new Error((_0x53f3dc=_0x521e65[_0x2dcb23(0x2e1)])!=null?_0x53f3dc:_0x2dcb23(0x317));this[_0x2dcb23(0x1d5)](_0x17ad08),this[_0x2dcb23(0x3ff)](_0x151230),this[_0x2dcb23(0x4a1)](_0x17ad08),this[_0x2dcb23(0x3b4)](_0x17ad08),this[_0x2dcb23(0x391)]();}}let _0xd4e745=class extends _0xbf2d80{constructor(_0x3669a4,_0x292ec8,_0x381dec,_0x54da6a,_0x1f2f87,_0x32f9e0,_0x4c96de,_0x5e8cd6,_0xc6e63d,_0x707c8){const _0x50a214=_0x18b736;super(_0x3669a4,_0x292ec8,null,[],_0x381dec,_0x5e8cd6,_0x4c96de,_0x54da6a,_0x1f2f87),_0x2dd6ee(this,_0x50a214(0x2de),_0x50a214(0x2c9)),(this['_injector']=_0x32f9e0,this[_0x50a214(0x307)]=_0xc6e63d,this['_transformService']=_0x707c8);}['appendMutation'](_0xa7b3f0){const _0x5bda62=_0x18b736,_0xe5cc4=this[_0x5bda62(0x19c)][_0x5bda62(0x26a)](_0x1fe818,this[_0x5bda62(0x39f)],this[_0x5bda62(0x2cd)],[_0xa7b3f0],this[_0x5bda62(0xd5)]);return _0xe5cc4[_0x5bda62(0xa0)](),_0xe5cc4[_0x5bda62(0x43c)](),_0xe5cc4;}[_0x18b736(0x34a)](_0x983f17){const _0x297b7e=_0x18b736;if(this[_0x297b7e(0x326)](_0x983f17))return this[_0x297b7e(0x19c)][_0x297b7e(0x26a)](_0x183961,this[_0x297b7e(0x39f)],this[_0x297b7e(0x2cd)],null,[],null,[_0x983f17],this['_handler']);try{const _0xdaf677=this[_0x297b7e(0x3b5)]['transformMutationsWithChangeset'](_0x983f17,[_0x576747]);if(_0x133afc[_0x297b7e(0x192)](_0xdaf677)){const {c1Prime:_0x4f510c}=_0xdaf677;return this['_executeRemoteChangeset'](_0x4f510c),this;}throw _0xdaf677[_0x297b7e(0x2e1)];}catch(_0x266f6e){return this[_0x297b7e(0x307)]['error'](_0x266f6e),this['_onConflict'](!0x1);}}[_0x18b736(0x160)](_0x3980c0){const _0xa5125e=_0x18b736;return this[_0xa5125e(0x19c)][_0xa5125e(0x26a)](_0x2ba876,this[_0xa5125e(0x39f)],this[_0xa5125e(0x2cd)],null,[],this[_0xa5125e(0xd5)],_0x3980c0);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x28a8a6=_0x18b736;throw new Error(_0x28a8a6(0x1dc));}['toggleOffline'](){const _0xec7f05=_0x18b736;return this['_injector'][_0xec7f05(0x26a)](_0x1b657e,this['unitID'],this[_0xec7f05(0x2cd)],null,[],this[_0xec7f05(0xd5)]);}[_0x18b736(0x260)](){return this;}[_0x18b736(0xfd)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x18b736(0x4d4)](){const _0x6be19b=_0x18b736,_0x1da843=this[_0x6be19b(0x3d5)]['getCurrentRevOfUnit'](this[_0x6be19b(0x39f)]);return this['_handler'][_0x6be19b(0x256)]({'from':_0x1da843,'to':0x0}),this['_injector'][_0x6be19b(0x26a)](_0x183961,this[_0x6be19b(0x39f)],this[_0x6be19b(0x2cd)],null,[],null,[],this['_handler']);}};_0xd4e745=_0x10fda([_0x1f2bea(0x3,_0x52e410['Inject'](_0x133afc['RevisionService'])),_0x1f2bea(0x4,_0x52e410[_0x18b736(0xca)](_0x18e336[_0x18b736(0x495)])),_0x1f2bea(0x5,_0x52e410['Inject'](_0x52e410[_0x18b736(0x382)])),_0x1f2bea(0x6,_0x52e410[_0x18b736(0x477)]),_0x1f2bea(0x7,_0x52e410[_0x18b736(0x406)]),_0x1f2bea(0x8,_0x52e410[_0x18b736(0x170)]),_0x1f2bea(0x9,_0x133afc['ITransformService'])],_0xd4e745);let _0x1fe818=class extends _0xbf2d80{constructor(_0x594af9,_0x42b0e0,_0x3220fa,_0x40c309,_0x602089,_0x40f81a,_0xdfdb62,_0x1fb0f8,_0x264dee,_0x1719e6,_0x320662,_0x39e78e,_0x5a7b94,_0x3babf6){const _0x3cd4c1=_0x18b736;super(_0x594af9,_0x42b0e0,null,_0x3220fa,_0x40c309,_0x1719e6,_0x3babf6,_0x40f81a,_0xdfdb62),_0x2dd6ee(this,_0x3cd4c1(0x2de),'pending'),_0x2dd6ee(this,'_scheduleTimestamp',null),_0x2dd6ee(this,_0x3cd4c1(0x2f6),null),(this[_0x3cd4c1(0x19c)]=_0x602089,this[_0x3cd4c1(0x106)]=_0x1fb0f8,this[_0x3cd4c1(0x307)]=_0x264dee,this[_0x3cd4c1(0x102)]=_0x320662,this[_0x3cd4c1(0x3b5)]=_0x39e78e,this[_0x3cd4c1(0xf5)]=_0x5a7b94);}[_0x18b736(0x45f)](_0x352762){const _0x3cba4b=_0x18b736;return this[_0x3cba4b(0x47c)][_0x3cba4b(0x2da)](_0x352762),this[_0x3cba4b(0x43c)](),this;}[_0x18b736(0x34a)](_0x183e87){const _0x20f51c=_0x18b736;if(this[_0x20f51c(0x326)](_0x183e87))return this[_0x20f51c(0x49d)](),this[_0x20f51c(0x19c)][_0x20f51c(0x26a)](_0x183961,this[_0x20f51c(0x39f)],this[_0x20f51c(0x2cd)],null,this[_0x20f51c(0x47c)],null,[_0x183e87],this[_0x20f51c(0xd5)]);try{const _0x2402ec=this[_0x20f51c(0x3b5)][_0x20f51c(0x21e)](_0x183e87,this[_0x20f51c(0x47c)]);if(_0x133afc[_0x20f51c(0x192)](_0x2402ec)){const {c1Prime:_0x4d0cc7,m2Prime:_0x197f51}=_0x2402ec;this['_executeRemoteChangeset'](_0x4d0cc7);const _0x339476=this['_injector'][_0x20f51c(0x26a)](_0x1fe818,this[_0x20f51c(0x39f)],this[_0x20f51c(0x2cd)],_0x197f51,this['_handler']);return this[_0x20f51c(0x49d)](),_0x339476[_0x20f51c(0xa0)](this[_0x20f51c(0x2ff)]?Math[_0x20f51c(0x3dd)](0x0,new Date()[_0x20f51c(0x123)]()-this[_0x20f51c(0x2ff)]):this[_0x20f51c(0x1ba)]()),_0x339476;}throw _0x2402ec[_0x20f51c(0x2e1)];}catch(_0x4ba1ce){return this[_0x20f51c(0x307)][_0x20f51c(0x2e1)](_0x4ba1ce),this['_onConflict'](!0x1);}}[_0x18b736(0x233)](){const _0x198936=_0x18b736;throw new Error(_0x198936(0x490));}[_0x18b736(0x24b)](){const _0x1c3866=_0x18b736;throw new Error(_0x1c3866(0x2bc));}[_0x18b736(0x27c)](){const _0x1c89a4=_0x18b736;return this['_clearScheduledTask'](),this['_injector'][_0x1c89a4(0x26a)](_0x1b657e,this[_0x1c89a4(0x39f)],this[_0x1c89a4(0x2cd)],null,this[_0x1c89a4(0x47c)],this[_0x1c89a4(0xd5)]);}[_0x18b736(0x260)](){return this;}[_0x18b736(0xa0)](_0x5c4547){const _0x16e27f=_0x18b736,_0x50674e=_0x5c4547!=null?_0x5c4547:this[_0x16e27f(0x1ba)]();this['_scheduleTimestamp']=new Date()[_0x16e27f(0x123)](),this[_0x16e27f(0x2f6)]=window['setTimeout'](()=>{const _0x2e7f4f=_0x16e27f;this[_0x2e7f4f(0x49d)]();let _0x806ca3=null;switch(this['type']){case _0xe94575['UNIVER_SHEET']:{_0x806ca3=_0x577684(this[_0x2e7f4f(0x47c)],this[_0x2e7f4f(0x39f)],this[_0x2e7f4f(0xf5)],this['_revisionService'],this[_0x2e7f4f(0x106)]);break;}case _0xe94575['UNIVER_DOC']:{this[_0x2e7f4f(0x47c)][_0x2e7f4f(0x4c1)](_0x377d43=>_0x377d43['id']===_0x1497bb[_0x2e7f4f(0x30f)]['id'])?_0x806ca3=_0x5f24bc(this[_0x2e7f4f(0x47c)],this[_0x2e7f4f(0x39f)],this[_0x2e7f4f(0xf5)],this[_0x2e7f4f(0x3d5)],this[_0x2e7f4f(0x106)]):_0x806ca3=_0x577684(this[_0x2e7f4f(0x47c)],this['unitID'],this[_0x2e7f4f(0xf5)],this[_0x2e7f4f(0x3d5)],this[_0x2e7f4f(0x106)]);break;}default:throw new Error(_0x2e7f4f(0x4a9)+this[_0x2e7f4f(0x2cd)]+_0x2e7f4f(0x30c));}const {changeset:_0x7084cf,pendingMutations:_0x4f1bec}=_0x806ca3;this[_0x2e7f4f(0xd5)][_0x2e7f4f(0xe4)](_0x7084cf);const _0x12b455=_0x4f1bec['length']?this[_0x2e7f4f(0x19c)][_0x2e7f4f(0x26a)](_0x7f909,this[_0x2e7f4f(0x39f)],this['type'],_0x7084cf,_0x4f1bec,this['_handler']):this[_0x2e7f4f(0x19c)][_0x2e7f4f(0x26a)](_0x47fa35,this[_0x2e7f4f(0x39f)],this['type'],_0x7084cf,this[_0x2e7f4f(0xd5)]);_0x12b455['_updateLocalCache'](),this[_0x2e7f4f(0xd5)][_0x2e7f4f(0x2f4)](this,_0x12b455);},_0x50674e);}['_getSendChangesetTimeout'](){const _0x3a1945=_0x18b736;var _0xcf8d7a;const _0xc6c8ad=this[_0x3a1945(0x102)][_0x3a1945(0x119)](_0x48532f);return(_0xcf8d7a=_0xc6c8ad==null?void 0x0:_0xc6c8ad['sendChangesetTimeout'])!=null?_0xcf8d7a:0x7d0;}[_0x18b736(0xfd)](){const _0x1f2fe5=_0x18b736;throw new Error(_0x1f2fe5(0x241));}[_0x18b736(0x49d)](){const _0x39a7ff=_0x18b736;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x39a7ff(0x2f6)]=null);}[_0x18b736(0x160)](_0x3f1a5c){const _0x12ea0c=_0x18b736;return this['_clearScheduledTask'](),this[_0x12ea0c(0x19c)][_0x12ea0c(0x26a)](_0x2ba876,this[_0x12ea0c(0x39f)],this[_0x12ea0c(0x2cd)],null,this['_pendingMutations'],this[_0x12ea0c(0xd5)],_0x3f1a5c);}};_0x1fe818=_0x10fda([_0x1f2bea(0x4,_0x52e410['Inject'](_0x52e410[_0x18b736(0x382)])),_0x1f2bea(0x5,_0x52e410['Inject'](_0x133afc[_0x18b736(0x229)])),_0x1f2bea(0x6,_0x52e410[_0x18b736(0xca)](_0x18e336['LocalCacheService'])),_0x1f2bea(0x7,_0x52e410[_0x18b736(0xca)](_0xc4e50a)),_0x1f2bea(0x8,_0x52e410[_0x18b736(0x170)]),_0x1f2bea(0x9,_0x52e410[_0x18b736(0x406)]),_0x1f2bea(0xa,_0x52e410[_0x18b736(0x207)]),_0x1f2bea(0xb,_0x133afc[_0x18b736(0xfa)]),_0x1f2bea(0xc,_0x52e410[_0x18b736(0x1de)]),_0x1f2bea(0xd,_0x52e410[_0x18b736(0x477)])],_0x1fe818);let _0x47fa35=class extends _0xbf2d80{constructor(_0x137419,_0x297d34,_0x108b72,_0x2a8c88,_0x509780,_0x2e6e38,_0x9a8c24,_0x279d08,_0x5af0b8,_0x4b4c20,_0x426934){const _0x3ed41a=_0x18b736;super(_0x137419,_0x297d34,_0x108b72,[],_0x2a8c88,_0x279d08,_0x426934,_0x2e6e38,_0x9a8c24),_0x2dd6ee(this,'status',_0x3ed41a(0x475)),(this['_injector']=_0x509780,this['_logService']=_0x5af0b8,this['_transformService']=_0x4b4c20);}[_0x18b736(0x45f)](_0x1ccf26){const _0x1e3225=_0x18b736,_0x42f6fc=this[_0x1e3225(0x19c)]['createInstance'](_0x7f909,this[_0x1e3225(0x39f)],this['type'],this[_0x1e3225(0x2a4)],[_0x1ccf26],this[_0x1e3225(0xd5)]);return _0x42f6fc[_0x1e3225(0x43c)](),_0x42f6fc;}[_0x18b736(0x34a)](_0x30e696){const _0x55d002=_0x18b736;if(this[_0x55d002(0x326)](_0x30e696))return this[_0x55d002(0x19c)]['createInstance'](_0x183961,this[_0x55d002(0x39f)],this[_0x55d002(0x2cd)],this[_0x55d002(0x2a4)],[],null,[_0x30e696],this[_0x55d002(0xd5)]);try{const _0x4f4e4a=this[_0x55d002(0x3b5)]['transformChangesets']([_0x30e696],[this['_awaitingChangeset']],!0x1);if(_0x133afc[_0x55d002(0x48e)](_0x4f4e4a)){const {c1Prime:_0x49a976,c2Prime:_0x180936}=_0x4f4e4a;this[_0x55d002(0x2d7)](_0x49a976[0x0]),_0x180936[0x0]['baseRev']=this[_0x55d002(0x38c)]();const _0x3bc216=this[_0x55d002(0x19c)][_0x55d002(0x26a)](_0x47fa35,this[_0x55d002(0x39f)],this['type'],_0x180936[0x0],this[_0x55d002(0xd5)]);return _0x3bc216[_0x55d002(0x43c)](),_0x3bc216;}return this[_0x55d002(0x160)](!0x1);}catch(_0x55fa7a){return this[_0x55d002(0x307)]['error'](_0x55fa7a),this[_0x55d002(0x160)](!0x1);}}[_0x18b736(0x233)](_0x56ccd5){const _0xd228fe=_0x18b736,_0x5541c8=this['_revisionService']['getCurrentRevOfUnit'](this[_0xd228fe(0x39f)]);if(_0x56ccd5[_0xd228fe(0x117)]<_0x5541c8-0x1)return this;if(this['_checkMissing'](_0x56ccd5))return this[_0xd228fe(0x19c)][_0xd228fe(0x26a)](_0x183961,this[_0xd228fe(0x39f)],this['type'],null,[],this['_awaitingChangeset'],[],this['_handler']);this['_incrementRevisionNumber']();const _0x4e4c59=this['_injector'][_0xd228fe(0x26a)](_0xd4e745,this['unitID'],this['type'],this[_0xd228fe(0xd5)]);return _0x4e4c59[_0xd228fe(0x43c)](),_0x4e4c59;}[_0x18b736(0x24b)](_0x6f722c){const _0x4f69df=_0x18b736;return this[_0x4f69df(0x160)](!!(_0x6f722c!=null&&_0x6f722c['isPermissionRej']));}[_0x18b736(0x27c)](){const _0x3e33bf=_0x18b736;return this[_0x3e33bf(0x19c)][_0x3e33bf(0x26a)](_0x1b657e,this[_0x3e33bf(0x39f)],this[_0x3e33bf(0x2cd)],this['_awaitingChangeset'],[],this[_0x3e33bf(0xd5)]);}['toggleOnline'](){return this;}[_0x18b736(0xfd)](){const _0x51f419=_0x18b736;this[_0x51f419(0xd5)][_0x51f419(0xe4)](this[_0x51f419(0x2a4)]);}['_onConflict'](_0x448d88){const _0x381bd3=_0x18b736;return this[_0x381bd3(0x19c)][_0x381bd3(0x26a)](_0x2ba876,this[_0x381bd3(0x39f)],this[_0x381bd3(0x2cd)],this[_0x381bd3(0x2a4)],[],this[_0x381bd3(0xd5)],_0x448d88);}};_0x47fa35=_0x10fda([_0x1f2bea(0x4,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x382)])),_0x1f2bea(0x5,_0x52e410[_0x18b736(0xca)](_0x133afc[_0x18b736(0x229)])),_0x1f2bea(0x6,_0x52e410[_0x18b736(0xca)](_0x18e336['LocalCacheService'])),_0x1f2bea(0x7,_0x52e410['ICommandService']),_0x1f2bea(0x8,_0x52e410['ILogService']),_0x1f2bea(0x9,_0x133afc[_0x18b736(0xfa)]),_0x1f2bea(0xa,_0x52e410[_0x18b736(0x477)])],_0x47fa35);let _0x7f909=class extends _0xbf2d80{constructor(_0x4b8c77,_0x4e2b12,_0x35b724,_0x3c800a,_0x1b1b0e,_0x4a4f02,_0x347357,_0x34d52d,_0x2c0d9b,_0x30047a,_0x20fde4,_0x4a4142){const _0x1bef6e=_0x18b736;super(_0x4b8c77,_0x4e2b12,_0x35b724,_0x3c800a,_0x1b1b0e,_0x2c0d9b,_0x4a4142,_0x347357,_0x34d52d),_0x2dd6ee(this,'status',_0x1bef6e(0x322)),(this['_injector']=_0x4a4f02,this[_0x1bef6e(0x307)]=_0x30047a,this[_0x1bef6e(0x3b5)]=_0x20fde4);}[_0x18b736(0x45f)](_0x4fb17){const _0x36cfcd=_0x18b736;return this[_0x36cfcd(0x47c)][_0x36cfcd(0x2da)](_0x4fb17),this;}[_0x18b736(0x34a)](_0x2e83b4){const _0x28deac=_0x18b736;if(this['_checkMissing'](_0x2e83b4))return this[_0x28deac(0x19c)][_0x28deac(0x26a)](_0x183961,this[_0x28deac(0x39f)],this[_0x28deac(0x2cd)],this['_awaitingChangeset'],this[_0x28deac(0x47c)],null,[_0x2e83b4],this[_0x28deac(0xd5)]);try{const _0x4b6906=this[_0x28deac(0x3b5)]['transformChangesets']([_0x2e83b4],[this[_0x28deac(0x2a4)]],!0x1);if(_0x133afc['isTransformChangesetsSuccess'](_0x4b6906)){const {c1Prime:_0x5511c9,c2Prime:_0x1a679c}=_0x4b6906,_0x5ed4a4=this['_transformService'][_0x28deac(0x21e)](_0x5511c9[0x0],this[_0x28deac(0x47c)]);if(_0x133afc[_0x28deac(0x192)](_0x5ed4a4)){const {c1Prime:_0x14b090,m2Prime:_0x1a3e3f}=_0x5ed4a4;return this[_0x28deac(0x2d7)](_0x14b090),_0x1a679c[0x0][_0x28deac(0x1e4)]=this[_0x28deac(0x38c)](),this[_0x28deac(0x19c)][_0x28deac(0x26a)](_0x7f909,this['unitID'],this[_0x28deac(0x2cd)],_0x1a679c[0x0],_0x1a3e3f,this[_0x28deac(0xd5)]);}throw _0x5ed4a4[_0x28deac(0x2e1)];}throw _0x4b6906[_0x28deac(0x2e1)];}catch(_0x46b1dd){return this[_0x28deac(0x307)]['error'](_0x46b1dd),this[_0x28deac(0x160)](!0x1);}}[_0x18b736(0x233)](_0x5e96a4){const _0x23e15b=_0x18b736;if(this[_0x23e15b(0x326)](_0x5e96a4))return this[_0x23e15b(0x19c)][_0x23e15b(0x26a)](_0x183961,this[_0x23e15b(0x39f)],this[_0x23e15b(0x2cd)],null,this['_pendingMutations'],this[_0x23e15b(0x2a4)],[],this[_0x23e15b(0xd5)]);this['_incrementRevisionNumber']();const _0x45e809=this['_injector'][_0x23e15b(0x26a)](_0x1fe818,this[_0x23e15b(0x39f)],this[_0x23e15b(0x2cd)],this['_pendingMutations'],this['_handler']);return _0x45e809[_0x23e15b(0xa0)](),_0x45e809['_updateLocalCache'](),_0x45e809;}[_0x18b736(0x24b)](_0x3b4da8){const _0x39c058=_0x18b736;return this[_0x39c058(0x160)](!!(_0x3b4da8!=null&&_0x3b4da8[_0x39c058(0x4d3)]));}[_0x18b736(0x27c)](){const _0x3c4900=_0x18b736;return this[_0x3c4900(0x19c)][_0x3c4900(0x26a)](_0x1b657e,this[_0x3c4900(0x39f)],this[_0x3c4900(0x2cd)],this[_0x3c4900(0x2a4)],this[_0x3c4900(0x47c)],this[_0x3c4900(0xd5)]);}[_0x18b736(0x260)](){return this;}['resend'](){const _0x4605cb=_0x18b736;this[_0x4605cb(0xd5)][_0x4605cb(0xe4)](this['_awaitingChangeset']);}[_0x18b736(0x160)](_0x46f9d7){const _0x4cf52d=_0x18b736;return this[_0x4cf52d(0x19c)][_0x4cf52d(0x26a)](_0x2ba876,this[_0x4cf52d(0x39f)],this[_0x4cf52d(0x2cd)],null,this['_pendingMutations'],this[_0x4cf52d(0xd5)],_0x46f9d7);}};_0x7f909=_0x10fda([_0x1f2bea(0x5,_0x52e410['Inject'](_0x52e410['Injector'])),_0x1f2bea(0x6,_0x52e410[_0x18b736(0xca)](_0x133afc[_0x18b736(0x229)])),_0x1f2bea(0x7,_0x52e410['Inject'](_0x18e336[_0x18b736(0x495)])),_0x1f2bea(0x8,_0x52e410[_0x18b736(0x406)]),_0x1f2bea(0x9,_0x52e410[_0x18b736(0x170)]),_0x1f2bea(0xa,_0x133afc[_0x18b736(0xfa)]),_0x1f2bea(0xb,_0x52e410[_0x18b736(0x477)])],_0x7f909);let _0x2ba876=class extends _0xbf2d80{constructor(_0x20f79a,_0xeb7075,_0x24166d,_0x16d7eb,_0x5f1177,_0x4ecba7=!0x1,_0x3b5eb5,_0x251088,_0x4e2f34,_0x2a5184,_0x2278f6,_0x1f6542,_0x13bc7d){const _0x57af5a=_0x18b736;super(_0x20f79a,_0xeb7075,_0x24166d,_0x16d7eb,_0x5f1177,_0x251088,_0x4e2f34,_0x2278f6,_0x2a5184),_0x2dd6ee(this,_0x57af5a(0x2de),_0x57af5a(0xb4)),(this['_isPermissionRej']=_0x4ecba7,this[_0x57af5a(0x349)]=_0x3b5eb5,this[_0x57af5a(0x389)]=_0x1f6542,this[_0x57af5a(0x43b)]=_0x13bc7d,this[_0x57af5a(0x1af)](),this[_0x57af5a(0x49a)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x18b736(0x34a)](){return this;}['onRemoteAck'](){return this;}[_0x18b736(0x24b)](){return this;}[_0x18b736(0x27c)](){return this;}[_0x18b736(0x260)](){return this;}[_0x18b736(0xfd)](){const _0x59c53c=_0x18b736;throw new Error(_0x59c53c(0x466));}[_0x18b736(0x49a)](){const _0x175bd1=_0x18b736;this[_0x175bd1(0x152)][_0x175bd1(0x457)](this[_0x175bd1(0x39f)],this['type'],null,[]);}[_0x18b736(0x1af)](){const _0x2ccbd7=_0x18b736;this[_0x2ccbd7(0x1ee)]?this[_0x2ccbd7(0x43b)][_0x2ccbd7(0x1e7)]({'title':this[_0x2ccbd7(0x389)]['t'](_0x2ccbd7(0x245)),'content':this[_0x2ccbd7(0x389)]['t']('permission.content'),'type':_0x2ccbd7(0x2e1),'duration':0x0}):this['_notificationService'][_0x2ccbd7(0x1e7)]({'title':this[_0x2ccbd7(0x389)]['t'](_0x2ccbd7(0x3e8)),'content':this[_0x2ccbd7(0x389)]['t']('conflict.content'),'type':_0x2ccbd7(0x2e1),'duration':0x0});}[_0x18b736(0x2dc)](){const _0x16c226=_0x18b736;this[_0x16c226(0x349)][_0x16c226(0x247)](new _0x547cac[(_0x16c226(0x2bb))](this['unitID'])['id'],!0x1);}};_0x2ba876=_0x10fda([_0x1f2bea(0x6,_0x52e410['Inject'](_0x52e410[_0x18b736(0x358)])),_0x1f2bea(0x7,_0x52e410[_0x18b736(0x406)]),_0x1f2bea(0x8,_0x52e410[_0x18b736(0x477)]),_0x1f2bea(0x9,_0x52e410[_0x18b736(0xca)](_0x18e336[_0x18b736(0x495)])),_0x1f2bea(0xa,_0x52e410['Inject'](_0x133afc[_0x18b736(0x229)])),_0x1f2bea(0xb,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x4b7)])),_0x1f2bea(0xc,_0x4d3b05[_0x18b736(0x36e)])],_0x2ba876);let _0x1b657e=class extends _0xbf2d80{constructor(_0x507c7f,_0x42086a,_0x2bc951,_0x813b84,_0x102510,_0x2f4fde,_0x147dbd,_0x44a84a,_0x4ee67c,_0x4bb0e3){const _0x453d54=_0x18b736;super(_0x507c7f,_0x42086a,_0x2bc951,_0x813b84,_0x102510,_0x4ee67c,_0x4bb0e3,_0x147dbd,_0x44a84a),_0x2dd6ee(this,_0x453d54(0x2de),_0x453d54(0x262)),this[_0x453d54(0x19c)]=_0x2f4fde;}[_0x18b736(0x45f)](_0x4d2fb2){const _0x7d27cc=_0x18b736;return this['_pendingMutations'][_0x7d27cc(0x2da)](_0x4d2fb2),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x2cc55c){const _0x408df9=_0x18b736;throw new Error(_0x408df9(0x44c));}['onRemoteAck'](){const _0xffa0d8=_0x18b736;throw new Error(_0xffa0d8(0x44e));}[_0x18b736(0x24b)](){const _0x4c86f2=_0x18b736;throw new Error(_0x4c86f2(0xfe));}[_0x18b736(0x27c)](){return this;}['toggleOnline'](){const _0x4676bb=_0x18b736,{_injector:_0x40a4c2,_pendingMutations:_0x14fca6,_awaitingChangeset:_0x2d5a6f,unitID:_0x353d81,_handler:_0x3ef474,type:_0x3d3f95}=this,_0x2fd1a3=_0x39d78a(_0x40a4c2,_0x353d81,_0x3d3f95,_0x2d5a6f,_0x14fca6,_0x3ef474);return _0x2fd1a3 instanceof _0x1fe818?_0x2fd1a3[_0x4676bb(0xa0)]():(_0x2fd1a3 instanceof _0x7f909||_0x2fd1a3 instanceof _0x47fa35)&&_0x2fd1a3[_0x4676bb(0xfd)](),_0x2fd1a3;}['resend'](){const _0x1f998c=_0x18b736;throw new Error(_0x1f998c(0x1bd));}};_0x1b657e=_0x10fda([_0x1f2bea(0x5,_0x52e410[_0x18b736(0xca)](_0x52e410['Injector'])),_0x1f2bea(0x6,_0x52e410['Inject'](_0x133afc[_0x18b736(0x229)])),_0x1f2bea(0x7,_0x52e410['Inject'](_0x18e336['LocalCacheService'])),_0x1f2bea(0x8,_0x52e410[_0x18b736(0x406)]),_0x1f2bea(0x9,_0x52e410[_0x18b736(0x477)])],_0x1b657e);let _0x183961=class extends _0xbf2d80{constructor(_0x4a3ff7,_0x386d86,_0x46fee7,_0x310ea6,_0x368e05,_0x5e8db3,_0x592dd2,_0x3a402a,_0x2e20d2,_0x2d5355,_0x25654d,_0x28fe6d,_0x39c356,_0x50e42a){const _0x56d06b=_0x18b736;super(_0x4a3ff7,_0x386d86,_0x46fee7,_0x310ea6,_0x592dd2,_0x28fe6d,_0x39c356,_0x2e20d2,_0x2d5355),_0x2dd6ee(this,_0x56d06b(0x2de),_0x56d06b(0x18b)),(this[_0x56d06b(0x113)]=_0x368e05,this[_0x56d06b(0x49f)]=_0x5e8db3,this[_0x56d06b(0x19c)]=_0x3a402a,this['_logService']=_0x25654d,this[_0x56d06b(0x3b5)]=_0x50e42a);}[_0x18b736(0x39e)](_0x5caab1){const _0x7cb5e9=_0x18b736;try{const _0x4193c3=[..._0x5caab1,...this['_queuedRemoteChangesets']],_0x26aa09=[this[_0x7cb5e9(0x2a4)]||this[_0x7cb5e9(0x113)]][_0x7cb5e9(0x1d4)](_0x4ef802=>!!_0x4ef802);let _0x3ad06b,_0x16f450;if(_0x26aa09[_0x7cb5e9(0x1bc)]){const _0x58c6a9=this[_0x7cb5e9(0x3b5)][_0x7cb5e9(0x212)](_0x4193c3,_0x26aa09,!0x1);if(!_0x133afc[_0x7cb5e9(0x48e)](_0x58c6a9))throw _0x58c6a9['error'];_0x3ad06b=_0x58c6a9[_0x7cb5e9(0x338)],_0x16f450=_0x58c6a9['c2Prime'];}else _0x3ad06b=_0x4193c3,_0x16f450=[];let _0x4c4481=this[_0x7cb5e9(0x47c)];_0x3ad06b[_0x7cb5e9(0x122)](_0x1c24af=>{const _0x55df86=_0x7cb5e9;let _0x377e73;if(_0x4c4481['length']){const _0x541076=this['_transformService'][_0x55df86(0x21e)](_0x1c24af,_0x4c4481);if(!_0x133afc['isTransformMutationsWithChangesetSuccess'](_0x541076))throw _0x541076[_0x55df86(0x2e1)];_0x377e73=_0x541076[_0x55df86(0x338)],_0x4c4481=_0x541076['m2Prime'];}else _0x377e73=_0x1c24af;this[_0x55df86(0x2d7)](_0x377e73);}),this[_0x7cb5e9(0x113)]&&this['_incrementRevisionNumber'](),this[_0x7cb5e9(0x2a4)]&&_0x16f450[_0x7cb5e9(0x1bc)]&&(_0x16f450[0x0]['baseRev']=this['_getCurrentRevision']());let _0x23ee32;if(this['_awaitingChangeset']&&_0x4c4481[_0x7cb5e9(0x1bc)]!==0x0)_0x23ee32=this[_0x7cb5e9(0x19c)][_0x7cb5e9(0x26a)](_0x7f909,this[_0x7cb5e9(0x39f)],this[_0x7cb5e9(0x2cd)],_0x16f450[0x0],_0x4c4481,this[_0x7cb5e9(0xd5)]);else{if(this[_0x7cb5e9(0x2a4)]&&_0x4c4481[_0x7cb5e9(0x1bc)]===0x0)_0x16f450[0x0]['baseRev']=this[_0x7cb5e9(0x38c)](),_0x23ee32=this['_injector'][_0x7cb5e9(0x26a)](_0x47fa35,this[_0x7cb5e9(0x39f)],this[_0x7cb5e9(0x2cd)],_0x16f450[0x0],this['_handler']);else{if(_0x4c4481[_0x7cb5e9(0x1bc)]!==0x0){const _0x427676=this[_0x7cb5e9(0x19c)][_0x7cb5e9(0x26a)](_0x1fe818,this[_0x7cb5e9(0x39f)],this[_0x7cb5e9(0x2cd)],_0x4c4481,this[_0x7cb5e9(0xd5)]);_0x427676[_0x7cb5e9(0xa0)](),_0x23ee32=_0x427676;}else _0x23ee32=this['_injector'][_0x7cb5e9(0x26a)](_0xd4e745,this[_0x7cb5e9(0x39f)],this[_0x7cb5e9(0x2cd)],this[_0x7cb5e9(0xd5)]);}}return _0x23ee32[_0x7cb5e9(0x43c)](),_0x23ee32;}catch(_0x4f7bb4){return this[_0x7cb5e9(0x307)][_0x7cb5e9(0x2e1)](_0x7cb5e9(0xe3),_0x7cb5e9(0x179),_0x4f7bb4),this[_0x7cb5e9(0x19c)][_0x7cb5e9(0x26a)](_0x2ba876,this[_0x7cb5e9(0x39f)],this[_0x7cb5e9(0x2cd)],this[_0x7cb5e9(0x2a4)],this[_0x7cb5e9(0x47c)],this[_0x7cb5e9(0xd5)],!0x1);}}[_0x18b736(0xfd)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x18b736(0x45f)](_0x4f9bae){const _0x2fc4c7=_0x18b736;return this[_0x2fc4c7(0x47c)]['push'](_0x4f9bae),this;}['onRemoteChangeset'](_0x586f54){const _0x2b81e3=_0x18b736;return this[_0x2b81e3(0x49f)]['push'](_0x586f54),this;}[_0x18b736(0x233)](_0x47614b){const _0x5ba557=_0x18b736;if(this[_0x5ba557(0x2a4)])return this[_0x5ba557(0x113)]=this[_0x5ba557(0x2a4)],this[_0x5ba557(0x2a4)]=null,this;throw new Error(_0x5ba557(0x10b));}[_0x18b736(0x24b)](_0x5a8556){const _0x3e9a0d=_0x18b736;return this[_0x3e9a0d(0x160)](!!(_0x5a8556!=null&&_0x5a8556[_0x3e9a0d(0x4d3)]));}[_0x18b736(0x27c)](){const _0x311cde=_0x18b736;return this['_injector']['createInstance'](_0x1b657e,this[_0x311cde(0x39f)],this[_0x311cde(0x2cd)],this[_0x311cde(0x2a4)],this['_pendingMutations'],this[_0x311cde(0xd5)]);}[_0x18b736(0x260)](){return this;}['_onConflict'](_0x288c82){const _0x47e81f=_0x18b736;return this[_0x47e81f(0x19c)][_0x47e81f(0x26a)](_0x2ba876,this['unitID'],this[_0x47e81f(0x2cd)],this[_0x47e81f(0x2a4)],this[_0x47e81f(0x47c)],this['_handler'],_0x288c82);}};_0x183961=_0x10fda([_0x1f2bea(0x7,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x382)])),_0x1f2bea(0x8,_0x52e410[_0x18b736(0xca)](_0x133afc['RevisionService'])),_0x1f2bea(0x9,_0x52e410[_0x18b736(0xca)](_0x18e336[_0x18b736(0x495)])),_0x1f2bea(0xa,_0x52e410[_0x18b736(0x170)]),_0x1f2bea(0xb,_0x52e410[_0x18b736(0x406)]),_0x1f2bea(0xc,_0x52e410[_0x18b736(0x477)]),_0x1f2bea(0xd,_0x133afc[_0x18b736(0xfa)])],_0x183961);function _0x39d78a(_0x4a5a0c,_0x4d9b88,_0x2c8dbd,_0x42c84c,_0x1d3015,_0x56b22b){const _0x504690=_0x18b736;return _0x42c84c&&_0x1d3015[_0x504690(0x1bc)]?_0x4a5a0c['createInstance'](_0x7f909,_0x4d9b88,_0x2c8dbd,_0x42c84c,_0x1d3015,_0x56b22b):_0x42c84c?_0x4a5a0c[_0x504690(0x26a)](_0x47fa35,_0x4d9b88,_0x2c8dbd,_0x42c84c,_0x56b22b):_0x1d3015[_0x504690(0x1bc)]?_0x4a5a0c[_0x504690(0x26a)](_0x1fe818,_0x4d9b88,_0x2c8dbd,_0x1d3015,_0x56b22b):_0x4a5a0c['createInstance'](_0xd4e745,_0x4d9b88,_0x2c8dbd,_0x56b22b);}var _0xabb4fe=Object[_0x18b736(0x180)],_0x329037=Object['getOwnPropertyDescriptor'],_0x578997=(_0x574685,_0x476124,_0x47f954,_0x2799d8)=>{const _0x47fe04=_0x18b736;for(var _0x4ea99b=_0x2799d8>0x1?void 0x0:_0x2799d8?_0x329037(_0x476124,_0x47f954):_0x476124,_0x13a452=_0x574685[_0x47fe04(0x1bc)]-0x1,_0x41f4dd;_0x13a452>=0x0;_0x13a452--)(_0x41f4dd=_0x574685[_0x13a452])&&(_0x4ea99b=(_0x2799d8?_0x41f4dd(_0x476124,_0x47f954,_0x4ea99b):_0x41f4dd(_0x4ea99b))||_0x4ea99b);return _0x2799d8&&_0x4ea99b&&_0xabb4fe(_0x476124,_0x47f954,_0x4ea99b),_0x4ea99b;},_0x4def86=(_0x1dda47,_0x5d7d0c)=>(_0x275a8b,_0x1d6da9)=>_0x5d7d0c(_0x275a8b,_0x1d6da9,_0x1dda47);_0x18e336[_0x18b736(0x423)]=class extends _0x52e410['RxDisposable']{constructor(_0x3e69b3,_0x222ecb,_0x5a019b,_0x8c6bfa,_0x3102a2,_0x2b52e4,_0x36b4ca,_0x1ab8e5,_0x2b9f70,_0x439a52,_0x35441e,_0x256dd6,_0xc51c9a){const _0x2907f9=_0x18b736;super(),_0x2dd6ee(this,_0x2907f9(0xe0),new _0xe9c73a[(_0x2907f9(0x2ef))](null)),_0x2dd6ee(this,_0x2907f9(0x421),this[_0x2907f9(0xe0)][_0x2907f9(0xce)]()),_0x2dd6ee(this,_0x2907f9(0x4c0)),_0x2dd6ee(this,_0x2907f9(0x380),!0x1),_0x2dd6ee(this,_0x2907f9(0x350),this['state$'][_0x2907f9(0x2fd)](_0xe9c73a[_0x2907f9(0x2c2)](_0x44f5c7=>_0x44f5c7?_0x44f5c7[_0x2907f9(0x2de)]:_0x1a9629['OFFLINE']),_0xe9c73a[_0x2907f9(0x302)](0x1))),_0x2dd6ee(this,_0x2907f9(0x40b),!0x1),_0x2dd6ee(this,_0x2907f9(0x1b0),[]),(this[_0x2907f9(0x39f)]=_0x3e69b3,this[_0x2907f9(0x2ad)]=_0x222ecb,this[_0x2907f9(0x1b1)]=_0x5a019b,this[_0x2907f9(0x19c)]=_0x8c6bfa,this[_0x2907f9(0x152)]=_0x3102a2,this[_0x2907f9(0x1bb)]=_0x2b52e4,this[_0x2907f9(0x389)]=_0x36b4ca,this[_0x2907f9(0x3d5)]=_0x1ab8e5,this[_0x2907f9(0x307)]=_0x2b9f70,this['_commandService']=_0x439a52,this[_0x2907f9(0x15c)]=_0x35441e,this['_permissionService']=_0x256dd6,this[_0x2907f9(0x3cc)]=_0xc51c9a);}get[_0x18b736(0x3fb)](){return this['_state'];}async[_0x18b736(0x359)](){const _0x34401a=_0x18b736;if(this[_0x34401a(0x3fb)])throw new Error(_0x34401a(0x39c));await this[_0x34401a(0x173)]();}[_0x18b736(0x404)](){const _0x38972e=_0x18b736;return this[_0x38972e(0x380)]=!0x0,_0x52e410['toDisposable'](()=>{const _0x3dbbc1=_0x38972e;this[_0x3dbbc1(0x380)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x18b736(0x133)](_0x1e7f17){const _0x39a576=_0x18b736;this[_0x39a576(0x4c0)]=_0x1e7f17,this[_0x39a576(0xe0)][_0x39a576(0x3fa)](_0x1e7f17);}async['_init'](){const _0x4be23c=_0x18b736;var _0x273527;this[_0x4be23c(0x133)](await this[_0x4be23c(0x101)]()),this[_0x4be23c(0x3cc)]&&((_0x273527=this[_0x4be23c(0x3cc)])==null||_0x273527[_0x4be23c(0x286)](this[_0x4be23c(0x39f)]),this[_0x4be23c(0x27b)](this[_0x4be23c(0x3cc)]['getUnitStatus$'](this[_0x4be23c(0x39f)])['subscribe'](_0x477012=>{const _0x1864a7=_0x4be23c;this[_0x1864a7(0x307)][_0x1864a7(0x3c3)](_0x1864a7(0x259),'editing\x20status\x20changed\x20to',_0x477012),_0x477012===_0x3c3735[_0x1864a7(0x4bd)]?(this[_0x1864a7(0x15c)][_0x1864a7(0x1e7)]({'content':this[_0x1864a7(0x389)]['t'](_0x1864a7(0x1b6)),'type':_0x716320['MessageType'][_0x1864a7(0x114)]}),this[_0x1864a7(0x349)][_0x1864a7(0x247)](new _0x547cac[(_0x1864a7(0x2bb))](this[_0x1864a7(0x39f)])['id'],!0x1)):this[_0x1864a7(0x349)][_0x1864a7(0x247)](new _0x547cac[(_0x1864a7(0x2bb))](this[_0x1864a7(0x39f)])['id'],!0x0);})));let _0xf506aa=!0x1;return this[_0x4be23c(0x27b)](this['session'][_0x4be23c(0x12a)][_0x4be23c(0xd1)](_0xf6095f=>{const _0x5570c9=_0x4be23c;_0xf6095f===_0x30eb01[_0x5570c9(0x13b)]?this['_toggleOnline'](_0xf506aa):_0xf6095f===_0x30eb01[_0x5570c9(0x138)]&&(_0xf506aa=!0x0,this[_0x5570c9(0x441)]());})),this[_0x4be23c(0x27b)](this[_0x4be23c(0x2ad)][_0x4be23c(0x35e)][_0x4be23c(0xd1)](_0x49b0e6=>{const _0x4ea89a=_0x4be23c;try{switch(_0x49b0e6['eventID']){case _0x133afc[_0x4ea89a(0x4b0)][_0x4ea89a(0x29f)]:{this[_0x4ea89a(0x35f)](_0x133afc['parseProtocolChangeset'](_0x49b0e6[_0x4ea89a(0x355)]));break;}case _0x133afc['CollaborationEvent'][_0x4ea89a(0x289)]:{this[_0x4ea89a(0x19f)](_0x49b0e6['data']);break;}case _0x133afc[_0x4ea89a(0x4b0)][_0x4ea89a(0x16f)]:{this['_onRemoteRejected']();break;}case _0x133afc['CollaborationEvent'][_0x4ea89a(0xc0)]:{this[_0x4ea89a(0x323)](_0x49b0e6[_0x4ea89a(0x355)][_0x4ea89a(0x1ff)][_0x4ea89a(0x2c2)](_0x1bb076=>_0x133afc['parseProtocolChangeset'](_0x1bb076)));break;}case _0x133afc[_0x4ea89a(0x4b0)][_0x4ea89a(0x2d5)]:this[_0x4ea89a(0x408)]({'isPermissionRej':!0x0});}}catch(_0x1cd00b){throw console[_0x4ea89a(0x2e1)](_0x4ea89a(0x4aa),_0x1cd00b),_0x1cd00b;}})),this['_state'];}[_0x18b736(0x42b)](){const _0x10ceb8=_0x18b736;this[_0x10ceb8(0x40b)]=!0x1;}[_0x18b736(0x4c8)](){const _0x172ae0=_0x18b736;if(this[_0x172ae0(0x40b)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x172ae0(0x40b)]=!0x0;}['_onLocalMutation'](_0x9566f8){const _0x34ed21=_0x18b736;this[_0x34ed21(0x4c8)](),this[_0x34ed21(0x133)](this[_0x34ed21(0x4c0)][_0x34ed21(0x45f)](_0x9566f8)),this[_0x34ed21(0x42b)]();}[_0x18b736(0x35f)](_0x407fc3){const _0x52d736=_0x18b736;if(!(_0x407fc3[_0x52d736(0x117)]<=this[_0x52d736(0x3d5)][_0x52d736(0x4c7)](this['unitID']))){if(this[_0x52d736(0x380)]){this[_0x52d736(0x1b0)][_0x52d736(0x2da)](_0x407fc3);return;}this[_0x52d736(0x4a7)](_0x407fc3);}}[_0x18b736(0x2db)](){const _0x24caf3=_0x18b736;this['_remoteChangesetQueue']['forEach'](_0x32e871=>this['_applyRemoteChangeset'](_0x32e871)),this[_0x24caf3(0x1b0)]=[];}['_applyRemoteChangeset'](_0xc52c73){const _0x46cfa7=_0x18b736,_0x49f183=this[_0x46cfa7(0x1bb)]['interceptor'][_0x46cfa7(0x9d)](this[_0x46cfa7(0x1bb)][_0x46cfa7(0x1ed)]['getInterceptPoints']()[_0x46cfa7(0x37c)])(_0xc52c73[_0x46cfa7(0x487)],null)||_0xc52c73['mutations'],_0x49331f={..._0xc52c73,'mutations':_0x49f183};this['_lockTransition'](),this['_updateState'](this[_0x46cfa7(0x4c0)][_0x46cfa7(0x34a)](_0x49331f)),this[_0x46cfa7(0x42b)]();}[_0x18b736(0x19f)](_0x15df04){const _0x36aa72=_0x18b736;this[_0x36aa72(0x4c8)](),this['_updateState'](this[_0x36aa72(0x4c0)]['onRemoteAck'](_0x15df04)),this[_0x36aa72(0x42b)]();}[_0x18b736(0x408)](_0x14d2ba){const _0x36aafc=_0x18b736;this[_0x36aafc(0x4c8)](),this[_0x36aafc(0x133)](this['_state'][_0x36aafc(0x24b)](_0x14d2ba)),this[_0x36aafc(0x42b)]();}[_0x18b736(0x323)](_0x1aeac2){const _0x549419=_0x18b736;if(!(this['_state']instanceof _0x183961))throw new TypeError(_0x549419(0x2ec));const _0x20f6ae=_0x1aeac2[_0x549419(0x2c2)](_0xd30ef4=>{const _0x2e2203=_0x549419,_0x29d5b4=this[_0x2e2203(0x1bb)][_0x2e2203(0x1ed)][_0x2e2203(0x9d)](this['_compressMutationService']['interceptor'][_0x2e2203(0xa8)]()['COMPRESS_MUTATION_APPLY'])(_0xd30ef4['mutations'],null)||_0xd30ef4[_0x2e2203(0x487)];return{..._0xd30ef4,'mutations':_0x29d5b4};});this[_0x549419(0x4c8)](),this[_0x549419(0x133)](this[_0x549419(0x4c0)][_0x549419(0x39e)](_0x20f6ae)),this[_0x549419(0x42b)]();}['_toggleOffline'](){const _0x12bb5d=_0x18b736;this[_0x12bb5d(0x4c8)](),this[_0x12bb5d(0x133)](this[_0x12bb5d(0x4c0)][_0x12bb5d(0x27c)]()),this[_0x12bb5d(0x42b)]();}[_0x18b736(0x474)](_0x391ea1=!0x1){const _0x3cfe7e=_0x18b736;this[_0x3cfe7e(0x4c8)](),this[_0x3cfe7e(0x133)](this['_state']['toggleOnline']()),this[_0x3cfe7e(0x42b)]();const _0x195c53=this[_0x3cfe7e(0x4c0)];_0x391ea1&&_0x195c53 instanceof _0xd4e745&&(this[_0x3cfe7e(0x4c8)](),this[_0x3cfe7e(0x133)](_0x195c53[_0x3cfe7e(0x4d4)]()),this[_0x3cfe7e(0x42b)]());}async['_createInitialState'](){return new Promise(_0x564bee=>{const _0x49a73b=_0x3ebc;this['session']['sessionStatus$'][_0x49a73b(0x2fd)](_0xe9c73a[_0x49a73b(0x3f4)](0x1))[_0x49a73b(0xd1)](async _0x594b33=>{const _0x58c442=_0x49a73b;_0x564bee(await this['_createInitialStateImpl'](_0x594b33===_0x30eb01[_0x58c442(0x13b)]));});});}[_0x18b736(0x105)](){const _0x7b9fe1=_0x18b736,_0xadbcbf=this[_0x7b9fe1(0x39f)];return{'onStateChange':(_0x280f5e,_0x268d1e)=>{const _0x1cd4ca=_0x7b9fe1;if(_0x280f5e!==this[_0x1cd4ca(0x4c0)])throw new Error(_0x1cd4ca(0x121)+_0x280f5e[_0x1cd4ca(0x2de)]+_0x1cd4ca(0x232)+_0x268d1e['status']+_0x1cd4ca(0x1c1)+this[_0x1cd4ca(0x4c0)][_0x1cd4ca(0x2de)]);this[_0x1cd4ca(0x133)](_0x268d1e);},'onSendChangeset':_0x5e4e43=>{const _0x859df=_0x7b9fe1,_0x27c8c6={'eventID':_0x133afc[_0x859df(0x4b0)][_0x859df(0x3da)],'data':{'unitID':_0x5e4e43[_0x859df(0x39f)],'unitType':this[_0x859df(0x1b1)],'changeset':_0x5e4e43,'memberID':this[_0x859df(0x2ad)][_0x859df(0xb1)]()}};this[_0x859df(0x2ad)][_0x859df(0x21d)](_0x27c8c6,this[_0x859df(0x39f)]);},'onMissingChangesets':({from:_0x6f2e51,to:_0x14dae6})=>{const _0x47511a=_0x7b9fe1;this['_logService'][_0x47511a(0x3c3)](_0x47511a(0x259),_0x47511a(0x3a5)+_0x6f2e51+_0x47511a(0x303)+_0x14dae6);const _0x558ead={'eventID':_0x133afc[_0x47511a(0x4b0)][_0x47511a(0x22f)],'data':{'unitID':_0xadbcbf,'unitType':this[_0x47511a(0x1b1)],'from':_0x6f2e51,'to':_0x14dae6}};this[_0x47511a(0x2ad)][_0x47511a(0x21d)](_0x558ead,this[_0x47511a(0x39f)]);}};}async[_0x18b736(0x2cc)](_0x1c853b){const _0x5b1fd2=_0x18b736;var _0x2ab7b9,_0x2d54e5;const _0x47f9bb=await this['_localCacheService']['loadOfflineData'](this['unitID']),_0x5f0378=(_0x2ab7b9=_0x47f9bb==null?void 0x0:_0x47f9bb[_0x5b1fd2(0x487)])!=null?_0x2ab7b9:[],_0x2c2ec3=(_0x2d54e5=_0x47f9bb==null?void 0x0:_0x47f9bb[_0x5b1fd2(0x48f)])!=null?_0x2d54e5:null,_0x14dbc1=this[_0x5b1fd2(0x39f)];try{this[_0x5b1fd2(0x234)](_0x2c2ec3,_0x5f0378);}catch(_0x51aba3){this['_logService'][_0x5b1fd2(0x2e1)](_0x51aba3);}const _0x321820=this[_0x5b1fd2(0x105)]();if(_0x1c853b){const _0x84048d=_0x39d78a(this[_0x5b1fd2(0x19c)],_0x14dbc1,this['_type'],_0x2c2ec3,_0x5f0378,_0x321820);return _0x84048d instanceof _0x1fe818?_0x84048d[_0x5b1fd2(0xa0)]():(_0x84048d instanceof _0x7f909||_0x84048d instanceof _0x47fa35)&&_0x84048d[_0x5b1fd2(0xfd)](),_0x84048d;}return this[_0x5b1fd2(0x19c)][_0x5b1fd2(0x26a)](_0x1b657e,_0x14dbc1,this[_0x5b1fd2(0x1b1)],_0x2c2ec3,_0x5f0378,_0x321820);}[_0x18b736(0x234)](_0x291598,_0x54e2e5){const _0x46a192=_0x18b736;var _0x2c4412,_0x537747;const _0xb5b8b7=this['_compressMutationService'][_0x46a192(0x1ed)]['fetchThroughInterceptors'](this[_0x46a192(0x1bb)][_0x46a192(0x1ed)][_0x46a192(0xa8)]()[_0x46a192(0x37c)]);(_0x2c4412=_0xb5b8b7((_0x291598==null?void 0x0:_0x291598[_0x46a192(0x487)])||[],null))==null||_0x2c4412[_0x46a192(0x122)](_0xb9e7f3=>this[_0x46a192(0x10e)]['executeCommand'](_0xb9e7f3['id'],_0xb9e7f3[_0x46a192(0x13e)])),(_0x537747=_0xb5b8b7(_0x54e2e5||[],null))==null||_0x537747[_0x46a192(0x122)](_0x23d94b=>this[_0x46a192(0x10e)][_0x46a192(0x2fe)](_0x23d94b['id'],_0x23d94b[_0x46a192(0x13e)]));}},_0x18e336[_0x18b736(0x423)]=_0x578997([_0x4def86(0x3,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x382)])),_0x4def86(0x4,_0x52e410[_0x18b736(0xca)](_0x18e336[_0x18b736(0x495)])),_0x4def86(0x5,_0x52e410['Inject'](_0x133afc[_0x18b736(0xe7)])),_0x4def86(0x6,_0x52e410['Inject'](_0x52e410['LocaleService'])),_0x4def86(0x7,_0x52e410[_0x18b736(0xca)](_0x133afc[_0x18b736(0x229)])),_0x4def86(0x8,_0x52e410[_0x18b736(0x170)]),_0x4def86(0x9,_0x52e410[_0x18b736(0x406)]),_0x4def86(0xa,_0x4d3b05[_0x18b736(0x172)]),_0x4def86(0xb,_0x52e410['IPermissionService']),_0x4def86(0xc,_0x52e410['Optional'](_0x44fc1a))],_0x18e336[_0x18b736(0x423)]),_0x18e336['DocCollaborationEntity']=class extends _0x18e336[_0x18b736(0x423)]{constructor(_0x41afc0,_0x4bf8c2,_0x1f62a6,_0x75ecad,_0x29f7a3,_0x5787eb,_0x3a389c,_0x2571e8,_0x1b7466,_0x1c790d,_0x310bad,_0x5134e7,_0x2ef8d8,_0x4f80fd,_0x1e141c,_0x2e6b17,_0x7bb9da){const _0xdd244=_0x18b736;super(_0x41afc0,_0x1f62a6,_0x4bf8c2,_0x75ecad,_0x29f7a3,_0x5787eb,_0x3a389c,_0x2571e8,_0x2ef8d8,_0x4f80fd,_0x1e141c,_0x2e6b17,_0x7bb9da),this['unitID']=_0x41afc0,this[_0xdd244(0x2cd)]=_0x4bf8c2,this[_0xdd244(0x1e6)]=_0x1b7466,this[_0xdd244(0x2fb)]=_0x1c790d,this[_0xdd244(0x47d)]=_0x310bad,this[_0xdd244(0x2e9)]=_0x5134e7;}[_0x18b736(0x105)](){const _0x4ab797=_0x18b736,_0x280c93=super[_0x4ab797(0x105)]();return _0x280c93[_0x4ab797(0x1ec)]=_0x39a1f2=>this['_docTransformIMECacheService'][_0x4ab797(0x1df)](_0x39a1f2),_0x280c93[_0x4ab797(0x2c8)]=_0x48b2c7=>this['_docTransformSelectionsService']['transformSelections'](_0x48b2c7),_0x280c93[_0x4ab797(0x168)]=_0x2fef98=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x2fef98),_0x280c93[_0x4ab797(0x29d)]=_0x50e3f8=>this[_0x4ab797(0x2fb)][_0x4ab797(0xf6)](_0x50e3f8),_0x280c93;}async[_0x18b736(0x173)](){const _0x44d78a=_0x18b736,_0x107cb1=await super[_0x44d78a(0x173)]();return this[_0x44d78a(0x27b)](this[_0x44d78a(0x10e)]['onCommandExecuted']((_0x51c902,_0x387d21)=>{const _0x33b394=_0x44d78a;if(_0x51c902[_0x33b394(0x2cd)]!==_0x52e410[_0x33b394(0x4b3)][_0x33b394(0x243)]||_0x387d21!=null&&_0x387d21[_0x33b394(0x167)]||_0x387d21!=null&&_0x387d21[_0x33b394(0xff)])return;const _0x5e8e0b=_0x51c902['params'];if((_0x5e8e0b==null?void 0x0:_0x5e8e0b[_0x33b394(0x44d)])!==this[_0x33b394(0x39f)])return;let _0x72e0a6=_0x51c902;if(_0x72e0a6['id']===_0x1497bb[_0x33b394(0x30f)]['id']){const _0x42e0c0=_0x72e0a6[_0x33b394(0x13e)];_0x72e0a6={'id':_0x1497bb['RichTextEditingMutation']['id'],'type':_0x52e410[_0x33b394(0x4b3)]['MUTATION'],'params':{'unitId':_0x42e0c0[_0x33b394(0x44d)],'actions':_0x42e0c0[_0x33b394(0x453)],'textRanges':null}};}const _0x16aad7=this['_compressMutationService'][_0x33b394(0x1ed)][_0x33b394(0x9d)](this[_0x33b394(0x1bb)]['interceptor'][_0x33b394(0xa8)]()['COMPRESS_MUTATION_SEND'])([_0x72e0a6],null)||[_0x72e0a6];this[_0x33b394(0x36c)](_0x16aad7[0x0]);})),_0x107cb1;}},_0x18e336[_0x18b736(0x316)]=_0x578997([_0x4def86(0x3,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x382)])),_0x4def86(0x4,_0x52e410[_0x18b736(0xca)](_0x18e336[_0x18b736(0x495)])),_0x4def86(0x5,_0x52e410[_0x18b736(0xca)](_0x133afc[_0x18b736(0xe7)])),_0x4def86(0x6,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x4b7)])),_0x4def86(0x7,_0x52e410[_0x18b736(0xca)](_0x133afc[_0x18b736(0x229)])),_0x4def86(0x8,_0x52e410[_0x18b736(0xca)](_0x589b5b[_0x18b736(0x31e)])),_0x4def86(0x9,_0x52e410['Inject'](_0x563df6)),_0x4def86(0xa,_0x52e410[_0x18b736(0xca)](_0x217b10)),_0x4def86(0xb,_0x52e410[_0x18b736(0xca)](_0x3ca707)),_0x4def86(0xc,_0x52e410['ILogService']),_0x4def86(0xd,_0x52e410[_0x18b736(0x406)]),_0x4def86(0xe,_0x4d3b05[_0x18b736(0x172)]),_0x4def86(0xf,_0x52e410['IPermissionService']),_0x4def86(0x10,_0x52e410['Optional'](_0x44fc1a))],_0x18e336[_0x18b736(0x316)]),_0x18e336[_0x18b736(0x2cb)]=class extends _0x18e336[_0x18b736(0x423)]{constructor(_0x438f2a,_0x3a691f,_0xaed852,_0x4513c6,_0x49f8ca,_0x35d067,_0x4ea7dd,_0x35d15e,_0x2f53c6,_0x4dfb89,_0x260bc6,_0x22b1a3,_0x3605bc,_0x49b2ac){const _0x51e898=_0x18b736;super(_0x438f2a,_0xaed852,_0x3a691f,_0x4513c6,_0x49f8ca,_0x35d067,_0x4ea7dd,_0x35d15e,_0x4dfb89,_0x260bc6,_0x22b1a3,_0x3605bc,_0x49b2ac),this[_0x51e898(0x39f)]=_0x438f2a,this[_0x51e898(0x2cd)]=_0x3a691f,this[_0x51e898(0x120)]=_0x2f53c6;}[_0x18b736(0x105)](){const _0x3b5387=_0x18b736,_0x25ed4a=super[_0x3b5387(0x105)]();return _0x25ed4a['onTransformSelections']=_0xde1a=>this['_sheetTransformSelectionsService']['transformSelections'](_0xde1a),_0x25ed4a;}async[_0x18b736(0x173)](){const _0x1b9f18=_0x18b736,_0x1bf3f3=await super[_0x1b9f18(0x173)]();return this[_0x1b9f18(0x27b)](this[_0x1b9f18(0x10e)][_0x1b9f18(0x15d)]((_0x5da7e6,_0xde5365)=>{const _0x5f18cf=_0x1b9f18;if(_0x5da7e6[_0x5f18cf(0x2cd)]!==_0x52e410['CommandType'][_0x5f18cf(0x243)]||_0xde5365!=null&&_0xde5365[_0x5f18cf(0x167)]||_0xde5365!=null&&_0xde5365[_0x5f18cf(0xff)])return;const _0xe6723f=_0x5da7e6[_0x5f18cf(0x13e)];if((_0xe6723f==null?void 0x0:_0xe6723f[_0x5f18cf(0x44d)])!==this['unitID'])return;const _0x7fee1e=_0x5da7e6,_0x40d539=this[_0x5f18cf(0x1bb)][_0x5f18cf(0x1ed)][_0x5f18cf(0x9d)](this['_compressMutationService'][_0x5f18cf(0x1ed)][_0x5f18cf(0xa8)]()[_0x5f18cf(0x3bc)])([_0x7fee1e],null)||[_0x7fee1e];this[_0x5f18cf(0x36c)](_0x40d539[0x0]);})),_0x1bf3f3;}},_0x18e336[_0x18b736(0x2cb)]=_0x578997([_0x4def86(0x3,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x382)])),_0x4def86(0x4,_0x52e410['Inject'](_0x18e336[_0x18b736(0x495)])),_0x4def86(0x5,_0x52e410[_0x18b736(0xca)](_0x133afc[_0x18b736(0xe7)])),_0x4def86(0x6,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x4b7)])),_0x4def86(0x7,_0x52e410[_0x18b736(0xca)](_0x133afc[_0x18b736(0x229)])),_0x4def86(0x8,_0x52e410['Inject'](_0xfe8c3b)),_0x4def86(0x9,_0x52e410[_0x18b736(0x170)]),_0x4def86(0xa,_0x52e410[_0x18b736(0x406)]),_0x4def86(0xb,_0x4d3b05['IMessageService']),_0x4def86(0xc,_0x52e410['IPermissionService']),_0x4def86(0xd,_0x52e410['Optional'](_0x44fc1a))],_0x18e336[_0x18b736(0x2cb)]);var _0xee8aaa=Object[_0x18b736(0x180)],_0x24e38d=Object[_0x18b736(0x301)],_0x287858=(_0x2fa963,_0xadcf5,_0x187e08,_0xa1b7e8)=>{for(var _0x5e2b93=_0xa1b7e8>0x1?void 0x0:_0xa1b7e8?_0x24e38d(_0xadcf5,_0x187e08):_0xadcf5,_0x1449a2=_0x2fa963['length']-0x1,_0x30e9d7;_0x1449a2>=0x0;_0x1449a2--)(_0x30e9d7=_0x2fa963[_0x1449a2])&&(_0x5e2b93=(_0xa1b7e8?_0x30e9d7(_0xadcf5,_0x187e08,_0x5e2b93):_0x30e9d7(_0x5e2b93))||_0x5e2b93);return _0xa1b7e8&&_0x5e2b93&&_0xee8aaa(_0xadcf5,_0x187e08,_0x5e2b93),_0x5e2b93;},_0xc6abdf=(_0x5dd534,_0x282eee)=>(_0x10f650,_0x5907ae)=>_0x282eee(_0x10f650,_0x5907ae,_0x5dd534);_0x18e336[_0x18b736(0x46a)]=class extends _0x52e410[_0x18b736(0x3a3)]{constructor(_0x307e54,_0x194e26,_0x22f6d4){const _0x429688=_0x18b736;super(),_0x2dd6ee(this,'_entities',new Map()),_0x2dd6ee(this,_0x429688(0x3c9),new _0xe9c73a[(_0x429688(0x305))]()),(this[_0x429688(0x19c)]=_0x307e54,this[_0x429688(0x18d)]=_0x194e26,this[_0x429688(0xf5)]=_0x22f6d4,this[_0x429688(0x173)]());}[_0x18b736(0x44f)](){const _0xe3df43=_0x18b736;super[_0xe3df43(0x44f)](),this[_0xe3df43(0x2b7)]['forEach'](_0x464364=>_0x464364[_0xe3df43(0x44f)]()),this[_0xe3df43(0x2b7)]['clear']();}[_0x18b736(0x3b1)](_0x47421f){const _0x2cc213=_0x18b736;var _0x1defa4;return(_0x1defa4=this['_entities'][_0x2cc213(0xf2)](_0x47421f))!=null?_0x1defa4:null;}[_0x18b736(0x130)](_0x315c35){const _0x228ec3=_0x18b736,_0x58c3cd=this[_0x228ec3(0x3b1)](_0x315c35);return _0x58c3cd?_0xe9c73a['of'](_0x58c3cd):this[_0x228ec3(0x3c9)]['pipe'](_0x5a1ba2[_0x228ec3(0x1d4)](_0x498d31=>_0x498d31['unitID']===_0x315c35));}[_0x18b736(0x173)](){const _0x4d8e74=_0x18b736;this[_0x4d8e74(0xf5)][_0x4d8e74(0x418)](_0x52e410[_0x4d8e74(0x24c)][_0x4d8e74(0x14d)])[_0x4d8e74(0x2fd)](_0xe9c73a['takeUntil'](this[_0x4d8e74(0x32a)]),_0x5a1ba2[_0x4d8e74(0x15e)](0x10))[_0x4d8e74(0xd1)](async _0xfbd9fc=>{const _0x46b703=_0x4d8e74,_0x3932ea=_0xfbd9fc[_0x46b703(0x28b)](),_0x23e7e0=await this[_0x46b703(0x1f2)](_0x3932ea,_0xe94575[_0x46b703(0x14d)]);this[_0x46b703(0x2b7)]['set'](_0x3932ea,_0x23e7e0);}),this[_0x4d8e74(0xf5)][_0x4d8e74(0x418)](_0x52e410[_0x4d8e74(0x24c)][_0x4d8e74(0x1c5)])[_0x4d8e74(0x2fd)](_0xe9c73a[_0x4d8e74(0x2ee)](this['dispose$']),_0x5a1ba2[_0x4d8e74(0x15e)](0x10))[_0x4d8e74(0x2fd)](_0x5a1ba2[_0x4d8e74(0x1d4)](_0x4bd258=>!_0x4bd258['getUnitId']()[_0x4d8e74(0xc9)]('__')))['subscribe'](async _0x590d7f=>{const _0x431e4f=_0x4d8e74,_0x6852b1=_0x590d7f['getUnitId'](),_0x942068=await this[_0x431e4f(0x1f2)](_0x6852b1,_0xe94575[_0x431e4f(0x1c5)]);this[_0x431e4f(0x2b7)][_0x431e4f(0x1e3)](_0x6852b1,_0x942068);}),_0xe9c73a[_0x4d8e74(0x3be)](this[_0x4d8e74(0xf5)][_0x4d8e74(0x278)](_0x52e410[_0x4d8e74(0x24c)][_0x4d8e74(0x14d)]),this[_0x4d8e74(0xf5)]['getTypeOfUnitDisposed$'](_0x52e410[_0x4d8e74(0x24c)][_0x4d8e74(0x1c5)]))[_0x4d8e74(0x2fd)](_0xe9c73a[_0x4d8e74(0x2ee)](this['dispose$']))[_0x4d8e74(0xd1)](_0x44ef75=>{const _0x110125=_0x4d8e74,_0x17c7a9=_0x44ef75['getUnitId'](),_0x1b4803=this[_0x110125(0x2b7)][_0x110125(0xf2)](_0x17c7a9);_0x1b4803&&(_0x1b4803['dispose'](),this[_0x110125(0x2b7)][_0x110125(0x368)](_0x17c7a9));});}async[_0x18b736(0x1f2)](_0x218f7b,_0x3c620c){const _0x3c1728=_0x18b736,_0x3f8409=await this[_0x3c1728(0x18d)][_0x3c1728(0x31c)](_0x218f7b),_0x431c27=this[_0x3c1728(0x19c)][_0x3c1728(0x26a)](this['_getCtorByUniverType'](_0x3c620c),_0x218f7b,_0x3c620c,_0x3f8409);return await _0x431c27[_0x3c1728(0x359)](),this['_entityInit$'][_0x3c1728(0x3fa)](_0x431c27),_0x431c27;}[_0x18b736(0x3b9)](_0x57f2f3){const _0x46f33e=_0x18b736;switch(_0x57f2f3){case _0xe94575['UNIVER_DOC']:return _0x18e336['DocCollaborationEntity'];case _0xe94575['UNIVER_SHEET']:return _0x18e336[_0x46f33e(0x2cb)];default:throw new Error(_0x46f33e(0x30a)+_0x57f2f3);}}},_0x18e336[_0x18b736(0x46a)]=_0x287858([_0xc6abdf(0x0,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x382)])),_0xc6abdf(0x1,_0x52e410['Inject'](_0x18e336['CollaborationSessionService'])),_0xc6abdf(0x2,_0x52e410[_0x18b736(0x1de)])],_0x18e336[_0x18b736(0x46a)]);const _0x1cfe77=[_0x18b736(0x171),_0x18b736(0x4a4),_0x18b736(0x41d),_0x18b736(0x211),_0x18b736(0x1dd),_0x18b736(0x488)];class _0x36817f extends _0x52e410[_0x18b736(0x174)]{constructor(){const _0x20cfcc=_0x18b736;super(...arguments),_0x2dd6ee(this,_0x20cfcc(0xcc),new Map()),_0x2dd6ee(this,_0x20cfcc(0x3d6),0x0);}[_0x18b736(0x4c5)](_0x20f5c2){const _0x2a22fa=_0x18b736;if(this[_0x2a22fa(0xcc)][_0x2a22fa(0x486)](_0x20f5c2))return this[_0x2a22fa(0xcc)]['get'](_0x20f5c2);const _0xd58b16=_0x1cfe77[this['_colorIndex']];return this[_0x2a22fa(0x3d6)]=(this[_0x2a22fa(0x3d6)]+0x1)%_0x1cfe77[_0x2a22fa(0x1bc)],this['_assignedColors'][_0x2a22fa(0x1e3)](_0x20f5c2,_0xd58b16),_0xd58b16;}}var _0x58fd23=Object[_0x18b736(0x180)],_0x1ad608=Object[_0x18b736(0x301)],_0x3aed35=(_0x139bec,_0xec92d2,_0x5d0560,_0x2fa967)=>{for(var _0xdb71f8=_0x2fa967>0x1?void 0x0:_0x2fa967?_0x1ad608(_0xec92d2,_0x5d0560):_0xec92d2,_0x38db3f=_0x139bec['length']-0x1,_0x22732d;_0x38db3f>=0x0;_0x38db3f--)(_0x22732d=_0x139bec[_0x38db3f])&&(_0xdb71f8=(_0x2fa967?_0x22732d(_0xec92d2,_0x5d0560,_0xdb71f8):_0x22732d(_0xdb71f8))||_0xdb71f8);return _0x2fa967&&_0xdb71f8&&_0x58fd23(_0xec92d2,_0x5d0560,_0xdb71f8),_0xdb71f8;},_0x3121ed=(_0x322757,_0x57e08f)=>(_0x433acf,_0x4d7bbe)=>_0x57e08f(_0x433acf,_0x4d7bbe,_0x322757);const _0x4bfa45=0x12c,_0x4d5d2f=0x64;let _0x59e569=class extends _0x52e410[_0x18b736(0x3a3)]{constructor(_0x1454f6,_0x28cfe1,_0x596e5c,_0x343e78,_0x2e0eee,_0x4d7296,_0x12e1ec,_0x4d0c0f,_0x2f6e60){const _0x37ece6=_0x18b736;super(),_0x2dd6ee(this,_0x37ece6(0x17f),!0x1),_0x2dd6ee(this,'_init',!0x1),_0x2dd6ee(this,_0x37ece6(0x3c1),new _0xe9c73a['BehaviorSubject'](new Map())),_0x2dd6ee(this,_0x37ece6(0x33d),this[_0x37ece6(0x3c1)]['asObservable']()),_0x2dd6ee(this,_0x37ece6(0x3ac),new _0xe9c73a[(_0x37ece6(0x2ef))]([])),_0x2dd6ee(this,_0x37ece6(0x36b),this[_0x37ece6(0x3ac)][_0x37ece6(0x2fd)](_0xe9c73a[_0x37ece6(0x3f8)](_0x4bfa45))),_0x2dd6ee(this,_0x37ece6(0x447),_0x52e410['debounce'](_0x26ca9d=>{const _0xcf8e9b=_0x37ece6,_0x5411d8={'eventID':_0x133afc[_0xcf8e9b(0x4b0)][_0xcf8e9b(0xf3)],'data':{'unitID':this['unitID'],'memberID':this[_0xcf8e9b(0x16a)]['getMemberID'](),'selection':_0x564c2f(_0x26ca9d)}};this['_session'][_0xcf8e9b(0x21d)](_0x5411d8,this[_0xcf8e9b(0x39f)]);},_0x4d5d2f)),(this['unitID']=_0x1454f6,this[_0x37ece6(0x16a)]=_0x28cfe1,this[_0x37ece6(0x19c)]=_0x596e5c,this[_0x37ece6(0x1c0)]=_0x343e78,this[_0x37ece6(0x106)]=_0x2e0eee,this[_0x37ece6(0x1d6)]=_0x4d7296,this[_0x37ece6(0x3b5)]=_0x12e1ec,this[_0x37ece6(0xf5)]=_0x4d0c0f,this[_0x37ece6(0x10e)]=_0x2f6e60);}get[_0x18b736(0x10f)](){const _0x5befcd=_0x18b736;return this['_cursorInfo$'][_0x5befcd(0x200)]();}get[_0x18b736(0xa6)](){const _0x2501a4=_0x18b736;return this[_0x2501a4(0x3ac)][_0x2501a4(0x200)]();}[_0x18b736(0x44f)](){const _0x1d1a1f=_0x18b736;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x1d1a1f(0x32f)](),this[_0x1d1a1f(0x3ac)][_0x1d1a1f(0x3fa)]([]),this[_0x1d1a1f(0x3ac)]['complete']();}[_0x18b736(0x359)](){const _0x426828=_0x18b736;this['_init']||(this[_0x426828(0x173)]=!0x0,this[_0x426828(0x16a)][_0x426828(0x12a)]['pipe'](_0xe9c73a['takeUntil'](this['dispose$']))[_0x426828(0xd1)](_0x1a4f6d=>{const _0x215d71=_0x426828;_0x1a4f6d===_0x30eb01['ONLINE']?this[_0x215d71(0x474)]():this[_0x215d71(0x441)]();}),this[_0x426828(0x16a)][_0x426828(0x35e)]['pipe'](_0xe9c73a[_0x426828(0x2ee)](this[_0x426828(0x32a)]))[_0x426828(0xd1)](_0x2e3b59=>{const _0xe5004d=_0x426828,_0x30a5ac=_0x2e3b59[_0xe5004d(0xbb)];_0x30a5ac===_0x133afc[_0xe5004d(0x4b0)][_0xe5004d(0xf3)]&&this[_0xe5004d(0x2af)](_0x2e3b59),_0x30a5ac===_0x133afc['CollaborationEvent']['USERS_LEAVE']&&this[_0xe5004d(0xdb)](_0x2e3b59);}),this[_0x426828(0x27b)](this[_0x426828(0x10e)][_0x426828(0x15d)](_0x9ff54d=>{const _0x1ff82f=_0x426828,_0x49c5cf=_0x9ff54d['params'];_0x49c5cf!=null&&this[_0x1ff82f(0x17f)]&&_0x9ff54d['id']===_0x1497bb[_0x1ff82f(0x427)]['id']&&_0x49c5cf[_0x1ff82f(0x44d)]===this[_0x1ff82f(0x39f)]&&_0x49c5cf[_0x1ff82f(0x321)]===!0x1&&this[_0x1ff82f(0x447)](_0x49c5cf['ranges']);})),this[_0x426828(0x1d6)][_0x426828(0x2be)][_0x426828(0x2fd)](_0xe9c73a[_0x426828(0x2ee)](this[_0x426828(0x32a)]))['subscribe'](_0x2a7022=>{const _0x3ec5aa=_0x426828;if((_0x2a7022==null?void 0x0:_0x2a7022[_0x3ec5aa(0x39f)])!==this[_0x3ec5aa(0x39f)])return;const _0x10e6d0={'eventID':_0x133afc['CollaborationEvent'][_0x3ec5aa(0xf3)],'data':_0x2a7022};this[_0x3ec5aa(0x2af)](_0x10e6d0);}),this[_0x426828(0x27b)](this[_0x426828(0x10e)][_0x426828(0x15d)](_0x35a852=>{const _0x13cde5=_0x426828;if(_0x35a852[_0x13cde5(0x13e)]==null)return;const _0x5eb0d8=_0x35a852[_0x13cde5(0x13e)];if(_0x35a852['id']!==_0x1497bb['RichTextEditingMutation']['id']||_0x5eb0d8[_0x13cde5(0x44d)]!==this[_0x13cde5(0x39f)])return;const _0x42ca25={'id':_0x13cde5(0x2eb),'params':_0x5eb0d8},_0x6184ab=this['cursorInfo'];for(const [_0x5ba548,_0x2983af]of _0x6184ab){const _0x2a75a6={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2983af[_0x13cde5(0x4c4)]}},_0x5a3593=this[_0x13cde5(0x3b5)][_0x13cde5(0x2f1)](_0x42ca25,_0x2a75a6,!0x1);if(_0x133afc[_0x13cde5(0x420)](_0x5a3593))throw _0x5a3593[_0x13cde5(0x2e1)];_0x6184ab[_0x13cde5(0x1e3)](_0x5ba548,{..._0x2983af,'ranges':_0x5a3593[_0x13cde5(0x1fa)][_0x13cde5(0x13e)][_0x13cde5(0x2ac)]});}queueMicrotask(()=>{const _0xab50a9=_0x13cde5;this[_0xab50a9(0x3c1)][_0xab50a9(0x3fa)](_0x6184ab);});})));}['_onCursorUpdate'](_0x1d87df){const _0x389c51=_0x18b736;var _0x47077e,_0x2b4aaf;const {memberID:_0x421f90,selection:_0x1e6027}=_0x1d87df['data'],_0x172087=_0x4ac9a8(_0x1e6027),_0x359020=(_0x2b4aaf=(_0x47077e=this[_0x389c51(0x106)]['getMember'](this[_0x389c51(0x39f)],_0x421f90))==null?void 0x0:_0x47077e[_0x389c51(0x165)])!=null?_0x2b4aaf:_0x389c51(0x1d2),_0x4f2327={'color':this[_0x389c51(0x1c0)][_0x389c51(0x4c5)](_0x421f90),'name':_0x359020,'ranges':_0x172087},_0xea6743=this['cursorInfo'];_0xea6743['set'](_0x421f90,_0x4f2327),this[_0x389c51(0x3c1)][_0x389c51(0x3fa)](_0xea6743);}[_0x18b736(0xdb)](_0x1fa5ab){const _0xd3578=_0x18b736,{memberID:_0x5b2e5f}=_0x1fa5ab[_0xd3578(0x355)],_0x10087f=this[_0xd3578(0x10f)];_0x10087f[_0xd3578(0x368)](_0x5b2e5f),this[_0xd3578(0x3c1)][_0xd3578(0x3fa)](_0x10087f);}[_0x18b736(0x474)](){const _0x2aadcb=_0x18b736;var _0x4425da;if(this[_0x2aadcb(0x17f)]=!0x0,((_0x4425da=this[_0x2aadcb(0xf5)][_0x2aadcb(0x36a)]())==null?void 0x0:_0x4425da[_0x2aadcb(0x28b)]())!==this['unitID'])return;const _0x523305=this['_injector']['get'](_0x1497bb[_0x2aadcb(0xd2)])[_0x2aadcb(0x463)]();Array[_0x2aadcb(0x424)](_0x523305)&&_0x523305[_0x2aadcb(0x1bc)]>0x0&&this['_updateLocalCursor'](_0x523305);}[_0x18b736(0x441)](){this['_online']=!0x1;}};_0x59e569=_0x3aed35([_0x3121ed(0x2,_0x52e410['Inject'](_0x52e410['Injector'])),_0x3121ed(0x3,_0x52e410[_0x18b736(0xca)](_0x36817f)),_0x3121ed(0x4,_0x52e410[_0x18b736(0xca)](_0xc4e50a)),_0x3121ed(0x5,_0x52e410['Inject'](_0x3ca707)),_0x3121ed(0x6,_0x133afc[_0x18b736(0xfa)]),_0x3121ed(0x7,_0x52e410['IUniverInstanceService']),_0x3121ed(0x8,_0x52e410[_0x18b736(0x406)])],_0x59e569);var _0x3b3ded=Object[_0x18b736(0x180)],_0xb95b84=Object[_0x18b736(0x301)],_0x51d61a=(_0x35ea03,_0x4eec22,_0x41ff99,_0x3a4eb3)=>{const _0x593483=_0x18b736;for(var _0x4bcf39=_0x3a4eb3>0x1?void 0x0:_0x3a4eb3?_0xb95b84(_0x4eec22,_0x41ff99):_0x4eec22,_0x42d152=_0x35ea03[_0x593483(0x1bc)]-0x1,_0x14c240;_0x42d152>=0x0;_0x42d152--)(_0x14c240=_0x35ea03[_0x42d152])&&(_0x4bcf39=(_0x3a4eb3?_0x14c240(_0x4eec22,_0x41ff99,_0x4bcf39):_0x14c240(_0x4bcf39))||_0x4bcf39);return _0x3a4eb3&&_0x4bcf39&&_0x3b3ded(_0x4eec22,_0x41ff99,_0x4bcf39),_0x4bcf39;},_0x2189b1=(_0x6ac84e,_0xaf4d7c)=>(_0x2158da,_0x15cfc5)=>_0xaf4d7c(_0x2158da,_0x15cfc5,_0x6ac84e);const _0x24feec=0x12c,_0x3c6c02=0x64,_0x1e7ce8=()=>{let _0x5da4e9=[],_0x38e76d=!0x1;return _0x424a1f=>{const _0x70a624=_0x3ebc;_0x5da4e9[_0x70a624(0x2da)](_0x424a1f),_0x38e76d||(_0x38e76d=!0x0,setTimeout(()=>{const _0x572f70=_0x70a624;_0x5da4e9[_0x572f70(0x122)](_0x4eae20=>_0x4eae20()),_0x5da4e9=[],_0x38e76d=!0x1;}));};};let _0x176198=class extends _0x52e410[_0x18b736(0x3a3)]{constructor(_0x4fc7a0,_0x34961,_0x5b69f0,_0x4fce63,_0x2ff6b1,_0x530f12,_0x158141,_0x1381a8){const _0x1f42d2=_0x18b736;super(),_0x2dd6ee(this,_0x1f42d2(0x17f),!0x1),_0x2dd6ee(this,_0x1f42d2(0x173),!0x1),_0x2dd6ee(this,_0x1f42d2(0x3c1),new _0xe9c73a[(_0x1f42d2(0x2ef))](new Map())),_0x2dd6ee(this,_0x1f42d2(0x33d),this[_0x1f42d2(0x3c1)]['asObservable']()),_0x2dd6ee(this,_0x1f42d2(0x3ac),new _0xe9c73a[(_0x1f42d2(0x2ef))]([])),_0x2dd6ee(this,'roomMembers$',this['_roomMembers$'][_0x1f42d2(0x2fd)](_0xe9c73a[_0x1f42d2(0x3f8)](_0x24feec))),_0x2dd6ee(this,_0x1f42d2(0x447),_0x52e410[_0x1f42d2(0x1d0)]((_0x3a6845,_0x2350d8)=>{const _0x1d73c8=_0x1f42d2,_0x5de3a5={'eventID':_0x133afc[_0x1d73c8(0x4b0)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1d73c8(0x39f)],'memberID':this[_0x1d73c8(0x16a)]['getMemberID'](),'selection':_0x4281cc['serializeRangeWithSheet'](_0x3a6845,_0x2350d8[_0x1d73c8(0x384)])}};this['_session'][_0x1d73c8(0x21d)](_0x5de3a5,this['unitID']);},_0x3c6c02)),(this[_0x1f42d2(0x39f)]=_0x4fc7a0,this[_0x1f42d2(0x16a)]=_0x34961,this[_0x1f42d2(0x19c)]=_0x5b69f0,this['_colorAssignService']=_0x4fce63,this[_0x1f42d2(0x106)]=_0x2ff6b1,this[_0x1f42d2(0xf5)]=_0x530f12,this['_commandService']=_0x158141,this[_0x1f42d2(0x360)]=_0x1381a8);}get[_0x18b736(0x10f)](){const _0x5e63d3=_0x18b736;return this[_0x5e63d3(0x3c1)]['getValue']();}get[_0x18b736(0xa6)](){const _0x259452=_0x18b736;return this[_0x259452(0x3ac)][_0x259452(0x200)]();}['dispose'](){const _0x2d3cfe=_0x18b736;super[_0x2d3cfe(0x44f)](),this[_0x2d3cfe(0x3c1)]['next'](new Map()),this[_0x2d3cfe(0x3c1)][_0x2d3cfe(0x32f)](),this['_roomMembers$']['next']([]),this[_0x2d3cfe(0x3ac)][_0x2d3cfe(0x32f)]();}[_0x18b736(0x359)](){const _0x5c9f50=_0x18b736;this[_0x5c9f50(0x173)]||(this[_0x5c9f50(0x173)]=!0x0,this[_0x5c9f50(0x16a)][_0x5c9f50(0x12a)][_0x5c9f50(0x2fd)](_0xe9c73a[_0x5c9f50(0x2ee)](this[_0x5c9f50(0x32a)]))[_0x5c9f50(0xd1)](_0x75a325=>{const _0x2db826=_0x5c9f50;_0x75a325===_0x30eb01[_0x2db826(0x13b)]?this[_0x2db826(0x474)]():this[_0x2db826(0x441)]();}),this[_0x5c9f50(0x16a)]['event$'][_0x5c9f50(0x2fd)](_0xe9c73a[_0x5c9f50(0x2ee)](this['dispose$']))[_0x5c9f50(0xd1)](_0x4dc9a3=>{const _0x3c7444=_0x5c9f50,_0x36baef=_0x4dc9a3[_0x3c7444(0xbb)];_0x36baef===_0x133afc[_0x3c7444(0x4b0)][_0x3c7444(0xf3)]&&this[_0x3c7444(0x2af)](_0x4dc9a3),_0x36baef===_0x133afc[_0x3c7444(0x4b0)][_0x3c7444(0x25d)]&&this[_0x3c7444(0xdb)](_0x4dc9a3);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x18344f=>{const _0x35792e=_0x5c9f50;if(this['_online']&&_0x18344f['id']===_0x547cac['SetSelectionsOperation']['id']&&_0x18344f[_0x35792e(0x13e)][_0x35792e(0x44d)]===this[_0x35792e(0x39f)]){const _0x3a9a33=_0x18344f[_0x35792e(0x13e)];this[_0x35792e(0x447)](_0x3a9a33[_0x35792e(0xee)],_0x3a9a33[_0x35792e(0x41b)][0x0]);}})));}[_0x18b736(0x2af)](_0x36c35b){const _0x2efb55=_0x18b736;var _0x15911c,_0x589a34;const {memberID:_0x8fa584,selection:_0x12e38d}=_0x36c35b[_0x2efb55(0x355)],{sheetName:_0x1f9d0e,range:_0x8601cb}=_0x4281cc[_0x2efb55(0x2b0)](_0x12e38d),_0x5565cb={'name':(_0x589a34=(_0x15911c=this[_0x2efb55(0x106)]['getMember'](this[_0x2efb55(0x39f)],_0x8fa584))==null?void 0x0:_0x15911c[_0x2efb55(0x165)])!=null?_0x589a34:_0x2efb55(0x1d2),'range':this[_0x2efb55(0x187)](_0x1f9d0e,_0x8601cb),'sheetID':_0x1f9d0e,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x8fa584),'selection':_0x12e38d},_0x6dc016=this['cursorInfo'];_0x6dc016[_0x2efb55(0x1e3)](_0x8fa584,_0x5565cb),this['_cursorInfo$'][_0x2efb55(0x3fa)](_0x6dc016);}['_onCursorDelete'](_0x2df689){const _0x4a1c9e=_0x18b736,{memberID:_0x5c6e05}=_0x2df689[_0x4a1c9e(0x355)],_0x1fa6bd=this[_0x4a1c9e(0x10f)];_0x1fa6bd['delete'](_0x5c6e05),this[_0x4a1c9e(0x3c1)][_0x4a1c9e(0x3fa)](_0x1fa6bd);}['_getMergeRange'](_0x36de99,_0x112ff5){const _0x5360dd=_0x18b736;var _0xa45816,_0x4a8691;const _0x1abd59=(_0x4a8691=(_0xa45816=this[_0x5360dd(0xf5)][_0x5360dd(0x1a0)](this[_0x5360dd(0x39f)]))==null?void 0x0:_0xa45816[_0x5360dd(0x274)](_0x36de99))==null?void 0x0:_0x4a8691[_0x5360dd(0x111)]();return(_0x1abd59==null?void 0x0:_0x1abd59[_0x5360dd(0x1f8)](_0x317a6b=>_0x52e410[_0x5360dd(0x458)][_0x5360dd(0x28f)](_0x317a6b,_0x112ff5)))||_0x112ff5;}[_0x18b736(0x446)](){const _0x440622=_0x18b736,_0x39aaca=new _0x52e410[(_0x440622(0x24a))](),_0x401533=_0x1e7ce8(),_0x58116b=()=>{const _0x4a67ec=_0x440622;_0x39aaca[_0x4a67ec(0x44f)]();const _0x373688=(_0x5c7500,_0x424c9d,_0x193720,_0x43ae5b)=>{const _0x27bf70=_0x4a67ec;let _0x34ddae=[];switch(_0x5c7500['id']){case _0x547cac[_0x27bf70(0x320)][_0x27bf70(0x176)]:{_0x34ddae=_0x547cac[_0x27bf70(0x452)](_0x5c7500,_0x43ae5b);break;}case _0x547cac[_0x27bf70(0x320)]['DeleteRangeMoveUpCommandId']:{_0x34ddae=_0x547cac[_0x27bf70(0x42a)](_0x5c7500,_0x43ae5b);break;}case _0x547cac['EffectRefRangId'][_0x27bf70(0x9c)]:{_0x34ddae=_0x547cac[_0x27bf70(0xf0)](_0x5c7500,_0x43ae5b);break;}case _0x547cac[_0x27bf70(0x320)][_0x27bf70(0xb7)]:{_0x34ddae=_0x547cac[_0x27bf70(0x347)](_0x5c7500,_0x43ae5b);break;}case _0x547cac[_0x27bf70(0x320)][_0x27bf70(0x209)]:{_0x34ddae=_0x547cac[_0x27bf70(0x376)](_0x5c7500,_0x43ae5b);break;}case _0x547cac[_0x27bf70(0x320)]['InsertRowCommandId']:{_0x34ddae=_0x547cac['handleInsertRow'](_0x5c7500,_0x43ae5b);break;}case _0x547cac['EffectRefRangId'][_0x27bf70(0xa2)]:{_0x34ddae=_0x547cac['handleMoveRange'](_0x5c7500,_0x43ae5b);break;}case _0x547cac[_0x27bf70(0x320)][_0x27bf70(0x19d)]:{_0x34ddae=_0x547cac['handleIRemoveCol'](_0x5c7500,_0x43ae5b);break;}case _0x547cac[_0x27bf70(0x320)][_0x27bf70(0x99)]:{_0x34ddae=_0x547cac[_0x27bf70(0x1ea)](_0x5c7500,_0x43ae5b);break;}}const _0x3a1467=_0x547cac[_0x27bf70(0x162)](_0x34ddae,_0x43ae5b),_0x24da0c=this[_0x27bf70(0x10f)][_0x27bf70(0xf2)](_0x424c9d);if(_0x24da0c&&_0x3a1467){const _0x229b02={..._0x24da0c,'range':_0x3a1467};this[_0x27bf70(0x10f)][_0x27bf70(0x1e3)](_0x424c9d,_0x229b02),_0x401533(()=>{const _0x4edd91=_0x27bf70,_0x345d40=this[_0x4edd91(0x360)][_0x4edd91(0x154)](_0x3a1467,_0x48031f=>(_0x345d40[_0x4edd91(0x44f)](),_0x373688(_0x48031f,_0x424c9d,_0x193720,_0x3a1467)));_0x39aaca[_0x4edd91(0x151)](_0x345d40);});}return{'redos':[],'undos':[]};};this[_0x4a67ec(0x10f)][_0x4a67ec(0x122)]((_0x46928c,_0x273e8f)=>{const _0x3a3298=_0x4a67ec,{range:_0x130f5f,sheetID:_0x13d8b2}=_0x46928c,_0x2ef2a6=this[_0x3a3298(0x360)][_0x3a3298(0x154)](_0x130f5f,_0x25f7b6=>(_0x2ef2a6[_0x3a3298(0x44f)](),_0x373688(_0x25f7b6,_0x273e8f,_0x13d8b2,_0x130f5f)));_0x39aaca[_0x3a3298(0x151)](_0x2ef2a6);});};this[_0x440622(0x27b)](_0x52e410[_0x440622(0x13c)](this[_0x440622(0x3c1)][_0x440622(0xd1)](()=>{_0x58116b();})));}[_0x18b736(0x474)](){const _0x170306=_0x18b736;var _0x184744,_0x193c82;if(this[_0x170306(0x17f)]=!0x0,((_0x184744=this[_0x170306(0xf5)][_0x170306(0x36a)]())==null?void 0x0:_0x184744[_0x170306(0x28b)]())!==this[_0x170306(0x39f)])return;const _0x5e3dc7=(_0x193c82=this['_injector'][_0x170306(0xf2)](_0x547cac[_0x170306(0x221)])[_0x170306(0x46b)]())==null?void 0x0:_0x193c82[0x0],_0x4828a4=this['_univerInstanceService']['getCurrentUnitForType'](_0x52e410[_0x170306(0x24c)][_0x170306(0x14d)])[_0x170306(0x33a)]();_0x5e3dc7&&_0x4828a4&&this[_0x170306(0x447)](_0x4828a4[_0x170306(0x27a)](),_0x5e3dc7);}[_0x18b736(0x441)](){const _0x4db9b9=_0x18b736;this[_0x4db9b9(0x17f)]=!0x1;}};_0x176198=_0x51d61a([_0x2189b1(0x2,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x382)])),_0x2189b1(0x3,_0x52e410[_0x18b736(0xca)](_0x36817f)),_0x2189b1(0x4,_0x52e410[_0x18b736(0xca)](_0xc4e50a)),_0x2189b1(0x5,_0x52e410[_0x18b736(0x1de)]),_0x2189b1(0x6,_0x52e410[_0x18b736(0x406)]),_0x2189b1(0x7,_0x52e410[_0x18b736(0xca)](_0x547cac[_0x18b736(0x16c)]))],_0x176198);var _0x59872e=Object['defineProperty'],_0x640e92=Object[_0x18b736(0x301)],_0x150538=(_0x3ffff7,_0x475530,_0x57d5a4,_0x362cd2)=>{const _0x52f0ba=_0x18b736;for(var _0xaf85c1=_0x362cd2>0x1?void 0x0:_0x362cd2?_0x640e92(_0x475530,_0x57d5a4):_0x475530,_0x431da7=_0x3ffff7[_0x52f0ba(0x1bc)]-0x1,_0x88b306;_0x431da7>=0x0;_0x431da7--)(_0x88b306=_0x3ffff7[_0x431da7])&&(_0xaf85c1=(_0x362cd2?_0x88b306(_0x475530,_0x57d5a4,_0xaf85c1):_0x88b306(_0xaf85c1))||_0xaf85c1);return _0x362cd2&&_0xaf85c1&&_0x59872e(_0x475530,_0x57d5a4,_0xaf85c1),_0xaf85c1;},_0x53ec15=(_0x59a3b3,_0x4c065d)=>(_0x52767e,_0x182726)=>_0x4c065d(_0x52767e,_0x182726,_0x59a3b3);let _0x5e01a2=class extends _0x52e410['RxDisposable']{constructor(_0xacf4f8,_0x710f82,_0x44bd93){const _0x2bf99d=_0x18b736;super(),_0x2dd6ee(this,'_entities',new Map()),_0x2dd6ee(this,_0x2bf99d(0x3c9),new _0xe9c73a[(_0x2bf99d(0x305))]()),(this[_0x2bf99d(0xf5)]=_0xacf4f8,this['_injector']=_0x710f82,this[_0x2bf99d(0x18d)]=_0x44bd93,this[_0x2bf99d(0x173)]());}['dispose'](){const _0x2928cf=_0x18b736;super['dispose'](),this[_0x2928cf(0x3c9)]['complete'](),this[_0x2928cf(0x2b7)][_0x2928cf(0x122)](_0x149937=>_0x149937[_0x2928cf(0x44f)]());}[_0x18b736(0xdd)](_0x3c1607){const _0x6c5146=_0x18b736;return this[_0x6c5146(0x2b7)][_0x6c5146(0x486)](_0x3c1607)?this['_entities'][_0x6c5146(0xf2)](_0x3c1607)[_0x6c5146(0x33d)]:this['_entityInit$'][_0x6c5146(0x2fd)](_0xe9c73a[_0x6c5146(0x1d4)](_0x2b3edc=>_0x2b3edc[_0x6c5146(0x39f)]===_0x3c1607),_0xe9c73a[_0x6c5146(0x23d)](_0x1a2c33=>_0x1a2c33[_0x6c5146(0x33d)]));}[_0x18b736(0x173)](){const _0x31131b=_0x18b736;this[_0x31131b(0xf5)][_0x31131b(0x418)](_0x52e410[_0x31131b(0x24c)][_0x31131b(0x14d)])[_0x31131b(0x2fd)](_0xe9c73a['takeUntil'](this[_0x31131b(0x32a)]))[_0x31131b(0xd1)](async _0x4b7e9c=>{const _0x1e0f1c=_0x31131b,_0x570708=_0x4b7e9c[_0x1e0f1c(0x28b)](),_0x71ba27=await this[_0x1e0f1c(0x3b6)](_0x570708);this[_0x1e0f1c(0x3c9)][_0x1e0f1c(0x3fa)](_0x71ba27),this[_0x1e0f1c(0x2b7)][_0x1e0f1c(0x1e3)](_0x570708,_0x71ba27);}),this['_univerInstanceService'][_0x31131b(0x418)](_0x52e410[_0x31131b(0x24c)][_0x31131b(0x1c5)])[_0x31131b(0x2fd)](_0xe9c73a[_0x31131b(0x2ee)](this[_0x31131b(0x32a)]))[_0x31131b(0x2fd)](_0xe9c73a[_0x31131b(0x1d4)](_0x1f1446=>!_0x1f1446[_0x31131b(0x28b)]()[_0x31131b(0xc9)]('__')))['subscribe'](async _0x317096=>{const _0x30724a=_0x31131b,_0x84ae97=_0x317096['getUnitId'](),_0x4e8208=await this[_0x30724a(0x3ad)](_0x84ae97);this[_0x30724a(0x3c9)][_0x30724a(0x3fa)](_0x4e8208),this[_0x30724a(0x2b7)]['set'](_0x84ae97,_0x4e8208);}),_0xe9c73a['merge'](this[_0x31131b(0xf5)][_0x31131b(0x278)](_0x52e410['UniverInstanceType'][_0x31131b(0x1c5)]),this[_0x31131b(0xf5)]['getTypeOfUnitDisposed$'](_0x52e410[_0x31131b(0x24c)][_0x31131b(0x14d)]))[_0x31131b(0x2fd)](_0xe9c73a[_0x31131b(0x2ee)](this[_0x31131b(0x32a)]))[_0x31131b(0xd1)](_0x3c5816=>{const _0x236524=_0x31131b,_0x4871c5=_0x3c5816['getUnitId'](),_0x147426=this[_0x236524(0x2b7)][_0x236524(0xf2)](_0x4871c5);_0x147426&&(_0x147426[_0x236524(0x44f)](),this[_0x236524(0x2b7)][_0x236524(0x368)](_0x4871c5));});}async[_0x18b736(0x3b6)](_0x27ed1b){const _0x59e563=_0x18b736,_0x169667=await this[_0x59e563(0x18d)]['requireSession'](_0x27ed1b),_0x469ee7=this[_0x59e563(0x19c)][_0x59e563(0x26a)](_0x176198,_0x27ed1b,_0x169667);return _0x469ee7[_0x59e563(0x359)](),_0x469ee7;}async[_0x18b736(0x3ad)](_0x481c2b){const _0x46598c=_0x18b736,_0x191502=await this[_0x46598c(0x18d)][_0x46598c(0x31c)](_0x481c2b),_0x39cf89=this[_0x46598c(0x19c)][_0x46598c(0x26a)](_0x59e569,_0x481c2b,_0x191502);return _0x39cf89['init'](),_0x39cf89;}};_0x5e01a2=_0x150538([_0x53ec15(0x0,_0x52e410['IUniverInstanceService']),_0x53ec15(0x1,_0x52e410['Inject'](_0x52e410['Injector'])),_0x53ec15(0x2,_0x52e410[_0x18b736(0xca)](_0x18e336[_0x18b736(0x3e7)]))],_0x5e01a2);const _0x37828a=0x14,_0x5227f0=0xc8,_0x1f1cd2=0x4,_0x4ed61d=0x5;function _0x306399(_0x26de8d,_0x26628a){const _0x92410f=_0x18b736;let {radius:_0x2c0252,width:_0x2abde3,height:_0x4ede32}=_0x26628a;_0x2c0252=_0x2c0252!=null?_0x2c0252:0x0,_0x2abde3=_0x2abde3!=null?_0x2abde3:0x1e,_0x4ede32=_0x4ede32!=null?_0x4ede32:0x1e;let _0x56a334=0x0,_0x4548df=0x0,_0x39bca3=0x0;_0x56a334=_0x4548df=_0x39bca3=Math['min'](_0x2c0252,_0x2abde3/0x2,_0x4ede32/0x2),_0x26de8d['beginPath'](),_0x26de8d[_0x92410f(0x485)](_0x56a334,0x0),_0x26de8d[_0x92410f(0x43e)](_0x2abde3-_0x4548df,0x0),_0x26de8d[_0x92410f(0x4c3)](_0x2abde3-_0x4548df,_0x4548df,_0x4548df,Math['PI']*0x3/0x2,0x0,!0x1),_0x26de8d[_0x92410f(0x43e)](_0x2abde3,_0x4ede32-_0x39bca3),_0x26de8d[_0x92410f(0x4c3)](_0x2abde3-_0x39bca3,_0x4ede32-_0x39bca3,_0x39bca3,0x0,Math['PI']/0x2,!0x1),_0x26de8d['lineTo'](0x0,_0x4ede32),_0x26de8d['lineTo'](0x0,_0x56a334),_0x26de8d[_0x92410f(0x4c3)](_0x56a334,_0x56a334,_0x56a334,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x26de8d[_0x92410f(0x3e9)](),_0x26628a[_0x92410f(0x1b7)]&&(_0x26de8d[_0x92410f(0x143)](),_0x26de8d[_0x92410f(0x283)]=_0x26628a['fill'],_0x26628a['fillRule']===_0x92410f(0x448)?_0x26de8d['fill'](_0x92410f(0x448)):_0x26de8d[_0x92410f(0x1b7)](),_0x26de8d[_0x92410f(0xec)]());}class _0x110b0a extends _0xa52036[_0x18b736(0x266)]{constructor(_0x5e904b,_0x252dc0){const _0x1da93f=_0x18b736;super(_0x5e904b,_0x252dc0),_0x2dd6ee(this,'color'),_0x2dd6ee(this,'text'),(this[_0x1da93f(0xb2)]=_0x252dc0==null?void 0x0:_0x252dc0[_0x1da93f(0xb2)],this[_0x1da93f(0x4a3)]=_0x252dc0==null?void 0x0:_0x252dc0['text']);}static[_0x18b736(0x3aa)](_0x314705,_0x40e95e){const _0x560029=_0x18b736,{text:_0x2535e2,color:_0x117bd9}=_0x40e95e;_0x314705[_0x560029(0x143)](),_0x314705[_0x560029(0xdf)]=_0x560029(0x261);const _0x430814=_0x314705[_0x560029(0x13d)](_0x2535e2)[_0x560029(0x3f0)],_0x34d7ed=Math[_0x560029(0x32c)](_0x430814+0x2*_0x1f1cd2,_0x5227f0);_0x306399(_0x314705,{'height':_0x37828a,'radius':0x4,'width':_0x34d7ed,'fill':_0x117bd9,'evented':!0x1}),_0x314705[_0x560029(0x283)]=_0x560029(0x4b4);const _0x143a6a=_0x1f1cd2,_0x4eae56=_0x37828a-_0x4ed61d,_0x4f2a66=_0x5227f0-0x2*_0x1f1cd2;if(_0x430814>_0x4f2a66){let _0x3509fd='',_0x4cdd01=0x0;for(const _0x4f1d75 of _0x2535e2){const _0x3c8fe4=_0x314705[_0x560029(0x13d)](_0x4f1d75)[_0x560029(0x3f0)];if(_0x4cdd01+_0x3c8fe4<=_0x4f2a66-_0x314705[_0x560029(0x13d)](_0x560029(0x3b2))[_0x560029(0x3f0)])_0x3509fd+=_0x4f1d75,_0x4cdd01+=_0x3c8fe4;else{_0x3509fd+='...';break;}}_0x314705[_0x560029(0x2a3)](_0x3509fd,_0x143a6a,_0x4eae56);}else _0x314705[_0x560029(0x2a3)](_0x2535e2,_0x143a6a,_0x4eae56);_0x314705[_0x560029(0xec)]();}['_draw'](_0x2bcab4){_0x110b0a['drawWith'](_0x2bcab4,this);}}const _0x6882cb=_0x18b736(0x279),_0x528363='collab-text-range-',_0x54c591=_0x18b736(0xd8),_0x33ddfa=0x6,_0x475d87=1.5,_0x2b11f0=0x4,_0x2267bc=1.5,_0xc29228=_0x18b736(0x39d);class _0x1271ff{constructor(_0x310852,_0x5b2777,_0x1e549c,_0x1471b9){const _0x4606ab=_0x18b736;_0x2dd6ee(this,_0x4606ab(0x185),[]),_0x2dd6ee(this,'_anchor',null),_0x2dd6ee(this,_0x4606ab(0x30d),null),_0x2dd6ee(this,_0x4606ab(0x400),null),_0x2dd6ee(this,_0x4606ab(0x498),null),_0x2dd6ee(this,_0x4606ab(0x13a),null),(this['_cursor']=_0x310852,this['_scene']=_0x5b2777,this[_0x4606ab(0xbd)]=_0x1e549c,this[_0x4606ab(0x36f)]=_0x1471b9,this[_0x4606ab(0x9f)]());}set[_0x18b736(0x40e)](_0x341409){const _0x587afa=_0x18b736;_0x341409?(this[_0x587afa(0x400)]&&this[_0x587afa(0x400)][_0x587afa(0x28d)](),this['_textBubble']&&this['_textBubble'][_0x587afa(0x1e7)]()):(this['_anchorDot']&&this[_0x587afa(0x400)][_0x587afa(0x1e7)](),this['_textBubble']&&this[_0x587afa(0x30d)]['hide']());}['dispose'](){const _0x112912=_0x18b736;for(const _0x2bd81c of this[_0x112912(0x185)])_0x2bd81c[_0x112912(0x44f)]();this[_0x112912(0x30d)]&&this[_0x112912(0x30d)][_0x112912(0x44f)](),this[_0x112912(0x400)]&&this[_0x112912(0x400)][_0x112912(0x44f)](),this['_anchor']&&this[_0x112912(0x3af)][_0x112912(0x44f)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x18b736(0x9f)](){const _0x3ab914=_0x18b736;var _0x575721;const {_docSkeleton:_0x55d295,_document:_0x357827}=this,{color:_0x6a5f37,name:_0xf350e5,ranges:_0x533c5f}=this['_cursor'],_0x498258=_0x357827[_0x3ab914(0x29c)](),{docsLeft:_0x189460,docsTop:_0x2a7f8f}=_0x498258,_0x25e495=new _0x589b5b['NodePositionConvertToCursor'](_0x498258,_0x55d295);for(const {startOffset:_0x5781e9,endOffset:_0x81d0c3,collapsed:_0x44e276,isActive:_0x347b08}of _0x533c5f){const _0x5b0a1d=_0x55d295[_0x3ab914(0x4b6)](_0x5781e9),_0x521f8a=_0x55d295[_0x3ab914(0x4b6)](_0x81d0c3);if(_0x347b08){const {contentBoxPointGroup:_0x16ffa0}=_0x25e495[_0x3ab914(0x182)](_0x521f8a,_0x521f8a);if(_0x16ffa0['length']===0x0)continue;this['_drawAnchor'](_0x6a5f37,_0x16ffa0,_0x189460,_0x2a7f8f,_0xf350e5),this[_0x3ab914(0x13a)]=this[_0x3ab914(0x26f)]();}if(!_0x44e276&&_0x5b0a1d&&_0x521f8a){if(_0x589b5b[_0x3ab914(0x14a)](_0x5b0a1d,_0x521f8a)){const _0x5c63c2=new _0x589b5b['NodePositionConvertToRectRange'](_0x498258,_0x55d295),{pointGroup:_0x171db7}=(_0x575721=_0x5c63c2[_0x3ab914(0x182)](_0x5b0a1d,_0x521f8a))!=null?_0x575721:{};if(_0x171db7==null||_0x171db7['length']===0x0)continue;this[_0x3ab914(0x42e)](_0x6a5f37,_0x171db7,_0x189460,_0x2a7f8f);}else{const {contentBoxPointGroup:_0x3724e3}=_0x25e495[_0x3ab914(0x182)](_0x5b0a1d,_0x521f8a);if(_0x3724e3[_0x3ab914(0x1bc)]===0x0)continue;this['_drawTextRange'](_0x6a5f37,_0x3724e3,_0x189460,_0x2a7f8f);}}}}[_0x18b736(0x15b)](_0x518869,_0x214ecd,_0x2c0ce4,_0x50ad6f,_0x22f8b1){const _0x67f33e=_0x18b736,_0x307cc7=this[_0x67f33e(0x4bc)](_0x214ecd),{left:_0x128c62,top:_0x5bf952,height:_0xd25a89}=_0x307cc7,_0xab406=this['_getScale'](),_0x47ea6f=_0x2267bc/_0xab406,_0x36d52b=new _0xa52036[(_0x67f33e(0x38a))](_0x6882cb+_0x52e410['Tools']['generateRandomId'](_0x33ddfa),{'left':_0x128c62+_0x2c0ce4-_0x47ea6f,'top':_0x5bf952+_0x50ad6f,'height':_0xd25a89,'width':_0x475d87,'fill':_0x518869||_0xa52036[_0x67f33e(0x12f)](_0x52e410[_0x67f33e(0x2ca)][_0x67f33e(0x25a)],0x0),'strokeWidth':_0x47ea6f,'stroke':_0xc29228,'evented':!0x0});this[_0x67f33e(0x3af)]=_0x36d52b,this[_0x67f33e(0x202)]['addObject'](_0x36d52b,_0x589b5b[_0x67f33e(0x217)]);const _0x10475c=new _0xa52036[(_0x67f33e(0x38a))](_0x6882cb+_0x52e410[_0x67f33e(0x37d)][_0x67f33e(0xba)](_0x33ddfa),{'left':_0x128c62+_0x2c0ce4-_0x47ea6f,'top':_0x5bf952+_0x50ad6f-_0x2b11f0/0x2,'height':_0x2b11f0,'width':_0x2b11f0,'fill':_0x518869||_0xa52036[_0x67f33e(0x12f)](_0x52e410[_0x67f33e(0x2ca)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x518869||_0xa52036[_0x67f33e(0x12f)](_0x52e410[_0x67f33e(0x2ca)]['black'],0x0),'evented':!0x1});this[_0x67f33e(0x400)]=_0x10475c,this[_0x67f33e(0x202)][_0x67f33e(0x216)](_0x10475c,_0x589b5b[_0x67f33e(0x217)]);const _0x3d8e4f=new _0x110b0a(_0x6882cb+_0x52e410[_0x67f33e(0x37d)]['generateRandomId'](_0x33ddfa),{'left':_0x128c62+_0x2c0ce4-_0x47ea6f,'top':_0x5bf952+_0x50ad6f-_0x37828a,'text':_0x22f8b1,'color':_0x518869});this['_textBubble']=_0x3d8e4f,this[_0x67f33e(0x202)][_0x67f33e(0x216)](_0x3d8e4f,_0x589b5b[_0x67f33e(0x217)]),this[_0x67f33e(0x40e)]=!0x1;}['_handleHover'](){const _0x33083a=_0x18b736,_0x265237=this[_0x33083a(0x3af)][_0x33083a(0x1b2)][_0x33083a(0x428)](()=>{const _0x1f21a5=_0x33083a;this[_0x1f21a5(0x40e)]=!0x0;}),_0x366a63=this['_anchor'][_0x33083a(0x11c)][_0x33083a(0x428)](()=>{const _0x53c30e=_0x33083a;this['_hideTimer']&&clearTimeout(this[_0x53c30e(0x498)]),this['_hideTimer']=setTimeout(()=>{const _0x111b99=_0x53c30e;this[_0x111b99(0x40e)]=!0x1;},0x7d0);});return()=>{const _0x22fe66=_0x33083a;_0x265237[_0x22fe66(0x352)](),_0x366a63[_0x22fe66(0x352)]();};}[_0x18b736(0x2b8)](_0x5a026a,_0x57164a,_0x3f512c,_0x508ea6){const _0x422031=_0x18b736,_0x46d740=new _0x52e410['ColorKit'](_0x5a026a)[_0x422031(0x3d4)](0.2)[_0x422031(0x4b8)](),_0x459d06=new _0xa52036[(_0x422031(0x10d))](_0x528363+_0x52e410['Tools']['generateRandomId'](_0x33ddfa),{'pointsGroup':_0x57164a,'fill':_0x46d740||_0xa52036['getColor'](_0x52e410[_0x422031(0x2ca)][_0x422031(0x25a)],0.2),'left':_0x3f512c,'top':_0x508ea6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x422031(0x185)][_0x422031(0x2da)](_0x459d06),this[_0x422031(0x202)][_0x422031(0x216)](_0x459d06,_0x589b5b[_0x422031(0x217)]);}[_0x18b736(0x42e)](_0x35abb7,_0x5b990f,_0x3743d8,_0x2f8dbf){const _0x39c37a=_0x18b736,_0x446fc3=new _0x52e410[(_0x39c37a(0x45b))](_0x35abb7)['setAlpha'](0.2)['toRgbString'](),_0x2a9d4=new _0xa52036[(_0x39c37a(0x10d))](_0x54c591+_0x52e410[_0x39c37a(0x37d)]['generateRandomId'](_0x33ddfa),{'pointsGroup':_0x5b990f,'fill':_0x446fc3||_0xa52036[_0x39c37a(0x12f)](_0x52e410[_0x39c37a(0x2ca)][_0x39c37a(0x25a)],0.2),'left':_0x3743d8,'top':_0x2f8dbf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x39c37a(0x185)][_0x39c37a(0x2da)](_0x2a9d4),this['_scene'][_0x39c37a(0x216)](_0x2a9d4,_0x589b5b[_0x39c37a(0x217)]);}[_0x18b736(0x4bc)](_0x94c739){const _0x33cc71=_0x94c739[0x0],_0x569105=_0x33cc71[0x0],_0x31359b=_0x33cc71[0x2],{x:_0x5a232f,y:_0x1a8ff6}=_0x569105,{x:_0x281787,y:_0x32eeac}=_0x31359b;return{'left':_0x5a232f,'top':_0x1a8ff6,'width':_0x281787-_0x5a232f,'height':_0x32eeac-_0x1a8ff6};}[_0x18b736(0x270)](){const _0x5c7888=_0x18b736,{scaleX:_0xc87f5f,scaleY:_0x32abb4}=this['_scene'][_0x5c7888(0x2a1)]();return Math[_0x5c7888(0x3dd)](_0xc87f5f,_0x32abb4);}}var _0x2ccd12=Object[_0x18b736(0x180)],_0x54c9e2=Object['getOwnPropertyDescriptor'],_0x43a60a=(_0x1ccd8a,_0x4f3ebf,_0x433cfb,_0x14bd68)=>{const _0x3b0541=_0x18b736;for(var _0x2cc837=_0x14bd68>0x1?void 0x0:_0x14bd68?_0x54c9e2(_0x4f3ebf,_0x433cfb):_0x4f3ebf,_0x589d9d=_0x1ccd8a[_0x3b0541(0x1bc)]-0x1,_0x4051fd;_0x589d9d>=0x0;_0x589d9d--)(_0x4051fd=_0x1ccd8a[_0x589d9d])&&(_0x2cc837=(_0x14bd68?_0x4051fd(_0x4f3ebf,_0x433cfb,_0x2cc837):_0x4051fd(_0x2cc837))||_0x2cc837);return _0x14bd68&&_0x2cc837&&_0x2ccd12(_0x4f3ebf,_0x433cfb,_0x2cc837),_0x2cc837;},_0x4b7c40=(_0xe73a01,_0x5a88c1)=>(_0x48f417,_0x3c82dd)=>_0x5a88c1(_0x48f417,_0x3c82dd,_0xe73a01);let _0x39a78f=class extends _0x52e410['RxDisposable']{constructor(_0x219826,_0x2b3016,_0xd872e,_0x57a7ed,_0x46500f){const _0xbcbbb6=_0x18b736;super(),_0x2dd6ee(this,_0xbcbbb6(0x23e),[]),_0x2dd6ee(this,_0xbcbbb6(0x253),[]),(this[_0xbcbbb6(0x2d4)]=_0x219826,this[_0xbcbbb6(0x4a0)]=_0x2b3016,this[_0xbcbbb6(0x3d2)]=_0xd872e,this[_0xbcbbb6(0x10e)]=_0x57a7ed,this['_themeService']=_0x46500f,this['_init']());}[_0x18b736(0x173)](){const _0x50b075=_0x18b736,_0x5337ec=this[_0x50b075(0x2d4)][_0x50b075(0x44d)],_0x4788de=this[_0x50b075(0x4a0)];this[_0x50b075(0x27b)](_0xe9c73a[_0x50b075(0x20a)]([this[_0x50b075(0x3d2)]['getCollabCursors$'](_0x5337ec),this['_themeService'][_0x50b075(0x1e5)]])[_0x50b075(0x2fd)](_0x5a1ba2[_0x50b075(0x2c2)](([_0x36f605,_0x4debb2])=>({'skeleton':_0x4788de[_0x50b075(0x42c)](),'cursors':[..._0x36f605[_0x50b075(0x386)]()][_0x50b075(0xb9)](_0x59cf3a=>({..._0x59cf3a,'color':_0x4debb2[_0x59cf3a[_0x50b075(0xb2)]]}))})))[_0x50b075(0xd1)](_0x574811=>{const _0x1e30c6=_0x50b075;if(this['_removeCollabCursors'](),_0x574811){const {skeleton:_0x551974,cursors:_0x3fc7e3}=_0x574811;this[_0x1e30c6(0x287)](_0x551974,_0x3fc7e3);}})),this[_0x50b075(0x479)](),this[_0x50b075(0x345)]();}[_0x18b736(0x287)](_0x41a5ae,_0x9374b8){const _0x541500=_0x18b736,{scene:_0x227ee2,mainComponent:_0xd75e69}=this[_0x541500(0x2d4)],_0x58ef88=_0x9374b8[_0x541500(0x2c2)](_0xe670ca=>new _0x1271ff(_0xe670ca,_0x227ee2,_0x41a5ae,_0xd75e69));this['_cursorShapes']=_0x58ef88,this['_cursors']=_0x9374b8;}[_0x18b736(0x2dd)](){const _0x31f6a4=_0x18b736;this[_0x31f6a4(0x372)]();const {scene:_0x4ce13d,mainComponent:_0x4f2f16}=this[_0x31f6a4(0x2d4)],_0x4dab66=this[_0x31f6a4(0x4a0)]['getSkeleton'](),_0x2fb097=this[_0x31f6a4(0x253)][_0x31f6a4(0x2c2)](_0x2b4dd6=>new _0x1271ff(_0x2b4dd6,_0x4ce13d,_0x4dab66,_0x4f2f16));this[_0x31f6a4(0x23e)]=_0x2fb097;}[_0x18b736(0x372)](){const _0x560b9b=_0x18b736;this[_0x560b9b(0x23e)][_0x560b9b(0x122)](_0x545290=>_0x545290[_0x560b9b(0x44f)]()),this[_0x560b9b(0x23e)]=[];}['_initCommandExecutedListener'](){const _0x2fafe3=_0x18b736,_0x87d434=[_0x589b5b[_0x2fafe3(0xa9)]['id']];this['disposeWithMe'](this['_commandService'][_0x2fafe3(0x15d)](_0x3545aa=>{const _0x3ab3b3=_0x2fafe3;_0x87d434[_0x3ab3b3(0x3bb)](_0x3545aa['id'])&&_0x3545aa[_0x3ab3b3(0x13e)][_0x3ab3b3(0x44d)]===this[_0x3ab3b3(0x2d4)][_0x3ab3b3(0x44d)]&&this[_0x3ab3b3(0x2dd)]();}));}[_0x18b736(0x479)](){const _0xbf3155=_0x18b736;this[_0xbf3155(0x27b)](_0x52e410[_0xbf3155(0x258)](this['_context']['engine'][_0xbf3155(0x414)])[_0xbf3155(0x2fd)](_0x5a1ba2['filter'](_0x228dcd=>_0x228dcd[_0xbf3155(0x2cd)]===_0xa52036[_0xbf3155(0x239)]['resize']),_0x5a1ba2[_0xbf3155(0x103)](0x10))['subscribe'](()=>{const _0x55d803=_0xbf3155;this[_0x55d803(0x2dd)]();}));}};_0x39a78f=_0x43a60a([_0x4b7c40(0x1,_0x52e410[_0x18b736(0xca)](_0x1497bb[_0x18b736(0x148)])),_0x4b7c40(0x2,_0x52e410[_0x18b736(0xca)](_0x5e01a2)),_0x4b7c40(0x3,_0x52e410[_0x18b736(0x406)]),_0x4b7c40(0x4,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x416)]))],_0x39a78f);const _0x4a048c=0x1,_0x5e0e79=1.5;class _0x4f2a29 extends _0xa52036[_0x18b736(0x266)]{constructor(_0x50cffa,_0x6e4298){const _0x18516d=_0x18b736;super(_0x50cffa,_0x6e4298),_0x2dd6ee(this,_0x18516d(0x4ad)),_0x2dd6ee(this,_0x18516d(0x1cd),!0x1),_0x2dd6ee(this,_0x18516d(0x186)),_0x2dd6ee(this,_0x18516d(0x1d3),''),_0x2dd6ee(this,'_labelPosition',_0x18516d(0xd9)),_0x2dd6ee(this,_0x18516d(0x237)),(_0x6e4298&&this['setShapeProps'](_0x6e4298),this[_0x18516d(0x1b2)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x18516d(0x11c)][_0x18516d(0x428)](()=>this[_0x18516d(0x3db)]({'hovered':!0x1})));}[_0x18b736(0x3db)](_0x580262){const _0x316f03=_0x18b736;var _0x471a76,_0x51abc5,_0x5c58d3,_0xeb7907,_0xfd39fb,_0x6d5e45;this[_0x316f03(0x4ad)]=(_0x471a76=_0x580262[_0x316f03(0xb2)])!=null?_0x471a76:this[_0x316f03(0x4ad)],this[_0x316f03(0x1cd)]=(_0x51abc5=_0x580262['hovered'])!=null?_0x51abc5:this[_0x316f03(0x1cd)],this['_range']=(_0x5c58d3=_0x580262[_0x316f03(0x384)])!=null?_0x5c58d3:this[_0x316f03(0x186)],this[_0x316f03(0x1d3)]=(_0xeb7907=_0x580262['name'])!=null?_0xeb7907:this[_0x316f03(0x1d3)],this[_0x316f03(0x1ab)]=(_0xfd39fb=_0x580262['labelPosition'])!=null?_0xfd39fb:this[_0x316f03(0x1ab)],this[_0x316f03(0x237)]=(_0x6d5e45=_0x580262[_0x316f03(0x38b)])!=null?_0x6d5e45:this['_backgroundColor'],this['transformByState']({'width':_0x580262[_0x316f03(0x3f0)],'height':_0x580262[_0x316f03(0x451)]});}[_0x18b736(0x3c4)](_0x43f6fa){const _0x280b6f=_0x18b736,{row:_0x3f7540,column:_0xe2c136}=_0x43f6fa;if(_0x3f7540>=this[_0x280b6f(0x186)][_0x280b6f(0x1db)]&&_0x3f7540<=this[_0x280b6f(0x186)][_0x280b6f(0x3cd)]&&_0xe2c136>=this['_range'][_0x280b6f(0x215)]&&_0xe2c136<=this[_0x280b6f(0x186)][_0x280b6f(0x146)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x280b6f(0x3db)]({'hovered':!0x1});}[_0x18b736(0x282)](_0x2aeacf){return!0x1;}[_0x18b736(0x3d8)](_0x21e377){const _0x1eaba4=_0x18b736;_0xa52036['Rect'][_0x1eaba4(0x3aa)](_0x21e377,{'width':this[_0x1eaba4(0x3f0)],'height':this[_0x1eaba4(0x451)],'strokeWidth':_0x5e0e79,'stroke':this[_0x1eaba4(0x4ad)],'evented':!0x1,'fill':this[_0x1eaba4(0x237)]}),this[_0x1eaba4(0x1cd)]&&(_0x21e377[_0x1eaba4(0x143)](),_0x21e377['transform'](0x1,0x0,0x0,0x1,this[_0x1eaba4(0x3f0)],this['_labelPosition']===_0x1eaba4(0x1b8)?0x0:-_0x37828a),_0x110b0a[_0x1eaba4(0x3aa)](_0x21e377,{'text':this['_name'],'color':this[_0x1eaba4(0x4ad)]}),_0x21e377[_0x1eaba4(0xec)]());}}var _0x39333c=Object[_0x18b736(0x180)],_0x34b4b8=Object[_0x18b736(0x301)],_0x2b8ca2=(_0x2933f4,_0x1d7c67,_0x3b67ac,_0x33059e)=>{const _0x28f81c=_0x18b736;for(var _0x1f29f9=_0x33059e>0x1?void 0x0:_0x33059e?_0x34b4b8(_0x1d7c67,_0x3b67ac):_0x1d7c67,_0x34e9d8=_0x2933f4[_0x28f81c(0x1bc)]-0x1,_0x2a696c;_0x34e9d8>=0x0;_0x34e9d8--)(_0x2a696c=_0x2933f4[_0x34e9d8])&&(_0x1f29f9=(_0x33059e?_0x2a696c(_0x1d7c67,_0x3b67ac,_0x1f29f9):_0x2a696c(_0x1f29f9))||_0x1f29f9);return _0x33059e&&_0x1f29f9&&_0x39333c(_0x1d7c67,_0x3b67ac,_0x1f29f9),_0x1f29f9;},_0x378d46=(_0x3c0ad5,_0x1e0e9c)=>(_0x187876,_0x40850c)=>_0x1e0e9c(_0x187876,_0x40850c,_0x3c0ad5);const _0x2ff5da=0x1389;let _0x2a0099=class extends _0x52e410[_0x18b736(0x3a3)]{constructor(_0xd6f8eb,_0x8da824,_0x206361,_0x4ce6a8){const _0x1f95d7=_0x18b736;super(),_0x2dd6ee(this,_0x1f95d7(0x253),new Set()),_0x2dd6ee(this,_0x1f95d7(0x3a1),null),(this[_0x1f95d7(0x2d4)]=_0xd6f8eb,this[_0x1f95d7(0x1cc)]=_0x8da824,this[_0x1f95d7(0x3d2)]=_0x206361,this['_themeService']=_0x4ce6a8,this[_0x1f95d7(0x173)]());}[_0x18b736(0x173)](){const _0x5dcb14=_0x18b736;this['_sheetSkeletonManagerService'][_0x5dcb14(0x178)][_0x5dcb14(0x2fd)](_0x5a1ba2[_0x5dcb14(0x2ee)](this[_0x5dcb14(0x32a)]),_0x5a1ba2[_0x5dcb14(0x23d)](_0x34f181=>{const _0xcdccc3=_0x5dcb14;if(_0x34f181){const _0x465451=_0x34f181[_0xcdccc3(0x1c9)];return _0xe9c73a[_0xcdccc3(0x20a)](this[_0xcdccc3(0x3d2)][_0xcdccc3(0xdd)](this[_0xcdccc3(0x2d4)]['unitId']),this[_0xcdccc3(0x334)][_0xcdccc3(0x1e5)])[_0xcdccc3(0x2fd)](_0x5a1ba2[_0xcdccc3(0x2c2)](([_0x42315c,_0x3bed59])=>{const _0x2ad0bd=_0xcdccc3,_0x424f87=new Map();return _0x42315c[_0x2ad0bd(0x122)]((_0x34c2f8,_0x23efad)=>{const _0x17e94d=_0x2ad0bd;if(_0x34c2f8[_0x17e94d(0x37a)]===_0x465451){const _0x441f5e={..._0x34c2f8};_0x441f5e[_0x17e94d(0xb2)]=_0x3bed59[_0x34c2f8[_0x17e94d(0xb2)]],_0x424f87[_0x17e94d(0x1e3)](_0x23efad,_0x441f5e);}}),{'skeleton':_0x34f181,'cursors':_0x424f87};}));}return _0xe9c73a['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x48244d,cursors:_0x115536})=>{const _0x1f0d9f=_0x5dcb14;this[_0x1f0d9f(0x372)](),_0x48244d&&this[_0x1f0d9f(0x287)](_0x48244d,_0x115536);}),this[_0x5dcb14(0x1cc)]['currentSkeleton$'][_0x5dcb14(0xd1)](_0x542ea4=>{const _0xd1bd2e=_0x5dcb14;if(_0x542ea4==null)return;const {skeleton:_0x46f0a3}=_0x542ea4,{scene:_0x3a17cc}=this['_context'];_0x3a17cc[_0xd1bd2e(0x21b)][_0xd1bd2e(0x428)](_0x52e410[_0xd1bd2e(0x1d0)](_0x5ef316=>{const _0x36fef7=_0xd1bd2e;var _0x22964d,_0x1bc9b2;const {offsetX:_0x22e103,offsetY:_0xfa4673}=_0x5ef316,{x:_0x5307de,y:_0x4b1186}=_0x3a17cc[_0x36fef7(0x315)](_0xa52036['Vector2']['FromArray']([_0x22e103,_0xfa4673])),{scaleX:_0x226a15,scaleY:_0x56a196}=_0x3a17cc[_0x36fef7(0x2a1)](),_0xe7899b=_0x3a17cc[_0x36fef7(0x3d0)](_0x35e820[_0x36fef7(0x304)][_0x36fef7(0xf7)]),_0x141b9f=_0x3a17cc[_0x36fef7(0x2e7)](_0xa52036[_0x36fef7(0x2e4)][_0x36fef7(0x115)]([_0x5307de,_0x4b1186]),_0xe7899b),_0x319a31=_0x46f0a3[_0x36fef7(0x31f)](_0x22e103,_0xfa4673,_0x226a15,_0x56a196,_0x141b9f);((_0x22964d=this['_lastPointer'])==null?void 0x0:_0x22964d['column'])===_0x319a31[_0x36fef7(0x415)]&&((_0x1bc9b2=this['_lastPointer'])==null?void 0x0:_0x1bc9b2[_0x36fef7(0x3d7)])===_0x319a31[_0x36fef7(0x3d7)]||this[_0x36fef7(0x253)][_0x36fef7(0x122)](_0x200fd0=>{const _0x4034d2=_0x36fef7;_0x200fd0[_0x4034d2(0x3c4)](_0x319a31);});},0x64));});}[_0x18b736(0x287)](_0x514e2f,_0x17066d){const _0x261cec=_0x18b736;var _0x457f7b;const _0x3988d1=(_0x457f7b=this['_sheetSkeletonManagerService'][_0x261cec(0x432)]())==null?void 0x0:_0x457f7b['skeleton'];if(!_0x3988d1)return;const _0x411bfc=this[_0x261cec(0x2d0)]();if(!_0x411bfc)return;this[_0x261cec(0x253)][_0x261cec(0x122)](_0x52e4c6=>{const _0x93ccbe=_0x261cec;_0x52e4c6[_0x93ccbe(0x3bf)]();});const {scene:_0x2e08eb}=_0x411bfc,_0x30bd98=_0x5d74fe(Array[_0x261cec(0x4af)](_0x17066d[_0x261cec(0x386)]()))[_0x261cec(0x2c2)](_0x4f6009=>{const _0x4d8192=_0x261cec,{color:_0x3e6a92,range:_0x2959d0,name:_0xbd1635,selection:_0x472406,sheetID:_0x5ef0ff}=_0x4f6009,{startColumn:_0x3a4df9,startRow:_0x38beb0,endColumn:_0x1a679a,endRow:_0x27f1a2}=_0x2959d0,_0x51ce15=_0x35e820[_0x4d8192(0x17e)](_0x38beb0,_0x3a4df9,_0x2e08eb,_0x3988d1),_0x4004ba=_0x35e820[_0x4d8192(0x17e)](_0x27f1a2,_0x1a679a,_0x2e08eb,_0x3988d1),{columnHeaderHeightAndMarginTop:_0x4d4737}=_0x3988d1,{startX:_0x12b21d,startY:_0x38815f}=_0x51ce15,{endX:_0x38ea98,endY:_0x1b06e1}=_0x4004ba,_0x3bd678=_0x38ea98-_0x12b21d,_0x51f1ea=_0x1b06e1-_0x38815f,_0x4f69d0={'labelPosition':_0x38815f-_0x4d4737>=_0x37828a?'top':'bottom','sheetID':_0x5ef0ff,'range':_0x2959d0,'color':_0x3e6a92,'name':_0xbd1635,'selection':_0x472406,'left':_0x12b21d,'top':_0x38815f,'width':_0x3bd678,'height':_0x51f1ea,'evented':!0x1,'zIndex':_0x2ff5da};return new _0x4f2a29(_0xbd1635,_0x4f69d0);});_0x2e08eb[_0x261cec(0x496)](_0x30bd98,_0x4a048c),this[_0x261cec(0x253)]=new Set(_0x30bd98);}[_0x18b736(0x372)](){const _0x546cd2=_0x18b736;var _0x11dd83;(_0x11dd83=this[_0x546cd2(0x253)])==null||_0x11dd83[_0x546cd2(0x122)](_0x1d9cf4=>_0x1d9cf4[_0x546cd2(0x44f)]());}['_getSheetObject'](){const _0x5358c6=_0x18b736;return _0x35e820[_0x5358c6(0x48c)](this['_context'][_0x5358c6(0x124)],this[_0x5358c6(0x2d4)]);}};_0x2a0099=_0x2b8ca2([_0x378d46(0x1,_0x52e410[_0x18b736(0xca)](_0x35e820[_0x18b736(0xe1)])),_0x378d46(0x2,_0x52e410[_0x18b736(0xca)](_0x5e01a2)),_0x378d46(0x3,_0x52e410['Inject'](_0x52e410[_0x18b736(0x416)]))],_0x2a0099);function _0x5d74fe(_0x12a379){const _0x3d30db=_0x18b736,_0x5d8137=new Map();return _0x12a379[_0x3d30db(0x122)](_0x27ebc9=>{const _0x30df53=_0x3d30db;if(_0x5d8137[_0x30df53(0x486)](_0x27ebc9[_0x30df53(0x23c)])){const _0x1575d7=_0x5d8137[_0x30df53(0xf2)](_0x27ebc9[_0x30df53(0x23c)]);_0x1575d7[_0x30df53(0x165)]+=',\x20'+_0x27ebc9[_0x30df53(0x165)];}else _0x5d8137[_0x30df53(0x1e3)](_0x27ebc9[_0x30df53(0x23c)],_0x27ebc9);}),Array[_0x3d30db(0x4af)](_0x5d8137[_0x3d30db(0x386)]());}var _0x31f732=function(){const _0x7ca359=_0x18b736;return _0x31f732=Object[_0x7ca359(0x3f1)]||function(_0x525fbc){const _0x513027=_0x7ca359;for(var _0x280876,_0x1cee58=0x1,_0x347465=arguments['length'];_0x1cee58<_0x347465;_0x1cee58++){_0x280876=arguments[_0x1cee58];for(var _0x121668 in _0x280876)Object['prototype'][_0x513027(0x298)]['call'](_0x280876,_0x121668)&&(_0x525fbc[_0x121668]=_0x280876[_0x121668]);}return _0x525fbc;},_0x31f732['apply'](this,arguments);},_0x2dc237=function(_0x4c7430,_0x33df50){const _0x796239=_0x18b736;var _0x164241={};for(var _0x24f37e in _0x4c7430)Object[_0x796239(0x482)]['hasOwnProperty'][_0x796239(0x235)](_0x4c7430,_0x24f37e)&&_0x33df50[_0x796239(0x449)](_0x24f37e)<0x0&&(_0x164241[_0x24f37e]=_0x4c7430[_0x24f37e]);if(_0x4c7430!=null&&typeof Object['getOwnPropertySymbols']==_0x796239(0x17d)){for(var _0xb6b3da=0x0,_0x24f37e=Object[_0x796239(0x147)](_0x4c7430);_0xb6b3da<_0x24f37e[_0x796239(0x1bc)];_0xb6b3da++)_0x33df50[_0x796239(0x449)](_0x24f37e[_0xb6b3da])<0x0&&Object[_0x796239(0x482)][_0x796239(0x402)][_0x796239(0x235)](_0x4c7430,_0x24f37e[_0xb6b3da])&&(_0x164241[_0x24f37e[_0xb6b3da]]=_0x4c7430[_0x24f37e[_0xb6b3da]]);}return _0x164241;},_0x722b5c=_0x401663['forwardRef'](function(_0x5e5bc8,_0x89f9fb){const _0xf7ba3e=_0x18b736;var _0x179c24=_0x5e5bc8['icon'],_0x2717c5=_0x5e5bc8['id'],_0x880aa1=_0x5e5bc8['className'],_0x5e1df7=_0x5e5bc8[_0xf7ba3e(0x37b)],_0x4b689f=_0x2dc237(_0x5e5bc8,['icon','id','className',_0xf7ba3e(0x37b)]),_0x440d07=_0xf7ba3e(0x288)[_0xf7ba3e(0x2a6)](_0x2717c5,'\x20')[_0xf7ba3e(0x2a6)](_0x880aa1||'')[_0xf7ba3e(0x18f)](),_0x11778f=_0x401663[_0xf7ba3e(0x22c)]('_'[_0xf7ba3e(0x2a6)](_0x36b1ad()));return _0x19792b(_0x179c24,''[_0xf7ba3e(0x2a6)](_0x2717c5),{'defIds':_0x179c24[_0xf7ba3e(0x208)],'idSuffix':_0x11778f[_0xf7ba3e(0x2d2)]},_0x31f732({'ref':_0x89f9fb,'className':_0x440d07},_0x4b689f),_0x5e1df7);});function _0x19792b(_0x417904,_0x16c0cf,_0x3d2ee9,_0x154744,_0x1e3396){const _0x1f4a76=_0x18b736;return _0x401663[_0x1f4a76(0x2b9)](_0x417904[_0x1f4a76(0x1e2)],_0x31f732(_0x31f732({'key':_0x16c0cf},_0x32f116(_0x417904,_0x3d2ee9,_0x1e3396)),_0x154744),(_0x3a1ab7(_0x417904,_0x3d2ee9)[_0x1f4a76(0x27d)]||[])[_0x1f4a76(0x2c2)](function(_0x1c82dd,_0xe48fc7){const _0x3b57ef=_0x1f4a76;return _0x19792b(_0x1c82dd,''['concat'](_0x16c0cf,'-')[_0x3b57ef(0x2a6)](_0x417904['tag'],'-')[_0x3b57ef(0x2a6)](_0xe48fc7),_0x3d2ee9,void 0x0,_0x1e3396);}));}function _0x32f116(_0x2f1242,_0x284b0e,_0x11639e){const _0x326a54=_0x18b736;var _0x391543=_0x31f732({},_0x2f1242['attrs']);_0x11639e!=null&&_0x11639e[_0x326a54(0xc3)]&&_0x391543['fill']===_0x326a54(0xc3)&&(_0x391543['fill']=_0x11639e[_0x326a54(0xc3)]);var _0x470311=_0x284b0e[_0x326a54(0x208)];return!_0x470311||_0x470311[_0x326a54(0x1bc)]===0x0||(_0x2f1242[_0x326a54(0x1e2)]===_0x326a54(0xc7)&&_0x391543[_0x326a54(0x203)]&&(_0x391543[_0x326a54(0x203)]=_0x391543[_0x326a54(0x203)]+_0x284b0e[_0x326a54(0x14f)]),Object[_0x326a54(0x223)](_0x391543)[_0x326a54(0x122)](function(_0x79706b){const _0x319b71=_0x326a54;var _0x2d0ddc=_0x79706b[0x0],_0x1e97fb=_0x79706b[0x1];typeof _0x1e97fb=='string'&&(_0x391543[_0x2d0ddc]=_0x1e97fb[_0x319b71(0x19e)](/url\(#(.*)\)/,_0x319b71(0x275)[_0x319b71(0x2a6)](_0x284b0e[_0x319b71(0x14f)],')')));})),_0x391543;}function _0x3a1ab7(_0x9f12d5,_0x2552a3){const _0xcb7164=_0x18b736;var _0x413eae,_0x27f6fe=_0x2552a3[_0xcb7164(0x208)];return!_0x27f6fe||_0x27f6fe[_0xcb7164(0x1bc)]===0x0?_0x9f12d5:_0x9f12d5[_0xcb7164(0x1e2)]===_0xcb7164(0x337)&&(!((_0x413eae=_0x9f12d5['children'])===null||_0x413eae===void 0x0)&&_0x413eae[_0xcb7164(0x1bc)])?_0x31f732(_0x31f732({},_0x9f12d5),{'children':_0x9f12d5[_0xcb7164(0x27d)][_0xcb7164(0x2c2)](function(_0x444ab1){const _0x319c0c=_0xcb7164;return typeof _0x444ab1[_0x319c0c(0x436)]['id']==_0x319c0c(0x3e1)&&_0x27f6fe&&_0x27f6fe['indexOf'](_0x444ab1[_0x319c0c(0x436)]['id'])>-0x1?_0x31f732(_0x31f732({},_0x444ab1),{'attrs':_0x31f732(_0x31f732({},_0x444ab1[_0x319c0c(0x436)]),{'id':_0x444ab1[_0x319c0c(0x436)]['id']+_0x2552a3[_0x319c0c(0x14f)]})}):_0x444ab1;})}):_0x9f12d5;}function _0x36b1ad(){const _0x3444b2=_0x18b736;return Math['random']()['toString'](0x24)[_0x3444b2(0x27e)](0x2,0x8);}_0x722b5c[_0x18b736(0x435)]='UniverIcon';var _0x5a1ceb={'tag':_0x18b736(0xbc),'attrs':{'fill':'none','viewBox':_0x18b736(0x2ba),'width':'1em','height':_0x18b736(0x118)},'children':[{'tag':'g','attrs':{'clipPath':_0x18b736(0xf8)},'children':[{'tag':'path','attrs':{'stroke':_0x18b736(0x22e),'d':_0x18b736(0x429),'strokeLinecap':_0x18b736(0x374),'strokeLinejoin':_0x18b736(0x374),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x18b736(0x9b),'attrs':{'id':_0x18b736(0x491)},'children':[{'tag':'path','attrs':{'fill':_0x18b736(0x116),'d':_0x18b736(0x35a)}}]}]}],'defIds':[_0x18b736(0x491)]},_0x58a3fa=_0x401663['forwardRef'](function(_0x1ad2e3,_0x48d1bf){const _0x2617ba=_0x18b736;return _0x401663[_0x2617ba(0x2b9)](_0x722b5c,Object['assign']({},_0x1ad2e3,{'id':_0x2617ba(0x4bf),'ref':_0x48d1bf,'icon':_0x5a1ceb}));});_0x58a3fa[_0x18b736(0x435)]=_0x18b736(0x343);var _0xf5778c={'tag':_0x18b736(0xbc),'attrs':{'fill':'none','viewBox':_0x18b736(0x41e),'width':_0x18b736(0x118),'height':_0x18b736(0x118)},'children':[{'tag':'g','attrs':{'clipPath':_0x18b736(0x440)},'children':[{'tag':_0x18b736(0x18a),'attrs':{'stroke':'currentColor','d':_0x18b736(0x4ce),'strokeLinecap':_0x18b736(0x374),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x18b736(0x337),'attrs':{},'children':[{'tag':_0x18b736(0x9b),'attrs':{'id':_0x18b736(0x41c)},'children':[{'tag':_0x18b736(0x18a),'attrs':{'fill':_0x18b736(0x116),'d':_0x18b736(0x35a),'transform':_0x18b736(0x190)}}]}]}],'defIds':[_0x18b736(0x41c)]},_0x535110=_0x401663[_0x18b736(0xeb)](function(_0x3373df,_0x527b56){const _0x22d071=_0x18b736;return _0x401663[_0x22d071(0x2b9)](_0x722b5c,Object[_0x22d071(0x3f1)]({},_0x3373df,{'id':_0x22d071(0x292),'ref':_0x527b56,'icon':_0xf5778c}));});_0x535110['displayName']=_0x18b736(0x4c6);const _0x16305e={'onlineStatusIcon':_0x18b736(0x3ed),'onlineStatusTitle':_0x18b736(0x15a),'onlineStatus':_0x18b736(0x226),'online':'univer-online','offline':'univer-offline'};function _0x15da63(_0x198f40){const _0xdd8b76=_0x18b736;switch(_0x198f40){case _0x1a9629['OFFLINE']:return'collabStatus.offline';case _0x1a9629[_0xdd8b76(0x3eb)]:return _0xdd8b76(0x340);case _0x1a9629[_0xdd8b76(0x21c)]:return _0xdd8b76(0x346);case _0x1a9629[_0xdd8b76(0xb8)]:return _0xdd8b76(0x269);case _0x1a9629[_0xdd8b76(0x1f6)]:case _0x1a9629['AWAITING']:case _0x1a9629[_0xdd8b76(0x1fc)]:return _0xdd8b76(0x2f0);case _0x1a9629[_0xdd8b76(0x341)]:return _0xdd8b76(0x336);}}function _0x20b6b1(_0x152cee){const _0x41f2c5=_0x18b736,{status$:_0x3c000c}=_0x152cee,_0x5c9310=_0x4d3b05[_0x41f2c5(0x1e8)](_0x3c000c,_0x1a9629[_0x41f2c5(0xb8)]),_0x500f64=_0x52e410[_0x41f2c5(0x3e0)](_0x52e410[_0x41f2c5(0x4b7)]),_0x38fc8c=_0x52e410[_0x41f2c5(0x3e0)](_0x18e336['CollaborationSessionService']),_0x5befd8=_0x5c9310!==_0x1a9629[_0x41f2c5(0x138)],_0x6e8d78=_0x500f64['t'](_0x15da63(_0x5c9310)),_0x132ffa=_0xbbbc75(_0x16305e[_0x41f2c5(0x331)],{[_0x16305e[_0x41f2c5(0xc4)]]:_0x5befd8,[_0x16305e[_0x41f2c5(0x262)]]:!_0x5befd8}),_0x3b0057=_0x5befd8?_0x401663[_0x41f2c5(0x2b9)](_0x535110,null):_0x401663[_0x41f2c5(0x2b9)](_0x58a3fa,null),_0x4775f1=_0x401663[_0x41f2c5(0x2f5)](()=>{const _0x947cda=_0x41f2c5;_0x5befd8||_0x38fc8c[_0x947cda(0x183)]();},[_0x5befd8,_0x38fc8c]);function _0x3a4792(){const _0x37128d=_0x41f2c5;return _0x401663[_0x37128d(0x2b9)]('div',{'className':_0x132ffa,'onClick':_0x4775f1},_0x401663[_0x37128d(0x2b9)]('div',{'className':_0x16305e[_0x37128d(0x3fc)]},_0x3b0057),_0x401663['createElement'](_0x37128d(0x393),{'className':_0x16305e['onlineStatusTitle']},_0x6e8d78));}return _0x5befd8?_0x3a4792():_0x401663['createElement'](_0x716320[_0x41f2c5(0x2a8)],{'title':_0x500f64['t'](_0x41f2c5(0x361))},_0x3a4792());}var _0xd0650c=Object['defineProperty'],_0x46a630=Object[_0x18b736(0x301)],_0x41eb71=(_0x3c4b80,_0x40eb6e,_0x5da0db,_0x3bd022)=>{const _0x31c62a=_0x18b736;for(var _0x2b7b3d=_0x3bd022>0x1?void 0x0:_0x3bd022?_0x46a630(_0x40eb6e,_0x5da0db):_0x40eb6e,_0x5d4ad4=_0x3c4b80[_0x31c62a(0x1bc)]-0x1,_0x24fe70;_0x5d4ad4>=0x0;_0x5d4ad4--)(_0x24fe70=_0x3c4b80[_0x5d4ad4])&&(_0x2b7b3d=(_0x3bd022?_0x24fe70(_0x40eb6e,_0x5da0db,_0x2b7b3d):_0x24fe70(_0x2b7b3d))||_0x2b7b3d);return _0x3bd022&&_0x2b7b3d&&_0xd0650c(_0x40eb6e,_0x5da0db,_0x2b7b3d),_0x2b7b3d;},_0x3809b9=(_0x5bfc69,_0x44f50c)=>(_0x4a8298,_0x3742e9)=>_0x44f50c(_0x4a8298,_0x3742e9,_0x5bfc69);_0x18e336[_0x18b736(0x12e)]=class extends _0x52e410[_0x18b736(0x174)]{constructor(_0xcfe7be,_0xa2b91c,_0xe008d8,_0x14f70f){const _0x19672c=_0x18b736;super(),_0x2dd6ee(this,'_status$',new _0xe9c73a[(_0x19672c(0x2ef))](_0x1a9629[_0x19672c(0xb8)])),(this[_0x19672c(0xf5)]=_0xcfe7be,this[_0x19672c(0x181)]=_0xa2b91c,this[_0x19672c(0x19c)]=_0xe008d8,this[_0x19672c(0x1ae)]=_0x14f70f,this[_0x19672c(0x445)](),this[_0x19672c(0x1b3)]());}[_0x18b736(0x1b3)](){const _0x581590=_0x18b736;this['disposeWithMe'](this[_0x581590(0xf5)]['focused$'][_0x581590(0x2fd)](_0xe9c73a[_0x581590(0x23d)](()=>{const _0x3bd30e=_0x581590,_0x3b4efc=this[_0x3bd30e(0xf5)]['getFocusedUnit']();return _0x3b4efc?this[_0x3bd30e(0x1ae)][_0x3bd30e(0x130)](_0x3b4efc[_0x3bd30e(0x28b)]()):_0xe9c73a['of'](null);}),_0xe9c73a[_0x581590(0x23d)](_0x9cadd1=>_0x9cadd1?_0x9cadd1[_0x581590(0x350)]:_0xe9c73a['of'](_0x1a9629['NOT_COLLAB'])))[_0x581590(0xd1)](_0x9f1915=>{const _0x53e440=_0x581590;this[_0x53e440(0x27f)]['next'](_0x9f1915);}));}[_0x18b736(0x445)](){const _0x149e4f=_0x18b736;this[_0x149e4f(0x27b)](this[_0x149e4f(0x181)][_0x149e4f(0x11e)](_0x4d3b05[_0x149e4f(0x132)][_0x149e4f(0x385)],()=>_0x52e410[_0x149e4f(0x2fa)](_0x370197({'status$':this[_0x149e4f(0x27f)]['asObservable']()}),this[_0x149e4f(0x19c)])));}},_0x18e336[_0x18b736(0x12e)]=_0x41eb71([_0x3809b9(0x0,_0x52e410[_0x18b736(0x1de)]),_0x3809b9(0x1,_0x4d3b05[_0x18b736(0x32b)]),_0x3809b9(0x2,_0x52e410[_0x18b736(0xca)](_0x52e410['Injector'])),_0x3809b9(0x3,_0x52e410['Inject'](_0x18e336[_0x18b736(0x46a)]))],_0x18e336[_0x18b736(0x12e)]);function _0x370197(_0xdb9ec9){const {status$:_0x479742}=_0xdb9ec9;return function(){const _0xfbc191=_0x3ebc;return _0x401663[_0xfbc191(0x2b9)](_0x20b6b1,{'status$':_0x479742});};}const _0x328d50=_0x52e410[_0x18b736(0x4d2)](_0x18b736(0x2b5));var _0x4dabde=Object[_0x18b736(0x180)],_0x35beff=Object['getOwnPropertyDescriptor'],_0x13b22f=(_0x49ff86,_0x287fc3,_0x5c2c34,_0x100eb5)=>{const _0x130546=_0x18b736;for(var _0xb1fdbd=_0x100eb5>0x1?void 0x0:_0x100eb5?_0x35beff(_0x287fc3,_0x5c2c34):_0x287fc3,_0x30829d=_0x49ff86[_0x130546(0x1bc)]-0x1,_0x2b8031;_0x30829d>=0x0;_0x30829d--)(_0x2b8031=_0x49ff86[_0x30829d])&&(_0xb1fdbd=(_0x100eb5?_0x2b8031(_0x287fc3,_0x5c2c34,_0xb1fdbd):_0x2b8031(_0xb1fdbd))||_0xb1fdbd);return _0x100eb5&&_0xb1fdbd&&_0x4dabde(_0x287fc3,_0x5c2c34,_0xb1fdbd),_0xb1fdbd;},_0x5f261a=(_0x253b1a,_0x2b0d54)=>(_0x525840,_0x8e1fc)=>_0x2b0d54(_0x525840,_0x8e1fc,_0x253b1a);_0x18e336['DataLoaderController']=class extends _0x52e410[_0x18b736(0x3a3)]{constructor(_0x3ca2ba,_0x53cc55,_0x51edc6,_0x39e57b,_0x4c08e2,_0x1151d9){const _0x3ff2e7=_0x18b736;super(),this[_0x3ff2e7(0x3dc)]=_0x3ca2ba,this[_0x3ff2e7(0x307)]=_0x53cc55,this[_0x3ff2e7(0x10e)]=_0x51edc6,this[_0x3ff2e7(0x152)]=_0x39e57b,this['_snapshotService']=_0x4c08e2,_0x1151d9?_0x1151d9==null||_0x1151d9['whenReady']()[_0x3ff2e7(0x41f)](()=>this[_0x3ff2e7(0x173)]()):(this[_0x3ff2e7(0x307)][_0x3ff2e7(0x3c3)]('[DataLoaderController]',_0x3ff2e7(0x128)),this[_0x3ff2e7(0x173)]());}async[_0x18b736(0x173)](){const _0x17b602=_0x18b736,_0xffe8c2=this[_0x17b602(0x3dc)][_0x17b602(0x356)](_0x17b602(0x124)),_0x53938a=this[_0x17b602(0x3dc)][_0x17b602(0x356)](_0x17b602(0x2cd));if(!_0xffe8c2||!_0x53938a){this['_logService']['debug'](_0x17b602(0x25e),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x53938a)){case _0xe94575[_0x17b602(0x14d)]:{const _0x4d4002=await this[_0x17b602(0x24e)](_0xffe8c2);this[_0x17b602(0x20e)](_0x4d4002);break;}case _0xe94575[_0x17b602(0x1c5)]:{await this[_0x17b602(0x3a9)](_0xffe8c2);break;}default:{this[_0x17b602(0x307)][_0x17b602(0x2e1)](_0x17b602(0x25e),_0x17b602(0x9e));break;}}}async[_0x18b736(0x20e)](_0x386056){const _0x1fd204=_0x18b736;await this[_0x1fd204(0x2d3)](_0x386056),_0x386056[_0x1fd204(0x330)][_0x1fd204(0x2fd)](_0xe9c73a[_0x1fd204(0x2ee)](this[_0x1fd204(0x32a)]))[_0x1fd204(0xd1)](_0x4bd3d7=>{const _0x468143=_0x1fd204;_0x4bd3d7&&this[_0x468143(0x38f)](_0x4bd3d7);}),this[_0x1fd204(0x3dc)][_0x1fd204(0x462)][_0x1fd204(0x2fd)](_0xe9c73a[_0x1fd204(0x2ee)](this[_0x1fd204(0x32a)]))[_0x1fd204(0xd1)](()=>this['_updateSubUnitFromURLParams'](_0x386056));}[_0x18b736(0x38f)](_0x234b09,_0x412563=!0x1){const _0x20aec8=_0x18b736,_0x39eb29=this[_0x20aec8(0x3dc)][_0x20aec8(0x356)](_0x20aec8(0x4cc));_0x234b09[_0x20aec8(0x27a)]()!==_0x39eb29&&this[_0x20aec8(0x3dc)][_0x20aec8(0x22a)](_0x20aec8(0x4cc),_0x234b09['getSheetId'](),_0x412563);}async['_updateSubUnitFromURLParams'](_0x3a974a){const _0x2ca647=_0x18b736;var _0x43e7f5;const _0x116d00=this[_0x2ca647(0x3dc)]['getParam'](_0x2ca647(0x4cc));if(!_0x116d00||!_0x3a974a[_0x2ca647(0x274)](_0x116d00)){const _0x17f02c=_0x3a974a[_0x2ca647(0x107)]()[0x0],_0x3172db=_0x3a974a['getSheetBySheetId'](_0x17f02c);if(!_0x3172db)return;this[_0x2ca647(0x38f)](_0x3172db,!0x0),await this[_0x2ca647(0x10e)][_0x2ca647(0x2fe)](_0x547cac['SetWorksheetActivateCommand']['id'],{'unitId':_0x3a974a[_0x2ca647(0x28b)](),'subUnitId':_0x17f02c});return;}((_0x43e7f5=_0x3a974a[_0x2ca647(0x33a)]())==null?void 0x0:_0x43e7f5[_0x2ca647(0x27a)]())!==_0x116d00&&await this['_commandService'][_0x2ca647(0x2fe)](_0x547cac['SetWorksheetActivateCommand']['id'],{'unitId':_0x3a974a[_0x2ca647(0x28b)](),'subUnitId':_0x116d00});}async[_0x18b736(0x24e)](_0x32d217){const _0x1c0200=_0x18b736;let _0x2b586e=0x0;const _0xe78a2=await this[_0x1c0200(0x152)][_0x1c0200(0xcb)](_0x32d217);return _0xe78a2&&(_0xe78a2[_0x1c0200(0x48f)]||_0xe78a2[_0x1c0200(0x487)]['length']!==0x0)&&(_0x2b586e=_0xe78a2[_0x1c0200(0x280)]),_0x2b586e===0x0&&this[_0x1c0200(0x307)]['debug'](_0x1c0200(0x25e),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x1c0200(0x461)][_0x1c0200(0x18e)](_0x32d217,_0x2b586e);}async[_0x18b736(0x3a9)](_0x5997a0){const _0x120ff8=_0x18b736;let _0x34465b=0x0;const _0x2ddd9a=await this[_0x120ff8(0x152)][_0x120ff8(0xcb)](_0x5997a0);return _0x2ddd9a&&(_0x2ddd9a['awaitingChangeset']||_0x2ddd9a[_0x120ff8(0x487)]['length']!==0x0)&&(_0x34465b=_0x2ddd9a[_0x120ff8(0x280)]),_0x34465b===0x0&&this[_0x120ff8(0x307)][_0x120ff8(0x3c3)](_0x120ff8(0x25e),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x120ff8(0x157)](_0x5997a0,_0x34465b);}},_0x18e336[_0x18b736(0x430)]=_0x13b22f([_0x5f261a(0x0,_0x328d50),_0x5f261a(0x1,_0x52e410[_0x18b736(0x170)]),_0x5f261a(0x2,_0x52e410[_0x18b736(0x406)]),_0x5f261a(0x3,_0x52e410[_0x18b736(0xca)](_0x18e336[_0x18b736(0x495)])),_0x5f261a(0x4,_0x52e410[_0x18b736(0xca)](_0x133afc['SnapshotService'])),_0x5f261a(0x5,_0x52e410['Optional'](_0xdcab88[_0x18b736(0x1a2)]))],_0x18e336[_0x18b736(0x430)]);var _0x23e3c0=Object['defineProperty'],_0x74a5e1=Object[_0x18b736(0x301)],_0x2f5159=(_0x2f5ea8,_0x563d29,_0x201a5c,_0x28ecda)=>{const _0x4634c0=_0x18b736;for(var _0x4aa7cb=_0x28ecda>0x1?void 0x0:_0x28ecda?_0x74a5e1(_0x563d29,_0x201a5c):_0x563d29,_0x89314=_0x2f5ea8[_0x4634c0(0x1bc)]-0x1,_0x3eace6;_0x89314>=0x0;_0x89314--)(_0x3eace6=_0x2f5ea8[_0x89314])&&(_0x4aa7cb=(_0x28ecda?_0x3eace6(_0x563d29,_0x201a5c,_0x4aa7cb):_0x3eace6(_0x4aa7cb))||_0x4aa7cb);return _0x28ecda&&_0x4aa7cb&&_0x23e3c0(_0x563d29,_0x201a5c,_0x4aa7cb),_0x4aa7cb;},_0x379ece=(_0x307912,_0x51a932)=>(_0x56c4ae,_0xaf887d)=>_0x51a932(_0x56c4ae,_0xaf887d,_0x307912);const _0x541702='DEFAULT_FILE_NAME',_0x2b1840=_0x18b736(0x213);let _0x4f4e05=class extends _0x52e410[_0x18b736(0x174)]{constructor(_0x566442,_0x1949a8){const _0x5c8b4f=_0x18b736;super(),this[_0x5c8b4f(0xf5)]=_0x566442,this['_configService']=_0x1949a8,this[_0x5c8b4f(0x173)]();}[_0x18b736(0x173)](){const _0x532776=_0x18b736;this[_0x532776(0x27b)](this['_univerInstanceService'][_0x532776(0x137)][_0x532776(0xd1)](()=>{const _0x2a0cf9=_0x532776;var _0x58c3d3;const _0x1e2b63=this['_univerInstanceService'][_0x2a0cf9(0x36a)]();let _0x3795ef=(_0x58c3d3=this[_0x2a0cf9(0x102)][_0x2a0cf9(0x119)](_0x541702))!=null?_0x58c3d3:_0x2b1840;_0x1e2b63 instanceof _0x52e410[_0x2a0cf9(0x311)]&&(_0x3795ef=_0x1e2b63[_0x2a0cf9(0x165)]),document[_0x2a0cf9(0x2d8)]=_0x3795ef;}));}};_0x4f4e05=_0x2f5159([_0x379ece(0x0,_0x52e410[_0x18b736(0x1de)]),_0x379ece(0x1,_0x52e410['IConfigService'])],_0x4f4e05);var _0x11393c=Object[_0x18b736(0x180)],_0x572b78=Object['getOwnPropertyDescriptor'],_0x5cbfd6=(_0x1ed035,_0x372674,_0x1ec3b6,_0x48b581)=>{for(var _0x4193dd=_0x48b581>0x1?void 0x0:_0x48b581?_0x572b78(_0x372674,_0x1ec3b6):_0x372674,_0x3dbf08=_0x1ed035['length']-0x1,_0x27480e;_0x3dbf08>=0x0;_0x3dbf08--)(_0x27480e=_0x1ed035[_0x3dbf08])&&(_0x4193dd=(_0x48b581?_0x27480e(_0x372674,_0x1ec3b6,_0x4193dd):_0x27480e(_0x4193dd))||_0x4193dd);return _0x48b581&&_0x4193dd&&_0x11393c(_0x372674,_0x1ec3b6,_0x4193dd),_0x4193dd;},_0x18ee83=(_0x33a5cb,_0x842a30)=>(_0x5f00a1,_0x16b739)=>_0x842a30(_0x5f00a1,_0x16b739,_0x33a5cb);let _0x2efaf=class{constructor(_0x4b849e,_0x5ed244,_0x3072cc){const _0x22589f=_0x18b736;this[_0x22589f(0x102)]=_0x4b849e,this[_0x22589f(0x403)]=_0x5ed244,this[_0x22589f(0x142)]=_0x3072cc,this[_0x22589f(0x359)]();}[_0x18b736(0x359)](){const _0x1e8e8d=_0x18b736;this[_0x1e8e8d(0x403)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4db68a,_0x4cc6ad)=>_0x4cc6ad(_0x4db68a)[_0x1e8e8d(0x2fd)](_0xe9c73a[_0x1e8e8d(0x2ce)](async _0x14609e=>{const _0x29f3d8=_0x1e8e8d,_0x1be239=_0x14609e;if(_0x1be239[_0x29f3d8(0x2de)]===0x191&&window['confirm'](this[_0x29f3d8(0x142)]['t'](_0x29f3d8(0x14b)))){const _0x5672e5=window[_0x29f3d8(0x2b2)](window[_0x29f3d8(0x164)][_0x29f3d8(0x45a)]);window[_0x29f3d8(0x164)][_0x29f3d8(0x45a)]=this['_getLoginPath']()+_0x29f3d8(0x353)+_0x5672e5;}return _0x1be239;}))});}[_0x18b736(0x284)](){const _0x108b1a=_0x18b736;var _0x500686,_0x285343;const _0x4f7d70=this[_0x108b1a(0x102)][_0x108b1a(0x119)](_0x35248d),_0x2ef025=this[_0x108b1a(0x102)][_0x108b1a(0x119)](_0x48532f);return(_0x285343=(_0x500686=_0x2ef025==null?void 0x0:_0x2ef025[_0x108b1a(0xb6)])!=null?_0x500686:_0x4f7d70)!=null?_0x285343:_0x355402;}};_0x2efaf=_0x5cbfd6([_0x18ee83(0x0,_0x52e410[_0x18b736(0x207)]),_0x18ee83(0x1,_0x52e410[_0x18b736(0xca)](_0x302c55[_0x18b736(0x1cf)])),_0x18ee83(0x2,_0x52e410['Inject'](_0x52e410[_0x18b736(0x4b7)]))],_0x2efaf);var _0x13dfb1=Object['defineProperty'],_0x36854a=Object[_0x18b736(0x301)],_0x1775ae=(_0x53e799,_0x68a4ca,_0x287b2a,_0x2d7c6c)=>{for(var _0x570000=_0x2d7c6c>0x1?void 0x0:_0x2d7c6c?_0x36854a(_0x68a4ca,_0x287b2a):_0x68a4ca,_0x52d443=_0x53e799['length']-0x1,_0x77abaf;_0x52d443>=0x0;_0x52d443--)(_0x77abaf=_0x53e799[_0x52d443])&&(_0x570000=(_0x2d7c6c?_0x77abaf(_0x68a4ca,_0x287b2a,_0x570000):_0x77abaf(_0x570000))||_0x570000);return _0x2d7c6c&&_0x570000&&_0x13dfb1(_0x68a4ca,_0x287b2a,_0x570000),_0x570000;},_0x3d7936=(_0x4a9d35,_0x3eea87)=>(_0x3c8720,_0x42b040)=>_0x3eea87(_0x3c8720,_0x42b040,_0x4a9d35);const _0x1c0c90=_0x18b736(0xd3),_0x3819e4=_0x18b736(0x40c);_0x18e336['AuthzIoHttpService']=class extends _0x52e410[_0x18b736(0x174)]{constructor(_0x3c54cc,_0x33f553){const _0x255273=_0x18b736;super(),this[_0x255273(0x20c)]=_0x3c54cc,this[_0x255273(0x102)]=_0x33f553,this[_0x255273(0x375)]();}[_0x18b736(0x375)](){const _0x329e30=_0x18b736,_0xf051bd=this;this[_0x329e30(0x27b)](this[_0x329e30(0x20c)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x302c55[_0x329e30(0x3c2)]({'isMatch'(_0x446f48){const _0x19fec4=_0x329e30;var _0x58cc50;if(_0x446f48[_0x19fec4(0x9a)]===_0x19fec4(0x2a2)&&((_0x58cc50=_0x446f48[_0x19fec4(0x399)])!=null&&_0x58cc50[_0x19fec4(0x25c)])){const {objectID:_0x100197,objectType:_0x58fd91}=_0x446f48[_0x19fec4(0x399)]['body']||{};if(!_0x100197||_0x58fd91===void 0x0)return!0x1;const _0x4dcbd0=_0xf051bd['_getAPIPrefixPath']()+'/'+_0x58fd91+_0x19fec4(0x14c)+_0x100197+'/allowed';if(_0x446f48[_0x19fec4(0x1bf)]===_0x4dcbd0)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xd311d3){const _0x285160=_0x329e30;var _0x532291;return(_0x532291=_0xd311d3['requestParams'])==null?void 0x0:_0x532291[_0x285160(0x25c)];},'mergeParamsToRequest'(_0x555b56,_0x30f734){const _0x2e1b3d=_0x329e30,_0x11d9cc=_0xf051bd['_getAPIPrefixPath']()+_0x2e1b3d(0x318),_0x41112f=_0x555b56['reduce']((_0x244f7e,_0x27acf3)=>{const _0xf66a5f=_0x2e1b3d,{unitID:_0x2b38fe,objectID:_0x33e49e,objectType:_0x390329,actions:_0xc5f52e}=_0x27acf3;return _0x244f7e[_0x2b38fe]||(_0x244f7e[_0x2b38fe]={}),_0x244f7e[_0x2b38fe][_0x33e49e]||(_0x244f7e[_0x2b38fe][_0x33e49e]={'objectID':_0x33e49e,'objectType':_0x390329,'actions':[]}),_0x244f7e[_0x2b38fe][_0x33e49e][_0xf66a5f(0x453)]['push'](..._0xc5f52e),_0x244f7e;},{}),_0x3e8a09=[];for(const _0x43fbbf in _0x41112f)for(const _0x439b80 in _0x41112f[_0x43fbbf]){const {actions:_0x5555d1,objectType:_0x1919ce}=_0x41112f[_0x43fbbf][_0x439b80],_0x4c69f8=[...new Set(_0x5555d1)];_0x3e8a09['push']({'unitID':_0x43fbbf,'objectID':_0x439b80,'objectType':_0x1919ce,'actions':_0x4c69f8});}return new _0x302c55[(_0x2e1b3d(0xe9))](_0x2e1b3d(0x2a2),_0x11d9cc,{'headers':_0x30f734[_0x2e1b3d(0x396)],'withCredentials':_0x30f734[_0x2e1b3d(0x3a7)],'responseType':_0x30f734[_0x2e1b3d(0x277)],'body':{'requests':_0x3e8a09}});}},{'distributeResult'(_0x251b94,_0x5b892b){const _0x302e60=_0x329e30,{objectActions:_0xaadfb6}=_0x251b94;return _0x5b892b[_0x302e60(0x2c2)](_0x4b8dee=>{const _0x2ee83e=_0x302e60,{unitID:_0x489552,objectID:_0x25f64a,actions:_0x29f0c2}=_0x4b8dee,_0x3072c7=_0xaadfb6[_0x2ee83e(0x1f8)](_0x1df274=>_0x1df274['unitID']===_0x489552&&_0x1df274['objectID']===_0x25f64a),_0x439d6a=_0x29f0c2['map'](_0x10c9a6=>_0x3072c7==null?void 0x0:_0x3072c7[_0x2ee83e(0x453)]['find'](_0x24b0aa=>_0x24b0aa['action']===_0x10c9a6))[_0x2ee83e(0x1d4)](_0x31ca0e=>!!_0x31ca0e);return{'config':_0x4b8dee,'result':{'actions':_0x439d6a,'error':_0x251b94[_0x2ee83e(0x2e1)]}};});}})}));}[_0x18b736(0x417)](){const _0x13f048=_0x18b736;var _0x5a2206,_0x141eec;const _0x3004a5=this[_0x13f048(0x102)]['getConfig'](_0x1c0c90),_0x3d02a4=this[_0x13f048(0x102)][_0x13f048(0x119)](_0x48532f);return(_0x141eec=(_0x5a2206=_0x3d02a4==null?void 0x0:_0x3d02a4['authzUrl'])!=null?_0x5a2206:_0x3004a5)!=null?_0x141eec:_0x3819e4;}async[_0x18b736(0x2f2)](_0x2c1c15){const _0x393f82=_0x18b736,_0x49b614=this[_0x393f82(0x417)]()+'/'+_0x2c1c15[_0x393f82(0x392)]+'/object';return(await this[_0x393f82(0x20c)][_0x393f82(0x3d3)](_0x49b614,{'body':_0x2c1c15}))[_0x393f82(0x25c)][_0x393f82(0x365)]||'';}async[_0x18b736(0x45e)](_0x1b8d99){const _0x4c0968=_0x18b736,_0x40c55d=this[_0x4c0968(0x417)]()+'/-/object/list';return(await this[_0x4c0968(0x20c)]['post'](_0x40c55d,{'body':_0x1b8d99}))[_0x4c0968(0x25c)][_0x4c0968(0x25b)];}async[_0x18b736(0x371)](_0x32fe9f){const _0x58af4b=_0x18b736,_0x306b0c=this['_getAPIPrefixPath']()+'/'+_0x32fe9f[_0x58af4b(0x392)]+_0x58af4b(0x14c)+_0x32fe9f[_0x58af4b(0x365)];await this[_0x58af4b(0x20c)][_0x58af4b(0x2c0)](_0x306b0c,{'body':_0x32fe9f});}async[_0x18b736(0xd7)](_0x5f4f6a){const _0x307cad=_0x18b736,_0x2cfc5b=this[_0x307cad(0x417)]()+'/'+_0x5f4f6a[_0x307cad(0x392)]+_0x307cad(0x14c)+_0x5f4f6a[_0x307cad(0x365)]+_0x307cad(0x3c7);return(await this[_0x307cad(0x20c)][_0x307cad(0x3d3)](_0x2cfc5b,{'body':_0x5f4f6a}))[_0x307cad(0x25c)][_0x307cad(0x453)];}async['batchAllowed'](_0x5ee3aa){const _0x117e31=_0x18b736,_0x5ee7dd=this[_0x117e31(0x417)]()+_0x117e31(0x318);return(await this['_HTTPService'][_0x117e31(0x3d3)](_0x5ee7dd,{'body':{'requests':_0x5ee3aa}}))[_0x117e31(0x25c)]['objectActions'];}async[_0x18b736(0x1a1)](_0x8e1194){const _0xe0ff3=_0x18b736,_0x1ed211=this[_0xe0ff3(0x417)]()+'/'+_0x8e1194[_0xe0ff3(0x392)]+_0xe0ff3(0x32d),_0x4c7d7e=await this['_HTTPService'][_0xe0ff3(0x3d3)](_0x1ed211,{'body':_0x8e1194});return{'roles':_0x4c7d7e[_0xe0ff3(0x25c)][_0xe0ff3(0x2f7)],'actions':_0x4c7d7e[_0xe0ff3(0x25c)]['actions']};}async[_0x18b736(0x342)](_0x265ee9){const _0x367d07=_0x18b736,_0x22ce4f=this[_0x367d07(0x417)]()+_0x367d07(0x478);await this['_HTTPService'][_0x367d07(0x368)](_0x22ce4f,{'params':{'collaboratorID':_0x265ee9[_0x367d07(0xef)],'objectID':_0x265ee9[_0x367d07(0x365)],'unitID':_0x265ee9[_0x367d07(0x39f)]}});}async['updateCollaborator'](_0x3dbb38){const _0x443b04=_0x18b736,_0x28b627=this[_0x443b04(0x417)]()+_0x443b04(0x478);await this[_0x443b04(0x20c)][_0x443b04(0x227)](_0x28b627,{'body':_0x3dbb38});}async[_0x18b736(0x43d)](_0x24153f){const _0x34e7e3=_0x18b736,_0x500f69=this[_0x34e7e3(0x417)]()+_0x34e7e3(0x478);await this[_0x34e7e3(0x20c)][_0x34e7e3(0x3d3)](_0x500f69,{'body':_0x24153f});}async['listCollaborators'](_0x15d9f4){const _0x1fcd0b=_0x18b736,_0x561103=this['_getAPIPrefixPath']()+_0x1fcd0b(0x478);return(await this[_0x1fcd0b(0x20c)][_0x1fcd0b(0xf2)](_0x561103,{'params':{'objectID':_0x15d9f4[_0x1fcd0b(0x365)],'unitID':_0x15d9f4[_0x1fcd0b(0x39f)]}}))['body']['collaborators'];}async[_0x18b736(0x29b)](_0x4c8470){const _0x4fe55f=_0x18b736,_0x1d54e2=this[_0x4fe55f(0x417)]()+_0x4fe55f(0x478);await this[_0x4fe55f(0x20c)][_0x4fe55f(0x2c0)](_0x1d54e2,{'body':_0x4c8470});}},_0x18e336[_0x18b736(0x29a)]=_0x1775ae([_0x3d7936(0x0,_0x52e410['Inject'](_0x302c55['HTTPService'])),_0x3d7936(0x1,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x207)]))],_0x18e336[_0x18b736(0x29a)]);var _0x67eb36=Object[_0x18b736(0x180)],_0x37ee4d=Object[_0x18b736(0x301)],_0x3d07a9=(_0x2efa32,_0x2d6d7e,_0x47ce3a,_0x3f56ff)=>{for(var _0x389fd0=_0x3f56ff>0x1?void 0x0:_0x3f56ff?_0x37ee4d(_0x2d6d7e,_0x47ce3a):_0x2d6d7e,_0x3c98df=_0x2efa32['length']-0x1,_0xf01ee3;_0x3c98df>=0x0;_0x3c98df--)(_0xf01ee3=_0x2efa32[_0x3c98df])&&(_0x389fd0=(_0x3f56ff?_0xf01ee3(_0x2d6d7e,_0x47ce3a,_0x389fd0):_0xf01ee3(_0x389fd0))||_0x389fd0);return _0x3f56ff&&_0x389fd0&&_0x67eb36(_0x2d6d7e,_0x47ce3a,_0x389fd0),_0x389fd0;},_0x3c005a=(_0x10467,_0x54c2a2)=>(_0x270e1f,_0x324b70)=>_0x54c2a2(_0x270e1f,_0x324b70,_0x10467);let _0x55fb0a=class{constructor(_0x1af62a){const _0x489807=_0x18b736;this[_0x489807(0x403)]=_0x1af62a,this[_0x489807(0x191)]();}[_0x18b736(0x191)](){const _0x398fab=_0x18b736;this[_0x398fab(0x403)]['registerHTTPInterceptor']({'interceptor':(_0x48aa07,_0x4dd054)=>{const _0x3c6864=_0x398fab,_0x4942c2=_0x48aa07[_0x3c6864(0x396)],_0x59e627=_0x1cf26d[_0x3c6864(0x3fd)]();return _0x59e627&&_0x4942c2['set'](_0x3c6864(0x2c4),_0x59e627),_0x4dd054(_0x48aa07);}});}};_0x55fb0a=_0x3d07a9([_0x3c005a(0x0,_0x52e410[_0x18b736(0xca)](_0x302c55[_0x18b736(0x1cf)]))],_0x55fb0a);var _0x5cbca3=Object[_0x18b736(0x180)],_0x1ebd2c=Object[_0x18b736(0x301)],_0x324098=(_0x4e380f,_0x3581c3,_0x1ac9b8,_0x398a10)=>{const _0x124ad9=_0x18b736;for(var _0x1d693c=_0x398a10>0x1?void 0x0:_0x398a10?_0x1ebd2c(_0x3581c3,_0x1ac9b8):_0x3581c3,_0x435409=_0x4e380f[_0x124ad9(0x1bc)]-0x1,_0x214bcd;_0x435409>=0x0;_0x435409--)(_0x214bcd=_0x4e380f[_0x435409])&&(_0x1d693c=(_0x398a10?_0x214bcd(_0x3581c3,_0x1ac9b8,_0x1d693c):_0x214bcd(_0x1d693c))||_0x1d693c);return _0x398a10&&_0x1d693c&&_0x5cbca3(_0x3581c3,_0x1ac9b8,_0x1d693c),_0x1d693c;},_0x50e07c=(_0x498121,_0x4d8775)=>(_0x27cd94,_0x3b2ba2)=>_0x4d8775(_0x27cd94,_0x3b2ba2,_0x498121);const _0xe51b19=['image/png',_0x18b736(0xa1),_0x18b736(0x469),_0x18b736(0x3f2),_0x18b736(0x39b)],_0x165d14=0x5*0x400*0x400,_0x3c605f='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x55e576=_0x18b736(0x139),_0x1e9620=_0x18b736(0x214),_0x135574=_0x18b736(0x454);_0x18e336[_0x18b736(0x37e)]=class{constructor(_0x565b1d,_0x2754fa,_0x2ef5ce){const _0x1d262c=_0x18b736;_0x2dd6ee(this,_0x1d262c(0x218),0x0),_0x2dd6ee(this,_0x1d262c(0x15f),new _0xe9c73a[(_0x1d262c(0x305))]()),_0x2dd6ee(this,_0x1d262c(0x22d),this[_0x1d262c(0x15f)]),_0x2dd6ee(this,'_imageSourceCache',new Map()),(this[_0x1d262c(0x403)]=_0x565b1d,this['_configService']=_0x2754fa,this[_0x1d262c(0xf5)]=_0x2ef5ce);}['setWaitCount'](_0x555a97){const _0x1e97cb=_0x18b736;this[_0x1e97cb(0x218)]=_0x555a97,this[_0x1e97cb(0x15f)][_0x1e97cb(0x3fa)](_0x555a97);}[_0x18b736(0x2c5)](_0x5cf750,_0x4e4acd){const _0x2eff1e=_0x18b736;if(_0x4e4acd===_0x102a58[_0x2eff1e(0x4ae)][_0x2eff1e(0xc1)]){const _0x30a387=new Image();return _0x30a387[_0x2eff1e(0xaa)]=_0x5cf750,_0x30a387;}return this[_0x2eff1e(0x494)]['get'](_0x5cf750);}[_0x18b736(0x425)](_0x51e6ad,_0x4d7245,_0x450272){const _0x3f462c=_0x18b736;_0x4d7245===_0x102a58[_0x3f462c(0x4ae)][_0x3f462c(0xc1)]||_0x450272==null||this[_0x3f462c(0x494)][_0x3f462c(0x1e3)](_0x51e6ad,_0x450272);}async[_0x18b736(0x3ce)](_0x56cc14){const _0xd74a8f=_0x18b736;try{const _0x5d186c=this[_0xd74a8f(0x308)](this[_0xd74a8f(0x34d)](),''+_0x56cc14),_0x19a958=(await this['_httpService'][_0xd74a8f(0xf2)](_0x5d186c))['body'];if(_0x19a958['error']&&_0x19a958[_0xd74a8f(0x2e1)]['code']===_0x1b55b1['OK']){const _0x41fba0=new URL(_0x19a958[_0xd74a8f(0x1bf)],this['_getDownloadEndpointURL']())[_0xd74a8f(0x2e0)]();return Promise['resolve'](_0x41fba0);}return Promise['reject'](_0x19a958[_0xd74a8f(0x2e1)]);}catch(_0x4041f9){return Promise[_0xd74a8f(0x1f1)](_0x4041f9);}}async[_0x18b736(0x16d)](_0x55199d){const _0x12d19e=_0x18b736;let _0x1e1666='';if(!_0xe51b19[_0x12d19e(0x3bb)](_0x55199d['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x102a58[_0x12d19e(0x431)][_0x12d19e(0x314)]));if(_0x55199d[_0x12d19e(0x271)]>_0x165d14)return this['_decreaseWaiting'](),Promise[_0x12d19e(0x1f1)](new Error(_0x102a58[_0x12d19e(0x431)][_0x12d19e(0x410)]));try{const _0x17afe6=new FormData();_0x17afe6['append'](_0x12d19e(0x46e),_0x55199d);const _0x43358c=this['_univerInstanceService'][_0x12d19e(0x36a)](),_0x34baa6=_0x43358c==null?void 0x0:_0x43358c[_0x12d19e(0x28b)]();if(!_0x34baa6)throw new Error('unitId\x20is\x20not\x20found');const _0x10a7f0=this[_0x12d19e(0x470)]()+_0x12d19e(0x37f)+_0x55199d[_0x12d19e(0x271)]['toString']()+_0x12d19e(0x135)+_0x27a8ed[_0x12d19e(0x272)]+_0x12d19e(0x199)+encodeURIComponent(_0x34baa6),_0x45c4f1=await(await fetch(_0x10a7f0,{'method':_0x12d19e(0x2a2),'body':_0x17afe6}))['json']();if(typeof _0x45c4f1[_0x12d19e(0x357)]!=_0x12d19e(0x3e1))return this[_0x12d19e(0x1d1)](),Promise['reject'](new Error(_0x102a58[_0x12d19e(0x431)][_0x12d19e(0x48b)]));_0x1e1666=_0x45c4f1[_0x12d19e(0x357)];}catch{return this[_0x12d19e(0x1d1)](),Promise[_0x12d19e(0x1f1)](new Error(_0x102a58[_0x12d19e(0x431)][_0x12d19e(0x48b)]));}return new Promise((_0x189db2,_0x5400cf)=>{const _0x4afad9=_0x12d19e,_0x5df396=new FileReader();_0x5df396[_0x4afad9(0x1d7)](_0x55199d),_0x5df396[_0x4afad9(0x387)]=_0x4e8073=>{const _0x3add54=_0x4afad9;var _0x346a3b;const _0x12209c=(_0x346a3b=_0x4e8073['target'])==null?void 0x0:_0x346a3b[_0x3add54(0x4b1)];if(_0x12209c==null){this[_0x3add54(0x1d1)](),_0x5400cf(new Error(_0x102a58[_0x3add54(0x431)][_0x3add54(0x48b)]));return;}const _0x543d78=_0x52e410[_0x3add54(0x37d)][_0x3add54(0xba)](0x6);_0x189db2({'imageId':_0x543d78,'imageSourceType':_0x102a58['ImageSourceType'][_0x3add54(0x210)],'source':_0x1e1666,'base64Cache':_0x12209c,'status':_0x102a58[_0x3add54(0x431)][_0x3add54(0x390)]}),this['_decreaseWaiting']();};});}[_0x18b736(0x470)](){const _0x4bbbd0=_0x18b736;var _0x241c77,_0x56f369;const _0x2d76aa=this[_0x4bbbd0(0x102)][_0x4bbbd0(0x119)](_0x3c605f),_0x3aa281=this[_0x4bbbd0(0x102)][_0x4bbbd0(0x119)](_0x48532f);return(_0x56f369=(_0x241c77=_0x3aa281==null?void 0x0:_0x3aa281[_0x4bbbd0(0x20d)])!=null?_0x241c77:_0x2d76aa)!=null?_0x56f369:_0x55e576;}[_0x18b736(0x34d)](){const _0x5c0817=_0x18b736;var _0x383155,_0x513832;const _0x5c30d8=this[_0x5c0817(0x102)][_0x5c0817(0x119)](_0x1e9620),_0x51b4c7=this[_0x5c0817(0x102)][_0x5c0817(0x119)](_0x48532f);return(_0x513832=(_0x383155=_0x51b4c7==null?void 0x0:_0x51b4c7[_0x5c0817(0x312)])!=null?_0x383155:_0x5c30d8)!=null?_0x513832:_0x135574;}[_0x18b736(0x3ec)](){const _0x4f0b99=_0x18b736;var _0x35b779;const _0x50be8f=this[_0x4f0b99(0x102)][_0x4f0b99(0x119)](_0x48532f);return(_0x35b779=_0x50be8f==null?void 0x0:_0x50be8f[_0x4f0b99(0x28c)])!=null?_0x35b779:location['origin'];}['_replaceFileID'](_0x25278e,_0x4fe948){const _0x57c148=_0x18b736;return _0x25278e['replace'](_0x57c148(0x366),_0x4fe948);}[_0x18b736(0x1d1)](){const _0x1d203f=_0x18b736;this[_0x1d203f(0x218)]-=0x1,this[_0x1d203f(0x15f)][_0x1d203f(0x3fa)](this[_0x1d203f(0x218)]);}},_0x18e336[_0x18b736(0x37e)]=_0x324098([_0x50e07c(0x0,_0x52e410[_0x18b736(0xca)](_0x302c55[_0x18b736(0x1cf)])),_0x50e07c(0x1,_0x52e410[_0x18b736(0x207)]),_0x50e07c(0x2,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x1de)]))],_0x18e336[_0x18b736(0x37e)]);var _0x13c582=Object[_0x18b736(0x180)],_0x3c3f99=Object[_0x18b736(0x301)],_0x218e9d=(_0x361956,_0x2c7035,_0x1b407f,_0x51602f)=>{const _0x17e509=_0x18b736;for(var _0x52e227=_0x51602f>0x1?void 0x0:_0x51602f?_0x3c3f99(_0x2c7035,_0x1b407f):_0x2c7035,_0x5a074d=_0x361956[_0x17e509(0x1bc)]-0x1,_0x2216ea;_0x5a074d>=0x0;_0x5a074d--)(_0x2216ea=_0x361956[_0x5a074d])&&(_0x52e227=(_0x51602f?_0x2216ea(_0x2c7035,_0x1b407f,_0x52e227):_0x2216ea(_0x52e227))||_0x52e227);return _0x51602f&&_0x52e227&&_0x13c582(_0x2c7035,_0x1b407f,_0x52e227),_0x52e227;},_0x470874=(_0x52c8c5,_0x190da8)=>(_0x567a4c,_0x2d9568)=>_0x190da8(_0x567a4c,_0x2d9568,_0x52c8c5);let _0x5d3c69=class extends _0x52e410[_0x18b736(0x3a3)]{constructor(_0x475278,_0x4198e,_0x55db11,_0x18cdb7,_0x523e02){const _0xdf3ce4=_0x18b736;super(),this[_0xdf3ce4(0x19c)]=_0x475278,this[_0xdf3ce4(0xf5)]=_0x4198e,this[_0xdf3ce4(0x349)]=_0x55db11,this[_0xdf3ce4(0x26c)]=_0x18cdb7,this[_0xdf3ce4(0x389)]=_0x523e02,this['_initUnitPermissionChange'](),this[_0xdf3ce4(0x240)]();}['_initCloseConn'](){const _0x580b2d=_0x18b736,_0x53fdf7=async _0x12678c=>{const _0x2b8011=_0x3ebc;(await this[_0x2b8011(0x26c)][_0x2b8011(0x31c)](_0x12678c))[_0x2b8011(0x35e)]['pipe'](_0x5a1ba2[_0x2b8011(0x1d4)](_0x35b65f=>_0x35b65f['eventID']===_0x133afc['CollaborationEvent'][_0x2b8011(0x369)]),_0x5a1ba2[_0x2b8011(0x2ee)](this['dispose$']))['subscribe'](_0x2bfd9d=>{const _0x4961a7=_0x2b8011,_0x1cb5d1=_0x2bfd9d,{reason:_0x4843fc}=_0x1cb5d1[_0x4961a7(0x355)];this[_0x4961a7(0x19c)]['get'](_0x4d3b05['IMessageService'])['show']({'type':_0x716320[_0x4961a7(0x1f7)]['Error'],'content':this[_0x4961a7(0x389)]['t'](_0x4961a7(0x246))+'('+_0x4843fc+')'}),this[_0x4961a7(0x349)]['updatePermissionPoint'](new _0x547cac[(_0x4961a7(0x2bb))](_0x12678c)['id'],!0x1),this[_0x4961a7(0x26c)][_0x4961a7(0x47e)](_0x12678c);});};_0xe9c73a['merge'](this[_0x580b2d(0xf5)][_0x580b2d(0x418)](_0x52e410[_0x580b2d(0x24c)][_0x580b2d(0x14d)]),this[_0x580b2d(0xf5)][_0x580b2d(0x418)](_0x52e410['UniverInstanceType'][_0x580b2d(0x1c5)]))[_0x580b2d(0x2fd)](_0x5a1ba2[_0x580b2d(0x2c2)](_0x5b0643=>_0x5b0643['getUnitId']()),_0x5a1ba2[_0x580b2d(0x1d4)](_0x5ec934=>!_0x52e410[_0x580b2d(0x2a0)](_0x5ec934)),_0x5a1ba2[_0x580b2d(0x2ee)](this['dispose$']))['subscribe'](_0x1b34e6=>{_0x53fdf7(_0x1b34e6);});}[_0x18b736(0x2d9)](){const _0x284d76=_0x18b736,_0x2e46b4=async _0x13f9f9=>{const _0x30fb56=_0x3ebc;(await this[_0x30fb56(0x26c)]['requireSession'](_0x13f9f9))['event$'][_0x30fb56(0x2fd)](_0x5a1ba2[_0x30fb56(0x1d4)](_0x2f0594=>_0x2f0594[_0x30fb56(0xbb)]===_0x133afc['CollaborationEvent'][_0x30fb56(0x169)]),_0x5a1ba2['takeUntil'](this[_0x30fb56(0x32a)]))[_0x30fb56(0xd1)](_0x29ed68=>{const _0xf1aa8f=_0x30fb56,_0x2b09f0=_0x29ed68,{objectId:_0x34ce47}=_0x2b09f0['data'],_0x582970=this['_injector']['get'](_0x35e820[_0xf1aa8f(0x230)]);_0x34ce47===_0x13f9f9?_0x582970['initWorkbookPermissionChange'](_0x13f9f9):_0x582970[_0xf1aa8f(0x24f)](_0x13f9f9,_0x34ce47);});};_0xe9c73a[_0x284d76(0x3be)](this[_0x284d76(0xf5)][_0x284d76(0x418)](_0x52e410[_0x284d76(0x24c)][_0x284d76(0x14d)]),this[_0x284d76(0xf5)]['getTypeOfUnitAdded$'](_0x52e410[_0x284d76(0x24c)][_0x284d76(0x1c5)]))[_0x284d76(0x2fd)](_0x5a1ba2['map'](_0x3dda30=>_0x3dda30['getUnitId']()),_0x5a1ba2['filter'](_0x125d4d=>!_0x52e410['isInternalEditorID'](_0x125d4d)),_0x5a1ba2[_0x284d76(0x2ee)](this['dispose$']))[_0x284d76(0xd1)](_0x136608=>{_0x2e46b4(_0x136608);});}};_0x5d3c69=_0x218e9d([_0x470874(0x0,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x382)])),_0x470874(0x1,_0x52e410[_0x18b736(0x1de)]),_0x470874(0x2,_0x52e410[_0x18b736(0x358)]),_0x470874(0x3,_0x52e410['Inject'](_0x18e336[_0x18b736(0x3e7)])),_0x470874(0x4,_0x52e410[_0x18b736(0xca)](_0x52e410['LocaleService']))],_0x5d3c69);var _0x29fe9b=Object[_0x18b736(0x180)],_0x25b747=Object['getOwnPropertyDescriptor'],_0x438311=(_0x3ff0f5,_0x43163d,_0xe7c90b,_0x3de438)=>{const _0x4f66b4=_0x18b736;for(var _0x3643e6=_0x3de438>0x1?void 0x0:_0x3de438?_0x25b747(_0x43163d,_0xe7c90b):_0x43163d,_0x29591a=_0x3ff0f5[_0x4f66b4(0x1bc)]-0x1,_0x39ba6e;_0x29591a>=0x0;_0x29591a--)(_0x39ba6e=_0x3ff0f5[_0x29591a])&&(_0x3643e6=(_0x3de438?_0x39ba6e(_0x43163d,_0xe7c90b,_0x3643e6):_0x39ba6e(_0x3643e6))||_0x3643e6);return _0x3de438&&_0x3643e6&&_0x29fe9b(_0x43163d,_0xe7c90b,_0x3643e6),_0x3643e6;},_0x162814=(_0x37b195,_0x238d19)=>(_0x5c4128,_0x4f142c)=>_0x238d19(_0x5c4128,_0x4f142c,_0x37b195);_0x18e336['SnapshotServerOverHTTPService']=class{constructor(_0x40921c,_0x2fc9af){const _0x233eb2=_0x18b736;this[_0x233eb2(0x102)]=_0x40921c,this[_0x233eb2(0x403)]=_0x2fc9af;}async['getUnitOnRev'](_0x38ea24,_0x40c3a7){const _0x3d914a=_0x18b736;var _0x4dac2b;const {unitID:_0xd6b935,type:_0x4b90ec,revision:_0x46ab63=0x0}=_0x40c3a7,_0x528276=this[_0x3d914a(0x204)]()+'/'+_0x4b90ec+_0x3d914a(0x344)+_0xd6b935+_0x3d914a(0x30b)+_0x46ab63,_0x585f96=(await this[_0x3d914a(0x403)][_0x3d914a(0xf2)](_0x528276))[_0x3d914a(0x25c)],_0x3fc569=(_0x4dac2b=_0x585f96[_0x3d914a(0x1a9)])==null?void 0x0:_0x4dac2b['workbook'];if(_0x3fc569){const _0x1e887b=_0x3fc569==null?void 0x0:_0x3fc569['originalMeta'],_0x21641e=_0x133afc[_0x3d914a(0x4ac)][_0x3d914a(0x481)](_0x133afc[_0x3d914a(0x434)](_0x1e887b));_0x3fc569[_0x3d914a(0xab)]=_0x21641e,Object['entries'](_0x3fc569[_0x3d914a(0x2a7)])['forEach'](([,_0x58dd2c])=>{const _0x5cafa6=_0x3d914a,_0x222dce=_0x58dd2c[_0x5cafa6(0xab)],_0x34ed34=_0x133afc[_0x5cafa6(0x4ac)][_0x5cafa6(0x481)](_0x133afc[_0x5cafa6(0x434)](_0x222dce));_0x58dd2c[_0x5cafa6(0xab)]=_0x34ed34;});}return _0x585f96;}async['getSheetBlock'](_0x1c5834,_0x3497bf){const _0x1c2270=_0x18b736,{unitID:_0x21f4fa,type:_0x1e1df5,blockID:_0x4c907f}=_0x3497bf,_0x5baaa2=this['_getAPIPrefix']()+'/'+_0x1e1df5+_0x1c2270(0x344)+_0x21f4fa+_0x1c2270(0xf4)+_0x4c907f;return(await this['_httpService']['get'](_0x5baaa2))[_0x1c2270(0x25c)];}async['getDeserializedSheetBlock'](_0x4421da,_0x1ca5cd){const _0x58a877=_0x18b736,{unitID:_0x2ead61,type:_0x19d2d0,blockID:_0x118208}=_0x1ca5cd,_0x167586=this[_0x58a877(0x409)]()+_0x58a877(0xf4)+_0x19d2d0+_0x58a877(0x344)+_0x2ead61+_0x58a877(0xf4)+_0x118208;return(await this['_httpService'][_0x58a877(0xf2)](_0x167586))[_0x58a877(0x25c)];}async[_0x18b736(0x21f)](_0xfbd524,_0x2672d7){const _0x295b6f=_0x18b736,{unitID:_0x3addeb,type:_0x3d9868,from:_0x52e648,to:_0x42a8f9}=_0x2672d7,_0x391636=this[_0x295b6f(0x409)]()+'/'+_0x3d9868+_0x295b6f(0x344)+_0x3addeb+_0x295b6f(0x437)+_0x52e648+_0x295b6f(0x3fe)+_0x42a8f9;return(await this[_0x295b6f(0x403)][_0x295b6f(0xf2)](_0x391636))[_0x295b6f(0x25c)];}[_0x18b736(0x204)](){const _0x283bec=_0x18b736;var _0x2ad47e;return(_0x2ad47e=this[_0x283bec(0x102)]['getConfig'](_0x5ae436))!=null?_0x2ad47e:this[_0x283bec(0x409)]();}['_getAPIPrefix'](){const _0x4ba455=_0x18b736;var _0x5429f8,_0x327ca5;const _0x3b0ca3=this['_configService'][_0x4ba455(0x119)](_0x33c214),_0x786d4c=this[_0x4ba455(0x102)][_0x4ba455(0x119)](_0x48532f);return(_0x327ca5=(_0x5429f8=_0x786d4c==null?void 0x0:_0x786d4c['snapshotServerUrl'])!=null?_0x5429f8:_0x3b0ca3)!=null?_0x327ca5:_0x50bf4d;}async[_0x18b736(0x12c)](_0x3abc14,_0x56e23c){const _0x2c131=_0x18b736,_0x2430ab='/universer-api/snapshot/'+_0x56e23c[_0x2c131(0x2cd)]+_0x2c131(0x344)+_0x56e23c[_0x2c131(0x39f)]+_0x2c131(0x254);return(await this[_0x2c131(0x403)]['get'](_0x2430ab,{'params':{'resourceId':JSON['stringify'](_0x56e23c['resourceIDs'])}}))['body'];}[_0x18b736(0x281)](){const _0x5a6229=_0x18b736;throw new Error(_0x5a6229(0x1d8));}[_0x18b736(0x48d)](){const _0x24d7fe=_0x18b736;throw new Error(_0x24d7fe(0x1d8));}[_0x18b736(0x3a0)](){const _0x4ee2c3=_0x18b736;throw new Error(_0x4ee2c3(0x1d8));}['copyFileMeta'](){const _0x124a89=_0x18b736;throw new Error(_0x124a89(0x1d8));}},_0x18e336[_0x18b736(0x159)]=_0x438311([_0x162814(0x0,_0x52e410['IConfigService']),_0x162814(0x1,_0x52e410[_0x18b736(0xca)](_0x302c55['HTTPService']))],_0x18e336[_0x18b736(0x159)]);var _0x31e2a2=Object[_0x18b736(0x180)],_0xc61369=Object[_0x18b736(0x301)],_0x34ae2e=(_0x126b4d,_0x454c0b,_0xf193e,_0x3a6ccb)=>{for(var _0x33f952=_0x3a6ccb>0x1?void 0x0:_0x3a6ccb?_0xc61369(_0x454c0b,_0xf193e):_0x454c0b,_0x102660=_0x126b4d['length']-0x1,_0x2ce544;_0x102660>=0x0;_0x102660--)(_0x2ce544=_0x126b4d[_0x102660])&&(_0x33f952=(_0x3a6ccb?_0x2ce544(_0x454c0b,_0xf193e,_0x33f952):_0x2ce544(_0x33f952))||_0x33f952);return _0x3a6ccb&&_0x33f952&&_0x31e2a2(_0x454c0b,_0xf193e,_0x33f952),_0x33f952;},_0x30eaf1=(_0x24a586,_0x2d7f9d)=>(_0xe97936,_0x2616d4)=>_0x2d7f9d(_0xe97936,_0x2616d4,_0x24a586);let _0x3b1cee=class extends _0x52e410[_0x18b736(0x1a8)]{constructor(_0x181db3,_0x4dae17,_0x35d3b4,_0x3b1cb5,_0x488f7c){const _0xfa6acd=_0x18b736;super(_0x181db3,_0x4dae17,_0x35d3b4),this[_0xfa6acd(0x3b5)]=_0x3b1cb5,this['_logService']=_0x488f7c;}[_0x18b736(0xb3)](_0x2d8f93,_0x4cd372){const _0x224b85=_0x18b736,_0x2b4766=this[_0x224b85(0x1a7)](_0x2d8f93);if(_0x2b4766)try{const _0x23964a=this[_0x224b85(0xf1)](_0x2b4766,_0x4cd372);this[_0x224b85(0x1b5)](_0x2d8f93,_0x23964a);}catch(_0x2c242e){this[_0x224b85(0x307)][_0x224b85(0x2e1)]('[CollaborationUndoRedoService]',_0x2c242e),this['_clearUndo'](_0x2d8f93);}const _0x24467c=this[_0x224b85(0x422)](_0x2d8f93);if(_0x24467c)try{const _0x407dcc=this[_0x224b85(0xf1)](_0x24467c,_0x4cd372);this['_substituteRedoStack'](_0x2d8f93,_0x407dcc);}catch(_0x3d4e48){this[_0x224b85(0x307)][_0x224b85(0x2e1)](_0x3d4e48),this[_0x224b85(0x26e)](_0x2d8f93);}}[_0x18b736(0xbf)](_0x23e1d6){const _0x254297=_0x18b736,_0xddd2e0=this['_getUndoStack'](_0x23e1d6);_0xddd2e0&&(_0xddd2e0[_0x254297(0x1bc)]=0x0,this[_0x254297(0x129)]());}[_0x18b736(0x26e)](_0x528fc3){const _0x447639=_0x18b736,_0x26d9a0=this[_0x447639(0x422)](_0x528fc3);_0x26d9a0&&(_0x26d9a0['length']=0x0,this[_0x447639(0x129)]());}['_substituteUndoStack'](_0x126f06,_0x5927b8){const _0x31d057=_0x18b736;this['_undoStacks'][_0x31d057(0x1e3)](_0x126f06,_0x5927b8),this[_0x31d057(0x129)]();}[_0x18b736(0x2b6)](_0x2a7280,_0x268da2){const _0x31626f=_0x18b736;this[_0x31626f(0x1c7)][_0x31626f(0x1e3)](_0x2a7280,_0x268da2),this[_0x31626f(0x129)]();}[_0x18b736(0xf1)](_0x5a65af,_0x35c4c9){const _0x14c5aa=_0x18b736,_0x35ba95=[];let _0x721c47=_0x35c4c9,_0x2d827f=_0x35c4c9;for(let _0x508ef4=_0x5a65af[_0x14c5aa(0x1bc)]-0x1;_0x508ef4>=0x0;_0x508ef4--){const {unitID:_0x16e6c7,undoMutations:_0xa805a8,redoMutations:_0x8fe783}=_0x5a65af[_0x508ef4],_0x6f7092=this[_0x14c5aa(0x3b5)][_0x14c5aa(0x21e)](_0x721c47,_0xa805a8),_0x3f5886=this[_0x14c5aa(0x3b5)]['transformMutationsWithChangeset'](_0x2d827f,_0x8fe783);if(_0x133afc[_0x14c5aa(0x459)](_0x6f7092)||_0x133afc[_0x14c5aa(0x459)](_0x3f5886)){this[_0x14c5aa(0x307)][_0x14c5aa(0x2e1)](_0x14c5aa(0x22b),_0x14c5aa(0x438),_0x6f7092,_0x3f5886);break;}_0x721c47=_0x6f7092['c1Prime'],_0x2d827f=_0x3f5886[_0x14c5aa(0x338)],_0x35ba95[_0x14c5aa(0x2da)]({'unitID':_0x16e6c7,'undoMutations':_0x6f7092['m2Prime'],'redoMutations':_0x3f5886[_0x14c5aa(0x1fa)]});}return _0x35ba95[_0x14c5aa(0x4cd)]();}};_0x3b1cee=_0x34ae2e([_0x30eaf1(0x0,_0x52e410[_0x18b736(0x1de)]),_0x30eaf1(0x1,_0x52e410[_0x18b736(0x406)]),_0x30eaf1(0x2,_0x52e410[_0x18b736(0x10c)]),_0x30eaf1(0x3,_0x133afc['ITransformService']),_0x30eaf1(0x4,_0x52e410[_0x18b736(0x170)])],_0x3b1cee);class _0x3a2fcc extends _0x52e410[_0x18b736(0x3a3)]{constructor(){const _0x2d3d58=_0x18b736;super(),_0x2dd6ee(this,_0x2d3d58(0x462)),this['urlChange$']=_0xe9c73a[_0x2d3d58(0x476)](window,'popstate')[_0x2d3d58(0x2fd)](_0xe9c73a[_0x2d3d58(0x2ee)](this['dispose$']),_0xe9c73a[_0x2d3d58(0x302)](0x1),_0xe9c73a[_0x2d3d58(0x4a5)](void 0x0));}[_0x18b736(0x22a)](_0x5f0cc2,_0x49545d,_0xed2410=!0x1){const _0xa62eb8=_0x18b736,_0x2d6d98=new URL(window['location'][_0xa62eb8(0x45a)]);_0x2d6d98[_0xa62eb8(0x1a3)][_0xa62eb8(0x1e3)](_0x5f0cc2,_0x49545d),_0xed2410?window['history']['replaceState']('','',_0x2d6d98['toString']()):window[_0xa62eb8(0x455)][_0xa62eb8(0x25f)]('','',_0x2d6d98[_0xa62eb8(0x2e0)]());}[_0x18b736(0x40f)](_0x1c62bb,_0x2ef4e1=!0x1){const _0x4d4fc6=_0x18b736,_0x595ae3=new URL(window[_0x4d4fc6(0x164)]['href']);_0x595ae3[_0x4d4fc6(0x1a3)][_0x4d4fc6(0x368)](_0x1c62bb),_0x2ef4e1?window[_0x4d4fc6(0x455)][_0x4d4fc6(0x2b1)]('','',_0x595ae3[_0x4d4fc6(0x2e0)]()):window[_0x4d4fc6(0x455)]['pushState']('','',_0x595ae3[_0x4d4fc6(0x2e0)]());}[_0x18b736(0x356)](_0x5e760f){const _0x48b254=_0x18b736;var _0x459fc6;return(_0x459fc6=new URL(window[_0x48b254(0x164)]['href'])['searchParams'][_0x48b254(0xf2)](_0x5e760f))!=null?_0x459fc6:void 0x0;}}var _0x8ad698=Object[_0x18b736(0x180)],_0x302bb4=Object['getOwnPropertyDescriptor'],_0x4c2538=(_0x361373,_0x52afaa,_0x3a0f3a)=>_0x52afaa in _0x361373?_0x8ad698(_0x361373,_0x52afaa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a0f3a}):_0x361373[_0x52afaa]=_0x3a0f3a,_0x5c2ad8=(_0x546271,_0x33d936,_0x406462,_0x26793d)=>{for(var _0x96a6c6=_0x26793d>0x1?void 0x0:_0x26793d?_0x302bb4(_0x33d936,_0x406462):_0x33d936,_0x4f9c14=_0x546271['length']-0x1,_0x1e3363;_0x4f9c14>=0x0;_0x4f9c14--)(_0x1e3363=_0x546271[_0x4f9c14])&&(_0x96a6c6=(_0x26793d?_0x1e3363(_0x33d936,_0x406462,_0x96a6c6):_0x1e3363(_0x96a6c6))||_0x96a6c6);return _0x26793d&&_0x96a6c6&&_0x8ad698(_0x33d936,_0x406462,_0x96a6c6),_0x96a6c6;},_0x4532b7=(_0xd3732e,_0x21557e)=>(_0x29d864,_0x578fa5)=>_0x21557e(_0x29d864,_0x578fa5,_0xd3732e),_0x5ec60d=(_0x2d264e,_0x3e36cc,_0x2f7d96)=>_0x4c2538(_0x2d264e,_0x3e36cc+'',_0x2f7d96);const _0x46a85b='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x18e336[_0x18b736(0x112)]=class extends _0x52e410['Plugin']{constructor(_0x4b4745=_0x51ea40,_0x1535bc,_0x33835c,_0x5baf69,_0xf8d2d9){const _0x34bc21=_0x18b736;super(),this['_config']=_0x4b4745,this[_0x34bc21(0x307)]=_0x1535bc,this[_0x34bc21(0x231)]=_0x33835c,this[_0x34bc21(0x19c)]=_0x5baf69,this['_configService']=_0xf8d2d9;const {..._0xa90f1f}=this[_0x34bc21(0x39a)];this[_0x34bc21(0x102)][_0x34bc21(0xed)](_0x48532f,_0xa90f1f);}[_0x18b736(0xe6)](){const _0x30628a=_0x18b736;this[_0x30628a(0x125)](),this['_injector'][_0x30628a(0xf2)](_0x5e01a2),this[_0x30628a(0x19c)][_0x30628a(0xf2)](_0x18e336[_0x30628a(0x430)]),this[_0x30628a(0x19c)][_0x30628a(0xf2)](_0x5d3c69);}[_0x18b736(0x3a2)](){const _0x45e3c4=_0x18b736;this[_0x45e3c4(0x19c)][_0x45e3c4(0xf2)](_0x4f4e05);}[_0x18b736(0x14e)](){const _0xb05886=_0x18b736;this[_0xb05886(0x363)]();}['onSteady'](){const _0x2d50a1=_0x18b736;this[_0x2d50a1(0x19c)][_0x2d50a1(0xf2)](_0x39a78f);}[_0x18b736(0x125)](){const _0x459a59=_0x18b736;var _0x3ceeed,_0x57917c,_0x3f7116,_0x16d9da;this[_0x459a59(0x19c)][_0x459a59(0x486)](_0x52e410['IUndoRedoService'])&&this[_0x459a59(0x307)][_0x459a59(0x2e1)](_0x459a59(0x17c),_0x459a59(0x1b9));let _0x1d4b27=[[_0x52e410[_0x459a59(0x477)],{'useClass':_0x3b1cee}],[_0x18e336['CollaborationSessionService']],[_0x36817f],[_0x302c55[_0x459a59(0x1cf)]],[_0x328d50,{'useClass':_0x3a2fcc}],[_0xc4e50a],[_0x18e336[_0x459a59(0x495)]],[_0x302c55[_0x459a59(0x1b4)]],[_0xfe8c3b],[_0x217b10],[_0x563df6],[_0x3ca707],[_0x2efaf],[_0x55fb0a],[_0xf24c31],[_0x5d3c69],[_0x10def0,{'useClass':(_0x57917c=(_0x3ceeed=this[_0x459a59(0x39a)])==null?void 0x0:_0x3ceeed[_0x459a59(0x2d1)])!=null?_0x57917c:_0x18e336[_0x459a59(0x219)]}],[_0x302c55['IHTTPImplementation'],{'useClass':_0x302c55[_0x459a59(0x2f8)]}],[_0x133afc['ISnapshotServerService'],{'useClass':_0x18e336['SnapshotServerOverHTTPService']}],[_0x52e410[_0x459a59(0x2aa)],{'useClass':_0x18e336[_0x459a59(0x29a)]}],[_0x102a58[_0x459a59(0x35c)],{'useClass':_0x18e336['ImageIoService']}],[_0x18e336[_0x459a59(0x46a)]],[_0x18e336[_0x459a59(0x430)]],[_0x18e336['DesktopCollaborationStatusDisplayController']],[_0x4f4e05],[_0x5e01a2]];(_0x3f7116=this[_0x459a59(0x39a)])!=null&&_0x3f7116['enableSingleActiveInstanceLock']&&_0x1d4b27['push']([_0x44fc1a,{'useClass':_0x33d71c}]),_0x1d4b27=_0x52e410[_0x459a59(0x419)](_0x1d4b27,(_0x16d9da=this['_config'])==null?void 0x0:_0x16d9da[_0x459a59(0x3a8)]),_0x1d4b27[_0x459a59(0x122)](_0x3c6113=>this[_0x459a59(0x19c)][_0x459a59(0x151)](_0x3c6113)),this[_0x459a59(0xc5)]();}[_0x18b736(0x363)](){const _0x11c15a=_0x18b736;this['disposeWithMe'](this[_0x11c15a(0x231)][_0x11c15a(0x2cf)](_0x52e410[_0x11c15a(0x24c)][_0x11c15a(0x1c5)],[_0x39a78f])),this[_0x11c15a(0x27b)](this[_0x11c15a(0x231)]['registerRenderModule'](_0x52e410[_0x11c15a(0x24c)][_0x11c15a(0x14d)],[_0x2a0099]));}['_initModules'](){const _0x2fedd8=_0x18b736;var _0x29b1c6,_0x12e992;this[_0x2fedd8(0x19c)][_0x2fedd8(0xf2)](_0x302c55[_0x2fedd8(0x1cf)])[_0x2fedd8(0x195)]({'priority':0x14,'interceptor':_0x302c55[_0x2fedd8(0x1aa)]({'maxParallel':0x6})}),this[_0x2fedd8(0x19c)][_0x2fedd8(0xf2)](_0x55fb0a),(_0x29b1c6=this['_config'])!=null&&_0x29b1c6[_0x2fedd8(0x4ca)]||this[_0x2fedd8(0x19c)][_0x2fedd8(0xf2)](_0x18e336[_0x2fedd8(0x495)])[_0x2fedd8(0x354)](),(_0x12e992=this[_0x2fedd8(0x39a)])!=null&&_0x12e992[_0x2fedd8(0x456)]&&this[_0x2fedd8(0x19c)][_0x2fedd8(0xf2)](_0x2efaf),this[_0x2fedd8(0x19c)][_0x2fedd8(0xf2)](_0x18e336[_0x2fedd8(0x46a)]),this[_0x2fedd8(0x19c)][_0x2fedd8(0x486)](_0x18e336['DesktopCollaborationStatusDisplayController'])&&this[_0x2fedd8(0x19c)][_0x2fedd8(0xf2)](_0x18e336[_0x2fedd8(0x12e)]);}},_0x5ec60d(_0x18e336[_0x18b736(0x112)],_0x18b736(0x3e5),_0x46a85b),_0x18e336[_0x18b736(0x112)]=_0x5c2ad8([_0x52e410[_0x18b736(0x467)](_0x133afc[_0x18b736(0x33e)]),_0x4532b7(0x1,_0x52e410['ILogService']),_0x4532b7(0x2,_0xa52036['IRenderManagerService']),_0x4532b7(0x3,_0x52e410[_0x18b736(0xca)](_0x52e410[_0x18b736(0x382)])),_0x4532b7(0x4,_0x52e410[_0x18b736(0x207)])],_0x18e336[_0x18b736(0x112)]),_0x18e336[_0x18b736(0xd3)]=_0x1c0c90,_0x18e336[_0x18b736(0x16e)]=_0x42f1d2,_0x18e336['COLLAB_WEB_SOCKET_URL_KEY']=_0x456542,_0x18e336[_0x18b736(0x1d9)]=_0x1a9629,_0x18e336['CollaborationStatusDisplay']=_0x20b6b1,_0x18e336[_0x18b736(0x3ef)]=_0xf24c31,_0x18e336[_0x18b736(0xea)]=_0x3a3913,_0x18e336[_0x18b736(0x34b)]=_0x2d6e65,_0x18e336[_0x18b736(0x156)]=_0x10def0,_0x18e336[_0x18b736(0x306)]=_0x328d50,_0x18e336[_0x18b736(0xd6)]=_0x27ab77,_0x18e336['LOGIN_URL_KEY']=_0x35248d,_0x18e336[_0x18b736(0xd4)]=_0x18f143,_0x18e336[_0x18b736(0x407)]=_0x2ba860,_0x18e336['SNAPSHOT_SERVER_URL_KEY']=_0x33c214,_0x18e336[_0x18b736(0x220)]=_0x5ae436,_0x18e336[_0x18b736(0x188)]=_0x30eb01,_0x18e336[_0x18b736(0x21a)]=_0x4f2a29,_0x18e336[_0x18b736(0x33f)]=_0x3a2fcc,_0x18e336[_0x18b736(0x49e)]=_0x5974b8,_0x18e336[_0x18b736(0x4ba)]=_0x511940,Object[_0x18b736(0x180)](_0x18e336,Symbol[_0x18b736(0x388)],{'value':'Module'});}));