@univerjs-pro/collaboration-client 0.5.0-nightly.202411091605 → 0.5.0-nightly.202411101605

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1f2fa=_0x3f71;(function(_0x204754,_0x672442){const _0xc2522e=_0x3f71,_0x51e18f=_0x204754();while(!![]){try{const _0x377b62=parseInt(_0xc2522e(0x28c))/0x1*(parseInt(_0xc2522e(0x431))/0x2)+-parseInt(_0xc2522e(0x5f1))/0x3*(parseInt(_0xc2522e(0x2ab))/0x4)+parseInt(_0xc2522e(0x1a7))/0x5*(-parseInt(_0xc2522e(0x535))/0x6)+parseInt(_0xc2522e(0x319))/0x7+-parseInt(_0xc2522e(0x5f5))/0x8*(-parseInt(_0xc2522e(0x3a0))/0x9)+-parseInt(_0xc2522e(0x3cc))/0xa+-parseInt(_0xc2522e(0x17f))/0xb;if(_0x377b62===_0x672442)break;else _0x51e18f['push'](_0x51e18f['shift']());}catch(_0x984363){_0x51e18f['push'](_0x51e18f['shift']());}}}(_0x424e,0x5357f));var Ln=Object[_0x1f2fa(0x4e5)],xn=(_0xa725e1,_0xc56a61,_0x261eca)=>_0xc56a61 in _0xa725e1?Ln(_0xa725e1,_0xc56a61,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x261eca}):_0xa725e1[_0xc56a61]=_0x261eca,I=(_0x4a3b22,_0x2696eb,_0x582c1)=>xn(_0x4a3b22,typeof _0x2696eb!=_0x1f2fa(0x5c3)?_0x2696eb+'':_0x2696eb,_0x582c1);Object[_0x1f2fa(0x4e5)](exports,Symbol[_0x1f2fa(0x2c7)],{'value':'Module'});const a=require('@univerjs/core'),A=require(_0x1f2fa(0x51d)),V=require(_0x1f2fa(0x4a4)),ge=require(_0x1f2fa(0x402)),ee=require(_0x1f2fa(0x501)),Z=require(_0x1f2fa(0x46a)),S=require(_0x1f2fa(0x391)),jn=require(_0x1f2fa(0x56e)),J=require(_0x1f2fa(0x271)),k=require('@univerjs/sheets'),K=require(_0x1f2fa(0x502)),ye=require(_0x1f2fa(0x2cf)),ne=require(_0x1f2fa(0x219)),Pt=require(_0x1f2fa(0x592)),Re=require(_0x1f2fa(0x57f)),ae=require(_0x1f2fa(0x33f)),$n=require(_0x1f2fa(0x434)),Zt=_0x1f2fa(0x1c8),Hn=_0x1f2fa(0x44b),Qt=_0x1f2fa(0x2a6),Bn=_0x1f2fa(0x1b1),kn=0x7d0,en='COLLAB_WEB_SOCKET_URL',Wn=_0x1f2fa(0x5da),tn='HEARTBEAT_INTERVAL',Fn=0x7530,Ct='HEARTBEAT_TIMEOUT',nn=0x4e20,Vn=0x4e20,sn=_0x1f2fa(0x2f2),Gn=0x3,rn=_0x1f2fa(0x5cf),Yn=0x3e8,on=_0x1f2fa(0x1be),Kn=_0x1f2fa(0x5d6),an=_0x1f2fa(0x4eb),qn=_0x1f2fa(0x5a9);var cn=(_0x2950d3=>(_0x2950d3[_0x2950d3['UNDEFINED']=0x0]='UNDEFINED',_0x2950d3[_0x2950d3['OK']=0x1]='OK',_0x2950d3[_0x2950d3[_0x1f2fa(0x603)]=0x2]=_0x1f2fa(0x603),_0x2950d3[_0x2950d3['PERMISSION_DENIED']=0x3]=_0x1f2fa(0x54d),_0x2950d3[_0x2950d3[_0x1f2fa(0x3b3)]=0x4]=_0x1f2fa(0x3b3),_0x2950d3[_0x2950d3[_0x1f2fa(0x590)]=0x5]='UNAUTHENTICATED',_0x2950d3[_0x2950d3[_0x1f2fa(0x290)]=0x6]=_0x1f2fa(0x290),_0x2950d3[_0x2950d3['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x2950d3[_0x2950d3[_0x1f2fa(0x47b)]=0x8]=_0x1f2fa(0x47b),_0x2950d3[_0x2950d3[_0x1f2fa(0x3f9)]=0x9]=_0x1f2fa(0x3f9),_0x2950d3[_0x2950d3[_0x1f2fa(0x571)]=0x1389]=_0x1f2fa(0x571),_0x2950d3[_0x2950d3[_0x1f2fa(0x1a8)]=0x1771]=_0x1f2fa(0x1a8),_0x2950d3[_0x2950d3[_0x1f2fa(0x220)]=0x1772]=_0x1f2fa(0x220),_0x2950d3[_0x2950d3[_0x1f2fa(0x2ce)]=0x1773]=_0x1f2fa(0x2ce),_0x2950d3[_0x2950d3['APPLY_REJECT']=0x1b59]=_0x1f2fa(0x4d2),_0x2950d3[_0x2950d3['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2950d3[_0x2950d3[_0x1f2fa(0x4b3)]=0x1b5b]=_0x1f2fa(0x4b3),_0x2950d3[_0x2950d3[_0x1f2fa(0x299)]=0x1b5c]=_0x1f2fa(0x299),_0x2950d3[_0x2950d3['APPLY_DUPLICATED']=0x1b5d]=_0x1f2fa(0x20c),_0x2950d3[_0x2950d3['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2950d3[_0x2950d3[_0x1f2fa(0x2de)]=0x2329]=_0x1f2fa(0x2de),_0x2950d3[_0x2950d3[_0x1f2fa(0x174)]=0x232a]=_0x1f2fa(0x174),_0x2950d3[_0x2950d3[_0x1f2fa(0x2e0)]=0x232b]=_0x1f2fa(0x2e0),_0x2950d3[_0x2950d3['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2950d3[_0x2950d3[_0x1f2fa(0x38d)]=0x232d]=_0x1f2fa(0x38d),_0x2950d3[_0x2950d3[_0x1f2fa(0x248)]=0x2711]=_0x1f2fa(0x248),_0x2950d3[_0x2950d3[_0x1f2fa(0x5a3)]=0x2712]=_0x1f2fa(0x5a3),_0x2950d3[_0x2950d3[_0x1f2fa(0x3e7)]=0x2713]=_0x1f2fa(0x3e7),_0x2950d3[_0x2950d3[_0x1f2fa(0x559)]=0x2714]=_0x1f2fa(0x559),_0x2950d3[_0x2950d3['UNRECOGNIZED']=-0x1]=_0x1f2fa(0x178),_0x2950d3))(cn||{}),ie=(_0x297a76=>(_0x297a76[_0x297a76[_0x1f2fa(0x54a)]=0x0]=_0x1f2fa(0x54a),_0x297a76[_0x297a76[_0x1f2fa(0x505)]=0x1]='UNIVER_DOC',_0x297a76[_0x297a76[_0x1f2fa(0x4c3)]=0x2]=_0x1f2fa(0x4c3),_0x297a76[_0x297a76[_0x1f2fa(0x5af)]=0x3]=_0x1f2fa(0x5af),_0x297a76[_0x297a76['UNIVER_PROJECT']=0x4]=_0x1f2fa(0x355),_0x297a76[_0x297a76[_0x1f2fa(0x178)]=-0x1]=_0x1f2fa(0x178),_0x297a76))(ie||{}),G=(_0x538f54=>(_0x538f54[_0x538f54['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x538f54[_0x538f54[_0x1f2fa(0x35f)]=0x1]=_0x1f2fa(0x35f),_0x538f54[_0x538f54[_0x1f2fa(0x577)]=0x2]=_0x1f2fa(0x577),_0x538f54[_0x538f54[_0x1f2fa(0x2c9)]=0x3]=_0x1f2fa(0x2c9),_0x538f54[_0x538f54['INGEST']=0x4]=_0x1f2fa(0x451),_0x538f54[_0x538f54[_0x1f2fa(0x1a3)]=0x5]=_0x1f2fa(0x1a3),_0x538f54[_0x538f54['RECV']=0x6]=_0x1f2fa(0x5e6),_0x538f54[_0x538f54[_0x1f2fa(0x178)]=-0x1]='UNRECOGNIZED',_0x538f54))(G||{}),Et=(_0x17bcef=>(_0x17bcef[_0x17bcef[_0x1f2fa(0x19e)]=0x0]=_0x1f2fa(0x19e),_0x17bcef[_0x17bcef['OK']=0x1]='OK',_0x17bcef[_0x17bcef[_0x1f2fa(0x44f)]=0x2]='FAIL',_0x17bcef[_0x17bcef[_0x1f2fa(0x178)]=-0x1]=_0x1f2fa(0x178),_0x17bcef))(Et||{}),ln=(_0x2b4dbf=>(_0x2b4dbf[_0x2b4dbf[_0x1f2fa(0x4fa)]=0x0]='Undefined',_0x2b4dbf[_0x2b4dbf[_0x1f2fa(0x241)]=0x1]=_0x1f2fa(0x241),_0x2b4dbf[_0x2b4dbf[_0x1f2fa(0x2a4)]=0x2]=_0x1f2fa(0x2a4),_0x2b4dbf[_0x2b4dbf[_0x1f2fa(0x1f0)]=0x3]=_0x1f2fa(0x1f0),_0x2b4dbf[_0x2b4dbf[_0x1f2fa(0x22c)]=0x4]='UnitSnapshot',_0x2b4dbf[_0x2b4dbf[_0x1f2fa(0x178)]=-0x1]=_0x1f2fa(0x178),_0x2b4dbf))(ln||{});const te=_0x1f2fa(0x373),zn={};function hn(_0x384589){const _0x5bc3dc=_0x1f2fa;var _0x47e2bd,_0x16d11a,_0x44c9cd,_0x3b6ad5,_0x501407;const _0x57d9d6=_0x384589['data'],_0x32ce76=JSON[_0x5bc3dc(0x55a)](_0x57d9d6);switch(_0x32ce76[_0x5bc3dc(0x2a9)]){case G[_0x5bc3dc(0x1a3)]:case G['HELLO']:{const _0x1ea8f7=_0x32ce76[_0x5bc3dc(0x39a)];return{..._0x32ce76,'data':_0x1ea8f7,'cmd':_0x32ce76[_0x5bc3dc(0x2a9)]};}case G[_0x5bc3dc(0x577)]:{const _0x15a3d3=_0x32ce76[_0x5bc3dc(0x3af)];return{..._0x32ce76,'data':_0x15a3d3,'cmd':_0x32ce76[_0x5bc3dc(0x2a9)]};}case G[_0x5bc3dc(0x5e6)]:{const _0x4753b4=_0x32ce76[_0x5bc3dc(0x1cd)];switch(_0x4753b4[_0x5bc3dc(0x38e)]){case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x20e)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':(_0x47e2bd=_0x4753b4[_0x5bc3dc(0x4c1)])==null?void 0x0:_0x47e2bd['cs']},'cmd':_0x32ce76['cmd']};case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x469)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':(_0x16d11a=_0x4753b4['csAckEvent'])==null?void 0x0:_0x16d11a['cs']},'cmd':_0x32ce76[_0x5bc3dc(0x2a9)]};case S['CollaborationEvent'][_0x5bc3dc(0x521)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':(_0x44c9cd=_0x4753b4['newCsEvent'])==null?void 0x0:_0x44c9cd['cs']},'cmd':_0x32ce76['cmd']};case S['CollaborationEvent'][_0x5bc3dc(0x5d2)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':(_0x3b6ad5=_0x4753b4[_0x5bc3dc(0x1f5)])==null?void 0x0:_0x3b6ad5['cs']},'cmd':_0x32ce76['cmd']};case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x5b8)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':(_0x501407=_0x4753b4['csShouldRetryEvent'])==null?void 0x0:_0x501407['cs']},'cmd':_0x32ce76[_0x5bc3dc(0x2a9)]};case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x326)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':_0x4753b4['updateCursorEvent']},'cmd':_0x32ce76['cmd']};case S['CollaborationEvent'][_0x5bc3dc(0x48a)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':_0x4753b4[_0x5bc3dc(0x5d9)]},'cmd':_0x32ce76[_0x5bc3dc(0x2a9)]};case S[_0x5bc3dc(0x416)]['USERS_LEAVE']:return{..._0x32ce76,'data':{..._0x4753b4,'data':_0x4753b4[_0x5bc3dc(0x234)]},'cmd':_0x32ce76[_0x5bc3dc(0x2a9)]};case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x3cb)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':_0x4753b4[_0x5bc3dc(0x56a)]},'cmd':_0x32ce76['cmd']};case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x46e)]:case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x320)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':_0x4753b4[_0x5bc3dc(0x20d)]},'cmd':_0x32ce76[_0x5bc3dc(0x2a9)]};case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x35a)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':_0x4753b4[_0x5bc3dc(0x56a)]},'cmd':_0x32ce76['cmd']};case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x42c)]:return{..._0x32ce76,'data':_0x4753b4,'cmd':_0x32ce76[_0x5bc3dc(0x2a9)]};case S[_0x5bc3dc(0x416)]['COMMENT_UPDATE']:return{..._0x32ce76,'data':{..._0x4753b4,'data':_0x4753b4['commentUpdateEvent']},'cmd':_0x32ce76[_0x5bc3dc(0x2a9)]};case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x291)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':_0x4753b4[_0x5bc3dc(0x312)]},'cmd':_0x32ce76[_0x5bc3dc(0x2a9)]};case S[_0x5bc3dc(0x416)][_0x5bc3dc(0x211)]:return{..._0x32ce76,'data':{..._0x4753b4,'data':_0x4753b4[_0x5bc3dc(0x551)]},'cmd':_0x32ce76['cmd']};default:return _0x32ce76;}}default:return _0x32ce76;}}function _n(_0x187505){const _0x4afa6d=_0x1f2fa;switch(_0x187505[_0x4afa6d(0x2a9)]){case G[_0x4afa6d(0x1a3)]:case G[_0x4afa6d(0x35f)]:return JSON[_0x4afa6d(0x3f4)]({'cmd':_0x187505[_0x4afa6d(0x2a9)],'routeKey':_0x187505[_0x4afa6d(0x19d)]});case G[_0x4afa6d(0x451)]:{let _0x4f04b3;switch(_0x187505[_0x4afa6d(0x462)]['eventID']){case S['CollaborationEvent']['UPDATE_CURSOR']:{_0x4f04b3={'eventID':S[_0x4afa6d(0x416)]['UPDATE_CURSOR'],'updateCursorEvent':_0x187505['data'][_0x4afa6d(0x462)]};break;}case S[_0x4afa6d(0x416)]['USERS_LEAVE']:{_0x4f04b3={'eventID':S[_0x4afa6d(0x416)][_0x4afa6d(0x3ed)],'leaveEvent':_0x187505[_0x4afa6d(0x462)]['data']};break;}case S[_0x4afa6d(0x416)]['USERS_ENTER']:{_0x4f04b3={'eventID':S[_0x4afa6d(0x416)][_0x4afa6d(0x48a)],'joinEvent':_0x187505[_0x4afa6d(0x462)]['data']};break;}case S[_0x4afa6d(0x416)][_0x4afa6d(0x3cb)]:{_0x4f04b3={'eventID':S['CollaborationEvent'][_0x4afa6d(0x3cb)],'liveShareNewHost':_0x187505[_0x4afa6d(0x462)][_0x4afa6d(0x462)]};break;}case S[_0x4afa6d(0x416)][_0x4afa6d(0x320)]:{_0x4f04b3={'eventID':S[_0x4afa6d(0x416)][_0x4afa6d(0x320)],'liveShareOperation':_0x187505[_0x4afa6d(0x462)][_0x4afa6d(0x462)]};break;}case S[_0x4afa6d(0x416)][_0x4afa6d(0x35a)]:{_0x4f04b3={'eventID':S[_0x4afa6d(0x416)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x187505[_0x4afa6d(0x462)][_0x4afa6d(0x462)]};break;}case S[_0x4afa6d(0x416)][_0x4afa6d(0x341)]:{_0x4f04b3={'eventID':S[_0x4afa6d(0x416)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x187505[_0x4afa6d(0x462)][_0x4afa6d(0x462)]};break;}case S[_0x4afa6d(0x416)][_0x4afa6d(0x46e)]:{_0x4f04b3={'eventID':S[_0x4afa6d(0x416)][_0x4afa6d(0x46e)]};break;}default:_0x4f04b3={'eventID':_0x187505['data'][_0x4afa6d(0x38e)]};}return JSON[_0x4afa6d(0x3f4)]({'cmd':_0x187505['cmd'],'routeKey':_0x187505[_0x4afa6d(0x19d)],'collaMsg':_0x4f04b3});}case G[_0x4afa6d(0x577)]:return JSON[_0x4afa6d(0x3f4)]({'cmd':_0x187505[_0x4afa6d(0x2a9)],'routeKey':_0x187505[_0x4afa6d(0x19d)],'joinReq':_0x187505[_0x4afa6d(0x462)]});case G[_0x4afa6d(0x2c9)]:return JSON[_0x4afa6d(0x3f4)]({'cmd':_0x187505[_0x4afa6d(0x2a9)],'routeKey':_0x187505[_0x4afa6d(0x19d)],'leaveReq':_0x187505[_0x4afa6d(0x462)]});default:throw new Error(_0x4afa6d(0x4da));}}var Xn=Object['defineProperty'],Jn=Object[_0x1f2fa(0x40d)],Zn=(_0x1fe9a8,_0x46e2e1,_0x1c4cf2,_0x50ecfa)=>{for(var _0x51a852=_0x50ecfa>0x1?void 0x0:_0x50ecfa?Jn(_0x46e2e1,_0x1c4cf2):_0x46e2e1,_0x3a1fe4=_0x1fe9a8['length']-0x1,_0x348280;_0x3a1fe4>=0x0;_0x3a1fe4--)(_0x348280=_0x1fe9a8[_0x3a1fe4])&&(_0x51a852=(_0x50ecfa?_0x348280(_0x46e2e1,_0x1c4cf2,_0x51a852):_0x348280(_0x51a852))||_0x51a852);return _0x50ecfa&&_0x51a852&&Xn(_0x46e2e1,_0x1c4cf2,_0x51a852),_0x51a852;},we=(_0x5e9c05,_0x246706)=>(_0x48df1d,_0x594d5e)=>_0x246706(_0x48df1d,_0x594d5e,_0x5e9c05);const bt=a['createIdentifier'](_0x1f2fa(0x2f0));function Qn(_0x567b62,_0x47901c,_0x28b039){const _0x54aa2c=_0x1f2fa;return _0x567b62+'/'+_0x47901c+_0x54aa2c(0x17b)+_0x28b039+_0x54aa2c(0x3df);}exports[_0x1f2fa(0x2b7)]=class extends a[_0x1f2fa(0x1d6)]{constructor(_0x5ea56f,_0x297e38,_0x2ccd2f,_0x156fe0,_0x20e1f0){const _0x1ead01=_0x1f2fa;super(),this[_0x1ead01(0x2ef)]=_0x5ea56f,this[_0x1ead01(0x2bc)]=_0x297e38,this[_0x1ead01(0x499)]=_0x2ccd2f,this[_0x1ead01(0x1d8)]=_0x156fe0,this['_snapshotServerService']=_0x20e1f0;}[_0x1f2fa(0x558)](_0xc0f0ef){const _0x5ea169=_0x1f2fa,_0x391065=this['_ws'][_0x5ea169(0x558)](_0xc0f0ef);if(!_0x391065)throw new Error(_0x5ea169(0x548));const _0x93e834=new a[(_0x5ea169(0x2af))](),_0x2c4aa4=new A[(_0x5ea169(0x2ba))]();_0x93e834['add'](_0x391065['close$']['subscribe'](_0x1c4b59=>_0x2c4aa4[_0x5ea169(0x497)](_0x1c4b59))),_0x93e834[_0x5ea169(0x515)](a[_0x5ea169(0x5ad)](()=>_0x2c4aa4[_0x5ea169(0x60c)]()));const _0x29939f=new A['Subject']();_0x93e834[_0x5ea169(0x515)](_0x391065[_0x5ea169(0x359)]['subscribe'](_0x273a95=>_0x29939f[_0x5ea169(0x497)](_0x273a95))),_0x93e834[_0x5ea169(0x515)](a[_0x5ea169(0x5ad)](()=>_0x29939f[_0x5ea169(0x60c)]()));const _0xc909fd=new A[(_0x5ea169(0x2ba))]();_0x93e834['add'](_0x391065[_0x5ea169(0x32d)][_0x5ea169(0x25e)](_0x122aef=>{const _0x446665=_0x5ea169,_0x4ec453=hn(_0x122aef);_0xc909fd[_0x446665(0x497)](_0x4ec453);})),_0x93e834[_0x5ea169(0x515)](a[_0x5ea169(0x5ad)](()=>_0xc909fd[_0x5ea169(0x60c)]()));let _0x2b0d08;const _0x1d094d=()=>{const _0x4b8b90=_0x5ea169;_0x29939f['next'](new Event(_0x4b8b90(0x22a))),_0x2c4aa4['next'](new CloseEvent(_0x4b8b90(0x22a))),_0x2b0d08[_0x4b8b90(0x297)]();};return _0x2b0d08={'memberID':'','close$':_0x2c4aa4[_0x5ea169(0x5de)](),'error$':_0x29939f[_0x5ea169(0x5de)](),'open$':_0x391065['open$'],'message$':_0xc909fd[_0x5ea169(0x5de)](),'send':_0x665214=>{const _0x5f4f49=_0x5ea169;if(_0x665214[_0x5f4f49(0x2a9)]===G[_0x5f4f49(0x451)]){if(_0x665214[_0x5f4f49(0x462)][_0x5f4f49(0x38e)]===S[_0x5f4f49(0x416)]['SUBMIT_CHANGESET']){this[_0x5f4f49(0x16d)](_0x2b0d08,_0x665214[_0x5f4f49(0x462)])[_0x5f4f49(0x26f)](_0x54195b=>{const _0x38d3fa=_0x5f4f49;this[_0x38d3fa(0x1d8)]['error'](_0x54195b),_0x1d094d();});return;}if(_0x665214['data'][_0x5f4f49(0x38e)]===S[_0x5f4f49(0x416)][_0x5f4f49(0x4a6)]){const _0xb2da95=_0x665214['data'];this[_0x5f4f49(0x18a)](_0xb2da95)[_0x5f4f49(0x213)](_0x262d2e=>{const _0x1f437a=_0x5f4f49;_0xc909fd[_0x1f437a(0x497)]({'cmd':G['RECV'],'code':Et['OK'],'routeKey':_0xb2da95[_0x1f437a(0x462)][_0x1f437a(0x604)],'routeType':'','data':{'eventID':S[_0x1f437a(0x416)][_0x1f437a(0x541)],'data':{'changesets':_0x262d2e}}});})[_0x5f4f49(0x26f)](_0x447bf5=>{const _0x2a788f=_0x5f4f49;this[_0x2a788f(0x1d8)]['error'](_0x447bf5),_0x1d094d();});return;}}_0x391065[_0x5f4f49(0x445)](_n(_0x665214));},'close':()=>{const _0x247b38=_0x5ea169;_0x391065[_0x247b38(0x297)](),_0x93e834[_0x247b38(0x366)]();}},_0x2b0d08;}async['_submitChangeset'](_0x4ee205,_0x21c444){const _0x15941d=_0x1f2fa;var _0x2d5081,_0x172735;const {unitType:_0x6bad56,unitID:_0x448fca,changeset:_0x580d68}=_0x21c444[_0x15941d(0x462)],_0x19cb30={'unitID':_0x448fca,'memberID':_0x4ee205[_0x15941d(0x264)],'type':_0x6bad56,'changeset':S[_0x15941d(0x39e)](_0x580d68)},_0x2b95f3=this[_0x15941d(0x499)]['getConfig'](on),_0x2adf5f=this['_configService'][_0x15941d(0x546)](te),_0x38bc3a=Qn((_0x172735=(_0x2d5081=_0x2adf5f==null?void 0x0:_0x2adf5f[_0x15941d(0x3ad)])!=null?_0x2d5081:_0x2b95f3)!=null?_0x172735:Kn,_0x6bad56,_0x448fca);try{await this[_0x15941d(0x2ef)][_0x15941d(0x43a)](_0x38bc3a,{'body':_0x19cb30});}catch(_0x3fbec1){throw this[_0x15941d(0x1d8)][_0x15941d(0x2d0)](_0x15941d(0x437),'submit\x20changeset\x20error!'),_0x3fbec1;}}async[_0x1f2fa(0x18a)](_0x4a7aa5){const _0x61f24d=_0x1f2fa,{unitID:_0x3ff5df,from:_0x268c3e,to:_0x4d50a1,unitType:_0x4f6617}=_0x4a7aa5[_0x61f24d(0x462)];return(await this[_0x61f24d(0x561)][_0x61f24d(0x289)]({'metadata':void 0x0},{'unitID':_0x3ff5df,'type':_0x4f6617,'from':_0x268c3e,'to':_0x4d50a1}))[_0x61f24d(0x54b)];}},exports[_0x1f2fa(0x2b7)]=Zn([we(0x0,a[_0x1f2fa(0x28d)](Z['HTTPService'])),we(0x1,a['Inject'](Z[_0x1f2fa(0x22d)])),we(0x2,a[_0x1f2fa(0x1b0)]),we(0x3,a[_0x1f2fa(0x1af)]),we(0x4,S[_0x1f2fa(0x1d2)])],exports[_0x1f2fa(0x2b7)]);const ei='collaboration_new_changeset';function ti(_0x346707){const _0x3af656=_0x1f2fa;return JSON[_0x3af656(0x3f4)](_0x346707)[_0x3af656(0x339)];}class Tt{constructor(){const _0x2b17c7=_0x1f2fa;I(this,_0x2b17c7(0x1dd),new A[(_0x2b17c7(0x2ba))]()),I(this,_0x2b17c7(0x21d),this[_0x2b17c7(0x1dd)][_0x2b17c7(0x5de)]());}[_0x1f2fa(0x1ce)](_0x111869){const _0x12ae17=_0x1f2fa;this[_0x12ae17(0x1dd)][_0x12ae17(0x497)](_0x111869);}}var ni=Object['defineProperty'],ii=Object['getOwnPropertyDescriptor'],si=(_0x339d81,_0xb3b40,_0xe9f3e1,_0xa8268c)=>{const _0x254add=_0x1f2fa;for(var _0x66c255=_0xa8268c>0x1?void 0x0:_0xa8268c?ii(_0xb3b40,_0xe9f3e1):_0xb3b40,_0x3deec8=_0x339d81[_0x254add(0x339)]-0x1,_0x2fe2c7;_0x3deec8>=0x0;_0x3deec8--)(_0x2fe2c7=_0x339d81[_0x3deec8])&&(_0x66c255=(_0xa8268c?_0x2fe2c7(_0xb3b40,_0xe9f3e1,_0x66c255):_0x2fe2c7(_0x66c255))||_0x66c255);return _0xa8268c&&_0x66c255&&ni(_0xb3b40,_0xe9f3e1,_0x66c255),_0x66c255;},Ut=(_0x560196,_0x2b1d30)=>(_0xf03047,_0x39d0a0)=>_0x2b1d30(_0xf03047,_0x39d0a0,_0x560196);exports[_0x1f2fa(0x3d8)]=class extends a['Disposable']{constructor(_0x1b25d1,_0x2cdc51){const _0x436048=_0x1f2fa;super(),I(this,_0x436048(0x411),new Map()),(this['_univerInstanceService']=_0x1b25d1,this[_0x436048(0x4e6)]=_0x2cdc51,this[_0x436048(0x305)](a[_0x436048(0x5ad)](A[_0x436048(0x1b6)](this[_0x436048(0x51c)][_0x436048(0x468)](a['UniverInstanceType'][_0x436048(0x4c3)])['pipe'](V[_0x436048(0x50e)](_0x4b0fab=>_0x4b0fab[_0x436048(0x4ea)]())),this[_0x436048(0x51c)][_0x436048(0x468)](a[_0x436048(0x5c7)][_0x436048(0x505)])[_0x436048(0x5f2)](V[_0x436048(0x50e)](_0xddbf61=>_0xddbf61['getUnitId']())),this[_0x436048(0x51c)][_0x436048(0x468)](a[_0x436048(0x5c7)]['UNIVER_SLIDE'])[_0x436048(0x5f2)](V[_0x436048(0x50e)](_0xbbf2b2=>_0xbbf2b2['getUnitId']())))['subscribe'](_0x447f9f=>this[_0x436048(0x4d6)](_0x447f9f)))));}[_0x1f2fa(0x212)](_0x28510f){const _0x4f9cbe=_0x1f2fa;this[_0x4f9cbe(0x4e6)]['setCurrentUser'](_0x28510f);}[_0x1f2fa(0x527)](){const _0x557a5f=_0x1f2fa;return this[_0x557a5f(0x4e6)]['getCurrentUser']();}[_0x1f2fa(0x3e6)](_0x59cca2,_0x4bdf6c){const _0x4f8e46=_0x1f2fa;let _0x42422a=this['_roomMembers'][_0x4f8e46(0x2f6)](_0x59cca2);_0x42422a||(_0x42422a=new ri(),this['_roomMembers'][_0x4f8e46(0x329)](_0x59cca2,_0x42422a)),_0x42422a['updateMember'](_0x4bdf6c);}['removeMember'](_0x2bf3a8,_0x385626){const _0x3b3c72=_0x1f2fa,_0x119eae=this['_roomMembers'][_0x3b3c72(0x2f6)](_0x2bf3a8);_0x119eae&&_0x119eae[_0x3b3c72(0x349)](_0x385626);}['getRoom'](_0x29202d){const _0x38ccfa=_0x1f2fa;return this[_0x38ccfa(0x411)][_0x38ccfa(0x2f6)](_0x29202d);}['getMember'](_0x2d24d4,_0x401977){const _0x203740=_0x1f2fa,_0x1f9813=this['_roomMembers'][_0x203740(0x2f6)](_0x2d24d4);if(_0x1f9813)return _0x1f9813['getMember'](_0x401977);}['_removeRoom'](_0x4a3bf1){const _0x2bba74=_0x1f2fa,_0x2ed169=this[_0x2bba74(0x411)][_0x2bba74(0x2f6)](_0x4a3bf1);_0x2ed169&&(_0x2ed169[_0x2bba74(0x366)](),this[_0x2bba74(0x411)][_0x2bba74(0x2e4)](_0x4a3bf1));}[_0x1f2fa(0x366)](){const _0x8768bb=_0x1f2fa;this[_0x8768bb(0x411)]['forEach'](_0x2c89e7=>_0x2c89e7[_0x8768bb(0x366)]()),this['_roomMembers']['clear']();}},exports[_0x1f2fa(0x3d8)]=si([Ut(0x0,a[_0x1f2fa(0x562)]),Ut(0x1,a[_0x1f2fa(0x28d)](a['UserManagerService']))],exports['MemberService']);function _0x3f71(_0x1dd5ba,_0x22a72a){const _0x424e05=_0x424e();return _0x3f71=function(_0x3f71ea,_0x4cd999){_0x3f71ea=_0x3f71ea-0x15a;let _0x2abe79=_0x424e05[_0x3f71ea];return _0x2abe79;},_0x3f71(_0x1dd5ba,_0x22a72a);}class ri extends a[_0x1f2fa(0x1d6)]{constructor(){const _0x4c8521=_0x1f2fa;super(...arguments),I(this,_0x4c8521(0x3b5),new Map());}['dispose'](){const _0x5d5b37=_0x1f2fa;this['_members'][_0x5d5b37(0x5aa)]();}['updateMember'](_0x4350b3){const _0x572635=_0x1f2fa;this[_0x572635(0x3b5)][_0x572635(0x329)](_0x4350b3[_0x572635(0x264)],_0x4350b3);}[_0x1f2fa(0x349)](_0x594654){const _0x413686=_0x1f2fa;this[_0x413686(0x3b5)][_0x413686(0x2e4)](_0x594654);}[_0x1f2fa(0x5c6)](_0x5ae956){const _0x1ffad3=_0x1f2fa;return this[_0x1ffad3(0x3b5)][_0x1ffad3(0x2f6)](_0x5ae956);}['getAllMembers'](){const _0x178338=_0x1f2fa;return Array[_0x178338(0x536)](this[_0x178338(0x3b5)][_0x178338(0x284)]());}}var oi=Object['defineProperty'],ai=Object[_0x1f2fa(0x40d)],ci=(_0x5e2f01,_0x2df290,_0x187099,_0x42c3e7)=>{const _0xe98796=_0x1f2fa;for(var _0x285b52=_0x42c3e7>0x1?void 0x0:_0x42c3e7?ai(_0x2df290,_0x187099):_0x2df290,_0x375c85=_0x5e2f01[_0xe98796(0x339)]-0x1,_0x248d94;_0x375c85>=0x0;_0x375c85--)(_0x248d94=_0x5e2f01[_0x375c85])&&(_0x285b52=(_0x42c3e7?_0x248d94(_0x2df290,_0x187099,_0x285b52):_0x248d94(_0x285b52))||_0x285b52);return _0x42c3e7&&_0x285b52&&oi(_0x2df290,_0x187099,_0x285b52),_0x285b52;},de=(_0x1c6663,_0x371ffd)=>(_0x542fad,_0x13652a)=>_0x371ffd(_0x542fad,_0x13652a,_0x1c6663),se=(_0xfdd02d=>(_0xfdd02d[_0xfdd02d[_0x1f2fa(0x552)]=0x0]=_0x1f2fa(0x552),_0xfdd02d[_0xfdd02d[_0x1f2fa(0x1dc)]=0x1]=_0x1f2fa(0x1dc),_0xfdd02d[_0xfdd02d['OFFLINE']=0x2]='OFFLINE',_0xfdd02d[_0xfdd02d[_0x1f2fa(0x4c0)]=0x3]=_0x1f2fa(0x4c0),_0xfdd02d))(se||{});exports[_0x1f2fa(0x466)]=class extends a[_0x1f2fa(0x2bd)]{constructor(_0x5cd0e4,_0x1aa191,_0xfca716,_0x19fd6f,_0x5e5f7c,_0x153566,_0x5f2c20,_0x32c064,_0x2f7aeb,_0x1b48ba){const _0x3e3fb0=_0x1f2fa;super(),I(this,_0x3e3fb0(0x4c9),new A[(_0x3e3fb0(0x25c))](0x0)),I(this,_0x3e3fb0(0x393),this[_0x3e3fb0(0x4c9)][_0x3e3fb0(0x5de)]()),I(this,_0x3e3fb0(0x428),new A[(_0x3e3fb0(0x2ba))]()),I(this,_0x3e3fb0(0x215),this[_0x3e3fb0(0x428)][_0x3e3fb0(0x5de)]()),I(this,'_socket'),I(this,_0x3e3fb0(0x2f4)),I(this,_0x3e3fb0(0x239)),I(this,'_shouldReportTelemetry',!0x1),I(this,_0x3e3fb0(0x3e3),null),(this['_unitID']=_0x5cd0e4,this['_logService']=_0xfca716,this[_0x3e3fb0(0x41f)]=_0x19fd6f,this[_0x3e3fb0(0x2a0)]=_0x5e5f7c,this[_0x3e3fb0(0x499)]=_0x153566,this[_0x3e3fb0(0x247)]=_0x5f2c20,this['_memberService']=_0x32c064,this[_0x3e3fb0(0x5c4)]=_0x2f7aeb,this[_0x3e3fb0(0x556)]=_0x1b48ba,this[_0x3e3fb0(0x4be)]=!!this[_0x3e3fb0(0x556)],_0x1aa191[_0x3e3fb0(0x5f2)](A['takeUntil'](this[_0x3e3fb0(0x57d)]))['subscribe'](_0x2dbd15=>{const _0x1f9e86=_0x3e3fb0;var _0x56e9b0;typeof _0x2dbd15>'u'||(this[_0x1f9e86(0x182)]=_0x2dbd15,_0x2dbd15?(this[_0x1f9e86(0x38a)](_0x2dbd15),this[_0x1f9e86(0x2f4)]=_0x2dbd15[_0x1f9e86(0x32d)][_0x1f9e86(0x25e)](_0x2dff79=>{const _0x3d1418=_0x1f9e86;_0x2dff79['routeKey']===this[_0x3d1418(0x204)]&&this[_0x3d1418(0x539)](_0x2dff79);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x1f9e86(0x4c9)][_0x1f9e86(0x497)](0x2),(_0x56e9b0=this['_socketMessageSubscription'])==null||_0x56e9b0[_0x1f9e86(0x484)](),this['_socketMessageSubscription']=null));}),this[_0x3e3fb0(0x305)](this[_0x3e3fb0(0x41f)][_0x3e3fb0(0x43d)](()=>{const _0x26ec43=_0x3e3fb0;var _0x45330a;(_0x45330a=this[_0x26ec43(0x182)])==null||_0x45330a['send']({'cmd':G['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x1f2fa(0x2e6)](){return this['_sessionStatus$']['getValue']();}[_0x1f2fa(0x296)](){const _0x2c5051=_0x1f2fa;var _0x4ee9e4,_0x42a26d;return(_0x42a26d=(_0x4ee9e4=this[_0x2c5051(0x182)])==null?void 0x0:_0x4ee9e4[_0x2c5051(0x264)])!=null?_0x42a26d:null;}[_0x1f2fa(0x366)](){const _0x93484=_0x1f2fa;super[_0x93484(0x366)](),this['dispose$'][_0x93484(0x497)](),this['dispose$']['complete']();}['close'](){const _0x1824a9=_0x1f2fa;var _0x4db678,_0x5915d0;this['_throwTelemetryCollaborationNewChangeset'](),(_0x4db678=this[_0x1824a9(0x182)])==null||_0x4db678[_0x1824a9(0x445)]({'cmd':G[_0x1824a9(0x2c9)],'data':{'roomID':this[_0x1824a9(0x204)]}}),(_0x5915d0=this['_socket'])==null||_0x5915d0[_0x1824a9(0x297)](),this[_0x1824a9(0x428)][_0x1824a9(0x60c)](),this[_0x1824a9(0x4c9)][_0x1824a9(0x60c)](),this['dispose']();}[_0x1f2fa(0x539)](_0x2ef407){const _0x344563=_0x1f2fa;_0x2ef407[_0x344563(0x2a9)]===G['JOIN']?this[_0x344563(0x260)](_0x2ef407):_0x2ef407['cmd']===G['RECV']&&this[_0x344563(0x432)](_0x2ef407);}['_joinRoom'](_0x2308f1){const _0x112804=_0x1f2fa;this['_sessionStatus$'][_0x112804(0x497)](0x1),_0x2308f1['send']({'cmd':G['JOIN'],'routeKey':this[_0x112804(0x204)],'routeType':'','data':{'rooms':[{'roomID':this[_0x112804(0x204)]}]}});}['_onJoinRoomEvent'](_0x432dbc){const _0x605571=_0x1f2fa;var _0x400b97;if(_0x432dbc[_0x605571(0x398)]===Et['FAIL']){this[_0x605571(0x2a0)][_0x605571(0x472)]({'type':ge[_0x605571(0x1ed)][_0x605571(0x56b)],'content':this[_0x605571(0x247)]['t'](_0x605571(0x173))}),this['_sessionStatus$'][_0x605571(0x497)](0x2);return;}this[_0x605571(0x4c9)]['next'](0x3);const _0x314313=(_0x400b97=_0x432dbc[_0x605571(0x462)][_0x605571(0x1d5)][this[_0x605571(0x204)]])==null?void 0x0:_0x400b97[_0x605571(0x3f2)];_0x314313&&_0x314313[_0x605571(0x601)](_0x40a868=>this[_0x605571(0x4bd)][_0x605571(0x3e6)](this['_unitID'],_0x40a868));}['_onRecvEvent'](_0x3fe25c){const _0x372b4c=_0x1f2fa;try{const _0x4f6e49=_0x3fe25c[_0x372b4c(0x462)];switch(_0x4f6e49[_0x372b4c(0x38e)]){case S[_0x372b4c(0x416)][_0x372b4c(0x48a)]:this[_0x372b4c(0x397)](_0x4f6e49),this[_0x372b4c(0x428)][_0x372b4c(0x497)](_0x4f6e49);break;case S[_0x372b4c(0x416)][_0x372b4c(0x3ed)]:this['_onUserLeave'](_0x4f6e49),this[_0x372b4c(0x428)][_0x372b4c(0x497)](_0x4f6e49);break;case S['CollaborationEvent'][_0x372b4c(0x469)]:case S['CollaborationEvent'][_0x372b4c(0x5b8)]:this[_0x372b4c(0x3b9)](),this['_clearCollaborationTimeoutTimer'](),this[_0x372b4c(0x428)][_0x372b4c(0x497)](_0x4f6e49);break;case S['CollaborationEvent'][_0x372b4c(0x42c)]:this[_0x372b4c(0x1d8)][_0x372b4c(0x2d0)](_0x372b4c(0x324)+JSON[_0x372b4c(0x3f4)](_0x4f6e49)),this[_0x372b4c(0x428)][_0x372b4c(0x497)](_0x4f6e49);break;case S['CollaborationEvent'][_0x372b4c(0x1de)]:this[_0x372b4c(0x5c4)][_0x372b4c(0x1ce)](_0x4f6e49[_0x372b4c(0x462)]),this[_0x372b4c(0x428)][_0x372b4c(0x497)](_0x4f6e49);break;default:this[_0x372b4c(0x428)][_0x372b4c(0x497)](_0x4f6e49);}}catch(_0x49c8b){this[_0x372b4c(0x1d8)][_0x372b4c(0x2d0)](_0x49c8b,_0x3fe25c);}}[_0x1f2fa(0x397)](_0x1d67ea){const _0x2c0ecc=_0x1f2fa;this[_0x2c0ecc(0x4bd)]['updateMember'](this['_unitID'],_0x1d67ea[_0x2c0ecc(0x462)]);}[_0x1f2fa(0x43e)](_0x3efbea){const _0x2962c1=_0x1f2fa;this[_0x2962c1(0x4bd)][_0x2962c1(0x349)](this[_0x2962c1(0x204)],_0x3efbea[_0x2962c1(0x462)]['memberID']);}async['send'](_0x3293ff,_0xae27e9){const _0x132ae8=_0x1f2fa;if(this['sessionStatus']!==0x3||!this[_0x132ae8(0x182)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x3293ff[_0x132ae8(0x38e)]===S[_0x132ae8(0x416)][_0x132ae8(0x23d)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x3293ff)),this[_0x132ae8(0x182)][_0x132ae8(0x445)]({'cmd':G[_0x132ae8(0x451)],'routeKey':_0xae27e9,'routeType':'','data':_0x3293ff});}catch(_0x45002e){this[_0x132ae8(0x1d8)][_0x132ae8(0x2d0)](_0x45002e);}}['_scheduleCollaborationTimeoutTimer'](){const _0x55d4e7=_0x1f2fa;var _0x33f1f3;this[_0x55d4e7(0x239)]=window[_0x55d4e7(0x4f7)](()=>{const _0x32c80c=_0x55d4e7;this[_0x32c80c(0x239)]=null,this[_0x32c80c(0x2a0)][_0x32c80c(0x472)]({'type':ge[_0x32c80c(0x1ed)][_0x32c80c(0x424)],'content':this[_0x32c80c(0x247)]['t'](_0x32c80c(0x542))});},(_0x33f1f3=this[_0x55d4e7(0x499)][_0x55d4e7(0x546)](Ct))!=null?_0x33f1f3:nn);}[_0x1f2fa(0x3cd)](){const _0x572f26=_0x1f2fa;this[_0x572f26(0x239)]&&(clearTimeout(this[_0x572f26(0x239)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x57cab8){const _0x5f236c=_0x1f2fa;if(!this['_shouldReportTelemetry'])return;const {data:_0x162580}=_0x57cab8,{unitID:_0x371de7,changeset:_0x4d5b30}=_0x162580,{mutations:_0x30cc1d,type:_0xb92d38}=_0x4d5b30;this[_0x5f236c(0x3e3)]={'unitId':_0x371de7,'type':_0xb92d38,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':ti(_0x30cc1d)};}[_0x1f2fa(0x3b9)](){const _0x3031a6=_0x1f2fa;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x3031a6(0x1d8)][_0x3031a6(0x2d0)]('[CollaborationSession]',_0x3031a6(0x2cb));return;}this[_0x3031a6(0x3e3)][_0x3031a6(0x5fe)]=performance[_0x3031a6(0x5ec)](),this[_0x3031a6(0x3e3)]['duration']=this[_0x3031a6(0x3e3)][_0x3031a6(0x5fe)]-this[_0x3031a6(0x3e3)][_0x3031a6(0x43c)],this[_0x3031a6(0x556)][_0x3031a6(0x1ca)](ei,this[_0x3031a6(0x3e3)]),this[_0x3031a6(0x3e3)]=null;}}[_0x1f2fa(0x163)](){const _0x1a9085=_0x1f2fa;this[_0x1a9085(0x3e3)]=null;}},exports[_0x1f2fa(0x466)]=ci([de(0x2,a[_0x1f2fa(0x1af)]),de(0x3,ee[_0x1f2fa(0x5bd)]),de(0x4,ee[_0x1f2fa(0x32b)]),de(0x5,a[_0x1f2fa(0x1b0)]),de(0x6,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x537)])),de(0x7,a[_0x1f2fa(0x28d)](exports['MemberService'])),de(0x8,a[_0x1f2fa(0x28d)](Tt)),de(0x9,a[_0x1f2fa(0x246)](jn[_0x1f2fa(0x1c6)]))],exports[_0x1f2fa(0x466)]);var li=Object[_0x1f2fa(0x4e5)],hi=Object[_0x1f2fa(0x40d)],_i=(_0x822812,_0x16108c,_0x5835b7,_0x31b525)=>{for(var _0x12971c=_0x31b525>0x1?void 0x0:_0x31b525?hi(_0x16108c,_0x5835b7):_0x16108c,_0x4acc79=_0x822812['length']-0x1,_0x38e1c1;_0x4acc79>=0x0;_0x4acc79--)(_0x38e1c1=_0x822812[_0x4acc79])&&(_0x12971c=(_0x31b525?_0x38e1c1(_0x16108c,_0x5835b7,_0x12971c):_0x38e1c1(_0x12971c))||_0x12971c);return _0x31b525&&_0x12971c&&li(_0x16108c,_0x5835b7,_0x12971c),_0x12971c;},Ee=(_0xb9e98a,_0x467122)=>(_0x4ce5ed,_0x26412f)=>_0x467122(_0x4ce5ed,_0x26412f,_0xb9e98a);exports[_0x1f2fa(0x1c0)]=class extends a['Disposable']{constructor(_0x1b3c42,_0x469e46,_0x504ed9,_0x291fd3,_0x426e6f,_0x3cf458){const _0x2509fd=_0x1f2fa;super(),I(this,_0x2509fd(0x549),new A[(_0x2509fd(0x25c))](void 0x0)),I(this,_0x2509fd(0x316),this[_0x2509fd(0x549)][_0x2509fd(0x5de)]()),I(this,_0x2509fd(0x444),null),I(this,_0x2509fd(0x504),new Map()),I(this,'_status$',new A[(_0x2509fd(0x25c))](se[_0x2509fd(0x552)])),I(this,_0x2509fd(0x5d0),this[_0x2509fd(0x454)]['asObservable']()),I(this,'_socketReady',!0x1),I(this,'_retryConnectingTimer'),I(this,_0x2509fd(0x441),0x0),I(this,_0x2509fd(0x5b6)),I(this,_0x2509fd(0x186)),(this[_0x2509fd(0x2f7)]=_0x1b3c42,this[_0x2509fd(0x247)]=_0x469e46,this['_messageService']=_0x504ed9,this[_0x2509fd(0x1d8)]=_0x291fd3,this[_0x2509fd(0x499)]=_0x426e6f,this[_0x2509fd(0x59c)]=_0x3cf458,this['_initEventListeners']());}get[_0x1f2fa(0x182)](){const _0x13e160=_0x1f2fa;return this[_0x13e160(0x549)][_0x13e160(0x60e)]();}['_initEventListeners'](){const _0x3e15ee=_0x1f2fa;this[_0x3e15ee(0x32e)](),this[_0x3e15ee(0x487)]();}[_0x1f2fa(0x366)](){const _0x3b2920=_0x1f2fa;super[_0x3b2920(0x366)](),this[_0x3b2920(0x504)][_0x3b2920(0x601)](_0x1320f2=>_0x1320f2[_0x3b2920(0x366)]()),this[_0x3b2920(0x504)][_0x3b2920(0x5aa)](),this['_status$'][_0x3b2920(0x60c)]();}async['requireSession'](_0x5ec881){const _0x3ab0cd=_0x1f2fa;if(this['_sessions']['has'](_0x5ec881))return this[_0x3ab0cd(0x504)][_0x3ab0cd(0x2f6)](_0x5ec881);this[_0x3ab0cd(0x327)]();const _0xad8dea=this[_0x3ab0cd(0x2f7)][_0x3ab0cd(0x33e)](exports[_0x3ab0cd(0x466)],_0x5ec881,this[_0x3ab0cd(0x549)][_0x3ab0cd(0x5de)]());return this[_0x3ab0cd(0x504)][_0x3ab0cd(0x329)](_0x5ec881,_0xad8dea),_0xad8dea;}[_0x1f2fa(0x2d6)](_0x558f12){const _0x28ceb2=_0x1f2fa;var _0x26a9f8;const _0x27bd33=this[_0x28ceb2(0x504)][_0x28ceb2(0x2f6)](_0x558f12);_0x27bd33&&(this[_0x28ceb2(0x504)][_0x28ceb2(0x2e4)](_0x558f12),_0x27bd33[_0x28ceb2(0x297)]()),this[_0x28ceb2(0x504)][_0x28ceb2(0x51b)]||(_0x26a9f8=this['_socket'])==null||_0x26a9f8[_0x28ceb2(0x297)]();}['reconnect'](){const _0x5576b0=_0x1f2fa;this[_0x5576b0(0x441)]=0x0,this[_0x5576b0(0x161)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null),this[_0x5576b0(0x576)]();}[_0x1f2fa(0x490)](){const _0x24aca9=_0x1f2fa;var _0x4c4e3f,_0x5156bf;const _0x4bf8a3=this['_configService']['getConfig'](en),_0x3b7783=this[_0x24aca9(0x499)][_0x24aca9(0x546)](te),_0x5ea151=(_0x5156bf=(_0x4c4e3f=_0x3b7783==null?void 0x0:_0x3b7783[_0x24aca9(0x5cd)])!=null?_0x4c4e3f:_0x4bf8a3)!=null?_0x5156bf:Wn,_0x57bcd1=this['_socketService'][_0x24aca9(0x558)](_0x5ea151);return this['_candidateSocket']=_0x57bcd1,_0x57bcd1;}['_tryEnsureSocket'](){const _0x1841b3=_0x1f2fa;var _0x5f5734,_0x1bc695;try{const _0x15b4e4=(_0x1bc695=(_0x5f5734=this[_0x1841b3(0x182)])!=null?_0x5f5734:this[_0x1841b3(0x444)])!=null?_0x1bc695:this[_0x1841b3(0x490)]();if(_0x15b4e4){const _0x4dd9b3=_0x15b4e4[_0x1841b3(0x445)];_0x15b4e4[_0x1841b3(0x445)]=_0x59a695=>(this[_0x1841b3(0x50b)](),_0x4dd9b3[_0x1841b3(0x19a)](_0x15b4e4,[_0x59a695])),_0x15b4e4[_0x1841b3(0x32d)]['subscribe'](_0x2d75d1=>this[_0x1841b3(0x602)](_0x15b4e4,_0x2d75d1)),_0x15b4e4[_0x1841b3(0x359)]['pipe'](V['take'](0x1))[_0x1841b3(0x25e)](_0x358d44=>this[_0x1841b3(0x1d8)]['error'](_0x1841b3(0x503),_0x358d44)),_0x15b4e4[_0x1841b3(0x3ef)][_0x1841b3(0x5f2)](V['take'](0x1))['subscribe'](()=>{const _0x145d3a=_0x1841b3;this[_0x145d3a(0x480)](_0x15b4e4);}),_0x15b4e4[_0x1841b3(0x3be)][_0x1841b3(0x5f2)](V[_0x1841b3(0x300)](0x1))[_0x1841b3(0x25e)](_0x5e6c54=>{const _0x432989=_0x1841b3;this[_0x432989(0x1d8)]['debug'](_0x432989(0x4ba),_0x432989(0x48f),_0x5e6c54),this[_0x432989(0x54e)]();});}}catch(_0x7efa2){this[_0x1841b3(0x1d8)]['error'](_0x7efa2),this[_0x1841b3(0x54e)]();}}[_0x1f2fa(0x480)](_0x194644){const _0x3c3454=_0x1f2fa;this[_0x3c3454(0x1d8)][_0x3c3454(0x4fc)](_0x3c3454(0x4ba),_0x3c3454(0x48e)),_0x194644[_0x3c3454(0x445)]({'cmd':G['HELLO']}),this[_0x3c3454(0x50b)]();}['_listenToOfflineEvent'](){const _0x2d9058=_0x1f2fa;window['addEventListener']('offline',()=>this[_0x2d9058(0x4b8)]());}[_0x1f2fa(0x4b8)](){const _0x4aac16=_0x1f2fa;this['_socketReady']=!0x1,this[_0x4aac16(0x444)]=null,this['_status$'][_0x4aac16(0x497)](se[_0x4aac16(0x532)]),this[_0x4aac16(0x549)]['next'](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}[_0x1f2fa(0x54e)](){const _0x67fbf5=_0x1f2fa;var _0x2ce3b3;this[_0x67fbf5(0x4b8)](),this[_0x67fbf5(0x441)]<((_0x2ce3b3=this[_0x67fbf5(0x499)]['getConfig'](sn))!=null?_0x2ce3b3:Gn)?(this[_0x67fbf5(0x2a0)][_0x67fbf5(0x472)]({'key':'collaboration-session-retry','type':ge[_0x67fbf5(0x1ed)][_0x67fbf5(0x56b)],'content':this[_0x67fbf5(0x247)]['t'](_0x67fbf5(0x1f1))}),this[_0x67fbf5(0x576)]()):this[_0x67fbf5(0x2a0)]['show']({'key':_0x67fbf5(0x3e1),'type':ge['MessageType']['Error'],'content':this['_localeService']['t'](_0x67fbf5(0x3bd))});}[_0x1f2fa(0x487)](){const _0x2100db=_0x1f2fa,_0x487fa5=()=>{const _0xca4a52=_0x3f71;this['_socket']||this[_0xca4a52(0x3a5)]();},_0x16f54a=()=>{const _0x3f92fc=_0x3f71;this['_socket']||document[_0x3f92fc(0x3e9)]===_0x3f92fc(0x610)||this[_0x3f92fc(0x3a5)]();};window[_0x2100db(0x210)](_0x2100db(0x2b6),_0x487fa5),document[_0x2100db(0x210)](_0x2100db(0x522),_0x16f54a);}[_0x1f2fa(0x576)](){const _0x14b93a=_0x1f2fa;var _0x85a4ed;const _0x44f17a=this[_0x14b93a(0x441)],_0x5efd18=this['_configService'][_0x14b93a(0x546)](te),_0x512456=_0x44f17a===0x0?0x0:((_0x85a4ed=_0x5efd18==null?void 0x0:_0x5efd18[_0x14b93a(0x1a2)])!=null?_0x85a4ed:Vn)*0x2**_0x44f17a;this[_0x14b93a(0x161)]=window['setTimeout'](()=>{const _0x1d0b44=_0x14b93a;clearTimeout(this['_retryConnectingTimer']),this[_0x1d0b44(0x161)]=null,this[_0x1d0b44(0x327)]();},_0x512456),this[_0x14b93a(0x441)]+=0x1;}[_0x1f2fa(0x602)](_0x2c6d1c,_0x3b81cb){const _0x3495fe=_0x1f2fa,{cmd:_0x1027ed}=_0x3b81cb;_0x1027ed===G[_0x3495fe(0x35f)]&&!this[_0x3495fe(0x23f)]&&(_0x2c6d1c[_0x3495fe(0x264)]=_0x3b81cb[_0x3495fe(0x462)][_0x3495fe(0x264)],this[_0x3495fe(0x549)][_0x3495fe(0x497)](_0x2c6d1c),this[_0x3495fe(0x454)][_0x3495fe(0x497)](se[_0x3495fe(0x4c0)]),this[_0x3495fe(0x23f)]=!0x0,this[_0x3495fe(0x444)]=null),_0x1027ed===G[_0x3495fe(0x1a3)]&&this[_0x3495fe(0x545)](),this['_rescheduleHeartbeat']();}[_0x1f2fa(0x50b)](){const _0x4a2445=_0x1f2fa;var _0x2dfd45;this[_0x4a2445(0x51a)](),this[_0x4a2445(0x5b6)]=window[_0x4a2445(0x4f7)](()=>this[_0x4a2445(0x231)](),(_0x2dfd45=this[_0x4a2445(0x499)]['getConfig'](tn))!=null?_0x2dfd45:Fn);}[_0x1f2fa(0x231)](){const _0x42e2df=_0x1f2fa;this[_0x42e2df(0x182)][_0x42e2df(0x445)]({'cmd':G['HEARTBEAT']}),this[_0x42e2df(0x3c8)]();}[_0x1f2fa(0x3c8)](){const _0x17b41c=_0x1f2fa;var _0x31c1fa;this[_0x17b41c(0x186)]=window['setTimeout'](()=>this[_0x17b41c(0x54e)](),(_0x31c1fa=this[_0x17b41c(0x499)][_0x17b41c(0x546)](Ct))!=null?_0x31c1fa:nn);}['_clearHeartbeatTimer'](){const _0x59142f=_0x1f2fa;this[_0x59142f(0x5b6)]!=null&&(clearTimeout(this[_0x59142f(0x5b6)]),this[_0x59142f(0x5b6)]=null);}['_clearTimeoutTimer'](){const _0x28f34e=_0x1f2fa;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x28f34e(0x186)]),this[_0x28f34e(0x186)]=null);}},exports[_0x1f2fa(0x1c0)]=_i([Ee(0x0,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),Ee(0x1,a[_0x1f2fa(0x28d)](a['LocaleService'])),Ee(0x2,ee['IMessageService']),Ee(0x3,a[_0x1f2fa(0x1af)]),Ee(0x4,a[_0x1f2fa(0x1b0)]),Ee(0x5,bt)],exports[_0x1f2fa(0x1c0)]);const Y=[];for(let s=0x0;s<0x100;++s)Y['push']((s+0x100)[_0x1f2fa(0x353)](0x10)['slice'](0x1));function ui(_0x27b7cc,_0x4b1afc=0x0){return(Y[_0x27b7cc[_0x4b1afc+0x0]]+Y[_0x27b7cc[_0x4b1afc+0x1]]+Y[_0x27b7cc[_0x4b1afc+0x2]]+Y[_0x27b7cc[_0x4b1afc+0x3]]+'-'+Y[_0x27b7cc[_0x4b1afc+0x4]]+Y[_0x27b7cc[_0x4b1afc+0x5]]+'-'+Y[_0x27b7cc[_0x4b1afc+0x6]]+Y[_0x27b7cc[_0x4b1afc+0x7]]+'-'+Y[_0x27b7cc[_0x4b1afc+0x8]]+Y[_0x27b7cc[_0x4b1afc+0x9]]+'-'+Y[_0x27b7cc[_0x4b1afc+0xa]]+Y[_0x27b7cc[_0x4b1afc+0xb]]+Y[_0x27b7cc[_0x4b1afc+0xc]]+Y[_0x27b7cc[_0x4b1afc+0xd]]+Y[_0x27b7cc[_0x4b1afc+0xe]]+Y[_0x27b7cc[_0x4b1afc+0xf]])['toLowerCase']();}let Je;const di=new Uint8Array(0x10);function fi(){const _0x356062=_0x1f2fa;if(!Je){if(typeof crypto>'u'||!crypto[_0x356062(0x168)])throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');Je=crypto[_0x356062(0x168)]['bind'](crypto);}return Je(di);}const vi=typeof crypto<'u'&&crypto[_0x1f2fa(0x3c9)]&&crypto[_0x1f2fa(0x3c9)][_0x1f2fa(0x1cc)](crypto),Mt={'randomUUID':vi};function mi(_0xc9dbbf,_0x194dba,_0x588dfb){const _0x3e0a62=_0x1f2fa;if(Mt[_0x3e0a62(0x3c9)]&&!_0x194dba&&!_0xc9dbbf)return Mt[_0x3e0a62(0x3c9)]();_0xc9dbbf=_0xc9dbbf||{};const _0x2bf863=_0xc9dbbf['random']||(_0xc9dbbf[_0x3e0a62(0x5c9)]||fi)();return _0x2bf863[0x6]=_0x2bf863[0x6]&0xf|0x40,_0x2bf863[0x8]=_0x2bf863[0x8]&0x3f|0x80,ui(_0x2bf863);}var Si=Object['defineProperty'],pi=Object[_0x1f2fa(0x40d)],gi=(_0x31fd70,_0x35628b,_0x10d6e9,_0x4a9d39)=>{const _0x2588ac=_0x1f2fa;for(var _0x4b0d3e=_0x4a9d39>0x1?void 0x0:_0x4a9d39?pi(_0x35628b,_0x10d6e9):_0x35628b,_0x51261c=_0x31fd70[_0x2588ac(0x339)]-0x1,_0x5e3cd4;_0x51261c>=0x0;_0x51261c--)(_0x5e3cd4=_0x31fd70[_0x51261c])&&(_0x4b0d3e=(_0x4a9d39?_0x5e3cd4(_0x35628b,_0x10d6e9,_0x4b0d3e):_0x5e3cd4(_0x4b0d3e))||_0x4b0d3e);return _0x4a9d39&&_0x4b0d3e&&Si(_0x35628b,_0x10d6e9,_0x4b0d3e),_0x4b0d3e;},Ze=(_0x19dfee,_0x444521)=>(_0x25ed7a,_0x342f9e)=>_0x444521(_0x25ed7a,_0x342f9e,_0x19dfee);let Be=class{constructor(_0x1adcbe,_0x31d6b4,_0x1a48e7){const _0x16d2e6=_0x1f2fa;this['_injector']=_0x1adcbe,this[_0x16d2e6(0x5ce)]=_0x31d6b4,this[_0x16d2e6(0x303)]=_0x1a48e7;}[_0x1f2fa(0x1ee)](_0x229af3){const _0x5b848f=_0x1f2fa;this[_0x5b848f(0x240)](_0x229af3),this[_0x5b848f(0x33a)](_0x229af3);}[_0x1f2fa(0x5a4)](_0x1b782c){const _0x187545=_0x1f2fa,{unitID:_0x1fefe0}=_0x1b782c,_0x2b59a7=this[_0x187545(0x303)][_0x187545(0x608)](_0x1fefe0)[_0x187545(0x447)](J['DocIMEInputManagerService']),{redoCache:_0xaf4d14}=_0x2b59a7[_0x187545(0x171)]();if(_0xaf4d14[_0x187545(0x339)]===0x0)return _0x1b782c;let _0x18535e=a[_0x187545(0x34c)][_0x187545(0x272)](_0x1b782c[_0x187545(0x456)][0x0]);for(let _0x2a86e4=0x0;_0x2a86e4<_0xaf4d14[_0x187545(0x339)];_0x2a86e4++){const _0x57f7e7={'id':'doc.mutation.rich-text-editing','params':{..._0xaf4d14[_0x2a86e4]}},_0x5e9210=this['_transformService'][_0x187545(0x5a8)](_0x18535e,_0x57f7e7,!0x1);if(S[_0x187545(0x187)](_0x5e9210))throw _0x5e9210[_0x187545(0x2d0)];_0x18535e=_0x5e9210[_0x187545(0x18e)];}return{...a[_0x187545(0x34c)][_0x187545(0x272)](_0x1b782c),'mutations':[_0x18535e]};}[_0x1f2fa(0x240)](_0x9e9b17){const _0x121b36=_0x1f2fa,{unitID:_0x45df4c}=_0x9e9b17,_0x5363f8=this[_0x121b36(0x303)][_0x121b36(0x608)](_0x45df4c)[_0x121b36(0x447)](J['DocIMEInputManagerService']),{undoCache:_0x47bed1,redoCache:_0x3afa4c}=_0x5363f8[_0x121b36(0x171)]();if(_0x47bed1[_0x121b36(0x339)]===0x0||_0x3afa4c['length']===0x0)return;const _0x146f58=[],_0x4d3f73=[];let _0x1b8b5a=a['Tools'][_0x121b36(0x272)](_0x9e9b17[_0x121b36(0x456)][0x0]),_0x3646cf=a[_0x121b36(0x34c)][_0x121b36(0x272)](_0x9e9b17[_0x121b36(0x456)][0x0]);for(let _0x2a7c4d=_0x47bed1['length']-0x1;_0x2a7c4d>=0x0;_0x2a7c4d--){const _0x381f40={'id':_0x121b36(0x4dc),'params':{..._0x47bed1[_0x2a7c4d]}},_0x136292={'id':_0x121b36(0x4dc),'params':{..._0x3afa4c[_0x2a7c4d]}},_0x2d03cd=this[_0x121b36(0x5ce)][_0x121b36(0x5a8)](_0x1b8b5a,_0x381f40,!0x1),_0x423f9c=this['_transformService']['transformMutation'](_0x3646cf,_0x136292,!0x1);if(S[_0x121b36(0x187)](_0x2d03cd))throw _0x2d03cd['error'];if(S[_0x121b36(0x187)](_0x423f9c))throw _0x423f9c[_0x121b36(0x2d0)];_0x146f58['unshift'](_0x2d03cd[_0x121b36(0x26e)][_0x121b36(0x389)]),_0x4d3f73['unshift'](_0x423f9c[_0x121b36(0x26e)][_0x121b36(0x389)]),_0x1b8b5a=_0x2d03cd['m1Prime'],_0x3646cf=_0x423f9c[_0x121b36(0x18e)];}_0x5363f8[_0x121b36(0x1f3)]({'undoCache':_0x146f58,'redoCache':_0x4d3f73});}['_transformPreviousActiveRange'](_0x30954d){const _0x3903e4=_0x1f2fa,{unitID:_0x5a5549}=_0x30954d,_0x5207ff=this[_0x3903e4(0x303)][_0x3903e4(0x608)](_0x5a5549)['with'](J[_0x3903e4(0x164)]),_0x59b77e=_0x5207ff[_0x3903e4(0x5d5)]();if(_0x59b77e==null)return;const _0x57fdf8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x30954d[_0x3903e4(0x604)],'actions':null,'textRanges':[_0x59b77e]}}],_0x2d02a1=this[_0x3903e4(0x5ce)][_0x3903e4(0x403)](_0x30954d,_0x57fdf8);if(!S['isTransformMutationsWithChangesetSuccess'](_0x2d02a1))throw _0x2d02a1[_0x3903e4(0x2d0)];const _0x490e10=_0x2d02a1[_0x3903e4(0x26e)][0x0][_0x3903e4(0x389)][_0x3903e4(0x30e)];Array[_0x3903e4(0x4ff)](_0x490e10)&&_0x490e10[_0x3903e4(0x339)]&&_0x5207ff[_0x3903e4(0x180)](_0x490e10[0x0]);}};Be=gi([Ze(0x0,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),Ze(0x1,S[_0x1f2fa(0x3ff)]),Ze(0x2,K[_0x1f2fa(0x328)])],Be);var Ii=Object[_0x1f2fa(0x4e5)],Ci=Object[_0x1f2fa(0x40d)],Ei=(_0x3f5c94,_0x1771e9,_0xf1b5c7,_0x44de9f)=>{const _0x347390=_0x1f2fa;for(var _0x4f734a=_0x44de9f>0x1?void 0x0:_0x44de9f?Ci(_0x1771e9,_0xf1b5c7):_0x1771e9,_0x3bd699=_0x3f5c94[_0x347390(0x339)]-0x1,_0x35d649;_0x3bd699>=0x0;_0x3bd699--)(_0x35d649=_0x3f5c94[_0x3bd699])&&(_0x4f734a=(_0x44de9f?_0x35d649(_0x1771e9,_0xf1b5c7,_0x4f734a):_0x35d649(_0x4f734a))||_0x4f734a);return _0x44de9f&&_0x4f734a&&Ii(_0x1771e9,_0xf1b5c7,_0x4f734a),_0x4f734a;},Pe=(_0x18b6d5,_0x18a65f)=>(_0x523311,_0x1dc093)=>_0x18a65f(_0x523311,_0x1dc093,_0x18b6d5);exports[_0x1f2fa(0x333)]=class extends a[_0x1f2fa(0x1d6)]{constructor(_0x5c8a6d,_0x546e87,_0x52a45d,_0x1c8a47,_0x5ac191){const _0xfe9c7=_0x1f2fa;super(),I(this,_0xfe9c7(0x22f),new Map()),I(this,_0xfe9c7(0x52d),new Map()),I(this,'_disabled',!0x1),(this[_0xfe9c7(0x499)]=_0x5c8a6d,this[_0xfe9c7(0x408)]=_0x546e87,this['_beforeCloseService']=_0x52a45d,this['_localeService']=_0x1c8a47,this['_revisionService']=_0x5ac191,this[_0xfe9c7(0x253)]());}[_0x1f2fa(0x44c)](){const _0x17aeb5=_0x1f2fa;this[_0x17aeb5(0x350)]=!0x0;}[_0x1f2fa(0x523)](){this['_disabled']=!0x1;}[_0x1f2fa(0x366)](){const _0x2fe835=_0x1f2fa;this['exhaustSavingTask']()[_0x2fe835(0x213)](()=>super['dispose']());}async[_0x1f2fa(0x5f6)](_0x140c14){const _0x4e6499=_0x1f2fa;return this[_0x4e6499(0x350)]?null:this[_0x4e6499(0x408)]['getItem'](At(_0x140c14));}async[_0x1f2fa(0x5fd)](_0x4acf3e,_0xec1ea3){const _0x2dfebf=_0x1f2fa;return!!this[_0x2dfebf(0x408)]['setItem'](_0x4acf3e,_0xec1ea3);}[_0x1f2fa(0x2b1)](_0x1dd507,_0x480375,_0x3aa5e6,_0x309b22){const _0x1767fc=_0x1f2fa,_0x489704=this[_0x1767fc(0x4cd)]['getCurrentRevOfUnit'](_0x1dd507);this[_0x1767fc(0x22f)][_0x1767fc(0x329)](_0x1dd507,{'unitID':_0x1dd507,'type':_0x480375,'awaitingChangeset':_0x3aa5e6,'mutations':_0x309b22,'rev':_0x489704}),this[_0x1767fc(0x52d)][_0x1767fc(0x3d5)](_0x1dd507)||this[_0x1767fc(0x2d5)](_0x1dd507);}[_0x1f2fa(0x2d5)](_0x120bab){const _0x4654d7=_0x1f2fa,_0x576994=this[_0x4654d7(0x36f)]();_0x576994===0x0?this['_saveCache'](_0x120bab):this[_0x4654d7(0x52d)][_0x4654d7(0x329)](_0x120bab,setTimeout(()=>this[_0x4654d7(0x395)](_0x120bab),_0x576994));}['_getSaveTimeout'](){const _0x280b2f=_0x1f2fa;var _0xa40055;return(_0xa40055=this['_configService'][_0x280b2f(0x546)](rn))!=null?_0xa40055:Yn;}[_0x1f2fa(0x395)](_0x31ccc5){const _0x56fa64=_0x1f2fa,_0x1714fa=this[_0x56fa64(0x52d)][_0x56fa64(0x2f6)](_0x31ccc5);return _0x1714fa!==void 0x0&&window['clearTimeout'](_0x1714fa),this[_0x56fa64(0x408)][_0x56fa64(0x378)](At(_0x31ccc5),this[_0x56fa64(0x22f)][_0x56fa64(0x2f6)](_0x31ccc5))[_0x56fa64(0x213)](()=>this[_0x56fa64(0x52d)][_0x56fa64(0x2e4)](_0x31ccc5));}async[_0x1f2fa(0x531)](){const _0x3561a7=_0x1f2fa,_0x1173cc=[];this[_0x3561a7(0x52d)][_0x3561a7(0x601)]((_0x4662f2,_0x45c666)=>{const _0x299ec0=_0x3561a7;window[_0x299ec0(0x36a)](_0x4662f2),_0x1173cc[_0x299ec0(0x19c)](this['_saveCache'](_0x45c666)['then'](()=>{const _0x427e07=_0x299ec0;this[_0x427e07(0x52d)][_0x427e07(0x2e4)](_0x45c666);}));}),await Promise[_0x3561a7(0x302)](_0x1173cc);}[_0x1f2fa(0x253)](){const _0x476cc0=_0x1f2fa;this['disposeWithMe'](this[_0x476cc0(0x41f)][_0x476cc0(0x268)](()=>{const _0x4e06ea=_0x476cc0;if(this[_0x4e06ea(0x52d)]['size'])return this[_0x4e06ea(0x247)]['t'](_0x4e06ea(0x49d));}));}},exports[_0x1f2fa(0x333)]=Ei([Pe(0x0,a[_0x1f2fa(0x1b0)]),Pe(0x1,a[_0x1f2fa(0x4e8)]),Pe(0x2,ee['IBeforeCloseService']),Pe(0x3,a['Inject'](a[_0x1f2fa(0x537)])),Pe(0x4,a[_0x1f2fa(0x28d)](S[_0x1f2fa(0x5bc)]))],exports[_0x1f2fa(0x333)]);function At(_0x4d435a){const _0x4a2761=_0x1f2fa;return _0x4a2761(0x293)+_0x4d435a;}var bi=Object[_0x1f2fa(0x4e5)],Ti=Object[_0x1f2fa(0x40d)],Ri=(_0x131f5e,_0x559635,_0x30cd5c,_0x21b238)=>{const _0x1ed8ec=_0x1f2fa;for(var _0x204b7e=_0x21b238>0x1?void 0x0:_0x21b238?Ti(_0x559635,_0x30cd5c):_0x559635,_0x513d9a=_0x131f5e[_0x1ed8ec(0x339)]-0x1,_0x5e8baa;_0x513d9a>=0x0;_0x513d9a--)(_0x5e8baa=_0x131f5e[_0x513d9a])&&(_0x204b7e=(_0x21b238?_0x5e8baa(_0x559635,_0x30cd5c,_0x204b7e):_0x5e8baa(_0x204b7e))||_0x204b7e);return _0x21b238&&_0x204b7e&&bi(_0x559635,_0x30cd5c,_0x204b7e),_0x204b7e;},Qe=(_0x1bf7ec,_0x3511df)=>(_0x232e13,_0x3ca01d)=>_0x3511df(_0x232e13,_0x3ca01d,_0x1bf7ec);function yi(_0x4f65f4){const _0x46041a=_0x1f2fa,{unitID:_0x53a895,mutations:_0x22b7d1}=_0x4f65f4;return{'unitId':_0x53a895,'subUnitId':_0x22b7d1[0x0][_0x46041a(0x389)][_0x46041a(0x442)]};}let ke=class{constructor(_0x24151d,_0x174fc0,_0x35860f){const _0x552f89=_0x1f2fa;this[_0x552f89(0x2f7)]=_0x24151d,this['_transformService']=_0x174fc0,this[_0x552f89(0x29d)]=_0x35860f;}[_0x1f2fa(0x216)](_0x154b80){const _0x4a35ce=_0x1f2fa;var _0x1e41fb,_0x3b8dbe,_0x4899f7,_0x240536;const _0x53a744=this['_injector']['get'](k[_0x4a35ce(0x600)]),{unitId:_0x39a382,subUnitId:_0x22652b}=yi(_0x154b80),_0x3278fc=_0x53a744[_0x4a35ce(0x396)](_0x39a382)[_0x4a35ce(0x16b)](),_0x6753c0=(_0x3b8dbe=(_0x1e41fb=this[_0x4a35ce(0x29d)][_0x4a35ce(0x3c2)](_0x39a382))==null?void 0x0:_0x1e41fb[_0x4a35ce(0x1db)]())==null?void 0x0:_0x3b8dbe[_0x4a35ce(0x2d3)]();if(_0x3278fc[_0x4a35ce(0x339)]===0x0||!_0x39a382||!_0x22652b)return;const _0x5e22d5=[{'id':k[_0x4a35ce(0x167)]['id'],'params':{'unitId':_0x39a382,'subUnitId':_0x6753c0,'selections':a[_0x4a35ce(0x34c)][_0x4a35ce(0x272)](_0x3278fc)}}],_0x2ac2a0=this['_transformService'][_0x4a35ce(0x403)](_0x154b80,_0x5e22d5);if(!S[_0x4a35ce(0x605)](_0x2ac2a0))throw _0x2ac2a0[_0x4a35ce(0x2d0)];const _0x300161=(_0x240536=(_0x4899f7=_0x2ac2a0[_0x4a35ce(0x26e)][0x0])==null?void 0x0:_0x4899f7[_0x4a35ce(0x389)])==null?void 0x0:_0x240536[_0x4a35ce(0x25b)];if(Array[_0x4a35ce(0x4ff)](_0x300161)&&_0x300161[_0x4a35ce(0x339)]){if(_0x300161[_0x4a35ce(0x339)]===_0x5e22d5[0x0][_0x4a35ce(0x389)][_0x4a35ce(0x25b)]['length']&&_0x300161[_0x4a35ce(0x3e5)]((_0x42313b,_0x13e435)=>a[_0x4a35ce(0x2f9)][_0x4a35ce(0x5ff)](_0x42313b['range'],_0x5e22d5[0x0][_0x4a35ce(0x389)][_0x4a35ce(0x25b)][_0x13e435][_0x4a35ce(0x5bb)])))return;this[_0x4a35ce(0x2f7)][_0x4a35ce(0x2f6)](a[_0x4a35ce(0x51f)])[_0x4a35ce(0x3fa)](k[_0x4a35ce(0x167)]['id'],{'unitId':_0x39a382,'subUnitId':_0x6753c0,'selections':_0x300161});}}};ke=Ri([Qe(0x0,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),Qe(0x1,S[_0x1f2fa(0x3ff)]),Qe(0x2,a['IUniverInstanceService'])],ke);const qe=a[_0x1f2fa(0x3a7)](_0x1f2fa(0x477));var un=(_0x146c28=>(_0x146c28[_0x146c28[_0x1f2fa(0x191)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x146c28[_0x146c28['OTHER_CLIENTS_EDITING']=0x1]=_0x1f2fa(0x18f),_0x146c28))(un||{});const Nt=0x7530,Lt=_0x1f2fa(0x380);class Oi extends a[_0x1f2fa(0x1d6)]{constructor(){const _0x4cf566=_0x1f2fa;super(),I(this,_0x4cf566(0x24c),a[_0x4cf566(0x34c)][_0x4cf566(0x452)]()),I(this,_0x4cf566(0x4e7),new Set()),I(this,_0x4cf566(0x2ee),new Map()),I(this,_0x4cf566(0x430),null),I(this,_0x4cf566(0x533),new Map()),I(this,_0x4cf566(0x54c),new Map()),this[_0x4cf566(0x48d)]();}[_0x1f2fa(0x366)](){const _0x310a77=_0x1f2fa;super[_0x310a77(0x366)](),this['_clearOtherTimers'][_0x310a77(0x601)]((_0x8653f9,_0x4ae67e)=>this[_0x310a77(0x517)](_0x4ae67e)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x310a77(0x430)]);}[_0x1f2fa(0x4d0)](_0x714c21){const _0x18891f=_0x1f2fa;return this[_0x18891f(0x48c)](_0x714c21)[_0x18891f(0x5f2)](A[_0x18891f(0x3f8)]());}[_0x1f2fa(0x354)](_0x239df2){const _0x1aaf60=_0x1f2fa;this[_0x1aaf60(0x4e7)][_0x1aaf60(0x51b)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1aaf60(0x4e7)]['add'](_0x239df2),this['_send']({'type':0x0,'memberID':this[_0x1aaf60(0x24c)],'unitIDs':[_0x239df2],'isForwarded':!0x1});}[_0x1f2fa(0x2c6)](_0x5f3e51){const _0x5ac028=_0x1f2fa;this['_selfUnitIDs'][_0x5ac028(0x2e4)](_0x5f3e51),this[_0x5ac028(0x4e7)][_0x5ac028(0x51b)]===0x0&&this[_0x5ac028(0x430)]&&window[_0x5ac028(0x534)](this[_0x5ac028(0x430)]);}[_0x1f2fa(0x48d)](){const _0xb58652=_0x1f2fa;this[_0xb58652(0x305)](a[_0xb58652(0x5ad)](A[_0xb58652(0x42b)](window,_0xb58652(0x2d1))['subscribe'](_0x191c16=>{const _0xae95a8=_0xb58652;if(_0x191c16[_0xae95a8(0x4dd)]!==Lt||!_0x191c16['newValue'])return;const _0x5b9cd1=JSON[_0xae95a8(0x55a)](_0x191c16[_0xae95a8(0x1ef)]);this[_0xae95a8(0x1fb)](_0x5b9cd1);}))),window[_0xb58652(0x210)](_0xb58652(0x1e2),()=>this[_0xb58652(0x369)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x1f2fa(0x1fb)](_0x1586d9){const _0x15aec6=_0x1f2fa;switch(_0x1586d9[_0x15aec6(0x1eb)]){case 0x0:this[_0x15aec6(0x3b4)](_0x1586d9);break;case 0x1:this[_0x15aec6(0x479)](_0x1586d9);break;case 0x2:this[_0x15aec6(0x1bb)](_0x1586d9);break;}}['_handleJoinEvent'](_0x313323){const _0x45e391=_0x1f2fa,{unitIDs:_0x40ef87,memberID:_0x2816a7,isForwarded:_0x3bf4f7}=_0x313323;_0x40ef87['forEach'](_0x792c17=>{const _0x1db55d=_0x3f71;if(!_0x3bf4f7&&this[_0x1db55d(0x2ee)][_0x1db55d(0x3d5)](_0x792c17)&&this['_ensureSubject'](_0x792c17)[_0x1db55d(0x497)](0x1),!this[_0x1db55d(0x2ee)][_0x1db55d(0x3d5)](_0x792c17)||!this[_0x1db55d(0x2ee)][_0x1db55d(0x2f6)](_0x792c17)[_0x1db55d(0x3d5)](_0x2816a7)){const _0x5f22d3=this[_0x1db55d(0x2ee)][_0x1db55d(0x2f6)](_0x792c17)||new Set();_0x5f22d3[_0x1db55d(0x515)](_0x2816a7),this[_0x1db55d(0x2ee)][_0x1db55d(0x329)](_0x792c17,_0x5f22d3),this[_0x1db55d(0x27b)](_0x2816a7);}}),_0x3bf4f7||this[_0x45e391(0x369)]({'type':0x0,'memberID':this[_0x45e391(0x24c)],'unitIDs':[...this[_0x45e391(0x4e7)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2c97cf){const _0x474acd=_0x1f2fa;this[_0x474acd(0x517)](_0x2c97cf);const _0x4d30d4=window[_0x474acd(0x4f7)](()=>{this['_unitOnClients']['forEach'](_0x16d2be=>{_0x16d2be['delete'](_0x2c97cf);});},Nt*0x2);this['_clearOtherTimers'][_0x474acd(0x329)](_0x2c97cf,_0x4d30d4);}[_0x1f2fa(0x517)](_0x254a2f){const _0x11d68d=_0x1f2fa;if(this['_clearOtherTimers'][_0x11d68d(0x3d5)](_0x254a2f)){const _0xae1f48=this[_0x11d68d(0x533)][_0x11d68d(0x2f6)](_0x254a2f);_0xae1f48&&window[_0x11d68d(0x36a)](_0xae1f48),this[_0x11d68d(0x533)][_0x11d68d(0x329)](_0x254a2f,null);}}['_handleLeaveEvent'](_0x4b5d91){const _0x1e3c6e=_0x1f2fa,{memberID:_0x44201e,unitIDs:_0x5532ff}=_0x4b5d91;_0x5532ff['forEach'](_0x185660=>{const _0x2a14f8=_0x3f71;var _0x51bb68;const _0x21a798=this[_0x2a14f8(0x2ee)]['get'](_0x185660);_0x21a798&&(_0x21a798[_0x2a14f8(0x2e4)](_0x44201e),(_0x51bb68=this['_ensureSubject'](_0x185660))==null||_0x51bb68[_0x2a14f8(0x497)](_0x21a798['size']===0x0?0x0:0x1));}),this[_0x1e3c6e(0x517)](_0x44201e);}[_0x1f2fa(0x1bb)](_0x143c68){const _0x324701=_0x1f2fa;this[_0x324701(0x27b)](_0x143c68[_0x324701(0x264)]);}[_0x1f2fa(0x369)](_0x295175){const _0x5481e4=_0x1f2fa;localStorage[_0x5481e4(0x378)](Lt,JSON['stringify'](_0x295175));}[_0x1f2fa(0x4e0)](){const _0x4948db=_0x1f2fa;this['_heartbeatTimer']=window[_0x4948db(0x27e)](()=>{const _0x33dbd6=_0x4948db;this['_send']({'type':0x2,'memberID':this[_0x33dbd6(0x24c)]});},Nt);}[_0x1f2fa(0x48c)](_0xd92c11){const _0x698cce=_0x1f2fa;return this['_unitStatus'][_0x698cce(0x3d5)](_0xd92c11)||this[_0x698cce(0x54c)]['set'](_0xd92c11,new A['BehaviorSubject'](0x0)),this[_0x698cce(0x54c)]['get'](_0xd92c11);}}var Di=Object[_0x1f2fa(0x4e5)],wi=Object[_0x1f2fa(0x40d)],Pi=(_0x31cd4,_0x5c3f4e,_0x229fb0,_0x132588)=>{const _0x53267d=_0x1f2fa;for(var _0x48572c=_0x132588>0x1?void 0x0:_0x132588?wi(_0x5c3f4e,_0x229fb0):_0x5c3f4e,_0x4fe148=_0x31cd4[_0x53267d(0x339)]-0x1,_0x44dca3;_0x4fe148>=0x0;_0x4fe148--)(_0x44dca3=_0x31cd4[_0x4fe148])&&(_0x48572c=(_0x132588?_0x44dca3(_0x5c3f4e,_0x229fb0,_0x48572c):_0x44dca3(_0x48572c))||_0x48572c);return _0x132588&&_0x48572c&&Di(_0x5c3f4e,_0x229fb0,_0x48572c),_0x48572c;},et=(_0x2ab15c,_0x5efde8)=>(_0x5891ff,_0x5cbc17)=>_0x5efde8(_0x5891ff,_0x5cbc17,_0x2ab15c);let We=class{constructor(_0x9aeaea,_0x1c904e,_0x5c93df){const _0xa15f99=_0x1f2fa;this[_0xa15f99(0x2f7)]=_0x9aeaea,this[_0xa15f99(0x5ce)]=_0x1c904e,this[_0xa15f99(0x3bf)]=_0x5c93df;}[_0x1f2fa(0x3a6)](_0x19114b){const _0x5139c0=_0x1f2fa;this[_0x5139c0(0x381)](_0x19114b);}[_0x1f2fa(0x5a4)](_0x2f425a){const _0x445b2a=_0x1f2fa,{unitID:_0x471ee3}=_0x2f425a,{collaboration:_0x3aaf1d}=this[_0x445b2a(0x3bf)][_0x445b2a(0x482)](_0x471ee3);if(_0x3aaf1d[_0x445b2a(0x339)]===0x0)return _0x2f425a;let _0x3c5bab=a[_0x445b2a(0x34c)]['deepClone'](_0x2f425a['mutations'][0x0]);for(let _0x10a660=0x0;_0x10a660<_0x3aaf1d[_0x445b2a(0x339)];_0x10a660++){const _0x50da71={'id':_0x445b2a(0x4dc),'params':{'unitId':_0x3aaf1d[_0x10a660]['unitId'],..._0x3aaf1d[_0x10a660][_0x445b2a(0x4ed)]}},_0x105674=this[_0x445b2a(0x5ce)][_0x445b2a(0x5a8)](_0x3c5bab,_0x50da71,!0x1);if(S[_0x445b2a(0x187)](_0x105674))throw _0x105674['error'];_0x3c5bab=_0x105674[_0x445b2a(0x18e)];}return{...a[_0x445b2a(0x34c)][_0x445b2a(0x272)](_0x2f425a),'mutations':[_0x3c5bab]};}[_0x1f2fa(0x381)](_0x4b2781){const _0x220304=_0x1f2fa,{unitID:_0x4c402d}=_0x4b2781,{history:_0x40234f,collaboration:_0x2f3a3d}=this[_0x220304(0x3bf)][_0x220304(0x482)](_0x4c402d);if(_0x40234f['length']===0x0&&_0x2f3a3d[_0x220304(0x339)]===0x0)return;const _0x440af9=[],_0x502755=[];let _0x1739c7=a[_0x220304(0x34c)][_0x220304(0x272)](_0x4b2781[_0x220304(0x456)][0x0]),_0x4b6a2c=a[_0x220304(0x34c)][_0x220304(0x272)](_0x4b2781[_0x220304(0x456)][0x0]);for(let _0x248cc5=_0x40234f['length']-0x1;_0x248cc5>=0x0;_0x248cc5--){const _0xbc5fbf={'id':_0x220304(0x4dc),'params':{'unitId':_0x40234f[_0x248cc5][_0x220304(0x4e3)],..._0x40234f[_0x248cc5][_0x220304(0x2dd)]}},_0x74abd2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x40234f[_0x248cc5][_0x220304(0x4e3)],..._0x40234f[_0x248cc5]['redoState']}},_0x1a10b2=this[_0x220304(0x5ce)][_0x220304(0x5a8)](_0x1739c7,_0xbc5fbf,!0x1),_0x2f2ce0=this[_0x220304(0x5ce)][_0x220304(0x5a8)](_0x4b6a2c,_0x74abd2,!0x1);if(S['isTransformMutationFailure'](_0x1a10b2))throw _0x1a10b2[_0x220304(0x2d0)];if(S['isTransformMutationFailure'](_0x2f2ce0))throw _0x2f2ce0[_0x220304(0x2d0)];_0x440af9[_0x220304(0x1e3)]({..._0x40234f[_0x248cc5],'undoState':_0x1a10b2[_0x220304(0x26e)][_0x220304(0x389)],'redoState':_0x2f2ce0[_0x220304(0x26e)][_0x220304(0x389)]}),_0x1739c7=_0x1a10b2['m1Prime'],_0x4b6a2c=_0x2f2ce0[_0x220304(0x18e)];}_0x1739c7=a[_0x220304(0x34c)][_0x220304(0x272)](_0x4b2781[_0x220304(0x456)][0x0]),_0x4b6a2c=a[_0x220304(0x34c)]['deepClone'](_0x4b2781[_0x220304(0x456)][0x0]);for(let _0x111639=_0x2f3a3d[_0x220304(0x339)]-0x1;_0x111639>=0x0;_0x111639--){const _0x1e3a43={'id':_0x220304(0x4dc),'params':{'unitId':_0x2f3a3d[_0x111639][_0x220304(0x4e3)],..._0x2f3a3d[_0x111639][_0x220304(0x2dd)]}},_0x4e54d2={'id':_0x220304(0x4dc),'params':{'unitId':_0x2f3a3d[_0x111639][_0x220304(0x4e3)],..._0x2f3a3d[_0x111639][_0x220304(0x4ed)]}},_0xdf3dec=this[_0x220304(0x5ce)][_0x220304(0x5a8)](_0x1739c7,_0x1e3a43,!0x1),_0xc020f5=this['_transformService'][_0x220304(0x5a8)](_0x4b6a2c,_0x4e54d2,!0x1);if(S[_0x220304(0x187)](_0xdf3dec))throw _0xdf3dec['error'];if(S[_0x220304(0x187)](_0xc020f5))throw _0xc020f5[_0x220304(0x2d0)];_0x502755[_0x220304(0x1e3)]({..._0x2f3a3d[_0x111639],'undoState':_0xdf3dec[_0x220304(0x26e)][_0x220304(0x389)],'redoState':_0xc020f5[_0x220304(0x26e)][_0x220304(0x389)]}),_0x1739c7=_0xdf3dec[_0x220304(0x18e)],_0x4b6a2c=_0xc020f5[_0x220304(0x18e)];}this[_0x220304(0x3bf)][_0x220304(0x589)](_0x4c402d,{'history':_0x440af9,'collaboration':_0x502755});}};We=Pi([et(0x0,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),et(0x1,S[_0x1f2fa(0x3ff)]),et(0x2,a[_0x1f2fa(0x28d)](J['DocStateChangeManagerService']))],We);function dn(_0x4f236d){const _0x2dbf5e=_0x1f2fa;let _0x4e785e='';for(const _0x4dc8af of _0x4f236d){const {startOffset:_0x48e37c,endOffset:_0x441dc9,isActive:_0x29d702,rangeType:_0x4f7191,segmentId:_0x371c3f,segmentPage:_0x329359}=_0x4dc8af;_0x4e785e[_0x2dbf5e(0x339)]&&(_0x4e785e+=','),_0x4e785e+=_0x48e37c+':'+_0x441dc9+':'+(_0x29d702?'1':'0')+':'+_0x4f7191+':'+_0x371c3f+':'+_0x329359;}return _0x4e785e;}function Ui(_0x109545){const _0x175be2=_0x1f2fa,_0x1dc998=_0x109545[_0x175be2(0x4c5)](','),_0x5bca3f=[];for(const _0x543e07 of _0x1dc998){const [_0x302a5b,_0x4beebb,_0x921192,_0xb2cc5,_0x4c15f0,_0x3e1c6b]=_0x543e07[_0x175be2(0x4c5)](':');_0x5bca3f[_0x175be2(0x19c)]({'startOffset':Number(_0x302a5b),'endOffset':Number(_0x4beebb),'collapsed':_0x302a5b===_0x4beebb,'isActive':_0x921192==='1','rangeType':_0xb2cc5===a['DOC_RANGE_TYPE'][_0x175be2(0x58f)]?a[_0x175be2(0x1e6)][_0x175be2(0x58f)]:a[_0x175be2(0x1e6)][_0x175be2(0x362)],'segmentId':typeof _0x4c15f0==_0x175be2(0x205)?String(_0x4c15f0):'','segmentPage':Number(_0x3e1c6b!=null?_0x3e1c6b:-0x1)});}return _0x5bca3f[_0x175be2(0x1ec)](_0x2f6769=>_0x2f6769[_0x175be2(0x3fe)])||(_0x5bca3f[0x0][_0x175be2(0x3fe)]=!0x0),_0x5bca3f;}class Rt extends a[_0x1f2fa(0x2bd)]{constructor(){const _0x4d7b91=_0x1f2fa;super(...arguments),I(this,'_collabCursorState$',new A[(_0x4d7b91(0x25c))](null)),I(this,_0x4d7b91(0x60a),this['_collabCursorState$'][_0x4d7b91(0x5de)]());}['syncEditingCollabCursor'](_0x512144){const _0x5a698a=_0x1f2fa,{unitID:_0x5a1e68,memberID:_0x1ca905,textRanges:_0x13dbe4}=_0x512144,_0x362e59=dn(_0x13dbe4);if(_0x362e59==='')return;const _0x42ff3e={'unitID':_0x5a1e68,'memberID':_0x1ca905,'selection':_0x362e59};this[_0x5a698a(0x5e5)][_0x5a698a(0x497)](_0x42ff3e);}}var Mi=Object[_0x1f2fa(0x4e5)],Ai=Object[_0x1f2fa(0x40d)],Ni=(_0x75143f,_0xa03f1c,_0x97c70a,_0x2a7960)=>{const _0xd3a4ea=_0x1f2fa;for(var _0x40ec45=_0x2a7960>0x1?void 0x0:_0x2a7960?Ai(_0xa03f1c,_0x97c70a):_0xa03f1c,_0x4bacc5=_0x75143f[_0xd3a4ea(0x339)]-0x1,_0x945209;_0x4bacc5>=0x0;_0x4bacc5--)(_0x945209=_0x75143f[_0x4bacc5])&&(_0x40ec45=(_0x2a7960?_0x945209(_0xa03f1c,_0x97c70a,_0x40ec45):_0x945209(_0x40ec45))||_0x40ec45);return _0x2a7960&&_0x40ec45&&Mi(_0xa03f1c,_0x97c70a,_0x40ec45),_0x40ec45;},xt=(_0x44cb18,_0x4a512e)=>(_0x7228ea,_0x59dbe0)=>_0x4a512e(_0x7228ea,_0x59dbe0,_0x44cb18);function _0x424e(){const _0x4ee71f=['next','decrypt','_configService','getTime','_awaitingChangeset','_getSheetObject','collaboration-client.offline-data-not-saved','EffectRefRangId','Unknown\x20user','pushState','default','hide','reject','rxjs/operators','uni.network.url-service','FETCH_MISSING','session','_docTransformSelectionsService','_themeService','execute','onRemoteRej','title','debounce','onStateChange','_undoRedoService','randomBytes','exports','appendMutation','APPLY_REVISION_CONFILICT','transformChangesets','_clearLocalCache','processBlock','react.element','_onOffline','toggleOnline','[CollaborationSessionService]','#fff','\x20to\x20','_memberService','_shouldReportTelemetry','_HTTPService','ONLINE','permissionRejEvent','_colorAssignService','UNIVER_SHEET','/rev/','split','[PendingState]:\x20received\x20rejection.','byteOffset','_updateSubUnitFromURLParams','_sessionStatus$','b64DecodeUnicode','...','SYNCED','_revisionService','max','_hash','getUnitStatus$','charAt','APPLY_REJECT','listRoles','reqId','_iKey','_removeRoom','_getSendChangesetTimeout','awaitingChangeset','saveImage','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','updatePermissionPoint','doc.mutation.rich-text-editing','key','SessionStatus','_transitionLocked','_scheduleHeartbeat','HEARTBEAT_TIMEOUT_KEY','_snapshotService','unitId','getOwnPropertySymbols','defineProperty','_userManagerService','_selfUnitIDs','ILocalStorageService','onMouseMove','getUnitId','LOGIN_URL_KEY','method','redoState','enableAuthServer','Base','collabStatus.conflict','salt','resolve','evenodd','putCollaborators','_oKey','find','setTimeout','state','rev','Undefined','/object/','debug','collabStatus.fetchMiss','_process','isArray','AWAITING','@univerjs/ui','@univerjs/engine-render','[CollaborationSessionService]:\x20socket\x20error','_sessions','UNIVER_DOC','copyFileMeta','getColor','encodeURIComponent','_collabCursorController','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','_rescheduleHeartbeat','_createInitialStateImpl','?url=','map','collab-client.tooltip.reconnect','getRelativeToViewportCoord','awaiting_with_pending','_scene','_sender','ERROR_IMAGE','add','HTTPService','_removeClearOtherTimer','translate(.97)','bottom','_clearHeartbeatTimer','size','_univerInstanceService','rxjs','_onLocalMutation','ICommandService','_initCloseConn','NEW_CHANGESETS','visibilitychange','enableLocalCache','_getAPIPrefix','ColorKit','IUIPartsService','getCurrentUser','CommentService','_handler','handleIRemoveCol','_cursors','&assign=','_saveTaskMap','_onConflict','patch','getResourcesRequest','exhaustSavingTask','OFFLINE','_clearOtherTimers','clearInterval','12SjvWMK','from','LocaleService','href','_onCombEvent','_syncEditingCollabCursor','_registerDependencies','focused$','RemoveColCommandId','/block/','[FetchMissState]','collaborators','PSEUDO_FETCH_MISSING_RESULT','session.collaboration-timeout','[SyncedState]:\x20received\x20rejection.','_startDocCollabCursor','_clearTimeoutTimer','getConfig','Error\x20on\x20receiving\x20event','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_socket$','UNIVER_UNKNOWN','changesets','_unitStatus','PERMISSION_DENIED','_onConnectionFailed','toggleOffline','image/jpeg','shouldCloseConn','IDLE','clone','none','_sendingTimer','_telemetryService','_resendTimer','createSocket','YUUMI_SUBSCRIPTION_NOT_FOUND','parse','Univer','target','collaboratorID','RETRY_CONNECTING_MAX_COUNT_KEY','_doCryptBlock','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_snapshotServerService','IUniverInstanceService','splice','collabStatus.notCollab','startsWith','_compressMutationService','_sheetTransformSelectionsService','_replayCachedMutations','/fetchmissing?from=','liveShareNewHost','Warning','_doFinalize','toRgbString','@univerjs/telemetry','lib','_changesetSessionId','CHANGESET_REVISION_CONFILICT','&to=','moveTo','NodePositionConvertToRectRange','call','_tryReconnect','JOIN','lineTo','BASE64','_xformMode','onPointerEnter$','createDecryptor','dispose$','_acknowledgedAwaitingChangeset','@univerjs/sheets-ui','_onCursorDelete','_hovered','BufferedBlockAlgorithm','getCurrentRevOfUnit','COLLAB_WEB_SOCKET_URL_KEY','_map','PENDING','red300','InsertRangeMoveRightCommandId','setStateCache','onRemoteRetry','sheetId','RegularPolygon','ranges','?size=','TEXT','UNAUTHENTICATED','onMissingChangesets','@univerjs/engine-formula','pending','JSONX','fromEventSubject','Vector2','Encryptor','_transformUndoredo','localeService','auth.needGotoLoginAlert','blockSize','_socketService','arc','InsertRangeMoveDownCommandId','updateCollaborator','_getAnchorBounding','_showConflictNotification','docStateChange$','YUUMI_URL_COL_OUT_OF_RANGE','transformRemoteChangeset','_initResize','_entityInit$','_updateURLWithCurrentState','transformMutation','/universer-api/oidc/authpage','clear','_commandService','enableOfflineEditing','toDisposable','confirm','UNIVER_SLIDE','/universer-api/file/{fileID}/sign-url','_removeCollabCursors','jiqing500','objectActions','OpenSSL','requireSession','_sendHeartbeatTimer','combineLatest','CHANGESET_SHOULD_RETRY','SheetCollabCursorShape','workbook','range','RevisionService','IBeforeCloseService','clipPath','fromCharCode','CollaborationEntity','Hasher','substring','symbol','_commentService','onRemoteChangeset','getMember','UniverInstanceType','withCredentials','rng','unknown','url(#on-line-single_clip0_910_349)','_clearUndo','collabWebSocketUrl','_transformService','LOCAL_CACHE_INTERVAL','status$','cfg','CHANGESET_REJ','createEncryptor','takeUntil','getActiveRange','/universer-api/comb','_onRemoteChangeset','fromCollab','joinEvent','ws://127.0.0.1:8000/universer-api/comb/connect','Decryptor','syncEditingCollabCursor','[OfflineState]:\x20received\x20acknowledgement.','asObservable','ImageUploadStatusType','_schedule','useDependency','_type','_mode','[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.','_collabCursorState$','RECV','kdf','onSyncEditingCollabCursor','HmacMD5','_prevBlock','_loadDoc','now','fillText','permission.title','_onCursorUpdate','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','203079drprhI','pipe','_getCurrentRevision','_toggleOnline','3921464gPkaHM','loadOfflineData','reset','registerHTTPInterceptor','onCommandExecuted','onTransformState','loginUrlKey','Plugin','saveOfflineData','stopTime','equals','SheetsSelectionsService','forEach','_onMessage','INTERNAL_ERROR','unitID','isTransformMutationsWithChangesetSuccess','_cursorInfo$','Tooltip','getRenderById','_initCommandExecutedListener','collabCursorState$','idSuffix','complete','_sheetSkeletonManagerService','getValue','_collabSessionService','hidden','handleInsertRangeMoveRight','[CollaborationEntity]','isTransformChangesetsSuccess','onReady','HEARTBEAT_INTERVAL_KEY','_startCollaboration','IAuthzIoService','_clearScheduledTask','save','_retryConnectingTimer','for','_throwTelemetryCollaborationNewChangeset','DocIMEInputManagerService','_roomMembers$','responseType','SetSelectionsOperation','getRandomValues','forwardRef','\x20-\x20','getCurrentSelections','_initUnitPermissionChange','_submitChangeset','unpad','DeleteRangeMoveLeftCommandId','onSendChangeset','getUndoRedoMutationParamsCache','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','session.room-full','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','AuthzIoHttpService','keySize','resourceIDs','UNRECOGNIZED','_doProcessBlock','_transformStateCache','/unit/','cursorInfo','_config','compute','161260iKOVbb','setActiveRange','downloadEndpointUrl','_socket','/-/object/list','_scheduleTimestamp','image/png','_timeoutTimer','isTransformMutationFailure','_labelPosition','charCodeAt','_fetchMissChangesets','readInt32LE','makeDirty','getDeserializedSheetBlock','m1Prime','OTHER_CLIENTS_EDITING','popstate','NO_OTHER_CLIENTS_EDITING','setShowComponents','update','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','BlockCipher','__creator','_onRefRangeChange','IRemoteInstanceService','_context','apply','x-univer-host','push','routeKey','UNKNOWN_CODE','_substituteRedoStack','getVpScrollXYInfoByPosToVp','image/jpg','retryConnectingInterval','HEARTBEAT','_urlService','beginPath','not_collab','4435RKPdFc','SNAPSHOT_INVALID_SNAPSHOT','history','/allowed','CollaborationController','defs','backgroundColor','_updateState','ILogService','IConfigService','SEND_CHANGESET_TIMEOUT','put','serializeRangeWithSheet','readAsDataURL','SHA1','merge','InsertSheetMutation','override','msCrypto','getUnitType','_handleHeartbeatEvent','_createHandler','_applyRemoteChangeset','COLLAB_SUBMIT_CHANGESET_URL','append','CollaborationSessionService','onTransformRemoteChangesetByIMECache','_drawAnchor','mergeOverrideWithDependencies','action','_isPermissionRej','ITelemetryService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','SNAPSHOT_SERVER_URL_KEY','loadSheet','capture','setWaitCount','bind','collaMsg','onCommentUpdate','reduce','IPermissionService','format','ISnapshotServerService','InsertRowCommandId','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','roomInfos','Disposable','_iv','_logService','ICollaborationSocketService','FileId','getActiveSheet','JOINING','_commentUpdate$','COMMENT_UPDATE','SEND_CHANGESET_TIMEOUT_KEY','row','compose','unload','unshift','byteLength','RemoveRowCommandId','DOC_RANGE_TYPE','OnLineSingle','replaceDocRanges','_entities','getSheetBySheetId','type','some','MessageType','transformIMECache','newValue','UnitEmbedded','session.will-retry','_onRemoteRejected','setUndoRedoMutationParamsCache','getCollabCursors$','csRejEvent','startRow','serializeCombRequest','_toggleOffline','_unlockTransition','_change$','_handleEvent','unitId\x20is\x20not\x20found','_online','_append','onlineStatusTitle','pad','file','POST','_doReset','_unitID','string','svg','univerjs-icon\x20univerjs-icon-','current','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_resendWithTimeout','buffer','APPLY_DUPLICATED','liveShareOperation','PERMISSION_REJ','\x20in\x20_schedule.','addEventListener','SHOULD_CLOSE_CONN','setCurrentUser','then','userID','event$','transformSelections','MoveRangeCommandId','_setupSubUnitSync','@univerjs/drawing','_transformSelections','deleteCollaborator','defIds','commentUpdate$','create','_color','SNAPSHOT_HAS_BEEN_REMOVED','LocalUndoRedoService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','DependentOn','hovered','_waitCount','UniverCollaborationClientPlugin','name','objectID','connection\x20error','Latin1','UnitSnapshot','WebSocketService','_getUndoStack','_cachedData','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_sendHeartbeat','fetchThroughInterceptors','_notificationService','leaveEvent','assignAColorForMemberID','searchParams','_lastPointer','_lockTransition','_collaborationTimeoutTimer','_updateLocalCache','objectType','on-line-single_clip0_910_349','SUBMIT_CHANGESET','handleMoveRange','_socketReady','_transformUndoRedoStack','HttpImport','isPermissionRej','saveSnapshot','_cursorShapes','_getMergeRange','Optional','_localeService','YUUMI_UNABLE_LOAD_URL','getImageSourceCache','1em','onlineStatusIcon','_id','off-line-single','_disableEditing','fetchMiss','CommandType','permission.content','flatMap','_setupBeforeClosingHandler','DocSelectionManagerService','height','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','whenReady','padding','_docTransformStateCacheService','sequenceExecute','selections','BehaviorSubject','/-/object/-/batch_allowed','subscribe','_checkMissing','_onJoinRoomEvent','urlChange$','_startSheetCollabCursor','displayName','memberID','assign','INotificationService','initWorkbookPermissionChange','registerBeforeClose','handleInsertRangeMoveDown','_getUploadFileURL','_updateCollabCursors','selection','body','m2Prime','catch','_syncEditingCollabCursorService','@univerjs/docs-ui','deepClone','concat','getInterceptPoints','ref','_hideTimer','getSkeleton','includes','VIEWPORT_KEY','AWAITING_WITH_PENDING','_scheduleClearOtherTimer','activeSheet$','WordArray','setInterval','jsxs','width','hostname','DEFAULT_FILE_NAME','location','values','_getRedoStack','status','fillStyle','0\x200\x2016\x2016','fetchMissingChangesets','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','switchMap','521KynUJk','Inject','BlockCipherMode','enableSingleActiveInstanceLock','ALREADY_EXISTS','UPDATE_PERMISSION_OBJ','_singleActiveUnitService','unit-cache-','trim','mapTo','getMemberID','close','setShapeProps','APPLY_PERMISSION_DENIED','isInternalEditorID','encode','_initStatusComponent','_instanceService','_data','headers','_messageService','indexOf','repeat','getFocusedUnit','HttpExport','drawWith','SNAPSHOT_URL_KEY','AUTHZ_URL_KEY','_keyPriorReset','cmd','FETCH_MISS','20TlDDNe','_docTransformIMECacheService','_incrementRevisionNumber','tag','DisposableCollection','currentTheme$','updateOfflineData','list','[DataLoaderController]','LOCAL_CACHE_INTERVAL_KEY','CONFLICT','online','CollaborationSocketService','sigBytes','_collaborationSessionService','Subject','SheetSkeletonManagerService','_ws','RxDisposable','_transformIMECache','deserializeToCombResponse','mixIn','jsx','_keySchedule','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','_permissionService','ImageSourceType','disposeUnit','toStringTag','Base64','LEAVE','attrs','telemetry\x20info\x20is\x20not\x20initialized','_onRemoteACK','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','ENSURE_SNAPSHOT_EXECUTION','@univerjs/docs','error','storage','handleDeleteRangeMoveLeft','getSheetId','_render','_scheduleSaving','closeSession','setConfig','onlineStatus','_docSkeleton','url(#$1','RichTextEditingMutation','findNodePositionByCharIndex','undoState','LICENSE_MAX_UNITS_EXCEEDED','_transformStack','LICENSE_IMPORT_SIZE_EXCEEDED','getCollabEntity$','_getScale','_handleHover','delete','rgba(255,\x20255,\x20255,\x200.01)','sessionStatus','/universer-api/snapshot/','addObject','revision','interceptor','_cursor','_transformRemoteChangesetByStateCache','_textBubble','_unitOnClients','_http','univer-pro.collaboration-client-socket-service','getCollabEntity','RETRY_CONNECTING_MAX_COUNT','PasswordBasedCipher','_socketMessageSubscription','_exhaustRemoteChangesetQueue','get','_injector','CipherParams','Rectangle','IUndoRedoService','_clearRedo','random','COMPRESS_MUTATION_SEND','ThresholdInterceptorFactory','saveChangeset','take','subscribeEvent','all','_renderManagerService','_onFetchMissResult','disposeWithMe','_remoteChangesetQueue','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','useCallback','UUID','extend','connectInjector','children','getLatestCsReqIdBySid','textRanges','_colorIndex','isEditing','IImageIoService','updatePermissionObjEvent','_initRequestHeader','batchAllowed','_getSnapshotAPIPrefix','socket$','_invKeySchedule','setParam','2459338syOuNk','DesktopCollaborationStatusDisplayController','/resources','startColumn','_collaborationController','_imageSourceCache','slice','LIVESHARE_OPERATION','WebURLService','resend','function','save\x20fail\x20reason\x20is\x20','_drawRectRange','UPDATE_CURSOR','_tryEnsureSocket','IRenderManagerService','set','collabStatus.syncing','IMessageService','AES','message$','_listenToOfflineEvent','editing\x20status\x20changed\x20to','IURLService','actions','{fileID}','LocalCacheService','_hasher','state$','round','UniverIcon','delay','length','_transformPreviousActiveRange','getRangePointData','DataLoaderController','handleIRemoveRow','createInstance','react','EmptyMutation','LIVESHARE_REQUEST_HOST','colorChannel1','__esModule','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','_hover','_localCacheService','M0\x200H16V16H0z','result','removeMember','_document','_ENC_XFORM_MODE','Tools','getMergeData','addObjects','src','_disabled','verdancy600','EvpKDF','toString','editingUnit','UNIVER_PROJECT','throttleTime','Utf8','SheetCollaborationEntity','error$','LIVESHARE_TERMINATE','shareReplay','fetching\x20missing\x20changesets\x20from\x20','Injector','getViewport','HELLO','_initMergeInterceptor','HmacSHA1','RECT','mode','_initDependencies','_assignedColors','dispose','getCurrentUnitForType','replace','_send','clearTimeout','/collaborator','_parse','_updateStatus','_getDownloadEndpointURL','_getSaveTimeout','DocCollaborationEntity','onTransformIME','isTransformMutationsWithChangesetFailure','collaboration-client.config','getTypeOfUnitAdded$','COLORS','crypto','_collaborationPaused','setItem','textEncoder','_state$','_loadSheet','CompressMutationService','_onRemoteRetry','registerRenderModule','getAncestorScale','ACTIVE_UNIT_EVENT_CHANNEL','_transformHistoryAndStateStack','synced','restore','use','propertyIsEnumerable','univer-online','getParam','roles','params','_joinRoom','_undoStacks','UniverCollaborationPlugin','LICENSE_DISTRO_REJECTED','eventID','sid','HTTPRequest','@univerjs-pro/collaboration','onlyLocal','sessionStatus$','_nRounds','_saveCache','getWorkbookSelections','_onUserJoin','code','pluginName','infoRsp','purple300','deserializeRangeWithSheet','conflict','parseChangesetToProtocol','loadDoc','9zhcGuQ','_resendTimeout','SetWorksheetActivateCommand','_session','min','reconnect','transformStateCache','createIdentifier','createElement','_decreaseWaiting','sheetID','FromArray','conflict.title','collabSubmitChangesetUrl','CBC','joinRsp','MD5','_anchor','_drawTextRange','NOT_FOUND','_handleJoinEvent','_members','MUTATION','NodePositionConvertToCursor','triggerDblclick','_stopTelemetryCollaborationNewChangeset','_eventUnsubscribe','incrementRevOfUnit','c2Prime','session.connection-failed','close$','_docStateChangeManagerService','baseRev','closePath','getUnit','sheets','_state','encrypt','$super','SUCCUSS','_waitForHeartbeatResponse','randomUUID','Rect','LIVESHARE_NEW_HOST','3604160pEWrBz','_clearCollaborationTimeoutTimer','WorkbookEditablePermission','gold400','addImageSourceCache','join','_pendingMutations','_cipher','xlink:href','has','touchDependencies','black','MemberService','subunit','_substituteUndoStack','filter','transformStack\x20failed!','Could\x20not\x20dynamically\x20require\x20\x22','onMissedChangesetFetched','/new_changes','0\x200\x2017\x2016','collaboration-session-retry','onTransformSelections','_telemetryInfo','snapshot','every','updateMember','YUUMI_RATE_OVER_LIMIT','_httpService','visibilityState','floor','algo','transformUndoRedo','USERS_LEAVE','getDocRanges','open$','_redoStacks','url(#off-line-single_clip0_910_343)','members','\x0aCurrent:\x20','stringify','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','ciphertext','hasOwnProperty','distinctUntilChanged','COMPLETION_FINISHED','executeCommand','_DEC_XFORM_MODE','_createHelper','measureText','isActive','ITransformService','_createHmacHelper','DocSkeletonManagerService','@univerjs/design','transformMutationsWithChangeset','&source=','_draw','mapDocumentTypeToUniverType','handleDeleteRangeMoveUp','_localStorageService','_queuedRemoteChangesets','registerComponent','uploadFileServerUrl','_updateLocalCursor','getOwnPropertyDescriptor','ImageIoService','NoPadding','_reverseMap','_roomMembers','_transformRemoteChangesetByIMECache','abs','_refRangeService','ThemeService','CollaborationEvent','off-line-single_clip0_910_343','SerializableCipher','clamp','_range','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','requestParams','_shapes','OffLineSingle','_beforeCloseService','_getAPIPrefixPath','replaceState','CollaborationStatus','useRef','Error','_key','ERROR_EXCEED_SIZE','setAlpha','_event$','className','prototype','fromEvent','MSG_FOR_ERROR','contains','SnapshotServerOverHTTPService','finalize','_heartbeatTimer','826LwBRjX','_onRecvEvent','_anchorDot','@univerjs/rpc','HMAC','_getCtorByUniverType','[CollaborationSession]','currentSkeleton$','collab-rect-range-','post','registerDependencies','startTime','registerOnClose','_onUserLeave','roomMembers$','path','_retryCount','subUnitId','_executeRemoteChangeset','_candidateSocket','send','_getLoginPath','with','c1Prime','TEXT_RANGE_LAYER_INDEX','reverse','/universer-api/snapshot','disableLocalCache','_backgroundColor','_registerRenderDependencies','FAIL','RefRangeService','INGEST','generateRandomId','Fragment','_status$','cursorInfo$','mutations','[CollaborationState]:\x20apply\x20error!','_nDataBytes','url','awaiting','enc','on-line-single','ceil','text','offline','unit','fill','data','Cipher','words','univer-offline','CollaborationSession','NOT_COLLAB','getTypeOfUnitDisposed$','CHANGESET_ACK','@univerjs/network','__Key__','originalMeta','labelPosition','LIVESHARE_FETCH_OPERATIONS','collabStatus.synced','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getCurrent','show','onStarting','COMPRESS_MUTATION_APPLY','registerRefRange','Shape','univer-pro.collaboration-client.single-active-unit-service','onRemoteAck','_handleLeaveEvent','[CollaborationUndoRedoService]','TOO_MANY_REQUESTS','_changesetReqId','_createInitialState','_refreshCollabCursors','color','_onConnectionOpen','pauseCollaboration','getStateCache','_name','unsubscribe','init','_getSignURL','_listenToOnlineEvent','getOffsetConfig','univer-online-status-title','USERS_ENTER','column','_ensureSubject','_init','socket\x20open.','socket\x20close','_createSocket','entries','top','onPointerLeave$','listCollaborators','getUnhiddenWorksheets','onTransformRemoteChangesetByStateCache'];_0x424e=function(){return _0x4ee71f;};return _0x424e();}let Fe=class{constructor(_0x520186,_0x7c164c){const _0x56700c=_0x1f2fa;this['_injector']=_0x520186,this[_0x56700c(0x5ce)]=_0x7c164c;}[_0x1f2fa(0x216)](_0x49d2ec){const _0x520589=_0x1f2fa;var _0x2b508a;const _0x410a02=this[_0x520589(0x2f7)][_0x520589(0x2f6)](ye[_0x520589(0x254)]),_0x28013b=(_0x2b508a=_0x410a02[_0x520589(0x3ee)]())!=null?_0x2b508a:[];if(_0x28013b[_0x520589(0x339)]===0x0)return;const _0xf18a12=_0x49d2ec[_0x520589(0x604)],_0x5bad18=[{'id':_0x520589(0x4dc),'params':{'unitId':_0xf18a12,'actions':null,'textRanges':_0x28013b}}],_0x15afc3=this[_0x520589(0x5ce)][_0x520589(0x403)](_0x49d2ec,_0x5bad18);if(!S['isTransformMutationsWithChangesetSuccess'](_0x15afc3))throw _0x15afc3[_0x520589(0x2d0)];const _0x44bf8b=_0x15afc3[_0x520589(0x26e)][0x0][_0x520589(0x389)][_0x520589(0x30e)];Array[_0x520589(0x4ff)](_0x44bf8b)&&_0x44bf8b[_0x520589(0x339)]&&_0x410a02[_0x520589(0x1e8)](_0x44bf8b,{'unitId':_0xf18a12,'subUnitId':_0xf18a12},!0x1);}};Fe=Ni([xt(0x0,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),xt(0x1,S[_0x1f2fa(0x3ff)])],Fe);const Li=new Set([k[_0x1f2fa(0x1b7)]['id']]);function jt(_0x2ae23c,_0x5708e5,_0x460aec,_0x1b024e,_0x580424){const _0x3db101=_0x1f2fa;var _0x5425b5,_0x1094df,_0x5020e1,_0x1ad435;const _0x3b106d=[];for(const _0x3b358b of _0x2ae23c)if(Li[_0x3db101(0x3d5)](_0x3b358b['id'])){if(_0x3b106d[_0x3db101(0x339)]>0x0)break;_0x3b106d[_0x3db101(0x19c)](_0x3b358b);break;}else _0x3b106d[_0x3db101(0x19c)](_0x3b358b);const _0x35f1aa=(_0x1094df=(_0x5425b5=_0x580424[_0x3db101(0x527)]())==null?void 0x0:_0x5425b5[_0x3db101(0x214)])!=null?_0x1094df:_0x3db101(0x5ca),_0xdb17ee=(_0x1ad435=(_0x5020e1=_0x580424[_0x3db101(0x527)]())==null?void 0x0:_0x5020e1[_0x3db101(0x264)])!=null?_0x1ad435:_0x3db101(0x5ca);return{'changeset':{'unitID':_0x5708e5,'type':S[_0x3db101(0x406)](_0x460aec[_0x3db101(0x1ba)](_0x5708e5)),'baseRev':_0x1b024e[_0x3db101(0x583)](_0x5708e5),'revision':0x0,'userID':_0x35f1aa,'memberID':_0xdb17ee,'mutations':_0x3b106d},'pendingMutations':_0x2ae23c[_0x3db101(0x31f)](_0x3b106d['length'])};}function xi(_0x3a3f1a,_0x29fb94,_0x3dc920,_0x25ccf5,_0x3a9f03){const _0x321795=_0x1f2fa;var _0x409a78,_0x263091,_0x4ef937,_0x55499b;const _0x4d21e2=[_0x3a3f1a[_0x321795(0x1cf)]((_0x463bf5,_0x339251)=>{const _0x166848=_0x321795;var _0x2c2f7e;const {id:_0x4e8228}=_0x463bf5,{id:_0xc29b10,type:_0x4d8ea8}=_0x339251,_0x3719fe=(_0x2c2f7e=_0x463bf5[_0x166848(0x389)])!=null?_0x2c2f7e:{'actions':null},_0x527048=_0x339251[_0x166848(0x389)];if(_0x4e8228&&_0x4e8228!==_0xc29b10)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x4e8228+_0x166848(0x16a)+_0xc29b10+'.');return{..._0x463bf5,'id':_0xc29b10,'type':_0x4d8ea8,'params':{'unitId':_0x527048[_0x166848(0x4e3)],'textRanges':_0x527048[_0x166848(0x30e)],'actions':a[_0x166848(0x594)][_0x166848(0x1e1)](_0x3719fe['actions'],_0x527048[_0x166848(0x331)])}};},{})],_0x48537b=(_0x263091=(_0x409a78=_0x3a9f03['getCurrentUser']())==null?void 0x0:_0x409a78['userID'])!=null?_0x263091:_0x321795(0x5ca),_0x3bbdeb=(_0x55499b=(_0x4ef937=_0x3a9f03['getCurrentUser']())==null?void 0x0:_0x4ef937[_0x321795(0x264)])!=null?_0x55499b:_0x321795(0x5ca);return{'changeset':{'unitID':_0x29fb94,'type':S[_0x321795(0x406)](_0x3dc920[_0x321795(0x1ba)](_0x29fb94)),'baseRev':_0x25ccf5[_0x321795(0x583)](_0x29fb94),'revision':0x0,'userID':_0x48537b,'memberID':_0x3bbdeb,'mutations':_0x4d21e2},'pendingMutations':[]};}function fn(_0x41f8c7,_0x348843){const _0x2fc34e=_0x1f2fa,_0x5e4ee1=new A['ReplaySubject'](0x1);return setTimeout(()=>_0x5e4ee1[_0x2fc34e(0x497)](_0x348843),_0x41f8c7),_0x5e4ee1[_0x2fc34e(0x5de)]()[_0x2fc34e(0x5f2)](A[_0x2fc34e(0x300)](0x1));}const ji={'id':k[_0x1f2fa(0x340)]['id'],'type':a[_0x1f2fa(0x250)][_0x1f2fa(0x3b6)],'params':{}};var $i=Object[_0x1f2fa(0x4e5)],Hi=Object[_0x1f2fa(0x40d)],Ie=(_0x4d5773,_0x2e11e3,_0x182a1a,_0x352e0d)=>{const _0x16aacb=_0x1f2fa;for(var _0x1d047e=_0x352e0d>0x1?void 0x0:_0x352e0d?Hi(_0x2e11e3,_0x182a1a):_0x2e11e3,_0x1bc827=_0x4d5773[_0x16aacb(0x339)]-0x1,_0x57b46a;_0x1bc827>=0x0;_0x1bc827--)(_0x57b46a=_0x4d5773[_0x1bc827])&&(_0x1d047e=(_0x352e0d?_0x57b46a(_0x2e11e3,_0x182a1a,_0x1d047e):_0x57b46a(_0x1d047e))||_0x1d047e);return _0x352e0d&&_0x1d047e&&$i(_0x2e11e3,_0x182a1a,_0x1d047e),_0x1d047e;},N=(_0x3b6f7c,_0x43a030)=>(_0x15e57f,_0x148601)=>_0x43a030(_0x15e57f,_0x148601,_0x3b6f7c),q=(_0x2ec486=>(_0x2ec486['NOT_COLLAB']=_0x1f2fa(0x1a6),_0x2ec486[_0x1f2fa(0x4cc)]='synced',_0x2ec486['PENDING']=_0x1f2fa(0x593),_0x2ec486[_0x1f2fa(0x500)]='awaiting',_0x2ec486['AWAITING_WITH_PENDING']=_0x1f2fa(0x511),_0x2ec486[_0x1f2fa(0x2aa)]='fetch_missing',_0x2ec486[_0x1f2fa(0x2b5)]='conflict',_0x2ec486[_0x1f2fa(0x532)]=_0x1f2fa(0x45f),_0x2ec486))(q||{});const vn=0xea60;class Ce{constructor(_0x3b3884,_0x5bc4df,_0x2d3e2f,_0x5505b0,_0x3f6a74,_0x206a3f,_0x4f91a1,_0x40b9f0,_0x51d8af){const _0x30d80c=_0x1f2fa;I(this,'_awaitingChangeset',null),I(this,_0x30d80c(0x3d2),[]),(this[_0x30d80c(0x604)]=_0x3b3884,this[_0x30d80c(0x1eb)]=_0x5bc4df,this[_0x30d80c(0x529)]=_0x3f6a74,this[_0x30d80c(0x5ab)]=_0x206a3f,this['_undoRedoService']=_0x4f91a1,this[_0x30d80c(0x4cd)]=_0x40b9f0,this[_0x30d80c(0x346)]=_0x51d8af,this[_0x30d80c(0x49b)]=_0x2d3e2f,this[_0x30d80c(0x3d2)]=_0x5505b0);}['_checkMissing'](_0x39d6d8){const _0x365dd7=_0x1f2fa,_0x12f783=this[_0x365dd7(0x4cd)][_0x365dd7(0x583)](this[_0x365dd7(0x604)]);return _0x39d6d8[_0x365dd7(0x2e9)]>_0x12f783+0x1?(this[_0x365dd7(0x529)][_0x365dd7(0x591)]({'from':_0x12f783,'to':_0x39d6d8[_0x365dd7(0x2e9)]-0x1}),!0x0):!0x1;}[_0x1f2fa(0x598)](_0x31286c){const _0x2410ac=_0x1f2fa;this[_0x2410ac(0x4af)][_0x2410ac(0x3ec)](this['unitID'],_0x31286c);}[_0x1f2fa(0x21a)](_0x3e775c){const _0xeeb12c=_0x1f2fa;var _0x2ff6a2,_0x3cab74;(_0x3cab74=(_0x2ff6a2=this['_handler'])[_0xeeb12c(0x3e2)])==null||_0x3cab74[_0xeeb12c(0x575)](_0x2ff6a2,_0x3e775c);}[_0x1f2fa(0x2be)](_0x2d4f9c){const _0x22491f=_0x1f2fa;var _0x1fae8f,_0x382c2;return(_0x382c2=(_0x1fae8f=this[_0x22491f(0x529)])[_0x22491f(0x371)])==null?void 0x0:_0x382c2[_0x22491f(0x575)](_0x1fae8f,_0x2d4f9c);}[_0x1f2fa(0x17a)](_0x2f4a48){const _0x4e2d71=_0x1f2fa;var _0xedc6c3,_0xc378d4;return(_0xc378d4=(_0xedc6c3=this[_0x4e2d71(0x529)])[_0x4e2d71(0x5fa)])==null?void 0x0:_0xc378d4[_0x4e2d71(0x575)](_0xedc6c3,_0x2f4a48);}[_0x1f2fa(0x412)](_0x318d12){const _0x474c11=_0x1f2fa;var _0x30d63b,_0x2a170d,_0x4cd96d;return(_0x4cd96d=(_0x2a170d=(_0x30d63b=this[_0x474c11(0x529)])[_0x474c11(0x1c1)])==null?void 0x0:_0x2a170d[_0x474c11(0x575)](_0x30d63b,_0x318d12))!=null?_0x4cd96d:_0x318d12;}[_0x1f2fa(0x2ec)](_0x3f20e8){const _0x723b9f=_0x1f2fa;var _0x4dfb47,_0x2acb07,_0x39c6a1;return(_0x39c6a1=(_0x2acb07=(_0x4dfb47=this[_0x723b9f(0x529)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x2acb07[_0x723b9f(0x575)](_0x4dfb47,_0x3f20e8))!=null?_0x39c6a1:_0x3f20e8;}[_0x1f2fa(0x53a)](_0x2fe249){const _0x445ad2=_0x1f2fa;var _0x55f6e6,_0x494d37;if(this['type']===ie[_0x445ad2(0x505)]){const {unitID:_0x2d444f,mutations:_0x59ce6d,memberID:_0x130b6d}=_0x2fe249,_0x3fcce7=_0x59ce6d[0x0][_0x445ad2(0x389)]['textRanges'];Array['isArray'](_0x3fcce7)&&_0x3fcce7[_0x445ad2(0x339)]>0x0&&((_0x494d37=(_0x55f6e6=this[_0x445ad2(0x529)])['onSyncEditingCollabCursor'])==null||_0x494d37[_0x445ad2(0x575)](_0x55f6e6,{'unitID':_0x2d444f,'memberID':_0x130b6d,'textRanges':_0x3fcce7}));}}[_0x1f2fa(0x23a)](){const _0x4274c5=_0x1f2fa;this[_0x4274c5(0x346)][_0x4274c5(0x2b1)](this[_0x4274c5(0x604)],this[_0x4274c5(0x1eb)],this['_awaitingChangeset'],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x29875d=_0x1f2fa;return this[_0x29875d(0x4cd)]['getCurrentRevOfUnit'](this[_0x29875d(0x604)]);}[_0x1f2fa(0x2ad)](){const _0x4fc414=_0x1f2fa;this[_0x4fc414(0x4cd)][_0x4fc414(0x3bb)](this[_0x4fc414(0x604)]);}[_0x1f2fa(0x443)](_0x259809){const _0x1b3149=_0x1f2fa;var _0x12033d;let _0x564427=this[_0x1b3149(0x412)](_0x259809);_0x564427=this['_transformRemoteChangesetByStateCache'](_0x564427);const _0xb25b5f=a[_0x1b3149(0x25a)](_0x564427[_0x1b3149(0x456)],this[_0x1b3149(0x5ab)],{'fromCollab':!0x0});if(!_0xb25b5f['result'])throw _0xb25b5f[_0x1b3149(0x2d0)]instanceof Error?_0xb25b5f['error']:new Error((_0x12033d=_0xb25b5f[_0x1b3149(0x2d0)])!=null?_0x12033d:_0x1b3149(0x457));this['_transformIMECache'](_0x564427),this['_transformStateCache'](_0x564427),this['_transformUndoredo'](_0x259809),this[_0x1b3149(0x21a)](_0x564427),this[_0x1b3149(0x53a)](_0x564427),this[_0x1b3149(0x2ad)]();}}let Oe=class extends Ce{constructor(_0x546906,_0x5f5a2a,_0x53ad2f,_0x33e928,_0x56facf,_0x52a0a5,_0x269788,_0x5f4c56,_0xe41b57,_0x5e4d46){const _0x13f502=_0x1f2fa;super(_0x546906,_0x5f5a2a,null,[],_0x53ad2f,_0x5f4c56,_0x269788,_0x33e928,_0x56facf),I(this,_0x13f502(0x286),_0x13f502(0x382)),(this[_0x13f502(0x2f7)]=_0x52a0a5,this[_0x13f502(0x1d8)]=_0xe41b57,this[_0x13f502(0x5ce)]=_0x5e4d46);}[_0x1f2fa(0x4b2)](_0x391f8b){const _0x46f840=_0x1f2fa,_0x333a84=this['_injector'][_0x46f840(0x33e)](ce,this[_0x46f840(0x604)],this[_0x46f840(0x1eb)],[_0x391f8b],this[_0x46f840(0x529)]);return _0x333a84[_0x46f840(0x5e0)](),_0x333a84[_0x46f840(0x23a)](),_0x333a84;}[_0x1f2fa(0x5c5)](_0x3668da){const _0x3906b5=_0x1f2fa;if(this[_0x3906b5(0x25f)](_0x3668da))return this[_0x3906b5(0x2f7)][_0x3906b5(0x33e)](re,this[_0x3906b5(0x604)],this[_0x3906b5(0x1eb)],null,[],null,[_0x3668da],this[_0x3906b5(0x529)]);try{const _0x2010dc=this[_0x3906b5(0x5ce)][_0x3906b5(0x403)](_0x3668da,[ji]);if(S['isTransformMutationsWithChangesetSuccess'](_0x2010dc)){const {c1Prime:_0xa856f}=_0x2010dc;return this[_0x3906b5(0x443)](_0xa856f),this;}throw _0x2010dc[_0x3906b5(0x2d0)];}catch(_0x1507a6){return this[_0x3906b5(0x1d8)]['error'](_0x1507a6),this[_0x3906b5(0x52e)](!0x1);}}[_0x1f2fa(0x52e)](_0x27a5a3){const _0x146ea6=_0x1f2fa;return this[_0x146ea6(0x2f7)][_0x146ea6(0x33e)](ve,this['unitID'],this['type'],null,[],this[_0x146ea6(0x529)],_0x27a5a3);}[_0x1f2fa(0x478)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x1f2fa(0x4ab)](){const _0x509fcf=_0x1f2fa;throw new Error(_0x509fcf(0x543));}[_0x1f2fa(0x58a)](){return this;}[_0x1f2fa(0x54f)](){const _0x34e46a=_0x1f2fa;return this[_0x34e46a(0x2f7)][_0x34e46a(0x33e)](me,this['unitID'],this[_0x34e46a(0x1eb)],null,[],this[_0x34e46a(0x529)]);}['toggleOnline'](){return this;}[_0x1f2fa(0x322)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f2fa(0x24f)](){const _0x4dc411=_0x1f2fa,_0x16a321=this[_0x4dc411(0x4cd)][_0x4dc411(0x583)](this[_0x4dc411(0x604)]);return this['_handler'][_0x4dc411(0x591)]({'from':_0x16a321,'to':0x0}),this['_injector'][_0x4dc411(0x33e)](re,this['unitID'],this[_0x4dc411(0x1eb)],null,[],null,[],this['_handler']);}};Oe=Ie([N(0x3,a['Inject'](S['RevisionService'])),N(0x4,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x333)])),N(0x5,a[_0x1f2fa(0x28d)](a['Injector'])),N(0x6,a[_0x1f2fa(0x2fa)]),N(0x7,a[_0x1f2fa(0x51f)]),N(0x8,a[_0x1f2fa(0x1af)]),N(0x9,S['ITransformService'])],Oe);let ce=class extends Ce{constructor(_0x3ca64b,_0xf33e32,_0x1f319b,_0x2c5945,_0x4615fa,_0x41373e,_0x471fc6,_0x37d75e,_0xa0a6b1,_0x45330e,_0x14fe25,_0x33970b,_0x43764d,_0x35a397){const _0x1075a0=_0x1f2fa;super(_0x3ca64b,_0xf33e32,null,_0x1f319b,_0x2c5945,_0x45330e,_0x35a397,_0x41373e,_0x471fc6),I(this,_0x1075a0(0x286),'pending'),I(this,'_scheduleTimestamp',null),I(this,_0x1075a0(0x555),null),(this[_0x1075a0(0x2f7)]=_0x4615fa,this[_0x1075a0(0x4bd)]=_0x37d75e,this[_0x1075a0(0x1d8)]=_0xa0a6b1,this['_configService']=_0x14fe25,this[_0x1075a0(0x5ce)]=_0x33970b,this['_univerInstanceService']=_0x43764d);}[_0x1f2fa(0x4b2)](_0x43d4bb){const _0x34d3dd=_0x1f2fa;return this[_0x34d3dd(0x3d2)]['push'](_0x43d4bb),this[_0x34d3dd(0x23a)](),this;}['onRemoteChangeset'](_0x1d5532){const _0x1ff77c=_0x1f2fa;if(this[_0x1ff77c(0x25f)](_0x1d5532))return this[_0x1ff77c(0x15f)](),this[_0x1ff77c(0x2f7)][_0x1ff77c(0x33e)](re,this[_0x1ff77c(0x604)],this['type'],null,this[_0x1ff77c(0x3d2)],null,[_0x1d5532],this['_handler']);try{const _0x19d1e1=this['_transformService'][_0x1ff77c(0x403)](_0x1d5532,this[_0x1ff77c(0x3d2)]);if(S[_0x1ff77c(0x605)](_0x19d1e1)){const {c1Prime:_0x421710,m2Prime:_0x2704ff}=_0x19d1e1;this[_0x1ff77c(0x443)](_0x421710);const _0x1dbdaa=this[_0x1ff77c(0x2f7)][_0x1ff77c(0x33e)](ce,this['unitID'],this[_0x1ff77c(0x1eb)],_0x2704ff,this[_0x1ff77c(0x529)]);return this['_clearScheduledTask'](),_0x1dbdaa[_0x1ff77c(0x5e0)](this[_0x1ff77c(0x184)]?Math[_0x1ff77c(0x4ce)](0x0,new Date()['getTime']()-this[_0x1ff77c(0x184)]):this['_getSendChangesetTimeout']()),_0x1dbdaa;}throw _0x19d1e1[_0x1ff77c(0x2d0)];}catch(_0x3e17e1){return this['_logService'][_0x1ff77c(0x2d0)](_0x3e17e1),this[_0x1ff77c(0x52e)](!0x1);}}[_0x1f2fa(0x478)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x1f2fa(0x4ab)](){const _0x308bbf=_0x1f2fa;throw new Error(_0x308bbf(0x4c6));}['onRemoteRetry'](){return this;}[_0x1f2fa(0x54f)](){const _0x2bdc61=_0x1f2fa;return this[_0x2bdc61(0x15f)](),this[_0x2bdc61(0x2f7)][_0x2bdc61(0x33e)](me,this[_0x2bdc61(0x604)],this[_0x2bdc61(0x1eb)],null,this['_pendingMutations'],this[_0x2bdc61(0x529)]);}[_0x1f2fa(0x4b9)](){return this;}[_0x1f2fa(0x5e0)](_0x510c7c){const _0x4b0522=_0x1f2fa,_0x323899=_0x510c7c!=null?_0x510c7c:this['_getSendChangesetTimeout']();this['_scheduleTimestamp']=new Date()[_0x4b0522(0x49a)](),this[_0x4b0522(0x555)]=window[_0x4b0522(0x4f7)](()=>{const _0xe0216a=_0x4b0522;this[_0xe0216a(0x15f)]();let _0x1f07f9=null;switch(this[_0xe0216a(0x1eb)]){case ie[_0xe0216a(0x4c3)]:{_0x1f07f9=jt(this[_0xe0216a(0x3d2)],this[_0xe0216a(0x604)],this[_0xe0216a(0x51c)],this[_0xe0216a(0x4cd)],this[_0xe0216a(0x4bd)]);break;}case ie[_0xe0216a(0x505)]:{this[_0xe0216a(0x3d2)]['every'](_0x3aedf4=>_0x3aedf4['id']===ye[_0xe0216a(0x2db)]['id'])?_0x1f07f9=xi(this['_pendingMutations'],this[_0xe0216a(0x604)],this[_0xe0216a(0x51c)],this['_revisionService'],this[_0xe0216a(0x4bd)]):_0x1f07f9=jt(this['_pendingMutations'],this[_0xe0216a(0x604)],this[_0xe0216a(0x51c)],this[_0xe0216a(0x4cd)],this[_0xe0216a(0x4bd)]);break;}default:throw new Error(_0xe0216a(0x470)+this[_0xe0216a(0x1eb)]+_0xe0216a(0x20f));}const {changeset:_0x5f2e2a,pendingMutations:_0x31de71}=_0x1f07f9;this['_handler'][_0xe0216a(0x170)](_0x5f2e2a);const _0x2bfca8=_0x31de71[_0xe0216a(0x339)]?this[_0xe0216a(0x2f7)]['createInstance'](le,this[_0xe0216a(0x604)],this['type'],_0x5f2e2a,_0x31de71,this[_0xe0216a(0x529)],void 0x0):this[_0xe0216a(0x2f7)]['createInstance'](fe,this[_0xe0216a(0x604)],this[_0xe0216a(0x1eb)],_0x5f2e2a,this[_0xe0216a(0x529)]);_0x2bfca8[_0xe0216a(0x23a)](),this['_handler'][_0xe0216a(0x4ae)](this,_0x2bfca8);},_0x323899);}[_0x1f2fa(0x4d7)](){const _0x1dccab=_0x1f2fa;var _0x313e73;const _0x60fd21=this[_0x1dccab(0x499)][_0x1dccab(0x546)](te);return(_0x313e73=_0x60fd21==null?void 0x0:_0x60fd21['sendChangesetTimeout'])!=null?_0x313e73:kn;}[_0x1f2fa(0x322)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x1634c8=_0x1f2fa;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1634c8(0x555)]),this[_0x1634c8(0x555)]=null);}[_0x1f2fa(0x52e)](_0x59c2df){const _0x25dca9=_0x1f2fa;return this['_clearScheduledTask'](),this[_0x25dca9(0x2f7)][_0x25dca9(0x33e)](ve,this[_0x25dca9(0x604)],this[_0x25dca9(0x1eb)],null,this[_0x25dca9(0x3d2)],this[_0x25dca9(0x529)],_0x59c2df);}};ce=Ie([N(0x4,a[_0x1f2fa(0x28d)](a['Injector'])),N(0x5,a['Inject'](S[_0x1f2fa(0x5bc)])),N(0x6,a['Inject'](exports[_0x1f2fa(0x333)])),N(0x7,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x3d8)])),N(0x8,a[_0x1f2fa(0x1af)]),N(0x9,a['ICommandService']),N(0xa,a[_0x1f2fa(0x1b0)]),N(0xb,S['ITransformService']),N(0xc,a[_0x1f2fa(0x562)]),N(0xd,a[_0x1f2fa(0x2fa)])],ce);let fe=class extends Ce{constructor(_0x29c8bc,_0x4aa3e3,_0x122400,_0x52722b,_0x544fe8,_0x5afa49,_0x4b0762,_0x28f912,_0x451987,_0x6b0911,_0x1566c4){const _0x2be14f=_0x1f2fa;super(_0x29c8bc,_0x4aa3e3,_0x122400,[],_0x52722b,_0x28f912,_0x1566c4,_0x5afa49,_0x4b0762),I(this,'status',_0x2be14f(0x45a)),I(this,_0x2be14f(0x3a1),0x0),I(this,'_resendTimer'),I(this,_0x2be14f(0x513)),(this[_0x2be14f(0x2f7)]=_0x544fe8,this[_0x2be14f(0x1d8)]=_0x451987,this[_0x2be14f(0x5ce)]=_0x6b0911);}[_0x1f2fa(0x4b2)](_0x457565){const _0x4418c2=_0x1f2fa;this['_clearScheduledTask']();const _0x312909=this[_0x4418c2(0x2f7)]['createInstance'](le,this[_0x4418c2(0x604)],this[_0x4418c2(0x1eb)],this['_awaitingChangeset'],[_0x457565],this['_handler'],this[_0x4418c2(0x557)]);return _0x312909[_0x4418c2(0x23a)](),_0x312909;}['onRemoteChangeset'](_0x6f8314){const _0x3a6074=_0x1f2fa;if(this[_0x3a6074(0x25f)](_0x6f8314))return this[_0x3a6074(0x15f)](),this[_0x3a6074(0x2f7)]['createInstance'](re,this[_0x3a6074(0x604)],this[_0x3a6074(0x1eb)],this[_0x3a6074(0x49b)],[],null,[_0x6f8314],this['_handler']);try{const _0x5f320d=this[_0x3a6074(0x5ce)][_0x3a6074(0x4b4)]([_0x6f8314],[this[_0x3a6074(0x49b)]],!0x1);if(S[_0x3a6074(0x15a)](_0x5f320d)){const {c1Prime:_0xa50f4c,c2Prime:_0x52f6f0}=_0x5f320d;this['_executeRemoteChangeset'](_0xa50f4c[0x0]),_0x52f6f0[0x0][_0x3a6074(0x3c0)]=this[_0x3a6074(0x5f3)](),this[_0x3a6074(0x15f)]();const _0x274c05=this['_injector'][_0x3a6074(0x33e)](fe,this[_0x3a6074(0x604)],this[_0x3a6074(0x1eb)],_0x52f6f0[0x0],this['_handler']);return _0x274c05[_0x3a6074(0x23a)](),_0x274c05;}return this[_0x3a6074(0x52e)](!0x1);}catch(_0x406900){return this[_0x3a6074(0x1d8)][_0x3a6074(0x2d0)](_0x406900),this['_onConflict'](!0x1);}}[_0x1f2fa(0x478)](_0x4e1574){const _0x5a1ca1=_0x1f2fa;this[_0x5a1ca1(0x15f)]();const _0x54ec01=this[_0x5a1ca1(0x4cd)][_0x5a1ca1(0x583)](this[_0x5a1ca1(0x604)]);if(_0x4e1574[_0x5a1ca1(0x2e9)]<_0x54ec01-0x1)return this;if(this['_checkMissing'](_0x4e1574))return this[_0x5a1ca1(0x2f7)][_0x5a1ca1(0x33e)](re,this[_0x5a1ca1(0x604)],this[_0x5a1ca1(0x1eb)],null,[],this[_0x5a1ca1(0x49b)],[],this[_0x5a1ca1(0x529)]);this['_incrementRevisionNumber']();const _0x20dacf=this[_0x5a1ca1(0x2f7)][_0x5a1ca1(0x33e)](Oe,this[_0x5a1ca1(0x604)],this[_0x5a1ca1(0x1eb)],this[_0x5a1ca1(0x529)]);return _0x20dacf[_0x5a1ca1(0x23a)](),_0x20dacf;}[_0x1f2fa(0x4ab)](_0x391075){const _0xe1da6b=_0x1f2fa;return this['_onConflict'](!!(_0x391075!=null&&_0x391075[_0xe1da6b(0x242)]));}[_0x1f2fa(0x58a)](_0x394b46){const _0x5de6c4=_0x1f2fa;return this[_0x5de6c4(0x3a1)]>vn?this[_0x5de6c4(0x54f)]():(this[_0x5de6c4(0x557)]=fn(this['_resendTimeout'],{'timeout':this[_0x5de6c4(0x3a1)],'reqId':_0x394b46['reqId']}),this[_0x5de6c4(0x513)]=this[_0x5de6c4(0x557)][_0x5de6c4(0x25e)](({reqId:_0x1bdf0d,timeout:_0x3c4299})=>{const _0xebf8f5=_0x5de6c4;this[_0xebf8f5(0x20a)](_0x1bdf0d,_0x3c4299);}),this);}['toggleOffline'](){const _0x1b9380=_0x1f2fa;return this[_0x1b9380(0x15f)](),this[_0x1b9380(0x2f7)][_0x1b9380(0x33e)](me,this[_0x1b9380(0x604)],this[_0x1b9380(0x1eb)],this['_awaitingChangeset'],[],this['_handler']);}[_0x1f2fa(0x4b9)](){return this;}[_0x1f2fa(0x322)](){const _0x5f048c=_0x1f2fa;this['_handler'][_0x5f048c(0x170)](this[_0x5f048c(0x49b)]);}[_0x1f2fa(0x52e)](_0x4d8421){const _0xaa2358=_0x1f2fa;return this['_clearScheduledTask'](),this[_0xaa2358(0x2f7)][_0xaa2358(0x33e)](ve,this[_0xaa2358(0x604)],this[_0xaa2358(0x1eb)],this[_0xaa2358(0x49b)],[],this[_0xaa2358(0x529)],_0x4d8421);}[_0x1f2fa(0x20a)](_0x900314,_0x2c94cc){const _0x4e933d=_0x1f2fa;var _0x3fa740;_0x900314===((_0x3fa740=this[_0x4e933d(0x49b)])==null?void 0x0:_0x3fa740[_0x4e933d(0x4d4)])&&(this['resend'](),this['_resendTimeout']=_0x2c94cc===0x0?0x3e8:_0x2c94cc*0x2);}['_clearScheduledTask'](){const _0xe2bdf2=_0x1f2fa;var _0x324166;(_0x324166=this[_0xe2bdf2(0x513)])==null||_0x324166[_0xe2bdf2(0x484)](),this[_0xe2bdf2(0x3a1)]=0x0;}};fe=Ie([N(0x4,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),N(0x5,a['Inject'](S[_0x1f2fa(0x5bc)])),N(0x6,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x333)])),N(0x7,a[_0x1f2fa(0x51f)]),N(0x8,a[_0x1f2fa(0x1af)]),N(0x9,S[_0x1f2fa(0x3ff)]),N(0xa,a['IUndoRedoService'])],fe);let le=class extends Ce{constructor(_0x57ec05,_0x3f8d17,_0x515740,_0x4c48f0,_0x4020d9,_0x3249b7,_0x34b34c,_0x184175,_0x3dfbaa,_0x3feafc,_0x448192,_0x215daf,_0x586cea){const _0x1c526f=_0x1f2fa;super(_0x57ec05,_0x3f8d17,_0x515740,_0x4c48f0,_0x4020d9,_0x3feafc,_0x586cea,_0x184175,_0x3dfbaa),I(this,_0x1c526f(0x286),'awaiting_with_pending'),I(this,_0x1c526f(0x3a1),0x0),I(this,_0x1c526f(0x557)),I(this,_0x1c526f(0x513)),(this[_0x1c526f(0x2f7)]=_0x34b34c,this[_0x1c526f(0x1d8)]=_0x448192,this[_0x1c526f(0x5ce)]=_0x215daf,_0x3249b7&&(this[_0x1c526f(0x557)]=_0x3249b7,this[_0x1c526f(0x513)]=this[_0x1c526f(0x557)][_0x1c526f(0x25e)](({reqId:_0x20a86b,timeout:_0x4a54f1})=>{this['_resendWithTimeout'](_0x20a86b,_0x4a54f1);})));}['appendMutation'](_0x3415a7){const _0x2f1b56=_0x1f2fa;return this['_pendingMutations'][_0x2f1b56(0x19c)](_0x3415a7),this;}[_0x1f2fa(0x5c5)](_0x48906f){const _0x37f039=_0x1f2fa;if(this[_0x37f039(0x25f)](_0x48906f))return this[_0x37f039(0x15f)](),this[_0x37f039(0x2f7)][_0x37f039(0x33e)](re,this[_0x37f039(0x604)],this[_0x37f039(0x1eb)],this[_0x37f039(0x49b)],this[_0x37f039(0x3d2)],null,[_0x48906f],this['_handler']);try{const _0x6bc47=this[_0x37f039(0x5ce)][_0x37f039(0x4b4)]([_0x48906f],[this[_0x37f039(0x49b)]],!0x1);if(S[_0x37f039(0x15a)](_0x6bc47)){const {c1Prime:_0x50368b,c2Prime:_0x3c3a0c}=_0x6bc47,_0xab70c7=this[_0x37f039(0x5ce)]['transformMutationsWithChangeset'](_0x50368b[0x0],this['_pendingMutations']);if(S[_0x37f039(0x605)](_0xab70c7)){const {c1Prime:_0x5b2a69,m2Prime:_0x168d91}=_0xab70c7;return this[_0x37f039(0x443)](_0x5b2a69),_0x3c3a0c[0x0][_0x37f039(0x3c0)]=this['_getCurrentRevision'](),this[_0x37f039(0x15f)](),this['_injector'][_0x37f039(0x33e)](le,this[_0x37f039(0x604)],this[_0x37f039(0x1eb)],_0x3c3a0c[0x0],_0x168d91,this[_0x37f039(0x529)],void 0x0);}throw _0xab70c7[_0x37f039(0x2d0)];}throw _0x6bc47['error'];}catch(_0xa315c7){return this['_logService'][_0x37f039(0x2d0)](_0xa315c7),this[_0x37f039(0x52e)](!0x1);}}[_0x1f2fa(0x478)](_0x2ff005){const _0x1689a4=_0x1f2fa;if(this[_0x1689a4(0x15f)](),this[_0x1689a4(0x25f)](_0x2ff005))return this[_0x1689a4(0x2f7)][_0x1689a4(0x33e)](re,this['unitID'],this[_0x1689a4(0x1eb)],null,this[_0x1689a4(0x3d2)],this[_0x1689a4(0x49b)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x5c07d9=this[_0x1689a4(0x2f7)][_0x1689a4(0x33e)](ce,this[_0x1689a4(0x604)],this['type'],this['_pendingMutations'],this['_handler']);return _0x5c07d9[_0x1689a4(0x5e0)](),_0x5c07d9[_0x1689a4(0x23a)](),_0x5c07d9;}[_0x1f2fa(0x4ab)](_0x5c29ab){const _0x29fd12=_0x1f2fa;return this[_0x29fd12(0x52e)](!!(_0x5c29ab!=null&&_0x5c29ab[_0x29fd12(0x242)]));}[_0x1f2fa(0x58a)](_0x2809b8){const _0x562ccb=_0x1f2fa;return this[_0x562ccb(0x3a1)]>vn?this[_0x562ccb(0x54f)]():(this[_0x562ccb(0x557)]=fn(this[_0x562ccb(0x3a1)],{'timeout':this['_resendTimeout'],'reqId':_0x2809b8[_0x562ccb(0x4d4)]}),this['_sender']=this['_resendTimer']['subscribe'](({reqId:_0x1dd910,timeout:_0x987bd0})=>{const _0x5a0d1b=_0x562ccb;this[_0x5a0d1b(0x20a)](_0x1dd910,_0x987bd0);}),this);}[_0x1f2fa(0x54f)](){const _0x2ddd08=_0x1f2fa;return this[_0x2ddd08(0x15f)](),this[_0x2ddd08(0x2f7)][_0x2ddd08(0x33e)](me,this[_0x2ddd08(0x604)],this[_0x2ddd08(0x1eb)],this[_0x2ddd08(0x49b)],this[_0x2ddd08(0x3d2)],this['_handler']);}[_0x1f2fa(0x4b9)](){return this;}[_0x1f2fa(0x322)](){const _0x523ceb=_0x1f2fa;this[_0x523ceb(0x529)]['onSendChangeset'](this[_0x523ceb(0x49b)]);}[_0x1f2fa(0x52e)](_0x13f4ab){const _0x5965a7=_0x1f2fa;return this['_clearScheduledTask'](),this[_0x5965a7(0x2f7)]['createInstance'](ve,this[_0x5965a7(0x604)],this[_0x5965a7(0x1eb)],null,this['_pendingMutations'],this['_handler'],_0x13f4ab);}[_0x1f2fa(0x20a)](_0x3a7423,_0x23aa67){const _0xb558f0=_0x1f2fa;var _0x4c3fb5;_0x3a7423===((_0x4c3fb5=this['_awaitingChangeset'])==null?void 0x0:_0x4c3fb5['reqId'])&&(this[_0xb558f0(0x322)](),this['_resendTimeout']=_0x23aa67===0x0?0x3e8:_0x23aa67*0x2);}[_0x1f2fa(0x15f)](){const _0x1c2066=_0x1f2fa;var _0xbf1719;(_0xbf1719=this[_0x1c2066(0x513)])==null||_0xbf1719['unsubscribe'](),this[_0x1c2066(0x3a1)]=0x0;}};le=Ie([N(0x6,a['Inject'](a[_0x1f2fa(0x35d)])),N(0x7,a[_0x1f2fa(0x28d)](S['RevisionService'])),N(0x8,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x333)])),N(0x9,a['ICommandService']),N(0xa,a[_0x1f2fa(0x1af)]),N(0xb,S[_0x1f2fa(0x3ff)]),N(0xc,a[_0x1f2fa(0x2fa)])],le);let ve=class extends Ce{constructor(_0x15ca50,_0x316327,_0x13f8b9,_0x501648,_0xb4d98b,_0x2ded50=!0x1,_0x8ae5f8,_0x523aa7,_0x23e68b,_0x40d12f,_0x305e12,_0x3afbc7,_0x35f904){const _0x3af9=_0x1f2fa;super(_0x15ca50,_0x316327,_0x13f8b9,_0x501648,_0xb4d98b,_0x523aa7,_0x23e68b,_0x305e12,_0x40d12f),I(this,_0x3af9(0x286),_0x3af9(0x39d)),(this[_0x3af9(0x1c5)]=_0x2ded50,this[_0x3af9(0x2c4)]=_0x8ae5f8,this['_localeService']=_0x3afbc7,this[_0x3af9(0x233)]=_0x35f904,this[_0x3af9(0x5a1)](),this[_0x3af9(0x4b5)](),this[_0x3af9(0x24e)]());}[_0x1f2fa(0x4b2)](){return this;}[_0x1f2fa(0x5c5)](){return this;}['onRemoteAck'](){return this;}[_0x1f2fa(0x4ab)](){return this;}['onRemoteRetry'](){return this;}[_0x1f2fa(0x54f)](){return this;}[_0x1f2fa(0x4b9)](){return this;}['resend'](){const _0x58f839=_0x1f2fa;throw new Error(_0x58f839(0x194));}['_clearLocalCache'](){const _0x31f3f9=_0x1f2fa;this['_localCacheService']['updateOfflineData'](this[_0x31f3f9(0x604)],this[_0x31f3f9(0x1eb)],null,[]);}[_0x1f2fa(0x5a1)](){const _0x4a555d=_0x1f2fa;this[_0x4a555d(0x1c5)]?this[_0x4a555d(0x233)]['show']({'title':this[_0x4a555d(0x247)]['t'](_0x4a555d(0x5ee)),'content':this[_0x4a555d(0x247)]['t'](_0x4a555d(0x251)),'type':'error','duration':0x0}):this[_0x4a555d(0x233)][_0x4a555d(0x472)]({'title':this['_localeService']['t'](_0x4a555d(0x3ac)),'content':this[_0x4a555d(0x247)]['t']('conflict.content'),'type':_0x4a555d(0x2d0),'duration':0x0});}[_0x1f2fa(0x24e)](){const _0x4da6b1=_0x1f2fa;this[_0x4da6b1(0x2c4)][_0x4da6b1(0x4db)](new k[(_0x4da6b1(0x3ce))](this[_0x4da6b1(0x604)])['id'],!0x1);}};ve=Ie([N(0x6,a['Inject'](a['IPermissionService'])),N(0x7,a[_0x1f2fa(0x51f)]),N(0x8,a[_0x1f2fa(0x2fa)]),N(0x9,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x333)])),N(0xa,a[_0x1f2fa(0x28d)](S[_0x1f2fa(0x5bc)])),N(0xb,a['Inject'](a['LocaleService'])),N(0xc,ee[_0x1f2fa(0x266)])],ve);let me=class extends Ce{constructor(_0x41cffd,_0x461def,_0x166ce6,_0x4f2c45,_0x23e810,_0x3d12c8,_0x5cf47f,_0x5589ac,_0x71c87d,_0x55aa24){const _0x35d805=_0x1f2fa;super(_0x41cffd,_0x461def,_0x166ce6,_0x4f2c45,_0x23e810,_0x71c87d,_0x55aa24,_0x5cf47f,_0x5589ac),I(this,'status',_0x35d805(0x45f)),this['_injector']=_0x3d12c8;}[_0x1f2fa(0x4b2)](_0x7e2b85){const _0x26bd81=_0x1f2fa;return this[_0x26bd81(0x3d2)][_0x26bd81(0x19c)](_0x7e2b85),this[_0x26bd81(0x23a)](),this;}[_0x1f2fa(0x5c5)](_0x29ba36){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x1f2fa(0x478)](){const _0x17ee9a=_0x1f2fa;throw new Error(_0x17ee9a(0x5dd));}[_0x1f2fa(0x4ab)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x1f2fa(0x54f)](){return this;}['toggleOnline'](){const _0x4a6229=_0x1f2fa,{_injector:_0x43e517,_pendingMutations:_0x1d446b,_awaitingChangeset:_0x3d58e9,unitID:_0x54ed4f,_handler:_0xc4aab9,type:_0x1e15e1}=this,_0x2abf42=mn(_0x43e517,_0x54ed4f,_0x1e15e1,_0x3d58e9,_0x1d446b,_0xc4aab9);return _0x2abf42 instanceof ce?_0x2abf42[_0x4a6229(0x5e0)]():(_0x2abf42 instanceof le||_0x2abf42 instanceof fe)&&_0x2abf42[_0x4a6229(0x322)](),_0x2abf42;}[_0x1f2fa(0x322)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};me=Ie([N(0x5,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),N(0x6,a[_0x1f2fa(0x28d)](S['RevisionService'])),N(0x7,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x333)])),N(0x8,a[_0x1f2fa(0x51f)]),N(0x9,a[_0x1f2fa(0x2fa)])],me);let re=class extends Ce{constructor(_0x4f3b41,_0x434241,_0x5aab45,_0x4cbd9b,_0x549143,_0x5dc92f,_0x340175,_0xff6052,_0x53896f,_0x8eab5e,_0xbe4772,_0x5b7e21,_0x2419f4,_0x415603){const _0x64e08=_0x1f2fa;super(_0x4f3b41,_0x434241,_0x5aab45,_0x4cbd9b,_0x340175,_0x5b7e21,_0x2419f4,_0x53896f,_0x8eab5e),I(this,_0x64e08(0x286),'fetch_missing'),(this[_0x64e08(0x57e)]=_0x549143,this['_queuedRemoteChangesets']=_0x5dc92f,this[_0x64e08(0x2f7)]=_0xff6052,this[_0x64e08(0x1d8)]=_0xbe4772,this['_transformService']=_0x415603);}[_0x1f2fa(0x3de)](_0x5117dd){const _0x2fa48c=_0x1f2fa;try{const _0xa943cc=[..._0x5117dd,...this[_0x2fa48c(0x409)]],_0x4d64c1=[this['_awaitingChangeset']||this[_0x2fa48c(0x57e)]][_0x2fa48c(0x3db)](_0x4dcbef=>!!_0x4dcbef);let _0x1ea989,_0x3474a1;if(_0x4d64c1[_0x2fa48c(0x339)]){const _0x3ba157=this[_0x2fa48c(0x5ce)][_0x2fa48c(0x4b4)](_0xa943cc,_0x4d64c1,!0x1);if(!S[_0x2fa48c(0x15a)](_0x3ba157))throw _0x3ba157['error'];_0x1ea989=_0x3ba157['c1Prime'],_0x3474a1=_0x3ba157[_0x2fa48c(0x3bc)];}else _0x1ea989=_0xa943cc,_0x3474a1=[];let _0x195224=this[_0x2fa48c(0x3d2)];_0x1ea989[_0x2fa48c(0x601)](_0x1afdb1=>{const _0x333ba=_0x2fa48c;let _0x6153c5;if(_0x195224[_0x333ba(0x339)]){const _0x5889b3=this[_0x333ba(0x5ce)][_0x333ba(0x403)](_0x1afdb1,_0x195224);if(!S[_0x333ba(0x605)](_0x5889b3))throw _0x5889b3[_0x333ba(0x2d0)];_0x6153c5=_0x5889b3[_0x333ba(0x448)],_0x195224=_0x5889b3[_0x333ba(0x26e)];}else _0x6153c5=_0x1afdb1;this['_executeRemoteChangeset'](_0x6153c5);}),this['_acknowledgedAwaitingChangeset']&&this[_0x2fa48c(0x2ad)](),this['_awaitingChangeset']&&_0x3474a1[_0x2fa48c(0x339)]&&(_0x3474a1[0x0]['baseRev']=this[_0x2fa48c(0x5f3)]());let _0x36c234;if(this[_0x2fa48c(0x49b)]&&_0x195224[_0x2fa48c(0x339)]!==0x0)_0x36c234=this[_0x2fa48c(0x2f7)][_0x2fa48c(0x33e)](le,this[_0x2fa48c(0x604)],this[_0x2fa48c(0x1eb)],_0x3474a1[0x0],_0x195224,this[_0x2fa48c(0x529)],void 0x0);else{if(this[_0x2fa48c(0x49b)]&&_0x195224[_0x2fa48c(0x339)]===0x0)_0x3474a1[0x0][_0x2fa48c(0x3c0)]=this['_getCurrentRevision'](),_0x36c234=this['_injector'][_0x2fa48c(0x33e)](fe,this[_0x2fa48c(0x604)],this[_0x2fa48c(0x1eb)],_0x3474a1[0x0],this[_0x2fa48c(0x529)]);else{if(_0x195224['length']!==0x0){const _0x425757=this[_0x2fa48c(0x2f7)][_0x2fa48c(0x33e)](ce,this[_0x2fa48c(0x604)],this[_0x2fa48c(0x1eb)],_0x195224,this[_0x2fa48c(0x529)]);_0x425757[_0x2fa48c(0x5e0)](),_0x36c234=_0x425757;}else _0x36c234=this[_0x2fa48c(0x2f7)][_0x2fa48c(0x33e)](Oe,this[_0x2fa48c(0x604)],this[_0x2fa48c(0x1eb)],this[_0x2fa48c(0x529)]);}}return _0x36c234[_0x2fa48c(0x23a)](),_0x36c234;}catch(_0x13abf4){return this[_0x2fa48c(0x1d8)][_0x2fa48c(0x2d0)](_0x2fa48c(0x53f),'failed\x20to\x20apply\x20missed\x20changesets!',_0x13abf4),this[_0x2fa48c(0x2f7)][_0x2fa48c(0x33e)](ve,this['unitID'],this[_0x2fa48c(0x1eb)],this[_0x2fa48c(0x49b)],this['_pendingMutations'],this['_handler'],!0x1);}}[_0x1f2fa(0x322)](){const _0x1457dd=_0x1f2fa;throw new Error(_0x1457dd(0x1d4));}['appendMutation'](_0x137629){const _0x2cdd2c=_0x1f2fa;return this[_0x2cdd2c(0x3d2)][_0x2cdd2c(0x19c)](_0x137629),this;}[_0x1f2fa(0x5c5)](_0x48add4){const _0x11edc9=_0x1f2fa;return this['_queuedRemoteChangesets'][_0x11edc9(0x19c)](_0x48add4),this;}[_0x1f2fa(0x478)](_0x239e9a){const _0x10eb08=_0x1f2fa;if(this[_0x10eb08(0x49b)])return this['_acknowledgedAwaitingChangeset']=this[_0x10eb08(0x49b)],this[_0x10eb08(0x49b)]=null,this;throw new Error(_0x10eb08(0x172));}[_0x1f2fa(0x4ab)](_0x1bcb18){const _0x8884e6=_0x1f2fa;return this[_0x8884e6(0x52e)](!!(_0x1bcb18!=null&&_0x1bcb18['isPermissionRej']));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x1e0521=_0x1f2fa;return this[_0x1e0521(0x2f7)][_0x1e0521(0x33e)](me,this[_0x1e0521(0x604)],this[_0x1e0521(0x1eb)],this[_0x1e0521(0x49b)],this[_0x1e0521(0x3d2)],this[_0x1e0521(0x529)]);}[_0x1f2fa(0x4b9)](){return this;}[_0x1f2fa(0x52e)](_0x5c4aa7){const _0x59a024=_0x1f2fa;return this[_0x59a024(0x2f7)]['createInstance'](ve,this['unitID'],this[_0x59a024(0x1eb)],this[_0x59a024(0x49b)],this[_0x59a024(0x3d2)],this['_handler'],_0x5c4aa7);}};re=Ie([N(0x7,a['Inject'](a['Injector'])),N(0x8,a[_0x1f2fa(0x28d)](S[_0x1f2fa(0x5bc)])),N(0x9,a[_0x1f2fa(0x28d)](exports['LocalCacheService'])),N(0xa,a[_0x1f2fa(0x1af)]),N(0xb,a[_0x1f2fa(0x51f)]),N(0xc,a['IUndoRedoService']),N(0xd,S[_0x1f2fa(0x3ff)])],re);function mn(_0x120707,_0x53c2aa,_0x55cc31,_0xf9a39c,_0x35ce78,_0x3b57bd){const _0x24dedf=_0x1f2fa;return _0xf9a39c&&_0x35ce78[_0x24dedf(0x339)]?_0x120707[_0x24dedf(0x33e)](le,_0x53c2aa,_0x55cc31,_0xf9a39c,_0x35ce78,_0x3b57bd,void 0x0):_0xf9a39c?_0x120707['createInstance'](fe,_0x53c2aa,_0x55cc31,_0xf9a39c,_0x3b57bd):_0x35ce78[_0x24dedf(0x339)]?_0x120707['createInstance'](ce,_0x53c2aa,_0x55cc31,_0x35ce78,_0x3b57bd):_0x120707['createInstance'](Oe,_0x53c2aa,_0x55cc31,_0x3b57bd);}var Bi=Object[_0x1f2fa(0x4e5)],ki=Object[_0x1f2fa(0x40d)],yt=(_0x22aab9,_0x4bd316,_0x46159c,_0x29dd0f)=>{const _0xa7fe87=_0x1f2fa;for(var _0x249cb7=_0x29dd0f>0x1?void 0x0:_0x29dd0f?ki(_0x4bd316,_0x46159c):_0x4bd316,_0x4d277f=_0x22aab9[_0xa7fe87(0x339)]-0x1,_0x151a68;_0x4d277f>=0x0;_0x4d277f--)(_0x151a68=_0x22aab9[_0x4d277f])&&(_0x249cb7=(_0x29dd0f?_0x151a68(_0x4bd316,_0x46159c,_0x249cb7):_0x151a68(_0x249cb7))||_0x249cb7);return _0x29dd0f&&_0x249cb7&&Bi(_0x4bd316,_0x46159c,_0x249cb7),_0x249cb7;},H=(_0x3dc57c,_0x251c20)=>(_0x48c6f4,_0x545c1d)=>_0x251c20(_0x48c6f4,_0x545c1d,_0x3dc57c);exports['CollaborationEntity']=class extends a[_0x1f2fa(0x2bd)]{constructor(_0x4a58a1,_0x435da4,_0x356562,_0x1982b3,_0x1b806f,_0x3c97ab,_0xc816d9,_0x353369,_0x367d18,_0x2ce4e3,_0x1fd82f,_0xb67840,_0x598f8d){const _0x8aeae=_0x1f2fa;super(),I(this,_0x8aeae(0x37a),new A[(_0x8aeae(0x25c))](null)),I(this,'state$',this[_0x8aeae(0x37a)][_0x8aeae(0x5de)]()),I(this,'_state'),I(this,_0x8aeae(0x377),!0x1),I(this,_0x8aeae(0x570),''),I(this,_0x8aeae(0x47c),0x0),I(this,_0x8aeae(0x5d0),this[_0x8aeae(0x335)][_0x8aeae(0x5f2)](A[_0x8aeae(0x50e)](_0x8755a=>_0x8755a?_0x8755a['status']:q[_0x8aeae(0x532)]),A[_0x8aeae(0x35b)](0x1))),I(this,_0x8aeae(0x4df),!0x1),I(this,_0x8aeae(0x306),[]),(this[_0x8aeae(0x604)]=_0x4a58a1,this[_0x8aeae(0x4a7)]=_0x435da4,this['_type']=_0x356562,this[_0x8aeae(0x2f7)]=_0x1982b3,this[_0x8aeae(0x346)]=_0x1b806f,this['_compressMutationService']=_0x3c97ab,this[_0x8aeae(0x247)]=_0xc816d9,this[_0x8aeae(0x4cd)]=_0x353369,this['_logService']=_0x367d18,this['_commandService']=_0x2ce4e3,this[_0x8aeae(0x2a0)]=_0x1fd82f,this[_0x8aeae(0x2c4)]=_0xb67840,this[_0x8aeae(0x292)]=_0x598f8d);}get[_0x1f2fa(0x4f8)](){const _0x29e2bf=_0x1f2fa;return this[_0x29e2bf(0x3c4)];}async['init'](){const _0x1dde55=_0x1f2fa;if(this[_0x1dde55(0x4f8)])throw new Error(_0x1dde55(0x28a));await this['_init']();}[_0x1f2fa(0x481)](){const _0x2e460c=_0x1f2fa;return this['_collaborationPaused']=!0x0,a[_0x2e460c(0x5ad)](()=>{const _0x520cc7=_0x2e460c;this[_0x520cc7(0x377)]=!0x1,this[_0x520cc7(0x2f5)]();});}[_0x1f2fa(0x1ae)](_0x442002){const _0xc3c5bc=_0x1f2fa;this[_0xc3c5bc(0x3c4)]=_0x442002,this[_0xc3c5bc(0x37a)][_0xc3c5bc(0x497)](_0x442002);}async[_0x1f2fa(0x48d)](){const _0x50c1d3=_0x1f2fa;var _0x45a583;this[_0x50c1d3(0x1ae)](await this['_createInitialState']()),this[_0x50c1d3(0x292)]&&((_0x45a583=this[_0x50c1d3(0x292)])==null||_0x45a583[_0x50c1d3(0x354)](this['unitID']),this['disposeWithMe'](this[_0x50c1d3(0x292)][_0x50c1d3(0x4d0)](this[_0x50c1d3(0x604)])[_0x50c1d3(0x25e)](_0x5d37af=>{const _0x28a71c=_0x50c1d3;this[_0x28a71c(0x1d8)]['debug'](_0x28a71c(0x612),_0x28a71c(0x32f),_0x5d37af),_0x5d37af===un[_0x28a71c(0x18f)]?(this[_0x28a71c(0x2a0)][_0x28a71c(0x472)]({'content':this[_0x28a71c(0x247)]['t']('collaboration.single-unit.warning'),'type':ge[_0x28a71c(0x1ed)][_0x28a71c(0x56b)]}),this['_permissionService'][_0x28a71c(0x4db)](new k[(_0x28a71c(0x3ce))](this[_0x28a71c(0x604)])['id'],!0x1),this[_0x28a71c(0x2c4)][_0x28a71c(0x192)](!0x1)):(this[_0x28a71c(0x2c4)][_0x28a71c(0x4db)](new k[(_0x28a71c(0x3ce))](this['unitID'])['id'],!0x0),this[_0x28a71c(0x2c4)][_0x28a71c(0x192)](!0x0));})));let _0x18f691=!0x1;return this[_0x50c1d3(0x305)](this[_0x50c1d3(0x4a7)][_0x50c1d3(0x393)][_0x50c1d3(0x25e)](_0x12b14b=>{const _0x24ee40=_0x50c1d3;_0x12b14b===se[_0x24ee40(0x4c0)]?this[_0x24ee40(0x5f4)](_0x18f691):_0x12b14b===se['OFFLINE']&&(_0x18f691=!0x0,this[_0x24ee40(0x1f8)]());})),this[_0x50c1d3(0x305)](this['session'][_0x50c1d3(0x215)][_0x50c1d3(0x25e)](_0x1578fe=>{const _0x404700=_0x50c1d3;try{switch(_0x1578fe[_0x404700(0x38e)]){case S[_0x404700(0x416)][_0x404700(0x521)]:{this[_0x404700(0x5d7)](S['parseProtocolChangeset'](_0x1578fe[_0x404700(0x462)]));break;}case S[_0x404700(0x416)][_0x404700(0x469)]:{this[_0x404700(0x2cc)](_0x1578fe[_0x404700(0x462)]);break;}case S[_0x404700(0x416)][_0x404700(0x5d2)]:{this[_0x404700(0x1f2)]();break;}case S[_0x404700(0x416)][_0x404700(0x5b8)]:{this['_onRemoteRetry'](_0x1578fe[_0x404700(0x462)]);break;}case S[_0x404700(0x416)][_0x404700(0x541)]:{this['_onFetchMissResult'](_0x1578fe[_0x404700(0x462)][_0x404700(0x54b)][_0x404700(0x50e)](_0x5e57c4=>S['parseProtocolChangeset'](_0x5e57c4)));break;}case S[_0x404700(0x416)][_0x404700(0x20e)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x34a5ab){throw console[_0x404700(0x2d0)](_0x404700(0x547),_0x34a5ab),_0x34a5ab;}})),this['_state'];}[_0x1f2fa(0x1f9)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x3032b7=_0x1f2fa;if(this[_0x3032b7(0x4df)])throw new Error(_0x3032b7(0x5e4));this[_0x3032b7(0x4df)]=!0x0;}[_0x1f2fa(0x51e)](_0x38b2e4){const _0x2b2151=_0x1f2fa;this['_lockTransition'](),this['_updateState'](this[_0x2b2151(0x3c4)][_0x2b2151(0x4b2)](_0x38b2e4)),this['_unlockTransition']();}[_0x1f2fa(0x5d7)](_0x37a468){const _0x447ddf=_0x1f2fa;if(!(_0x37a468['revision']<=this[_0x447ddf(0x4cd)][_0x447ddf(0x583)](this[_0x447ddf(0x604)]))){if(this[_0x447ddf(0x377)]){this[_0x447ddf(0x306)]['push'](_0x37a468);return;}this['_applyRemoteChangeset'](_0x37a468);}}[_0x1f2fa(0x2f5)](){const _0x22706f=_0x1f2fa;this[_0x22706f(0x306)][_0x22706f(0x601)](_0x27b531=>this[_0x22706f(0x1bd)](_0x27b531)),this[_0x22706f(0x306)]=[];}['_applyRemoteChangeset'](_0x58abb7){const _0x546f85=_0x1f2fa,_0x4ee075=this[_0x546f85(0x566)][_0x546f85(0x2ea)][_0x546f85(0x232)](this[_0x546f85(0x566)][_0x546f85(0x2ea)][_0x546f85(0x274)]()['COMPRESS_MUTATION_APPLY'])(_0x58abb7[_0x546f85(0x456)],null)||_0x58abb7['mutations'],_0x57bad9={..._0x58abb7,'mutations':_0x4ee075};this[_0x546f85(0x238)](),this[_0x546f85(0x1ae)](this['_state'][_0x546f85(0x5c5)](_0x57bad9)),this['_unlockTransition']();}[_0x1f2fa(0x2cc)](_0xa49c2a){const _0x41dde3=_0x1f2fa;this[_0x41dde3(0x238)](),this[_0x41dde3(0x1ae)](this['_state'][_0x41dde3(0x478)](_0xa49c2a)),this['_unlockTransition']();}['_onRemoteRejected'](_0x464354){const _0x486928=_0x1f2fa;this[_0x486928(0x238)](),this['_updateState'](this[_0x486928(0x3c4)][_0x486928(0x4ab)](_0x464354)),this[_0x486928(0x1f9)]();}[_0x1f2fa(0x37d)](_0x4081c4){const _0x1b4d19=_0x1f2fa;this['_lockTransition'](),this['_updateState'](this[_0x1b4d19(0x3c4)]['onRemoteRetry'](_0x4081c4)),this[_0x1b4d19(0x1f9)]();}[_0x1f2fa(0x304)](_0x34729b){const _0x30b581=_0x1f2fa;if(!(this[_0x30b581(0x3c4)]instanceof re))throw new TypeError(_0x30b581(0x2cd));const _0x32995a=_0x34729b[_0x30b581(0x50e)](_0x51a655=>{const _0x7b052c=_0x30b581,_0xad4d91=this['_compressMutationService'][_0x7b052c(0x2ea)][_0x7b052c(0x232)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x7b052c(0x474)])(_0x51a655[_0x7b052c(0x456)],null)||_0x51a655[_0x7b052c(0x456)];return{..._0x51a655,'mutations':_0xad4d91};});this[_0x30b581(0x238)](),this[_0x30b581(0x1ae)](this[_0x30b581(0x3c4)]['onMissedChangesetFetched'](_0x32995a)),this['_unlockTransition']();}[_0x1f2fa(0x1f8)](){const _0x84bb43=_0x1f2fa;this[_0x84bb43(0x238)](),this[_0x84bb43(0x1ae)](this[_0x84bb43(0x3c4)][_0x84bb43(0x54f)]()),this[_0x84bb43(0x1f9)]();}[_0x1f2fa(0x5f4)](_0x1e395d=!0x1){const _0x495a9b=_0x1f2fa;this[_0x495a9b(0x238)](),this[_0x495a9b(0x1ae)](this[_0x495a9b(0x3c4)][_0x495a9b(0x4b9)]()),this['_unlockTransition']();const _0x36bbec=this[_0x495a9b(0x3c4)];_0x1e395d&&_0x36bbec instanceof Oe&&(this[_0x495a9b(0x238)](),this['_updateState'](_0x36bbec[_0x495a9b(0x24f)]()),this[_0x495a9b(0x1f9)]());}async[_0x1f2fa(0x47d)](){return new Promise(_0x57686a=>{const _0xecf56d=_0x3f71;this[_0xecf56d(0x4a7)][_0xecf56d(0x393)][_0xecf56d(0x5f2)](A['take'](0x1))[_0xecf56d(0x25e)](async _0x2be472=>{const _0xef4724=_0xecf56d;_0x57686a(await this[_0xef4724(0x50c)](_0x2be472===se[_0xef4724(0x4c0)]));});});}[_0x1f2fa(0x1bc)](){const _0x182cc4=this['unitID'];return{'onStateChange':(_0x53bf4e,_0x851c0f)=>{const _0x527c24=_0x3f71;if(_0x53bf4e!==this['_state'])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x53bf4e[_0x527c24(0x286)]+'\x0aAfter:\x20'+_0x851c0f[_0x527c24(0x286)]+_0x527c24(0x3f3)+this['_state'][_0x527c24(0x286)]);this[_0x527c24(0x1ae)](_0x851c0f);},'onSendChangeset':_0x40e979=>{const _0x52d5d6=_0x3f71;_0x40e979[_0x52d5d6(0x38f)]||(_0x40e979[_0x52d5d6(0x38f)]=this[_0x52d5d6(0x570)],_0x40e979[_0x52d5d6(0x4d4)]=++this[_0x52d5d6(0x47c)]);const _0x5a6da7={'eventID':S[_0x52d5d6(0x416)][_0x52d5d6(0x23d)],'data':{'unitID':_0x40e979['unitID'],'unitType':this['_type'],'changeset':_0x40e979,'memberID':this[_0x52d5d6(0x4a7)][_0x52d5d6(0x296)]()}};this[_0x52d5d6(0x4a7)][_0x52d5d6(0x445)](_0x5a6da7,this[_0x52d5d6(0x604)]);},'onMissingChangesets':({from:_0x2b537c,to:_0x2d4119})=>{const _0x44a14c=_0x3f71;this[_0x44a14c(0x1d8)][_0x44a14c(0x4fc)](_0x44a14c(0x612),_0x44a14c(0x35c)+_0x2b537c+_0x44a14c(0x4bc)+_0x2d4119);const _0x67f1df={'eventID':S[_0x44a14c(0x416)]['FETCH_MISSING'],'data':{'unitID':_0x182cc4,'unitType':this[_0x44a14c(0x5e2)],'from':_0x2b537c,'to':_0x2d4119}};this[_0x44a14c(0x4a7)][_0x44a14c(0x445)](_0x67f1df,this[_0x44a14c(0x604)]);}};}async['_createInitialStateImpl'](_0x114d5a){const _0x23cd0b=_0x1f2fa;var _0x110a1f,_0xc546cd;const _0x2e673f=await this[_0x23cd0b(0x346)][_0x23cd0b(0x5f6)](this[_0x23cd0b(0x604)]),_0x1f6dda=(_0x110a1f=_0x2e673f==null?void 0x0:_0x2e673f[_0x23cd0b(0x456)])!=null?_0x110a1f:[],_0x479942=(_0xc546cd=_0x2e673f==null?void 0x0:_0x2e673f[_0x23cd0b(0x4d8)])!=null?_0xc546cd:null,_0x3b4c3e=!!(_0x479942!=null&&_0x479942[_0x23cd0b(0x38f)])&&!!(_0x479942!=null&&_0x479942[_0x23cd0b(0x4d4)]);this[_0x23cd0b(0x570)]=_0x3b4c3e?_0x479942[_0x23cd0b(0x38f)]:mi(),this[_0x23cd0b(0x47c)]=_0x3b4c3e?_0x479942['reqId']:0x0;const _0x29c75e=this[_0x23cd0b(0x604)];try{this['_replayCachedMutations'](_0x479942,_0x1f6dda);}catch(_0x3bf09b){this[_0x23cd0b(0x1d8)][_0x23cd0b(0x2d0)](_0x3bf09b);}const _0x6c4c53=this[_0x23cd0b(0x1bc)]();if(_0x114d5a){const _0x68d0fe=mn(this[_0x23cd0b(0x2f7)],_0x29c75e,this[_0x23cd0b(0x5e2)],_0x479942,_0x1f6dda,_0x6c4c53);return _0x68d0fe instanceof ce?_0x68d0fe['_schedule']():(_0x68d0fe instanceof le||_0x68d0fe instanceof fe)&&_0x68d0fe[_0x23cd0b(0x322)](),_0x68d0fe;}return this[_0x23cd0b(0x2f7)][_0x23cd0b(0x33e)](me,_0x29c75e,this['_type'],_0x479942,_0x1f6dda,_0x6c4c53);}[_0x1f2fa(0x568)](_0x1c8d8f,_0x4cfe45){const _0x5a14dd=_0x1f2fa;var _0xc97dc4,_0x1b6114;const _0x141cd9=this[_0x5a14dd(0x566)][_0x5a14dd(0x2ea)][_0x5a14dd(0x232)](this[_0x5a14dd(0x566)][_0x5a14dd(0x2ea)][_0x5a14dd(0x274)]()['COMPRESS_MUTATION_APPLY']);(_0xc97dc4=_0x141cd9((_0x1c8d8f==null?void 0x0:_0x1c8d8f['mutations'])||[],null))==null||_0xc97dc4['forEach'](_0x5afc5e=>this[_0x5a14dd(0x5ab)][_0x5a14dd(0x3fa)](_0x5afc5e['id'],_0x5afc5e[_0x5a14dd(0x389)])),(_0x1b6114=_0x141cd9(_0x4cfe45||[],null))==null||_0x1b6114[_0x5a14dd(0x601)](_0x4c6ee6=>this[_0x5a14dd(0x5ab)][_0x5a14dd(0x3fa)](_0x4c6ee6['id'],_0x4c6ee6['params']));}},exports[_0x1f2fa(0x5c0)]=yt([H(0x3,a['Inject'](a[_0x1f2fa(0x35d)])),H(0x4,a['Inject'](exports[_0x1f2fa(0x333)])),H(0x5,a[_0x1f2fa(0x28d)](S[_0x1f2fa(0x37c)])),H(0x6,a['Inject'](a[_0x1f2fa(0x537)])),H(0x7,a[_0x1f2fa(0x28d)](S[_0x1f2fa(0x5bc)])),H(0x8,a[_0x1f2fa(0x1af)]),H(0x9,a['ICommandService']),H(0xa,ee[_0x1f2fa(0x32b)]),H(0xb,a['IPermissionService']),H(0xc,a[_0x1f2fa(0x246)](qe))],exports['CollaborationEntity']),exports['DocCollaborationEntity']=class extends exports[_0x1f2fa(0x5c0)]{constructor(_0x197736,_0x4366b8,_0x14469e,_0x23c3ac,_0x142dd8,_0x111895,_0x5972b2,_0x421e56,_0x53caf2,_0x53d09d,_0x46d487,_0x25434f,_0x25126a,_0x3022ea,_0x31a62d,_0x49566c,_0x5c7dc4,_0x55e6a4){const _0xec9ddd=_0x1f2fa;super(_0x197736,_0x14469e,_0x4366b8,_0x23c3ac,_0x142dd8,_0x111895,_0x5972b2,_0x421e56,_0x3022ea,_0x31a62d,_0x49566c,_0x5c7dc4,_0x55e6a4),this[_0xec9ddd(0x604)]=_0x197736,this[_0xec9ddd(0x1eb)]=_0x4366b8,this['_docStateChangeManagerService']=_0x53caf2,this[_0xec9ddd(0x2ac)]=_0x53d09d,this[_0xec9ddd(0x259)]=_0x46d487,this['_docTransformSelectionsService']=_0x25434f,this['_docSyncEditingCollabCursorService']=_0x25126a;}[_0x1f2fa(0x1bc)](){const _0x14b10f=_0x1f2fa,_0x47930c=super[_0x14b10f(0x1bc)]();return _0x47930c[_0x14b10f(0x371)]=_0x28c7f2=>this[_0x14b10f(0x2ac)][_0x14b10f(0x1ee)](_0x28c7f2),_0x47930c[_0x14b10f(0x5fa)]=_0x388dbd=>this['_docTransformStateCacheService'][_0x14b10f(0x3a6)](_0x388dbd),_0x47930c['onTransformSelections']=_0x35d623=>this[_0x14b10f(0x4a8)]['transformSelections'](_0x35d623),_0x47930c[_0x14b10f(0x5e8)]=_0x4e34cb=>this['_docSyncEditingCollabCursorService'][_0x14b10f(0x5dc)](_0x4e34cb),_0x47930c['onTransformRemoteChangesetByIMECache']=_0x3c4d46=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x3c4d46),_0x47930c[_0x14b10f(0x496)]=_0x14adf3=>this[_0x14b10f(0x259)][_0x14b10f(0x5a4)](_0x14adf3),_0x47930c;}async[_0x1f2fa(0x48d)](){const _0x6f2bc8=_0x1f2fa,_0x53f132=await super[_0x6f2bc8(0x48d)]();return this['_docStateChangeManagerService'][_0x6f2bc8(0x5a2)][_0x6f2bc8(0x5f2)](A['takeUntil'](this[_0x6f2bc8(0x57d)]))[_0x6f2bc8(0x25e)](_0x3fd63e=>{const _0x569b63=_0x6f2bc8;if(_0x3fd63e==null)return;const {unitId:_0x2eb6c6,redoState:_0x37237f,commandId:_0x2a2b05}=_0x3fd63e;if(_0x2eb6c6!==this['unitID'])return;const _0x30c0bf={'id':_0x2a2b05,'type':a[_0x569b63(0x250)]['MUTATION'],'params':{'unitId':_0x2eb6c6,'actions':_0x37237f['actions'],'textRanges':null}};this[_0x569b63(0x51e)](_0x30c0bf);}),_0x53f132;}},exports[_0x1f2fa(0x370)]=yt([H(0x3,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),H(0x4,a['Inject'](exports[_0x1f2fa(0x333)])),H(0x5,a[_0x1f2fa(0x28d)](S[_0x1f2fa(0x37c)])),H(0x6,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x537)])),H(0x7,a[_0x1f2fa(0x28d)](S['RevisionService'])),H(0x8,a[_0x1f2fa(0x28d)](J['DocStateChangeManagerService'])),H(0x9,a[_0x1f2fa(0x28d)](Be)),H(0xa,a[_0x1f2fa(0x28d)](We)),H(0xb,a[_0x1f2fa(0x28d)](Fe)),H(0xc,a['Inject'](Rt)),H(0xd,a[_0x1f2fa(0x1af)]),H(0xe,a[_0x1f2fa(0x51f)]),H(0xf,ee[_0x1f2fa(0x32b)]),H(0x10,a[_0x1f2fa(0x1d0)]),H(0x11,a['Optional'](qe))],exports[_0x1f2fa(0x370)]),exports['SheetCollaborationEntity']=class extends exports[_0x1f2fa(0x5c0)]{constructor(_0x449cf2,_0x36a1ac,_0x5ecb86,_0x58c733,_0x402115,_0x49dd4d,_0x4f48cd,_0x1ed9f3,_0x4764df,_0x1309d5,_0x2422e5,_0x4fc1cb,_0x594af1,_0xe21d8b){super(_0x449cf2,_0x5ecb86,_0x36a1ac,_0x58c733,_0x402115,_0x49dd4d,_0x4f48cd,_0x1ed9f3,_0x1309d5,_0x2422e5,_0x4fc1cb,_0x594af1,_0xe21d8b),this['unitID']=_0x449cf2,this['type']=_0x36a1ac,this['_sheetTransformSelectionsService']=_0x4764df;}[_0x1f2fa(0x1bc)](){const _0xcfd4a5=_0x1f2fa,_0x18615e=super[_0xcfd4a5(0x1bc)]();return _0x18615e[_0xcfd4a5(0x3e2)]=_0x150082=>this[_0xcfd4a5(0x567)][_0xcfd4a5(0x216)](_0x150082),_0x18615e;}async['_init'](){const _0x3e7276=_0x1f2fa,_0x190ef2=await super[_0x3e7276(0x48d)]();return this[_0x3e7276(0x305)](this[_0x3e7276(0x5ab)][_0x3e7276(0x5f9)]((_0x21430a,_0x17eb6b)=>{const _0x131e88=_0x3e7276;if(_0x21430a[_0x131e88(0x1eb)]!==a[_0x131e88(0x250)]['MUTATION']||_0x17eb6b!=null&&_0x17eb6b[_0x131e88(0x5d8)]||_0x17eb6b!=null&&_0x17eb6b[_0x131e88(0x392)])return;const _0x2a6621=_0x21430a[_0x131e88(0x389)];if((_0x2a6621==null?void 0x0:_0x2a6621[_0x131e88(0x4e3)])!==this['unitID'])return;const _0x5a679d=_0x21430a,_0x5458e1=this['_compressMutationService'][_0x131e88(0x2ea)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x131e88(0x274)]()[_0x131e88(0x2fd)])([_0x5a679d],null)||[_0x5a679d];this[_0x131e88(0x51e)](_0x5458e1[0x0]);})),_0x190ef2;}},exports[_0x1f2fa(0x358)]=yt([H(0x3,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),H(0x4,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x333)])),H(0x5,a[_0x1f2fa(0x28d)](S[_0x1f2fa(0x37c)])),H(0x6,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x537)])),H(0x7,a[_0x1f2fa(0x28d)](S[_0x1f2fa(0x5bc)])),H(0x8,a[_0x1f2fa(0x28d)](ke)),H(0x9,a[_0x1f2fa(0x1af)]),H(0xa,a[_0x1f2fa(0x51f)]),H(0xb,ee[_0x1f2fa(0x32b)]),H(0xc,a[_0x1f2fa(0x1d0)]),H(0xd,a[_0x1f2fa(0x246)](qe))],exports[_0x1f2fa(0x358)]);var Wi=Object[_0x1f2fa(0x4e5)],Fi=Object[_0x1f2fa(0x40d)],Vi=(_0x355fc7,_0x166af0,_0x166d93,_0x276225)=>{const _0x873316=_0x1f2fa;for(var _0x56aa33=_0x276225>0x1?void 0x0:_0x276225?Fi(_0x166af0,_0x166d93):_0x166af0,_0x49210c=_0x355fc7[_0x873316(0x339)]-0x1,_0x37b588;_0x49210c>=0x0;_0x49210c--)(_0x37b588=_0x355fc7[_0x49210c])&&(_0x56aa33=(_0x276225?_0x37b588(_0x166af0,_0x166d93,_0x56aa33):_0x37b588(_0x56aa33))||_0x56aa33);return _0x276225&&_0x56aa33&&Wi(_0x166af0,_0x166d93,_0x56aa33),_0x56aa33;},tt=(_0x3304d0,_0x2736e3)=>(_0x141700,_0x3df928)=>_0x2736e3(_0x141700,_0x3df928,_0x3304d0);exports[_0x1f2fa(0x1ab)]=class extends a[_0x1f2fa(0x2bd)]{constructor(_0x2e15d0,_0x4a9ab2,_0x30c2f9){const _0xdc2825=_0x1f2fa;super(),I(this,_0xdc2825(0x1e9),new Map()),I(this,'_entityInit$',new A[(_0xdc2825(0x2ba))]()),(this[_0xdc2825(0x2f7)]=_0x2e15d0,this[_0xdc2825(0x60f)]=_0x4a9ab2,this[_0xdc2825(0x51c)]=_0x30c2f9,this[_0xdc2825(0x48d)]());}['dispose'](){const _0x3665d4=_0x1f2fa;super[_0x3665d4(0x366)](),this[_0x3665d4(0x1e9)]['forEach'](_0x50381e=>_0x50381e['dispose']()),this[_0x3665d4(0x1e9)]['clear']();}[_0x1f2fa(0x2f1)](_0x41edf9){const _0x19f4d4=_0x1f2fa;var _0x23940c;return(_0x23940c=this[_0x19f4d4(0x1e9)][_0x19f4d4(0x2f6)](_0x41edf9))!=null?_0x23940c:null;}['getCollabEntity$'](_0x842c7){const _0x5339df=_0x1f2fa,_0x3be787=this[_0x5339df(0x2f1)](_0x842c7);return _0x3be787?A['of'](_0x3be787):this[_0x5339df(0x5a6)]['pipe'](V[_0x5339df(0x3db)](_0x322f5c=>_0x322f5c['unitID']===_0x842c7));}[_0x1f2fa(0x48d)](){const _0x7a7faa=_0x1f2fa;this['_univerInstanceService'][_0x7a7faa(0x374)](a['UniverInstanceType'][_0x7a7faa(0x4c3)])[_0x7a7faa(0x5f2)](A[_0x7a7faa(0x5d4)](this[_0x7a7faa(0x57d)]),V[_0x7a7faa(0x338)](0x10))[_0x7a7faa(0x25e)](async _0x2b6099=>{const _0x1b10e8=_0x7a7faa,_0x5a1e48=_0x2b6099[_0x1b10e8(0x4ea)](),_0x3fcc87=await this[_0x1b10e8(0x15d)](_0x5a1e48,ie[_0x1b10e8(0x4c3)]);this['_entities'][_0x1b10e8(0x329)](_0x5a1e48,_0x3fcc87);}),this[_0x7a7faa(0x51c)][_0x7a7faa(0x374)](a['UniverInstanceType'][_0x7a7faa(0x505)])[_0x7a7faa(0x5f2)](A[_0x7a7faa(0x5d4)](this['dispose$']),V[_0x7a7faa(0x338)](0x10))[_0x7a7faa(0x5f2)](V[_0x7a7faa(0x3db)](_0x592cf9=>!_0x592cf9[_0x7a7faa(0x4ea)]()[_0x7a7faa(0x565)]('__')))['subscribe'](async _0x1822ad=>{const _0x448c19=_0x7a7faa,_0x2d7abb=_0x1822ad[_0x448c19(0x4ea)](),_0x53d2cf=await this['_startCollaboration'](_0x2d7abb,ie[_0x448c19(0x505)]);this[_0x448c19(0x1e9)][_0x448c19(0x329)](_0x2d7abb,_0x53d2cf);}),A[_0x7a7faa(0x1b6)](this['_univerInstanceService'][_0x7a7faa(0x468)](a['UniverInstanceType'][_0x7a7faa(0x4c3)]),this['_univerInstanceService'][_0x7a7faa(0x468)](a[_0x7a7faa(0x5c7)][_0x7a7faa(0x505)]))[_0x7a7faa(0x5f2)](A[_0x7a7faa(0x5d4)](this[_0x7a7faa(0x57d)]))[_0x7a7faa(0x25e)](_0x3c0b32=>{const _0x260b0c=_0x7a7faa,_0x37e408=_0x3c0b32[_0x260b0c(0x4ea)](),_0x72990e=this['_entities'][_0x260b0c(0x2f6)](_0x37e408);_0x72990e&&(_0x72990e['dispose'](),this[_0x260b0c(0x1e9)][_0x260b0c(0x2e4)](_0x37e408));});}async[_0x1f2fa(0x15d)](_0x2b4bc4,_0xeba700){const _0x5123a2=_0x1f2fa,_0x1dc7bc=await this[_0x5123a2(0x60f)][_0x5123a2(0x5b5)](_0x2b4bc4),_0x1455d0=this[_0x5123a2(0x2f7)][_0x5123a2(0x33e)](this[_0x5123a2(0x436)](_0xeba700),_0x2b4bc4,_0xeba700,_0x1dc7bc);return await _0x1455d0[_0x5123a2(0x485)](),this[_0x5123a2(0x5a6)][_0x5123a2(0x497)](_0x1455d0),_0x1455d0;}[_0x1f2fa(0x436)](_0x17cde9){const _0x3e42fd=_0x1f2fa;switch(_0x17cde9){case ie[_0x3e42fd(0x505)]:return exports[_0x3e42fd(0x370)];case ie[_0x3e42fd(0x4c3)]:return exports[_0x3e42fd(0x358)];default:throw new Error(_0x3e42fd(0x1c7)+_0x17cde9);}}},exports['CollaborationController']=Vi([tt(0x0,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),tt(0x1,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x1c0)])),tt(0x2,a[_0x1f2fa(0x562)])],exports['CollaborationController']);const $t=[_0x1f2fa(0x39b),_0x1f2fa(0x5b2),_0x1f2fa(0x351),_0x1f2fa(0x587),'blue400',_0x1f2fa(0x3cf)];class Ot extends a[_0x1f2fa(0x1d6)]{constructor(){const _0x27bfeb=_0x1f2fa;super(...arguments),I(this,'_assignedColors',new Map()),I(this,_0x27bfeb(0x30f),0x0);}[_0x1f2fa(0x235)](_0x50081a){const _0x226247=_0x1f2fa;if(this['_assignedColors']['has'](_0x50081a))return this[_0x226247(0x365)][_0x226247(0x2f6)](_0x50081a);const _0x36f40b=$t[this['_colorIndex']];return this[_0x226247(0x30f)]=(this['_colorIndex']+0x1)%$t[_0x226247(0x339)],this[_0x226247(0x365)]['set'](_0x50081a,_0x36f40b),_0x36f40b;}}var Gi=Object[_0x1f2fa(0x4e5)],Yi=Object[_0x1f2fa(0x40d)],Ki=(_0x2dfd96,_0x300b12,_0x36dd62,_0x1f816d)=>{const _0x17bdfb=_0x1f2fa;for(var _0x4c6429=_0x1f816d>0x1?void 0x0:_0x1f816d?Yi(_0x300b12,_0x36dd62):_0x300b12,_0x40bbce=_0x2dfd96[_0x17bdfb(0x339)]-0x1,_0x49eefe;_0x40bbce>=0x0;_0x40bbce--)(_0x49eefe=_0x2dfd96[_0x40bbce])&&(_0x4c6429=(_0x1f816d?_0x49eefe(_0x300b12,_0x36dd62,_0x4c6429):_0x49eefe(_0x4c6429))||_0x4c6429);return _0x1f816d&&_0x4c6429&&Gi(_0x300b12,_0x36dd62,_0x4c6429),_0x4c6429;},Se=(_0x588c09,_0x4eb379)=>(_0x158949,_0x47ac96)=>_0x4eb379(_0x158949,_0x47ac96,_0x588c09);const qi=0x12c,zi=0x64;let mt=class extends a[_0x1f2fa(0x2bd)]{constructor(_0x5e0967,_0x57b390,_0x2882a9,_0xf8a2ef,_0x3ee342,_0x3ad632,_0x256643,_0x2e9aee,_0x1386aa){const _0x34ec50=_0x1f2fa;super(),I(this,'_online',!0x1),I(this,_0x34ec50(0x48d),!0x1),I(this,_0x34ec50(0x606),new A[(_0x34ec50(0x25c))](new Map())),I(this,_0x34ec50(0x455),this[_0x34ec50(0x606)]['asObservable']()),I(this,'_roomMembers$',new A[(_0x34ec50(0x25c))]([])),I(this,_0x34ec50(0x43f),this[_0x34ec50(0x165)][_0x34ec50(0x5f2)](A['debounceTime'](qi))),I(this,_0x34ec50(0x40c),a[_0x34ec50(0x4ad)](_0x1e7522=>{const _0x303a04=_0x34ec50,_0x429f7a={'eventID':S[_0x303a04(0x416)][_0x303a04(0x326)],'data':{'unitID':this['unitID'],'memberID':this[_0x303a04(0x3a3)][_0x303a04(0x296)](),'selection':dn(_0x1e7522)}};this[_0x303a04(0x3a3)][_0x303a04(0x445)](_0x429f7a,this[_0x303a04(0x604)]);},zi)),(this['unitID']=_0x5e0967,this['_session']=_0x57b390,this[_0x34ec50(0x2f7)]=_0x2882a9,this['_colorAssignService']=_0xf8a2ef,this['_memberService']=_0x3ee342,this[_0x34ec50(0x270)]=_0x3ad632,this[_0x34ec50(0x5ce)]=_0x256643,this[_0x34ec50(0x51c)]=_0x2e9aee,this['_commandService']=_0x1386aa);}get[_0x1f2fa(0x17c)](){const _0x1a1687=_0x1f2fa;return this['_cursorInfo$'][_0x1a1687(0x60e)]();}get['roomMembers'](){const _0x47c745=_0x1f2fa;return this[_0x47c745(0x165)][_0x47c745(0x60e)]();}['dispose'](){const _0x257743=_0x1f2fa;super[_0x257743(0x366)](),this[_0x257743(0x606)][_0x257743(0x497)](new Map()),this[_0x257743(0x606)][_0x257743(0x60c)](),this[_0x257743(0x165)][_0x257743(0x497)]([]),this['_roomMembers$'][_0x257743(0x60c)]();}['init'](){const _0x1b519e=_0x1f2fa;this[_0x1b519e(0x48d)]||(this[_0x1b519e(0x48d)]=!0x0,this[_0x1b519e(0x3a3)][_0x1b519e(0x393)][_0x1b519e(0x5f2)](A['takeUntil'](this['dispose$']))[_0x1b519e(0x25e)](_0x453275=>{const _0x52e444=_0x1b519e;_0x453275===se['ONLINE']?this[_0x52e444(0x5f4)]():this[_0x52e444(0x1f8)]();}),this[_0x1b519e(0x3a3)][_0x1b519e(0x215)][_0x1b519e(0x5f2)](A['takeUntil'](this[_0x1b519e(0x57d)]))[_0x1b519e(0x25e)](_0x1b0297=>{const _0x36ef58=_0x1b519e,_0x2ec395=_0x1b0297['eventID'];_0x2ec395===S[_0x36ef58(0x416)][_0x36ef58(0x326)]&&this['_onCursorUpdate'](_0x1b0297),_0x2ec395===S['CollaborationEvent'][_0x36ef58(0x3ed)]&&this[_0x36ef58(0x580)](_0x1b0297);}),this[_0x1b519e(0x305)](this[_0x1b519e(0x5ab)][_0x1b519e(0x5f9)](_0x16f6b1=>{const _0x44fcda=_0x1b519e,_0x41d72f=_0x16f6b1[_0x44fcda(0x389)];_0x41d72f!=null&&this[_0x44fcda(0x1fd)]&&_0x16f6b1['id']===ye['SetTextSelectionsOperation']['id']&&_0x41d72f['unitId']===this[_0x44fcda(0x604)]&&_0x41d72f[_0x44fcda(0x310)]===!0x1&&_0x41d72f[_0x44fcda(0x58d)]['length']>0x0&&this[_0x44fcda(0x40c)](_0x41d72f[_0x44fcda(0x58d)]);})),this[_0x1b519e(0x270)][_0x1b519e(0x60a)]['pipe'](A[_0x1b519e(0x5d4)](this[_0x1b519e(0x57d)]))[_0x1b519e(0x25e)](_0x7b7aef=>{const _0x432bd4=_0x1b519e;if((_0x7b7aef==null?void 0x0:_0x7b7aef[_0x432bd4(0x604)])!==this[_0x432bd4(0x604)])return;const _0x295fea={'eventID':S['CollaborationEvent'][_0x432bd4(0x326)],'data':_0x7b7aef};this[_0x432bd4(0x5ef)](_0x295fea);}),this[_0x1b519e(0x305)](this[_0x1b519e(0x5ab)][_0x1b519e(0x5f9)](_0x411b24=>{const _0x43c134=_0x1b519e;if(_0x411b24[_0x43c134(0x389)]==null)return;const _0x4cf4b3=_0x411b24['params'];if(_0x411b24['id']!==ye[_0x43c134(0x2db)]['id']||_0x4cf4b3[_0x43c134(0x4e3)]!==this[_0x43c134(0x604)])return;const _0xf3496d={'id':_0x43c134(0x4dc),'params':_0x4cf4b3},_0x439c11=this[_0x43c134(0x17c)];for(const [_0x18755c,_0x2a2d49]of _0x439c11){const _0x4413ad={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x43c134(0x604)],'actions':null,'textRanges':_0x2a2d49[_0x43c134(0x58d)]}},_0x1d6dbc=this[_0x43c134(0x5ce)][_0x43c134(0x5a8)](_0xf3496d,_0x4413ad,!0x1);if(S['isTransformMutationFailure'](_0x1d6dbc))throw _0x1d6dbc[_0x43c134(0x2d0)];_0x439c11[_0x43c134(0x329)](_0x18755c,{..._0x2a2d49,'ranges':_0x1d6dbc[_0x43c134(0x26e)][_0x43c134(0x389)][_0x43c134(0x30e)]});}queueMicrotask(()=>{const _0x1deff8=_0x43c134;this[_0x1deff8(0x606)][_0x1deff8(0x497)](_0x439c11);});})));}['_onCursorUpdate'](_0x13ba36){const _0x5b740a=_0x1f2fa;var _0x344b09,_0x926683;const {memberID:_0x3b8d36,selection:_0x1d4569}=_0x13ba36[_0x5b740a(0x462)],_0x437676=Ui(_0x1d4569),_0x1f126e=(_0x926683=(_0x344b09=this[_0x5b740a(0x4bd)][_0x5b740a(0x5c6)](this[_0x5b740a(0x604)],_0x3b8d36))==null?void 0x0:_0x344b09['name'])!=null?_0x926683:'Unknown\x20user',_0x13f251={'color':this['_colorAssignService'][_0x5b740a(0x235)](_0x3b8d36),'name':_0x1f126e,'ranges':_0x437676},_0x1b61ee=this['cursorInfo'];_0x1b61ee['set'](_0x3b8d36,_0x13f251),this[_0x5b740a(0x606)][_0x5b740a(0x497)](_0x1b61ee);}[_0x1f2fa(0x580)](_0x39bbbe){const _0x5140e3=_0x1f2fa,{memberID:_0x5a7c7c}=_0x39bbbe[_0x5140e3(0x462)],_0x54d91e=this[_0x5140e3(0x17c)];_0x54d91e['delete'](_0x5a7c7c),this[_0x5140e3(0x606)]['next'](_0x54d91e);}['_toggleOnline'](){const _0x36a618=_0x1f2fa;var _0x38e2ee;if(this[_0x36a618(0x1fd)]=!0x0,((_0x38e2ee=this[_0x36a618(0x51c)]['getFocusedUnit']())==null?void 0x0:_0x38e2ee['getUnitId']())!==this[_0x36a618(0x604)])return;const _0x2ddb67=this[_0x36a618(0x2f7)][_0x36a618(0x2f6)](ye[_0x36a618(0x254)])[_0x36a618(0x3ee)]();Array[_0x36a618(0x4ff)](_0x2ddb67)&&_0x2ddb67[_0x36a618(0x339)]>0x0&&this[_0x36a618(0x40c)](_0x2ddb67);}[_0x1f2fa(0x1f8)](){this['_online']=!0x1;}};mt=Ki([Se(0x2,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),Se(0x3,a[_0x1f2fa(0x28d)](Ot)),Se(0x4,a['Inject'](exports[_0x1f2fa(0x3d8)])),Se(0x5,a[_0x1f2fa(0x28d)](Rt)),Se(0x6,S[_0x1f2fa(0x3ff)]),Se(0x7,a[_0x1f2fa(0x562)]),Se(0x8,a[_0x1f2fa(0x51f)])],mt);var Xi=Object['defineProperty'],Ji=Object['getOwnPropertyDescriptor'],Zi=(_0x5486cd,_0x14e260,_0x2d2da4,_0x168000)=>{const _0x2ed40d=_0x1f2fa;for(var _0x65d0e2=_0x168000>0x1?void 0x0:_0x168000?Ji(_0x14e260,_0x2d2da4):_0x14e260,_0x4cb8ce=_0x5486cd[_0x2ed40d(0x339)]-0x1,_0x26a1c7;_0x4cb8ce>=0x0;_0x4cb8ce--)(_0x26a1c7=_0x5486cd[_0x4cb8ce])&&(_0x65d0e2=(_0x168000?_0x26a1c7(_0x14e260,_0x2d2da4,_0x65d0e2):_0x26a1c7(_0x65d0e2))||_0x65d0e2);return _0x168000&&_0x65d0e2&&Xi(_0x14e260,_0x2d2da4,_0x65d0e2),_0x65d0e2;},be=(_0x7f035c,_0x1cb7a5)=>(_0x492be8,_0x50b5ea)=>_0x1cb7a5(_0x492be8,_0x50b5ea,_0x7f035c);const Qi=0x12c,es=0x64,ts=()=>{let _0x2e1989=[],_0x543b78=!0x1;return _0x284c9f=>{const _0x462150=_0x3f71;_0x2e1989[_0x462150(0x19c)](_0x284c9f),_0x543b78||(_0x543b78=!0x0,setTimeout(()=>{const _0x10b490=_0x462150;_0x2e1989[_0x10b490(0x601)](_0x25f8c7=>_0x25f8c7()),_0x2e1989=[],_0x543b78=!0x1;}));};};let St=class extends a['RxDisposable']{constructor(_0xe250dc,_0x27bbf7,_0x440ef4,_0xf0e0a4,_0x565563,_0x4f33e9,_0x5a92bb,_0x15396d){const _0x14640c=_0x1f2fa;super(),I(this,_0x14640c(0x1fd),!0x1),I(this,'_init',!0x1),I(this,_0x14640c(0x606),new A['BehaviorSubject'](new Map())),I(this,_0x14640c(0x455),this['_cursorInfo$'][_0x14640c(0x5de)]()),I(this,_0x14640c(0x165),new A[(_0x14640c(0x25c))]([])),I(this,_0x14640c(0x43f),this[_0x14640c(0x165)]['pipe'](A['debounceTime'](Qi))),I(this,_0x14640c(0x40c),a[_0x14640c(0x4ad)]((_0x522a0f,_0x42d951)=>{const _0x108f24=_0x14640c,_0x2fd714={'eventID':S[_0x108f24(0x416)][_0x108f24(0x326)],'data':{'unitID':this[_0x108f24(0x604)],'memberID':this[_0x108f24(0x3a3)][_0x108f24(0x296)](),'selection':Pt[_0x108f24(0x1b3)](_0x522a0f,_0x42d951[_0x108f24(0x5bb)])}};this[_0x108f24(0x3a3)][_0x108f24(0x445)](_0x2fd714,this[_0x108f24(0x604)]);},es)),(this[_0x14640c(0x604)]=_0xe250dc,this[_0x14640c(0x3a3)]=_0x27bbf7,this[_0x14640c(0x2f7)]=_0x440ef4,this[_0x14640c(0x4c2)]=_0xf0e0a4,this[_0x14640c(0x4bd)]=_0x565563,this[_0x14640c(0x51c)]=_0x4f33e9,this[_0x14640c(0x5ab)]=_0x5a92bb,this[_0x14640c(0x414)]=_0x15396d);}get[_0x1f2fa(0x17c)](){const _0x64df3d=_0x1f2fa;return this['_cursorInfo$'][_0x64df3d(0x60e)]();}get['roomMembers'](){const _0x5c2624=_0x1f2fa;return this[_0x5c2624(0x165)][_0x5c2624(0x60e)]();}[_0x1f2fa(0x366)](){const _0x207305=_0x1f2fa;super[_0x207305(0x366)](),this[_0x207305(0x606)][_0x207305(0x497)](new Map()),this['_cursorInfo$']['complete'](),this[_0x207305(0x165)]['next']([]),this[_0x207305(0x165)][_0x207305(0x60c)]();}[_0x1f2fa(0x485)](){const _0x1d5c18=_0x1f2fa;this['_init']||(this['_init']=!0x0,this[_0x1d5c18(0x3a3)][_0x1d5c18(0x393)][_0x1d5c18(0x5f2)](A[_0x1d5c18(0x5d4)](this[_0x1d5c18(0x57d)]))['subscribe'](_0x1600ff=>{const _0x2fbde3=_0x1d5c18;_0x1600ff===se[_0x2fbde3(0x4c0)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x1d5c18(0x3a3)][_0x1d5c18(0x215)]['pipe'](A['takeUntil'](this[_0x1d5c18(0x57d)]))[_0x1d5c18(0x25e)](_0xec47b9=>{const _0x3be182=_0x1d5c18,_0x5af979=_0xec47b9['eventID'];_0x5af979===S[_0x3be182(0x416)][_0x3be182(0x326)]&&this[_0x3be182(0x5ef)](_0xec47b9),_0x5af979===S['CollaborationEvent'][_0x3be182(0x3ed)]&&this[_0x3be182(0x580)](_0xec47b9);}),this[_0x1d5c18(0x197)](),this['disposeWithMe'](this['_commandService'][_0x1d5c18(0x5f9)](_0x12c786=>{const _0x2d3261=_0x1d5c18;if(this[_0x2d3261(0x1fd)]&&_0x12c786['id']===k['SetSelectionsOperation']['id']&&_0x12c786[_0x2d3261(0x389)][_0x2d3261(0x4e3)]===this[_0x2d3261(0x604)]){const _0x334727=_0x12c786[_0x2d3261(0x389)];this[_0x2d3261(0x40c)](_0x334727[_0x2d3261(0x442)],_0x334727[_0x2d3261(0x25b)][0x0]);}})));}[_0x1f2fa(0x5ef)](_0x2c982a){const _0x2dd8bb=_0x1f2fa;var _0x127ca2,_0x25eedf;const {memberID:_0x4dbf13,selection:_0x43e0a9}=_0x2c982a[_0x2dd8bb(0x462)],{sheetName:_0x14b6a6,range:_0x4db5fd}=Pt[_0x2dd8bb(0x39c)](_0x43e0a9),_0x317ce3={'name':(_0x25eedf=(_0x127ca2=this['_memberService'][_0x2dd8bb(0x5c6)](this[_0x2dd8bb(0x604)],_0x4dbf13))==null?void 0x0:_0x127ca2['name'])!=null?_0x25eedf:_0x2dd8bb(0x49f),'range':this[_0x2dd8bb(0x245)](_0x14b6a6,_0x4db5fd),'sheetID':_0x14b6a6,'color':this['_colorAssignService'][_0x2dd8bb(0x235)](_0x4dbf13),'selection':_0x43e0a9},_0x410513=this['cursorInfo'];_0x410513['set'](_0x4dbf13,_0x317ce3),this['_cursorInfo$']['next'](_0x410513);}[_0x1f2fa(0x580)](_0x13e18f){const _0x3ad461=_0x1f2fa,{memberID:_0x49d45f}=_0x13e18f[_0x3ad461(0x462)],_0x1aea11=this['cursorInfo'];_0x1aea11[_0x3ad461(0x2e4)](_0x49d45f),this[_0x3ad461(0x606)][_0x3ad461(0x497)](_0x1aea11);}[_0x1f2fa(0x245)](_0x1fc81f,_0xca2b00){const _0x3bfc2e=_0x1f2fa;var _0x41911a,_0x3f005b;const _0x5ea11a=(_0x3f005b=(_0x41911a=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x3bfc2e(0x604)]))==null?void 0x0:_0x41911a[_0x3bfc2e(0x1ea)](_0x1fc81f))==null?void 0x0:_0x3f005b[_0x3bfc2e(0x34d)]();return(_0x5ea11a==null?void 0x0:_0x5ea11a['find'](_0x1d3a77=>a[_0x3bfc2e(0x2f9)][_0x3bfc2e(0x42d)](_0x1d3a77,_0xca2b00)))||_0xca2b00;}['_onRefRangeChange'](){const _0x13d0d3=_0x1f2fa,_0x4f873e=new a[(_0x13d0d3(0x2af))](),_0x32b4e1=ts(),_0x4f5305=()=>{const _0x413bc7=_0x13d0d3;_0x4f873e[_0x413bc7(0x366)]();const _0x1e1931=(_0x3ddb4a,_0x5c05f0,_0x4a7f86,_0x88b31a)=>{const _0x5d0ef5=_0x413bc7;let _0x116fdb=[];switch(_0x3ddb4a['id']){case k[_0x5d0ef5(0x49e)][_0x5d0ef5(0x16f)]:{_0x116fdb=k[_0x5d0ef5(0x2d2)](_0x3ddb4a,_0x88b31a);break;}case k[_0x5d0ef5(0x49e)]['DeleteRangeMoveUpCommandId']:{_0x116fdb=k[_0x5d0ef5(0x407)](_0x3ddb4a,_0x88b31a);break;}case k[_0x5d0ef5(0x49e)]['InsertColCommandId']:{_0x116fdb=k['handleInsertCol'](_0x3ddb4a,_0x88b31a);break;}case k[_0x5d0ef5(0x49e)][_0x5d0ef5(0x59e)]:{_0x116fdb=k[_0x5d0ef5(0x269)](_0x3ddb4a,_0x88b31a);break;}case k[_0x5d0ef5(0x49e)][_0x5d0ef5(0x588)]:{_0x116fdb=k[_0x5d0ef5(0x611)](_0x3ddb4a,_0x88b31a);break;}case k[_0x5d0ef5(0x49e)][_0x5d0ef5(0x1d3)]:{_0x116fdb=k['handleInsertRow'](_0x3ddb4a,_0x88b31a);break;}case k[_0x5d0ef5(0x49e)][_0x5d0ef5(0x217)]:{_0x116fdb=k[_0x5d0ef5(0x23e)](_0x3ddb4a,_0x88b31a);break;}case k[_0x5d0ef5(0x49e)][_0x5d0ef5(0x53d)]:{_0x116fdb=k[_0x5d0ef5(0x52a)](_0x3ddb4a,_0x88b31a);break;}case k['EffectRefRangId'][_0x5d0ef5(0x1e5)]:{_0x116fdb=k[_0x5d0ef5(0x33d)](_0x3ddb4a,_0x88b31a);break;}}const _0x30df0c=k['runRefRangeMutations'](_0x116fdb,_0x88b31a),_0xadf502=this[_0x5d0ef5(0x17c)][_0x5d0ef5(0x2f6)](_0x5c05f0);if(_0xadf502&&_0x30df0c){const _0x2b44af={..._0xadf502,'range':_0x30df0c};this[_0x5d0ef5(0x17c)]['set'](_0x5c05f0,_0x2b44af),_0x32b4e1(()=>{const _0x59f2d8=_0x5d0ef5,_0x4338af=this[_0x59f2d8(0x414)][_0x59f2d8(0x475)](_0x30df0c,_0x49dd4a=>(_0x4338af[_0x59f2d8(0x366)](),_0x1e1931(_0x49dd4a,_0x5c05f0,_0x4a7f86,_0x30df0c)));_0x4f873e[_0x59f2d8(0x515)](_0x4338af);});}return{'redos':[],'undos':[]};};this[_0x413bc7(0x17c)][_0x413bc7(0x601)]((_0x287c40,_0x5137c0)=>{const _0x1f255d=_0x413bc7,{range:_0x432490,sheetID:_0x116314}=_0x287c40,_0x4fa60f=this[_0x1f255d(0x414)]['registerRefRange'](_0x432490,_0xe53123=>(_0x4fa60f[_0x1f255d(0x366)](),_0x1e1931(_0xe53123,_0x5137c0,_0x116314,_0x432490)));_0x4f873e[_0x1f255d(0x515)](_0x4fa60f);});};this[_0x13d0d3(0x305)](a[_0x13d0d3(0x5ad)](this[_0x13d0d3(0x606)][_0x13d0d3(0x25e)](()=>{_0x4f5305();})));}['_toggleOnline'](){const _0x529a21=_0x1f2fa;var _0x56ba14,_0x515ac7;if(this[_0x529a21(0x1fd)]=!0x0,((_0x56ba14=this[_0x529a21(0x51c)][_0x529a21(0x2a3)]())==null?void 0x0:_0x56ba14[_0x529a21(0x4ea)]())!==this[_0x529a21(0x604)])return;const _0x1f48a9=(_0x515ac7=this['_injector'][_0x529a21(0x2f6)](k[_0x529a21(0x600)])[_0x529a21(0x16b)]())==null?void 0x0:_0x515ac7[0x0],_0x37952e=this['_univerInstanceService'][_0x529a21(0x367)](a[_0x529a21(0x5c7)]['UNIVER_SHEET'])[_0x529a21(0x1db)]();_0x1f48a9&&_0x37952e&&this[_0x529a21(0x40c)](_0x37952e[_0x529a21(0x2d3)](),_0x1f48a9);}[_0x1f2fa(0x1f8)](){this['_online']=!0x1;}};St=Zi([be(0x2,a['Inject'](a[_0x1f2fa(0x35d)])),be(0x3,a[_0x1f2fa(0x28d)](Ot)),be(0x4,a[_0x1f2fa(0x28d)](exports['MemberService'])),be(0x5,a[_0x1f2fa(0x562)]),be(0x6,a[_0x1f2fa(0x51f)]),be(0x7,a['Inject'](k[_0x1f2fa(0x450)]))],St);var ns=Object[_0x1f2fa(0x4e5)],is=Object[_0x1f2fa(0x40d)],ss=(_0x38d583,_0x313fde,_0x1444bf,_0x512aa2)=>{const _0x1d49d2=_0x1f2fa;for(var _0x1281f9=_0x512aa2>0x1?void 0x0:_0x512aa2?is(_0x313fde,_0x1444bf):_0x313fde,_0x22b9aa=_0x38d583[_0x1d49d2(0x339)]-0x1,_0x146677;_0x22b9aa>=0x0;_0x22b9aa--)(_0x146677=_0x38d583[_0x22b9aa])&&(_0x1281f9=(_0x512aa2?_0x146677(_0x313fde,_0x1444bf,_0x1281f9):_0x146677(_0x1281f9))||_0x1281f9);return _0x512aa2&&_0x1281f9&&ns(_0x313fde,_0x1444bf,_0x1281f9),_0x1281f9;},nt=(_0x51e9fc,_0x359685)=>(_0x518ae7,_0xb0e7c3)=>_0x359685(_0x518ae7,_0xb0e7c3,_0x51e9fc);let De=class extends a['RxDisposable']{constructor(_0x12ceaf,_0x440ec4,_0x1b573a){const _0x13eab5=_0x1f2fa;super(),I(this,'_entities',new Map()),I(this,_0x13eab5(0x5a6),new A[(_0x13eab5(0x2ba))]()),(this[_0x13eab5(0x51c)]=_0x12ceaf,this[_0x13eab5(0x2f7)]=_0x440ec4,this[_0x13eab5(0x60f)]=_0x1b573a,this[_0x13eab5(0x48d)]());}['dispose'](){const _0x38151c=_0x1f2fa;super[_0x38151c(0x366)](),this[_0x38151c(0x5a6)]['complete'](),this[_0x38151c(0x1e9)][_0x38151c(0x601)](_0x8ceb1c=>_0x8ceb1c[_0x38151c(0x366)]());}[_0x1f2fa(0x1f4)](_0x3870c3){const _0xcd9f87=_0x1f2fa;return this[_0xcd9f87(0x1e9)]['has'](_0x3870c3)?this['_entities']['get'](_0x3870c3)[_0xcd9f87(0x455)]:this[_0xcd9f87(0x5a6)][_0xcd9f87(0x5f2)](A[_0xcd9f87(0x3db)](_0x2a4283=>_0x2a4283[_0xcd9f87(0x604)]===_0x3870c3),A['switchMap'](_0xbdeb75=>_0xbdeb75['cursorInfo$']));}['_init'](){const _0x4ded7e=_0x1f2fa;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x4ded7e(0x5c7)][_0x4ded7e(0x4c3)])[_0x4ded7e(0x5f2)](A[_0x4ded7e(0x5d4)](this[_0x4ded7e(0x57d)]))[_0x4ded7e(0x25e)](async _0x4692b0=>{const _0x46a7fd=_0x4ded7e,_0x2395da=_0x4692b0['getUnitId'](),_0x19dd26=await this[_0x46a7fd(0x262)](_0x2395da);this[_0x46a7fd(0x5a6)][_0x46a7fd(0x497)](_0x19dd26),this[_0x46a7fd(0x1e9)][_0x46a7fd(0x329)](_0x2395da,_0x19dd26);}),this[_0x4ded7e(0x51c)][_0x4ded7e(0x374)](a[_0x4ded7e(0x5c7)]['UNIVER_DOC'])['pipe'](A[_0x4ded7e(0x5d4)](this['dispose$']))['pipe'](A[_0x4ded7e(0x3db)](_0x4c8226=>!_0x4c8226[_0x4ded7e(0x4ea)]()[_0x4ded7e(0x565)]('__')))['subscribe'](async _0x1c9295=>{const _0x2af196=_0x4ded7e,_0x2397db=_0x1c9295[_0x2af196(0x4ea)](),_0x13538a=await this[_0x2af196(0x544)](_0x2397db);this[_0x2af196(0x5a6)]['next'](_0x13538a),this['_entities'][_0x2af196(0x329)](_0x2397db,_0x13538a);}),A[_0x4ded7e(0x1b6)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x4ded7e(0x5c7)][_0x4ded7e(0x505)]),this[_0x4ded7e(0x51c)]['getTypeOfUnitDisposed$'](a[_0x4ded7e(0x5c7)][_0x4ded7e(0x4c3)]))[_0x4ded7e(0x5f2)](A['takeUntil'](this['dispose$']))[_0x4ded7e(0x25e)](_0x359034=>{const _0x5bf8c7=_0x4ded7e,_0x155d47=_0x359034[_0x5bf8c7(0x4ea)](),_0xb1f000=this[_0x5bf8c7(0x1e9)][_0x5bf8c7(0x2f6)](_0x155d47);_0xb1f000&&(_0xb1f000[_0x5bf8c7(0x366)](),this[_0x5bf8c7(0x1e9)][_0x5bf8c7(0x2e4)](_0x155d47));});}async[_0x1f2fa(0x262)](_0x512fa2){const _0x5f4ca3=_0x1f2fa,_0x490077=await this['_collabSessionService'][_0x5f4ca3(0x5b5)](_0x512fa2),_0x51c3f5=this['_injector'][_0x5f4ca3(0x33e)](St,_0x512fa2,_0x490077);return _0x51c3f5[_0x5f4ca3(0x485)](),_0x51c3f5;}async[_0x1f2fa(0x544)](_0x5a6098){const _0x1b95c8=_0x1f2fa,_0x23f35c=await this['_collabSessionService'][_0x1b95c8(0x5b5)](_0x5a6098),_0x3dd31c=this[_0x1b95c8(0x2f7)][_0x1b95c8(0x33e)](mt,_0x5a6098,_0x23f35c);return _0x3dd31c[_0x1b95c8(0x485)](),_0x3dd31c;}};De=ss([nt(0x0,a[_0x1f2fa(0x562)]),nt(0x1,a['Inject'](a[_0x1f2fa(0x35d)])),nt(0x2,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x1c0)]))],De);const Le=0x14,Ht=0xc8,it=0x4,rs=0x5;function os(_0x5d30de,_0x588383){const _0x466acf=_0x1f2fa;let {radius:_0x8ebdcd,width:_0x230e3e,height:_0x428f9c}=_0x588383;_0x8ebdcd=_0x8ebdcd!=null?_0x8ebdcd:0x0,_0x230e3e=_0x230e3e!=null?_0x230e3e:0x1e,_0x428f9c=_0x428f9c!=null?_0x428f9c:0x1e;let _0x47fab0=0x0,_0x320075=0x0,_0x4a4a29=0x0;_0x47fab0=_0x320075=_0x4a4a29=Math['min'](_0x8ebdcd,_0x230e3e/0x2,_0x428f9c/0x2),_0x5d30de[_0x466acf(0x1a5)](),_0x5d30de[_0x466acf(0x573)](_0x47fab0,0x0),_0x5d30de['lineTo'](_0x230e3e-_0x320075,0x0),_0x5d30de[_0x466acf(0x59d)](_0x230e3e-_0x320075,_0x320075,_0x320075,Math['PI']*0x3/0x2,0x0,!0x1),_0x5d30de[_0x466acf(0x578)](_0x230e3e,_0x428f9c-_0x4a4a29),_0x5d30de['arc'](_0x230e3e-_0x4a4a29,_0x428f9c-_0x4a4a29,_0x4a4a29,0x0,Math['PI']/0x2,!0x1),_0x5d30de[_0x466acf(0x578)](0x0,_0x428f9c),_0x5d30de['lineTo'](0x0,_0x47fab0),_0x5d30de[_0x466acf(0x59d)](_0x47fab0,_0x47fab0,_0x47fab0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5d30de[_0x466acf(0x3c1)](),_0x588383[_0x466acf(0x461)]&&(_0x5d30de['save'](),_0x5d30de['fillStyle']=_0x588383['fill'],_0x588383['fillRule']===_0x466acf(0x4f3)?_0x5d30de[_0x466acf(0x461)]('evenodd'):_0x5d30de[_0x466acf(0x461)](),_0x5d30de[_0x466acf(0x383)]());}class ze extends K[_0x1f2fa(0x476)]{constructor(_0x8283c1,_0x2bdfcc){const _0x4a5833=_0x1f2fa;super(_0x8283c1,_0x2bdfcc),I(this,_0x4a5833(0x47f)),I(this,_0x4a5833(0x45e)),(this[_0x4a5833(0x47f)]=_0x2bdfcc==null?void 0x0:_0x2bdfcc[_0x4a5833(0x47f)],this[_0x4a5833(0x45e)]=_0x2bdfcc==null?void 0x0:_0x2bdfcc[_0x4a5833(0x45e)]);}static[_0x1f2fa(0x2a5)](_0x459ff4,_0x2cd696){const _0xbde973=_0x1f2fa,{text:_0xcb9512,color:_0x5a0c31}=_0x2cd696;_0x459ff4[_0xbde973(0x160)](),_0x459ff4['font']=_0xbde973(0x222);const _0xd8938e=_0x459ff4[_0xbde973(0x3fd)](_0xcb9512)[_0xbde973(0x280)],_0x46454f=Math[_0xbde973(0x3a4)](_0xd8938e+0x2*it,Ht);os(_0x459ff4,{'height':Le,'radius':0x4,'width':_0x46454f,'fill':_0x5a0c31,'evented':!0x1}),_0x459ff4[_0xbde973(0x287)]='#FFF';const _0x239794=it,_0x49a259=Le-rs,_0x4be87b=Ht-0x2*it;if(_0xd8938e>_0x4be87b){let _0x46135d='',_0x528170=0x0;for(const _0x56400c of _0xcb9512){const _0x527f33=_0x459ff4[_0xbde973(0x3fd)](_0x56400c)['width'];if(_0x528170+_0x527f33<=_0x4be87b-_0x459ff4[_0xbde973(0x3fd)](_0xbde973(0x4cb))[_0xbde973(0x280)])_0x46135d+=_0x56400c,_0x528170+=_0x527f33;else{_0x46135d+=_0xbde973(0x4cb);break;}}_0x459ff4[_0xbde973(0x5ed)](_0x46135d,_0x239794,_0x49a259);}else _0x459ff4[_0xbde973(0x5ed)](_0xcb9512,_0x239794,_0x49a259);_0x459ff4['restore']();}[_0x1f2fa(0x405)](_0x4b5c58){const _0x5dd522=_0x1f2fa;ze[_0x5dd522(0x2a5)](_0x4b5c58,this);}}const st='collab-text-anchor-',as='collab-text-range-',cs=_0x1f2fa(0x439),Ue=0x6,ls=1.5,rt=0x4,hs=1.5,_s=_0x1f2fa(0x2e5);class Bt{constructor(_0x4c4e86,_0x5d1be3,_0x4a7661,_0x3e62d6){const _0x2b8b1c=_0x1f2fa;I(this,_0x2b8b1c(0x41d),[]),I(this,'_anchor',null),I(this,_0x2b8b1c(0x2ed),null),I(this,_0x2b8b1c(0x433),null),I(this,'_hideTimer',null),I(this,_0x2b8b1c(0x3ba),null),(this[_0x2b8b1c(0x2eb)]=_0x4c4e86,this['_scene']=_0x5d1be3,this[_0x2b8b1c(0x2d9)]=_0x4a7661,this[_0x2b8b1c(0x34a)]=_0x3e62d6,this['_render']());}set[_0x1f2fa(0x345)](_0x228ee9){const _0x3ac67e=_0x1f2fa;_0x228ee9?(this[_0x3ac67e(0x433)]&&this[_0x3ac67e(0x433)][_0x3ac67e(0x4a2)](),this[_0x3ac67e(0x2ed)]&&this[_0x3ac67e(0x2ed)]['show']()):(this[_0x3ac67e(0x433)]&&this[_0x3ac67e(0x433)][_0x3ac67e(0x472)](),this[_0x3ac67e(0x2ed)]&&this[_0x3ac67e(0x2ed)][_0x3ac67e(0x4a2)]());}['dispose'](){const _0x5a7438=_0x1f2fa;for(const _0x23b4c2 of this[_0x5a7438(0x41d)])_0x23b4c2[_0x5a7438(0x366)]();this[_0x5a7438(0x2ed)]&&this['_textBubble'][_0x5a7438(0x366)](),this[_0x5a7438(0x433)]&&this[_0x5a7438(0x433)][_0x5a7438(0x366)](),this[_0x5a7438(0x3b1)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this[_0x5a7438(0x3ba)]();}[_0x1f2fa(0x2d4)](){const _0x4ac786=_0x1f2fa;var _0x14d812;const {_docSkeleton:_0x7ef5ba,_document:_0x3cbe2d}=this,{color:_0x3f55f5,name:_0x186128,ranges:_0x5cc744}=this[_0x4ac786(0x2eb)],_0x5964fe=_0x3cbe2d[_0x4ac786(0x488)](),{docsLeft:_0x42ef71,docsTop:_0xb5e707}=_0x5964fe,_0x25f4bc=new J[(_0x4ac786(0x3b7))](_0x5964fe,_0x7ef5ba);for(const {startOffset:_0x5c47a6,endOffset:_0x33c808,rangeType:_0x1183b9,segmentId:_0x1cbebc,segmentPage:_0x4171a8,collapsed:_0xd513b,isActive:_0x2f930b}of _0x5cc744){const _0x14370a=_0x7ef5ba[_0x4ac786(0x2dc)](_0x5c47a6,!0x0,_0x1cbebc,_0x4171a8);let _0x4a513e=_0x7ef5ba['findNodePositionByCharIndex'](_0x33c808,!0x0,_0x1cbebc,_0x4171a8);if(_0x4a513e==null&&(_0x4a513e=_0x7ef5ba[_0x4ac786(0x2dc)](_0x33c808-0x1,!0x1,_0x1cbebc,_0x4171a8)),_0x2f930b){const {contentBoxPointGroup:_0x17b2eb}=_0x25f4bc[_0x4ac786(0x33b)](_0x4a513e,_0x4a513e);if(_0x17b2eb[_0x4ac786(0x339)]===0x0)continue;this[_0x4ac786(0x1c2)](_0x3f55f5,_0x17b2eb,_0x42ef71,_0xb5e707,_0x186128),this[_0x4ac786(0x3ba)]=this[_0x4ac786(0x2e3)]();}if(_0x14370a&&_0x4a513e){if(_0x1183b9===a['DOC_RANGE_TYPE'][_0x4ac786(0x362)]){const _0x4e5e7f=new J[(_0x4ac786(0x574))](_0x5964fe,_0x7ef5ba),{pointGroup:_0x3a1a14}=(_0x14d812=_0x4e5e7f[_0x4ac786(0x33b)](_0x14370a,_0x4a513e))!=null?_0x14d812:{};if(_0x3a1a14==null||_0x3a1a14[_0x4ac786(0x339)]===0x0)continue;this[_0x4ac786(0x325)](_0x3f55f5,_0x3a1a14,_0x42ef71,_0xb5e707);}else{if(!_0xd513b){const {borderBoxPointGroup:_0x31ce8c}=_0x25f4bc['getRangePointData'](_0x14370a,_0x4a513e);if(_0x31ce8c['length']===0x0)continue;this['_drawTextRange'](_0x3f55f5,_0x31ce8c,_0x42ef71,_0xb5e707);}}}}}[_0x1f2fa(0x1c2)](_0x382840,_0x1e0612,_0x32983e,_0x39af23,_0x560244){const _0x2e5e72=_0x1f2fa,_0x4b2eac=this[_0x2e5e72(0x5a0)](_0x1e0612),{left:_0x28e0a5,top:_0x17f580,height:_0xa7a51f}=_0x4b2eac,_0x500a63=this[_0x2e5e72(0x2e2)](),_0x190f0d=hs/_0x500a63,_0x29247a=new K[(_0x2e5e72(0x3ca))](st+a['Tools'][_0x2e5e72(0x452)](Ue),{'left':_0x28e0a5+_0x32983e-_0x190f0d,'top':_0x17f580+_0x39af23,'height':_0xa7a51f,'width':ls,'fill':_0x382840||K[_0x2e5e72(0x507)](a[_0x2e5e72(0x375)]['black'],0x0),'strokeWidth':_0x190f0d,'stroke':_s,'evented':!0x0});this[_0x2e5e72(0x3b1)]=_0x29247a,this[_0x2e5e72(0x512)][_0x2e5e72(0x2e8)](_0x29247a,J[_0x2e5e72(0x449)]);const _0x517ddf=new K['Rect'](st+a['Tools']['generateRandomId'](Ue),{'left':_0x28e0a5+_0x32983e-_0x190f0d,'top':_0x17f580+_0x39af23-rt/0x2,'height':rt,'width':rt,'fill':_0x382840||K[_0x2e5e72(0x507)](a[_0x2e5e72(0x375)][_0x2e5e72(0x3d7)],0x0),'strokeWidth':0x0,'stroke':_0x382840||K[_0x2e5e72(0x507)](a[_0x2e5e72(0x375)][_0x2e5e72(0x3d7)],0x0),'evented':!0x1});this[_0x2e5e72(0x433)]=_0x517ddf,this['_scene'][_0x2e5e72(0x2e8)](_0x517ddf,J[_0x2e5e72(0x449)]);const _0x1e2195=new ze(st+a['Tools'][_0x2e5e72(0x452)](Ue),{'left':_0x28e0a5+_0x32983e-_0x190f0d,'top':_0x17f580+_0x39af23-Le,'text':_0x560244,'color':_0x382840});this[_0x2e5e72(0x2ed)]=_0x1e2195,this['_scene'][_0x2e5e72(0x2e8)](_0x1e2195,J[_0x2e5e72(0x449)]),this[_0x2e5e72(0x345)]=!0x1;}['_handleHover'](){const _0x112706=_0x1f2fa,_0x5f3ca1=this['_anchor'][_0x112706(0x57b)][_0x112706(0x301)](()=>{const _0x56e5e2=_0x112706;this[_0x56e5e2(0x345)]=!0x0;}),_0x5bb12f=this[_0x112706(0x3b1)][_0x112706(0x493)][_0x112706(0x301)](()=>{const _0x4e0d61=_0x112706;this[_0x4e0d61(0x276)]&&clearTimeout(this[_0x4e0d61(0x276)]),this[_0x4e0d61(0x276)]=setTimeout(()=>{const _0x5a0238=_0x4e0d61;this[_0x5a0238(0x345)]=!0x1;},0x7d0);});return()=>{const _0x2c9a78=_0x112706;_0x5f3ca1['unsubscribe'](),_0x5bb12f[_0x2c9a78(0x484)]();};}[_0x1f2fa(0x3b2)](_0x41916e,_0x6a7ba1,_0x341c16,_0xff40aa){const _0x1c153f=_0x1f2fa,_0x36a948=new a[(_0x1c153f(0x525))](_0x41916e)['setAlpha'](0.2)[_0x1c153f(0x56d)](),_0x511921=new K[(_0x1c153f(0x58c))](as+a[_0x1c153f(0x34c)][_0x1c153f(0x452)](Ue),{'pointsGroup':_0x6a7ba1,'fill':_0x36a948||K[_0x1c153f(0x507)](a[_0x1c153f(0x375)][_0x1c153f(0x3d7)],0.2),'left':_0x341c16,'top':_0xff40aa,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1c153f(0x41d)][_0x1c153f(0x19c)](_0x511921),this[_0x1c153f(0x512)][_0x1c153f(0x2e8)](_0x511921,J['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x43dd79,_0x154e8f,_0x16354d,_0x4f196b){const _0x1a06f5=_0x1f2fa,_0x3b9718=new a[(_0x1a06f5(0x525))](_0x43dd79)[_0x1a06f5(0x427)](0.2)[_0x1a06f5(0x56d)](),_0xa71f3d=new K[(_0x1a06f5(0x58c))](cs+a[_0x1a06f5(0x34c)][_0x1a06f5(0x452)](Ue),{'pointsGroup':_0x154e8f,'fill':_0x3b9718||K[_0x1a06f5(0x507)](a[_0x1a06f5(0x375)][_0x1a06f5(0x3d7)],0.2),'left':_0x16354d,'top':_0x4f196b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a06f5(0x41d)][_0x1a06f5(0x19c)](_0xa71f3d),this['_scene'][_0x1a06f5(0x2e8)](_0xa71f3d,J[_0x1a06f5(0x449)]);}[_0x1f2fa(0x5a0)](_0x2966a5){const _0x103431=_0x2966a5[0x0],_0x271d3f=_0x103431[0x0],_0x5e7814=_0x103431[0x2],{x:_0x26e7d9,y:_0x167530}=_0x271d3f,{x:_0x1edb23,y:_0x270c09}=_0x5e7814;return{'left':_0x26e7d9,'top':_0x167530,'width':_0x1edb23-_0x26e7d9,'height':_0x270c09-_0x167530};}['_getScale'](){const _0x2a39cf=_0x1f2fa,{scaleX:_0x45ff69,scaleY:_0x3695b6}=this['_scene'][_0x2a39cf(0x37f)]();return Math[_0x2a39cf(0x4ce)](_0x45ff69,_0x3695b6);}}var us=Object[_0x1f2fa(0x4e5)],ds=Object[_0x1f2fa(0x40d)],fs=(_0x4fd7b5,_0x445d68,_0x313852,_0x4c03d0)=>{const _0x83b7fb=_0x1f2fa;for(var _0x5c33a8=_0x4c03d0>0x1?void 0x0:_0x4c03d0?ds(_0x445d68,_0x313852):_0x445d68,_0x489721=_0x4fd7b5[_0x83b7fb(0x339)]-0x1,_0x1b873a;_0x489721>=0x0;_0x489721--)(_0x1b873a=_0x4fd7b5[_0x489721])&&(_0x5c33a8=(_0x4c03d0?_0x1b873a(_0x445d68,_0x313852,_0x5c33a8):_0x1b873a(_0x5c33a8))||_0x5c33a8);return _0x4c03d0&&_0x5c33a8&&us(_0x445d68,_0x313852,_0x5c33a8),_0x5c33a8;},je=(_0x1d7f61,_0x11a3b1)=>(_0x2ac21f,_0x3b0c31)=>_0x11a3b1(_0x2ac21f,_0x3b0c31,_0x1d7f61);let pt=class extends a[_0x1f2fa(0x2bd)]{constructor(_0x477971,_0x22da3c,_0x4220bc,_0x2de00e,_0x524797){const _0xca61dd=_0x1f2fa;super(),I(this,_0xca61dd(0x244),[]),I(this,'_cursors',[]),(this[_0xca61dd(0x199)]=_0x477971,this['_docSkeletonManagerService']=_0x22da3c,this[_0xca61dd(0x509)]=_0x4220bc,this[_0xca61dd(0x5ab)]=_0x2de00e,this[_0xca61dd(0x4a9)]=_0x524797,this[_0xca61dd(0x48d)]());}['_init'](){const _0x2cdd7b=_0x1f2fa,_0x4a9070=this['_context'][_0x2cdd7b(0x4e3)],_0x5569dd=this['_docSkeletonManagerService'];this[_0x2cdd7b(0x305)](A[_0x2cdd7b(0x5b7)]([this[_0x2cdd7b(0x509)][_0x2cdd7b(0x1f4)](_0x4a9070),this[_0x2cdd7b(0x4a9)][_0x2cdd7b(0x2b0)]])[_0x2cdd7b(0x5f2)](V[_0x2cdd7b(0x50e)](([_0x151da9,_0x3be2a8])=>({'skeleton':_0x5569dd[_0x2cdd7b(0x277)](),'cursors':[..._0x151da9[_0x2cdd7b(0x284)]()][_0x2cdd7b(0x252)](_0x3e6908=>({..._0x3e6908,'color':_0x3be2a8[_0x3e6908[_0x2cdd7b(0x47f)]]}))})))[_0x2cdd7b(0x25e)](_0x32d198=>{const _0x4ef254=_0x2cdd7b;if(this[_0x4ef254(0x5b1)](),_0x32d198){const {skeleton:_0x16dab5,cursors:_0xb0685f}=_0x32d198;this[_0x4ef254(0x26b)](_0x16dab5,_0xb0685f);}})),this[_0x2cdd7b(0x5a5)](),this[_0x2cdd7b(0x609)]();}['_updateCollabCursors'](_0x27f0a,_0x4a0210){const _0x25095e=_0x1f2fa,{scene:_0x5ed97d,mainComponent:_0x1d83d5}=this[_0x25095e(0x199)],_0x1e65ac=_0x4a0210[_0x25095e(0x50e)](_0x44b5df=>new Bt(_0x44b5df,_0x5ed97d,_0x27f0a,_0x1d83d5));this[_0x25095e(0x244)]=_0x1e65ac,this['_cursors']=_0x4a0210;}[_0x1f2fa(0x47e)](){const _0x39efe2=_0x1f2fa;this[_0x39efe2(0x5b1)]();const {scene:_0x3aa9c4,mainComponent:_0x34fcf3}=this[_0x39efe2(0x199)],_0x1b241c=this['_docSkeletonManagerService']['getSkeleton'](),_0x2484c8=this[_0x39efe2(0x52b)][_0x39efe2(0x50e)](_0x12220d=>new Bt(_0x12220d,_0x3aa9c4,_0x1b241c,_0x34fcf3));this['_cursorShapes']=_0x2484c8;}['_removeCollabCursors'](){const _0x277017=_0x1f2fa;this[_0x277017(0x244)][_0x277017(0x601)](_0x2a72cd=>_0x2a72cd[_0x277017(0x366)]()),this[_0x277017(0x244)]=[];}[_0x1f2fa(0x609)](){const _0x3f47ba=_0x1f2fa,_0x1bbd65=[J['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x3f47ba(0x5ab)][_0x3f47ba(0x5f9)](_0x3356bc=>{const _0x3e595d=_0x3f47ba;_0x1bbd65['includes'](_0x3356bc['id'])&&_0x3356bc['params'][_0x3e595d(0x4e3)]===this[_0x3e595d(0x199)]['unitId']&&this[_0x3e595d(0x47e)]();}));}[_0x1f2fa(0x5a5)](){const _0xfc09d=_0x1f2fa;this['disposeWithMe'](a[_0xfc09d(0x595)](this[_0xfc09d(0x199)]['engine']['onTransformChange$'])[_0xfc09d(0x5f2)](V['filter'](_0x1bddc8=>_0x1bddc8[_0xfc09d(0x1eb)]===K[_0xfc09d(0x230)]['resize']),V[_0xfc09d(0x356)](0x10))['subscribe'](()=>{const _0x2064f4=_0xfc09d;this[_0x2064f4(0x47e)]();}));}};pt=fs([je(0x1,a[_0x1f2fa(0x28d)](ye[_0x1f2fa(0x401)])),je(0x2,a[_0x1f2fa(0x28d)](De)),je(0x3,a[_0x1f2fa(0x51f)]),je(0x4,a['Inject'](a[_0x1f2fa(0x415)]))],pt);const vs=0x1,ms=1.5;class Sn extends K[_0x1f2fa(0x476)]{constructor(_0x335d77,_0x2b85f6){const _0x44a47b=_0x1f2fa;super(_0x335d77,_0x2b85f6),I(this,_0x44a47b(0x21f)),I(this,_0x44a47b(0x581),!0x1),I(this,_0x44a47b(0x41a)),I(this,_0x44a47b(0x483),''),I(this,_0x44a47b(0x188),_0x44a47b(0x492)),I(this,'_backgroundColor'),(_0x2b85f6&&this['setShapeProps'](_0x2b85f6),this[_0x44a47b(0x57b)][_0x44a47b(0x301)](()=>this[_0x44a47b(0x298)]({'hovered':!0x0})),this[_0x44a47b(0x493)]['subscribeEvent'](()=>this[_0x44a47b(0x298)]({'hovered':!0x1})));}[_0x1f2fa(0x298)](_0x6eed2e){const _0xb16370=_0x1f2fa;var _0x2e540f,_0xf3a29a,_0x33d8db,_0x228fce,_0x8a1c30,_0x7f54ce;this[_0xb16370(0x21f)]=(_0x2e540f=_0x6eed2e['color'])!=null?_0x2e540f:this['_color'],this[_0xb16370(0x581)]=(_0xf3a29a=_0x6eed2e[_0xb16370(0x225)])!=null?_0xf3a29a:this[_0xb16370(0x581)],this['_range']=(_0x33d8db=_0x6eed2e['range'])!=null?_0x33d8db:this['_range'],this[_0xb16370(0x483)]=(_0x228fce=_0x6eed2e['name'])!=null?_0x228fce:this['_name'],this['_labelPosition']=(_0x8a1c30=_0x6eed2e[_0xb16370(0x46d)])!=null?_0x8a1c30:this[_0xb16370(0x188)],this[_0xb16370(0x44d)]=(_0x7f54ce=_0x6eed2e[_0xb16370(0x1ad)])!=null?_0x7f54ce:this[_0xb16370(0x44d)],this['transformByState']({'width':_0x6eed2e[_0xb16370(0x280)],'height':_0x6eed2e['height']});}[_0x1f2fa(0x4e9)](_0x2ad9db){const _0xb5030f=_0x1f2fa,{row:_0x407b70,column:_0x501baa}=_0x2ad9db;if(_0x407b70>=this[_0xb5030f(0x41a)][_0xb5030f(0x1f6)]&&_0x407b70<=this[_0xb5030f(0x41a)]['endRow']&&_0x501baa>=this[_0xb5030f(0x41a)][_0xb5030f(0x31c)]&&_0x501baa<=this[_0xb5030f(0x41a)]['endColumn']){this[_0xb5030f(0x298)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x1f2fa(0x3b8)](_0x1274c6){return!0x1;}['_draw'](_0x1738fb){const _0x4b7e62=_0x1f2fa;K[_0x4b7e62(0x3ca)]['drawWith'](_0x1738fb,{'width':this[_0x4b7e62(0x280)],'height':this[_0x4b7e62(0x255)],'strokeWidth':ms,'stroke':this[_0x4b7e62(0x21f)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x1738fb[_0x4b7e62(0x160)](),_0x1738fb['transform'](0x1,0x0,0x0,0x1,this[_0x4b7e62(0x280)],this[_0x4b7e62(0x188)]===_0x4b7e62(0x519)?0x0:-Le),ze[_0x4b7e62(0x2a5)](_0x1738fb,{'text':this[_0x4b7e62(0x483)],'color':this[_0x4b7e62(0x21f)]}),_0x1738fb[_0x4b7e62(0x383)]());}}var Ss=Object[_0x1f2fa(0x4e5)],ps=Object['getOwnPropertyDescriptor'],gs=(_0x55ac09,_0x394318,_0x23dbda,_0x38d58d)=>{const _0x49b544=_0x1f2fa;for(var _0x161f17=_0x38d58d>0x1?void 0x0:_0x38d58d?ps(_0x394318,_0x23dbda):_0x394318,_0x558035=_0x55ac09[_0x49b544(0x339)]-0x1,_0x271552;_0x558035>=0x0;_0x558035--)(_0x271552=_0x55ac09[_0x558035])&&(_0x161f17=(_0x38d58d?_0x271552(_0x394318,_0x23dbda,_0x161f17):_0x271552(_0x161f17))||_0x161f17);return _0x38d58d&&_0x161f17&&Ss(_0x394318,_0x23dbda,_0x161f17),_0x161f17;},ot=(_0x350ece,_0x346d7b)=>(_0x98826f,_0xde79f6)=>_0x346d7b(_0x98826f,_0xde79f6,_0x350ece);const Is=0x1389;let gt=class extends a[_0x1f2fa(0x2bd)]{constructor(_0x4171e4,_0xab4a86,_0x2283b7,_0x579a53){const _0x58fd6b=_0x1f2fa;super(),I(this,_0x58fd6b(0x52b),new Set()),I(this,_0x58fd6b(0x237),null),(this['_context']=_0x4171e4,this[_0x58fd6b(0x60d)]=_0xab4a86,this[_0x58fd6b(0x509)]=_0x2283b7,this[_0x58fd6b(0x4a9)]=_0x579a53,this[_0x58fd6b(0x48d)]());}['_init'](){const _0x3b6e58=_0x1f2fa;this[_0x3b6e58(0x60d)][_0x3b6e58(0x438)][_0x3b6e58(0x5f2)](V[_0x3b6e58(0x5d4)](this[_0x3b6e58(0x57d)]),V['switchMap'](_0x1b2875=>{const _0x42864f=_0x3b6e58;if(_0x1b2875){const _0xa64a14=_0x1b2875[_0x42864f(0x58b)];return A[_0x42864f(0x5b7)](this['_collabCursorController'][_0x42864f(0x1f4)](this[_0x42864f(0x199)]['unitId']),this['_themeService'][_0x42864f(0x2b0)])[_0x42864f(0x5f2)](V[_0x42864f(0x50e)](([_0x2a1f6e,_0x35b0e6])=>{const _0x393730=_0x42864f,_0x507417=new Map();return _0x2a1f6e[_0x393730(0x601)]((_0x5311eb,_0x14273e)=>{const _0x3c1c86=_0x393730;if(_0x5311eb[_0x3c1c86(0x3aa)]===_0xa64a14){const _0x41ddf6={..._0x5311eb};_0x41ddf6[_0x3c1c86(0x47f)]=_0x35b0e6[_0x5311eb[_0x3c1c86(0x47f)]],_0x507417[_0x3c1c86(0x329)](_0x14273e,_0x41ddf6);}}),{'skeleton':_0x1b2875,'cursors':_0x507417};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0x3b6e58(0x25e)](({skeleton:_0x37039,cursors:_0x3bc100})=>{const _0x3fd435=_0x3b6e58;this[_0x3fd435(0x5b1)](),_0x37039&&this[_0x3fd435(0x26b)](_0x37039,_0x3bc100);}),this['_sheetSkeletonManagerService'][_0x3b6e58(0x438)][_0x3b6e58(0x25e)](_0xc5e974=>{const _0x332886=_0x3b6e58;if(_0xc5e974==null)return;const {skeleton:_0x454a08}=_0xc5e974,{scene:_0x5d12a4}=this[_0x332886(0x199)];_0x5d12a4['onPointerMove$']['subscribeEvent'](a[_0x332886(0x4ad)](_0x1caefa=>{const _0x39d8ea=_0x332886;var _0x47d8c4,_0xeca869;const {offsetX:_0x325744,offsetY:_0x27f1c2}=_0x1caefa,{x:_0x2ec933,y:_0x126d48}=_0x5d12a4[_0x39d8ea(0x510)](K['Vector2']['FromArray']([_0x325744,_0x27f1c2])),{scaleX:_0x323190,scaleY:_0x71efc0}=_0x5d12a4[_0x39d8ea(0x37f)](),_0x412a97=_0x5d12a4[_0x39d8ea(0x35e)](Re[_0x39d8ea(0x279)]['VIEW_MAIN']),_0x23dd5c=_0x5d12a4[_0x39d8ea(0x1a0)](K[_0x39d8ea(0x596)][_0x39d8ea(0x3ab)]([_0x2ec933,_0x126d48]),_0x412a97),_0x45c931=_0x454a08['getCellPositionByOffset'](_0x325744,_0x27f1c2,_0x323190,_0x71efc0,_0x23dd5c);((_0x47d8c4=this[_0x39d8ea(0x237)])==null?void 0x0:_0x47d8c4['column'])===_0x45c931[_0x39d8ea(0x48b)]&&((_0xeca869=this[_0x39d8ea(0x237)])==null?void 0x0:_0xeca869[_0x39d8ea(0x1e0)])===_0x45c931[_0x39d8ea(0x1e0)]||this[_0x39d8ea(0x52b)][_0x39d8ea(0x601)](_0x1a8013=>{_0x1a8013['onMouseMove'](_0x45c931);});},0x64));});}[_0x1f2fa(0x26b)](_0x46a1e4,_0x19cca4){const _0x4581cf=_0x1f2fa;var _0x4ca5c6;const _0xc7723a=(_0x4ca5c6=this[_0x4581cf(0x60d)][_0x4581cf(0x471)]())==null?void 0x0:_0x4ca5c6['skeleton'];if(!_0xc7723a)return;const _0x5e94cd=this[_0x4581cf(0x49c)]();if(!_0x5e94cd)return;this[_0x4581cf(0x52b)][_0x4581cf(0x601)](_0x53f209=>{const _0x3fbade=_0x4581cf;_0x53f209[_0x3fbade(0x18c)]();});const {scene:_0x1cbeb1}=_0x5e94cd,_0x36ad34=Cs(Array[_0x4581cf(0x536)](_0x19cca4[_0x4581cf(0x284)]()))[_0x4581cf(0x50e)](_0x208173=>{const _0x595e83=_0x4581cf,{color:_0x4ae147,range:_0x3aa485,name:_0x2719b5,selection:_0x1828df,sheetID:_0x36d664}=_0x208173,{startColumn:_0x313eb0,startRow:_0xbf3d83,endColumn:_0x1d2ad8,endRow:_0x2b8e40}=_0x3aa485,_0x477650=Re['getCoordByCell'](_0xbf3d83,_0x313eb0,_0x1cbeb1,_0xc7723a),_0x334f32=Re['getCoordByCell'](_0x2b8e40,_0x1d2ad8,_0x1cbeb1,_0xc7723a),{columnHeaderHeightAndMarginTop:_0x3e0eb5}=_0xc7723a,{startX:_0xa92104,startY:_0x35b897}=_0x477650,{endX:_0xa39a76,endY:_0x29eaf1}=_0x334f32,_0x58acf5=_0xa39a76-_0xa92104,_0x10972c=_0x29eaf1-_0x35b897,_0xea2059={'labelPosition':_0x35b897-_0x3e0eb5>=Le?'top':_0x595e83(0x519),'sheetID':_0x36d664,'range':_0x3aa485,'color':_0x4ae147,'name':_0x2719b5,'selection':_0x1828df,'left':_0xa92104,'top':_0x35b897,'width':_0x58acf5,'height':_0x10972c,'evented':!0x1,'zIndex':Is};return new Sn(_0x2719b5,_0xea2059);});_0x1cbeb1[_0x4581cf(0x34e)](_0x36ad34,vs),this[_0x4581cf(0x52b)]=new Set(_0x36ad34);}['_removeCollabCursors'](){const _0x12e724=_0x1f2fa;var _0xc485c2;(_0xc485c2=this['_cursors'])==null||_0xc485c2[_0x12e724(0x601)](_0x3c457c=>_0x3c457c[_0x12e724(0x366)]());}[_0x1f2fa(0x49c)](){const _0x305718=_0x1f2fa;return Re['getSheetObject'](this[_0x305718(0x199)][_0x305718(0x460)],this[_0x305718(0x199)]);}};gt=gs([ot(0x1,a[_0x1f2fa(0x28d)](Re[_0x1f2fa(0x2bb)])),ot(0x2,a[_0x1f2fa(0x28d)](De)),ot(0x3,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x415)]))],gt);function Cs(_0x392fad){const _0xb91c9d=_0x1f2fa,_0x30ba44=new Map();return _0x392fad[_0xb91c9d(0x601)](_0x5a65e1=>{const _0x147c02=_0xb91c9d;if(_0x30ba44[_0x147c02(0x3d5)](_0x5a65e1['selection'])){const _0x154a91=_0x30ba44[_0x147c02(0x2f6)](_0x5a65e1[_0x147c02(0x26c)]);_0x154a91[_0x147c02(0x228)]+=',\x20'+_0x5a65e1['name'];}else _0x30ba44['set'](_0x5a65e1[_0x147c02(0x26c)],_0x5a65e1);}),Array['from'](_0x30ba44[_0xb91c9d(0x284)]());}var X=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x58c902){const _0x588c64=_0x1f2fa;return _0x58c902&&_0x58c902[_0x588c64(0x343)]&&Object['prototype']['hasOwnProperty'][_0x588c64(0x575)](_0x58c902,_0x588c64(0x4a1))?_0x58c902[_0x588c64(0x4a1)]:_0x58c902;}var pn={'exports':{}},Xe={},Es=ae,bs=Symbol[_0x1f2fa(0x162)](_0x1f2fa(0x4b7)),Ts=Symbol[_0x1f2fa(0x162)]('react.fragment'),Rs=Object[_0x1f2fa(0x42a)][_0x1f2fa(0x3f7)],ys=Es[_0x1f2fa(0x223)]['ReactCurrentOwner'],Os={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function gn(_0x561dce,_0x57094e,_0x1de082){const _0x873c38=_0x1f2fa;var _0x4f4e1d,_0x5ac6b3={},_0x374968=null,_0x3dad1e=null;_0x1de082!==void 0x0&&(_0x374968=''+_0x1de082),_0x57094e['key']!==void 0x0&&(_0x374968=''+_0x57094e[_0x873c38(0x4dd)]),_0x57094e[_0x873c38(0x275)]!==void 0x0&&(_0x3dad1e=_0x57094e['ref']);for(_0x4f4e1d in _0x57094e)Rs[_0x873c38(0x575)](_0x57094e,_0x4f4e1d)&&!Os[_0x873c38(0x3f7)](_0x4f4e1d)&&(_0x5ac6b3[_0x4f4e1d]=_0x57094e[_0x4f4e1d]);if(_0x561dce&&_0x561dce['defaultProps']){for(_0x4f4e1d in(_0x57094e=_0x561dce['defaultProps'],_0x57094e))_0x5ac6b3[_0x4f4e1d]===void 0x0&&(_0x5ac6b3[_0x4f4e1d]=_0x57094e[_0x4f4e1d]);}return{'$$typeof':bs,'type':_0x561dce,'key':_0x374968,'ref':_0x3dad1e,'props':_0x5ac6b3,'_owner':ys['current']};}Xe[_0x1f2fa(0x453)]=Ts,Xe[_0x1f2fa(0x2c1)]=gn,Xe['jsxs']=gn,pn[_0x1f2fa(0x4b1)]=Xe;var pe=pn['exports'],Q=function(){const _0x1858d5=_0x1f2fa;return Q=Object[_0x1858d5(0x265)]||function(_0x55add0){const _0x4bf237=_0x1858d5;for(var _0x1cb9d8,_0x551b63=0x1,_0x542e98=arguments[_0x4bf237(0x339)];_0x551b63<_0x542e98;_0x551b63++){_0x1cb9d8=arguments[_0x551b63];for(var _0x4dfe42 in _0x1cb9d8)Object['prototype'][_0x4bf237(0x3f7)]['call'](_0x1cb9d8,_0x4dfe42)&&(_0x55add0[_0x4dfe42]=_0x1cb9d8[_0x4dfe42]);}return _0x55add0;},Q[_0x1858d5(0x19a)](this,arguments);},Ds=function(_0x1bf8e5,_0xedd516){const _0x493a36=_0x1f2fa;var _0x2669f2={};for(var _0x13e88f in _0x1bf8e5)Object[_0x493a36(0x42a)][_0x493a36(0x3f7)][_0x493a36(0x575)](_0x1bf8e5,_0x13e88f)&&_0xedd516['indexOf'](_0x13e88f)<0x0&&(_0x2669f2[_0x13e88f]=_0x1bf8e5[_0x13e88f]);if(_0x1bf8e5!=null&&typeof Object[_0x493a36(0x4e4)]==_0x493a36(0x323)){for(var _0x400708=0x0,_0x13e88f=Object['getOwnPropertySymbols'](_0x1bf8e5);_0x400708<_0x13e88f[_0x493a36(0x339)];_0x400708++)_0xedd516[_0x493a36(0x2a1)](_0x13e88f[_0x400708])<0x0&&Object[_0x493a36(0x42a)][_0x493a36(0x385)][_0x493a36(0x575)](_0x1bf8e5,_0x13e88f[_0x400708])&&(_0x2669f2[_0x13e88f[_0x400708]]=_0x1bf8e5[_0x13e88f[_0x400708]]);}return _0x2669f2;},Dt=ae[_0x1f2fa(0x169)](function(_0x1ff8c9,_0x5a945c){const _0x4fac62=_0x1f2fa;var _0x122aea=_0x1ff8c9['icon'],_0x3169cc=_0x1ff8c9['id'],_0x35da7b=_0x1ff8c9[_0x4fac62(0x429)],_0x487f99=_0x1ff8c9['extend'],_0x5cfcb8=Ds(_0x1ff8c9,['icon','id',_0x4fac62(0x429),'extend']),_0x133ef5=_0x4fac62(0x207)[_0x4fac62(0x273)](_0x3169cc,'\x20')[_0x4fac62(0x273)](_0x35da7b||'')[_0x4fac62(0x294)](),_0x5a35b0=ae[_0x4fac62(0x423)]('_'['concat'](Us()));return In(_0x122aea,''[_0x4fac62(0x273)](_0x3169cc),{'defIds':_0x122aea[_0x4fac62(0x21c)],'idSuffix':_0x5a35b0[_0x4fac62(0x208)]},Q({'ref':_0x5a945c,'className':_0x133ef5},_0x5cfcb8),_0x487f99);});function In(_0x18f5a9,_0x4506e8,_0x41a133,_0xbcd0a6,_0xebffc3){const _0x64750f=_0x1f2fa;return ae[_0x64750f(0x3a8)](_0x18f5a9[_0x64750f(0x2ae)],Q(Q({'key':_0x4506e8},ws(_0x18f5a9,_0x41a133,_0xebffc3)),_0xbcd0a6),(Ps(_0x18f5a9,_0x41a133)[_0x64750f(0x30c)]||[])['map'](function(_0x2505fb,_0x15c9d1){const _0xfcd452=_0x64750f;return In(_0x2505fb,''['concat'](_0x4506e8,'-')[_0xfcd452(0x273)](_0x18f5a9[_0xfcd452(0x2ae)],'-')[_0xfcd452(0x273)](_0x15c9d1),_0x41a133,void 0x0,_0xebffc3);}));}function ws(_0xbd9034,_0x494369,_0x27e879){const _0x49b056=_0x1f2fa;var _0x34c143=Q({},_0xbd9034[_0x49b056(0x2ca)]);_0x27e879!=null&&_0x27e879['colorChannel1']&&_0x34c143[_0x49b056(0x461)]===_0x49b056(0x342)&&(_0x34c143[_0x49b056(0x461)]=_0x27e879[_0x49b056(0x342)]);var _0x2df856=_0x494369[_0x49b056(0x21c)];return!_0x2df856||_0x2df856[_0x49b056(0x339)]===0x0||(_0xbd9034[_0x49b056(0x2ae)]===_0x49b056(0x384)&&_0x34c143[_0x49b056(0x3d4)]&&(_0x34c143[_0x49b056(0x3d4)]=_0x34c143[_0x49b056(0x3d4)]+_0x494369['idSuffix']),Object[_0x49b056(0x491)](_0x34c143)[_0x49b056(0x601)](function(_0x39e5a9){const _0x229713=_0x49b056;var _0x4f2507=_0x39e5a9[0x0],_0x1a9859=_0x39e5a9[0x1];typeof _0x1a9859==_0x229713(0x205)&&(_0x34c143[_0x4f2507]=_0x1a9859[_0x229713(0x368)](/url\(#(.*)\)/,_0x229713(0x2da)[_0x229713(0x273)](_0x494369[_0x229713(0x60b)],')')));})),_0x34c143;}function Ps(_0x467df3,_0x629778){const _0x5a0fee=_0x1f2fa;var _0x4f007e,_0x565035=_0x629778['defIds'];return!_0x565035||_0x565035[_0x5a0fee(0x339)]===0x0?_0x467df3:_0x467df3[_0x5a0fee(0x2ae)]===_0x5a0fee(0x1ac)&&(!((_0x4f007e=_0x467df3[_0x5a0fee(0x30c)])===null||_0x4f007e===void 0x0)&&_0x4f007e[_0x5a0fee(0x339)])?Q(Q({},_0x467df3),{'children':_0x467df3[_0x5a0fee(0x30c)][_0x5a0fee(0x50e)](function(_0x3a669c){const _0xa8790f=_0x5a0fee;return typeof _0x3a669c[_0xa8790f(0x2ca)]['id']==_0xa8790f(0x205)&&_0x565035&&_0x565035['indexOf'](_0x3a669c[_0xa8790f(0x2ca)]['id'])>-0x1?Q(Q({},_0x3a669c),{'attrs':Q(Q({},_0x3a669c[_0xa8790f(0x2ca)]),{'id':_0x3a669c['attrs']['id']+_0x629778[_0xa8790f(0x60b)]})}):_0x3a669c;})}):_0x467df3;}function Us(){const _0x1ff947=_0x1f2fa;return Math[_0x1ff947(0x2fc)]()['toString'](0x24)[_0x1ff947(0x5c2)](0x2,0x8);}Dt[_0x1f2fa(0x263)]=_0x1f2fa(0x337);var Ms={'tag':_0x1f2fa(0x206),'attrs':{'fill':_0x1f2fa(0x554),'viewBox':_0x1f2fa(0x288),'width':_0x1f2fa(0x24a),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1f2fa(0x3f1)},'children':[{'tag':_0x1f2fa(0x440),'attrs':{'stroke':'currentColor','d':_0x1f2fa(0x344),'strokeLinecap':_0x1f2fa(0x336),'strokeLinejoin':_0x1f2fa(0x336),'strokeWidth':1.2}}]},{'tag':_0x1f2fa(0x1ac),'attrs':{},'children':[{'tag':_0x1f2fa(0x5be),'attrs':{'id':_0x1f2fa(0x417)},'children':[{'tag':_0x1f2fa(0x440),'attrs':{'fill':'#fff','d':_0x1f2fa(0x347)}}]}]}],'defIds':[_0x1f2fa(0x417)]},Cn=ae[_0x1f2fa(0x169)](function(_0x390beb,_0x525351){const _0x27d25e=_0x1f2fa;return ae[_0x27d25e(0x3a8)](Dt,Object['assign']({},_0x390beb,{'id':_0x27d25e(0x24d),'ref':_0x525351,'icon':Ms}));});Cn[_0x1f2fa(0x263)]=_0x1f2fa(0x41e);var As={'tag':_0x1f2fa(0x206),'attrs':{'fill':'none','viewBox':_0x1f2fa(0x3e0),'width':_0x1f2fa(0x24a),'height':_0x1f2fa(0x24a)},'children':[{'tag':'g','attrs':{'clipPath':_0x1f2fa(0x5cb)},'children':[{'tag':_0x1f2fa(0x440),'attrs':{'stroke':'currentColor','d':_0x1f2fa(0x41b),'strokeLinecap':_0x1f2fa(0x336),'strokeLinejoin':_0x1f2fa(0x336),'strokeWidth':1.2}}]},{'tag':_0x1f2fa(0x1ac),'attrs':{},'children':[{'tag':_0x1f2fa(0x5be),'attrs':{'id':_0x1f2fa(0x23c)},'children':[{'tag':'path','attrs':{'fill':_0x1f2fa(0x4bb),'d':_0x1f2fa(0x347),'transform':_0x1f2fa(0x518)}}]}]}],'defIds':[_0x1f2fa(0x23c)]},En=ae[_0x1f2fa(0x169)](function(_0x162f51,_0x1bcf81){const _0x4f606f=_0x1f2fa;return ae[_0x4f606f(0x3a8)](Dt,Object[_0x4f606f(0x265)]({},_0x162f51,{'id':_0x4f606f(0x45c),'ref':_0x1bcf81,'icon':As}));});En[_0x1f2fa(0x263)]=_0x1f2fa(0x1e7);function bn(_0x21d4b8){const _0xef0daf=_0x1f2fa;var _0xba564a,_0x10db28,_0x11f1a0='';if(typeof _0x21d4b8==_0xef0daf(0x205)||typeof _0x21d4b8=='number')_0x11f1a0+=_0x21d4b8;else{if(typeof _0x21d4b8=='object'){if(Array[_0xef0daf(0x4ff)](_0x21d4b8)){var _0x585b2b=_0x21d4b8['length'];for(_0xba564a=0x0;_0xba564a<_0x585b2b;_0xba564a++)_0x21d4b8[_0xba564a]&&(_0x10db28=bn(_0x21d4b8[_0xba564a]))&&(_0x11f1a0&&(_0x11f1a0+='\x20'),_0x11f1a0+=_0x10db28);}else{for(_0x10db28 in _0x21d4b8)_0x21d4b8[_0x10db28]&&(_0x11f1a0&&(_0x11f1a0+='\x20'),_0x11f1a0+=_0x10db28);}}}return _0x11f1a0;}function Ns(){const _0x46ed58=_0x1f2fa;for(var _0xa4d4c3,_0x4173ab,_0x310204=0x0,_0x4e0a78='',_0x275638=arguments[_0x46ed58(0x339)];_0x310204<_0x275638;_0x310204++)(_0xa4d4c3=arguments[_0x310204])&&(_0x4173ab=bn(_0xa4d4c3))&&(_0x4e0a78&&(_0x4e0a78+='\x20'),_0x4e0a78+=_0x4173ab);return _0x4e0a78;}const Ls='univer-online-status-icon',xs=_0x1f2fa(0x489),js='univer-online-status',$s=_0x1f2fa(0x386),Hs=_0x1f2fa(0x465),Me={'onlineStatusIcon':Ls,'onlineStatusTitle':xs,'onlineStatus':js,'online':$s,'offline':Hs};function Bs(_0x38d22a){const _0x381238=_0x1f2fa;switch(_0x38d22a){case q[_0x381238(0x532)]:return'collabStatus.offline';case q[_0x381238(0x2b5)]:return _0x381238(0x4f0);case q[_0x381238(0x2aa)]:return _0x381238(0x4fd);case q['NOT_COLLAB']:return _0x381238(0x564);case q[_0x381238(0x500)]:case q[_0x381238(0x27a)]:return _0x381238(0x32a);case q[_0x381238(0x4cc)]:case q[_0x381238(0x586)]:return _0x381238(0x46f);}}function Tn(_0x371767){const _0x29c840=_0x1f2fa,{status$:_0x488134}=_0x371767,_0xe4b44e=ee['useObservable'](_0x488134,q[_0x29c840(0x467)]),_0x1e2e87=a[_0x29c840(0x5e1)](a['LocaleService']),_0x3139b3=a[_0x29c840(0x5e1)](exports[_0x29c840(0x1c0)]),_0x13549e=_0xe4b44e!==q['OFFLINE'],_0x442e98=_0x1e2e87['t'](Bs(_0xe4b44e)),_0x1fc4e1=Ns(Me[_0x29c840(0x2d8)],{[Me[_0x29c840(0x2b6)]]:_0x13549e,[Me[_0x29c840(0x45f)]]:!_0x13549e}),_0x2d2c62=_0x13549e?pe['jsx'](En,{}):pe[_0x29c840(0x2c1)](Cn,{}),_0x5cdae4=ae[_0x29c840(0x308)](()=>{const _0x3476ef=_0x29c840;_0x13549e||_0x3139b3[_0x3476ef(0x3a5)]();},[_0x13549e,_0x3139b3]);function _0x44bf5d(){const _0x3be832=_0x29c840;return pe[_0x3be832(0x27f)]('div',{'className':_0x1fc4e1,'onClick':_0x5cdae4,'children':[pe[_0x3be832(0x2c1)]('div',{'className':Me[_0x3be832(0x24b)],'children':_0x2d2c62}),pe['jsx']('div',{'className':Me[_0x3be832(0x1ff)],'children':_0x442e98})]});}return _0x13549e?_0x44bf5d():pe[_0x29c840(0x2c1)](ge[_0x29c840(0x607)],{'title':_0x1e2e87['t'](_0x29c840(0x50f)),'children':_0x44bf5d()});}var ks=Object['defineProperty'],Ws=Object['getOwnPropertyDescriptor'],Fs=(_0x5c937e,_0x10a8d9,_0x2fa5b5,_0x35b0fd)=>{const _0x210b9b=_0x1f2fa;for(var _0x62bbb5=_0x35b0fd>0x1?void 0x0:_0x35b0fd?Ws(_0x10a8d9,_0x2fa5b5):_0x10a8d9,_0x3b44c6=_0x5c937e[_0x210b9b(0x339)]-0x1,_0x4e82b8;_0x3b44c6>=0x0;_0x3b44c6--)(_0x4e82b8=_0x5c937e[_0x3b44c6])&&(_0x62bbb5=(_0x35b0fd?_0x4e82b8(_0x10a8d9,_0x2fa5b5,_0x62bbb5):_0x4e82b8(_0x62bbb5))||_0x62bbb5);return _0x35b0fd&&_0x62bbb5&&ks(_0x10a8d9,_0x2fa5b5,_0x62bbb5),_0x62bbb5;},$e=(_0x2a8ffc,_0x1cb2ea)=>(_0x4e908a,_0x4a3e8d)=>_0x1cb2ea(_0x4e908a,_0x4a3e8d,_0x2a8ffc);exports[_0x1f2fa(0x31a)]=class extends a[_0x1f2fa(0x1d6)]{constructor(_0x5dec1c,_0x5def7d,_0x2f6576,_0x3db281){const _0x473b8b=_0x1f2fa;super(),I(this,_0x473b8b(0x454),new A['BehaviorSubject'](q[_0x473b8b(0x467)])),(this[_0x473b8b(0x51c)]=_0x5dec1c,this['_uiPartsService']=_0x5def7d,this['_injector']=_0x2f6576,this['_collaborationController']=_0x3db281,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusListener'](){const _0x345171=_0x1f2fa;this[_0x345171(0x305)](this[_0x345171(0x51c)][_0x345171(0x53c)][_0x345171(0x5f2)](A[_0x345171(0x28b)](()=>{const _0x40c06c=_0x345171,_0x3bbe38=this['_univerInstanceService']['getFocusedUnit']();return _0x3bbe38?this[_0x40c06c(0x31d)][_0x40c06c(0x2e1)](_0x3bbe38[_0x40c06c(0x4ea)]()):A['of'](null);}),A[_0x345171(0x28b)](_0x423336=>_0x423336?_0x423336['status$']:A['of'](q[_0x345171(0x467)])))[_0x345171(0x25e)](_0x8afb02=>{const _0x34ef3d=_0x345171;this['_status$'][_0x34ef3d(0x497)](_0x8afb02);}));}[_0x1f2fa(0x29c)](){const _0x166917=_0x1f2fa;this['disposeWithMe'](this['_uiPartsService'][_0x166917(0x40a)](ee['BuiltInUIPart']['HEADER_MENU'],()=>a[_0x166917(0x30b)](Vs({'status$':this[_0x166917(0x454)][_0x166917(0x5de)]()}),this['_injector'])));}},exports[_0x1f2fa(0x31a)]=Fs([$e(0x0,a[_0x1f2fa(0x562)]),$e(0x1,ee[_0x1f2fa(0x526)]),$e(0x2,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),$e(0x3,a['Inject'](exports[_0x1f2fa(0x1ab)]))],exports[_0x1f2fa(0x31a)]);function Vs(_0x2d0c10){const {status$:_0x26f5de}=_0x2d0c10;return function(){const _0x2bc504=_0x3f71;return pe[_0x2bc504(0x2c1)](Tn,{'status$':_0x26f5de});};}const wt=a[_0x1f2fa(0x3a7)](_0x1f2fa(0x4a5));var Gs=Object[_0x1f2fa(0x4e5)],Ys=Object[_0x1f2fa(0x40d)],Ks=(_0xea8819,_0x46be60,_0x18f358,_0x4210a8)=>{const _0x12a59e=_0x1f2fa;for(var _0x154743=_0x4210a8>0x1?void 0x0:_0x4210a8?Ys(_0x46be60,_0x18f358):_0x46be60,_0x25dcbc=_0xea8819[_0x12a59e(0x339)]-0x1,_0x24f1a8;_0x25dcbc>=0x0;_0x25dcbc--)(_0x24f1a8=_0xea8819[_0x25dcbc])&&(_0x154743=(_0x4210a8?_0x24f1a8(_0x46be60,_0x18f358,_0x154743):_0x24f1a8(_0x154743))||_0x154743);return _0x4210a8&&_0x154743&&Gs(_0x46be60,_0x18f358,_0x154743),_0x154743;},Te=(_0x54a866,_0x4903dc)=>(_0x4ea2ad,_0x3d204a)=>_0x4903dc(_0x4ea2ad,_0x3d204a,_0x54a866);exports['DataLoaderController']=class extends a['RxDisposable']{constructor(_0x220d64,_0x5ad353,_0x24eec3,_0x23fa94,_0x530e15,_0x517511){const _0xafe1c2=_0x1f2fa;super(),this[_0xafe1c2(0x1a4)]=_0x220d64,this['_logService']=_0x5ad353,this[_0xafe1c2(0x5ab)]=_0x24eec3,this[_0xafe1c2(0x346)]=_0x23fa94,this[_0xafe1c2(0x4e2)]=_0x530e15,_0x517511?_0x517511==null||_0x517511[_0xafe1c2(0x257)]()[_0xafe1c2(0x213)](()=>this[_0xafe1c2(0x48d)]()):(this[_0xafe1c2(0x1d8)]['debug'](_0xafe1c2(0x2b3),_0xafe1c2(0x5f0)),this[_0xafe1c2(0x48d)]());}async['_init'](){const _0x412a0a=_0x1f2fa,_0x52f2e3=this['_urlService'][_0x412a0a(0x387)]('unit'),_0x3bef07=this[_0x412a0a(0x1a4)][_0x412a0a(0x387)]('type');if(!_0x52f2e3||!_0x3bef07){this['_logService'][_0x412a0a(0x4fc)](_0x412a0a(0x2b3),_0x412a0a(0x256));return;}switch(Number(_0x3bef07)){case ie[_0x412a0a(0x4c3)]:{const _0x5e17e5=await this[_0x412a0a(0x37b)](_0x52f2e3);this[_0x412a0a(0x218)](_0x5e17e5);break;}case ie[_0x412a0a(0x505)]:{await this[_0x412a0a(0x5eb)](_0x52f2e3);break;}default:{this[_0x412a0a(0x1d8)][_0x412a0a(0x2d0)](_0x412a0a(0x2b3),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x1f2fa(0x218)](_0x52b41d){const _0x1a0ae2=_0x1f2fa;await this[_0x1a0ae2(0x4c8)](_0x52b41d),_0x52b41d[_0x1a0ae2(0x27c)][_0x1a0ae2(0x5f2)](A['takeUntil'](this[_0x1a0ae2(0x57d)]))[_0x1a0ae2(0x25e)](_0xc25779=>{const _0x120354=_0x1a0ae2;_0xc25779&&this[_0x120354(0x5a7)](_0xc25779);}),this['_urlService']['urlChange$'][_0x1a0ae2(0x5f2)](A[_0x1a0ae2(0x5d4)](this[_0x1a0ae2(0x57d)]))[_0x1a0ae2(0x25e)](()=>this[_0x1a0ae2(0x4c8)](_0x52b41d));}[_0x1f2fa(0x5a7)](_0x3ac3c3,_0x50a58b=!0x1){const _0x167057=_0x1f2fa,_0xb0a3a6=this[_0x167057(0x1a4)][_0x167057(0x387)]('subunit');_0x3ac3c3[_0x167057(0x2d3)]()!==_0xb0a3a6&&this['_urlService'][_0x167057(0x318)](_0x167057(0x3d9),_0x3ac3c3[_0x167057(0x2d3)](),_0x50a58b);}async[_0x1f2fa(0x4c8)](_0x121fb6){const _0x89a7b=_0x1f2fa;var _0x3975c4;const _0xe6bb4d=this[_0x89a7b(0x1a4)]['getParam'](_0x89a7b(0x3d9));if(!_0xe6bb4d||!_0x121fb6[_0x89a7b(0x1ea)](_0xe6bb4d)){const _0xbcdc44=_0x121fb6[_0x89a7b(0x495)]()[0x0],_0x5428d4=_0x121fb6[_0x89a7b(0x1ea)](_0xbcdc44);if(!_0x5428d4)return;this[_0x89a7b(0x5a7)](_0x5428d4,!0x0),await this[_0x89a7b(0x5ab)][_0x89a7b(0x3fa)](k[_0x89a7b(0x3a2)]['id'],{'unitId':_0x121fb6[_0x89a7b(0x4ea)](),'subUnitId':_0xbcdc44});return;}((_0x3975c4=_0x121fb6[_0x89a7b(0x1db)]())==null?void 0x0:_0x3975c4['getSheetId']())!==_0xe6bb4d&&await this[_0x89a7b(0x5ab)]['executeCommand'](k['SetWorksheetActivateCommand']['id'],{'unitId':_0x121fb6[_0x89a7b(0x4ea)](),'subUnitId':_0xe6bb4d});}async[_0x1f2fa(0x37b)](_0x42b5f3){const _0x29c347=_0x1f2fa;let _0x19f4e9=0x0;const _0x1e1f4b=await this[_0x29c347(0x346)][_0x29c347(0x5f6)](_0x42b5f3);return _0x1e1f4b&&(_0x1e1f4b[_0x29c347(0x4d8)]||_0x1e1f4b[_0x29c347(0x456)][_0x29c347(0x339)]!==0x0)&&(_0x19f4e9=_0x1e1f4b[_0x29c347(0x4f9)]),_0x19f4e9===0x0&&this['_logService']['debug'](_0x29c347(0x2b3),_0x29c347(0x3f5)),this['_snapshotService'][_0x29c347(0x1c9)](_0x42b5f3,_0x19f4e9);}async['_loadDoc'](_0x2a3b19){const _0x826a5d=_0x1f2fa;let _0x14bb55=0x0;const _0x3dce6d=await this[_0x826a5d(0x346)][_0x826a5d(0x5f6)](_0x2a3b19);return _0x3dce6d&&(_0x3dce6d[_0x826a5d(0x4d8)]||_0x3dce6d['mutations'][_0x826a5d(0x339)]!==0x0)&&(_0x14bb55=_0x3dce6d[_0x826a5d(0x4f9)]),_0x14bb55===0x0&&this[_0x826a5d(0x1d8)][_0x826a5d(0x4fc)](_0x826a5d(0x2b3),_0x826a5d(0x3f5)),this[_0x826a5d(0x4e2)][_0x826a5d(0x39f)](_0x2a3b19,_0x14bb55);}},exports['DataLoaderController']=Ks([Te(0x0,wt),Te(0x1,a[_0x1f2fa(0x1af)]),Te(0x2,a['ICommandService']),Te(0x3,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x333)])),Te(0x4,a[_0x1f2fa(0x28d)](S['SnapshotService'])),Te(0x5,a['Optional']($n[_0x1f2fa(0x198)]))],exports[_0x1f2fa(0x33c)]);var qs=Object['defineProperty'],zs=Object[_0x1f2fa(0x40d)],Xs=(_0x29ad48,_0x4e8dd0,_0x3cb1b1,_0x4bd3b1)=>{const _0x108587=_0x1f2fa;for(var _0x34a71b=_0x4bd3b1>0x1?void 0x0:_0x4bd3b1?zs(_0x4e8dd0,_0x3cb1b1):_0x4e8dd0,_0x3f1d06=_0x29ad48[_0x108587(0x339)]-0x1,_0x376c1f;_0x3f1d06>=0x0;_0x3f1d06--)(_0x376c1f=_0x29ad48[_0x3f1d06])&&(_0x34a71b=(_0x4bd3b1?_0x376c1f(_0x4e8dd0,_0x3cb1b1,_0x34a71b):_0x376c1f(_0x34a71b))||_0x34a71b);return _0x4bd3b1&&_0x34a71b&&qs(_0x4e8dd0,_0x3cb1b1,_0x34a71b),_0x34a71b;},kt=(_0x5b7e2f,_0x14c7f6)=>(_0x134391,_0x239aee)=>_0x14c7f6(_0x134391,_0x239aee,_0x5b7e2f);const Js=_0x1f2fa(0x282),Zs=_0x1f2fa(0x55b);let Ve=class extends a[_0x1f2fa(0x1d6)]{constructor(_0xc31496,_0x99919b){const _0x530c5b=_0x1f2fa;super(),this[_0x530c5b(0x51c)]=_0xc31496,this['_configService']=_0x99919b,this[_0x530c5b(0x48d)]();}[_0x1f2fa(0x48d)](){const _0x2c5081=_0x1f2fa;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x2c5081(0x25e)](()=>{const _0x2a9f08=_0x2c5081;var _0x4d215a;const _0xf489cb=this[_0x2a9f08(0x51c)]['getFocusedUnit']();let _0x1ae17f=(_0x4d215a=this[_0x2a9f08(0x499)][_0x2a9f08(0x546)](Js))!=null?_0x4d215a:Zs;_0xf489cb instanceof a['Workbook']&&(_0x1ae17f=_0xf489cb[_0x2a9f08(0x228)]),document[_0x2a9f08(0x4ac)]=_0x1ae17f;}));}};Ve=Xs([kt(0x0,a[_0x1f2fa(0x562)]),kt(0x1,a[_0x1f2fa(0x1b0)])],Ve);var Qs=Object[_0x1f2fa(0x4e5)],er=Object[_0x1f2fa(0x40d)],tr=(_0x19e90d,_0xe8fcc0,_0x26aedc,_0x6d0a9f)=>{for(var _0x2910c2=_0x6d0a9f>0x1?void 0x0:_0x6d0a9f?er(_0xe8fcc0,_0x26aedc):_0xe8fcc0,_0x57a987=_0x19e90d['length']-0x1,_0x22dfc8;_0x57a987>=0x0;_0x57a987--)(_0x22dfc8=_0x19e90d[_0x57a987])&&(_0x2910c2=(_0x6d0a9f?_0x22dfc8(_0xe8fcc0,_0x26aedc,_0x2910c2):_0x22dfc8(_0x2910c2))||_0x2910c2);return _0x6d0a9f&&_0x2910c2&&Qs(_0xe8fcc0,_0x26aedc,_0x2910c2),_0x2910c2;},at=(_0x2d4575,_0x21ef4c)=>(_0x16753a,_0x3f98b8)=>_0x21ef4c(_0x16753a,_0x3f98b8,_0x2d4575);let Ge=class{constructor(_0x3a43c1,_0x34ba12,_0x319844){const _0x5e3015=_0x1f2fa;this[_0x5e3015(0x499)]=_0x3a43c1,this[_0x5e3015(0x3e8)]=_0x34ba12,this[_0x5e3015(0x599)]=_0x319844,this[_0x5e3015(0x485)]();}['init'](){const _0x548397=_0x1f2fa;this[_0x548397(0x3e8)][_0x548397(0x5f8)]({'priority':0x1,'interceptor':(_0x53b20c,_0x592b55)=>_0x592b55(_0x53b20c)['pipe'](A['concatMap'](async _0x291aaf=>{const _0x5b335f=_0x548397,_0x1f7213=_0x291aaf;if(_0x1f7213[_0x5b335f(0x286)]===0x191&&window[_0x5b335f(0x5ae)](this[_0x5b335f(0x599)]['t'](_0x5b335f(0x59a)))){const _0x225b55=window[_0x5b335f(0x508)](window[_0x5b335f(0x283)][_0x5b335f(0x538)]);window[_0x5b335f(0x283)][_0x5b335f(0x538)]=this[_0x5b335f(0x446)]()+_0x5b335f(0x50d)+_0x225b55;}return _0x1f7213;}))});}[_0x1f2fa(0x446)](){const _0x650552=_0x1f2fa;var _0x1517bd,_0x47a09c;const _0x50777c=this['_configService'][_0x650552(0x546)](an),_0x2afce7=this[_0x650552(0x499)][_0x650552(0x546)](te);return(_0x47a09c=(_0x1517bd=_0x2afce7==null?void 0x0:_0x2afce7[_0x650552(0x5fb)])!=null?_0x1517bd:_0x50777c)!=null?_0x47a09c:qn;}};Ge=tr([at(0x0,a['IConfigService']),at(0x1,a['Inject'](Z[_0x1f2fa(0x516)])),at(0x2,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x537)]))],Ge);var nr=Object[_0x1f2fa(0x4e5)],ir=Object[_0x1f2fa(0x40d)],sr=(_0x712618,_0x519b94,_0x43f2b6,_0x3d3ded)=>{const _0xfc0986=_0x1f2fa;for(var _0x18b320=_0x3d3ded>0x1?void 0x0:_0x3d3ded?ir(_0x519b94,_0x43f2b6):_0x519b94,_0x268991=_0x712618[_0xfc0986(0x339)]-0x1,_0x68a2eb;_0x268991>=0x0;_0x268991--)(_0x68a2eb=_0x712618[_0x268991])&&(_0x18b320=(_0x3d3ded?_0x68a2eb(_0x519b94,_0x43f2b6,_0x18b320):_0x68a2eb(_0x18b320))||_0x18b320);return _0x3d3ded&&_0x18b320&&nr(_0x519b94,_0x43f2b6,_0x18b320),_0x18b320;},Wt=(_0x4efdbf,_0x2ef304)=>(_0x4c0415,_0x1b0809)=>_0x2ef304(_0x4c0415,_0x1b0809,_0x4efdbf);const Rn=_0x1f2fa(0x2a7),rr='/universer-api/authz';exports[_0x1f2fa(0x175)]=class extends a[_0x1f2fa(0x1d6)]{constructor(_0x18cf58,_0x2d0c6c){const _0x53e3ae=_0x1f2fa;super(),this[_0x53e3ae(0x4bf)]=_0x18cf58,this[_0x53e3ae(0x499)]=_0x2d0c6c,this[_0x53e3ae(0x360)]();}[_0x1f2fa(0x360)](){const _0x491964=_0x1f2fa,_0x2e4181=this;this[_0x491964(0x305)](this[_0x491964(0x4bf)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':Z['MergeInterceptorFactory']({'isMatch'(_0xe9ab40){const _0x324f22=_0x491964;var _0x35667c;if(_0xe9ab40[_0x324f22(0x4ec)]===_0x324f22(0x202)&&((_0x35667c=_0xe9ab40[_0x324f22(0x41c)])!=null&&_0x35667c[_0x324f22(0x26d)])){const {objectID:_0x131c81,objectType:_0x3dc8ed}=_0xe9ab40[_0x324f22(0x41c)][_0x324f22(0x26d)]||{};if(!_0x131c81||_0x3dc8ed===void 0x0)return!0x1;const _0x484f0d=_0x2e4181[_0x324f22(0x420)]()+'/'+_0x3dc8ed+'/object/'+_0x131c81+'/allowed';if(_0xe9ab40[_0x324f22(0x459)]===_0x484f0d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x555986){const _0x2c23a8=_0x491964;var _0x45ade7;return(_0x45ade7=_0x555986[_0x2c23a8(0x41c)])==null?void 0x0:_0x45ade7[_0x2c23a8(0x26d)];},'mergeParamsToRequest'(_0x9f11cf,_0x349783){const _0xcf892c=_0x491964,_0x10dbd9=_0x2e4181[_0xcf892c(0x420)]()+_0xcf892c(0x25d),_0x137a3c=_0x9f11cf[_0xcf892c(0x1cf)]((_0x2fcecc,_0x3a3c0b)=>{const _0x468a36=_0xcf892c,{unitID:_0x4bb0f8,objectID:_0x50f158,objectType:_0x3d4c9f,actions:_0x1d0755}=_0x3a3c0b;return _0x2fcecc[_0x4bb0f8]||(_0x2fcecc[_0x4bb0f8]={}),_0x2fcecc[_0x4bb0f8][_0x50f158]||(_0x2fcecc[_0x4bb0f8][_0x50f158]={'objectID':_0x50f158,'objectType':_0x3d4c9f,'actions':[]}),_0x2fcecc[_0x4bb0f8][_0x50f158][_0x468a36(0x331)]['push'](..._0x1d0755),_0x2fcecc;},{}),_0x12b1cc=[];for(const _0x664f14 in _0x137a3c)for(const _0x3916d1 in _0x137a3c[_0x664f14]){const {actions:_0x2327ff,objectType:_0x572ce2}=_0x137a3c[_0x664f14][_0x3916d1],_0x1051af=[...new Set(_0x2327ff)];_0x12b1cc[_0xcf892c(0x19c)]({'unitID':_0x664f14,'objectID':_0x3916d1,'objectType':_0x572ce2,'actions':_0x1051af});}return new Z[(_0xcf892c(0x390))]('POST',_0x10dbd9,{'headers':_0x349783[_0xcf892c(0x29f)],'withCredentials':_0x349783[_0xcf892c(0x5c8)],'responseType':_0x349783[_0xcf892c(0x166)],'body':{'requests':_0x12b1cc}});}},{'distributeResult'(_0x5331d1,_0x202d64){const _0x1f364a=_0x491964,{objectActions:_0x4d2c94}=_0x5331d1;return _0x202d64[_0x1f364a(0x50e)](_0x1e215a=>{const _0x34ead3=_0x1f364a,{unitID:_0x76f116,objectID:_0x3341ec,actions:_0x25f1aa}=_0x1e215a,_0x354cfa=_0x4d2c94[_0x34ead3(0x4f6)](_0x118aaf=>_0x118aaf[_0x34ead3(0x604)]===_0x76f116&&_0x118aaf[_0x34ead3(0x229)]===_0x3341ec),_0x5950eb=_0x25f1aa[_0x34ead3(0x50e)](_0x553599=>_0x354cfa==null?void 0x0:_0x354cfa[_0x34ead3(0x331)][_0x34ead3(0x4f6)](_0x352471=>_0x352471[_0x34ead3(0x1c4)]===_0x553599))[_0x34ead3(0x3db)](_0x1409cb=>!!_0x1409cb);return{'config':_0x1e215a,'result':{'actions':_0x5950eb,'error':_0x5331d1[_0x34ead3(0x2d0)]}};});}})}));}[_0x1f2fa(0x420)](){const _0x221ef2=_0x1f2fa;var _0x3d4185,_0x406126;const _0xfd838b=this['_configService'][_0x221ef2(0x546)](Rn),_0x322761=this['_configService'][_0x221ef2(0x546)](te);return(_0x406126=(_0x3d4185=_0x322761==null?void 0x0:_0x322761['authzUrl'])!=null?_0x3d4185:_0xfd838b)!=null?_0x406126:rr;}async[_0x1f2fa(0x21e)](_0x5dcb72){const _0x31def5=_0x1f2fa,_0x4f1b1a=this['_getAPIPrefixPath']()+'/'+_0x5dcb72[_0x31def5(0x23b)]+'/object';return(await this[_0x31def5(0x4bf)][_0x31def5(0x43a)](_0x4f1b1a,{'body':_0x5dcb72}))['body'][_0x31def5(0x229)]||'';}async[_0x1f2fa(0x2b2)](_0xf2695){const _0x1ed9da=_0x1f2fa,_0x39ed8d=this[_0x1ed9da(0x420)]()+_0x1ed9da(0x183);return(await this[_0x1ed9da(0x4bf)][_0x1ed9da(0x43a)](_0x39ed8d,{'body':_0xf2695}))['body']['objects'];}async[_0x1f2fa(0x193)](_0x53fc23){const _0x3e4f3f=_0x1f2fa,_0x256b4c=this[_0x3e4f3f(0x420)]()+'/'+_0x53fc23[_0x3e4f3f(0x23b)]+_0x3e4f3f(0x4fb)+_0x53fc23[_0x3e4f3f(0x229)];await this[_0x3e4f3f(0x4bf)][_0x3e4f3f(0x1b2)](_0x256b4c,{'body':_0x53fc23});}async['allowed'](_0x15866b){const _0x57ccec=_0x1f2fa,_0x319ccc=this[_0x57ccec(0x420)]()+'/'+_0x15866b[_0x57ccec(0x23b)]+_0x57ccec(0x4fb)+_0x15866b[_0x57ccec(0x229)]+_0x57ccec(0x1aa);return(await this[_0x57ccec(0x4bf)]['post'](_0x319ccc,{'body':_0x15866b}))[_0x57ccec(0x26d)][_0x57ccec(0x331)];}async[_0x1f2fa(0x314)](_0x349501){const _0x366124=_0x1f2fa,_0xc12965=this[_0x366124(0x420)]()+_0x366124(0x25d);return(await this[_0x366124(0x4bf)][_0x366124(0x43a)](_0xc12965,{'body':{'requests':_0x349501}}))['body'][_0x366124(0x5b3)];}async[_0x1f2fa(0x4d3)](_0x4e2a4a){const _0x4bcb7a=_0x1f2fa,_0x8be236=this[_0x4bcb7a(0x420)]()+'/'+_0x4e2a4a[_0x4bcb7a(0x23b)]+'/role',_0x253f88=await this[_0x4bcb7a(0x4bf)][_0x4bcb7a(0x43a)](_0x8be236,{'body':_0x4e2a4a});return{'roles':_0x253f88[_0x4bcb7a(0x26d)][_0x4bcb7a(0x388)],'actions':_0x253f88[_0x4bcb7a(0x26d)]['actions']};}async[_0x1f2fa(0x21b)](_0x502f6c){const _0x5453fd=_0x1f2fa,_0x4559fd=this[_0x5453fd(0x420)]()+_0x5453fd(0x36b);await this[_0x5453fd(0x4bf)]['delete'](_0x4559fd,{'params':{'collaboratorID':_0x502f6c[_0x5453fd(0x55d)],'objectID':_0x502f6c[_0x5453fd(0x229)],'unitID':_0x502f6c[_0x5453fd(0x604)]}});}async[_0x1f2fa(0x59f)](_0x14396c){const _0x315aab=_0x1f2fa,_0x4d1910=this['_getAPIPrefixPath']()+_0x315aab(0x36b);await this[_0x315aab(0x4bf)][_0x315aab(0x52f)](_0x4d1910,{'body':_0x14396c});}async['createCollaborator'](_0x5e8a4b){const _0x579897=_0x1f2fa,_0x54a964=this[_0x579897(0x420)]()+_0x579897(0x36b);await this['_HTTPService']['post'](_0x54a964,{'body':_0x5e8a4b});}async[_0x1f2fa(0x494)](_0x2291c9){const _0x170af9=_0x1f2fa,_0xee494=this['_getAPIPrefixPath']()+_0x170af9(0x36b);return(await this['_HTTPService'][_0x170af9(0x2f6)](_0xee494,{'params':{'objectID':_0x2291c9[_0x170af9(0x229)],'unitID':_0x2291c9['unitID']}}))[_0x170af9(0x26d)][_0x170af9(0x540)];}async[_0x1f2fa(0x4f4)](_0x201465){const _0x396a05=_0x1f2fa,_0x12cfc2=this[_0x396a05(0x420)]()+_0x396a05(0x36b);await this[_0x396a05(0x4bf)][_0x396a05(0x1b2)](_0x12cfc2,{'body':_0x201465});}},exports[_0x1f2fa(0x175)]=sr([Wt(0x0,a[_0x1f2fa(0x28d)](Z[_0x1f2fa(0x516)])),Wt(0x1,a['Inject'](a[_0x1f2fa(0x1b0)]))],exports[_0x1f2fa(0x175)]);var yn={'exports':{}};function or(_0x18694f){const _0x51d109=_0x1f2fa;throw new Error(_0x51d109(0x3dd)+_0x18694f+_0x51d109(0x2c3));}var ct={'exports':{}},Ft;function oe(){const _0x2fef41=_0x1f2fa;return Ft||(Ft=0x1,function(_0x3d7e7a,_0x323fff){(function(_0x2f5c28,_0x2a7ec6){const _0x49d746=_0x3f71;_0x3d7e7a[_0x49d746(0x4b1)]=_0x2a7ec6();}(X,function(){var _0x4b679c=_0x4b679c||function(_0x51e892,_0x44e9b2){const _0x4f3cce=_0x3f71;var _0x2eee42;if(typeof window<'u'&&window['crypto']&&(_0x2eee42=window[_0x4f3cce(0x376)]),typeof self<'u'&&self[_0x4f3cce(0x376)]&&(_0x2eee42=self['crypto']),typeof globalThis<'u'&&globalThis[_0x4f3cce(0x376)]&&(_0x2eee42=globalThis[_0x4f3cce(0x376)]),!_0x2eee42&&typeof window<'u'&&window[_0x4f3cce(0x1b9)]&&(_0x2eee42=window[_0x4f3cce(0x1b9)]),!_0x2eee42&&typeof X<'u'&&X['crypto']&&(_0x2eee42=X['crypto']),!_0x2eee42&&typeof or==_0x4f3cce(0x323))try{_0x2eee42=require(_0x4f3cce(0x376));}catch{}var _0x5d2072=function(){const _0x175ea=_0x4f3cce;if(_0x2eee42){if(typeof _0x2eee42['getRandomValues']=='function')try{return _0x2eee42[_0x175ea(0x168)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x2eee42[_0x175ea(0x4b0)]==_0x175ea(0x323))try{return _0x2eee42['randomBytes'](0x4)[_0x175ea(0x18b)]();}catch{}}throw new Error(_0x175ea(0x50a));},_0x1ca1ba=Object[_0x4f3cce(0x21e)]||(function(){function _0x405cfe(){}return function(_0x16de25){const _0x2b2b57=_0x3f71;var _0x2cb302;return _0x405cfe[_0x2b2b57(0x42a)]=_0x16de25,_0x2cb302=new _0x405cfe(),_0x405cfe[_0x2b2b57(0x42a)]=null,_0x2cb302;};}()),_0x540237={},_0x3ceec7=_0x540237[_0x4f3cce(0x56f)]={},_0x26415c=_0x3ceec7[_0x4f3cce(0x4ef)]=(function(){return{'extend':function(_0x5ec0f4){const _0x4ad3e9=_0x3f71;var _0x35ad88=_0x1ca1ba(this);return _0x5ec0f4&&_0x35ad88['mixIn'](_0x5ec0f4),(!_0x35ad88[_0x4ad3e9(0x3f7)](_0x4ad3e9(0x485))||this[_0x4ad3e9(0x485)]===_0x35ad88[_0x4ad3e9(0x485)])&&(_0x35ad88[_0x4ad3e9(0x485)]=function(){const _0x327132=_0x4ad3e9;_0x35ad88['$super'][_0x327132(0x485)]['apply'](this,arguments);}),_0x35ad88[_0x4ad3e9(0x485)][_0x4ad3e9(0x42a)]=_0x35ad88,_0x35ad88[_0x4ad3e9(0x3c6)]=this,_0x35ad88;},'create':function(){const _0x1adc31=_0x3f71;var _0x260d40=this['extend']();return _0x260d40[_0x1adc31(0x485)][_0x1adc31(0x19a)](_0x260d40,arguments),_0x260d40;},'init':function(){},'mixIn':function(_0x56a042){const _0x3cf8d7=_0x3f71;for(var _0x50263 in _0x56a042)_0x56a042['hasOwnProperty'](_0x50263)&&(this[_0x50263]=_0x56a042[_0x50263]);_0x56a042[_0x3cf8d7(0x3f7)](_0x3cf8d7(0x353))&&(this['toString']=_0x56a042[_0x3cf8d7(0x353)]);},'clone':function(){const _0x4f590d=_0x3f71;return this['init'][_0x4f590d(0x42a)][_0x4f590d(0x30a)](this);}};}()),_0x91ca0f=_0x3ceec7['WordArray']=_0x26415c['extend']({'init':function(_0x4e89a2,_0x3aa5b0){const _0x333cbf=_0x4f3cce;_0x4e89a2=this['words']=_0x4e89a2||[],_0x3aa5b0!=_0x44e9b2?this['sigBytes']=_0x3aa5b0:this[_0x333cbf(0x2b8)]=_0x4e89a2[_0x333cbf(0x339)]*0x4;},'toString':function(_0x2c2075){const _0x321939=_0x4f3cce;return(_0x2c2075||_0x290fe5)[_0x321939(0x3f4)](this);},'concat':function(_0x50f209){const _0x220faf=_0x4f3cce;var _0x21a7f6=this[_0x220faf(0x464)],_0x2f9df9=_0x50f209[_0x220faf(0x464)],_0x192454=this[_0x220faf(0x2b8)],_0x5f16bd=_0x50f209[_0x220faf(0x2b8)];if(this[_0x220faf(0x419)](),_0x192454%0x4)for(var _0x5ac69a=0x0;_0x5ac69a<_0x5f16bd;_0x5ac69a++){var _0x13f846=_0x2f9df9[_0x5ac69a>>>0x2]>>>0x18-_0x5ac69a%0x4*0x8&0xff;_0x21a7f6[_0x192454+_0x5ac69a>>>0x2]|=_0x13f846<<0x18-(_0x192454+_0x5ac69a)%0x4*0x8;}else{for(var _0x5a428c=0x0;_0x5a428c<_0x5f16bd;_0x5a428c+=0x4)_0x21a7f6[_0x192454+_0x5a428c>>>0x2]=_0x2f9df9[_0x5a428c>>>0x2];}return this[_0x220faf(0x2b8)]+=_0x5f16bd,this;},'clamp':function(){const _0x116502=_0x4f3cce;var _0x5698ee=this[_0x116502(0x464)],_0x1f8cc4=this[_0x116502(0x2b8)];_0x5698ee[_0x1f8cc4>>>0x2]&=0xffffffff<<0x20-_0x1f8cc4%0x4*0x8,_0x5698ee[_0x116502(0x339)]=_0x51e892[_0x116502(0x45d)](_0x1f8cc4/0x4);},'clone':function(){const _0x24e6b3=_0x4f3cce;var _0x83bda5=_0x26415c[_0x24e6b3(0x553)][_0x24e6b3(0x575)](this);return _0x83bda5[_0x24e6b3(0x464)]=this['words'][_0x24e6b3(0x31f)](0x0),_0x83bda5;},'random':function(_0xe62ba2){const _0x1a8b7b=_0x4f3cce;for(var _0x466a80=[],_0x3059be=0x0;_0x3059be<_0xe62ba2;_0x3059be+=0x4)_0x466a80['push'](_0x5d2072());return new _0x91ca0f[(_0x1a8b7b(0x485))](_0x466a80,_0xe62ba2);}}),_0x2b054=_0x540237[_0x4f3cce(0x45b)]={},_0x290fe5=_0x2b054['Hex']={'stringify':function(_0x4f9256){const _0x17ea69=_0x4f3cce;for(var _0x553c9d=_0x4f9256[_0x17ea69(0x464)],_0x58e0ef=_0x4f9256[_0x17ea69(0x2b8)],_0x59a7aa=[],_0x1e1d02=0x0;_0x1e1d02<_0x58e0ef;_0x1e1d02++){var _0x5ce65f=_0x553c9d[_0x1e1d02>>>0x2]>>>0x18-_0x1e1d02%0x4*0x8&0xff;_0x59a7aa[_0x17ea69(0x19c)]((_0x5ce65f>>>0x4)[_0x17ea69(0x353)](0x10)),_0x59a7aa[_0x17ea69(0x19c)]((_0x5ce65f&0xf)['toString'](0x10));}return _0x59a7aa[_0x17ea69(0x3d1)]('');},'parse':function(_0x28f4ae){const _0x386449=_0x4f3cce;for(var _0x62009=_0x28f4ae['length'],_0x3ccc3d=[],_0x48f227=0x0;_0x48f227<_0x62009;_0x48f227+=0x2)_0x3ccc3d[_0x48f227>>>0x3]|=parseInt(_0x28f4ae['substr'](_0x48f227,0x2),0x10)<<0x18-_0x48f227%0x8*0x4;return new _0x91ca0f[(_0x386449(0x485))](_0x3ccc3d,_0x62009/0x2);}},_0x173138=_0x2b054[_0x4f3cce(0x22b)]={'stringify':function(_0x4408a5){const _0x37abe7=_0x4f3cce;for(var _0x5e60cd=_0x4408a5[_0x37abe7(0x464)],_0x527a2a=_0x4408a5[_0x37abe7(0x2b8)],_0x671975=[],_0x406ba1=0x0;_0x406ba1<_0x527a2a;_0x406ba1++){var _0x41ff84=_0x5e60cd[_0x406ba1>>>0x2]>>>0x18-_0x406ba1%0x4*0x8&0xff;_0x671975[_0x37abe7(0x19c)](String[_0x37abe7(0x5bf)](_0x41ff84));}return _0x671975[_0x37abe7(0x3d1)]('');},'parse':function(_0x435132){const _0x25ef25=_0x4f3cce;for(var _0x1bd861=_0x435132['length'],_0x159dd1=[],_0x56eed0=0x0;_0x56eed0<_0x1bd861;_0x56eed0++)_0x159dd1[_0x56eed0>>>0x2]|=(_0x435132[_0x25ef25(0x189)](_0x56eed0)&0xff)<<0x18-_0x56eed0%0x4*0x8;return new _0x91ca0f[(_0x25ef25(0x485))](_0x159dd1,_0x1bd861);}},_0x5b8568=_0x2b054[_0x4f3cce(0x357)]={'stringify':function(_0x4e4ac9){const _0x43f83c=_0x4f3cce;try{return decodeURIComponent(escape(_0x173138[_0x43f83c(0x3f4)](_0x4e4ac9)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'parse':function(_0x41263c){return _0x173138['parse'](unescape(encodeURIComponent(_0x41263c)));}},_0xe76b8e=_0x3ceec7['BufferedBlockAlgorithm']=_0x26415c[_0x4f3cce(0x30a)]({'reset':function(){const _0xd4b94=_0x4f3cce;this['_data']=new _0x91ca0f[(_0xd4b94(0x485))](),this[_0xd4b94(0x458)]=0x0;},'_append':function(_0x117bcd){const _0x53d82c=_0x4f3cce;typeof _0x117bcd=='string'&&(_0x117bcd=_0x5b8568[_0x53d82c(0x55a)](_0x117bcd)),this['_data'][_0x53d82c(0x273)](_0x117bcd),this['_nDataBytes']+=_0x117bcd[_0x53d82c(0x2b8)];},'_process':function(_0x346ac1){const _0x3a7b39=_0x4f3cce;var _0x3f895c,_0x595897=this[_0x3a7b39(0x29e)],_0x12201e=_0x595897[_0x3a7b39(0x464)],_0x38bdf7=_0x595897[_0x3a7b39(0x2b8)],_0x1f5b2c=this[_0x3a7b39(0x59b)],_0x2235d9=_0x1f5b2c*0x4,_0x2bbf80=_0x38bdf7/_0x2235d9;_0x346ac1?_0x2bbf80=_0x51e892[_0x3a7b39(0x45d)](_0x2bbf80):_0x2bbf80=_0x51e892[_0x3a7b39(0x4ce)]((_0x2bbf80|0x0)-this['_minBufferSize'],0x0);var _0x373166=_0x2bbf80*_0x1f5b2c,_0x53d516=_0x51e892['min'](_0x373166*0x4,_0x38bdf7);if(_0x373166){for(var _0x3f6973=0x0;_0x3f6973<_0x373166;_0x3f6973+=_0x1f5b2c)this[_0x3a7b39(0x179)](_0x12201e,_0x3f6973);_0x3f895c=_0x12201e[_0x3a7b39(0x563)](0x0,_0x373166),_0x595897[_0x3a7b39(0x2b8)]-=_0x53d516;}return new _0x91ca0f[(_0x3a7b39(0x485))](_0x3f895c,_0x53d516);},'clone':function(){const _0x38a726=_0x4f3cce;var _0x361984=_0x26415c[_0x38a726(0x553)][_0x38a726(0x575)](this);return _0x361984[_0x38a726(0x29e)]=this[_0x38a726(0x29e)][_0x38a726(0x553)](),_0x361984;},'_minBufferSize':0x0});_0x3ceec7[_0x4f3cce(0x5c1)]=_0xe76b8e[_0x4f3cce(0x30a)]({'cfg':_0x26415c[_0x4f3cce(0x30a)](),'init':function(_0x59fafd){const _0x12551f=_0x4f3cce;this['cfg']=this[_0x12551f(0x5d1)][_0x12551f(0x30a)](_0x59fafd),this['reset']();},'reset':function(){const _0x337dc3=_0x4f3cce;_0xe76b8e['reset'][_0x337dc3(0x575)](this),this['_doReset']();},'update':function(_0x57bc76){const _0x4d1eca=_0x4f3cce;return this[_0x4d1eca(0x1fe)](_0x57bc76),this[_0x4d1eca(0x4fe)](),this;},'finalize':function(_0x4e77a7){const _0x4de597=_0x4f3cce;_0x4e77a7&&this[_0x4de597(0x1fe)](_0x4e77a7);var _0x2eff35=this[_0x4de597(0x56c)]();return _0x2eff35;},'blockSize':0x10,'_createHelper':function(_0x18f53e){return function(_0x2e38f8,_0x54d2ba){const _0x38398e=_0x3f71;return new _0x18f53e[(_0x38398e(0x485))](_0x54d2ba)[_0x38398e(0x42f)](_0x2e38f8);};},'_createHmacHelper':function(_0x51ee42){return function(_0x314d7e,_0xaa563a){const _0x41f403=_0x3f71;return new _0x3da8fd[(_0x41f403(0x435))]['init'](_0x51ee42,_0xaa563a)[_0x41f403(0x42f)](_0x314d7e);};}});var _0x3da8fd=_0x540237[_0x4f3cce(0x3eb)]={};return _0x540237;}(Math);return _0x4b679c;}));}(ct)),ct[_0x2fef41(0x4b1)];}var lt={'exports':{}},Vt;function On(){const _0xba8452=_0x1f2fa;return Vt||(Vt=0x1,function(_0x3b3786,_0x128400){(function(_0x3e4d15,_0x5a79a9){_0x3b3786['exports']=_0x5a79a9(oe());}(X,function(_0x4b9165){const _0x305bf9=_0x3f71;return(function(){const _0x1e68fd=_0x3f71;var _0x51c60c=_0x4b9165,_0x369ceb=_0x51c60c['lib'],_0x451275=_0x369ceb[_0x1e68fd(0x27d)],_0x329043=_0x51c60c['enc'];_0x329043[_0x1e68fd(0x2c8)]={'stringify':function(_0x3760fb){const _0x15e137=_0x1e68fd;var _0x5c0368=_0x3760fb[_0x15e137(0x464)],_0x3e52fb=_0x3760fb[_0x15e137(0x2b8)],_0x378c35=this[_0x15e137(0x585)];_0x3760fb[_0x15e137(0x419)]();for(var _0x1c40d8=[],_0x130949=0x0;_0x130949<_0x3e52fb;_0x130949+=0x3)for(var _0x43485e=_0x5c0368[_0x130949>>>0x2]>>>0x18-_0x130949%0x4*0x8&0xff,_0x3155d7=_0x5c0368[_0x130949+0x1>>>0x2]>>>0x18-(_0x130949+0x1)%0x4*0x8&0xff,_0x31e873=_0x5c0368[_0x130949+0x2>>>0x2]>>>0x18-(_0x130949+0x2)%0x4*0x8&0xff,_0x12482c=_0x43485e<<0x10|_0x3155d7<<0x8|_0x31e873,_0x2fe130=0x0;_0x2fe130<0x4&&_0x130949+_0x2fe130*0.75<_0x3e52fb;_0x2fe130++)_0x1c40d8[_0x15e137(0x19c)](_0x378c35[_0x15e137(0x4d1)](_0x12482c>>>0x6*(0x3-_0x2fe130)&0x3f));var _0x394bec=_0x378c35[_0x15e137(0x4d1)](0x40);if(_0x394bec){for(;_0x1c40d8[_0x15e137(0x339)]%0x4;)_0x1c40d8[_0x15e137(0x19c)](_0x394bec);}return _0x1c40d8[_0x15e137(0x3d1)]('');},'parse':function(_0x594640){const _0x11f29f=_0x1e68fd;var _0x48cd5c=_0x594640[_0x11f29f(0x339)],_0x510a22=this[_0x11f29f(0x585)],_0x465e0c=this[_0x11f29f(0x410)];if(!_0x465e0c){_0x465e0c=this[_0x11f29f(0x410)]=[];for(var _0x1b8565=0x0;_0x1b8565<_0x510a22[_0x11f29f(0x339)];_0x1b8565++)_0x465e0c[_0x510a22[_0x11f29f(0x189)](_0x1b8565)]=_0x1b8565;}var _0x34a676=_0x510a22['charAt'](0x40);if(_0x34a676){var _0x85233f=_0x594640[_0x11f29f(0x2a1)](_0x34a676);_0x85233f!==-0x1&&(_0x48cd5c=_0x85233f);}return _0x34c1fa(_0x594640,_0x48cd5c,_0x465e0c);},'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0x34c1fa(_0x2c368d,_0x1cf600,_0x5f065f){const _0x110915=_0x1e68fd;for(var _0x1871fe=[],_0x1d5446=0x0,_0x42c813=0x0;_0x42c813<_0x1cf600;_0x42c813++)if(_0x42c813%0x4){var _0x29a616=_0x5f065f[_0x2c368d[_0x110915(0x189)](_0x42c813-0x1)]<<_0x42c813%0x4*0x2,_0x22396d=_0x5f065f[_0x2c368d[_0x110915(0x189)](_0x42c813)]>>>0x6-_0x42c813%0x4*0x2,_0x3ad649=_0x29a616|_0x22396d;_0x1871fe[_0x1d5446>>>0x2]|=_0x3ad649<<0x18-_0x1d5446%0x4*0x8,_0x1d5446++;}return _0x451275[_0x110915(0x21e)](_0x1871fe,_0x1d5446);}}()),_0x4b9165[_0x305bf9(0x45b)][_0x305bf9(0x2c8)];}));}(lt)),lt[_0xba8452(0x4b1)];}var ht={'exports':{}},Gt;function ar(){const _0x1d91f5=_0x1f2fa;return Gt||(Gt=0x1,function(_0x3c8c4e,_0x3946db){(function(_0x35f4c4,_0x2db2f9){const _0x440adf=_0x3f71;_0x3c8c4e[_0x440adf(0x4b1)]=_0x2db2f9(oe());}(X,function(_0x5b258d){const _0x5df7ab=_0x3f71;return function(_0x21510e){const _0x2ccb51=_0x3f71;var _0x268372=_0x5b258d,_0x47242b=_0x268372[_0x2ccb51(0x56f)],_0x36ff64=_0x47242b['WordArray'],_0x357285=_0x47242b['Hasher'],_0x358865=_0x268372[_0x2ccb51(0x3eb)],_0x1494ce=[];(function(){const _0x26dc97=_0x2ccb51;for(var _0x5de0ca=0x0;_0x5de0ca<0x40;_0x5de0ca++)_0x1494ce[_0x5de0ca]=_0x21510e[_0x26dc97(0x413)](_0x21510e['sin'](_0x5de0ca+0x1))*0x100000000|0x0;}());var _0x45e30d=_0x358865[_0x2ccb51(0x3b0)]=_0x357285[_0x2ccb51(0x30a)]({'_doReset':function(){const _0x2ab718=_0x2ccb51;this[_0x2ab718(0x4cf)]=new _0x36ff64[(_0x2ab718(0x485))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x17e0a2,_0x5b99ff){const _0x1b8f89=_0x2ccb51;for(var _0x1752f1=0x0;_0x1752f1<0x10;_0x1752f1++){var _0x4e1ee8=_0x5b99ff+_0x1752f1,_0x50ae9a=_0x17e0a2[_0x4e1ee8];_0x17e0a2[_0x4e1ee8]=(_0x50ae9a<<0x8|_0x50ae9a>>>0x18)&0xff00ff|(_0x50ae9a<<0x18|_0x50ae9a>>>0x8)&0xff00ff00;}var _0x380e25=this[_0x1b8f89(0x4cf)][_0x1b8f89(0x464)],_0x4ce3ef=_0x17e0a2[_0x5b99ff+0x0],_0x2c3706=_0x17e0a2[_0x5b99ff+0x1],_0xe15175=_0x17e0a2[_0x5b99ff+0x2],_0x308477=_0x17e0a2[_0x5b99ff+0x3],_0x346fd5=_0x17e0a2[_0x5b99ff+0x4],_0x56bae4=_0x17e0a2[_0x5b99ff+0x5],_0x149ad8=_0x17e0a2[_0x5b99ff+0x6],_0x317477=_0x17e0a2[_0x5b99ff+0x7],_0xda8b31=_0x17e0a2[_0x5b99ff+0x8],_0x4cce2e=_0x17e0a2[_0x5b99ff+0x9],_0x102f64=_0x17e0a2[_0x5b99ff+0xa],_0x4ed735=_0x17e0a2[_0x5b99ff+0xb],_0x5eaccb=_0x17e0a2[_0x5b99ff+0xc],_0x3fb970=_0x17e0a2[_0x5b99ff+0xd],_0x521b8a=_0x17e0a2[_0x5b99ff+0xe],_0x20971d=_0x17e0a2[_0x5b99ff+0xf],_0x251979=_0x380e25[0x0],_0xc4167=_0x380e25[0x1],_0x482139=_0x380e25[0x2],_0x3edaf4=_0x380e25[0x3];_0x251979=_0x50312e(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x4ce3ef,0x7,_0x1494ce[0x0]),_0x3edaf4=_0x50312e(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x2c3706,0xc,_0x1494ce[0x1]),_0x482139=_0x50312e(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0xe15175,0x11,_0x1494ce[0x2]),_0xc4167=_0x50312e(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x308477,0x16,_0x1494ce[0x3]),_0x251979=_0x50312e(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x346fd5,0x7,_0x1494ce[0x4]),_0x3edaf4=_0x50312e(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x56bae4,0xc,_0x1494ce[0x5]),_0x482139=_0x50312e(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x149ad8,0x11,_0x1494ce[0x6]),_0xc4167=_0x50312e(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x317477,0x16,_0x1494ce[0x7]),_0x251979=_0x50312e(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0xda8b31,0x7,_0x1494ce[0x8]),_0x3edaf4=_0x50312e(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x4cce2e,0xc,_0x1494ce[0x9]),_0x482139=_0x50312e(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x102f64,0x11,_0x1494ce[0xa]),_0xc4167=_0x50312e(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x4ed735,0x16,_0x1494ce[0xb]),_0x251979=_0x50312e(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x5eaccb,0x7,_0x1494ce[0xc]),_0x3edaf4=_0x50312e(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x3fb970,0xc,_0x1494ce[0xd]),_0x482139=_0x50312e(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x521b8a,0x11,_0x1494ce[0xe]),_0xc4167=_0x50312e(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x20971d,0x16,_0x1494ce[0xf]),_0x251979=_0x637cc6(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x2c3706,0x5,_0x1494ce[0x10]),_0x3edaf4=_0x637cc6(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x149ad8,0x9,_0x1494ce[0x11]),_0x482139=_0x637cc6(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x4ed735,0xe,_0x1494ce[0x12]),_0xc4167=_0x637cc6(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x4ce3ef,0x14,_0x1494ce[0x13]),_0x251979=_0x637cc6(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x56bae4,0x5,_0x1494ce[0x14]),_0x3edaf4=_0x637cc6(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x102f64,0x9,_0x1494ce[0x15]),_0x482139=_0x637cc6(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x20971d,0xe,_0x1494ce[0x16]),_0xc4167=_0x637cc6(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x346fd5,0x14,_0x1494ce[0x17]),_0x251979=_0x637cc6(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x4cce2e,0x5,_0x1494ce[0x18]),_0x3edaf4=_0x637cc6(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x521b8a,0x9,_0x1494ce[0x19]),_0x482139=_0x637cc6(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x308477,0xe,_0x1494ce[0x1a]),_0xc4167=_0x637cc6(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0xda8b31,0x14,_0x1494ce[0x1b]),_0x251979=_0x637cc6(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x3fb970,0x5,_0x1494ce[0x1c]),_0x3edaf4=_0x637cc6(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0xe15175,0x9,_0x1494ce[0x1d]),_0x482139=_0x637cc6(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x317477,0xe,_0x1494ce[0x1e]),_0xc4167=_0x637cc6(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x5eaccb,0x14,_0x1494ce[0x1f]),_0x251979=_0x1664b0(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x56bae4,0x4,_0x1494ce[0x20]),_0x3edaf4=_0x1664b0(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0xda8b31,0xb,_0x1494ce[0x21]),_0x482139=_0x1664b0(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x4ed735,0x10,_0x1494ce[0x22]),_0xc4167=_0x1664b0(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x521b8a,0x17,_0x1494ce[0x23]),_0x251979=_0x1664b0(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x2c3706,0x4,_0x1494ce[0x24]),_0x3edaf4=_0x1664b0(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x346fd5,0xb,_0x1494ce[0x25]),_0x482139=_0x1664b0(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x317477,0x10,_0x1494ce[0x26]),_0xc4167=_0x1664b0(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x102f64,0x17,_0x1494ce[0x27]),_0x251979=_0x1664b0(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x3fb970,0x4,_0x1494ce[0x28]),_0x3edaf4=_0x1664b0(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x4ce3ef,0xb,_0x1494ce[0x29]),_0x482139=_0x1664b0(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x308477,0x10,_0x1494ce[0x2a]),_0xc4167=_0x1664b0(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x149ad8,0x17,_0x1494ce[0x2b]),_0x251979=_0x1664b0(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x4cce2e,0x4,_0x1494ce[0x2c]),_0x3edaf4=_0x1664b0(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x5eaccb,0xb,_0x1494ce[0x2d]),_0x482139=_0x1664b0(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x20971d,0x10,_0x1494ce[0x2e]),_0xc4167=_0x1664b0(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0xe15175,0x17,_0x1494ce[0x2f]),_0x251979=_0x46efa9(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x4ce3ef,0x6,_0x1494ce[0x30]),_0x3edaf4=_0x46efa9(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x317477,0xa,_0x1494ce[0x31]),_0x482139=_0x46efa9(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x521b8a,0xf,_0x1494ce[0x32]),_0xc4167=_0x46efa9(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x56bae4,0x15,_0x1494ce[0x33]),_0x251979=_0x46efa9(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x5eaccb,0x6,_0x1494ce[0x34]),_0x3edaf4=_0x46efa9(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x308477,0xa,_0x1494ce[0x35]),_0x482139=_0x46efa9(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x102f64,0xf,_0x1494ce[0x36]),_0xc4167=_0x46efa9(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x2c3706,0x15,_0x1494ce[0x37]),_0x251979=_0x46efa9(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0xda8b31,0x6,_0x1494ce[0x38]),_0x3edaf4=_0x46efa9(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x20971d,0xa,_0x1494ce[0x39]),_0x482139=_0x46efa9(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0x149ad8,0xf,_0x1494ce[0x3a]),_0xc4167=_0x46efa9(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x3fb970,0x15,_0x1494ce[0x3b]),_0x251979=_0x46efa9(_0x251979,_0xc4167,_0x482139,_0x3edaf4,_0x346fd5,0x6,_0x1494ce[0x3c]),_0x3edaf4=_0x46efa9(_0x3edaf4,_0x251979,_0xc4167,_0x482139,_0x4ed735,0xa,_0x1494ce[0x3d]),_0x482139=_0x46efa9(_0x482139,_0x3edaf4,_0x251979,_0xc4167,_0xe15175,0xf,_0x1494ce[0x3e]),_0xc4167=_0x46efa9(_0xc4167,_0x482139,_0x3edaf4,_0x251979,_0x4cce2e,0x15,_0x1494ce[0x3f]),_0x380e25[0x0]=_0x380e25[0x0]+_0x251979|0x0,_0x380e25[0x1]=_0x380e25[0x1]+_0xc4167|0x0,_0x380e25[0x2]=_0x380e25[0x2]+_0x482139|0x0,_0x380e25[0x3]=_0x380e25[0x3]+_0x3edaf4|0x0;},'_doFinalize':function(){const _0x161e76=_0x2ccb51;var _0x5e98c3=this[_0x161e76(0x29e)],_0x5e5faa=_0x5e98c3[_0x161e76(0x464)],_0x5c6961=this[_0x161e76(0x458)]*0x8,_0x2c9c02=_0x5e98c3[_0x161e76(0x2b8)]*0x8;_0x5e5faa[_0x2c9c02>>>0x5]|=0x80<<0x18-_0x2c9c02%0x20;var _0x584053=_0x21510e['floor'](_0x5c6961/0x100000000),_0xd28421=_0x5c6961;_0x5e5faa[(_0x2c9c02+0x40>>>0x9<<0x4)+0xf]=(_0x584053<<0x8|_0x584053>>>0x18)&0xff00ff|(_0x584053<<0x18|_0x584053>>>0x8)&0xff00ff00,_0x5e5faa[(_0x2c9c02+0x40>>>0x9<<0x4)+0xe]=(_0xd28421<<0x8|_0xd28421>>>0x18)&0xff00ff|(_0xd28421<<0x18|_0xd28421>>>0x8)&0xff00ff00,_0x5e98c3[_0x161e76(0x2b8)]=(_0x5e5faa['length']+0x1)*0x4,this['_process']();for(var _0x3fec3b=this[_0x161e76(0x4cf)],_0x13e89f=_0x3fec3b[_0x161e76(0x464)],_0x2b1ed6=0x0;_0x2b1ed6<0x4;_0x2b1ed6++){var _0x2aac64=_0x13e89f[_0x2b1ed6];_0x13e89f[_0x2b1ed6]=(_0x2aac64<<0x8|_0x2aac64>>>0x18)&0xff00ff|(_0x2aac64<<0x18|_0x2aac64>>>0x8)&0xff00ff00;}return _0x3fec3b;},'clone':function(){const _0xb87d2d=_0x2ccb51;var _0x10c49e=_0x357285[_0xb87d2d(0x553)]['call'](this);return _0x10c49e['_hash']=this[_0xb87d2d(0x4cf)][_0xb87d2d(0x553)](),_0x10c49e;}});function _0x50312e(_0x3677eb,_0x167aef,_0x52387,_0x4ddd86,_0x17ff70,_0xe4d8b9,_0x422777){var _0x19bc24=_0x3677eb+(_0x167aef&_0x52387|~_0x167aef&_0x4ddd86)+_0x17ff70+_0x422777;return(_0x19bc24<<_0xe4d8b9|_0x19bc24>>>0x20-_0xe4d8b9)+_0x167aef;}function _0x637cc6(_0x580ddf,_0x130444,_0x29f63a,_0x15551d,_0x255c40,_0x4e812c,_0x1b6f22){var _0x2cb469=_0x580ddf+(_0x130444&_0x15551d|_0x29f63a&~_0x15551d)+_0x255c40+_0x1b6f22;return(_0x2cb469<<_0x4e812c|_0x2cb469>>>0x20-_0x4e812c)+_0x130444;}function _0x1664b0(_0x173b10,_0x44fc86,_0x927f7f,_0x162c34,_0x1cc664,_0x5b9413,_0x36f44f){var _0x1f506a=_0x173b10+(_0x44fc86^_0x927f7f^_0x162c34)+_0x1cc664+_0x36f44f;return(_0x1f506a<<_0x5b9413|_0x1f506a>>>0x20-_0x5b9413)+_0x44fc86;}function _0x46efa9(_0x473b57,_0x523e59,_0x3aa86d,_0x4d539a,_0x5b0d02,_0x40df35,_0x409586){var _0x3237d0=_0x473b57+(_0x3aa86d^(_0x523e59|~_0x4d539a))+_0x5b0d02+_0x409586;return(_0x3237d0<<_0x40df35|_0x3237d0>>>0x20-_0x40df35)+_0x523e59;}_0x268372[_0x2ccb51(0x3b0)]=_0x357285[_0x2ccb51(0x3fc)](_0x45e30d),_0x268372[_0x2ccb51(0x5e9)]=_0x357285[_0x2ccb51(0x400)](_0x45e30d);}(Math),_0x5b258d[_0x5df7ab(0x3b0)];}));}(ht)),ht[_0x1d91f5(0x4b1)];}var _t={'exports':{}},ut={'exports':{}},Yt;function cr(){const _0x1730d1=_0x1f2fa;return Yt||(Yt=0x1,function(_0x5c4368,_0x288ce){(function(_0x5c1ddb,_0x490e7b){const _0x4a697b=_0x3f71;_0x5c4368[_0x4a697b(0x4b1)]=_0x490e7b(oe());}(X,function(_0x223564){const _0x4ad2d6=_0x3f71;return(function(){const _0x4def38=_0x3f71;var _0x49823e=_0x223564,_0x4469a8=_0x49823e['lib'],_0xe98359=_0x4469a8[_0x4def38(0x27d)],_0x217dc0=_0x4469a8[_0x4def38(0x5c1)],_0x20b25c=_0x49823e[_0x4def38(0x3eb)],_0x337a28=[],_0x163e65=_0x20b25c[_0x4def38(0x1b5)]=_0x217dc0[_0x4def38(0x30a)]({'_doReset':function(){const _0x2c2ddd=_0x4def38;this[_0x2c2ddd(0x4cf)]=new _0xe98359[(_0x2c2ddd(0x485))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x5c645d,_0x275848){const _0x3ce7b8=_0x4def38;for(var _0x23bd39=this['_hash'][_0x3ce7b8(0x464)],_0x481f1f=_0x23bd39[0x0],_0x55f531=_0x23bd39[0x1],_0x18b6ef=_0x23bd39[0x2],_0x1068af=_0x23bd39[0x3],_0x52f199=_0x23bd39[0x4],_0x8c4d43=0x0;_0x8c4d43<0x50;_0x8c4d43++){if(_0x8c4d43<0x10)_0x337a28[_0x8c4d43]=_0x5c645d[_0x275848+_0x8c4d43]|0x0;else{var _0x5ebb03=_0x337a28[_0x8c4d43-0x3]^_0x337a28[_0x8c4d43-0x8]^_0x337a28[_0x8c4d43-0xe]^_0x337a28[_0x8c4d43-0x10];_0x337a28[_0x8c4d43]=_0x5ebb03<<0x1|_0x5ebb03>>>0x1f;}var _0x2c082c=(_0x481f1f<<0x5|_0x481f1f>>>0x1b)+_0x52f199+_0x337a28[_0x8c4d43];_0x8c4d43<0x14?_0x2c082c+=(_0x55f531&_0x18b6ef|~_0x55f531&_0x1068af)+0x5a827999:_0x8c4d43<0x28?_0x2c082c+=(_0x55f531^_0x18b6ef^_0x1068af)+0x6ed9eba1:_0x8c4d43<0x3c?_0x2c082c+=(_0x55f531&_0x18b6ef|_0x55f531&_0x1068af|_0x18b6ef&_0x1068af)-0x70e44324:_0x2c082c+=(_0x55f531^_0x18b6ef^_0x1068af)-0x359d3e2a,_0x52f199=_0x1068af,_0x1068af=_0x18b6ef,_0x18b6ef=_0x55f531<<0x1e|_0x55f531>>>0x2,_0x55f531=_0x481f1f,_0x481f1f=_0x2c082c;}_0x23bd39[0x0]=_0x23bd39[0x0]+_0x481f1f|0x0,_0x23bd39[0x1]=_0x23bd39[0x1]+_0x55f531|0x0,_0x23bd39[0x2]=_0x23bd39[0x2]+_0x18b6ef|0x0,_0x23bd39[0x3]=_0x23bd39[0x3]+_0x1068af|0x0,_0x23bd39[0x4]=_0x23bd39[0x4]+_0x52f199|0x0;},'_doFinalize':function(){const _0x1cf6f9=_0x4def38;var _0x5b4814=this['_data'],_0x5dee54=_0x5b4814['words'],_0xded2c6=this[_0x1cf6f9(0x458)]*0x8,_0x5e4406=_0x5b4814['sigBytes']*0x8;return _0x5dee54[_0x5e4406>>>0x5]|=0x80<<0x18-_0x5e4406%0x20,_0x5dee54[(_0x5e4406+0x40>>>0x9<<0x4)+0xe]=Math['floor'](_0xded2c6/0x100000000),_0x5dee54[(_0x5e4406+0x40>>>0x9<<0x4)+0xf]=_0xded2c6,_0x5b4814[_0x1cf6f9(0x2b8)]=_0x5dee54[_0x1cf6f9(0x339)]*0x4,this['_process'](),this[_0x1cf6f9(0x4cf)];},'clone':function(){const _0xdca894=_0x4def38;var _0x161986=_0x217dc0[_0xdca894(0x553)][_0xdca894(0x575)](this);return _0x161986['_hash']=this[_0xdca894(0x4cf)][_0xdca894(0x553)](),_0x161986;}});_0x49823e[_0x4def38(0x1b5)]=_0x217dc0[_0x4def38(0x3fc)](_0x163e65),_0x49823e[_0x4def38(0x361)]=_0x217dc0['_createHmacHelper'](_0x163e65);}()),_0x223564[_0x4ad2d6(0x1b5)];}));}(ut)),ut[_0x1730d1(0x4b1)];}var dt={'exports':{}},Kt;function lr(){const _0x531aff=_0x1f2fa;return Kt||(Kt=0x1,function(_0x181ebe,_0x3eeffd){(function(_0x331866,_0x461e00){const _0x2fe72e=_0x3f71;_0x181ebe[_0x2fe72e(0x4b1)]=_0x461e00(oe());}(X,function(_0x2a0943){(function(){const _0x4c3785=_0x3f71;var _0x28aa8d=_0x2a0943,_0x3c08b5=_0x28aa8d[_0x4c3785(0x56f)],_0x5843cd=_0x3c08b5['Base'],_0x4112b9=_0x28aa8d[_0x4c3785(0x45b)],_0x3eefa6=_0x4112b9[_0x4c3785(0x357)],_0x325536=_0x28aa8d['algo'];_0x325536[_0x4c3785(0x435)]=_0x5843cd[_0x4c3785(0x30a)]({'init':function(_0x4f8aa1,_0x3674dd){const _0x28941f=_0x4c3785;_0x4f8aa1=this[_0x28941f(0x334)]=new _0x4f8aa1['init'](),typeof _0x3674dd==_0x28941f(0x205)&&(_0x3674dd=_0x3eefa6[_0x28941f(0x55a)](_0x3674dd));var _0x14ed95=_0x4f8aa1[_0x28941f(0x59b)],_0x524a4a=_0x14ed95*0x4;_0x3674dd[_0x28941f(0x2b8)]>_0x524a4a&&(_0x3674dd=_0x4f8aa1[_0x28941f(0x42f)](_0x3674dd)),_0x3674dd[_0x28941f(0x419)]();for(var _0x452483=this[_0x28941f(0x4f5)]=_0x3674dd['clone'](),_0xb24dc2=this['_iKey']=_0x3674dd[_0x28941f(0x553)](),_0x5d1de5=_0x452483[_0x28941f(0x464)],_0x54138b=_0xb24dc2['words'],_0x49453c=0x0;_0x49453c<_0x14ed95;_0x49453c++)_0x5d1de5[_0x49453c]^=0x5c5c5c5c,_0x54138b[_0x49453c]^=0x36363636;_0x452483[_0x28941f(0x2b8)]=_0xb24dc2[_0x28941f(0x2b8)]=_0x524a4a,this['reset']();},'reset':function(){const _0x2f3b8d=_0x4c3785;var _0xe5f1a6=this['_hasher'];_0xe5f1a6['reset'](),_0xe5f1a6[_0x2f3b8d(0x193)](this[_0x2f3b8d(0x4d5)]);},'update':function(_0x587796){const _0xaef80c=_0x4c3785;return this[_0xaef80c(0x334)][_0xaef80c(0x193)](_0x587796),this;},'finalize':function(_0x5a817f){const _0x427229=_0x4c3785;var _0x1a3847=this[_0x427229(0x334)],_0x3afc37=_0x1a3847[_0x427229(0x42f)](_0x5a817f);_0x1a3847['reset']();var _0xececfe=_0x1a3847[_0x427229(0x42f)](this['_oKey'][_0x427229(0x553)]()['concat'](_0x3afc37));return _0xececfe;}});}());}));}(dt)),dt[_0x531aff(0x4b1)];}var qt;function Dn(){return qt||(qt=0x1,function(_0x452e23,_0x52496f){(function(_0x23a645,_0x57bdfb,_0x354141){const _0x1a05f6=_0x3f71;_0x452e23[_0x1a05f6(0x4b1)]=_0x57bdfb(oe(),cr(),lr());}(X,function(_0x3288a3){const _0x5e088d=_0x3f71;return(function(){const _0x2f1de3=_0x3f71;var _0x2c20be=_0x3288a3,_0x2fb3ee=_0x2c20be[_0x2f1de3(0x56f)],_0x3b0331=_0x2fb3ee[_0x2f1de3(0x4ef)],_0x21aca0=_0x2fb3ee[_0x2f1de3(0x27d)],_0x2885e7=_0x2c20be[_0x2f1de3(0x3eb)],_0x5395e5=_0x2885e7['MD5'],_0x19e1eb=_0x2885e7[_0x2f1de3(0x352)]=_0x3b0331[_0x2f1de3(0x30a)]({'cfg':_0x3b0331[_0x2f1de3(0x30a)]({'keySize':0x80/0x20,'hasher':_0x5395e5,'iterations':0x1}),'init':function(_0x15824c){const _0x5d5806=_0x2f1de3;this['cfg']=this[_0x5d5806(0x5d1)]['extend'](_0x15824c);},'compute':function(_0x584dc1,_0x47a854){const _0x48d42c=_0x2f1de3;for(var _0x183cda,_0x4f451b=this[_0x48d42c(0x5d1)],_0xe1f9fb=_0x4f451b['hasher'][_0x48d42c(0x21e)](),_0x440eee=_0x21aca0[_0x48d42c(0x21e)](),_0x5ba00d=_0x440eee['words'],_0x4db63f=_0x4f451b['keySize'],_0x3d8a4d=_0x4f451b['iterations'];_0x5ba00d['length']<_0x4db63f;){_0x183cda&&_0xe1f9fb[_0x48d42c(0x193)](_0x183cda),_0x183cda=_0xe1f9fb[_0x48d42c(0x193)](_0x584dc1)[_0x48d42c(0x42f)](_0x47a854),_0xe1f9fb[_0x48d42c(0x5f7)]();for(var _0x2b94fd=0x1;_0x2b94fd<_0x3d8a4d;_0x2b94fd++)_0x183cda=_0xe1f9fb[_0x48d42c(0x42f)](_0x183cda),_0xe1f9fb[_0x48d42c(0x5f7)]();_0x440eee[_0x48d42c(0x273)](_0x183cda);}return _0x440eee['sigBytes']=_0x4db63f*0x4,_0x440eee;}});_0x2c20be[_0x2f1de3(0x352)]=function(_0x118b3d,_0x3aed8b,_0x4d585b){const _0x55921a=_0x2f1de3;return _0x19e1eb[_0x55921a(0x21e)](_0x4d585b)[_0x55921a(0x17e)](_0x118b3d,_0x3aed8b);};}()),_0x3288a3[_0x5e088d(0x352)];}));}(_t)),_t['exports'];}var ft={'exports':{}},zt;function wn(){return zt||(zt=0x1,function(_0x33f30,_0x1e3922){(function(_0x5ab2fe,_0x841a0e,_0x23c442){const _0x157387=_0x3f71;_0x33f30[_0x157387(0x4b1)]=_0x841a0e(oe(),Dn());}(X,function(_0x239b3c){const _0x3e94e1=_0x3f71;_0x239b3c[_0x3e94e1(0x56f)]['Cipher']||function(_0x69e348){const _0x598497=_0x3e94e1;var _0x34bf06=_0x239b3c,_0x35c8e1=_0x34bf06[_0x598497(0x56f)],_0x1cba25=_0x35c8e1['Base'],_0x527486=_0x35c8e1[_0x598497(0x27d)],_0x2cd14d=_0x35c8e1[_0x598497(0x582)],_0x1cf269=_0x34bf06['enc'];_0x1cf269[_0x598497(0x357)];var _0x366c2e=_0x1cf269[_0x598497(0x2c8)],_0x124ad6=_0x34bf06[_0x598497(0x3eb)],_0x21710e=_0x124ad6[_0x598497(0x352)],_0x1ab674=_0x35c8e1[_0x598497(0x463)]=_0x2cd14d[_0x598497(0x30a)]({'cfg':_0x1cba25['extend'](),'createEncryptor':function(_0x265a61,_0x564f8d){const _0x1f3965=_0x598497;return this[_0x1f3965(0x21e)](this[_0x1f3965(0x34b)],_0x265a61,_0x564f8d);},'createDecryptor':function(_0x188760,_0x508ad4){const _0x4d86a4=_0x598497;return this[_0x4d86a4(0x21e)](this[_0x4d86a4(0x3fb)],_0x188760,_0x508ad4);},'init':function(_0x297646,_0x4f6404,_0x44f1e2){const _0x71ec55=_0x598497;this[_0x71ec55(0x5d1)]=this['cfg'][_0x71ec55(0x30a)](_0x44f1e2),this['_xformMode']=_0x297646,this[_0x71ec55(0x425)]=_0x4f6404,this[_0x71ec55(0x5f7)]();},'reset':function(){const _0x2f57fc=_0x598497;_0x2cd14d[_0x2f57fc(0x5f7)][_0x2f57fc(0x575)](this),this[_0x2f57fc(0x203)]();},'process':function(_0x207b22){const _0x37bc04=_0x598497;return this[_0x37bc04(0x1fe)](_0x207b22),this[_0x37bc04(0x4fe)]();},'finalize':function(_0x566ff3){const _0x36bf21=_0x598497;_0x566ff3&&this['_append'](_0x566ff3);var _0x3a2794=this[_0x36bf21(0x56c)]();return _0x3a2794;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x3d70e7(_0x1d9345){const _0x2903d9=_0x3f71;return typeof _0x1d9345==_0x2903d9(0x205)?_0x4e722a:_0x83144c;}return function(_0x455cae){return{'encrypt':function(_0x41935b,_0x1b54ab,_0x59b1a8){return _0x3d70e7(_0x1b54ab)['encrypt'](_0x455cae,_0x41935b,_0x1b54ab,_0x59b1a8);},'decrypt':function(_0x4ab89b,_0x52b3a9,_0x2b0c0d){return _0x3d70e7(_0x52b3a9)['decrypt'](_0x455cae,_0x4ab89b,_0x52b3a9,_0x2b0c0d);}};};}())});_0x35c8e1['StreamCipher']=_0x1ab674[_0x598497(0x30a)]({'_doFinalize':function(){const _0x3e00cd=_0x598497;var _0x14ef6f=this[_0x3e00cd(0x4fe)](!0x0);return _0x14ef6f;},'blockSize':0x1});var _0x4d1dfd=_0x34bf06['mode']={},_0x33c532=_0x35c8e1[_0x598497(0x28e)]=_0x1cba25[_0x598497(0x30a)]({'createEncryptor':function(_0x27779d,_0x3aec53){const _0x4607b0=_0x598497;return this[_0x4607b0(0x597)]['create'](_0x27779d,_0x3aec53);},'createDecryptor':function(_0x2d8499,_0x299db0){const _0x5c825a=_0x598497;return this[_0x5c825a(0x5db)][_0x5c825a(0x21e)](_0x2d8499,_0x299db0);},'init':function(_0x5038b2,_0x25564d){const _0x5ae468=_0x598497;this[_0x5ae468(0x3d3)]=_0x5038b2,this['_iv']=_0x25564d;}}),_0xeaea12=_0x4d1dfd[_0x598497(0x3ae)]=(function(){const _0xeceb89=_0x598497;var _0x4c143b=_0x33c532[_0xeceb89(0x30a)]();_0x4c143b['Encryptor']=_0x4c143b[_0xeceb89(0x30a)]({'processBlock':function(_0x11436e,_0x3af6b3){const _0x213bc7=_0xeceb89;var _0x8bb2a1=this[_0x213bc7(0x3d3)],_0x1c9840=_0x8bb2a1['blockSize'];_0xb2bf54[_0x213bc7(0x575)](this,_0x11436e,_0x3af6b3,_0x1c9840),_0x8bb2a1['encryptBlock'](_0x11436e,_0x3af6b3),this[_0x213bc7(0x5ea)]=_0x11436e[_0x213bc7(0x31f)](_0x3af6b3,_0x3af6b3+_0x1c9840);}}),_0x4c143b[_0xeceb89(0x5db)]=_0x4c143b['extend']({'processBlock':function(_0x4c87f1,_0x458d36){const _0x2f0c2b=_0xeceb89;var _0x3b27e2=this[_0x2f0c2b(0x3d3)],_0xcbe770=_0x3b27e2[_0x2f0c2b(0x59b)],_0x39b413=_0x4c87f1[_0x2f0c2b(0x31f)](_0x458d36,_0x458d36+_0xcbe770);_0x3b27e2['decryptBlock'](_0x4c87f1,_0x458d36),_0xb2bf54[_0x2f0c2b(0x575)](this,_0x4c87f1,_0x458d36,_0xcbe770),this[_0x2f0c2b(0x5ea)]=_0x39b413;}});function _0xb2bf54(_0x44e2ae,_0x53fc48,_0xa951bc){const _0x29a9e7=_0xeceb89;var _0x393590,_0x55fea6=this[_0x29a9e7(0x1d7)];_0x55fea6?(_0x393590=_0x55fea6,this[_0x29a9e7(0x1d7)]=_0x69e348):_0x393590=this[_0x29a9e7(0x5ea)];for(var _0x1ec9bf=0x0;_0x1ec9bf<_0xa951bc;_0x1ec9bf++)_0x44e2ae[_0x53fc48+_0x1ec9bf]^=_0x393590[_0x1ec9bf];}return _0x4c143b;}()),_0x2274de=_0x34bf06['pad']={},_0x3b2597=_0x2274de['Pkcs7']={'pad':function(_0x58c1c7,_0x4f0c97){const _0x50faf7=_0x598497;for(var _0x15885a=_0x4f0c97*0x4,_0x28475d=_0x15885a-_0x58c1c7[_0x50faf7(0x2b8)]%_0x15885a,_0x32ea2f=_0x28475d<<0x18|_0x28475d<<0x10|_0x28475d<<0x8|_0x28475d,_0x357740=[],_0x4ce34c=0x0;_0x4ce34c<_0x28475d;_0x4ce34c+=0x4)_0x357740[_0x50faf7(0x19c)](_0x32ea2f);var _0x199644=_0x527486[_0x50faf7(0x21e)](_0x357740,_0x28475d);_0x58c1c7[_0x50faf7(0x273)](_0x199644);},'unpad':function(_0x2e1d6e){const _0x178006=_0x598497;var _0x17f64a=_0x2e1d6e[_0x178006(0x464)][_0x2e1d6e[_0x178006(0x2b8)]-0x1>>>0x2]&0xff;_0x2e1d6e[_0x178006(0x2b8)]-=_0x17f64a;}};_0x35c8e1[_0x598497(0x195)]=_0x1ab674['extend']({'cfg':_0x1ab674['cfg'][_0x598497(0x30a)]({'mode':_0xeaea12,'padding':_0x3b2597}),'reset':function(){const _0x374137=_0x598497;var _0x3494bc;_0x1ab674['reset'][_0x374137(0x575)](this);var _0x5071ac=this['cfg'],_0x318f77=_0x5071ac['iv'],_0x5f17d8=_0x5071ac[_0x374137(0x363)];this[_0x374137(0x57a)]==this[_0x374137(0x34b)]?_0x3494bc=_0x5f17d8['createEncryptor']:(_0x3494bc=_0x5f17d8[_0x374137(0x57c)],this['_minBufferSize']=0x1),this[_0x374137(0x5e3)]&&this[_0x374137(0x5e3)][_0x374137(0x196)]==_0x3494bc?this[_0x374137(0x5e3)][_0x374137(0x485)](this,_0x318f77&&_0x318f77[_0x374137(0x464)]):(this[_0x374137(0x5e3)]=_0x3494bc[_0x374137(0x575)](_0x5f17d8,this,_0x318f77&&_0x318f77[_0x374137(0x464)]),this['_mode'][_0x374137(0x196)]=_0x3494bc);},'_doProcessBlock':function(_0x140d6f,_0x5d27f6){const _0x327b0e=_0x598497;this[_0x327b0e(0x5e3)][_0x327b0e(0x4b6)](_0x140d6f,_0x5d27f6);},'_doFinalize':function(){const _0x200a49=_0x598497;var _0xb00137,_0x2aa06c=this['cfg'][_0x200a49(0x258)];return this[_0x200a49(0x57a)]==this[_0x200a49(0x34b)]?(_0x2aa06c[_0x200a49(0x200)](this[_0x200a49(0x29e)],this[_0x200a49(0x59b)]),_0xb00137=this[_0x200a49(0x4fe)](!0x0)):(_0xb00137=this[_0x200a49(0x4fe)](!0x0),_0x2aa06c[_0x200a49(0x16e)](_0xb00137)),_0xb00137;},'blockSize':0x80/0x20});var _0x19fa73=_0x35c8e1[_0x598497(0x2f8)]=_0x1cba25[_0x598497(0x30a)]({'init':function(_0x8187){const _0x1d9c90=_0x598497;this[_0x1d9c90(0x2c0)](_0x8187);},'toString':function(_0x553718){return(_0x553718||this['formatter'])['stringify'](this);}}),_0x342f9d=_0x34bf06[_0x598497(0x1d1)]={},_0x2744fd=_0x342f9d[_0x598497(0x5b4)]={'stringify':function(_0x5b32b1){const _0x1b2ef8=_0x598497;var _0x344086,_0x332ce2=_0x5b32b1[_0x1b2ef8(0x3f6)],_0x376722=_0x5b32b1['salt'];return _0x376722?_0x344086=_0x527486['create']([0x53616c74,0x65645f5f])[_0x1b2ef8(0x273)](_0x376722)[_0x1b2ef8(0x273)](_0x332ce2):_0x344086=_0x332ce2,_0x344086[_0x1b2ef8(0x353)](_0x366c2e);},'parse':function(_0x2ac1f8){const _0x2b636b=_0x598497;var _0x436be6,_0x233309=_0x366c2e[_0x2b636b(0x55a)](_0x2ac1f8),_0x26b758=_0x233309['words'];return _0x26b758[0x0]==0x53616c74&&_0x26b758[0x1]==0x65645f5f&&(_0x436be6=_0x527486[_0x2b636b(0x21e)](_0x26b758['slice'](0x2,0x4)),_0x26b758['splice'](0x0,0x4),_0x233309[_0x2b636b(0x2b8)]-=0x10),_0x19fa73[_0x2b636b(0x21e)]({'ciphertext':_0x233309,'salt':_0x436be6});}},_0x83144c=_0x35c8e1[_0x598497(0x418)]=_0x1cba25[_0x598497(0x30a)]({'cfg':_0x1cba25['extend']({'format':_0x2744fd}),'encrypt':function(_0x55dc27,_0x1506db,_0xd22ef4,_0x3c9317){const _0x23417f=_0x598497;_0x3c9317=this[_0x23417f(0x5d1)][_0x23417f(0x30a)](_0x3c9317);var _0x4c974e=_0x55dc27[_0x23417f(0x5d3)](_0xd22ef4,_0x3c9317),_0x573a72=_0x4c974e[_0x23417f(0x42f)](_0x1506db),_0x5043cc=_0x4c974e['cfg'];return _0x19fa73[_0x23417f(0x21e)]({'ciphertext':_0x573a72,'key':_0xd22ef4,'iv':_0x5043cc['iv'],'algorithm':_0x55dc27,'mode':_0x5043cc[_0x23417f(0x363)],'padding':_0x5043cc['padding'],'blockSize':_0x55dc27[_0x23417f(0x59b)],'formatter':_0x3c9317[_0x23417f(0x1d1)]});},'decrypt':function(_0x2b6059,_0x3a4852,_0x3b17a2,_0x2af7a6){const _0x5af79d=_0x598497;_0x2af7a6=this[_0x5af79d(0x5d1)][_0x5af79d(0x30a)](_0x2af7a6),_0x3a4852=this[_0x5af79d(0x36c)](_0x3a4852,_0x2af7a6['format']);var _0x1af954=_0x2b6059[_0x5af79d(0x57c)](_0x3b17a2,_0x2af7a6)[_0x5af79d(0x42f)](_0x3a4852['ciphertext']);return _0x1af954;},'_parse':function(_0x2d3c76,_0x52d8db){const _0xcf02dd=_0x598497;return typeof _0x2d3c76==_0xcf02dd(0x205)?_0x52d8db[_0xcf02dd(0x55a)](_0x2d3c76,this):_0x2d3c76;}}),_0x1fc7a6=_0x34bf06[_0x598497(0x5e7)]={},_0x72a7a=_0x1fc7a6['OpenSSL']={'execute':function(_0x2b1095,_0xb2d7e9,_0x3dba91,_0x32466c,_0x518552){const _0x301a65=_0x598497;if(_0x32466c||(_0x32466c=_0x527486[_0x301a65(0x2fc)](0x40/0x8)),_0x518552)var _0x5f091f=_0x21710e[_0x301a65(0x21e)]({'keySize':_0xb2d7e9+_0x3dba91,'hasher':_0x518552})[_0x301a65(0x17e)](_0x2b1095,_0x32466c);else var _0x5f091f=_0x21710e[_0x301a65(0x21e)]({'keySize':_0xb2d7e9+_0x3dba91})[_0x301a65(0x17e)](_0x2b1095,_0x32466c);var _0x51803=_0x527486[_0x301a65(0x21e)](_0x5f091f['words'][_0x301a65(0x31f)](_0xb2d7e9),_0x3dba91*0x4);return _0x5f091f['sigBytes']=_0xb2d7e9*0x4,_0x19fa73['create']({'key':_0x5f091f,'iv':_0x51803,'salt':_0x32466c});}},_0x4e722a=_0x35c8e1[_0x598497(0x2f3)]=_0x83144c[_0x598497(0x30a)]({'cfg':_0x83144c[_0x598497(0x5d1)][_0x598497(0x30a)]({'kdf':_0x72a7a}),'encrypt':function(_0xa81713,_0x3c6834,_0x7cc3b5,_0x3a0afe){const _0x47de3b=_0x598497;_0x3a0afe=this[_0x47de3b(0x5d1)][_0x47de3b(0x30a)](_0x3a0afe);var _0x5a82a7=_0x3a0afe[_0x47de3b(0x5e7)][_0x47de3b(0x4aa)](_0x7cc3b5,_0xa81713[_0x47de3b(0x176)],_0xa81713['ivSize'],_0x3a0afe[_0x47de3b(0x4f1)],_0x3a0afe['hasher']);_0x3a0afe['iv']=_0x5a82a7['iv'];var _0x59af8e=_0x83144c[_0x47de3b(0x3c5)][_0x47de3b(0x575)](this,_0xa81713,_0x3c6834,_0x5a82a7['key'],_0x3a0afe);return _0x59af8e[_0x47de3b(0x2c0)](_0x5a82a7),_0x59af8e;},'decrypt':function(_0x332d94,_0x459295,_0x414f13,_0x500b80){const _0x1cb160=_0x598497;_0x500b80=this[_0x1cb160(0x5d1)][_0x1cb160(0x30a)](_0x500b80),_0x459295=this[_0x1cb160(0x36c)](_0x459295,_0x500b80[_0x1cb160(0x1d1)]);var _0x2213ef=_0x500b80[_0x1cb160(0x5e7)]['execute'](_0x414f13,_0x332d94[_0x1cb160(0x176)],_0x332d94['ivSize'],_0x459295[_0x1cb160(0x4f1)],_0x500b80['hasher']);_0x500b80['iv']=_0x2213ef['iv'];var _0x312956=_0x83144c[_0x1cb160(0x498)][_0x1cb160(0x575)](this,_0x332d94,_0x459295,_0x2213ef[_0x1cb160(0x4dd)],_0x500b80);return _0x312956;}});}();}));}(ft)),ft['exports'];}(function(_0x1a536a,_0x400edf){(function(_0xbf0c54,_0x5d0814,_0x389a0a){const _0x2987c8=_0x3f71;_0x1a536a[_0x2987c8(0x4b1)]=_0x5d0814(oe(),On(),ar(),Dn(),wn());}(X,function(_0x5a4c3b){return(function(){const _0x495587=_0x3f71;var _0x21c339=_0x5a4c3b,_0x3b92a7=_0x21c339[_0x495587(0x56f)],_0x370418=_0x3b92a7[_0x495587(0x195)],_0x50b8d4=_0x21c339[_0x495587(0x3eb)],_0x1f45a7=[],_0x576843=[],_0x17c392=[],_0x3bec4f=[],_0x419ff9=[],_0x1487eb=[],_0xe0ec4b=[],_0x461b7d=[],_0x583fa5=[],_0x175423=[];(function(){for(var _0x4cdffd=[],_0x5dc5b5=0x0;_0x5dc5b5<0x100;_0x5dc5b5++)_0x5dc5b5<0x80?_0x4cdffd[_0x5dc5b5]=_0x5dc5b5<<0x1:_0x4cdffd[_0x5dc5b5]=_0x5dc5b5<<0x1^0x11b;for(var _0x2b5fab=0x0,_0x3680f0=0x0,_0x5dc5b5=0x0;_0x5dc5b5<0x100;_0x5dc5b5++){var _0x2823bb=_0x3680f0^_0x3680f0<<0x1^_0x3680f0<<0x2^_0x3680f0<<0x3^_0x3680f0<<0x4;_0x2823bb=_0x2823bb>>>0x8^_0x2823bb&0xff^0x63,_0x1f45a7[_0x2b5fab]=_0x2823bb,_0x576843[_0x2823bb]=_0x2b5fab;var _0x395a0b=_0x4cdffd[_0x2b5fab],_0x27da2f=_0x4cdffd[_0x395a0b],_0x1f92f0=_0x4cdffd[_0x27da2f],_0x172aa3=_0x4cdffd[_0x2823bb]*0x101^_0x2823bb*0x1010100;_0x17c392[_0x2b5fab]=_0x172aa3<<0x18|_0x172aa3>>>0x8,_0x3bec4f[_0x2b5fab]=_0x172aa3<<0x10|_0x172aa3>>>0x10,_0x419ff9[_0x2b5fab]=_0x172aa3<<0x8|_0x172aa3>>>0x18,_0x1487eb[_0x2b5fab]=_0x172aa3;var _0x172aa3=_0x1f92f0*0x1010101^_0x27da2f*0x10001^_0x395a0b*0x101^_0x2b5fab*0x1010100;_0xe0ec4b[_0x2823bb]=_0x172aa3<<0x18|_0x172aa3>>>0x8,_0x461b7d[_0x2823bb]=_0x172aa3<<0x10|_0x172aa3>>>0x10,_0x583fa5[_0x2823bb]=_0x172aa3<<0x8|_0x172aa3>>>0x18,_0x175423[_0x2823bb]=_0x172aa3,_0x2b5fab?(_0x2b5fab=_0x395a0b^_0x4cdffd[_0x4cdffd[_0x4cdffd[_0x1f92f0^_0x395a0b]]],_0x3680f0^=_0x4cdffd[_0x4cdffd[_0x3680f0]]):_0x2b5fab=_0x3680f0=0x1;}}());var _0x99d243=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x5f078e=_0x50b8d4[_0x495587(0x32c)]=_0x370418[_0x495587(0x30a)]({'_doReset':function(){const _0x16be22=_0x495587;var _0x335f90;if(!(this[_0x16be22(0x394)]&&this['_keyPriorReset']===this[_0x16be22(0x425)])){for(var _0x5bea14=this[_0x16be22(0x2a8)]=this[_0x16be22(0x425)],_0x5cb14c=_0x5bea14[_0x16be22(0x464)],_0x471059=_0x5bea14[_0x16be22(0x2b8)]/0x4,_0x2d5cd4=this['_nRounds']=_0x471059+0x6,_0x582a7c=(_0x2d5cd4+0x1)*0x4,_0x5ed586=this[_0x16be22(0x2c2)]=[],_0x18f167=0x0;_0x18f167<_0x582a7c;_0x18f167++)_0x18f167<_0x471059?_0x5ed586[_0x18f167]=_0x5cb14c[_0x18f167]:(_0x335f90=_0x5ed586[_0x18f167-0x1],_0x18f167%_0x471059?_0x471059>0x6&&_0x18f167%_0x471059==0x4&&(_0x335f90=_0x1f45a7[_0x335f90>>>0x18]<<0x18|_0x1f45a7[_0x335f90>>>0x10&0xff]<<0x10|_0x1f45a7[_0x335f90>>>0x8&0xff]<<0x8|_0x1f45a7[_0x335f90&0xff]):(_0x335f90=_0x335f90<<0x8|_0x335f90>>>0x18,_0x335f90=_0x1f45a7[_0x335f90>>>0x18]<<0x18|_0x1f45a7[_0x335f90>>>0x10&0xff]<<0x10|_0x1f45a7[_0x335f90>>>0x8&0xff]<<0x8|_0x1f45a7[_0x335f90&0xff],_0x335f90^=_0x99d243[_0x18f167/_0x471059|0x0]<<0x18),_0x5ed586[_0x18f167]=_0x5ed586[_0x18f167-_0x471059]^_0x335f90);for(var _0x17d5bd=this[_0x16be22(0x317)]=[],_0x49326b=0x0;_0x49326b<_0x582a7c;_0x49326b++){var _0x18f167=_0x582a7c-_0x49326b;if(_0x49326b%0x4)var _0x335f90=_0x5ed586[_0x18f167];else var _0x335f90=_0x5ed586[_0x18f167-0x4];_0x49326b<0x4||_0x18f167<=0x4?_0x17d5bd[_0x49326b]=_0x335f90:_0x17d5bd[_0x49326b]=_0xe0ec4b[_0x1f45a7[_0x335f90>>>0x18]]^_0x461b7d[_0x1f45a7[_0x335f90>>>0x10&0xff]]^_0x583fa5[_0x1f45a7[_0x335f90>>>0x8&0xff]]^_0x175423[_0x1f45a7[_0x335f90&0xff]];}}},'encryptBlock':function(_0x59643b,_0x4461d2){const _0x27b472=_0x495587;this[_0x27b472(0x55f)](_0x59643b,_0x4461d2,this[_0x27b472(0x2c2)],_0x17c392,_0x3bec4f,_0x419ff9,_0x1487eb,_0x1f45a7);},'decryptBlock':function(_0x2384f6,_0x2c58aa){const _0x22be74=_0x495587;var _0x1a3eb3=_0x2384f6[_0x2c58aa+0x1];_0x2384f6[_0x2c58aa+0x1]=_0x2384f6[_0x2c58aa+0x3],_0x2384f6[_0x2c58aa+0x3]=_0x1a3eb3,this[_0x22be74(0x55f)](_0x2384f6,_0x2c58aa,this[_0x22be74(0x317)],_0xe0ec4b,_0x461b7d,_0x583fa5,_0x175423,_0x576843);var _0x1a3eb3=_0x2384f6[_0x2c58aa+0x1];_0x2384f6[_0x2c58aa+0x1]=_0x2384f6[_0x2c58aa+0x3],_0x2384f6[_0x2c58aa+0x3]=_0x1a3eb3;},'_doCryptBlock':function(_0x2f2c26,_0x3f1e8f,_0xc9ada,_0x36f263,_0x3a7bf1,_0x5b9097,_0x3fb6fe,_0x4e000e){for(var _0x5704e1=this['_nRounds'],_0x10aeef=_0x2f2c26[_0x3f1e8f]^_0xc9ada[0x0],_0x5c6c70=_0x2f2c26[_0x3f1e8f+0x1]^_0xc9ada[0x1],_0xe779d3=_0x2f2c26[_0x3f1e8f+0x2]^_0xc9ada[0x2],_0x2f3904=_0x2f2c26[_0x3f1e8f+0x3]^_0xc9ada[0x3],_0x5214b0=0x4,_0x4947a1=0x1;_0x4947a1<_0x5704e1;_0x4947a1++){var _0x4e2609=_0x36f263[_0x10aeef>>>0x18]^_0x3a7bf1[_0x5c6c70>>>0x10&0xff]^_0x5b9097[_0xe779d3>>>0x8&0xff]^_0x3fb6fe[_0x2f3904&0xff]^_0xc9ada[_0x5214b0++],_0x214eb3=_0x36f263[_0x5c6c70>>>0x18]^_0x3a7bf1[_0xe779d3>>>0x10&0xff]^_0x5b9097[_0x2f3904>>>0x8&0xff]^_0x3fb6fe[_0x10aeef&0xff]^_0xc9ada[_0x5214b0++],_0x36049d=_0x36f263[_0xe779d3>>>0x18]^_0x3a7bf1[_0x2f3904>>>0x10&0xff]^_0x5b9097[_0x10aeef>>>0x8&0xff]^_0x3fb6fe[_0x5c6c70&0xff]^_0xc9ada[_0x5214b0++],_0x197bf6=_0x36f263[_0x2f3904>>>0x18]^_0x3a7bf1[_0x10aeef>>>0x10&0xff]^_0x5b9097[_0x5c6c70>>>0x8&0xff]^_0x3fb6fe[_0xe779d3&0xff]^_0xc9ada[_0x5214b0++];_0x10aeef=_0x4e2609,_0x5c6c70=_0x214eb3,_0xe779d3=_0x36049d,_0x2f3904=_0x197bf6;}var _0x4e2609=(_0x4e000e[_0x10aeef>>>0x18]<<0x18|_0x4e000e[_0x5c6c70>>>0x10&0xff]<<0x10|_0x4e000e[_0xe779d3>>>0x8&0xff]<<0x8|_0x4e000e[_0x2f3904&0xff])^_0xc9ada[_0x5214b0++],_0x214eb3=(_0x4e000e[_0x5c6c70>>>0x18]<<0x18|_0x4e000e[_0xe779d3>>>0x10&0xff]<<0x10|_0x4e000e[_0x2f3904>>>0x8&0xff]<<0x8|_0x4e000e[_0x10aeef&0xff])^_0xc9ada[_0x5214b0++],_0x36049d=(_0x4e000e[_0xe779d3>>>0x18]<<0x18|_0x4e000e[_0x2f3904>>>0x10&0xff]<<0x10|_0x4e000e[_0x10aeef>>>0x8&0xff]<<0x8|_0x4e000e[_0x5c6c70&0xff])^_0xc9ada[_0x5214b0++],_0x197bf6=(_0x4e000e[_0x2f3904>>>0x18]<<0x18|_0x4e000e[_0x10aeef>>>0x10&0xff]<<0x10|_0x4e000e[_0x5c6c70>>>0x8&0xff]<<0x8|_0x4e000e[_0xe779d3&0xff])^_0xc9ada[_0x5214b0++];_0x2f2c26[_0x3f1e8f]=_0x4e2609,_0x2f2c26[_0x3f1e8f+0x1]=_0x214eb3,_0x2f2c26[_0x3f1e8f+0x2]=_0x36049d,_0x2f2c26[_0x3f1e8f+0x3]=_0x197bf6;},'keySize':0x100/0x20});_0x21c339[_0x495587(0x32c)]=_0x370418[_0x495587(0x3fc)](_0x5f078e);}()),_0x5a4c3b['AES'];}));}(yn));var hr=yn[_0x1f2fa(0x4b1)];const _r=xe(hr);var ur=On();const Xt=xe(ur);var Pn={'exports':{}};(function(_0x50b036,_0x55ef8c){(function(_0x33b5eb,_0x1437ec){const _0x78b7c7=_0x3f71;_0x50b036[_0x78b7c7(0x4b1)]=_0x1437ec(oe());}(X,function(_0x3da59d){const _0x20e0d2=_0x3f71;return _0x3da59d[_0x20e0d2(0x45b)][_0x20e0d2(0x357)];}));}(Pn));var dr=Pn['exports'];const fr=xe(dr);var Un={'exports':{}};(function(_0x4bba0c,_0x4cd85){(function(_0x97d51f,_0x4fc65e){const _0x2863f7=_0x3f71;_0x4bba0c[_0x2863f7(0x4b1)]=_0x4fc65e(oe());}(X,function(_0x1dcb45){return(function(){const _0x1afc85=_0x3f71;if(typeof ArrayBuffer==_0x1afc85(0x323)){var _0xbcc1da=_0x1dcb45,_0x31c222=_0xbcc1da[_0x1afc85(0x56f)],_0x2a6c69=_0x31c222[_0x1afc85(0x27d)],_0x177dc0=_0x2a6c69[_0x1afc85(0x485)],_0x51e211=_0x2a6c69[_0x1afc85(0x485)]=function(_0x5453b0){const _0x425615=_0x1afc85;if(_0x5453b0 instanceof ArrayBuffer&&(_0x5453b0=new Uint8Array(_0x5453b0)),(_0x5453b0 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x5453b0 instanceof Uint8ClampedArray||_0x5453b0 instanceof Int16Array||_0x5453b0 instanceof Uint16Array||_0x5453b0 instanceof Int32Array||_0x5453b0 instanceof Uint32Array||_0x5453b0 instanceof Float32Array||_0x5453b0 instanceof Float64Array)&&(_0x5453b0=new Uint8Array(_0x5453b0[_0x425615(0x20b)],_0x5453b0[_0x425615(0x4c7)],_0x5453b0[_0x425615(0x1e4)])),_0x5453b0 instanceof Uint8Array){for(var _0x211437=_0x5453b0[_0x425615(0x1e4)],_0x5e99bf=[],_0x328441=0x0;_0x328441<_0x211437;_0x328441++)_0x5e99bf[_0x328441>>>0x2]|=_0x5453b0[_0x328441]<<0x18-_0x328441%0x4*0x8;_0x177dc0[_0x425615(0x575)](this,_0x5e99bf,_0x211437);}else _0x177dc0[_0x425615(0x19a)](this,arguments);};_0x51e211['prototype']=_0x2a6c69;}}()),_0x1dcb45['lib']['WordArray'];}));}(Un));var vr=Un[_0x1f2fa(0x4b1)];const mr=xe(vr);var Mn={'exports':{}};(function(_0x37d014,_0x4585ca){(function(_0x245707,_0x4fe7b1,_0x1ca4f3){const _0x505fc5=_0x3f71;_0x37d014[_0x505fc5(0x4b1)]=_0x4fe7b1(oe(),wn());}(X,function(_0x168523){const _0x3c2ac5=_0x3f71;return _0x168523[_0x3c2ac5(0x200)]['NoPadding']={'pad':function(){},'unpad':function(){}},_0x168523[_0x3c2ac5(0x200)][_0x3c2ac5(0x40f)];}));}(Mn));var Sr=Mn[_0x1f2fa(0x4b1)];const pr=xe(Sr);function gr(_0x4cf5bd,_0x87ade2){const _0x4de658=_0x1f2fa,_0x1b2a97=_0x87ade2-_0x4cf5bd[_0x4de658(0x339)]%_0x87ade2,_0x2088aa=String[_0x4de658(0x5bf)](_0x1b2a97)[_0x4de658(0x2a2)](_0x1b2a97);return _0x4cf5bd+_0x2088aa;}function Ir(_0x2f68cb,_0x189a87){const _0x533e24=_0x1f2fa,_0x42fc7f=mr[_0x533e24(0x2fc)](0x10),_0x487d35=gr(_0x2f68cb,0x10),_0xfa3166=_r[_0x533e24(0x3c5)](fr['parse'](_0x487d35),Xt[_0x533e24(0x55a)](_0x189a87),{'iv':_0x42fc7f,'padding':pr});return _0x42fc7f['concat'](_0xfa3166[_0x533e24(0x3f6)])[_0x533e24(0x353)](Xt);}function Cr(){const _0x30b735=_0x1f2fa,_0x26f3fe=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0x30b735(0x46b)];if(_0x26f3fe){const _0x2100ee={'time':Math[_0x30b735(0x3ea)](Date['now']()/0x3e8),'domain':location[_0x30b735(0x281)]};return Ir(JSON['stringify'](_0x2100ee),_0x26f3fe);}}var Er=Object[_0x1f2fa(0x4e5)],br=Object['getOwnPropertyDescriptor'],Tr=(_0x3dfab6,_0x52f058,_0x41ad23,_0x15cdc3)=>{const _0x1adc9b=_0x1f2fa;for(var _0x1db1ca=_0x15cdc3>0x1?void 0x0:_0x15cdc3?br(_0x52f058,_0x41ad23):_0x52f058,_0x13e6f3=_0x3dfab6[_0x1adc9b(0x339)]-0x1,_0x1de9e1;_0x13e6f3>=0x0;_0x13e6f3--)(_0x1de9e1=_0x3dfab6[_0x13e6f3])&&(_0x1db1ca=(_0x15cdc3?_0x1de9e1(_0x52f058,_0x41ad23,_0x1db1ca):_0x1de9e1(_0x1db1ca))||_0x1db1ca);return _0x15cdc3&&_0x1db1ca&&Er(_0x52f058,_0x41ad23,_0x1db1ca),_0x1db1ca;},Rr=(_0x192aa7,_0xed54ea)=>(_0x2f8ed2,_0x4eb304)=>_0xed54ea(_0x2f8ed2,_0x4eb304,_0x192aa7);let Ye=class{constructor(_0x247d1e){const _0x5bf0b6=_0x1f2fa;this['_httpService']=_0x247d1e,this[_0x5bf0b6(0x313)]();}[_0x1f2fa(0x313)](){const _0x23e30b=_0x1f2fa;this[_0x23e30b(0x3e8)][_0x23e30b(0x5f8)]({'interceptor':(_0x22cad8,_0xf5fc53)=>{const _0x716fe5=_0x23e30b,_0xbcf8f8=_0x22cad8[_0x716fe5(0x29f)],_0x56225a=Cr();return _0x56225a&&_0xbcf8f8['set'](_0x716fe5(0x19b),_0x56225a),_0xf5fc53(_0x22cad8);}});}};Ye=Tr([Rr(0x0,a[_0x1f2fa(0x28d)](Z[_0x1f2fa(0x516)]))],Ye);var yr=Object[_0x1f2fa(0x4e5)],Or=Object[_0x1f2fa(0x40d)],Dr=(_0x1b3f94,_0x375e66,_0x5ea089,_0x5c9ada)=>{const _0x11ce79=_0x1f2fa;for(var _0x1bfa94=_0x5c9ada>0x1?void 0x0:_0x5c9ada?Or(_0x375e66,_0x5ea089):_0x375e66,_0x54f918=_0x1b3f94[_0x11ce79(0x339)]-0x1,_0x274233;_0x54f918>=0x0;_0x54f918--)(_0x274233=_0x1b3f94[_0x54f918])&&(_0x1bfa94=(_0x5c9ada?_0x274233(_0x375e66,_0x5ea089,_0x1bfa94):_0x274233(_0x1bfa94))||_0x1bfa94);return _0x5c9ada&&_0x1bfa94&&yr(_0x375e66,_0x5ea089,_0x1bfa94),_0x1bfa94;},vt=(_0x508dd5,_0xe2e62a)=>(_0x2abbc0,_0x7531d9)=>_0xe2e62a(_0x2abbc0,_0x7531d9,_0x508dd5);const wr=[_0x1f2fa(0x185),_0x1f2fa(0x550),_0x1f2fa(0x1a1),'image/gif','image/bmp'],Pr=0x5*0x400*0x400,Ur='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Mr='/universer-api/stream/file/upload',Ar=_0x1f2fa(0x560),Nr=_0x1f2fa(0x5b0);exports['ImageIoService']=class{constructor(_0x3cedc9,_0x5365fd,_0x291ca6){const _0x151ba3=_0x1f2fa;I(this,_0x151ba3(0x226),0x0),I(this,_0x151ba3(0x1fa),new A[(_0x151ba3(0x2ba))]()),I(this,'change$',this[_0x151ba3(0x1fa)]),I(this,_0x151ba3(0x31e),new Map()),(this[_0x151ba3(0x3e8)]=_0x3cedc9,this[_0x151ba3(0x499)]=_0x5365fd,this['_univerInstanceService']=_0x291ca6);}[_0x1f2fa(0x1cb)](_0x5411d5){const _0x429fba=_0x1f2fa;this[_0x429fba(0x226)]=_0x5411d5,this[_0x429fba(0x1fa)]['next'](_0x5411d5);}[_0x1f2fa(0x249)](_0xfa531e,_0x5c07e7){const _0x582a97=_0x1f2fa;if(_0x5c07e7===ne[_0x582a97(0x2c5)][_0x582a97(0x579)]){const _0x35203a=new Image();return _0x35203a[_0x582a97(0x34f)]=_0xfa531e,_0x35203a;}return this['_imageSourceCache'][_0x582a97(0x2f6)](_0xfa531e);}[_0x1f2fa(0x3d0)](_0x2e0f7c,_0x29e9da,_0x5d7c42){const _0x4bf09b=_0x1f2fa;_0x29e9da===ne['ImageSourceType'][_0x4bf09b(0x579)]||_0x5d7c42==null||this[_0x4bf09b(0x31e)]['set'](_0x2e0f7c,_0x5d7c42);}async['getImage'](_0x3dc7b6){const _0x410fde=_0x1f2fa;try{const _0x35cdca=this['_replaceFileID'](this[_0x410fde(0x486)](),''+_0x3dc7b6),_0x517711=(await this[_0x410fde(0x3e8)]['get'](_0x35cdca))[_0x410fde(0x26d)];if(_0x517711[_0x410fde(0x2d0)]&&_0x517711[_0x410fde(0x2d0)]['code']===cn['OK']){const _0x4db1ad=new URL(_0x517711['url'],this[_0x410fde(0x36e)]())[_0x410fde(0x353)]();return Promise[_0x410fde(0x4f2)](_0x4db1ad);}return Promise['reject'](_0x517711[_0x410fde(0x2d0)]);}catch(_0x282d5a){return Promise['reject'](_0x282d5a);}}async[_0x1f2fa(0x4d9)](_0x2770cc){const _0x1f9644=_0x1f2fa;let _0x13900e='';if(!wr[_0x1f9644(0x278)](_0x2770cc[_0x1f9644(0x1eb)]))return this[_0x1f9644(0x3a9)](),Promise['reject'](new Error(ne[_0x1f9644(0x5df)]['ERROR_IMAGE_TYPE']));if(_0x2770cc[_0x1f9644(0x51b)]>Pr)return this[_0x1f9644(0x3a9)](),Promise[_0x1f9644(0x4a3)](new Error(ne[_0x1f9644(0x5df)][_0x1f9644(0x426)]));try{const _0xaebdc2=new FormData();_0xaebdc2[_0x1f9644(0x1bf)](_0x1f9644(0x201),_0x2770cc);const _0x969c3b=this[_0x1f9644(0x51c)][_0x1f9644(0x2a3)](),_0x1eca8a=_0x969c3b==null?void 0x0:_0x969c3b[_0x1f9644(0x4ea)]();if(!_0x1eca8a)throw new Error(_0x1f9644(0x1fc));const _0x5cabc1=this[_0x1f9644(0x26a)]()+_0x1f9644(0x58e)+_0x2770cc['size'][_0x1f9644(0x353)]()+_0x1f9644(0x404)+ln['UnitEmbedded']+_0x1f9644(0x52c)+encodeURIComponent(_0x1eca8a),_0x2d7b78=await(await fetch(_0x5cabc1,{'method':_0x1f9644(0x202),'body':_0xaebdc2}))['json']();if(typeof _0x2d7b78['FileId']!='string')return this[_0x1f9644(0x3a9)](),Promise[_0x1f9644(0x4a3)](new Error(ne[_0x1f9644(0x5df)]['ERROR_IMAGE']));_0x13900e=_0x2d7b78[_0x1f9644(0x1da)];}catch{return this['_decreaseWaiting'](),Promise[_0x1f9644(0x4a3)](new Error(ne[_0x1f9644(0x5df)][_0x1f9644(0x514)]));}return new Promise((_0x57eaa8,_0x3d3e89)=>{const _0x1c3e83=_0x1f9644,_0x268d3f=new FileReader();_0x268d3f[_0x1c3e83(0x1b4)](_0x2770cc),_0x268d3f['onload']=_0xafa6e9=>{const _0x3469d1=_0x1c3e83;var _0x3bf8c1;const _0x3d50cb=(_0x3bf8c1=_0xafa6e9[_0x3469d1(0x55c)])==null?void 0x0:_0x3bf8c1[_0x3469d1(0x348)];if(_0x3d50cb==null){this[_0x3469d1(0x3a9)](),_0x3d3e89(new Error(ne[_0x3469d1(0x5df)][_0x3469d1(0x514)]));return;}const _0x9b14a1=a[_0x3469d1(0x34c)][_0x3469d1(0x452)](0x6);_0x57eaa8({'imageId':_0x9b14a1,'imageSourceType':ne[_0x3469d1(0x2c5)][_0x3469d1(0x309)],'source':_0x13900e,'base64Cache':_0x3d50cb,'status':ne[_0x3469d1(0x5df)][_0x3469d1(0x3c7)]}),this[_0x3469d1(0x3a9)]();};});}[_0x1f2fa(0x26a)](){const _0x3dfed0=_0x1f2fa;var _0x28d7dc,_0x13f58a;const _0x30c440=this[_0x3dfed0(0x499)][_0x3dfed0(0x546)](Ur),_0x4127f1=this[_0x3dfed0(0x499)][_0x3dfed0(0x546)](te);return(_0x13f58a=(_0x28d7dc=_0x4127f1==null?void 0x0:_0x4127f1[_0x3dfed0(0x40b)])!=null?_0x28d7dc:_0x30c440)!=null?_0x13f58a:Mr;}[_0x1f2fa(0x486)](){const _0x47d0f5=_0x1f2fa;var _0x46abe0,_0x558f49;const _0x4d3049=this[_0x47d0f5(0x499)][_0x47d0f5(0x546)](Ar),_0x1fb26c=this[_0x47d0f5(0x499)][_0x47d0f5(0x546)](te);return(_0x558f49=(_0x46abe0=_0x1fb26c==null?void 0x0:_0x1fb26c['signUrlServerUrl'])!=null?_0x46abe0:_0x4d3049)!=null?_0x558f49:Nr;}[_0x1f2fa(0x36e)](){const _0x1af86e=_0x1f2fa;var _0x15f1f2;const _0x6ca26b=this[_0x1af86e(0x499)]['getConfig'](te);return(_0x15f1f2=_0x6ca26b==null?void 0x0:_0x6ca26b[_0x1af86e(0x181)])!=null?_0x15f1f2:location['origin'];}['_replaceFileID'](_0x68885,_0x13b292){const _0x2d72eb=_0x1f2fa;return _0x68885[_0x2d72eb(0x368)](_0x2d72eb(0x332),_0x13b292);}['_decreaseWaiting'](){const _0x12cf0d=_0x1f2fa;this['_waitCount']-=0x1,this['_change$'][_0x12cf0d(0x497)](this[_0x12cf0d(0x226)]);}},exports['ImageIoService']=Dr([vt(0x0,a[_0x1f2fa(0x28d)](Z[_0x1f2fa(0x516)])),vt(0x1,a[_0x1f2fa(0x1b0)]),vt(0x2,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x562)]))],exports[_0x1f2fa(0x40e)]);var Lr=Object['defineProperty'],xr=Object[_0x1f2fa(0x40d)],jr=(_0x11d850,_0x1bc2e1,_0x18106b,_0x5ba328)=>{for(var _0x81472e=_0x5ba328>0x1?void 0x0:_0x5ba328?xr(_0x1bc2e1,_0x18106b):_0x1bc2e1,_0x21d1df=_0x11d850['length']-0x1,_0x5f3437;_0x21d1df>=0x0;_0x21d1df--)(_0x5f3437=_0x11d850[_0x21d1df])&&(_0x81472e=(_0x5ba328?_0x5f3437(_0x1bc2e1,_0x18106b,_0x81472e):_0x5f3437(_0x81472e))||_0x81472e);return _0x5ba328&&_0x81472e&&Lr(_0x1bc2e1,_0x18106b,_0x81472e),_0x81472e;},Ae=(_0x4708c0,_0xac1861)=>(_0x52c455,_0x31d222)=>_0xac1861(_0x52c455,_0x31d222,_0x4708c0);let Ke=class extends a[_0x1f2fa(0x2bd)]{constructor(_0xfa1c90,_0x2e1950,_0x807a99,_0x45adbd,_0x4b5662){const _0x4168bc=_0x1f2fa;super(),this[_0x4168bc(0x2f7)]=_0xfa1c90,this[_0x4168bc(0x51c)]=_0x2e1950,this['_permissionService']=_0x807a99,this[_0x4168bc(0x2b9)]=_0x45adbd,this[_0x4168bc(0x247)]=_0x4b5662,this[_0x4168bc(0x16c)](),this[_0x4168bc(0x520)]();}[_0x1f2fa(0x520)](){const _0x3c7d6c=_0x1f2fa,_0x40a9b5=async _0xa360a1=>{const _0x5f0dd5=_0x3f71;(await this[_0x5f0dd5(0x2b9)][_0x5f0dd5(0x5b5)](_0xa360a1))[_0x5f0dd5(0x215)][_0x5f0dd5(0x5f2)](V[_0x5f0dd5(0x3db)](_0x7c83e=>_0x7c83e['eventID']===S['CollaborationEvent']['SHOULD_CLOSE_CONN']),V[_0x5f0dd5(0x5d4)](this[_0x5f0dd5(0x57d)]))['subscribe'](_0xaa3b2d=>{const _0x47ed58=_0x5f0dd5,_0x45f5d2=_0xaa3b2d,{reason:_0x142c2f}=_0x45f5d2[_0x47ed58(0x462)];this[_0x47ed58(0x2f7)][_0x47ed58(0x2f6)](ee[_0x47ed58(0x32b)])[_0x47ed58(0x472)]({'type':ge['MessageType'][_0x47ed58(0x424)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x142c2f+')'}),this['_permissionService'][_0x47ed58(0x4db)](new k['WorkbookEditablePermission'](_0xa360a1)['id'],!0x1),this[_0x47ed58(0x2b9)][_0x47ed58(0x2d6)](_0xa360a1);});};A[_0x3c7d6c(0x1b6)](this[_0x3c7d6c(0x51c)]['getTypeOfUnitAdded$'](a[_0x3c7d6c(0x5c7)][_0x3c7d6c(0x4c3)]),this[_0x3c7d6c(0x51c)][_0x3c7d6c(0x374)](a['UniverInstanceType']['UNIVER_DOC']))[_0x3c7d6c(0x5f2)](V[_0x3c7d6c(0x50e)](_0x3fd82f=>_0x3fd82f[_0x3c7d6c(0x4ea)]()),V[_0x3c7d6c(0x3db)](_0x4a521e=>!a[_0x3c7d6c(0x29a)](_0x4a521e)),V[_0x3c7d6c(0x5d4)](this[_0x3c7d6c(0x57d)]))[_0x3c7d6c(0x25e)](_0x17739e=>{_0x40a9b5(_0x17739e);});}[_0x1f2fa(0x16c)](){const _0x137df5=_0x1f2fa,_0x28cd2a=async _0x27a778=>{const _0x596934=_0x3f71;(await this['_collaborationSessionService'][_0x596934(0x5b5)](_0x27a778))[_0x596934(0x215)][_0x596934(0x5f2)](V[_0x596934(0x3db)](_0x1bfdbc=>_0x1bfdbc[_0x596934(0x38e)]===S['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),V[_0x596934(0x5d4)](this[_0x596934(0x57d)]))['subscribe'](_0x50f44c=>{const _0x511e4f=_0x596934,_0x106158=_0x50f44c,{objectId:_0x3fff62}=_0x106158[_0x511e4f(0x462)],_0x2a507c=this['_injector']['get'](Re['SheetPermissionInitController']);_0x3fff62===_0x27a778?_0x2a507c[_0x511e4f(0x267)](_0x27a778):_0x2a507c['refreshPermission'](_0x27a778,_0x3fff62);});};A[_0x137df5(0x1b6)](this[_0x137df5(0x51c)][_0x137df5(0x374)](a['UniverInstanceType'][_0x137df5(0x4c3)]),this[_0x137df5(0x51c)][_0x137df5(0x374)](a['UniverInstanceType'][_0x137df5(0x505)]))[_0x137df5(0x5f2)](V[_0x137df5(0x50e)](_0x29ade1=>_0x29ade1[_0x137df5(0x4ea)]()),V['filter'](_0x51633a=>!a[_0x137df5(0x29a)](_0x51633a)),V[_0x137df5(0x5d4)](this[_0x137df5(0x57d)]))[_0x137df5(0x25e)](_0x30eb4f=>{_0x28cd2a(_0x30eb4f);});}};Ke=jr([Ae(0x0,a['Inject'](a['Injector'])),Ae(0x1,a[_0x1f2fa(0x562)]),Ae(0x2,a['IPermissionService']),Ae(0x3,a[_0x1f2fa(0x28d)](exports[_0x1f2fa(0x1c0)])),Ae(0x4,a['Inject'](a[_0x1f2fa(0x537)]))],Ke);var $r=Object[_0x1f2fa(0x4e5)],Hr=Object[_0x1f2fa(0x40d)],Br=(_0x746282,_0x3b5dc1,_0x4dd65c,_0x3ba508)=>{const _0x45acf0=_0x1f2fa;for(var _0x4deb11=_0x3ba508>0x1?void 0x0:_0x3ba508?Hr(_0x3b5dc1,_0x4dd65c):_0x3b5dc1,_0x8beaa6=_0x746282[_0x45acf0(0x339)]-0x1,_0x24a722;_0x8beaa6>=0x0;_0x8beaa6--)(_0x24a722=_0x746282[_0x8beaa6])&&(_0x4deb11=(_0x3ba508?_0x24a722(_0x3b5dc1,_0x4dd65c,_0x4deb11):_0x24a722(_0x4deb11))||_0x4deb11);return _0x3ba508&&_0x4deb11&&$r(_0x3b5dc1,_0x4dd65c,_0x4deb11),_0x4deb11;},Jt=(_0x4f03a9,_0x48727a)=>(_0x2a3f7a,_0x4491c3)=>_0x48727a(_0x2a3f7a,_0x4491c3,_0x4f03a9);exports[_0x1f2fa(0x42e)]=class{constructor(_0x456a8b,_0x5226b6){const _0x77b02f=_0x1f2fa;this[_0x77b02f(0x499)]=_0x456a8b,this[_0x77b02f(0x3e8)]=_0x5226b6;}async['getUnitOnRev'](_0x1520d1,_0x5ae0a9){const _0xa4c9c8=_0x1f2fa;var _0x162f9c;const {unitID:_0x2d1804,type:_0xd7eb2f,revision:_0x2f25e=0x0}=_0x5ae0a9,_0x22b270=this[_0xa4c9c8(0x315)]()+'/'+_0xd7eb2f+_0xa4c9c8(0x17b)+_0x2d1804+_0xa4c9c8(0x4c4)+_0x2f25e,_0x50f763=(await this[_0xa4c9c8(0x3e8)][_0xa4c9c8(0x2f6)](_0x22b270))[_0xa4c9c8(0x26d)],_0x425fdb=(_0x162f9c=_0x50f763[_0xa4c9c8(0x3e4)])==null?void 0x0:_0x162f9c[_0xa4c9c8(0x5ba)];if(_0x425fdb){const _0x2e5f10=_0x425fdb==null?void 0x0:_0x425fdb[_0xa4c9c8(0x46c)],_0x32a314=S[_0xa4c9c8(0x379)]['encode'](S[_0xa4c9c8(0x4ca)](_0x2e5f10));_0x425fdb[_0xa4c9c8(0x46c)]=_0x32a314,Object['entries'](_0x425fdb[_0xa4c9c8(0x3c3)])[_0xa4c9c8(0x601)](([,_0x32aa78])=>{const _0x59969a=_0xa4c9c8,_0x55bbdd=_0x32aa78['originalMeta'],_0x302d4d=S['textEncoder'][_0x59969a(0x29b)](S[_0x59969a(0x4ca)](_0x55bbdd));_0x32aa78['originalMeta']=_0x302d4d;});}return _0x50f763;}async['getSheetBlock'](_0x24373f,_0x17d770){const _0x14234b=_0x1f2fa,{unitID:_0x1f2663,type:_0x51bdc7,blockID:_0x1b476d}=_0x17d770,_0x1b965a=this[_0x14234b(0x524)]()+'/'+_0x51bdc7+_0x14234b(0x17b)+_0x1f2663+_0x14234b(0x53e)+_0x1b476d;return(await this[_0x14234b(0x3e8)][_0x14234b(0x2f6)](_0x1b965a))[_0x14234b(0x26d)];}async[_0x1f2fa(0x18d)](_0x1a1308,_0x543be3){const _0x16cf9d=_0x1f2fa,{unitID:_0x4449f1,type:_0x1c9fb0,blockID:_0x685ba9}=_0x543be3,_0x1054aa=this[_0x16cf9d(0x524)]()+_0x16cf9d(0x53e)+_0x1c9fb0+_0x16cf9d(0x17b)+_0x4449f1+'/block/'+_0x685ba9;return(await this[_0x16cf9d(0x3e8)]['get'](_0x1054aa))[_0x16cf9d(0x26d)];}async[_0x1f2fa(0x289)](_0x3ace9f,_0x51c22d){const _0x57d248=_0x1f2fa,{unitID:_0x2c8d22,type:_0x152b74,from:_0x1cfdb6,to:_0x3bfce6}=_0x51c22d,_0x251399=this[_0x57d248(0x524)]()+'/'+_0x152b74+_0x57d248(0x17b)+_0x2c8d22+_0x57d248(0x569)+_0x1cfdb6+_0x57d248(0x572)+_0x3bfce6;return(await this[_0x57d248(0x3e8)][_0x57d248(0x2f6)](_0x251399))[_0x57d248(0x26d)];}[_0x1f2fa(0x315)](){const _0x5a7397=_0x1f2fa;var _0x65db0c;return(_0x65db0c=this['_configService'][_0x5a7397(0x546)](Qt))!=null?_0x65db0c:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x323a96=_0x1f2fa;var _0x589541,_0x26a31b;const _0x331f67=this[_0x323a96(0x499)][_0x323a96(0x546)](Zt),_0x5cc29a=this[_0x323a96(0x499)][_0x323a96(0x546)](te);return(_0x26a31b=(_0x589541=_0x5cc29a==null?void 0x0:_0x5cc29a['snapshotServerUrl'])!=null?_0x589541:_0x331f67)!=null?_0x26a31b:Hn;}async[_0x1f2fa(0x530)](_0x7c4138,_0x57fe4b){const _0xdeb5a1=_0x1f2fa,_0x41a000=_0xdeb5a1(0x2e7)+_0x57fe4b[_0xdeb5a1(0x1eb)]+_0xdeb5a1(0x17b)+_0x57fe4b['unitID']+_0xdeb5a1(0x31b);return(await this[_0xdeb5a1(0x3e8)][_0xdeb5a1(0x2f6)](_0x41a000,{'params':{'resourceId':JSON[_0xdeb5a1(0x3f4)](_0x57fe4b[_0xdeb5a1(0x177)])}}))[_0xdeb5a1(0x26d)];}[_0x1f2fa(0x243)](){const _0x1f5f49=_0x1f2fa;throw new Error(_0x1f5f49(0x209));}['saveSheetBlock'](){const _0x39f1f2=_0x1f2fa;throw new Error(_0x39f1f2(0x209));}[_0x1f2fa(0x2ff)](){const _0x475a79=_0x1f2fa;throw new Error(_0x475a79(0x209));}[_0x1f2fa(0x506)](){const _0x41e62f=_0x1f2fa;throw new Error(_0x41e62f(0x209));}[_0x1f2fa(0x30d)](){const _0x3ea9c6=_0x1f2fa;throw new Error(_0x3ea9c6(0x209));}},exports[_0x1f2fa(0x42e)]=Br([Jt(0x0,a[_0x1f2fa(0x1b0)]),Jt(0x1,a[_0x1f2fa(0x28d)](Z[_0x1f2fa(0x516)]))],exports[_0x1f2fa(0x42e)]);var kr=Object[_0x1f2fa(0x4e5)],Wr=Object[_0x1f2fa(0x40d)],Fr=(_0x1bc060,_0xc9a196,_0x556514,_0x596713)=>{const _0x579bc6=_0x1f2fa;for(var _0x455038=_0x596713>0x1?void 0x0:_0x596713?Wr(_0xc9a196,_0x556514):_0xc9a196,_0x3c9c58=_0x1bc060[_0x579bc6(0x339)]-0x1,_0x2b9cde;_0x3c9c58>=0x0;_0x3c9c58--)(_0x2b9cde=_0x1bc060[_0x3c9c58])&&(_0x455038=(_0x596713?_0x2b9cde(_0xc9a196,_0x556514,_0x455038):_0x2b9cde(_0x455038))||_0x455038);return _0x596713&&_0x455038&&kr(_0xc9a196,_0x556514,_0x455038),_0x455038;},Ne=(_0x4ea161,_0x427409)=>(_0x3fa305,_0x7cfcc3)=>_0x427409(_0x3fa305,_0x7cfcc3,_0x4ea161);let It=class extends a[_0x1f2fa(0x221)]{constructor(_0x5d1856,_0x449d81,_0xfad69f,_0x19d9f0,_0x10acc2){const _0x51fb78=_0x1f2fa;super(_0x5d1856,_0x449d81,_0xfad69f),this['_transformService']=_0x19d9f0,this[_0x51fb78(0x1d8)]=_0x10acc2;}[_0x1f2fa(0x3ec)](_0x58472d,_0x301592){const _0x40f729=_0x1f2fa,_0x3a56f1=this[_0x40f729(0x22e)](_0x58472d);if(_0x3a56f1)try{const _0x40ad47=this['_transformStack'](_0x3a56f1,_0x301592);this[_0x40f729(0x3da)](_0x58472d,_0x40ad47);}catch(_0x5c9bc0){this['_logService']['error'](_0x40f729(0x47a),_0x5c9bc0),this[_0x40f729(0x5cc)](_0x58472d);}const _0x359671=this[_0x40f729(0x285)](_0x58472d);if(_0x359671)try{const _0x456525=this['_transformStack'](_0x359671,_0x301592);this[_0x40f729(0x19f)](_0x58472d,_0x456525);}catch(_0xacbd92){this[_0x40f729(0x1d8)]['error'](_0xacbd92),this['_clearRedo'](_0x58472d);}}['_clearUndo'](_0x411082){const _0x59959d=_0x1f2fa,_0x461bbf=this[_0x59959d(0x22e)](_0x411082);_0x461bbf&&(_0x461bbf['length']=0x0,this[_0x59959d(0x36d)]());}[_0x1f2fa(0x2fb)](_0x426027){const _0x10d13c=_0x1f2fa,_0x1d5d16=this['_getRedoStack'](_0x426027);_0x1d5d16&&(_0x1d5d16[_0x10d13c(0x339)]=0x0,this['_updateStatus']());}[_0x1f2fa(0x3da)](_0xb83747,_0x131e96){const _0x350f54=_0x1f2fa;this[_0x350f54(0x38b)]['set'](_0xb83747,_0x131e96),this[_0x350f54(0x36d)]();}['_substituteRedoStack'](_0x11fc7f,_0x28feea){const _0x1accbc=_0x1f2fa;this[_0x1accbc(0x3f0)][_0x1accbc(0x329)](_0x11fc7f,_0x28feea),this['_updateStatus']();}[_0x1f2fa(0x2df)](_0x3c96f7,_0x43adc5){const _0x20d4b2=_0x1f2fa,_0x2de2f5=[];let _0x17e0bb=_0x43adc5,_0x3f7743=_0x43adc5;for(let _0x326b0c=_0x3c96f7[_0x20d4b2(0x339)]-0x1;_0x326b0c>=0x0;_0x326b0c--){const {unitID:_0x53a128,undoMutations:_0x23c6fe,redoMutations:_0x4185ce}=_0x3c96f7[_0x326b0c],_0x679030=this[_0x20d4b2(0x5ce)][_0x20d4b2(0x403)](_0x17e0bb,_0x23c6fe),_0x2fa969=this['_transformService'][_0x20d4b2(0x403)](_0x3f7743,_0x4185ce);if(S[_0x20d4b2(0x372)](_0x679030)||S['isTransformMutationsWithChangesetFailure'](_0x2fa969)){this[_0x20d4b2(0x1d8)][_0x20d4b2(0x2d0)]('[CollaborationUndoRedoService]',_0x20d4b2(0x3dc),_0x679030,_0x2fa969);break;}_0x17e0bb=_0x679030['c1Prime'],_0x3f7743=_0x2fa969[_0x20d4b2(0x448)],_0x2de2f5[_0x20d4b2(0x19c)]({'unitID':_0x53a128,'undoMutations':_0x679030[_0x20d4b2(0x26e)],'redoMutations':_0x2fa969[_0x20d4b2(0x26e)]});}return _0x2de2f5[_0x20d4b2(0x44a)]();}};It=Fr([Ne(0x0,a[_0x1f2fa(0x562)]),Ne(0x1,a[_0x1f2fa(0x51f)]),Ne(0x2,a['IContextService']),Ne(0x3,S[_0x1f2fa(0x3ff)]),Ne(0x4,a[_0x1f2fa(0x1af)])],It);class An extends a[_0x1f2fa(0x2bd)]{constructor(){const _0x37bbd6=_0x1f2fa;super(),I(this,'urlChange$'),this[_0x37bbd6(0x261)]=A['fromEvent'](window,_0x37bbd6(0x190))[_0x37bbd6(0x5f2)](A[_0x37bbd6(0x5d4)](this[_0x37bbd6(0x57d)]),A['shareReplay'](0x1),A[_0x37bbd6(0x295)](void 0x0));}[_0x1f2fa(0x318)](_0x580126,_0x1dbd56,_0x339bb3=!0x1){const _0x58c369=_0x1f2fa,_0xea6279=new URL(window[_0x58c369(0x283)][_0x58c369(0x538)]);_0xea6279[_0x58c369(0x236)][_0x58c369(0x329)](_0x580126,_0x1dbd56),_0x339bb3?window[_0x58c369(0x1a9)][_0x58c369(0x421)]('','',_0xea6279[_0x58c369(0x353)]()):window[_0x58c369(0x1a9)]['pushState']('','',_0xea6279[_0x58c369(0x353)]());}['removeParam'](_0x692e12,_0x2beca1=!0x1){const _0x35656e=_0x1f2fa,_0x3093b1=new URL(window['location'][_0x35656e(0x538)]);_0x3093b1['searchParams'][_0x35656e(0x2e4)](_0x692e12),_0x2beca1?window[_0x35656e(0x1a9)][_0x35656e(0x421)]('','',_0x3093b1['toString']()):window[_0x35656e(0x1a9)][_0x35656e(0x4a0)]('','',_0x3093b1[_0x35656e(0x353)]());}[_0x1f2fa(0x387)](_0xdf1e0b){const _0x5612a6=_0x1f2fa;var _0x412254;return(_0x412254=new URL(window[_0x5612a6(0x283)][_0x5612a6(0x538)])[_0x5612a6(0x236)][_0x5612a6(0x2f6)](_0xdf1e0b))!=null?_0x412254:void 0x0;}}var Nn=Object[_0x1f2fa(0x4e5)],Vr=Object['getOwnPropertyDescriptor'],Gr=(_0x47f1e9,_0x17da21,_0x45d5be)=>_0x17da21 in _0x47f1e9?Nn(_0x47f1e9,_0x17da21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45d5be}):_0x47f1e9[_0x17da21]=_0x45d5be,Yr=(_0x3fe5fe,_0x220f1c,_0x28fe5d,_0x1eaa01)=>{for(var _0xe62e39=_0x1eaa01>0x1?void 0x0:_0x1eaa01?Vr(_0x220f1c,_0x28fe5d):_0x220f1c,_0x51ffd1=_0x3fe5fe['length']-0x1,_0x35e398;_0x51ffd1>=0x0;_0x51ffd1--)(_0x35e398=_0x3fe5fe[_0x51ffd1])&&(_0xe62e39=(_0x1eaa01?_0x35e398(_0x220f1c,_0x28fe5d,_0xe62e39):_0x35e398(_0xe62e39))||_0xe62e39);return _0x1eaa01&&_0xe62e39&&Nn(_0x220f1c,_0x28fe5d,_0xe62e39),_0xe62e39;},He=(_0x4ac180,_0x1fe9a9)=>(_0x16c2cf,_0x428732)=>_0x1fe9a9(_0x16c2cf,_0x428732,_0x4ac180),Kr=(_0x3fc281,_0x2d1bb7,_0x27ce1a)=>Gr(_0x3fc281,_0x2d1bb7+'',_0x27ce1a);const qr='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x1f2fa(0x227)]=class extends a[_0x1f2fa(0x5fc)]{constructor(_0x212bf0=zn,_0x5ed821,_0x36d3de,_0x5261d8,_0x540517){const _0x5986c7=_0x1f2fa;super(),this[_0x5986c7(0x17d)]=_0x212bf0,this[_0x5986c7(0x1d8)]=_0x5ed821,this[_0x5986c7(0x303)]=_0x36d3de,this[_0x5986c7(0x2f7)]=_0x5261d8,this[_0x5986c7(0x499)]=_0x540517;const {..._0x50e489}=this[_0x5986c7(0x17d)];this[_0x5986c7(0x499)][_0x5986c7(0x2d7)](te,_0x50e489);}[_0x1f2fa(0x473)](){const _0xce2408=_0x1f2fa;this[_0xce2408(0x53b)](),this['_initDependencies']();}[_0x1f2fa(0x15b)](){const _0x2dcf78=_0x1f2fa;a['touchDependencies'](this[_0x2dcf78(0x2f7)],[[Ve]]);}['onRendered'](){const _0x3bd83d=_0x1f2fa;this[_0x3bd83d(0x44e)]();}['_registerDependencies'](){const _0x47da98=_0x1f2fa;var _0x4b8932,_0x46237c,_0x15718d,_0x24d6f9;this[_0x47da98(0x2f7)][_0x47da98(0x3d5)](a['IUndoRedoService'])&&this[_0x47da98(0x1d8)][_0x47da98(0x2d0)]('[UniverCollaborationClientPlugin]',_0x47da98(0x307));const _0x19455b=[[a[_0x47da98(0x2fa)],{'useClass':It}],[exports[_0x47da98(0x1c0)]],[Ot],[wt,{'useClass':An}],[exports[_0x47da98(0x3d8)]],[exports[_0x47da98(0x333)]],[Z[_0x47da98(0x22d)]],[ke],[Fe],[Be],[We],[Rt],[Ge],[Ye],[Tt],[Ke],[bt,{'useClass':(_0x46237c=(_0x4b8932=this[_0x47da98(0x17d)])==null?void 0x0:_0x4b8932['socketService'])!=null?_0x46237c:exports[_0x47da98(0x2b7)]}],[S[_0x47da98(0x1d2)],{'useClass':exports[_0x47da98(0x42e)]}],[a[_0x47da98(0x15e)],{'useClass':exports[_0x47da98(0x175)]}],[ne[_0x47da98(0x311)],{'useClass':exports['ImageIoService']}],[exports['CollaborationController']],[exports[_0x47da98(0x33c)]],[exports['DesktopCollaborationStatusDisplayController']],[Ve],[De]];(_0x15718d=this[_0x47da98(0x17d)])!=null&&_0x15718d[_0x47da98(0x28f)]&&_0x19455b['push']([qe,{'useClass':Oi}]),a[_0x47da98(0x43b)](this[_0x47da98(0x2f7)],a[_0x47da98(0x1c3)](_0x19455b,(_0x24d6f9=this[_0x47da98(0x17d)])==null?void 0x0:_0x24d6f9[_0x47da98(0x1b8)]));}[_0x1f2fa(0x44e)](){const _0x38ae2d=_0x1f2fa;this['disposeWithMe'](this[_0x38ae2d(0x303)][_0x38ae2d(0x37e)](a[_0x38ae2d(0x5c7)][_0x38ae2d(0x505)],[pt])),this[_0x38ae2d(0x305)](this[_0x38ae2d(0x303)][_0x38ae2d(0x37e)](a['UniverInstanceType']['UNIVER_SHEET'],[gt]));}[_0x1f2fa(0x364)](){const _0x17aefe=_0x1f2fa;var _0x143dbb,_0x2d8902;this[_0x17aefe(0x2f7)][_0x17aefe(0x2f6)](Z['HTTPService'])[_0x17aefe(0x5f8)]({'priority':0x14,'interceptor':Z[_0x17aefe(0x2fe)]({'maxParallel':0x6})}),(_0x143dbb=this[_0x17aefe(0x17d)])!=null&&_0x143dbb[_0x17aefe(0x5ac)]||this[_0x17aefe(0x2f7)][_0x17aefe(0x2f6)](exports[_0x17aefe(0x333)])[_0x17aefe(0x44c)](),(_0x2d8902=this[_0x17aefe(0x17d)])!=null&&_0x2d8902[_0x17aefe(0x4ee)]&&a['touchDependencies'](this[_0x17aefe(0x2f7)],[[Ge]]),a[_0x17aefe(0x3d6)](this['_injector'],[[Ye],[De],[exports['DataLoaderController']],[exports[_0x17aefe(0x1ab)]],[exports[_0x17aefe(0x31a)]],[Ke]]);}},Kr(exports[_0x1f2fa(0x227)],_0x1f2fa(0x399),qr),exports['UniverCollaborationClientPlugin']=Yr([a[_0x1f2fa(0x224)](S[_0x1f2fa(0x38c)],Z['UniverNetworkPlugin']),He(0x1,a['ILogService']),He(0x2,K[_0x1f2fa(0x328)]),He(0x3,a[_0x1f2fa(0x28d)](a[_0x1f2fa(0x35d)])),He(0x4,a[_0x1f2fa(0x1b0)])],exports[_0x1f2fa(0x227)]),exports[_0x1f2fa(0x2a7)]=Rn,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=on,exports[_0x1f2fa(0x584)]=en,exports[_0x1f2fa(0x422)]=q,exports['CollaborationStatusDisplay']=Tn,exports[_0x1f2fa(0x528)]=Tt,exports[_0x1f2fa(0x15c)]=tn,exports[_0x1f2fa(0x4e1)]=Ct,exports[_0x1f2fa(0x1d9)]=bt,exports[_0x1f2fa(0x330)]=wt,exports[_0x1f2fa(0x2b4)]=rn,exports['LOGIN_URL_KEY']=an,exports[_0x1f2fa(0x55e)]=sn,exports[_0x1f2fa(0x1df)]=Bn,exports[_0x1f2fa(0x1c8)]=Zt,exports[_0x1f2fa(0x2a6)]=Qt,exports[_0x1f2fa(0x4de)]=se,exports[_0x1f2fa(0x5b9)]=Sn,exports[_0x1f2fa(0x321)]=An,exports[_0x1f2fa(0x2bf)]=hn,exports[_0x1f2fa(0x1f7)]=_n;
1
+ 'use strict';const _0x38c3ff=_0x4762;(function(_0x30b1cc,_0x247dd5){const _0x1e6895=_0x4762,_0x117a0f=_0x30b1cc();while(!![]){try{const _0x67e736=parseInt(_0x1e6895(0x1ef))/0x1*(-parseInt(_0x1e6895(0x2e6))/0x2)+-parseInt(_0x1e6895(0x578))/0x3*(-parseInt(_0x1e6895(0x4a3))/0x4)+parseInt(_0x1e6895(0x280))/0x5+-parseInt(_0x1e6895(0x49a))/0x6*(-parseInt(_0x1e6895(0x3ca))/0x7)+-parseInt(_0x1e6895(0x1bb))/0x8+-parseInt(_0x1e6895(0x527))/0x9*(-parseInt(_0x1e6895(0x46b))/0xa)+parseInt(_0x1e6895(0x35c))/0xb*(-parseInt(_0x1e6895(0x19f))/0xc);if(_0x67e736===_0x247dd5)break;else _0x117a0f['push'](_0x117a0f['shift']());}catch(_0x34e182){_0x117a0f['push'](_0x117a0f['shift']());}}}(_0x2079,0x8e56d));var Ln=Object[_0x38c3ff(0x1c1)],xn=(_0x3ec9b7,_0xd439c4,_0x3ca1b5)=>_0xd439c4 in _0x3ec9b7?Ln(_0x3ec9b7,_0xd439c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ca1b5}):_0x3ec9b7[_0xd439c4]=_0x3ca1b5,I=(_0x18c2c0,_0x49b7cb,_0x5d12b8)=>xn(_0x18c2c0,typeof _0x49b7cb!=_0x38c3ff(0x57a)?_0x49b7cb+'':_0x49b7cb,_0x5d12b8);Object[_0x38c3ff(0x1c1)](exports,Symbol['toStringTag'],{'value':_0x38c3ff(0x235)});const a=require(_0x38c3ff(0x239)),A=require('rxjs'),V=require(_0x38c3ff(0x22a)),ge=require(_0x38c3ff(0x3c9)),ee=require(_0x38c3ff(0x1b0)),Z=require(_0x38c3ff(0x3ab)),S=require(_0x38c3ff(0x468)),jn=require(_0x38c3ff(0x537)),J=require(_0x38c3ff(0x565)),k=require('@univerjs/sheets'),K=require(_0x38c3ff(0x3c4)),ye=require(_0x38c3ff(0x304)),ne=require(_0x38c3ff(0x1ec)),Pt=require(_0x38c3ff(0x3d3)),Re=require(_0x38c3ff(0x469)),ae=require('react'),$n=require('@univerjs/rpc'),Zt='SNAPSHOT_SERVER_URL_KEY',Hn=_0x38c3ff(0x56d),Qt=_0x38c3ff(0x462),Bn=_0x38c3ff(0x5c9),kn=0x7d0,en=_0x38c3ff(0x1db),Wn=_0x38c3ff(0x377),tn=_0x38c3ff(0x45d),Fn=0x7530,Ct=_0x38c3ff(0x49d),nn=0x4e20,Vn=0x4e20,sn=_0x38c3ff(0x4d9),Gn=0x3,rn=_0x38c3ff(0x5de),Yn=0x3e8,on='COLLAB_SUBMIT_CHANGESET_URL',Kn=_0x38c3ff(0x410),an=_0x38c3ff(0x216),qn=_0x38c3ff(0x1c2);var cn=(_0x2d76e3=>(_0x2d76e3[_0x2d76e3[_0x38c3ff(0x3c1)]=0x0]='UNDEFINED',_0x2d76e3[_0x2d76e3['OK']=0x1]='OK',_0x2d76e3[_0x2d76e3[_0x38c3ff(0x60c)]=0x2]=_0x38c3ff(0x60c),_0x2d76e3[_0x2d76e3['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x2d76e3[_0x2d76e3['NOT_FOUND']=0x4]=_0x38c3ff(0x567),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x5b4)]=0x5]='UNAUTHENTICATED',_0x2d76e3[_0x2d76e3['ALREADY_EXISTS']=0x6]=_0x38c3ff(0x48a),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x5f3)]=0x7]=_0x38c3ff(0x5f3),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x36d)]=0x8]=_0x38c3ff(0x36d),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x621)]=0x9]=_0x38c3ff(0x621),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x378)]=0x1389]=_0x38c3ff(0x378),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x20c)]=0x1771]=_0x38c3ff(0x20c),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x57d)]=0x1772]=_0x38c3ff(0x57d),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x39c)]=0x1773]=_0x38c3ff(0x39c),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x36c)]=0x1b59]=_0x38c3ff(0x36c),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x19a)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2d76e3[_0x2d76e3[_0x38c3ff(0x638)]=0x1b5b]=_0x38c3ff(0x638),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x45f)]=0x1b5c]=_0x38c3ff(0x45f),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x3b4)]=0x1b5d]=_0x38c3ff(0x3b4),_0x2d76e3[_0x2d76e3['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x38c3ff(0x4f2),_0x2d76e3[_0x2d76e3['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x38c3ff(0x24e),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x508)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2d76e3[_0x2d76e3[_0x38c3ff(0x5ba)]=0x232b]=_0x38c3ff(0x5ba),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x3e1)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2d76e3[_0x2d76e3[_0x38c3ff(0x63a)]=0x232d]=_0x38c3ff(0x63a),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x259)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2d76e3[_0x2d76e3[_0x38c3ff(0x210)]=0x2712]=_0x38c3ff(0x210),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x39f)]=0x2713]=_0x38c3ff(0x39f),_0x2d76e3[_0x2d76e3[_0x38c3ff(0x1ee)]=0x2714]=_0x38c3ff(0x1ee),_0x2d76e3[_0x2d76e3['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x2d76e3))(cn||{}),ie=(_0x625abe=>(_0x625abe[_0x625abe[_0x38c3ff(0x58e)]=0x0]=_0x38c3ff(0x58e),_0x625abe[_0x625abe[_0x38c3ff(0x649)]=0x1]=_0x38c3ff(0x649),_0x625abe[_0x625abe[_0x38c3ff(0x23d)]=0x2]=_0x38c3ff(0x23d),_0x625abe[_0x625abe['UNIVER_SLIDE']=0x3]=_0x38c3ff(0x4eb),_0x625abe[_0x625abe[_0x38c3ff(0x3a0)]=0x4]=_0x38c3ff(0x3a0),_0x625abe[_0x625abe['UNRECOGNIZED']=-0x1]=_0x38c3ff(0x546),_0x625abe))(ie||{}),G=(_0x3371af=>(_0x3371af[_0x3371af['UNKNOWN_CMD']=0x0]=_0x38c3ff(0x51b),_0x3371af[_0x3371af[_0x38c3ff(0x2a5)]=0x1]='HELLO',_0x3371af[_0x3371af['JOIN']=0x2]='JOIN',_0x3371af[_0x3371af[_0x38c3ff(0x407)]=0x3]=_0x38c3ff(0x407),_0x3371af[_0x3371af[_0x38c3ff(0x2b0)]=0x4]=_0x38c3ff(0x2b0),_0x3371af[_0x3371af['HEARTBEAT']=0x5]=_0x38c3ff(0x481),_0x3371af[_0x3371af[_0x38c3ff(0x329)]=0x6]='RECV',_0x3371af[_0x3371af[_0x38c3ff(0x546)]=-0x1]=_0x38c3ff(0x546),_0x3371af))(G||{}),Et=(_0x43efcd=>(_0x43efcd[_0x43efcd['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x43efcd[_0x43efcd['OK']=0x1]='OK',_0x43efcd[_0x43efcd[_0x38c3ff(0x498)]=0x2]='FAIL',_0x43efcd[_0x43efcd['UNRECOGNIZED']=-0x1]=_0x38c3ff(0x546),_0x43efcd))(Et||{}),ln=(_0x36c035=>(_0x36c035[_0x36c035[_0x38c3ff(0x594)]=0x0]=_0x38c3ff(0x594),_0x36c035[_0x36c035[_0x38c3ff(0x466)]=0x1]=_0x38c3ff(0x466),_0x36c035[_0x36c035[_0x38c3ff(0x580)]=0x2]='HttpExport',_0x36c035[_0x36c035['UnitEmbedded']=0x3]='UnitEmbedded',_0x36c035[_0x36c035[_0x38c3ff(0x2ed)]=0x4]=_0x38c3ff(0x2ed),_0x36c035[_0x36c035['UNRECOGNIZED']=-0x1]=_0x38c3ff(0x546),_0x36c035))(ln||{});const te='collaboration-client.config',zn={};function hn(_0x5105a9){const _0x20f741=_0x38c3ff;var _0x3f0134,_0xaa3f14,_0x47f986,_0x44bfef,_0x4c2084;const _0x5c717d=_0x5105a9[_0x20f741(0x2e1)],_0x31786f=JSON['parse'](_0x5c717d);switch(_0x31786f[_0x20f741(0x4fa)]){case G['HEARTBEAT']:case G[_0x20f741(0x2a5)]:{const _0x26b657=_0x31786f[_0x20f741(0x31a)];return{..._0x31786f,'data':_0x26b657,'cmd':_0x31786f[_0x20f741(0x4fa)]};}case G[_0x20f741(0x344)]:{const _0x223eab=_0x31786f[_0x20f741(0x543)];return{..._0x31786f,'data':_0x223eab,'cmd':_0x31786f['cmd']};}case G[_0x20f741(0x329)]:{const _0x2d8bed=_0x31786f[_0x20f741(0x290)];switch(_0x2d8bed['eventID']){case S['CollaborationEvent'][_0x20f741(0x35d)]:return{..._0x31786f,'data':{..._0x2d8bed,'data':(_0x3f0134=_0x2d8bed[_0x20f741(0x52a)])==null?void 0x0:_0x3f0134['cs']},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S['CollaborationEvent']['CHANGESET_ACK']:return{..._0x31786f,'data':{..._0x2d8bed,'data':(_0xaa3f14=_0x2d8bed[_0x20f741(0x274)])==null?void 0x0:_0xaa3f14['cs']},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S['CollaborationEvent'][_0x20f741(0x5ec)]:return{..._0x31786f,'data':{..._0x2d8bed,'data':(_0x47f986=_0x2d8bed[_0x20f741(0x5e8)])==null?void 0x0:_0x47f986['cs']},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S['CollaborationEvent'][_0x20f741(0x4b5)]:return{..._0x31786f,'data':{..._0x2d8bed,'data':(_0x44bfef=_0x2d8bed['csRejEvent'])==null?void 0x0:_0x44bfef['cs']},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S[_0x20f741(0x201)][_0x20f741(0x57e)]:return{..._0x31786f,'data':{..._0x2d8bed,'data':(_0x4c2084=_0x2d8bed[_0x20f741(0x52d)])==null?void 0x0:_0x4c2084['cs']},'cmd':_0x31786f['cmd']};case S[_0x20f741(0x201)]['UPDATE_CURSOR']:return{..._0x31786f,'data':{..._0x2d8bed,'data':_0x2d8bed[_0x20f741(0x51e)]},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S[_0x20f741(0x201)][_0x20f741(0x307)]:return{..._0x31786f,'data':{..._0x2d8bed,'data':_0x2d8bed['joinEvent']},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S[_0x20f741(0x201)]['USERS_LEAVE']:return{..._0x31786f,'data':{..._0x2d8bed,'data':_0x2d8bed[_0x20f741(0x5f6)]},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S[_0x20f741(0x201)]['LIVESHARE_NEW_HOST']:return{..._0x31786f,'data':{..._0x2d8bed,'data':_0x2d8bed['liveShareNewHost']},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S[_0x20f741(0x201)]['LIVESHARE_FETCH_OPERATIONS']:case S[_0x20f741(0x201)][_0x20f741(0x253)]:return{..._0x31786f,'data':{..._0x2d8bed,'data':_0x2d8bed['liveShareOperation']},'cmd':_0x31786f['cmd']};case S['CollaborationEvent'][_0x20f741(0x59f)]:return{..._0x31786f,'data':{..._0x2d8bed,'data':_0x2d8bed['liveShareNewHost']},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S['CollaborationEvent'][_0x20f741(0x369)]:return{..._0x31786f,'data':_0x2d8bed,'cmd':_0x31786f[_0x20f741(0x4fa)]};case S['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x31786f,'data':{..._0x2d8bed,'data':_0x2d8bed[_0x20f741(0x4b4)]},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S[_0x20f741(0x201)][_0x20f741(0x382)]:return{..._0x31786f,'data':{..._0x2d8bed,'data':_0x2d8bed[_0x20f741(0x617)]},'cmd':_0x31786f[_0x20f741(0x4fa)]};case S[_0x20f741(0x201)][_0x20f741(0x641)]:return{..._0x31786f,'data':{..._0x2d8bed,'data':_0x2d8bed[_0x20f741(0x522)]},'cmd':_0x31786f[_0x20f741(0x4fa)]};default:return _0x31786f;}}default:return _0x31786f;}}function _n(_0x2fece7){const _0x1bcb8d=_0x38c3ff;switch(_0x2fece7[_0x1bcb8d(0x4fa)]){case G[_0x1bcb8d(0x481)]:case G[_0x1bcb8d(0x2a5)]:return JSON[_0x1bcb8d(0x3e4)]({'cmd':_0x2fece7['cmd'],'routeKey':_0x2fece7[_0x1bcb8d(0x5eb)]});case G[_0x1bcb8d(0x2b0)]:{let _0x17a114;switch(_0x2fece7[_0x1bcb8d(0x2e1)][_0x1bcb8d(0x2bd)]){case S['CollaborationEvent'][_0x1bcb8d(0x46d)]:{_0x17a114={'eventID':S[_0x1bcb8d(0x201)][_0x1bcb8d(0x46d)],'updateCursorEvent':_0x2fece7[_0x1bcb8d(0x2e1)][_0x1bcb8d(0x2e1)]};break;}case S[_0x1bcb8d(0x201)][_0x1bcb8d(0x5e0)]:{_0x17a114={'eventID':S[_0x1bcb8d(0x201)][_0x1bcb8d(0x5e0)],'leaveEvent':_0x2fece7[_0x1bcb8d(0x2e1)][_0x1bcb8d(0x2e1)]};break;}case S[_0x1bcb8d(0x201)][_0x1bcb8d(0x307)]:{_0x17a114={'eventID':S[_0x1bcb8d(0x201)]['USERS_ENTER'],'joinEvent':_0x2fece7[_0x1bcb8d(0x2e1)][_0x1bcb8d(0x2e1)]};break;}case S[_0x1bcb8d(0x201)]['LIVESHARE_NEW_HOST']:{_0x17a114={'eventID':S[_0x1bcb8d(0x201)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2fece7['data']['data']};break;}case S[_0x1bcb8d(0x201)]['LIVESHARE_OPERATION']:{_0x17a114={'eventID':S[_0x1bcb8d(0x201)][_0x1bcb8d(0x253)],'liveShareOperation':_0x2fece7[_0x1bcb8d(0x2e1)]['data']};break;}case S['CollaborationEvent'][_0x1bcb8d(0x59f)]:{_0x17a114={'eventID':S[_0x1bcb8d(0x201)][_0x1bcb8d(0x59f)],'liveShareTerminate':_0x2fece7[_0x1bcb8d(0x2e1)][_0x1bcb8d(0x2e1)]};break;}case S[_0x1bcb8d(0x201)][_0x1bcb8d(0x47f)]:{_0x17a114={'eventID':S[_0x1bcb8d(0x201)][_0x1bcb8d(0x47f)],'liveShareRequestHost':_0x2fece7[_0x1bcb8d(0x2e1)]['data']};break;}case S[_0x1bcb8d(0x201)][_0x1bcb8d(0x3d7)]:{_0x17a114={'eventID':S[_0x1bcb8d(0x201)][_0x1bcb8d(0x3d7)]};break;}default:_0x17a114={'eventID':_0x2fece7['data']['eventID']};}return JSON[_0x1bcb8d(0x3e4)]({'cmd':_0x2fece7[_0x1bcb8d(0x4fa)],'routeKey':_0x2fece7['routeKey'],'collaMsg':_0x17a114});}case G['JOIN']:return JSON[_0x1bcb8d(0x3e4)]({'cmd':_0x2fece7[_0x1bcb8d(0x4fa)],'routeKey':_0x2fece7['routeKey'],'joinReq':_0x2fece7[_0x1bcb8d(0x2e1)]});case G[_0x1bcb8d(0x407)]:return JSON['stringify']({'cmd':_0x2fece7[_0x1bcb8d(0x4fa)],'routeKey':_0x2fece7[_0x1bcb8d(0x5eb)],'leaveReq':_0x2fece7[_0x1bcb8d(0x2e1)]});default:throw new Error(_0x1bcb8d(0x480));}}var Xn=Object[_0x38c3ff(0x1c1)],Jn=Object[_0x38c3ff(0x336)],Zn=(_0x57a918,_0x4fa490,_0x3c0144,_0x3e4906)=>{const _0x3e121e=_0x38c3ff;for(var _0xe146a4=_0x3e4906>0x1?void 0x0:_0x3e4906?Jn(_0x4fa490,_0x3c0144):_0x4fa490,_0x225c45=_0x57a918[_0x3e121e(0x58c)]-0x1,_0x3d1fd8;_0x225c45>=0x0;_0x225c45--)(_0x3d1fd8=_0x57a918[_0x225c45])&&(_0xe146a4=(_0x3e4906?_0x3d1fd8(_0x4fa490,_0x3c0144,_0xe146a4):_0x3d1fd8(_0xe146a4))||_0xe146a4);return _0x3e4906&&_0xe146a4&&Xn(_0x4fa490,_0x3c0144,_0xe146a4),_0xe146a4;},we=(_0x4b5084,_0x5ed7d3)=>(_0x2fca0e,_0x2b3ed4)=>_0x5ed7d3(_0x2fca0e,_0x2b3ed4,_0x4b5084);const bt=a['createIdentifier']('univer-pro.collaboration-client-socket-service');function Qn(_0x34d1b2,_0x385c35,_0x4eb36a){const _0x85ff1e=_0x38c3ff;return _0x34d1b2+'/'+_0x385c35+_0x85ff1e(0x4e1)+_0x4eb36a+_0x85ff1e(0x40e);}exports[_0x38c3ff(0x476)]=class extends a[_0x38c3ff(0x1a8)]{constructor(_0x5ce073,_0x1270c4,_0x516f7c,_0x35a49e,_0x36dd99){const _0x5cc974=_0x38c3ff;super(),this['_http']=_0x5ce073,this[_0x5cc974(0x1c5)]=_0x1270c4,this[_0x5cc974(0x1f5)]=_0x516f7c,this[_0x5cc974(0x4ce)]=_0x35a49e,this[_0x5cc974(0x2b8)]=_0x36dd99;}[_0x38c3ff(0x3df)](_0x32de72){const _0x780fa=_0x38c3ff,_0x4696e8=this['_ws'][_0x780fa(0x3df)](_0x32de72);if(!_0x4696e8)throw new Error(_0x780fa(0x53e));const _0x42747f=new a[(_0x780fa(0x5ad))](),_0x25f6c4=new A[(_0x780fa(0x3cf))]();_0x42747f[_0x780fa(0x425)](_0x4696e8[_0x780fa(0x1ed)][_0x780fa(0x47b)](_0x5e78a1=>_0x25f6c4[_0x780fa(0x4c4)](_0x5e78a1))),_0x42747f[_0x780fa(0x425)](a[_0x780fa(0x2c7)](()=>_0x25f6c4[_0x780fa(0x40d)]()));const _0x39f4d5=new A['Subject']();_0x42747f[_0x780fa(0x425)](_0x4696e8[_0x780fa(0x659)][_0x780fa(0x47b)](_0x5d593b=>_0x39f4d5['next'](_0x5d593b))),_0x42747f['add'](a[_0x780fa(0x2c7)](()=>_0x39f4d5[_0x780fa(0x40d)]()));const _0x43ae26=new A[(_0x780fa(0x3cf))]();_0x42747f[_0x780fa(0x425)](_0x4696e8[_0x780fa(0x646)][_0x780fa(0x47b)](_0x2b3746=>{const _0x48903a=_0x780fa,_0x3b17aa=hn(_0x2b3746);_0x43ae26[_0x48903a(0x4c4)](_0x3b17aa);})),_0x42747f[_0x780fa(0x425)](a[_0x780fa(0x2c7)](()=>_0x43ae26[_0x780fa(0x40d)]()));let _0x44952d;const _0x45d99f=()=>{const _0x54f66a=_0x780fa;_0x39f4d5[_0x54f66a(0x4c4)](new Event(_0x54f66a(0x574))),_0x25f6c4[_0x54f66a(0x4c4)](new CloseEvent('connection\x20error')),_0x44952d['close']();};return _0x44952d={'memberID':'','close$':_0x25f6c4['asObservable'](),'error$':_0x39f4d5[_0x780fa(0x4a7)](),'open$':_0x4696e8[_0x780fa(0x24b)],'message$':_0x43ae26['asObservable'](),'send':_0x3bfe83=>{const _0x5935e2=_0x780fa;if(_0x3bfe83[_0x5935e2(0x4fa)]===G[_0x5935e2(0x2b0)]){if(_0x3bfe83['data']['eventID']===S[_0x5935e2(0x201)][_0x5935e2(0x512)]){this[_0x5935e2(0x33d)](_0x44952d,_0x3bfe83['data'])[_0x5935e2(0x423)](_0x293b18=>{const _0x50a9b0=_0x5935e2;this['_logService'][_0x50a9b0(0x55e)](_0x293b18),_0x45d99f();});return;}if(_0x3bfe83[_0x5935e2(0x2e1)][_0x5935e2(0x2bd)]===S[_0x5935e2(0x201)]['FETCH_MISSING']){const _0x3356ac=_0x3bfe83[_0x5935e2(0x2e1)];this['_fetchMissChangesets'](_0x3356ac)[_0x5935e2(0x1fb)](_0x2973fa=>{const _0x316e5a=_0x5935e2;_0x43ae26[_0x316e5a(0x4c4)]({'cmd':G[_0x316e5a(0x329)],'code':Et['OK'],'routeKey':_0x3356ac[_0x316e5a(0x2e1)][_0x316e5a(0x364)],'routeType':'','data':{'eventID':S[_0x316e5a(0x201)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x2973fa}}});})[_0x5935e2(0x423)](_0x4847f0=>{const _0x1e3d30=_0x5935e2;this[_0x1e3d30(0x4ce)][_0x1e3d30(0x55e)](_0x4847f0),_0x45d99f();});return;}}_0x4696e8[_0x5935e2(0x5bc)](_n(_0x3bfe83));},'close':()=>{const _0x47e9a1=_0x780fa;_0x4696e8[_0x47e9a1(0x61a)](),_0x42747f[_0x47e9a1(0x2da)]();}},_0x44952d;}async['_submitChangeset'](_0x2f28a6,_0x5ec7ec){const _0x21bd45=_0x38c3ff;var _0x5ea943,_0x2bdd39;const {unitType:_0x197c50,unitID:_0x2d0921,changeset:_0x1f3fff}=_0x5ec7ec['data'],_0x1b0eff={'unitID':_0x2d0921,'memberID':_0x2f28a6[_0x21bd45(0x3a6)],'type':_0x197c50,'changeset':S[_0x21bd45(0x2e0)](_0x1f3fff)},_0x115c0e=this['_configService'][_0x21bd45(0x556)](on),_0x46c451=this[_0x21bd45(0x1f5)][_0x21bd45(0x556)](te),_0x3548ca=Qn((_0x2bdd39=(_0x5ea943=_0x46c451==null?void 0x0:_0x46c451[_0x21bd45(0x4a5)])!=null?_0x5ea943:_0x115c0e)!=null?_0x2bdd39:Kn,_0x197c50,_0x2d0921);try{await this['_http']['post'](_0x3548ca,{'body':_0x1b0eff});}catch(_0x366115){throw this[_0x21bd45(0x4ce)][_0x21bd45(0x55e)](_0x21bd45(0x57c),_0x21bd45(0x272)),_0x366115;}}async['_fetchMissChangesets'](_0x3d27db){const _0x37d190=_0x38c3ff,{unitID:_0x1908b0,from:_0xcda849,to:_0x3c9f5e,unitType:_0x11ce1b}=_0x3d27db[_0x37d190(0x2e1)];return(await this[_0x37d190(0x2b8)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1908b0,'type':_0x11ce1b,'from':_0xcda849,'to':_0x3c9f5e}))['changesets'];}},exports['CollaborationSocketService']=Zn([we(0x0,a[_0x38c3ff(0x2af)](Z[_0x38c3ff(0x627)])),we(0x1,a[_0x38c3ff(0x2af)](Z['WebSocketService'])),we(0x2,a[_0x38c3ff(0x326)]),we(0x3,a[_0x38c3ff(0x626)]),we(0x4,S['ISnapshotServerService'])],exports[_0x38c3ff(0x476)]);const ei=_0x38c3ff(0x3ac);function ti(_0x44429f){const _0x57f8f7=_0x38c3ff;return JSON[_0x57f8f7(0x3e4)](_0x44429f)['length'];}class Tt{constructor(){const _0x3e6fe9=_0x38c3ff;I(this,_0x3e6fe9(0x4d3),new A['Subject']()),I(this,_0x3e6fe9(0x2bc),this[_0x3e6fe9(0x4d3)][_0x3e6fe9(0x4a7)]());}[_0x38c3ff(0x2b3)](_0x29df0a){const _0x484569=_0x38c3ff;this['_commentUpdate$'][_0x484569(0x4c4)](_0x29df0a);}}var ni=Object[_0x38c3ff(0x1c1)],ii=Object[_0x38c3ff(0x336)],si=(_0x3a5f30,_0x21e227,_0x278d22,_0x537e9)=>{const _0x66668d=_0x38c3ff;for(var _0x547f48=_0x537e9>0x1?void 0x0:_0x537e9?ii(_0x21e227,_0x278d22):_0x21e227,_0xd0153c=_0x3a5f30[_0x66668d(0x58c)]-0x1,_0xc78e;_0xd0153c>=0x0;_0xd0153c--)(_0xc78e=_0x3a5f30[_0xd0153c])&&(_0x547f48=(_0x537e9?_0xc78e(_0x21e227,_0x278d22,_0x547f48):_0xc78e(_0x547f48))||_0x547f48);return _0x537e9&&_0x547f48&&ni(_0x21e227,_0x278d22,_0x547f48),_0x547f48;},Ut=(_0x786100,_0x557882)=>(_0xb40312,_0x520838)=>_0x557882(_0xb40312,_0x520838,_0x786100);exports[_0x38c3ff(0x41e)]=class extends a[_0x38c3ff(0x1a8)]{constructor(_0xc2fcd2,_0x1a043d){const _0x407b22=_0x38c3ff;super(),I(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0xc2fcd2,this[_0x407b22(0x40a)]=_0x1a043d,this[_0x407b22(0x4bd)](a[_0x407b22(0x2c7)](A[_0x407b22(0x1d2)](this[_0x407b22(0x393)][_0x407b22(0x3bc)](a['UniverInstanceType'][_0x407b22(0x23d)])['pipe'](V['map'](_0xb36c29=>_0xb36c29[_0x407b22(0x2ee)]())),this[_0x407b22(0x393)][_0x407b22(0x3bc)](a[_0x407b22(0x27f)][_0x407b22(0x649)])[_0x407b22(0x57b)](V['map'](_0x4ceb8e=>_0x4ceb8e['getUnitId']())),this[_0x407b22(0x393)][_0x407b22(0x3bc)](a[_0x407b22(0x27f)][_0x407b22(0x4eb)])[_0x407b22(0x57b)](V[_0x407b22(0x4d7)](_0x62acf0=>_0x62acf0['getUnitId']())))['subscribe'](_0x21ee53=>this[_0x407b22(0x1a4)](_0x21ee53)))));}[_0x38c3ff(0x3ff)](_0x588f32){const _0x58f855=_0x38c3ff;this[_0x58f855(0x40a)][_0x58f855(0x3ff)](_0x588f32);}[_0x38c3ff(0x35a)](){const _0x4b30cb=_0x38c3ff;return this[_0x4b30cb(0x40a)][_0x4b30cb(0x35a)]();}['updateMember'](_0x8d630d,_0x3099a4){const _0x260fcd=_0x38c3ff;let _0x154023=this[_0x260fcd(0x47e)]['get'](_0x8d630d);_0x154023||(_0x154023=new ri(),this[_0x260fcd(0x47e)][_0x260fcd(0x3e8)](_0x8d630d,_0x154023)),_0x154023['updateMember'](_0x3099a4);}['removeMember'](_0x23173e,_0x46dc5d){const _0x40fa95=_0x38c3ff,_0x16aff3=this[_0x40fa95(0x47e)][_0x40fa95(0x585)](_0x23173e);_0x16aff3&&_0x16aff3['removeMember'](_0x46dc5d);}[_0x38c3ff(0x308)](_0x2c5860){const _0x2fef0c=_0x38c3ff;return this[_0x2fef0c(0x47e)][_0x2fef0c(0x585)](_0x2c5860);}[_0x38c3ff(0x2ca)](_0x31c73e,_0x44de4b){const _0x330e60=_0x38c3ff,_0x245ba=this['_roomMembers'][_0x330e60(0x585)](_0x31c73e);if(_0x245ba)return _0x245ba['getMember'](_0x44de4b);}[_0x38c3ff(0x1a4)](_0x563ace){const _0x1b100c=_0x38c3ff,_0x4a04da=this['_roomMembers'][_0x1b100c(0x585)](_0x563ace);_0x4a04da&&(_0x4a04da['dispose'](),this['_roomMembers'][_0x1b100c(0x1d0)](_0x563ace));}[_0x38c3ff(0x2da)](){const _0x43fd39=_0x38c3ff;this['_roomMembers']['forEach'](_0x2e461=>_0x2e461['dispose']()),this[_0x43fd39(0x47e)][_0x43fd39(0x372)]();}},exports[_0x38c3ff(0x41e)]=si([Ut(0x0,a[_0x38c3ff(0x2a8)]),Ut(0x1,a[_0x38c3ff(0x2af)](a['UserManagerService']))],exports[_0x38c3ff(0x41e)]);class ri extends a['Disposable']{constructor(){const _0x4a9074=_0x38c3ff;super(...arguments),I(this,_0x4a9074(0x281),new Map());}[_0x38c3ff(0x2da)](){const _0x30161c=_0x38c3ff;this[_0x30161c(0x281)]['clear']();}[_0x38c3ff(0x4f9)](_0x58e74b){const _0x351fbe=_0x38c3ff;this[_0x351fbe(0x281)]['set'](_0x58e74b['memberID'],_0x58e74b);}['removeMember'](_0x361803){const _0x119995=_0x38c3ff;this[_0x119995(0x281)]['delete'](_0x361803);}[_0x38c3ff(0x2ca)](_0x2d7e25){const _0x3bc75c=_0x38c3ff;return this[_0x3bc75c(0x281)][_0x3bc75c(0x585)](_0x2d7e25);}[_0x38c3ff(0x29b)](){const _0x529a26=_0x38c3ff;return Array['from'](this[_0x529a26(0x281)][_0x529a26(0x1f7)]());}}var oi=Object[_0x38c3ff(0x1c1)],ai=Object['getOwnPropertyDescriptor'],ci=(_0x52dcd8,_0x60106c,_0x12f702,_0x347850)=>{for(var _0x261157=_0x347850>0x1?void 0x0:_0x347850?ai(_0x60106c,_0x12f702):_0x60106c,_0x53329b=_0x52dcd8['length']-0x1,_0x272f50;_0x53329b>=0x0;_0x53329b--)(_0x272f50=_0x52dcd8[_0x53329b])&&(_0x261157=(_0x347850?_0x272f50(_0x60106c,_0x12f702,_0x261157):_0x272f50(_0x261157))||_0x261157);return _0x347850&&_0x261157&&oi(_0x60106c,_0x12f702,_0x261157),_0x261157;},de=(_0x3ac8fb,_0x4786a9)=>(_0x28c963,_0x419a06)=>_0x4786a9(_0x28c963,_0x419a06,_0x3ac8fb),se=(_0x18d598=>(_0x18d598[_0x18d598[_0x38c3ff(0x340)]=0x0]=_0x38c3ff(0x340),_0x18d598[_0x18d598[_0x38c3ff(0x631)]=0x1]=_0x38c3ff(0x631),_0x18d598[_0x18d598['OFFLINE']=0x2]='OFFLINE',_0x18d598[_0x18d598[_0x38c3ff(0x1b4)]=0x3]=_0x38c3ff(0x1b4),_0x18d598))(se||{});exports[_0x38c3ff(0x4d6)]=class extends a['RxDisposable']{constructor(_0x1e7608,_0x22facd,_0x4919c7,_0x4af7b8,_0x4a6e6e,_0x211c45,_0xb5ccc7,_0x4db9de,_0x9ba3dd,_0x57e2da){const _0x144566=_0x38c3ff;super(),I(this,_0x144566(0x640),new A[(_0x144566(0x4fc))](0x0)),I(this,'sessionStatus$',this['_sessionStatus$'][_0x144566(0x4a7)]()),I(this,_0x144566(0x244),new A[(_0x144566(0x3cf))]()),I(this,_0x144566(0x604),this[_0x144566(0x244)][_0x144566(0x4a7)]()),I(this,_0x144566(0x4ff)),I(this,_0x144566(0x34d)),I(this,_0x144566(0x3e5)),I(this,'_shouldReportTelemetry',!0x1),I(this,_0x144566(0x360),null),(this['_unitID']=_0x1e7608,this[_0x144566(0x4ce)]=_0x4919c7,this[_0x144566(0x250)]=_0x4af7b8,this['_messageService']=_0x4a6e6e,this[_0x144566(0x1f5)]=_0x211c45,this[_0x144566(0x203)]=_0xb5ccc7,this['_memberService']=_0x4db9de,this['_commentService']=_0x9ba3dd,this['_telemetryService']=_0x57e2da,this[_0x144566(0x2b2)]=!!this['_telemetryService'],_0x22facd[_0x144566(0x57b)](A[_0x144566(0x3fb)](this['dispose$']))['subscribe'](_0x1abc57=>{const _0x2c80dc=_0x144566;var _0x27590a;typeof _0x1abc57>'u'||(this[_0x2c80dc(0x4ff)]=_0x1abc57,_0x1abc57?(this[_0x2c80dc(0x415)](_0x1abc57),this[_0x2c80dc(0x34d)]=_0x1abc57[_0x2c80dc(0x646)][_0x2c80dc(0x47b)](_0x1eb4b5=>{const _0x28927c=_0x2c80dc;_0x1eb4b5[_0x28927c(0x5eb)]===this[_0x28927c(0x584)]&&this['_onCombEvent'](_0x1eb4b5);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x2c80dc(0x640)][_0x2c80dc(0x4c4)](0x2),(_0x27590a=this[_0x2c80dc(0x34d)])==null||_0x27590a['unsubscribe'](),this['_socketMessageSubscription']=null));}),this[_0x144566(0x4bd)](this[_0x144566(0x250)][_0x144566(0x1b8)](()=>{const _0x57ad6a=_0x144566;var _0xf6ed15;(_0xf6ed15=this[_0x57ad6a(0x4ff)])==null||_0xf6ed15[_0x57ad6a(0x5bc)]({'cmd':G[_0x57ad6a(0x407)],'data':{'roomID':this[_0x57ad6a(0x584)]}});})));}get[_0x38c3ff(0x30c)](){const _0x3b81ff=_0x38c3ff;return this['_sessionStatus$'][_0x3b81ff(0x26d)]();}['getMemberID'](){const _0x5b845c=_0x38c3ff;var _0x2c9f73,_0x4ad0cd;return(_0x4ad0cd=(_0x2c9f73=this[_0x5b845c(0x4ff)])==null?void 0x0:_0x2c9f73[_0x5b845c(0x3a6)])!=null?_0x4ad0cd:null;}[_0x38c3ff(0x2da)](){const _0xe2a648=_0x38c3ff;super[_0xe2a648(0x2da)](),this[_0xe2a648(0x5ff)][_0xe2a648(0x4c4)](),this[_0xe2a648(0x5ff)]['complete']();}['close'](){const _0x245761=_0x38c3ff;var _0x26b6a3,_0x5bb552;this[_0x245761(0x504)](),(_0x26b6a3=this[_0x245761(0x4ff)])==null||_0x26b6a3[_0x245761(0x5bc)]({'cmd':G['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x5bb552=this[_0x245761(0x4ff)])==null||_0x5bb552[_0x245761(0x61a)](),this[_0x245761(0x244)][_0x245761(0x40d)](),this[_0x245761(0x640)][_0x245761(0x40d)](),this[_0x245761(0x2da)]();}[_0x38c3ff(0x566)](_0x218fd3){const _0x32803a=_0x38c3ff;_0x218fd3[_0x32803a(0x4fa)]===G[_0x32803a(0x344)]?this[_0x32803a(0x4d0)](_0x218fd3):_0x218fd3[_0x32803a(0x4fa)]===G[_0x32803a(0x329)]&&this['_onRecvEvent'](_0x218fd3);}[_0x38c3ff(0x415)](_0x415802){const _0x3ca167=_0x38c3ff;this[_0x3ca167(0x640)][_0x3ca167(0x4c4)](0x1),_0x415802[_0x3ca167(0x5bc)]({'cmd':G[_0x3ca167(0x344)],'routeKey':this[_0x3ca167(0x584)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3ca167(0x584)]}]}});}[_0x38c3ff(0x4d0)](_0x5029c0){const _0x4a0755=_0x38c3ff;var _0x27aac5;if(_0x5029c0[_0x4a0755(0x3b2)]===Et[_0x4a0755(0x498)]){this[_0x4a0755(0x385)][_0x4a0755(0x37c)]({'type':ge[_0x4a0755(0x312)][_0x4a0755(0x42b)],'content':this[_0x4a0755(0x203)]['t']('session.room-full')}),this[_0x4a0755(0x640)][_0x4a0755(0x4c4)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x35d72c=(_0x27aac5=_0x5029c0[_0x4a0755(0x2e1)][_0x4a0755(0x34a)][this[_0x4a0755(0x584)]])==null?void 0x0:_0x27aac5[_0x4a0755(0x254)];_0x35d72c&&_0x35d72c['forEach'](_0x56bcb1=>this[_0x4a0755(0x1aa)][_0x4a0755(0x4f9)](this[_0x4a0755(0x584)],_0x56bcb1));}['_onRecvEvent'](_0x315742){const _0x39b906=_0x38c3ff;try{const _0x20d330=_0x315742[_0x39b906(0x2e1)];switch(_0x20d330['eventID']){case S[_0x39b906(0x201)][_0x39b906(0x307)]:this['_onUserJoin'](_0x20d330),this[_0x39b906(0x244)][_0x39b906(0x4c4)](_0x20d330);break;case S[_0x39b906(0x201)][_0x39b906(0x5e0)]:this[_0x39b906(0x3a1)](_0x20d330),this['_event$'][_0x39b906(0x4c4)](_0x20d330);break;case S[_0x39b906(0x201)]['CHANGESET_ACK']:case S['CollaborationEvent'][_0x39b906(0x57e)]:this[_0x39b906(0x64f)](),this[_0x39b906(0x1f9)](),this[_0x39b906(0x244)]['next'](_0x20d330);break;case S[_0x39b906(0x201)][_0x39b906(0x369)]:this[_0x39b906(0x4ce)][_0x39b906(0x55e)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x20d330)),this[_0x39b906(0x244)][_0x39b906(0x4c4)](_0x20d330);break;case S[_0x39b906(0x201)][_0x39b906(0x5c6)]:this[_0x39b906(0x43d)]['onCommentUpdate'](_0x20d330['data']),this[_0x39b906(0x244)][_0x39b906(0x4c4)](_0x20d330);break;default:this[_0x39b906(0x244)]['next'](_0x20d330);}}catch(_0x2910d0){this[_0x39b906(0x4ce)]['error'](_0x2910d0,_0x315742);}}[_0x38c3ff(0x19c)](_0xdf0628){const _0x54ceec=_0x38c3ff;this['_memberService'][_0x54ceec(0x4f9)](this[_0x54ceec(0x584)],_0xdf0628['data']);}['_onUserLeave'](_0x421954){const _0x7bd6fc=_0x38c3ff;this['_memberService'][_0x7bd6fc(0x2ea)](this[_0x7bd6fc(0x584)],_0x421954['data'][_0x7bd6fc(0x3a6)]);}async[_0x38c3ff(0x5bc)](_0x3db05d,_0x2f4ed9){const _0x17f917=_0x38c3ff;if(this[_0x17f917(0x30c)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x3db05d['eventID']===S[_0x17f917(0x201)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x17f917(0x4dd)](_0x3db05d)),this[_0x17f917(0x4ff)]['send']({'cmd':G[_0x17f917(0x2b0)],'routeKey':_0x2f4ed9,'routeType':'','data':_0x3db05d});}catch(_0x52162b){this[_0x17f917(0x4ce)][_0x17f917(0x55e)](_0x52162b);}}['_scheduleCollaborationTimeoutTimer'](){const _0xbb2ac3=_0x38c3ff;var _0x5ec5e1;this[_0xbb2ac3(0x3e5)]=window[_0xbb2ac3(0x3bb)](()=>{const _0x108ded=_0xbb2ac3;this[_0x108ded(0x3e5)]=null,this[_0x108ded(0x385)][_0x108ded(0x37c)]({'type':ge[_0x108ded(0x312)]['Error'],'content':this[_0x108ded(0x203)]['t']('session.collaboration-timeout')});},(_0x5ec5e1=this[_0xbb2ac3(0x1f5)][_0xbb2ac3(0x556)](Ct))!=null?_0x5ec5e1:nn);}[_0x38c3ff(0x1f9)](){const _0x56a63a=_0x38c3ff;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x56a63a(0x3e5)]),this[_0x56a63a(0x3e5)]=null);}[_0x38c3ff(0x4dd)](_0x52e8c4){const _0x5696e4=_0x38c3ff;if(!this[_0x5696e4(0x2b2)])return;const {data:_0x3be723}=_0x52e8c4,{unitID:_0x1ac791,changeset:_0x577dae}=_0x3be723,{mutations:_0x48aec8,type:_0x515eb1}=_0x577dae;this[_0x5696e4(0x360)]={'unitId':_0x1ac791,'type':_0x515eb1,'startTime':performance[_0x5696e4(0x2eb)](),'stopTime':0x0,'duration':0x0,'size':ti(_0x48aec8)};}[_0x38c3ff(0x64f)](){const _0x4e6671=_0x38c3ff;if(this[_0x4e6671(0x2b2)]){if(!this[_0x4e6671(0x360)]){this[_0x4e6671(0x4ce)][_0x4e6671(0x55e)](_0x4e6671(0x57c),_0x4e6671(0x2e2));return;}this[_0x4e6671(0x360)][_0x4e6671(0x359)]=performance[_0x4e6671(0x2eb)](),this[_0x4e6671(0x360)]['duration']=this[_0x4e6671(0x360)][_0x4e6671(0x359)]-this[_0x4e6671(0x360)][_0x4e6671(0x5a0)],this['_telemetryService'][_0x4e6671(0x2f1)](ei,this[_0x4e6671(0x360)]),this[_0x4e6671(0x360)]=null;}}[_0x38c3ff(0x504)](){const _0x29371a=_0x38c3ff;this[_0x29371a(0x360)]=null;}},exports['CollaborationSession']=ci([de(0x2,a[_0x38c3ff(0x626)]),de(0x3,ee['IBeforeCloseService']),de(0x4,ee[_0x38c3ff(0x5d6)]),de(0x5,a[_0x38c3ff(0x326)]),de(0x6,a['Inject'](a[_0x38c3ff(0x222)])),de(0x7,a[_0x38c3ff(0x2af)](exports[_0x38c3ff(0x41e)])),de(0x8,a[_0x38c3ff(0x2af)](Tt)),de(0x9,a[_0x38c3ff(0x5e2)](jn[_0x38c3ff(0x529)]))],exports[_0x38c3ff(0x4d6)]);var li=Object[_0x38c3ff(0x1c1)],hi=Object[_0x38c3ff(0x336)],_i=(_0x57aff4,_0x40a828,_0x1757f4,_0x218130)=>{const _0x5ecbff=_0x38c3ff;for(var _0x4f5b9e=_0x218130>0x1?void 0x0:_0x218130?hi(_0x40a828,_0x1757f4):_0x40a828,_0x5e21b9=_0x57aff4[_0x5ecbff(0x58c)]-0x1,_0x3cf1a9;_0x5e21b9>=0x0;_0x5e21b9--)(_0x3cf1a9=_0x57aff4[_0x5e21b9])&&(_0x4f5b9e=(_0x218130?_0x3cf1a9(_0x40a828,_0x1757f4,_0x4f5b9e):_0x3cf1a9(_0x4f5b9e))||_0x4f5b9e);return _0x218130&&_0x4f5b9e&&li(_0x40a828,_0x1757f4,_0x4f5b9e),_0x4f5b9e;},Ee=(_0x331858,_0x381362)=>(_0x43eda9,_0x5d8dc6)=>_0x381362(_0x43eda9,_0x5d8dc6,_0x331858);exports[_0x38c3ff(0x1f6)]=class extends a[_0x38c3ff(0x1a8)]{constructor(_0x4ec5d8,_0x8cb134,_0x4e60b9,_0x45047e,_0x8a20d9,_0x469ffb){const _0x226707=_0x38c3ff;super(),I(this,_0x226707(0x581),new A['BehaviorSubject'](void 0x0)),I(this,_0x226707(0x31d),this['_socket$'][_0x226707(0x4a7)]()),I(this,'_candidateSocket',null),I(this,'_sessions',new Map()),I(this,_0x226707(0x586),new A[(_0x226707(0x4fc))](se[_0x226707(0x340)])),I(this,_0x226707(0x5e4),this[_0x226707(0x586)][_0x226707(0x4a7)]()),I(this,'_socketReady',!0x1),I(this,_0x226707(0x26a)),I(this,_0x226707(0x43a),0x0),I(this,_0x226707(0x20d)),I(this,'_timeoutTimer'),(this[_0x226707(0x3b6)]=_0x4ec5d8,this[_0x226707(0x203)]=_0x8cb134,this[_0x226707(0x385)]=_0x4e60b9,this[_0x226707(0x4ce)]=_0x45047e,this['_configService']=_0x8a20d9,this['_socketService']=_0x469ffb,this[_0x226707(0x1c3)]());}get[_0x38c3ff(0x4ff)](){const _0x19003a=_0x38c3ff;return this['_socket$'][_0x19003a(0x26d)]();}[_0x38c3ff(0x1c3)](){const _0x240e8e=_0x38c3ff;this['_listenToOfflineEvent'](),this[_0x240e8e(0x1e5)]();}[_0x38c3ff(0x2da)](){const _0x4508b6=_0x38c3ff;super[_0x4508b6(0x2da)](),this[_0x4508b6(0x293)][_0x4508b6(0x2d8)](_0x56086a=>_0x56086a['dispose']()),this['_sessions'][_0x4508b6(0x372)](),this[_0x4508b6(0x586)][_0x4508b6(0x40d)]();}async[_0x38c3ff(0x2aa)](_0x1fef1a){const _0x1378fb=_0x38c3ff;if(this['_sessions'][_0x1378fb(0x599)](_0x1fef1a))return this['_sessions']['get'](_0x1fef1a);this['_tryEnsureSocket']();const _0xccdec4=this['_injector']['createInstance'](exports['CollaborationSession'],_0x1fef1a,this[_0x1378fb(0x581)]['asObservable']());return this[_0x1378fb(0x293)][_0x1378fb(0x3e8)](_0x1fef1a,_0xccdec4),_0xccdec4;}[_0x38c3ff(0x327)](_0x5e7adb){const _0x2bae40=_0x38c3ff;var _0x823e04;const _0x53692e=this[_0x2bae40(0x293)][_0x2bae40(0x585)](_0x5e7adb);_0x53692e&&(this['_sessions']['delete'](_0x5e7adb),_0x53692e[_0x2bae40(0x61a)]()),this[_0x2bae40(0x293)][_0x2bae40(0x311)]||(_0x823e04=this['_socket'])==null||_0x823e04[_0x2bae40(0x61a)]();}['reconnect'](){const _0x5d1258=_0x38c3ff;this[_0x5d1258(0x43a)]=0x0,this[_0x5d1258(0x26a)]!=null&&(clearTimeout(this[_0x5d1258(0x26a)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}[_0x38c3ff(0x1fd)](){const _0x1df621=_0x38c3ff;var _0x19c5f8,_0x14b7ec;const _0x2d4f6d=this[_0x1df621(0x1f5)][_0x1df621(0x556)](en),_0x215237=this[_0x1df621(0x1f5)]['getConfig'](te),_0x1c1db4=(_0x14b7ec=(_0x19c5f8=_0x215237==null?void 0x0:_0x215237[_0x1df621(0x32c)])!=null?_0x19c5f8:_0x2d4f6d)!=null?_0x14b7ec:Wn,_0x240834=this['_socketService']['createSocket'](_0x1c1db4);return this['_candidateSocket']=_0x240834,_0x240834;}[_0x38c3ff(0x217)](){const _0xd9e6c6=_0x38c3ff;var _0x268f49,_0x533d81;try{const _0x660723=(_0x533d81=(_0x268f49=this[_0xd9e6c6(0x4ff)])!=null?_0x268f49:this['_candidateSocket'])!=null?_0x533d81:this[_0xd9e6c6(0x1fd)]();if(_0x660723){const _0x3f13bd=_0x660723[_0xd9e6c6(0x5bc)];_0x660723['send']=_0xb7f06c=>(this['_rescheduleHeartbeat'](),_0x3f13bd[_0xd9e6c6(0x21e)](_0x660723,[_0xb7f06c])),_0x660723[_0xd9e6c6(0x646)][_0xd9e6c6(0x47b)](_0x5f4386=>this[_0xd9e6c6(0x197)](_0x660723,_0x5f4386)),_0x660723[_0xd9e6c6(0x659)][_0xd9e6c6(0x57b)](V[_0xd9e6c6(0x3f1)](0x1))[_0xd9e6c6(0x47b)](_0x24edf4=>this[_0xd9e6c6(0x4ce)][_0xd9e6c6(0x55e)](_0xd9e6c6(0x389),_0x24edf4)),_0x660723[_0xd9e6c6(0x24b)][_0xd9e6c6(0x57b)](V[_0xd9e6c6(0x3f1)](0x1))['subscribe'](()=>{const _0x23294e=_0xd9e6c6;this[_0x23294e(0x1a5)](_0x660723);}),_0x660723[_0xd9e6c6(0x1ed)]['pipe'](V['take'](0x1))['subscribe'](_0x3882cd=>{const _0x4fe497=_0xd9e6c6;this[_0x4fe497(0x4ce)]['debug'](_0x4fe497(0x651),_0x4fe497(0x350),_0x3882cd),this[_0x4fe497(0x528)]();});}}catch(_0x1b1349){this['_logService'][_0xd9e6c6(0x55e)](_0x1b1349),this[_0xd9e6c6(0x528)]();}}[_0x38c3ff(0x1a5)](_0x398869){const _0x54e209=_0x38c3ff;this['_logService'][_0x54e209(0x405)](_0x54e209(0x651),_0x54e209(0x55b)),_0x398869[_0x54e209(0x5bc)]({'cmd':G[_0x54e209(0x2a5)]}),this[_0x54e209(0x376)]();}[_0x38c3ff(0x2c8)](){const _0x399d38=_0x38c3ff;window[_0x399d38(0x657)]('offline',()=>this[_0x399d38(0x206)]());}['_onOffline'](){const _0x1bc277=_0x38c3ff;this[_0x1bc277(0x48e)]=!0x1,this['_candidateSocket']=null,this[_0x1bc277(0x586)][_0x1bc277(0x4c4)](se['OFFLINE']),this[_0x1bc277(0x581)]['next'](null),this[_0x1bc277(0x1d4)](),this[_0x1bc277(0x358)]();}[_0x38c3ff(0x528)](){const _0x3b5055=_0x38c3ff;var _0x130b46;this[_0x3b5055(0x206)](),this[_0x3b5055(0x43a)]<((_0x130b46=this[_0x3b5055(0x1f5)]['getConfig'](sn))!=null?_0x130b46:Gn)?(this[_0x3b5055(0x385)][_0x3b5055(0x37c)]({'key':_0x3b5055(0x618),'type':ge[_0x3b5055(0x312)][_0x3b5055(0x42b)],'content':this[_0x3b5055(0x203)]['t'](_0x3b5055(0x491))}),this['_tryReconnect']()):this[_0x3b5055(0x385)][_0x3b5055(0x37c)]({'key':_0x3b5055(0x618),'type':ge[_0x3b5055(0x312)][_0x3b5055(0x516)],'content':this['_localeService']['t'](_0x3b5055(0x24f))});}[_0x38c3ff(0x1e5)](){const _0x334bc5=_0x38c3ff,_0x570cda=()=>{const _0x33118e=_0x4762;this[_0x33118e(0x4ff)]||this['reconnect']();},_0x906a4=()=>{const _0x200de7=_0x4762;this[_0x200de7(0x4ff)]||document[_0x200de7(0x478)]===_0x200de7(0x633)||this[_0x200de7(0x64e)]();};window[_0x334bc5(0x657)](_0x334bc5(0x56f),_0x570cda),document[_0x334bc5(0x657)](_0x334bc5(0x5dd),_0x906a4);}['_tryReconnect'](){const _0x3e2b20=_0x38c3ff;var _0x545e74;const _0xd6f021=this[_0x3e2b20(0x43a)],_0x4f3fb3=this['_configService']['getConfig'](te),_0x66a743=_0xd6f021===0x0?0x0:((_0x545e74=_0x4f3fb3==null?void 0x0:_0x4f3fb3['retryConnectingInterval'])!=null?_0x545e74:Vn)*0x2**_0xd6f021;this[_0x3e2b20(0x26a)]=window[_0x3e2b20(0x3bb)](()=>{const _0x32449f=_0x3e2b20;clearTimeout(this[_0x32449f(0x26a)]),this[_0x32449f(0x26a)]=null,this['_tryEnsureSocket']();},_0x66a743),this[_0x3e2b20(0x43a)]+=0x1;}[_0x38c3ff(0x197)](_0x2f6786,_0x433925){const _0x1a74d6=_0x38c3ff,{cmd:_0x59a81b}=_0x433925;_0x59a81b===G[_0x1a74d6(0x2a5)]&&!this[_0x1a74d6(0x48e)]&&(_0x2f6786[_0x1a74d6(0x3a6)]=_0x433925[_0x1a74d6(0x2e1)][_0x1a74d6(0x3a6)],this[_0x1a74d6(0x581)]['next'](_0x2f6786),this['_status$'][_0x1a74d6(0x4c4)](se[_0x1a74d6(0x1b4)]),this[_0x1a74d6(0x48e)]=!0x0,this['_candidateSocket']=null),_0x59a81b===G[_0x1a74d6(0x481)]&&this[_0x1a74d6(0x1d4)](),this[_0x1a74d6(0x376)]();}[_0x38c3ff(0x376)](){const _0x102574=_0x38c3ff;var _0x4b2ea8;this[_0x102574(0x358)](),this[_0x102574(0x20d)]=window[_0x102574(0x3bb)](()=>this[_0x102574(0x39e)](),(_0x4b2ea8=this[_0x102574(0x1f5)]['getConfig'](tn))!=null?_0x4b2ea8:Fn);}['_sendHeartbeat'](){const _0x91cbb9=_0x38c3ff;this['_socket'][_0x91cbb9(0x5bc)]({'cmd':G['HEARTBEAT']}),this[_0x91cbb9(0x285)]();}[_0x38c3ff(0x285)](){const _0x3014b1=_0x38c3ff;var _0x47e003;this[_0x3014b1(0x209)]=window[_0x3014b1(0x3bb)](()=>this[_0x3014b1(0x528)](),(_0x47e003=this[_0x3014b1(0x1f5)][_0x3014b1(0x556)](Ct))!=null?_0x47e003:nn);}['_clearHeartbeatTimer'](){const _0x4d5638=_0x38c3ff;this[_0x4d5638(0x20d)]!=null&&(clearTimeout(this[_0x4d5638(0x20d)]),this[_0x4d5638(0x20d)]=null);}[_0x38c3ff(0x1d4)](){const _0x46f125=_0x38c3ff;this[_0x46f125(0x209)]!=null&&(clearTimeout(this[_0x46f125(0x209)]),this[_0x46f125(0x209)]=null);}},exports[_0x38c3ff(0x1f6)]=_i([Ee(0x0,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),Ee(0x1,a['Inject'](a['LocaleService'])),Ee(0x2,ee[_0x38c3ff(0x5d6)]),Ee(0x3,a[_0x38c3ff(0x626)]),Ee(0x4,a[_0x38c3ff(0x326)]),Ee(0x5,bt)],exports[_0x38c3ff(0x1f6)]);const Y=[];for(let s=0x0;s<0x100;++s)Y[_0x38c3ff(0x473)]((s+0x100)[_0x38c3ff(0x459)](0x10)[_0x38c3ff(0x56a)](0x1));function ui(_0x1726be,_0x3db6fa=0x0){const _0x3be25e=_0x38c3ff;return(Y[_0x1726be[_0x3db6fa+0x0]]+Y[_0x1726be[_0x3db6fa+0x1]]+Y[_0x1726be[_0x3db6fa+0x2]]+Y[_0x1726be[_0x3db6fa+0x3]]+'-'+Y[_0x1726be[_0x3db6fa+0x4]]+Y[_0x1726be[_0x3db6fa+0x5]]+'-'+Y[_0x1726be[_0x3db6fa+0x6]]+Y[_0x1726be[_0x3db6fa+0x7]]+'-'+Y[_0x1726be[_0x3db6fa+0x8]]+Y[_0x1726be[_0x3db6fa+0x9]]+'-'+Y[_0x1726be[_0x3db6fa+0xa]]+Y[_0x1726be[_0x3db6fa+0xb]]+Y[_0x1726be[_0x3db6fa+0xc]]+Y[_0x1726be[_0x3db6fa+0xd]]+Y[_0x1726be[_0x3db6fa+0xe]]+Y[_0x1726be[_0x3db6fa+0xf]])[_0x3be25e(0x547)]();}let Je;const di=new Uint8Array(0x10);function fi(){const _0x721256=_0x38c3ff;if(!Je){if(typeof crypto>'u'||!crypto[_0x721256(0x5d0)])throw new Error(_0x721256(0x3fe));Je=crypto[_0x721256(0x5d0)][_0x721256(0x198)](crypto);}return Je(di);}const vi=typeof crypto<'u'&&crypto[_0x38c3ff(0x63e)]&&crypto['randomUUID'][_0x38c3ff(0x198)](crypto),Mt={'randomUUID':vi};function mi(_0x3217ee,_0x16435c,_0x46f563){const _0x3d520c=_0x38c3ff;if(Mt[_0x3d520c(0x63e)]&&!_0x16435c&&!_0x3217ee)return Mt[_0x3d520c(0x63e)]();_0x3217ee=_0x3217ee||{};const _0x166ce4=_0x3217ee['random']||(_0x3217ee[_0x3d520c(0x56e)]||fi)();return _0x166ce4[0x6]=_0x166ce4[0x6]&0xf|0x40,_0x166ce4[0x8]=_0x166ce4[0x8]&0x3f|0x80,ui(_0x166ce4);}var Si=Object[_0x38c3ff(0x1c1)],pi=Object['getOwnPropertyDescriptor'],gi=(_0x4b2cea,_0x1ee1c6,_0xc72259,_0x51efa4)=>{const _0x2e00a0=_0x38c3ff;for(var _0x4db7b5=_0x51efa4>0x1?void 0x0:_0x51efa4?pi(_0x1ee1c6,_0xc72259):_0x1ee1c6,_0x3f082b=_0x4b2cea[_0x2e00a0(0x58c)]-0x1,_0x1dd39c;_0x3f082b>=0x0;_0x3f082b--)(_0x1dd39c=_0x4b2cea[_0x3f082b])&&(_0x4db7b5=(_0x51efa4?_0x1dd39c(_0x1ee1c6,_0xc72259,_0x4db7b5):_0x1dd39c(_0x4db7b5))||_0x4db7b5);return _0x51efa4&&_0x4db7b5&&Si(_0x1ee1c6,_0xc72259,_0x4db7b5),_0x4db7b5;},Ze=(_0x23d700,_0x4b3cea)=>(_0x58b5a1,_0x2a0478)=>_0x4b3cea(_0x58b5a1,_0x2a0478,_0x23d700);let Be=class{constructor(_0x2df754,_0x28a72d,_0x2548bd){const _0x174d3a=_0x38c3ff;this[_0x174d3a(0x3b6)]=_0x2df754,this[_0x174d3a(0x267)]=_0x28a72d,this['_renderManagerService']=_0x2548bd;}[_0x38c3ff(0x356)](_0x32e652){const _0x14cc56=_0x38c3ff;this[_0x14cc56(0x2b1)](_0x32e652),this['_transformPreviousActiveRange'](_0x32e652);}[_0x38c3ff(0x5a7)](_0x4f875a){const _0x387829=_0x38c3ff,{unitID:_0x5c538f}=_0x4f875a,_0x110008=this[_0x387829(0x286)]['getRenderById'](_0x5c538f)['with'](J[_0x387829(0x1d1)]),{redoCache:_0x3489d4}=_0x110008['getUndoRedoMutationParamsCache']();if(_0x3489d4[_0x387829(0x58c)]===0x0)return _0x4f875a;let _0x3008b4=a[_0x387829(0x24a)][_0x387829(0x25b)](_0x4f875a[_0x387829(0x1cd)][0x0]);for(let _0x526001=0x0;_0x526001<_0x3489d4[_0x387829(0x58c)];_0x526001++){const _0x3a4f2b={'id':_0x387829(0x354),'params':{..._0x3489d4[_0x526001]}},_0x35c7d2=this[_0x387829(0x267)]['transformMutation'](_0x3008b4,_0x3a4f2b,!0x1);if(S['isTransformMutationFailure'](_0x35c7d2))throw _0x35c7d2[_0x387829(0x55e)];_0x3008b4=_0x35c7d2[_0x387829(0x30e)];}return{...a[_0x387829(0x24a)][_0x387829(0x25b)](_0x4f875a),'mutations':[_0x3008b4]};}['_transformUndoRedoStack'](_0x42fd48){const _0x2a6c87=_0x38c3ff,{unitID:_0x42dec6}=_0x42fd48,_0x126757=this['_renderManagerService']['getRenderById'](_0x42dec6)['with'](J['DocIMEInputManagerService']),{undoCache:_0x1a5296,redoCache:_0x698a9e}=_0x126757['getUndoRedoMutationParamsCache']();if(_0x1a5296['length']===0x0||_0x698a9e[_0x2a6c87(0x58c)]===0x0)return;const _0x5deb21=[],_0x5cdd09=[];let _0x42d6fa=a['Tools'][_0x2a6c87(0x25b)](_0x42fd48[_0x2a6c87(0x1cd)][0x0]),_0x55fc60=a[_0x2a6c87(0x24a)][_0x2a6c87(0x25b)](_0x42fd48['mutations'][0x0]);for(let _0x353fd6=_0x1a5296[_0x2a6c87(0x58c)]-0x1;_0x353fd6>=0x0;_0x353fd6--){const _0x46796e={'id':'doc.mutation.rich-text-editing','params':{..._0x1a5296[_0x353fd6]}},_0x56582d={'id':_0x2a6c87(0x354),'params':{..._0x698a9e[_0x353fd6]}},_0x30712e=this[_0x2a6c87(0x267)]['transformMutation'](_0x42d6fa,_0x46796e,!0x1),_0x55cc0f=this[_0x2a6c87(0x267)]['transformMutation'](_0x55fc60,_0x56582d,!0x1);if(S[_0x2a6c87(0x446)](_0x30712e))throw _0x30712e[_0x2a6c87(0x55e)];if(S[_0x2a6c87(0x446)](_0x55cc0f))throw _0x55cc0f['error'];_0x5deb21[_0x2a6c87(0x5a5)](_0x30712e[_0x2a6c87(0x41f)]['params']),_0x5cdd09[_0x2a6c87(0x5a5)](_0x55cc0f[_0x2a6c87(0x41f)][_0x2a6c87(0x595)]),_0x42d6fa=_0x30712e['m1Prime'],_0x55fc60=_0x55cc0f['m1Prime'];}_0x126757['setUndoRedoMutationParamsCache']({'undoCache':_0x5deb21,'redoCache':_0x5cdd09});}[_0x38c3ff(0x624)](_0x4e7851){const _0x432c29=_0x38c3ff,{unitID:_0x43ed26}=_0x4e7851,_0xa5ae3b=this[_0x432c29(0x286)][_0x432c29(0x5f5)](_0x43ed26)[_0x432c29(0x438)](J[_0x432c29(0x1d1)]),_0x4d942e=_0xa5ae3b[_0x432c29(0x5df)]();if(_0x4d942e==null)return;const _0x10a420=[{'id':_0x432c29(0x354),'params':{'unitId':_0x4e7851[_0x432c29(0x364)],'actions':null,'textRanges':[_0x4d942e]}}],_0x558bfb=this['_transformService'][_0x432c29(0x4be)](_0x4e7851,_0x10a420);if(!S[_0x432c29(0x38b)](_0x558bfb))throw _0x558bfb[_0x432c29(0x55e)];const _0x47f5e8=_0x558bfb[_0x432c29(0x41f)][0x0]['params'][_0x432c29(0x4fd)];Array[_0x432c29(0x32a)](_0x47f5e8)&&_0x47f5e8[_0x432c29(0x58c)]&&_0xa5ae3b[_0x432c29(0x345)](_0x47f5e8[0x0]);}};Be=gi([Ze(0x0,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),Ze(0x1,S[_0x38c3ff(0x3cc)]),Ze(0x2,K[_0x38c3ff(0x3ea)])],Be);var Ii=Object[_0x38c3ff(0x1c1)],Ci=Object[_0x38c3ff(0x336)],Ei=(_0x4b9fe7,_0x8ef6f9,_0xd17c21,_0x4bf350)=>{const _0x432aa3=_0x38c3ff;for(var _0xee26eb=_0x4bf350>0x1?void 0x0:_0x4bf350?Ci(_0x8ef6f9,_0xd17c21):_0x8ef6f9,_0x162228=_0x4b9fe7[_0x432aa3(0x58c)]-0x1,_0x2abe32;_0x162228>=0x0;_0x162228--)(_0x2abe32=_0x4b9fe7[_0x162228])&&(_0xee26eb=(_0x4bf350?_0x2abe32(_0x8ef6f9,_0xd17c21,_0xee26eb):_0x2abe32(_0xee26eb))||_0xee26eb);return _0x4bf350&&_0xee26eb&&Ii(_0x8ef6f9,_0xd17c21,_0xee26eb),_0xee26eb;},Pe=(_0x547879,_0x5cc27a)=>(_0x2fd6e3,_0x1afe9b)=>_0x5cc27a(_0x2fd6e3,_0x1afe9b,_0x547879);exports['LocalCacheService']=class extends a[_0x38c3ff(0x1a8)]{constructor(_0x167217,_0x2d9e8d,_0x4daf0e,_0x5e864b,_0x60e9fb){const _0x5d71ef=_0x38c3ff;super(),I(this,'_cachedData',new Map()),I(this,_0x5d71ef(0x2b6),new Map()),I(this,_0x5d71ef(0x21b),!0x1),(this[_0x5d71ef(0x1f5)]=_0x167217,this[_0x5d71ef(0x3fa)]=_0x2d9e8d,this[_0x5d71ef(0x250)]=_0x4daf0e,this[_0x5d71ef(0x203)]=_0x5e864b,this['_revisionService']=_0x60e9fb,this['_setupBeforeClosingHandler']());}[_0x38c3ff(0x4bf)](){const _0x4f097c=_0x38c3ff;this[_0x4f097c(0x21b)]=!0x0;}[_0x38c3ff(0x401)](){const _0x107182=_0x38c3ff;this[_0x107182(0x21b)]=!0x1;}[_0x38c3ff(0x2da)](){const _0x2430c9=_0x38c3ff;this[_0x2430c9(0x1df)]()[_0x2430c9(0x1fb)](()=>super['dispose']());}async[_0x38c3ff(0x1f2)](_0x135053){const _0x15bf15=_0x38c3ff;return this[_0x15bf15(0x21b)]?null:this[_0x15bf15(0x3fa)][_0x15bf15(0x3f7)](At(_0x135053));}async['saveOfflineData'](_0x20a890,_0x489236){const _0x13cd2f=_0x38c3ff;return!!this[_0x13cd2f(0x3fa)][_0x13cd2f(0x43c)](_0x20a890,_0x489236);}['updateOfflineData'](_0x12b4c6,_0x20f6c0,_0x27f28a,_0x40128e){const _0x504412=_0x38c3ff,_0x93890e=this[_0x504412(0x26b)][_0x504412(0x451)](_0x12b4c6);this[_0x504412(0x5bf)][_0x504412(0x3e8)](_0x12b4c6,{'unitID':_0x12b4c6,'type':_0x20f6c0,'awaitingChangeset':_0x27f28a,'mutations':_0x40128e,'rev':_0x93890e}),this['_saveTaskMap'][_0x504412(0x599)](_0x12b4c6)||this[_0x504412(0x3b3)](_0x12b4c6);}[_0x38c3ff(0x3b3)](_0x5637ca){const _0x1c4b0f=_0x38c3ff,_0x490ac7=this['_getSaveTimeout']();_0x490ac7===0x0?this[_0x1c4b0f(0x553)](_0x5637ca):this[_0x1c4b0f(0x2b6)][_0x1c4b0f(0x3e8)](_0x5637ca,setTimeout(()=>this[_0x1c4b0f(0x553)](_0x5637ca),_0x490ac7));}[_0x38c3ff(0x440)](){const _0x428044=_0x38c3ff;var _0x19463f;return(_0x19463f=this[_0x428044(0x1f5)][_0x428044(0x556)](rn))!=null?_0x19463f:Yn;}[_0x38c3ff(0x553)](_0x545a3d){const _0x34b1ce=_0x38c3ff,_0x2c8fa6=this[_0x34b1ce(0x2b6)]['get'](_0x545a3d);return _0x2c8fa6!==void 0x0&&window[_0x34b1ce(0x314)](_0x2c8fa6),this[_0x34b1ce(0x3fa)]['setItem'](At(_0x545a3d),this[_0x34b1ce(0x5bf)][_0x34b1ce(0x585)](_0x545a3d))['then'](()=>this[_0x34b1ce(0x2b6)][_0x34b1ce(0x1d0)](_0x545a3d));}async[_0x38c3ff(0x1df)](){const _0x45b9ce=_0x38c3ff,_0x1da48e=[];this['_saveTaskMap'][_0x45b9ce(0x2d8)]((_0x30d4da,_0x154b9d)=>{const _0x20abee=_0x45b9ce;window['clearTimeout'](_0x30d4da),_0x1da48e['push'](this[_0x20abee(0x553)](_0x154b9d)[_0x20abee(0x1fb)](()=>{this['_saveTaskMap']['delete'](_0x154b9d);}));}),await Promise[_0x45b9ce(0x42d)](_0x1da48e);}['_setupBeforeClosingHandler'](){const _0x339409=_0x38c3ff;this[_0x339409(0x4bd)](this[_0x339409(0x250)][_0x339409(0x62c)](()=>{const _0x2b407b=_0x339409;if(this['_saveTaskMap'][_0x2b407b(0x311)])return this['_localeService']['t'](_0x2b407b(0x52e));}));}},exports[_0x38c3ff(0x227)]=Ei([Pe(0x0,a[_0x38c3ff(0x326)]),Pe(0x1,a[_0x38c3ff(0x3e7)]),Pe(0x2,ee['IBeforeCloseService']),Pe(0x3,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x222)])),Pe(0x4,a[_0x38c3ff(0x2af)](S[_0x38c3ff(0x3cb)]))],exports['LocalCacheService']);function At(_0x54d3f0){const _0x69ad2f=_0x38c3ff;return _0x69ad2f(0x23a)+_0x54d3f0;}var bi=Object[_0x38c3ff(0x1c1)],Ti=Object['getOwnPropertyDescriptor'],Ri=(_0x3ea7c1,_0x45d512,_0x153993,_0x164289)=>{const _0x8d34fa=_0x38c3ff;for(var _0x416e59=_0x164289>0x1?void 0x0:_0x164289?Ti(_0x45d512,_0x153993):_0x45d512,_0x3272da=_0x3ea7c1[_0x8d34fa(0x58c)]-0x1,_0x3d7cf1;_0x3272da>=0x0;_0x3272da--)(_0x3d7cf1=_0x3ea7c1[_0x3272da])&&(_0x416e59=(_0x164289?_0x3d7cf1(_0x45d512,_0x153993,_0x416e59):_0x3d7cf1(_0x416e59))||_0x416e59);return _0x164289&&_0x416e59&&bi(_0x45d512,_0x153993,_0x416e59),_0x416e59;},Qe=(_0x1922af,_0x3e1d82)=>(_0x5c66b5,_0x3228a2)=>_0x3e1d82(_0x5c66b5,_0x3228a2,_0x1922af);function yi(_0xf2d201){const _0x4732c1=_0x38c3ff,{unitID:_0x28185b,mutations:_0x540330}=_0xf2d201;return{'unitId':_0x28185b,'subUnitId':_0x540330[0x0][_0x4732c1(0x595)][_0x4732c1(0x458)]};}let ke=class{constructor(_0x2a8547,_0x5d2b3f,_0x3d1baa){const _0x244f24=_0x38c3ff;this['_injector']=_0x2a8547,this[_0x244f24(0x267)]=_0x5d2b3f,this[_0x244f24(0x653)]=_0x3d1baa;}[_0x38c3ff(0x265)](_0x34a6b8){const _0x362e30=_0x38c3ff;var _0x15b998,_0x309446,_0x540e96,_0x4f1453;const _0x355106=this[_0x362e30(0x3b6)]['get'](k[_0x362e30(0x2c5)]),{unitId:_0x3f8c2f,subUnitId:_0x39f30a}=yi(_0x34a6b8),_0x96114d=_0x355106[_0x362e30(0x333)](_0x3f8c2f)['getCurrentSelections'](),_0x210e1e=(_0x309446=(_0x15b998=this[_0x362e30(0x653)][_0x362e30(0x32e)](_0x3f8c2f))==null?void 0x0:_0x15b998[_0x362e30(0x60f)]())==null?void 0x0:_0x309446[_0x362e30(0x5f0)]();if(_0x96114d[_0x362e30(0x58c)]===0x0||!_0x3f8c2f||!_0x39f30a)return;const _0x1e8a1e=[{'id':k[_0x362e30(0x56b)]['id'],'params':{'unitId':_0x3f8c2f,'subUnitId':_0x210e1e,'selections':a[_0x362e30(0x24a)][_0x362e30(0x25b)](_0x96114d)}}],_0x2cebb9=this[_0x362e30(0x267)][_0x362e30(0x4be)](_0x34a6b8,_0x1e8a1e);if(!S['isTransformMutationsWithChangesetSuccess'](_0x2cebb9))throw _0x2cebb9[_0x362e30(0x55e)];const _0x33974d=(_0x4f1453=(_0x540e96=_0x2cebb9[_0x362e30(0x41f)][0x0])==null?void 0x0:_0x540e96[_0x362e30(0x595)])==null?void 0x0:_0x4f1453['selections'];if(Array['isArray'](_0x33974d)&&_0x33974d['length']){if(_0x33974d[_0x362e30(0x58c)]===_0x1e8a1e[0x0][_0x362e30(0x595)][_0x362e30(0x609)][_0x362e30(0x58c)]&&_0x33974d[_0x362e30(0x318)]((_0x29a986,_0x22ec69)=>a[_0x362e30(0x45c)][_0x362e30(0x44d)](_0x29a986[_0x362e30(0x256)],_0x1e8a1e[0x0][_0x362e30(0x595)][_0x362e30(0x609)][_0x22ec69]['range'])))return;this[_0x362e30(0x3b6)][_0x362e30(0x585)](a['ICommandService'])[_0x362e30(0x4fe)](k['SetSelectionsOperation']['id'],{'unitId':_0x3f8c2f,'subUnitId':_0x210e1e,'selections':_0x33974d});}}};function _0x4762(_0xb34cdb,_0x245eb3){const _0x207948=_0x2079();return _0x4762=function(_0x47625c,_0x17d1e){_0x47625c=_0x47625c-0x196;let _0x40e158=_0x207948[_0x47625c];return _0x40e158;},_0x4762(_0xb34cdb,_0x245eb3);}ke=Ri([Qe(0x0,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),Qe(0x1,S[_0x38c3ff(0x3cc)]),Qe(0x2,a[_0x38c3ff(0x2a8)])],ke);const qe=a[_0x38c3ff(0x275)](_0x38c3ff(0x21a));var un=(_0x4363cf=>(_0x4363cf[_0x4363cf[_0x38c3ff(0x413)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x4363cf[_0x4363cf[_0x38c3ff(0x424)]=0x1]='OTHER_CLIENTS_EDITING',_0x4363cf))(un||{});const Nt=0x7530,Lt=_0x38c3ff(0x27c);class Oi extends a[_0x38c3ff(0x1a8)]{constructor(){const _0x5eb8c8=_0x38c3ff;super(),I(this,_0x5eb8c8(0x31c),a[_0x5eb8c8(0x24a)][_0x5eb8c8(0x4b6)]()),I(this,_0x5eb8c8(0x639),new Set()),I(this,_0x5eb8c8(0x264),new Map()),I(this,_0x5eb8c8(0x26f),null),I(this,_0x5eb8c8(0x5c7),new Map()),I(this,_0x5eb8c8(0x4c5),new Map()),this[_0x5eb8c8(0x596)]();}[_0x38c3ff(0x2da)](){const _0x32f655=_0x38c3ff;super[_0x32f655(0x2da)](),this[_0x32f655(0x5c7)][_0x32f655(0x2d8)]((_0x3fb528,_0x69ec6)=>this[_0x32f655(0x2fe)](_0x69ec6)),this[_0x32f655(0x26f)]&&window[_0x32f655(0x490)](this[_0x32f655(0x26f)]);}[_0x38c3ff(0x5c0)](_0x224bb5){const _0xb848ba=_0x38c3ff;return this[_0xb848ba(0x1a3)](_0x224bb5)[_0xb848ba(0x57b)](A['distinctUntilChanged']());}[_0x38c3ff(0x357)](_0x558464){const _0x2e7f2a=_0x38c3ff;this['_selfUnitIDs'][_0x2e7f2a(0x311)]===0x0&&this['_scheduleHeartbeat'](),this[_0x2e7f2a(0x639)][_0x2e7f2a(0x425)](_0x558464),this[_0x2e7f2a(0x526)]({'type':0x0,'memberID':this[_0x2e7f2a(0x31c)],'unitIDs':[_0x558464],'isForwarded':!0x1});}[_0x38c3ff(0x577)](_0x556f49){const _0x5888fb=_0x38c3ff;this[_0x5888fb(0x639)][_0x5888fb(0x1d0)](_0x556f49),this[_0x5888fb(0x639)][_0x5888fb(0x311)]===0x0&&this[_0x5888fb(0x26f)]&&window[_0x5888fb(0x490)](this[_0x5888fb(0x26f)]);}['_init'](){const _0x550140=_0x38c3ff;this[_0x550140(0x4bd)](a[_0x550140(0x2c7)](A['fromEvent'](window,_0x550140(0x4c1))[_0x550140(0x47b)](_0x1db5fe=>{const _0x4f725d=_0x550140;if(_0x1db5fe[_0x4f725d(0x5d1)]!==Lt||!_0x1db5fe[_0x4f725d(0x493)])return;const _0x49e0ad=JSON['parse'](_0x1db5fe['newValue']);this[_0x4f725d(0x5e3)](_0x49e0ad);}))),window['addEventListener'](_0x550140(0x3a5),()=>this['_send']({'type':0x1,'memberID':this[_0x550140(0x31c)],'unitIDs':Array[_0x550140(0x5ae)](this[_0x550140(0x639)])}));}[_0x38c3ff(0x5e3)](_0x4cebb4){const _0x306035=_0x38c3ff;switch(_0x4cebb4[_0x306035(0x42a)]){case 0x0:this[_0x306035(0x5dc)](_0x4cebb4);break;case 0x1:this['_handleLeaveEvent'](_0x4cebb4);break;case 0x2:this[_0x306035(0x557)](_0x4cebb4);break;}}[_0x38c3ff(0x5dc)](_0x4f0fed){const _0x27409b=_0x38c3ff,{unitIDs:_0x1be534,memberID:_0x160120,isForwarded:_0x498049}=_0x4f0fed;_0x1be534[_0x27409b(0x2d8)](_0x48544f=>{const _0xd7b84f=_0x27409b;if(!_0x498049&&this[_0xd7b84f(0x264)]['has'](_0x48544f)&&this[_0xd7b84f(0x1a3)](_0x48544f)[_0xd7b84f(0x4c4)](0x1),!this[_0xd7b84f(0x264)]['has'](_0x48544f)||!this[_0xd7b84f(0x264)][_0xd7b84f(0x585)](_0x48544f)[_0xd7b84f(0x599)](_0x160120)){const _0x580f52=this[_0xd7b84f(0x264)][_0xd7b84f(0x585)](_0x48544f)||new Set();_0x580f52['add'](_0x160120),this[_0xd7b84f(0x264)][_0xd7b84f(0x3e8)](_0x48544f,_0x580f52),this[_0xd7b84f(0x62b)](_0x160120);}}),_0x498049||this['_send']({'type':0x0,'memberID':this[_0x27409b(0x31c)],'unitIDs':[...this[_0x27409b(0x639)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x429e70){const _0x29f6eb=_0x38c3ff;this[_0x29f6eb(0x2fe)](_0x429e70);const _0x21d749=window[_0x29f6eb(0x3bb)](()=>{const _0x4427ea=_0x29f6eb;this[_0x4427ea(0x264)][_0x4427ea(0x2d8)](_0x27bbd7=>{const _0x5e6693=_0x4427ea;_0x27bbd7[_0x5e6693(0x1d0)](_0x429e70);});},Nt*0x2);this['_clearOtherTimers'][_0x29f6eb(0x3e8)](_0x429e70,_0x21d749);}[_0x38c3ff(0x2fe)](_0x493d08){const _0x372fab=_0x38c3ff;if(this['_clearOtherTimers']['has'](_0x493d08)){const _0x362ac9=this[_0x372fab(0x5c7)]['get'](_0x493d08);_0x362ac9&&window['clearTimeout'](_0x362ac9),this[_0x372fab(0x5c7)][_0x372fab(0x3e8)](_0x493d08,null);}}['_handleLeaveEvent'](_0x1006d9){const _0x524f7f=_0x38c3ff,{memberID:_0x549ee9,unitIDs:_0x25bbf5}=_0x1006d9;_0x25bbf5['forEach'](_0x4c4176=>{const _0x574a05=_0x4762;var _0xc3525e;const _0x31fedc=this[_0x574a05(0x264)][_0x574a05(0x585)](_0x4c4176);_0x31fedc&&(_0x31fedc[_0x574a05(0x1d0)](_0x549ee9),(_0xc3525e=this[_0x574a05(0x1a3)](_0x4c4176))==null||_0xc3525e[_0x574a05(0x4c4)](_0x31fedc[_0x574a05(0x311)]===0x0?0x0:0x1));}),this[_0x524f7f(0x2fe)](_0x549ee9);}['_handleHeartbeatEvent'](_0xf8aed5){const _0x317d33=_0x38c3ff;this['_scheduleClearOtherTimer'](_0xf8aed5[_0x317d33(0x3a6)]);}['_send'](_0x4f52f5){const _0x5b930a=_0x38c3ff;localStorage[_0x5b930a(0x43c)](Lt,JSON[_0x5b930a(0x3e4)](_0x4f52f5));}[_0x38c3ff(0x228)](){const _0x38967b=_0x38c3ff;this[_0x38967b(0x26f)]=window[_0x38967b(0x60d)](()=>{const _0x21b81a=_0x38967b;this[_0x21b81a(0x526)]({'type':0x2,'memberID':this[_0x21b81a(0x31c)]});},Nt);}[_0x38c3ff(0x1a3)](_0x45a427){const _0x247bb7=_0x38c3ff;return this[_0x247bb7(0x4c5)][_0x247bb7(0x599)](_0x45a427)||this['_unitStatus']['set'](_0x45a427,new A['BehaviorSubject'](0x0)),this['_unitStatus'][_0x247bb7(0x585)](_0x45a427);}}var Di=Object[_0x38c3ff(0x1c1)],wi=Object['getOwnPropertyDescriptor'],Pi=(_0x459f58,_0x505648,_0x2423de,_0x554a00)=>{const _0x18468a=_0x38c3ff;for(var _0x33ce1d=_0x554a00>0x1?void 0x0:_0x554a00?wi(_0x505648,_0x2423de):_0x505648,_0xdb495f=_0x459f58[_0x18468a(0x58c)]-0x1,_0x470083;_0xdb495f>=0x0;_0xdb495f--)(_0x470083=_0x459f58[_0xdb495f])&&(_0x33ce1d=(_0x554a00?_0x470083(_0x505648,_0x2423de,_0x33ce1d):_0x470083(_0x33ce1d))||_0x33ce1d);return _0x554a00&&_0x33ce1d&&Di(_0x505648,_0x2423de,_0x33ce1d),_0x33ce1d;},et=(_0x5592b9,_0xb7cd63)=>(_0x380da3,_0x2f86d8)=>_0xb7cd63(_0x380da3,_0x2f86d8,_0x5592b9);let We=class{constructor(_0x317213,_0x30e7ff,_0x28bed5){const _0x5dec6a=_0x38c3ff;this[_0x5dec6a(0x3b6)]=_0x317213,this[_0x5dec6a(0x267)]=_0x30e7ff,this[_0x5dec6a(0x5ca)]=_0x28bed5;}['transformStateCache'](_0x29ac88){const _0x3bc300=_0x38c3ff;this[_0x3bc300(0x4cc)](_0x29ac88);}['transformRemoteChangeset'](_0x57675f){const _0x1293db=_0x38c3ff,{unitID:_0x5c5814}=_0x57675f,{collaboration:_0x308419}=this['_docStateChangeManagerService'][_0x1293db(0x5da)](_0x5c5814);if(_0x308419['length']===0x0)return _0x57675f;let _0x24d3da=a[_0x1293db(0x24a)][_0x1293db(0x25b)](_0x57675f[_0x1293db(0x1cd)][0x0]);for(let _0x18d3a2=0x0;_0x18d3a2<_0x308419[_0x1293db(0x58c)];_0x18d3a2++){const _0x2cefea={'id':_0x1293db(0x354),'params':{'unitId':_0x308419[_0x18d3a2][_0x1293db(0x492)],..._0x308419[_0x18d3a2]['redoState']}},_0x242a8f=this[_0x1293db(0x267)][_0x1293db(0x634)](_0x24d3da,_0x2cefea,!0x1);if(S[_0x1293db(0x446)](_0x242a8f))throw _0x242a8f['error'];_0x24d3da=_0x242a8f[_0x1293db(0x30e)];}return{...a[_0x1293db(0x24a)][_0x1293db(0x25b)](_0x57675f),'mutations':[_0x24d3da]};}[_0x38c3ff(0x4cc)](_0x17f958){const _0x2278d4=_0x38c3ff,{unitID:_0x16fd97}=_0x17f958,{history:_0x1f7250,collaboration:_0x45c783}=this['_docStateChangeManagerService'][_0x2278d4(0x5da)](_0x16fd97);if(_0x1f7250[_0x2278d4(0x58c)]===0x0&&_0x45c783[_0x2278d4(0x58c)]===0x0)return;const _0x4b8c21=[],_0x177638=[];let _0x527404=a[_0x2278d4(0x24a)][_0x2278d4(0x25b)](_0x17f958['mutations'][0x0]),_0x58a178=a[_0x2278d4(0x24a)]['deepClone'](_0x17f958[_0x2278d4(0x1cd)][0x0]);for(let _0x1a8854=_0x1f7250[_0x2278d4(0x58c)]-0x1;_0x1a8854>=0x0;_0x1a8854--){const _0x2a35a1={'id':_0x2278d4(0x354),'params':{'unitId':_0x1f7250[_0x1a8854][_0x2278d4(0x492)],..._0x1f7250[_0x1a8854][_0x2278d4(0x507)]}},_0x231609={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1f7250[_0x1a8854][_0x2278d4(0x492)],..._0x1f7250[_0x1a8854][_0x2278d4(0x292)]}},_0x44b905=this[_0x2278d4(0x267)][_0x2278d4(0x634)](_0x527404,_0x2a35a1,!0x1),_0x3fbc42=this['_transformService']['transformMutation'](_0x58a178,_0x231609,!0x1);if(S[_0x2278d4(0x446)](_0x44b905))throw _0x44b905[_0x2278d4(0x55e)];if(S[_0x2278d4(0x446)](_0x3fbc42))throw _0x3fbc42['error'];_0x4b8c21[_0x2278d4(0x5a5)]({..._0x1f7250[_0x1a8854],'undoState':_0x44b905[_0x2278d4(0x41f)][_0x2278d4(0x595)],'redoState':_0x3fbc42[_0x2278d4(0x41f)]['params']}),_0x527404=_0x44b905[_0x2278d4(0x30e)],_0x58a178=_0x3fbc42[_0x2278d4(0x30e)];}_0x527404=a[_0x2278d4(0x24a)]['deepClone'](_0x17f958[_0x2278d4(0x1cd)][0x0]),_0x58a178=a[_0x2278d4(0x24a)][_0x2278d4(0x25b)](_0x17f958[_0x2278d4(0x1cd)][0x0]);for(let _0x2e5ac5=_0x45c783[_0x2278d4(0x58c)]-0x1;_0x2e5ac5>=0x0;_0x2e5ac5--){const _0x10075b={'id':_0x2278d4(0x354),'params':{'unitId':_0x45c783[_0x2e5ac5]['unitId'],..._0x45c783[_0x2e5ac5]['undoState']}},_0xc8dc32={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x45c783[_0x2e5ac5][_0x2278d4(0x492)],..._0x45c783[_0x2e5ac5][_0x2278d4(0x292)]}},_0x4d48eb=this[_0x2278d4(0x267)]['transformMutation'](_0x527404,_0x10075b,!0x1),_0x1f4e07=this['_transformService'][_0x2278d4(0x634)](_0x58a178,_0xc8dc32,!0x1);if(S['isTransformMutationFailure'](_0x4d48eb))throw _0x4d48eb[_0x2278d4(0x55e)];if(S['isTransformMutationFailure'](_0x1f4e07))throw _0x1f4e07['error'];_0x177638[_0x2278d4(0x5a5)]({..._0x45c783[_0x2e5ac5],'undoState':_0x4d48eb[_0x2278d4(0x41f)][_0x2278d4(0x595)],'redoState':_0x1f4e07[_0x2278d4(0x41f)][_0x2278d4(0x595)]}),_0x527404=_0x4d48eb[_0x2278d4(0x30e)],_0x58a178=_0x1f4e07[_0x2278d4(0x30e)];}this[_0x2278d4(0x5ca)][_0x2278d4(0x46e)](_0x16fd97,{'history':_0x4b8c21,'collaboration':_0x177638});}};We=Pi([et(0x0,a['Inject'](a[_0x38c3ff(0x50e)])),et(0x1,S['ITransformService']),et(0x2,a[_0x38c3ff(0x2af)](J['DocStateChangeManagerService']))],We);function dn(_0x337c89){const _0x14ff8b=_0x38c3ff;let _0x498574='';for(const _0x468da3 of _0x337c89){const {startOffset:_0x3cb87c,endOffset:_0x382d9a,isActive:_0xc22e14,rangeType:_0x4737eb,segmentId:_0x4f58c7,segmentPage:_0x5c9f2a}=_0x468da3;_0x498574[_0x14ff8b(0x58c)]&&(_0x498574+=','),_0x498574+=_0x3cb87c+':'+_0x382d9a+':'+(_0xc22e14?'1':'0')+':'+_0x4737eb+':'+_0x4f58c7+':'+_0x5c9f2a;}return _0x498574;}function Ui(_0x3030d8){const _0x10cbad=_0x38c3ff,_0x5b200e=_0x3030d8[_0x10cbad(0x368)](','),_0x219af3=[];for(const _0x2accb4 of _0x5b200e){const [_0xf16d02,_0x54fc59,_0x417bda,_0x4c4bee,_0x109103,_0x1a9829]=_0x2accb4['split'](':');_0x219af3[_0x10cbad(0x473)]({'startOffset':Number(_0xf16d02),'endOffset':Number(_0x54fc59),'collapsed':_0xf16d02===_0x54fc59,'isActive':_0x417bda==='1','rangeType':_0x4c4bee===a[_0x10cbad(0x2ec)][_0x10cbad(0x33c)]?a['DOC_RANGE_TYPE'][_0x10cbad(0x33c)]:a[_0x10cbad(0x2ec)][_0x10cbad(0x248)],'segmentId':typeof _0x109103==_0x10cbad(0x53c)?String(_0x109103):'','segmentPage':Number(_0x1a9829!=null?_0x1a9829:-0x1)});}return _0x219af3['some'](_0x48748f=>_0x48748f[_0x10cbad(0x2f5)])||(_0x219af3[0x0][_0x10cbad(0x2f5)]=!0x0),_0x219af3;}class Rt extends a['RxDisposable']{constructor(){const _0xfe6704=_0x38c3ff;super(...arguments),I(this,_0xfe6704(0x4de),new A[(_0xfe6704(0x4fc))](null)),I(this,_0xfe6704(0x305),this['_collabCursorState$'][_0xfe6704(0x4a7)]());}['syncEditingCollabCursor'](_0xfd037c){const _0x4badbe=_0x38c3ff,{unitID:_0x353874,memberID:_0xd4bb15,textRanges:_0x37dcc9}=_0xfd037c,_0x47270a=dn(_0x37dcc9);if(_0x47270a==='')return;const _0x22f810={'unitID':_0x353874,'memberID':_0xd4bb15,'selection':_0x47270a};this[_0x4badbe(0x4de)][_0x4badbe(0x4c4)](_0x22f810);}}var Mi=Object[_0x38c3ff(0x1c1)],Ai=Object[_0x38c3ff(0x336)],Ni=(_0x133775,_0x5d3dae,_0x477dc6,_0x4a80c8)=>{const _0x28ad04=_0x38c3ff;for(var _0x44d65d=_0x4a80c8>0x1?void 0x0:_0x4a80c8?Ai(_0x5d3dae,_0x477dc6):_0x5d3dae,_0x188774=_0x133775[_0x28ad04(0x58c)]-0x1,_0x5db4de;_0x188774>=0x0;_0x188774--)(_0x5db4de=_0x133775[_0x188774])&&(_0x44d65d=(_0x4a80c8?_0x5db4de(_0x5d3dae,_0x477dc6,_0x44d65d):_0x5db4de(_0x44d65d))||_0x44d65d);return _0x4a80c8&&_0x44d65d&&Mi(_0x5d3dae,_0x477dc6,_0x44d65d),_0x44d65d;},xt=(_0x4ec40b,_0x42f37b)=>(_0x486840,_0x10d377)=>_0x42f37b(_0x486840,_0x10d377,_0x4ec40b);let Fe=class{constructor(_0x103471,_0x57e3e4){const _0x2915b2=_0x38c3ff;this[_0x2915b2(0x3b6)]=_0x103471,this[_0x2915b2(0x267)]=_0x57e3e4;}[_0x38c3ff(0x265)](_0x600e0a){const _0x3c6d0f=_0x38c3ff;var _0x683667;const _0x195667=this[_0x3c6d0f(0x3b6)][_0x3c6d0f(0x585)](ye['DocSelectionManagerService']),_0x166faf=(_0x683667=_0x195667['getDocRanges']())!=null?_0x683667:[];if(_0x166faf[_0x3c6d0f(0x58c)]===0x0)return;const _0x417cd7=_0x600e0a[_0x3c6d0f(0x364)],_0x2af171=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x417cd7,'actions':null,'textRanges':_0x166faf}}],_0x58f8a6=this[_0x3c6d0f(0x267)]['transformMutationsWithChangeset'](_0x600e0a,_0x2af171);if(!S[_0x3c6d0f(0x38b)](_0x58f8a6))throw _0x58f8a6[_0x3c6d0f(0x55e)];const _0x7ea7a6=_0x58f8a6[_0x3c6d0f(0x41f)][0x0][_0x3c6d0f(0x595)][_0x3c6d0f(0x4fd)];Array[_0x3c6d0f(0x32a)](_0x7ea7a6)&&_0x7ea7a6[_0x3c6d0f(0x58c)]&&_0x195667[_0x3c6d0f(0x60b)](_0x7ea7a6,{'unitId':_0x417cd7,'subUnitId':_0x417cd7},!0x1);}};Fe=Ni([xt(0x0,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),xt(0x1,S['ITransformService'])],Fe);const Li=new Set([k[_0x38c3ff(0x54f)]['id']]);function jt(_0x1ee2c2,_0x325be8,_0x2e4065,_0x36ea0c,_0x178353){const _0xcc9465=_0x38c3ff;var _0x54e5b3,_0x4ae70e,_0x523107,_0x5e7263;const _0x15d6c3=[];for(const _0x3d1e22 of _0x1ee2c2)if(Li[_0xcc9465(0x599)](_0x3d1e22['id'])){if(_0x15d6c3[_0xcc9465(0x58c)]>0x0)break;_0x15d6c3[_0xcc9465(0x473)](_0x3d1e22);break;}else _0x15d6c3['push'](_0x3d1e22);const _0x13b8cb=(_0x4ae70e=(_0x54e5b3=_0x178353['getCurrentUser']())==null?void 0x0:_0x54e5b3[_0xcc9465(0x2bf)])!=null?_0x4ae70e:_0xcc9465(0x50f),_0x26f7c9=(_0x5e7263=(_0x523107=_0x178353[_0xcc9465(0x35a)]())==null?void 0x0:_0x523107[_0xcc9465(0x3a6)])!=null?_0x5e7263:_0xcc9465(0x50f);return{'changeset':{'unitID':_0x325be8,'type':S[_0xcc9465(0x5e9)](_0x2e4065[_0xcc9465(0x309)](_0x325be8)),'baseRev':_0x36ea0c[_0xcc9465(0x451)](_0x325be8),'revision':0x0,'userID':_0x13b8cb,'memberID':_0x26f7c9,'mutations':_0x15d6c3},'pendingMutations':_0x1ee2c2[_0xcc9465(0x56a)](_0x15d6c3[_0xcc9465(0x58c)])};}function xi(_0xb85e31,_0x1d5503,_0x4ab7eb,_0x240c0d,_0x369c65){const _0x3b5294=_0x38c3ff;var _0x59a659,_0xae9ef8,_0x6b080f,_0x3b5d3c;const _0x1273ab=[_0xb85e31['reduce']((_0x5d30c3,_0x303e36)=>{const _0xd4c369=_0x4762;var _0x4574f0;const {id:_0x112420}=_0x5d30c3,{id:_0x294847,type:_0x1b99c0}=_0x303e36,_0x2c1054=(_0x4574f0=_0x5d30c3['params'])!=null?_0x4574f0:{'actions':null},_0x5bb1ff=_0x303e36[_0xd4c369(0x595)];if(_0x112420&&_0x112420!==_0x294847)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x112420+_0xd4c369(0x41c)+_0x294847+'.');return{..._0x5d30c3,'id':_0x294847,'type':_0x1b99c0,'params':{'unitId':_0x5bb1ff[_0xd4c369(0x492)],'textRanges':_0x5bb1ff[_0xd4c369(0x4fd)],'actions':a[_0xd4c369(0x391)][_0xd4c369(0x549)](_0x2c1054[_0xd4c369(0x1c8)],_0x5bb1ff[_0xd4c369(0x1c8)])}};},{})],_0x228633=(_0xae9ef8=(_0x59a659=_0x369c65[_0x3b5294(0x35a)]())==null?void 0x0:_0x59a659[_0x3b5294(0x2bf)])!=null?_0xae9ef8:_0x3b5294(0x50f),_0x108bf6=(_0x3b5d3c=(_0x6b080f=_0x369c65[_0x3b5294(0x35a)]())==null?void 0x0:_0x6b080f['memberID'])!=null?_0x3b5d3c:'unknown';return{'changeset':{'unitID':_0x1d5503,'type':S['mapDocumentTypeToUniverType'](_0x4ab7eb[_0x3b5294(0x309)](_0x1d5503)),'baseRev':_0x240c0d['getCurrentRevOfUnit'](_0x1d5503),'revision':0x0,'userID':_0x228633,'memberID':_0x108bf6,'mutations':_0x1273ab},'pendingMutations':[]};}function fn(_0x12bc73,_0x456271){const _0x9382c0=_0x38c3ff,_0x3b3a43=new A[(_0x9382c0(0x1bd))](0x1);return setTimeout(()=>_0x3b3a43[_0x9382c0(0x4c4)](_0x456271),_0x12bc73),_0x3b3a43[_0x9382c0(0x4a7)]()[_0x9382c0(0x57b)](A[_0x9382c0(0x3f1)](0x1));}const ji={'id':k[_0x38c3ff(0x367)]['id'],'type':a[_0x38c3ff(0x301)][_0x38c3ff(0x4d4)],'params':{}};var $i=Object['defineProperty'],Hi=Object['getOwnPropertyDescriptor'],Ie=(_0x24b21c,_0xecf473,_0x10f540,_0x253bd0)=>{const _0x38800a=_0x38c3ff;for(var _0xfdde7f=_0x253bd0>0x1?void 0x0:_0x253bd0?Hi(_0xecf473,_0x10f540):_0xecf473,_0x4b0cc7=_0x24b21c[_0x38800a(0x58c)]-0x1,_0xb0d0ce;_0x4b0cc7>=0x0;_0x4b0cc7--)(_0xb0d0ce=_0x24b21c[_0x4b0cc7])&&(_0xfdde7f=(_0x253bd0?_0xb0d0ce(_0xecf473,_0x10f540,_0xfdde7f):_0xb0d0ce(_0xfdde7f))||_0xfdde7f);return _0x253bd0&&_0xfdde7f&&$i(_0xecf473,_0x10f540,_0xfdde7f),_0xfdde7f;},N=(_0x326d97,_0x263462)=>(_0x59023b,_0x5fea7a)=>_0x263462(_0x59023b,_0x5fea7a,_0x326d97),q=(_0x1b30cd=>(_0x1b30cd[_0x38c3ff(0x1a1)]=_0x38c3ff(0x2c3),_0x1b30cd['SYNCED']=_0x38c3ff(0x4ec),_0x1b30cd[_0x38c3ff(0x426)]=_0x38c3ff(0x64d),_0x1b30cd[_0x38c3ff(0x575)]=_0x38c3ff(0x2dc),_0x1b30cd[_0x38c3ff(0x535)]=_0x38c3ff(0x29f),_0x1b30cd['FETCH_MISS']=_0x38c3ff(0x587),_0x1b30cd[_0x38c3ff(0x348)]=_0x38c3ff(0x614),_0x1b30cd[_0x38c3ff(0x33f)]=_0x38c3ff(0x647),_0x1b30cd))(q||{});const vn=0xea60;class Ce{constructor(_0x43fa0d,_0x4d9ccb,_0x3b0528,_0xd9d4df,_0x23cc83,_0x593a53,_0x306039,_0x4ac914,_0x965ecd){const _0x5c10df=_0x38c3ff;I(this,_0x5c10df(0x4a6),null),I(this,_0x5c10df(0x34c),[]),(this['unitID']=_0x43fa0d,this[_0x5c10df(0x42a)]=_0x4d9ccb,this[_0x5c10df(0x288)]=_0x23cc83,this[_0x5c10df(0x4f6)]=_0x593a53,this[_0x5c10df(0x3f8)]=_0x306039,this[_0x5c10df(0x26b)]=_0x4ac914,this[_0x5c10df(0x2ac)]=_0x965ecd,this[_0x5c10df(0x4a6)]=_0x3b0528,this[_0x5c10df(0x34c)]=_0xd9d4df);}[_0x38c3ff(0x20f)](_0x49cc44){const _0x45910b=_0x38c3ff,_0x46e7a8=this[_0x45910b(0x26b)][_0x45910b(0x451)](this[_0x45910b(0x364)]);return _0x49cc44[_0x45910b(0x623)]>_0x46e7a8+0x1?(this[_0x45910b(0x288)]['onMissingChangesets']({'from':_0x46e7a8,'to':_0x49cc44[_0x45910b(0x623)]-0x1}),!0x0):!0x1;}[_0x38c3ff(0x295)](_0x3f2013){this['_undoRedoService']['transformUndoRedo'](this['unitID'],_0x3f2013);}[_0x38c3ff(0x1b7)](_0x3bf1ea){const _0x410978=_0x38c3ff;var _0x2a53b5,_0x2f7462;(_0x2f7462=(_0x2a53b5=this[_0x410978(0x288)])[_0x410978(0x60a)])==null||_0x2f7462[_0x410978(0x420)](_0x2a53b5,_0x3bf1ea);}['_transformIMECache'](_0x1c26e3){const _0x26f35c=_0x38c3ff;var _0x51c98f,_0x3b348d;return(_0x3b348d=(_0x51c98f=this[_0x26f35c(0x288)])[_0x26f35c(0x505)])==null?void 0x0:_0x3b348d[_0x26f35c(0x420)](_0x51c98f,_0x1c26e3);}[_0x38c3ff(0x5c1)](_0x1dafad){const _0x18fa66=_0x38c3ff;var _0x346fdc,_0x29b9e4;return(_0x29b9e4=(_0x346fdc=this[_0x18fa66(0x288)])[_0x18fa66(0x4b3)])==null?void 0x0:_0x29b9e4[_0x18fa66(0x420)](_0x346fdc,_0x1dafad);}[_0x38c3ff(0x534)](_0x5c7b85){const _0x38a6dd=_0x38c3ff;var _0x547e6e,_0x371f09,_0x332220;return(_0x332220=(_0x371f09=(_0x547e6e=this[_0x38a6dd(0x288)])[_0x38a6dd(0x2d2)])==null?void 0x0:_0x371f09[_0x38a6dd(0x420)](_0x547e6e,_0x5c7b85))!=null?_0x332220:_0x5c7b85;}['_transformRemoteChangesetByStateCache'](_0x27fd62){const _0x56d137=_0x38c3ff;var _0x551c10,_0x3c5f78,_0x41503a;return(_0x41503a=(_0x3c5f78=(_0x551c10=this[_0x56d137(0x288)])[_0x56d137(0x506)])==null?void 0x0:_0x3c5f78[_0x56d137(0x420)](_0x551c10,_0x27fd62))!=null?_0x41503a:_0x27fd62;}['_syncEditingCollabCursor'](_0x309d66){const _0x11d7ef=_0x38c3ff;var _0x3e8d63,_0x191bbd;if(this['type']===ie[_0x11d7ef(0x649)]){const {unitID:_0xa332d5,mutations:_0x4b04e6,memberID:_0x89e10e}=_0x309d66,_0x38f310=_0x4b04e6[0x0]['params']['textRanges'];Array[_0x11d7ef(0x32a)](_0x38f310)&&_0x38f310['length']>0x0&&((_0x191bbd=(_0x3e8d63=this[_0x11d7ef(0x288)])[_0x11d7ef(0x200)])==null||_0x191bbd['call'](_0x3e8d63,{'unitID':_0xa332d5,'memberID':_0x89e10e,'textRanges':_0x38f310}));}}['_updateLocalCache'](){const _0x453906=_0x38c3ff;this[_0x453906(0x2ac)][_0x453906(0x3f6)](this['unitID'],this[_0x453906(0x42a)],this['_awaitingChangeset'],this[_0x453906(0x34c)]);}[_0x38c3ff(0x539)](){const _0x38db58=_0x38c3ff;return this[_0x38db58(0x26b)][_0x38db58(0x451)](this['unitID']);}['_incrementRevisionNumber'](){const _0x5a6fd7=_0x38c3ff;this[_0x5a6fd7(0x26b)][_0x5a6fd7(0x20b)](this[_0x5a6fd7(0x364)]);}[_0x38c3ff(0x32f)](_0x308505){const _0x6984de=_0x38c3ff;var _0x4f15dd;let _0x1898a7=this[_0x6984de(0x534)](_0x308505);_0x1898a7=this[_0x6984de(0x257)](_0x1898a7);const _0x51fb2e=a[_0x6984de(0x5a3)](_0x1898a7[_0x6984de(0x1cd)],this['_commandService'],{'fromCollab':!0x0});if(!_0x51fb2e['result'])throw _0x51fb2e[_0x6984de(0x55e)]instanceof Error?_0x51fb2e[_0x6984de(0x55e)]:new Error((_0x4f15dd=_0x51fb2e[_0x6984de(0x55e)])!=null?_0x4f15dd:_0x6984de(0x5d9));this[_0x6984de(0x3ed)](_0x1898a7),this[_0x6984de(0x5c1)](_0x1898a7),this[_0x6984de(0x295)](_0x308505),this[_0x6984de(0x1b7)](_0x1898a7),this[_0x6984de(0x321)](_0x1898a7),this[_0x6984de(0x298)]();}}let Oe=class extends Ce{constructor(_0xd867d9,_0x297fa2,_0x5781bf,_0x16aff7,_0x95c4a0,_0x1209a5,_0x4c1da9,_0xbbfa29,_0x66a316,_0x553136){const _0x18247f=_0x38c3ff;super(_0xd867d9,_0x297fa2,null,[],_0x5781bf,_0xbbfa29,_0x4c1da9,_0x16aff7,_0x95c4a0),I(this,_0x18247f(0x2b7),_0x18247f(0x4ec)),(this[_0x18247f(0x3b6)]=_0x1209a5,this[_0x18247f(0x4ce)]=_0x66a316,this[_0x18247f(0x267)]=_0x553136);}[_0x38c3ff(0x47d)](_0x24a55e){const _0x33fdd9=_0x38c3ff,_0x534b9c=this[_0x33fdd9(0x3b6)][_0x33fdd9(0x447)](ce,this[_0x33fdd9(0x364)],this[_0x33fdd9(0x42a)],[_0x24a55e],this[_0x33fdd9(0x288)]);return _0x534b9c['_schedule'](),_0x534b9c[_0x33fdd9(0x3f3)](),_0x534b9c;}[_0x38c3ff(0x1a0)](_0x218340){const _0x4c1975=_0x38c3ff;if(this[_0x4c1975(0x20f)](_0x218340))return this[_0x4c1975(0x3b6)][_0x4c1975(0x447)](re,this[_0x4c1975(0x364)],this[_0x4c1975(0x42a)],null,[],null,[_0x218340],this['_handler']);try{const _0x375287=this[_0x4c1975(0x267)][_0x4c1975(0x4be)](_0x218340,[ji]);if(S['isTransformMutationsWithChangesetSuccess'](_0x375287)){const {c1Prime:_0x5dbe26}=_0x375287;return this[_0x4c1975(0x32f)](_0x5dbe26),this;}throw _0x375287[_0x4c1975(0x55e)];}catch(_0x16d82d){return this['_logService'][_0x4c1975(0x55e)](_0x16d82d),this[_0x4c1975(0x205)](!0x1);}}['_onConflict'](_0x34f162){const _0x4f8214=_0x38c3ff;return this[_0x4f8214(0x3b6)]['createInstance'](ve,this[_0x4f8214(0x364)],this['type'],null,[],this[_0x4f8214(0x288)],_0x34f162);}[_0x38c3ff(0x625)](){const _0x492426=_0x38c3ff;throw new Error(_0x492426(0x61f));}[_0x38c3ff(0x218)](){const _0xeb9272=_0x38c3ff;throw new Error(_0xeb9272(0x622));}['onRemoteRetry'](){return this;}[_0x38c3ff(0x300)](){const _0x517b8d=_0x38c3ff;return this[_0x517b8d(0x3b6)][_0x517b8d(0x447)](me,this[_0x517b8d(0x364)],this['type'],null,[],this[_0x517b8d(0x288)]);}[_0x38c3ff(0x4b2)](){return this;}[_0x38c3ff(0x412)](){const _0x41299b=_0x38c3ff;throw new Error(_0x41299b(0x520));}[_0x38c3ff(0x23c)](){const _0x361a16=_0x38c3ff,_0x331590=this[_0x361a16(0x26b)][_0x361a16(0x451)](this[_0x361a16(0x364)]);return this['_handler'][_0x361a16(0x30a)]({'from':_0x331590,'to':0x0}),this[_0x361a16(0x3b6)]['createInstance'](re,this[_0x361a16(0x364)],this[_0x361a16(0x42a)],null,[],null,[],this[_0x361a16(0x288)]);}};Oe=Ie([N(0x3,a[_0x38c3ff(0x2af)](S[_0x38c3ff(0x3cb)])),N(0x4,a['Inject'](exports[_0x38c3ff(0x227)])),N(0x5,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),N(0x6,a[_0x38c3ff(0x1bc)]),N(0x7,a['ICommandService']),N(0x8,a[_0x38c3ff(0x626)]),N(0x9,S['ITransformService'])],Oe);let ce=class extends Ce{constructor(_0x323ed3,_0x1e5d97,_0x36ecce,_0x305375,_0x4d4929,_0x272e8e,_0x9cbd2d,_0x44617e,_0x76a9e1,_0x3d5481,_0x2fcb8e,_0x2e41d2,_0x10c05f,_0x804f06){const _0x1a039e=_0x38c3ff;super(_0x323ed3,_0x1e5d97,null,_0x36ecce,_0x305375,_0x3d5481,_0x804f06,_0x272e8e,_0x9cbd2d),I(this,'status','pending'),I(this,_0x1a039e(0x33b),null),I(this,_0x1a039e(0x463),null),(this['_injector']=_0x4d4929,this[_0x1a039e(0x1aa)]=_0x44617e,this[_0x1a039e(0x4ce)]=_0x76a9e1,this[_0x1a039e(0x1f5)]=_0x2fcb8e,this[_0x1a039e(0x267)]=_0x2e41d2,this['_univerInstanceService']=_0x10c05f);}[_0x38c3ff(0x47d)](_0x40141e){const _0x3d3082=_0x38c3ff;return this[_0x3d3082(0x34c)][_0x3d3082(0x473)](_0x40141e),this[_0x3d3082(0x3f3)](),this;}[_0x38c3ff(0x1a0)](_0x10d215){const _0x504dd8=_0x38c3ff;if(this[_0x504dd8(0x20f)](_0x10d215))return this[_0x504dd8(0x513)](),this['_injector'][_0x504dd8(0x447)](re,this[_0x504dd8(0x364)],this[_0x504dd8(0x42a)],null,this[_0x504dd8(0x34c)],null,[_0x10d215],this[_0x504dd8(0x288)]);try{const _0x5db72d=this[_0x504dd8(0x267)][_0x504dd8(0x4be)](_0x10d215,this['_pendingMutations']);if(S['isTransformMutationsWithChangesetSuccess'](_0x5db72d)){const {c1Prime:_0x2dbba0,m2Prime:_0x46356a}=_0x5db72d;this[_0x504dd8(0x32f)](_0x2dbba0);const _0x166074=this['_injector'][_0x504dd8(0x447)](ce,this[_0x504dd8(0x364)],this[_0x504dd8(0x42a)],_0x46356a,this[_0x504dd8(0x288)]);return this[_0x504dd8(0x513)](),_0x166074[_0x504dd8(0x540)](this['_scheduleTimestamp']?Math[_0x504dd8(0x4e4)](0x0,new Date()[_0x504dd8(0x1cb)]()-this['_scheduleTimestamp']):this[_0x504dd8(0x544)]()),_0x166074;}throw _0x5db72d[_0x504dd8(0x55e)];}catch(_0x301821){return this['_logService'][_0x504dd8(0x55e)](_0x301821),this['_onConflict'](!0x1);}}[_0x38c3ff(0x625)](){const _0x48a815=_0x38c3ff;throw new Error(_0x48a815(0x2cd));}[_0x38c3ff(0x218)](){const _0x34fdfa=_0x38c3ff;throw new Error(_0x34fdfa(0x3fc));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x1dbc4e=_0x38c3ff;return this[_0x1dbc4e(0x513)](),this[_0x1dbc4e(0x3b6)][_0x1dbc4e(0x447)](me,this['unitID'],this[_0x1dbc4e(0x42a)],null,this['_pendingMutations'],this[_0x1dbc4e(0x288)]);}['toggleOnline'](){return this;}[_0x38c3ff(0x540)](_0x3f04f6){const _0x406e90=_0x38c3ff,_0x1a2cb9=_0x3f04f6!=null?_0x3f04f6:this[_0x406e90(0x544)]();this['_scheduleTimestamp']=new Date()[_0x406e90(0x1cb)](),this['_sendingTimer']=window[_0x406e90(0x3bb)](()=>{const _0x21bc69=_0x406e90;this[_0x21bc69(0x513)]();let _0x5f4608=null;switch(this['type']){case ie[_0x21bc69(0x23d)]:{_0x5f4608=jt(this[_0x21bc69(0x34c)],this['unitID'],this['_univerInstanceService'],this[_0x21bc69(0x26b)],this[_0x21bc69(0x1aa)]);break;}case ie[_0x21bc69(0x649)]:{this[_0x21bc69(0x34c)][_0x21bc69(0x318)](_0x32c6f3=>_0x32c6f3['id']===ye['RichTextEditingMutation']['id'])?_0x5f4608=xi(this['_pendingMutations'],this[_0x21bc69(0x364)],this[_0x21bc69(0x393)],this['_revisionService'],this[_0x21bc69(0x1aa)]):_0x5f4608=jt(this[_0x21bc69(0x34c)],this[_0x21bc69(0x364)],this[_0x21bc69(0x393)],this[_0x21bc69(0x26b)],this[_0x21bc69(0x1aa)]);break;}default:throw new Error(_0x21bc69(0x509)+this[_0x21bc69(0x42a)]+_0x21bc69(0x3d0));}const {changeset:_0x2110f9,pendingMutations:_0x2aff6b}=_0x5f4608;this['_handler'][_0x21bc69(0x64a)](_0x2110f9);const _0x5a0ef4=_0x2aff6b[_0x21bc69(0x58c)]?this['_injector'][_0x21bc69(0x447)](le,this[_0x21bc69(0x364)],this[_0x21bc69(0x42a)],_0x2110f9,_0x2aff6b,this[_0x21bc69(0x288)],void 0x0):this[_0x21bc69(0x3b6)]['createInstance'](fe,this[_0x21bc69(0x364)],this[_0x21bc69(0x42a)],_0x2110f9,this[_0x21bc69(0x288)]);_0x5a0ef4[_0x21bc69(0x3f3)](),this[_0x21bc69(0x288)][_0x21bc69(0x1ff)](this,_0x5a0ef4);},_0x1a2cb9);}['_getSendChangesetTimeout'](){const _0x20de3a=_0x38c3ff;var _0x24722b;const _0x37c952=this['_configService'][_0x20de3a(0x556)](te);return(_0x24722b=_0x37c952==null?void 0x0:_0x37c952['sendChangesetTimeout'])!=null?_0x24722b:kn;}[_0x38c3ff(0x412)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x392174=_0x38c3ff;this[_0x392174(0x463)]!=null&&(clearTimeout(this[_0x392174(0x463)]),this[_0x392174(0x463)]=null);}[_0x38c3ff(0x205)](_0x5a5591){const _0x351e0f=_0x38c3ff;return this[_0x351e0f(0x513)](),this[_0x351e0f(0x3b6)][_0x351e0f(0x447)](ve,this[_0x351e0f(0x364)],this[_0x351e0f(0x42a)],null,this[_0x351e0f(0x34c)],this['_handler'],_0x5a5591);}};ce=Ie([N(0x4,a['Inject'](a[_0x38c3ff(0x50e)])),N(0x5,a[_0x38c3ff(0x2af)](S['RevisionService'])),N(0x6,a[_0x38c3ff(0x2af)](exports['LocalCacheService'])),N(0x7,a[_0x38c3ff(0x2af)](exports[_0x38c3ff(0x41e)])),N(0x8,a[_0x38c3ff(0x626)]),N(0x9,a['ICommandService']),N(0xa,a[_0x38c3ff(0x326)]),N(0xb,S[_0x38c3ff(0x3cc)]),N(0xc,a[_0x38c3ff(0x2a8)]),N(0xd,a[_0x38c3ff(0x1bc)])],ce);let fe=class extends Ce{constructor(_0x5f03cc,_0x5d2ae8,_0x822ffe,_0x4660bf,_0x50b457,_0x26a16d,_0x50c1ea,_0x4c0db0,_0x145b9d,_0x13d82e,_0x1c643d){const _0x1d40b6=_0x38c3ff;super(_0x5f03cc,_0x5d2ae8,_0x822ffe,[],_0x4660bf,_0x4c0db0,_0x1c643d,_0x26a16d,_0x50c1ea),I(this,_0x1d40b6(0x2b7),_0x1d40b6(0x2dc)),I(this,_0x1d40b6(0x3b0),0x0),I(this,_0x1d40b6(0x2f9)),I(this,_0x1d40b6(0x317)),(this[_0x1d40b6(0x3b6)]=_0x50b457,this[_0x1d40b6(0x4ce)]=_0x145b9d,this[_0x1d40b6(0x267)]=_0x13d82e);}[_0x38c3ff(0x47d)](_0x136175){const _0x1c060d=_0x38c3ff;this[_0x1c060d(0x513)]();const _0x43032a=this[_0x1c060d(0x3b6)][_0x1c060d(0x447)](le,this['unitID'],this[_0x1c060d(0x42a)],this['_awaitingChangeset'],[_0x136175],this[_0x1c060d(0x288)],this[_0x1c060d(0x2f9)]);return _0x43032a['_updateLocalCache'](),_0x43032a;}['onRemoteChangeset'](_0x3222f1){const _0x680aa2=_0x38c3ff;if(this['_checkMissing'](_0x3222f1))return this[_0x680aa2(0x513)](),this[_0x680aa2(0x3b6)]['createInstance'](re,this[_0x680aa2(0x364)],this[_0x680aa2(0x42a)],this[_0x680aa2(0x4a6)],[],null,[_0x3222f1],this[_0x680aa2(0x288)]);try{const _0x575156=this[_0x680aa2(0x267)][_0x680aa2(0x2f7)]([_0x3222f1],[this[_0x680aa2(0x4a6)]],!0x1);if(S[_0x680aa2(0x3ee)](_0x575156)){const {c1Prime:_0x57158f,c2Prime:_0x232729}=_0x575156;this[_0x680aa2(0x32f)](_0x57158f[0x0]),_0x232729[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x680aa2(0x513)]();const _0x8062e6=this[_0x680aa2(0x3b6)][_0x680aa2(0x447)](fe,this['unitID'],this[_0x680aa2(0x42a)],_0x232729[0x0],this[_0x680aa2(0x288)]);return _0x8062e6[_0x680aa2(0x3f3)](),_0x8062e6;}return this[_0x680aa2(0x205)](!0x1);}catch(_0x3d312b){return this[_0x680aa2(0x4ce)][_0x680aa2(0x55e)](_0x3d312b),this[_0x680aa2(0x205)](!0x1);}}[_0x38c3ff(0x625)](_0x2c32ad){const _0x46d1c8=_0x38c3ff;this[_0x46d1c8(0x513)]();const _0x460939=this[_0x46d1c8(0x26b)][_0x46d1c8(0x451)](this['unitID']);if(_0x2c32ad[_0x46d1c8(0x623)]<_0x460939-0x1)return this;if(this[_0x46d1c8(0x20f)](_0x2c32ad))return this[_0x46d1c8(0x3b6)]['createInstance'](re,this[_0x46d1c8(0x364)],this['type'],null,[],this[_0x46d1c8(0x4a6)],[],this['_handler']);this[_0x46d1c8(0x298)]();const _0xe14499=this['_injector'][_0x46d1c8(0x447)](Oe,this[_0x46d1c8(0x364)],this['type'],this[_0x46d1c8(0x288)]);return _0xe14499[_0x46d1c8(0x3f3)](),_0xe14499;}[_0x38c3ff(0x218)](_0x362876){const _0xf14502=_0x38c3ff;return this[_0xf14502(0x205)](!!(_0x362876!=null&&_0x362876[_0xf14502(0x4bc)]));}[_0x38c3ff(0x2f8)](_0x2385de){const _0x5b410e=_0x38c3ff;return this[_0x5b410e(0x3b0)]>vn?this['toggleOffline']():(this[_0x5b410e(0x2f9)]=fn(this[_0x5b410e(0x3b0)],{'timeout':this[_0x5b410e(0x3b0)],'reqId':_0x2385de[_0x5b410e(0x1e8)]}),this[_0x5b410e(0x317)]=this[_0x5b410e(0x2f9)][_0x5b410e(0x47b)](({reqId:_0x1ecf75,timeout:_0x2abcc5})=>{const _0x472ab8=_0x5b410e;this[_0x472ab8(0x606)](_0x1ecf75,_0x2abcc5);}),this);}[_0x38c3ff(0x300)](){const _0x417224=_0x38c3ff;return this[_0x417224(0x513)](),this['_injector'][_0x417224(0x447)](me,this[_0x417224(0x364)],this[_0x417224(0x42a)],this[_0x417224(0x4a6)],[],this[_0x417224(0x288)]);}['toggleOnline'](){return this;}[_0x38c3ff(0x412)](){const _0x3668d6=_0x38c3ff;this[_0x3668d6(0x288)][_0x3668d6(0x64a)](this[_0x3668d6(0x4a6)]);}[_0x38c3ff(0x205)](_0x5bc851){const _0x47e98d=_0x38c3ff;return this[_0x47e98d(0x513)](),this['_injector'][_0x47e98d(0x447)](ve,this['unitID'],this['type'],this[_0x47e98d(0x4a6)],[],this[_0x47e98d(0x288)],_0x5bc851);}[_0x38c3ff(0x606)](_0x552782,_0x50d0ef){const _0x2ac3a2=_0x38c3ff;var _0x6e933e;_0x552782===((_0x6e933e=this[_0x2ac3a2(0x4a6)])==null?void 0x0:_0x6e933e[_0x2ac3a2(0x1e8)])&&(this[_0x2ac3a2(0x412)](),this[_0x2ac3a2(0x3b0)]=_0x50d0ef===0x0?0x3e8:_0x50d0ef*0x2);}['_clearScheduledTask'](){const _0x5c6632=_0x38c3ff;var _0xdade4;(_0xdade4=this[_0x5c6632(0x317)])==null||_0xdade4[_0x5c6632(0x25d)](),this['_resendTimeout']=0x0;}};fe=Ie([N(0x4,a[_0x38c3ff(0x2af)](a['Injector'])),N(0x5,a[_0x38c3ff(0x2af)](S['RevisionService'])),N(0x6,a[_0x38c3ff(0x2af)](exports['LocalCacheService'])),N(0x7,a['ICommandService']),N(0x8,a['ILogService']),N(0x9,S[_0x38c3ff(0x3cc)]),N(0xa,a[_0x38c3ff(0x1bc)])],fe);let le=class extends Ce{constructor(_0x3f0686,_0x10b6a4,_0xce7aae,_0x47c743,_0xa55bcb,_0x326207,_0x21464c,_0x301a1c,_0x20eb36,_0x4343f5,_0x16f11a,_0x285da7,_0x198b00){const _0xddc3ab=_0x38c3ff;super(_0x3f0686,_0x10b6a4,_0xce7aae,_0x47c743,_0xa55bcb,_0x4343f5,_0x198b00,_0x301a1c,_0x20eb36),I(this,'status','awaiting_with_pending'),I(this,'_resendTimeout',0x0),I(this,_0xddc3ab(0x2f9)),I(this,_0xddc3ab(0x317)),(this[_0xddc3ab(0x3b6)]=_0x21464c,this[_0xddc3ab(0x4ce)]=_0x16f11a,this[_0xddc3ab(0x267)]=_0x285da7,_0x326207&&(this['_resendTimer']=_0x326207,this[_0xddc3ab(0x317)]=this['_resendTimer'][_0xddc3ab(0x47b)](({reqId:_0x5694de,timeout:_0x26f458})=>{this['_resendWithTimeout'](_0x5694de,_0x26f458);})));}['appendMutation'](_0x204250){const _0x197451=_0x38c3ff;return this[_0x197451(0x34c)][_0x197451(0x473)](_0x204250),this;}[_0x38c3ff(0x1a0)](_0x3b96dd){const _0x547c30=_0x38c3ff;if(this[_0x547c30(0x20f)](_0x3b96dd))return this[_0x547c30(0x513)](),this[_0x547c30(0x3b6)][_0x547c30(0x447)](re,this['unitID'],this[_0x547c30(0x42a)],this[_0x547c30(0x4a6)],this[_0x547c30(0x34c)],null,[_0x3b96dd],this['_handler']);try{const _0x16199d=this[_0x547c30(0x267)][_0x547c30(0x2f7)]([_0x3b96dd],[this['_awaitingChangeset']],!0x1);if(S[_0x547c30(0x3ee)](_0x16199d)){const {c1Prime:_0x5f4e48,c2Prime:_0x27f32c}=_0x16199d,_0xdcce19=this['_transformService'][_0x547c30(0x4be)](_0x5f4e48[0x0],this['_pendingMutations']);if(S[_0x547c30(0x38b)](_0xdcce19)){const {c1Prime:_0x14369b,m2Prime:_0xc29797}=_0xdcce19;return this['_executeRemoteChangeset'](_0x14369b),_0x27f32c[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x547c30(0x513)](),this[_0x547c30(0x3b6)][_0x547c30(0x447)](le,this[_0x547c30(0x364)],this[_0x547c30(0x42a)],_0x27f32c[0x0],_0xc29797,this[_0x547c30(0x288)],void 0x0);}throw _0xdcce19[_0x547c30(0x55e)];}throw _0x16199d['error'];}catch(_0x35424b){return this[_0x547c30(0x4ce)][_0x547c30(0x55e)](_0x35424b),this[_0x547c30(0x205)](!0x1);}}[_0x38c3ff(0x625)](_0xd1632f){const _0x1fd15a=_0x38c3ff;if(this['_clearScheduledTask'](),this[_0x1fd15a(0x20f)](_0xd1632f))return this[_0x1fd15a(0x3b6)][_0x1fd15a(0x447)](re,this[_0x1fd15a(0x364)],this[_0x1fd15a(0x42a)],null,this['_pendingMutations'],this[_0x1fd15a(0x4a6)],[],this[_0x1fd15a(0x288)]);this[_0x1fd15a(0x298)]();const _0x59c3a5=this[_0x1fd15a(0x3b6)][_0x1fd15a(0x447)](ce,this[_0x1fd15a(0x364)],this[_0x1fd15a(0x42a)],this['_pendingMutations'],this['_handler']);return _0x59c3a5[_0x1fd15a(0x540)](),_0x59c3a5[_0x1fd15a(0x3f3)](),_0x59c3a5;}[_0x38c3ff(0x218)](_0x577514){const _0x5009a4=_0x38c3ff;return this[_0x5009a4(0x205)](!!(_0x577514!=null&&_0x577514[_0x5009a4(0x4bc)]));}[_0x38c3ff(0x2f8)](_0x20316f){const _0x259a26=_0x38c3ff;return this['_resendTimeout']>vn?this[_0x259a26(0x300)]():(this[_0x259a26(0x2f9)]=fn(this['_resendTimeout'],{'timeout':this[_0x259a26(0x3b0)],'reqId':_0x20316f[_0x259a26(0x1e8)]}),this[_0x259a26(0x317)]=this[_0x259a26(0x2f9)][_0x259a26(0x47b)](({reqId:_0x3691c2,timeout:_0x351279})=>{this['_resendWithTimeout'](_0x3691c2,_0x351279);}),this);}['toggleOffline'](){const _0x44a10e=_0x38c3ff;return this[_0x44a10e(0x513)](),this[_0x44a10e(0x3b6)]['createInstance'](me,this[_0x44a10e(0x364)],this[_0x44a10e(0x42a)],this[_0x44a10e(0x4a6)],this[_0x44a10e(0x34c)],this['_handler']);}[_0x38c3ff(0x4b2)](){return this;}['resend'](){const _0x494e71=_0x38c3ff;this[_0x494e71(0x288)][_0x494e71(0x64a)](this[_0x494e71(0x4a6)]);}[_0x38c3ff(0x205)](_0x2cdddf){const _0x2c32d4=_0x38c3ff;return this[_0x2c32d4(0x513)](),this[_0x2c32d4(0x3b6)][_0x2c32d4(0x447)](ve,this[_0x2c32d4(0x364)],this[_0x2c32d4(0x42a)],null,this[_0x2c32d4(0x34c)],this[_0x2c32d4(0x288)],_0x2cdddf);}[_0x38c3ff(0x606)](_0x4fa73a,_0x1c01e6){const _0x4913cd=_0x38c3ff;var _0x59e104;_0x4fa73a===((_0x59e104=this[_0x4913cd(0x4a6)])==null?void 0x0:_0x59e104[_0x4913cd(0x1e8)])&&(this[_0x4913cd(0x412)](),this[_0x4913cd(0x3b0)]=_0x1c01e6===0x0?0x3e8:_0x1c01e6*0x2);}[_0x38c3ff(0x513)](){const _0x477c60=_0x38c3ff;var _0x2342da;(_0x2342da=this[_0x477c60(0x317)])==null||_0x2342da[_0x477c60(0x25d)](),this[_0x477c60(0x3b0)]=0x0;}};le=Ie([N(0x6,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),N(0x7,a['Inject'](S['RevisionService'])),N(0x8,a['Inject'](exports[_0x38c3ff(0x227)])),N(0x9,a[_0x38c3ff(0x439)]),N(0xa,a[_0x38c3ff(0x626)]),N(0xb,S[_0x38c3ff(0x3cc)]),N(0xc,a[_0x38c3ff(0x1bc)])],le);let ve=class extends Ce{constructor(_0x1292c2,_0x2938e9,_0x2be1eb,_0x247cfc,_0x30a552,_0x1d5f16=!0x1,_0x15add3,_0x2284c1,_0x20f536,_0x239b0d,_0x405d8e,_0x470ade,_0x2572c7){const _0x11738d=_0x38c3ff;super(_0x1292c2,_0x2938e9,_0x2be1eb,_0x247cfc,_0x30a552,_0x2284c1,_0x20f536,_0x405d8e,_0x239b0d),I(this,_0x11738d(0x2b7),'conflict'),(this['_isPermissionRej']=_0x1d5f16,this['_permissionService']=_0x15add3,this[_0x11738d(0x203)]=_0x470ade,this[_0x11738d(0x29a)]=_0x2572c7,this[_0x11738d(0x5f9)](),this[_0x11738d(0x310)](),this['_disableEditing']());}[_0x38c3ff(0x47d)](){return this;}[_0x38c3ff(0x1a0)](){return this;}[_0x38c3ff(0x625)](){return this;}[_0x38c3ff(0x218)](){return this;}[_0x38c3ff(0x2f8)](){return this;}[_0x38c3ff(0x300)](){return this;}[_0x38c3ff(0x4b2)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x38c3ff(0x310)](){const _0x186d03=_0x38c3ff;this[_0x186d03(0x2ac)][_0x186d03(0x3f6)](this['unitID'],this['type'],null,[]);}[_0x38c3ff(0x5f9)](){const _0x44d448=_0x38c3ff;this[_0x44d448(0x4c8)]?this[_0x44d448(0x29a)][_0x44d448(0x37c)]({'title':this[_0x44d448(0x203)]['t'](_0x44d448(0x35f)),'content':this[_0x44d448(0x203)]['t'](_0x44d448(0x247)),'type':_0x44d448(0x55e),'duration':0x0}):this[_0x44d448(0x29a)][_0x44d448(0x37c)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x44d448(0x203)]['t'](_0x44d448(0x3ae)),'type':'error','duration':0x0});}[_0x38c3ff(0x62d)](){const _0x53c148=_0x38c3ff;this[_0x53c148(0x54b)]['updatePermissionPoint'](new k[(_0x53c148(0x38f))](this['unitID'])['id'],!0x1);}};ve=Ie([N(0x6,a['Inject'](a[_0x38c3ff(0x421)])),N(0x7,a['ICommandService']),N(0x8,a[_0x38c3ff(0x1bc)]),N(0x9,a[_0x38c3ff(0x2af)](exports['LocalCacheService'])),N(0xa,a[_0x38c3ff(0x2af)](S[_0x38c3ff(0x3cb)])),N(0xb,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x222)])),N(0xc,ee[_0x38c3ff(0x36e)])],ve);let me=class extends Ce{constructor(_0x244256,_0x3f2212,_0x2f7517,_0x45ad42,_0x336474,_0x136502,_0x58434e,_0x2b465e,_0x19015f,_0x4dfd73){const _0x19fee0=_0x38c3ff;super(_0x244256,_0x3f2212,_0x2f7517,_0x45ad42,_0x336474,_0x19015f,_0x4dfd73,_0x58434e,_0x2b465e),I(this,_0x19fee0(0x2b7),_0x19fee0(0x647)),this[_0x19fee0(0x3b6)]=_0x136502;}[_0x38c3ff(0x47d)](_0x57a41c){const _0x984993=_0x38c3ff;return this[_0x984993(0x34c)][_0x984993(0x473)](_0x57a41c),this[_0x984993(0x3f3)](),this;}[_0x38c3ff(0x1a0)](_0x55355f){const _0x13d441=_0x38c3ff;throw new Error(_0x13d441(0x2de));}['onRemoteAck'](){const _0x410c24=_0x38c3ff;throw new Error(_0x410c24(0x29c));}[_0x38c3ff(0x218)](){const _0x10259b=_0x38c3ff;throw new Error(_0x10259b(0x428));}[_0x38c3ff(0x2f8)](){return this;}[_0x38c3ff(0x300)](){return this;}[_0x38c3ff(0x4b2)](){const _0x1c886b=_0x38c3ff,{_injector:_0x165c38,_pendingMutations:_0x304ba7,_awaitingChangeset:_0x3177c0,unitID:_0x2d64ee,_handler:_0x59e266,type:_0x58e1fe}=this,_0x37396c=mn(_0x165c38,_0x2d64ee,_0x58e1fe,_0x3177c0,_0x304ba7,_0x59e266);return _0x37396c instanceof ce?_0x37396c['_schedule']():(_0x37396c instanceof le||_0x37396c instanceof fe)&&_0x37396c[_0x1c886b(0x412)](),_0x37396c;}[_0x38c3ff(0x412)](){const _0x1bdd28=_0x38c3ff;throw new Error(_0x1bdd28(0x1b1));}};me=Ie([N(0x5,a['Inject'](a[_0x38c3ff(0x50e)])),N(0x6,a[_0x38c3ff(0x2af)](S['RevisionService'])),N(0x7,a['Inject'](exports[_0x38c3ff(0x227)])),N(0x8,a[_0x38c3ff(0x439)]),N(0x9,a[_0x38c3ff(0x1bc)])],me);let re=class extends Ce{constructor(_0x246b6c,_0xcf84ea,_0x47f76b,_0x2418dd,_0x4f1497,_0x4bccb3,_0x44fc3b,_0x2a521e,_0x325cdc,_0x546fb3,_0xca5a17,_0x26af46,_0x118254,_0x35f8f6){const _0xf2341e=_0x38c3ff;super(_0x246b6c,_0xcf84ea,_0x47f76b,_0x2418dd,_0x44fc3b,_0x26af46,_0x118254,_0x325cdc,_0x546fb3),I(this,'status',_0xf2341e(0x587)),(this[_0xf2341e(0x3d5)]=_0x4f1497,this[_0xf2341e(0x5f8)]=_0x4bccb3,this[_0xf2341e(0x3b6)]=_0x2a521e,this[_0xf2341e(0x4ce)]=_0xca5a17,this['_transformService']=_0x35f8f6);}[_0x38c3ff(0x632)](_0x25ee4c){const _0x34c615=_0x38c3ff;try{const _0x388f3f=[..._0x25ee4c,...this[_0x34c615(0x5f8)]],_0x2048e0=[this[_0x34c615(0x4a6)]||this[_0x34c615(0x3d5)]][_0x34c615(0x576)](_0x1d451c=>!!_0x1d451c);let _0x378981,_0xe8a46b;if(_0x2048e0[_0x34c615(0x58c)]){const _0x2cce72=this['_transformService'][_0x34c615(0x2f7)](_0x388f3f,_0x2048e0,!0x1);if(!S['isTransformChangesetsSuccess'](_0x2cce72))throw _0x2cce72[_0x34c615(0x55e)];_0x378981=_0x2cce72[_0x34c615(0x521)],_0xe8a46b=_0x2cce72['c2Prime'];}else _0x378981=_0x388f3f,_0xe8a46b=[];let _0x5172fb=this[_0x34c615(0x34c)];_0x378981[_0x34c615(0x2d8)](_0x283b08=>{const _0x3ed213=_0x34c615;let _0x1868df;if(_0x5172fb[_0x3ed213(0x58c)]){const _0x3156ef=this[_0x3ed213(0x267)]['transformMutationsWithChangeset'](_0x283b08,_0x5172fb);if(!S[_0x3ed213(0x38b)](_0x3156ef))throw _0x3156ef['error'];_0x1868df=_0x3156ef[_0x3ed213(0x521)],_0x5172fb=_0x3156ef['m2Prime'];}else _0x1868df=_0x283b08;this[_0x3ed213(0x32f)](_0x1868df);}),this[_0x34c615(0x3d5)]&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0xe8a46b['length']&&(_0xe8a46b[0x0][_0x34c615(0x45e)]=this[_0x34c615(0x539)]());let _0x2f7a7a;if(this[_0x34c615(0x4a6)]&&_0x5172fb['length']!==0x0)_0x2f7a7a=this['_injector']['createInstance'](le,this[_0x34c615(0x364)],this[_0x34c615(0x42a)],_0xe8a46b[0x0],_0x5172fb,this['_handler'],void 0x0);else{if(this['_awaitingChangeset']&&_0x5172fb[_0x34c615(0x58c)]===0x0)_0xe8a46b[0x0]['baseRev']=this[_0x34c615(0x539)](),_0x2f7a7a=this[_0x34c615(0x3b6)][_0x34c615(0x447)](fe,this[_0x34c615(0x364)],this[_0x34c615(0x42a)],_0xe8a46b[0x0],this[_0x34c615(0x288)]);else{if(_0x5172fb[_0x34c615(0x58c)]!==0x0){const _0x23c52d=this[_0x34c615(0x3b6)][_0x34c615(0x447)](ce,this[_0x34c615(0x364)],this[_0x34c615(0x42a)],_0x5172fb,this[_0x34c615(0x288)]);_0x23c52d[_0x34c615(0x540)](),_0x2f7a7a=_0x23c52d;}else _0x2f7a7a=this['_injector']['createInstance'](Oe,this[_0x34c615(0x364)],this[_0x34c615(0x42a)],this[_0x34c615(0x288)]);}}return _0x2f7a7a[_0x34c615(0x3f3)](),_0x2f7a7a;}catch(_0x17476d){return this[_0x34c615(0x4ce)][_0x34c615(0x55e)](_0x34c615(0x25f),'failed\x20to\x20apply\x20missed\x20changesets!',_0x17476d),this[_0x34c615(0x3b6)]['createInstance'](ve,this[_0x34c615(0x364)],this[_0x34c615(0x42a)],this[_0x34c615(0x4a6)],this[_0x34c615(0x34c)],this[_0x34c615(0x288)],!0x1);}}['resend'](){const _0xb99cba=_0x38c3ff;throw new Error(_0xb99cba(0x260));}[_0x38c3ff(0x47d)](_0x1157ce){const _0x5807c1=_0x38c3ff;return this[_0x5807c1(0x34c)][_0x5807c1(0x473)](_0x1157ce),this;}[_0x38c3ff(0x1a0)](_0x963969){const _0x178924=_0x38c3ff;return this[_0x178924(0x5f8)][_0x178924(0x473)](_0x963969),this;}[_0x38c3ff(0x625)](_0x7ec3ef){const _0x592209=_0x38c3ff;if(this[_0x592209(0x4a6)])return this[_0x592209(0x3d5)]=this[_0x592209(0x4a6)],this[_0x592209(0x4a6)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x1895e1){const _0x1d92ca=_0x38c3ff;return this[_0x1d92ca(0x205)](!!(_0x1895e1!=null&&_0x1895e1['isPermissionRej']));}[_0x38c3ff(0x2f8)](){return this;}[_0x38c3ff(0x300)](){const _0x36fa51=_0x38c3ff;return this[_0x36fa51(0x3b6)][_0x36fa51(0x447)](me,this[_0x36fa51(0x364)],this[_0x36fa51(0x42a)],this['_awaitingChangeset'],this[_0x36fa51(0x34c)],this[_0x36fa51(0x288)]);}['toggleOnline'](){return this;}[_0x38c3ff(0x205)](_0x3892c6){const _0x2467cd=_0x38c3ff;return this[_0x2467cd(0x3b6)][_0x2467cd(0x447)](ve,this[_0x2467cd(0x364)],this[_0x2467cd(0x42a)],this[_0x2467cd(0x4a6)],this[_0x2467cd(0x34c)],this['_handler'],_0x3892c6);}};re=Ie([N(0x7,a['Inject'](a[_0x38c3ff(0x50e)])),N(0x8,a['Inject'](S[_0x38c3ff(0x3cb)])),N(0x9,a[_0x38c3ff(0x2af)](exports[_0x38c3ff(0x227)])),N(0xa,a[_0x38c3ff(0x626)]),N(0xb,a[_0x38c3ff(0x439)]),N(0xc,a[_0x38c3ff(0x1bc)]),N(0xd,S['ITransformService'])],re);function mn(_0x1c28bc,_0x25200b,_0x478d95,_0x3133dc,_0x158cc0,_0x30a714){const _0xf29f4e=_0x38c3ff;return _0x3133dc&&_0x158cc0[_0xf29f4e(0x58c)]?_0x1c28bc['createInstance'](le,_0x25200b,_0x478d95,_0x3133dc,_0x158cc0,_0x30a714,void 0x0):_0x3133dc?_0x1c28bc[_0xf29f4e(0x447)](fe,_0x25200b,_0x478d95,_0x3133dc,_0x30a714):_0x158cc0[_0xf29f4e(0x58c)]?_0x1c28bc[_0xf29f4e(0x447)](ce,_0x25200b,_0x478d95,_0x158cc0,_0x30a714):_0x1c28bc[_0xf29f4e(0x447)](Oe,_0x25200b,_0x478d95,_0x30a714);}var Bi=Object['defineProperty'],ki=Object[_0x38c3ff(0x336)],yt=(_0x26cde1,_0x72d436,_0x3a5571,_0x577ed3)=>{const _0x183d99=_0x38c3ff;for(var _0x2e387b=_0x577ed3>0x1?void 0x0:_0x577ed3?ki(_0x72d436,_0x3a5571):_0x72d436,_0x458624=_0x26cde1[_0x183d99(0x58c)]-0x1,_0x314342;_0x458624>=0x0;_0x458624--)(_0x314342=_0x26cde1[_0x458624])&&(_0x2e387b=(_0x577ed3?_0x314342(_0x72d436,_0x3a5571,_0x2e387b):_0x314342(_0x2e387b))||_0x2e387b);return _0x577ed3&&_0x2e387b&&Bi(_0x72d436,_0x3a5571,_0x2e387b),_0x2e387b;},H=(_0x25c987,_0x2e557f)=>(_0x2c9a4b,_0x1356ba)=>_0x2e557f(_0x2c9a4b,_0x1356ba,_0x25c987);exports['CollaborationEntity']=class extends a[_0x38c3ff(0x22c)]{constructor(_0x5263b3,_0x5f0afa,_0x5a96c4,_0x564ef2,_0x2ecf2d,_0x128778,_0x448110,_0x2b257b,_0x287821,_0x23db75,_0x598b69,_0x54bdb0,_0x32ed3f){const _0x32ad71=_0x38c3ff;super(),I(this,_0x32ad71(0x572),new A[(_0x32ad71(0x4fc))](null)),I(this,'state$',this[_0x32ad71(0x572)][_0x32ad71(0x4a7)]()),I(this,_0x32ad71(0x1d3)),I(this,_0x32ad71(0x658),!0x1),I(this,'_changesetSessionId',''),I(this,'_changesetReqId',0x0),I(this,'status$',this['state$'][_0x32ad71(0x57b)](A[_0x32ad71(0x4d7)](_0x52f7c7=>_0x52f7c7?_0x52f7c7['status']:q[_0x32ad71(0x33f)]),A['shareReplay'](0x1))),I(this,_0x32ad71(0x2cb),!0x1),I(this,_0x32ad71(0x219),[]),(this[_0x32ad71(0x364)]=_0x5263b3,this[_0x32ad71(0x429)]=_0x5f0afa,this[_0x32ad71(0x5b0)]=_0x5a96c4,this[_0x32ad71(0x3b6)]=_0x564ef2,this[_0x32ad71(0x2ac)]=_0x2ecf2d,this['_compressMutationService']=_0x128778,this[_0x32ad71(0x203)]=_0x448110,this[_0x32ad71(0x26b)]=_0x2b257b,this['_logService']=_0x287821,this['_commandService']=_0x23db75,this[_0x32ad71(0x385)]=_0x598b69,this[_0x32ad71(0x54b)]=_0x54bdb0,this[_0x32ad71(0x302)]=_0x32ed3f);}get[_0x38c3ff(0x220)](){const _0x113130=_0x38c3ff;return this[_0x113130(0x1d3)];}async[_0x38c3ff(0x475)](){const _0x33ff62=_0x38c3ff;if(this[_0x33ff62(0x220)])throw new Error(_0x33ff62(0x38a));await this[_0x33ff62(0x596)]();}[_0x38c3ff(0x55d)](){const _0x59c09e=_0x38c3ff;return this[_0x59c09e(0x658)]=!0x0,a[_0x59c09e(0x2c7)](()=>{const _0x481d0a=_0x59c09e;this[_0x481d0a(0x658)]=!0x1,this[_0x481d0a(0x548)]();});}[_0x38c3ff(0x554)](_0x37cad0){const _0x238233=_0x38c3ff;this['_state']=_0x37cad0,this[_0x238233(0x572)]['next'](_0x37cad0);}async[_0x38c3ff(0x596)](){const _0x362df2=_0x38c3ff;var _0x4823ad;this[_0x362df2(0x554)](await this[_0x362df2(0x5a9)]()),this[_0x362df2(0x302)]&&((_0x4823ad=this['_singleActiveUnitService'])==null||_0x4823ad[_0x362df2(0x357)](this[_0x362df2(0x364)]),this[_0x362df2(0x4bd)](this[_0x362df2(0x302)][_0x362df2(0x5c0)](this[_0x362df2(0x364)])['subscribe'](_0x454b26=>{const _0xcd41d0=_0x362df2;this[_0xcd41d0(0x4ce)][_0xcd41d0(0x405)](_0xcd41d0(0x339),_0xcd41d0(0x620),_0x454b26),_0x454b26===un[_0xcd41d0(0x424)]?(this[_0xcd41d0(0x385)]['show']({'content':this['_localeService']['t'](_0xcd41d0(0x37b)),'type':ge[_0xcd41d0(0x312)][_0xcd41d0(0x42b)]}),this[_0xcd41d0(0x54b)][_0xcd41d0(0x568)](new k[(_0xcd41d0(0x38f))](this[_0xcd41d0(0x364)])['id'],!0x1),this[_0xcd41d0(0x54b)][_0xcd41d0(0x1ac)](!0x1)):(this['_permissionService']['updatePermissionPoint'](new k[(_0xcd41d0(0x38f))](this[_0xcd41d0(0x364)])['id'],!0x0),this[_0xcd41d0(0x54b)][_0xcd41d0(0x1ac)](!0x0));})));let _0x515369=!0x1;return this['disposeWithMe'](this[_0x362df2(0x429)][_0x362df2(0x31f)][_0x362df2(0x47b)](_0x3481f6=>{const _0x452afe=_0x362df2;_0x3481f6===se[_0x452afe(0x1b4)]?this[_0x452afe(0x299)](_0x515369):_0x3481f6===se[_0x452afe(0x33f)]&&(_0x515369=!0x0,this[_0x452afe(0x465)]());})),this['disposeWithMe'](this[_0x362df2(0x429)]['event$'][_0x362df2(0x47b)](_0x3af6f0=>{const _0x4f18e0=_0x362df2;try{switch(_0x3af6f0[_0x4f18e0(0x2bd)]){case S[_0x4f18e0(0x201)][_0x4f18e0(0x5ec)]:{this[_0x4f18e0(0x477)](S[_0x4f18e0(0x5f2)](_0x3af6f0[_0x4f18e0(0x2e1)]));break;}case S['CollaborationEvent']['CHANGESET_ACK']:{this[_0x4f18e0(0x488)](_0x3af6f0[_0x4f18e0(0x2e1)]);break;}case S[_0x4f18e0(0x201)]['CHANGESET_REJ']:{this[_0x4f18e0(0x542)]();break;}case S['CollaborationEvent'][_0x4f18e0(0x57e)]:{this['_onRemoteRetry'](_0x3af6f0['data']);break;}case S[_0x4f18e0(0x201)][_0x4f18e0(0x406)]:{this[_0x4f18e0(0x2b4)](_0x3af6f0[_0x4f18e0(0x2e1)]['changesets']['map'](_0x3f9bfb=>S[_0x4f18e0(0x5f2)](_0x3f9bfb)));break;}case S[_0x4f18e0(0x201)][_0x4f18e0(0x35d)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x4e668b){throw console['error']('Error\x20on\x20receiving\x20event',_0x4e668b),_0x4e668b;}})),this[_0x362df2(0x1d3)];}[_0x38c3ff(0x1c4)](){const _0x43c6c5=_0x38c3ff;this[_0x43c6c5(0x2cb)]=!0x1;}[_0x38c3ff(0x45a)](){const _0x35e639=_0x38c3ff;if(this[_0x35e639(0x2cb)])throw new Error(_0x35e639(0x409));this[_0x35e639(0x2cb)]=!0x0;}['_onLocalMutation'](_0x3e63da){const _0xf5c7e9=_0x38c3ff;this[_0xf5c7e9(0x45a)](),this['_updateState'](this['_state'][_0xf5c7e9(0x47d)](_0x3e63da)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x543a1c){const _0xbf307b=_0x38c3ff;if(!(_0x543a1c[_0xbf307b(0x623)]<=this[_0xbf307b(0x26b)]['getCurrentRevOfUnit'](this[_0xbf307b(0x364)]))){if(this['_collaborationPaused']){this[_0xbf307b(0x219)][_0xbf307b(0x473)](_0x543a1c);return;}this['_applyRemoteChangeset'](_0x543a1c);}}[_0x38c3ff(0x548)](){const _0x51863a=_0x38c3ff;this[_0x51863a(0x219)][_0x51863a(0x2d8)](_0x2e90bb=>this[_0x51863a(0x2d9)](_0x2e90bb)),this[_0x51863a(0x219)]=[];}[_0x38c3ff(0x2d9)](_0x540a39){const _0x3af4d1=_0x38c3ff,_0x33f482=this[_0x3af4d1(0x41b)][_0x3af4d1(0x22f)]['fetchThroughInterceptors'](this[_0x3af4d1(0x41b)][_0x3af4d1(0x22f)][_0x3af4d1(0x1fe)]()[_0x3af4d1(0x34f)])(_0x540a39['mutations'],null)||_0x540a39[_0x3af4d1(0x1cd)],_0x39bedc={..._0x540a39,'mutations':_0x33f482};this[_0x3af4d1(0x45a)](),this[_0x3af4d1(0x554)](this[_0x3af4d1(0x1d3)]['onRemoteChangeset'](_0x39bedc)),this[_0x3af4d1(0x1c4)]();}[_0x38c3ff(0x488)](_0x1b4413){const _0x4343e5=_0x38c3ff;this['_lockTransition'](),this[_0x4343e5(0x554)](this[_0x4343e5(0x1d3)]['onRemoteAck'](_0x1b4413)),this[_0x4343e5(0x1c4)]();}['_onRemoteRejected'](_0x1db494){const _0x5e5fa0=_0x38c3ff;this[_0x5e5fa0(0x45a)](),this['_updateState'](this[_0x5e5fa0(0x1d3)][_0x5e5fa0(0x218)](_0x1db494)),this['_unlockTransition']();}['_onRemoteRetry'](_0x119094){const _0x456bc4=_0x38c3ff;this[_0x456bc4(0x45a)](),this[_0x456bc4(0x554)](this[_0x456bc4(0x1d3)][_0x456bc4(0x2f8)](_0x119094)),this[_0x456bc4(0x1c4)]();}[_0x38c3ff(0x2b4)](_0x349b8e){const _0x1f30bf=_0x38c3ff;if(!(this[_0x1f30bf(0x1d3)]instanceof re))throw new TypeError(_0x1f30bf(0x2b9));const _0x2de868=_0x349b8e[_0x1f30bf(0x4d7)](_0x4b37f7=>{const _0x346e43=_0x1f30bf,_0x2762ab=this[_0x346e43(0x41b)][_0x346e43(0x22f)][_0x346e43(0x3a8)](this[_0x346e43(0x41b)][_0x346e43(0x22f)][_0x346e43(0x1fe)]()[_0x346e43(0x34f)])(_0x4b37f7['mutations'],null)||_0x4b37f7[_0x346e43(0x1cd)];return{..._0x4b37f7,'mutations':_0x2762ab};});this[_0x1f30bf(0x45a)](),this['_updateState'](this[_0x1f30bf(0x1d3)][_0x1f30bf(0x632)](_0x2de868)),this['_unlockTransition']();}['_toggleOffline'](){const _0x30eb13=_0x38c3ff;this[_0x30eb13(0x45a)](),this[_0x30eb13(0x554)](this[_0x30eb13(0x1d3)][_0x30eb13(0x300)]()),this['_unlockTransition']();}[_0x38c3ff(0x299)](_0x4f939e=!0x1){const _0x70f098=_0x38c3ff;this[_0x70f098(0x45a)](),this[_0x70f098(0x554)](this[_0x70f098(0x1d3)][_0x70f098(0x4b2)]()),this['_unlockTransition']();const _0x363d34=this[_0x70f098(0x1d3)];_0x4f939e&&_0x363d34 instanceof Oe&&(this[_0x70f098(0x45a)](),this['_updateState'](_0x363d34[_0x70f098(0x23c)]()),this[_0x70f098(0x1c4)]());}async[_0x38c3ff(0x5a9)](){return new Promise(_0x2e8a40=>{const _0x196b87=_0x4762;this['session']['sessionStatus$'][_0x196b87(0x57b)](A[_0x196b87(0x3f1)](0x1))['subscribe'](async _0x17e323=>{const _0x5a7aee=_0x196b87;_0x2e8a40(await this[_0x5a7aee(0x225)](_0x17e323===se[_0x5a7aee(0x1b4)]));});});}[_0x38c3ff(0x332)](){const _0x4276a5=this['unitID'];return{'onStateChange':(_0x47e841,_0x4bf399)=>{const _0x29624f=_0x4762;if(_0x47e841!==this[_0x29624f(0x1d3)])throw new Error(_0x29624f(0x322)+_0x47e841[_0x29624f(0x2b7)]+_0x29624f(0x2d1)+_0x4bf399[_0x29624f(0x2b7)]+_0x29624f(0x518)+this['_state'][_0x29624f(0x2b7)]);this[_0x29624f(0x554)](_0x4bf399);},'onSendChangeset':_0x17ee42=>{const _0x2012f3=_0x4762;_0x17ee42[_0x2012f3(0x1d9)]||(_0x17ee42[_0x2012f3(0x1d9)]=this[_0x2012f3(0x249)],_0x17ee42['reqId']=++this[_0x2012f3(0x3ef)]);const _0x31c9fd={'eventID':S[_0x2012f3(0x201)][_0x2012f3(0x512)],'data':{'unitID':_0x17ee42[_0x2012f3(0x364)],'unitType':this[_0x2012f3(0x5b0)],'changeset':_0x17ee42,'memberID':this[_0x2012f3(0x429)][_0x2012f3(0x255)]()}};this['session'][_0x2012f3(0x5bc)](_0x31c9fd,this[_0x2012f3(0x364)]);},'onMissingChangesets':({from:_0x343e69,to:_0xe5d6fe})=>{const _0xcfd1cf=_0x4762;this[_0xcfd1cf(0x4ce)][_0xcfd1cf(0x405)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x343e69+_0xcfd1cf(0x50c)+_0xe5d6fe);const _0x2c7c67={'eventID':S[_0xcfd1cf(0x201)]['FETCH_MISSING'],'data':{'unitID':_0x4276a5,'unitType':this[_0xcfd1cf(0x5b0)],'from':_0x343e69,'to':_0xe5d6fe}};this[_0xcfd1cf(0x429)][_0xcfd1cf(0x5bc)](_0x2c7c67,this[_0xcfd1cf(0x364)]);}};}async[_0x38c3ff(0x225)](_0xc14a62){const _0x40342d=_0x38c3ff;var _0x34de76,_0x1606e9;const _0x4501d4=await this[_0x40342d(0x2ac)][_0x40342d(0x1f2)](this[_0x40342d(0x364)]),_0x1ef694=(_0x34de76=_0x4501d4==null?void 0x0:_0x4501d4[_0x40342d(0x1cd)])!=null?_0x34de76:[],_0x3bc5d7=(_0x1606e9=_0x4501d4==null?void 0x0:_0x4501d4[_0x40342d(0x64b)])!=null?_0x1606e9:null,_0x25f060=!!(_0x3bc5d7!=null&&_0x3bc5d7[_0x40342d(0x1d9)])&&!!(_0x3bc5d7!=null&&_0x3bc5d7[_0x40342d(0x1e8)]);this['_changesetSessionId']=_0x25f060?_0x3bc5d7[_0x40342d(0x1d9)]:mi(),this[_0x40342d(0x3ef)]=_0x25f060?_0x3bc5d7['reqId']:0x0;const _0x5aeab6=this[_0x40342d(0x364)];try{this[_0x40342d(0x1d6)](_0x3bc5d7,_0x1ef694);}catch(_0x414f9f){this[_0x40342d(0x4ce)][_0x40342d(0x55e)](_0x414f9f);}const _0x235eda=this['_createHandler']();if(_0xc14a62){const _0x453b67=mn(this['_injector'],_0x5aeab6,this[_0x40342d(0x5b0)],_0x3bc5d7,_0x1ef694,_0x235eda);return _0x453b67 instanceof ce?_0x453b67[_0x40342d(0x540)]():(_0x453b67 instanceof le||_0x453b67 instanceof fe)&&_0x453b67[_0x40342d(0x412)](),_0x453b67;}return this['_injector'][_0x40342d(0x447)](me,_0x5aeab6,this[_0x40342d(0x5b0)],_0x3bc5d7,_0x1ef694,_0x235eda);}[_0x38c3ff(0x1d6)](_0x463ad2,_0x42427b){const _0x3335bb=_0x38c3ff;var _0x2689fb,_0x30be6b;const _0x52bb69=this[_0x3335bb(0x41b)]['interceptor'][_0x3335bb(0x3a8)](this[_0x3335bb(0x41b)]['interceptor'][_0x3335bb(0x1fe)]()[_0x3335bb(0x34f)]);(_0x2689fb=_0x52bb69((_0x463ad2==null?void 0x0:_0x463ad2[_0x3335bb(0x1cd)])||[],null))==null||_0x2689fb['forEach'](_0x1a32e0=>this[_0x3335bb(0x4f6)][_0x3335bb(0x4fe)](_0x1a32e0['id'],_0x1a32e0['params'])),(_0x30be6b=_0x52bb69(_0x42427b||[],null))==null||_0x30be6b[_0x3335bb(0x2d8)](_0x489e78=>this[_0x3335bb(0x4f6)][_0x3335bb(0x4fe)](_0x489e78['id'],_0x489e78['params']));}},exports[_0x38c3ff(0x486)]=yt([H(0x3,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),H(0x4,a[_0x38c3ff(0x2af)](exports[_0x38c3ff(0x227)])),H(0x5,a['Inject'](S[_0x38c3ff(0x434)])),H(0x6,a[_0x38c3ff(0x2af)](a['LocaleService'])),H(0x7,a[_0x38c3ff(0x2af)](S[_0x38c3ff(0x3cb)])),H(0x8,a[_0x38c3ff(0x626)]),H(0x9,a['ICommandService']),H(0xa,ee['IMessageService']),H(0xb,a[_0x38c3ff(0x421)]),H(0xc,a[_0x38c3ff(0x5e2)](qe))],exports[_0x38c3ff(0x486)]),exports[_0x38c3ff(0x497)]=class extends exports[_0x38c3ff(0x486)]{constructor(_0x344560,_0x49d892,_0x456395,_0x2fc87c,_0x49d6ba,_0x485aca,_0xdb9879,_0x12e46a,_0x25c333,_0x550d17,_0x54219a,_0x2a43b4,_0x2c335a,_0x3bedcd,_0x3f3a22,_0x4068f2,_0x10348d,_0x10c5ff){const _0x4d72cd=_0x38c3ff;super(_0x344560,_0x456395,_0x49d892,_0x2fc87c,_0x49d6ba,_0x485aca,_0xdb9879,_0x12e46a,_0x3bedcd,_0x3f3a22,_0x4068f2,_0x10348d,_0x10c5ff),this[_0x4d72cd(0x364)]=_0x344560,this['type']=_0x49d892,this['_docStateChangeManagerService']=_0x25c333,this[_0x4d72cd(0x271)]=_0x550d17,this[_0x4d72cd(0x54a)]=_0x54219a,this[_0x4d72cd(0x3d1)]=_0x2a43b4,this[_0x4d72cd(0x37a)]=_0x2c335a;}[_0x38c3ff(0x332)](){const _0x1dae58=_0x38c3ff,_0x200ff6=super['_createHandler']();return _0x200ff6[_0x1dae58(0x505)]=_0x15a3b5=>this[_0x1dae58(0x271)]['transformIMECache'](_0x15a3b5),_0x200ff6['onTransformState']=_0x4d9b05=>this[_0x1dae58(0x54a)]['transformStateCache'](_0x4d9b05),_0x200ff6[_0x1dae58(0x60a)]=_0xf0ecae=>this[_0x1dae58(0x3d1)][_0x1dae58(0x265)](_0xf0ecae),_0x200ff6['onSyncEditingCollabCursor']=_0x13602e=>this[_0x1dae58(0x37a)][_0x1dae58(0x1bf)](_0x13602e),_0x200ff6[_0x1dae58(0x2d2)]=_0x497707=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x497707),_0x200ff6[_0x1dae58(0x506)]=_0x284224=>this[_0x1dae58(0x54a)][_0x1dae58(0x5a7)](_0x284224),_0x200ff6;}async[_0x38c3ff(0x596)](){const _0x2396b4=_0x38c3ff,_0x436c0d=await super[_0x2396b4(0x596)]();return this[_0x2396b4(0x5ca)][_0x2396b4(0x1be)][_0x2396b4(0x57b)](A[_0x2396b4(0x3fb)](this[_0x2396b4(0x5ff)]))[_0x2396b4(0x47b)](_0x387bb7=>{const _0x34decc=_0x2396b4;if(_0x387bb7==null)return;const {unitId:_0x26fdb9,redoState:_0x4da5de,commandId:_0x1b9c5b}=_0x387bb7;if(_0x26fdb9!==this[_0x34decc(0x364)])return;const _0x26a1f7={'id':_0x1b9c5b,'type':a['CommandType'][_0x34decc(0x4d4)],'params':{'unitId':_0x26fdb9,'actions':_0x4da5de[_0x34decc(0x1c8)],'textRanges':null}};this[_0x34decc(0x52c)](_0x26a1f7);}),_0x436c0d;}},exports[_0x38c3ff(0x497)]=yt([H(0x3,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),H(0x4,a[_0x38c3ff(0x2af)](exports[_0x38c3ff(0x227)])),H(0x5,a[_0x38c3ff(0x2af)](S[_0x38c3ff(0x434)])),H(0x6,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x222)])),H(0x7,a[_0x38c3ff(0x2af)](S[_0x38c3ff(0x3cb)])),H(0x8,a[_0x38c3ff(0x2af)](J[_0x38c3ff(0x5b9)])),H(0x9,a['Inject'](Be)),H(0xa,a['Inject'](We)),H(0xb,a['Inject'](Fe)),H(0xc,a['Inject'](Rt)),H(0xd,a[_0x38c3ff(0x626)]),H(0xe,a[_0x38c3ff(0x439)]),H(0xf,ee[_0x38c3ff(0x5d6)]),H(0x10,a['IPermissionService']),H(0x11,a[_0x38c3ff(0x5e2)](qe))],exports['DocCollaborationEntity']),exports[_0x38c3ff(0x541)]=class extends exports[_0x38c3ff(0x486)]{constructor(_0x47b71b,_0xb6ea0d,_0x556d53,_0x5c16c4,_0x15de84,_0xb3a5ce,_0x544fef,_0x448f64,_0x263996,_0x1dd72c,_0x25d229,_0x3cdbd4,_0x246a62,_0x3bd9c8){const _0x5b1ec4=_0x38c3ff;super(_0x47b71b,_0x556d53,_0xb6ea0d,_0x5c16c4,_0x15de84,_0xb3a5ce,_0x544fef,_0x448f64,_0x1dd72c,_0x25d229,_0x3cdbd4,_0x246a62,_0x3bd9c8),this[_0x5b1ec4(0x364)]=_0x47b71b,this[_0x5b1ec4(0x42a)]=_0xb6ea0d,this[_0x5b1ec4(0x1ea)]=_0x263996;}['_createHandler'](){const _0x529e7b=_0x38c3ff,_0xa44a95=super[_0x529e7b(0x332)]();return _0xa44a95[_0x529e7b(0x60a)]=_0x1c7810=>this[_0x529e7b(0x1ea)]['transformSelections'](_0x1c7810),_0xa44a95;}async[_0x38c3ff(0x596)](){const _0x21365=_0x38c3ff,_0x463bab=await super[_0x21365(0x596)]();return this[_0x21365(0x4bd)](this[_0x21365(0x4f6)][_0x21365(0x4bb)]((_0xf40e42,_0x2bc423)=>{const _0x4061d7=_0x21365;if(_0xf40e42[_0x4061d7(0x42a)]!==a[_0x4061d7(0x301)][_0x4061d7(0x4d4)]||_0x2bc423!=null&&_0x2bc423[_0x4061d7(0x291)]||_0x2bc423!=null&&_0x2bc423[_0x4061d7(0x2ad)])return;const _0x476222=_0xf40e42['params'];if((_0x476222==null?void 0x0:_0x476222[_0x4061d7(0x492)])!==this[_0x4061d7(0x364)])return;const _0x53d2cc=_0xf40e42,_0x40d279=this[_0x4061d7(0x41b)]['interceptor'][_0x4061d7(0x3a8)](this['_compressMutationService'][_0x4061d7(0x22f)]['getInterceptPoints']()[_0x4061d7(0x330)])([_0x53d2cc],null)||[_0x53d2cc];this[_0x4061d7(0x52c)](_0x40d279[0x0]);})),_0x463bab;}},exports[_0x38c3ff(0x541)]=yt([H(0x3,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),H(0x4,a['Inject'](exports[_0x38c3ff(0x227)])),H(0x5,a[_0x38c3ff(0x2af)](S[_0x38c3ff(0x434)])),H(0x6,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x222)])),H(0x7,a['Inject'](S[_0x38c3ff(0x3cb)])),H(0x8,a[_0x38c3ff(0x2af)](ke)),H(0x9,a[_0x38c3ff(0x626)]),H(0xa,a['ICommandService']),H(0xb,ee['IMessageService']),H(0xc,a[_0x38c3ff(0x421)]),H(0xd,a[_0x38c3ff(0x5e2)](qe))],exports[_0x38c3ff(0x541)]);var Wi=Object[_0x38c3ff(0x1c1)],Fi=Object[_0x38c3ff(0x336)],Vi=(_0xe03d9e,_0x35df9e,_0x1a63ae,_0x3ab021)=>{const _0x590d4c=_0x38c3ff;for(var _0x508f8d=_0x3ab021>0x1?void 0x0:_0x3ab021?Fi(_0x35df9e,_0x1a63ae):_0x35df9e,_0x58c55e=_0xe03d9e[_0x590d4c(0x58c)]-0x1,_0x433b98;_0x58c55e>=0x0;_0x58c55e--)(_0x433b98=_0xe03d9e[_0x58c55e])&&(_0x508f8d=(_0x3ab021?_0x433b98(_0x35df9e,_0x1a63ae,_0x508f8d):_0x433b98(_0x508f8d))||_0x508f8d);return _0x3ab021&&_0x508f8d&&Wi(_0x35df9e,_0x1a63ae,_0x508f8d),_0x508f8d;},tt=(_0x56bc8f,_0x47282d)=>(_0x441b8f,_0xc63463)=>_0x47282d(_0x441b8f,_0xc63463,_0x56bc8f);exports[_0x38c3ff(0x571)]=class extends a['RxDisposable']{constructor(_0x91e8b,_0x164a8b,_0x48d817){const _0x404e8f=_0x38c3ff;super(),I(this,_0x404e8f(0x325),new Map()),I(this,'_entityInit$',new A[(_0x404e8f(0x3cf))]()),(this[_0x404e8f(0x3b6)]=_0x91e8b,this[_0x404e8f(0x37f)]=_0x164a8b,this['_univerInstanceService']=_0x48d817,this[_0x404e8f(0x596)]());}[_0x38c3ff(0x2da)](){const _0x5efb40=_0x38c3ff;super[_0x5efb40(0x2da)](),this['_entities']['forEach'](_0x4e87f6=>_0x4e87f6[_0x5efb40(0x2da)]()),this[_0x5efb40(0x325)][_0x5efb40(0x372)]();}[_0x38c3ff(0x41a)](_0x492848){const _0x3176a6=_0x38c3ff;var _0x2e5a12;return(_0x2e5a12=this[_0x3176a6(0x325)][_0x3176a6(0x585)](_0x492848))!=null?_0x2e5a12:null;}[_0x38c3ff(0x467)](_0x414260){const _0x3a6e2a=_0x38c3ff,_0x350211=this[_0x3a6e2a(0x41a)](_0x414260);return _0x350211?A['of'](_0x350211):this['_entityInit$'][_0x3a6e2a(0x57b)](V[_0x3a6e2a(0x576)](_0x14c08a=>_0x14c08a['unitID']===_0x414260));}[_0x38c3ff(0x596)](){const _0x42162d=_0x38c3ff;this[_0x42162d(0x393)][_0x42162d(0x23f)](a[_0x42162d(0x27f)][_0x42162d(0x23d)])[_0x42162d(0x57b)](A[_0x42162d(0x3fb)](this[_0x42162d(0x5ff)]),V[_0x42162d(0x636)](0x10))[_0x42162d(0x47b)](async _0x42094c=>{const _0x1c1f3a=_0x42162d,_0x2e10c4=_0x42094c[_0x1c1f3a(0x2ee)](),_0x145647=await this[_0x1c1f3a(0x399)](_0x2e10c4,ie[_0x1c1f3a(0x23d)]);this[_0x1c1f3a(0x325)][_0x1c1f3a(0x3e8)](_0x2e10c4,_0x145647);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x42162d(0x27f)][_0x42162d(0x649)])['pipe'](A['takeUntil'](this[_0x42162d(0x5ff)]),V[_0x42162d(0x636)](0x10))['pipe'](V[_0x42162d(0x576)](_0x1715cb=>!_0x1715cb['getUnitId']()['startsWith']('__')))[_0x42162d(0x47b)](async _0x27d33c=>{const _0x5838de=_0x42162d,_0x42af39=_0x27d33c['getUnitId'](),_0x4960f7=await this[_0x5838de(0x399)](_0x42af39,ie[_0x5838de(0x649)]);this[_0x5838de(0x325)][_0x5838de(0x3e8)](_0x42af39,_0x4960f7);}),A['merge'](this[_0x42162d(0x393)][_0x42162d(0x3bc)](a['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x42162d(0x27f)][_0x42162d(0x649)]))['pipe'](A[_0x42162d(0x3fb)](this['dispose$']))[_0x42162d(0x47b)](_0x3a34aa=>{const _0x2f280b=_0x42162d,_0x31dffe=_0x3a34aa['getUnitId'](),_0x109ef3=this[_0x2f280b(0x325)]['get'](_0x31dffe);_0x109ef3&&(_0x109ef3[_0x2f280b(0x2da)](),this[_0x2f280b(0x325)][_0x2f280b(0x1d0)](_0x31dffe));});}async['_startCollaboration'](_0x238a5f,_0xf9b966){const _0x46aa71=_0x38c3ff,_0x1707ce=await this[_0x46aa71(0x37f)][_0x46aa71(0x2aa)](_0x238a5f),_0xfc01fc=this[_0x46aa71(0x3b6)]['createInstance'](this['_getCtorByUniverType'](_0xf9b966),_0x238a5f,_0xf9b966,_0x1707ce);return await _0xfc01fc[_0x46aa71(0x475)](),this[_0x46aa71(0x2a3)][_0x46aa71(0x4c4)](_0xfc01fc),_0xfc01fc;}['_getCtorByUniverType'](_0x147edf){const _0x11e805=_0x38c3ff;switch(_0x147edf){case ie['UNIVER_DOC']:return exports[_0x11e805(0x497)];case ie[_0x11e805(0x23d)]:return exports[_0x11e805(0x541)];default:throw new Error(_0x11e805(0x50a)+_0x147edf);}}},exports[_0x38c3ff(0x571)]=Vi([tt(0x0,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),tt(0x1,a[_0x38c3ff(0x2af)](exports[_0x38c3ff(0x1f6)])),tt(0x2,a[_0x38c3ff(0x2a8)])],exports['CollaborationController']);const $t=[_0x38c3ff(0x4b9),_0x38c3ff(0x36f),_0x38c3ff(0x27a),_0x38c3ff(0x1e4),_0x38c3ff(0x1d5),_0x38c3ff(0x22b)];class Ot extends a[_0x38c3ff(0x1a8)]{constructor(){const _0x40004f=_0x38c3ff;super(...arguments),I(this,_0x40004f(0x4fb),new Map()),I(this,'_colorIndex',0x0);}[_0x38c3ff(0x386)](_0x1a1f6e){const _0x191ba8=_0x38c3ff;if(this['_assignedColors'][_0x191ba8(0x599)](_0x1a1f6e))return this[_0x191ba8(0x4fb)][_0x191ba8(0x585)](_0x1a1f6e);const _0xd414b9=$t[this[_0x191ba8(0x57f)]];return this[_0x191ba8(0x57f)]=(this['_colorIndex']+0x1)%$t[_0x191ba8(0x58c)],this['_assignedColors'][_0x191ba8(0x3e8)](_0x1a1f6e,_0xd414b9),_0xd414b9;}}var Gi=Object[_0x38c3ff(0x1c1)],Yi=Object[_0x38c3ff(0x336)],Ki=(_0x266fe6,_0x679b51,_0x41ab2e,_0x173bdc)=>{for(var _0x2caa2c=_0x173bdc>0x1?void 0x0:_0x173bdc?Yi(_0x679b51,_0x41ab2e):_0x679b51,_0x2f8de5=_0x266fe6['length']-0x1,_0x38db91;_0x2f8de5>=0x0;_0x2f8de5--)(_0x38db91=_0x266fe6[_0x2f8de5])&&(_0x2caa2c=(_0x173bdc?_0x38db91(_0x679b51,_0x41ab2e,_0x2caa2c):_0x38db91(_0x2caa2c))||_0x2caa2c);return _0x173bdc&&_0x2caa2c&&Gi(_0x679b51,_0x41ab2e,_0x2caa2c),_0x2caa2c;},Se=(_0x24a181,_0x2da386)=>(_0x158804,_0x2155f1)=>_0x2da386(_0x158804,_0x2155f1,_0x24a181);const qi=0x12c,zi=0x64;let mt=class extends a[_0x38c3ff(0x22c)]{constructor(_0x19a57e,_0xc7dd8e,_0x595af9,_0x50bcf3,_0x1f2a0d,_0x563c1d,_0x35059d,_0x4efd58,_0x4d1dbc){const _0x8309c9=_0x38c3ff;super(),I(this,_0x8309c9(0x416),!0x1),I(this,'_init',!0x1),I(this,_0x8309c9(0x4e8),new A[(_0x8309c9(0x4fc))](new Map())),I(this,_0x8309c9(0x3cd),this[_0x8309c9(0x4e8)]['asObservable']()),I(this,'_roomMembers$',new A[(_0x8309c9(0x4fc))]([])),I(this,_0x8309c9(0x3ad),this[_0x8309c9(0x601)][_0x8309c9(0x57b)](A[_0x8309c9(0x4ca)](qi))),I(this,'_updateLocalCursor',a[_0x8309c9(0x514)](_0x360264=>{const _0x15b423=_0x8309c9,_0x55c2e8={'eventID':S['CollaborationEvent'][_0x15b423(0x46d)],'data':{'unitID':this[_0x15b423(0x364)],'memberID':this[_0x15b423(0x58d)][_0x15b423(0x255)](),'selection':dn(_0x360264)}};this[_0x15b423(0x58d)][_0x15b423(0x5bc)](_0x55c2e8,this[_0x15b423(0x364)]);},zi)),(this['unitID']=_0x19a57e,this[_0x8309c9(0x58d)]=_0xc7dd8e,this[_0x8309c9(0x3b6)]=_0x595af9,this['_colorAssignService']=_0x50bcf3,this[_0x8309c9(0x1aa)]=_0x1f2a0d,this[_0x8309c9(0x1b3)]=_0x563c1d,this[_0x8309c9(0x267)]=_0x35059d,this[_0x8309c9(0x393)]=_0x4efd58,this[_0x8309c9(0x4f6)]=_0x4d1dbc);}get[_0x38c3ff(0x3a2)](){const _0x404097=_0x38c3ff;return this[_0x404097(0x4e8)][_0x404097(0x26d)]();}get[_0x38c3ff(0x3aa)](){const _0x216f03=_0x38c3ff;return this['_roomMembers$'][_0x216f03(0x26d)]();}['dispose'](){const _0x2b3e0f=_0x38c3ff;super[_0x2b3e0f(0x2da)](),this[_0x2b3e0f(0x4e8)][_0x2b3e0f(0x4c4)](new Map()),this['_cursorInfo$'][_0x2b3e0f(0x40d)](),this[_0x2b3e0f(0x601)]['next']([]),this['_roomMembers$'][_0x2b3e0f(0x40d)]();}[_0x38c3ff(0x475)](){const _0xf919c4=_0x38c3ff;this['_init']||(this[_0xf919c4(0x596)]=!0x0,this[_0xf919c4(0x58d)][_0xf919c4(0x31f)][_0xf919c4(0x57b)](A['takeUntil'](this['dispose$']))[_0xf919c4(0x47b)](_0x8a0f18=>{const _0x15ff98=_0xf919c4;_0x8a0f18===se[_0x15ff98(0x1b4)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0xf919c4(0x58d)][_0xf919c4(0x604)][_0xf919c4(0x57b)](A[_0xf919c4(0x3fb)](this[_0xf919c4(0x5ff)]))[_0xf919c4(0x47b)](_0xde3572=>{const _0x5c20fc=_0xf919c4,_0x383b2b=_0xde3572[_0x5c20fc(0x2bd)];_0x383b2b===S['CollaborationEvent'][_0x5c20fc(0x46d)]&&this[_0x5c20fc(0x3f5)](_0xde3572),_0x383b2b===S['CollaborationEvent'][_0x5c20fc(0x5e0)]&&this['_onCursorDelete'](_0xde3572);}),this[_0xf919c4(0x4bd)](this[_0xf919c4(0x4f6)][_0xf919c4(0x4bb)](_0x564f3=>{const _0x182c99=_0xf919c4,_0x4a1a49=_0x564f3['params'];_0x4a1a49!=null&&this[_0x182c99(0x416)]&&_0x564f3['id']===ye[_0x182c99(0x500)]['id']&&_0x4a1a49[_0x182c99(0x492)]===this[_0x182c99(0x364)]&&_0x4a1a49[_0x182c99(0x450)]===!0x1&&_0x4a1a49[_0x182c99(0x64c)][_0x182c99(0x58c)]>0x0&&this[_0x182c99(0x3e9)](_0x4a1a49[_0x182c99(0x64c)]);})),this[_0xf919c4(0x1b3)][_0xf919c4(0x305)][_0xf919c4(0x57b)](A[_0xf919c4(0x3fb)](this['dispose$']))['subscribe'](_0x1ca954=>{const _0x530b59=_0xf919c4;if((_0x1ca954==null?void 0x0:_0x1ca954[_0x530b59(0x364)])!==this[_0x530b59(0x364)])return;const _0x52cf96={'eventID':S[_0x530b59(0x201)][_0x530b59(0x46d)],'data':_0x1ca954};this[_0x530b59(0x3f5)](_0x52cf96);}),this[_0xf919c4(0x4bd)](this[_0xf919c4(0x4f6)]['onCommandExecuted'](_0x3ce8a2=>{const _0x123e56=_0xf919c4;if(_0x3ce8a2[_0x123e56(0x595)]==null)return;const _0x51b984=_0x3ce8a2[_0x123e56(0x595)];if(_0x3ce8a2['id']!==ye['RichTextEditingMutation']['id']||_0x51b984[_0x123e56(0x492)]!==this['unitID'])return;const _0x53df5f={'id':'doc.mutation.rich-text-editing','params':_0x51b984},_0x1d5037=this[_0x123e56(0x3a2)];for(const [_0x309aee,_0x488e84]of _0x1d5037){const _0x363b73={'id':_0x123e56(0x354),'params':{'unitId':this[_0x123e56(0x364)],'actions':null,'textRanges':_0x488e84[_0x123e56(0x64c)]}},_0x3623aa=this['_transformService'][_0x123e56(0x634)](_0x53df5f,_0x363b73,!0x1);if(S[_0x123e56(0x446)](_0x3623aa))throw _0x3623aa['error'];_0x1d5037[_0x123e56(0x3e8)](_0x309aee,{..._0x488e84,'ranges':_0x3623aa['m2Prime'][_0x123e56(0x595)]['textRanges']});}queueMicrotask(()=>{const _0x36468f=_0x123e56;this['_cursorInfo$'][_0x36468f(0x4c4)](_0x1d5037);});})));}[_0x38c3ff(0x3f5)](_0x116c56){const _0x212f4c=_0x38c3ff;var _0x146bd1,_0x33f131;const {memberID:_0x1b0144,selection:_0x3ae9ac}=_0x116c56[_0x212f4c(0x2e1)],_0x417b70=Ui(_0x3ae9ac),_0x3f048e=(_0x33f131=(_0x146bd1=this['_memberService'][_0x212f4c(0x2ca)](this[_0x212f4c(0x364)],_0x1b0144))==null?void 0x0:_0x146bd1['name'])!=null?_0x33f131:_0x212f4c(0x4ae),_0x395c48={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1b0144),'name':_0x3f048e,'ranges':_0x417b70},_0x47055a=this[_0x212f4c(0x3a2)];_0x47055a[_0x212f4c(0x3e8)](_0x1b0144,_0x395c48),this[_0x212f4c(0x4e8)][_0x212f4c(0x4c4)](_0x47055a);}[_0x38c3ff(0x5a6)](_0x34cdef){const _0xdf48ca=_0x38c3ff,{memberID:_0x3248e9}=_0x34cdef['data'],_0x3dca26=this['cursorInfo'];_0x3dca26[_0xdf48ca(0x1d0)](_0x3248e9),this[_0xdf48ca(0x4e8)]['next'](_0x3dca26);}[_0x38c3ff(0x299)](){const _0x4003f2=_0x38c3ff;var _0x11407e;if(this[_0x4003f2(0x416)]=!0x0,((_0x11407e=this[_0x4003f2(0x393)][_0x4003f2(0x3f9)]())==null?void 0x0:_0x11407e[_0x4003f2(0x2ee)]())!==this['unitID'])return;const _0x56054a=this[_0x4003f2(0x3b6)][_0x4003f2(0x585)](ye[_0x4003f2(0x5fe)])[_0x4003f2(0x5b3)]();Array[_0x4003f2(0x32a)](_0x56054a)&&_0x56054a[_0x4003f2(0x58c)]>0x0&&this['_updateLocalCursor'](_0x56054a);}[_0x38c3ff(0x465)](){const _0x41351c=_0x38c3ff;this[_0x41351c(0x416)]=!0x1;}};mt=Ki([Se(0x2,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),Se(0x3,a[_0x38c3ff(0x2af)](Ot)),Se(0x4,a[_0x38c3ff(0x2af)](exports[_0x38c3ff(0x41e)])),Se(0x5,a[_0x38c3ff(0x2af)](Rt)),Se(0x6,S[_0x38c3ff(0x3cc)]),Se(0x7,a['IUniverInstanceService']),Se(0x8,a[_0x38c3ff(0x439)])],mt);var Xi=Object[_0x38c3ff(0x1c1)],Ji=Object[_0x38c3ff(0x336)],Zi=(_0x1a375a,_0xe029c4,_0x50348c,_0x3e7bde)=>{for(var _0x3d87bd=_0x3e7bde>0x1?void 0x0:_0x3e7bde?Ji(_0xe029c4,_0x50348c):_0xe029c4,_0x5547c5=_0x1a375a['length']-0x1,_0x365634;_0x5547c5>=0x0;_0x5547c5--)(_0x365634=_0x1a375a[_0x5547c5])&&(_0x3d87bd=(_0x3e7bde?_0x365634(_0xe029c4,_0x50348c,_0x3d87bd):_0x365634(_0x3d87bd))||_0x3d87bd);return _0x3e7bde&&_0x3d87bd&&Xi(_0xe029c4,_0x50348c,_0x3d87bd),_0x3d87bd;},be=(_0x3b5f3a,_0x71b314)=>(_0x4f6fe2,_0x3f6d9b)=>_0x71b314(_0x4f6fe2,_0x3f6d9b,_0x3b5f3a);const Qi=0x12c,es=0x64,ts=()=>{let _0x49b604=[],_0x1908fa=!0x1;return _0x3af097=>{_0x49b604['push'](_0x3af097),_0x1908fa||(_0x1908fa=!0x0,setTimeout(()=>{const _0x202c1a=_0x4762;_0x49b604[_0x202c1a(0x2d8)](_0x5d3d9d=>_0x5d3d9d()),_0x49b604=[],_0x1908fa=!0x1;}));};};let St=class extends a[_0x38c3ff(0x22c)]{constructor(_0x5e50fe,_0x457904,_0x2b08e9,_0x35f890,_0x1e35a7,_0x51f7b1,_0x11966e,_0x1cf153){const _0x586807=_0x38c3ff;super(),I(this,_0x586807(0x416),!0x1),I(this,_0x586807(0x596),!0x1),I(this,_0x586807(0x4e8),new A['BehaviorSubject'](new Map())),I(this,_0x586807(0x3cd),this['_cursorInfo$'][_0x586807(0x4a7)]()),I(this,_0x586807(0x601),new A[(_0x586807(0x4fc))]([])),I(this,_0x586807(0x3ad),this[_0x586807(0x601)][_0x586807(0x57b)](A[_0x586807(0x4ca)](Qi))),I(this,_0x586807(0x3e9),a[_0x586807(0x514)]((_0x877435,_0x583c75)=>{const _0xd7b8ca=_0x586807,_0x1269b9={'eventID':S['CollaborationEvent'][_0xd7b8ca(0x46d)],'data':{'unitID':this[_0xd7b8ca(0x364)],'memberID':this[_0xd7b8ca(0x58d)]['getMemberID'](),'selection':Pt[_0xd7b8ca(0x470)](_0x877435,_0x583c75[_0xd7b8ca(0x256)])}};this['_session'][_0xd7b8ca(0x5bc)](_0x1269b9,this[_0xd7b8ca(0x364)]);},es)),(this['unitID']=_0x5e50fe,this[_0x586807(0x58d)]=_0x457904,this[_0x586807(0x3b6)]=_0x2b08e9,this[_0x586807(0x5cd)]=_0x35f890,this[_0x586807(0x1aa)]=_0x1e35a7,this[_0x586807(0x393)]=_0x51f7b1,this['_commandService']=_0x11966e,this[_0x586807(0x3dd)]=_0x1cf153);}get['cursorInfo'](){const _0x10cbf8=_0x38c3ff;return this[_0x10cbf8(0x4e8)][_0x10cbf8(0x26d)]();}get[_0x38c3ff(0x3aa)](){const _0x2a4150=_0x38c3ff;return this[_0x2a4150(0x601)][_0x2a4150(0x26d)]();}['dispose'](){const _0x553b14=_0x38c3ff;super[_0x553b14(0x2da)](),this[_0x553b14(0x4e8)][_0x553b14(0x4c4)](new Map()),this['_cursorInfo$'][_0x553b14(0x40d)](),this['_roomMembers$'][_0x553b14(0x4c4)]([]),this[_0x553b14(0x601)]['complete']();}[_0x38c3ff(0x475)](){const _0x50e7b5=_0x38c3ff;this[_0x50e7b5(0x596)]||(this[_0x50e7b5(0x596)]=!0x0,this[_0x50e7b5(0x58d)][_0x50e7b5(0x31f)][_0x50e7b5(0x57b)](A[_0x50e7b5(0x3fb)](this[_0x50e7b5(0x5ff)]))[_0x50e7b5(0x47b)](_0x27cc31=>{const _0x2f6a5b=_0x50e7b5;_0x27cc31===se[_0x2f6a5b(0x1b4)]?this['_toggleOnline']():this[_0x2f6a5b(0x465)]();}),this[_0x50e7b5(0x58d)][_0x50e7b5(0x604)]['pipe'](A['takeUntil'](this['dispose$']))[_0x50e7b5(0x47b)](_0x98338e=>{const _0x81393e=_0x50e7b5,_0x14abd0=_0x98338e['eventID'];_0x14abd0===S[_0x81393e(0x201)][_0x81393e(0x46d)]&&this['_onCursorUpdate'](_0x98338e),_0x14abd0===S[_0x81393e(0x201)][_0x81393e(0x5e0)]&&this[_0x81393e(0x5a6)](_0x98338e);}),this[_0x50e7b5(0x635)](),this[_0x50e7b5(0x4bd)](this[_0x50e7b5(0x4f6)][_0x50e7b5(0x4bb)](_0x380ee6=>{const _0x114835=_0x50e7b5;if(this[_0x114835(0x416)]&&_0x380ee6['id']===k[_0x114835(0x56b)]['id']&&_0x380ee6[_0x114835(0x595)][_0x114835(0x492)]===this[_0x114835(0x364)]){const _0x132e2b=_0x380ee6[_0x114835(0x595)];this[_0x114835(0x3e9)](_0x132e2b['subUnitId'],_0x132e2b[_0x114835(0x609)][0x0]);}})));}[_0x38c3ff(0x3f5)](_0x2d6a7b){const _0x5bbda4=_0x38c3ff;var _0xd680e6,_0x5251bc;const {memberID:_0x2cbd26,selection:_0x3dd76c}=_0x2d6a7b[_0x5bbda4(0x2e1)],{sheetName:_0x49a0e4,range:_0x5db4c2}=Pt[_0x5bbda4(0x479)](_0x3dd76c),_0x283e55={'name':(_0x5251bc=(_0xd680e6=this['_memberService'][_0x5bbda4(0x2ca)](this['unitID'],_0x2cbd26))==null?void 0x0:_0xd680e6[_0x5bbda4(0x503)])!=null?_0x5251bc:_0x5bbda4(0x4ae),'range':this[_0x5bbda4(0x289)](_0x49a0e4,_0x5db4c2),'sheetID':_0x49a0e4,'color':this[_0x5bbda4(0x5cd)][_0x5bbda4(0x386)](_0x2cbd26),'selection':_0x3dd76c},_0x4b4209=this[_0x5bbda4(0x3a2)];_0x4b4209[_0x5bbda4(0x3e8)](_0x2cbd26,_0x283e55),this['_cursorInfo$']['next'](_0x4b4209);}[_0x38c3ff(0x5a6)](_0x10e226){const _0x35127=_0x38c3ff,{memberID:_0x52c5f3}=_0x10e226['data'],_0x68f347=this[_0x35127(0x3a2)];_0x68f347[_0x35127(0x1d0)](_0x52c5f3),this[_0x35127(0x4e8)][_0x35127(0x4c4)](_0x68f347);}[_0x38c3ff(0x289)](_0x5dea74,_0x19399c){const _0x2eda52=_0x38c3ff;var _0x1337e8,_0x36c3be;const _0x3e032e=(_0x36c3be=(_0x1337e8=this[_0x2eda52(0x393)][_0x2eda52(0x48f)](this[_0x2eda52(0x364)]))==null?void 0x0:_0x1337e8[_0x2eda52(0x2b5)](_0x5dea74))==null?void 0x0:_0x36c3be[_0x2eda52(0x19e)]();return(_0x3e032e==null?void 0x0:_0x3e032e[_0x2eda52(0x643)](_0x15785b=>a['Rectangle']['contains'](_0x15785b,_0x19399c)))||_0x19399c;}[_0x38c3ff(0x635)](){const _0x4c357d=_0x38c3ff,_0x2d41ea=new a[(_0x4c357d(0x5ad))](),_0x2d60aa=ts(),_0x5474d8=()=>{const _0x259639=_0x4c357d;_0x2d41ea[_0x259639(0x2da)]();const _0x1f803c=(_0x4d65b5,_0x15c206,_0x2c2f5e,_0x1353e0)=>{const _0xfbc1c1=_0x259639;let _0x2a33e9=[];switch(_0x4d65b5['id']){case k[_0xfbc1c1(0x597)][_0xfbc1c1(0x1e7)]:{_0x2a33e9=k[_0xfbc1c1(0x654)](_0x4d65b5,_0x1353e0);break;}case k[_0xfbc1c1(0x597)]['DeleteRangeMoveUpCommandId']:{_0x2a33e9=k[_0xfbc1c1(0x2dd)](_0x4d65b5,_0x1353e0);break;}case k['EffectRefRangId'][_0xfbc1c1(0x27d)]:{_0x2a33e9=k[_0xfbc1c1(0x234)](_0x4d65b5,_0x1353e0);break;}case k[_0xfbc1c1(0x597)][_0xfbc1c1(0x5a2)]:{_0x2a33e9=k[_0xfbc1c1(0x26c)](_0x4d65b5,_0x1353e0);break;}case k[_0xfbc1c1(0x597)][_0xfbc1c1(0x5c4)]:{_0x2a33e9=k[_0xfbc1c1(0x1ae)](_0x4d65b5,_0x1353e0);break;}case k[_0xfbc1c1(0x597)][_0xfbc1c1(0x3d4)]:{_0x2a33e9=k[_0xfbc1c1(0x371)](_0x4d65b5,_0x1353e0);break;}case k[_0xfbc1c1(0x597)][_0xfbc1c1(0x2e9)]:{_0x2a33e9=k[_0xfbc1c1(0x278)](_0x4d65b5,_0x1353e0);break;}case k['EffectRefRangId'][_0xfbc1c1(0x41d)]:{_0x2a33e9=k[_0xfbc1c1(0x494)](_0x4d65b5,_0x1353e0);break;}case k['EffectRefRangId'][_0xfbc1c1(0x582)]:{_0x2a33e9=k['handleIRemoveRow'](_0x4d65b5,_0x1353e0);break;}}const _0x43346d=k[_0xfbc1c1(0x29d)](_0x2a33e9,_0x1353e0),_0x36303e=this[_0xfbc1c1(0x3a2)]['get'](_0x15c206);if(_0x36303e&&_0x43346d){const _0x1d74c6={..._0x36303e,'range':_0x43346d};this[_0xfbc1c1(0x3a2)][_0xfbc1c1(0x3e8)](_0x15c206,_0x1d74c6),_0x2d60aa(()=>{const _0x3e712d=_0xfbc1c1,_0x55dcd9=this['_refRangeService'][_0x3e712d(0x5b5)](_0x43346d,_0x296c21=>(_0x55dcd9[_0x3e712d(0x2da)](),_0x1f803c(_0x296c21,_0x15c206,_0x2c2f5e,_0x43346d)));_0x2d41ea[_0x3e712d(0x425)](_0x55dcd9);});}return{'redos':[],'undos':[]};};this[_0x259639(0x3a2)]['forEach']((_0x8b9008,_0x44e1f0)=>{const _0x4d2dcc=_0x259639,{range:_0x31cfa6,sheetID:_0x109b9b}=_0x8b9008,_0x197064=this[_0x4d2dcc(0x3dd)][_0x4d2dcc(0x5b5)](_0x31cfa6,_0x56eab4=>(_0x197064['dispose'](),_0x1f803c(_0x56eab4,_0x44e1f0,_0x109b9b,_0x31cfa6)));_0x2d41ea[_0x4d2dcc(0x425)](_0x197064);});};this[_0x4c357d(0x4bd)](a[_0x4c357d(0x2c7)](this[_0x4c357d(0x4e8)]['subscribe'](()=>{_0x5474d8();})));}[_0x38c3ff(0x299)](){const _0x43cc97=_0x38c3ff;var _0x521201,_0x191281;if(this[_0x43cc97(0x416)]=!0x0,((_0x521201=this['_univerInstanceService'][_0x43cc97(0x3f9)]())==null?void 0x0:_0x521201[_0x43cc97(0x2ee)]())!==this['unitID'])return;const _0x510a05=(_0x191281=this[_0x43cc97(0x3b6)][_0x43cc97(0x585)](k[_0x43cc97(0x2c5)])[_0x43cc97(0x3fd)]())==null?void 0x0:_0x191281[0x0],_0xb1e6b0=this[_0x43cc97(0x393)][_0x43cc97(0x323)](a[_0x43cc97(0x27f)][_0x43cc97(0x23d)])[_0x43cc97(0x60f)]();_0x510a05&&_0xb1e6b0&&this[_0x43cc97(0x3e9)](_0xb1e6b0[_0x43cc97(0x5f0)](),_0x510a05);}[_0x38c3ff(0x465)](){const _0x1cd464=_0x38c3ff;this[_0x1cd464(0x416)]=!0x1;}};St=Zi([be(0x2,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),be(0x3,a['Inject'](Ot)),be(0x4,a[_0x38c3ff(0x2af)](exports[_0x38c3ff(0x41e)])),be(0x5,a[_0x38c3ff(0x2a8)]),be(0x6,a['ICommandService']),be(0x7,a[_0x38c3ff(0x2af)](k[_0x38c3ff(0x464)]))],St);var ns=Object[_0x38c3ff(0x1c1)],is=Object[_0x38c3ff(0x336)],ss=(_0x526e39,_0x4b869d,_0x5ba182,_0x58a2bf)=>{const _0x2622e7=_0x38c3ff;for(var _0x92f614=_0x58a2bf>0x1?void 0x0:_0x58a2bf?is(_0x4b869d,_0x5ba182):_0x4b869d,_0x43cef9=_0x526e39[_0x2622e7(0x58c)]-0x1,_0x4f756d;_0x43cef9>=0x0;_0x43cef9--)(_0x4f756d=_0x526e39[_0x43cef9])&&(_0x92f614=(_0x58a2bf?_0x4f756d(_0x4b869d,_0x5ba182,_0x92f614):_0x4f756d(_0x92f614))||_0x92f614);return _0x58a2bf&&_0x92f614&&ns(_0x4b869d,_0x5ba182,_0x92f614),_0x92f614;},nt=(_0x282b1a,_0x233191)=>(_0x262793,_0x1aa17d)=>_0x233191(_0x262793,_0x1aa17d,_0x282b1a);let De=class extends a[_0x38c3ff(0x22c)]{constructor(_0x2ba395,_0x4740a9,_0x48cb51){const _0x3bc75a=_0x38c3ff;super(),I(this,'_entities',new Map()),I(this,_0x3bc75a(0x2a3),new A['Subject']()),(this['_univerInstanceService']=_0x2ba395,this[_0x3bc75a(0x3b6)]=_0x4740a9,this[_0x3bc75a(0x37f)]=_0x48cb51,this['_init']());}['dispose'](){const _0x363ddc=_0x38c3ff;super[_0x363ddc(0x2da)](),this['_entityInit$'][_0x363ddc(0x40d)](),this['_entities'][_0x363ddc(0x2d8)](_0x40ee60=>_0x40ee60[_0x363ddc(0x2da)]());}[_0x38c3ff(0x592)](_0x3f448d){const _0x1aa6a0=_0x38c3ff;return this[_0x1aa6a0(0x325)][_0x1aa6a0(0x599)](_0x3f448d)?this[_0x1aa6a0(0x325)][_0x1aa6a0(0x585)](_0x3f448d)['cursorInfo$']:this['_entityInit$'][_0x1aa6a0(0x57b)](A[_0x1aa6a0(0x576)](_0x3618a4=>_0x3618a4['unitID']===_0x3f448d),A[_0x1aa6a0(0x5fa)](_0x1c1dc0=>_0x1c1dc0['cursorInfo$']));}[_0x38c3ff(0x596)](){const _0x3fffe3=_0x38c3ff;this[_0x3fffe3(0x393)][_0x3fffe3(0x23f)](a[_0x3fffe3(0x27f)][_0x3fffe3(0x23d)])['pipe'](A[_0x3fffe3(0x3fb)](this[_0x3fffe3(0x5ff)]))['subscribe'](async _0xe5dee=>{const _0x31180c=_0x3fffe3,_0x2f988f=_0xe5dee[_0x31180c(0x2ee)](),_0x401128=await this[_0x31180c(0x3c2)](_0x2f988f);this['_entityInit$'][_0x31180c(0x4c4)](_0x401128),this['_entities'][_0x31180c(0x3e8)](_0x2f988f,_0x401128);}),this[_0x3fffe3(0x393)][_0x3fffe3(0x23f)](a[_0x3fffe3(0x27f)][_0x3fffe3(0x649)])[_0x3fffe3(0x57b)](A[_0x3fffe3(0x3fb)](this['dispose$']))['pipe'](A[_0x3fffe3(0x576)](_0x314550=>!_0x314550[_0x3fffe3(0x2ee)]()['startsWith']('__')))[_0x3fffe3(0x47b)](async _0x16358c=>{const _0x9691e1=_0x3fffe3,_0x25f4b3=_0x16358c[_0x9691e1(0x2ee)](),_0x1ba2c5=await this[_0x9691e1(0x58b)](_0x25f4b3);this[_0x9691e1(0x2a3)][_0x9691e1(0x4c4)](_0x1ba2c5),this[_0x9691e1(0x325)][_0x9691e1(0x3e8)](_0x25f4b3,_0x1ba2c5);}),A['merge'](this[_0x3fffe3(0x393)][_0x3fffe3(0x3bc)](a[_0x3fffe3(0x27f)][_0x3fffe3(0x649)]),this[_0x3fffe3(0x393)][_0x3fffe3(0x3bc)](a[_0x3fffe3(0x27f)][_0x3fffe3(0x23d)]))[_0x3fffe3(0x57b)](A[_0x3fffe3(0x3fb)](this[_0x3fffe3(0x5ff)]))[_0x3fffe3(0x47b)](_0x3fba9f=>{const _0x430c37=_0x3fffe3,_0x3f578c=_0x3fba9f[_0x430c37(0x2ee)](),_0x55dd37=this[_0x430c37(0x325)][_0x430c37(0x585)](_0x3f578c);_0x55dd37&&(_0x55dd37[_0x430c37(0x2da)](),this[_0x430c37(0x325)][_0x430c37(0x1d0)](_0x3f578c));});}async[_0x38c3ff(0x3c2)](_0x276b01){const _0x1fd2fd=_0x38c3ff,_0x4ce25d=await this[_0x1fd2fd(0x37f)][_0x1fd2fd(0x2aa)](_0x276b01),_0x4e6759=this[_0x1fd2fd(0x3b6)]['createInstance'](St,_0x276b01,_0x4ce25d);return _0x4e6759['init'](),_0x4e6759;}async[_0x38c3ff(0x58b)](_0x295865){const _0x460b55=_0x38c3ff,_0x38e804=await this[_0x460b55(0x37f)][_0x460b55(0x2aa)](_0x295865),_0x3e2106=this[_0x460b55(0x3b6)]['createInstance'](mt,_0x295865,_0x38e804);return _0x3e2106['init'](),_0x3e2106;}};De=ss([nt(0x0,a[_0x38c3ff(0x2a8)]),nt(0x1,a[_0x38c3ff(0x2af)](a['Injector'])),nt(0x2,a[_0x38c3ff(0x2af)](exports[_0x38c3ff(0x1f6)]))],De);const Le=0x14,Ht=0xc8,it=0x4,rs=0x5;function os(_0x3a2bfc,_0x3302b){const _0x51e6b7=_0x38c3ff;let {radius:_0x1e27d7,width:_0xb2a7b,height:_0x471a35}=_0x3302b;_0x1e27d7=_0x1e27d7!=null?_0x1e27d7:0x0,_0xb2a7b=_0xb2a7b!=null?_0xb2a7b:0x1e,_0x471a35=_0x471a35!=null?_0x471a35:0x1e;let _0x2b77ee=0x0,_0x3a1a11=0x0,_0x2e26b6=0x0;_0x2b77ee=_0x3a1a11=_0x2e26b6=Math[_0x51e6b7(0x269)](_0x1e27d7,_0xb2a7b/0x2,_0x471a35/0x2),_0x3a2bfc['beginPath'](),_0x3a2bfc[_0x51e6b7(0x1fa)](_0x2b77ee,0x0),_0x3a2bfc[_0x51e6b7(0x62e)](_0xb2a7b-_0x3a1a11,0x0),_0x3a2bfc[_0x51e6b7(0x319)](_0xb2a7b-_0x3a1a11,_0x3a1a11,_0x3a1a11,Math['PI']*0x3/0x2,0x0,!0x1),_0x3a2bfc[_0x51e6b7(0x62e)](_0xb2a7b,_0x471a35-_0x2e26b6),_0x3a2bfc['arc'](_0xb2a7b-_0x2e26b6,_0x471a35-_0x2e26b6,_0x2e26b6,0x0,Math['PI']/0x2,!0x1),_0x3a2bfc[_0x51e6b7(0x62e)](0x0,_0x471a35),_0x3a2bfc[_0x51e6b7(0x62e)](0x0,_0x2b77ee),_0x3a2bfc[_0x51e6b7(0x319)](_0x2b77ee,_0x2b77ee,_0x2b77ee,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3a2bfc[_0x51e6b7(0x224)](),_0x3302b[_0x51e6b7(0x422)]&&(_0x3a2bfc[_0x51e6b7(0x24c)](),_0x3a2bfc[_0x51e6b7(0x335)]=_0x3302b[_0x51e6b7(0x422)],_0x3302b['fillRule']===_0x51e6b7(0x324)?_0x3a2bfc[_0x51e6b7(0x422)](_0x51e6b7(0x324)):_0x3a2bfc[_0x51e6b7(0x422)](),_0x3a2bfc[_0x51e6b7(0x63b)]());}class ze extends K[_0x38c3ff(0x3db)]{constructor(_0x363da1,_0x437028){const _0x10c647=_0x38c3ff;super(_0x363da1,_0x437028),I(this,_0x10c647(0x4c3)),I(this,_0x10c647(0x598)),(this[_0x10c647(0x4c3)]=_0x437028==null?void 0x0:_0x437028[_0x10c647(0x4c3)],this[_0x10c647(0x598)]=_0x437028==null?void 0x0:_0x437028['text']);}static[_0x38c3ff(0x54d)](_0x176042,_0x4a61fc){const _0x12fe2c=_0x38c3ff,{text:_0x434829,color:_0x50f30a}=_0x4a61fc;_0x176042[_0x12fe2c(0x24c)](),_0x176042['font']=_0x12fe2c(0x4f3);const _0xea1946=_0x176042[_0x12fe2c(0x49c)](_0x434829)[_0x12fe2c(0x2f3)],_0x5885d6=Math[_0x12fe2c(0x269)](_0xea1946+0x2*it,Ht);os(_0x176042,{'height':Le,'radius':0x4,'width':_0x5885d6,'fill':_0x50f30a,'evented':!0x1}),_0x176042[_0x12fe2c(0x335)]=_0x12fe2c(0x40c);const _0x29b99c=it,_0x298512=Le-rs,_0x2bce2e=Ht-0x2*it;if(_0xea1946>_0x2bce2e){let _0x4d8614='',_0xd26ee9=0x0;for(const _0xa27959 of _0x434829){const _0xe0d2dc=_0x176042[_0x12fe2c(0x49c)](_0xa27959)[_0x12fe2c(0x2f3)];if(_0xd26ee9+_0xe0d2dc<=_0x2bce2e-_0x176042[_0x12fe2c(0x49c)](_0x12fe2c(0x315))[_0x12fe2c(0x2f3)])_0x4d8614+=_0xa27959,_0xd26ee9+=_0xe0d2dc;else{_0x4d8614+=_0x12fe2c(0x315);break;}}_0x176042[_0x12fe2c(0x5bd)](_0x4d8614,_0x29b99c,_0x298512);}else _0x176042[_0x12fe2c(0x5bd)](_0x434829,_0x29b99c,_0x298512);_0x176042[_0x12fe2c(0x63b)]();}['_draw'](_0x44938d){const _0x3072ed=_0x38c3ff;ze[_0x3072ed(0x54d)](_0x44938d,this);}}const st=_0x38c3ff(0x5fd),as='collab-text-range-',cs=_0x38c3ff(0x19b),Ue=0x6,ls=1.5,rt=0x4,hs=1.5,_s=_0x38c3ff(0x1e6);class Bt{constructor(_0x26fd3b,_0x2ae258,_0x43a5a6,_0x263b84){const _0x17ba0d=_0x38c3ff;I(this,_0x17ba0d(0x2c1),[]),I(this,_0x17ba0d(0x550),null),I(this,_0x17ba0d(0x3be),null),I(this,_0x17ba0d(0x4a2),null),I(this,'_hideTimer',null),I(this,'_eventUnsubscribe',null),(this['_cursor']=_0x26fd3b,this['_scene']=_0x2ae258,this[_0x17ba0d(0x2d0)]=_0x43a5a6,this[_0x17ba0d(0x40f)]=_0x263b84,this[_0x17ba0d(0x437)]());}set[_0x38c3ff(0x23b)](_0x5352d5){const _0x22cbee=_0x38c3ff;_0x5352d5?(this[_0x22cbee(0x4a2)]&&this[_0x22cbee(0x4a2)]['hide'](),this['_textBubble']&&this[_0x22cbee(0x3be)][_0x22cbee(0x37c)]()):(this['_anchorDot']&&this[_0x22cbee(0x4a2)]['show'](),this[_0x22cbee(0x3be)]&&this[_0x22cbee(0x3be)]['hide']());}[_0x38c3ff(0x2da)](){const _0x52d2d0=_0x38c3ff;for(const _0x44bda9 of this[_0x52d2d0(0x2c1)])_0x44bda9[_0x52d2d0(0x2da)]();this[_0x52d2d0(0x3be)]&&this[_0x52d2d0(0x3be)][_0x52d2d0(0x2da)](),this[_0x52d2d0(0x4a2)]&&this['_anchorDot'][_0x52d2d0(0x2da)](),this[_0x52d2d0(0x550)]&&this[_0x52d2d0(0x550)][_0x52d2d0(0x2da)](),this[_0x52d2d0(0x1f3)]&&this['_eventUnsubscribe']();}['_render'](){const _0x2331b3=_0x38c3ff;var _0x961251;const {_docSkeleton:_0x7f93e0,_document:_0x49daef}=this,{color:_0x5dcd46,name:_0xc93b8,ranges:_0x4e54b5}=this['_cursor'],_0x2cbeab=_0x49daef[_0x2331b3(0x5bb)](),{docsLeft:_0x4a7fd9,docsTop:_0x421507}=_0x2cbeab,_0xfa6010=new J[(_0x2331b3(0x5ed))](_0x2cbeab,_0x7f93e0);for(const {startOffset:_0x2e404f,endOffset:_0x3e2739,rangeType:_0x3a42ff,segmentId:_0x3f6f6a,segmentPage:_0x5a9951,collapsed:_0x58967c,isActive:_0x3e31ea}of _0x4e54b5){const _0x2ecb4a=_0x7f93e0['findNodePositionByCharIndex'](_0x2e404f,!0x0,_0x3f6f6a,_0x5a9951);let _0x271e5c=_0x7f93e0['findNodePositionByCharIndex'](_0x3e2739,!0x0,_0x3f6f6a,_0x5a9951);if(_0x271e5c==null&&(_0x271e5c=_0x7f93e0[_0x2331b3(0x4d1)](_0x3e2739-0x1,!0x1,_0x3f6f6a,_0x5a9951)),_0x3e31ea){const {contentBoxPointGroup:_0x5daa94}=_0xfa6010[_0x2331b3(0x3c3)](_0x271e5c,_0x271e5c);if(_0x5daa94[_0x2331b3(0x58c)]===0x0)continue;this[_0x2331b3(0x5fb)](_0x5dcd46,_0x5daa94,_0x4a7fd9,_0x421507,_0xc93b8),this[_0x2331b3(0x1f3)]=this[_0x2331b3(0x3f4)]();}if(_0x2ecb4a&&_0x271e5c){if(_0x3a42ff===a[_0x2331b3(0x2ec)][_0x2331b3(0x248)]){const _0x45d09c=new J[(_0x2331b3(0x5e1))](_0x2cbeab,_0x7f93e0),{pointGroup:_0x4e6362}=(_0x961251=_0x45d09c[_0x2331b3(0x3c3)](_0x2ecb4a,_0x271e5c))!=null?_0x961251:{};if(_0x4e6362==null||_0x4e6362['length']===0x0)continue;this['_drawRectRange'](_0x5dcd46,_0x4e6362,_0x4a7fd9,_0x421507);}else{if(!_0x58967c){const {borderBoxPointGroup:_0x113c3e}=_0xfa6010[_0x2331b3(0x3c3)](_0x2ecb4a,_0x271e5c);if(_0x113c3e['length']===0x0)continue;this[_0x2331b3(0x1c9)](_0x5dcd46,_0x113c3e,_0x4a7fd9,_0x421507);}}}}}['_drawAnchor'](_0x46afc4,_0x29f236,_0x2dcad7,_0x1c4419,_0x3b35b9){const _0xd658df=_0x38c3ff,_0xde7418=this['_getAnchorBounding'](_0x29f236),{left:_0x245d0e,top:_0x345f02,height:_0x185166}=_0xde7418,_0x1f7bcf=this[_0xd658df(0x379)](),_0x19749d=hs/_0x1f7bcf,_0x134e0f=new K[(_0xd658df(0x590))](st+a[_0xd658df(0x24a)][_0xd658df(0x4b6)](Ue),{'left':_0x245d0e+_0x2dcad7-_0x19749d,'top':_0x345f02+_0x1c4419,'height':_0x185166,'width':ls,'fill':_0x46afc4||K[_0xd658df(0x49b)](a[_0xd658df(0x3b8)]['black'],0x0),'strokeWidth':_0x19749d,'stroke':_s,'evented':!0x0});this['_anchor']=_0x134e0f,this[_0xd658df(0x352)][_0xd658df(0x392)](_0x134e0f,J[_0xd658df(0x296)]);const _0xdd205d=new K[(_0xd658df(0x590))](st+a[_0xd658df(0x24a)][_0xd658df(0x4b6)](Ue),{'left':_0x245d0e+_0x2dcad7-_0x19749d,'top':_0x345f02+_0x1c4419-rt/0x2,'height':rt,'width':rt,'fill':_0x46afc4||K[_0xd658df(0x49b)](a[_0xd658df(0x3b8)][_0xd658df(0x36b)],0x0),'strokeWidth':0x0,'stroke':_0x46afc4||K[_0xd658df(0x49b)](a[_0xd658df(0x3b8)][_0xd658df(0x36b)],0x0),'evented':!0x1});this[_0xd658df(0x4a2)]=_0xdd205d,this[_0xd658df(0x352)][_0xd658df(0x392)](_0xdd205d,J['TEXT_RANGE_LAYER_INDEX']);const _0x249708=new ze(st+a[_0xd658df(0x24a)][_0xd658df(0x4b6)](Ue),{'left':_0x245d0e+_0x2dcad7-_0x19749d,'top':_0x345f02+_0x1c4419-Le,'text':_0x3b35b9,'color':_0x46afc4});this[_0xd658df(0x3be)]=_0x249708,this[_0xd658df(0x352)][_0xd658df(0x392)](_0x249708,J[_0xd658df(0x296)]),this[_0xd658df(0x23b)]=!0x1;}[_0x38c3ff(0x3f4)](){const _0x2796fe=_0x38c3ff,_0x5124d4=this[_0x2796fe(0x550)][_0x2796fe(0x59e)][_0x2796fe(0x54e)](()=>{const _0x59897c=_0x2796fe;this[_0x59897c(0x23b)]=!0x0;}),_0x335442=this[_0x2796fe(0x550)]['onPointerLeave$'][_0x2796fe(0x54e)](()=>{const _0x14cb24=_0x2796fe;this[_0x14cb24(0x396)]&&clearTimeout(this['_hideTimer']),this[_0x14cb24(0x396)]=setTimeout(()=>{const _0x35ce82=_0x14cb24;this[_0x35ce82(0x23b)]=!0x1;},0x7d0);});return()=>{const _0x213e34=_0x2796fe;_0x5124d4['unsubscribe'](),_0x335442[_0x213e34(0x25d)]();};}[_0x38c3ff(0x1c9)](_0xb5347,_0x35064d,_0x579108,_0x21b751){const _0x40c89d=_0x38c3ff,_0x5ad3d3=new a[(_0x40c89d(0x2d7))](_0xb5347)[_0x40c89d(0x611)](0.2)[_0x40c89d(0x338)](),_0x3523ab=new K[(_0x40c89d(0x44b))](as+a[_0x40c89d(0x24a)][_0x40c89d(0x4b6)](Ue),{'pointsGroup':_0x35064d,'fill':_0x5ad3d3||K[_0x40c89d(0x49b)](a[_0x40c89d(0x3b8)][_0x40c89d(0x36b)],0.2),'left':_0x579108,'top':_0x21b751,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x40c89d(0x473)](_0x3523ab),this[_0x40c89d(0x352)]['addObject'](_0x3523ab,J[_0x40c89d(0x296)]);}[_0x38c3ff(0x5cf)](_0x30dbe4,_0x5bbad7,_0x56ae40,_0x36a916){const _0x165ede=_0x38c3ff,_0x579da2=new a['ColorKit'](_0x30dbe4)[_0x165ede(0x611)](0.2)[_0x165ede(0x338)](),_0x120ee1=new K[(_0x165ede(0x44b))](cs+a[_0x165ede(0x24a)]['generateRandomId'](Ue),{'pointsGroup':_0x5bbad7,'fill':_0x579da2||K[_0x165ede(0x49b)](a['COLORS']['black'],0.2),'left':_0x56ae40,'top':_0x36a916,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x165ede(0x2c1)][_0x165ede(0x473)](_0x120ee1),this[_0x165ede(0x352)][_0x165ede(0x392)](_0x120ee1,J[_0x165ede(0x296)]);}['_getAnchorBounding'](_0x56f0bc){const _0x52d777=_0x56f0bc[0x0],_0x2e3954=_0x52d777[0x0],_0x6d4661=_0x52d777[0x2],{x:_0x31d2e5,y:_0x1df18b}=_0x2e3954,{x:_0x5150df,y:_0x37a675}=_0x6d4661;return{'left':_0x31d2e5,'top':_0x1df18b,'width':_0x5150df-_0x31d2e5,'height':_0x37a675-_0x1df18b};}['_getScale'](){const _0x2b8f77=_0x38c3ff,{scaleX:_0x71a352,scaleY:_0x467e53}=this[_0x2b8f77(0x352)]['getAncestorScale']();return Math[_0x2b8f77(0x4e4)](_0x71a352,_0x467e53);}}var us=Object[_0x38c3ff(0x1c1)],ds=Object['getOwnPropertyDescriptor'],fs=(_0x24c002,_0x443e1e,_0x124bdb,_0xcb05d6)=>{const _0x365c21=_0x38c3ff;for(var _0x2fec4f=_0xcb05d6>0x1?void 0x0:_0xcb05d6?ds(_0x443e1e,_0x124bdb):_0x443e1e,_0x24092b=_0x24c002[_0x365c21(0x58c)]-0x1,_0x401cc1;_0x24092b>=0x0;_0x24092b--)(_0x401cc1=_0x24c002[_0x24092b])&&(_0x2fec4f=(_0xcb05d6?_0x401cc1(_0x443e1e,_0x124bdb,_0x2fec4f):_0x401cc1(_0x2fec4f))||_0x2fec4f);return _0xcb05d6&&_0x2fec4f&&us(_0x443e1e,_0x124bdb,_0x2fec4f),_0x2fec4f;},je=(_0x3ad333,_0x1a8966)=>(_0x20262d,_0x500779)=>_0x1a8966(_0x20262d,_0x500779,_0x3ad333);let pt=class extends a[_0x38c3ff(0x22c)]{constructor(_0x227b9d,_0xaf2db3,_0x625872,_0x11dab3,_0x50f423){const _0x306daa=_0x38c3ff;super(),I(this,_0x306daa(0x261),[]),I(this,'_cursors',[]),(this[_0x306daa(0x268)]=_0x227b9d,this['_docSkeletonManagerService']=_0xaf2db3,this[_0x306daa(0x3c6)]=_0x625872,this[_0x306daa(0x4f6)]=_0x11dab3,this['_themeService']=_0x50f423,this[_0x306daa(0x596)]());}[_0x38c3ff(0x596)](){const _0x3e0f6f=_0x38c3ff,_0x594e98=this[_0x3e0f6f(0x268)][_0x3e0f6f(0x492)],_0x41a01e=this[_0x3e0f6f(0x5d2)];this[_0x3e0f6f(0x4bd)](A[_0x3e0f6f(0x4aa)]([this[_0x3e0f6f(0x3c6)]['getCollabCursors$'](_0x594e98),this['_themeService'][_0x3e0f6f(0x472)]])[_0x3e0f6f(0x57b)](V[_0x3e0f6f(0x4d7)](([_0x20f399,_0x301207])=>({'skeleton':_0x41a01e[_0x3e0f6f(0x453)](),'cursors':[..._0x20f399['values']()][_0x3e0f6f(0x51a)](_0x8dd115=>({..._0x8dd115,'color':_0x301207[_0x8dd115[_0x3e0f6f(0x4c3)]]}))})))[_0x3e0f6f(0x47b)](_0x47fbee=>{const _0x20b119=_0x3e0f6f;if(this[_0x20b119(0x230)](),_0x47fbee){const {skeleton:_0x2ebe7b,cursors:_0x3d02a5}=_0x47fbee;this[_0x20b119(0x3a3)](_0x2ebe7b,_0x3d02a5);}})),this['_initResize'](),this[_0x3e0f6f(0x199)]();}[_0x38c3ff(0x3a3)](_0x441a3f,_0x1e9a1c){const _0x185c9b=_0x38c3ff,{scene:_0x4bb787,mainComponent:_0x1d6f16}=this[_0x185c9b(0x268)],_0x1f3622=_0x1e9a1c[_0x185c9b(0x4d7)](_0x3d7cc0=>new Bt(_0x3d7cc0,_0x4bb787,_0x441a3f,_0x1d6f16));this[_0x185c9b(0x261)]=_0x1f3622,this[_0x185c9b(0x3da)]=_0x1e9a1c;}[_0x38c3ff(0x262)](){const _0x5018f1=_0x38c3ff;this['_removeCollabCursors']();const {scene:_0x32fd97,mainComponent:_0x5c4aed}=this['_context'],_0x3ddda0=this['_docSkeletonManagerService'][_0x5018f1(0x453)](),_0x1d8aa6=this['_cursors'][_0x5018f1(0x4d7)](_0x2b69c7=>new Bt(_0x2b69c7,_0x32fd97,_0x3ddda0,_0x5c4aed));this[_0x5018f1(0x261)]=_0x1d8aa6;}[_0x38c3ff(0x230)](){const _0x773d85=_0x38c3ff;this[_0x773d85(0x261)][_0x773d85(0x2d8)](_0x921433=>_0x921433[_0x773d85(0x2da)]()),this[_0x773d85(0x261)]=[];}['_initCommandExecutedListener'](){const _0x4e9c0c=_0x38c3ff,_0x3558a1=[J[_0x4e9c0c(0x3ba)]['id']];this[_0x4e9c0c(0x4bd)](this[_0x4e9c0c(0x4f6)][_0x4e9c0c(0x4bb)](_0x407e4d=>{const _0x2d0a0a=_0x4e9c0c;_0x3558a1[_0x2d0a0a(0x3ec)](_0x407e4d['id'])&&_0x407e4d[_0x2d0a0a(0x595)][_0x2d0a0a(0x492)]===this['_context'][_0x2d0a0a(0x492)]&&this[_0x2d0a0a(0x262)]();}));}[_0x38c3ff(0x5a4)](){const _0x3af628=_0x38c3ff;this[_0x3af628(0x4bd)](a['fromEventSubject'](this[_0x3af628(0x268)][_0x3af628(0x30d)][_0x3af628(0x2e8)])[_0x3af628(0x57b)](V[_0x3af628(0x576)](_0x12f5f3=>_0x12f5f3[_0x3af628(0x42a)]===K[_0x3af628(0x26e)][_0x3af628(0x337)]),V[_0x3af628(0x3ce)](0x10))['subscribe'](()=>{const _0x1fb9d5=_0x3af628;this[_0x1fb9d5(0x262)]();}));}};pt=fs([je(0x1,a[_0x38c3ff(0x2af)](ye[_0x38c3ff(0x1b2)])),je(0x2,a[_0x38c3ff(0x2af)](De)),je(0x3,a['ICommandService']),je(0x4,a[_0x38c3ff(0x2af)](a['ThemeService']))],pt);const vs=0x1,ms=1.5;class Sn extends K[_0x38c3ff(0x3db)]{constructor(_0xd3932,_0x1a9c5b){const _0x4fcfc3=_0x38c3ff;super(_0xd3932,_0x1a9c5b),I(this,_0x4fcfc3(0x5a1)),I(this,_0x4fcfc3(0x251),!0x1),I(this,_0x4fcfc3(0x2fc)),I(this,_0x4fcfc3(0x1f8),''),I(this,_0x4fcfc3(0x380),'top'),I(this,_0x4fcfc3(0x613)),(_0x1a9c5b&&this[_0x4fcfc3(0x5b2)](_0x1a9c5b),this[_0x4fcfc3(0x59e)][_0x4fcfc3(0x54e)](()=>this[_0x4fcfc3(0x5b2)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4fcfc3(0x54e)](()=>this[_0x4fcfc3(0x5b2)]({'hovered':!0x1})));}[_0x38c3ff(0x5b2)](_0x287f9e){const _0x469e8d=_0x38c3ff;var _0x300b28,_0x546b66,_0x3590c8,_0x33205d,_0x303ee8,_0x5df3c9;this['_color']=(_0x300b28=_0x287f9e[_0x469e8d(0x4c3)])!=null?_0x300b28:this[_0x469e8d(0x5a1)],this[_0x469e8d(0x251)]=(_0x546b66=_0x287f9e['hovered'])!=null?_0x546b66:this['_hovered'],this[_0x469e8d(0x2fc)]=(_0x3590c8=_0x287f9e[_0x469e8d(0x256)])!=null?_0x3590c8:this[_0x469e8d(0x2fc)],this[_0x469e8d(0x1f8)]=(_0x33205d=_0x287f9e['name'])!=null?_0x33205d:this[_0x469e8d(0x1f8)],this[_0x469e8d(0x380)]=(_0x303ee8=_0x287f9e[_0x469e8d(0x605)])!=null?_0x303ee8:this[_0x469e8d(0x380)],this[_0x469e8d(0x613)]=(_0x5df3c9=_0x287f9e[_0x469e8d(0x62f)])!=null?_0x5df3c9:this['_backgroundColor'],this['transformByState']({'width':_0x287f9e[_0x469e8d(0x2f3)],'height':_0x287f9e[_0x469e8d(0x320)]});}['onMouseMove'](_0x151777){const _0x5538d8=_0x38c3ff,{row:_0x4fa50b,column:_0x41b78e}=_0x151777;if(_0x4fa50b>=this[_0x5538d8(0x2fc)]['startRow']&&_0x4fa50b<=this[_0x5538d8(0x2fc)][_0x5538d8(0x342)]&&_0x41b78e>=this[_0x5538d8(0x2fc)][_0x5538d8(0x3e3)]&&_0x41b78e<=this[_0x5538d8(0x2fc)][_0x5538d8(0x365)]){this[_0x5538d8(0x5b2)]({'hovered':!0x0});return;}this[_0x5538d8(0x5b2)]({'hovered':!0x1});}[_0x38c3ff(0x3e6)](_0xfc54e8){return!0x1;}[_0x38c3ff(0x1a7)](_0x4049bc){const _0x298002=_0x38c3ff;K[_0x298002(0x590)][_0x298002(0x54d)](_0x4049bc,{'width':this[_0x298002(0x2f3)],'height':this[_0x298002(0x320)],'strokeWidth':ms,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x298002(0x613)]}),this[_0x298002(0x251)]&&(_0x4049bc['save'](),_0x4049bc[_0x298002(0x402)](0x1,0x0,0x0,0x1,this[_0x298002(0x2f3)],this[_0x298002(0x380)]===_0x298002(0x449)?0x0:-Le),ze[_0x298002(0x54d)](_0x4049bc,{'text':this[_0x298002(0x1f8)],'color':this['_color']}),_0x4049bc[_0x298002(0x63b)]());}}var Ss=Object[_0x38c3ff(0x1c1)],ps=Object[_0x38c3ff(0x336)],gs=(_0x3e1560,_0x3e5e7,_0x5e65a2,_0x5aabd0)=>{const _0x157489=_0x38c3ff;for(var _0x4c1e0d=_0x5aabd0>0x1?void 0x0:_0x5aabd0?ps(_0x3e5e7,_0x5e65a2):_0x3e5e7,_0x194dec=_0x3e1560[_0x157489(0x58c)]-0x1,_0x69ee59;_0x194dec>=0x0;_0x194dec--)(_0x69ee59=_0x3e1560[_0x194dec])&&(_0x4c1e0d=(_0x5aabd0?_0x69ee59(_0x3e5e7,_0x5e65a2,_0x4c1e0d):_0x69ee59(_0x4c1e0d))||_0x4c1e0d);return _0x5aabd0&&_0x4c1e0d&&Ss(_0x3e5e7,_0x5e65a2,_0x4c1e0d),_0x4c1e0d;},ot=(_0x12e22f,_0x38a98f)=>(_0x1aa8e2,_0x278201)=>_0x38a98f(_0x1aa8e2,_0x278201,_0x12e22f);const Is=0x1389;let gt=class extends a[_0x38c3ff(0x22c)]{constructor(_0x37f2b7,_0x9e192f,_0x3c0479,_0x3f9145){const _0x4734eb=_0x38c3ff;super(),I(this,_0x4734eb(0x3da),new Set()),I(this,_0x4734eb(0x4a8),null),(this[_0x4734eb(0x268)]=_0x37f2b7,this[_0x4734eb(0x4b8)]=_0x9e192f,this[_0x4734eb(0x3c6)]=_0x3c0479,this['_themeService']=_0x3f9145,this['_init']());}[_0x38c3ff(0x596)](){const _0x766430=_0x38c3ff;this[_0x766430(0x4b8)][_0x766430(0x4f1)][_0x766430(0x57b)](V[_0x766430(0x3fb)](this['dispose$']),V['switchMap'](_0x13bf44=>{const _0x570ef5=_0x766430;if(_0x13bf44){const _0x14b836=_0x13bf44[_0x570ef5(0x1c6)];return A['combineLatest'](this[_0x570ef5(0x3c6)][_0x570ef5(0x592)](this[_0x570ef5(0x268)][_0x570ef5(0x492)]),this[_0x570ef5(0x42c)][_0x570ef5(0x472)])[_0x570ef5(0x57b)](V[_0x570ef5(0x4d7)](([_0x3b99d5,_0x4de3a3])=>{const _0x5d3256=new Map();return _0x3b99d5['forEach']((_0x58161c,_0x11a0eb)=>{const _0x27290c=_0x4762;if(_0x58161c[_0x27290c(0x5f7)]===_0x14b836){const _0x146264={..._0x58161c};_0x146264['color']=_0x4de3a3[_0x58161c[_0x27290c(0x4c3)]],_0x5d3256[_0x27290c(0x3e8)](_0x11a0eb,_0x146264);}}),{'skeleton':_0x13bf44,'cursors':_0x5d3256};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0x766430(0x47b)](({skeleton:_0x4a60ba,cursors:_0x401141})=>{const _0x4df756=_0x766430;this[_0x4df756(0x230)](),_0x4a60ba&&this[_0x4df756(0x3a3)](_0x4a60ba,_0x401141);}),this[_0x766430(0x4b8)]['currentSkeleton$'][_0x766430(0x47b)](_0x4e9522=>{const _0x47467b=_0x766430;if(_0x4e9522==null)return;const {skeleton:_0x21b5e4}=_0x4e9522,{scene:_0x2e3570}=this['_context'];_0x2e3570[_0x47467b(0x487)][_0x47467b(0x54e)](a[_0x47467b(0x514)](_0x291cba=>{const _0x21f3eb=_0x47467b;var _0x58a7d5,_0x8c5e14;const {offsetX:_0x5c185a,offsetY:_0x3d0833}=_0x291cba,{x:_0x23d7d0,y:_0x3208d1}=_0x2e3570[_0x21f3eb(0x525)](K[_0x21f3eb(0x19d)][_0x21f3eb(0x355)]([_0x5c185a,_0x3d0833])),{scaleX:_0x323a4e,scaleY:_0xdcd240}=_0x2e3570[_0x21f3eb(0x2df)](),_0x35ef97=_0x2e3570['getViewport'](Re[_0x21f3eb(0x33e)]['VIEW_MAIN']),_0x3ad599=_0x2e3570[_0x21f3eb(0x2a6)](K[_0x21f3eb(0x19d)][_0x21f3eb(0x355)]([_0x23d7d0,_0x3208d1]),_0x35ef97),_0x8d9434=_0x21b5e4[_0x21f3eb(0x2d5)](_0x5c185a,_0x3d0833,_0x323a4e,_0xdcd240,_0x3ad599);((_0x58a7d5=this[_0x21f3eb(0x4a8)])==null?void 0x0:_0x58a7d5[_0x21f3eb(0x2ef)])===_0x8d9434[_0x21f3eb(0x2ef)]&&((_0x8c5e14=this[_0x21f3eb(0x4a8)])==null?void 0x0:_0x8c5e14['row'])===_0x8d9434[_0x21f3eb(0x4a9)]||this[_0x21f3eb(0x3da)][_0x21f3eb(0x2d8)](_0x214066=>{_0x214066['onMouseMove'](_0x8d9434);});},0x64));});}[_0x38c3ff(0x3a3)](_0x286771,_0x15097c){const _0x405e0f=_0x38c3ff;var _0x126c1c;const _0xc1e4b6=(_0x126c1c=this['_sheetSkeletonManagerService'][_0x405e0f(0x2d4)]())==null?void 0x0:_0x126c1c[_0x405e0f(0x1ab)];if(!_0xc1e4b6)return;const _0x1d2f0e=this[_0x405e0f(0x4db)]();if(!_0x1d2f0e)return;this['_cursors'][_0x405e0f(0x2d8)](_0x3ef6d4=>{const _0x2a37cb=_0x405e0f;_0x3ef6d4[_0x2a37cb(0x22d)]();});const {scene:_0x2213e9}=_0x1d2f0e,_0x1dcfd8=Cs(Array[_0x405e0f(0x5ae)](_0x15097c['values']()))[_0x405e0f(0x4d7)](_0x4b3688=>{const _0x593bc4=_0x405e0f,{color:_0x389010,range:_0x29e87c,name:_0x5b6a20,selection:_0x1bb8f8,sheetID:_0x3b1f7e}=_0x4b3688,{startColumn:_0x37d1dd,startRow:_0xa33a94,endColumn:_0x149e77,endRow:_0x68a72d}=_0x29e87c,_0x5ce91b=Re[_0x593bc4(0x383)](_0xa33a94,_0x37d1dd,_0x2213e9,_0xc1e4b6),_0x16f92f=Re['getCoordByCell'](_0x68a72d,_0x149e77,_0x2213e9,_0xc1e4b6),{columnHeaderHeightAndMarginTop:_0x47d2ce}=_0xc1e4b6,{startX:_0x33cdfd,startY:_0x98a6b9}=_0x5ce91b,{endX:_0x319eb5,endY:_0x51d097}=_0x16f92f,_0x4408f6=_0x319eb5-_0x33cdfd,_0x2660a4=_0x51d097-_0x98a6b9,_0x3fa25e={'labelPosition':_0x98a6b9-_0x47d2ce>=Le?_0x593bc4(0x242):_0x593bc4(0x449),'sheetID':_0x3b1f7e,'range':_0x29e87c,'color':_0x389010,'name':_0x5b6a20,'selection':_0x1bb8f8,'left':_0x33cdfd,'top':_0x98a6b9,'width':_0x4408f6,'height':_0x2660a4,'evented':!0x1,'zIndex':Is};return new Sn(_0x5b6a20,_0x3fa25e);});_0x2213e9[_0x405e0f(0x2a1)](_0x1dcfd8,vs),this['_cursors']=new Set(_0x1dcfd8);}[_0x38c3ff(0x230)](){const _0x2cd62f=_0x38c3ff;var _0x1a2037;(_0x1a2037=this[_0x2cd62f(0x3da)])==null||_0x1a2037['forEach'](_0x4e1b4d=>_0x4e1b4d[_0x2cd62f(0x2da)]());}[_0x38c3ff(0x4db)](){const _0x59e498=_0x38c3ff;return Re[_0x59e498(0x563)](this[_0x59e498(0x268)]['unit'],this[_0x59e498(0x268)]);}};gt=gs([ot(0x1,a[_0x38c3ff(0x2af)](Re[_0x38c3ff(0x55c)])),ot(0x2,a[_0x38c3ff(0x2af)](De)),ot(0x3,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x3a4)]))],gt);function Cs(_0x20df60){const _0x1087c2=_0x38c3ff,_0x402d2d=new Map();return _0x20df60[_0x1087c2(0x2d8)](_0x1ee53a=>{const _0x199240=_0x1087c2;if(_0x402d2d[_0x199240(0x599)](_0x1ee53a[_0x199240(0x2f2)])){const _0x21126b=_0x402d2d[_0x199240(0x585)](_0x1ee53a[_0x199240(0x2f2)]);_0x21126b['name']+=',\x20'+_0x1ee53a[_0x199240(0x503)];}else _0x402d2d[_0x199240(0x3e8)](_0x1ee53a[_0x199240(0x2f2)],_0x1ee53a);}),Array[_0x1087c2(0x5ae)](_0x402d2d[_0x1087c2(0x1f7)]());}var X=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x3b47df){const _0x3f5b3f=_0x38c3ff;return _0x3b47df&&_0x3b47df[_0x3f5b3f(0x27b)]&&Object[_0x3f5b3f(0x39b)]['hasOwnProperty'][_0x3f5b3f(0x420)](_0x3b47df,_0x3f5b3f(0x1e9))?_0x3b47df[_0x3f5b3f(0x1e9)]:_0x3b47df;}var pn={'exports':{}},Xe={},Es=ae,bs=Symbol['for'](_0x38c3ff(0x4e3)),Ts=Symbol[_0x38c3ff(0x1cc)](_0x38c3ff(0x515)),Rs=Object[_0x38c3ff(0x39b)][_0x38c3ff(0x390)],ys=Es[_0x38c3ff(0x204)][_0x38c3ff(0x2be)],Os={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function gn(_0x331ce1,_0x37772c,_0x5583ea){const _0x1d4112=_0x38c3ff;var _0x4114e1,_0x507178={},_0xfa0e6a=null,_0x19f63d=null;_0x5583ea!==void 0x0&&(_0xfa0e6a=''+_0x5583ea),_0x37772c[_0x1d4112(0x5d1)]!==void 0x0&&(_0xfa0e6a=''+_0x37772c[_0x1d4112(0x5d1)]),_0x37772c[_0x1d4112(0x427)]!==void 0x0&&(_0x19f63d=_0x37772c['ref']);for(_0x4114e1 in _0x37772c)Rs['call'](_0x37772c,_0x4114e1)&&!Os[_0x1d4112(0x390)](_0x4114e1)&&(_0x507178[_0x4114e1]=_0x37772c[_0x4114e1]);if(_0x331ce1&&_0x331ce1[_0x1d4112(0x607)]){for(_0x4114e1 in(_0x37772c=_0x331ce1[_0x1d4112(0x607)],_0x37772c))_0x507178[_0x4114e1]===void 0x0&&(_0x507178[_0x4114e1]=_0x37772c[_0x4114e1]);}return{'$$typeof':bs,'type':_0x331ce1,'key':_0xfa0e6a,'ref':_0x19f63d,'props':_0x507178,'_owner':ys['current']};}Xe[_0x38c3ff(0x1e3)]=Ts,Xe[_0x38c3ff(0x5c5)]=gn,Xe['jsxs']=gn,pn[_0x38c3ff(0x1a9)]=Xe;var pe=pn[_0x38c3ff(0x1a9)],Q=function(){const _0x952181=_0x38c3ff;return Q=Object[_0x952181(0x4e0)]||function(_0x3086b3){const _0x102f13=_0x952181;for(var _0x16930b,_0x46377e=0x1,_0x277de1=arguments['length'];_0x46377e<_0x277de1;_0x46377e++){_0x16930b=arguments[_0x46377e];for(var _0x415413 in _0x16930b)Object['prototype'][_0x102f13(0x390)]['call'](_0x16930b,_0x415413)&&(_0x3086b3[_0x415413]=_0x16930b[_0x415413]);}return _0x3086b3;},Q[_0x952181(0x21e)](this,arguments);},Ds=function(_0x4e8f73,_0x5cbb5a){const _0x5eddab=_0x38c3ff;var _0x2b28e3={};for(var _0x2574d4 in _0x4e8f73)Object[_0x5eddab(0x39b)][_0x5eddab(0x390)][_0x5eddab(0x420)](_0x4e8f73,_0x2574d4)&&_0x5cbb5a[_0x5eddab(0x4da)](_0x2574d4)<0x0&&(_0x2b28e3[_0x2574d4]=_0x4e8f73[_0x2574d4]);if(_0x4e8f73!=null&&typeof Object['getOwnPropertySymbols']==_0x5eddab(0x226)){for(var _0x2df2dd=0x0,_0x2574d4=Object[_0x5eddab(0x34b)](_0x4e8f73);_0x2df2dd<_0x2574d4[_0x5eddab(0x58c)];_0x2df2dd++)_0x5cbb5a[_0x5eddab(0x4da)](_0x2574d4[_0x2df2dd])<0x0&&Object[_0x5eddab(0x39b)][_0x5eddab(0x3c5)][_0x5eddab(0x420)](_0x4e8f73,_0x2574d4[_0x2df2dd])&&(_0x2b28e3[_0x2574d4[_0x2df2dd]]=_0x4e8f73[_0x2574d4[_0x2df2dd]]);}return _0x2b28e3;},Dt=ae['forwardRef'](function(_0x2cbc04,_0x13d6ee){const _0x3076d9=_0x38c3ff;var _0x109959=_0x2cbc04[_0x3076d9(0x58a)],_0x5b0f37=_0x2cbc04['id'],_0xc4280f=_0x2cbc04[_0x3076d9(0x5e6)],_0x59a962=_0x2cbc04[_0x3076d9(0x523)],_0x502dce=Ds(_0x2cbc04,[_0x3076d9(0x58a),'id','className',_0x3076d9(0x523)]),_0x300de7=_0x3076d9(0x642)[_0x3076d9(0x3f0)](_0x5b0f37,'\x20')['concat'](_0xc4280f||'')[_0x3076d9(0x231)](),_0x484ce0=ae[_0x3076d9(0x443)]('_'[_0x3076d9(0x3f0)](Us()));return In(_0x109959,''[_0x3076d9(0x3f0)](_0x5b0f37),{'defIds':_0x109959[_0x3076d9(0x212)],'idSuffix':_0x484ce0[_0x3076d9(0x519)]},Q({'ref':_0x13d6ee,'className':_0x300de7},_0x502dce),_0x59a962);});function In(_0x4bc043,_0x2f5edd,_0xacedcf,_0x57c76f,_0x555a94){const _0x3803a5=_0x38c3ff;return ae[_0x3803a5(0x419)](_0x4bc043['tag'],Q(Q({'key':_0x2f5edd},ws(_0x4bc043,_0xacedcf,_0x555a94)),_0x57c76f),(Ps(_0x4bc043,_0xacedcf)['children']||[])[_0x3803a5(0x4d7)](function(_0x39072c,_0x33472d){const _0x51b4ea=_0x3803a5;return In(_0x39072c,''[_0x51b4ea(0x3f0)](_0x2f5edd,'-')[_0x51b4ea(0x3f0)](_0x4bc043[_0x51b4ea(0x3de)],'-')[_0x51b4ea(0x3f0)](_0x33472d),_0xacedcf,void 0x0,_0x555a94);}));}function ws(_0x2e2ddf,_0x4ea732,_0x5be140){const _0x68a7d1=_0x38c3ff;var _0x39b016=Q({},_0x2e2ddf[_0x68a7d1(0x532)]);_0x5be140!=null&&_0x5be140['colorChannel1']&&_0x39b016[_0x68a7d1(0x422)]===_0x68a7d1(0x569)&&(_0x39b016['fill']=_0x5be140[_0x68a7d1(0x569)]);var _0x46d89b=_0x4ea732[_0x68a7d1(0x212)];return!_0x46d89b||_0x46d89b[_0x68a7d1(0x58c)]===0x0||(_0x2e2ddf[_0x68a7d1(0x3de)]==='use'&&_0x39b016[_0x68a7d1(0x395)]&&(_0x39b016['xlink:href']=_0x39b016[_0x68a7d1(0x395)]+_0x4ea732[_0x68a7d1(0x3c7)]),Object[_0x68a7d1(0x56c)](_0x39b016)['forEach'](function(_0x3fdad1){const _0x4f5877=_0x68a7d1;var _0x268bfc=_0x3fdad1[0x0],_0x1063ee=_0x3fdad1[0x1];typeof _0x1063ee==_0x4f5877(0x53c)&&(_0x39b016[_0x268bfc]=_0x1063ee[_0x4f5877(0x346)](/url\(#(.*)\)/,_0x4f5877(0x238)[_0x4f5877(0x3f0)](_0x4ea732[_0x4f5877(0x3c7)],')')));})),_0x39b016;}function Ps(_0x9e2f5f,_0x1eede9){const _0x3396cc=_0x38c3ff;var _0xed6edf,_0xb680e5=_0x1eede9[_0x3396cc(0x212)];return!_0xb680e5||_0xb680e5[_0x3396cc(0x58c)]===0x0?_0x9e2f5f:_0x9e2f5f['tag']===_0x3396cc(0x1dc)&&(!((_0xed6edf=_0x9e2f5f[_0x3396cc(0x495)])===null||_0xed6edf===void 0x0)&&_0xed6edf['length'])?Q(Q({},_0x9e2f5f),{'children':_0x9e2f5f['children'][_0x3396cc(0x4d7)](function(_0x2ee499){const _0x4e9715=_0x3396cc;return typeof _0x2ee499['attrs']['id']==_0x4e9715(0x53c)&&_0xb680e5&&_0xb680e5['indexOf'](_0x2ee499[_0x4e9715(0x532)]['id'])>-0x1?Q(Q({},_0x2ee499),{'attrs':Q(Q({},_0x2ee499[_0x4e9715(0x532)]),{'id':_0x2ee499['attrs']['id']+_0x1eede9['idSuffix']})}):_0x2ee499;})}):_0x9e2f5f;}function Us(){const _0x4cac0d=_0x38c3ff;return Math['random']()[_0x4cac0d(0x459)](0x24)[_0x4cac0d(0x214)](0x2,0x8);}Dt[_0x38c3ff(0x48d)]=_0x38c3ff(0x45b);var Ms={'tag':_0x38c3ff(0x418),'attrs':{'fill':_0x38c3ff(0x558),'viewBox':_0x38c3ff(0x570),'width':_0x38c3ff(0x5c2),'height':_0x38c3ff(0x5c2)},'children':[{'tag':'g','attrs':{'clipPath':_0x38c3ff(0x3e0)},'children':[{'tag':_0x38c3ff(0x4c6),'attrs':{'stroke':_0x38c3ff(0x297),'d':_0x38c3ff(0x1d7),'strokeLinecap':_0x38c3ff(0x25e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x38c3ff(0x4a0)},'children':[{'tag':_0x38c3ff(0x4c6),'attrs':{'fill':_0x38c3ff(0x375),'d':_0x38c3ff(0x2fa)}}]}]}],'defIds':[_0x38c3ff(0x4a0)]},Cn=ae['forwardRef'](function(_0x1be1b5,_0x36a1c1){const _0x3b9d6b=_0x38c3ff;return ae[_0x3b9d6b(0x419)](Dt,Object[_0x3b9d6b(0x4e0)]({},_0x1be1b5,{'id':_0x3b9d6b(0x5d8),'ref':_0x36a1c1,'icon':Ms}));});Cn[_0x38c3ff(0x48d)]=_0x38c3ff(0x1e1);var As={'tag':_0x38c3ff(0x418),'attrs':{'fill':_0x38c3ff(0x558),'viewBox':_0x38c3ff(0x61d),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x38c3ff(0x445)},'children':[{'tag':_0x38c3ff(0x4c6),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':_0x38c3ff(0x25e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x38c3ff(0x583),'attrs':{'id':_0x38c3ff(0x589)},'children':[{'tag':_0x38c3ff(0x4c6),'attrs':{'fill':_0x38c3ff(0x375),'d':_0x38c3ff(0x2fa),'transform':'translate(.97)'}}]}]}],'defIds':[_0x38c3ff(0x589)]},En=ae[_0x38c3ff(0x616)](function(_0x21f60d,_0x4f3d1c){const _0x1a1ddf=_0x38c3ff;return ae[_0x1a1ddf(0x419)](Dt,Object[_0x1a1ddf(0x4e0)]({},_0x21f60d,{'id':_0x1a1ddf(0x593),'ref':_0x4f3d1c,'icon':As}));});En['displayName']=_0x38c3ff(0x351);function bn(_0x211edc){const _0x55a5b1=_0x38c3ff;var _0x29f5a0,_0x2eb39e,_0x1401ad='';if(typeof _0x211edc=='string'||typeof _0x211edc==_0x55a5b1(0x615))_0x1401ad+=_0x211edc;else{if(typeof _0x211edc=='object'){if(Array[_0x55a5b1(0x32a)](_0x211edc)){var _0x4562d0=_0x211edc[_0x55a5b1(0x58c)];for(_0x29f5a0=0x0;_0x29f5a0<_0x4562d0;_0x29f5a0++)_0x211edc[_0x29f5a0]&&(_0x2eb39e=bn(_0x211edc[_0x29f5a0]))&&(_0x1401ad&&(_0x1401ad+='\x20'),_0x1401ad+=_0x2eb39e);}else{for(_0x2eb39e in _0x211edc)_0x211edc[_0x2eb39e]&&(_0x1401ad&&(_0x1401ad+='\x20'),_0x1401ad+=_0x2eb39e);}}}return _0x1401ad;}function Ns(){const _0x375165=_0x38c3ff;for(var _0x295fdf,_0x1c1c0b,_0x37f399=0x0,_0x1628b2='',_0x47fce7=arguments[_0x375165(0x58c)];_0x37f399<_0x47fce7;_0x37f399++)(_0x295fdf=arguments[_0x37f399])&&(_0x1c1c0b=bn(_0x295fdf))&&(_0x1628b2&&(_0x1628b2+='\x20'),_0x1628b2+=_0x1c1c0b);return _0x1628b2;}const Ls=_0x38c3ff(0x35e),xs=_0x38c3ff(0x4e9),js='univer-online-status',$s='univer-online',Hs='univer-offline',Me={'onlineStatusIcon':Ls,'onlineStatusTitle':xs,'onlineStatus':js,'online':$s,'offline':Hs};function Bs(_0x718ace){const _0x324a9a=_0x38c3ff;switch(_0x718ace){case q[_0x324a9a(0x33f)]:return'collabStatus.offline';case q[_0x324a9a(0x348)]:return _0x324a9a(0x2fd);case q[_0x324a9a(0x61e)]:return'collabStatus.fetchMiss';case q[_0x324a9a(0x1a1)]:return _0x324a9a(0x2ae);case q['AWAITING']:case q[_0x324a9a(0x535)]:return _0x324a9a(0x457);case q[_0x324a9a(0x63f)]:case q[_0x324a9a(0x426)]:return _0x324a9a(0x5db);}}function Tn(_0x5d25ea){const _0xc3233c=_0x38c3ff,{status$:_0xb05c87}=_0x5d25ea,_0x5a1f71=ee[_0xc3233c(0x21f)](_0xb05c87,q[_0xc3233c(0x1a1)]),_0x1159df=a[_0xc3233c(0x644)](a[_0xc3233c(0x222)]),_0x2ce4d2=a[_0xc3233c(0x644)](exports[_0xc3233c(0x1f6)]),_0x1d71d2=_0x5a1f71!==q[_0xc3233c(0x33f)],_0x1fa950=_0x1159df['t'](Bs(_0x5a1f71)),_0x1024c6=Ns(Me[_0xc3233c(0x602)],{[Me['online']]:_0x1d71d2,[Me[_0xc3233c(0x647)]]:!_0x1d71d2}),_0x3ef05b=_0x1d71d2?pe[_0xc3233c(0x5c5)](En,{}):pe[_0xc3233c(0x5c5)](Cn,{}),_0x4102f5=ae[_0xc3233c(0x1af)](()=>{_0x1d71d2||_0x2ce4d2['reconnect']();},[_0x1d71d2,_0x2ce4d2]);function _0x5caf4c(){const _0x3e6ead=_0xc3233c;return pe[_0x3e6ead(0x3bd)](_0x3e6ead(0x3d9),{'className':_0x1024c6,'onClick':_0x4102f5,'children':[pe[_0x3e6ead(0x5c5)]('div',{'className':Me[_0x3e6ead(0x430)],'children':_0x3ef05b}),pe[_0x3e6ead(0x5c5)](_0x3e6ead(0x3d9),{'className':Me[_0x3e6ead(0x5c8)],'children':_0x1fa950})]});}return _0x1d71d2?_0x5caf4c():pe[_0xc3233c(0x5c5)](ge['Tooltip'],{'title':_0x1159df['t'](_0xc3233c(0x591)),'children':_0x5caf4c()});}var ks=Object[_0x38c3ff(0x1c1)],Ws=Object[_0x38c3ff(0x336)],Fs=(_0x3a7183,_0x292ebe,_0x518da8,_0x2ce189)=>{const _0x1c77d4=_0x38c3ff;for(var _0x39f764=_0x2ce189>0x1?void 0x0:_0x2ce189?Ws(_0x292ebe,_0x518da8):_0x292ebe,_0x2f83fd=_0x3a7183[_0x1c77d4(0x58c)]-0x1,_0x3f4a15;_0x2f83fd>=0x0;_0x2f83fd--)(_0x3f4a15=_0x3a7183[_0x2f83fd])&&(_0x39f764=(_0x2ce189?_0x3f4a15(_0x292ebe,_0x518da8,_0x39f764):_0x3f4a15(_0x39f764))||_0x39f764);return _0x2ce189&&_0x39f764&&ks(_0x292ebe,_0x518da8,_0x39f764),_0x39f764;},$e=(_0x41c262,_0x34d5bb)=>(_0x179103,_0x24e84e)=>_0x34d5bb(_0x179103,_0x24e84e,_0x41c262);exports[_0x38c3ff(0x4e6)]=class extends a['Disposable']{constructor(_0x541149,_0x3b5793,_0x26acbb,_0x4ef1cd){const _0x236bd2=_0x38c3ff;super(),I(this,_0x236bd2(0x586),new A[(_0x236bd2(0x4fc))](q['NOT_COLLAB'])),(this[_0x236bd2(0x393)]=_0x541149,this[_0x236bd2(0x3f2)]=_0x3b5793,this[_0x236bd2(0x3b6)]=_0x26acbb,this['_collaborationController']=_0x4ef1cd,this[_0x236bd2(0x2bb)](),this[_0x236bd2(0x374)]());}[_0x38c3ff(0x374)](){const _0x1cb771=_0x38c3ff;this['disposeWithMe'](this[_0x1cb771(0x393)][_0x1cb771(0x5e7)]['pipe'](A[_0x1cb771(0x5fa)](()=>{const _0x301558=_0x1cb771,_0x36065b=this[_0x301558(0x393)]['getFocusedUnit']();return _0x36065b?this['_collaborationController'][_0x301558(0x467)](_0x36065b['getUnitId']()):A['of'](null);}),A[_0x1cb771(0x5fa)](_0x147862=>_0x147862?_0x147862[_0x1cb771(0x5e4)]:A['of'](q['NOT_COLLAB'])))['subscribe'](_0x299b9b=>{const _0x381641=_0x1cb771;this[_0x381641(0x586)][_0x381641(0x4c4)](_0x299b9b);}));}[_0x38c3ff(0x2bb)](){const _0x4e1927=_0x38c3ff;this[_0x4e1927(0x4bd)](this[_0x4e1927(0x3f2)][_0x4e1927(0x40b)](ee[_0x4e1927(0x4d8)]['HEADER_MENU'],()=>a[_0x4e1927(0x47a)](Vs({'status$':this[_0x4e1927(0x586)][_0x4e1927(0x4a7)]()}),this[_0x4e1927(0x3b6)])));}},exports[_0x38c3ff(0x4e6)]=Fs([$e(0x0,a['IUniverInstanceService']),$e(0x1,ee['IUIPartsService']),$e(0x2,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x50e)])),$e(0x3,a[_0x38c3ff(0x2af)](exports[_0x38c3ff(0x571)]))],exports[_0x38c3ff(0x4e6)]);function Vs(_0xe9339){const {status$:_0x1b82f9}=_0xe9339;return function(){const _0x3e69a4=_0x4762;return pe[_0x3e69a4(0x5c5)](Tn,{'status$':_0x1b82f9});};}const wt=a[_0x38c3ff(0x275)](_0x38c3ff(0x444));var Gs=Object[_0x38c3ff(0x1c1)],Ys=Object[_0x38c3ff(0x336)],Ks=(_0x2473fa,_0x31a65d,_0x8279e1,_0x1b7432)=>{const _0xd5aef7=_0x38c3ff;for(var _0x55c5bb=_0x1b7432>0x1?void 0x0:_0x1b7432?Ys(_0x31a65d,_0x8279e1):_0x31a65d,_0x20b4f8=_0x2473fa[_0xd5aef7(0x58c)]-0x1,_0x1065e4;_0x20b4f8>=0x0;_0x20b4f8--)(_0x1065e4=_0x2473fa[_0x20b4f8])&&(_0x55c5bb=(_0x1b7432?_0x1065e4(_0x31a65d,_0x8279e1,_0x55c5bb):_0x1065e4(_0x55c5bb))||_0x55c5bb);return _0x1b7432&&_0x55c5bb&&Gs(_0x31a65d,_0x8279e1,_0x55c5bb),_0x55c5bb;},Te=(_0x50210e,_0x3ade49)=>(_0x533b19,_0x1f4623)=>_0x3ade49(_0x533b19,_0x1f4623,_0x50210e);exports[_0x38c3ff(0x388)]=class extends a[_0x38c3ff(0x22c)]{constructor(_0x4ab995,_0x193323,_0x1dcc3e,_0x27266f,_0xf3ac,_0x979e6d){const _0x35d466=_0x38c3ff;super(),this['_urlService']=_0x4ab995,this[_0x35d466(0x4ce)]=_0x193323,this[_0x35d466(0x4f6)]=_0x1dcc3e,this[_0x35d466(0x2ac)]=_0x27266f,this[_0x35d466(0x1ba)]=_0xf3ac,_0x979e6d?_0x979e6d==null||_0x979e6d[_0x35d466(0x1a6)]()[_0x35d466(0x1fb)](()=>this[_0x35d466(0x596)]()):(this['_logService'][_0x35d466(0x405)]('[DataLoaderController]',_0x35d466(0x2e3)),this[_0x35d466(0x596)]());}async[_0x38c3ff(0x596)](){const _0x41b2b8=_0x38c3ff,_0x595434=this[_0x41b2b8(0x414)][_0x41b2b8(0x400)](_0x41b2b8(0x4ea)),_0x2e0e5a=this[_0x41b2b8(0x414)][_0x41b2b8(0x400)](_0x41b2b8(0x42a));if(!_0x595434||!_0x2e0e5a){this[_0x41b2b8(0x4ce)][_0x41b2b8(0x405)](_0x41b2b8(0x343),_0x41b2b8(0x331));return;}switch(Number(_0x2e0e5a)){case ie[_0x41b2b8(0x23d)]:{const _0x3c55b7=await this[_0x41b2b8(0x456)](_0x595434);this[_0x41b2b8(0x4dc)](_0x3c55b7);break;}case ie['UNIVER_DOC']:{await this[_0x41b2b8(0x1ad)](_0x595434);break;}default:{this[_0x41b2b8(0x4ce)][_0x41b2b8(0x55e)]('[DataLoaderController]',_0x41b2b8(0x474));break;}}}async[_0x38c3ff(0x4dc)](_0x54df3d){const _0xa052ea=_0x38c3ff;await this[_0xa052ea(0x4f8)](_0x54df3d),_0x54df3d[_0xa052ea(0x608)][_0xa052ea(0x57b)](A[_0xa052ea(0x3fb)](this[_0xa052ea(0x5ff)]))[_0xa052ea(0x47b)](_0x112d49=>{const _0x279f63=_0xa052ea;_0x112d49&&this[_0x279f63(0x47c)](_0x112d49);}),this[_0xa052ea(0x414)]['urlChange$'][_0xa052ea(0x57b)](A['takeUntil'](this['dispose$']))[_0xa052ea(0x47b)](()=>this[_0xa052ea(0x4f8)](_0x54df3d));}[_0x38c3ff(0x47c)](_0x50e031,_0x5c0f39=!0x1){const _0x19a7d8=_0x38c3ff,_0xf408b9=this[_0x19a7d8(0x414)]['getParam']('subunit');_0x50e031[_0x19a7d8(0x5f0)]()!==_0xf408b9&&this[_0x19a7d8(0x414)][_0x19a7d8(0x37d)]('subunit',_0x50e031[_0x19a7d8(0x5f0)](),_0x5c0f39);}async[_0x38c3ff(0x4f8)](_0x3355e0){const _0x10cfb2=_0x38c3ff;var _0x498afe;const _0x5b1ceb=this[_0x10cfb2(0x414)][_0x10cfb2(0x400)]('subunit');if(!_0x5b1ceb||!_0x3355e0[_0x10cfb2(0x2b5)](_0x5b1ceb)){const _0x36d9de=_0x3355e0[_0x10cfb2(0x650)]()[0x0],_0x488415=_0x3355e0[_0x10cfb2(0x2b5)](_0x36d9de);if(!_0x488415)return;this['_updateURLWithCurrentState'](_0x488415,!0x0),await this[_0x10cfb2(0x4f6)][_0x10cfb2(0x4fe)](k[_0x10cfb2(0x384)]['id'],{'unitId':_0x3355e0['getUnitId'](),'subUnitId':_0x36d9de});return;}((_0x498afe=_0x3355e0['getActiveSheet']())==null?void 0x0:_0x498afe[_0x10cfb2(0x5f0)]())!==_0x5b1ceb&&await this[_0x10cfb2(0x4f6)]['executeCommand'](k[_0x10cfb2(0x384)]['id'],{'unitId':_0x3355e0['getUnitId'](),'subUnitId':_0x5b1ceb});}async[_0x38c3ff(0x456)](_0x21d87b){const _0x5f134f=_0x38c3ff;let _0x33646d=0x0;const _0x4d5c9f=await this[_0x5f134f(0x2ac)]['loadOfflineData'](_0x21d87b);return _0x4d5c9f&&(_0x4d5c9f[_0x5f134f(0x64b)]||_0x4d5c9f[_0x5f134f(0x1cd)][_0x5f134f(0x58c)]!==0x0)&&(_0x33646d=_0x4d5c9f[_0x5f134f(0x436)]),_0x33646d===0x0&&this['_logService'][_0x5f134f(0x405)](_0x5f134f(0x343),_0x5f134f(0x21d)),this['_snapshotService']['loadSheet'](_0x21d87b,_0x33646d);}async[_0x38c3ff(0x1ad)](_0x38859d){const _0x4ea284=_0x38c3ff;let _0x115540=0x0;const _0x20e260=await this[_0x4ea284(0x2ac)][_0x4ea284(0x1f2)](_0x38859d);return _0x20e260&&(_0x20e260[_0x4ea284(0x64b)]||_0x20e260[_0x4ea284(0x1cd)][_0x4ea284(0x58c)]!==0x0)&&(_0x115540=_0x20e260[_0x4ea284(0x436)]),_0x115540===0x0&&this[_0x4ea284(0x4ce)]['debug']('[DataLoaderController]',_0x4ea284(0x21d)),this[_0x4ea284(0x1ba)]['loadDoc'](_0x38859d,_0x115540);}},exports[_0x38c3ff(0x388)]=Ks([Te(0x0,wt),Te(0x1,a['ILogService']),Te(0x2,a[_0x38c3ff(0x439)]),Te(0x3,a['Inject'](exports[_0x38c3ff(0x227)])),Te(0x4,a[_0x38c3ff(0x2af)](S['SnapshotService'])),Te(0x5,a[_0x38c3ff(0x5e2)]($n['IRemoteInstanceService']))],exports[_0x38c3ff(0x388)]);var qs=Object[_0x38c3ff(0x1c1)],zs=Object[_0x38c3ff(0x336)],Xs=(_0x1da89c,_0x5a93eb,_0x401bc7,_0x1738c5)=>{const _0xe89e67=_0x38c3ff;for(var _0x5852fe=_0x1738c5>0x1?void 0x0:_0x1738c5?zs(_0x5a93eb,_0x401bc7):_0x5a93eb,_0x3eac63=_0x1da89c[_0xe89e67(0x58c)]-0x1,_0x5093ee;_0x3eac63>=0x0;_0x3eac63--)(_0x5093ee=_0x1da89c[_0x3eac63])&&(_0x5852fe=(_0x1738c5?_0x5093ee(_0x5a93eb,_0x401bc7,_0x5852fe):_0x5093ee(_0x5852fe))||_0x5852fe);return _0x1738c5&&_0x5852fe&&qs(_0x5a93eb,_0x401bc7,_0x5852fe),_0x5852fe;},kt=(_0x22c0c8,_0x23b69d)=>(_0x22b91c,_0x158339)=>_0x23b69d(_0x22b91c,_0x158339,_0x22c0c8);function _0x2079(){const _0x4bc825=['c1Prime','shouldCloseConn','extend','blockSize','getRelativeToViewportCoord','_send','1476423OZpQHe','_onConnectionFailed','ITelemetryService','permissionRejEvent','Hasher','_onLocalMutation','csShouldRetryEvent','collaboration-client.offline-data-not-saved','copyFileMeta','objectID','pad','attrs','objectType','_transformRemoteChangesetByIMECache','AWAITING_WITH_PENDING','_createHmacHelper','@univerjs/telemetry','Utf8','_getCurrentRevision','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','cfg','string','updateCollaborator','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','registerHTTPInterceptor','_schedule','SheetCollaborationEntity','_onRemoteRejected','joinRsp','_getSendChangesetTimeout','MergeInterceptorFactory','UNRECOGNIZED','toLowerCase','_exhaustRemoteChangesetQueue','compose','_docTransformStateCacheService','_permissionService','abs','drawWith','subscribeEvent','InsertSheetMutation','_anchor','readInt32LE','mixIn','_saveCache','_updateState','&assign=','getConfig','_handleHeartbeatEvent','none','byteLength','encryptBlock','socket\x20open.','SheetSkeletonManagerService','pauseCollaboration','error','snapshotServerUrl','append','onRendered','_waitCount','getSheetObject','serializeCombRequest','@univerjs/docs-ui','_onCombEvent','NOT_FOUND','updatePermissionPoint','colorChannel1','slice','SetSelectionsOperation','entries','/universer-api/snapshot','rng','online','0\x200\x2016\x2016','CollaborationController','_state$','title','connection\x20error','AWAITING','filter','disposeUnit','6ViWsqq','UNIVER_COLLABORATION_CLIENT_PLUGIN','symbol','pipe','[CollaborationSession]','SNAPSHOT_HAS_BEEN_REMOVED','CHANGESET_SHOULD_RETRY','_colorIndex','HttpExport','_socket$','RemoveRowCommandId','clipPath','_unitID','get','_status$','fetch_missing','reject','on-line-single_clip0_910_349','icon','_startDocCollabCursor','length','_session','UNIVER_UNKNOWN','_key','Rect','collab-client.tooltip.reconnect','getCollabCursors$','on-line-single','Undefined','params','_init','EffectRefRangId','text','has','createCollaborator','padding','/allowed','ERROR_EXCEED_SIZE','onPointerEnter$','LIVESHARE_TERMINATE','startTime','_color','InsertRangeMoveDownCommandId','sequenceExecute','_initResize','unshift','_onCursorDelete','transformRemoteChangeset','_httpService','_createInitialState','fromEvent','_reverseMap','textEncoder','DisposableCollection','from','socketService','_type','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','setShapeProps','getDocRanges','UNAUTHENTICATED','registerRefRange','MD5','transformStack\x20failed!','msCrypto','DocStateChangeManagerService','LICENSE_IMPORT_SIZE_EXCEEDED','getOffsetConfig','send','fillText','$super','_cachedData','getUnitStatus$','_transformStateCache','1em','deleteCollaborator','InsertRangeMoveRightCommandId','jsx','COMMENT_UPDATE','_clearOtherTimers','onlineStatusTitle','SEND_CHANGESET_TIMEOUT','_docStateChangeManagerService','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','kdf','_colorAssignService','CollaborationStatus','_drawRectRange','getRandomValues','key','_docSkeletonManagerService','/role','isTransformMutationsWithChangesetFailure','onStarting','IMessageService','_replaceFileID','off-line-single','[CollaborationState]:\x20apply\x20error!','getStateCache','collabStatus.synced','_handleJoinEvent','visibilitychange','LOCAL_CACHE_INTERVAL','getActiveRange','USERS_LEAVE','NodePositionConvertToRectRange','Optional','_handleEvent','status$','Plugin','className','focused$','newCsEvent','mapDocumentTypeToUniverType','ImageIoService','routeKey','NEW_CHANGESETS','NodePositionConvertToCursor','WebURLService','_oKey','getSheetId','EvpKDF','parseProtocolChangeset','INVALID_ARGUMENT','algo','getRenderById','leaveEvent','sheetID','_queuedRemoteChangesets','_showConflictNotification','switchMap','_drawAnchor','_append','collab-text-anchor-','DocSelectionManagerService','dispose$','_keyPriorReset','_roomMembers$','onlineStatus','HMAC','event$','labelPosition','_resendWithTimeout','defaultProps','activeSheet$','selections','onTransformSelections','replaceDocRanges','INTERNAL_ERROR','setInterval','_getRedoStack','getActiveSheet','_process','setAlpha','encrypt','_backgroundColor','conflict','number','forwardRef','updatePermissionObjEvent','collaboration-session-retry','update','close','UniverCollaborationPlugin','_getSignURL','0\x200\x2017\x2016','FETCH_MISS','[SyncedState]:\x20received\x20acknowledgement.','editing\x20status\x20changed\x20to','COMPLETION_FINISHED','[SyncedState]:\x20received\x20rejection.','revision','_transformPreviousActiveRange','onRemoteAck','ILogService','HTTPService','getImage','b64DecodeUnicode','_config','_scheduleClearOtherTimer','registerBeforeClose','_disableEditing','lineTo','backgroundColor','_initUnitPermissionChange','JOINING','onMissedChangesetFetched','hidden','transformMutation','_onRefRangeChange','delay','readAsDataURL','APPLY_REVISION_CONFILICT','_selfUnitIDs','LICENSE_DISTRO_REJECTED','restore','lib','_initCloseConn','randomUUID','SYNCED','_sessionStatus$','SHOULD_CLOSE_CONN','univerjs-icon\x20univerjs-icon-','find','useDependency','HmacSHA1','message$','offline','SHA1','UNIVER_DOC','onSendChangeset','awaitingChangeset','ranges','pending','reconnect','_stopTelemetryCollaborationNewChangeset','getUnhiddenWorksheets','[CollaborationSessionService]','substr','_instanceService','handleDeleteRangeMoveLeft','touchDependencies','BufferedBlockAlgorithm','addEventListener','_collaborationPaused','error$','_parse','crypto','randomBytes','getUnitOnRev','_onMessage','bind','_initCommandExecutedListener','APPLY_NON_SEQUENTIAL_REVISION','collab-rect-range-','_onUserJoin','Vector2','getMergeData','24vUeLge','onRemoteChangeset','NOT_COLLAB','finalize','_ensureSubject','_removeRoom','_onConnectionOpen','whenReady','_draw','Disposable','exports','_memberService','skeleton','setShowComponents','_loadDoc','handleInsertRangeMoveRight','useCallback','@univerjs/ui','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','DocSkeletonManagerService','_syncEditingCollabCursorService','ONLINE','popstate','/resources','_transformSelections','registerOnClose','clone','_snapshotService','7523408xEkiYW','IUndoRedoService','ReplaySubject','docStateChange$','syncEditingCollabCursor','signUrlServerUrl','defineProperty','/universer-api/oidc/authpage','_initEventListeners','_unlockTransition','_ws','sheetId','url','actions','_drawTextRange','ISnapshotServerService','getTime','for','mutations','Base64','resourceIDs','delete','DocIMEInputManagerService','merge','_state','_clearTimeoutTimer','blue400','_replayCachedMutations','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','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sid','put','COLLAB_WEB_SOCKET_URL','defs','DEFAULT_FILE_NAME','CollaborationStatusDisplay','exhaustSavingTask','_doCryptBlock','OffLineSingle','processBlock','Fragment','red300','_listenToOnlineEvent','rgba(255,\x20255,\x20255,\x200.01)','DeleteRangeMoveLeftCommandId','reqId','default','_sheetTransformSelectionsService','execute','@univerjs/drawing','close$','YUUMI_SUBSCRIPTION_NOT_FOUND','6847qbvNxK','compute','target','loadOfflineData','_eventUnsubscribe','getImageSourceCache','_configService','CollaborationSessionService','values','_name','_clearCollaborationTimeoutTimer','moveTo','then','_ENC_XFORM_MODE','_createSocket','getInterceptPoints','onStateChange','onSyncEditingCollabCursor','CollaborationEvent','_mode','_localeService','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','_onConflict','_onOffline','reduce','HEARTBEAT_TIMEOUT_KEY','_timeoutTimer','pushState','incrementRevOfUnit','SNAPSHOT_INVALID_SNAPSHOT','_sendHeartbeatTimer','keySize','_checkMissing','YUUMI_URL_COL_OUT_OF_RANGE','collaboratorID','defIds','/universer-api/file/{fileID}/sign-url','substring','image/jpeg','LOGIN_URL_KEY','_tryEnsureSocket','onRemoteRej','_remoteChangesetQueue','univer-pro.collaboration-client.single-active-unit-service','_disabled','_hasher','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','apply','useObservable','state','CBC','LocaleService','parse','closePath','_createInitialStateImpl','function','LocalCacheService','_scheduleHeartbeat','_redoStacks','rxjs/operators','gold400','RxDisposable','makeDirty','_HTTPService','interceptor','_removeCollabCursors','trim','AuthzIoHttpService','/block/','handleInsertCol','Module','buffer','_getDownloadEndpointURL','url(#$1','@univerjs/core','unit-cache-','_hover','fetchMiss','UNIVER_SHEET','_getSnapshotAPIPrefix','getTypeOfUnitAdded$','withCredentials','_createHelper','top','ICollaborationSocketService','_event$','_registerRenderDependencies','shareReplay','permission.content','RECT','_changesetSessionId','Tools','open$','save','sin','LICENSE_MAX_UNITS_EXCEEDED','session.connection-failed','_beforeCloseService','_hovered','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','members','getMemberID','range','_transformRemoteChangesetByStateCache','refreshPermission','YUUMI_UNABLE_LOAD_URL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','deepClone','SheetPermissionInitController','unsubscribe','round','[FetchMissState]','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursorShapes','_refreshCollabCursors','createEncryptor','_unitOnClients','transformSelections','change$','_transformService','_context','min','_retryConnectingTimer','_revisionService','handleInsertRangeMoveDown','getValue','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_heartbeatTimer','SessionStatus','_docTransformIMECacheService','submit\x20changeset\x20error!','encode','csAckEvent','createIdentifier','_substituteUndoStack','responseType','handleMoveRange','_doReset','verdancy600','__esModule','ACTIVE_UNIT_EVENT_CHANNEL','InsertColCommandId','words','UniverInstanceType','3052345QwNvkV','_members','body','BlockCipherMode','saveChangeset','_waitForHeartbeatResponse','_renderManagerService','IContextService','_handler','_getMergeRange','saveSnapshot','isInternalEditorID','_getUploadFileURL','StreamCipher','POST','initWorkbookPermissionChange','collaMsg','fromCollab','redoState','_sessions','location','_transformUndoredo','TEXT_RANGE_LAYER_INDEX','currentColor','_incrementRevisionNumber','_toggleOnline','_notificationService','getAllMembers','[OfflineState]:\x20received\x20acknowledgement.','runRefRangeMutations','ImageUploadStatusType','awaiting_with_pending','patch','addObjects','salt','_entityInit$','/fetchmissing?from=','HELLO','getVpScrollXYInfoByPosToVp','onload','IUniverInstanceService','createDecryptor','requireSession','/collaborator','_localCacheService','onlyLocal','collabStatus.notCollab','Inject','INGEST','_transformUndoRedoStack','_shouldReportTelemetry','onCommentUpdate','_onFetchMissResult','getSheetBySheetId','_saveTaskMap','status','_snapshotServerService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_invKeySchedule','_initStatusComponent','commentUpdate$','eventID','ReactCurrentOwner','userID','getResourcesRequest','_shapes','decrypt','not_collab','PasswordBasedCipher','SheetsSelectionsService','?size=','toDisposable','_listenToOfflineEvent','ERROR_IMAGE_TYPE','getMember','_transitionLocked','_getUndoStack','[PendingState]:\x20received\x20acknowledgement.','urlChange$','SNAPSHOT_SERVER_URL_KEY','_docSkeleton','\x0aAfter:\x20','onTransformRemoteChangesetByIMECache','splice','getCurrent','getCellPositionByOffset','_change$','ColorKit','forEach','_applyRemoteChangeset','dispose','UUID','awaiting','handleDeleteRangeMoveUp','[OfflineState]:\x20received\x20changeset.','getAncestorScale','parseChangesetToProtocol','data','telemetry\x20info\x20is\x20not\x20initialized','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','registerRenderModule','SerializableCipher','116HbERFc','_iv','onTransformChange$','MoveRangeCommandId','removeMember','now','DOC_RANGE_TYPE','UnitSnapshot','getUnitId','column','/object','capture','selection','width','AUTHZ_URL_KEY','isActive','IURLService','transformChangesets','onRemoteRetry','_resendTimer','M0\x200H16V16H0z','LocalUndoRedoService','_range','collabStatus.conflict','_removeClearOtherTimer','_decreaseWaiting','toggleOffline','CommandType','_singleActiveUnitService','hasher','@univerjs/docs','collabCursorState$','/rev/','USERS_ENTER','getRoom','getUnitType','onMissingChangesets','roles','sessionStatus','engine','m1Prime','setConfig','_clearLocalCache','size','MessageType','x-univer-host','clearTimeout','...','image/bmp','_sender','every','arc','infoRsp','BlockCipher','_id','socket$','EXCHANGE_SIGN_URL_SERVER_URL_KEY','sessionStatus$','height','_syncEditingCollabCursor','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getCurrentUnitForType','evenodd','_entities','IConfigService','closeSession','[UniverCollaborationClientPlugin]','RECV','isArray','enableSingleActiveInstanceLock','collabWebSocketUrl','auth.needGotoLoginAlert','getUnit','_executeRemoteChangeset','COMPRESS_MUTATION_SEND','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_createHandler','getWorkbookSelections','sheets','fillStyle','getOwnPropertyDescriptor','resize','toRgbString','[CollaborationEntity]','addImageSourceCache','_scheduleTimestamp','TEXT','_submitChangeset','VIEWPORT_KEY','OFFLINE','IDLE','join','endRow','[DataLoaderController]','JOIN','setActiveRange','replace','_registerDependencies','CONFLICT','mode','roomInfos','getOwnPropertySymbols','_pendingMutations','_socketMessageSubscription','IAuthzIoService','COMPRESS_MUTATION_APPLY','socket\x20close','OnLineSingle','_scene','image/gif','doc.mutation.rich-text-editing','FromArray','transformIMECache','editingUnit','_clearHeartbeatTimer','stopTime','getCurrentUser','floor','2188813YakUfd','PERMISSION_REJ','univer-online-status-icon','permission.title','_telemetryInfo','json','charAt','CipherParams','unitID','endColumn','loginUrlKey','EmptyMutation','split','MSG_FOR_ERROR','objects','black','APPLY_REJECT','TOO_MANY_REQUESTS','INotificationService','jiqing500','href','handleInsertRow','clear','NoPadding','_initStatusListener','#fff','_rescheduleHeartbeat','ws://127.0.0.1:8000/universer-api/comb/connect','CHANGESET_REVISION_CONFILICT','_getScale','_docSyncEditingCollabCursorService','collaboration.single-unit.warning','show','setParam','HmacMD5','_collabSessionService','_labelPosition','OpenSSL','UPDATE_PERMISSION_OBJ','getCoordByCell','SetWorksheetActivateCommand','_messageService','assignAColorForMemberID','SheetCollabCursorShape','DataLoaderController','[CollaborationSessionService]:\x20socket\x20error','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','isTransformMutationsWithChangesetSuccess','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','src','resolve','WorkbookEditablePermission','hasOwnProperty','JSONX','addObject','_univerInstanceService','_xformMode','xlink:href','_hideTimer','ceil','WordArray','_startCollaboration','COLLAB_SUBMIT_CHANGESET_URL_KEY','prototype','ENSURE_SNAPSHOT_EXECUTION','formatter','_sendHeartbeat','YUUMI_RATE_OVER_LIMIT','UNIVER_PROJECT','_onUserLeave','cursorInfo','_updateCollabCursors','ThemeService','unload','memberID','Hex','fetchThroughInterceptors','AES','roomMembers','@univerjs/network','collaboration_new_changeset','roomMembers$','conflict.content','pluginName','_resendTimeout','snapshot','code','_scheduleSaving','APPLY_DUPLICATED','Pkcs7','_injector','concatMap','COLORS','random','SetDocZoomRatioOperation','setTimeout','getTypeOfUnitDisposed$','jsxs','_textBubble','unitId\x20is\x20not\x20found','Encryptor','UNDEFINED','_startSheetCollabCursor','getRangePointData','@univerjs/engine-render','propertyIsEnumerable','_collabCursorController','idSuffix','mergeOverrideWithDependencies','@univerjs/design','4149901euQzNB','RevisionService','ITransformService','cursorInfo$','throttleTime','Subject','\x20in\x20_schedule.','_docTransformSelectionsService','_substituteRedoStack','@univerjs/engine-formula','InsertRowCommandId','_acknowledgedAwaitingChangeset','localeService','LIVESHARE_FETCH_OPERATIONS','format','div','_cursors','Shape','decryptBlock','_refRangeService','tag','createSocket','url(#off-line-single_clip0_910_343)','LICENSE_EXPORT_SIZE_EXCEEDED','_updateStatus','startColumn','stringify','_collaborationTimeoutTimer','triggerDblclick','ILocalStorageService','set','_updateLocalCursor','IRenderManagerService','[CollaborationUndoRedoService]','includes','_transformIMECache','isTransformChangesetsSuccess','_changesetReqId','concat','take','_uiPartsService','_updateLocalCache','_handleHover','_onCursorUpdate','updateOfflineData','getItem','_undoRedoService','getFocusedUnit','_localStorageService','takeUntil','[PendingState]:\x20received\x20rejection.','getCurrentSelections','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','setCurrentUser','getParam','enableLocalCache','transform','charCodeAt','_initMergeInterceptor','debug','PSEUDO_FETCH_MISSING_RESULT','LEAVE','fromCharCode','[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.','_userManagerService','registerComponent','#FFF','complete','/new_changes','_document','/universer-api/comb','ivSize','resend','NO_OTHER_CLIENTS_EDITING','_urlService','_joinRoom','_online','&source=','svg','createElement','getCollabEntity','_compressMutationService','\x20-\x20','RemoveColCommandId','MemberService','m2Prime','call','IPermissionService','fill','catch','OTHER_CLIENTS_EDITING','add','PENDING','ref','[OfflineState]:\x20received\x20rejection.','session','type','Warning','_themeService','all','_initDependencies','history','onlineStatusIcon','_doFinalize','UniverNetworkPlugin','batchAllowed','CompressMutationService','originalMeta','rev','_render','with','ICommandService','_retryCount','BASE64','setItem','_commentService','create','encodeURIComponent','_getSaveTimeout','RETRY_CONNECTING_MAX_COUNT_KEY','enc','useRef','uni.network.url-service','url(#on-line-single_clip0_910_349)','isTransformMutationFailure','createInstance','HEARTBEAT_INTERVAL_KEY','bottom','Cipher','RegularPolygon','onReady','equals','_cipher','putCollaborators','isEditing','getCurrentRevOfUnit','_imageSourceCache','getSkeleton','saveImage','replaceState','_loadSheet','collabStatus.syncing','subUnitId','toString','_lockTransition','UniverIcon','Rectangle','HEARTBEAT_INTERVAL','baseRev','APPLY_PERMISSION_DENIED','_getAPIPrefix','_keySchedule','SNAPSHOT_URL_KEY','_sendingTimer','RefRangeService','_toggleOffline','HttpImport','getCollabEntity$','@univerjs-pro/collaboration','@univerjs/sheets-ui','_data','30qrnSGv','_clearUndo','UPDATE_CURSOR','setStateCache','_nRounds','serializeRangeWithSheet','DependentOn','currentTheme$','push','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','init','CollaborationSocketService','_onRemoteChangeset','visibilityState','deserializeRangeWithSheet','connectInjector','subscribe','_updateURLWithCurrentState','appendMutation','_roomMembers','LIVESHARE_REQUEST_HOST','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','HEARTBEAT','hostname','SEND_CHANGESET_TIMEOUT_KEY','__creator','headers','CollaborationEntity','onPointerMove$','_onRemoteACK','COLLAB_WEB_SOCKET_URL_KEY','ALREADY_EXISTS','requestParams','ImageSourceType','displayName','_socketReady','getUniverSheetInstance','clearInterval','session.will-retry','unitId','newValue','handleIRemoveCol','children','FileId','DocCollaborationEntity','FAIL','IImageIoService','6JVqDUC','getColor','measureText','HEARTBEAT_TIMEOUT','_clearRedo','reverse','off-line-single_clip0_910_343','Decryptor','_anchorDot','1246172rFvIWW','__Key__','collabSubmitChangesetUrl','_awaitingChangeset','asObservable','_lastPointer','row','combineLatest','listCollaborators','method','authzUrl','Unknown\x20user','saveSheetBlock','_getAPIPrefixPath','_minBufferSize','toggleOnline','onTransformState','commentUpdateEvent','CHANGESET_REJ','generateRandomId','SnapshotServerOverHTTPService','_sheetSkeletonManagerService','purple300','Base','onCommandExecuted','isPermissionRej','disposeWithMe','transformMutationsWithChangeset','disableLocalCache','sigBytes','storage','searchParams','color','next','_unitStatus','path','_initRequestHeader','_isPermissionRej','allowed','debounceTime','fetchMissingChangesets','_transformHistoryAndStateStack','UnitEmbedded','_logService','/-/object/-/batch_allowed','_onJoinRoomEvent','findNodePositionByCharIndex','post','_commentUpdate$','MUTATION','file','CollaborationSession','map','BuiltInUIPart','RETRY_CONNECTING_MAX_COUNT','indexOf','_getSheetObject','_setupSubUnitSync','_startTelemetryCollaborationNewChangeset','_collabCursorState$','collaborators','assign','/unit/','reset','react.element','max','/universer-api/snapshot/','DesktopCollaborationStatusDisplayController','image/jpg','_cursorInfo$','univer-online-status-title','unit','UNIVER_SLIDE','synced','_prevBlock','_collaborationSessionService','origin','_map','currentSkeleton$','CONNECTOR_DATA_TOO_LARGE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_hash','result','_commandService','_getLoginPath','_updateSubUnitFromURLParams','updateMember','cmd','_assignedColors','BehaviorSubject','textRanges','executeCommand','_socket','SetTextSelectionsOperation','_nDataBytes','objectActions','name','_throwTelemetryCollaborationNewChangeset','onTransformIME','onTransformRemoteChangesetByStateCache','undoState','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','enableOfflineEditing','\x20to\x20','_undoStacks','Injector','unknown','_transformStack','_iKey','SUBMIT_CHANGESET','_clearScheduledTask','debounce','react.fragment','Error','/object/','\x0aCurrent:\x20','current','flatMap','UNKNOWN_CMD','WebSocketService','ERROR_IMAGE','updateCursorEvent','unpad','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.'];_0x2079=function(){return _0x4bc825;};return _0x2079();}const Js=_0x38c3ff(0x1dd),Zs='Univer';let Ve=class extends a[_0x38c3ff(0x1a8)]{constructor(_0x286e08,_0x558e8e){const _0x1b7e4c=_0x38c3ff;super(),this['_univerInstanceService']=_0x286e08,this[_0x1b7e4c(0x1f5)]=_0x558e8e,this[_0x1b7e4c(0x596)]();}['_init'](){const _0x55d1c3=_0x38c3ff;this[_0x55d1c3(0x4bd)](this[_0x55d1c3(0x393)]['focused$']['subscribe'](()=>{const _0x4567d1=_0x55d1c3;var _0x440de2;const _0xc0f83d=this['_univerInstanceService'][_0x4567d1(0x3f9)]();let _0x8f11b3=(_0x440de2=this[_0x4567d1(0x1f5)][_0x4567d1(0x556)](Js))!=null?_0x440de2:Zs;_0xc0f83d instanceof a['Workbook']&&(_0x8f11b3=_0xc0f83d[_0x4567d1(0x503)]),document[_0x4567d1(0x573)]=_0x8f11b3;}));}};Ve=Xs([kt(0x0,a[_0x38c3ff(0x2a8)]),kt(0x1,a[_0x38c3ff(0x326)])],Ve);var Qs=Object[_0x38c3ff(0x1c1)],er=Object[_0x38c3ff(0x336)],tr=(_0xefd605,_0x1af07d,_0x2fedc2,_0x115a8c)=>{for(var _0x848330=_0x115a8c>0x1?void 0x0:_0x115a8c?er(_0x1af07d,_0x2fedc2):_0x1af07d,_0x5d5626=_0xefd605['length']-0x1,_0x143589;_0x5d5626>=0x0;_0x5d5626--)(_0x143589=_0xefd605[_0x5d5626])&&(_0x848330=(_0x115a8c?_0x143589(_0x1af07d,_0x2fedc2,_0x848330):_0x143589(_0x848330))||_0x848330);return _0x115a8c&&_0x848330&&Qs(_0x1af07d,_0x2fedc2,_0x848330),_0x848330;},at=(_0x499a45,_0x3d5c8c)=>(_0x305af2,_0x678e8e)=>_0x3d5c8c(_0x305af2,_0x678e8e,_0x499a45);let Ge=class{constructor(_0x22ace4,_0x5db77c,_0x35d17a){const _0x3342a4=_0x38c3ff;this[_0x3342a4(0x1f5)]=_0x22ace4,this['_httpService']=_0x5db77c,this[_0x3342a4(0x3d6)]=_0x35d17a,this['init']();}['init'](){const _0x2f5dc9=_0x38c3ff;this[_0x2f5dc9(0x5a8)][_0x2f5dc9(0x53f)]({'priority':0x1,'interceptor':(_0x2eac5c,_0x21a205)=>_0x21a205(_0x2eac5c)[_0x2f5dc9(0x57b)](A[_0x2f5dc9(0x3b7)](async _0x1e72ef=>{const _0x1793c1=_0x2f5dc9,_0x5e3ecd=_0x1e72ef;if(_0x5e3ecd[_0x1793c1(0x2b7)]===0x191&&window['confirm'](this[_0x1793c1(0x3d6)]['t'](_0x1793c1(0x32d)))){const _0x1b56a7=window[_0x1793c1(0x43f)](window[_0x1793c1(0x294)][_0x1793c1(0x370)]);window[_0x1793c1(0x294)][_0x1793c1(0x370)]=this[_0x1793c1(0x4f7)]()+'?url='+_0x1b56a7;}return _0x5e3ecd;}))});}[_0x38c3ff(0x4f7)](){const _0x14e62b=_0x38c3ff;var _0x41d800,_0x1faac8;const _0x5b8d11=this[_0x14e62b(0x1f5)]['getConfig'](an),_0x32f02f=this[_0x14e62b(0x1f5)][_0x14e62b(0x556)](te);return(_0x1faac8=(_0x41d800=_0x32f02f==null?void 0x0:_0x32f02f[_0x14e62b(0x366)])!=null?_0x41d800:_0x5b8d11)!=null?_0x1faac8:qn;}};Ge=tr([at(0x0,a[_0x38c3ff(0x326)]),at(0x1,a[_0x38c3ff(0x2af)](Z[_0x38c3ff(0x627)])),at(0x2,a['Inject'](a[_0x38c3ff(0x222)]))],Ge);var nr=Object[_0x38c3ff(0x1c1)],ir=Object['getOwnPropertyDescriptor'],sr=(_0x14a964,_0x389acc,_0x4703f8,_0x3fdb11)=>{const _0x3b7865=_0x38c3ff;for(var _0xad13da=_0x3fdb11>0x1?void 0x0:_0x3fdb11?ir(_0x389acc,_0x4703f8):_0x389acc,_0x539231=_0x14a964[_0x3b7865(0x58c)]-0x1,_0x528705;_0x539231>=0x0;_0x539231--)(_0x528705=_0x14a964[_0x539231])&&(_0xad13da=(_0x3fdb11?_0x528705(_0x389acc,_0x4703f8,_0xad13da):_0x528705(_0xad13da))||_0xad13da);return _0x3fdb11&&_0xad13da&&nr(_0x389acc,_0x4703f8,_0xad13da),_0xad13da;},Wt=(_0x50edb4,_0x263d8e)=>(_0x38ab11,_0x4534f6)=>_0x263d8e(_0x38ab11,_0x4534f6,_0x50edb4);const Rn=_0x38c3ff(0x2f4),rr='/universer-api/authz';exports[_0x38c3ff(0x232)]=class extends a[_0x38c3ff(0x1a8)]{constructor(_0x3ca6c8,_0x22f4a7){const _0x26a063=_0x38c3ff;super(),this['_HTTPService']=_0x3ca6c8,this['_configService']=_0x22f4a7,this[_0x26a063(0x404)]();}[_0x38c3ff(0x404)](){const _0x5d0275=_0x38c3ff,_0x512844=this;this[_0x5d0275(0x4bd)](this[_0x5d0275(0x22e)][_0x5d0275(0x53f)]({'priority':0x3e7,'interceptor':Z[_0x5d0275(0x545)]({'isMatch'(_0x39e8ed){const _0x6fa386=_0x5d0275;var _0x5f5289;if(_0x39e8ed[_0x6fa386(0x4ac)]==='POST'&&((_0x5f5289=_0x39e8ed['requestParams'])!=null&&_0x5f5289[_0x6fa386(0x282)])){const {objectID:_0x4e12a3,objectType:_0x35f0ec}=_0x39e8ed[_0x6fa386(0x48b)]['body']||{};if(!_0x4e12a3||_0x35f0ec===void 0x0)return!0x1;const _0x2e13b9=_0x512844[_0x6fa386(0x4b0)]()+'/'+_0x35f0ec+_0x6fa386(0x517)+_0x4e12a3+_0x6fa386(0x59c);if(_0x39e8ed[_0x6fa386(0x1c7)]===_0x2e13b9)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x8c8a06){const _0x300281=_0x5d0275;var _0x40eaa1;return(_0x40eaa1=_0x8c8a06[_0x300281(0x48b)])==null?void 0x0:_0x40eaa1['body'];},'mergeParamsToRequest'(_0x1c0718,_0x4dae72){const _0x8eafc3=_0x5d0275,_0x2d4004=_0x512844[_0x8eafc3(0x4b0)]()+_0x8eafc3(0x4cf),_0x485a2e=_0x1c0718[_0x8eafc3(0x207)]((_0x26813e,_0x2555ff)=>{const {unitID:_0x159041,objectID:_0x23e4a3,objectType:_0x5eeca0,actions:_0x15b4a7}=_0x2555ff;return _0x26813e[_0x159041]||(_0x26813e[_0x159041]={}),_0x26813e[_0x159041][_0x23e4a3]||(_0x26813e[_0x159041][_0x23e4a3]={'objectID':_0x23e4a3,'objectType':_0x5eeca0,'actions':[]}),_0x26813e[_0x159041][_0x23e4a3]['actions']['push'](..._0x15b4a7),_0x26813e;},{}),_0x8737b7=[];for(const _0x27961d in _0x485a2e)for(const _0x1eef08 in _0x485a2e[_0x27961d]){const {actions:_0x5ec21e,objectType:_0x31cf9d}=_0x485a2e[_0x27961d][_0x1eef08],_0x52d9ac=[...new Set(_0x5ec21e)];_0x8737b7[_0x8eafc3(0x473)]({'unitID':_0x27961d,'objectID':_0x1eef08,'objectType':_0x31cf9d,'actions':_0x52d9ac});}return new Z['HTTPRequest'](_0x8eafc3(0x28e),_0x2d4004,{'headers':_0x4dae72['headers'],'withCredentials':_0x4dae72[_0x8eafc3(0x240)],'responseType':_0x4dae72[_0x8eafc3(0x277)],'body':{'requests':_0x8737b7}});}},{'distributeResult'(_0x287a39,_0x42e76e){const _0x376206=_0x5d0275,{objectActions:_0x27b72e}=_0x287a39;return _0x42e76e[_0x376206(0x4d7)](_0x17cf26=>{const _0x3d1384=_0x376206,{unitID:_0x457b51,objectID:_0xf423df,actions:_0xe09721}=_0x17cf26,_0x42d8a6=_0x27b72e[_0x3d1384(0x643)](_0x2e1434=>_0x2e1434[_0x3d1384(0x364)]===_0x457b51&&_0x2e1434[_0x3d1384(0x530)]===_0xf423df),_0x4c4591=_0xe09721[_0x3d1384(0x4d7)](_0x2b3096=>_0x42d8a6==null?void 0x0:_0x42d8a6['actions'][_0x3d1384(0x643)](_0x241411=>_0x241411['action']===_0x2b3096))[_0x3d1384(0x576)](_0x865d70=>!!_0x865d70);return{'config':_0x17cf26,'result':{'actions':_0x4c4591,'error':_0x287a39[_0x3d1384(0x55e)]}};});}})}));}['_getAPIPrefixPath'](){const _0x165c9d=_0x38c3ff;var _0x1578fe,_0x519ec9;const _0x3f007e=this[_0x165c9d(0x1f5)][_0x165c9d(0x556)](Rn),_0x42963a=this[_0x165c9d(0x1f5)]['getConfig'](te);return(_0x519ec9=(_0x1578fe=_0x42963a==null?void 0x0:_0x42963a[_0x165c9d(0x4ad)])!=null?_0x1578fe:_0x3f007e)!=null?_0x519ec9:rr;}async[_0x38c3ff(0x43e)](_0x3bb1c1){const _0x20ceaa=_0x38c3ff,_0x552d64=this[_0x20ceaa(0x4b0)]()+'/'+_0x3bb1c1[_0x20ceaa(0x533)]+_0x20ceaa(0x2f0);return(await this[_0x20ceaa(0x22e)]['post'](_0x552d64,{'body':_0x3bb1c1}))[_0x20ceaa(0x282)][_0x20ceaa(0x530)]||'';}async['list'](_0x51ecb4){const _0x230395=_0x38c3ff,_0x22259a=this[_0x230395(0x4b0)]()+'/-/object/list';return(await this[_0x230395(0x22e)][_0x230395(0x4d2)](_0x22259a,{'body':_0x51ecb4}))[_0x230395(0x282)][_0x230395(0x36a)];}async[_0x38c3ff(0x619)](_0x374d18){const _0x562a7b=_0x38c3ff,_0x1f828f=this['_getAPIPrefixPath']()+'/'+_0x374d18['objectType']+'/object/'+_0x374d18[_0x562a7b(0x530)];await this['_HTTPService'][_0x562a7b(0x1da)](_0x1f828f,{'body':_0x374d18});}async[_0x38c3ff(0x4c9)](_0x13d12a){const _0x2a5b78=_0x38c3ff,_0x66fc32=this[_0x2a5b78(0x4b0)]()+'/'+_0x13d12a['objectType']+_0x2a5b78(0x517)+_0x13d12a[_0x2a5b78(0x530)]+'/allowed';return(await this[_0x2a5b78(0x22e)]['post'](_0x66fc32,{'body':_0x13d12a}))[_0x2a5b78(0x282)]['actions'];}async[_0x38c3ff(0x433)](_0xa59604){const _0xf9af17=_0x38c3ff,_0x51f5d9=this[_0xf9af17(0x4b0)]()+_0xf9af17(0x4cf);return(await this['_HTTPService']['post'](_0x51f5d9,{'body':{'requests':_0xa59604}}))[_0xf9af17(0x282)][_0xf9af17(0x502)];}async['listRoles'](_0x460f3){const _0x107862=_0x38c3ff,_0x4c1bf5=this['_getAPIPrefixPath']()+'/'+_0x460f3[_0x107862(0x533)]+_0x107862(0x5d3),_0x5a585f=await this[_0x107862(0x22e)][_0x107862(0x4d2)](_0x4c1bf5,{'body':_0x460f3});return{'roles':_0x5a585f[_0x107862(0x282)][_0x107862(0x30b)],'actions':_0x5a585f[_0x107862(0x282)][_0x107862(0x1c8)]};}async[_0x38c3ff(0x5c3)](_0x3679cf){const _0x13c28f=_0x38c3ff,_0xa84e1e=this[_0x13c28f(0x4b0)]()+'/collaborator';await this[_0x13c28f(0x22e)][_0x13c28f(0x1d0)](_0xa84e1e,{'params':{'collaboratorID':_0x3679cf[_0x13c28f(0x211)],'objectID':_0x3679cf[_0x13c28f(0x530)],'unitID':_0x3679cf[_0x13c28f(0x364)]}});}async[_0x38c3ff(0x53d)](_0x9f19c5){const _0x56b934=_0x38c3ff,_0x2dacf5=this[_0x56b934(0x4b0)]()+_0x56b934(0x2ab);await this[_0x56b934(0x22e)][_0x56b934(0x2a0)](_0x2dacf5,{'body':_0x9f19c5});}async[_0x38c3ff(0x59a)](_0x608d93){const _0x2836fb=_0x38c3ff,_0x1eeac4=this[_0x2836fb(0x4b0)]()+'/collaborator';await this[_0x2836fb(0x22e)][_0x2836fb(0x4d2)](_0x1eeac4,{'body':_0x608d93});}async[_0x38c3ff(0x4ab)](_0x1d6cab){const _0x51d5f9=_0x38c3ff,_0x40c6db=this[_0x51d5f9(0x4b0)]()+_0x51d5f9(0x2ab);return(await this[_0x51d5f9(0x22e)][_0x51d5f9(0x585)](_0x40c6db,{'params':{'objectID':_0x1d6cab[_0x51d5f9(0x530)],'unitID':_0x1d6cab[_0x51d5f9(0x364)]}}))[_0x51d5f9(0x282)][_0x51d5f9(0x4df)];}async[_0x38c3ff(0x44f)](_0x162fe3){const _0x52bfbd=_0x38c3ff,_0x8d48d0=this[_0x52bfbd(0x4b0)]()+'/collaborator';await this[_0x52bfbd(0x22e)][_0x52bfbd(0x1da)](_0x8d48d0,{'body':_0x162fe3});}},exports[_0x38c3ff(0x232)]=sr([Wt(0x0,a['Inject'](Z['HTTPService'])),Wt(0x1,a[_0x38c3ff(0x2af)](a['IConfigService']))],exports['AuthzIoHttpService']);var yn={'exports':{}};function or(_0x482d24){const _0xdacc91=_0x38c3ff;throw new Error('Could\x20not\x20dynamically\x20require\x20\x22'+_0x482d24+_0xdacc91(0x53a));}var ct={'exports':{}},Ft;function oe(){const _0x3bd2e8=_0x38c3ff;return Ft||(Ft=0x1,function(_0x55ac7a,_0x10d542){(function(_0x5de1ad,_0x2b73cd){_0x55ac7a['exports']=_0x2b73cd();}(X,function(){var _0x3fc56e=_0x3fc56e||function(_0x1c1a73,_0x3f299d){const _0x34b777=_0x4762;var _0x2de5fb;if(typeof window<'u'&&window[_0x34b777(0x65b)]&&(_0x2de5fb=window[_0x34b777(0x65b)]),typeof self<'u'&&self[_0x34b777(0x65b)]&&(_0x2de5fb=self['crypto']),typeof globalThis<'u'&&globalThis[_0x34b777(0x65b)]&&(_0x2de5fb=globalThis['crypto']),!_0x2de5fb&&typeof window<'u'&&window[_0x34b777(0x5b8)]&&(_0x2de5fb=window[_0x34b777(0x5b8)]),!_0x2de5fb&&typeof X<'u'&&X[_0x34b777(0x65b)]&&(_0x2de5fb=X['crypto']),!_0x2de5fb&&typeof or==_0x34b777(0x226))try{_0x2de5fb=require(_0x34b777(0x65b));}catch{}var _0x3dfce2=function(){const _0x467e4b=_0x34b777;if(_0x2de5fb){if(typeof _0x2de5fb[_0x467e4b(0x5d0)]==_0x467e4b(0x226))try{return _0x2de5fb[_0x467e4b(0x5d0)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x2de5fb[_0x467e4b(0x65c)]==_0x467e4b(0x226))try{return _0x2de5fb[_0x467e4b(0x65c)](0x4)[_0x467e4b(0x551)]();}catch{}}throw new Error(_0x467e4b(0x5b1));},_0x2dca0a=Object['create']||(function(){function _0x45b0d9(){}return function(_0x2fd631){const _0xf3a132=_0x4762;var _0x535373;return _0x45b0d9['prototype']=_0x2fd631,_0x535373=new _0x45b0d9(),_0x45b0d9[_0xf3a132(0x39b)]=null,_0x535373;};}()),_0x23f42f={},_0x118632=_0x23f42f['lib']={},_0x3b0a2d=_0x118632['Base']=(function(){return{'extend':function(_0x18ccfc){const _0xcb7855=_0x4762;var _0x515bb5=_0x2dca0a(this);return _0x18ccfc&&_0x515bb5['mixIn'](_0x18ccfc),(!_0x515bb5['hasOwnProperty'](_0xcb7855(0x475))||this[_0xcb7855(0x475)]===_0x515bb5[_0xcb7855(0x475)])&&(_0x515bb5[_0xcb7855(0x475)]=function(){const _0x4a86ba=_0xcb7855;_0x515bb5[_0x4a86ba(0x5be)][_0x4a86ba(0x475)][_0x4a86ba(0x21e)](this,arguments);}),_0x515bb5[_0xcb7855(0x475)][_0xcb7855(0x39b)]=_0x515bb5,_0x515bb5[_0xcb7855(0x5be)]=this,_0x515bb5;},'create':function(){const _0xa073db=_0x4762;var _0x7d4220=this[_0xa073db(0x523)]();return _0x7d4220[_0xa073db(0x475)][_0xa073db(0x21e)](_0x7d4220,arguments),_0x7d4220;},'init':function(){},'mixIn':function(_0x4b6fdd){const _0x111bde=_0x4762;for(var _0x2e244e in _0x4b6fdd)_0x4b6fdd['hasOwnProperty'](_0x2e244e)&&(this[_0x2e244e]=_0x4b6fdd[_0x2e244e]);_0x4b6fdd[_0x111bde(0x390)]('toString')&&(this[_0x111bde(0x459)]=_0x4b6fdd[_0x111bde(0x459)]);},'clone':function(){const _0x5f3269=_0x4762;return this['init'][_0x5f3269(0x39b)][_0x5f3269(0x523)](this);}};}()),_0x14d975=_0x118632[_0x34b777(0x398)]=_0x3b0a2d[_0x34b777(0x523)]({'init':function(_0xbfa74e,_0x298857){const _0x42a456=_0x34b777;_0xbfa74e=this[_0x42a456(0x27e)]=_0xbfa74e||[],_0x298857!=_0x3f299d?this['sigBytes']=_0x298857:this[_0x42a456(0x4c0)]=_0xbfa74e[_0x42a456(0x58c)]*0x4;},'toString':function(_0x3816e3){const _0x2a7455=_0x34b777;return(_0x3816e3||_0xbb4173)[_0x2a7455(0x3e4)](this);},'concat':function(_0x446510){const _0x3693b7=_0x34b777;var _0x13c866=this[_0x3693b7(0x27e)],_0x48ece5=_0x446510['words'],_0x31235d=this[_0x3693b7(0x4c0)],_0x93525c=_0x446510[_0x3693b7(0x4c0)];if(this['clamp'](),_0x31235d%0x4)for(var _0x4d19b3=0x0;_0x4d19b3<_0x93525c;_0x4d19b3++){var _0x53f5b4=_0x48ece5[_0x4d19b3>>>0x2]>>>0x18-_0x4d19b3%0x4*0x8&0xff;_0x13c866[_0x31235d+_0x4d19b3>>>0x2]|=_0x53f5b4<<0x18-(_0x31235d+_0x4d19b3)%0x4*0x8;}else{for(var _0x3df266=0x0;_0x3df266<_0x93525c;_0x3df266+=0x4)_0x13c866[_0x31235d+_0x3df266>>>0x2]=_0x48ece5[_0x3df266>>>0x2];}return this[_0x3693b7(0x4c0)]+=_0x93525c,this;},'clamp':function(){const _0x17c4fb=_0x34b777;var _0xa0ed8b=this[_0x17c4fb(0x27e)],_0xe2e5df=this[_0x17c4fb(0x4c0)];_0xa0ed8b[_0xe2e5df>>>0x2]&=0xffffffff<<0x20-_0xe2e5df%0x4*0x8,_0xa0ed8b['length']=_0x1c1a73['ceil'](_0xe2e5df/0x4);},'clone':function(){const _0x848aef=_0x34b777;var _0x13af67=_0x3b0a2d[_0x848aef(0x1b9)][_0x848aef(0x420)](this);return _0x13af67[_0x848aef(0x27e)]=this[_0x848aef(0x27e)]['slice'](0x0),_0x13af67;},'random':function(_0x4b1b66){const _0x57f9ee=_0x34b777;for(var _0xeffddc=[],_0x43ee64=0x0;_0x43ee64<_0x4b1b66;_0x43ee64+=0x4)_0xeffddc['push'](_0x3dfce2());return new _0x14d975[(_0x57f9ee(0x475))](_0xeffddc,_0x4b1b66);}}),_0x135688=_0x23f42f['enc']={},_0xbb4173=_0x135688[_0x34b777(0x3a7)]={'stringify':function(_0x1a1a56){const _0x36a621=_0x34b777;for(var _0x96470f=_0x1a1a56[_0x36a621(0x27e)],_0x325dac=_0x1a1a56[_0x36a621(0x4c0)],_0x3242ee=[],_0x12e5b4=0x0;_0x12e5b4<_0x325dac;_0x12e5b4++){var _0x23e539=_0x96470f[_0x12e5b4>>>0x2]>>>0x18-_0x12e5b4%0x4*0x8&0xff;_0x3242ee[_0x36a621(0x473)]((_0x23e539>>>0x4)[_0x36a621(0x459)](0x10)),_0x3242ee[_0x36a621(0x473)]((_0x23e539&0xf)[_0x36a621(0x459)](0x10));}return _0x3242ee[_0x36a621(0x341)]('');},'parse':function(_0x2d12ba){const _0x44c7d2=_0x34b777;for(var _0x125a87=_0x2d12ba['length'],_0x5d2215=[],_0x5113bf=0x0;_0x5113bf<_0x125a87;_0x5113bf+=0x2)_0x5d2215[_0x5113bf>>>0x3]|=parseInt(_0x2d12ba[_0x44c7d2(0x652)](_0x5113bf,0x2),0x10)<<0x18-_0x5113bf%0x8*0x4;return new _0x14d975[(_0x44c7d2(0x475))](_0x5d2215,_0x125a87/0x2);}},_0x34846f=_0x135688['Latin1']={'stringify':function(_0x373e7d){const _0x1e08dc=_0x34b777;for(var _0x39ca67=_0x373e7d[_0x1e08dc(0x27e)],_0x50fdd3=_0x373e7d[_0x1e08dc(0x4c0)],_0x440311=[],_0x1fdfc0=0x0;_0x1fdfc0<_0x50fdd3;_0x1fdfc0++){var _0x5b2bf9=_0x39ca67[_0x1fdfc0>>>0x2]>>>0x18-_0x1fdfc0%0x4*0x8&0xff;_0x440311['push'](String[_0x1e08dc(0x408)](_0x5b2bf9));}return _0x440311[_0x1e08dc(0x341)]('');},'parse':function(_0x1f20c5){const _0x21ee4c=_0x34b777;for(var _0x2ade58=_0x1f20c5[_0x21ee4c(0x58c)],_0x1ed5a9=[],_0x456b03=0x0;_0x456b03<_0x2ade58;_0x456b03++)_0x1ed5a9[_0x456b03>>>0x2]|=(_0x1f20c5[_0x21ee4c(0x403)](_0x456b03)&0xff)<<0x18-_0x456b03%0x4*0x8;return new _0x14d975[(_0x21ee4c(0x475))](_0x1ed5a9,_0x2ade58);}},_0x5d98d0=_0x135688[_0x34b777(0x538)]={'stringify':function(_0x59a926){const _0x558919=_0x34b777;try{return decodeURIComponent(escape(_0x34846f[_0x558919(0x3e4)](_0x59a926)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'parse':function(_0x2d750d){const _0x1c877a=_0x34b777;return _0x34846f[_0x1c877a(0x223)](unescape(encodeURIComponent(_0x2d750d)));}},_0x22be2f=_0x118632[_0x34b777(0x656)]=_0x3b0a2d['extend']({'reset':function(){const _0x572e71=_0x34b777;this[_0x572e71(0x46a)]=new _0x14d975[(_0x572e71(0x475))](),this[_0x572e71(0x501)]=0x0;},'_append':function(_0x237a29){const _0x21b4cb=_0x34b777;typeof _0x237a29==_0x21b4cb(0x53c)&&(_0x237a29=_0x5d98d0[_0x21b4cb(0x223)](_0x237a29)),this['_data'][_0x21b4cb(0x3f0)](_0x237a29),this[_0x21b4cb(0x501)]+=_0x237a29['sigBytes'];},'_process':function(_0x4037b3){const _0x359655=_0x34b777;var _0x1999c7,_0x7a1eb5=this[_0x359655(0x46a)],_0x59ab84=_0x7a1eb5['words'],_0x5c12a4=_0x7a1eb5[_0x359655(0x4c0)],_0x140127=this[_0x359655(0x524)],_0x2c9cd7=_0x140127*0x4,_0x8bfc07=_0x5c12a4/_0x2c9cd7;_0x4037b3?_0x8bfc07=_0x1c1a73[_0x359655(0x397)](_0x8bfc07):_0x8bfc07=_0x1c1a73['max']((_0x8bfc07|0x0)-this[_0x359655(0x4b1)],0x0);var _0x51df5d=_0x8bfc07*_0x140127,_0x1e37c9=_0x1c1a73[_0x359655(0x269)](_0x51df5d*0x4,_0x5c12a4);if(_0x51df5d){for(var _0x1bbaf1=0x0;_0x1bbaf1<_0x51df5d;_0x1bbaf1+=_0x140127)this['_doProcessBlock'](_0x59ab84,_0x1bbaf1);_0x1999c7=_0x59ab84[_0x359655(0x2d3)](0x0,_0x51df5d),_0x7a1eb5[_0x359655(0x4c0)]-=_0x1e37c9;}return new _0x14d975['init'](_0x1999c7,_0x1e37c9);},'clone':function(){const _0x7503c8=_0x34b777;var _0x3d57a2=_0x3b0a2d[_0x7503c8(0x1b9)][_0x7503c8(0x420)](this);return _0x3d57a2['_data']=this['_data'][_0x7503c8(0x1b9)](),_0x3d57a2;},'_minBufferSize':0x0});_0x118632['Hasher']=_0x22be2f[_0x34b777(0x523)]({'cfg':_0x3b0a2d[_0x34b777(0x523)](),'init':function(_0x22bd71){const _0xbedea5=_0x34b777;this[_0xbedea5(0x53b)]=this[_0xbedea5(0x53b)][_0xbedea5(0x523)](_0x22bd71),this[_0xbedea5(0x4e2)]();},'reset':function(){const _0x380c1f=_0x34b777;_0x22be2f[_0x380c1f(0x4e2)][_0x380c1f(0x420)](this),this[_0x380c1f(0x279)]();},'update':function(_0x1805ff){const _0x3a12b5=_0x34b777;return this[_0x3a12b5(0x5fc)](_0x1805ff),this[_0x3a12b5(0x610)](),this;},'finalize':function(_0xec66b4){const _0x4242f0=_0x34b777;_0xec66b4&&this[_0x4242f0(0x5fc)](_0xec66b4);var _0x507043=this[_0x4242f0(0x431)]();return _0x507043;},'blockSize':0x10,'_createHelper':function(_0x5d6cbf){return function(_0x5c171f,_0x2ed90d){const _0x535f7c=_0x4762;return new _0x5d6cbf[(_0x535f7c(0x475))](_0x2ed90d)[_0x535f7c(0x1a2)](_0x5c171f);};},'_createHmacHelper':function(_0x525420){return function(_0x573f09,_0x16e04b){const _0x38fa69=_0x4762;return new _0x469b27['HMAC'][(_0x38fa69(0x475))](_0x525420,_0x16e04b)[_0x38fa69(0x1a2)](_0x573f09);};}});var _0x469b27=_0x23f42f[_0x34b777(0x5f4)]={};return _0x23f42f;}(Math);return _0x3fc56e;}));}(ct)),ct[_0x3bd2e8(0x1a9)];}var lt={'exports':{}},Vt;function On(){const _0x5b802a=_0x38c3ff;return Vt||(Vt=0x1,function(_0x3b4c7f,_0x250c08){(function(_0x3d85d1,_0x340dd0){const _0x228897=_0x4762;_0x3b4c7f[_0x228897(0x1a9)]=_0x340dd0(oe());}(X,function(_0x1e0a19){const _0x3f06d2=_0x4762;return(function(){const _0x2529f3=_0x4762;var _0xfebbf1=_0x1e0a19,_0x4ed2b2=_0xfebbf1[_0x2529f3(0x63c)],_0x2b6174=_0x4ed2b2[_0x2529f3(0x398)],_0x566467=_0xfebbf1[_0x2529f3(0x442)];_0x566467[_0x2529f3(0x1ce)]={'stringify':function(_0x134a14){const _0x462c72=_0x2529f3;var _0x16b8ea=_0x134a14['words'],_0x2edb68=_0x134a14['sigBytes'],_0x2074aa=this[_0x462c72(0x4f0)];_0x134a14['clamp']();for(var _0x41f571=[],_0x2b09bd=0x0;_0x2b09bd<_0x2edb68;_0x2b09bd+=0x3)for(var _0x5acaaf=_0x16b8ea[_0x2b09bd>>>0x2]>>>0x18-_0x2b09bd%0x4*0x8&0xff,_0x4583bd=_0x16b8ea[_0x2b09bd+0x1>>>0x2]>>>0x18-(_0x2b09bd+0x1)%0x4*0x8&0xff,_0xbd4081=_0x16b8ea[_0x2b09bd+0x2>>>0x2]>>>0x18-(_0x2b09bd+0x2)%0x4*0x8&0xff,_0x2aa865=_0x5acaaf<<0x10|_0x4583bd<<0x8|_0xbd4081,_0x30c0f7=0x0;_0x30c0f7<0x4&&_0x2b09bd+_0x30c0f7*0.75<_0x2edb68;_0x30c0f7++)_0x41f571['push'](_0x2074aa[_0x462c72(0x362)](_0x2aa865>>>0x6*(0x3-_0x30c0f7)&0x3f));var _0x2fb34e=_0x2074aa[_0x462c72(0x362)](0x40);if(_0x2fb34e){for(;_0x41f571[_0x462c72(0x58c)]%0x4;)_0x41f571[_0x462c72(0x473)](_0x2fb34e);}return _0x41f571[_0x462c72(0x341)]('');},'parse':function(_0xe40561){const _0x405ab2=_0x2529f3;var _0x1c2f16=_0xe40561[_0x405ab2(0x58c)],_0x3e4eac=this[_0x405ab2(0x4f0)],_0x2a9f00=this[_0x405ab2(0x5ab)];if(!_0x2a9f00){_0x2a9f00=this[_0x405ab2(0x5ab)]=[];for(var _0x44909d=0x0;_0x44909d<_0x3e4eac['length'];_0x44909d++)_0x2a9f00[_0x3e4eac['charCodeAt'](_0x44909d)]=_0x44909d;}var _0x50e43b=_0x3e4eac['charAt'](0x40);if(_0x50e43b){var _0x4cc8c1=_0xe40561['indexOf'](_0x50e43b);_0x4cc8c1!==-0x1&&(_0x1c2f16=_0x4cc8c1);}return _0x107057(_0xe40561,_0x1c2f16,_0x2a9f00);},'_map':_0x2529f3(0x5cb)};function _0x107057(_0x274208,_0x2ea53d,_0x20762b){const _0x424358=_0x2529f3;for(var _0x1bf2ff=[],_0x10fb40=0x0,_0xa2c7fa=0x0;_0xa2c7fa<_0x2ea53d;_0xa2c7fa++)if(_0xa2c7fa%0x4){var _0x37a3ae=_0x20762b[_0x274208[_0x424358(0x403)](_0xa2c7fa-0x1)]<<_0xa2c7fa%0x4*0x2,_0x4be7cc=_0x20762b[_0x274208[_0x424358(0x403)](_0xa2c7fa)]>>>0x6-_0xa2c7fa%0x4*0x2,_0x2dafb4=_0x37a3ae|_0x4be7cc;_0x1bf2ff[_0x10fb40>>>0x2]|=_0x2dafb4<<0x18-_0x10fb40%0x4*0x8,_0x10fb40++;}return _0x2b6174['create'](_0x1bf2ff,_0x10fb40);}}()),_0x1e0a19[_0x3f06d2(0x442)][_0x3f06d2(0x1ce)];}));}(lt)),lt[_0x5b802a(0x1a9)];}var ht={'exports':{}},Gt;function ar(){const _0x3f2b80=_0x38c3ff;return Gt||(Gt=0x1,function(_0x5f1cae,_0x1f23fa){(function(_0x10b32a,_0x373d83){const _0x56deac=_0x4762;_0x5f1cae[_0x56deac(0x1a9)]=_0x373d83(oe());}(X,function(_0x5c6706){const _0x569d82=_0x4762;return function(_0x3948d4){const _0x1a6523=_0x4762;var _0x324ef7=_0x5c6706,_0x20d966=_0x324ef7[_0x1a6523(0x63c)],_0x2027e1=_0x20d966[_0x1a6523(0x398)],_0x2a027f=_0x20d966[_0x1a6523(0x52b)],_0x58481e=_0x324ef7[_0x1a6523(0x5f4)],_0x50806c=[];(function(){const _0x480c43=_0x1a6523;for(var _0x56bcbf=0x0;_0x56bcbf<0x40;_0x56bcbf++)_0x50806c[_0x56bcbf]=_0x3948d4[_0x480c43(0x54c)](_0x3948d4[_0x480c43(0x24d)](_0x56bcbf+0x1))*0x100000000|0x0;}());var _0x24b4b1=_0x58481e[_0x1a6523(0x5b6)]=_0x2a027f[_0x1a6523(0x523)]({'_doReset':function(){const _0x4eaa7d=_0x1a6523;this[_0x4eaa7d(0x4f4)]=new _0x2027e1[(_0x4eaa7d(0x475))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x37245e,_0x7b888f){const _0x486387=_0x1a6523;for(var _0x2f1df0=0x0;_0x2f1df0<0x10;_0x2f1df0++){var _0x33ab65=_0x7b888f+_0x2f1df0,_0x3c857d=_0x37245e[_0x33ab65];_0x37245e[_0x33ab65]=(_0x3c857d<<0x8|_0x3c857d>>>0x18)&0xff00ff|(_0x3c857d<<0x18|_0x3c857d>>>0x8)&0xff00ff00;}var _0x316e6c=this[_0x486387(0x4f4)][_0x486387(0x27e)],_0x4770d3=_0x37245e[_0x7b888f+0x0],_0x222f67=_0x37245e[_0x7b888f+0x1],_0x1b05a9=_0x37245e[_0x7b888f+0x2],_0x92824c=_0x37245e[_0x7b888f+0x3],_0x2e11cc=_0x37245e[_0x7b888f+0x4],_0x35fbc4=_0x37245e[_0x7b888f+0x5],_0x21f2e5=_0x37245e[_0x7b888f+0x6],_0x3aa915=_0x37245e[_0x7b888f+0x7],_0x52d573=_0x37245e[_0x7b888f+0x8],_0x243238=_0x37245e[_0x7b888f+0x9],_0x67795a=_0x37245e[_0x7b888f+0xa],_0xf930fa=_0x37245e[_0x7b888f+0xb],_0xc1465b=_0x37245e[_0x7b888f+0xc],_0x1e5d7b=_0x37245e[_0x7b888f+0xd],_0x5490cd=_0x37245e[_0x7b888f+0xe],_0x454a80=_0x37245e[_0x7b888f+0xf],_0x2dd43b=_0x316e6c[0x0],_0x516517=_0x316e6c[0x1],_0x300def=_0x316e6c[0x2],_0x4a1dde=_0x316e6c[0x3];_0x2dd43b=_0x4142cc(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x4770d3,0x7,_0x50806c[0x0]),_0x4a1dde=_0x4142cc(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x222f67,0xc,_0x50806c[0x1]),_0x300def=_0x4142cc(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x1b05a9,0x11,_0x50806c[0x2]),_0x516517=_0x4142cc(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x92824c,0x16,_0x50806c[0x3]),_0x2dd43b=_0x4142cc(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x2e11cc,0x7,_0x50806c[0x4]),_0x4a1dde=_0x4142cc(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x35fbc4,0xc,_0x50806c[0x5]),_0x300def=_0x4142cc(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x21f2e5,0x11,_0x50806c[0x6]),_0x516517=_0x4142cc(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x3aa915,0x16,_0x50806c[0x7]),_0x2dd43b=_0x4142cc(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x52d573,0x7,_0x50806c[0x8]),_0x4a1dde=_0x4142cc(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x243238,0xc,_0x50806c[0x9]),_0x300def=_0x4142cc(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x67795a,0x11,_0x50806c[0xa]),_0x516517=_0x4142cc(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0xf930fa,0x16,_0x50806c[0xb]),_0x2dd43b=_0x4142cc(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0xc1465b,0x7,_0x50806c[0xc]),_0x4a1dde=_0x4142cc(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x1e5d7b,0xc,_0x50806c[0xd]),_0x300def=_0x4142cc(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x5490cd,0x11,_0x50806c[0xe]),_0x516517=_0x4142cc(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x454a80,0x16,_0x50806c[0xf]),_0x2dd43b=_0x3f1cf6(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x222f67,0x5,_0x50806c[0x10]),_0x4a1dde=_0x3f1cf6(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x21f2e5,0x9,_0x50806c[0x11]),_0x300def=_0x3f1cf6(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0xf930fa,0xe,_0x50806c[0x12]),_0x516517=_0x3f1cf6(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x4770d3,0x14,_0x50806c[0x13]),_0x2dd43b=_0x3f1cf6(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x35fbc4,0x5,_0x50806c[0x14]),_0x4a1dde=_0x3f1cf6(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x67795a,0x9,_0x50806c[0x15]),_0x300def=_0x3f1cf6(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x454a80,0xe,_0x50806c[0x16]),_0x516517=_0x3f1cf6(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x2e11cc,0x14,_0x50806c[0x17]),_0x2dd43b=_0x3f1cf6(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x243238,0x5,_0x50806c[0x18]),_0x4a1dde=_0x3f1cf6(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x5490cd,0x9,_0x50806c[0x19]),_0x300def=_0x3f1cf6(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x92824c,0xe,_0x50806c[0x1a]),_0x516517=_0x3f1cf6(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x52d573,0x14,_0x50806c[0x1b]),_0x2dd43b=_0x3f1cf6(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x1e5d7b,0x5,_0x50806c[0x1c]),_0x4a1dde=_0x3f1cf6(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x1b05a9,0x9,_0x50806c[0x1d]),_0x300def=_0x3f1cf6(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x3aa915,0xe,_0x50806c[0x1e]),_0x516517=_0x3f1cf6(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0xc1465b,0x14,_0x50806c[0x1f]),_0x2dd43b=_0x5ec5f3(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x35fbc4,0x4,_0x50806c[0x20]),_0x4a1dde=_0x5ec5f3(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x52d573,0xb,_0x50806c[0x21]),_0x300def=_0x5ec5f3(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0xf930fa,0x10,_0x50806c[0x22]),_0x516517=_0x5ec5f3(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x5490cd,0x17,_0x50806c[0x23]),_0x2dd43b=_0x5ec5f3(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x222f67,0x4,_0x50806c[0x24]),_0x4a1dde=_0x5ec5f3(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x2e11cc,0xb,_0x50806c[0x25]),_0x300def=_0x5ec5f3(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x3aa915,0x10,_0x50806c[0x26]),_0x516517=_0x5ec5f3(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x67795a,0x17,_0x50806c[0x27]),_0x2dd43b=_0x5ec5f3(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x1e5d7b,0x4,_0x50806c[0x28]),_0x4a1dde=_0x5ec5f3(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x4770d3,0xb,_0x50806c[0x29]),_0x300def=_0x5ec5f3(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x92824c,0x10,_0x50806c[0x2a]),_0x516517=_0x5ec5f3(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x21f2e5,0x17,_0x50806c[0x2b]),_0x2dd43b=_0x5ec5f3(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x243238,0x4,_0x50806c[0x2c]),_0x4a1dde=_0x5ec5f3(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0xc1465b,0xb,_0x50806c[0x2d]),_0x300def=_0x5ec5f3(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x454a80,0x10,_0x50806c[0x2e]),_0x516517=_0x5ec5f3(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x1b05a9,0x17,_0x50806c[0x2f]),_0x2dd43b=_0x1e28dc(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x4770d3,0x6,_0x50806c[0x30]),_0x4a1dde=_0x1e28dc(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x3aa915,0xa,_0x50806c[0x31]),_0x300def=_0x1e28dc(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x5490cd,0xf,_0x50806c[0x32]),_0x516517=_0x1e28dc(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x35fbc4,0x15,_0x50806c[0x33]),_0x2dd43b=_0x1e28dc(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0xc1465b,0x6,_0x50806c[0x34]),_0x4a1dde=_0x1e28dc(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x92824c,0xa,_0x50806c[0x35]),_0x300def=_0x1e28dc(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x67795a,0xf,_0x50806c[0x36]),_0x516517=_0x1e28dc(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x222f67,0x15,_0x50806c[0x37]),_0x2dd43b=_0x1e28dc(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x52d573,0x6,_0x50806c[0x38]),_0x4a1dde=_0x1e28dc(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0x454a80,0xa,_0x50806c[0x39]),_0x300def=_0x1e28dc(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x21f2e5,0xf,_0x50806c[0x3a]),_0x516517=_0x1e28dc(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x1e5d7b,0x15,_0x50806c[0x3b]),_0x2dd43b=_0x1e28dc(_0x2dd43b,_0x516517,_0x300def,_0x4a1dde,_0x2e11cc,0x6,_0x50806c[0x3c]),_0x4a1dde=_0x1e28dc(_0x4a1dde,_0x2dd43b,_0x516517,_0x300def,_0xf930fa,0xa,_0x50806c[0x3d]),_0x300def=_0x1e28dc(_0x300def,_0x4a1dde,_0x2dd43b,_0x516517,_0x1b05a9,0xf,_0x50806c[0x3e]),_0x516517=_0x1e28dc(_0x516517,_0x300def,_0x4a1dde,_0x2dd43b,_0x243238,0x15,_0x50806c[0x3f]),_0x316e6c[0x0]=_0x316e6c[0x0]+_0x2dd43b|0x0,_0x316e6c[0x1]=_0x316e6c[0x1]+_0x516517|0x0,_0x316e6c[0x2]=_0x316e6c[0x2]+_0x300def|0x0,_0x316e6c[0x3]=_0x316e6c[0x3]+_0x4a1dde|0x0;},'_doFinalize':function(){const _0x5573b8=_0x1a6523;var _0x3fbd35=this[_0x5573b8(0x46a)],_0x7ad4fb=_0x3fbd35[_0x5573b8(0x27e)],_0x1c45e8=this[_0x5573b8(0x501)]*0x8,_0x3ca257=_0x3fbd35[_0x5573b8(0x4c0)]*0x8;_0x7ad4fb[_0x3ca257>>>0x5]|=0x80<<0x18-_0x3ca257%0x20;var _0x559b2a=_0x3948d4[_0x5573b8(0x35b)](_0x1c45e8/0x100000000),_0x3f1b48=_0x1c45e8;_0x7ad4fb[(_0x3ca257+0x40>>>0x9<<0x4)+0xf]=(_0x559b2a<<0x8|_0x559b2a>>>0x18)&0xff00ff|(_0x559b2a<<0x18|_0x559b2a>>>0x8)&0xff00ff00,_0x7ad4fb[(_0x3ca257+0x40>>>0x9<<0x4)+0xe]=(_0x3f1b48<<0x8|_0x3f1b48>>>0x18)&0xff00ff|(_0x3f1b48<<0x18|_0x3f1b48>>>0x8)&0xff00ff00,_0x3fbd35[_0x5573b8(0x4c0)]=(_0x7ad4fb[_0x5573b8(0x58c)]+0x1)*0x4,this[_0x5573b8(0x610)]();for(var _0x10ee23=this[_0x5573b8(0x4f4)],_0x4300a1=_0x10ee23['words'],_0x31eaa6=0x0;_0x31eaa6<0x4;_0x31eaa6++){var _0x388a46=_0x4300a1[_0x31eaa6];_0x4300a1[_0x31eaa6]=(_0x388a46<<0x8|_0x388a46>>>0x18)&0xff00ff|(_0x388a46<<0x18|_0x388a46>>>0x8)&0xff00ff00;}return _0x10ee23;},'clone':function(){const _0x535b33=_0x1a6523;var _0x3c9127=_0x2a027f[_0x535b33(0x1b9)][_0x535b33(0x420)](this);return _0x3c9127[_0x535b33(0x4f4)]=this[_0x535b33(0x4f4)][_0x535b33(0x1b9)](),_0x3c9127;}});function _0x4142cc(_0x47ca30,_0xa1f3dd,_0x25edbf,_0x41346b,_0x55d0f4,_0x5ecbad,_0x3cc67f){var _0x1fc0c2=_0x47ca30+(_0xa1f3dd&_0x25edbf|~_0xa1f3dd&_0x41346b)+_0x55d0f4+_0x3cc67f;return(_0x1fc0c2<<_0x5ecbad|_0x1fc0c2>>>0x20-_0x5ecbad)+_0xa1f3dd;}function _0x3f1cf6(_0x535b5d,_0x2eb0d0,_0x909252,_0x5b67ed,_0x2991c2,_0x1d0ba6,_0xb1346c){var _0x553b43=_0x535b5d+(_0x2eb0d0&_0x5b67ed|_0x909252&~_0x5b67ed)+_0x2991c2+_0xb1346c;return(_0x553b43<<_0x1d0ba6|_0x553b43>>>0x20-_0x1d0ba6)+_0x2eb0d0;}function _0x5ec5f3(_0x169fce,_0x5d207a,_0x391317,_0x987c00,_0x33699d,_0x5e94c0,_0x446143){var _0x4b6199=_0x169fce+(_0x5d207a^_0x391317^_0x987c00)+_0x33699d+_0x446143;return(_0x4b6199<<_0x5e94c0|_0x4b6199>>>0x20-_0x5e94c0)+_0x5d207a;}function _0x1e28dc(_0x58d963,_0xcac535,_0x31d58e,_0x5c17c5,_0x12790e,_0x4211a3,_0x3e6bb5){var _0xa0e073=_0x58d963+(_0x31d58e^(_0xcac535|~_0x5c17c5))+_0x12790e+_0x3e6bb5;return(_0xa0e073<<_0x4211a3|_0xa0e073>>>0x20-_0x4211a3)+_0xcac535;}_0x324ef7[_0x1a6523(0x5b6)]=_0x2a027f['_createHelper'](_0x24b4b1),_0x324ef7[_0x1a6523(0x37e)]=_0x2a027f[_0x1a6523(0x536)](_0x24b4b1);}(Math),_0x5c6706[_0x569d82(0x5b6)];}));}(ht)),ht[_0x3f2b80(0x1a9)];}var _t={'exports':{}},ut={'exports':{}},Yt;function cr(){const _0x374152=_0x38c3ff;return Yt||(Yt=0x1,function(_0x545b39,_0xf396b7){(function(_0x403dc0,_0x1a8d9f){const _0x5bff03=_0x4762;_0x545b39[_0x5bff03(0x1a9)]=_0x1a8d9f(oe());}(X,function(_0x20e64e){const _0x2b3b10=_0x4762;return(function(){const _0x4c2fb0=_0x4762;var _0x2b30bd=_0x20e64e,_0x5885ca=_0x2b30bd['lib'],_0x29d29a=_0x5885ca['WordArray'],_0x3b4e46=_0x5885ca[_0x4c2fb0(0x52b)],_0x225c06=_0x2b30bd[_0x4c2fb0(0x5f4)],_0x440ebe=[],_0x43d997=_0x225c06[_0x4c2fb0(0x648)]=_0x3b4e46[_0x4c2fb0(0x523)]({'_doReset':function(){const _0x446864=_0x4c2fb0;this['_hash']=new _0x29d29a[(_0x446864(0x475))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x375693,_0x1e0d3e){const _0x5ab217=_0x4c2fb0;for(var _0x839065=this[_0x5ab217(0x4f4)][_0x5ab217(0x27e)],_0x58cabb=_0x839065[0x0],_0x55b4f8=_0x839065[0x1],_0x529ddd=_0x839065[0x2],_0x4e42dd=_0x839065[0x3],_0x9356d2=_0x839065[0x4],_0x5c3322=0x0;_0x5c3322<0x50;_0x5c3322++){if(_0x5c3322<0x10)_0x440ebe[_0x5c3322]=_0x375693[_0x1e0d3e+_0x5c3322]|0x0;else{var _0x4fd50b=_0x440ebe[_0x5c3322-0x3]^_0x440ebe[_0x5c3322-0x8]^_0x440ebe[_0x5c3322-0xe]^_0x440ebe[_0x5c3322-0x10];_0x440ebe[_0x5c3322]=_0x4fd50b<<0x1|_0x4fd50b>>>0x1f;}var _0x46b5d0=(_0x58cabb<<0x5|_0x58cabb>>>0x1b)+_0x9356d2+_0x440ebe[_0x5c3322];_0x5c3322<0x14?_0x46b5d0+=(_0x55b4f8&_0x529ddd|~_0x55b4f8&_0x4e42dd)+0x5a827999:_0x5c3322<0x28?_0x46b5d0+=(_0x55b4f8^_0x529ddd^_0x4e42dd)+0x6ed9eba1:_0x5c3322<0x3c?_0x46b5d0+=(_0x55b4f8&_0x529ddd|_0x55b4f8&_0x4e42dd|_0x529ddd&_0x4e42dd)-0x70e44324:_0x46b5d0+=(_0x55b4f8^_0x529ddd^_0x4e42dd)-0x359d3e2a,_0x9356d2=_0x4e42dd,_0x4e42dd=_0x529ddd,_0x529ddd=_0x55b4f8<<0x1e|_0x55b4f8>>>0x2,_0x55b4f8=_0x58cabb,_0x58cabb=_0x46b5d0;}_0x839065[0x0]=_0x839065[0x0]+_0x58cabb|0x0,_0x839065[0x1]=_0x839065[0x1]+_0x55b4f8|0x0,_0x839065[0x2]=_0x839065[0x2]+_0x529ddd|0x0,_0x839065[0x3]=_0x839065[0x3]+_0x4e42dd|0x0,_0x839065[0x4]=_0x839065[0x4]+_0x9356d2|0x0;},'_doFinalize':function(){const _0x5dc91f=_0x4c2fb0;var _0x188c0e=this[_0x5dc91f(0x46a)],_0x1321ba=_0x188c0e['words'],_0xaa60e=this[_0x5dc91f(0x501)]*0x8,_0x558aa3=_0x188c0e[_0x5dc91f(0x4c0)]*0x8;return _0x1321ba[_0x558aa3>>>0x5]|=0x80<<0x18-_0x558aa3%0x20,_0x1321ba[(_0x558aa3+0x40>>>0x9<<0x4)+0xe]=Math[_0x5dc91f(0x35b)](_0xaa60e/0x100000000),_0x1321ba[(_0x558aa3+0x40>>>0x9<<0x4)+0xf]=_0xaa60e,_0x188c0e['sigBytes']=_0x1321ba[_0x5dc91f(0x58c)]*0x4,this[_0x5dc91f(0x610)](),this[_0x5dc91f(0x4f4)];},'clone':function(){const _0x384473=_0x4c2fb0;var _0x2d7876=_0x3b4e46[_0x384473(0x1b9)][_0x384473(0x420)](this);return _0x2d7876[_0x384473(0x4f4)]=this[_0x384473(0x4f4)][_0x384473(0x1b9)](),_0x2d7876;}});_0x2b30bd[_0x4c2fb0(0x648)]=_0x3b4e46[_0x4c2fb0(0x241)](_0x43d997),_0x2b30bd[_0x4c2fb0(0x645)]=_0x3b4e46['_createHmacHelper'](_0x43d997);}()),_0x20e64e[_0x2b3b10(0x648)];}));}(ut)),ut[_0x374152(0x1a9)];}var dt={'exports':{}},Kt;function lr(){return Kt||(Kt=0x1,function(_0xe05371,_0x5a2dd9){(function(_0x2752a1,_0x50ac9c){const _0x952d8b=_0x4762;_0xe05371[_0x952d8b(0x1a9)]=_0x50ac9c(oe());}(X,function(_0x3e1d54){(function(){const _0x2ba244=_0x4762;var _0x3b1b60=_0x3e1d54,_0x2f1407=_0x3b1b60[_0x2ba244(0x63c)],_0x74f421=_0x2f1407[_0x2ba244(0x4ba)],_0xef7080=_0x3b1b60[_0x2ba244(0x442)],_0x19c508=_0xef7080[_0x2ba244(0x538)],_0x378aa8=_0x3b1b60[_0x2ba244(0x5f4)];_0x378aa8[_0x2ba244(0x603)]=_0x74f421['extend']({'init':function(_0x2b3be4,_0x2f3f85){const _0x3889c2=_0x2ba244;_0x2b3be4=this[_0x3889c2(0x21c)]=new _0x2b3be4['init'](),typeof _0x2f3f85==_0x3889c2(0x53c)&&(_0x2f3f85=_0x19c508['parse'](_0x2f3f85));var _0x5693e1=_0x2b3be4[_0x3889c2(0x524)],_0x145456=_0x5693e1*0x4;_0x2f3f85[_0x3889c2(0x4c0)]>_0x145456&&(_0x2f3f85=_0x2b3be4[_0x3889c2(0x1a2)](_0x2f3f85)),_0x2f3f85['clamp']();for(var _0x149879=this['_oKey']=_0x2f3f85[_0x3889c2(0x1b9)](),_0x365ab0=this[_0x3889c2(0x511)]=_0x2f3f85['clone'](),_0x12b95a=_0x149879['words'],_0x1022f5=_0x365ab0['words'],_0x244d9b=0x0;_0x244d9b<_0x5693e1;_0x244d9b++)_0x12b95a[_0x244d9b]^=0x5c5c5c5c,_0x1022f5[_0x244d9b]^=0x36363636;_0x149879[_0x3889c2(0x4c0)]=_0x365ab0[_0x3889c2(0x4c0)]=_0x145456,this[_0x3889c2(0x4e2)]();},'reset':function(){const _0x38e92a=_0x2ba244;var _0x1efc73=this[_0x38e92a(0x21c)];_0x1efc73[_0x38e92a(0x4e2)](),_0x1efc73['update'](this[_0x38e92a(0x511)]);},'update':function(_0x321717){const _0x14a9fb=_0x2ba244;return this[_0x14a9fb(0x21c)]['update'](_0x321717),this;},'finalize':function(_0x28ca85){const _0x57ecfe=_0x2ba244;var _0xfee1b9=this[_0x57ecfe(0x21c)],_0x443089=_0xfee1b9[_0x57ecfe(0x1a2)](_0x28ca85);_0xfee1b9[_0x57ecfe(0x4e2)]();var _0x41d371=_0xfee1b9['finalize'](this[_0x57ecfe(0x5ef)][_0x57ecfe(0x1b9)]()[_0x57ecfe(0x3f0)](_0x443089));return _0x41d371;}});}());}));}(dt)),dt['exports'];}var qt;function Dn(){const _0x1a5c15=_0x38c3ff;return qt||(qt=0x1,function(_0x51c247,_0x5760af){(function(_0x47b396,_0x199e08,_0x613382){_0x51c247['exports']=_0x199e08(oe(),cr(),lr());}(X,function(_0x101484){const _0x3029fd=_0x4762;return(function(){const _0x147022=_0x4762;var _0x3ba604=_0x101484,_0x246c18=_0x3ba604[_0x147022(0x63c)],_0x32ee49=_0x246c18[_0x147022(0x4ba)],_0x2c6ff0=_0x246c18['WordArray'],_0x5ca1cf=_0x3ba604['algo'],_0x53258e=_0x5ca1cf[_0x147022(0x5b6)],_0x24caee=_0x5ca1cf[_0x147022(0x5f1)]=_0x32ee49[_0x147022(0x523)]({'cfg':_0x32ee49[_0x147022(0x523)]({'keySize':0x80/0x20,'hasher':_0x53258e,'iterations':0x1}),'init':function(_0x155974){const _0x362d7f=_0x147022;this[_0x362d7f(0x53b)]=this[_0x362d7f(0x53b)][_0x362d7f(0x523)](_0x155974);},'compute':function(_0x4a11dc,_0x108674){const _0x211c1f=_0x147022;for(var _0x12b952,_0x149b47=this[_0x211c1f(0x53b)],_0x16fbd2=_0x149b47[_0x211c1f(0x303)][_0x211c1f(0x43e)](),_0x3dc0de=_0x2c6ff0['create'](),_0x26fb1c=_0x3dc0de[_0x211c1f(0x27e)],_0x4f99df=_0x149b47[_0x211c1f(0x20e)],_0x26255e=_0x149b47['iterations'];_0x26fb1c[_0x211c1f(0x58c)]<_0x4f99df;){_0x12b952&&_0x16fbd2[_0x211c1f(0x619)](_0x12b952),_0x12b952=_0x16fbd2['update'](_0x4a11dc)['finalize'](_0x108674),_0x16fbd2[_0x211c1f(0x4e2)]();for(var _0x525d79=0x1;_0x525d79<_0x26255e;_0x525d79++)_0x12b952=_0x16fbd2[_0x211c1f(0x1a2)](_0x12b952),_0x16fbd2[_0x211c1f(0x4e2)]();_0x3dc0de[_0x211c1f(0x3f0)](_0x12b952);}return _0x3dc0de[_0x211c1f(0x4c0)]=_0x4f99df*0x4,_0x3dc0de;}});_0x3ba604[_0x147022(0x5f1)]=function(_0x3f8828,_0x41bc83,_0x1adcaf){const _0x3e6823=_0x147022;return _0x24caee['create'](_0x1adcaf)[_0x3e6823(0x1f0)](_0x3f8828,_0x41bc83);};}()),_0x101484[_0x3029fd(0x5f1)];}));}(_t)),_t[_0x1a5c15(0x1a9)];}var ft={'exports':{}},zt;function wn(){const _0x2e4220=_0x38c3ff;return zt||(zt=0x1,function(_0x65226d,_0xd91f95){(function(_0x4d0155,_0x2d087b,_0x291728){const _0x2b69ab=_0x4762;_0x65226d[_0x2b69ab(0x1a9)]=_0x2d087b(oe(),Dn());}(X,function(_0x33a122){const _0x44cc12=_0x4762;_0x33a122[_0x44cc12(0x63c)][_0x44cc12(0x44a)]||function(_0x82dc8a){const _0x108036=_0x44cc12;var _0x57762=_0x33a122,_0x110103=_0x57762['lib'],_0x4017a2=_0x110103[_0x108036(0x4ba)],_0x99752=_0x110103[_0x108036(0x398)],_0x5834f6=_0x110103['BufferedBlockAlgorithm'],_0x9680c0=_0x57762[_0x108036(0x442)];_0x9680c0[_0x108036(0x538)];var _0x2dd935=_0x9680c0[_0x108036(0x1ce)],_0x37e481=_0x57762[_0x108036(0x5f4)],_0x394fcd=_0x37e481[_0x108036(0x5f1)],_0x3c443a=_0x110103[_0x108036(0x44a)]=_0x5834f6[_0x108036(0x523)]({'cfg':_0x4017a2['extend'](),'createEncryptor':function(_0x582546,_0x274eba){const _0x2329fc=_0x108036;return this['create'](this[_0x2329fc(0x1fc)],_0x582546,_0x274eba);},'createDecryptor':function(_0x2ab9c4,_0xd0ff98){return this['create'](this['_DEC_XFORM_MODE'],_0x2ab9c4,_0xd0ff98);},'init':function(_0x5d15f5,_0x32bde8,_0x4faac7){const _0x567039=_0x108036;this[_0x567039(0x53b)]=this[_0x567039(0x53b)][_0x567039(0x523)](_0x4faac7),this[_0x567039(0x394)]=_0x5d15f5,this['_key']=_0x32bde8,this['reset']();},'reset':function(){const _0x52d2=_0x108036;_0x5834f6['reset'][_0x52d2(0x420)](this),this['_doReset']();},'process':function(_0x24c377){return this['_append'](_0x24c377),this['_process']();},'finalize':function(_0x4e2cae){const _0x24fd0a=_0x108036;_0x4e2cae&&this[_0x24fd0a(0x5fc)](_0x4e2cae);var _0x137275=this[_0x24fd0a(0x431)]();return _0x137275;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x149f7a(_0xccaece){return typeof _0xccaece=='string'?_0x226f3c:_0x395a67;}return function(_0x206245){return{'encrypt':function(_0x26da27,_0x260b0c,_0x4834a3){return _0x149f7a(_0x260b0c)['encrypt'](_0x206245,_0x26da27,_0x260b0c,_0x4834a3);},'decrypt':function(_0x503a38,_0x5796b9,_0x12ffaa){const _0xa4c2b1=_0x4762;return _0x149f7a(_0x5796b9)[_0xa4c2b1(0x2c2)](_0x206245,_0x503a38,_0x5796b9,_0x12ffaa);}};};}())});_0x110103[_0x108036(0x28d)]=_0x3c443a[_0x108036(0x523)]({'_doFinalize':function(){const _0x23edc7=_0x108036;var _0x393c05=this[_0x23edc7(0x610)](!0x0);return _0x393c05;},'blockSize':0x1});var _0x4700b1=_0x57762[_0x108036(0x349)]={},_0x3b276a=_0x110103[_0x108036(0x283)]=_0x4017a2[_0x108036(0x523)]({'createEncryptor':function(_0xb1b07c,_0x52cf41){const _0x7de0a3=_0x108036;return this[_0x7de0a3(0x3c0)][_0x7de0a3(0x43e)](_0xb1b07c,_0x52cf41);},'createDecryptor':function(_0xbb4cdb,_0x30cc4d){const _0x2b1323=_0x108036;return this['Decryptor'][_0x2b1323(0x43e)](_0xbb4cdb,_0x30cc4d);},'init':function(_0x43aa84,_0x5bfc75){const _0x372cdd=_0x108036;this[_0x372cdd(0x44e)]=_0x43aa84,this[_0x372cdd(0x2e7)]=_0x5bfc75;}}),_0x1a58b3=_0x4700b1[_0x108036(0x221)]=(function(){const _0x30ef27=_0x108036;var _0x21f341=_0x3b276a[_0x30ef27(0x523)]();_0x21f341[_0x30ef27(0x3c0)]=_0x21f341['extend']({'processBlock':function(_0x414fd0,_0x2885b5){const _0x63c170=_0x30ef27;var _0x114348=this[_0x63c170(0x44e)],_0x210529=_0x114348[_0x63c170(0x524)];_0x1ba955[_0x63c170(0x420)](this,_0x414fd0,_0x2885b5,_0x210529),_0x114348[_0x63c170(0x55a)](_0x414fd0,_0x2885b5),this[_0x63c170(0x4ed)]=_0x414fd0[_0x63c170(0x56a)](_0x2885b5,_0x2885b5+_0x210529);}}),_0x21f341[_0x30ef27(0x4a1)]=_0x21f341['extend']({'processBlock':function(_0x1dbc8b,_0x1c0b26){const _0x3d2028=_0x30ef27;var _0x44f38d=this['_cipher'],_0x249e3f=_0x44f38d[_0x3d2028(0x524)],_0x533dd2=_0x1dbc8b['slice'](_0x1c0b26,_0x1c0b26+_0x249e3f);_0x44f38d[_0x3d2028(0x3dc)](_0x1dbc8b,_0x1c0b26),_0x1ba955['call'](this,_0x1dbc8b,_0x1c0b26,_0x249e3f),this[_0x3d2028(0x4ed)]=_0x533dd2;}});function _0x1ba955(_0x389061,_0x19fc92,_0xe6006f){const _0x53e28a=_0x30ef27;var _0x39f02e,_0x2e4199=this[_0x53e28a(0x2e7)];_0x2e4199?(_0x39f02e=_0x2e4199,this[_0x53e28a(0x2e7)]=_0x82dc8a):_0x39f02e=this[_0x53e28a(0x4ed)];for(var _0x4d1e39=0x0;_0x4d1e39<_0xe6006f;_0x4d1e39++)_0x389061[_0x19fc92+_0x4d1e39]^=_0x39f02e[_0x4d1e39];}return _0x21f341;}()),_0x3fc7ee=_0x57762[_0x108036(0x531)]={},_0xc15dea=_0x3fc7ee[_0x108036(0x3b5)]={'pad':function(_0x5ceff8,_0x153ca6){const _0x2ca6b2=_0x108036;for(var _0x40d248=_0x153ca6*0x4,_0x499e7d=_0x40d248-_0x5ceff8[_0x2ca6b2(0x4c0)]%_0x40d248,_0x357d2c=_0x499e7d<<0x18|_0x499e7d<<0x10|_0x499e7d<<0x8|_0x499e7d,_0x11a479=[],_0x4f82cc=0x0;_0x4f82cc<_0x499e7d;_0x4f82cc+=0x4)_0x11a479[_0x2ca6b2(0x473)](_0x357d2c);var _0x10de58=_0x99752[_0x2ca6b2(0x43e)](_0x11a479,_0x499e7d);_0x5ceff8[_0x2ca6b2(0x3f0)](_0x10de58);},'unpad':function(_0x2898e4){const _0x2fd3f4=_0x108036;var _0x180056=_0x2898e4[_0x2fd3f4(0x27e)][_0x2898e4[_0x2fd3f4(0x4c0)]-0x1>>>0x2]&0xff;_0x2898e4['sigBytes']-=_0x180056;}};_0x110103[_0x108036(0x31b)]=_0x3c443a[_0x108036(0x523)]({'cfg':_0x3c443a[_0x108036(0x53b)][_0x108036(0x523)]({'mode':_0x1a58b3,'padding':_0xc15dea}),'reset':function(){const _0x5b25dd=_0x108036;var _0x36d6c9;_0x3c443a[_0x5b25dd(0x4e2)][_0x5b25dd(0x420)](this);var _0x2c2c7f=this[_0x5b25dd(0x53b)],_0x11ad2e=_0x2c2c7f['iv'],_0x84e346=_0x2c2c7f[_0x5b25dd(0x349)];this[_0x5b25dd(0x394)]==this[_0x5b25dd(0x1fc)]?_0x36d6c9=_0x84e346[_0x5b25dd(0x263)]:(_0x36d6c9=_0x84e346[_0x5b25dd(0x2a9)],this[_0x5b25dd(0x4b1)]=0x1),this[_0x5b25dd(0x202)]&&this[_0x5b25dd(0x202)][_0x5b25dd(0x484)]==_0x36d6c9?this[_0x5b25dd(0x202)][_0x5b25dd(0x475)](this,_0x11ad2e&&_0x11ad2e[_0x5b25dd(0x27e)]):(this[_0x5b25dd(0x202)]=_0x36d6c9[_0x5b25dd(0x420)](_0x84e346,this,_0x11ad2e&&_0x11ad2e[_0x5b25dd(0x27e)]),this[_0x5b25dd(0x202)]['__creator']=_0x36d6c9);},'_doProcessBlock':function(_0x299bb3,_0x46152f){const _0x2443e2=_0x108036;this[_0x2443e2(0x202)][_0x2443e2(0x1e2)](_0x299bb3,_0x46152f);},'_doFinalize':function(){const _0x475aae=_0x108036;var _0x20f34a,_0x480ee3=this['cfg'][_0x475aae(0x59b)];return this[_0x475aae(0x394)]==this[_0x475aae(0x1fc)]?(_0x480ee3['pad'](this[_0x475aae(0x46a)],this[_0x475aae(0x524)]),_0x20f34a=this[_0x475aae(0x610)](!0x0)):(_0x20f34a=this[_0x475aae(0x610)](!0x0),_0x480ee3[_0x475aae(0x51f)](_0x20f34a)),_0x20f34a;},'blockSize':0x80/0x20});var _0x38ea67=_0x110103[_0x108036(0x363)]=_0x4017a2[_0x108036(0x523)]({'init':function(_0x2bfa03){const _0x59990d=_0x108036;this[_0x59990d(0x552)](_0x2bfa03);},'toString':function(_0x15331f){const _0x16c4bb=_0x108036;return(_0x15331f||this[_0x16c4bb(0x39d)])[_0x16c4bb(0x3e4)](this);}}),_0x523384=_0x57762[_0x108036(0x3d8)]={},_0x346e71=_0x523384[_0x108036(0x381)]={'stringify':function(_0x581430){const _0x3d5965=_0x108036;var _0x47ace1,_0x5332a0=_0x581430['ciphertext'],_0x1d35aa=_0x581430[_0x3d5965(0x2a2)];return _0x1d35aa?_0x47ace1=_0x99752['create']([0x53616c74,0x65645f5f])[_0x3d5965(0x3f0)](_0x1d35aa)[_0x3d5965(0x3f0)](_0x5332a0):_0x47ace1=_0x5332a0,_0x47ace1['toString'](_0x2dd935);},'parse':function(_0x414c8e){const _0x19e010=_0x108036;var _0x47e931,_0x3030ff=_0x2dd935[_0x19e010(0x223)](_0x414c8e),_0x16417e=_0x3030ff['words'];return _0x16417e[0x0]==0x53616c74&&_0x16417e[0x1]==0x65645f5f&&(_0x47e931=_0x99752['create'](_0x16417e[_0x19e010(0x56a)](0x2,0x4)),_0x16417e[_0x19e010(0x2d3)](0x0,0x4),_0x3030ff[_0x19e010(0x4c0)]-=0x10),_0x38ea67[_0x19e010(0x43e)]({'ciphertext':_0x3030ff,'salt':_0x47e931});}},_0x395a67=_0x110103[_0x108036(0x2e5)]=_0x4017a2[_0x108036(0x523)]({'cfg':_0x4017a2[_0x108036(0x523)]({'format':_0x346e71}),'encrypt':function(_0x4dd3b9,_0x2ce5e8,_0x551f90,_0x5f2859){const _0x122dcd=_0x108036;_0x5f2859=this['cfg'][_0x122dcd(0x523)](_0x5f2859);var _0x470fc0=_0x4dd3b9[_0x122dcd(0x263)](_0x551f90,_0x5f2859),_0x54ebbc=_0x470fc0[_0x122dcd(0x1a2)](_0x2ce5e8),_0x379f0d=_0x470fc0[_0x122dcd(0x53b)];return _0x38ea67[_0x122dcd(0x43e)]({'ciphertext':_0x54ebbc,'key':_0x551f90,'iv':_0x379f0d['iv'],'algorithm':_0x4dd3b9,'mode':_0x379f0d[_0x122dcd(0x349)],'padding':_0x379f0d[_0x122dcd(0x59b)],'blockSize':_0x4dd3b9[_0x122dcd(0x524)],'formatter':_0x5f2859[_0x122dcd(0x3d8)]});},'decrypt':function(_0x2e6519,_0x4654a3,_0x4ea833,_0x1198b7){const _0x31f1e2=_0x108036;_0x1198b7=this[_0x31f1e2(0x53b)][_0x31f1e2(0x523)](_0x1198b7),_0x4654a3=this['_parse'](_0x4654a3,_0x1198b7[_0x31f1e2(0x3d8)]);var _0x369751=_0x2e6519[_0x31f1e2(0x2a9)](_0x4ea833,_0x1198b7)[_0x31f1e2(0x1a2)](_0x4654a3['ciphertext']);return _0x369751;},'_parse':function(_0x5ca5f8,_0x2dbee1){const _0xed443e=_0x108036;return typeof _0x5ca5f8==_0xed443e(0x53c)?_0x2dbee1[_0xed443e(0x223)](_0x5ca5f8,this):_0x5ca5f8;}}),_0x26c687=_0x57762[_0x108036(0x5cc)]={},_0x2a080d=_0x26c687[_0x108036(0x381)]={'execute':function(_0x341f8c,_0xa24128,_0x447dbf,_0x2f1678,_0x3149de){const _0x3121d3=_0x108036;if(_0x2f1678||(_0x2f1678=_0x99752[_0x3121d3(0x3b9)](0x40/0x8)),_0x3149de)var _0x29848e=_0x394fcd[_0x3121d3(0x43e)]({'keySize':_0xa24128+_0x447dbf,'hasher':_0x3149de})[_0x3121d3(0x1f0)](_0x341f8c,_0x2f1678);else var _0x29848e=_0x394fcd[_0x3121d3(0x43e)]({'keySize':_0xa24128+_0x447dbf})[_0x3121d3(0x1f0)](_0x341f8c,_0x2f1678);var _0xb145ac=_0x99752[_0x3121d3(0x43e)](_0x29848e[_0x3121d3(0x27e)][_0x3121d3(0x56a)](_0xa24128),_0x447dbf*0x4);return _0x29848e[_0x3121d3(0x4c0)]=_0xa24128*0x4,_0x38ea67[_0x3121d3(0x43e)]({'key':_0x29848e,'iv':_0xb145ac,'salt':_0x2f1678});}},_0x226f3c=_0x110103[_0x108036(0x2c4)]=_0x395a67['extend']({'cfg':_0x395a67[_0x108036(0x53b)][_0x108036(0x523)]({'kdf':_0x2a080d}),'encrypt':function(_0x4a7250,_0x3b2648,_0x2d0de9,_0x24d7ff){const _0x4c8c04=_0x108036;_0x24d7ff=this[_0x4c8c04(0x53b)][_0x4c8c04(0x523)](_0x24d7ff);var _0x198597=_0x24d7ff[_0x4c8c04(0x5cc)][_0x4c8c04(0x1eb)](_0x2d0de9,_0x4a7250[_0x4c8c04(0x20e)],_0x4a7250[_0x4c8c04(0x411)],_0x24d7ff['salt'],_0x24d7ff[_0x4c8c04(0x303)]);_0x24d7ff['iv']=_0x198597['iv'];var _0x23caee=_0x395a67['encrypt'][_0x4c8c04(0x420)](this,_0x4a7250,_0x3b2648,_0x198597[_0x4c8c04(0x5d1)],_0x24d7ff);return _0x23caee[_0x4c8c04(0x552)](_0x198597),_0x23caee;},'decrypt':function(_0x428edd,_0x2fd615,_0x66f1df,_0x311b71){const _0x37c43b=_0x108036;_0x311b71=this[_0x37c43b(0x53b)][_0x37c43b(0x523)](_0x311b71),_0x2fd615=this[_0x37c43b(0x65a)](_0x2fd615,_0x311b71[_0x37c43b(0x3d8)]);var _0x30f8a2=_0x311b71[_0x37c43b(0x5cc)][_0x37c43b(0x1eb)](_0x66f1df,_0x428edd[_0x37c43b(0x20e)],_0x428edd[_0x37c43b(0x411)],_0x2fd615[_0x37c43b(0x2a2)],_0x311b71[_0x37c43b(0x303)]);_0x311b71['iv']=_0x30f8a2['iv'];var _0x14c13d=_0x395a67[_0x37c43b(0x2c2)][_0x37c43b(0x420)](this,_0x428edd,_0x2fd615,_0x30f8a2[_0x37c43b(0x5d1)],_0x311b71);return _0x14c13d;}});}();}));}(ft)),ft[_0x2e4220(0x1a9)];}(function(_0x294ab,_0x243c41){(function(_0xbefec2,_0x369488,_0x2f8cac){const _0x3b9e30=_0x4762;_0x294ab[_0x3b9e30(0x1a9)]=_0x369488(oe(),On(),ar(),Dn(),wn());}(X,function(_0x3ef1c1){const _0x27b281=_0x4762;return(function(){const _0x473130=_0x4762;var _0x1591f9=_0x3ef1c1,_0x2af9d1=_0x1591f9['lib'],_0x5d1faa=_0x2af9d1[_0x473130(0x31b)],_0x31b1c3=_0x1591f9[_0x473130(0x5f4)],_0x54ed84=[],_0x189c79=[],_0x5ac695=[],_0x137b69=[],_0x271847=[],_0x1265a1=[],_0x398c72=[],_0x428b29=[],_0x1ebf70=[],_0x56b813=[];(function(){for(var _0x1edd68=[],_0x2cb34c=0x0;_0x2cb34c<0x100;_0x2cb34c++)_0x2cb34c<0x80?_0x1edd68[_0x2cb34c]=_0x2cb34c<<0x1:_0x1edd68[_0x2cb34c]=_0x2cb34c<<0x1^0x11b;for(var _0x446644=0x0,_0x315c9e=0x0,_0x2cb34c=0x0;_0x2cb34c<0x100;_0x2cb34c++){var _0x179618=_0x315c9e^_0x315c9e<<0x1^_0x315c9e<<0x2^_0x315c9e<<0x3^_0x315c9e<<0x4;_0x179618=_0x179618>>>0x8^_0x179618&0xff^0x63,_0x54ed84[_0x446644]=_0x179618,_0x189c79[_0x179618]=_0x446644;var _0x31bad2=_0x1edd68[_0x446644],_0x46a99e=_0x1edd68[_0x31bad2],_0x10145a=_0x1edd68[_0x46a99e],_0x3c3f34=_0x1edd68[_0x179618]*0x101^_0x179618*0x1010100;_0x5ac695[_0x446644]=_0x3c3f34<<0x18|_0x3c3f34>>>0x8,_0x137b69[_0x446644]=_0x3c3f34<<0x10|_0x3c3f34>>>0x10,_0x271847[_0x446644]=_0x3c3f34<<0x8|_0x3c3f34>>>0x18,_0x1265a1[_0x446644]=_0x3c3f34;var _0x3c3f34=_0x10145a*0x1010101^_0x46a99e*0x10001^_0x31bad2*0x101^_0x446644*0x1010100;_0x398c72[_0x179618]=_0x3c3f34<<0x18|_0x3c3f34>>>0x8,_0x428b29[_0x179618]=_0x3c3f34<<0x10|_0x3c3f34>>>0x10,_0x1ebf70[_0x179618]=_0x3c3f34<<0x8|_0x3c3f34>>>0x18,_0x56b813[_0x179618]=_0x3c3f34,_0x446644?(_0x446644=_0x31bad2^_0x1edd68[_0x1edd68[_0x1edd68[_0x10145a^_0x31bad2]]],_0x315c9e^=_0x1edd68[_0x1edd68[_0x315c9e]]):_0x446644=_0x315c9e=0x1;}}());var _0x527fd6=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x396cad=_0x31b1c3[_0x473130(0x3a9)]=_0x5d1faa[_0x473130(0x523)]({'_doReset':function(){const _0x38805c=_0x473130;var _0x596b4a;if(!(this[_0x38805c(0x46f)]&&this[_0x38805c(0x600)]===this['_key'])){for(var _0x41ec6f=this[_0x38805c(0x600)]=this[_0x38805c(0x58f)],_0x26734c=_0x41ec6f[_0x38805c(0x27e)],_0x24ae03=_0x41ec6f[_0x38805c(0x4c0)]/0x4,_0x34e315=this[_0x38805c(0x46f)]=_0x24ae03+0x6,_0x257e8e=(_0x34e315+0x1)*0x4,_0x308927=this[_0x38805c(0x461)]=[],_0x1f446b=0x0;_0x1f446b<_0x257e8e;_0x1f446b++)_0x1f446b<_0x24ae03?_0x308927[_0x1f446b]=_0x26734c[_0x1f446b]:(_0x596b4a=_0x308927[_0x1f446b-0x1],_0x1f446b%_0x24ae03?_0x24ae03>0x6&&_0x1f446b%_0x24ae03==0x4&&(_0x596b4a=_0x54ed84[_0x596b4a>>>0x18]<<0x18|_0x54ed84[_0x596b4a>>>0x10&0xff]<<0x10|_0x54ed84[_0x596b4a>>>0x8&0xff]<<0x8|_0x54ed84[_0x596b4a&0xff]):(_0x596b4a=_0x596b4a<<0x8|_0x596b4a>>>0x18,_0x596b4a=_0x54ed84[_0x596b4a>>>0x18]<<0x18|_0x54ed84[_0x596b4a>>>0x10&0xff]<<0x10|_0x54ed84[_0x596b4a>>>0x8&0xff]<<0x8|_0x54ed84[_0x596b4a&0xff],_0x596b4a^=_0x527fd6[_0x1f446b/_0x24ae03|0x0]<<0x18),_0x308927[_0x1f446b]=_0x308927[_0x1f446b-_0x24ae03]^_0x596b4a);for(var _0x2e188e=this[_0x38805c(0x2ba)]=[],_0x369703=0x0;_0x369703<_0x257e8e;_0x369703++){var _0x1f446b=_0x257e8e-_0x369703;if(_0x369703%0x4)var _0x596b4a=_0x308927[_0x1f446b];else var _0x596b4a=_0x308927[_0x1f446b-0x4];_0x369703<0x4||_0x1f446b<=0x4?_0x2e188e[_0x369703]=_0x596b4a:_0x2e188e[_0x369703]=_0x398c72[_0x54ed84[_0x596b4a>>>0x18]]^_0x428b29[_0x54ed84[_0x596b4a>>>0x10&0xff]]^_0x1ebf70[_0x54ed84[_0x596b4a>>>0x8&0xff]]^_0x56b813[_0x54ed84[_0x596b4a&0xff]];}}},'encryptBlock':function(_0x182b00,_0x2cf1d7){const _0x20be43=_0x473130;this[_0x20be43(0x1e0)](_0x182b00,_0x2cf1d7,this[_0x20be43(0x461)],_0x5ac695,_0x137b69,_0x271847,_0x1265a1,_0x54ed84);},'decryptBlock':function(_0x40ddfc,_0x217a15){const _0x1dd81d=_0x473130;var _0x275b0a=_0x40ddfc[_0x217a15+0x1];_0x40ddfc[_0x217a15+0x1]=_0x40ddfc[_0x217a15+0x3],_0x40ddfc[_0x217a15+0x3]=_0x275b0a,this[_0x1dd81d(0x1e0)](_0x40ddfc,_0x217a15,this[_0x1dd81d(0x2ba)],_0x398c72,_0x428b29,_0x1ebf70,_0x56b813,_0x189c79);var _0x275b0a=_0x40ddfc[_0x217a15+0x1];_0x40ddfc[_0x217a15+0x1]=_0x40ddfc[_0x217a15+0x3],_0x40ddfc[_0x217a15+0x3]=_0x275b0a;},'_doCryptBlock':function(_0xfaa81a,_0x5062cc,_0x3a5495,_0x2b8d8c,_0x1282c0,_0x170255,_0x153831,_0xef3401){const _0x4b5fc0=_0x473130;for(var _0x2a0e73=this[_0x4b5fc0(0x46f)],_0x2b7611=_0xfaa81a[_0x5062cc]^_0x3a5495[0x0],_0x124529=_0xfaa81a[_0x5062cc+0x1]^_0x3a5495[0x1],_0x151d93=_0xfaa81a[_0x5062cc+0x2]^_0x3a5495[0x2],_0x387545=_0xfaa81a[_0x5062cc+0x3]^_0x3a5495[0x3],_0x20e6d3=0x4,_0x58dfc4=0x1;_0x58dfc4<_0x2a0e73;_0x58dfc4++){var _0x28d2c0=_0x2b8d8c[_0x2b7611>>>0x18]^_0x1282c0[_0x124529>>>0x10&0xff]^_0x170255[_0x151d93>>>0x8&0xff]^_0x153831[_0x387545&0xff]^_0x3a5495[_0x20e6d3++],_0x8a43f5=_0x2b8d8c[_0x124529>>>0x18]^_0x1282c0[_0x151d93>>>0x10&0xff]^_0x170255[_0x387545>>>0x8&0xff]^_0x153831[_0x2b7611&0xff]^_0x3a5495[_0x20e6d3++],_0x50d723=_0x2b8d8c[_0x151d93>>>0x18]^_0x1282c0[_0x387545>>>0x10&0xff]^_0x170255[_0x2b7611>>>0x8&0xff]^_0x153831[_0x124529&0xff]^_0x3a5495[_0x20e6d3++],_0x32c552=_0x2b8d8c[_0x387545>>>0x18]^_0x1282c0[_0x2b7611>>>0x10&0xff]^_0x170255[_0x124529>>>0x8&0xff]^_0x153831[_0x151d93&0xff]^_0x3a5495[_0x20e6d3++];_0x2b7611=_0x28d2c0,_0x124529=_0x8a43f5,_0x151d93=_0x50d723,_0x387545=_0x32c552;}var _0x28d2c0=(_0xef3401[_0x2b7611>>>0x18]<<0x18|_0xef3401[_0x124529>>>0x10&0xff]<<0x10|_0xef3401[_0x151d93>>>0x8&0xff]<<0x8|_0xef3401[_0x387545&0xff])^_0x3a5495[_0x20e6d3++],_0x8a43f5=(_0xef3401[_0x124529>>>0x18]<<0x18|_0xef3401[_0x151d93>>>0x10&0xff]<<0x10|_0xef3401[_0x387545>>>0x8&0xff]<<0x8|_0xef3401[_0x2b7611&0xff])^_0x3a5495[_0x20e6d3++],_0x50d723=(_0xef3401[_0x151d93>>>0x18]<<0x18|_0xef3401[_0x387545>>>0x10&0xff]<<0x10|_0xef3401[_0x2b7611>>>0x8&0xff]<<0x8|_0xef3401[_0x124529&0xff])^_0x3a5495[_0x20e6d3++],_0x32c552=(_0xef3401[_0x387545>>>0x18]<<0x18|_0xef3401[_0x2b7611>>>0x10&0xff]<<0x10|_0xef3401[_0x124529>>>0x8&0xff]<<0x8|_0xef3401[_0x151d93&0xff])^_0x3a5495[_0x20e6d3++];_0xfaa81a[_0x5062cc]=_0x28d2c0,_0xfaa81a[_0x5062cc+0x1]=_0x8a43f5,_0xfaa81a[_0x5062cc+0x2]=_0x50d723,_0xfaa81a[_0x5062cc+0x3]=_0x32c552;},'keySize':0x100/0x20});_0x1591f9[_0x473130(0x3a9)]=_0x5d1faa[_0x473130(0x241)](_0x396cad);}()),_0x3ef1c1[_0x27b281(0x3a9)];}));}(yn));var hr=yn[_0x38c3ff(0x1a9)];const _r=xe(hr);var ur=On();const Xt=xe(ur);var Pn={'exports':{}};(function(_0x42d5d3,_0xabdb68){(function(_0x24ac51,_0x157835){const _0x575baa=_0x4762;_0x42d5d3[_0x575baa(0x1a9)]=_0x157835(oe());}(X,function(_0x2f825a){const _0x4aead1=_0x4762;return _0x2f825a[_0x4aead1(0x442)][_0x4aead1(0x538)];}));}(Pn));var dr=Pn[_0x38c3ff(0x1a9)];const fr=xe(dr);var Un={'exports':{}};(function(_0x383b2f,_0x3766bf){(function(_0x40f6b1,_0x1a945e){const _0x5187a2=_0x4762;_0x383b2f[_0x5187a2(0x1a9)]=_0x1a945e(oe());}(X,function(_0x4a10d3){const _0x1fd6e5=_0x4762;return(function(){const _0x355f77=_0x4762;if(typeof ArrayBuffer=='function'){var _0x4ccb37=_0x4a10d3,_0x3b27cf=_0x4ccb37['lib'],_0xed782c=_0x3b27cf[_0x355f77(0x398)],_0x145bc8=_0xed782c[_0x355f77(0x475)],_0x124ae8=_0xed782c['init']=function(_0x5470a2){const _0x611904=_0x355f77;if(_0x5470a2 instanceof ArrayBuffer&&(_0x5470a2=new Uint8Array(_0x5470a2)),(_0x5470a2 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x5470a2 instanceof Uint8ClampedArray||_0x5470a2 instanceof Int16Array||_0x5470a2 instanceof Uint16Array||_0x5470a2 instanceof Int32Array||_0x5470a2 instanceof Uint32Array||_0x5470a2 instanceof Float32Array||_0x5470a2 instanceof Float64Array)&&(_0x5470a2=new Uint8Array(_0x5470a2[_0x611904(0x236)],_0x5470a2['byteOffset'],_0x5470a2[_0x611904(0x559)])),_0x5470a2 instanceof Uint8Array){for(var _0x440e28=_0x5470a2['byteLength'],_0x3045d2=[],_0x31b6cb=0x0;_0x31b6cb<_0x440e28;_0x31b6cb++)_0x3045d2[_0x31b6cb>>>0x2]|=_0x5470a2[_0x31b6cb]<<0x18-_0x31b6cb%0x4*0x8;_0x145bc8[_0x611904(0x420)](this,_0x3045d2,_0x440e28);}else _0x145bc8[_0x611904(0x21e)](this,arguments);};_0x124ae8[_0x355f77(0x39b)]=_0xed782c;}}()),_0x4a10d3['lib'][_0x1fd6e5(0x398)];}));}(Un));var vr=Un[_0x38c3ff(0x1a9)];const mr=xe(vr);var Mn={'exports':{}};(function(_0x5d8e84,_0x5f365c){(function(_0xda1bd0,_0x2a346b,_0x11d836){const _0x2e97c2=_0x4762;_0x5d8e84[_0x2e97c2(0x1a9)]=_0x2a346b(oe(),wn());}(X,function(_0x314fcd){const _0x55e84d=_0x4762;return _0x314fcd['pad']['NoPadding']={'pad':function(){},'unpad':function(){}},_0x314fcd['pad'][_0x55e84d(0x373)];}));}(Mn));var Sr=Mn['exports'];const pr=xe(Sr);function gr(_0x40e8a4,_0x1025f7){const _0x1b37c4=_0x38c3ff,_0x3eb276=_0x1025f7-_0x40e8a4[_0x1b37c4(0x58c)]%_0x1025f7,_0x639e1c=String[_0x1b37c4(0x408)](_0x3eb276)['repeat'](_0x3eb276);return _0x40e8a4+_0x639e1c;}function Ir(_0xb57180,_0x51346b){const _0x44b47c=_0x38c3ff,_0x26435c=mr['random'](0x10),_0x2877d4=gr(_0xb57180,0x10),_0x2e2720=_r[_0x44b47c(0x612)](fr[_0x44b47c(0x223)](_0x2877d4),Xt[_0x44b47c(0x223)](_0x51346b),{'iv':_0x26435c,'padding':pr});return _0x26435c[_0x44b47c(0x3f0)](_0x2e2720['ciphertext'])['toString'](Xt);}function Cr(){const _0x556b66=_0x38c3ff,_0x188fd3=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0x556b66(0x4a4)];if(_0x188fd3){const _0xe35ff={'time':Math[_0x556b66(0x35b)](Date[_0x556b66(0x2eb)]()/0x3e8),'domain':location[_0x556b66(0x482)]};return Ir(JSON[_0x556b66(0x3e4)](_0xe35ff),_0x188fd3);}}var Er=Object[_0x38c3ff(0x1c1)],br=Object['getOwnPropertyDescriptor'],Tr=(_0x1db818,_0x43604a,_0x4e148a,_0x321c62)=>{const _0x28b2d5=_0x38c3ff;for(var _0x13b02b=_0x321c62>0x1?void 0x0:_0x321c62?br(_0x43604a,_0x4e148a):_0x43604a,_0x2ceba6=_0x1db818[_0x28b2d5(0x58c)]-0x1,_0x24103c;_0x2ceba6>=0x0;_0x2ceba6--)(_0x24103c=_0x1db818[_0x2ceba6])&&(_0x13b02b=(_0x321c62?_0x24103c(_0x43604a,_0x4e148a,_0x13b02b):_0x24103c(_0x13b02b))||_0x13b02b);return _0x321c62&&_0x13b02b&&Er(_0x43604a,_0x4e148a,_0x13b02b),_0x13b02b;},Rr=(_0x4d8229,_0x114a3f)=>(_0x3f208f,_0x104583)=>_0x114a3f(_0x3f208f,_0x104583,_0x4d8229);let Ye=class{constructor(_0x4f871b){const _0xf27c9f=_0x38c3ff;this[_0xf27c9f(0x5a8)]=_0x4f871b,this[_0xf27c9f(0x4c7)]();}[_0x38c3ff(0x4c7)](){const _0x245567=_0x38c3ff;this[_0x245567(0x5a8)][_0x245567(0x53f)]({'interceptor':(_0x10c847,_0x95de29)=>{const _0x2f010c=_0x245567,_0x3017b2=_0x10c847[_0x2f010c(0x485)],_0x2a1934=Cr();return _0x2a1934&&_0x3017b2[_0x2f010c(0x3e8)](_0x2f010c(0x313),_0x2a1934),_0x95de29(_0x10c847);}});}};Ye=Tr([Rr(0x0,a[_0x38c3ff(0x2af)](Z[_0x38c3ff(0x627)]))],Ye);var yr=Object[_0x38c3ff(0x1c1)],Or=Object[_0x38c3ff(0x336)],Dr=(_0x305d4a,_0x4186af,_0x57ea17,_0x418a06)=>{const _0x43ffad=_0x38c3ff;for(var _0x3ec560=_0x418a06>0x1?void 0x0:_0x418a06?Or(_0x4186af,_0x57ea17):_0x4186af,_0x51ff75=_0x305d4a[_0x43ffad(0x58c)]-0x1,_0x3c4ad5;_0x51ff75>=0x0;_0x51ff75--)(_0x3c4ad5=_0x305d4a[_0x51ff75])&&(_0x3ec560=(_0x418a06?_0x3c4ad5(_0x4186af,_0x57ea17,_0x3ec560):_0x3c4ad5(_0x3ec560))||_0x3ec560);return _0x418a06&&_0x3ec560&&yr(_0x4186af,_0x57ea17,_0x3ec560),_0x3ec560;},vt=(_0x20180a,_0x59d25e)=>(_0x1d51f5,_0x424c92)=>_0x59d25e(_0x1d51f5,_0x424c92,_0x20180a);const wr=['image/png',_0x38c3ff(0x215),_0x38c3ff(0x4e7),_0x38c3ff(0x353),_0x38c3ff(0x316)],Pr=0x5*0x400*0x400,Ur=_0x38c3ff(0x38c),Mr='/universer-api/stream/file/upload',Ar=_0x38c3ff(0x31e),Nr=_0x38c3ff(0x213);exports[_0x38c3ff(0x5ea)]=class{constructor(_0x24790c,_0x48df29,_0x1ee562){const _0x32bd14=_0x38c3ff;I(this,_0x32bd14(0x562),0x0),I(this,'_change$',new A[(_0x32bd14(0x3cf))]()),I(this,_0x32bd14(0x266),this['_change$']),I(this,'_imageSourceCache',new Map()),(this[_0x32bd14(0x5a8)]=_0x24790c,this[_0x32bd14(0x1f5)]=_0x48df29,this[_0x32bd14(0x393)]=_0x1ee562);}['setWaitCount'](_0x411916){const _0x598538=_0x38c3ff;this[_0x598538(0x562)]=_0x411916,this[_0x598538(0x2d6)][_0x598538(0x4c4)](_0x411916);}[_0x38c3ff(0x1f4)](_0xa47ef3,_0x109c34){const _0x169426=_0x38c3ff;if(_0x109c34===ne[_0x169426(0x48c)][_0x169426(0x43b)]){const _0x4bdaa7=new Image();return _0x4bdaa7[_0x169426(0x38d)]=_0xa47ef3,_0x4bdaa7;}return this[_0x169426(0x452)][_0x169426(0x585)](_0xa47ef3);}[_0x38c3ff(0x33a)](_0x437809,_0x3e4394,_0x55683e){const _0x195055=_0x38c3ff;_0x3e4394===ne[_0x195055(0x48c)][_0x195055(0x43b)]||_0x55683e==null||this[_0x195055(0x452)]['set'](_0x437809,_0x55683e);}async[_0x38c3ff(0x628)](_0x58e311){const _0x3aa0a4=_0x38c3ff;try{const _0x3f2dc4=this[_0x3aa0a4(0x5d7)](this[_0x3aa0a4(0x61c)](),''+_0x58e311),_0x4a16de=(await this[_0x3aa0a4(0x5a8)][_0x3aa0a4(0x585)](_0x3f2dc4))['body'];if(_0x4a16de[_0x3aa0a4(0x55e)]&&_0x4a16de['error'][_0x3aa0a4(0x3b2)]===cn['OK']){const _0x55b08a=new URL(_0x4a16de[_0x3aa0a4(0x1c7)],this[_0x3aa0a4(0x237)]())[_0x3aa0a4(0x459)]();return Promise[_0x3aa0a4(0x38e)](_0x55b08a);}return Promise[_0x3aa0a4(0x588)](_0x4a16de[_0x3aa0a4(0x55e)]);}catch(_0x19ab73){return Promise['reject'](_0x19ab73);}}async[_0x38c3ff(0x454)](_0x27c95d){const _0x4b9299=_0x38c3ff;let _0x10881d='';if(!wr['includes'](_0x27c95d[_0x4b9299(0x42a)]))return this[_0x4b9299(0x2ff)](),Promise[_0x4b9299(0x588)](new Error(ne[_0x4b9299(0x29e)][_0x4b9299(0x2c9)]));if(_0x27c95d['size']>Pr)return this[_0x4b9299(0x2ff)](),Promise[_0x4b9299(0x588)](new Error(ne[_0x4b9299(0x29e)][_0x4b9299(0x59d)]));try{const _0x295cb6=new FormData();_0x295cb6[_0x4b9299(0x560)](_0x4b9299(0x4d5),_0x27c95d);const _0xfd7694=this[_0x4b9299(0x393)][_0x4b9299(0x3f9)](),_0x244bde=_0xfd7694==null?void 0x0:_0xfd7694['getUnitId']();if(!_0x244bde)throw new Error(_0x4b9299(0x3bf));const _0x624701=this[_0x4b9299(0x28c)]()+_0x4b9299(0x2c6)+_0x27c95d[_0x4b9299(0x311)][_0x4b9299(0x459)]()+_0x4b9299(0x417)+ln[_0x4b9299(0x4cd)]+_0x4b9299(0x555)+encodeURIComponent(_0x244bde),_0x433b3c=await(await fetch(_0x624701,{'method':_0x4b9299(0x28e),'body':_0x295cb6}))[_0x4b9299(0x361)]();if(typeof _0x433b3c[_0x4b9299(0x496)]!=_0x4b9299(0x53c))return this[_0x4b9299(0x2ff)](),Promise[_0x4b9299(0x588)](new Error(ne['ImageUploadStatusType'][_0x4b9299(0x51d)]));_0x10881d=_0x433b3c['FileId'];}catch{return this[_0x4b9299(0x2ff)](),Promise['reject'](new Error(ne['ImageUploadStatusType'][_0x4b9299(0x51d)]));}return new Promise((_0x3e4d6a,_0x3a9635)=>{const _0x39917a=_0x4b9299,_0x4e47d6=new FileReader();_0x4e47d6[_0x39917a(0x637)](_0x27c95d),_0x4e47d6[_0x39917a(0x2a7)]=_0x3b422c=>{const _0xf52ce3=_0x39917a;var _0xdb4290;const _0x5d0c3c=(_0xdb4290=_0x3b422c[_0xf52ce3(0x1f1)])==null?void 0x0:_0xdb4290[_0xf52ce3(0x4f5)];if(_0x5d0c3c==null){this['_decreaseWaiting'](),_0x3a9635(new Error(ne[_0xf52ce3(0x29e)][_0xf52ce3(0x51d)]));return;}const _0x2fc584=a['Tools'][_0xf52ce3(0x4b6)](0x6);_0x3e4d6a({'imageId':_0x2fc584,'imageSourceType':ne['ImageSourceType'][_0xf52ce3(0x2db)],'source':_0x10881d,'base64Cache':_0x5d0c3c,'status':ne['ImageUploadStatusType']['SUCCUSS']}),this[_0xf52ce3(0x2ff)]();};});}['_getUploadFileURL'](){const _0x4b6dd4=_0x38c3ff;var _0x466fd4,_0x3af5c2;const _0x171572=this[_0x4b6dd4(0x1f5)]['getConfig'](Ur),_0x317057=this[_0x4b6dd4(0x1f5)][_0x4b6dd4(0x556)](te);return(_0x3af5c2=(_0x466fd4=_0x317057==null?void 0x0:_0x317057['uploadFileServerUrl'])!=null?_0x466fd4:_0x171572)!=null?_0x3af5c2:Mr;}[_0x38c3ff(0x61c)](){const _0x21f8a4=_0x38c3ff;var _0x32b52c,_0x38a435;const _0x3a4866=this['_configService']['getConfig'](Ar),_0x5a81f6=this[_0x21f8a4(0x1f5)][_0x21f8a4(0x556)](te);return(_0x38a435=(_0x32b52c=_0x5a81f6==null?void 0x0:_0x5a81f6[_0x21f8a4(0x1c0)])!=null?_0x32b52c:_0x3a4866)!=null?_0x38a435:Nr;}[_0x38c3ff(0x237)](){const _0x20331a=_0x38c3ff;var _0x3112f3;const _0x64bbb0=this[_0x20331a(0x1f5)][_0x20331a(0x556)](te);return(_0x3112f3=_0x64bbb0==null?void 0x0:_0x64bbb0['downloadEndpointUrl'])!=null?_0x3112f3:location[_0x20331a(0x4ef)];}[_0x38c3ff(0x5d7)](_0x4c43b8,_0x278a97){const _0x1915c7=_0x38c3ff;return _0x4c43b8[_0x1915c7(0x346)]('{fileID}',_0x278a97);}[_0x38c3ff(0x2ff)](){const _0x3a8b47=_0x38c3ff;this[_0x3a8b47(0x562)]-=0x1,this['_change$']['next'](this[_0x3a8b47(0x562)]);}},exports[_0x38c3ff(0x5ea)]=Dr([vt(0x0,a[_0x38c3ff(0x2af)](Z['HTTPService'])),vt(0x1,a[_0x38c3ff(0x326)]),vt(0x2,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x2a8)]))],exports['ImageIoService']);var Lr=Object[_0x38c3ff(0x1c1)],xr=Object[_0x38c3ff(0x336)],jr=(_0xfaedc8,_0x135c39,_0x9ffdd4,_0x5bdfaf)=>{const _0xc4eec4=_0x38c3ff;for(var _0x13d71f=_0x5bdfaf>0x1?void 0x0:_0x5bdfaf?xr(_0x135c39,_0x9ffdd4):_0x135c39,_0x2eaca6=_0xfaedc8[_0xc4eec4(0x58c)]-0x1,_0x24bc65;_0x2eaca6>=0x0;_0x2eaca6--)(_0x24bc65=_0xfaedc8[_0x2eaca6])&&(_0x13d71f=(_0x5bdfaf?_0x24bc65(_0x135c39,_0x9ffdd4,_0x13d71f):_0x24bc65(_0x13d71f))||_0x13d71f);return _0x5bdfaf&&_0x13d71f&&Lr(_0x135c39,_0x9ffdd4,_0x13d71f),_0x13d71f;},Ae=(_0x2f870a,_0x149589)=>(_0xcfc73d,_0x5b4a7f)=>_0x149589(_0xcfc73d,_0x5b4a7f,_0x2f870a);let Ke=class extends a[_0x38c3ff(0x22c)]{constructor(_0x2df2e1,_0x4827b5,_0x2bf44f,_0xa3e35a,_0x2a6435){const _0x13329e=_0x38c3ff;super(),this['_injector']=_0x2df2e1,this[_0x13329e(0x393)]=_0x4827b5,this['_permissionService']=_0x2bf44f,this[_0x13329e(0x4ee)]=_0xa3e35a,this[_0x13329e(0x203)]=_0x2a6435,this['_initUnitPermissionChange'](),this[_0x13329e(0x63d)]();}[_0x38c3ff(0x63d)](){const _0x400403=_0x38c3ff,_0x1de9d0=async _0x419ab6=>{const _0x23eaef=_0x4762;(await this[_0x23eaef(0x4ee)][_0x23eaef(0x2aa)](_0x419ab6))['event$'][_0x23eaef(0x57b)](V['filter'](_0x5482e4=>_0x5482e4[_0x23eaef(0x2bd)]===S['CollaborationEvent'][_0x23eaef(0x641)]),V[_0x23eaef(0x3fb)](this[_0x23eaef(0x5ff)]))[_0x23eaef(0x47b)](_0x269f11=>{const _0x3cd672=_0x23eaef,_0x5393f1=_0x269f11,{reason:_0x18d570}=_0x5393f1[_0x3cd672(0x2e1)];this[_0x3cd672(0x3b6)][_0x3cd672(0x585)](ee['IMessageService'])[_0x3cd672(0x37c)]({'type':ge[_0x3cd672(0x312)][_0x3cd672(0x516)],'content':this[_0x3cd672(0x203)]['t']('collaboration.closeRoom')+'('+_0x18d570+')'}),this[_0x3cd672(0x54b)]['updatePermissionPoint'](new k['WorkbookEditablePermission'](_0x419ab6)['id'],!0x1),this[_0x3cd672(0x4ee)]['closeSession'](_0x419ab6);});};A[_0x400403(0x1d2)](this[_0x400403(0x393)][_0x400403(0x23f)](a[_0x400403(0x27f)][_0x400403(0x23d)]),this[_0x400403(0x393)][_0x400403(0x23f)](a[_0x400403(0x27f)][_0x400403(0x649)]))['pipe'](V['map'](_0x5bdb12=>_0x5bdb12[_0x400403(0x2ee)]()),V['filter'](_0x2dfdec=>!a['isInternalEditorID'](_0x2dfdec)),V[_0x400403(0x3fb)](this[_0x400403(0x5ff)]))[_0x400403(0x47b)](_0x36e51f=>{_0x1de9d0(_0x36e51f);});}[_0x38c3ff(0x630)](){const _0x2f54c9=_0x38c3ff,_0x29847f=async _0x26b1ff=>{const _0x24d785=_0x4762;(await this[_0x24d785(0x4ee)]['requireSession'](_0x26b1ff))['event$'][_0x24d785(0x57b)](V[_0x24d785(0x576)](_0x4a56c4=>_0x4a56c4[_0x24d785(0x2bd)]===S[_0x24d785(0x201)][_0x24d785(0x382)]),V[_0x24d785(0x3fb)](this[_0x24d785(0x5ff)]))[_0x24d785(0x47b)](_0x253e3a=>{const _0x495faf=_0x24d785,_0x3fcc0b=_0x253e3a,{objectId:_0x4284a0}=_0x3fcc0b['data'],_0x2c623a=this[_0x495faf(0x3b6)]['get'](Re[_0x495faf(0x25c)]);_0x4284a0===_0x26b1ff?_0x2c623a[_0x495faf(0x28f)](_0x26b1ff):_0x2c623a[_0x495faf(0x258)](_0x26b1ff,_0x4284a0);});};A[_0x2f54c9(0x1d2)](this[_0x2f54c9(0x393)]['getTypeOfUnitAdded$'](a[_0x2f54c9(0x27f)]['UNIVER_SHEET']),this[_0x2f54c9(0x393)][_0x2f54c9(0x23f)](a[_0x2f54c9(0x27f)][_0x2f54c9(0x649)]))['pipe'](V[_0x2f54c9(0x4d7)](_0x5ce597=>_0x5ce597[_0x2f54c9(0x2ee)]()),V[_0x2f54c9(0x576)](_0x12423f=>!a[_0x2f54c9(0x28b)](_0x12423f)),V['takeUntil'](this[_0x2f54c9(0x5ff)]))[_0x2f54c9(0x47b)](_0x2eed09=>{_0x29847f(_0x2eed09);});}};Ke=jr([Ae(0x0,a['Inject'](a[_0x38c3ff(0x50e)])),Ae(0x1,a['IUniverInstanceService']),Ae(0x2,a[_0x38c3ff(0x421)]),Ae(0x3,a['Inject'](exports[_0x38c3ff(0x1f6)])),Ae(0x4,a[_0x38c3ff(0x2af)](a[_0x38c3ff(0x222)]))],Ke);var $r=Object[_0x38c3ff(0x1c1)],Hr=Object[_0x38c3ff(0x336)],Br=(_0x4baf5d,_0x55579e,_0x5a765d,_0x2e5ca5)=>{const _0x466bec=_0x38c3ff;for(var _0x4ce640=_0x2e5ca5>0x1?void 0x0:_0x2e5ca5?Hr(_0x55579e,_0x5a765d):_0x55579e,_0x26e73f=_0x4baf5d[_0x466bec(0x58c)]-0x1,_0x49100b;_0x26e73f>=0x0;_0x26e73f--)(_0x49100b=_0x4baf5d[_0x26e73f])&&(_0x4ce640=(_0x2e5ca5?_0x49100b(_0x55579e,_0x5a765d,_0x4ce640):_0x49100b(_0x4ce640))||_0x4ce640);return _0x2e5ca5&&_0x4ce640&&$r(_0x55579e,_0x5a765d,_0x4ce640),_0x4ce640;},Jt=(_0x22288a,_0x542cf5)=>(_0x583e39,_0x217ace)=>_0x542cf5(_0x583e39,_0x217ace,_0x22288a);exports[_0x38c3ff(0x4b7)]=class{constructor(_0x21ca99,_0x5ad4cf){const _0x5def6f=_0x38c3ff;this[_0x5def6f(0x1f5)]=_0x21ca99,this[_0x5def6f(0x5a8)]=_0x5ad4cf;}async[_0x38c3ff(0x196)](_0x53ad6a,_0x319a75){const _0x1d40f3=_0x38c3ff;var _0x3085d9;const {unitID:_0x2d8ac7,type:_0x3535a3,revision:_0x3ac3a4=0x0}=_0x319a75,_0x192f28=this[_0x1d40f3(0x23e)]()+'/'+_0x3535a3+_0x1d40f3(0x4e1)+_0x2d8ac7+_0x1d40f3(0x306)+_0x3ac3a4,_0x48fa74=(await this[_0x1d40f3(0x5a8)][_0x1d40f3(0x585)](_0x192f28))['body'],_0x1f7042=(_0x3085d9=_0x48fa74[_0x1d40f3(0x3b1)])==null?void 0x0:_0x3085d9['workbook'];if(_0x1f7042){const _0x56b34a=_0x1f7042==null?void 0x0:_0x1f7042[_0x1d40f3(0x435)],_0x17565b=S['textEncoder'][_0x1d40f3(0x273)](S[_0x1d40f3(0x629)](_0x56b34a));_0x1f7042[_0x1d40f3(0x435)]=_0x17565b,Object[_0x1d40f3(0x56c)](_0x1f7042[_0x1d40f3(0x334)])['forEach'](([,_0x3fcf4])=>{const _0x346161=_0x1d40f3,_0x464e71=_0x3fcf4[_0x346161(0x435)],_0x1970f8=S[_0x346161(0x5ac)][_0x346161(0x273)](S[_0x346161(0x629)](_0x464e71));_0x3fcf4['originalMeta']=_0x1970f8;});}return _0x48fa74;}async['getSheetBlock'](_0x54f8b9,_0x13dd37){const _0x2aefb4=_0x38c3ff,{unitID:_0x1f0c66,type:_0x4be35a,blockID:_0x584ea9}=_0x13dd37,_0x408682=this[_0x2aefb4(0x460)]()+'/'+_0x4be35a+_0x2aefb4(0x4e1)+_0x1f0c66+_0x2aefb4(0x233)+_0x584ea9;return(await this['_httpService'][_0x2aefb4(0x585)](_0x408682))[_0x2aefb4(0x282)];}async['getDeserializedSheetBlock'](_0x142c72,_0xf82d06){const _0x126736=_0x38c3ff,{unitID:_0x232282,type:_0x4d2ce1,blockID:_0x3606b3}=_0xf82d06,_0x528a84=this[_0x126736(0x460)]()+_0x126736(0x233)+_0x4d2ce1+_0x126736(0x4e1)+_0x232282+'/block/'+_0x3606b3;return(await this[_0x126736(0x5a8)][_0x126736(0x585)](_0x528a84))[_0x126736(0x282)];}async[_0x38c3ff(0x4cb)](_0x5a6905,_0x183c0a){const _0x39cfee=_0x38c3ff,{unitID:_0x4672d8,type:_0x6cd438,from:_0x37958a,to:_0x189f85}=_0x183c0a,_0x90d82d=this[_0x39cfee(0x460)]()+'/'+_0x6cd438+_0x39cfee(0x4e1)+_0x4672d8+_0x39cfee(0x2a4)+_0x37958a+'&to='+_0x189f85;return(await this['_httpService'][_0x39cfee(0x585)](_0x90d82d))['body'];}[_0x38c3ff(0x23e)](){const _0x37c419=_0x38c3ff;var _0x39c176;return(_0x39c176=this['_configService'][_0x37c419(0x556)](Qt))!=null?_0x39c176:this[_0x37c419(0x460)]();}[_0x38c3ff(0x460)](){const _0x3ec2ac=_0x38c3ff;var _0x1eb228,_0x32ccc7;const _0x4217bf=this[_0x3ec2ac(0x1f5)][_0x3ec2ac(0x556)](Zt),_0x40aebe=this[_0x3ec2ac(0x1f5)][_0x3ec2ac(0x556)](te);return(_0x32ccc7=(_0x1eb228=_0x40aebe==null?void 0x0:_0x40aebe[_0x3ec2ac(0x55f)])!=null?_0x1eb228:_0x4217bf)!=null?_0x32ccc7:Hn;}async[_0x38c3ff(0x2c0)](_0x6318a2,_0x1f6d48){const _0x262b98=_0x38c3ff,_0x684af9=_0x262b98(0x4e5)+_0x1f6d48['type']+'/unit/'+_0x1f6d48[_0x262b98(0x364)]+_0x262b98(0x1b6);return(await this['_httpService'][_0x262b98(0x585)](_0x684af9,{'params':{'resourceId':JSON[_0x262b98(0x3e4)](_0x1f6d48[_0x262b98(0x1cf)])}}))[_0x262b98(0x282)];}[_0x38c3ff(0x28a)](){const _0x4e7410=_0x38c3ff;throw new Error(_0x4e7410(0x1d8));}[_0x38c3ff(0x4af)](){const _0x2a1ae4=_0x38c3ff;throw new Error(_0x2a1ae4(0x1d8));}[_0x38c3ff(0x284)](){const _0x4698e3=_0x38c3ff;throw new Error(_0x4698e3(0x1d8));}[_0x38c3ff(0x52f)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x85550c=_0x38c3ff;throw new Error(_0x85550c(0x1d8));}},exports[_0x38c3ff(0x4b7)]=Br([Jt(0x0,a[_0x38c3ff(0x326)]),Jt(0x1,a[_0x38c3ff(0x2af)](Z[_0x38c3ff(0x627)]))],exports[_0x38c3ff(0x4b7)]);var kr=Object[_0x38c3ff(0x1c1)],Wr=Object[_0x38c3ff(0x336)],Fr=(_0x57a3d4,_0x548199,_0xaaa725,_0x2f9aba)=>{const _0x21a34c=_0x38c3ff;for(var _0x369c15=_0x2f9aba>0x1?void 0x0:_0x2f9aba?Wr(_0x548199,_0xaaa725):_0x548199,_0x37ec34=_0x57a3d4[_0x21a34c(0x58c)]-0x1,_0x57b476;_0x37ec34>=0x0;_0x37ec34--)(_0x57b476=_0x57a3d4[_0x37ec34])&&(_0x369c15=(_0x2f9aba?_0x57b476(_0x548199,_0xaaa725,_0x369c15):_0x57b476(_0x369c15))||_0x369c15);return _0x2f9aba&&_0x369c15&&kr(_0x548199,_0xaaa725,_0x369c15),_0x369c15;},Ne=(_0x123c0c,_0x540672)=>(_0x91a183,_0x342c9c)=>_0x540672(_0x91a183,_0x342c9c,_0x123c0c);let It=class extends a[_0x38c3ff(0x2fb)]{constructor(_0x1d935f,_0x4ce155,_0x304162,_0xa5a920,_0x578417){const _0xbe671b=_0x38c3ff;super(_0x1d935f,_0x4ce155,_0x304162),this['_transformService']=_0xa5a920,this[_0xbe671b(0x4ce)]=_0x578417;}['transformUndoRedo'](_0x2e775d,_0x1fd557){const _0x35c849=_0x38c3ff,_0xa030f3=this[_0x35c849(0x2cc)](_0x2e775d);if(_0xa030f3)try{const _0x520366=this[_0x35c849(0x510)](_0xa030f3,_0x1fd557);this['_substituteUndoStack'](_0x2e775d,_0x520366);}catch(_0x4ae493){this[_0x35c849(0x4ce)][_0x35c849(0x55e)](_0x35c849(0x3eb),_0x4ae493),this[_0x35c849(0x46c)](_0x2e775d);}const _0x1d7ce7=this[_0x35c849(0x60e)](_0x2e775d);if(_0x1d7ce7)try{const _0x407557=this['_transformStack'](_0x1d7ce7,_0x1fd557);this[_0x35c849(0x3d2)](_0x2e775d,_0x407557);}catch(_0x54f9e6){this[_0x35c849(0x4ce)][_0x35c849(0x55e)](_0x54f9e6),this[_0x35c849(0x49e)](_0x2e775d);}}[_0x38c3ff(0x46c)](_0x184322){const _0x4600e9=_0x38c3ff,_0x56a079=this[_0x4600e9(0x2cc)](_0x184322);_0x56a079&&(_0x56a079[_0x4600e9(0x58c)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x2d2b33){const _0x2d31a1=_0x38c3ff,_0x51e55f=this[_0x2d31a1(0x60e)](_0x2d2b33);_0x51e55f&&(_0x51e55f['length']=0x0,this[_0x2d31a1(0x3e2)]());}[_0x38c3ff(0x276)](_0x502b8e,_0x37d11b){const _0x24f49a=_0x38c3ff;this[_0x24f49a(0x50d)][_0x24f49a(0x3e8)](_0x502b8e,_0x37d11b),this[_0x24f49a(0x3e2)]();}[_0x38c3ff(0x3d2)](_0x9ef50e,_0x5dbf5f){const _0x5e6b1e=_0x38c3ff;this[_0x5e6b1e(0x229)][_0x5e6b1e(0x3e8)](_0x9ef50e,_0x5dbf5f),this[_0x5e6b1e(0x3e2)]();}[_0x38c3ff(0x510)](_0x4ce378,_0x18c88f){const _0x12a414=_0x38c3ff,_0x30d814=[];let _0x5e9f91=_0x18c88f,_0x4f02d3=_0x18c88f;for(let _0x3f23a6=_0x4ce378[_0x12a414(0x58c)]-0x1;_0x3f23a6>=0x0;_0x3f23a6--){const {unitID:_0x23a27d,undoMutations:_0x59fd12,redoMutations:_0x27e715}=_0x4ce378[_0x3f23a6],_0x4d60f1=this[_0x12a414(0x267)]['transformMutationsWithChangeset'](_0x5e9f91,_0x59fd12),_0x280d88=this['_transformService']['transformMutationsWithChangeset'](_0x4f02d3,_0x27e715);if(S[_0x12a414(0x5d4)](_0x4d60f1)||S[_0x12a414(0x5d4)](_0x280d88)){this[_0x12a414(0x4ce)][_0x12a414(0x55e)](_0x12a414(0x3eb),_0x12a414(0x5b7),_0x4d60f1,_0x280d88);break;}_0x5e9f91=_0x4d60f1[_0x12a414(0x521)],_0x4f02d3=_0x280d88[_0x12a414(0x521)],_0x30d814[_0x12a414(0x473)]({'unitID':_0x23a27d,'undoMutations':_0x4d60f1[_0x12a414(0x41f)],'redoMutations':_0x280d88[_0x12a414(0x41f)]});}return _0x30d814[_0x12a414(0x49f)]();}};It=Fr([Ne(0x0,a[_0x38c3ff(0x2a8)]),Ne(0x1,a[_0x38c3ff(0x439)]),Ne(0x2,a[_0x38c3ff(0x287)]),Ne(0x3,S[_0x38c3ff(0x3cc)]),Ne(0x4,a[_0x38c3ff(0x626)])],It);class An extends a[_0x38c3ff(0x22c)]{constructor(){const _0x516ab1=_0x38c3ff;super(),I(this,_0x516ab1(0x2ce)),this[_0x516ab1(0x2ce)]=A[_0x516ab1(0x5aa)](window,_0x516ab1(0x1b5))['pipe'](A['takeUntil'](this[_0x516ab1(0x5ff)]),A[_0x516ab1(0x246)](0x1),A['mapTo'](void 0x0));}[_0x38c3ff(0x37d)](_0x139b63,_0x222428,_0x5f16f0=!0x1){const _0x43f1fc=_0x38c3ff,_0x12bd0b=new URL(window[_0x43f1fc(0x294)]['href']);_0x12bd0b[_0x43f1fc(0x4c2)][_0x43f1fc(0x3e8)](_0x139b63,_0x222428),_0x5f16f0?window[_0x43f1fc(0x42f)]['replaceState']('','',_0x12bd0b[_0x43f1fc(0x459)]()):window[_0x43f1fc(0x42f)][_0x43f1fc(0x20a)]('','',_0x12bd0b[_0x43f1fc(0x459)]());}['removeParam'](_0x58799f,_0x386891=!0x1){const _0x43961a=_0x38c3ff,_0x17c540=new URL(window[_0x43961a(0x294)][_0x43961a(0x370)]);_0x17c540[_0x43961a(0x4c2)][_0x43961a(0x1d0)](_0x58799f),_0x386891?window[_0x43961a(0x42f)][_0x43961a(0x455)]('','',_0x17c540['toString']()):window[_0x43961a(0x42f)][_0x43961a(0x20a)]('','',_0x17c540[_0x43961a(0x459)]());}[_0x38c3ff(0x400)](_0x4de519){const _0x1ba882=_0x38c3ff;var _0x5adff7;return(_0x5adff7=new URL(window[_0x1ba882(0x294)]['href'])['searchParams'][_0x1ba882(0x585)](_0x4de519))!=null?_0x5adff7:void 0x0;}}var Nn=Object['defineProperty'],Vr=Object['getOwnPropertyDescriptor'],Gr=(_0x324427,_0x420fe6,_0x23fe97)=>_0x420fe6 in _0x324427?Nn(_0x324427,_0x420fe6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23fe97}):_0x324427[_0x420fe6]=_0x23fe97,Yr=(_0x2dc1b3,_0x16e5c0,_0x41694c,_0x474622)=>{for(var _0x5b7de5=_0x474622>0x1?void 0x0:_0x474622?Vr(_0x16e5c0,_0x41694c):_0x16e5c0,_0x5a16f7=_0x2dc1b3['length']-0x1,_0x33dac9;_0x5a16f7>=0x0;_0x5a16f7--)(_0x33dac9=_0x2dc1b3[_0x5a16f7])&&(_0x5b7de5=(_0x474622?_0x33dac9(_0x16e5c0,_0x41694c,_0x5b7de5):_0x33dac9(_0x5b7de5))||_0x5b7de5);return _0x474622&&_0x5b7de5&&Nn(_0x16e5c0,_0x41694c,_0x5b7de5),_0x5b7de5;},He=(_0x41ea45,_0x4be64c)=>(_0xa675f2,_0x12ea5e)=>_0x4be64c(_0xa675f2,_0x12ea5e,_0x41ea45),Kr=(_0x6a8144,_0x555f5d,_0x11633f)=>Gr(_0x6a8144,_0x555f5d+'',_0x11633f);const qr=_0x38c3ff(0x579);exports[_0x38c3ff(0x252)]=class extends a[_0x38c3ff(0x5e5)]{constructor(_0xf1f6f7=zn,_0x359dec,_0x30b56c,_0x1631fe,_0x50d4e1){const _0x3d5316=_0x38c3ff;super(),this[_0x3d5316(0x62a)]=_0xf1f6f7,this[_0x3d5316(0x4ce)]=_0x359dec,this[_0x3d5316(0x286)]=_0x30b56c,this['_injector']=_0x1631fe,this[_0x3d5316(0x1f5)]=_0x50d4e1;const {..._0x207ce5}=this[_0x3d5316(0x62a)];this[_0x3d5316(0x1f5)][_0x3d5316(0x30f)](te,_0x207ce5);}[_0x38c3ff(0x5d5)](){const _0x2b0904=_0x38c3ff;this[_0x2b0904(0x347)](),this[_0x2b0904(0x42e)]();}[_0x38c3ff(0x44c)](){const _0x37b6fa=_0x38c3ff;a[_0x37b6fa(0x655)](this['_injector'],[[Ve]]);}[_0x38c3ff(0x561)](){const _0x475a71=_0x38c3ff;this[_0x475a71(0x245)]();}[_0x38c3ff(0x347)](){const _0x47216e=_0x38c3ff;var _0x4e07df,_0x44abc9,_0x2dcdeb,_0x598df8;this['_injector'][_0x47216e(0x599)](a[_0x47216e(0x1bc)])&&this[_0x47216e(0x4ce)]['error'](_0x47216e(0x328),_0x47216e(0x25a));const _0x35baf1=[[a[_0x47216e(0x1bc)],{'useClass':It}],[exports[_0x47216e(0x1f6)]],[Ot],[wt,{'useClass':An}],[exports[_0x47216e(0x41e)]],[exports[_0x47216e(0x227)]],[Z[_0x47216e(0x51c)]],[ke],[Fe],[Be],[We],[Rt],[Ge],[Ye],[Tt],[Ke],[bt,{'useClass':(_0x44abc9=(_0x4e07df=this['_config'])==null?void 0x0:_0x4e07df[_0x47216e(0x5af)])!=null?_0x44abc9:exports['CollaborationSocketService']}],[S[_0x47216e(0x1ca)],{'useClass':exports[_0x47216e(0x4b7)]}],[a[_0x47216e(0x34e)],{'useClass':exports[_0x47216e(0x232)]}],[ne[_0x47216e(0x499)],{'useClass':exports[_0x47216e(0x5ea)]}],[exports[_0x47216e(0x571)]],[exports[_0x47216e(0x388)]],[exports[_0x47216e(0x4e6)]],[Ve],[De]];(_0x2dcdeb=this['_config'])!=null&&_0x2dcdeb[_0x47216e(0x32b)]&&_0x35baf1[_0x47216e(0x473)]([qe,{'useClass':Oi}]),a['registerDependencies'](this['_injector'],a[_0x47216e(0x3c8)](_0x35baf1,(_0x598df8=this['_config'])==null?void 0x0:_0x598df8['override']));}[_0x38c3ff(0x245)](){const _0x131385=_0x38c3ff;this[_0x131385(0x4bd)](this[_0x131385(0x286)][_0x131385(0x2e4)](a[_0x131385(0x27f)][_0x131385(0x649)],[pt])),this[_0x131385(0x4bd)](this[_0x131385(0x286)][_0x131385(0x2e4)](a[_0x131385(0x27f)]['UNIVER_SHEET'],[gt]));}[_0x38c3ff(0x42e)](){const _0x388419=_0x38c3ff;var _0x27cace,_0x2c07ab;this[_0x388419(0x3b6)][_0x388419(0x585)](Z['HTTPService'])[_0x388419(0x53f)]({'priority':0x14,'interceptor':Z['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x27cace=this[_0x388419(0x62a)])!=null&&_0x27cace[_0x388419(0x50b)]||this[_0x388419(0x3b6)][_0x388419(0x585)](exports[_0x388419(0x227)])['disableLocalCache'](),(_0x2c07ab=this['_config'])!=null&&_0x2c07ab['enableAuthServer']&&a[_0x388419(0x655)](this[_0x388419(0x3b6)],[[Ge]]),a[_0x388419(0x655)](this['_injector'],[[Ye],[De],[exports['DataLoaderController']],[exports[_0x388419(0x571)]],[exports[_0x388419(0x4e6)]],[Ke]]);}},Kr(exports[_0x38c3ff(0x252)],_0x38c3ff(0x3af),qr),exports[_0x38c3ff(0x252)]=Yr([a[_0x38c3ff(0x471)](S[_0x38c3ff(0x61b)],Z[_0x38c3ff(0x432)]),He(0x1,a[_0x38c3ff(0x626)]),He(0x2,K[_0x38c3ff(0x3ea)]),He(0x3,a['Inject'](a[_0x38c3ff(0x50e)])),He(0x4,a[_0x38c3ff(0x326)])],exports[_0x38c3ff(0x252)]),exports[_0x38c3ff(0x2f4)]=Rn,exports[_0x38c3ff(0x39a)]=on,exports[_0x38c3ff(0x489)]=en,exports[_0x38c3ff(0x5ce)]=q,exports[_0x38c3ff(0x1de)]=Tn,exports['CommentService']=Tt,exports[_0x38c3ff(0x448)]=tn,exports[_0x38c3ff(0x208)]=Ct,exports[_0x38c3ff(0x243)]=bt,exports[_0x38c3ff(0x2f6)]=wt,exports['LOCAL_CACHE_INTERVAL_KEY']=rn,exports[_0x38c3ff(0x216)]=an,exports[_0x38c3ff(0x441)]=sn,exports[_0x38c3ff(0x483)]=Bn,exports[_0x38c3ff(0x2cf)]=Zt,exports['SNAPSHOT_URL_KEY']=Qt,exports[_0x38c3ff(0x270)]=se,exports[_0x38c3ff(0x387)]=Sn,exports[_0x38c3ff(0x5ee)]=An,exports['deserializeToCombResponse']=hn,exports[_0x38c3ff(0x564)]=_n;