@univerjs-pro/collaboration-client 0.1.16 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x53b42f=_0xe052;(function(_0x4a885b,_0x11f14b){const _0x236a0c=_0xe052,_0x3d3719=_0x4a885b();while(!![]){try{const _0x12a5e2=-parseInt(_0x236a0c(0x3d9))/0x1+-parseInt(_0x236a0c(0x1df))/0x2+-parseInt(_0x236a0c(0x40e))/0x3*(-parseInt(_0x236a0c(0x488))/0x4)+-parseInt(_0x236a0c(0x3a0))/0x5*(parseInt(_0x236a0c(0x43f))/0x6)+-parseInt(_0x236a0c(0x2e1))/0x7+parseInt(_0x236a0c(0x31b))/0x8*(-parseInt(_0x236a0c(0x401))/0x9)+parseInt(_0x236a0c(0x2ea))/0xa*(parseInt(_0x236a0c(0x27f))/0xb);if(_0x12a5e2===_0x11f14b)break;else _0x3d3719['push'](_0x3d3719['shift']());}catch(_0x3d86eb){_0x3d3719['push'](_0x3d3719['shift']());}}}(_0x3fcd,0xe9117));var jt=Object[_0x53b42f(0x38a)],$t=(_0x1319dc,_0xba3a36,_0x1350f5)=>_0xba3a36 in _0x1319dc?jt(_0x1319dc,_0xba3a36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1350f5}):_0x1319dc[_0xba3a36]=_0x1350f5,d=(_0x1f7e5b,_0x8e78f6,_0xeefd7)=>$t(_0x1f7e5b,typeof _0x8e78f6!=_0x53b42f(0x205)?_0x8e78f6+'':_0x8e78f6,_0xeefd7);Object['defineProperty'](exports,Symbol[_0x53b42f(0x325)],{'value':'Module'});const a=require(_0x53b42f(0x1dc)),E=require(_0x53b42f(0x23b)),oe=require('@univerjs/design'),N=require(_0x53b42f(0x2fd)),u=require('@univerjs-pro/collaboration'),h=require(_0x53b42f(0x225)),g=require('rxjs'),T=require('rxjs/operators'),M=require(_0x53b42f(0x302)),P=require(_0x53b42f(0x4cb)),A=require('@univerjs/drawing'),Ye=require(_0x53b42f(0x466)),He=require('lodash/debounce'),R=require(_0x53b42f(0x256)),ee=require('@univerjs/sheets-ui'),at=require(_0x53b42f(0x3e3)),L=require('react'),Ht=require('clsx'),xt=require('@univerjs/rpc'),ct='SNAPSHOT_SERVER_URL_KEY',kt=_0x53b42f(0x2ca),lt=_0x53b42f(0x44c),ht='SEND_CHANGESET_TIMEOUT',Bt=0x7d0,_t=_0x53b42f(0x4dd),Ft=_0x53b42f(0x312),ut=_0x53b42f(0x467),Vt=0x7530,xe=_0x53b42f(0x1f1),dt=0x2710,Wt='RETRY_CONNECTING_INTERVAL',Gt=0x4e20,Yt=_0x53b42f(0x1ef),Kt=0x3,St='LOCAL_CACHE_INTERVAL',Xt=0x3e8,vt=_0x53b42f(0x316),qt=_0x53b42f(0x2c4),gt=_0x53b42f(0x465),zt=_0x53b42f(0x244);var ft=(_0x2594fe=>(_0x2594fe[_0x2594fe[_0x53b42f(0x2fb)]=0x0]=_0x53b42f(0x2fb),_0x2594fe[_0x2594fe['OK']=0x1]='OK',_0x2594fe[_0x2594fe['INTERNAL_ERROR']=0x2]=_0x53b42f(0x3b2),_0x2594fe[_0x2594fe[_0x53b42f(0x257)]=0x3]=_0x53b42f(0x257),_0x2594fe[_0x2594fe[_0x53b42f(0x3d5)]=0x4]=_0x53b42f(0x3d5),_0x2594fe[_0x2594fe[_0x53b42f(0x167)]=0x5]=_0x53b42f(0x167),_0x2594fe[_0x2594fe['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2594fe[_0x2594fe[_0x53b42f(0x408)]=0x7]=_0x53b42f(0x408),_0x2594fe[_0x2594fe[_0x53b42f(0x367)]=0x8]='TOO_MANY_REQUESTS',_0x2594fe[_0x2594fe[_0x53b42f(0x218)]=0x9]=_0x53b42f(0x218),_0x2594fe[_0x2594fe[_0x53b42f(0x40f)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2594fe[_0x2594fe[_0x53b42f(0x42d)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2594fe[_0x2594fe[_0x53b42f(0x3da)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2594fe[_0x2594fe[_0x53b42f(0x2b0)]=0x1b59]='APPLY_REJECT',_0x2594fe[_0x2594fe[_0x53b42f(0x46e)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2594fe[_0x2594fe[_0x53b42f(0x229)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2594fe[_0x2594fe[_0x53b42f(0x2db)]=0x1b5c]=_0x53b42f(0x2db),_0x2594fe[_0x2594fe[_0x53b42f(0x40d)]=0x1f41]=_0x53b42f(0x40d),_0x2594fe[_0x2594fe[_0x53b42f(0x180)]=0x2329]=_0x53b42f(0x180),_0x2594fe[_0x2594fe[_0x53b42f(0x22d)]=0x232a]=_0x53b42f(0x22d),_0x2594fe[_0x2594fe[_0x53b42f(0x43c)]=0x232b]=_0x53b42f(0x43c),_0x2594fe[_0x2594fe[_0x53b42f(0x277)]=0x232c]=_0x53b42f(0x277),_0x2594fe[_0x2594fe[_0x53b42f(0x3df)]=0x232d]=_0x53b42f(0x3df),_0x2594fe[_0x2594fe[_0x53b42f(0x40c)]=0x2711]=_0x53b42f(0x40c),_0x2594fe[_0x2594fe[_0x53b42f(0x291)]=0x2712]=_0x53b42f(0x291),_0x2594fe[_0x2594fe[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x2594fe))(ft||{}),j=(_0x515b1e=>(_0x515b1e[_0x515b1e[_0x53b42f(0x41a)]=0x0]=_0x53b42f(0x41a),_0x515b1e[_0x515b1e[_0x53b42f(0x220)]=0x1]=_0x53b42f(0x220),_0x515b1e[_0x515b1e[_0x53b42f(0x164)]=0x2]=_0x53b42f(0x164),_0x515b1e[_0x515b1e[_0x53b42f(0x26a)]=0x3]=_0x53b42f(0x26a),_0x515b1e[_0x515b1e['UNRECOGNIZED']=-0x1]=_0x53b42f(0x406),_0x515b1e))(j||{}),b=(_0x5cad4d=>(_0x5cad4d[_0x5cad4d[_0x53b42f(0x445)]=0x0]=_0x53b42f(0x445),_0x5cad4d[_0x5cad4d['HELLO']=0x1]='HELLO',_0x5cad4d[_0x5cad4d[_0x53b42f(0x442)]=0x2]=_0x53b42f(0x442),_0x5cad4d[_0x5cad4d['LEAVE']=0x3]=_0x53b42f(0x4e4),_0x5cad4d[_0x5cad4d[_0x53b42f(0x292)]=0x4]='INGEST',_0x5cad4d[_0x5cad4d[_0x53b42f(0x33f)]=0x5]=_0x53b42f(0x33f),_0x5cad4d[_0x5cad4d[_0x53b42f(0x4c4)]=0x6]=_0x53b42f(0x4c4),_0x5cad4d[_0x5cad4d[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x5cad4d))(b||{}),ke=(_0x371321=>(_0x371321[_0x371321['UNKNOWN_CODE']=0x0]=_0x53b42f(0x294),_0x371321[_0x371321['OK']=0x1]='OK',_0x371321[_0x371321[_0x53b42f(0x202)]=0x2]='FAIL',_0x371321[_0x371321[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x371321))(ke||{}),Jt=Object['defineProperty'],Zt=Object[_0x53b42f(0x2a8)],Qt=(_0x5f01c8,_0x35267b,_0x178ddb,_0x135042)=>{for(var _0x2422d1=_0x135042>0x1?void 0x0:_0x135042?Zt(_0x35267b,_0x178ddb):_0x35267b,_0x3196ca=_0x5f01c8['length']-0x1,_0x10d192;_0x3196ca>=0x0;_0x3196ca--)(_0x10d192=_0x5f01c8[_0x3196ca])&&(_0x2422d1=(_0x135042?_0x10d192(_0x35267b,_0x178ddb,_0x2422d1):_0x10d192(_0x2422d1))||_0x2422d1);return _0x135042&&_0x2422d1&&Jt(_0x35267b,_0x178ddb,_0x2422d1),_0x2422d1;},Ke=(_0x4fe674,_0x23e6fd)=>(_0x5e4c6d,_0x4ed765)=>_0x23e6fd(_0x5e4c6d,_0x4ed765,_0x4fe674);let G=class extends a[_0x53b42f(0x18e)]{constructor(_0x8a4e95,_0x15096e){const _0x4266a5=_0x53b42f;super(),d(this,_0x4266a5(0x272),new Map()),(this[_0x4266a5(0x49a)]=_0x8a4e95,this[_0x4266a5(0x3d7)]=_0x15096e,this[_0x4266a5(0x1e9)](a[_0x4266a5(0x1bb)](g[_0x4266a5(0x221)](this[_0x4266a5(0x49a)][_0x4266a5(0x160)](a[_0x4266a5(0x142)][_0x4266a5(0x164)])['pipe'](T[_0x4266a5(0x1af)](_0x27f9fb=>_0x27f9fb[_0x4266a5(0x1f9)]())),this[_0x4266a5(0x49a)]['getTypeOfUnitDisposed$'](a[_0x4266a5(0x142)][_0x4266a5(0x220)])[_0x4266a5(0x454)](T['map'](_0x3344f1=>_0x3344f1['getUnitId']())),this[_0x4266a5(0x49a)][_0x4266a5(0x160)](a[_0x4266a5(0x142)][_0x4266a5(0x26a)])['pipe'](T[_0x4266a5(0x1af)](_0x5f2c5d=>_0x5f2c5d[_0x4266a5(0x1f9)]())))['subscribe'](_0x2f0f91=>this[_0x4266a5(0x2f2)](_0x2f0f91)))));}['setCurrentUser'](_0x212415){const _0x32cd33=_0x53b42f;this[_0x32cd33(0x3d7)][_0x32cd33(0x273)](_0x212415);}['getCurrentUser'](){const _0x295326=_0x53b42f;return this[_0x295326(0x3d7)][_0x295326(0x341)]();}[_0x53b42f(0x4ad)](_0xf0f929,_0x5dff7e){const _0x3b5401=_0x53b42f;let _0x486fc5=this[_0x3b5401(0x272)][_0x3b5401(0x3d4)](_0xf0f929);_0x486fc5||(_0x486fc5=new es(),this[_0x3b5401(0x272)][_0x3b5401(0x2e0)](_0xf0f929,_0x486fc5)),_0x486fc5[_0x3b5401(0x4ad)](_0x5dff7e);}[_0x53b42f(0x3bf)](_0x2f36df,_0x445df6){const _0x1ac2b2=_0x53b42f,_0x3507ab=this['_roomMembers'][_0x1ac2b2(0x3d4)](_0x2f36df);_0x3507ab&&_0x3507ab['removeMember'](_0x445df6);}[_0x53b42f(0x440)](_0x560b23){const _0x1ac643=_0x53b42f;return this[_0x1ac643(0x272)][_0x1ac643(0x3d4)](_0x560b23);}['getMember'](_0x5562ab,_0x4d2266){const _0x939393=_0x53b42f,_0x4abf5c=this[_0x939393(0x272)][_0x939393(0x3d4)](_0x5562ab);if(_0x4abf5c)return _0x4abf5c[_0x939393(0x4b5)](_0x4d2266);}[_0x53b42f(0x2f2)](_0x447eab){const _0x2ffba7=_0x53b42f,_0x30b25f=this[_0x2ffba7(0x272)][_0x2ffba7(0x3d4)](_0x447eab);_0x30b25f&&(_0x30b25f[_0x2ffba7(0x4df)](),this[_0x2ffba7(0x272)][_0x2ffba7(0x35b)](_0x447eab));}[_0x53b42f(0x4df)](){const _0x8ceeee=_0x53b42f;this[_0x8ceeee(0x272)]['forEach'](_0x25b729=>_0x25b729[_0x8ceeee(0x4df)]()),this[_0x8ceeee(0x272)]['clear']();}};G=Qt([Ke(0x0,a[_0x53b42f(0x390)]),Ke(0x1,h[_0x53b42f(0x295)](a[_0x53b42f(0x2a0)]))],G);class es extends a[_0x53b42f(0x18e)]{constructor(){const _0x19e656=_0x53b42f;super(...arguments),d(this,_0x19e656(0x237),new Map());}[_0x53b42f(0x4df)](){const _0x194bed=_0x53b42f;this[_0x194bed(0x237)][_0x194bed(0x4de)]();}[_0x53b42f(0x4ad)](_0x5fa5d5){const _0xdf3657=_0x53b42f;this[_0xdf3657(0x237)]['set'](_0x5fa5d5[_0xdf3657(0x328)],_0x5fa5d5);}['removeMember'](_0x2406d7){const _0xdbe1d2=_0x53b42f;this[_0xdbe1d2(0x237)]['delete'](_0x2406d7);}[_0x53b42f(0x4b5)](_0xdeb4b){const _0x2fdef1=_0x53b42f;return this[_0x2fdef1(0x237)][_0x2fdef1(0x3d4)](_0xdeb4b);}}function mt(_0xffffa){const _0x265587=_0x53b42f;var _0x5501c6,_0x2fc012,_0x12c7d8,_0x4a8043;const _0x4fdafa=_0xffffa[_0x265587(0x169)],_0xbbbe93=JSON[_0x265587(0x4b2)](_0x4fdafa);switch(_0xbbbe93['cmd']){case b[_0x265587(0x33f)]:case b['HELLO']:{const _0x5f1534=_0xbbbe93[_0x265587(0x35d)];return{..._0xbbbe93,'data':_0x5f1534,'cmd':_0xbbbe93[_0x265587(0x242)]};}case b[_0x265587(0x442)]:{const _0x7e11d1=_0xbbbe93[_0x265587(0x1ed)];return{..._0xbbbe93,'data':_0x7e11d1,'cmd':_0xbbbe93[_0x265587(0x242)]};}case b['RECV']:{const _0x1fb352=_0xbbbe93[_0x265587(0x307)];switch(_0x1fb352['eventID']){case u['CollaborationEvent'][_0x265587(0x4ce)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x5501c6=_0x1fb352[_0x265587(0x4d1)])==null?void 0x0:_0x5501c6['cs']},'cmd':_0xbbbe93['cmd']};case u[_0x265587(0x3fe)]['CHANGESET_ACK']:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x2fc012=_0x1fb352[_0x265587(0x385)])==null?void 0x0:_0x2fc012['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x463)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x12c7d8=_0x1fb352[_0x265587(0x327)])==null?void 0x0:_0x12c7d8['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x2d1)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x4a8043=_0x1fb352[_0x265587(0x32f)])==null?void 0x0:_0x4a8043['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x4e1)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['updateCursorEvent']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u['CollaborationEvent'][_0x265587(0x3cb)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352[_0x265587(0x3e9)]},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x177)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['leaveEvent']},'cmd':_0xbbbe93['cmd']};case u['CollaborationEvent'][_0x265587(0x450)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['liveShareNewHost']},'cmd':_0xbbbe93['cmd']};case u[_0x265587(0x3fe)]['LIVESHARE_FETCH_OPERATIONS']:case u[_0x265587(0x3fe)][_0x265587(0x329)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['liveShareOperation']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x1ce)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352[_0x265587(0x285)]},'cmd':_0xbbbe93[_0x265587(0x242)]};case u['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0xbbbe93,'data':_0x1fb352,'cmd':_0xbbbe93[_0x265587(0x242)]};default:return _0xbbbe93;}}default:return _0xbbbe93;}}function It(_0x12f1c6){const _0x301769=_0x53b42f;switch(_0x12f1c6['cmd']){case b[_0x301769(0x33f)]:case b['HELLO']:return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)]});case b[_0x301769(0x292)]:{let _0x3aa62f;switch(_0x12f1c6[_0x301769(0x169)][_0x301769(0x428)]){case u['CollaborationEvent'][_0x301769(0x4e1)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x4e1)],'updateCursorEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u['CollaborationEvent'][_0x301769(0x177)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x177)],'leaveEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)]['USERS_ENTER']:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x3cb)],'joinEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x450)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x450)],'liveShareNewHost':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u['CollaborationEvent'][_0x301769(0x329)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x329)],'liveShareOperation':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x1ce)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x12f1c6['data'][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x27b)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x27b)],'liveShareRequestHost':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x499)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x499)]};break;}default:_0x3aa62f={'eventID':_0x12f1c6['data'][_0x301769(0x428)]};}return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)],'collaMsg':_0x3aa62f});}case b[_0x301769(0x442)]:return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)],'joinReq':_0x12f1c6[_0x301769(0x169)]});case b['LEAVE']:return JSON['stringify']({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6['routeKey'],'leaveReq':_0x12f1c6['data']});default:throw new Error(_0x301769(0x4e0));}}var ts=Object[_0x53b42f(0x38a)],ss=Object[_0x53b42f(0x2a8)],is=(_0x35e54c,_0x5d9009,_0x3702d7,_0x23840f)=>{const _0x115fc1=_0x53b42f;for(var _0x24ecb1=_0x23840f>0x1?void 0x0:_0x23840f?ss(_0x5d9009,_0x3702d7):_0x5d9009,_0x11eed9=_0x35e54c[_0x115fc1(0x419)]-0x1,_0x5226b3;_0x11eed9>=0x0;_0x11eed9--)(_0x5226b3=_0x35e54c[_0x11eed9])&&(_0x24ecb1=(_0x23840f?_0x5226b3(_0x5d9009,_0x3702d7,_0x24ecb1):_0x5226b3(_0x24ecb1))||_0x24ecb1);return _0x23840f&&_0x24ecb1&&ts(_0x5d9009,_0x3702d7,_0x24ecb1),_0x24ecb1;},te=(_0x18a0a0,_0x32ff1e)=>(_0x2632a8,_0x4aeedc)=>_0x32ff1e(_0x2632a8,_0x4aeedc,_0x18a0a0);const Be=h['createIdentifier'](_0x53b42f(0x3f9));function ns(_0x2f74f1,_0x1b4a14,_0x29db64){const _0x3dd3e6=_0x53b42f;return _0x2f74f1+'/'+_0x1b4a14+_0x3dd3e6(0x254)+_0x29db64+_0x3dd3e6(0x208);}exports[_0x53b42f(0x236)]=class{constructor(_0x2825e5,_0x215126,_0x21fee6,_0x55b26a,_0x12a2fe){const _0x261a61=_0x53b42f;this[_0x261a61(0x280)]=_0x2825e5,this[_0x261a61(0x3f2)]=_0x215126,this[_0x261a61(0x2a6)]=_0x21fee6,this[_0x261a61(0x42f)]=_0x55b26a,this[_0x261a61(0x3e0)]=_0x12a2fe;}[_0x53b42f(0x39f)](_0x58e1d4){const _0x43d24d=_0x53b42f,_0x489313=this[_0x43d24d(0x3f2)][_0x43d24d(0x39f)](_0x58e1d4);if(!_0x489313)throw new Error(_0x43d24d(0x1d4));const _0x330e71=new a[(_0x43d24d(0x4a8))](),_0x2b4ab1=new g[(_0x43d24d(0x298))]();_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](_0x489313[_0x43d24d(0x24c)][_0x43d24d(0x492)](_0xa11b65=>_0x2b4ab1['next'](_0xa11b65)))),_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](()=>_0x2b4ab1[_0x43d24d(0x146)]()));const _0x23d5c9=new g[(_0x43d24d(0x298))]();_0x330e71['add'](a['toDisposable'](_0x489313[_0x43d24d(0x3ed)][_0x43d24d(0x492)](_0x350584=>_0x23d5c9[_0x43d24d(0x414)](_0x350584)))),_0x330e71['add'](a[_0x43d24d(0x1bb)](()=>_0x23d5c9[_0x43d24d(0x146)]()));const _0xd40ff9=new g['Subject']();_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](_0x489313[_0x43d24d(0x42e)][_0x43d24d(0x492)](_0x107d7a=>{const _0x40ae9a=_0x43d24d,_0xb39a1d=mt(_0x107d7a);_0xd40ff9[_0x40ae9a(0x414)](_0xb39a1d);}))),_0x330e71[_0x43d24d(0x1e5)](a['toDisposable'](()=>_0xd40ff9[_0x43d24d(0x146)]()));const _0x3ff207=()=>{const _0x67b5a3=_0x43d24d;_0x23d5c9[_0x67b5a3(0x414)](new Event(_0x67b5a3(0x13e))),_0x2b4ab1['next'](new CloseEvent(_0x67b5a3(0x13e))),_0x149c53[_0x67b5a3(0x2ab)]();},_0x149c53={'memberID':'','close$':_0x2b4ab1['asObservable'](),'error$':_0x23d5c9['asObservable'](),'open$':_0x489313[_0x43d24d(0x13f)],'message$':_0xd40ff9[_0x43d24d(0x1d6)](),'send':_0xa45afc=>{const _0x7701af=_0x43d24d;if(_0xa45afc['cmd']===b[_0x7701af(0x292)]){if(_0xa45afc[_0x7701af(0x169)][_0x7701af(0x428)]===u['CollaborationEvent'][_0x7701af(0x315)]){this[_0x7701af(0x269)](_0x149c53,_0xa45afc['data'])[_0x7701af(0x18d)](_0x103ccb=>{const _0x26ecf7=_0x7701af;this[_0x26ecf7(0x42f)][_0x26ecf7(0x150)](_0x103ccb),_0x3ff207();});return;}if(_0xa45afc[_0x7701af(0x169)][_0x7701af(0x428)]===u[_0x7701af(0x3fe)][_0x7701af(0x2c9)]){const _0x27ed59=_0xa45afc['data'];this[_0x7701af(0x281)](_0x27ed59)[_0x7701af(0x3ab)](_0x52caaa=>{const _0x547df1=_0x7701af;_0xd40ff9[_0x547df1(0x414)]({'cmd':b['RECV'],'code':ke['OK'],'routeKey':_0x27ed59['data'][_0x547df1(0x348)],'routeType':'','data':{'eventID':u[_0x547df1(0x3fe)][_0x547df1(0x2ee)],'data':{'changesets':_0x52caaa}}});})[_0x7701af(0x18d)](_0x48fc3a=>{this['_logService']['error'](_0x48fc3a),_0x3ff207();});return;}}_0x489313[_0x7701af(0x279)](It(_0xa45afc));},'close':()=>{const _0x418716=_0x43d24d;_0x489313['close'](),_0x330e71[_0x418716(0x4df)]();}};return _0x149c53;}async[_0x53b42f(0x269)](_0x34b632,_0x4891e2){const _0x54510f=_0x53b42f;var _0x569b46;const {unitType:_0xcb2cbb,unitID:_0x4768dd,changeset:_0x184f90}=_0x4891e2['data'],_0x2ded46={'unitID':_0x4768dd,'memberID':_0x34b632[_0x54510f(0x328)],'type':_0xcb2cbb,'changeset':u[_0x54510f(0x308)](_0x184f90)},_0x3f6bdd=ns((_0x569b46=this[_0x54510f(0x2a6)][_0x54510f(0x1d8)](vt))!=null?_0x569b46:qt,_0xcb2cbb,_0x4768dd);try{await this[_0x54510f(0x280)]['post'](_0x3f6bdd,{'body':_0x2ded46});}catch(_0x2ac425){throw this[_0x54510f(0x42f)][_0x54510f(0x150)](_0x54510f(0x29b),_0x54510f(0x275)),_0x2ac425;}}async[_0x53b42f(0x281)](_0x32e552){const _0x97773c=_0x53b42f,{unitID:_0x3ba00f,from:_0x5ad2e4,to:_0x465023,unitType:_0x3208b8}=_0x32e552[_0x97773c(0x169)];return(await this[_0x97773c(0x3e0)][_0x97773c(0x25e)]({'metadata':void 0x0},{'unitID':_0x3ba00f,'type':_0x3208b8,'from':_0x5ad2e4,'to':_0x465023}))[_0x97773c(0x3d8)];}},exports[_0x53b42f(0x236)]=is([te(0x0,h['Inject'](P[_0x53b42f(0x452)])),te(0x1,h[_0x53b42f(0x295)](P[_0x53b42f(0x1c0)])),te(0x2,a['IConfigService']),te(0x3,a[_0x53b42f(0x4c8)]),te(0x4,a[_0x53b42f(0x174)])],exports[_0x53b42f(0x236)]);var rs=Object[_0x53b42f(0x38a)],os=Object[_0x53b42f(0x2a8)],pt=(_0x16b98d,_0x24b8f0,_0x5d2a79,_0x4322d4)=>{const _0x32082d=_0x53b42f;for(var _0x124a06=_0x4322d4>0x1?void 0x0:_0x4322d4?os(_0x24b8f0,_0x5d2a79):_0x24b8f0,_0x1f5b39=_0x16b98d[_0x32082d(0x419)]-0x1,_0x14de47;_0x1f5b39>=0x0;_0x1f5b39--)(_0x14de47=_0x16b98d[_0x1f5b39])&&(_0x124a06=(_0x4322d4?_0x14de47(_0x24b8f0,_0x5d2a79,_0x124a06):_0x14de47(_0x124a06))||_0x124a06);return _0x4322d4&&_0x124a06&&rs(_0x24b8f0,_0x5d2a79,_0x124a06),_0x124a06;},U=(_0x38ce21,_0x507022)=>(_0xe48096,_0x4b2ee5)=>_0x507022(_0xe48096,_0x4b2ee5,_0x38ce21),W=(_0x4e8c97=>(_0x4e8c97[_0x4e8c97[_0x53b42f(0x49f)]=0x0]=_0x53b42f(0x49f),_0x4e8c97[_0x4e8c97[_0x53b42f(0x2cc)]=0x1]=_0x53b42f(0x2cc),_0x4e8c97[_0x4e8c97[_0x53b42f(0x1b4)]=0x2]=_0x53b42f(0x1b4),_0x4e8c97[_0x4e8c97[_0x53b42f(0x4c3)]=0x3]=_0x53b42f(0x4c3),_0x4e8c97))(W||{});exports['CollaborationSession']=class extends a[_0x53b42f(0x3a5)]{constructor(_0x4c26ec,_0x420a62,_0x516747,_0x5c5c0c,_0x2468ed,_0x38c96e,_0xb94b2f,_0x35a6b9){const _0x324ceb=_0x53b42f;super(),d(this,'_sessionStatus$',new g[(_0x324ceb(0x28a))](0x0)),d(this,_0x324ceb(0x222),this[_0x324ceb(0x4bc)][_0x324ceb(0x1d6)]()),d(this,'_event$',new g[(_0x324ceb(0x298))]()),d(this,_0x324ceb(0x255),this[_0x324ceb(0x3b0)]['asObservable']()),d(this,'_socket'),d(this,_0x324ceb(0x1d5)),d(this,_0x324ceb(0x3b3)),(this[_0x324ceb(0x39d)]=_0x4c26ec,this['_logService']=_0x516747,this['_beforeCloseService']=_0x5c5c0c,this[_0x324ceb(0x23f)]=_0x2468ed,this['_configService']=_0x38c96e,this[_0x324ceb(0x2bd)]=_0xb94b2f,this[_0x324ceb(0x4ae)]=_0x35a6b9,_0x420a62[_0x324ceb(0x454)](T[_0x324ceb(0x436)](this[_0x324ceb(0x35f)]))['subscribe'](_0x6aa2ef=>{const _0x590c52=_0x324ceb;var _0x4233f7;typeof _0x6aa2ef>'u'||(this[_0x590c52(0x187)]=_0x6aa2ef,_0x6aa2ef?(this[_0x590c52(0x20e)](_0x6aa2ef),this[_0x590c52(0x1d5)]=this['_socket'][_0x590c52(0x42e)][_0x590c52(0x492)](_0x14f877=>{const _0x224cd4=_0x590c52;_0x14f877[_0x224cd4(0x31e)]===this[_0x224cd4(0x39d)]&&this['_onCombEvent'](_0x14f877);})):(this[_0x590c52(0x4bc)]['next'](0x2),(_0x4233f7=this[_0x590c52(0x1d5)])==null||_0x4233f7['unsubscribe'](),this[_0x590c52(0x1d5)]=null));}),this[_0x324ceb(0x1e9)](this[_0x324ceb(0x26f)][_0x324ceb(0x30e)](()=>{const _0x214367=_0x324ceb;var _0xc3cc20;(_0xc3cc20=this[_0x214367(0x187)])==null||_0xc3cc20[_0x214367(0x279)]({'cmd':b[_0x214367(0x4e4)],'data':{'roomID':this[_0x214367(0x39d)]}});})));}get['sessionStatus'](){const _0x57f242=_0x53b42f;return this[_0x57f242(0x4bc)][_0x57f242(0x47e)]();}['getMemberID'](){const _0x134189=_0x53b42f;var _0x4a92b5,_0x27d8b4;return(_0x27d8b4=(_0x4a92b5=this[_0x134189(0x187)])==null?void 0x0:_0x4a92b5['memberID'])!=null?_0x27d8b4:null;}[_0x53b42f(0x4df)](){const _0x39e611=_0x53b42f;super[_0x39e611(0x4df)](),this[_0x39e611(0x35f)]['next'](),this[_0x39e611(0x35f)][_0x39e611(0x146)]();}[_0x53b42f(0x31c)](_0x2af6f6){const _0x2d253b=_0x53b42f;_0x2af6f6[_0x2d253b(0x242)]===b[_0x2d253b(0x442)]?this[_0x2d253b(0x4d0)](_0x2af6f6):_0x2af6f6[_0x2d253b(0x242)]===b[_0x2d253b(0x4c4)]&&this[_0x2d253b(0x30b)](_0x2af6f6);}[_0x53b42f(0x20e)](_0x23e432){const _0x588659=_0x53b42f;this[_0x588659(0x4bc)][_0x588659(0x414)](0x1),_0x23e432['send']({'cmd':b[_0x588659(0x442)],'routeKey':this[_0x588659(0x39d)],'routeType':'','data':{'rooms':[{'roomID':this[_0x588659(0x39d)]}]}});}[_0x53b42f(0x4d0)](_0x59c460){const _0xf908b0=_0x53b42f;var _0x913316;if(_0x59c460[_0xf908b0(0x486)]===ke['FAIL']){this[_0xf908b0(0x23f)][_0xf908b0(0x138)]({'type':oe[_0xf908b0(0x3c9)][_0xf908b0(0x376)],'content':this[_0xf908b0(0x2bd)]['t']('session.room-full')}),this[_0xf908b0(0x4bc)][_0xf908b0(0x414)](0x2);return;}this[_0xf908b0(0x4bc)][_0xf908b0(0x414)](0x3);const _0x24be44=(_0x913316=_0x59c460[_0xf908b0(0x169)][_0xf908b0(0x268)][this[_0xf908b0(0x39d)]])==null?void 0x0:_0x913316['members'];_0x24be44&&_0x24be44[_0xf908b0(0x421)](_0x2d89cd=>this['_memberService'][_0xf908b0(0x4ad)](this[_0xf908b0(0x39d)],_0x2d89cd));}[_0x53b42f(0x30b)](_0x2ae5ea){const _0x42e6d8=_0x53b42f;try{const _0x650119=_0x2ae5ea[_0x42e6d8(0x169)];switch(_0x650119[_0x42e6d8(0x428)]){case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x3cb)]:this[_0x42e6d8(0x154)](_0x650119),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x177)]:this[_0x42e6d8(0x173)](_0x650119),this['_event$'][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x45a)]:this['_clearCollaborationTimeoutTimer'](),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x190)]:this['_logService'][_0x42e6d8(0x150)](_0x42e6d8(0x4cd)+JSON[_0x42e6d8(0x339)](_0x650119)),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;default:this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);}}catch(_0x60c2ff){this[_0x42e6d8(0x42f)][_0x42e6d8(0x150)](_0x60c2ff,_0x2ae5ea);}}['_onUserJoin'](_0x3ebc9f){const _0x3a91a7=_0x53b42f;this[_0x3a91a7(0x4ae)]['updateMember'](this[_0x3a91a7(0x39d)],_0x3ebc9f[_0x3a91a7(0x169)]);}[_0x53b42f(0x173)](_0x471a4c){const _0x3d7e20=_0x53b42f;this[_0x3d7e20(0x4ae)]['removeMember'](this[_0x3d7e20(0x39d)],_0x471a4c['data'][_0x3d7e20(0x328)]);}async[_0x53b42f(0x279)](_0x37a3f3,_0x49689d){const _0xce3d39=_0x53b42f;if(this[_0xce3d39(0x201)]!==0x3||!this['_socket'])throw new Error(_0xce3d39(0x1a6));try{_0x37a3f3[_0xce3d39(0x428)]===u['CollaborationEvent'][_0xce3d39(0x463)]&&this[_0xce3d39(0x290)](),this[_0xce3d39(0x187)]['send']({'cmd':b[_0xce3d39(0x292)],'routeKey':_0x49689d,'routeType':'','data':_0x37a3f3});}catch(_0x351f53){this[_0xce3d39(0x42f)][_0xce3d39(0x150)](_0x351f53);}}[_0x53b42f(0x290)](){const _0x54c7eb=_0x53b42f;var _0x1f3b82;this['_collaborationTimeoutTimer']=window[_0x54c7eb(0x373)](()=>{const _0x31c295=_0x54c7eb;this[_0x31c295(0x3b3)]=null,this['_messageService']['show']({'type':oe[_0x31c295(0x3c9)][_0x31c295(0x23a)],'content':this[_0x31c295(0x2bd)]['t'](_0x31c295(0x342))});},(_0x1f3b82=this[_0x54c7eb(0x2a6)][_0x54c7eb(0x1d8)](xe))!=null?_0x1f3b82:dt);}[_0x53b42f(0x3d1)](){const _0x210069=_0x53b42f;this[_0x210069(0x3b3)]&&(clearTimeout(this[_0x210069(0x3b3)]),this[_0x210069(0x3b3)]=null);}},exports[_0x53b42f(0x4b9)]=pt([U(0x2,a[_0x53b42f(0x4c8)]),U(0x3,N[_0x53b42f(0x34d)]),U(0x4,N[_0x53b42f(0x288)]),U(0x5,a[_0x53b42f(0x4a2)]),U(0x6,h['Inject'](a['LocaleService'])),U(0x7,h[_0x53b42f(0x295)](G))],exports[_0x53b42f(0x4b9)]),exports['CollaborationSessionService']=class extends a[_0x53b42f(0x18e)]{constructor(_0x4eaa85,_0x345e4d,_0x5aee16,_0x3860c6,_0x67cf99,_0x1b598b){const _0x40f657=_0x53b42f;super(),d(this,_0x40f657(0x42b),new g[(_0x40f657(0x28a))](void 0x0)),d(this,_0x40f657(0x1aa),new Map()),d(this,_0x40f657(0x41b),new g[(_0x40f657(0x28a))](0x0)),d(this,_0x40f657(0x183),this['_status$'][_0x40f657(0x1d6)]()),d(this,_0x40f657(0x2bf),!0x1),d(this,_0x40f657(0x241)),d(this,'_timeoutTimer'),d(this,_0x40f657(0x1f2)),d(this,'_retryCount',0x0),(this['_injector']=_0x4eaa85,this[_0x40f657(0x2bd)]=_0x345e4d,this['_messageService']=_0x5aee16,this['_logService']=_0x3860c6,this[_0x40f657(0x2a6)]=_0x67cf99,this[_0x40f657(0x1db)]=_0x1b598b);}get[_0x53b42f(0x187)](){const _0x4338bb=_0x53b42f;return this['_socket$'][_0x4338bb(0x47e)]();}[_0x53b42f(0x4df)](){const _0x37715f=_0x53b42f;super[_0x37715f(0x4df)](),this[_0x37715f(0x1aa)][_0x37715f(0x421)](_0x30fdad=>_0x30fdad[_0x37715f(0x4df)]()),this[_0x37715f(0x1aa)]['clear'](),this[_0x37715f(0x41b)][_0x37715f(0x146)]();}async['requireSession'](_0x1c1ef6){const _0x159203=_0x53b42f;if(this['_sessions'][_0x159203(0x378)](_0x1c1ef6))return this['_sessions'][_0x159203(0x3d4)](_0x1c1ef6);this['_tryEnsureSocket']();const _0x37ed7a=this[_0x159203(0x45d)]['createInstance'](exports[_0x159203(0x4b9)],_0x1c1ef6,this[_0x159203(0x42b)]['asObservable']());return this[_0x159203(0x1aa)]['set'](_0x1c1ef6,_0x37ed7a),_0x37ed7a;}[_0x53b42f(0x1ad)](){const _0x26316e=_0x53b42f;var _0x4174a3;const _0x524ede=(_0x4174a3=this[_0x26316e(0x2a6)]['getConfig'](_t))!=null?_0x4174a3:Ft;return this[_0x26316e(0x1db)][_0x26316e(0x39f)](_0x524ede);}[_0x53b42f(0x2df)](){const _0x56f251=_0x53b42f;try{const _0xae709b=this[_0x56f251(0x1ad)]();if(_0xae709b){const _0xd8b9a=_0xae709b['send'];_0xae709b['send']=_0x14d170=>(this[_0x56f251(0x29f)](),_0xd8b9a['apply'](_0xae709b,[_0x14d170])),_0xae709b['message$']['subscribe'](_0x48aa80=>this['_onMessage'](_0xae709b,_0x48aa80)),_0xae709b[_0x56f251(0x3ed)][_0x56f251(0x454)](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](_0x3946c8=>this['_logService'][_0x56f251(0x150)](_0x56f251(0x4da),_0x3946c8)),_0xae709b['open$']['pipe'](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](()=>{const _0x32f0ab=_0x56f251;this[_0x32f0ab(0x29a)](_0xae709b);}),_0xae709b[_0x56f251(0x24c)][_0x56f251(0x454)](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](_0x2c5281=>{const _0x495f3a=_0x56f251;this['_logService'][_0x495f3a(0x240)]('[CollaborationSessionService]',_0x495f3a(0x45b),_0x2c5281),this[_0x495f3a(0x19c)]();});}}catch(_0x11ecfb){this['_logService']['error'](_0x11ecfb),this[_0x56f251(0x19c)]();}}['_onConnectionOpen'](_0x111f14){const _0x3e28c6=_0x53b42f;this[_0x3e28c6(0x42f)][_0x3e28c6(0x240)](_0x3e28c6(0x422),_0x3e28c6(0x267)),_0x111f14['send']({'cmd':b[_0x3e28c6(0x3e6)]}),this[_0x3e28c6(0x29f)]();}['_onConnectionFailed'](){const _0x243a63=_0x53b42f;var _0xbc81c7;this['_status$'][_0x243a63(0x414)](0x2),this[_0x243a63(0x42b)][_0x243a63(0x414)](null),this[_0x243a63(0x2a2)](),this[_0x243a63(0x2be)](),this['_socketReady']=!0x1,this[_0x243a63(0x196)]<((_0xbc81c7=this[_0x243a63(0x2a6)][_0x243a63(0x1d8)](Yt))!=null?_0xbc81c7:Kt)?(this[_0x243a63(0x2f7)](this[_0x243a63(0x196)]),this[_0x243a63(0x196)]+=0x1):this[_0x243a63(0x23f)][_0x243a63(0x138)]({'type':oe['MessageType'][_0x243a63(0x23a)],'content':this[_0x243a63(0x2bd)]['t'](_0x243a63(0x21f))});}[_0x53b42f(0x2f7)](_0x1e9a1f){const _0x221ef2=_0x53b42f;var _0x1bc02f;const _0x4d03ce=((_0x1bc02f=this[_0x221ef2(0x2a6)][_0x221ef2(0x1d8)](Wt))!=null?_0x1bc02f:Gt)*0x2**_0x1e9a1f;this['_messageService']['show']({'type':oe['MessageType'][_0x221ef2(0x376)],'content':this[_0x221ef2(0x2bd)]['t'](_0x221ef2(0x304))}),this[_0x221ef2(0x1f2)]=setTimeout(()=>{const _0x55ec59=_0x221ef2;this[_0x55ec59(0x2df)](),clearTimeout(this[_0x55ec59(0x1f2)]),this[_0x55ec59(0x1f2)]=null;},_0x4d03ce);}[_0x53b42f(0x29f)](){const _0x309368=_0x53b42f;var _0x387ffb;this[_0x309368(0x2be)](),this[_0x309368(0x241)]=setTimeout(()=>this[_0x309368(0x172)](),(_0x387ffb=this[_0x309368(0x2a6)]['getConfig'](ut))!=null?_0x387ffb:Vt);}[_0x53b42f(0x172)](){const _0x89c9d8=_0x53b42f;this[_0x89c9d8(0x187)]['send']({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x53b42f(0x479)](){const _0x15f63d=_0x53b42f;var _0x5dc0be;this[_0x15f63d(0x1cc)]=setTimeout(()=>this[_0x15f63d(0x19c)](),(_0x5dc0be=this[_0x15f63d(0x2a6)]['getConfig'](xe))!=null?_0x5dc0be:dt);}[_0x53b42f(0x409)](_0x3029cb,_0x495dc4){const _0x26c3ed=_0x53b42f,{cmd:_0xd249be}=_0x495dc4;_0xd249be===b['HELLO']&&!this[_0x26c3ed(0x2bf)]&&(_0x3029cb[_0x26c3ed(0x328)]=_0x495dc4[_0x26c3ed(0x169)][_0x26c3ed(0x328)],this[_0x26c3ed(0x42b)][_0x26c3ed(0x414)](_0x3029cb),this[_0x26c3ed(0x41b)][_0x26c3ed(0x414)](0x3),this['_socketReady']=!0x0),_0xd249be===b[_0x26c3ed(0x33f)]&&this[_0x26c3ed(0x2a2)](),this[_0x26c3ed(0x29f)]();}[_0x53b42f(0x2be)](){const _0x20988d=_0x53b42f;this[_0x20988d(0x241)]!=null&&(clearTimeout(this[_0x20988d(0x241)]),this[_0x20988d(0x241)]=null);}[_0x53b42f(0x2a2)](){const _0x2ae5bb=_0x53b42f;this[_0x2ae5bb(0x1cc)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x2ae5bb(0x1cc)]=null);}},exports[_0x53b42f(0x14a)]=pt([U(0x0,h['Inject'](h[_0x53b42f(0x1ac)])),U(0x1,h[_0x53b42f(0x295)](a['LocaleService'])),U(0x2,N[_0x53b42f(0x288)]),U(0x3,a['ILogService']),U(0x4,a[_0x53b42f(0x4a2)]),U(0x5,Be)],exports['CollaborationSessionService']);var as=Object[_0x53b42f(0x38a)],cs=Object[_0x53b42f(0x2a8)],ls=(_0x575b20,_0x488042,_0x442f28,_0x19d784)=>{const _0x3ec1f4=_0x53b42f;for(var _0x404fa5=_0x19d784>0x1?void 0x0:_0x19d784?cs(_0x488042,_0x442f28):_0x488042,_0x437f06=_0x575b20[_0x3ec1f4(0x419)]-0x1,_0x539356;_0x437f06>=0x0;_0x437f06--)(_0x539356=_0x575b20[_0x437f06])&&(_0x404fa5=(_0x19d784?_0x539356(_0x488042,_0x442f28,_0x404fa5):_0x539356(_0x404fa5))||_0x404fa5);return _0x19d784&&_0x404fa5&&as(_0x488042,_0x442f28,_0x404fa5),_0x404fa5;},se=(_0x1b44da,_0x205f11)=>(_0x38f552,_0x5013ae)=>_0x205f11(_0x38f552,_0x5013ae,_0x1b44da);exports[_0x53b42f(0x4b3)]=class extends a[_0x53b42f(0x18e)]{constructor(_0x503b9,_0x132aba,_0x3e43cc,_0x3b592a,_0x4b5970){const _0x2278ac=_0x53b42f;super(),d(this,_0x2278ac(0x305),new Map()),d(this,_0x2278ac(0x3ef),new Map()),d(this,_0x2278ac(0x2e4),!0x1),(this[_0x2278ac(0x2a6)]=_0x503b9,this['_localStorageService']=_0x132aba,this[_0x2278ac(0x26f)]=_0x3e43cc,this['_localeService']=_0x3b592a,this[_0x2278ac(0x311)]=_0x4b5970,this['_setupBeforeClosingHandler']());}[_0x53b42f(0x3be)](){const _0x2a9cea=_0x53b42f;this[_0x2a9cea(0x2e4)]=!0x0;}[_0x53b42f(0x3bc)](){const _0x551b6d=_0x53b42f;this[_0x551b6d(0x2e4)]=!0x1;}['dispose'](){const _0x37cd8a=_0x53b42f;this['_exhaustSavingTask']()[_0x37cd8a(0x3ab)](()=>super['dispose']());}async['loadOfflineData'](_0x33a6f9){const _0x5ae105=_0x53b42f;return this[_0x5ae105(0x2e4)]?null:this['_localStorageService'][_0x5ae105(0x49e)](Xe(_0x33a6f9));}async[_0x53b42f(0x345)](_0x561d58,_0x3e86fe){const _0x24fbaa=_0x53b42f;return!!this[_0x24fbaa(0x15b)][_0x24fbaa(0x441)](_0x561d58,_0x3e86fe);}[_0x53b42f(0x319)](_0x3fa2da,_0x44d9d1,_0x4b0843,_0x21b8b3){const _0x2c7b74=_0x53b42f,_0xc90134=this[_0x2c7b74(0x311)][_0x2c7b74(0x2af)](_0x3fa2da);this['_cachedData']['set'](_0x3fa2da,{'unitID':_0x3fa2da,'type':_0x44d9d1,'awaitingChangeset':_0x4b0843,'mutations':_0x21b8b3,'rev':_0xc90134}),this[_0x2c7b74(0x3ef)][_0x2c7b74(0x378)](_0x3fa2da)||this[_0x2c7b74(0x22c)](_0x3fa2da);}['_scheduleSaving'](_0x5c4c65){const _0x3ea760=_0x53b42f,_0x496d1e=this[_0x3ea760(0x2d7)]();_0x496d1e===0x0?this[_0x3ea760(0x27e)](_0x5c4c65):this[_0x3ea760(0x3ef)][_0x3ea760(0x2e0)](_0x5c4c65,setTimeout(()=>this[_0x3ea760(0x27e)](_0x5c4c65),_0x496d1e));}[_0x53b42f(0x2d7)](){const _0x3fa9ed=_0x53b42f;var _0x4a4c25;return(_0x4a4c25=this[_0x3fa9ed(0x2a6)][_0x3fa9ed(0x1d8)](St))!=null?_0x4a4c25:Xt;}['_saveCache'](_0x2f70de){const _0x322c45=_0x53b42f,_0x349ad3=this[_0x322c45(0x3ef)][_0x322c45(0x3d4)](_0x2f70de);return _0x349ad3!==void 0x0&&window[_0x322c45(0x4c0)](_0x349ad3),this[_0x322c45(0x15b)][_0x322c45(0x441)](Xe(_0x2f70de),this[_0x322c45(0x305)][_0x322c45(0x3d4)](_0x2f70de))[_0x322c45(0x3ab)](()=>this[_0x322c45(0x3ef)]['delete'](_0x2f70de));}async['_exhaustSavingTask'](){const _0x1dc040=_0x53b42f,_0x23f10e=[];this[_0x1dc040(0x3ef)]['forEach']((_0x201814,_0x2566cc)=>{const _0x2a9168=_0x1dc040;window[_0x2a9168(0x4c0)](_0x201814),_0x23f10e[_0x2a9168(0x1d7)](this[_0x2a9168(0x27e)](_0x2566cc)[_0x2a9168(0x3ab)](()=>{const _0x4bd562=_0x2a9168;this[_0x4bd562(0x3ef)][_0x4bd562(0x35b)](_0x2566cc);}));}),await Promise['all'](_0x23f10e);}[_0x53b42f(0x3e5)](){const _0x9159f6=_0x53b42f;this[_0x9159f6(0x1e9)](this[_0x9159f6(0x26f)][_0x9159f6(0x36b)](()=>{const _0xab856c=_0x9159f6;if(this['_saveTaskMap'][_0xab856c(0x22a)])return this['_localeService']['t'](_0xab856c(0x36c));}));}},exports['LocalCacheService']=ls([se(0x0,a['IConfigService']),se(0x1,a[_0x53b42f(0x2d8)]),se(0x2,N[_0x53b42f(0x34d)]),se(0x3,h['Inject'](a[_0x53b42f(0x1ba)])),se(0x4,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)]))],exports[_0x53b42f(0x4b3)]);function Xe(_0x34beaf){return'unit-cache-'+_0x34beaf;}const pe=h[_0x53b42f(0x195)](_0x53b42f(0x352));var Et=(_0x15c32c=>(_0x15c32c[_0x15c32c[_0x53b42f(0x2eb)]=0x0]=_0x53b42f(0x2eb),_0x15c32c[_0x15c32c[_0x53b42f(0x34a)]=0x1]=_0x53b42f(0x34a),_0x15c32c))(Et||{});const qe=0x7530,ze=_0x53b42f(0x284);class hs extends a[_0x53b42f(0x18e)]{constructor(){const _0x585a7b=_0x53b42f;super(),d(this,_0x585a7b(0x313),a[_0x585a7b(0x3a8)][_0x585a7b(0x1f7)]()),d(this,_0x585a7b(0x431),new Set()),d(this,_0x585a7b(0x4d5),new Map()),d(this,_0x585a7b(0x1fc),null),d(this,_0x585a7b(0x387),new Map()),d(this,_0x585a7b(0x47d),new Map()),this[_0x585a7b(0x243)]();}[_0x53b42f(0x4df)](){const _0x234639=_0x53b42f;super[_0x234639(0x4df)](),this[_0x234639(0x387)][_0x234639(0x421)]((_0x43ff4b,_0x2db898)=>this[_0x234639(0x480)](_0x2db898)),this['_heartbeatTimer']&&window[_0x234639(0x4be)](this['_heartbeatTimer']);}[_0x53b42f(0x37c)](_0x3c573a){const _0x54af6b=_0x53b42f;return this[_0x54af6b(0x451)](_0x3c573a)[_0x54af6b(0x454)](g[_0x54af6b(0x4dc)]());}['editingUnit'](_0x3b2339){const _0x281bce=_0x53b42f;this[_0x281bce(0x431)][_0x281bce(0x22a)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x281bce(0x1e5)](_0x3b2339),this[_0x281bce(0x1f8)]({'type':0x0,'memberID':this[_0x281bce(0x313)],'unitIDs':[_0x3b2339],'isForwarded':!0x1});}[_0x53b42f(0x33c)](_0x595e67){const _0x447920=_0x53b42f;this['_selfUnitIDs'][_0x447920(0x35b)](_0x595e67),this['_selfUnitIDs'][_0x447920(0x22a)]===0x0&&this[_0x447920(0x1fc)]&&window[_0x447920(0x4be)](this[_0x447920(0x1fc)]);}['_init'](){const _0x4fdb16=_0x53b42f;this['disposeWithMe'](a[_0x4fdb16(0x1bb)](g[_0x4fdb16(0x474)](window,_0x4fdb16(0x2a4))[_0x4fdb16(0x492)](_0x49ad76=>{const _0x4d00a4=_0x4fdb16;if(_0x49ad76[_0x4d00a4(0x4bd)]!==ze||!_0x49ad76[_0x4d00a4(0x163)])return;const _0x34a3df=JSON[_0x4d00a4(0x4b2)](_0x49ad76[_0x4d00a4(0x163)]);this[_0x4d00a4(0x3db)](_0x34a3df);}))),window[_0x4fdb16(0x158)](_0x4fdb16(0x2e6),()=>this[_0x4fdb16(0x1f8)]({'type':0x1,'memberID':this[_0x4fdb16(0x313)],'unitIDs':Array['from'](this[_0x4fdb16(0x431)])}));}[_0x53b42f(0x3db)](_0x2a3264){const _0x5bc7ed=_0x53b42f;switch(_0x2a3264[_0x5bc7ed(0x20c)]){case 0x0:this['_handleJoinEvent'](_0x2a3264);break;case 0x1:this[_0x5bc7ed(0x2f9)](_0x2a3264);break;case 0x2:this[_0x5bc7ed(0x191)](_0x2a3264);break;}}['_handleJoinEvent'](_0x3d660b){const _0x348965=_0x53b42f,{unitIDs:_0x412fe5,memberID:_0x1fac15,isForwarded:_0x4a713b}=_0x3d660b;_0x412fe5[_0x348965(0x421)](_0x41742b=>{const _0x3567bb=_0x348965;if(!_0x4a713b&&this[_0x3567bb(0x4d5)][_0x3567bb(0x378)](_0x41742b)&&this[_0x3567bb(0x451)](_0x41742b)[_0x3567bb(0x414)](0x1),!this[_0x3567bb(0x4d5)][_0x3567bb(0x378)](_0x41742b)||!this[_0x3567bb(0x4d5)][_0x3567bb(0x3d4)](_0x41742b)[_0x3567bb(0x378)](_0x1fac15)){const _0x4b9eb2=this['_unitOnClients']['get'](_0x41742b)||new Set();_0x4b9eb2[_0x3567bb(0x1e5)](_0x1fac15),this[_0x3567bb(0x4d5)][_0x3567bb(0x2e0)](_0x41742b,_0x4b9eb2),this[_0x3567bb(0x1cf)](_0x1fac15);}}),_0x4a713b||this[_0x348965(0x1f8)]({'type':0x0,'memberID':this[_0x348965(0x313)],'unitIDs':[...this[_0x348965(0x431)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4825d9){const _0x4fa61d=_0x53b42f;this[_0x4fa61d(0x480)](_0x4825d9);const _0xd4c7ee=window[_0x4fa61d(0x373)](()=>{const _0x32cfe9=_0x4fa61d;this['_unitOnClients'][_0x32cfe9(0x421)](_0x45ec9d=>{const _0x349afe=_0x32cfe9;_0x45ec9d[_0x349afe(0x35b)](_0x4825d9);});},qe*0x2);this[_0x4fa61d(0x387)]['set'](_0x4825d9,_0xd4c7ee);}['_removeClearOtherTimer'](_0x4e8123){const _0x4b4807=_0x53b42f;if(this[_0x4b4807(0x387)][_0x4b4807(0x378)](_0x4e8123)){const _0x13100b=this['_clearOtherTimers']['get'](_0x4e8123);_0x13100b&&window[_0x4b4807(0x4c0)](_0x13100b),this[_0x4b4807(0x387)][_0x4b4807(0x2e0)](_0x4e8123,null);}}['_handleLeaveEvent'](_0x433abd){const _0x32cbba=_0x53b42f,{memberID:_0x36b353,unitIDs:_0x45dbf9}=_0x433abd;_0x45dbf9[_0x32cbba(0x421)](_0x3bae8a=>{const _0x274b91=_0x32cbba;var _0x1936f0;const _0xb0c4a6=this[_0x274b91(0x4d5)]['get'](_0x3bae8a);_0xb0c4a6&&(_0xb0c4a6[_0x274b91(0x35b)](_0x36b353),(_0x1936f0=this[_0x274b91(0x451)](_0x3bae8a))==null||_0x1936f0[_0x274b91(0x414)](_0xb0c4a6['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x36b353);}['_handleHeartbeatEvent'](_0x21216d){const _0xfff94c=_0x53b42f;this[_0xfff94c(0x1cf)](_0x21216d['memberID']);}[_0x53b42f(0x1f8)](_0x2da05f){const _0xc4494d=_0x53b42f;localStorage[_0xc4494d(0x441)](ze,JSON[_0xc4494d(0x339)](_0x2da05f));}[_0x53b42f(0x2b4)](){const _0x14c59f=_0x53b42f;this[_0x14c59f(0x1fc)]=window[_0x14c59f(0x143)](()=>{const _0x20ec31=_0x14c59f;this[_0x20ec31(0x1f8)]({'type':0x2,'memberID':this[_0x20ec31(0x313)]});},qe);}[_0x53b42f(0x451)](_0x40f349){const _0x5393ed=_0x53b42f;return this[_0x5393ed(0x47d)]['has'](_0x40f349)||this['_unitStatus']['set'](_0x40f349,new g[(_0x5393ed(0x28a))](0x0)),this[_0x5393ed(0x47d)]['get'](_0x40f349);}}var _s=Object[_0x53b42f(0x38a)],us=Object[_0x53b42f(0x2a8)],ds=(_0x1f025d,_0x444462,_0x4c03e6,_0xf3b913)=>{const _0x4c90bd=_0x53b42f;for(var _0x3823ea=_0xf3b913>0x1?void 0x0:_0xf3b913?us(_0x444462,_0x4c03e6):_0x444462,_0x2bccea=_0x1f025d[_0x4c90bd(0x419)]-0x1,_0x4b6eab;_0x2bccea>=0x0;_0x2bccea--)(_0x4b6eab=_0x1f025d[_0x2bccea])&&(_0x3823ea=(_0xf3b913?_0x4b6eab(_0x444462,_0x4c03e6,_0x3823ea):_0x4b6eab(_0x3823ea))||_0x3823ea);return _0xf3b913&&_0x3823ea&&_s(_0x444462,_0x4c03e6,_0x3823ea),_0x3823ea;},Je=(_0x5a9006,_0x535fa6)=>(_0x2028c9,_0xdf2bec)=>_0x535fa6(_0x2028c9,_0xdf2bec,_0x5a9006);let ve=class{constructor(_0x209a44,_0x37b7e3){const _0x1fbbb9=_0x53b42f;this[_0x1fbbb9(0x45d)]=_0x209a44,this[_0x1fbbb9(0x2f1)]=_0x37b7e3;}[_0x53b42f(0x3ec)](_0x832f5e){const _0x5d8e9a=_0x53b42f;this[_0x5d8e9a(0x2b1)](_0x832f5e),this[_0x5d8e9a(0x1fa)](_0x832f5e);}[_0x53b42f(0x168)](_0x270f03){const _0xdc3ba6=_0x53b42f,_0x478781=this[_0xdc3ba6(0x45d)][_0xdc3ba6(0x3d4)](M[_0xdc3ba6(0x3fb)]),{redoCache:_0x10052f}=_0x478781[_0xdc3ba6(0x2a1)]();if(_0x10052f[_0xdc3ba6(0x419)]===0x0)return _0x270f03;let _0x19d9f8=a[_0xdc3ba6(0x3a8)][_0xdc3ba6(0x2dc)](_0x270f03['mutations'][0x0]);for(let _0x23d4bf=0x0;_0x23d4bf<_0x10052f['length'];_0x23d4bf++){const _0x32afa4={'id':_0xdc3ba6(0x1a1),'params':{..._0x10052f[_0x23d4bf]}},_0x5ce73c=this[_0xdc3ba6(0x2f1)][_0xdc3ba6(0x412)](_0x19d9f8,_0x32afa4,!0x1);if(u[_0xdc3ba6(0x231)](_0x5ce73c))throw _0x5ce73c[_0xdc3ba6(0x150)];_0x19d9f8=_0x5ce73c[_0xdc3ba6(0x24f)];}return{...a[_0xdc3ba6(0x3a8)][_0xdc3ba6(0x2dc)](_0x270f03),'mutations':[_0x19d9f8]};}['_transformUndoRedoStack'](_0x7689cb){const _0x4d35b2=_0x53b42f,_0x288ca5=this[_0x4d35b2(0x45d)][_0x4d35b2(0x3d4)](M[_0x4d35b2(0x3fb)]),{undoCache:_0xa76a11,redoCache:_0x312624}=_0x288ca5[_0x4d35b2(0x2a1)]();if(_0xa76a11[_0x4d35b2(0x419)]===0x0||_0x312624['length']===0x0)return;const _0x3b8d9f=[],_0x2543d3=[];let _0x3a4b87=a['Tools'][_0x4d35b2(0x2dc)](_0x7689cb['mutations'][0x0]),_0x6ec935=a[_0x4d35b2(0x3a8)][_0x4d35b2(0x2dc)](_0x7689cb['mutations'][0x0]);for(let _0x4361cc=_0xa76a11[_0x4d35b2(0x419)]-0x1;_0x4361cc>=0x0;_0x4361cc--){const _0x109fc9={'id':_0x4d35b2(0x1a1),'params':{..._0xa76a11[_0x4361cc]}},_0x2324db={'id':_0x4d35b2(0x1a1),'params':{..._0x312624[_0x4361cc]}},_0x365503=this[_0x4d35b2(0x2f1)][_0x4d35b2(0x412)](_0x3a4b87,_0x109fc9,!0x1),_0xa1278=this[_0x4d35b2(0x2f1)][_0x4d35b2(0x412)](_0x6ec935,_0x2324db,!0x1);if(u[_0x4d35b2(0x231)](_0x365503))throw _0x365503[_0x4d35b2(0x150)];if(u[_0x4d35b2(0x231)](_0xa1278))throw _0xa1278['error'];_0x3b8d9f[_0x4d35b2(0x3ca)](_0x365503[_0x4d35b2(0x2c7)]['params']),_0x2543d3[_0x4d35b2(0x3ca)](_0xa1278[_0x4d35b2(0x2c7)][_0x4d35b2(0x17b)]),_0x3a4b87=_0x365503['m1Prime'],_0x6ec935=_0xa1278[_0x4d35b2(0x24f)];}_0x288ca5[_0x4d35b2(0x293)]({'undoCache':_0x3b8d9f,'redoCache':_0x2543d3});}[_0x53b42f(0x1fa)](_0x2ac7a5){const _0x41722a=_0x53b42f,_0x6b46df=this[_0x41722a(0x45d)]['get'](M['IMEInputManagerService']),_0x1f2156=_0x6b46df['getActiveRange']();if(_0x1f2156==null)return;const _0x3f2b15=[{'id':_0x41722a(0x1a1),'params':{'unitId':_0x2ac7a5[_0x41722a(0x348)],'actions':null,'textRanges':[_0x1f2156]}}],_0x74530f=this[_0x41722a(0x2f1)][_0x41722a(0x33b)](_0x2ac7a5,_0x3f2b15);if(!u[_0x41722a(0x40a)](_0x74530f))throw _0x74530f['error'];const _0x45749c=_0x74530f['m2Prime'][0x0]['params'][_0x41722a(0x461)];Array[_0x41722a(0x4af)](_0x45749c)&&_0x45749c[_0x41722a(0x419)]&&_0x6b46df['setActiveRange'](_0x45749c[0x0]);}};function _0x3fcd(){const _0x6a7245=['_docSyncEditingCollabCursorService','Optional','forEach','[CollaborationSessionService]','toString','removeParam','SheetSkeletonManagerService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[OfflineState]:\x20received\x20acknowledgement.','eventID','?url=','JSONX','_socket$','SetWorksheetActivateCommand','SNAPSHOT_INVALID_SNAPSHOT','message$','_logService','SEND_CHANGESET_TIMEOUT_KEY','_selfUnitIDs','handleIRemoveRow','init','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_toggleOffline','takeUntil','onRemoteChangeset','transformSelections','[FetchMissState]','fillStyle','onlyLocal','LICENSE_IMPORT_SIZE_EXCEEDED','url(#off-line-single_clip0_910_343)','onCommandExecuted','858810rRjLbv','getRoom','setItem','JOIN','_colorIndex','saveImage','UNKNOWN_CMD','_clearScheduledTask','off-line-single_clip0_910_343','SelectionManagerService','_initStatusListener','\x20-\x20','blue400','SNAPSHOT_URL_KEY','_entityInit$','string','_collabSessionService','LIVESHARE_NEW_HOST','_ensureSubject','HTTPService','serializeTextRange','pipe','_startSheetCollabCursor','deleteCollaborator','className','_acknowledgedAwaitingChangeset','handleDeleteRangeMoveUp','CHANGESET_ACK','socket\x20close','_lockTransition','_injector','interceptor','/universer-api/snapshot/','take','textRanges','name','NEW_CHANGESETS','_transformSelections','LOGIN_URL_KEY','@univerjs/engine-formula','HEARTBEAT_INTERVAL','popstate','loadDoc','AUTHZ_URL_KEY','_transformStack','contains','hovered','APPLY_NON_SEQUENTIAL_REVISION','_sheetSkeletonManagerService','onStarting','Rectangle','extend','bottom','fromEvent','getSheetBySheetId','IURLService','createInstance','range','_waitForHeartbeatResponse','result','_docTransformIMECacheService','_startCollaboration','_unitStatus','getValue','_drawAnchor','_removeClearOtherTimer','_config','editingUnit','getRelativeCoord','_imageSourceCache','BASE64','code','_uiPartsService','584petbQw','_onRemoteRejected','_themeService','ImageUploadStatusType','IUIPartsService','_cursor','_textBubble','state$','path','_collabCursorController','subscribe','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','on-line-single_clip0_910_349','collabCursorState$','_syncEditingCollabCursorService','resend','_getUndoStack','LIVESHARE_FETCH_OPERATIONS','_univerInstanceService','onlineStatusTitle','evenodd','remove','getItem','IDLE','flatMap','IUndoRedoService','IConfigService','patch','xlink:href','IRenderManagerService','_loadSheet','confirm','DisposableCollection','onSendChangeset','_checkMissing','getOwnPropertySymbols','gold400','updateMember','_memberService','isArray','pending','image/jpg','parse','LocalCacheService','listCollaborators','getMember','getTypeOfUnitAdded$','_onCursorUpdate','#fff','CollaborationSession','onMissingChangesets','Vector2','_sessionStatus$','key','clearInterval','_docSkeleton','clearTimeout','editing\x20status\x20changed\x20to','InsertColCommandId','ONLINE','RECV','Univer','RevisionService','DEFAULT_FILE_NAME','ILogService','RemoveColCommandId','_getLoginPath','@univerjs/network','body','save\x20fail\x20reason\x20is\x20','PERMISSION_REJ','_remoteChangesetQueue','_onJoinRoomEvent','permissionRejEvent','resolve','VIEW_MAIN','shareReplay','_unitOnClients','transformUndoRedo','values','ERROR_IMAGE_TYPE','getCollabCursors$','[CollaborationSessionService]:\x20socket\x20error','AWAITING','distinctUntilChanged','COLLAB_WEB_SOCKET_URL','clear','dispose','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','UPDATE_CURSOR','fillRule','startColumn','LEAVE','_online','_hover','c1Prime','href','parseProtocolChangeset','prototype','updateCollaborator','1em','show','collaboration.single-unit.warning','[CollaborationState]:\x20apply\x20error!','OnLifecycle','encodeURIComponent','awaiting','connection\x20error','open$','session','_updateState','UniverInstanceType','setInterval','_transitionLocked','row','complete','handleIRemoveCol','height','_clearRedo','CollaborationSessionService','getColor','DependentOn','CollaborationStatusDisplay','_disableEditing','_document','error','getDocObject','_httpService','replace','_onUserJoin','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformIME','Starting','addEventListener','skeleton','concatMap','_localStorageService','_schedule','transformByState','UniverCollaborationClientPlugin','c2Prime','getTypeOfUnitDisposed$','fetch_missing','[SyncedState]:\x20received\x20acknowledgement.','newValue','UNIVER_SHEET','combineLatest','enableAuthServer','UNAUTHENTICATED','transformRemoteChangeset','data','RefRangeService','_assignedColors','handleInsertRow','_draw','_handler','_clearLocalCache','_onLocalMutation','getCurrentUnitForType','_sendHeartbeat','_onUserLeave','ISnapshotServerService','fillText','addImageSourceCache','USERS_LEAVE','switchMap','_refRangeService','some','params','_getAnchorBounding','_createHandler','registerComponent','Unknown\x20user','LICENSE_MAX_UNITS_EXCEEDED','[CollaborationUndoRedoService]','_updateStatus','status$','Rect','hasOwnProperty','url(#on-line-single_clip0_910_349)','_socket','_commandService','collabStatus.conflict','json','DeleteRangeMoveUpCommandId','deserializeToCombResponse','catch','Disposable','getCoordByCell','MSG_FOR_ERROR','_handleHeartbeatEvent','round','collaborators','pushState','createIdentifier','_retryCount','IRemoteInstanceService','_renderManagerService','cursorInfo$','awaiting_with_pending','fromCollab','_onConnectionFailed','on-line-single','startsWith','_onConflict','endRow','doc.mutation.rich-text-editing','_collaborationController','closePath','NOT_COLLAB','offline','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_substituteUndoStack','_colorAssignService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessions','defs','Injector','_createSocket','_getUploadFileURL','map','_onRefRangeChange','getMemberID','_substituteRedoStack','file','OFFLINE','/object/','baseRev','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univerjs-icon\x20univerjs-icon-','getSheetId','LocaleService','toDisposable','_labelPosition','getUnitOnRev','Ready','reject','WebSocketService','create','focused$','defIds','_initModules','ICommandService','saveSheetBlock','collabStatus.synced','originalMeta','collab-text-range-','awaitingChangeset','getCollabEntity','_timeoutTimer','onTransformSelections','LIVESHARE_TERMINATE','_scheduleClearOtherTimer','_getCtorByUniverType','_hovered','_onRemoteChangeset','MUTATION','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_socketMessageSubscription','asObservable','push','getConfig','toggleOffline','_lastPointer','_socketService','@univerjs/core','TEXT_RANGE_LAYER_INDEX','TextSelectionManagerService','1444044RqPlVv','_toggleOnline','override','Shape','\x20to\x20','NodePositionConvertToCursor','add','getAncestorScale','_urlService','ThemeService','disposeWithMe','_unitId','EXCHANGE_SIGN_URL_SERVER_URL_KEY','split','joinRsp','executeCommand','RETRY_CONNECTING_MAX_COUNT','roomMembers$','HEARTBEAT_TIMEOUT','_retryConnectingTimer','encode','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','onlineStatus','/role','generateRandomId','_send','getUnitId','_transformPreviousActiveRange','lineTo','_heartbeatTimer','text','resourceIDs','_getAPIPrefixPath','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','sessionStatus','FAIL','_change$','attrs','symbol','onPointerEnterObserver','/-/object/list','/new_changes','_pendingMutations','delay','history','type','failed\x20to\x20apply\x20missed\x20changesets!','_joinRoom','red300','_cursorInfo$','_hideTimer','_createInitialStateImpl','_onCursorDelete','_permissionService','_clearUndo','POST','_applyRemoteChangeset','COMPLETION_FINISHED','ERROR_EXCEED_SIZE','unitId','mutations','socketService','_getCurrentRevision','_sheetTransformSelectionsService','session.connection-failed','UNIVER_DOC','merge','sessionStatus$','location','purple300','@wendellhu/redi','IAuthzIoService','putCollaborators','debounceTime','APPLY_REVISION_CONFILICT','size','onMouseMove','_scheduleSaving','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_roomMembers$','_scene','DesktopCollaborationStatusDisplayController','isTransformMutationFailure','MoveRangeCommandId','transformChangesets','allowed','0\x200\x2016\x2016','CollaborationSocketService','_members','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','_getSheetObject','Error','@univerjs/sheets','icon','with','_exhaustRemoteChangesetQueue','_messageService','debug','_sendHeartbeatTimer','cmd','_init','/universer-api/oidc/authpage','includes','_handleHover','WorkbookEditablePermission','COMPRESS_MUTATION_APPLY','ensureActiveSheet','COLLAB_WEB_SOCKET_URL_KEY','collabStatus.offline','close$','_showConflictNotification','_getSendChangesetTimeout','m1Prime','FileId','auth.needGotoLoginAlert','selections','enableOfflineEditing','/unit/','event$','@univerjs/engine-render','PERMISSION_DENIED','isActive','unit','ITransformService','tag','getImageSourceCache','displayName','fetchMissingChangesets','b64DecodeUnicode','_getAPIPrefix','ICollaborationSocketService','online','SetSelectionsOperation','clipPath','DataLoaderController','state','socket\x20open.','roomInfos','_submitChangeset','UNIVER_SLIDE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','subunit','_anchorDot','_updateURLWithCurrentState','_beforeCloseService','width','getTime','_roomMembers','setCurrentUser','[OfflineState]:\x20received\x20changeset.','submit\x20changeset\x20error!','title','LICENSE_EXPORT_SIZE_EXCEEDED','_collabCursorState$','send','_color','LIVESHARE_REQUEST_HOST','random','selection','_saveCache','31086209xTUkgH','_http','_fetchMissChangesets','DeleteRangeMoveLeftCommandId','trim','ACTIVE_UNIT_EVENT_CHANNEL','liveShareNewHost','put','InsertRangeMoveRightCommandId','IMessageService','mapDocumentTypeToUniverType','BehaviorSubject','onRemoteAck','_getSnapshotAPIPrefix','Error\x20on\x20receiving\x20event','_drawRange','_executeRemoteChangeset','_scheduleCollaborationTimeoutTimer','YUUMI_URL_COL_OUT_OF_RANGE','INGEST','setUndoRedoMutationParamsCache','UNKNOWN_CODE','Inject','createCollaborator','getSheetObject','Subject','_decreaseWaiting','_onConnectionOpen','[CollaborationSession]','_getScale','ranges','getCurrent','_rescheduleHeartbeatEvent','UserManagerService','getUndoRedoMutationParamsCache','_clearTimeoutTimer','entries','storage','EffectRefRangId','_configService','status','getOwnPropertyDescriptor','assign','_undoRedoService','close','HEARTBEAT_TIMEOUT_KEY','_eventUnsubscribe','_docStateChangeManagerService','getCurrentRevForDocument','APPLY_REJECT','_transformUndoRedoStack','CompressMutationService','append','_scheduleHeartbeat','replaceState','handleDeleteRangeMoveLeft','div','CommandType','_name','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_notificationService','roles','_localeService','_clearHeartbeatTimer','_socketReady','_startDocCollabCursor','actions','updatePermissionPoint','getMergeData','/universer-api/comb','from','sequenceExecute','m2Prime','[PendingState]:\x20received\x20acknowledgement.','FETCH_MISSING','/universer-api/snapshot','syncEditingCollabCursor','JOINING','substring','serializeRangeWithSheet','restore','useObservable','CHANGESET_REJ','handleInsertRangeMoveDown','/allowed','objectType','_compressMutationService','onload','_getSaveTimeout','ILocalStorageService','UUID','BuiltInUIPart','APPLY_PERMISSION_DENIED','deepClone','InsertSheetMutation','_getMergeRange','_tryEnsureSocket','set','4794727yiSNnS','LifecycleStages','COLORS','_disabled','drawWith','unload','createElement','_scheduleTimestamp','/resources','10FyWKuL','NO_OTHER_CLIENTS_EDITING','LocalUndoRedoService','appendMutation','PSEUDO_FETCH_MISSING_RESULT','urlChange$','filter','_transformService','_removeRoom','_anchor','color','getViewport','SetTextSelectionsOperation','_scheduleReconnection','InsertRowCommandId','_handleLeaveEvent','_type','UNDEFINED','registerRefRange','@univerjs/ui','pluginName','whenReady','change$','CollaborationController','@univerjs/docs','indexOf','session.will-retry','_cachedData','revision','collaMsg','parseChangesetToProtocol','objectID','DocStateChangeManagerService','_onRecvEvent','post','_waitCount','registerOnClose','RichTextEditingMutation','[DataLoaderController]','_revisionService','ws://127.0.0.1:8000/universer-api/comb/connect','_id','_onFetchMissResult','SUBMIT_CHANGESET','COLLAB_SUBMIT_CHANGESET_URL','concat','_docSkeletonManagerService','updateOfflineData','_isPermissionRej','90216QWPhRo','_onCombEvent','setAlpha','routeKey','onTransformRemoteChangesetByIMECache','HEADER_MENU','ERROR_IMAGE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','univer-online','userID','toStringTag','currentSkeleton$','newCsEvent','memberID','LIVESHARE_OPERATION','HEARTBEAT_INTERVAL_KEY','svg','currentColor','SYNCED','_awaitingChangeset','csRejEvent','toRgbString','_updateLocalCache','setWaitCount','getRangePointData','forwardRef','/fetchmissing?from=','ImageSourceType','_syncEditingCollabCursor','onlineStatusIcon','stringify','PENDING','transformMutationsWithChangeset','disposeUnit','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_localCacheService','HEARTBEAT','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getCurrentUser','session.collaboration-timeout','idSuffix','handleInsertCol','saveOfflineData','_singleActiveUnitService','fill','unitID','COMPRESS_MUTATION_SEND','OTHER_CLIENTS_EDITING','_getRedoStack','[SyncedState]:\x20received\x20rejection.','IBeforeCloseService','roomMembers','localeService','searchParams','docStateChange$','univer-pro.collaboration-client.single-active-unit-service','Steady','endColumn','fetchThroughInterceptors','CONFLICT','/-/object/-/batch_allowed','getParam','getUniverSheetInstance','arc','delete','reverse','infoRsp','replaceTextRanges','dispose$','batchAllowed','makeDirty','AuthzIoHttpService','readAsDataURL','setParam','UniverCollaborationPlugin','labelPosition','TOO_MANY_REQUESTS','isEditing','getSelections','_queuedRemoteChangesets','registerBeforeClose','collaboration-client.offline-data-not-saved','_getDocObject','_transformIMECache','INotificationService','mergeOverrideWithDependencies','/block/','_entities','setTimeout','isTransformChangesetsSuccess','M0\x200H16V16H0z','Warning','handleMoveRange','has','_state','subUnitId','cursorInfo','getUnitStatus$','UNIVER_COLLABORATION_CLIENT_PLUGIN','IPermissionService','sheetId','_removeCollabCursors','none','/collaborator','deserializeRangeWithSheet','_docTransformSelectionsService','csAckEvent','requireSession','_clearOtherTimers','_render','_transformUndoredo','defineProperty','black','Workbook','WebURLService','permission.content','objects','IUniverInstanceService','toggleOnline','_loadDoc','setShapeProps','measureText','isPermissionRej','image/bmp','getCollabEntity$','_updateCollabCursors','InsertRangeMoveDownCommandId','not_collab','ColorKit','collabStatus.syncing','_unitID','getImage','createSocket','15etyqai','incrementRevForDocument','collaborationUniverTypes','_range','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','RxDisposable','_cursors','unknown','Tools','IHTTPImplementation','_collaborationPaused','then','?size=','image/png','url(#$1','univer-online-status-title','_event$','_onRemoteACK','INTERNAL_ERROR','_collaborationTimeoutTimer','UniverIcon','onPointerLeaveObserver','currentTheme$','_unlockTransition','SnapshotService','getInterceptPoints','enableSingleActiveInstanceLock','_state$','enableLocalCache','[UniverCollaborationClientPlugin]','disableLocalCache','removeMember','ThresholdInterceptorFactory','findNodePositionByCharIndex','_setupSubUnitSync','RegularPolygon','FromArray','getRenderById','colorChannel1','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_incrementRevisionNumber','MessageType','unshift','USERS_ENTER','_sendingTimer','OffLineSingle','registerHTTPInterceptor','_snapshotService','_updateLocalCursor','_clearCollaborationTimeoutTimer','saveChangeset','_replaceFileID','get','NOT_FOUND','min','_userManagerService','changesets','521295JTaTAF','SNAPSHOT_HAS_BEEN_REMOVED','_handleEvent','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_initStatusComponent','onRemoteRej','LICENSE_DISTRO_REJECTED','_snapshotServerService','#FFF','conflict','@wendellhu/redi/react-bindings','addObject','_setupBeforeClosingHandler','HELLO','\x20in\x20_schedule.','_session','joinEvent','loadOfflineData','synced','transformIMECache','error$','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','_saveTaskMap','univer-offline','getOffsetConfig','_ws','DocSkeletonManagerService','call','top','/universer-api/authz','onMissedChangesetFetched','listRoles','univer-pro.collaboration-client-socket-service','getResourcesRequest','IMEInputManagerService','conflict.content','\x0aAfter:\x20','CollaborationEvent','FETCH_MISS','_HTTPService','567fxzGlv','_getSignURL','current','transform','[OfflineState]:\x20received\x20rejection.','UNRECOGNIZED','useRef','INVALID_ARGUMENT','_onMessage','isTransformMutationsWithChangesetSuccess','use','YUUMI_UNABLE_LOAD_URL','CONNECTOR_DATA_TOO_LARGE','24591vQlwvx','CHANGESET_REVISION_CONFILICT','assignAColorForMemberID','rev','transformMutation','_redoStacks','next','_updateSubUnitFromURLParams','children','onSyncEditingCollabCursor','[PendingState]:\x20unhandled\x20univer\x20type:\x20','length','UNIVER_UNKNOWN','_status$','...','_shapes','getFocusedUnit'];_0x3fcd=function(){return _0x6a7245;};return _0x3fcd();}ve=ds([Je(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Je(0x1,u[_0x53b42f(0x25a)])],ve);var Ss=Object[_0x53b42f(0x38a)],vs=Object['getOwnPropertyDescriptor'],gs=(_0x523822,_0x2bf1da,_0x360861,_0x3e9b77)=>{const _0x326dcf=_0x53b42f;for(var _0x356d6f=_0x3e9b77>0x1?void 0x0:_0x3e9b77?vs(_0x2bf1da,_0x360861):_0x2bf1da,_0x1bea3a=_0x523822[_0x326dcf(0x419)]-0x1,_0x4f1a9c;_0x1bea3a>=0x0;_0x1bea3a--)(_0x4f1a9c=_0x523822[_0x1bea3a])&&(_0x356d6f=(_0x3e9b77?_0x4f1a9c(_0x2bf1da,_0x360861,_0x356d6f):_0x4f1a9c(_0x356d6f))||_0x356d6f);return _0x3e9b77&&_0x356d6f&&Ss(_0x2bf1da,_0x360861,_0x356d6f),_0x356d6f;},Ze=(_0x3fcdbd,_0x882490)=>(_0x5e73d9,_0x3fd4fa)=>_0x882490(_0x5e73d9,_0x3fd4fa,_0x3fcdbd);let ge=class{constructor(_0x445023,_0x32289c){const _0x23e425=_0x53b42f;this['_injector']=_0x445023,this[_0x23e425(0x2f1)]=_0x32289c;}[_0x53b42f(0x438)](_0x542c12){const _0x55c6aa=_0x53b42f;var _0x444159;const _0x33b767=this[_0x55c6aa(0x45d)][_0x55c6aa(0x3d4)](M[_0x55c6aa(0x1de)]),_0x4bedc0=(_0x444159=_0x33b767['getSelections']())!=null?_0x444159:[],_0x37c97c=_0x4bedc0==null?void 0x0:_0x4bedc0['map'](M[_0x55c6aa(0x453)]);if(_0x37c97c[_0x55c6aa(0x419)]===0x0)return;const _0xfcba4b=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x542c12['unitID'],'actions':null,'textRanges':_0x37c97c}}],_0x4f4217=this['_transformService'][_0x55c6aa(0x33b)](_0x542c12,_0xfcba4b);if(!u[_0x55c6aa(0x40a)](_0x4f4217))throw _0x4f4217[_0x55c6aa(0x150)];const _0x5ce101=_0x4f4217[_0x55c6aa(0x2c7)][0x0][_0x55c6aa(0x17b)][_0x55c6aa(0x461)];Array[_0x55c6aa(0x4af)](_0x5ce101)&&_0x5ce101['length']&&_0x33b767[_0x55c6aa(0x35e)](_0x5ce101,!0x1);}};ge=gs([Ze(0x0,h['Inject'](h[_0x53b42f(0x1ac)])),Ze(0x1,u[_0x53b42f(0x25a)])],ge);function Ct(_0x54461e){const _0x4baa48=_0x53b42f;let _0x3c16ae='';for(const _0xdd0ea5 of _0x54461e){const {startOffset:_0x2e0c6f,endOffset:_0x20aff8,isActive:_0x49e981}=_0xdd0ea5;_0x3c16ae[_0x4baa48(0x419)]&&(_0x3c16ae+=','),_0x3c16ae+=_0x2e0c6f+':'+_0x20aff8+':'+(_0x49e981?'1':'0');}return _0x3c16ae;}function fs(_0x264340){const _0x46eb40=_0x53b42f,_0x5bb6a5=_0x264340[_0x46eb40(0x1ec)](','),_0x5839df=[];for(const _0x435927 of _0x5bb6a5){const [_0x3e4853,_0x11e4a9,_0x42c988]=_0x435927[_0x46eb40(0x1ec)](':');_0x5839df['push']({'startOffset':Number(_0x3e4853),'endOffset':Number(_0x11e4a9),'collapsed':_0x3e4853===_0x11e4a9,'isActive':_0x42c988==='1'});}return _0x5839df[_0x46eb40(0x17a)](_0x550b72=>_0x550b72[_0x46eb40(0x258)])||(_0x5839df[0x0][_0x46eb40(0x258)]=!0x0),_0x5839df;}class Fe extends a[_0x53b42f(0x3a5)]{constructor(){const _0x48c98b=_0x53b42f;super(...arguments),d(this,'_collabCursorState$',new g[(_0x48c98b(0x28a))](null)),d(this,_0x48c98b(0x495),this[_0x48c98b(0x278)]['asObservable']());}[_0x53b42f(0x2cb)](_0x250672){const _0xedc93f=_0x53b42f,{unitID:_0xab8646,memberID:_0x1c32ef,textRanges:_0x1dbd1d}=_0x250672,_0x1d49e1=Ct(_0x1dbd1d),_0x188747={'unitID':_0xab8646,'memberID':_0x1c32ef,'selection':_0x1d49e1};this[_0xedc93f(0x278)][_0xedc93f(0x414)](_0x188747);}}var ms=Object['defineProperty'],Is=Object[_0x53b42f(0x2a8)],ps=(_0x3ab337,_0x2ba9fd,_0x46ec3f,_0x3b77e4)=>{const _0x6bed23=_0x53b42f;for(var _0x3bc1da=_0x3b77e4>0x1?void 0x0:_0x3b77e4?Is(_0x2ba9fd,_0x46ec3f):_0x2ba9fd,_0x5f4c2b=_0x3ab337[_0x6bed23(0x419)]-0x1,_0x2ee611;_0x5f4c2b>=0x0;_0x5f4c2b--)(_0x2ee611=_0x3ab337[_0x5f4c2b])&&(_0x3bc1da=(_0x3b77e4?_0x2ee611(_0x2ba9fd,_0x46ec3f,_0x3bc1da):_0x2ee611(_0x3bc1da))||_0x3bc1da);return _0x3b77e4&&_0x3bc1da&&ms(_0x2ba9fd,_0x46ec3f,_0x3bc1da),_0x3bc1da;},Qe=(_0x5debe8,_0xf0f884)=>(_0x561c07,_0x4dc907)=>_0xf0f884(_0x561c07,_0x4dc907,_0x5debe8);let fe=class{constructor(_0x123cea,_0x4daf07){this['_injector']=_0x123cea,this['_transformService']=_0x4daf07;}[_0x53b42f(0x438)](_0x12788b){const _0x163f60=_0x53b42f;var _0xfd02fb,_0x327b98,_0x31cff9,_0x33e0df;const _0x370196=this[_0x163f60(0x45d)][_0x163f60(0x3d4)](E[_0x163f60(0x448)]),{pluginName:_0x4e3ac1,unitId:_0x4cd636,sheetId:_0x1450be}=_0x370196[_0x163f60(0x29e)]()||{},_0x357d5e=(_0xfd02fb=_0x370196[_0x163f60(0x369)]())!=null?_0xfd02fb:[];if(_0x357d5e[_0x163f60(0x419)]===0x0||!_0x4e3ac1||!_0x4cd636||!_0x1450be)return;const _0x3e022d=[{'id':E[_0x163f60(0x263)]['id'],'params':{'unitId':_0x4cd636,'subUnitId':_0x1450be,'pluginName':_0x4e3ac1,'selections':a[_0x163f60(0x3a8)][_0x163f60(0x2dc)](_0x357d5e)}}],_0x2ce003=this[_0x163f60(0x2f1)][_0x163f60(0x33b)](_0x12788b,_0x3e022d);if(!u[_0x163f60(0x40a)](_0x2ce003))throw _0x2ce003['error'];const _0x4cb893=(_0x33e0df=(_0x31cff9=(_0x327b98=_0x2ce003[_0x163f60(0x2c7)][0x0])==null?void 0x0:_0x327b98['params'])==null?void 0x0:_0x31cff9[_0x163f60(0x252)])!=null?_0x33e0df:_0x357d5e;Array[_0x163f60(0x4af)](_0x4cb893)&&_0x4cb893[_0x163f60(0x419)]&&this['_injector'][_0x163f60(0x3d4)](a[_0x163f60(0x1c5)])[_0x163f60(0x1ee)](E['SetSelectionsOperation']['id'],{'unitId':_0x4cd636,'subUnitId':_0x1450be,'pluginName':_0x4e3ac1,'selections':_0x4cb893});}};fe=ps([Qe(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Qe(0x1,u['ITransformService'])],fe);const Es=new Set([E[_0x53b42f(0x2dd)]['id']]);function Cs(_0x502356,_0x5f5128,_0x230671,_0x58a82c,_0x2f11c5){const _0x1d1114=_0x53b42f;var _0x1c6444,_0x2f0124,_0xcb04b8,_0x138087;const _0x43b751=[];for(const _0x564805 of _0x502356)if(Es['has'](_0x564805['id'])){if(_0x43b751[_0x1d1114(0x419)]>0x0)break;_0x43b751[_0x1d1114(0x1d7)](_0x564805);break;}else _0x43b751[_0x1d1114(0x1d7)](_0x564805);const _0x330b23=(_0x2f0124=(_0x1c6444=_0x2f11c5['getCurrentUser']())==null?void 0x0:_0x1c6444['userID'])!=null?_0x2f0124:_0x1d1114(0x3a7),_0x21b2ca=(_0x138087=(_0xcb04b8=_0x2f11c5[_0x1d1114(0x341)]())==null?void 0x0:_0xcb04b8[_0x1d1114(0x328)])!=null?_0x138087:_0x1d1114(0x3a7);return{'changeset':{'unitID':_0x5f5128,'type':u[_0x1d1114(0x289)](_0x230671['getUnitType'](_0x5f5128)),'baseRev':_0x58a82c[_0x1d1114(0x2af)](_0x5f5128),'revision':0x0,'userID':_0x330b23,'memberID':_0x21b2ca,'mutations':_0x43b751},'pendingMutations':_0x502356['slice'](_0x43b751['length'])};}function bs(_0x393bd9,_0x12f8f3,_0x5e2c90,_0x3051ed,_0x47d05a){const _0x97b1dd=_0x53b42f;var _0x5c26f3,_0x10a747,_0x23c089,_0x2445f1;const _0x35b2b6=[_0x393bd9['reduce']((_0x451d86,_0x2b7ef3)=>{const _0x3ff3a1=_0xe052;var _0x188d22;const {id:_0x49cc4d}=_0x451d86,{id:_0x4d63aa,type:_0x48cd9c}=_0x2b7ef3,_0x2ed3f6=(_0x188d22=_0x451d86['params'])!=null?_0x188d22:{'actions':null},_0x470a6a=_0x2b7ef3[_0x3ff3a1(0x17b)];if(_0x49cc4d&&_0x49cc4d!==_0x4d63aa)throw new Error(_0x3ff3a1(0x3dc)+_0x49cc4d+_0x3ff3a1(0x44a)+_0x4d63aa+'.');return{..._0x451d86,'id':_0x4d63aa,'type':_0x48cd9c,'params':{'unitId':_0x470a6a[_0x3ff3a1(0x21a)],'textRanges':_0x470a6a[_0x3ff3a1(0x461)],'actions':a[_0x3ff3a1(0x42a)]['compose'](_0x2ed3f6[_0x3ff3a1(0x2c1)],_0x470a6a['actions'])}};},{})],_0x343bdf=(_0x10a747=(_0x5c26f3=_0x47d05a[_0x97b1dd(0x341)]())==null?void 0x0:_0x5c26f3[_0x97b1dd(0x324)])!=null?_0x10a747:_0x97b1dd(0x3a7),_0xd98b74=(_0x2445f1=(_0x23c089=_0x47d05a[_0x97b1dd(0x341)]())==null?void 0x0:_0x23c089[_0x97b1dd(0x328)])!=null?_0x2445f1:_0x97b1dd(0x3a7);return{'changeset':{'unitID':_0x12f8f3,'type':u[_0x97b1dd(0x289)](_0x5e2c90['getUnitType'](_0x12f8f3)),'baseRev':_0x3051ed[_0x97b1dd(0x2af)](_0x12f8f3),'revision':0x0,'userID':_0x343bdf,'memberID':_0xd98b74,'mutations':_0x35b2b6},'pendingMutations':[]};}var Ts=Object[_0x53b42f(0x38a)],Rs=Object[_0x53b42f(0x2a8)],K=(_0x528795,_0x18e0c0,_0x3299f2,_0x290ccf)=>{const _0x1fc56a=_0x53b42f;for(var _0x2c4a26=_0x290ccf>0x1?void 0x0:_0x290ccf?Rs(_0x18e0c0,_0x3299f2):_0x18e0c0,_0x312116=_0x528795[_0x1fc56a(0x419)]-0x1,_0x4c494d;_0x312116>=0x0;_0x312116--)(_0x4c494d=_0x528795[_0x312116])&&(_0x2c4a26=(_0x290ccf?_0x4c494d(_0x18e0c0,_0x3299f2,_0x2c4a26):_0x4c494d(_0x2c4a26))||_0x2c4a26);return _0x290ccf&&_0x2c4a26&&Ts(_0x18e0c0,_0x3299f2,_0x2c4a26),_0x2c4a26;},f=(_0x10d30e,_0x1e2802)=>(_0x42b771,_0x11a0d2)=>_0x1e2802(_0x42b771,_0x11a0d2,_0x10d30e),w=(_0xe8caec=>(_0xe8caec[_0x53b42f(0x1a4)]=_0x53b42f(0x39a),_0xe8caec['SYNCED']=_0x53b42f(0x3eb),_0xe8caec[_0x53b42f(0x33a)]=_0x53b42f(0x4b0),_0xe8caec[_0x53b42f(0x4db)]=_0x53b42f(0x13d),_0xe8caec['AWAITING_WITH_PENDING']='awaiting_with_pending',_0xe8caec[_0x53b42f(0x3ff)]=_0x53b42f(0x161),_0xe8caec[_0x53b42f(0x356)]=_0x53b42f(0x3e2),_0xe8caec['OFFLINE']=_0x53b42f(0x1a5),_0xe8caec))(w||{});class X{constructor(_0x524ad8,_0x1c25ad,_0x5ca59a,_0x34df4a,_0x4ba316,_0x1dd843,_0x1144d7,_0x31e7df,_0x36e5f0){const _0x2a1971=_0x53b42f;d(this,_0x2a1971(0x32e),null),d(this,_0x2a1971(0x209),[]),(this[_0x2a1971(0x348)]=_0x524ad8,this[_0x2a1971(0x20c)]=_0x1c25ad,this['_handler']=_0x4ba316,this['_commandService']=_0x1dd843,this['_undoRedoService']=_0x1144d7,this[_0x2a1971(0x311)]=_0x31e7df,this[_0x2a1971(0x33e)]=_0x36e5f0,this['_awaitingChangeset']=_0x5ca59a,this[_0x2a1971(0x209)]=_0x34df4a);}['_checkMissing'](_0x187cf3){const _0x1a7fc7=_0x53b42f,_0x4995c8=this[_0x1a7fc7(0x311)][_0x1a7fc7(0x2af)](this[_0x1a7fc7(0x348)]);return _0x187cf3[_0x1a7fc7(0x306)]>_0x4995c8+0x1?(this[_0x1a7fc7(0x16e)][_0x1a7fc7(0x4ba)]({'from':_0x4995c8,'to':_0x187cf3[_0x1a7fc7(0x306)]-0x1}),!0x0):!0x1;}[_0x53b42f(0x389)](_0x11cef1){const _0x5510a7=_0x53b42f;this[_0x5510a7(0x2aa)]['transformUndoRedo'](this[_0x5510a7(0x348)],_0x11cef1);}[_0x53b42f(0x464)](_0x48b65b){const _0x3c168b=_0x53b42f;var _0x16f92d,_0x3fe3aa;(_0x3fe3aa=(_0x16f92d=this[_0x3c168b(0x16e)])[_0x3c168b(0x1cd)])==null||_0x3fe3aa['call'](_0x16f92d,_0x48b65b);}['_transformIMECache'](_0x3e3a29){const _0x2f94c7=_0x53b42f;var _0x5cc576,_0x4dd0a0;return(_0x4dd0a0=(_0x5cc576=this['_handler'])[_0x2f94c7(0x156)])==null?void 0x0:_0x4dd0a0[_0x2f94c7(0x3f4)](_0x5cc576,_0x3e3a29);}['_transformRemoteChangesetByIMECache'](_0x27a3ff){const _0x15cd8e=_0x53b42f;var _0x32f776,_0x421de8,_0x1f63f7;return(_0x1f63f7=(_0x421de8=(_0x32f776=this[_0x15cd8e(0x16e)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x421de8[_0x15cd8e(0x3f4)](_0x32f776,_0x27a3ff))!=null?_0x1f63f7:_0x27a3ff;}['_syncEditingCollabCursor'](_0x54ddfd){const _0x4adbce=_0x53b42f;var _0x211f8f,_0x1f9550;if(this['type']===j[_0x4adbce(0x220)]){const {unitID:_0x5b8851,mutations:_0x45f150,memberID:_0x340d70}=_0x54ddfd,_0xdcbece=_0x45f150[0x0][_0x4adbce(0x17b)][_0x4adbce(0x461)];Array['isArray'](_0xdcbece)&&_0xdcbece[_0x4adbce(0x419)]>0x0&&((_0x1f9550=(_0x211f8f=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x1f9550[_0x4adbce(0x3f4)](_0x211f8f,{'unitID':_0x5b8851,'memberID':_0x340d70,'textRanges':_0xdcbece}));}}[_0x53b42f(0x331)](){const _0x43a9ce=_0x53b42f;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x43a9ce(0x20c)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x53b42f(0x21d)](){const _0x450251=_0x53b42f;return this['_revisionService']['getCurrentRevForDocument'](this[_0x450251(0x348)]);}['_incrementRevisionNumber'](){const _0x3abb1b=_0x53b42f;this[_0x3abb1b(0x311)][_0x3abb1b(0x3a1)](this[_0x3abb1b(0x348)]);}[_0x53b42f(0x28f)](_0x5e6932){const _0x25a2bb=_0x53b42f;var _0x1d4e94;const _0x2dc490=this['_transformRemoteChangesetByIMECache'](_0x5e6932),_0x4d1ec4=a[_0x25a2bb(0x2c6)](_0x2dc490[_0x25a2bb(0x21b)],this[_0x25a2bb(0x188)],{'fromCollab':!0x0});if(!_0x4d1ec4[_0x25a2bb(0x47a)])throw _0x4d1ec4[_0x25a2bb(0x150)]instanceof Error?_0x4d1ec4[_0x25a2bb(0x150)]:new Error((_0x1d4e94=_0x4d1ec4[_0x25a2bb(0x150)])!=null?_0x1d4e94:_0x25a2bb(0x13a));this[_0x25a2bb(0x36e)](_0x2dc490),this[_0x25a2bb(0x389)](_0x5e6932),this['_transformSelections'](_0x2dc490),this[_0x25a2bb(0x337)](_0x2dc490),this[_0x25a2bb(0x3c8)]();}}let ae=class extends X{constructor(_0x1fd683,_0x2a470e,_0x558353,_0x3349fa,_0x2cbc90,_0xe4e464,_0xd4e5f1,_0x127678,_0x2c12c1){const _0x156893=_0x53b42f;super(_0x1fd683,_0x2a470e,null,[],_0x558353,_0x127678,_0xd4e5f1,_0x3349fa,_0x2cbc90),d(this,_0x156893(0x2a7),_0x156893(0x3eb)),(this['_injector']=_0xe4e464,this['_logService']=_0x2c12c1);}['appendMutation'](_0x302040){const _0x4eb304=_0x53b42f,_0x140ad6=this['_injector'][_0x4eb304(0x477)]($,this[_0x4eb304(0x348)],this[_0x4eb304(0x20c)],[_0x302040],this[_0x4eb304(0x16e)]);return _0x140ad6[_0x4eb304(0x15c)](),_0x140ad6[_0x4eb304(0x331)](),_0x140ad6;}[_0x53b42f(0x437)](_0x53e2f4){const _0x4662e5=_0x53b42f;if(this['_checkMissing'](_0x53e2f4))return this[_0x4662e5(0x45d)][_0x4662e5(0x477)](x,this[_0x4662e5(0x348)],this[_0x4662e5(0x20c)],null,[],null,[_0x53e2f4],this['_handler']);try{return this[_0x4662e5(0x28f)](_0x53e2f4),this;}catch(_0x5e0b78){return this['_logService'][_0x4662e5(0x150)](_0x4662e5(0x3c7),_0x5e0b78),this;}}[_0x53b42f(0x28b)](){const _0x10e4e3=_0x53b42f;throw new Error(_0x10e4e3(0x162));}['onRemoteRej'](){const _0x1dea72=_0x53b42f;throw new Error(_0x1dea72(0x34c));}['toggleOffline'](){const _0x289b84=_0x53b42f;return this[_0x289b84(0x45d)][_0x289b84(0x477)](B,this[_0x289b84(0x348)],this[_0x289b84(0x20c)],null,[],this[_0x289b84(0x16e)]);}['toggleOnline'](){return this;}[_0x53b42f(0x497)](){const _0x312324=_0x53b42f;throw new Error(_0x312324(0x155));}};ae=K([f(0x3,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x4,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x5,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x6,a[_0x53b42f(0x4a1)]),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a[_0x53b42f(0x4c8)])],ae);let $=class extends X{constructor(_0x379ef5,_0x1d3372,_0x367dce,_0x386293,_0x18aa94,_0x4ecc78,_0x31f8d4,_0x44b566,_0x356b76,_0x300f30,_0x2df54f,_0x195f19,_0x1059a7,_0x248b06){const _0x3ce29a=_0x53b42f;super(_0x379ef5,_0x1d3372,null,_0x367dce,_0x386293,_0x300f30,_0x248b06,_0x4ecc78,_0x31f8d4),d(this,_0x3ce29a(0x2a7),_0x3ce29a(0x4b0)),d(this,_0x3ce29a(0x2e8),null),d(this,_0x3ce29a(0x3cc),null),(this[_0x3ce29a(0x45d)]=_0x18aa94,this[_0x3ce29a(0x4ae)]=_0x44b566,this['_logService']=_0x356b76,this[_0x3ce29a(0x2a6)]=_0x2df54f,this[_0x3ce29a(0x2f1)]=_0x195f19,this[_0x3ce29a(0x49a)]=_0x1059a7);}[_0x53b42f(0x2ed)](_0x597df3){const _0x561c79=_0x53b42f;return this['_pendingMutations'][_0x561c79(0x1d7)](_0x597df3),this[_0x561c79(0x331)](),this;}[_0x53b42f(0x437)](_0xfc8e04){const _0x419394=_0x53b42f;if(this[_0x419394(0x4aa)](_0xfc8e04))return this[_0x419394(0x446)](),this['_injector'][_0x419394(0x477)](x,this[_0x419394(0x348)],this[_0x419394(0x20c)],null,this[_0x419394(0x209)],null,[_0xfc8e04],this['_handler']);try{const _0x309cdd=this[_0x419394(0x2f1)][_0x419394(0x33b)](_0xfc8e04,this[_0x419394(0x209)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x309cdd)){const {c1Prime:_0x29ca1b,m2Prime:_0x489db4}=_0x309cdd;this['_executeRemoteChangeset'](_0x29ca1b);const _0x524538=this['_injector'][_0x419394(0x477)]($,this[_0x419394(0x348)],this[_0x419394(0x20c)],_0x489db4,this[_0x419394(0x16e)]);return this[_0x419394(0x446)](),_0x524538[_0x419394(0x15c)](this[_0x419394(0x2e8)]?Math['max'](0x0,new Date()[_0x419394(0x271)]()-this['_scheduleTimestamp']):this[_0x419394(0x24e)]()),_0x524538;}throw _0x309cdd['error'];}catch(_0x3573e6){return this['_logService'][_0x419394(0x150)](_0x3573e6),this[_0x419394(0x19f)](!0x1);}}[_0x53b42f(0x28b)](){const _0x48e932=_0x53b42f;throw new Error(_0x48e932(0x2c8));}[_0x53b42f(0x3de)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x53b42f(0x1d9)](){const _0x55db67=_0x53b42f;return this[_0x55db67(0x446)](),this['_injector']['createInstance'](B,this[_0x55db67(0x348)],this[_0x55db67(0x20c)],null,this['_pendingMutations'],this['_handler']);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x15c)](_0x5bfdf8){const _0x315ead=_0x53b42f;_0x5bfdf8=_0x5bfdf8!=null?_0x5bfdf8:this[_0x315ead(0x24e)](),this[_0x315ead(0x2e8)]=new Date()[_0x315ead(0x271)](),this[_0x315ead(0x3cc)]=setTimeout(()=>{const _0x1ac6c2=_0x315ead;this[_0x1ac6c2(0x446)]();let _0x362e5d=null;switch(this[_0x1ac6c2(0x20c)]){case j[_0x1ac6c2(0x164)]:{_0x362e5d=Cs(this[_0x1ac6c2(0x209)],this[_0x1ac6c2(0x348)],this['_univerInstanceService'],this[_0x1ac6c2(0x311)],this[_0x1ac6c2(0x4ae)]);break;}case j['UNIVER_DOC']:{_0x362e5d=bs(this['_pendingMutations'],this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x49a)],this[_0x1ac6c2(0x311)],this[_0x1ac6c2(0x4ae)]);break;}default:throw new Error(_0x1ac6c2(0x418)+this[_0x1ac6c2(0x20c)]+_0x1ac6c2(0x3e7));}const {changeset:_0xf86de3,pendingMutations:_0x28ebea}=_0x362e5d;this[_0x1ac6c2(0x16e)][_0x1ac6c2(0x4a9)](_0xf86de3);const _0x4179ef=_0x28ebea[_0x1ac6c2(0x419)]?this[_0x1ac6c2(0x45d)][_0x1ac6c2(0x477)](H,this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x20c)],_0xf86de3,_0x28ebea,this['_handler']):this[_0x1ac6c2(0x45d)]['createInstance'](k,this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x20c)],_0xf86de3,this[_0x1ac6c2(0x16e)]);_0x4179ef['_updateLocalCache'](),this[_0x1ac6c2(0x16e)]['onStateChange'](this,_0x4179ef);},_0x5bfdf8);}[_0x53b42f(0x24e)](){const _0x23cfbf=_0x53b42f;var _0x4792de;return(_0x4792de=this[_0x23cfbf(0x2a6)][_0x23cfbf(0x1d8)](ht))!=null?_0x4792de:Bt;}[_0x53b42f(0x497)](){const _0x27882c=_0x53b42f;throw new Error(_0x27882c(0x200));}['_clearScheduledTask'](){const _0x36cbb4=_0x53b42f;this[_0x36cbb4(0x3cc)]!=null&&(clearTimeout(this[_0x36cbb4(0x3cc)]),this[_0x36cbb4(0x3cc)]=null);}['_onConflict'](_0x179301){const _0x926f5e=_0x53b42f;return this[_0x926f5e(0x446)](),this[_0x926f5e(0x45d)]['createInstance'](Y,this[_0x926f5e(0x348)],this['type'],null,this[_0x926f5e(0x209)],this[_0x926f5e(0x16e)],_0x179301);}};$=K([f(0x4,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x6,h['Inject'](exports[_0x53b42f(0x4b3)])),f(0x7,h['Inject'](G)),f(0x8,a['ILogService']),f(0x9,a[_0x53b42f(0x1c5)]),f(0xa,a[_0x53b42f(0x4a2)]),f(0xb,u['ITransformService']),f(0xc,a['IUniverInstanceService']),f(0xd,a[_0x53b42f(0x4a1)])],$);let k=class extends X{constructor(_0x24e315,_0x56b974,_0x1f4623,_0x1f74cb,_0x3d8fda,_0x3a076e,_0x130b3f,_0x367b76,_0x2d1284,_0x4fa49d,_0x25da9b){const _0x8dabb0=_0x53b42f;super(_0x24e315,_0x56b974,_0x1f4623,[],_0x1f74cb,_0x367b76,_0x25da9b,_0x3a076e,_0x130b3f),d(this,_0x8dabb0(0x2a7),_0x8dabb0(0x13d)),(this['_injector']=_0x3d8fda,this['_logService']=_0x2d1284,this['_transformService']=_0x4fa49d);}['appendMutation'](_0x84b4fa){const _0xe07a3a=_0x53b42f,_0x427b55=this[_0xe07a3a(0x45d)][_0xe07a3a(0x477)](H,this['unitID'],this[_0xe07a3a(0x20c)],this['_awaitingChangeset'],[_0x84b4fa],this[_0xe07a3a(0x16e)]);return _0x427b55[_0xe07a3a(0x331)](),_0x427b55;}[_0x53b42f(0x437)](_0x2a7869){const _0x244e4f=_0x53b42f;if(this['_checkMissing'](_0x2a7869))return this[_0x244e4f(0x45d)][_0x244e4f(0x477)](x,this[_0x244e4f(0x348)],this[_0x244e4f(0x20c)],this[_0x244e4f(0x32e)],[],null,[_0x2a7869],this[_0x244e4f(0x16e)]);try{const _0x1a5d3d=this[_0x244e4f(0x2f1)][_0x244e4f(0x233)]([_0x2a7869],[this['_awaitingChangeset']],!0x1);if(u['isTransformChangesetsSuccess'](_0x1a5d3d)){const {c1Prime:_0x9b8da4,c2Prime:_0x1df567}=_0x1a5d3d;this[_0x244e4f(0x28f)](_0x9b8da4[0x0]),_0x1df567[0x0][_0x244e4f(0x1b6)]=this['_getCurrentRevision']();const _0x468869=this[_0x244e4f(0x45d)][_0x244e4f(0x477)](k,this['unitID'],this['type'],_0x1df567[0x0],this[_0x244e4f(0x16e)]);return _0x468869[_0x244e4f(0x331)](),_0x468869;}return this[_0x244e4f(0x19f)](!0x1);}catch(_0x159c0e){return this['_logService'][_0x244e4f(0x150)](_0x159c0e),this['_onConflict'](!0x1);}}[_0x53b42f(0x28b)](_0x471d2a){const _0xe378c7=_0x53b42f,_0x220e41=this[_0xe378c7(0x311)]['getCurrentRevForDocument'](this['unitID']);if(_0x471d2a[_0xe378c7(0x306)]<_0x220e41-0x1)return this;if(this[_0xe378c7(0x4aa)](_0x471d2a))return this[_0xe378c7(0x45d)][_0xe378c7(0x477)](x,this['unitID'],this[_0xe378c7(0x20c)],null,[],this[_0xe378c7(0x32e)],[],this[_0xe378c7(0x16e)]);this[_0xe378c7(0x3c8)]();const _0x43564f=this[_0xe378c7(0x45d)][_0xe378c7(0x477)](ae,this['unitID'],this['type'],this['_handler']);return _0x43564f[_0xe378c7(0x331)](),_0x43564f;}[_0x53b42f(0x3de)](_0x58e325){const _0x23fcdd=_0x53b42f;return this[_0x23fcdd(0x19f)](!!(_0x58e325!=null&&_0x58e325[_0x23fcdd(0x395)]));}[_0x53b42f(0x1d9)](){const _0x4381a7=_0x53b42f;return this[_0x4381a7(0x45d)][_0x4381a7(0x477)](B,this[_0x4381a7(0x348)],this[_0x4381a7(0x20c)],this['_awaitingChangeset'],[],this[_0x4381a7(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){const _0x54413b=_0x53b42f;this[_0x54413b(0x16e)][_0x54413b(0x4a9)](this[_0x54413b(0x32e)]);}['_onConflict'](_0x1a5b70){const _0x11d6a4=_0x53b42f;return this[_0x11d6a4(0x45d)][_0x11d6a4(0x477)](Y,this[_0x11d6a4(0x348)],this[_0x11d6a4(0x20c)],this[_0x11d6a4(0x32e)],[],this['_handler'],_0x1a5b70);}};k=K([f(0x4,h[_0x53b42f(0x295)](h['Injector'])),f(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x6,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a['ILogService']),f(0x9,u[_0x53b42f(0x25a)]),f(0xa,a[_0x53b42f(0x4a1)])],k);let H=class extends X{constructor(_0x506b6e,_0x358c81,_0x3541a5,_0x557706,_0x54c1fe,_0x1b3851,_0x5ac0f2,_0x53e890,_0x34ec27,_0xf69445,_0x594f49,_0x24c4cc){const _0x325c10=_0x53b42f;super(_0x506b6e,_0x358c81,_0x3541a5,_0x557706,_0x54c1fe,_0x34ec27,_0x24c4cc,_0x5ac0f2,_0x53e890),d(this,_0x325c10(0x2a7),_0x325c10(0x19a)),(this[_0x325c10(0x45d)]=_0x1b3851,this[_0x325c10(0x42f)]=_0xf69445,this[_0x325c10(0x2f1)]=_0x594f49);}['appendMutation'](_0x50f44a){const _0x20f255=_0x53b42f;return this[_0x20f255(0x209)][_0x20f255(0x1d7)](_0x50f44a),this;}[_0x53b42f(0x437)](_0x386f67){const _0x450ffc=_0x53b42f;if(this['_checkMissing'](_0x386f67))return this['_injector'][_0x450ffc(0x477)](x,this[_0x450ffc(0x348)],this[_0x450ffc(0x20c)],this[_0x450ffc(0x32e)],this[_0x450ffc(0x209)],null,[_0x386f67],this[_0x450ffc(0x16e)]);try{const _0x1ae8e4=this[_0x450ffc(0x2f1)]['transformChangesets']([_0x386f67],[this['_awaitingChangeset']],!0x1);if(u[_0x450ffc(0x374)](_0x1ae8e4)){const {c1Prime:_0x46c3e6,c2Prime:_0x3d5646}=_0x1ae8e4,_0x1b69f0=this['_transformService']['transformMutationsWithChangeset'](_0x46c3e6[0x0],this['_pendingMutations']);if(u[_0x450ffc(0x40a)](_0x1b69f0)){const {c1Prime:_0x2b9a2b,m2Prime:_0x59cd04}=_0x1b69f0;return this['_executeRemoteChangeset'](_0x2b9a2b),_0x3d5646[0x0][_0x450ffc(0x1b6)]=this[_0x450ffc(0x21d)](),this[_0x450ffc(0x45d)][_0x450ffc(0x477)](H,this[_0x450ffc(0x348)],this[_0x450ffc(0x20c)],_0x3d5646[0x0],_0x59cd04,this[_0x450ffc(0x16e)]);}throw _0x1b69f0[_0x450ffc(0x150)];}throw _0x1ae8e4[_0x450ffc(0x150)];}catch(_0x41ac6e){return this['_logService'][_0x450ffc(0x150)](_0x41ac6e),this[_0x450ffc(0x19f)](!0x1);}}['onRemoteAck'](_0x310b5c){const _0x304578=_0x53b42f;if(this[_0x304578(0x4aa)](_0x310b5c))return this[_0x304578(0x45d)]['createInstance'](x,this[_0x304578(0x348)],this[_0x304578(0x20c)],null,this[_0x304578(0x209)],this[_0x304578(0x32e)],[],this[_0x304578(0x16e)]);this[_0x304578(0x3c8)]();const _0x5eff15=this[_0x304578(0x45d)][_0x304578(0x477)]($,this[_0x304578(0x348)],this[_0x304578(0x20c)],this[_0x304578(0x209)],this['_handler']);return _0x5eff15[_0x304578(0x15c)](),_0x5eff15[_0x304578(0x331)](),_0x5eff15;}[_0x53b42f(0x3de)](_0x45a1cb){const _0x57fa6b=_0x53b42f;return this[_0x57fa6b(0x19f)](!!(_0x45a1cb!=null&&_0x45a1cb['isPermissionRej']));}[_0x53b42f(0x1d9)](){const _0x19cdf7=_0x53b42f;return this[_0x19cdf7(0x45d)]['createInstance'](B,this[_0x19cdf7(0x348)],this[_0x19cdf7(0x20c)],this[_0x19cdf7(0x32e)],this[_0x19cdf7(0x209)],this[_0x19cdf7(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){const _0x13ddb9=_0x53b42f;this[_0x13ddb9(0x16e)][_0x13ddb9(0x4a9)](this[_0x13ddb9(0x32e)]);}[_0x53b42f(0x19f)](_0x1755d9){const _0xe38c14=_0x53b42f;return this[_0xe38c14(0x45d)][_0xe38c14(0x477)](Y,this[_0xe38c14(0x348)],this[_0xe38c14(0x20c)],null,this[_0xe38c14(0x209)],this[_0xe38c14(0x16e)],_0x1755d9);}};H=K([f(0x5,h['Inject'](h[_0x53b42f(0x1ac)])),f(0x6,h['Inject'](u['RevisionService'])),f(0x7,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x8,a[_0x53b42f(0x1c5)]),f(0x9,a[_0x53b42f(0x4c8)]),f(0xa,u['ITransformService']),f(0xb,a[_0x53b42f(0x4a1)])],H);let Y=class extends X{constructor(_0x549ed2,_0x5e696a,_0x25308e,_0x128156,_0x4a09b3,_0x18704d=!0x1,_0x53377d,_0x39edde,_0x26e0d8,_0x44dc50,_0x25f7cb,_0x394d46,_0x548a22){const _0x17d25c=_0x53b42f;super(_0x549ed2,_0x5e696a,_0x25308e,_0x128156,_0x4a09b3,_0x39edde,_0x26e0d8,_0x25f7cb,_0x44dc50),d(this,_0x17d25c(0x2a7),_0x17d25c(0x3e2)),(this[_0x17d25c(0x31a)]=_0x18704d,this[_0x17d25c(0x214)]=_0x53377d,this[_0x17d25c(0x2bd)]=_0x394d46,this[_0x17d25c(0x2bb)]=_0x548a22,this[_0x17d25c(0x24d)](),this['_clearLocalCache'](),this[_0x17d25c(0x14e)]());}[_0x53b42f(0x2ed)](){return this;}[_0x53b42f(0x437)](){return this;}[_0x53b42f(0x28b)](){return this;}[_0x53b42f(0x3de)](){return this;}[_0x53b42f(0x1d9)](){return this;}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x53b42f(0x16f)](){const _0x9f25f6=_0x53b42f;this[_0x9f25f6(0x33e)][_0x9f25f6(0x319)](this['unitID'],this[_0x9f25f6(0x20c)],null,[]);}[_0x53b42f(0x24d)](){const _0x52c199=_0x53b42f;this[_0x52c199(0x31a)]?this['_notificationService'][_0x52c199(0x138)]({'title':this[_0x52c199(0x2bd)]['t']('permission.title'),'content':this[_0x52c199(0x2bd)]['t'](_0x52c199(0x38e)),'type':_0x52c199(0x150),'duration':0x0}):this['_notificationService'][_0x52c199(0x138)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x52c199(0x2bd)]['t'](_0x52c199(0x3fc)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x39e5e4=_0x53b42f;this['_permissionService'][_0x39e5e4(0x2c2)](new E['WorkbookEditablePermission'](this[_0x39e5e4(0x348)])['id'],!0x1);}};Y=K([f(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x37e)])),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a[_0x53b42f(0x4a1)]),f(0x9,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0xa,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0xb,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),f(0xc,N[_0x53b42f(0x36f)])],Y);let B=class extends X{constructor(_0x3ae6da,_0x261139,_0x489e26,_0x21feff,_0x28f62b,_0x566cdc,_0x353d8e,_0x274487,_0x108abd,_0x14b896){const _0x50360f=_0x53b42f;super(_0x3ae6da,_0x261139,_0x489e26,_0x21feff,_0x28f62b,_0x108abd,_0x14b896,_0x353d8e,_0x274487),d(this,'status',_0x50360f(0x1a5)),this[_0x50360f(0x45d)]=_0x566cdc;}[_0x53b42f(0x2ed)](_0x5dfe46){const _0x2b5618=_0x53b42f;return this[_0x2b5618(0x209)][_0x2b5618(0x1d7)](_0x5dfe46),this[_0x2b5618(0x331)](),this;}['onRemoteChangeset'](_0x3ab07a){const _0x36b7f9=_0x53b42f;throw new Error(_0x36b7f9(0x274));}['onRemoteAck'](){const _0x54b3cb=_0x53b42f;throw new Error(_0x54b3cb(0x427));}[_0x53b42f(0x3de)](){const _0xe875ff=_0x53b42f;throw new Error(_0xe875ff(0x405));}[_0x53b42f(0x1d9)](){return this;}[_0x53b42f(0x391)](){const _0x53a12b=_0x53b42f,{_injector:_0x4f455c,_pendingMutations:_0x6e3971,_awaitingChangeset:_0xaf74d6,unitID:_0x5c5b47,_handler:_0x194f78,type:_0x549adf}=this,_0x27edff=bt(_0x4f455c,_0x5c5b47,_0x549adf,_0xaf74d6,_0x6e3971,_0x194f78);return _0x27edff instanceof $?_0x27edff[_0x53a12b(0x15c)]():(_0x27edff instanceof H||_0x27edff instanceof k)&&_0x27edff['resend'](),_0x27edff;}['resend'](){const _0x1ba837=_0x53b42f;throw new Error(_0x1ba837(0x33d));}};B=K([f(0x5,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x6,h[_0x53b42f(0x295)](u['RevisionService'])),f(0x7,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x8,a[_0x53b42f(0x1c5)]),f(0x9,a['IUndoRedoService'])],B);let x=class extends X{constructor(_0x5dc55b,_0x35850d,_0x430a51,_0x5c6234,_0x85e21,_0x3801ad,_0x1bb670,_0x5d8127,_0x18c9a3,_0xb2aaba,_0x24e03a,_0x11c02f,_0xffab4f,_0x589641){const _0x15bd38=_0x53b42f;super(_0x5dc55b,_0x35850d,_0x430a51,_0x5c6234,_0x1bb670,_0x11c02f,_0xffab4f,_0x18c9a3,_0xb2aaba),d(this,_0x15bd38(0x2a7),'fetch_missing'),(this[_0x15bd38(0x458)]=_0x85e21,this['_queuedRemoteChangesets']=_0x3801ad,this[_0x15bd38(0x45d)]=_0x5d8127,this[_0x15bd38(0x42f)]=_0x24e03a,this[_0x15bd38(0x2f1)]=_0x589641);}[_0x53b42f(0x3f7)](_0x257f06){const _0x60850=_0x53b42f;try{const _0x5afdfc=[..._0x257f06,...this[_0x60850(0x36a)]],_0x139383=[this[_0x60850(0x32e)]||this[_0x60850(0x458)]]['filter'](_0x6a5945=>!!_0x6a5945);let _0x52bb38,_0x61941d;if(_0x139383[_0x60850(0x419)]){const _0xe9651f=this['_transformService'][_0x60850(0x233)](_0x5afdfc,_0x139383,!0x1);if(!u[_0x60850(0x374)](_0xe9651f))throw _0xe9651f[_0x60850(0x150)];_0x52bb38=_0xe9651f['c1Prime'],_0x61941d=_0xe9651f[_0x60850(0x15f)];}else _0x52bb38=_0x5afdfc,_0x61941d=[];let _0x31c17f=this[_0x60850(0x209)];_0x52bb38[_0x60850(0x421)](_0x4622d5=>{const _0x2580b7=_0x60850;let _0x47f15f;if(_0x31c17f[_0x2580b7(0x419)]){const _0x25df3c=this[_0x2580b7(0x2f1)][_0x2580b7(0x33b)](_0x4622d5,_0x31c17f);if(!u[_0x2580b7(0x40a)](_0x25df3c))throw _0x25df3c['error'];_0x47f15f=_0x25df3c[_0x2580b7(0x132)],_0x31c17f=_0x25df3c['m2Prime'];}else _0x47f15f=_0x4622d5;this[_0x2580b7(0x28f)](_0x47f15f);}),this['_acknowledgedAwaitingChangeset']&&this[_0x60850(0x3c8)](),this[_0x60850(0x32e)]&&_0x61941d[_0x60850(0x419)]&&(_0x61941d[0x0]['baseRev']=this[_0x60850(0x21d)]());let _0x221b76;if(this['_awaitingChangeset']&&_0x31c17f[_0x60850(0x419)]!==0x0)_0x221b76=this['_injector'][_0x60850(0x477)](H,this[_0x60850(0x348)],this[_0x60850(0x20c)],_0x61941d[0x0],_0x31c17f,this['_handler']);else{if(this[_0x60850(0x32e)]&&_0x31c17f['length']===0x0)_0x61941d[0x0][_0x60850(0x1b6)]=this[_0x60850(0x21d)](),_0x221b76=this[_0x60850(0x45d)][_0x60850(0x477)](k,this[_0x60850(0x348)],this['type'],_0x61941d[0x0],this['_handler']);else{if(_0x31c17f[_0x60850(0x419)]!==0x0){const _0x4cde74=this[_0x60850(0x45d)][_0x60850(0x477)]($,this['unitID'],this['type'],_0x31c17f,this[_0x60850(0x16e)]);_0x4cde74[_0x60850(0x15c)](),_0x221b76=_0x4cde74;}else _0x221b76=this[_0x60850(0x45d)][_0x60850(0x477)](ae,this[_0x60850(0x348)],this['type'],this[_0x60850(0x16e)]);}}return _0x221b76[_0x60850(0x331)](),_0x221b76;}catch(_0x30708d){return this[_0x60850(0x42f)][_0x60850(0x150)](_0x60850(0x439),_0x60850(0x20d),_0x30708d),this[_0x60850(0x45d)][_0x60850(0x477)](Y,this[_0x60850(0x348)],this[_0x60850(0x20c)],this[_0x60850(0x32e)],this[_0x60850(0x209)],this['_handler'],!0x1);}}[_0x53b42f(0x497)](){const _0x243b69=_0x53b42f;throw new Error(_0x243b69(0x1a9));}[_0x53b42f(0x2ed)](_0x1e03c6){const _0x498dc5=_0x53b42f;return this[_0x498dc5(0x209)][_0x498dc5(0x1d7)](_0x1e03c6),this;}[_0x53b42f(0x437)](_0x2f867b){const _0x2c7a41=_0x53b42f;return this['_queuedRemoteChangesets'][_0x2c7a41(0x1d7)](_0x2f867b),this;}[_0x53b42f(0x28b)](_0x19225f){const _0x51273e=_0x53b42f;if(this[_0x51273e(0x32e)])return this[_0x51273e(0x458)]=this[_0x51273e(0x32e)],this[_0x51273e(0x32e)]=null,this;throw new Error(_0x51273e(0x493));}[_0x53b42f(0x3de)](_0x172024){const _0x57aae8=_0x53b42f;return this[_0x57aae8(0x19f)](!!(_0x172024!=null&&_0x172024[_0x57aae8(0x395)]));}[_0x53b42f(0x1d9)](){const _0x187cde=_0x53b42f;return this[_0x187cde(0x45d)][_0x187cde(0x477)](B,this[_0x187cde(0x348)],this[_0x187cde(0x20c)],this[_0x187cde(0x32e)],this['_pendingMutations'],this[_0x187cde(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x19f)](_0x135d4f){const _0x155fa6=_0x53b42f;return this[_0x155fa6(0x45d)][_0x155fa6(0x477)](Y,this[_0x155fa6(0x348)],this[_0x155fa6(0x20c)],this[_0x155fa6(0x32e)],this[_0x155fa6(0x209)],this[_0x155fa6(0x16e)],_0x135d4f);}};x=K([f(0x7,h['Inject'](h[_0x53b42f(0x1ac)])),f(0x8,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x9,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0xa,a[_0x53b42f(0x4c8)]),f(0xb,a[_0x53b42f(0x1c5)]),f(0xc,a['IUndoRedoService']),f(0xd,u['ITransformService'])],x);function bt(_0x2bbd74,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x242142,_0x3185d6){const _0x4396d2=_0x53b42f;return _0x5ee26a&&_0x242142[_0x4396d2(0x419)]?_0x2bbd74['createInstance'](H,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x242142,_0x3185d6):_0x5ee26a?_0x2bbd74['createInstance'](k,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x3185d6):_0x242142[_0x4396d2(0x419)]?_0x2bbd74[_0x4396d2(0x477)]($,_0x1ff0c6,_0x6a0732,_0x242142,_0x3185d6):_0x2bbd74[_0x4396d2(0x477)](ae,_0x1ff0c6,_0x6a0732,_0x3185d6);}var Os=Object['defineProperty'],Ds=Object['getOwnPropertyDescriptor'],Ee=(_0x17a36b,_0x98889e,_0x388dbb,_0x280c12)=>{const _0x36ad25=_0x53b42f;for(var _0x498e79=_0x280c12>0x1?void 0x0:_0x280c12?Ds(_0x98889e,_0x388dbb):_0x98889e,_0x46fe99=_0x17a36b[_0x36ad25(0x419)]-0x1,_0x3a6922;_0x46fe99>=0x0;_0x46fe99--)(_0x3a6922=_0x17a36b[_0x46fe99])&&(_0x498e79=(_0x280c12?_0x3a6922(_0x98889e,_0x388dbb,_0x498e79):_0x3a6922(_0x498e79))||_0x498e79);return _0x280c12&&_0x498e79&&Os(_0x98889e,_0x388dbb,_0x498e79),_0x498e79;},I=(_0x35fb10,_0x108bba)=>(_0x1447ab,_0x56b8bd)=>_0x108bba(_0x1447ab,_0x56b8bd,_0x35fb10);exports[_0x53b42f(0x301)]=class extends a[_0x53b42f(0x3a5)]{constructor(_0x3c628f,_0x2fc539,_0x32a2e7){const _0x5ca534=_0x53b42f;super(),d(this,_0x5ca534(0x372),new Map()),d(this,'_entityInit$',new g['Subject']()),(this['_injector']=_0x3c628f,this[_0x5ca534(0x44f)]=_0x2fc539,this[_0x5ca534(0x49a)]=_0x32a2e7,this['_init']());}[_0x53b42f(0x4df)](){const _0x3c6a05=_0x53b42f;super[_0x3c6a05(0x4df)](),this[_0x3c6a05(0x372)][_0x3c6a05(0x421)](_0x2b2d2e=>_0x2b2d2e[_0x3c6a05(0x4df)]()),this['_entities'][_0x3c6a05(0x4de)]();}[_0x53b42f(0x1cb)](_0x114565){const _0x246466=_0x53b42f;var _0x35e70b;return(_0x35e70b=this['_entities'][_0x246466(0x3d4)](_0x114565))!=null?_0x35e70b:null;}[_0x53b42f(0x397)](_0x27150a){const _0x49e314=_0x53b42f,_0x43dbf5=this['getCollabEntity'](_0x27150a);return _0x43dbf5?g['of'](_0x43dbf5):this[_0x49e314(0x44d)]['pipe'](T[_0x49e314(0x2f0)](_0x49d478=>_0x49d478['unitID']===_0x27150a));}[_0x53b42f(0x243)](){const _0x8b8849=_0x53b42f;this[_0x8b8849(0x49a)][_0x8b8849(0x4b6)](a['UniverInstanceType'][_0x8b8849(0x164)])[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]),T['delay'](0x10))[_0x8b8849(0x492)](async _0x530004=>{const _0x23559e=_0x8b8849,_0xfda19d=_0x530004[_0x23559e(0x1f9)](),_0x5ba5e0=await this[_0x23559e(0x47c)](_0xfda19d,j['UNIVER_SHEET']);this[_0x23559e(0x372)]['set'](_0xfda19d,_0x5ba5e0);}),this[_0x8b8849(0x49a)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x8b8849(0x220)])[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]),T[_0x8b8849(0x20a)](0x10))['pipe'](T[_0x8b8849(0x2f0)](_0x5bb6de=>!_0x5bb6de[_0x8b8849(0x1f9)]()[_0x8b8849(0x19e)]('__')))[_0x8b8849(0x492)](async _0x330d97=>{const _0x2d4560=_0x8b8849,_0x318e15=_0x330d97[_0x2d4560(0x1f9)](),_0x1caeb8=await this[_0x2d4560(0x47c)](_0x318e15,j[_0x2d4560(0x220)]);this[_0x2d4560(0x372)][_0x2d4560(0x2e0)](_0x318e15,_0x1caeb8);}),g[_0x8b8849(0x221)](this[_0x8b8849(0x49a)][_0x8b8849(0x160)](a[_0x8b8849(0x142)][_0x8b8849(0x164)]),this[_0x8b8849(0x49a)][_0x8b8849(0x160)](a[_0x8b8849(0x142)][_0x8b8849(0x220)]))[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]))[_0x8b8849(0x492)](_0x3d80ad=>{const _0x369f7b=_0x8b8849,_0x24fc12=_0x3d80ad['getUnitId'](),_0x23e387=this[_0x369f7b(0x372)][_0x369f7b(0x3d4)](_0x24fc12);_0x23e387&&(_0x23e387[_0x369f7b(0x4df)](),this[_0x369f7b(0x372)][_0x369f7b(0x35b)](_0x24fc12));});}async[_0x53b42f(0x47c)](_0x59c064,_0x1136ff){const _0x308638=_0x53b42f,_0x8de595=await this['_collabSessionService'][_0x308638(0x386)](_0x59c064),_0x8f926f=this[_0x308638(0x45d)][_0x308638(0x477)](this[_0x308638(0x1d0)](_0x1136ff),_0x59c064,_0x1136ff,_0x8de595);return await _0x8f926f[_0x308638(0x433)](),this[_0x308638(0x44d)]['next'](_0x8f926f),_0x8f926f;}[_0x53b42f(0x1d0)](_0x329ba8){const _0x68a1a7=_0x53b42f;switch(_0x329ba8){case j[_0x68a1a7(0x220)]:return Ue;case j['UNIVER_SHEET']:return ye;default:throw new Error(_0x68a1a7(0x1f4)+_0x329ba8);}}},exports[_0x53b42f(0x301)]=Ee([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],exports[_0x53b42f(0x301)]),I(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x1,h['Inject'](exports[_0x53b42f(0x14a)])),I(0x2,a[_0x53b42f(0x390)])],exports[_0x53b42f(0x301)]);let me=class extends a[_0x53b42f(0x3a5)]{constructor(_0xc89388,_0x574aab,_0x4cd9a8,_0x3268b8,_0x7f74c0,_0xf40171,_0x2cf67f,_0xa83f96,_0x5d76b3,_0x293bad,_0x50eac3,_0x5b87bb,_0x50f5e9){const _0x2f0702=_0x53b42f;super(),d(this,'_state$',new g[(_0x2f0702(0x28a))](null)),d(this,_0x2f0702(0x48f),this[_0x2f0702(0x3bb)]['asObservable']()),d(this,_0x2f0702(0x379)),d(this,_0x2f0702(0x3aa),!0x1),d(this,_0x2f0702(0x183),this[_0x2f0702(0x48f)][_0x2f0702(0x454)](T['map'](_0x3a4c87=>_0x3a4c87?_0x3a4c87['status']:w[_0x2f0702(0x1b4)]),T['shareReplay'](0x1))),d(this,'_transitionLocked',!0x1),d(this,_0x2f0702(0x4cf),[]),(this[_0x2f0702(0x348)]=_0xc89388,this['_type']=_0x574aab,this[_0x2f0702(0x3e8)]=_0x4cd9a8,this[_0x2f0702(0x45d)]=_0x3268b8,this[_0x2f0702(0x33e)]=_0x7f74c0,this['_compressMutationService']=_0xf40171,this[_0x2f0702(0x2bd)]=_0x2cf67f,this['_revisionService']=_0xa83f96,this[_0x2f0702(0x42f)]=_0x5d76b3,this[_0x2f0702(0x188)]=_0x293bad,this[_0x2f0702(0x23f)]=_0x50eac3,this[_0x2f0702(0x214)]=_0x5b87bb,this['_singleActiveUnitService']=_0x50f5e9);}get[_0x53b42f(0x266)](){const _0x240381=_0x53b42f;return this[_0x240381(0x379)];}async[_0x53b42f(0x433)](){const _0x4285e4=_0x53b42f;if(this[_0x4285e4(0x266)])throw new Error(_0x4285e4(0x340));await this[_0x4285e4(0x243)]();}['pauseCollaboration'](){const _0x319d1c=_0x53b42f;return this[_0x319d1c(0x3aa)]=!0x0,a[_0x319d1c(0x1bb)](()=>{const _0x254400=_0x319d1c;this[_0x254400(0x3aa)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x37a214){const _0x327180=_0x53b42f;this[_0x327180(0x379)]=_0x37a214,this[_0x327180(0x3bb)][_0x327180(0x414)](_0x37a214);}async['_init'](){const _0x44f72d=_0x53b42f;var _0x3e2cf2;return this[_0x44f72d(0x141)](await this['_createInitialState']()),this[_0x44f72d(0x346)]&&((_0x3e2cf2=this[_0x44f72d(0x346)])==null||_0x3e2cf2[_0x44f72d(0x482)](this[_0x44f72d(0x348)]),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x44f72d(0x348)])[_0x44f72d(0x492)](_0x2ea3b9=>{const _0x408e0e=_0x44f72d;this[_0x408e0e(0x42f)][_0x408e0e(0x240)]('[CollaborationEntity]',_0x408e0e(0x4c1),_0x2ea3b9),_0x2ea3b9===Et[_0x408e0e(0x34a)]?(this[_0x408e0e(0x23f)][_0x408e0e(0x138)]({'content':this[_0x408e0e(0x2bd)]['t'](_0x408e0e(0x139)),'type':oe[_0x408e0e(0x3c9)][_0x408e0e(0x376)]}),this[_0x408e0e(0x214)][_0x408e0e(0x2c2)](new E[(_0x408e0e(0x247))](this[_0x408e0e(0x348)])['id'],!0x1)):this[_0x408e0e(0x214)][_0x408e0e(0x2c2)](new E['WorkbookEditablePermission'](this[_0x408e0e(0x348)])['id'],!0x0);})))),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this['_session'][_0x44f72d(0x222)][_0x44f72d(0x492)](_0x35438d=>{const _0x3924b9=_0x44f72d;_0x35438d===W[_0x3924b9(0x4c3)]?this[_0x3924b9(0x1e0)]():_0x35438d===W[_0x3924b9(0x1b4)]&&this[_0x3924b9(0x435)]();}))),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this[_0x44f72d(0x3e8)][_0x44f72d(0x255)][_0x44f72d(0x492)](_0x3bf767=>{const _0x3a7121=_0x44f72d;try{switch(_0x3bf767[_0x3a7121(0x428)]){case u[_0x3a7121(0x3fe)][_0x3a7121(0x463)]:{this[_0x3a7121(0x1d2)](u[_0x3a7121(0x134)](_0x3bf767[_0x3a7121(0x169)]));break;}case u[_0x3a7121(0x3fe)][_0x3a7121(0x45a)]:{this[_0x3a7121(0x3b1)](_0x3bf767[_0x3a7121(0x169)]);break;}case u[_0x3a7121(0x3fe)]['CHANGESET_REJ']:{this[_0x3a7121(0x489)]();break;}case u['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x3a7121(0x314)](_0x3bf767[_0x3a7121(0x169)][_0x3a7121(0x3d8)][_0x3a7121(0x1af)](_0x50e9f6=>u[_0x3a7121(0x134)](_0x50e9f6)));break;}case u['CollaborationEvent']['PERMISSION_REJ']:this[_0x3a7121(0x489)]({'isPermissionRej':!0x0});}}catch(_0x17beba){throw console[_0x3a7121(0x150)](_0x3a7121(0x28d),_0x17beba),_0x17beba;}}))),this[_0x44f72d(0x379)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x53b42f(0x45c)](){const _0x5803f6=_0x53b42f;if(this[_0x5803f6(0x144)])throw new Error(_0x5803f6(0x3ee));this[_0x5803f6(0x144)]=!0x0;}['_onLocalMutation'](_0xc2f1df){const _0x5d0537=_0x53b42f;this[_0x5d0537(0x45c)](),this['_updateState'](this['_state'][_0x5d0537(0x2ed)](_0xc2f1df)),this[_0x5d0537(0x3b7)]();}[_0x53b42f(0x1d2)](_0x44ba8d){const _0x1aaaac=_0x53b42f;if(!(_0x44ba8d[_0x1aaaac(0x306)]<=this[_0x1aaaac(0x311)][_0x1aaaac(0x2af)](this[_0x1aaaac(0x348)]))){if(this[_0x1aaaac(0x3aa)]){this[_0x1aaaac(0x4cf)][_0x1aaaac(0x1d7)](_0x44ba8d);return;}this[_0x1aaaac(0x217)](_0x44ba8d);}}[_0x53b42f(0x23e)](){const _0x3b9d06=_0x53b42f;this['_remoteChangesetQueue'][_0x3b9d06(0x421)](_0x44e988=>this[_0x3b9d06(0x217)](_0x44e988)),this[_0x3b9d06(0x4cf)]=[];}[_0x53b42f(0x217)](_0x1be7a8){const _0x126faa=_0x53b42f,_0x46b3ec=this['_compressMutationService'][_0x126faa(0x45e)][_0x126faa(0x355)](this[_0x126faa(0x2d5)][_0x126faa(0x45e)][_0x126faa(0x3b9)]()[_0x126faa(0x248)])(_0x1be7a8[_0x126faa(0x21b)],null)||_0x1be7a8['mutations'],_0x37d790={..._0x1be7a8,'mutations':_0x46b3ec};this['_lockTransition'](),this['_updateState'](this['_state'][_0x126faa(0x437)](_0x37d790)),this['_unlockTransition']();}['_onRemoteACK'](_0xf5f13c){const _0x5fdd64=_0x53b42f;this[_0x5fdd64(0x45c)](),this[_0x5fdd64(0x141)](this[_0x5fdd64(0x379)]['onRemoteAck'](_0xf5f13c)),this['_unlockTransition']();}['_onRemoteRejected'](_0x5135b5){const _0x551ec9=_0x53b42f;this['_lockTransition'](),this[_0x551ec9(0x141)](this['_state'][_0x551ec9(0x3de)](_0x5135b5)),this[_0x551ec9(0x3b7)]();}['_onFetchMissResult'](_0x1e757b){const _0x2d912e=_0x53b42f;if(!(this[_0x2d912e(0x379)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x208178=_0x1e757b[_0x2d912e(0x1af)](_0x10266e=>{const _0x4c888d=_0x2d912e,_0x48710f=this[_0x4c888d(0x2d5)]['interceptor']['fetchThroughInterceptors'](this[_0x4c888d(0x2d5)][_0x4c888d(0x45e)][_0x4c888d(0x3b9)]()[_0x4c888d(0x248)])(_0x10266e['mutations'],null)||_0x10266e[_0x4c888d(0x21b)];return{..._0x10266e,'mutations':_0x48710f};});this[_0x2d912e(0x45c)](),this['_updateState'](this[_0x2d912e(0x379)]['onMissedChangesetFetched'](_0x208178)),this['_unlockTransition']();}[_0x53b42f(0x435)](){const _0x237269=_0x53b42f;this[_0x237269(0x45c)](),this[_0x237269(0x141)](this[_0x237269(0x379)][_0x237269(0x1d9)]()),this['_unlockTransition']();}[_0x53b42f(0x1e0)](){const _0x1d6327=_0x53b42f;this[_0x1d6327(0x45c)](),this[_0x1d6327(0x141)](this[_0x1d6327(0x379)]['toggleOnline']()),this['_unlockTransition']();}async['_createInitialState'](){return new Promise(_0x3d5f57=>{const _0xf129cf=_0xe052;this['_session']['sessionStatus$'][_0xf129cf(0x454)](T['take'](0x1))[_0xf129cf(0x492)](async _0x342e49=>{_0x3d5f57(await this['_createInitialStateImpl'](_0x342e49===W['ONLINE']));});});}['_createHandler'](){const _0x9ea427=_0x53b42f,_0x31722e=this[_0x9ea427(0x348)];return{'onStateChange':(_0x198bcf,_0x259feb)=>{const _0x4337e7=_0x9ea427;if(_0x198bcf!==this[_0x4337e7(0x379)])throw new Error(_0x4337e7(0x2ba)+_0x198bcf['status']+_0x4337e7(0x3fd)+_0x259feb[_0x4337e7(0x2a7)]+'\x0aCurrent:\x20'+this[_0x4337e7(0x379)][_0x4337e7(0x2a7)]);this['_updateState'](_0x259feb);},'onSendChangeset':_0x382907=>{const _0x407f92=_0x9ea427,_0xd4ffab={'eventID':u['CollaborationEvent'][_0x407f92(0x315)],'data':{'unitID':_0x382907['unitID'],'unitType':this[_0x407f92(0x2fa)],'changeset':_0x382907,'memberID':this[_0x407f92(0x3e8)][_0x407f92(0x1b1)]()}};this[_0x407f92(0x3e8)][_0x407f92(0x279)](_0xd4ffab,this['unitID']);},'onMissingChangesets':({from:_0xd7f2e6,to:_0x541a6d})=>{const _0x45a022=_0x9ea427;this[_0x45a022(0x42f)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0xd7f2e6+_0x45a022(0x1e3)+_0x541a6d);const _0x4fe19f={'eventID':u[_0x45a022(0x3fe)][_0x45a022(0x2c9)],'data':{'unitID':_0x31722e,'unitType':this['_type'],'from':_0xd7f2e6,'to':_0x541a6d}};this[_0x45a022(0x3e8)][_0x45a022(0x279)](_0x4fe19f,this['unitID']);}};}async[_0x53b42f(0x212)](_0x22df77){const _0x35b7f7=_0x53b42f;var _0x292f3b,_0xa9eb41;const _0x4a72cb=await this[_0x35b7f7(0x33e)][_0x35b7f7(0x3ea)](this[_0x35b7f7(0x348)]),_0x3a6422=(_0x292f3b=_0x4a72cb==null?void 0x0:_0x4a72cb[_0x35b7f7(0x21b)])!=null?_0x292f3b:[],_0x397dfe=(_0xa9eb41=_0x4a72cb==null?void 0x0:_0x4a72cb['awaitingChangeset'])!=null?_0xa9eb41:null,_0x53a027=this['unitID'];try{this['_replayCachedMutations'](_0x397dfe,_0x3a6422);}catch(_0x3c62f2){this['_logService'][_0x35b7f7(0x150)](_0x3c62f2);}const _0x297c5f=this['_createHandler']();if(_0x22df77){const _0x10f22e=bt(this[_0x35b7f7(0x45d)],_0x53a027,this[_0x35b7f7(0x2fa)],_0x397dfe,_0x3a6422,_0x297c5f);return _0x10f22e instanceof $?_0x10f22e[_0x35b7f7(0x15c)]():(_0x10f22e instanceof H||_0x10f22e instanceof k)&&_0x10f22e[_0x35b7f7(0x497)](),_0x10f22e;}return this[_0x35b7f7(0x45d)][_0x35b7f7(0x477)](B,_0x53a027,this[_0x35b7f7(0x2fa)],_0x397dfe,_0x3a6422,_0x297c5f);}['_replayCachedMutations'](_0x30a387,_0x13add7){const _0x3f3339=_0x53b42f;var _0x553a7e,_0x5535ef;const _0x2603dc=this[_0x3f3339(0x2d5)][_0x3f3339(0x45e)][_0x3f3339(0x355)](this['_compressMutationService'][_0x3f3339(0x45e)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x553a7e=_0x2603dc((_0x30a387==null?void 0x0:_0x30a387[_0x3f3339(0x21b)])||[],null))==null||_0x553a7e[_0x3f3339(0x421)](_0x51d8de=>this['_commandService'][_0x3f3339(0x1ee)](_0x51d8de['id'],_0x51d8de['params'])),(_0x5535ef=_0x2603dc(_0x13add7||[],null))==null||_0x5535ef[_0x3f3339(0x421)](_0x472e47=>this[_0x3f3339(0x188)][_0x3f3339(0x1ee)](_0x472e47['id'],_0x472e47[_0x3f3339(0x17b)]));}};me=Ee([I(0x3,h[_0x53b42f(0x295)](h['Injector'])),I(0x4,h['Inject'](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x2b2)])),I(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u['RevisionService'])),I(0x8,a[_0x53b42f(0x4c8)]),I(0x9,a['ICommandService']),I(0xa,N[_0x53b42f(0x288)]),I(0xb,a[_0x53b42f(0x37e)]),I(0xc,h[_0x53b42f(0x420)](pe))],me);let Ue=class extends me{constructor(_0x1c9596,_0x5c741f,_0x1d06c9,_0x9261f9,_0x137d91,_0x1fa4dd,_0x38dbb3,_0x12f52a,_0x543a69,_0x51bf8a,_0x3dba87,_0x3c4c95,_0x7c18d7,_0x4b71ad,_0x15c8f3,_0x5cbe71,_0x2ed583){const _0x53d4b4=_0x53b42f;super(_0x1c9596,_0x5c741f,_0x1d06c9,_0x9261f9,_0x137d91,_0x1fa4dd,_0x38dbb3,_0x12f52a,_0x7c18d7,_0x4b71ad,_0x15c8f3,_0x5cbe71,_0x2ed583),this[_0x53d4b4(0x348)]=_0x1c9596,this[_0x53d4b4(0x20c)]=_0x5c741f,this[_0x53d4b4(0x140)]=_0x1d06c9,this[_0x53d4b4(0x2ae)]=_0x543a69,this[_0x53d4b4(0x47b)]=_0x51bf8a,this[_0x53d4b4(0x384)]=_0x3dba87,this[_0x53d4b4(0x41f)]=_0x3c4c95;}[_0x53b42f(0x17d)](){const _0x31bfbb=_0x53b42f,_0x81de06=super[_0x31bfbb(0x17d)]();return _0x81de06['onTransformIME']=_0x12dca2=>this[_0x31bfbb(0x47b)][_0x31bfbb(0x3ec)](_0x12dca2),_0x81de06[_0x31bfbb(0x1cd)]=_0x133f09=>this[_0x31bfbb(0x384)][_0x31bfbb(0x438)](_0x133f09),_0x81de06[_0x31bfbb(0x417)]=_0x49771c=>this[_0x31bfbb(0x41f)][_0x31bfbb(0x2cb)](_0x49771c),_0x81de06[_0x31bfbb(0x31f)]=_0x379143=>this[_0x31bfbb(0x47b)][_0x31bfbb(0x168)](_0x379143),_0x81de06;}async[_0x53b42f(0x243)](){const _0x550cf1=_0x53b42f,_0x42114a=await super['_init']();return this[_0x550cf1(0x2ae)][_0x550cf1(0x351)]['pipe'](g[_0x550cf1(0x436)](this['dispose$']))[_0x550cf1(0x492)](_0x1b4b30=>{const _0x579482=_0x550cf1;if(_0x1b4b30==null)return;const {unitId:_0x1f20cd,redoState:_0x3667c3,commandId:_0x498c1b}=_0x1b4b30;if(_0x1f20cd!==this[_0x579482(0x348)])return;const _0xf55923={'id':_0x498c1b,'type':a['CommandType'][_0x579482(0x1d3)],'params':{'unitId':_0x1f20cd,'actions':_0x3667c3[_0x579482(0x2c1)],'textRanges':null}};this[_0x579482(0x170)](_0xf55923);}),_0x42114a;}};Ue=Ee([I(0x3,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x4,h['Inject'](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x2b2)])),I(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),I(0x8,h[_0x53b42f(0x295)](M[_0x53b42f(0x30a)])),I(0x9,h[_0x53b42f(0x295)](ve)),I(0xa,h['Inject'](ge)),I(0xb,h[_0x53b42f(0x295)](Fe)),I(0xc,a[_0x53b42f(0x4c8)]),I(0xd,a[_0x53b42f(0x1c5)]),I(0xe,N[_0x53b42f(0x288)]),I(0xf,a['IPermissionService']),I(0x10,h[_0x53b42f(0x420)](pe))],Ue);let ye=class extends me{constructor(_0x45f799,_0x3bdacc,_0x446359,_0x10eedc,_0x2bdcb1,_0xe0a6c2,_0x33bc32,_0xb17beb,_0x5bee76,_0xcb1c90,_0x56d450,_0x1d3694,_0x262bd8,_0x4360e0){const _0x205814=_0x53b42f;super(_0x45f799,_0x3bdacc,_0x446359,_0x10eedc,_0x2bdcb1,_0xe0a6c2,_0x33bc32,_0xb17beb,_0xcb1c90,_0x56d450,_0x1d3694,_0x262bd8,_0x4360e0),this[_0x205814(0x348)]=_0x45f799,this['type']=_0x3bdacc,this['session']=_0x446359,this[_0x205814(0x21e)]=_0x5bee76;}['_createHandler'](){const _0x7d4342=_0x53b42f,_0x2a4e99=super['_createHandler']();return _0x2a4e99['onTransformSelections']=_0xc550af=>this[_0x7d4342(0x21e)][_0x7d4342(0x438)](_0xc550af),_0x2a4e99;}async[_0x53b42f(0x243)](){const _0x39a605=_0x53b42f,_0x277a2b=await super['_init']();return this[_0x39a605(0x1e9)](this[_0x39a605(0x188)]['onCommandExecuted']((_0x5955da,_0xdb43ec)=>{const _0x4d1370=_0x39a605;if(_0x5955da[_0x4d1370(0x20c)]!==a[_0x4d1370(0x2b8)][_0x4d1370(0x1d3)]||_0xdb43ec!=null&&_0xdb43ec[_0x4d1370(0x19b)]||_0xdb43ec!=null&&_0xdb43ec[_0x4d1370(0x43b)])return;const _0x4b196a=_0x5955da[_0x4d1370(0x17b)];if((_0x4b196a==null?void 0x0:_0x4b196a[_0x4d1370(0x21a)])!==this[_0x4d1370(0x348)])return;const _0x5a7a7a=_0x5955da,_0x352fb0=this[_0x4d1370(0x2d5)][_0x4d1370(0x45e)]['fetchThroughInterceptors'](this[_0x4d1370(0x2d5)][_0x4d1370(0x45e)][_0x4d1370(0x3b9)]()[_0x4d1370(0x349)])([_0x5a7a7a],null)||[_0x5a7a7a];this[_0x4d1370(0x170)](_0x352fb0[0x0]);})),_0x277a2b;}};ye=Ee([I(0x3,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x4,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u['CompressMutationService'])),I(0x6,h['Inject'](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),I(0x8,h[_0x53b42f(0x295)](fe)),I(0x9,a['ILogService']),I(0xa,a[_0x53b42f(0x1c5)]),I(0xb,N[_0x53b42f(0x288)]),I(0xc,a[_0x53b42f(0x37e)]),I(0xd,h[_0x53b42f(0x420)](pe))],ye);const et=[_0x53b42f(0x224),'jiqing500','verdancy600',_0x53b42f(0x20f),_0x53b42f(0x44b),_0x53b42f(0x4ac)];class Ve extends a[_0x53b42f(0x18e)]{constructor(){const _0x2bda24=_0x53b42f;super(...arguments),d(this,_0x2bda24(0x16b),new Map()),d(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xddd9ab){const _0x1e21da=_0x53b42f;if(this[_0x1e21da(0x16b)][_0x1e21da(0x378)](_0xddd9ab))return this['_assignedColors'][_0x1e21da(0x3d4)](_0xddd9ab);const _0x2f056a=et[this['_colorIndex']];return this[_0x1e21da(0x443)]=(this[_0x1e21da(0x443)]+0x1)%et[_0x1e21da(0x419)],this['_assignedColors'][_0x1e21da(0x2e0)](_0xddd9ab,_0x2f056a),_0x2f056a;}}var ws=Object[_0x53b42f(0x38a)],Ls=Object[_0x53b42f(0x2a8)],Ps=(_0x366b2a,_0x4ea6bd,_0x4124a5,_0x3fe4d1)=>{const _0x4be10b=_0x53b42f;for(var _0x5b648b=_0x3fe4d1>0x1?void 0x0:_0x3fe4d1?Ls(_0x4ea6bd,_0x4124a5):_0x4ea6bd,_0x396d48=_0x366b2a[_0x4be10b(0x419)]-0x1,_0xa368b4;_0x396d48>=0x0;_0x396d48--)(_0xa368b4=_0x366b2a[_0x396d48])&&(_0x5b648b=(_0x3fe4d1?_0xa368b4(_0x4ea6bd,_0x4124a5,_0x5b648b):_0xa368b4(_0x5b648b))||_0x5b648b);return _0x3fe4d1&&_0x5b648b&&ws(_0x4ea6bd,_0x4124a5,_0x5b648b),_0x5b648b;},q=(_0x32ad99,_0x38ef02)=>(_0x211579,_0x1dd727)=>_0x38ef02(_0x211579,_0x1dd727,_0x32ad99);function _0xe052(_0x99e822,_0x2a01ec){const _0x3fcd71=_0x3fcd();return _0xe052=function(_0xe052ad,_0x7319f3){_0xe052ad=_0xe052ad-0x131;let _0x5befef=_0x3fcd71[_0xe052ad];return _0x5befef;},_0xe052(_0x99e822,_0x2a01ec);}const Us=0x12c,ys=0x64,Ms=()=>{let _0x1fa06b=[],_0x2ff4ba=!0x1;return _0x1afa47=>{_0x1fa06b['push'](_0x1afa47),_0x2ff4ba||(_0x2ff4ba=!0x0,setTimeout(()=>{_0x1fa06b['forEach'](_0x15a0f4=>_0x15a0f4()),_0x1fa06b=[],_0x2ff4ba=!0x1;}));};};let Me=class extends a[_0x53b42f(0x3a5)]{constructor(_0x2510e6,_0x5730aa,_0x207a14,_0x2ef029,_0xa2ca54,_0x1af9cd,_0x1aff88,_0x278355){const _0x39eca4=_0x53b42f;super(),d(this,_0x39eca4(0x4e5),!0x1),d(this,_0x39eca4(0x243),!0x1),d(this,_0x39eca4(0x210),new g[(_0x39eca4(0x28a))](new Map())),d(this,_0x39eca4(0x199),this[_0x39eca4(0x210)][_0x39eca4(0x1d6)]()),d(this,_0x39eca4(0x22e),new g[(_0x39eca4(0x28a))]([])),d(this,_0x39eca4(0x1f0),this[_0x39eca4(0x22e)][_0x39eca4(0x454)](g[_0x39eca4(0x228)](Us))),d(this,'_updateLocalCursor',He((_0x258fbe,_0x1153c7)=>{const _0x4f3255=_0x39eca4,_0x2facae={'eventID':u[_0x4f3255(0x3fe)][_0x4f3255(0x4e1)],'data':{'unitID':this[_0x4f3255(0x348)],'memberID':this[_0x4f3255(0x3e8)][_0x4f3255(0x1b1)](),'selection':Ye[_0x4f3255(0x2ce)](_0x258fbe,_0x1153c7[_0x4f3255(0x478)])}};this[_0x4f3255(0x3e8)][_0x4f3255(0x279)](_0x2facae,this[_0x4f3255(0x348)]);},ys)),(this[_0x39eca4(0x348)]=_0x2510e6,this['_session']=_0x5730aa,this['_injector']=_0x207a14,this['_colorAssignService']=_0x2ef029,this['_memberService']=_0xa2ca54,this[_0x39eca4(0x49a)]=_0x1af9cd,this[_0x39eca4(0x188)]=_0x1aff88,this[_0x39eca4(0x179)]=_0x278355);}get[_0x53b42f(0x37b)](){const _0x9d66a4=_0x53b42f;return this[_0x9d66a4(0x210)][_0x9d66a4(0x47e)]();}get[_0x53b42f(0x34e)](){const _0x119a60=_0x53b42f;return this[_0x119a60(0x22e)][_0x119a60(0x47e)]();}[_0x53b42f(0x4df)](){const _0x2b3395=_0x53b42f;super[_0x2b3395(0x4df)](),this[_0x2b3395(0x210)]['next'](new Map()),this[_0x2b3395(0x210)][_0x2b3395(0x146)](),this[_0x2b3395(0x22e)][_0x2b3395(0x414)]([]),this['_roomMembers$']['complete']();}[_0x53b42f(0x433)](){const _0x1d7f32=_0x53b42f;this[_0x1d7f32(0x243)]||(this[_0x1d7f32(0x243)]=!0x0,this[_0x1d7f32(0x3e8)]['sessionStatus$'][_0x1d7f32(0x454)](g[_0x1d7f32(0x436)](this[_0x1d7f32(0x35f)]))['subscribe'](_0x1180bc=>{const _0x24fe50=_0x1d7f32;_0x1180bc===W[_0x24fe50(0x4c3)]?this[_0x24fe50(0x1e0)]():this[_0x24fe50(0x435)]();}),this['_session'][_0x1d7f32(0x255)][_0x1d7f32(0x454)](g[_0x1d7f32(0x436)](this[_0x1d7f32(0x35f)]))[_0x1d7f32(0x492)](_0x3eaf5c=>{const _0x2cc510=_0x1d7f32,_0x2d834c=_0x3eaf5c[_0x2cc510(0x428)];_0x2d834c===u[_0x2cc510(0x3fe)][_0x2cc510(0x4e1)]&&this[_0x2cc510(0x4b7)](_0x3eaf5c),_0x2d834c===u[_0x2cc510(0x3fe)][_0x2cc510(0x177)]&&this[_0x2cc510(0x213)](_0x3eaf5c);}),this[_0x1d7f32(0x1b0)](),this[_0x1d7f32(0x1e9)](this[_0x1d7f32(0x188)][_0x1d7f32(0x43e)](_0x3356ce=>{const _0x2c4235=_0x1d7f32;if(this[_0x2c4235(0x4e5)]&&_0x3356ce['id']===E[_0x2c4235(0x263)]['id']&&_0x3356ce['params']['unitId']===this[_0x2c4235(0x348)]){const _0x141e0c=_0x3356ce['params'];this['_updateLocalCursor'](_0x141e0c[_0x2c4235(0x37a)],_0x141e0c[_0x2c4235(0x252)][0x0]);}})));}[_0x53b42f(0x4b7)](_0x272c8b){const _0x16d2a7=_0x53b42f;var _0x2441ef,_0x5c689a;const {memberID:_0x1a0b5e,selection:_0x5b23d6}=_0x272c8b[_0x16d2a7(0x169)],{sheetName:_0x2df720,range:_0x155d1f}=Ye[_0x16d2a7(0x383)](_0x5b23d6),_0x3194ec={'name':(_0x5c689a=(_0x2441ef=this[_0x16d2a7(0x4ae)][_0x16d2a7(0x4b5)](this['unitID'],_0x1a0b5e))==null?void 0x0:_0x2441ef[_0x16d2a7(0x462)])!=null?_0x5c689a:_0x16d2a7(0x17f),'range':this[_0x16d2a7(0x2de)](_0x2df720,_0x155d1f),'sheetID':_0x2df720,'color':this[_0x16d2a7(0x1a8)]['assignAColorForMemberID'](_0x1a0b5e),'selection':_0x5b23d6},_0x47bd81=this[_0x16d2a7(0x37b)];_0x47bd81['set'](_0x1a0b5e,_0x3194ec),this['_cursorInfo$'][_0x16d2a7(0x414)](_0x47bd81);}['_onCursorDelete'](_0x24a2a1){const _0x1b4bf6=_0x53b42f,{memberID:_0x148b93}=_0x24a2a1[_0x1b4bf6(0x169)],_0x523150=this[_0x1b4bf6(0x37b)];_0x523150[_0x1b4bf6(0x35b)](_0x148b93),this[_0x1b4bf6(0x210)]['next'](_0x523150);}[_0x53b42f(0x2de)](_0x4fa6cb,_0x898b21){const _0x30653f=_0x53b42f;var _0x31d2e1,_0x29fa90;const _0x193861=(_0x29fa90=(_0x31d2e1=this[_0x30653f(0x49a)][_0x30653f(0x359)](this[_0x30653f(0x348)]))==null?void 0x0:_0x31d2e1[_0x30653f(0x475)](_0x4fa6cb))==null?void 0x0:_0x29fa90[_0x30653f(0x2c3)]();return(_0x193861==null?void 0x0:_0x193861['find'](_0x38fdb2=>a[_0x30653f(0x471)][_0x30653f(0x46c)](_0x38fdb2,_0x898b21)))||_0x898b21;}[_0x53b42f(0x1b0)](){const _0x88344d=_0x53b42f,_0x1a2397=new a[(_0x88344d(0x4a8))](),_0x28af22=Ms(),_0x51071a=()=>{const _0x1c1e94=_0x88344d;_0x1a2397[_0x1c1e94(0x4df)]();const _0x44bcb3=(_0xf9b00e,_0x47f5ac,_0xd0ae07,_0x3ff46a)=>{const _0x25c346=_0x1c1e94;let _0x551f77=[];switch(_0xf9b00e['id']){case E[_0x25c346(0x2a5)][_0x25c346(0x282)]:{_0x551f77=E[_0x25c346(0x2b6)](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x18b)]:{_0x551f77=E[_0x25c346(0x459)](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x4c2)]:{_0x551f77=E[_0x25c346(0x344)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x399)]:{_0x551f77=E[_0x25c346(0x2d2)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x287)]:{_0x551f77=E['handleInsertRangeMoveRight'](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x2f8)]:{_0x551f77=E[_0x25c346(0x16c)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x232)]:{_0x551f77=E[_0x25c346(0x377)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x4c9)]:{_0x551f77=E[_0x25c346(0x147)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)]['RemoveRowCommandId']:{_0x551f77=E[_0x25c346(0x432)](_0xf9b00e,_0x3ff46a);break;}}const _0x5b7999=E['runRefRangeMutations'](_0x551f77,_0x3ff46a),_0x18ba8e=this[_0x25c346(0x37b)][_0x25c346(0x3d4)](_0x47f5ac);if(_0x18ba8e&&_0x5b7999){const _0x356af6={..._0x18ba8e,'range':_0x5b7999};this[_0x25c346(0x37b)][_0x25c346(0x2e0)](_0x47f5ac,_0x356af6),_0x28af22(()=>{const _0x28d0ad=_0x25c346,_0x12a5d8=this[_0x28d0ad(0x179)]['registerRefRange'](_0x5b7999,_0xd3a816=>(_0x12a5d8['dispose'](),_0x44bcb3(_0xd3a816,_0x47f5ac,_0xd0ae07,_0x5b7999)));_0x1a2397[_0x28d0ad(0x1e5)](_0x12a5d8);});}return{'redos':[],'undos':[]};};this[_0x1c1e94(0x37b)][_0x1c1e94(0x421)]((_0x2190ec,_0x77411c)=>{const _0x34045b=_0x1c1e94,{range:_0x1b5942,sheetID:_0x4a609f}=_0x2190ec,_0x54153=this[_0x34045b(0x179)][_0x34045b(0x2fc)](_0x1b5942,_0x176d22=>(_0x54153[_0x34045b(0x4df)](),_0x44bcb3(_0x176d22,_0x77411c,_0x4a609f,_0x1b5942)));_0x1a2397[_0x34045b(0x1e5)](_0x54153);});};this[_0x88344d(0x1e9)](a[_0x88344d(0x1bb)](this['_cursorInfo$'][_0x88344d(0x492)](()=>{_0x51071a();})));}[_0x53b42f(0x1e0)](){const _0x1e5bd1=_0x53b42f;var _0x476aee,_0x422403;if(this[_0x1e5bd1(0x4e5)]=!0x0,((_0x476aee=this['_univerInstanceService'][_0x1e5bd1(0x41e)]())==null?void 0x0:_0x476aee[_0x1e5bd1(0x1f9)]())!==this['unitID'])return;const _0x1fa637=(_0x422403=this[_0x1e5bd1(0x45d)]['get'](E[_0x1e5bd1(0x448)])[_0x1e5bd1(0x369)]())==null?void 0x0:_0x422403[0x0],_0x462fa6=this[_0x1e5bd1(0x49a)][_0x1e5bd1(0x171)](a[_0x1e5bd1(0x142)][_0x1e5bd1(0x164)])['getActiveSheet']();_0x1fa637&&_0x462fa6&&this['_updateLocalCursor'](_0x462fa6['getSheetId'](),_0x1fa637);}[_0x53b42f(0x435)](){const _0x3f9623=_0x53b42f;this[_0x3f9623(0x4e5)]=!0x1;}};Me=Ps([q(0x2,h[_0x53b42f(0x295)](h['Injector'])),q(0x3,h[_0x53b42f(0x295)](Ve)),q(0x4,h['Inject'](G)),q(0x5,a[_0x53b42f(0x390)]),q(0x6,a[_0x53b42f(0x1c5)]),q(0x7,h[_0x53b42f(0x295)](E[_0x53b42f(0x16a)]))],Me);var Ns=Object[_0x53b42f(0x38a)],As=Object[_0x53b42f(0x2a8)],js=(_0x361f6c,_0x328796,_0x3cd9b8,_0x4150eb)=>{const _0x1bfa5f=_0x53b42f;for(var _0x4f1179=_0x4150eb>0x1?void 0x0:_0x4150eb?As(_0x328796,_0x3cd9b8):_0x328796,_0xcb57ae=_0x361f6c[_0x1bfa5f(0x419)]-0x1,_0x2595e6;_0xcb57ae>=0x0;_0xcb57ae--)(_0x2595e6=_0x361f6c[_0xcb57ae])&&(_0x4f1179=(_0x4150eb?_0x2595e6(_0x328796,_0x3cd9b8,_0x4f1179):_0x2595e6(_0x4f1179))||_0x4f1179);return _0x4150eb&&_0x4f1179&&Ns(_0x328796,_0x3cd9b8,_0x4f1179),_0x4f1179;},V=(_0x29d5bb,_0x13b3d6)=>(_0x58c7e6,_0x34565a)=>_0x13b3d6(_0x58c7e6,_0x34565a,_0x29d5bb);const $s=0x12c,Hs=0x64;let Ne=class extends a[_0x53b42f(0x3a5)]{constructor(_0x13dbb9,_0x3790ff,_0x4f0694,_0x2b8760,_0x186c42,_0xd7f7ea,_0x220261,_0x3b9c60,_0x44847a){const _0xa6d173=_0x53b42f;super(),d(this,_0xa6d173(0x4e5),!0x1),d(this,_0xa6d173(0x243),!0x1),d(this,_0xa6d173(0x210),new g[(_0xa6d173(0x28a))](new Map())),d(this,'cursorInfo$',this[_0xa6d173(0x210)][_0xa6d173(0x1d6)]()),d(this,_0xa6d173(0x22e),new g[(_0xa6d173(0x28a))]([])),d(this,_0xa6d173(0x1f0),this[_0xa6d173(0x22e)][_0xa6d173(0x454)](g[_0xa6d173(0x228)]($s))),d(this,_0xa6d173(0x3d0),He(_0x318bbb=>{const _0x5b7d4c=_0xa6d173,_0x172b84={'eventID':u[_0x5b7d4c(0x3fe)][_0x5b7d4c(0x4e1)],'data':{'unitID':this[_0x5b7d4c(0x348)],'memberID':this['_session'][_0x5b7d4c(0x1b1)](),'selection':Ct(_0x318bbb)}};this['_session'][_0x5b7d4c(0x279)](_0x172b84,this[_0x5b7d4c(0x348)]);},Hs)),(this['unitID']=_0x13dbb9,this['_session']=_0x3790ff,this[_0xa6d173(0x45d)]=_0x4f0694,this['_colorAssignService']=_0x2b8760,this['_memberService']=_0x186c42,this['_syncEditingCollabCursorService']=_0xd7f7ea,this[_0xa6d173(0x2f1)]=_0x220261,this[_0xa6d173(0x49a)]=_0x3b9c60,this[_0xa6d173(0x188)]=_0x44847a);}get[_0x53b42f(0x37b)](){const _0x195b73=_0x53b42f;return this[_0x195b73(0x210)][_0x195b73(0x47e)]();}get['roomMembers'](){const _0x41f8d6=_0x53b42f;return this[_0x41f8d6(0x22e)][_0x41f8d6(0x47e)]();}['dispose'](){const _0x2b37f1=_0x53b42f;super[_0x2b37f1(0x4df)](),this['_cursorInfo$'][_0x2b37f1(0x414)](new Map()),this[_0x2b37f1(0x210)][_0x2b37f1(0x146)](),this['_roomMembers$'][_0x2b37f1(0x414)]([]),this[_0x2b37f1(0x22e)][_0x2b37f1(0x146)]();}[_0x53b42f(0x433)](){const _0x35fc6e=_0x53b42f;this[_0x35fc6e(0x243)]||(this[_0x35fc6e(0x243)]=!0x0,this[_0x35fc6e(0x3e8)]['sessionStatus$']['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))[_0x35fc6e(0x492)](_0x1dfb80=>{const _0x42313b=_0x35fc6e;_0x1dfb80===W['ONLINE']?this[_0x42313b(0x1e0)]():this[_0x42313b(0x435)]();}),this[_0x35fc6e(0x3e8)][_0x35fc6e(0x255)]['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))['subscribe'](_0x460765=>{const _0x4ce3e9=_0x35fc6e,_0x311399=_0x460765[_0x4ce3e9(0x428)];_0x311399===u[_0x4ce3e9(0x3fe)][_0x4ce3e9(0x4e1)]&&this[_0x4ce3e9(0x4b7)](_0x460765),_0x311399===u[_0x4ce3e9(0x3fe)][_0x4ce3e9(0x177)]&&this[_0x4ce3e9(0x213)](_0x460765);}),this[_0x35fc6e(0x1e9)](this['_commandService'][_0x35fc6e(0x43e)](_0x424113=>{const _0x184f97=_0x35fc6e,_0x413e97=_0x424113[_0x184f97(0x17b)];_0x413e97!=null&&this['_online']&&_0x424113['id']===M[_0x184f97(0x2f6)]['id']&&_0x413e97[_0x184f97(0x21a)]===this[_0x184f97(0x348)]&&_0x413e97[_0x184f97(0x368)]===!0x1&&this['_updateLocalCursor'](_0x413e97[_0x184f97(0x29d)]);})),this[_0x35fc6e(0x496)][_0x35fc6e(0x495)]['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))[_0x35fc6e(0x492)](_0x43ba6d=>{const _0x3fceea=_0x35fc6e;if((_0x43ba6d==null?void 0x0:_0x43ba6d[_0x3fceea(0x348)])!==this[_0x3fceea(0x348)])return;const _0x504a78={'eventID':u[_0x3fceea(0x3fe)][_0x3fceea(0x4e1)],'data':_0x43ba6d};this['_onCursorUpdate'](_0x504a78);}),this[_0x35fc6e(0x1e9)](this[_0x35fc6e(0x188)][_0x35fc6e(0x43e)](_0x3d5029=>{const _0x3e67ad=_0x35fc6e;if(_0x3d5029[_0x3e67ad(0x17b)]==null)return;const _0x36488a=_0x3d5029['params'];if(_0x3d5029['id']!==M[_0x3e67ad(0x30f)]['id']||_0x36488a['unitId']!==this[_0x3e67ad(0x348)])return;const _0x40b55d={'id':'doc.mutation.rich-text-editing','params':_0x36488a},_0x2ecf70=this[_0x3e67ad(0x37b)];for(const [_0x35ad7b,_0x35d1a9]of _0x2ecf70){const _0xf50551={'id':_0x3e67ad(0x1a1),'params':{'unitId':this[_0x3e67ad(0x348)],'actions':null,'textRanges':_0x35d1a9[_0x3e67ad(0x29d)]}},_0x2705b0=this[_0x3e67ad(0x2f1)][_0x3e67ad(0x412)](_0x40b55d,_0xf50551,!0x1);if(u[_0x3e67ad(0x231)](_0x2705b0))throw _0x2705b0['error'];_0x2ecf70[_0x3e67ad(0x2e0)](_0x35ad7b,{..._0x35d1a9,'ranges':_0x2705b0[_0x3e67ad(0x2c7)][_0x3e67ad(0x17b)][_0x3e67ad(0x461)]});}queueMicrotask(()=>{const _0x1cdcf5=_0x3e67ad;this[_0x1cdcf5(0x210)][_0x1cdcf5(0x414)](_0x2ecf70);});})));}[_0x53b42f(0x4b7)](_0x429c70){const _0x1fa056=_0x53b42f;var _0x4c8f31,_0x358530;const {memberID:_0x1e22d7,selection:_0x3d8893}=_0x429c70['data'],_0x14672f=fs(_0x3d8893),_0x5c3e57=(_0x358530=(_0x4c8f31=this[_0x1fa056(0x4ae)][_0x1fa056(0x4b5)](this[_0x1fa056(0x348)],_0x1e22d7))==null?void 0x0:_0x4c8f31[_0x1fa056(0x462)])!=null?_0x358530:'Unknown\x20user',_0x348fb9={'color':this['_colorAssignService'][_0x1fa056(0x410)](_0x1e22d7),'name':_0x5c3e57,'ranges':_0x14672f},_0x29759b=this[_0x1fa056(0x37b)];_0x29759b[_0x1fa056(0x2e0)](_0x1e22d7,_0x348fb9),this[_0x1fa056(0x210)]['next'](_0x29759b);}[_0x53b42f(0x213)](_0x2bb035){const _0x506aec=_0x53b42f,{memberID:_0x3b26e5}=_0x2bb035[_0x506aec(0x169)],_0x5b971f=this[_0x506aec(0x37b)];_0x5b971f[_0x506aec(0x35b)](_0x3b26e5),this[_0x506aec(0x210)]['next'](_0x5b971f);}[_0x53b42f(0x1e0)](){const _0x3a9467=_0x53b42f;var _0x38280f;if(this[_0x3a9467(0x4e5)]=!0x0,((_0x38280f=this[_0x3a9467(0x49a)]['getFocusedUnit']())==null?void 0x0:_0x38280f['getUnitId']())!==this[_0x3a9467(0x348)])return;const _0xd91035=this[_0x3a9467(0x45d)][_0x3a9467(0x3d4)](M[_0x3a9467(0x1de)])[_0x3a9467(0x369)](),_0xc21f15=_0xd91035==null?void 0x0:_0xd91035['map'](M[_0x3a9467(0x453)]);Array[_0x3a9467(0x4af)](_0xc21f15)&&_0xc21f15[_0x3a9467(0x419)]>0x0&&this[_0x3a9467(0x3d0)](_0xc21f15);}[_0x53b42f(0x435)](){const _0x27a77d=_0x53b42f;this[_0x27a77d(0x4e5)]=!0x1;}};Ne=js([V(0x2,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),V(0x3,h['Inject'](Ve)),V(0x4,h['Inject'](G)),V(0x5,h[_0x53b42f(0x295)](Fe)),V(0x6,u[_0x53b42f(0x25a)]),V(0x7,a[_0x53b42f(0x390)]),V(0x8,a[_0x53b42f(0x1c5)])],Ne);var xs=Object[_0x53b42f(0x38a)],ks=Object[_0x53b42f(0x2a8)],Bs=(_0x3fff50,_0x38b43b,_0x2d6049,_0x41771a)=>{const _0x4e5781=_0x53b42f;for(var _0x3346af=_0x41771a>0x1?void 0x0:_0x41771a?ks(_0x38b43b,_0x2d6049):_0x38b43b,_0x1cfaf1=_0x3fff50[_0x4e5781(0x419)]-0x1,_0x44e95e;_0x1cfaf1>=0x0;_0x1cfaf1--)(_0x44e95e=_0x3fff50[_0x1cfaf1])&&(_0x3346af=(_0x41771a?_0x44e95e(_0x38b43b,_0x2d6049,_0x3346af):_0x44e95e(_0x3346af))||_0x3346af);return _0x41771a&&_0x3346af&&xs(_0x38b43b,_0x2d6049,_0x3346af),_0x3346af;},Oe=(_0x43d041,_0x5c8043)=>(_0x4a7c65,_0x186e94)=>_0x5c8043(_0x4a7c65,_0x186e94,_0x43d041);let J=class extends a[_0x53b42f(0x3a5)]{constructor(_0x3ff22c,_0x413195,_0x2299c8){const _0x5fc640=_0x53b42f;super(),d(this,'_entities',new Map()),d(this,_0x5fc640(0x44d),new g[(_0x5fc640(0x298))]()),(this[_0x5fc640(0x49a)]=_0x3ff22c,this['_injector']=_0x413195,this[_0x5fc640(0x44f)]=_0x2299c8,this[_0x5fc640(0x243)]());}[_0x53b42f(0x4df)](){const _0x4eed34=_0x53b42f;super[_0x4eed34(0x4df)](),this[_0x4eed34(0x44d)][_0x4eed34(0x146)](),this['_entities'][_0x4eed34(0x421)](_0x3f1532=>_0x3f1532[_0x4eed34(0x4df)]());}[_0x53b42f(0x4d9)](_0x5e82a9){const _0x209fb3=_0x53b42f;return this['_entities']['has'](_0x5e82a9)?this['_entities']['get'](_0x5e82a9)[_0x209fb3(0x199)]:this['_entityInit$'][_0x209fb3(0x454)](g['filter'](_0x3aecf8=>_0x3aecf8[_0x209fb3(0x348)]===_0x5e82a9),g[_0x209fb3(0x178)](_0x7606e0=>_0x7606e0[_0x209fb3(0x199)]));}[_0x53b42f(0x243)](){const _0x5644c8=_0x53b42f;this[_0x5644c8(0x49a)][_0x5644c8(0x4b6)](a[_0x5644c8(0x142)]['UNIVER_SHEET'])[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))['subscribe'](async _0x43b221=>{const _0x3ffd01=_0x5644c8,_0xd13fea=_0x43b221[_0x3ffd01(0x1f9)](),_0x14a7be=await this[_0x3ffd01(0x455)](_0xd13fea);this['_entityInit$'][_0x3ffd01(0x414)](_0x14a7be),this[_0x3ffd01(0x372)][_0x3ffd01(0x2e0)](_0xd13fea,_0x14a7be);}),this[_0x5644c8(0x49a)][_0x5644c8(0x4b6)](a['UniverInstanceType'][_0x5644c8(0x220)])[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))[_0x5644c8(0x454)](g[_0x5644c8(0x2f0)](_0x359267=>!_0x359267[_0x5644c8(0x1f9)]()[_0x5644c8(0x19e)]('__')))[_0x5644c8(0x492)](async _0x2d26bd=>{const _0xd245c1=_0x5644c8,_0x10de9b=_0x2d26bd['getUnitId'](),_0x254599=await this[_0xd245c1(0x2c0)](_0x10de9b);this[_0xd245c1(0x44d)]['next'](_0x254599),this[_0xd245c1(0x372)]['set'](_0x10de9b,_0x254599);}),g[_0x5644c8(0x221)](this[_0x5644c8(0x49a)][_0x5644c8(0x160)](a[_0x5644c8(0x142)][_0x5644c8(0x220)]),this[_0x5644c8(0x49a)][_0x5644c8(0x160)](a['UniverInstanceType'][_0x5644c8(0x164)]))[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))['subscribe'](_0x4e7649=>{const _0x169f25=_0x5644c8,_0x5ed61f=_0x4e7649[_0x169f25(0x1f9)](),_0x3f1864=this[_0x169f25(0x372)][_0x169f25(0x3d4)](_0x5ed61f);_0x3f1864&&(_0x3f1864[_0x169f25(0x4df)](),this[_0x169f25(0x372)][_0x169f25(0x35b)](_0x5ed61f));});}async['_startSheetCollabCursor'](_0x13f508){const _0x3eb0b3=_0x53b42f,_0x533739=await this['_collabSessionService'][_0x3eb0b3(0x386)](_0x13f508),_0x1e0d7c=this[_0x3eb0b3(0x45d)][_0x3eb0b3(0x477)](Me,_0x13f508,_0x533739);return _0x1e0d7c[_0x3eb0b3(0x433)](),_0x1e0d7c;}async[_0x53b42f(0x2c0)](_0x5afe23){const _0x1b9a8b=_0x53b42f,_0xb850bc=await this[_0x1b9a8b(0x44f)]['requireSession'](_0x5afe23),_0xe4c2cc=this[_0x1b9a8b(0x45d)][_0x1b9a8b(0x477)](Ne,_0x5afe23,_0xb850bc);return _0xe4c2cc[_0x1b9a8b(0x433)](),_0xe4c2cc;}};J=Bs([a['OnLifecycle'](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],J),Oe(0x0,a[_0x53b42f(0x390)]),Oe(0x1,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Oe(0x2,h[_0x53b42f(0x295)](exports[_0x53b42f(0x14a)]))],J);const ce=0x14,tt=0xc8,De=0x4,Fs=0x5;function Vs(_0x46a14a,_0x3839d7){const _0x265611=_0x53b42f;let {radius:_0x231f12,width:_0x572795,height:_0x3b7a39}=_0x3839d7;_0x231f12=_0x231f12!=null?_0x231f12:0x0,_0x572795=_0x572795!=null?_0x572795:0x1e,_0x3b7a39=_0x3b7a39!=null?_0x3b7a39:0x1e;let _0x221b10=0x0,_0x3a0c05=0x0,_0x4f5225=0x0;_0x221b10=_0x3a0c05=_0x4f5225=Math['min'](_0x231f12,_0x572795/0x2,_0x3b7a39/0x2),_0x46a14a['beginPath'](),_0x46a14a['moveTo'](_0x221b10,0x0),_0x46a14a['lineTo'](_0x572795-_0x3a0c05,0x0),_0x46a14a['arc'](_0x572795-_0x3a0c05,_0x3a0c05,_0x3a0c05,Math['PI']*0x3/0x2,0x0,!0x1),_0x46a14a['lineTo'](_0x572795,_0x3b7a39-_0x4f5225),_0x46a14a[_0x265611(0x35a)](_0x572795-_0x4f5225,_0x3b7a39-_0x4f5225,_0x4f5225,0x0,Math['PI']/0x2,!0x1),_0x46a14a[_0x265611(0x1fb)](0x0,_0x3b7a39),_0x46a14a[_0x265611(0x1fb)](0x0,_0x221b10),_0x46a14a[_0x265611(0x35a)](_0x221b10,_0x221b10,_0x221b10,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x46a14a[_0x265611(0x1a3)](),_0x3839d7[_0x265611(0x347)]&&(_0x46a14a['save'](),_0x46a14a['fillStyle']=_0x3839d7['fill'],_0x3839d7[_0x265611(0x4e2)]===_0x265611(0x49c)?_0x46a14a[_0x265611(0x347)](_0x265611(0x49c)):_0x46a14a[_0x265611(0x347)](),_0x46a14a[_0x265611(0x2cf)]());}class Ce extends R[_0x53b42f(0x1e2)]{constructor(_0x593c10,_0x529977){const _0x2d215d=_0x53b42f;super(_0x593c10,_0x529977),d(this,_0x2d215d(0x2f4)),d(this,_0x2d215d(0x1fd)),(this[_0x2d215d(0x2f4)]=_0x529977==null?void 0x0:_0x529977['color'],this[_0x2d215d(0x1fd)]=_0x529977==null?void 0x0:_0x529977['text']);}static[_0x53b42f(0x2e5)](_0x950eb6,_0x35a959){const _0x232ac4=_0x53b42f,{text:_0x1fc990,color:_0x29c153}=_0x35a959;_0x950eb6['save'](),_0x950eb6['font']=_0x232ac4(0x26b);const _0x183a52=_0x950eb6[_0x232ac4(0x394)](_0x1fc990)[_0x232ac4(0x270)],_0x345898=Math[_0x232ac4(0x3d6)](_0x183a52+0x2*De,tt);Vs(_0x950eb6,{'height':ce,'radius':0x4,'width':_0x345898,'fill':_0x29c153,'evented':!0x1}),_0x950eb6[_0x232ac4(0x43a)]=_0x232ac4(0x3e1);const _0x1f763f=De,_0x1c3626=ce-Fs,_0x4ec894=tt-0x2*De;if(_0x183a52>_0x4ec894){let _0x51fa75='',_0x1a30b2=0x0;for(const _0x363ba7 of _0x1fc990){const _0x265d09=_0x950eb6['measureText'](_0x363ba7)[_0x232ac4(0x270)];if(_0x1a30b2+_0x265d09<=_0x4ec894-_0x950eb6['measureText'](_0x232ac4(0x41c))[_0x232ac4(0x270)])_0x51fa75+=_0x363ba7,_0x1a30b2+=_0x265d09;else{_0x51fa75+=_0x232ac4(0x41c);break;}}_0x950eb6[_0x232ac4(0x175)](_0x51fa75,_0x1f763f,_0x1c3626);}else _0x950eb6[_0x232ac4(0x175)](_0x1fc990,_0x1f763f,_0x1c3626);_0x950eb6[_0x232ac4(0x2cf)]();}[_0x53b42f(0x16d)](_0x1e102c){Ce['drawWith'](_0x1e102c,this);}}const Ws=0x1,Gs=1.5;class Ys extends R[_0x53b42f(0x1e2)]{constructor(_0x37d48f,_0x11a8c1){const _0x1616ce=_0x53b42f;super(_0x37d48f,_0x11a8c1),d(this,_0x1616ce(0x27a)),d(this,_0x1616ce(0x1d1),!0x1),d(this,'_range'),d(this,_0x1616ce(0x2b9),''),d(this,_0x1616ce(0x1bc),_0x1616ce(0x3f5)),(_0x11a8c1&&this['setShapeProps'](_0x11a8c1),this[_0x1616ce(0x206)][_0x1616ce(0x1e5)](()=>this[_0x1616ce(0x393)]({'hovered':!0x0})),this[_0x1616ce(0x3b5)][_0x1616ce(0x1e5)](()=>this[_0x1616ce(0x393)]({'hovered':!0x1})));}[_0x53b42f(0x393)](_0x245249){const _0x551d8e=_0x53b42f;var _0xbf02c9,_0x2613b9,_0x11f465,_0x5951ed,_0x113eca;this[_0x551d8e(0x27a)]=(_0xbf02c9=_0x245249[_0x551d8e(0x2f4)])!=null?_0xbf02c9:this[_0x551d8e(0x27a)],this[_0x551d8e(0x1d1)]=(_0x2613b9=_0x245249[_0x551d8e(0x46d)])!=null?_0x2613b9:this[_0x551d8e(0x1d1)],this[_0x551d8e(0x3a3)]=(_0x11f465=_0x245249['range'])!=null?_0x11f465:this[_0x551d8e(0x3a3)],this['_name']=(_0x5951ed=_0x245249[_0x551d8e(0x462)])!=null?_0x5951ed:this[_0x551d8e(0x2b9)],this[_0x551d8e(0x1bc)]=(_0x113eca=_0x245249[_0x551d8e(0x366)])!=null?_0x113eca:this['_labelPosition'],this[_0x551d8e(0x15d)]({'width':_0x245249[_0x551d8e(0x270)],'height':_0x245249[_0x551d8e(0x148)]});}['onMouseMove'](_0x4fd0f6){const _0x58e526=_0x53b42f,{row:_0x37857d,column:_0x52776c}=_0x4fd0f6;if(_0x37857d>=this[_0x58e526(0x3a3)]['startRow']&&_0x37857d<=this[_0x58e526(0x3a3)][_0x58e526(0x1a0)]&&_0x52776c>=this[_0x58e526(0x3a3)][_0x58e526(0x4e3)]&&_0x52776c<=this[_0x58e526(0x3a3)][_0x58e526(0x354)]){this[_0x58e526(0x393)]({'hovered':!0x0});return;}this[_0x58e526(0x393)]({'hovered':!0x1});}['triggerDblclick'](_0x2d8cf2){return!0x1;}[_0x53b42f(0x16d)](_0x1682c2){const _0x123143=_0x53b42f;R[_0x123143(0x184)][_0x123143(0x2e5)](_0x1682c2,{'width':this[_0x123143(0x270)],'height':this[_0x123143(0x148)],'strokeWidth':Gs,'stroke':this['_color'],'evented':!0x1}),this[_0x123143(0x1d1)]&&(_0x1682c2['save'](),_0x1682c2[_0x123143(0x404)](0x1,0x0,0x0,0x1,this[_0x123143(0x270)],this['_labelPosition']===_0x123143(0x473)?0x0:-ce),Ce[_0x123143(0x2e5)](_0x1682c2,{'text':this[_0x123143(0x2b9)],'color':this['_color']}),_0x1682c2[_0x123143(0x2cf)]());}}var Ks=Object[_0x53b42f(0x38a)],Xs=Object[_0x53b42f(0x2a8)],qs=(_0x29b75c,_0x5b685f,_0xaa602b,_0x402353)=>{const _0x4d2173=_0x53b42f;for(var _0x14acad=_0x402353>0x1?void 0x0:_0x402353?Xs(_0x5b685f,_0xaa602b):_0x5b685f,_0x1d834a=_0x29b75c[_0x4d2173(0x419)]-0x1,_0x3f121f;_0x1d834a>=0x0;_0x1d834a--)(_0x3f121f=_0x29b75c[_0x1d834a])&&(_0x14acad=(_0x402353?_0x3f121f(_0x5b685f,_0xaa602b,_0x14acad):_0x3f121f(_0x14acad))||_0x14acad);return _0x402353&&_0x14acad&&Ks(_0x5b685f,_0xaa602b,_0x14acad),_0x14acad;},le=(_0x38104d,_0x4e6261)=>(_0x4c8c26,_0x2e7449)=>_0x4e6261(_0x4c8c26,_0x2e7449,_0x38104d);const zs=0x1389;let ue=class extends a[_0x53b42f(0x3a5)]{constructor(_0x21893e,_0x50c9a4,_0x2304f4,_0x213b0c){const _0x238d2c=_0x53b42f;super(),d(this,_0x238d2c(0x3a6),new Set()),d(this,'_lastPointer',null),(this[_0x238d2c(0x491)]=_0x21893e,this[_0x238d2c(0x49a)]=_0x50c9a4,this[_0x238d2c(0x198)]=_0x2304f4,this[_0x238d2c(0x48a)]=_0x213b0c,this['_init']());}get[_0x53b42f(0x46f)](){const _0x47bab9=_0x53b42f;return this[_0x47bab9(0x198)][_0x47bab9(0x3c5)](this['_univerInstanceService'][_0x47bab9(0x171)](a['UniverInstanceType'][_0x47bab9(0x164)])['getUnitId']())[_0x47bab9(0x23d)](ee[_0x47bab9(0x425)]);}get['_unitId'](){const _0x42d389=_0x53b42f;return this['_univerInstanceService']['getCurrentUnitForType'](a[_0x42d389(0x142)][_0x42d389(0x164)])[_0x42d389(0x1f9)]();}['_init'](){const _0x5f1029=_0x53b42f;this[_0x5f1029(0x46f)][_0x5f1029(0x326)][_0x5f1029(0x454)](T['takeUntil'](this[_0x5f1029(0x35f)]),T[_0x5f1029(0x178)](_0x1ab439=>{const _0x49cf32=_0x5f1029;if(_0x1ab439){const _0xf27e6=_0x1ab439[_0x49cf32(0x37f)];return g[_0x49cf32(0x165)](this[_0x49cf32(0x491)][_0x49cf32(0x4d9)](this['_unitId']),this[_0x49cf32(0x48a)][_0x49cf32(0x3b6)])[_0x49cf32(0x454)](T[_0x49cf32(0x1af)](([_0x55c411,_0x4bd4e8])=>{const _0x2d24fb=new Map();return _0x55c411['forEach']((_0x2c52e1,_0x491f66)=>{const _0x50ba11=_0xe052;if(_0x2c52e1['sheetID']===_0xf27e6){const _0x5e6374={..._0x2c52e1};_0x5e6374[_0x50ba11(0x2f4)]=_0x4bd4e8[_0x2c52e1[_0x50ba11(0x2f4)]],_0x2d24fb[_0x50ba11(0x2e0)](_0x491f66,_0x5e6374);}}),{'skeleton':_0x1ab439,'cursors':_0x2d24fb};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x5f1029(0x492)](({skeleton:_0x4a35c6,cursors:_0x58f3f2})=>{const _0x1e0f56=_0x5f1029;this['_removeCollabCursors'](),_0x4a35c6&&this[_0x1e0f56(0x398)](_0x4a35c6,_0x58f3f2);}),this[_0x5f1029(0x46f)][_0x5f1029(0x326)]['subscribe'](_0x53d16e=>{const _0x1628a4=_0x5f1029;if(_0x53d16e==null)return;const {skeleton:_0x6e0d80}=_0x53d16e,_0x8aa9b8=this[_0x1628a4(0x198)][_0x1628a4(0x3c5)](this[_0x1628a4(0x1ea)]),{scene:_0xcabd36}=_0x8aa9b8;_0xcabd36['onPointerMoveObserver'][_0x1628a4(0x1e5)](He(_0xf6491=>{const _0x5b2f1a=_0x1628a4;var _0x1055e2,_0x3d5906;const {offsetX:_0x1bb417,offsetY:_0x59793e}=_0xf6491,{x:_0x16497b,y:_0x5a3cc7}=_0xcabd36[_0x5b2f1a(0x483)](R[_0x5b2f1a(0x4bb)]['FromArray']([_0x1bb417,_0x59793e])),{scaleX:_0x50d44c,scaleY:_0x29f600}=_0xcabd36[_0x5b2f1a(0x1e6)](),_0x439467=_0xcabd36[_0x5b2f1a(0x2f5)](ee['VIEWPORT_KEY'][_0x5b2f1a(0x4d3)]),_0x1e6c46=_0xcabd36['getScrollXYByRelativeCoords'](R[_0x5b2f1a(0x4bb)][_0x5b2f1a(0x3c4)]([_0x16497b,_0x5a3cc7]),_0x439467),_0xcf5404=_0x6e0d80['getCellPositionByOffset'](_0x1bb417,_0x59793e,_0x50d44c,_0x29f600,_0x1e6c46);((_0x1055e2=this[_0x5b2f1a(0x1da)])==null?void 0x0:_0x1055e2['column'])===_0xcf5404['column']&&((_0x3d5906=this[_0x5b2f1a(0x1da)])==null?void 0x0:_0x3d5906['row'])===_0xcf5404[_0x5b2f1a(0x145)]||this['_cursors'][_0x5b2f1a(0x421)](_0x5ea2e9=>{const _0x3a01cd=_0x5b2f1a;_0x5ea2e9[_0x3a01cd(0x22b)](_0xcf5404);});},0x64));});}[_0x53b42f(0x398)](_0x2e1cfe,_0xe0a945){const _0x36e516=_0x53b42f;var _0x40f768;const _0x4cdef1=(_0x40f768=this[_0x36e516(0x46f)]['getCurrent']())==null?void 0x0:_0x40f768[_0x36e516(0x159)];if(!_0x4cdef1)return;const _0x30dc43=this[_0x36e516(0x239)]();if(!_0x30dc43)return;this[_0x36e516(0x3a6)][_0x36e516(0x421)](_0x2a931a=>{const _0x54d90f=_0x36e516;_0x2a931a[_0x54d90f(0x361)]();});const {scene:_0x5460d7}=_0x30dc43,_0x38b998=Js(Array[_0x36e516(0x2c5)](_0xe0a945[_0x36e516(0x4d7)]()))[_0x36e516(0x1af)](_0x294a9f=>{const _0x9f26bc=_0x36e516,{color:_0x1784ed,range:_0x5c4420,name:_0x7e6bee,selection:_0x16007d,sheetID:_0x26f74a}=_0x294a9f,{startColumn:_0x30f066,startRow:_0x57629a,endColumn:_0x132ea7,endRow:_0x3faf2b}=_0x5c4420,_0x176fda=ee[_0x9f26bc(0x18f)](_0x57629a,_0x30f066,_0x5460d7,_0x4cdef1),_0x27c817=ee[_0x9f26bc(0x18f)](_0x3faf2b,_0x132ea7,_0x5460d7,_0x4cdef1),{columnHeaderHeightAndMarginTop:_0xbe28e2}=_0x4cdef1,{startX:_0x1efcaf,startY:_0x415d37}=_0x176fda,{endX:_0x3c159b,endY:_0x2282e2}=_0x27c817,_0xf406d0=_0x3c159b-_0x1efcaf,_0x436225=_0x2282e2-_0x415d37,_0x4d9851={'labelPosition':_0x415d37-_0xbe28e2>=ce?'top':_0x9f26bc(0x473),'sheetID':_0x26f74a,'range':_0x5c4420,'color':_0x1784ed,'name':_0x7e6bee,'selection':_0x16007d,'left':_0x1efcaf,'top':_0x415d37,'width':_0xf406d0,'height':_0x436225,'evented':!0x1,'zIndex':zs};return new Ys(_0x7e6bee,_0x4d9851);});_0x5460d7['addObjects'](_0x38b998,Ws),this[_0x36e516(0x3a6)]=new Set(_0x38b998);}[_0x53b42f(0x380)](){const _0x5be823=_0x53b42f;var _0x2e0874;(_0x2e0874=this['_cursors'])==null||_0x2e0874['forEach'](_0x4a85f0=>_0x4a85f0[_0x5be823(0x4df)]());}[_0x53b42f(0x239)](){const _0x32b756=_0x53b42f;return ee[_0x32b756(0x297)](this[_0x32b756(0x49a)],this[_0x32b756(0x198)]);}};ue=qs([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x353)],ue),le(0x0,h['Inject'](J)),le(0x1,a[_0x53b42f(0x390)]),le(0x2,R[_0x53b42f(0x4a5)]),le(0x3,h[_0x53b42f(0x295)](a[_0x53b42f(0x1e8)]))],ue);function Js(_0x1d6a69){const _0x383f1f=_0x53b42f,_0x3883e3=new Map();return _0x1d6a69[_0x383f1f(0x421)](_0x163cbb=>{const _0x2fdb14=_0x383f1f;if(_0x3883e3[_0x2fdb14(0x378)](_0x163cbb['selection'])){const _0xf6c95e=_0x3883e3['get'](_0x163cbb[_0x2fdb14(0x27d)]);_0xf6c95e['name']+=',\x20'+_0x163cbb[_0x2fdb14(0x462)];}else _0x3883e3[_0x2fdb14(0x2e0)](_0x163cbb['selection'],_0x163cbb);}),Array[_0x383f1f(0x2c5)](_0x3883e3['values']());}var y=function(){const _0x380813=_0x53b42f;return y=Object[_0x380813(0x2a9)]||function(_0x1b1f7e){const _0x30a885=_0x380813;for(var _0x49504a,_0x759790=0x1,_0x35a5fa=arguments[_0x30a885(0x419)];_0x759790<_0x35a5fa;_0x759790++){_0x49504a=arguments[_0x759790];for(var _0x220f6b in _0x49504a)Object['prototype']['hasOwnProperty'][_0x30a885(0x3f4)](_0x49504a,_0x220f6b)&&(_0x1b1f7e[_0x220f6b]=_0x49504a[_0x220f6b]);}return _0x1b1f7e;},y['apply'](this,arguments);},Zs=function(_0x5ce90c,_0x1cc590){const _0xc6c34e=_0x53b42f;var _0x36d50b={};for(var _0x411d1a in _0x5ce90c)Object[_0xc6c34e(0x135)][_0xc6c34e(0x185)][_0xc6c34e(0x3f4)](_0x5ce90c,_0x411d1a)&&_0x1cc590[_0xc6c34e(0x303)](_0x411d1a)<0x0&&(_0x36d50b[_0x411d1a]=_0x5ce90c[_0x411d1a]);if(_0x5ce90c!=null&&typeof Object[_0xc6c34e(0x4ab)]=='function'){for(var _0x1893f6=0x0,_0x411d1a=Object[_0xc6c34e(0x4ab)](_0x5ce90c);_0x1893f6<_0x411d1a[_0xc6c34e(0x419)];_0x1893f6++)_0x1cc590['indexOf'](_0x411d1a[_0x1893f6])<0x0&&Object[_0xc6c34e(0x135)]['propertyIsEnumerable'][_0xc6c34e(0x3f4)](_0x5ce90c,_0x411d1a[_0x1893f6])&&(_0x36d50b[_0x411d1a[_0x1893f6]]=_0x5ce90c[_0x411d1a[_0x1893f6]]);}return _0x36d50b;},We=L['forwardRef'](function(_0x1c27b1,_0x3b9d17){const _0x2ce2b5=_0x53b42f;var _0x24af22=_0x1c27b1[_0x2ce2b5(0x23c)],_0x45400b=_0x1c27b1['id'],_0x42e6c0=_0x1c27b1['className'],_0x47d4c1=_0x1c27b1[_0x2ce2b5(0x472)],_0x515a02=Zs(_0x1c27b1,[_0x2ce2b5(0x23c),'id',_0x2ce2b5(0x457),_0x2ce2b5(0x472)]),_0x4106b3=_0x2ce2b5(0x1b8)['concat'](_0x45400b,'\x20')[_0x2ce2b5(0x317)](_0x42e6c0||'')[_0x2ce2b5(0x283)](),_0x107328=L[_0x2ce2b5(0x407)]('_'[_0x2ce2b5(0x317)](ti()));return Tt(_0x24af22,''['concat'](_0x45400b),{'defIds':_0x24af22['defIds'],'idSuffix':_0x107328[_0x2ce2b5(0x403)]},y({'ref':_0x3b9d17,'className':_0x4106b3},_0x515a02),_0x47d4c1);});function Tt(_0x3970bd,_0x472a11,_0x1a197b,_0x1583f9,_0x3c02c0){const _0x1e3582=_0x53b42f;return L['createElement'](_0x3970bd['tag'],y(y({'key':_0x472a11},Qs(_0x3970bd,_0x1a197b,_0x3c02c0)),_0x1583f9),(ei(_0x3970bd,_0x1a197b)[_0x1e3582(0x416)]||[])[_0x1e3582(0x1af)](function(_0x1c8b01,_0x1c6e45){const _0x4de65c=_0x1e3582;return Tt(_0x1c8b01,''['concat'](_0x472a11,'-')[_0x4de65c(0x317)](_0x3970bd[_0x4de65c(0x25b)],'-')[_0x4de65c(0x317)](_0x1c6e45),_0x1a197b,void 0x0,_0x3c02c0);}));}function Qs(_0x1b928d,_0x37f701,_0x37cd35){const _0x5d7b60=_0x53b42f;var _0x552c77=y({},_0x1b928d[_0x5d7b60(0x204)]);_0x37cd35!=null&&_0x37cd35[_0x5d7b60(0x3c6)]&&_0x552c77[_0x5d7b60(0x347)]===_0x5d7b60(0x3c6)&&(_0x552c77[_0x5d7b60(0x347)]=_0x37cd35[_0x5d7b60(0x3c6)]);var _0x3d860b=_0x37f701[_0x5d7b60(0x1c3)];return!_0x3d860b||_0x3d860b[_0x5d7b60(0x419)]===0x0||(_0x1b928d[_0x5d7b60(0x25b)]===_0x5d7b60(0x40b)&&_0x552c77[_0x5d7b60(0x4a4)]&&(_0x552c77[_0x5d7b60(0x4a4)]=_0x552c77[_0x5d7b60(0x4a4)]+_0x37f701[_0x5d7b60(0x343)]),Object['entries'](_0x552c77)['forEach'](function(_0x127800){const _0x2271d3=_0x5d7b60;var _0x504460=_0x127800[0x0],_0x16e39d=_0x127800[0x1];typeof _0x16e39d=='string'&&(_0x552c77[_0x504460]=_0x16e39d[_0x2271d3(0x153)](/url\(#(.*)\)/,_0x2271d3(0x3ae)[_0x2271d3(0x317)](_0x37f701[_0x2271d3(0x343)],')')));})),_0x552c77;}function ei(_0x30d538,_0x4e4c2c){const _0x5b3b0f=_0x53b42f;var _0x40713f,_0x6756bb=_0x4e4c2c[_0x5b3b0f(0x1c3)];return!_0x6756bb||_0x6756bb[_0x5b3b0f(0x419)]===0x0?_0x30d538:_0x30d538[_0x5b3b0f(0x25b)]===_0x5b3b0f(0x1ab)&&(!((_0x40713f=_0x30d538[_0x5b3b0f(0x416)])===null||_0x40713f===void 0x0)&&_0x40713f['length'])?y(y({},_0x30d538),{'children':_0x30d538[_0x5b3b0f(0x416)][_0x5b3b0f(0x1af)](function(_0x24bbc0){const _0x2251f9=_0x5b3b0f;return typeof _0x24bbc0[_0x2251f9(0x204)]['id']==_0x2251f9(0x44e)&&_0x6756bb&&_0x6756bb[_0x2251f9(0x303)](_0x24bbc0['attrs']['id'])>-0x1?y(y({},_0x24bbc0),{'attrs':y(y({},_0x24bbc0[_0x2251f9(0x204)]),{'id':_0x24bbc0[_0x2251f9(0x204)]['id']+_0x4e4c2c[_0x2251f9(0x343)]})}):_0x24bbc0;})}):_0x30d538;}function ti(){const _0x27577a=_0x53b42f;return Math[_0x27577a(0x27c)]()[_0x27577a(0x423)](0x24)[_0x27577a(0x2cd)](0x2,0x8);}We[_0x53b42f(0x25d)]=_0x53b42f(0x3b4);var si={'tag':'svg','attrs':{'fill':_0x53b42f(0x381),'viewBox':_0x53b42f(0x235),'width':_0x53b42f(0x137),'height':_0x53b42f(0x137)},'children':[{'tag':'g','attrs':{'clipPath':_0x53b42f(0x43d)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'stroke':_0x53b42f(0x32c),'d':_0x53b42f(0x238),'strokeLinecap':_0x53b42f(0x192),'strokeLinejoin':_0x53b42f(0x192),'strokeWidth':1.2}}]},{'tag':_0x53b42f(0x1ab),'attrs':{},'children':[{'tag':_0x53b42f(0x264),'attrs':{'id':_0x53b42f(0x447)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'fill':_0x53b42f(0x4b8),'d':_0x53b42f(0x375)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Rt=L['forwardRef'](function(_0xbe4ead,_0x45c64c){const _0x1451ed=_0x53b42f;return L['createElement'](We,Object[_0x1451ed(0x2a9)]({},_0xbe4ead,{'id':'off-line-single','ref':_0x45c64c,'icon':si}));});Rt[_0x53b42f(0x25d)]=_0x53b42f(0x3cd);var ii={'tag':_0x53b42f(0x32b),'attrs':{'fill':_0x53b42f(0x381),'viewBox':'0\x200\x2017\x2016','width':_0x53b42f(0x137),'height':_0x53b42f(0x137)},'children':[{'tag':'g','attrs':{'clipPath':_0x53b42f(0x186)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'stroke':_0x53b42f(0x32c),'d':_0x53b42f(0x1b7),'strokeLinecap':'round','strokeLinejoin':_0x53b42f(0x192),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x53b42f(0x264),'attrs':{'id':_0x53b42f(0x494)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'fill':_0x53b42f(0x4b8),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x53b42f(0x494)]},Ot=L[_0x53b42f(0x334)](function(_0x2eeac2,_0x45dc5c){const _0xe9176e=_0x53b42f;return L[_0xe9176e(0x2e7)](We,Object[_0xe9176e(0x2a9)]({},_0x2eeac2,{'id':_0xe9176e(0x19d),'ref':_0x45dc5c,'icon':ii}));});Ot[_0x53b42f(0x25d)]='OnLineSingle';const ni='univer-online-status-icon',ri=_0x53b42f(0x3af),oi='univer-online-status',ai=_0x53b42f(0x323),ci=_0x53b42f(0x3f0),ie={'onlineStatusIcon':ni,'onlineStatusTitle':ri,'onlineStatus':oi,'online':ai,'offline':ci};function li(_0xaa946d){const _0x419617=_0x53b42f;switch(_0xaa946d){case w[_0x419617(0x1b4)]:return _0x419617(0x24b);case w[_0x419617(0x356)]:return _0x419617(0x189);case w['FETCH_MISS']:return'collabStatus.fetchMiss';case w['NOT_COLLAB']:return'collabStatus.notCollab';case w[_0x419617(0x33a)]:case w[_0x419617(0x4db)]:case w['AWAITING_WITH_PENDING']:return _0x419617(0x39c);case w[_0x419617(0x32d)]:return _0x419617(0x1c7);}}function Dt(_0x145fca){const _0x51bb32=_0x53b42f,{status$:_0x2cb16d}=_0x145fca,_0xbc0d36=N[_0x51bb32(0x2d0)](_0x2cb16d,w[_0x51bb32(0x1a4)]),_0x22f8a9=at['useDependency'](a['LocaleService']),_0x4753ea=_0xbc0d36!==w[_0x51bb32(0x1b4)],_0x479cf0=_0x22f8a9['t'](li(_0xbc0d36)),_0x4bb8b7=Ht(ie[_0x51bb32(0x1f5)],{[ie[_0x51bb32(0x262)]]:_0x4753ea,[ie[_0x51bb32(0x1a5)]]:!_0x4753ea}),_0x45be07=_0x4753ea?L[_0x51bb32(0x2e7)](Ot,null):L[_0x51bb32(0x2e7)](Rt,null);return L[_0x51bb32(0x2e7)](_0x51bb32(0x2b7),{'className':_0x4bb8b7},L['createElement'](_0x51bb32(0x2b7),{'className':ie[_0x51bb32(0x338)]},_0x45be07),L['createElement'](_0x51bb32(0x2b7),{'className':ie[_0x51bb32(0x49b)]},_0x479cf0));}var hi=Object[_0x53b42f(0x38a)],_i=Object[_0x53b42f(0x2a8)],ui=(_0x28a3ed,_0x4ac7ca,_0x238d3f,_0x38baea)=>{const _0x560af4=_0x53b42f;for(var _0x457e92=_0x38baea>0x1?void 0x0:_0x38baea?_i(_0x4ac7ca,_0x238d3f):_0x4ac7ca,_0x39cc5d=_0x28a3ed[_0x560af4(0x419)]-0x1,_0x14ffbf;_0x39cc5d>=0x0;_0x39cc5d--)(_0x14ffbf=_0x28a3ed[_0x39cc5d])&&(_0x457e92=(_0x38baea?_0x14ffbf(_0x4ac7ca,_0x238d3f,_0x457e92):_0x14ffbf(_0x457e92))||_0x457e92);return _0x38baea&&_0x457e92&&hi(_0x4ac7ca,_0x238d3f,_0x457e92),_0x457e92;},he=(_0x4e734b,_0x1fe480)=>(_0x2d1b46,_0x6508d5)=>_0x1fe480(_0x2d1b46,_0x6508d5,_0x4e734b);exports[_0x53b42f(0x230)]=class extends a['Disposable']{constructor(_0x489ff8,_0x3ca318,_0x4df3dc,_0xdf94f){const _0x47170b=_0x53b42f;super(),d(this,_0x47170b(0x41b),new g[(_0x47170b(0x28a))](w[_0x47170b(0x1a4)])),(this[_0x47170b(0x49a)]=_0x489ff8,this[_0x47170b(0x487)]=_0x3ca318,this[_0x47170b(0x45d)]=_0x4df3dc,this[_0x47170b(0x1a2)]=_0xdf94f,this[_0x47170b(0x3dd)](),this[_0x47170b(0x449)]());}[_0x53b42f(0x3dd)](){const _0x45d1d6=_0x53b42f;this['disposeWithMe'](this[_0x45d1d6(0x487)][_0x45d1d6(0x17e)](N[_0x45d1d6(0x2da)][_0x45d1d6(0x320)],()=>at['connectInjector'](di({'status$':this[_0x45d1d6(0x41b)][_0x45d1d6(0x1d6)]()}),this[_0x45d1d6(0x45d)])));}[_0x53b42f(0x449)](){const _0x57e870=_0x53b42f;this[_0x57e870(0x1e9)](a[_0x57e870(0x1bb)](this[_0x57e870(0x49a)][_0x57e870(0x1c2)][_0x57e870(0x454)](g[_0x57e870(0x178)](()=>{const _0x52b2e3=_0x57e870,_0x5d3b53=this[_0x52b2e3(0x49a)][_0x52b2e3(0x41e)]();return _0x5d3b53?this[_0x52b2e3(0x1a2)][_0x52b2e3(0x397)](_0x5d3b53[_0x52b2e3(0x1f9)]()):g['of'](null);}),g['switchMap'](_0x13d145=>_0x13d145?_0x13d145[_0x57e870(0x183)]:g['of'](w[_0x57e870(0x1a4)])))[_0x57e870(0x492)](_0x4c50a7=>{const _0xc2f31f=_0x57e870;this[_0xc2f31f(0x41b)][_0xc2f31f(0x414)](_0x4c50a7);})));}},exports[_0x53b42f(0x230)]=ui([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],exports[_0x53b42f(0x230)]),he(0x0,a[_0x53b42f(0x390)]),he(0x1,N[_0x53b42f(0x48c)]),he(0x2,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),he(0x3,h['Inject'](exports[_0x53b42f(0x301)]))],exports[_0x53b42f(0x230)]);function di(_0x4713a6){const {status$:_0x29ad8c}=_0x4713a6;return function(){const _0x2c3b42=_0xe052;return L[_0x2c3b42(0x2e7)](Dt,{'status$':_0x29ad8c});};}const Ge=h[_0x53b42f(0x195)]('uni.network.url-service');var Si=Object[_0x53b42f(0x38a)],vi=Object['getOwnPropertyDescriptor'],gi=(_0x1deb36,_0x22d677,_0x474311,_0x29af28)=>{for(var _0x106fa9=_0x29af28>0x1?void 0x0:_0x29af28?vi(_0x22d677,_0x474311):_0x22d677,_0xd7b5fd=_0x1deb36['length']-0x1,_0x522114;_0xd7b5fd>=0x0;_0xd7b5fd--)(_0x522114=_0x1deb36[_0xd7b5fd])&&(_0x106fa9=(_0x29af28?_0x522114(_0x22d677,_0x474311,_0x106fa9):_0x522114(_0x106fa9))||_0x106fa9);return _0x29af28&&_0x106fa9&&Si(_0x22d677,_0x474311,_0x106fa9),_0x106fa9;},z=(_0x125698,_0x599f7c)=>(_0x48aeae,_0x29a301)=>_0x599f7c(_0x48aeae,_0x29a301,_0x125698);exports[_0x53b42f(0x265)]=class extends a['RxDisposable']{constructor(_0x587e2c,_0x1e74f8,_0x37e147,_0x4fc447,_0xe39c7a,_0x5e7746){const _0x2d20db=_0x53b42f;super(),this[_0x2d20db(0x1e7)]=_0x587e2c,this[_0x2d20db(0x42f)]=_0x1e74f8,this[_0x2d20db(0x188)]=_0x37e147,this['_localCacheService']=_0x4fc447,this['_snapshotService']=_0xe39c7a,_0x5e7746?_0x5e7746==null||_0x5e7746[_0x2d20db(0x2ff)]()[_0x2d20db(0x3ab)](()=>this['_init']()):(this[_0x2d20db(0x42f)]['debug'](_0x2d20db(0x310),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2d20db(0x243)]());}async[_0x53b42f(0x243)](){const _0x3b3bf2=_0x53b42f,_0x81570d=this[_0x3b3bf2(0x1e7)][_0x3b3bf2(0x358)](_0x3b3bf2(0x259)),_0x463100=this[_0x3b3bf2(0x1e7)]['getParam'](_0x3b3bf2(0x20c));if(!_0x81570d||!_0x463100){this[_0x3b3bf2(0x42f)]['debug']('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x463100)){case j[_0x3b3bf2(0x164)]:{const _0x118609=await this[_0x3b3bf2(0x4a6)](_0x81570d);this[_0x3b3bf2(0x3c2)](_0x118609);break;}case j[_0x3b3bf2(0x220)]:{await this['_loadDoc'](_0x81570d);break;}default:{this[_0x3b3bf2(0x42f)][_0x3b3bf2(0x150)]('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x53b42f(0x3c2)](_0x2fa6b4){const _0x2beb03=_0x53b42f;await this['_updateSubUnitFromURLParams'](_0x2fa6b4),_0x2fa6b4['activeSheet$']['pipe'](g[_0x2beb03(0x436)](this['dispose$']))[_0x2beb03(0x492)](_0x58072f=>{const _0x1ebbbc=_0x2beb03;_0x58072f&&this[_0x1ebbbc(0x26e)](_0x58072f);}),this[_0x2beb03(0x1e7)]['urlChange$'][_0x2beb03(0x454)](g[_0x2beb03(0x436)](this['dispose$']))[_0x2beb03(0x492)](()=>this[_0x2beb03(0x415)](_0x2fa6b4));}[_0x53b42f(0x26e)](_0xbf12d,_0x41116d=!0x1){const _0x58acd1=_0x53b42f,_0x5b0d96=this[_0x58acd1(0x1e7)]['getParam'](_0x58acd1(0x26c));_0xbf12d['getSheetId']()!==_0x5b0d96&&this[_0x58acd1(0x1e7)][_0x58acd1(0x364)](_0x58acd1(0x26c),_0xbf12d['getSheetId'](),_0x41116d);}async[_0x53b42f(0x415)](_0xbc7345){const _0x267cb0=_0x53b42f;var _0x2ef8e0;const _0x2554bb=this['_urlService'][_0x267cb0(0x358)](_0x267cb0(0x26c));if(!_0x2554bb||!_0xbc7345[_0x267cb0(0x475)](_0x2554bb)){this['_updateURLWithCurrentState'](_0xbc7345[_0x267cb0(0x249)](),!0x0);return;}((_0x2ef8e0=_0xbc7345['getActiveSheet']())==null?void 0x0:_0x2ef8e0[_0x267cb0(0x1b9)]())!==_0x2554bb&&await this[_0x267cb0(0x188)][_0x267cb0(0x1ee)](E[_0x267cb0(0x42c)]['id'],{'unitId':_0xbc7345['getUnitId'](),'subUnitId':_0x2554bb});}async[_0x53b42f(0x4a6)](_0x3742d4){const _0x2d0a7c=_0x53b42f;let _0xab8d2b=0x0;const _0x364180=await this[_0x2d0a7c(0x33e)][_0x2d0a7c(0x3ea)](_0x3742d4);return _0x364180&&(_0x364180[_0x2d0a7c(0x1ca)]||_0x364180['mutations']['length']!==0x0)&&(_0xab8d2b=_0x364180[_0x2d0a7c(0x411)]),_0xab8d2b===0x0&&this[_0x2d0a7c(0x42f)][_0x2d0a7c(0x240)](_0x2d0a7c(0x310),_0x2d0a7c(0x434)),this[_0x2d0a7c(0x3cf)]['loadSheet'](_0x3742d4,_0xab8d2b);}async[_0x53b42f(0x392)](_0x1ed36f){const _0x30099c=_0x53b42f;let _0x194dc5=0x0;const _0x23c49d=await this[_0x30099c(0x33e)]['loadOfflineData'](_0x1ed36f);return _0x23c49d&&(_0x23c49d[_0x30099c(0x1ca)]||_0x23c49d[_0x30099c(0x21b)]['length']!==0x0)&&(_0x194dc5=_0x23c49d['rev']),_0x194dc5===0x0&&this[_0x30099c(0x42f)]['debug'](_0x30099c(0x310),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x30099c(0x3cf)][_0x30099c(0x469)](_0x1ed36f,_0x194dc5);}},exports['DataLoaderController']=gi([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)]['Starting'],exports[_0x53b42f(0x265)]),z(0x0,Ge),z(0x1,a[_0x53b42f(0x4c8)]),z(0x2,a[_0x53b42f(0x1c5)]),z(0x3,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),z(0x4,h[_0x53b42f(0x295)](u[_0x53b42f(0x3b8)])),z(0x5,h[_0x53b42f(0x420)](xt[_0x53b42f(0x197)]))],exports[_0x53b42f(0x265)]);var fi=Object[_0x53b42f(0x38a)],mi=Object[_0x53b42f(0x2a8)],Ii=(_0x388630,_0xe80370,_0x2cf1a1,_0x5f1bfa)=>{const _0x407cb2=_0x53b42f;for(var _0x371b32=_0x5f1bfa>0x1?void 0x0:_0x5f1bfa?mi(_0xe80370,_0x2cf1a1):_0xe80370,_0x4525df=_0x388630[_0x407cb2(0x419)]-0x1,_0x18b30e;_0x4525df>=0x0;_0x4525df--)(_0x18b30e=_0x388630[_0x4525df])&&(_0x371b32=(_0x5f1bfa?_0x18b30e(_0xe80370,_0x2cf1a1,_0x371b32):_0x18b30e(_0x371b32))||_0x371b32);return _0x5f1bfa&&_0x371b32&&fi(_0xe80370,_0x2cf1a1,_0x371b32),_0x371b32;},st=(_0x4b3704,_0x540ffa)=>(_0x437071,_0x50c99f)=>_0x540ffa(_0x437071,_0x50c99f,_0x4b3704);const pi=_0x53b42f(0x4c7),Ei=_0x53b42f(0x4c5);let de=class extends a['Disposable']{constructor(_0x4ef975,_0x32d44e){const _0x4ecad0=_0x53b42f;super(),this[_0x4ecad0(0x49a)]=_0x4ef975,this[_0x4ecad0(0x2a6)]=_0x32d44e,this[_0x4ecad0(0x243)]();}[_0x53b42f(0x243)](){const _0x3af2f1=_0x53b42f;this[_0x3af2f1(0x1e9)](a[_0x3af2f1(0x1bb)](this[_0x3af2f1(0x49a)][_0x3af2f1(0x1c2)][_0x3af2f1(0x492)](()=>{const _0x4407ad=_0x3af2f1;var _0x3162c7;const _0x25c175=this['_univerInstanceService'][_0x4407ad(0x41e)]();let _0x395cb2=(_0x3162c7=this[_0x4407ad(0x2a6)][_0x4407ad(0x1d8)](pi))!=null?_0x3162c7:Ei;_0x25c175 instanceof a[_0x4407ad(0x38c)]&&(_0x395cb2=_0x25c175[_0x4407ad(0x462)]),document[_0x4407ad(0x276)]=_0x395cb2;})));}};de=Ii([a['OnLifecycle'](a[_0x53b42f(0x2e2)][_0x53b42f(0x1be)],de),st(0x0,a[_0x53b42f(0x390)]),st(0x1,a[_0x53b42f(0x4a2)])],de);var Ci=Object[_0x53b42f(0x38a)],bi=Object[_0x53b42f(0x2a8)],Ti=(_0x50ed97,_0x177420,_0x369d8e,_0x46c274)=>{for(var _0x1cd843=_0x46c274>0x1?void 0x0:_0x46c274?bi(_0x177420,_0x369d8e):_0x177420,_0x23b1a6=_0x50ed97['length']-0x1,_0x263a70;_0x23b1a6>=0x0;_0x23b1a6--)(_0x263a70=_0x50ed97[_0x23b1a6])&&(_0x1cd843=(_0x46c274?_0x263a70(_0x177420,_0x369d8e,_0x1cd843):_0x263a70(_0x1cd843))||_0x1cd843);return _0x46c274&&_0x1cd843&&Ci(_0x177420,_0x369d8e,_0x1cd843),_0x1cd843;},it=(_0x20338e,_0x165c84)=>(_0x5e2cc0,_0xb8ce71)=>_0x165c84(_0x5e2cc0,_0xb8ce71,_0x20338e);let Ae=class{constructor(_0x5dd6a0,_0x1dbcc0){const _0x24c823=_0x53b42f;this['_configService']=_0x5dd6a0,this[_0x24c823(0x152)]=_0x1dbcc0;}async[_0x53b42f(0x1bd)](_0x745595,_0x123dfc){const _0x16d18d=_0x53b42f;var _0x42bd5f;const {unitID:_0x357bac,type:_0x3a229d,revision:_0x2c4b62=0x0}=_0x123dfc,_0x3b55ff=this[_0x16d18d(0x28c)]()+'/'+_0x3a229d+_0x16d18d(0x254)+_0x357bac+'/rev/'+(_0x2c4b62===0x1?0x0:_0x2c4b62),_0x2e4088=(await this[_0x16d18d(0x152)][_0x16d18d(0x3d4)](_0x3b55ff))['body'],_0x1c1e01=(_0x42bd5f=_0x2e4088['snapshot'])==null?void 0x0:_0x42bd5f['workbook'];if(_0x1c1e01){const _0x309967=_0x1c1e01==null?void 0x0:_0x1c1e01[_0x16d18d(0x1c8)],_0xf9078d=a['textEncoder'][_0x16d18d(0x1f3)](a[_0x16d18d(0x25f)](_0x309967));_0x1c1e01['originalMeta']=_0xf9078d,Object[_0x16d18d(0x2a3)](_0x1c1e01['sheets'])[_0x16d18d(0x421)](([,_0x61eae2])=>{const _0x4bffb9=_0x16d18d,_0x216b9b=_0x61eae2[_0x4bffb9(0x1c8)],_0x3646fe=a['textEncoder']['encode'](a[_0x4bffb9(0x25f)](_0x216b9b));_0x61eae2[_0x4bffb9(0x1c8)]=_0x3646fe;});}return _0x2e4088;}async['getSheetBlock'](_0x219d65,_0x56ade0){const _0x2c5b24=_0x53b42f,{unitID:_0x20c053,type:_0x5e3b8f,blockID:_0x2a3c62}=_0x56ade0,_0x312c0c=this[_0x2c5b24(0x260)]()+'/'+_0x5e3b8f+'/unit/'+_0x20c053+_0x2c5b24(0x371)+_0x2a3c62;return(await this[_0x2c5b24(0x152)][_0x2c5b24(0x3d4)](_0x312c0c))[_0x2c5b24(0x4cc)];}async[_0x53b42f(0x25e)](_0x1108b1,_0x3e38d5){const _0x5cdd9a=_0x53b42f,{unitID:_0xe95d56,type:_0x45af4f,from:_0x56b4a0,to:_0x3af6c1}=_0x3e38d5,_0x4c742d=this[_0x5cdd9a(0x260)]()+'/'+_0x45af4f+'/unit/'+_0xe95d56+_0x5cdd9a(0x335)+_0x56b4a0+'&to='+_0x3af6c1;return(await this['_httpService']['get'](_0x4c742d))[_0x5cdd9a(0x4cc)];}[_0x53b42f(0x28c)](){const _0x3b3a92=_0x53b42f;var _0x1acaea;return(_0x1acaea=this[_0x3b3a92(0x2a6)][_0x3b3a92(0x1d8)](lt))!=null?_0x1acaea:this['_getAPIPrefix']();}[_0x53b42f(0x260)](){const _0x39775d=_0x53b42f;var _0x3a04b6;return(_0x3a04b6=this[_0x39775d(0x2a6)][_0x39775d(0x1d8)](ct))!=null?_0x3a04b6:kt;}async[_0x53b42f(0x3fa)](_0x301bca,_0x3e23bb){const _0x3f9514=_0x53b42f,_0x45e1d1=_0x3f9514(0x45f)+_0x3e23bb['type']+'/unit/'+_0x3e23bb[_0x3f9514(0x348)]+_0x3f9514(0x2e9);return(await this[_0x3f9514(0x152)][_0x3f9514(0x3d4)](_0x45e1d1,{'params':{'resourceId':JSON[_0x3f9514(0x339)](_0x3e23bb[_0x3f9514(0x1fe)])}}))[_0x3f9514(0x4cc)];}['saveSnapshot'](){const _0x7c87a0=_0x53b42f;throw new Error(_0x7c87a0(0x322));}[_0x53b42f(0x1c6)](){const _0xd211d=_0x53b42f;throw new Error(_0xd211d(0x322));}[_0x53b42f(0x3d2)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Ae=Ti([it(0x0,a[_0x53b42f(0x4a2)]),it(0x1,h[_0x53b42f(0x295)](P[_0x53b42f(0x452)]))],Ae);var Ri=Object[_0x53b42f(0x38a)],Oi=Object[_0x53b42f(0x2a8)],Di=(_0x3f7870,_0x529c0e,_0x3a1985,_0x132cf8)=>{const _0x14f8ee=_0x53b42f;for(var _0x27ae7f=_0x132cf8>0x1?void 0x0:_0x132cf8?Oi(_0x529c0e,_0x3a1985):_0x529c0e,_0x36e6f5=_0x3f7870[_0x14f8ee(0x419)]-0x1,_0x373f8c;_0x36e6f5>=0x0;_0x36e6f5--)(_0x373f8c=_0x3f7870[_0x36e6f5])&&(_0x27ae7f=(_0x132cf8?_0x373f8c(_0x529c0e,_0x3a1985,_0x27ae7f):_0x373f8c(_0x27ae7f))||_0x27ae7f);return _0x132cf8&&_0x27ae7f&&Ri(_0x529c0e,_0x3a1985,_0x27ae7f),_0x27ae7f;},ne=(_0x2ae2bd,_0x1ad325)=>(_0x1ef006,_0x12578d)=>_0x1ad325(_0x1ef006,_0x12578d,_0x2ae2bd);let je=class extends a[_0x53b42f(0x2ec)]{constructor(_0x4324e3,_0x2e0513,_0x3f47fd,_0x44ddda,_0x383225){const _0x526298=_0x53b42f;super(_0x4324e3,_0x2e0513,_0x3f47fd),this[_0x526298(0x2f1)]=_0x44ddda,this[_0x526298(0x42f)]=_0x383225;}[_0x53b42f(0x4d6)](_0x39deeb,_0x537616){const _0x11b7e1=_0x53b42f,_0x3e9db5=this['_getUndoStack'](_0x39deeb);if(_0x3e9db5)try{const _0x22436a=this[_0x11b7e1(0x46b)](_0x3e9db5,_0x537616);this['_substituteUndoStack'](_0x39deeb,_0x22436a);}catch(_0x1be636){this[_0x11b7e1(0x42f)][_0x11b7e1(0x150)](_0x11b7e1(0x181),_0x1be636),this[_0x11b7e1(0x215)](_0x39deeb);}const _0x310291=this['_getRedoStack'](_0x39deeb);if(_0x310291)try{const _0x221a6c=this[_0x11b7e1(0x46b)](_0x310291,_0x537616);this['_substituteRedoStack'](_0x39deeb,_0x221a6c);}catch(_0x1a3bfd){this['_logService'][_0x11b7e1(0x150)](_0x1a3bfd),this[_0x11b7e1(0x149)](_0x39deeb);}}[_0x53b42f(0x215)](_0x2a2d15){const _0x2accda=_0x53b42f,_0x1238d3=this[_0x2accda(0x498)](_0x2a2d15);_0x1238d3&&(_0x1238d3['length']=0x0,this['_updateStatus']());}[_0x53b42f(0x149)](_0x1229bc){const _0x39f5f6=_0x53b42f,_0x37b21c=this[_0x39f5f6(0x34b)](_0x1229bc);_0x37b21c&&(_0x37b21c[_0x39f5f6(0x419)]=0x0,this['_updateStatus']());}[_0x53b42f(0x1a7)](_0x5c883a,_0x5de486){const _0xb2266=_0x53b42f;this['_undoStacks'][_0xb2266(0x2e0)](_0x5c883a,_0x5de486),this[_0xb2266(0x182)]();}[_0x53b42f(0x1b2)](_0x5ce64a,_0x422adf){const _0x3d56f8=_0x53b42f;this[_0x3d56f8(0x413)]['set'](_0x5ce64a,_0x422adf),this[_0x3d56f8(0x182)]();}['_transformStack'](_0x5c2061,_0x46f1e9){const _0x354fdb=_0x53b42f,_0x1fbfc7=[];let _0x1c4695=_0x46f1e9,_0x2f52d8=_0x46f1e9;for(let _0x3df48b=_0x5c2061[_0x354fdb(0x419)]-0x1;_0x3df48b>=0x0;_0x3df48b--){const {unitID:_0x1e74bc,undoMutations:_0x27028f,redoMutations:_0x156ef7}=_0x5c2061[_0x3df48b],_0x2f4fa3=this[_0x354fdb(0x2f1)][_0x354fdb(0x33b)](_0x1c4695,_0x27028f),_0x25af32=this[_0x354fdb(0x2f1)]['transformMutationsWithChangeset'](_0x2f52d8,_0x156ef7);if(u['isTransformMutationsWithChangesetFailure'](_0x2f4fa3)||u['isTransformMutationsWithChangesetFailure'](_0x25af32)){this[_0x354fdb(0x42f)][_0x354fdb(0x150)](_0x354fdb(0x181),'transformStack\x20failed!',_0x2f4fa3,_0x25af32);break;}_0x1c4695=_0x2f4fa3[_0x354fdb(0x132)],_0x2f52d8=_0x25af32[_0x354fdb(0x132)],_0x1fbfc7[_0x354fdb(0x1d7)]({'unitID':_0x1e74bc,'undoMutations':_0x2f4fa3[_0x354fdb(0x2c7)],'redoMutations':_0x25af32[_0x354fdb(0x2c7)]});}return _0x1fbfc7[_0x354fdb(0x35c)]();}};je=Di([ne(0x0,a[_0x53b42f(0x390)]),ne(0x1,a[_0x53b42f(0x1c5)]),ne(0x2,a['IContextService']),ne(0x3,u['ITransformService']),ne(0x4,a[_0x53b42f(0x4c8)])],je);class wt extends a[_0x53b42f(0x3a5)]{constructor(){const _0x1b4d5f=_0x53b42f;super(),d(this,_0x1b4d5f(0x2ef)),this['urlChange$']=g['fromEvent'](window,_0x1b4d5f(0x468))[_0x1b4d5f(0x454)](g[_0x1b4d5f(0x436)](this[_0x1b4d5f(0x35f)]),g[_0x1b4d5f(0x4d4)](0x1),g['mapTo'](void 0x0));}[_0x53b42f(0x364)](_0x2817f3,_0x486195,_0x46ebac=!0x1){const _0x10601b=_0x53b42f,_0x1ce138=new URL(window[_0x10601b(0x223)]['href']);_0x1ce138[_0x10601b(0x350)][_0x10601b(0x2e0)](_0x2817f3,_0x486195),_0x46ebac?window['history']['replaceState']('','',_0x1ce138[_0x10601b(0x423)]()):window[_0x10601b(0x20b)][_0x10601b(0x194)]('','',_0x1ce138[_0x10601b(0x423)]());}[_0x53b42f(0x424)](_0xe3dbf4,_0x27587a=!0x1){const _0x51926d=_0x53b42f,_0x27b561=new URL(window[_0x51926d(0x223)][_0x51926d(0x133)]);_0x27b561['searchParams'][_0x51926d(0x35b)](_0xe3dbf4),_0x27587a?window[_0x51926d(0x20b)][_0x51926d(0x2b5)]('','',_0x27b561[_0x51926d(0x423)]()):window[_0x51926d(0x20b)]['pushState']('','',_0x27b561[_0x51926d(0x423)]());}[_0x53b42f(0x358)](_0x255294){const _0x58e3f0=_0x53b42f;var _0x1d7a66;return(_0x1d7a66=new URL(window['location'][_0x58e3f0(0x133)])[_0x58e3f0(0x350)][_0x58e3f0(0x3d4)](_0x255294))!=null?_0x1d7a66:void 0x0;}}const we='collab-text-anchor-',wi=_0x53b42f(0x1c9),_e=0x6,Li=1.5,Le=0x4,Pi=1.5,Ui='rgba(255,\x20255,\x20255,\x200.01)';class yi{constructor(_0x7ff9cc,_0x2a2f20,_0x2165be,_0x518036){const _0x289522=_0x53b42f;d(this,_0x289522(0x41d),[]),d(this,_0x289522(0x2f3),null),d(this,'_textBubble',null),d(this,'_anchorDot',null),d(this,_0x289522(0x211),null),d(this,'_eventUnsubscribe',null),(this[_0x289522(0x48d)]=_0x7ff9cc,this['_scene']=_0x2a2f20,this[_0x289522(0x4bf)]=_0x2165be,this[_0x289522(0x14f)]=_0x518036,this[_0x289522(0x388)]());}set[_0x53b42f(0x131)](_0x4f164d){const _0x56026f=_0x53b42f;_0x4f164d?(this[_0x56026f(0x26d)]&&this['_anchorDot']['hide'](),this[_0x56026f(0x48e)]&&this[_0x56026f(0x48e)]['show']()):(this[_0x56026f(0x26d)]&&this['_anchorDot'][_0x56026f(0x138)](),this[_0x56026f(0x48e)]&&this[_0x56026f(0x48e)]['hide']());}[_0x53b42f(0x4df)](){const _0x10563c=_0x53b42f;for(const _0x55e2a9 of this['_shapes'])_0x55e2a9[_0x10563c(0x4df)]();this[_0x10563c(0x48e)]&&this[_0x10563c(0x48e)][_0x10563c(0x4df)](),this[_0x10563c(0x26d)]&&this[_0x10563c(0x26d)][_0x10563c(0x4df)](),this[_0x10563c(0x2f3)]&&this['_anchor'][_0x10563c(0x4df)](),this[_0x10563c(0x2ad)]&&this[_0x10563c(0x2ad)]();}[_0x53b42f(0x388)](){const _0x177379=_0x53b42f,{_docSkeleton:_0x3ae482,_document:_0x6b75b7}=this,{color:_0x1f8ded,name:_0x22e44c,ranges:_0x1a6054}=this[_0x177379(0x48d)],_0x271f22=_0x6b75b7[_0x177379(0x3f1)](),{docsLeft:_0x4f8e24,docsTop:_0x127b8f}=_0x271f22,_0x3cd0ed=new R[(_0x177379(0x1e4))](_0x271f22,_0x3ae482);for(const {startOffset:_0x4cb43f,endOffset:_0x735e1b,collapsed:_0x1c1c24,isActive:_0x56187e}of _0x1a6054){const _0x35cb50=_0x3ae482[_0x177379(0x3c1)](_0x4cb43f),_0x2d5ca8=_0x3ae482[_0x177379(0x3c1)](_0x735e1b);if(_0x56187e){const {contentBoxPointGroup:_0x45b5c6}=_0x3cd0ed[_0x177379(0x333)](_0x2d5ca8,_0x2d5ca8);if(_0x45b5c6[_0x177379(0x419)]===0x0)continue;this['_drawAnchor'](_0x1f8ded,_0x45b5c6,_0x4f8e24,_0x127b8f,_0x22e44c),this[_0x177379(0x2ad)]=this[_0x177379(0x246)]();}if(!_0x1c1c24){const {contentBoxPointGroup:_0x9aedd5}=_0x3cd0ed[_0x177379(0x333)](_0x35cb50,_0x2d5ca8);if(_0x9aedd5[_0x177379(0x419)]===0x0)continue;this[_0x177379(0x28e)](_0x1f8ded,_0x9aedd5,_0x4f8e24,_0x127b8f);}}}[_0x53b42f(0x47f)](_0x29e384,_0x56ed1d,_0x185e9e,_0x1ff77b,_0x33fa35){const _0xd7c1f2=_0x53b42f,_0x5801ca=this['_getAnchorBounding'](_0x56ed1d),{left:_0x1b44c6,top:_0x1020e5,height:_0x1f8a73}=_0x5801ca,_0x3a1386=this[_0xd7c1f2(0x29c)](),_0x4872bc=Pi/_0x3a1386,_0x110b01=new R[(_0xd7c1f2(0x184))](we+a[_0xd7c1f2(0x3a8)]['generateRandomId'](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b,'height':_0x1f8a73,'width':Li,'fill':_0x29e384||R[_0xd7c1f2(0x14b)](a[_0xd7c1f2(0x2e3)][_0xd7c1f2(0x38b)],0x0),'strokeWidth':_0x4872bc,'stroke':Ui,'evented':!0x0});this[_0xd7c1f2(0x2f3)]=_0x110b01,this['_scene'][_0xd7c1f2(0x3e4)](_0x110b01,R[_0xd7c1f2(0x1dd)]);const _0x540212=new R[(_0xd7c1f2(0x184))](we+a[_0xd7c1f2(0x3a8)][_0xd7c1f2(0x1f7)](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b-Le/0x2,'height':Le,'width':Le,'fill':_0x29e384||R[_0xd7c1f2(0x14b)](a[_0xd7c1f2(0x2e3)][_0xd7c1f2(0x38b)],0x0),'strokeWidth':0x0,'stroke':_0x29e384||R['getColor'](a['COLORS'][_0xd7c1f2(0x38b)],0x0),'evented':!0x1});this[_0xd7c1f2(0x26d)]=_0x540212,this[_0xd7c1f2(0x22f)]['addObject'](_0x540212,R[_0xd7c1f2(0x1dd)]);const _0x5a301a=new Ce(we+a['Tools'][_0xd7c1f2(0x1f7)](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b-ce,'text':_0x33fa35,'color':_0x29e384});this[_0xd7c1f2(0x48e)]=_0x5a301a,this[_0xd7c1f2(0x22f)][_0xd7c1f2(0x3e4)](_0x5a301a,R[_0xd7c1f2(0x1dd)]),this[_0xd7c1f2(0x131)]=!0x1;}['_handleHover'](){const _0x32b744=_0x53b42f,_0x4b95a1=this['_anchor'][_0x32b744(0x206)][_0x32b744(0x1e5)](()=>{this['_hover']=!0x0;}),_0x4fa9f7=this['_anchor'][_0x32b744(0x3b5)][_0x32b744(0x1e5)](()=>{const _0x48447f=_0x32b744;this[_0x48447f(0x211)]&&clearTimeout(this[_0x48447f(0x211)]),this[_0x48447f(0x211)]=setTimeout(()=>{const _0x34d0ef=_0x48447f;this[_0x34d0ef(0x131)]=!0x1;},0x7d0);});return()=>{const _0x39debc=_0x32b744;var _0x53e803,_0x209275;(_0x53e803=this[_0x39debc(0x2f3)])==null||_0x53e803[_0x39debc(0x206)][_0x39debc(0x49d)](_0x4b95a1),(_0x209275=this[_0x39debc(0x2f3)])==null||_0x209275['onPointerLeaveObserver'][_0x39debc(0x49d)](_0x4fa9f7);};}[_0x53b42f(0x28e)](_0x206ce6,_0x56b60b,_0x53ca35,_0x2a92ec){const _0x2fa714=_0x53b42f,_0x5ed647=new a[(_0x2fa714(0x39b))](_0x206ce6)[_0x2fa714(0x31d)](0.2)[_0x2fa714(0x330)](),_0x1f04bd=new R[(_0x2fa714(0x3c3))](wi+a['Tools'][_0x2fa714(0x1f7)](_e),{'pointsGroup':_0x56b60b,'fill':_0x5ed647||R['getColor'](a[_0x2fa714(0x2e3)][_0x2fa714(0x38b)],0.2),'left':_0x53ca35,'top':_0x2a92ec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2fa714(0x41d)][_0x2fa714(0x1d7)](_0x1f04bd),this[_0x2fa714(0x22f)][_0x2fa714(0x3e4)](_0x1f04bd,R[_0x2fa714(0x1dd)]);}[_0x53b42f(0x17c)](_0x834347){const _0x5b0c0e=_0x834347[0x0],_0x50562d=_0x5b0c0e[0x0],_0x446760=_0x5b0c0e[0x2],{x:_0x293172,y:_0x327bab}=_0x50562d,{x:_0x26a5fb,y:_0x18bc27}=_0x446760;return{'left':_0x293172,'top':_0x327bab,'width':_0x26a5fb-_0x293172,'height':_0x18bc27-_0x327bab};}['_getScale'](){const {scaleX:_0x655d9,scaleY:_0xc5d0c8}=this['_scene']['getAncestorScale']();return Math['max'](_0x655d9,_0xc5d0c8);}}var Mi=Object[_0x53b42f(0x38a)],Ni=Object[_0x53b42f(0x2a8)],Ai=(_0x524988,_0x449bff,_0x51712b,_0x14f769)=>{const _0x1d50ec=_0x53b42f;for(var _0x6a5deb=_0x14f769>0x1?void 0x0:_0x14f769?Ni(_0x449bff,_0x51712b):_0x449bff,_0x16e242=_0x524988[_0x1d50ec(0x419)]-0x1,_0xed1be1;_0x16e242>=0x0;_0x16e242--)(_0xed1be1=_0x524988[_0x16e242])&&(_0x6a5deb=(_0x14f769?_0xed1be1(_0x449bff,_0x51712b,_0x6a5deb):_0xed1be1(_0x6a5deb))||_0x6a5deb);return _0x14f769&&_0x6a5deb&&Mi(_0x449bff,_0x51712b,_0x6a5deb),_0x6a5deb;},re=(_0x41d96f,_0x9c925d)=>(_0x5b6480,_0x2ef75f)=>_0x9c925d(_0x5b6480,_0x2ef75f,_0x41d96f);let Se=class extends a[_0x53b42f(0x3a5)]{constructor(_0x4d858c,_0x1b244d,_0x1f4ceb,_0x42d1c0,_0x464ca5){const _0x5e7aec=_0x53b42f;super(),d(this,_0x5e7aec(0x3a6),[]),(this[_0x5e7aec(0x491)]=_0x4d858c,this['_univerInstanceService']=_0x1b244d,this[_0x5e7aec(0x198)]=_0x1f4ceb,this[_0x5e7aec(0x318)]=_0x42d1c0,this[_0x5e7aec(0x48a)]=_0x464ca5,this[_0x5e7aec(0x243)]());}[_0x53b42f(0x243)](){const _0x30503c=_0x53b42f;this[_0x30503c(0x318)][_0x30503c(0x326)]['pipe'](T['takeUntil'](this[_0x30503c(0x35f)]),T['switchMap'](_0x3fd307=>{const _0x266e8b=_0x30503c;if(_0x3fd307){const {unitId:_0x16cba6}=_0x3fd307;return g[_0x266e8b(0x165)](this[_0x266e8b(0x491)][_0x266e8b(0x4d9)](_0x16cba6),this[_0x266e8b(0x48a)][_0x266e8b(0x3b6)])[_0x266e8b(0x454)](T[_0x266e8b(0x1af)](([_0x51e2de,_0x4fc914])=>({'skeleton':_0x3fd307,'cursors':[..._0x51e2de[_0x266e8b(0x4d7)]()][_0x266e8b(0x4a0)](_0x15c2e2=>({..._0x15c2e2,'color':_0x4fc914[_0x15c2e2[_0x266e8b(0x2f4)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))[_0x30503c(0x492)](({skeleton:_0x2f7ec9,cursors:_0x3664b3})=>{const _0x4af0bb=_0x30503c;this[_0x4af0bb(0x380)](),_0x2f7ec9&&this['_updateCollabCursors'](_0x2f7ec9[_0x4af0bb(0x159)],_0x3664b3);});}['_updateCollabCursors'](_0x5e2031,_0x90dd6b){const _0x2c28c7=_0x53b42f,_0x49f10b=this[_0x2c28c7(0x36d)]();if(_0x49f10b==null)return;const {scene:_0x8e3dba,document:_0x4c4595}=_0x49f10b,_0x2d39dd=_0x90dd6b[_0x2c28c7(0x1af)](_0x2cbeb7=>new yi(_0x2cbeb7,_0x8e3dba,_0x5e2031,_0x4c4595));this[_0x2c28c7(0x3a6)]=_0x2d39dd;}[_0x53b42f(0x380)](){const _0x458aef=_0x53b42f;this[_0x458aef(0x3a6)][_0x458aef(0x421)](_0x2b4f6a=>_0x2b4f6a[_0x458aef(0x4df)]()),this['_cursors']=[];}[_0x53b42f(0x36d)](){const _0x36ef01=_0x53b42f;return M[_0x36ef01(0x151)](this[_0x36ef01(0x49a)],this[_0x36ef01(0x198)]);}};Se=Ai([a['OnLifecycle'](a[_0x53b42f(0x2e2)]['Steady'],Se),re(0x0,h[_0x53b42f(0x295)](J)),re(0x1,a[_0x53b42f(0x390)]),re(0x2,R['IRenderManagerService']),re(0x3,h[_0x53b42f(0x295)](M[_0x53b42f(0x3f3)])),re(0x4,h[_0x53b42f(0x295)](a[_0x53b42f(0x1e8)]))],Se);var ji=Object[_0x53b42f(0x38a)],$i=Object[_0x53b42f(0x2a8)],Hi=(_0x5f5144,_0x3f4589,_0x26ee4f,_0x2b4662)=>{const _0x38d6ba=_0x53b42f;for(var _0x45435c=_0x2b4662>0x1?void 0x0:_0x2b4662?$i(_0x3f4589,_0x26ee4f):_0x3f4589,_0x8d726a=_0x5f5144[_0x38d6ba(0x419)]-0x1,_0x19785b;_0x8d726a>=0x0;_0x8d726a--)(_0x19785b=_0x5f5144[_0x8d726a])&&(_0x45435c=(_0x2b4662?_0x19785b(_0x3f4589,_0x26ee4f,_0x45435c):_0x19785b(_0x45435c))||_0x45435c);return _0x2b4662&&_0x45435c&&ji(_0x3f4589,_0x26ee4f,_0x45435c),_0x45435c;},Pe=(_0x124949,_0x156cd5)=>(_0x5da489,_0x2f9696)=>_0x156cd5(_0x5da489,_0x2f9696,_0x124949);let Ie=class{constructor(_0x2f53f2,_0x2f38af,_0x2ea6d5){const _0x533c6d=_0x53b42f;this[_0x533c6d(0x2a6)]=_0x2f53f2,this[_0x533c6d(0x152)]=_0x2f38af,this[_0x533c6d(0x34f)]=_0x2ea6d5,this[_0x533c6d(0x433)]();}[_0x53b42f(0x433)](){const _0x2b1985=_0x53b42f;this[_0x2b1985(0x152)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3a21b7,_0x5275e9)=>_0x5275e9(_0x3a21b7)['pipe'](g[_0x2b1985(0x15a)](async _0x2bef6c=>{const _0x50eab2=_0x2b1985,_0x47e7ae=_0x2bef6c;if(_0x47e7ae[_0x50eab2(0x2a7)]===0x191&&window[_0x50eab2(0x4a7)](this[_0x50eab2(0x34f)]['t'](_0x50eab2(0x251)))){const _0xb0ebc4=window[_0x50eab2(0x13c)](window[_0x50eab2(0x223)][_0x50eab2(0x133)]);window[_0x50eab2(0x223)][_0x50eab2(0x133)]=this[_0x50eab2(0x4ca)]()+_0x50eab2(0x429)+_0xb0ebc4;}return _0x47e7ae;}))});}['_getLoginPath'](){const _0x4be8bf=_0x53b42f;var _0x4fb305;return(_0x4fb305=this[_0x4be8bf(0x2a6)][_0x4be8bf(0x1d8)](gt))!=null?_0x4fb305:zt;}};Ie=Hi([Pe(0x0,a[_0x53b42f(0x4a2)]),Pe(0x1,h[_0x53b42f(0x295)](P['HTTPService'])),Pe(0x2,h[_0x53b42f(0x295)](a['LocaleService']))],Ie);var xi=Object[_0x53b42f(0x38a)],ki=Object['getOwnPropertyDescriptor'],Bi=(_0x4bb00d,_0x4dc1ee,_0x484f5a,_0x30950b)=>{const _0x339a29=_0x53b42f;for(var _0x37085f=_0x30950b>0x1?void 0x0:_0x30950b?ki(_0x4dc1ee,_0x484f5a):_0x4dc1ee,_0x57f849=_0x4bb00d[_0x339a29(0x419)]-0x1,_0x480324;_0x57f849>=0x0;_0x57f849--)(_0x480324=_0x4bb00d[_0x57f849])&&(_0x37085f=(_0x30950b?_0x480324(_0x4dc1ee,_0x484f5a,_0x37085f):_0x480324(_0x37085f))||_0x37085f);return _0x30950b&&_0x37085f&&xi(_0x4dc1ee,_0x484f5a,_0x37085f),_0x37085f;},nt=(_0x44abb4,_0x5c947e)=>(_0x12a511,_0x3bebd1)=>_0x5c947e(_0x12a511,_0x3bebd1,_0x44abb4);const Lt='AUTHZ_URL_KEY',Fi=_0x53b42f(0x3f6);exports[_0x53b42f(0x362)]=class{constructor(_0x44c60b,_0x5ea682){const _0x10bfb8=_0x53b42f;this[_0x10bfb8(0x400)]=_0x44c60b,this[_0x10bfb8(0x2a6)]=_0x5ea682;}[_0x53b42f(0x1ff)](){const _0x1e7e73=_0x53b42f;var _0x1e6c1c;return(_0x1e6c1c=this[_0x1e7e73(0x2a6)][_0x1e7e73(0x1d8)](Lt))!=null?_0x1e6c1c:Fi;}async[_0x53b42f(0x1c1)](_0x2f0240){const _0x2ac3ca=_0x53b42f,_0x155100=this[_0x2ac3ca(0x1ff)]()+'/'+_0x2f0240[_0x2ac3ca(0x2d4)]+'/object';return(await this[_0x2ac3ca(0x400)][_0x2ac3ca(0x30c)](_0x155100,{'body':_0x2f0240}))['body'][_0x2ac3ca(0x309)]||'';}async['list'](_0x3b7180){const _0x332ee4=_0x53b42f,_0x2d31dd=this[_0x332ee4(0x1ff)]()+_0x332ee4(0x207);return(await this['_HTTPService'][_0x332ee4(0x30c)](_0x2d31dd,{'body':_0x3b7180}))['body'][_0x332ee4(0x38f)];}async['update'](_0x5e0c16){const _0x27b3d3=_0x53b42f,_0x21ca0d=this[_0x27b3d3(0x1ff)]()+'/'+_0x5e0c16[_0x27b3d3(0x2d4)]+_0x27b3d3(0x1b5)+_0x5e0c16[_0x27b3d3(0x309)];await this[_0x27b3d3(0x400)][_0x27b3d3(0x286)](_0x21ca0d,{'body':_0x5e0c16});}async[_0x53b42f(0x234)](_0x576a37){const _0x23108f=_0x53b42f,_0x300b2f=this[_0x23108f(0x1ff)]()+'/'+_0x576a37[_0x23108f(0x2d4)]+_0x23108f(0x1b5)+_0x576a37[_0x23108f(0x309)]+_0x23108f(0x2d3);return(await this[_0x23108f(0x400)][_0x23108f(0x30c)](_0x300b2f,{'body':_0x576a37}))[_0x23108f(0x4cc)]['actions'];}async[_0x53b42f(0x360)](_0x258574){const _0x5e2bf5=_0x53b42f,_0x3f598c=this[_0x5e2bf5(0x1ff)]()+_0x5e2bf5(0x357);return(await this[_0x5e2bf5(0x400)]['post'](_0x3f598c,{'body':{'requests':_0x258574}}))['body']['objectActions'];}async[_0x53b42f(0x3f8)](_0x43e0cf){const _0x556958=_0x53b42f,_0x20c563=this[_0x556958(0x1ff)]()+'/'+_0x43e0cf['objectType']+_0x556958(0x1f6),_0x423096=await this['_HTTPService'][_0x556958(0x30c)](_0x20c563,{'body':_0x43e0cf});return{'roles':_0x423096[_0x556958(0x4cc)][_0x556958(0x2bc)],'actions':_0x423096[_0x556958(0x4cc)][_0x556958(0x2c1)]};}async[_0x53b42f(0x456)](_0x12a81e){const _0x58da4e=_0x53b42f,_0x3100ca=this[_0x58da4e(0x1ff)]()+_0x58da4e(0x382);await this['_HTTPService']['delete'](_0x3100ca,{'params':{'collaboratorID':_0x12a81e['collaboratorID'],'objectID':_0x12a81e[_0x58da4e(0x309)],'unitID':_0x12a81e[_0x58da4e(0x348)]}});}async[_0x53b42f(0x136)](_0x352583){const _0x1ea35b=_0x53b42f,_0x575b47=this[_0x1ea35b(0x1ff)]()+_0x1ea35b(0x382);await this[_0x1ea35b(0x400)][_0x1ea35b(0x4a3)](_0x575b47,{'body':_0x352583});}async[_0x53b42f(0x296)](_0x100e59){const _0x35eaf5=_0x53b42f,_0x1db08f=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x35eaf5(0x400)][_0x35eaf5(0x30c)](_0x1db08f,{'body':_0x100e59});}async[_0x53b42f(0x4b4)](_0x388e95){const _0x871435=_0x53b42f,_0x57e935=this[_0x871435(0x1ff)]()+'/collaborator';return(await this[_0x871435(0x400)][_0x871435(0x3d4)](_0x57e935,{'params':{'objectID':_0x388e95[_0x871435(0x309)],'unitID':_0x388e95[_0x871435(0x348)]}}))['body'][_0x871435(0x193)];}async[_0x53b42f(0x227)](_0x345fec){const _0x22acc7=_0x53b42f,_0x2ced63=this[_0x22acc7(0x1ff)]()+_0x22acc7(0x382);await this['_HTTPService'][_0x22acc7(0x286)](_0x2ced63,{'body':_0x345fec});}},exports[_0x53b42f(0x362)]=Bi([nt(0x0,h[_0x53b42f(0x295)](P['HTTPService'])),nt(0x1,h[_0x53b42f(0x295)](a[_0x53b42f(0x4a2)]))],exports[_0x53b42f(0x362)]);var Vi=Object['defineProperty'],Wi=Object['getOwnPropertyDescriptor'],Gi=(_0x4574fe,_0x4b5218,_0xe4878,_0x43c45c)=>{const _0x2f5b88=_0x53b42f;for(var _0x15ae7e=_0x43c45c>0x1?void 0x0:_0x43c45c?Wi(_0x4b5218,_0xe4878):_0x4b5218,_0x912ab5=_0x4574fe[_0x2f5b88(0x419)]-0x1,_0x22ec58;_0x912ab5>=0x0;_0x912ab5--)(_0x22ec58=_0x4574fe[_0x912ab5])&&(_0x15ae7e=(_0x43c45c?_0x22ec58(_0x4b5218,_0xe4878,_0x15ae7e):_0x22ec58(_0x15ae7e))||_0x15ae7e);return _0x43c45c&&_0x15ae7e&&Vi(_0x4b5218,_0xe4878,_0x15ae7e),_0x15ae7e;},rt=(_0x38f0a3,_0x5b8a39)=>(_0x1b008d,_0x2badb4)=>_0x5b8a39(_0x1b008d,_0x2badb4,_0x38f0a3);const Yi=[_0x53b42f(0x3ad),'image/jpeg',_0x53b42f(0x4b1),'image/gif',_0x53b42f(0x396)],Ki=0x5*0x400*0x400,Xi=_0x53b42f(0x426),qi='/universer-api/stream/file/upload',zi=_0x53b42f(0x1eb),Ji='/universer-api/file/{fileID}/sign-url';let $e=class{constructor(_0x5456e9,_0x276fb0){const _0x20207e=_0x53b42f;d(this,_0x20207e(0x30d),0x0),d(this,'_change$',new g[(_0x20207e(0x298))]()),d(this,_0x20207e(0x300),this[_0x20207e(0x203)]),d(this,_0x20207e(0x484),new Map()),(this['_httpService']=_0x5456e9,this['_configService']=_0x276fb0);}[_0x53b42f(0x332)](_0x3cad8d){const _0x4e5cc8=_0x53b42f;this[_0x4e5cc8(0x30d)]=_0x3cad8d,this['_change$'][_0x4e5cc8(0x414)](_0x3cad8d);}[_0x53b42f(0x25c)](_0x5eb06f,_0x42e398){const _0x56bac9=_0x53b42f;if(_0x42e398===A[_0x56bac9(0x336)][_0x56bac9(0x485)]){const _0x5334ec=new Image();return _0x5334ec['src']=_0x5eb06f,_0x5334ec;}return this['_imageSourceCache'][_0x56bac9(0x3d4)](_0x5eb06f);}[_0x53b42f(0x176)](_0x47995f,_0x204a0d,_0x5bc6b1){const _0x1b61ea=_0x53b42f;_0x204a0d===A[_0x1b61ea(0x336)][_0x1b61ea(0x485)]||_0x5bc6b1==null||this[_0x1b61ea(0x484)][_0x1b61ea(0x2e0)](_0x47995f,_0x5bc6b1);}async[_0x53b42f(0x39e)](_0x5329d9){const _0xcac383=_0x53b42f;try{const _0x418842=this['_replaceFileID'](this[_0xcac383(0x402)](),''+_0x5329d9),_0x30aaf0=(await this[_0xcac383(0x152)][_0xcac383(0x3d4)](_0x418842))[_0xcac383(0x4cc)];return _0x30aaf0[_0xcac383(0x150)]&&_0x30aaf0[_0xcac383(0x150)]['code']===ft['OK']?Promise[_0xcac383(0x4d2)](_0x30aaf0['url']):Promise[_0xcac383(0x1bf)](_0x30aaf0['error']);}catch(_0x1d6510){return Promise[_0xcac383(0x1bf)](_0x1d6510);}}async[_0x53b42f(0x444)](_0x53ccf2){const _0x57f71c=_0x53b42f;let _0x785b2f='';if(!Yi[_0x57f71c(0x245)](_0x53ccf2['type']))return this['_decreaseWaiting'](),Promise[_0x57f71c(0x1bf)](new Error(A['ImageUploadStatusType'][_0x57f71c(0x4d8)]));if(_0x53ccf2[_0x57f71c(0x22a)]>Ki)return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)][_0x57f71c(0x219)]));try{const _0x38b7e4=new FormData();_0x38b7e4[_0x57f71c(0x2b3)](_0x57f71c(0x1b3),_0x53ccf2);const _0x2d5c69=this[_0x57f71c(0x1ae)]()+_0x57f71c(0x3ac)+_0x53ccf2['size'][_0x57f71c(0x423)](),_0x393225=await(await fetch(_0x2d5c69,{'method':_0x57f71c(0x216),'body':_0x38b7e4}))[_0x57f71c(0x18a)]();if(typeof _0x393225[_0x57f71c(0x250)]!='string')return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)]['ERROR_IMAGE']));_0x785b2f=_0x393225[_0x57f71c(0x250)];}catch{return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)][_0x57f71c(0x321)]));}return new Promise((_0x289b0c,_0x25fceb)=>{const _0x4bc48c=_0x57f71c,_0x4374b1=new FileReader();_0x4374b1[_0x4bc48c(0x363)](_0x53ccf2),_0x4374b1[_0x4bc48c(0x2d6)]=_0x14c12c=>{const _0x287f92=_0x4bc48c;var _0x5bd074;const _0x3e907c=(_0x5bd074=_0x14c12c['target'])==null?void 0x0:_0x5bd074[_0x287f92(0x47a)];if(_0x3e907c==null){this[_0x287f92(0x299)](),_0x25fceb(new Error(A[_0x287f92(0x48b)][_0x287f92(0x321)]));return;}const _0x52f36f=a[_0x287f92(0x3a8)][_0x287f92(0x1f7)](0x6);_0x289b0c({'imageId':_0x52f36f,'imageSourceType':A[_0x287f92(0x336)][_0x287f92(0x2d9)],'source':_0x785b2f,'base64Cache':_0x3e907c,'status':A[_0x287f92(0x48b)]['SUCCUSS']}),this[_0x287f92(0x299)]();};});}[_0x53b42f(0x1ae)](){const _0x2f4f39=_0x53b42f;var _0x574443;return(_0x574443=this['_configService'][_0x2f4f39(0x1d8)](Xi))!=null?_0x574443:qi;}['_getSignURL'](){const _0x42841c=_0x53b42f;var _0x86096b;return(_0x86096b=this[_0x42841c(0x2a6)]['getConfig'](zi))!=null?_0x86096b:Ji;}[_0x53b42f(0x3d3)](_0x304ac1,_0x3d6591){const _0x448c09=_0x53b42f;return _0x304ac1[_0x448c09(0x153)]('{fileID}',_0x3d6591);}[_0x53b42f(0x299)](){const _0x383a9a=_0x53b42f;this[_0x383a9a(0x30d)]-=0x1,this['_change$'][_0x383a9a(0x414)](this[_0x383a9a(0x30d)]);}};$e=Gi([rt(0x0,h['Inject'](P[_0x53b42f(0x452)])),rt(0x1,a['IConfigService'])],$e);var Pt=Object[_0x53b42f(0x38a)],Zi=Object[_0x53b42f(0x2a8)],Qi=(_0x2df94c,_0xbcda71,_0x570200)=>_0xbcda71 in _0x2df94c?Pt(_0x2df94c,_0xbcda71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x570200}):_0x2df94c[_0xbcda71]=_0x570200,en=(_0x1d77d4,_0x87cfd8,_0x529906,_0x5051fa)=>{for(var _0x28451f=_0x5051fa>0x1?void 0x0:_0x5051fa?Zi(_0x87cfd8,_0x529906):_0x87cfd8,_0x99e65b=_0x1d77d4['length']-0x1,_0x14518a;_0x99e65b>=0x0;_0x99e65b--)(_0x14518a=_0x1d77d4[_0x99e65b])&&(_0x28451f=(_0x5051fa?_0x14518a(_0x87cfd8,_0x529906,_0x28451f):_0x14518a(_0x28451f))||_0x28451f);return _0x5051fa&&_0x28451f&&Pt(_0x87cfd8,_0x529906,_0x28451f),_0x28451f;},ot=(_0x58d1a6,_0xb09d95)=>(_0x89e34,_0x45f6fd)=>_0xb09d95(_0x89e34,_0x45f6fd,_0x58d1a6),tn=(_0x453ef0,_0x2c3841,_0x23b17f)=>Qi(_0x453ef0,_0x2c3841+'',_0x23b17f);const sn=_0x53b42f(0x37d);exports[_0x53b42f(0x15e)]=class extends a['Plugin']{constructor(_0x1d6878,_0x24f969,_0x4eb417){const _0x137c33=_0x53b42f;super(),this[_0x137c33(0x481)]=_0x1d6878,this[_0x137c33(0x42f)]=_0x24f969,this[_0x137c33(0x45d)]=_0x4eb417;}[_0x53b42f(0x470)](_0xa32c4b){const _0x1da3ad=_0x53b42f;var _0x26f4c7,_0x24e516,_0x11fc1a,_0x45d55e,_0x374786;_0xa32c4b[_0x1da3ad(0x378)](a[_0x1da3ad(0x4a1)])&&this[_0x1da3ad(0x42f)]['error'](_0x1da3ad(0x3bd),_0x1da3ad(0x3a4));let _0x439a21=[[a[_0x1da3ad(0x4a1)],{'useClass':je}],[exports[_0x1da3ad(0x14a)]],[Ve],[P[_0x1da3ad(0x452)]],[Ge,{'useClass':wt}],[G],[exports[_0x1da3ad(0x4b3)]],[P['WebSocketService']],[fe],[ge],[ve],[Fe],[Ie],[Be,{'useClass':(_0x24e516=(_0x26f4c7=this[_0x1da3ad(0x481)])==null?void 0x0:_0x26f4c7[_0x1da3ad(0x21c)])!=null?_0x24e516:exports[_0x1da3ad(0x236)]}],[P[_0x1da3ad(0x3a9)],{'useClass':P['XHRHTTPImplementation']}],[a[_0x1da3ad(0x174)],{'useClass':Ae}],[a[_0x1da3ad(0x226)],{'useClass':exports[_0x1da3ad(0x362)]}],[A['IImageIoService'],{'useClass':$e}],[exports[_0x1da3ad(0x301)]],[exports[_0x1da3ad(0x265)]],[exports['DesktopCollaborationStatusDisplayController']],[de],[J]];(_0x11fc1a=this['_config'])!=null&&_0x11fc1a[_0x1da3ad(0x3ba)]&&_0x439a21['push']([pe,{'useClass':hs}]),((_0x45d55e=this[_0x1da3ad(0x481)])==null?void 0x0:_0x45d55e[_0x1da3ad(0x3a2)])==null||this['_config']['collaborationUniverTypes'][_0x1da3ad(0x245)](a[_0x1da3ad(0x142)]['UNIVER_SHEET'])?_0x439a21['push']([ue]):this[_0x1da3ad(0x481)][_0x1da3ad(0x3a2)]['includes'](a['UniverInstanceType']['UNIVER_DOC'])&&_0x439a21['push']([Se]),_0x439a21=a[_0x1da3ad(0x370)](_0x439a21,(_0x374786=this[_0x1da3ad(0x481)])==null?void 0x0:_0x374786[_0x1da3ad(0x1e1)]),_0x439a21[_0x1da3ad(0x421)](_0x5de78b=>_0xa32c4b[_0x1da3ad(0x1e5)](_0x5de78b)),_0xa32c4b[_0x1da3ad(0x3d4)](P[_0x1da3ad(0x452)])[_0x1da3ad(0x3ce)]({'priority':0x14,'interceptor':P[_0x1da3ad(0x3c0)]({'maxParallel':0x6})}),this[_0x1da3ad(0x1c4)]();}[_0x53b42f(0x1c4)](){const _0x4e69ab=_0x53b42f;var _0x1e96ae,_0x4d5579;(_0x1e96ae=this[_0x4e69ab(0x481)])!=null&&_0x1e96ae[_0x4e69ab(0x253)]||this[_0x4e69ab(0x45d)][_0x4e69ab(0x3d4)](exports[_0x4e69ab(0x4b3)])[_0x4e69ab(0x3be)](),(_0x4d5579=this[_0x4e69ab(0x481)])!=null&&_0x4d5579[_0x4e69ab(0x166)]&&this[_0x4e69ab(0x45d)][_0x4e69ab(0x3d4)](Ie);}},tn(exports[_0x53b42f(0x15e)],_0x53b42f(0x2fe),sn),exports[_0x53b42f(0x15e)]=en([a[_0x53b42f(0x14c)](u[_0x53b42f(0x365)]),ot(0x1,a[_0x53b42f(0x4c8)]),ot(0x2,h[_0x53b42f(0x295)](h['Injector']))],exports[_0x53b42f(0x15e)]),exports[_0x53b42f(0x46a)]=Lt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=vt,exports[_0x53b42f(0x24a)]=_t,exports['CollaborationStatus']=w,exports[_0x53b42f(0x14d)]=Dt,exports[_0x53b42f(0x32a)]=ut,exports[_0x53b42f(0x2ac)]=xe,exports[_0x53b42f(0x261)]=Be,exports[_0x53b42f(0x476)]=Ge,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports[_0x53b42f(0x465)]=gt,exports[_0x53b42f(0x430)]=ht,exports['SNAPSHOT_SERVER_URL_KEY']=ct,exports[_0x53b42f(0x44c)]=lt,exports['SessionStatus']=W,exports[_0x53b42f(0x38d)]=wt,exports[_0x53b42f(0x18c)]=mt,exports['serializeCombRequest']=It;
1
+ 'use strict';const _0x14623f=_0x5cb3;(function(_0xc6cb08,_0x2cc8da){const _0x56a027=_0x5cb3,_0x2144a3=_0xc6cb08();while(!![]){try{const _0x589750=-parseInt(_0x56a027(0x40e))/0x1*(-parseInt(_0x56a027(0x4ab))/0x2)+parseInt(_0x56a027(0x2aa))/0x3*(parseInt(_0x56a027(0x2ad))/0x4)+-parseInt(_0x56a027(0x1a5))/0x5*(-parseInt(_0x56a027(0x40f))/0x6)+-parseInt(_0x56a027(0x420))/0x7*(parseInt(_0x56a027(0x18d))/0x8)+-parseInt(_0x56a027(0x361))/0x9*(-parseInt(_0x56a027(0x4a6))/0xa)+-parseInt(_0x56a027(0x3e8))/0xb+-parseInt(_0x56a027(0x35e))/0xc;if(_0x589750===_0x2cc8da)break;else _0x2144a3['push'](_0x2144a3['shift']());}catch(_0x1af457){_0x2144a3['push'](_0x2144a3['shift']());}}}(_0x119c,0x230aa));var $t=Object[_0x14623f(0x4e3)],Ht=(_0x138fde,_0x34ac31,_0x52005b)=>_0x34ac31 in _0x138fde?$t(_0x138fde,_0x34ac31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52005b}):_0x138fde[_0x34ac31]=_0x52005b,d=(_0x1e19c5,_0x507504,_0x348c10)=>Ht(_0x1e19c5,typeof _0x507504!=_0x14623f(0x25e)?_0x507504+'':_0x507504,_0x348c10);Object['defineProperty'](exports,Symbol[_0x14623f(0x428)],{'value':_0x14623f(0x2df)});const a=require(_0x14623f(0x317)),E=require(_0x14623f(0x33d)),oe=require('@univerjs/design'),N=require(_0x14623f(0x186)),u=require('@univerjs-pro/collaboration'),h=require(_0x14623f(0x1e0)),g=require(_0x14623f(0x20a)),T=require(_0x14623f(0x162)),y=require('@univerjs/docs'),P=require('@univerjs/network'),A=require(_0x14623f(0x39c)),Ke=require(_0x14623f(0x484)),He=require(_0x14623f(0x3c4)),R=require(_0x14623f(0x367)),ee=require(_0x14623f(0x2e9)),ct=require('@wendellhu/redi/react-bindings'),L=require(_0x14623f(0x22e)),xt=require('clsx'),kt=require(_0x14623f(0x379)),lt=_0x14623f(0x287),Bt=_0x14623f(0x19c),ht=_0x14623f(0x494),_t=_0x14623f(0x256),Ft=0x7d0,ut=_0x14623f(0x270),Vt=_0x14623f(0x1eb),dt=_0x14623f(0x45f),Wt=0x7530,xe='HEARTBEAT_TIMEOUT',St=0x2710,Gt='RETRY_CONNECTING_INTERVAL',Yt=0x4e20,Kt=_0x14623f(0x1fc),Xt=0x3,vt=_0x14623f(0x37b),qt=0x3e8,gt='COLLAB_SUBMIT_CHANGESET_URL',zt=_0x14623f(0x1c1),ft='LOGIN_URL_KEY',Jt=_0x14623f(0x1e4);var mt=(_0x26df85=>(_0x26df85[_0x26df85[_0x14623f(0x47e)]=0x0]='UNDEFINED',_0x26df85[_0x26df85['OK']=0x1]='OK',_0x26df85[_0x26df85[_0x14623f(0x1ac)]=0x2]=_0x14623f(0x1ac),_0x26df85[_0x26df85[_0x14623f(0x4f3)]=0x3]=_0x14623f(0x4f3),_0x26df85[_0x26df85[_0x14623f(0x3a6)]=0x4]=_0x14623f(0x3a6),_0x26df85[_0x26df85[_0x14623f(0x30c)]=0x5]=_0x14623f(0x30c),_0x26df85[_0x26df85[_0x14623f(0x3f0)]=0x6]=_0x14623f(0x3f0),_0x26df85[_0x26df85[_0x14623f(0x2e4)]=0x7]='INVALID_ARGUMENT',_0x26df85[_0x26df85[_0x14623f(0x457)]=0x8]=_0x14623f(0x457),_0x26df85[_0x26df85[_0x14623f(0x274)]=0x9]='COMPLETION_FINISHED',_0x26df85[_0x26df85['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x14623f(0x3eb),_0x26df85[_0x26df85['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x26df85[_0x26df85[_0x14623f(0x14b)]=0x1772]=_0x14623f(0x14b),_0x26df85[_0x26df85[_0x14623f(0x224)]=0x1b59]=_0x14623f(0x224),_0x26df85[_0x26df85[_0x14623f(0x257)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x26df85[_0x26df85['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x26df85[_0x26df85['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x26df85[_0x26df85[_0x14623f(0x1a2)]=0x1f41]=_0x14623f(0x1a2),_0x26df85[_0x26df85[_0x14623f(0x46d)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x26df85[_0x26df85['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x26df85[_0x26df85[_0x14623f(0x372)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x26df85[_0x26df85['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x26df85[_0x26df85[_0x14623f(0x33a)]=0x232d]=_0x14623f(0x33a),_0x26df85[_0x26df85[_0x14623f(0x490)]=0x2711]=_0x14623f(0x490),_0x26df85[_0x26df85['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x14623f(0x446),_0x26df85[_0x26df85['UNRECOGNIZED']=-0x1]=_0x14623f(0x451),_0x26df85))(mt||{}),j=(_0x1565d2=>(_0x1565d2[_0x1565d2[_0x14623f(0x193)]=0x0]='UNIVER_UNKNOWN',_0x1565d2[_0x1565d2[_0x14623f(0x378)]=0x1]=_0x14623f(0x378),_0x1565d2[_0x1565d2[_0x14623f(0x328)]=0x2]=_0x14623f(0x328),_0x1565d2[_0x1565d2['UNIVER_SLIDE']=0x3]=_0x14623f(0x182),_0x1565d2[_0x1565d2[_0x14623f(0x451)]=-0x1]=_0x14623f(0x451),_0x1565d2))(j||{}),b=(_0x4f4ba5=>(_0x4f4ba5[_0x4f4ba5['UNKNOWN_CMD']=0x0]=_0x14623f(0x22f),_0x4f4ba5[_0x4f4ba5[_0x14623f(0x34b)]=0x1]=_0x14623f(0x34b),_0x4f4ba5[_0x4f4ba5[_0x14623f(0x406)]=0x2]=_0x14623f(0x406),_0x4f4ba5[_0x4f4ba5[_0x14623f(0x433)]=0x3]=_0x14623f(0x433),_0x4f4ba5[_0x4f4ba5['INGEST']=0x4]=_0x14623f(0x249),_0x4f4ba5[_0x4f4ba5[_0x14623f(0x23c)]=0x5]=_0x14623f(0x23c),_0x4f4ba5[_0x4f4ba5[_0x14623f(0x4de)]=0x6]=_0x14623f(0x4de),_0x4f4ba5[_0x4f4ba5[_0x14623f(0x451)]=-0x1]='UNRECOGNIZED',_0x4f4ba5))(b||{}),ke=(_0x306c85=>(_0x306c85[_0x306c85[_0x14623f(0x44b)]=0x0]=_0x14623f(0x44b),_0x306c85[_0x306c85['OK']=0x1]='OK',_0x306c85[_0x306c85[_0x14623f(0x376)]=0x2]='FAIL',_0x306c85[_0x306c85[_0x14623f(0x451)]=-0x1]=_0x14623f(0x451),_0x306c85))(ke||{}),Zt=Object[_0x14623f(0x4e3)],Qt=Object[_0x14623f(0x4a0)],es=(_0x549536,_0x4bc0f2,_0x2c66cb,_0x6473ca)=>{for(var _0x5b01d3=_0x6473ca>0x1?void 0x0:_0x6473ca?Qt(_0x4bc0f2,_0x2c66cb):_0x4bc0f2,_0x105fe2=_0x549536['length']-0x1,_0x13a628;_0x105fe2>=0x0;_0x105fe2--)(_0x13a628=_0x549536[_0x105fe2])&&(_0x5b01d3=(_0x6473ca?_0x13a628(_0x4bc0f2,_0x2c66cb,_0x5b01d3):_0x13a628(_0x5b01d3))||_0x5b01d3);return _0x6473ca&&_0x5b01d3&&Zt(_0x4bc0f2,_0x2c66cb,_0x5b01d3),_0x5b01d3;},Xe=(_0x21159e,_0x3a93f7)=>(_0x2b5e5e,_0x1d6ef6)=>_0x3a93f7(_0x2b5e5e,_0x1d6ef6,_0x21159e);let G=class extends a[_0x14623f(0x4cf)]{constructor(_0x402d35,_0xd8b03){const _0x30e2c2=_0x14623f;super(),d(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x402d35,this[_0x30e2c2(0x146)]=_0xd8b03,this['disposeWithMe'](a[_0x30e2c2(0x290)](g[_0x30e2c2(0x233)](this[_0x30e2c2(0x429)][_0x30e2c2(0x399)](a[_0x30e2c2(0x2e8)][_0x30e2c2(0x328)])[_0x30e2c2(0x160)](T['map'](_0x428a22=>_0x428a22[_0x30e2c2(0x30f)]())),this[_0x30e2c2(0x429)]['getTypeOfUnitDisposed$'](a[_0x30e2c2(0x2e8)]['UNIVER_DOC'])[_0x30e2c2(0x160)](T['map'](_0x247e10=>_0x247e10[_0x30e2c2(0x30f)]())),this[_0x30e2c2(0x429)][_0x30e2c2(0x399)](a[_0x30e2c2(0x2e8)][_0x30e2c2(0x182)])[_0x30e2c2(0x160)](T[_0x30e2c2(0x3a5)](_0x103c23=>_0x103c23['getUnitId']())))['subscribe'](_0x1ba19c=>this[_0x30e2c2(0x1cc)](_0x1ba19c)))));}[_0x14623f(0x4e7)](_0x5dec71){const _0x5d4e4e=_0x14623f;this[_0x5d4e4e(0x146)][_0x5d4e4e(0x4e7)](_0x5dec71);}['getCurrentUser'](){const _0x1ab489=_0x14623f;return this[_0x1ab489(0x146)][_0x1ab489(0x1e2)]();}[_0x14623f(0x3e5)](_0x1a2159,_0x2cda1e){const _0x42e843=_0x14623f;let _0x1cdd9e=this[_0x42e843(0x37c)][_0x42e843(0x3f7)](_0x1a2159);_0x1cdd9e||(_0x1cdd9e=new ts(),this[_0x42e843(0x37c)][_0x42e843(0x3da)](_0x1a2159,_0x1cdd9e)),_0x1cdd9e[_0x42e843(0x3e5)](_0x2cda1e);}[_0x14623f(0x395)](_0x281450,_0xd48769){const _0x59f218=this['_roomMembers']['get'](_0x281450);_0x59f218&&_0x59f218['removeMember'](_0xd48769);}[_0x14623f(0x320)](_0x23bbf7){const _0x7e3e86=_0x14623f;return this[_0x7e3e86(0x37c)]['get'](_0x23bbf7);}[_0x14623f(0x2fa)](_0x282eb0,_0x1b9406){const _0x395036=_0x14623f,_0x465a4c=this['_roomMembers']['get'](_0x282eb0);if(_0x465a4c)return _0x465a4c[_0x395036(0x2fa)](_0x1b9406);}[_0x14623f(0x1cc)](_0x1a96cd){const _0x454254=_0x14623f,_0x5a20c7=this['_roomMembers'][_0x454254(0x3f7)](_0x1a96cd);_0x5a20c7&&(_0x5a20c7[_0x454254(0x188)](),this[_0x454254(0x37c)][_0x454254(0x38c)](_0x1a96cd));}[_0x14623f(0x188)](){const _0x459c99=_0x14623f;this[_0x459c99(0x37c)]['forEach'](_0x25ba47=>_0x25ba47[_0x459c99(0x188)]()),this[_0x459c99(0x37c)][_0x459c99(0x31e)]();}};G=es([Xe(0x0,a[_0x14623f(0x18f)]),Xe(0x1,h[_0x14623f(0x362)](a['UserManagerService']))],G);class ts extends a[_0x14623f(0x4cf)]{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x14623f(0x188)](){const _0x54e4b9=_0x14623f;this[_0x54e4b9(0x196)][_0x54e4b9(0x31e)]();}['updateMember'](_0x35e2d0){const _0xda5bd6=_0x14623f;this[_0xda5bd6(0x196)][_0xda5bd6(0x3da)](_0x35e2d0['memberID'],_0x35e2d0);}['removeMember'](_0x29ee18){const _0x57655f=_0x14623f;this[_0x57655f(0x196)]['delete'](_0x29ee18);}[_0x14623f(0x2fa)](_0x55e14f){return this['_members']['get'](_0x55e14f);}}function It(_0x51c382){const _0x52e388=_0x14623f;var _0x1f4b64,_0x1dd46a,_0x3cd0da,_0x15317b;const _0x25bc2a=_0x51c382[_0x52e388(0x250)],_0x197741=JSON[_0x52e388(0x2d6)](_0x25bc2a);switch(_0x197741[_0x52e388(0x36c)]){case b[_0x52e388(0x23c)]:case b[_0x52e388(0x34b)]:{const _0x2a8d8c=_0x197741[_0x52e388(0x2d8)];return{..._0x197741,'data':_0x2a8d8c,'cmd':_0x197741[_0x52e388(0x36c)]};}case b['JOIN']:{const _0x38eaf8=_0x197741[_0x52e388(0x43a)];return{..._0x197741,'data':_0x38eaf8,'cmd':_0x197741[_0x52e388(0x36c)]};}case b[_0x52e388(0x4de)]:{const _0x11aa3c=_0x197741[_0x52e388(0x2ce)];switch(_0x11aa3c[_0x52e388(0x29e)]){case u['CollaborationEvent'][_0x52e388(0x456)]:return{..._0x197741,'data':{..._0x11aa3c,'data':(_0x1f4b64=_0x11aa3c['permissionRejEvent'])==null?void 0x0:_0x1f4b64['cs']},'cmd':_0x197741['cmd']};case u['CollaborationEvent'][_0x52e388(0x3a9)]:return{..._0x197741,'data':{..._0x11aa3c,'data':(_0x1dd46a=_0x11aa3c[_0x52e388(0x2e6)])==null?void 0x0:_0x1dd46a['cs']},'cmd':_0x197741[_0x52e388(0x36c)]};case u['CollaborationEvent'][_0x52e388(0x414)]:return{..._0x197741,'data':{..._0x11aa3c,'data':(_0x3cd0da=_0x11aa3c[_0x52e388(0x460)])==null?void 0x0:_0x3cd0da['cs']},'cmd':_0x197741['cmd']};case u[_0x52e388(0x323)]['CHANGESET_REJ']:return{..._0x197741,'data':{..._0x11aa3c,'data':(_0x15317b=_0x11aa3c[_0x52e388(0x3fd)])==null?void 0x0:_0x15317b['cs']},'cmd':_0x197741[_0x52e388(0x36c)]};case u[_0x52e388(0x323)][_0x52e388(0x472)]:return{..._0x197741,'data':{..._0x11aa3c,'data':_0x11aa3c[_0x52e388(0x16c)]},'cmd':_0x197741[_0x52e388(0x36c)]};case u[_0x52e388(0x323)]['USERS_ENTER']:return{..._0x197741,'data':{..._0x11aa3c,'data':_0x11aa3c[_0x52e388(0x192)]},'cmd':_0x197741[_0x52e388(0x36c)]};case u[_0x52e388(0x323)][_0x52e388(0x23d)]:return{..._0x197741,'data':{..._0x11aa3c,'data':_0x11aa3c[_0x52e388(0x1d5)]},'cmd':_0x197741[_0x52e388(0x36c)]};case u[_0x52e388(0x323)][_0x52e388(0x37e)]:return{..._0x197741,'data':{..._0x11aa3c,'data':_0x11aa3c[_0x52e388(0x4bb)]},'cmd':_0x197741[_0x52e388(0x36c)]};case u[_0x52e388(0x323)][_0x52e388(0x3bd)]:case u['CollaborationEvent'][_0x52e388(0x3fb)]:return{..._0x197741,'data':{..._0x11aa3c,'data':_0x11aa3c[_0x52e388(0x2ab)]},'cmd':_0x197741[_0x52e388(0x36c)]};case u[_0x52e388(0x323)][_0x52e388(0x23b)]:return{..._0x197741,'data':{..._0x11aa3c,'data':_0x11aa3c['liveShareNewHost']},'cmd':_0x197741[_0x52e388(0x36c)]};case u[_0x52e388(0x323)]['MSG_FOR_ERROR']:return{..._0x197741,'data':_0x11aa3c,'cmd':_0x197741[_0x52e388(0x36c)]};case u[_0x52e388(0x323)]['COMMENT_UPDATE']:return{..._0x197741,'data':{..._0x11aa3c,'data':_0x11aa3c['commentUpdateEvent']},'cmd':_0x197741[_0x52e388(0x36c)]};default:return _0x197741;}}default:return _0x197741;}}function pt(_0x32e9f5){const _0x31eafa=_0x14623f;switch(_0x32e9f5['cmd']){case b['HEARTBEAT']:case b[_0x31eafa(0x34b)]:return JSON['stringify']({'cmd':_0x32e9f5[_0x31eafa(0x36c)],'routeKey':_0x32e9f5[_0x31eafa(0x1ea)]});case b[_0x31eafa(0x249)]:{let _0x234a17;switch(_0x32e9f5[_0x31eafa(0x250)][_0x31eafa(0x29e)]){case u['CollaborationEvent'][_0x31eafa(0x472)]:{_0x234a17={'eventID':u[_0x31eafa(0x323)]['UPDATE_CURSOR'],'updateCursorEvent':_0x32e9f5[_0x31eafa(0x250)][_0x31eafa(0x250)]};break;}case u[_0x31eafa(0x323)][_0x31eafa(0x23d)]:{_0x234a17={'eventID':u[_0x31eafa(0x323)][_0x31eafa(0x23d)],'leaveEvent':_0x32e9f5[_0x31eafa(0x250)][_0x31eafa(0x250)]};break;}case u['CollaborationEvent'][_0x31eafa(0x2c6)]:{_0x234a17={'eventID':u[_0x31eafa(0x323)][_0x31eafa(0x2c6)],'joinEvent':_0x32e9f5['data'][_0x31eafa(0x250)]};break;}case u[_0x31eafa(0x323)]['LIVESHARE_NEW_HOST']:{_0x234a17={'eventID':u[_0x31eafa(0x323)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x32e9f5[_0x31eafa(0x250)][_0x31eafa(0x250)]};break;}case u['CollaborationEvent'][_0x31eafa(0x3fb)]:{_0x234a17={'eventID':u[_0x31eafa(0x323)][_0x31eafa(0x3fb)],'liveShareOperation':_0x32e9f5['data']['data']};break;}case u['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x234a17={'eventID':u[_0x31eafa(0x323)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x32e9f5[_0x31eafa(0x250)][_0x31eafa(0x250)]};break;}case u['CollaborationEvent'][_0x31eafa(0x2f8)]:{_0x234a17={'eventID':u[_0x31eafa(0x323)][_0x31eafa(0x2f8)],'liveShareRequestHost':_0x32e9f5[_0x31eafa(0x250)][_0x31eafa(0x250)]};break;}case u[_0x31eafa(0x323)]['LIVESHARE_FETCH_OPERATIONS']:{_0x234a17={'eventID':u['CollaborationEvent'][_0x31eafa(0x3bd)]};break;}default:_0x234a17={'eventID':_0x32e9f5[_0x31eafa(0x250)]['eventID']};}return JSON[_0x31eafa(0x1a6)]({'cmd':_0x32e9f5['cmd'],'routeKey':_0x32e9f5[_0x31eafa(0x1ea)],'collaMsg':_0x234a17});}case b[_0x31eafa(0x406)]:return JSON[_0x31eafa(0x1a6)]({'cmd':_0x32e9f5[_0x31eafa(0x36c)],'routeKey':_0x32e9f5['routeKey'],'joinReq':_0x32e9f5['data']});case b[_0x31eafa(0x433)]:return JSON[_0x31eafa(0x1a6)]({'cmd':_0x32e9f5[_0x31eafa(0x36c)],'routeKey':_0x32e9f5['routeKey'],'leaveReq':_0x32e9f5[_0x31eafa(0x250)]});default:throw new Error(_0x31eafa(0x286));}}var ss=Object[_0x14623f(0x4e3)],is=Object[_0x14623f(0x4a0)],ns=(_0x48da7c,_0x5e2448,_0x21f661,_0x664ff3)=>{const _0x4af825=_0x14623f;for(var _0xa402b2=_0x664ff3>0x1?void 0x0:_0x664ff3?is(_0x5e2448,_0x21f661):_0x5e2448,_0x1e4ae5=_0x48da7c[_0x4af825(0x338)]-0x1,_0x3f210c;_0x1e4ae5>=0x0;_0x1e4ae5--)(_0x3f210c=_0x48da7c[_0x1e4ae5])&&(_0xa402b2=(_0x664ff3?_0x3f210c(_0x5e2448,_0x21f661,_0xa402b2):_0x3f210c(_0xa402b2))||_0xa402b2);return _0x664ff3&&_0xa402b2&&ss(_0x5e2448,_0x21f661,_0xa402b2),_0xa402b2;},te=(_0x5bc7f1,_0x239594)=>(_0x4f3453,_0x70585c)=>_0x239594(_0x4f3453,_0x70585c,_0x5bc7f1);const Be=h[_0x14623f(0x1af)]('univer-pro.collaboration-client-socket-service');function rs(_0xba94fb,_0x167979,_0x2e9755){return _0xba94fb+'/'+_0x167979+'/unit/'+_0x2e9755+'/new_changes';}exports['CollaborationSocketService']=class{constructor(_0x422eee,_0x4560d1,_0x16abdf,_0x397781,_0x528a75){const _0x326a36=_0x14623f;this[_0x326a36(0x251)]=_0x422eee,this['_ws']=_0x4560d1,this[_0x326a36(0x4d0)]=_0x16abdf,this[_0x326a36(0x391)]=_0x397781,this['_snapshotServerService']=_0x528a75;}[_0x14623f(0x236)](_0x162b6c){const _0x429f74=_0x14623f,_0x1cdd0b=this[_0x429f74(0x447)]['createSocket'](_0x162b6c);if(!_0x1cdd0b)throw new Error(_0x429f74(0x16a));const _0x1541a2=new a['DisposableCollection'](),_0x177c5e=new g[(_0x429f74(0x30e))]();_0x1541a2[_0x429f74(0x2de)](a[_0x429f74(0x290)](_0x1cdd0b['close$'][_0x429f74(0x3e0)](_0x232f4c=>_0x177c5e['next'](_0x232f4c)))),_0x1541a2[_0x429f74(0x2de)](a[_0x429f74(0x290)](()=>_0x177c5e[_0x429f74(0x271)]()));const _0x5f034a=new g[(_0x429f74(0x30e))]();_0x1541a2[_0x429f74(0x2de)](a[_0x429f74(0x290)](_0x1cdd0b[_0x429f74(0x4b6)][_0x429f74(0x3e0)](_0x186532=>_0x5f034a['next'](_0x186532)))),_0x1541a2['add'](a[_0x429f74(0x290)](()=>_0x5f034a[_0x429f74(0x271)]()));const _0x292b7d=new g[(_0x429f74(0x30e))]();_0x1541a2[_0x429f74(0x2de)](a['toDisposable'](_0x1cdd0b[_0x429f74(0x40d)]['subscribe'](_0x5288b2=>{const _0x4ee392=It(_0x5288b2);_0x292b7d['next'](_0x4ee392);}))),_0x1541a2['add'](a['toDisposable'](()=>_0x292b7d[_0x429f74(0x271)]()));const _0x5826f5=()=>{const _0x5b69d4=_0x429f74;_0x5f034a[_0x5b69d4(0x389)](new Event('connection\x20error')),_0x177c5e[_0x5b69d4(0x389)](new CloseEvent('connection\x20error')),_0x75d561[_0x5b69d4(0x316)]();},_0x75d561={'memberID':'','close$':_0x177c5e[_0x429f74(0x180)](),'error$':_0x5f034a[_0x429f74(0x180)](),'open$':_0x1cdd0b[_0x429f74(0x4c8)],'message$':_0x292b7d[_0x429f74(0x180)](),'send':_0x488fcd=>{const _0x316584=_0x429f74;if(_0x488fcd['cmd']===b[_0x316584(0x249)]){if(_0x488fcd[_0x316584(0x250)][_0x316584(0x29e)]===u[_0x316584(0x323)][_0x316584(0x48b)]){this[_0x316584(0x2b4)](_0x75d561,_0x488fcd[_0x316584(0x250)])[_0x316584(0x288)](_0x21850d=>{const _0x5eb782=_0x316584;this[_0x5eb782(0x391)][_0x5eb782(0x2fb)](_0x21850d),_0x5826f5();});return;}if(_0x488fcd[_0x316584(0x250)][_0x316584(0x29e)]===u[_0x316584(0x323)][_0x316584(0x4ad)]){const _0x5df9cb=_0x488fcd['data'];this[_0x316584(0x205)](_0x5df9cb)[_0x316584(0x1b2)](_0x2ca5ee=>{const _0x263826=_0x316584;_0x292b7d[_0x263826(0x389)]({'cmd':b[_0x263826(0x4de)],'code':ke['OK'],'routeKey':_0x5df9cb['data']['unitID'],'routeType':'','data':{'eventID':u['CollaborationEvent'][_0x263826(0x380)],'data':{'changesets':_0x2ca5ee}}});})[_0x316584(0x288)](_0x1c91e7=>{const _0x3e662c=_0x316584;this[_0x3e662c(0x391)]['error'](_0x1c91e7),_0x5826f5();});return;}}_0x1cdd0b[_0x316584(0x4c3)](pt(_0x488fcd));},'close':()=>{const _0x2c4650=_0x429f74;_0x1cdd0b[_0x2c4650(0x316)](),_0x1541a2[_0x2c4650(0x188)]();}};return _0x75d561;}async[_0x14623f(0x2b4)](_0x57afab,_0x45ae35){const _0x57f190=_0x14623f;var _0xbe2bdb;const {unitType:_0x25a3cb,unitID:_0x58efd3,changeset:_0xd01a0c}=_0x45ae35[_0x57f190(0x250)],_0x1e25d8={'unitID':_0x58efd3,'memberID':_0x57afab[_0x57f190(0x22c)],'type':_0x25a3cb,'changeset':u['parseChangesetToProtocol'](_0xd01a0c)},_0x4de7c2=rs((_0xbe2bdb=this['_configService'][_0x57f190(0x178)](gt))!=null?_0xbe2bdb:zt,_0x25a3cb,_0x58efd3);try{await this[_0x57f190(0x251)][_0x57f190(0x407)](_0x4de7c2,{'body':_0x1e25d8});}catch(_0x2e3e68){throw this['_logService'][_0x57f190(0x2fb)](_0x57f190(0x279),_0x57f190(0x3b0)),_0x2e3e68;}}async[_0x14623f(0x205)](_0x30ccab){const _0x4067fd=_0x14623f,{unitID:_0x5ae915,from:_0x5ba225,to:_0x17bb56,unitType:_0x30272a}=_0x30ccab[_0x4067fd(0x250)];return(await this[_0x4067fd(0x3b8)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5ae915,'type':_0x30272a,'from':_0x5ba225,'to':_0x17bb56}))[_0x4067fd(0x4c5)];}},exports[_0x14623f(0x350)]=ns([te(0x0,h['Inject'](P[_0x14623f(0x34d)])),te(0x1,h[_0x14623f(0x362)](P[_0x14623f(0x4c2)])),te(0x2,a[_0x14623f(0x3ae)]),te(0x3,a[_0x14623f(0x47a)]),te(0x4,a['ISnapshotServerService'])],exports[_0x14623f(0x350)]);class Fe{constructor(){const _0x59804e=_0x14623f;d(this,'_commentUpdate$',new g[(_0x59804e(0x30e))]()),d(this,_0x59804e(0x419),this[_0x59804e(0x26f)][_0x59804e(0x180)]());}[_0x14623f(0x4ef)](_0x104eac){const _0x181ad6=_0x14623f;this[_0x181ad6(0x26f)][_0x181ad6(0x389)](_0x104eac);}}var os=Object[_0x14623f(0x4e3)],as=Object[_0x14623f(0x4a0)],Et=(_0x3fddab,_0xc53b73,_0x4e77f7,_0x1aa67a)=>{const _0x241aa6=_0x14623f;for(var _0x3933cc=_0x1aa67a>0x1?void 0x0:_0x1aa67a?as(_0xc53b73,_0x4e77f7):_0xc53b73,_0x217482=_0x3fddab[_0x241aa6(0x338)]-0x1,_0xc32f3d;_0x217482>=0x0;_0x217482--)(_0xc32f3d=_0x3fddab[_0x217482])&&(_0x3933cc=(_0x1aa67a?_0xc32f3d(_0xc53b73,_0x4e77f7,_0x3933cc):_0xc32f3d(_0x3933cc))||_0x3933cc);return _0x1aa67a&&_0x3933cc&&os(_0xc53b73,_0x4e77f7,_0x3933cc),_0x3933cc;},w=(_0x13a142,_0x465e52)=>(_0x308902,_0x565460)=>_0x465e52(_0x308902,_0x565460,_0x13a142),W=(_0x3664f7=>(_0x3664f7[_0x3664f7[_0x14623f(0x4df)]=0x0]=_0x14623f(0x4df),_0x3664f7[_0x3664f7[_0x14623f(0x48d)]=0x1]=_0x14623f(0x48d),_0x3664f7[_0x3664f7[_0x14623f(0x20c)]=0x2]=_0x14623f(0x20c),_0x3664f7[_0x3664f7['ONLINE']=0x3]=_0x14623f(0x21e),_0x3664f7))(W||{});exports['CollaborationSession']=class extends a[_0x14623f(0x237)]{constructor(_0x3313a8,_0x5afe2b,_0x198de8,_0x5582ce,_0xc61c16,_0x386b39,_0x20af20,_0x3441a1,_0x2580da){const _0x3d7a23=_0x14623f;super(),d(this,_0x3d7a23(0x426),new g['BehaviorSubject'](0x0)),d(this,_0x3d7a23(0x199),this[_0x3d7a23(0x426)][_0x3d7a23(0x180)]()),d(this,'_event$',new g[(_0x3d7a23(0x30e))]()),d(this,'event$',this[_0x3d7a23(0x4bf)][_0x3d7a23(0x180)]()),d(this,'_socket'),d(this,_0x3d7a23(0x22b)),d(this,_0x3d7a23(0x489)),(this[_0x3d7a23(0x42f)]=_0x3313a8,this['_logService']=_0x198de8,this[_0x3d7a23(0x48f)]=_0x5582ce,this[_0x3d7a23(0x3c6)]=_0xc61c16,this['_configService']=_0x386b39,this[_0x3d7a23(0x3d8)]=_0x20af20,this[_0x3d7a23(0x14e)]=_0x3441a1,this['_commentService']=_0x2580da,_0x5afe2b['pipe'](T[_0x3d7a23(0x476)](this[_0x3d7a23(0x1c2)]))[_0x3d7a23(0x3e0)](_0x2132b4=>{const _0x1de529=_0x3d7a23;var _0x1f76f0;typeof _0x2132b4>'u'||(this[_0x1de529(0x27b)]=_0x2132b4,_0x2132b4?(this[_0x1de529(0x41d)](_0x2132b4),this[_0x1de529(0x22b)]=this[_0x1de529(0x27b)]['message$'][_0x1de529(0x3e0)](_0x37b737=>{const _0x4ff22a=_0x1de529;_0x37b737[_0x4ff22a(0x1ea)]===this['_unitID']&&this['_onCombEvent'](_0x37b737);})):(this[_0x1de529(0x426)][_0x1de529(0x389)](0x2),(_0x1f76f0=this[_0x1de529(0x22b)])==null||_0x1f76f0[_0x1de529(0x275)](),this[_0x1de529(0x22b)]=null));}),this['disposeWithMe'](this[_0x3d7a23(0x48f)][_0x3d7a23(0x40b)](()=>{const _0x2e6dae=_0x3d7a23;var _0x4f1b36;(_0x4f1b36=this['_socket'])==null||_0x4f1b36[_0x2e6dae(0x4c3)]({'cmd':b[_0x2e6dae(0x433)],'data':{'roomID':this[_0x2e6dae(0x42f)]}});})));}get[_0x14623f(0x1ee)](){return this['_sessionStatus$']['getValue']();}[_0x14623f(0x310)](){const _0x888318=_0x14623f;var _0x203a08,_0x5a2aad;return(_0x5a2aad=(_0x203a08=this[_0x888318(0x27b)])==null?void 0x0:_0x203a08[_0x888318(0x22c)])!=null?_0x5a2aad:null;}[_0x14623f(0x188)](){const _0x4478e4=_0x14623f;super['dispose'](),this[_0x4478e4(0x1c2)][_0x4478e4(0x389)](),this[_0x4478e4(0x1c2)][_0x4478e4(0x271)]();}[_0x14623f(0x235)](_0x95fbca){const _0x1f08a4=_0x14623f;_0x95fbca[_0x1f08a4(0x36c)]===b[_0x1f08a4(0x406)]?this['_onJoinRoomEvent'](_0x95fbca):_0x95fbca[_0x1f08a4(0x36c)]===b[_0x1f08a4(0x4de)]&&this['_onRecvEvent'](_0x95fbca);}[_0x14623f(0x41d)](_0x227ddd){const _0x3a436e=_0x14623f;this[_0x3a436e(0x426)]['next'](0x1),_0x227ddd[_0x3a436e(0x4c3)]({'cmd':b['JOIN'],'routeKey':this[_0x3a436e(0x42f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3a436e(0x42f)]}]}});}['_onJoinRoomEvent'](_0x39e7d2){const _0x486f91=_0x14623f;var _0x23ab6c;if(_0x39e7d2['code']===ke[_0x486f91(0x376)]){this[_0x486f91(0x3c6)][_0x486f91(0x3cf)]({'type':oe[_0x486f91(0x25f)][_0x486f91(0x2a4)],'content':this[_0x486f91(0x3d8)]['t']('session.room-full')}),this[_0x486f91(0x426)][_0x486f91(0x389)](0x2);return;}this[_0x486f91(0x426)][_0x486f91(0x389)](0x3);const _0x290f94=(_0x23ab6c=_0x39e7d2[_0x486f91(0x250)][_0x486f91(0x326)][this[_0x486f91(0x42f)]])==null?void 0x0:_0x23ab6c['members'];_0x290f94&&_0x290f94[_0x486f91(0x466)](_0x23f79d=>this['_memberService'][_0x486f91(0x3e5)](this[_0x486f91(0x42f)],_0x23f79d));}[_0x14623f(0x2f9)](_0x244b59){const _0x1c2f9b=_0x14623f;try{const _0x223c55=_0x244b59[_0x1c2f9b(0x250)];switch(_0x223c55['eventID']){case u[_0x1c2f9b(0x323)][_0x1c2f9b(0x2c6)]:this[_0x1c2f9b(0x2dd)](_0x223c55),this[_0x1c2f9b(0x4bf)][_0x1c2f9b(0x389)](_0x223c55);break;case u[_0x1c2f9b(0x323)][_0x1c2f9b(0x23d)]:this['_onUserLeave'](_0x223c55),this[_0x1c2f9b(0x4bf)][_0x1c2f9b(0x389)](_0x223c55);break;case u[_0x1c2f9b(0x323)][_0x1c2f9b(0x3a9)]:this[_0x1c2f9b(0x2e5)](),this[_0x1c2f9b(0x4bf)][_0x1c2f9b(0x389)](_0x223c55);break;case u[_0x1c2f9b(0x323)][_0x1c2f9b(0x3bf)]:this[_0x1c2f9b(0x391)][_0x1c2f9b(0x2fb)](_0x1c2f9b(0x47f)+JSON[_0x1c2f9b(0x1a6)](_0x223c55)),this['_event$'][_0x1c2f9b(0x389)](_0x223c55);break;case u[_0x1c2f9b(0x323)][_0x1c2f9b(0x3d6)]:this['_commentService'][_0x1c2f9b(0x4ef)](_0x223c55[_0x1c2f9b(0x250)]),this['_event$'][_0x1c2f9b(0x389)](_0x223c55);break;default:this['_event$'][_0x1c2f9b(0x389)](_0x223c55);}}catch(_0x2f9505){this[_0x1c2f9b(0x391)][_0x1c2f9b(0x2fb)](_0x2f9505,_0x244b59);}}['_onUserJoin'](_0x1d6985){const _0x223402=_0x14623f;this[_0x223402(0x14e)][_0x223402(0x3e5)](this[_0x223402(0x42f)],_0x1d6985['data']);}[_0x14623f(0x441)](_0x25a997){const _0x20908a=_0x14623f;this[_0x20908a(0x14e)]['removeMember'](this['_unitID'],_0x25a997[_0x20908a(0x250)]['memberID']);}async[_0x14623f(0x4c3)](_0x558b13,_0x1be4b4){const _0x389fd2=_0x14623f;if(this[_0x389fd2(0x1ee)]!==0x3||!this[_0x389fd2(0x27b)])throw new Error(_0x389fd2(0x4b9));try{_0x558b13['eventID']===u['CollaborationEvent']['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this['_socket'][_0x389fd2(0x4c3)]({'cmd':b['INGEST'],'routeKey':_0x1be4b4,'routeType':'','data':_0x558b13});}catch(_0x49d040){this['_logService'][_0x389fd2(0x2fb)](_0x49d040);}}[_0x14623f(0x3e1)](){const _0x237ead=_0x14623f;var _0x1a997a;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x36a195=_0x5cb3;this[_0x36a195(0x489)]=null,this[_0x36a195(0x3c6)]['show']({'type':oe['MessageType'][_0x36a195(0x197)],'content':this['_localeService']['t'](_0x36a195(0x2af))});},(_0x1a997a=this['_configService'][_0x237ead(0x178)](xe))!=null?_0x1a997a:St);}[_0x14623f(0x2e5)](){const _0x1df1a9=_0x14623f;this[_0x1df1a9(0x489)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x1df1a9(0x489)]=null);}},exports[_0x14623f(0x36d)]=Et([w(0x2,a['ILogService']),w(0x3,N['IBeforeCloseService']),w(0x4,N['IMessageService']),w(0x5,a['IConfigService']),w(0x6,h[_0x14623f(0x362)](a[_0x14623f(0x201)])),w(0x7,h[_0x14623f(0x362)](G)),w(0x8,h[_0x14623f(0x362)](Fe))],exports[_0x14623f(0x36d)]),exports[_0x14623f(0x397)]=class extends a['Disposable']{constructor(_0x439a57,_0x238386,_0x5e04ed,_0xb54838,_0x2a860c,_0x269373){const _0x3ceda7=_0x14623f;super(),d(this,_0x3ceda7(0x142),new g[(_0x3ceda7(0x46b))](void 0x0)),d(this,_0x3ceda7(0x263),new Map()),d(this,_0x3ceda7(0x152),new g[(_0x3ceda7(0x46b))](0x0)),d(this,_0x3ceda7(0x486),this[_0x3ceda7(0x152)][_0x3ceda7(0x180)]()),d(this,_0x3ceda7(0x164),!0x1),d(this,_0x3ceda7(0x1b4)),d(this,_0x3ceda7(0x20f)),d(this,'_retryConnectingTimer'),d(this,'_retryCount',0x0),(this[_0x3ceda7(0x31a)]=_0x439a57,this[_0x3ceda7(0x3d8)]=_0x238386,this['_messageService']=_0x5e04ed,this[_0x3ceda7(0x391)]=_0xb54838,this[_0x3ceda7(0x4d0)]=_0x2a860c,this[_0x3ceda7(0x29d)]=_0x269373);}get[_0x14623f(0x27b)](){const _0x10ba7a=_0x14623f;return this[_0x10ba7a(0x142)][_0x10ba7a(0x385)]();}[_0x14623f(0x188)](){const _0x285336=_0x14623f;super[_0x285336(0x188)](),this[_0x285336(0x263)][_0x285336(0x466)](_0x2bf9d7=>_0x2bf9d7['dispose']()),this[_0x285336(0x263)][_0x285336(0x31e)](),this['_status$']['complete']();}async[_0x14623f(0x4aa)](_0x36fd7e){const _0x25ad2d=_0x14623f;if(this[_0x25ad2d(0x263)][_0x25ad2d(0x33f)](_0x36fd7e))return this['_sessions']['get'](_0x36fd7e);this[_0x25ad2d(0x282)]();const _0x5a42d9=this[_0x25ad2d(0x31a)][_0x25ad2d(0x32c)](exports['CollaborationSession'],_0x36fd7e,this[_0x25ad2d(0x142)][_0x25ad2d(0x180)]());return this[_0x25ad2d(0x263)][_0x25ad2d(0x3da)](_0x36fd7e,_0x5a42d9),_0x5a42d9;}[_0x14623f(0x2db)](){const _0x41234c=_0x14623f;var _0x1a9bd3;const _0x43e216=(_0x1a9bd3=this[_0x41234c(0x4d0)][_0x41234c(0x178)](ut))!=null?_0x1a9bd3:Vt;return this[_0x41234c(0x29d)][_0x41234c(0x236)](_0x43e216);}[_0x14623f(0x282)](){const _0x56f8e0=_0x14623f;try{const _0x1041c9=this[_0x56f8e0(0x2db)]();if(_0x1041c9){const _0x2767ba=_0x1041c9[_0x56f8e0(0x4c3)];_0x1041c9['send']=_0x4e47de=>(this[_0x56f8e0(0x1ad)](),_0x2767ba['apply'](_0x1041c9,[_0x4e47de])),_0x1041c9['message$'][_0x56f8e0(0x3e0)](_0x30d2a2=>this[_0x56f8e0(0x36f)](_0x1041c9,_0x30d2a2)),_0x1041c9[_0x56f8e0(0x4b6)][_0x56f8e0(0x160)](T[_0x56f8e0(0x1d2)](0x1))[_0x56f8e0(0x3e0)](_0x486e64=>this['_logService']['error'](_0x56f8e0(0x3e3),_0x486e64)),_0x1041c9[_0x56f8e0(0x4c8)][_0x56f8e0(0x160)](T['take'](0x1))[_0x56f8e0(0x3e0)](()=>{this['_onConnectionOpen'](_0x1041c9);}),_0x1041c9['close$']['pipe'](T[_0x56f8e0(0x1d2)](0x1))['subscribe'](_0x4b3512=>{const _0x434d87=_0x56f8e0;this[_0x434d87(0x391)][_0x434d87(0x4bd)](_0x434d87(0x147),_0x434d87(0x2a7),_0x4b3512),this[_0x434d87(0x412)]();});}}catch(_0x37aab3){this[_0x56f8e0(0x391)][_0x56f8e0(0x2fb)](_0x37aab3),this['_onConnectionFailed']();}}[_0x14623f(0x4e5)](_0x4c0dbc){const _0x15b9b7=_0x14623f;this[_0x15b9b7(0x391)]['debug'](_0x15b9b7(0x147),_0x15b9b7(0x42c)),_0x4c0dbc[_0x15b9b7(0x4c3)]({'cmd':b[_0x15b9b7(0x34b)]}),this['_rescheduleHeartbeatEvent']();}[_0x14623f(0x412)](){const _0x332eee=_0x14623f;var _0x452f55;this[_0x332eee(0x152)][_0x332eee(0x389)](0x2),this[_0x332eee(0x142)][_0x332eee(0x389)](null),this[_0x332eee(0x1b9)](),this[_0x332eee(0x32a)](),this['_socketReady']=!0x1,this[_0x332eee(0x1a1)]<((_0x452f55=this[_0x332eee(0x4d0)][_0x332eee(0x178)](Kt))!=null?_0x452f55:Xt)?(this[_0x332eee(0x4ba)](this[_0x332eee(0x1a1)]),this[_0x332eee(0x1a1)]+=0x1):this[_0x332eee(0x3c6)][_0x332eee(0x3cf)]({'type':oe['MessageType'][_0x332eee(0x197)],'content':this['_localeService']['t']('session.connection-failed')});}[_0x14623f(0x4ba)](_0x5e1926){const _0x563359=_0x14623f;var _0x1419e6;const _0x187e15=((_0x1419e6=this['_configService'][_0x563359(0x178)](Gt))!=null?_0x1419e6:Yt)*0x2**_0x5e1926;this['_messageService'][_0x563359(0x3cf)]({'type':oe[_0x563359(0x25f)][_0x563359(0x2a4)],'content':this[_0x563359(0x3d8)]['t'](_0x563359(0x4d7))}),this[_0x563359(0x297)]=setTimeout(()=>{const _0x52da2e=_0x563359;this[_0x52da2e(0x282)](),clearTimeout(this['_retryConnectingTimer']),this[_0x52da2e(0x297)]=null;},_0x187e15);}['_rescheduleHeartbeatEvent'](){const _0x1bb448=_0x14623f;var _0x8062f3;this[_0x1bb448(0x32a)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x1bb448(0x31d)](),(_0x8062f3=this['_configService'][_0x1bb448(0x178)](dt))!=null?_0x8062f3:Wt);}[_0x14623f(0x31d)](){const _0x8cc06e=_0x14623f;this[_0x8cc06e(0x27b)]['send']({'cmd':b['HEARTBEAT']}),this[_0x8cc06e(0x499)]();}['_waitForHeartbeatResponse'](){const _0x171498=_0x14623f;var _0x7212dd;this[_0x171498(0x20f)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x7212dd=this['_configService']['getConfig'](xe))!=null?_0x7212dd:St);}['_onMessage'](_0x45bafa,_0x22c97a){const _0xea359f=_0x14623f,{cmd:_0x29b69e}=_0x22c97a;_0x29b69e===b['HELLO']&&!this[_0xea359f(0x164)]&&(_0x45bafa[_0xea359f(0x22c)]=_0x22c97a[_0xea359f(0x250)]['memberID'],this[_0xea359f(0x142)][_0xea359f(0x389)](_0x45bafa),this[_0xea359f(0x152)]['next'](0x3),this[_0xea359f(0x164)]=!0x0),_0x29b69e===b['HEARTBEAT']&&this[_0xea359f(0x1b9)](),this[_0xea359f(0x1ad)]();}[_0x14623f(0x32a)](){const _0x4ca664=_0x14623f;this[_0x4ca664(0x1b4)]!=null&&(clearTimeout(this[_0x4ca664(0x1b4)]),this[_0x4ca664(0x1b4)]=null);}[_0x14623f(0x1b9)](){const _0x57d3a3=_0x14623f;this[_0x57d3a3(0x20f)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},exports[_0x14623f(0x397)]=Et([w(0x0,h[_0x14623f(0x362)](h['Injector'])),w(0x1,h[_0x14623f(0x362)](a['LocaleService'])),w(0x2,N[_0x14623f(0x462)]),w(0x3,a['ILogService']),w(0x4,a['IConfigService']),w(0x5,Be)],exports[_0x14623f(0x397)]);var cs=Object['defineProperty'],ls=Object['getOwnPropertyDescriptor'],hs=(_0x1625f0,_0xdde438,_0x5765e4,_0x1ac1ac)=>{for(var _0x17c22a=_0x1ac1ac>0x1?void 0x0:_0x1ac1ac?ls(_0xdde438,_0x5765e4):_0xdde438,_0x463a29=_0x1625f0['length']-0x1,_0x522217;_0x463a29>=0x0;_0x463a29--)(_0x522217=_0x1625f0[_0x463a29])&&(_0x17c22a=(_0x1ac1ac?_0x522217(_0xdde438,_0x5765e4,_0x17c22a):_0x522217(_0x17c22a))||_0x17c22a);return _0x1ac1ac&&_0x17c22a&&cs(_0xdde438,_0x5765e4,_0x17c22a),_0x17c22a;},se=(_0x24041d,_0x1a8ded)=>(_0x4e0f50,_0x5f175b)=>_0x1a8ded(_0x4e0f50,_0x5f175b,_0x24041d);exports[_0x14623f(0x28b)]=class extends a[_0x14623f(0x4cf)]{constructor(_0x4ee670,_0x596b74,_0x5eb69e,_0x61fde,_0x20aaed){const _0x2f2731=_0x14623f;super(),d(this,_0x2f2731(0x35b),new Map()),d(this,_0x2f2731(0x4f4),new Map()),d(this,_0x2f2731(0x401),!0x1),(this[_0x2f2731(0x4d0)]=_0x4ee670,this[_0x2f2731(0x195)]=_0x596b74,this[_0x2f2731(0x48f)]=_0x5eb69e,this[_0x2f2731(0x3d8)]=_0x61fde,this[_0x2f2731(0x377)]=_0x20aaed,this[_0x2f2731(0x3fc)]());}[_0x14623f(0x148)](){const _0x32cd5b=_0x14623f;this[_0x32cd5b(0x401)]=!0x0;}['enableLocalCache'](){const _0x296acf=_0x14623f;this[_0x296acf(0x401)]=!0x1;}[_0x14623f(0x188)](){const _0x5d81c0=_0x14623f;this[_0x5d81c0(0x1aa)]()[_0x5d81c0(0x1b2)](()=>super[_0x5d81c0(0x188)]());}async[_0x14623f(0x43f)](_0x3eb543){const _0x58d72a=_0x14623f;return this['_disabled']?null:this[_0x58d72a(0x195)][_0x58d72a(0x4d9)](qe(_0x3eb543));}async[_0x14623f(0x417)](_0x700a85,_0x34f3b4){const _0x1d7e5e=_0x14623f;return!!this['_localStorageService'][_0x1d7e5e(0x46c)](_0x700a85,_0x34f3b4);}['updateOfflineData'](_0x5f4d0b,_0x12be2a,_0x177811,_0x5923fe){const _0x18a279=_0x14623f,_0x472572=this[_0x18a279(0x377)][_0x18a279(0x371)](_0x5f4d0b);this[_0x18a279(0x35b)][_0x18a279(0x3da)](_0x5f4d0b,{'unitID':_0x5f4d0b,'type':_0x12be2a,'awaitingChangeset':_0x177811,'mutations':_0x5923fe,'rev':_0x472572}),this[_0x18a279(0x4f4)][_0x18a279(0x33f)](_0x5f4d0b)||this[_0x18a279(0x1da)](_0x5f4d0b);}['_scheduleSaving'](_0x5511a4){const _0x1f999e=_0x14623f,_0x1b8b6a=this['_getSaveTimeout']();_0x1b8b6a===0x0?this[_0x1f999e(0x355)](_0x5511a4):this[_0x1f999e(0x4f4)][_0x1f999e(0x3da)](_0x5511a4,setTimeout(()=>this[_0x1f999e(0x355)](_0x5511a4),_0x1b8b6a));}['_getSaveTimeout'](){const _0x4abefb=_0x14623f;var _0x1ac49c;return(_0x1ac49c=this[_0x4abefb(0x4d0)][_0x4abefb(0x178)](vt))!=null?_0x1ac49c:qt;}[_0x14623f(0x355)](_0x1cef2f){const _0x18d6dc=_0x14623f,_0x4a60e9=this[_0x18d6dc(0x4f4)][_0x18d6dc(0x3f7)](_0x1cef2f);return _0x4a60e9!==void 0x0&&window[_0x18d6dc(0x3dc)](_0x4a60e9),this[_0x18d6dc(0x195)][_0x18d6dc(0x46c)](qe(_0x1cef2f),this[_0x18d6dc(0x35b)][_0x18d6dc(0x3f7)](_0x1cef2f))[_0x18d6dc(0x1b2)](()=>this[_0x18d6dc(0x4f4)][_0x18d6dc(0x38c)](_0x1cef2f));}async[_0x14623f(0x1aa)](){const _0x27ca0a=_0x14623f,_0x52ac94=[];this['_saveTaskMap'][_0x27ca0a(0x466)]((_0xc64e98,_0x5a4576)=>{const _0x5126af=_0x27ca0a;window[_0x5126af(0x3dc)](_0xc64e98),_0x52ac94['push'](this[_0x5126af(0x355)](_0x5a4576)['then'](()=>{const _0x4dca52=_0x5126af;this[_0x4dca52(0x4f4)][_0x4dca52(0x38c)](_0x5a4576);}));}),await Promise[_0x27ca0a(0x487)](_0x52ac94);}[_0x14623f(0x3fc)](){const _0x208dc2=_0x14623f;this['disposeWithMe'](this[_0x208dc2(0x48f)][_0x208dc2(0x4b5)](()=>{const _0x497419=_0x208dc2;if(this[_0x497419(0x4f4)][_0x497419(0x26c)])return this[_0x497419(0x3d8)]['t'](_0x497419(0x20b));}));}},exports[_0x14623f(0x28b)]=hs([se(0x0,a['IConfigService']),se(0x1,a[_0x14623f(0x1bf)]),se(0x2,N[_0x14623f(0x4a3)]),se(0x3,h[_0x14623f(0x362)](a[_0x14623f(0x201)])),se(0x4,h[_0x14623f(0x362)](u[_0x14623f(0x430)]))],exports[_0x14623f(0x28b)]);function qe(_0x56c48c){return'unit-cache-'+_0x56c48c;}const pe=h['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var Ct=(_0x333ce8=>(_0x333ce8[_0x333ce8[_0x14623f(0x32f)]=0x0]=_0x14623f(0x32f),_0x333ce8[_0x333ce8[_0x14623f(0x24b)]=0x1]=_0x14623f(0x24b),_0x333ce8))(Ct||{});const ze=0x7530,Je=_0x14623f(0x4ee);class _s extends a[_0x14623f(0x4cf)]{constructor(){const _0xf68529=_0x14623f;super(),d(this,_0xf68529(0x21b),a['Tools']['generateRandomId']()),d(this,_0xf68529(0x44d),new Set()),d(this,_0xf68529(0x492),new Map()),d(this,'_heartbeatTimer',null),d(this,'_clearOtherTimers',new Map()),d(this,_0xf68529(0x213),new Map()),this[_0xf68529(0x21f)]();}[_0x14623f(0x188)](){const _0x1c6190=_0x14623f;super['dispose'](),this[_0x1c6190(0x2a3)][_0x1c6190(0x466)]((_0x33cea8,_0xeb9009)=>this[_0x1c6190(0x45d)](_0xeb9009)),this[_0x1c6190(0x1ba)]&&window[_0x1c6190(0x4c9)](this[_0x1c6190(0x1ba)]);}['getUnitStatus$'](_0x554070){const _0x46f85e=_0x14623f;return this[_0x46f85e(0x1c9)](_0x554070)['pipe'](g[_0x46f85e(0x36a)]());}[_0x14623f(0x1b7)](_0x47d8c4){const _0x342c85=_0x14623f;this[_0x342c85(0x44d)][_0x342c85(0x26c)]===0x0&&this['_scheduleHeartbeat'](),this[_0x342c85(0x44d)][_0x342c85(0x2de)](_0x47d8c4),this[_0x342c85(0x41a)]({'type':0x0,'memberID':this[_0x342c85(0x21b)],'unitIDs':[_0x47d8c4],'isForwarded':!0x1});}[_0x14623f(0x2a6)](_0x3cc01e){const _0x1cd229=_0x14623f;this[_0x1cd229(0x44d)][_0x1cd229(0x38c)](_0x3cc01e),this['_selfUnitIDs'][_0x1cd229(0x26c)]===0x0&&this[_0x1cd229(0x1ba)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x14623f(0x21f)](){const _0x383791=_0x14623f;this['disposeWithMe'](a['toDisposable'](g[_0x383791(0x3f6)](window,_0x383791(0x3d2))[_0x383791(0x3e0)](_0x4a96b4=>{const _0xf76c57=_0x383791;if(_0x4a96b4[_0xf76c57(0x254)]!==Je||!_0x4a96b4[_0xf76c57(0x307)])return;const _0x235e04=JSON[_0xf76c57(0x2d6)](_0x4a96b4[_0xf76c57(0x307)]);this['_handleEvent'](_0x235e04);}))),window[_0x383791(0x143)](_0x383791(0x23a),()=>this[_0x383791(0x41a)]({'type':0x1,'memberID':this[_0x383791(0x21b)],'unitIDs':Array[_0x383791(0x3ce)](this[_0x383791(0x44d)])}));}[_0x14623f(0x306)](_0x3a8caf){const _0x57c8b8=_0x14623f;switch(_0x3a8caf[_0x57c8b8(0x2c2)]){case 0x0:this[_0x57c8b8(0x394)](_0x3a8caf);break;case 0x1:this[_0x57c8b8(0x242)](_0x3a8caf);break;case 0x2:this[_0x57c8b8(0x15d)](_0x3a8caf);break;}}['_handleJoinEvent'](_0x55c54b){const _0x3ffc65=_0x14623f,{unitIDs:_0x509857,memberID:_0x5a4a4c,isForwarded:_0x403852}=_0x55c54b;_0x509857['forEach'](_0x12911e=>{const _0x2e19c4=_0x5cb3;if(!_0x403852&&this[_0x2e19c4(0x492)][_0x2e19c4(0x33f)](_0x12911e)&&this[_0x2e19c4(0x1c9)](_0x12911e)[_0x2e19c4(0x389)](0x1),!this[_0x2e19c4(0x492)]['has'](_0x12911e)||!this[_0x2e19c4(0x492)][_0x2e19c4(0x3f7)](_0x12911e)[_0x2e19c4(0x33f)](_0x5a4a4c)){const _0x5bd3c0=this['_unitOnClients']['get'](_0x12911e)||new Set();_0x5bd3c0[_0x2e19c4(0x2de)](_0x5a4a4c),this[_0x2e19c4(0x492)][_0x2e19c4(0x3da)](_0x12911e,_0x5bd3c0),this[_0x2e19c4(0x3e7)](_0x5a4a4c);}}),_0x403852||this[_0x3ffc65(0x41a)]({'type':0x0,'memberID':this[_0x3ffc65(0x21b)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x14623f(0x3e7)](_0x268b7f){const _0x26f421=_0x14623f;this[_0x26f421(0x45d)](_0x268b7f);const _0x57a24b=window[_0x26f421(0x141)](()=>{const _0x36c06a=_0x26f421;this[_0x36c06a(0x492)]['forEach'](_0x16cb2e=>{const _0x22891b=_0x36c06a;_0x16cb2e[_0x22891b(0x38c)](_0x268b7f);});},ze*0x2);this['_clearOtherTimers'][_0x26f421(0x3da)](_0x268b7f,_0x57a24b);}[_0x14623f(0x45d)](_0x350588){const _0x10efec=_0x14623f;if(this[_0x10efec(0x2a3)][_0x10efec(0x33f)](_0x350588)){const _0x9b7cad=this[_0x10efec(0x2a3)]['get'](_0x350588);_0x9b7cad&&window[_0x10efec(0x3dc)](_0x9b7cad),this[_0x10efec(0x2a3)]['set'](_0x350588,null);}}['_handleLeaveEvent'](_0x4f6f8b){const _0x134623=_0x14623f,{memberID:_0x56d4ff,unitIDs:_0x3f25dd}=_0x4f6f8b;_0x3f25dd[_0x134623(0x466)](_0x433f84=>{const _0x2dc442=_0x134623;var _0xf4712f;const _0x18970b=this[_0x2dc442(0x492)][_0x2dc442(0x3f7)](_0x433f84);_0x18970b&&(_0x18970b[_0x2dc442(0x38c)](_0x56d4ff),(_0xf4712f=this['_ensureSubject'](_0x433f84))==null||_0xf4712f[_0x2dc442(0x389)](_0x18970b['size']===0x0?0x0:0x1));}),this[_0x134623(0x45d)](_0x56d4ff);}['_handleHeartbeatEvent'](_0x428fea){const _0x2293d6=_0x14623f;this[_0x2293d6(0x3e7)](_0x428fea[_0x2293d6(0x22c)]);}[_0x14623f(0x41a)](_0x5d85c3){const _0xcb9d20=_0x14623f;localStorage[_0xcb9d20(0x46c)](Je,JSON[_0xcb9d20(0x1a6)](_0x5d85c3));}[_0x14623f(0x442)](){const _0x3ea295=_0x14623f;this[_0x3ea295(0x1ba)]=window[_0x3ea295(0x2eb)](()=>{const _0xe51ab1=_0x3ea295;this[_0xe51ab1(0x41a)]({'type':0x2,'memberID':this[_0xe51ab1(0x21b)]});},ze);}[_0x14623f(0x1c9)](_0x3ecdd8){const _0x3770f3=_0x14623f;return this['_unitStatus']['has'](_0x3ecdd8)||this[_0x3770f3(0x213)][_0x3770f3(0x3da)](_0x3ecdd8,new g[(_0x3770f3(0x46b))](0x0)),this[_0x3770f3(0x213)][_0x3770f3(0x3f7)](_0x3ecdd8);}}var us=Object[_0x14623f(0x4e3)],ds=Object[_0x14623f(0x4a0)],Ss=(_0x1a6635,_0x318e12,_0x5d9142,_0x95a3e6)=>{const _0x22156f=_0x14623f;for(var _0x3b77b1=_0x95a3e6>0x1?void 0x0:_0x95a3e6?ds(_0x318e12,_0x5d9142):_0x318e12,_0x4734b0=_0x1a6635[_0x22156f(0x338)]-0x1,_0xb59136;_0x4734b0>=0x0;_0x4734b0--)(_0xb59136=_0x1a6635[_0x4734b0])&&(_0x3b77b1=(_0x95a3e6?_0xb59136(_0x318e12,_0x5d9142,_0x3b77b1):_0xb59136(_0x3b77b1))||_0x3b77b1);return _0x95a3e6&&_0x3b77b1&&us(_0x318e12,_0x5d9142,_0x3b77b1),_0x3b77b1;},Ze=(_0x2870a7,_0xc6c9c6)=>(_0x3cd23d,_0x1f387e)=>_0xc6c9c6(_0x3cd23d,_0x1f387e,_0x2870a7);let ve=class{constructor(_0x3eb8e9,_0x57aeeb){const _0x238a00=_0x14623f;this[_0x238a00(0x31a)]=_0x3eb8e9,this['_transformService']=_0x57aeeb;}[_0x14623f(0x3a8)](_0x5a9515){const _0x544456=_0x14623f;this['_transformUndoRedoStack'](_0x5a9515),this[_0x544456(0x1b8)](_0x5a9515);}[_0x14623f(0x1a8)](_0x312195){const _0x9aab7c=_0x14623f,_0x280f96=this[_0x9aab7c(0x31a)][_0x9aab7c(0x3f7)](y[_0x9aab7c(0x49b)]),{redoCache:_0x3a8be2}=_0x280f96[_0x9aab7c(0x315)]();if(_0x3a8be2[_0x9aab7c(0x338)]===0x0)return _0x312195;let _0x50c72b=a[_0x9aab7c(0x4e4)][_0x9aab7c(0x248)](_0x312195[_0x9aab7c(0x17f)][0x0]);for(let _0x4de93d=0x0;_0x4de93d<_0x3a8be2[_0x9aab7c(0x338)];_0x4de93d++){const _0x34faa0={'id':_0x9aab7c(0x24f),'params':{..._0x3a8be2[_0x4de93d]}},_0x361c40=this[_0x9aab7c(0x204)]['transformMutation'](_0x50c72b,_0x34faa0,!0x1);if(u[_0x9aab7c(0x4e2)](_0x361c40))throw _0x361c40[_0x9aab7c(0x2fb)];_0x50c72b=_0x361c40[_0x9aab7c(0x231)];}return{...a[_0x9aab7c(0x4e4)][_0x9aab7c(0x248)](_0x312195),'mutations':[_0x50c72b]};}[_0x14623f(0x1f2)](_0x5f49d4){const _0x4df58b=_0x14623f,_0x42432c=this[_0x4df58b(0x31a)][_0x4df58b(0x3f7)](y[_0x4df58b(0x49b)]),{undoCache:_0x5b79b1,redoCache:_0x116743}=_0x42432c[_0x4df58b(0x315)]();if(_0x5b79b1[_0x4df58b(0x338)]===0x0||_0x116743[_0x4df58b(0x338)]===0x0)return;const _0x1ef2cb=[],_0x59fb33=[];let _0x3ff411=a[_0x4df58b(0x4e4)][_0x4df58b(0x248)](_0x5f49d4[_0x4df58b(0x17f)][0x0]),_0x5f4e05=a[_0x4df58b(0x4e4)]['deepClone'](_0x5f49d4[_0x4df58b(0x17f)][0x0]);for(let _0x8c9386=_0x5b79b1[_0x4df58b(0x338)]-0x1;_0x8c9386>=0x0;_0x8c9386--){const _0x3b3633={'id':_0x4df58b(0x24f),'params':{..._0x5b79b1[_0x8c9386]}},_0x9d4d04={'id':'doc.mutation.rich-text-editing','params':{..._0x116743[_0x8c9386]}},_0x3db99f=this[_0x4df58b(0x204)]['transformMutation'](_0x3ff411,_0x3b3633,!0x1),_0x4cf40e=this[_0x4df58b(0x204)][_0x4df58b(0x1e1)](_0x5f4e05,_0x9d4d04,!0x1);if(u[_0x4df58b(0x4e2)](_0x3db99f))throw _0x3db99f[_0x4df58b(0x2fb)];if(u[_0x4df58b(0x4e2)](_0x4cf40e))throw _0x4cf40e[_0x4df58b(0x2fb)];_0x1ef2cb[_0x4df58b(0x1d6)](_0x3db99f[_0x4df58b(0x388)][_0x4df58b(0x29a)]),_0x59fb33[_0x4df58b(0x1d6)](_0x4cf40e[_0x4df58b(0x388)][_0x4df58b(0x29a)]),_0x3ff411=_0x3db99f[_0x4df58b(0x231)],_0x5f4e05=_0x4cf40e[_0x4df58b(0x231)];}_0x42432c[_0x4df58b(0x34c)]({'undoCache':_0x1ef2cb,'redoCache':_0x59fb33});}[_0x14623f(0x1b8)](_0x230b28){const _0x89da06=_0x14623f,_0x542a24=this[_0x89da06(0x31a)]['get'](y['IMEInputManagerService']),_0x4de0b3=_0x542a24[_0x89da06(0x41b)]();if(_0x4de0b3==null)return;const _0x110ab6=[{'id':_0x89da06(0x24f),'params':{'unitId':_0x230b28[_0x89da06(0x435)],'actions':null,'textRanges':[_0x4de0b3]}}],_0x11f5b6=this[_0x89da06(0x204)][_0x89da06(0x2f0)](_0x230b28,_0x110ab6);if(!u[_0x89da06(0x189)](_0x11f5b6))throw _0x11f5b6['error'];const _0x222d3a=_0x11f5b6[_0x89da06(0x388)][0x0][_0x89da06(0x29a)]['textRanges'];Array[_0x89da06(0x3ca)](_0x222d3a)&&_0x222d3a[_0x89da06(0x338)]&&_0x542a24['setActiveRange'](_0x222d3a[0x0]);}};ve=Ss([Ze(0x0,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),Ze(0x1,u['ITransformService'])],ve);var vs=Object[_0x14623f(0x4e3)],gs=Object['getOwnPropertyDescriptor'],fs=(_0x2349b7,_0x5d145a,_0x53245e,_0x1ba6c3)=>{const _0x5654ba=_0x14623f;for(var _0x5c814c=_0x1ba6c3>0x1?void 0x0:_0x1ba6c3?gs(_0x5d145a,_0x53245e):_0x5d145a,_0x274f0a=_0x2349b7[_0x5654ba(0x338)]-0x1,_0xa80ba4;_0x274f0a>=0x0;_0x274f0a--)(_0xa80ba4=_0x2349b7[_0x274f0a])&&(_0x5c814c=(_0x1ba6c3?_0xa80ba4(_0x5d145a,_0x53245e,_0x5c814c):_0xa80ba4(_0x5c814c))||_0x5c814c);return _0x1ba6c3&&_0x5c814c&&vs(_0x5d145a,_0x53245e,_0x5c814c),_0x5c814c;},Qe=(_0x4b8a5b,_0x9ac179)=>(_0x305ce8,_0x5d100c)=>_0x9ac179(_0x305ce8,_0x5d100c,_0x4b8a5b);let ge=class{constructor(_0x40017a,_0x1fdc9d){const _0x1f254e=_0x14623f;this[_0x1f254e(0x31a)]=_0x40017a,this[_0x1f254e(0x204)]=_0x1fdc9d;}[_0x14623f(0x16d)](_0x46970e){const _0xb0a298=_0x14623f;var _0x209ccc;const _0x37a9f5=this[_0xb0a298(0x31a)][_0xb0a298(0x3f7)](y[_0xb0a298(0x324)]),_0x280ca4=(_0x209ccc=_0x37a9f5[_0xb0a298(0x4d3)]())!=null?_0x209ccc:[],_0x58f477=_0x280ca4==null?void 0x0:_0x280ca4[_0xb0a298(0x3a5)](y[_0xb0a298(0x1f5)]);if(_0x58f477[_0xb0a298(0x338)]===0x0)return;const _0x54c03f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x46970e[_0xb0a298(0x435)],'actions':null,'textRanges':_0x58f477}}],_0x55fe09=this[_0xb0a298(0x204)][_0xb0a298(0x2f0)](_0x46970e,_0x54c03f);if(!u[_0xb0a298(0x189)](_0x55fe09))throw _0x55fe09[_0xb0a298(0x2fb)];const _0x41b8c7=_0x55fe09[_0xb0a298(0x388)][0x0][_0xb0a298(0x29a)][_0xb0a298(0x30b)];Array[_0xb0a298(0x3ca)](_0x41b8c7)&&_0x41b8c7[_0xb0a298(0x338)]&&_0x37a9f5[_0xb0a298(0x1a3)](_0x41b8c7,!0x1);}};ge=fs([Qe(0x0,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),Qe(0x1,u[_0x14623f(0x483)])],ge);function bt(_0x4ef5db){const _0x1b996a=_0x14623f;let _0x2ad937='';for(const _0x55f609 of _0x4ef5db){const {startOffset:_0x3e27f2,endOffset:_0x345585,isActive:_0x433831}=_0x55f609;_0x2ad937[_0x1b996a(0x338)]&&(_0x2ad937+=','),_0x2ad937+=_0x3e27f2+':'+_0x345585+':'+(_0x433831?'1':'0');}return _0x2ad937;}function ms(_0x1b80c0){const _0x4a4962=_0x14623f,_0x2ce87b=_0x1b80c0[_0x4a4962(0x351)](','),_0x4cf42e=[];for(const _0x56bb52 of _0x2ce87b){const [_0x47c329,_0x4188b1,_0x2a9ad5]=_0x56bb52['split'](':');_0x4cf42e[_0x4a4962(0x2fe)]({'startOffset':Number(_0x47c329),'endOffset':Number(_0x4188b1),'collapsed':_0x47c329===_0x4188b1,'isActive':_0x2a9ad5==='1'});}return _0x4cf42e[_0x4a4962(0x2ef)](_0x190404=>_0x190404[_0x4a4962(0x3ba)])||(_0x4cf42e[0x0][_0x4a4962(0x3ba)]=!0x0),_0x4cf42e;}class Ve extends a['RxDisposable']{constructor(){const _0x3cfa16=_0x14623f;super(...arguments),d(this,_0x3cfa16(0x470),new g['BehaviorSubject'](null)),d(this,_0x3cfa16(0x2c3),this[_0x3cfa16(0x470)][_0x3cfa16(0x180)]());}['syncEditingCollabCursor'](_0x529b89){const _0x265bbc=_0x14623f,{unitID:_0xb09bca,memberID:_0x39f8e7,textRanges:_0x21abc6}=_0x529b89,_0x237158=bt(_0x21abc6),_0x3632a7={'unitID':_0xb09bca,'memberID':_0x39f8e7,'selection':_0x237158};this[_0x265bbc(0x470)][_0x265bbc(0x389)](_0x3632a7);}}function _0x5cb3(_0x372229,_0x4939ba){const _0x119c2f=_0x119c();return _0x5cb3=function(_0x5cb3b5,_0x159b3b){_0x5cb3b5=_0x5cb3b5-0x140;let _0x2e18dc=_0x119c2f[_0x5cb3b5];return _0x2e18dc;},_0x5cb3(_0x372229,_0x4939ba);}var Is=Object[_0x14623f(0x4e3)],ps=Object[_0x14623f(0x4a0)],Es=(_0x3b8f46,_0x7762d0,_0x59940c,_0x11ac05)=>{const _0xdd24ef=_0x14623f;for(var _0x31fa03=_0x11ac05>0x1?void 0x0:_0x11ac05?ps(_0x7762d0,_0x59940c):_0x7762d0,_0x12b574=_0x3b8f46[_0xdd24ef(0x338)]-0x1,_0x40ca91;_0x12b574>=0x0;_0x12b574--)(_0x40ca91=_0x3b8f46[_0x12b574])&&(_0x31fa03=(_0x11ac05?_0x40ca91(_0x7762d0,_0x59940c,_0x31fa03):_0x40ca91(_0x31fa03))||_0x31fa03);return _0x11ac05&&_0x31fa03&&Is(_0x7762d0,_0x59940c,_0x31fa03),_0x31fa03;},et=(_0x582d22,_0x4dd08e)=>(_0x1b21ac,_0x393a01)=>_0x4dd08e(_0x1b21ac,_0x393a01,_0x582d22);let fe=class{constructor(_0x18f4cd,_0x5dbe88){const _0x438852=_0x14623f;this[_0x438852(0x31a)]=_0x18f4cd,this[_0x438852(0x204)]=_0x5dbe88;}[_0x14623f(0x16d)](_0x578339){const _0x84866=_0x14623f;var _0x1eb2c9,_0x450bff,_0x1182a0,_0xedb8d6;const _0x1f3872=this[_0x84866(0x31a)][_0x84866(0x3f7)](E[_0x84866(0x2f5)]),{pluginName:_0x37639a,unitId:_0x1023bc,sheetId:_0x10e8d5}=_0x1f3872[_0x84866(0x19f)]()||{},_0x3b66e4=(_0x1eb2c9=_0x1f3872[_0x84866(0x4d3)]())!=null?_0x1eb2c9:[];if(_0x3b66e4[_0x84866(0x338)]===0x0||!_0x37639a||!_0x1023bc||!_0x10e8d5)return;const _0x137172=[{'id':E[_0x84866(0x37a)]['id'],'params':{'unitId':_0x1023bc,'subUnitId':_0x10e8d5,'pluginName':_0x37639a,'selections':a['Tools']['deepClone'](_0x3b66e4)}}],_0x4098f7=this[_0x84866(0x204)][_0x84866(0x2f0)](_0x578339,_0x137172);if(!u[_0x84866(0x189)](_0x4098f7))throw _0x4098f7[_0x84866(0x2fb)];const _0x1d6eab=(_0xedb8d6=(_0x1182a0=(_0x450bff=_0x4098f7['m2Prime'][0x0])==null?void 0x0:_0x450bff[_0x84866(0x29a)])==null?void 0x0:_0x1182a0[_0x84866(0x17e)])!=null?_0xedb8d6:_0x3b66e4;Array['isArray'](_0x1d6eab)&&_0x1d6eab[_0x84866(0x338)]&&this['_injector']['get'](a['ICommandService'])['executeCommand'](E[_0x84866(0x37a)]['id'],{'unitId':_0x1023bc,'subUnitId':_0x10e8d5,'pluginName':_0x37639a,'selections':_0x1d6eab});}};fe=Es([et(0x0,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),et(0x1,u[_0x14623f(0x483)])],fe);const Cs=new Set([E[_0x14623f(0x38d)]['id']]);function bs(_0x3b6a14,_0x17c968,_0x24d92e,_0x517535,_0x892ebc){const _0x1bbe46=_0x14623f;var _0x23fa7b,_0x4b63a4,_0x99f0b4,_0x5c2f77;const _0x246bf3=[];for(const _0x4ce7a8 of _0x3b6a14)if(Cs[_0x1bbe46(0x33f)](_0x4ce7a8['id'])){if(_0x246bf3[_0x1bbe46(0x338)]>0x0)break;_0x246bf3[_0x1bbe46(0x2fe)](_0x4ce7a8);break;}else _0x246bf3[_0x1bbe46(0x2fe)](_0x4ce7a8);const _0x239705=(_0x4b63a4=(_0x23fa7b=_0x892ebc[_0x1bbe46(0x1e2)]())==null?void 0x0:_0x23fa7b[_0x1bbe46(0x243)])!=null?_0x4b63a4:_0x1bbe46(0x27d),_0x8ed4a3=(_0x5c2f77=(_0x99f0b4=_0x892ebc[_0x1bbe46(0x1e2)]())==null?void 0x0:_0x99f0b4['memberID'])!=null?_0x5c2f77:_0x1bbe46(0x27d);return{'changeset':{'unitID':_0x17c968,'type':u[_0x1bbe46(0x4e6)](_0x24d92e[_0x1bbe46(0x418)](_0x17c968)),'baseRev':_0x517535['getCurrentRevForDocument'](_0x17c968),'revision':0x0,'userID':_0x239705,'memberID':_0x8ed4a3,'mutations':_0x246bf3},'pendingMutations':_0x3b6a14['slice'](_0x246bf3[_0x1bbe46(0x338)])};}function Ts(_0x441fd6,_0xb61724,_0x1dd45d,_0x359d45,_0xb64a4){const _0x30e521=_0x14623f;var _0x5e4eb3,_0x3008ca,_0x3e8f38,_0x267d5e;const _0x140b72=[_0x441fd6[_0x30e521(0x330)]((_0x45babd,_0xe18104)=>{const _0xa51595=_0x30e521;var _0x1997eb;const {id:_0x254388}=_0x45babd,{id:_0x1379b5,type:_0x142d30}=_0xe18104,_0x53c248=(_0x1997eb=_0x45babd[_0xa51595(0x29a)])!=null?_0x1997eb:{'actions':null},_0x224604=_0xe18104[_0xa51595(0x29a)];if(_0x254388&&_0x254388!==_0x1379b5)throw new Error(_0xa51595(0x176)+_0x254388+_0xa51595(0x384)+_0x1379b5+'.');return{..._0x45babd,'id':_0x1379b5,'type':_0x142d30,'params':{'unitId':_0x224604[_0xa51595(0x3e9)],'textRanges':_0x224604[_0xa51595(0x30b)],'actions':a['JSONX'][_0xa51595(0x488)](_0x53c248[_0xa51595(0x358)],_0x224604[_0xa51595(0x358)])}};},{})],_0x3f2e70=(_0x3008ca=(_0x5e4eb3=_0xb64a4[_0x30e521(0x1e2)]())==null?void 0x0:_0x5e4eb3[_0x30e521(0x243)])!=null?_0x3008ca:_0x30e521(0x27d),_0x5aac4a=(_0x267d5e=(_0x3e8f38=_0xb64a4['getCurrentUser']())==null?void 0x0:_0x3e8f38['memberID'])!=null?_0x267d5e:_0x30e521(0x27d);return{'changeset':{'unitID':_0xb61724,'type':u[_0x30e521(0x4e6)](_0x1dd45d[_0x30e521(0x418)](_0xb61724)),'baseRev':_0x359d45[_0x30e521(0x371)](_0xb61724),'revision':0x0,'userID':_0x3f2e70,'memberID':_0x5aac4a,'mutations':_0x140b72},'pendingMutations':[]};}var Rs=Object[_0x14623f(0x4e3)],Os=Object[_0x14623f(0x4a0)],K=(_0x4120da,_0x2d06c6,_0x41ad50,_0x520d70)=>{const _0x588c9b=_0x14623f;for(var _0x37bb87=_0x520d70>0x1?void 0x0:_0x520d70?Os(_0x2d06c6,_0x41ad50):_0x2d06c6,_0x5efcde=_0x4120da[_0x588c9b(0x338)]-0x1,_0x297805;_0x5efcde>=0x0;_0x5efcde--)(_0x297805=_0x4120da[_0x5efcde])&&(_0x37bb87=(_0x520d70?_0x297805(_0x2d06c6,_0x41ad50,_0x37bb87):_0x297805(_0x37bb87))||_0x37bb87);return _0x520d70&&_0x37bb87&&Rs(_0x2d06c6,_0x41ad50,_0x37bb87),_0x37bb87;},f=(_0x518685,_0x44b075)=>(_0x5aee3a,_0x292d86)=>_0x44b075(_0x5aee3a,_0x292d86,_0x518685),U=(_0x13d468=>(_0x13d468['NOT_COLLAB']=_0x14623f(0x1c8),_0x13d468['SYNCED']='synced',_0x13d468[_0x14623f(0x3aa)]=_0x14623f(0x212),_0x13d468[_0x14623f(0x1bb)]='awaiting',_0x13d468['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x13d468[_0x14623f(0x4cc)]='fetch_missing',_0x13d468[_0x14623f(0x4a8)]=_0x14623f(0x3c2),_0x13d468[_0x14623f(0x20c)]=_0x14623f(0x1e5),_0x13d468))(U||{});class X{constructor(_0x2ad471,_0x2f4dbf,_0x1c1724,_0x48509d,_0x2c9d57,_0x61a2c,_0xc28ea0,_0x74d942,_0x15e507){const _0x302d55=_0x14623f;d(this,_0x302d55(0x3a0),null),d(this,_0x302d55(0x2d3),[]),(this['unitID']=_0x2ad471,this[_0x302d55(0x2c2)]=_0x2f4dbf,this[_0x302d55(0x300)]=_0x2c9d57,this['_commandService']=_0x61a2c,this[_0x302d55(0x1ae)]=_0xc28ea0,this[_0x302d55(0x377)]=_0x74d942,this['_localCacheService']=_0x15e507,this[_0x302d55(0x3a0)]=_0x1c1724,this[_0x302d55(0x2d3)]=_0x48509d);}[_0x14623f(0x2b5)](_0xec023b){const _0x2cbf91=_0x14623f,_0x407385=this[_0x2cbf91(0x377)][_0x2cbf91(0x371)](this[_0x2cbf91(0x435)]);return _0xec023b[_0x2cbf91(0x332)]>_0x407385+0x1?(this[_0x2cbf91(0x300)][_0x2cbf91(0x262)]({'from':_0x407385,'to':_0xec023b[_0x2cbf91(0x332)]-0x1}),!0x0):!0x1;}[_0x14623f(0x3fa)](_0x3afa5d){const _0x5bdc82=_0x14623f;this[_0x5bdc82(0x1ae)][_0x5bdc82(0x403)](this[_0x5bdc82(0x435)],_0x3afa5d);}[_0x14623f(0x1fb)](_0x85a232){const _0x44e101=_0x14623f;var _0x36ad19,_0x3354ee;(_0x3354ee=(_0x36ad19=this[_0x44e101(0x300)])[_0x44e101(0x3ec)])==null||_0x3354ee[_0x44e101(0x2e2)](_0x36ad19,_0x85a232);}['_transformIMECache'](_0x1bf441){const _0x4356e5=_0x14623f;var _0x5428db,_0x11738d;return(_0x11738d=(_0x5428db=this['_handler'])[_0x4356e5(0x4b7)])==null?void 0x0:_0x11738d[_0x4356e5(0x2e2)](_0x5428db,_0x1bf441);}[_0x14623f(0x2da)](_0xdb87c0){const _0x5a0754=_0x14623f;var _0x453c01,_0x52ad90,_0xbb6451;return(_0xbb6451=(_0x52ad90=(_0x453c01=this['_handler'])[_0x5a0754(0x3d5)])==null?void 0x0:_0x52ad90[_0x5a0754(0x2e2)](_0x453c01,_0xdb87c0))!=null?_0xbb6451:_0xdb87c0;}[_0x14623f(0x294)](_0x2f4649){const _0x4983ab=_0x14623f;var _0x8330a6,_0x32edd7;if(this[_0x4983ab(0x2c2)]===j[_0x4983ab(0x378)]){const {unitID:_0x27dd3b,mutations:_0x1d617b,memberID:_0x10fe5b}=_0x2f4649,_0x8baa90=_0x1d617b[0x0]['params'][_0x4983ab(0x30b)];Array[_0x4983ab(0x3ca)](_0x8baa90)&&_0x8baa90['length']>0x0&&((_0x32edd7=(_0x8330a6=this[_0x4983ab(0x300)])[_0x4983ab(0x3d4)])==null||_0x32edd7[_0x4983ab(0x2e2)](_0x8330a6,{'unitID':_0x27dd3b,'memberID':_0x10fe5b,'textRanges':_0x8baa90}));}}[_0x14623f(0x443)](){const _0x3aed49=_0x14623f;this[_0x3aed49(0x4e0)][_0x3aed49(0x48a)](this[_0x3aed49(0x435)],this[_0x3aed49(0x2c2)],this['_awaitingChangeset'],this[_0x3aed49(0x2d3)]);}[_0x14623f(0x1b5)](){const _0x5876f7=_0x14623f;return this[_0x5876f7(0x377)][_0x5876f7(0x371)](this['unitID']);}[_0x14623f(0x318)](){const _0x27259b=_0x14623f;this['_revisionService'][_0x27259b(0x356)](this[_0x27259b(0x435)]);}[_0x14623f(0x4e1)](_0x4ae53f){const _0x8258fb=_0x14623f;var _0x4fa0c6;const _0x373771=this[_0x8258fb(0x2da)](_0x4ae53f),_0x359a1b=a['sequenceExecute'](_0x373771[_0x8258fb(0x17f)],this[_0x8258fb(0x32e)],{'fromCollab':!0x0});if(!_0x359a1b[_0x8258fb(0x4cb)])throw _0x359a1b[_0x8258fb(0x2fb)]instanceof Error?_0x359a1b[_0x8258fb(0x2fb)]:new Error((_0x4fa0c6=_0x359a1b[_0x8258fb(0x2fb)])!=null?_0x4fa0c6:_0x8258fb(0x319));this['_transformIMECache'](_0x373771),this[_0x8258fb(0x3fa)](_0x4ae53f),this[_0x8258fb(0x1fb)](_0x373771),this[_0x8258fb(0x294)](_0x373771),this[_0x8258fb(0x318)]();}}let ae=class extends X{constructor(_0x4ac4fd,_0x48391f,_0xfeb1fb,_0x7a80d8,_0x1529d2,_0x27814f,_0x3acc07,_0x267859,_0x3d2120){const _0x8d9261=_0x14623f;super(_0x4ac4fd,_0x48391f,null,[],_0xfeb1fb,_0x267859,_0x3acc07,_0x7a80d8,_0x1529d2),d(this,_0x8d9261(0x33b),_0x8d9261(0x4dd)),(this[_0x8d9261(0x31a)]=_0x27814f,this['_logService']=_0x3d2120);}[_0x14623f(0x4a4)](_0x53df3a){const _0x1b2782=_0x14623f,_0x577d45=this[_0x1b2782(0x31a)]['createInstance']($,this[_0x1b2782(0x435)],this['type'],[_0x53df3a],this[_0x1b2782(0x300)]);return _0x577d45[_0x1b2782(0x14f)](),_0x577d45[_0x1b2782(0x443)](),_0x577d45;}['onRemoteChangeset'](_0x1f3a22){const _0x4befde=_0x14623f;if(this[_0x4befde(0x2b5)](_0x1f3a22))return this[_0x4befde(0x31a)][_0x4befde(0x32c)](x,this['unitID'],this['type'],null,[],null,[_0x1f3a22],this[_0x4befde(0x300)]);try{return this[_0x4befde(0x4e1)](_0x1f3a22),this;}catch(_0x355948){return this[_0x4befde(0x391)][_0x4befde(0x2fb)]('[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.',_0x355948),this;}}[_0x14623f(0x158)](){const _0x2136cb=_0x14623f;throw new Error(_0x2136cb(0x3f3));}[_0x14623f(0x369)](){const _0x11d98d=_0x14623f;throw new Error(_0x11d98d(0x1d1));}['toggleOffline'](){const _0x2193f2=_0x14623f;return this['_injector'][_0x2193f2(0x32c)](B,this['unitID'],this[_0x2193f2(0x2c2)],null,[],this['_handler']);}[_0x14623f(0x3ac)](){return this;}[_0x14623f(0x35d)](){const _0x503ef8=_0x14623f;throw new Error(_0x503ef8(0x2e1));}};ae=K([f(0x3,h['Inject'](u[_0x14623f(0x430)])),f(0x4,h['Inject'](exports[_0x14623f(0x28b)])),f(0x5,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),f(0x6,a[_0x14623f(0x17b)]),f(0x7,a[_0x14623f(0x2be)]),f(0x8,a['ILogService'])],ae);let $=class extends X{constructor(_0x3887dc,_0x5b86af,_0x7554b7,_0x584329,_0x964613,_0xaa0bf9,_0x854465,_0x3b7ee2,_0x1866bd,_0x1e06a6,_0x3a0ff5,_0x9a22c3,_0x23cdb5,_0x4d83fd){const _0x3726d6=_0x14623f;super(_0x3887dc,_0x5b86af,null,_0x7554b7,_0x584329,_0x1e06a6,_0x4d83fd,_0xaa0bf9,_0x854465),d(this,_0x3726d6(0x33b),_0x3726d6(0x212)),d(this,'_scheduleTimestamp',null),d(this,_0x3726d6(0x19d),null),(this[_0x3726d6(0x31a)]=_0x964613,this[_0x3726d6(0x14e)]=_0x3b7ee2,this[_0x3726d6(0x391)]=_0x1866bd,this[_0x3726d6(0x4d0)]=_0x3a0ff5,this['_transformService']=_0x9a22c3,this['_univerInstanceService']=_0x23cdb5);}[_0x14623f(0x4a4)](_0x5231af){const _0x57f44c=_0x14623f;return this[_0x57f44c(0x2d3)][_0x57f44c(0x2fe)](_0x5231af),this[_0x57f44c(0x443)](),this;}[_0x14623f(0x1ca)](_0x15b1b1){const _0x3c3a19=_0x14623f;if(this[_0x3c3a19(0x2b5)](_0x15b1b1))return this['_clearScheduledTask'](),this[_0x3c3a19(0x31a)][_0x3c3a19(0x32c)](x,this['unitID'],this[_0x3c3a19(0x2c2)],null,this[_0x3c3a19(0x2d3)],null,[_0x15b1b1],this[_0x3c3a19(0x300)]);try{const _0x2c7cda=this['_transformService'][_0x3c3a19(0x2f0)](_0x15b1b1,this[_0x3c3a19(0x2d3)]);if(u[_0x3c3a19(0x189)](_0x2c7cda)){const {c1Prime:_0x55fec5,m2Prime:_0x184dd6}=_0x2c7cda;this[_0x3c3a19(0x4e1)](_0x55fec5);const _0x5f2fd4=this[_0x3c3a19(0x31a)][_0x3c3a19(0x32c)]($,this['unitID'],this[_0x3c3a19(0x2c2)],_0x184dd6,this[_0x3c3a19(0x300)]);return this[_0x3c3a19(0x3c7)](),_0x5f2fd4[_0x3c3a19(0x14f)](this[_0x3c3a19(0x39d)]?Math[_0x3c3a19(0x190)](0x0,new Date()[_0x3c3a19(0x149)]()-this[_0x3c3a19(0x39d)]):this[_0x3c3a19(0x4c4)]()),_0x5f2fd4;}throw _0x2c7cda[_0x3c3a19(0x2fb)];}catch(_0xef1da9){return this['_logService']['error'](_0xef1da9),this[_0x3c3a19(0x140)](!0x1);}}[_0x14623f(0x158)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x14623f(0x369)](){const _0x450727=_0x14623f;throw new Error(_0x450727(0x400));}['toggleOffline'](){const _0x41722b=_0x14623f;return this[_0x41722b(0x3c7)](),this[_0x41722b(0x31a)][_0x41722b(0x32c)](B,this['unitID'],this[_0x41722b(0x2c2)],null,this[_0x41722b(0x2d3)],this['_handler']);}[_0x14623f(0x3ac)](){return this;}['_schedule'](_0x2f8e9a){const _0x2751f4=_0x14623f;_0x2f8e9a=_0x2f8e9a!=null?_0x2f8e9a:this[_0x2751f4(0x4c4)](),this[_0x2751f4(0x39d)]=new Date()['getTime'](),this[_0x2751f4(0x19d)]=setTimeout(()=>{const _0x495e09=_0x2751f4;this[_0x495e09(0x3c7)]();let _0x21acbe=null;switch(this[_0x495e09(0x2c2)]){case j[_0x495e09(0x328)]:{_0x21acbe=bs(this[_0x495e09(0x2d3)],this[_0x495e09(0x435)],this['_univerInstanceService'],this[_0x495e09(0x377)],this['_memberService']);break;}case j['UNIVER_DOC']:{_0x21acbe=Ts(this[_0x495e09(0x2d3)],this[_0x495e09(0x435)],this[_0x495e09(0x429)],this['_revisionService'],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x495e09(0x2c2)]+_0x495e09(0x1f7));}const {changeset:_0x3cacc7,pendingMutations:_0x2a6901}=_0x21acbe;this['_handler'][_0x495e09(0x203)](_0x3cacc7);const _0x3f778e=_0x2a6901['length']?this[_0x495e09(0x31a)][_0x495e09(0x32c)](H,this[_0x495e09(0x435)],this[_0x495e09(0x2c2)],_0x3cacc7,_0x2a6901,this[_0x495e09(0x300)]):this[_0x495e09(0x31a)][_0x495e09(0x32c)](k,this['unitID'],this[_0x495e09(0x2c2)],_0x3cacc7,this[_0x495e09(0x300)]);_0x3f778e[_0x495e09(0x443)](),this[_0x495e09(0x300)][_0x495e09(0x4f1)](this,_0x3f778e);},_0x2f8e9a);}[_0x14623f(0x4c4)](){const _0x36e171=_0x14623f;var _0x46d948;return(_0x46d948=this[_0x36e171(0x4d0)][_0x36e171(0x178)](_t))!=null?_0x46d948:Ft;}[_0x14623f(0x35d)](){const _0x8d5b76=_0x14623f;throw new Error(_0x8d5b76(0x15b));}['_clearScheduledTask'](){const _0x1bb8b7=_0x14623f;this[_0x1bb8b7(0x19d)]!=null&&(clearTimeout(this[_0x1bb8b7(0x19d)]),this[_0x1bb8b7(0x19d)]=null);}['_onConflict'](_0x5551f1){const _0x4a5c0d=_0x14623f;return this[_0x4a5c0d(0x3c7)](),this[_0x4a5c0d(0x31a)]['createInstance'](Y,this[_0x4a5c0d(0x435)],this[_0x4a5c0d(0x2c2)],null,this['_pendingMutations'],this[_0x4a5c0d(0x300)],_0x5551f1);}};$=K([f(0x4,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),f(0x5,h[_0x14623f(0x362)](u[_0x14623f(0x430)])),f(0x6,h[_0x14623f(0x362)](exports[_0x14623f(0x28b)])),f(0x7,h[_0x14623f(0x362)](G)),f(0x8,a[_0x14623f(0x47a)]),f(0x9,a[_0x14623f(0x2be)]),f(0xa,a[_0x14623f(0x3ae)]),f(0xb,u[_0x14623f(0x483)]),f(0xc,a[_0x14623f(0x18f)]),f(0xd,a['IUndoRedoService'])],$);let k=class extends X{constructor(_0x235e45,_0x4398e2,_0x56d62d,_0x11dcdc,_0x452d31,_0x13a9cd,_0x3926f6,_0x2aa60d,_0x2589c5,_0x5861c1,_0x273311){const _0xa9f11d=_0x14623f;super(_0x235e45,_0x4398e2,_0x56d62d,[],_0x11dcdc,_0x2aa60d,_0x273311,_0x13a9cd,_0x3926f6),d(this,'status',_0xa9f11d(0x1d9)),(this[_0xa9f11d(0x31a)]=_0x452d31,this[_0xa9f11d(0x391)]=_0x2589c5,this[_0xa9f11d(0x204)]=_0x5861c1);}[_0x14623f(0x4a4)](_0x4d7ed9){const _0x1585b3=_0x14623f,_0x273c39=this[_0x1585b3(0x31a)]['createInstance'](H,this[_0x1585b3(0x435)],this[_0x1585b3(0x2c2)],this[_0x1585b3(0x3a0)],[_0x4d7ed9],this[_0x1585b3(0x300)]);return _0x273c39[_0x1585b3(0x443)](),_0x273c39;}['onRemoteChangeset'](_0x5282c5){const _0x439af0=_0x14623f;if(this[_0x439af0(0x2b5)](_0x5282c5))return this[_0x439af0(0x31a)][_0x439af0(0x32c)](x,this[_0x439af0(0x435)],this[_0x439af0(0x2c2)],this[_0x439af0(0x3a0)],[],null,[_0x5282c5],this[_0x439af0(0x300)]);try{const _0x2e9244=this['_transformService'][_0x439af0(0x2c8)]([_0x5282c5],[this[_0x439af0(0x3a0)]],!0x1);if(u[_0x439af0(0x245)](_0x2e9244)){const {c1Prime:_0x48cb86,c2Prime:_0x1bf902}=_0x2e9244;this[_0x439af0(0x4e1)](_0x48cb86[0x0]),_0x1bf902[0x0][_0x439af0(0x485)]=this['_getCurrentRevision']();const _0x4e6690=this[_0x439af0(0x31a)][_0x439af0(0x32c)](k,this[_0x439af0(0x435)],this[_0x439af0(0x2c2)],_0x1bf902[0x0],this[_0x439af0(0x300)]);return _0x4e6690[_0x439af0(0x443)](),_0x4e6690;}return this[_0x439af0(0x140)](!0x1);}catch(_0x5ddb3e){return this[_0x439af0(0x391)][_0x439af0(0x2fb)](_0x5ddb3e),this[_0x439af0(0x140)](!0x1);}}['onRemoteAck'](_0x26e50d){const _0x4be2b3=_0x14623f,_0x34386b=this[_0x4be2b3(0x377)][_0x4be2b3(0x371)](this[_0x4be2b3(0x435)]);if(_0x26e50d[_0x4be2b3(0x332)]<_0x34386b-0x1)return this;if(this[_0x4be2b3(0x2b5)](_0x26e50d))return this[_0x4be2b3(0x31a)][_0x4be2b3(0x32c)](x,this['unitID'],this['type'],null,[],this[_0x4be2b3(0x3a0)],[],this[_0x4be2b3(0x300)]);this[_0x4be2b3(0x318)]();const _0x1ddf4b=this['_injector']['createInstance'](ae,this[_0x4be2b3(0x435)],this[_0x4be2b3(0x2c2)],this['_handler']);return _0x1ddf4b[_0x4be2b3(0x443)](),_0x1ddf4b;}['onRemoteRej'](_0x3e7769){const _0x537fd9=_0x14623f;return this[_0x537fd9(0x140)](!!(_0x3e7769!=null&&_0x3e7769[_0x537fd9(0x260)]));}['toggleOffline'](){const _0x484887=_0x14623f;return this[_0x484887(0x31a)][_0x484887(0x32c)](B,this[_0x484887(0x435)],this[_0x484887(0x2c2)],this[_0x484887(0x3a0)],[],this[_0x484887(0x300)]);}['toggleOnline'](){return this;}[_0x14623f(0x35d)](){const _0x36e2ab=_0x14623f;this['_handler']['onSendChangeset'](this[_0x36e2ab(0x3a0)]);}['_onConflict'](_0x4cdd91){const _0x2b0acf=_0x14623f;return this[_0x2b0acf(0x31a)][_0x2b0acf(0x32c)](Y,this[_0x2b0acf(0x435)],this[_0x2b0acf(0x2c2)],this['_awaitingChangeset'],[],this[_0x2b0acf(0x300)],_0x4cdd91);}};k=K([f(0x4,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),f(0x5,h['Inject'](u[_0x14623f(0x430)])),f(0x6,h[_0x14623f(0x362)](exports[_0x14623f(0x28b)])),f(0x7,a[_0x14623f(0x2be)]),f(0x8,a[_0x14623f(0x47a)]),f(0x9,u['ITransformService']),f(0xa,a[_0x14623f(0x17b)])],k);let H=class extends X{constructor(_0x432ee2,_0x5ed6e0,_0x251a12,_0x2166a1,_0x2e113f,_0x5c2ebf,_0x57cae4,_0x4824c9,_0x155122,_0x42d962,_0x45dd89,_0x375285){const _0x16290a=_0x14623f;super(_0x432ee2,_0x5ed6e0,_0x251a12,_0x2166a1,_0x2e113f,_0x155122,_0x375285,_0x57cae4,_0x4824c9),d(this,_0x16290a(0x33b),_0x16290a(0x449)),(this[_0x16290a(0x31a)]=_0x5c2ebf,this[_0x16290a(0x391)]=_0x42d962,this[_0x16290a(0x204)]=_0x45dd89);}[_0x14623f(0x4a4)](_0x342d0f){const _0x2be31a=_0x14623f;return this[_0x2be31a(0x2d3)][_0x2be31a(0x2fe)](_0x342d0f),this;}['onRemoteChangeset'](_0x3641f6){const _0x20ed8b=_0x14623f;if(this[_0x20ed8b(0x2b5)](_0x3641f6))return this['_injector'][_0x20ed8b(0x32c)](x,this['unitID'],this[_0x20ed8b(0x2c2)],this[_0x20ed8b(0x3a0)],this['_pendingMutations'],null,[_0x3641f6],this[_0x20ed8b(0x300)]);try{const _0x49b666=this[_0x20ed8b(0x204)][_0x20ed8b(0x2c8)]([_0x3641f6],[this[_0x20ed8b(0x3a0)]],!0x1);if(u[_0x20ed8b(0x245)](_0x49b666)){const {c1Prime:_0x115024,c2Prime:_0x303192}=_0x49b666,_0xc17f92=this[_0x20ed8b(0x204)][_0x20ed8b(0x2f0)](_0x115024[0x0],this[_0x20ed8b(0x2d3)]);if(u[_0x20ed8b(0x189)](_0xc17f92)){const {c1Prime:_0x459826,m2Prime:_0x5b6753}=_0xc17f92;return this['_executeRemoteChangeset'](_0x459826),_0x303192[0x0][_0x20ed8b(0x485)]=this[_0x20ed8b(0x1b5)](),this[_0x20ed8b(0x31a)]['createInstance'](H,this[_0x20ed8b(0x435)],this[_0x20ed8b(0x2c2)],_0x303192[0x0],_0x5b6753,this[_0x20ed8b(0x300)]);}throw _0xc17f92[_0x20ed8b(0x2fb)];}throw _0x49b666[_0x20ed8b(0x2fb)];}catch(_0x4fa3d2){return this[_0x20ed8b(0x391)][_0x20ed8b(0x2fb)](_0x4fa3d2),this[_0x20ed8b(0x140)](!0x1);}}['onRemoteAck'](_0x17c5a7){const _0x3e3e1a=_0x14623f;if(this[_0x3e3e1a(0x2b5)](_0x17c5a7))return this[_0x3e3e1a(0x31a)][_0x3e3e1a(0x32c)](x,this['unitID'],this[_0x3e3e1a(0x2c2)],null,this[_0x3e3e1a(0x2d3)],this[_0x3e3e1a(0x3a0)],[],this[_0x3e3e1a(0x300)]);this[_0x3e3e1a(0x318)]();const _0x2758a9=this[_0x3e3e1a(0x31a)]['createInstance']($,this[_0x3e3e1a(0x435)],this[_0x3e3e1a(0x2c2)],this[_0x3e3e1a(0x2d3)],this['_handler']);return _0x2758a9[_0x3e3e1a(0x14f)](),_0x2758a9[_0x3e3e1a(0x443)](),_0x2758a9;}[_0x14623f(0x369)](_0x4cdbaf){const _0x10edf9=_0x14623f;return this[_0x10edf9(0x140)](!!(_0x4cdbaf!=null&&_0x4cdbaf[_0x10edf9(0x260)]));}[_0x14623f(0x3b4)](){const _0x371e05=_0x14623f;return this[_0x371e05(0x31a)][_0x371e05(0x32c)](B,this['unitID'],this[_0x371e05(0x2c2)],this['_awaitingChangeset'],this[_0x371e05(0x2d3)],this[_0x371e05(0x300)]);}['toggleOnline'](){return this;}[_0x14623f(0x35d)](){const _0x5b8a32=_0x14623f;this[_0x5b8a32(0x300)][_0x5b8a32(0x203)](this[_0x5b8a32(0x3a0)]);}[_0x14623f(0x140)](_0x8848d6){const _0x3b88c1=_0x14623f;return this[_0x3b88c1(0x31a)][_0x3b88c1(0x32c)](Y,this[_0x3b88c1(0x435)],this[_0x3b88c1(0x2c2)],null,this[_0x3b88c1(0x2d3)],this[_0x3b88c1(0x300)],_0x8848d6);}};H=K([f(0x5,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),f(0x6,h[_0x14623f(0x362)](u[_0x14623f(0x430)])),f(0x7,h[_0x14623f(0x362)](exports['LocalCacheService'])),f(0x8,a[_0x14623f(0x2be)]),f(0x9,a[_0x14623f(0x47a)]),f(0xa,u['ITransformService']),f(0xb,a[_0x14623f(0x17b)])],H);let Y=class extends X{constructor(_0x350fb4,_0xd91527,_0x1af017,_0x37790c,_0x5a3d5d,_0x429cef=!0x1,_0x2ebf73,_0x30c64a,_0xf61f76,_0x50890e,_0x5a1fd0,_0x1a79f4,_0x4df686){const _0x323c15=_0x14623f;super(_0x350fb4,_0xd91527,_0x1af017,_0x37790c,_0x5a3d5d,_0x30c64a,_0xf61f76,_0x5a1fd0,_0x50890e),d(this,_0x323c15(0x33b),_0x323c15(0x3c2)),(this['_isPermissionRej']=_0x429cef,this[_0x323c15(0x168)]=_0x2ebf73,this['_localeService']=_0x1a79f4,this[_0x323c15(0x463)]=_0x4df686,this[_0x323c15(0x14c)](),this[_0x323c15(0x340)](),this[_0x323c15(0x2c0)]());}[_0x14623f(0x4a4)](){return this;}[_0x14623f(0x1ca)](){return this;}['onRemoteAck'](){return this;}[_0x14623f(0x369)](){return this;}[_0x14623f(0x3b4)](){return this;}['toggleOnline'](){return this;}[_0x14623f(0x35d)](){const _0x5a381f=_0x14623f;throw new Error(_0x5a381f(0x151));}[_0x14623f(0x340)](){const _0x4fbbea=_0x14623f;this['_localCacheService'][_0x4fbbea(0x48a)](this[_0x4fbbea(0x435)],this['type'],null,[]);}['_showConflictNotification'](){const _0x1676b0=_0x14623f;this[_0x1676b0(0x341)]?this[_0x1676b0(0x463)][_0x1676b0(0x3cf)]({'title':this[_0x1676b0(0x3d8)]['t'](_0x1676b0(0x313)),'content':this[_0x1676b0(0x3d8)]['t'](_0x1676b0(0x1de)),'type':_0x1676b0(0x2fb),'duration':0x0}):this[_0x1676b0(0x463)]['show']({'title':this[_0x1676b0(0x3d8)]['t']('conflict.title'),'content':this[_0x1676b0(0x3d8)]['t'](_0x1676b0(0x495)),'type':_0x1676b0(0x2fb),'duration':0x0});}[_0x14623f(0x2c0)](){this['_permissionService']['updatePermissionPoint'](new E['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};Y=K([f(0x6,h[_0x14623f(0x362)](a['IPermissionService'])),f(0x7,a[_0x14623f(0x2be)]),f(0x8,a['IUndoRedoService']),f(0x9,h[_0x14623f(0x362)](exports[_0x14623f(0x28b)])),f(0xa,h['Inject'](u[_0x14623f(0x430)])),f(0xb,h[_0x14623f(0x362)](a[_0x14623f(0x201)])),f(0xc,N['INotificationService'])],Y);let B=class extends X{constructor(_0x597ace,_0x260202,_0x5439ab,_0x3a3bb1,_0x864928,_0x392993,_0xa3e59f,_0x3e3686,_0x9f3415,_0x4eeb16){const _0x4a9bdf=_0x14623f;super(_0x597ace,_0x260202,_0x5439ab,_0x3a3bb1,_0x864928,_0x9f3415,_0x4eeb16,_0xa3e59f,_0x3e3686),d(this,'status',_0x4a9bdf(0x1e5)),this['_injector']=_0x392993;}['appendMutation'](_0xbc806e){const _0xbb17b0=_0x14623f;return this['_pendingMutations'][_0xbb17b0(0x2fe)](_0xbc806e),this[_0xbb17b0(0x443)](),this;}[_0x14623f(0x1ca)](_0x2966aa){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x14623f(0x158)](){const _0xbabf1e=_0x14623f;throw new Error(_0xbabf1e(0x2d4));}[_0x14623f(0x369)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x14623f(0x3b4)](){return this;}[_0x14623f(0x3ac)](){const _0x5c1889=_0x14623f,{_injector:_0x4f9256,_pendingMutations:_0x52acc5,_awaitingChangeset:_0x1baa64,unitID:_0x375be4,_handler:_0x304d31,type:_0x33e8ff}=this,_0x53dab9=Tt(_0x4f9256,_0x375be4,_0x33e8ff,_0x1baa64,_0x52acc5,_0x304d31);return _0x53dab9 instanceof $?_0x53dab9['_schedule']():(_0x53dab9 instanceof H||_0x53dab9 instanceof k)&&_0x53dab9[_0x5c1889(0x35d)](),_0x53dab9;}[_0x14623f(0x35d)](){const _0x376646=_0x14623f;throw new Error(_0x376646(0x3d0));}};B=K([f(0x5,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),f(0x6,h[_0x14623f(0x362)](u[_0x14623f(0x430)])),f(0x7,h[_0x14623f(0x362)](exports[_0x14623f(0x28b)])),f(0x8,a[_0x14623f(0x2be)]),f(0x9,a[_0x14623f(0x17b)])],B);let x=class extends X{constructor(_0x1f4b5c,_0x3bc8be,_0x577074,_0x500373,_0x27df56,_0x284f08,_0x3789f7,_0x5bcb56,_0x2959b9,_0x17a117,_0x10b1c7,_0x448220,_0x3ad01c,_0x2bd07a){const _0x4c4c4d=_0x14623f;super(_0x1f4b5c,_0x3bc8be,_0x577074,_0x500373,_0x3789f7,_0x448220,_0x3ad01c,_0x2959b9,_0x17a117),d(this,_0x4c4c4d(0x33b),_0x4c4c4d(0x16f)),(this['_acknowledgedAwaitingChangeset']=_0x27df56,this[_0x4c4c4d(0x2c9)]=_0x284f08,this[_0x4c4c4d(0x31a)]=_0x5bcb56,this[_0x4c4c4d(0x391)]=_0x10b1c7,this[_0x4c4c4d(0x204)]=_0x2bd07a);}[_0x14623f(0x208)](_0x530c06){const _0x42ec50=_0x14623f;try{const _0x3dc72d=[..._0x530c06,...this[_0x42ec50(0x2c9)]],_0x58a73c=[this[_0x42ec50(0x3a0)]||this['_acknowledgedAwaitingChangeset']][_0x42ec50(0x2e3)](_0x365e5c=>!!_0x365e5c);let _0x5ded58,_0x14e97f;if(_0x58a73c[_0x42ec50(0x338)]){const _0xa38e03=this[_0x42ec50(0x204)][_0x42ec50(0x2c8)](_0x3dc72d,_0x58a73c,!0x1);if(!u[_0x42ec50(0x245)](_0xa38e03))throw _0xa38e03[_0x42ec50(0x2fb)];_0x5ded58=_0xa38e03[_0x42ec50(0x1fe)],_0x14e97f=_0xa38e03[_0x42ec50(0x37f)];}else _0x5ded58=_0x3dc72d,_0x14e97f=[];let _0x583c99=this['_pendingMutations'];_0x5ded58['forEach'](_0x234716=>{const _0x1ef19f=_0x42ec50;let _0x36e1f6;if(_0x583c99[_0x1ef19f(0x338)]){const _0x47209b=this[_0x1ef19f(0x204)][_0x1ef19f(0x2f0)](_0x234716,_0x583c99);if(!u[_0x1ef19f(0x189)](_0x47209b))throw _0x47209b[_0x1ef19f(0x2fb)];_0x36e1f6=_0x47209b[_0x1ef19f(0x1fe)],_0x583c99=_0x47209b[_0x1ef19f(0x388)];}else _0x36e1f6=_0x234716;this[_0x1ef19f(0x4e1)](_0x36e1f6);}),this[_0x42ec50(0x322)]&&this['_incrementRevisionNumber'](),this[_0x42ec50(0x3a0)]&&_0x14e97f['length']&&(_0x14e97f[0x0][_0x42ec50(0x485)]=this[_0x42ec50(0x1b5)]());let _0x3993ab;if(this[_0x42ec50(0x3a0)]&&_0x583c99[_0x42ec50(0x338)]!==0x0)_0x3993ab=this[_0x42ec50(0x31a)][_0x42ec50(0x32c)](H,this['unitID'],this[_0x42ec50(0x2c2)],_0x14e97f[0x0],_0x583c99,this[_0x42ec50(0x300)]);else{if(this[_0x42ec50(0x3a0)]&&_0x583c99[_0x42ec50(0x338)]===0x0)_0x14e97f[0x0][_0x42ec50(0x485)]=this[_0x42ec50(0x1b5)](),_0x3993ab=this['_injector'][_0x42ec50(0x32c)](k,this['unitID'],this[_0x42ec50(0x2c2)],_0x14e97f[0x0],this[_0x42ec50(0x300)]);else{if(_0x583c99[_0x42ec50(0x338)]!==0x0){const _0x85682c=this[_0x42ec50(0x31a)]['createInstance']($,this[_0x42ec50(0x435)],this['type'],_0x583c99,this[_0x42ec50(0x300)]);_0x85682c[_0x42ec50(0x14f)](),_0x3993ab=_0x85682c;}else _0x3993ab=this[_0x42ec50(0x31a)]['createInstance'](ae,this[_0x42ec50(0x435)],this[_0x42ec50(0x2c2)],this['_handler']);}}return _0x3993ab[_0x42ec50(0x443)](),_0x3993ab;}catch(_0x144891){return this[_0x42ec50(0x391)]['error']('[FetchMissState]',_0x42ec50(0x4a7),_0x144891),this[_0x42ec50(0x31a)][_0x42ec50(0x32c)](Y,this[_0x42ec50(0x435)],this[_0x42ec50(0x2c2)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x42ec50(0x300)],!0x1);}}[_0x14623f(0x35d)](){const _0xdb5149=_0x14623f;throw new Error(_0xdb5149(0x1d8));}[_0x14623f(0x4a4)](_0x1f9cea){const _0x8c75aa=_0x14623f;return this[_0x8c75aa(0x2d3)][_0x8c75aa(0x2fe)](_0x1f9cea),this;}['onRemoteChangeset'](_0x463dce){const _0x11aee2=_0x14623f;return this[_0x11aee2(0x2c9)][_0x11aee2(0x2fe)](_0x463dce),this;}[_0x14623f(0x158)](_0x23ec45){const _0x559a2e=_0x14623f;if(this[_0x559a2e(0x3a0)])return this['_acknowledgedAwaitingChangeset']=this[_0x559a2e(0x3a0)],this[_0x559a2e(0x3a0)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x311c17){const _0x1b2534=_0x14623f;return this[_0x1b2534(0x140)](!!(_0x311c17!=null&&_0x311c17[_0x1b2534(0x260)]));}[_0x14623f(0x3b4)](){const _0x9ab262=_0x14623f;return this[_0x9ab262(0x31a)][_0x9ab262(0x32c)](B,this['unitID'],this[_0x9ab262(0x2c2)],this[_0x9ab262(0x3a0)],this['_pendingMutations'],this[_0x9ab262(0x300)]);}[_0x14623f(0x3ac)](){return this;}['_onConflict'](_0x3b83da){const _0xab68b2=_0x14623f;return this[_0xab68b2(0x31a)][_0xab68b2(0x32c)](Y,this['unitID'],this[_0xab68b2(0x2c2)],this[_0xab68b2(0x3a0)],this[_0xab68b2(0x2d3)],this[_0xab68b2(0x300)],_0x3b83da);}};x=K([f(0x7,h['Inject'](h['Injector'])),f(0x8,h['Inject'](u[_0x14623f(0x430)])),f(0x9,h[_0x14623f(0x362)](exports['LocalCacheService'])),f(0xa,a[_0x14623f(0x47a)]),f(0xb,a[_0x14623f(0x2be)]),f(0xc,a['IUndoRedoService']),f(0xd,u[_0x14623f(0x483)])],x);function Tt(_0x28fde1,_0x283f36,_0x320b85,_0x1cd06c,_0x578cdf,_0x294957){const _0x5c77a0=_0x14623f;return _0x1cd06c&&_0x578cdf['length']?_0x28fde1[_0x5c77a0(0x32c)](H,_0x283f36,_0x320b85,_0x1cd06c,_0x578cdf,_0x294957):_0x1cd06c?_0x28fde1[_0x5c77a0(0x32c)](k,_0x283f36,_0x320b85,_0x1cd06c,_0x294957):_0x578cdf['length']?_0x28fde1[_0x5c77a0(0x32c)]($,_0x283f36,_0x320b85,_0x578cdf,_0x294957):_0x28fde1[_0x5c77a0(0x32c)](ae,_0x283f36,_0x320b85,_0x294957);}var Ds=Object[_0x14623f(0x4e3)],Us=Object['getOwnPropertyDescriptor'],Ee=(_0x207389,_0x1147ae,_0x3fd6b3,_0x3d5da6)=>{const _0x34240c=_0x14623f;for(var _0x18a411=_0x3d5da6>0x1?void 0x0:_0x3d5da6?Us(_0x1147ae,_0x3fd6b3):_0x1147ae,_0x5129eb=_0x207389[_0x34240c(0x338)]-0x1,_0x475c28;_0x5129eb>=0x0;_0x5129eb--)(_0x475c28=_0x207389[_0x5129eb])&&(_0x18a411=(_0x3d5da6?_0x475c28(_0x1147ae,_0x3fd6b3,_0x18a411):_0x475c28(_0x18a411))||_0x18a411);return _0x3d5da6&&_0x18a411&&Ds(_0x1147ae,_0x3fd6b3,_0x18a411),_0x18a411;},p=(_0x1c5646,_0x3ab1fa)=>(_0xd10b32,_0x4b3efd)=>_0x3ab1fa(_0xd10b32,_0x4b3efd,_0x1c5646);exports['CollaborationController']=class extends a[_0x14623f(0x237)]{constructor(_0x40a076,_0x38a577,_0xff5966){const _0xf4d9f1=_0x14623f;super(),d(this,_0xf4d9f1(0x14d),new Map()),d(this,_0xf4d9f1(0x24c),new g[(_0xf4d9f1(0x30e))]()),(this[_0xf4d9f1(0x31a)]=_0x40a076,this[_0xf4d9f1(0x2bb)]=_0x38a577,this[_0xf4d9f1(0x429)]=_0xff5966,this[_0xf4d9f1(0x21f)]());}[_0x14623f(0x188)](){const _0x1eecdb=_0x14623f;super[_0x1eecdb(0x188)](),this[_0x1eecdb(0x14d)][_0x1eecdb(0x466)](_0xc23214=>_0xc23214[_0x1eecdb(0x188)]()),this['_entities']['clear']();}[_0x14623f(0x27f)](_0xd633f9){const _0x44785a=_0x14623f;var _0xe88546;return(_0xe88546=this[_0x44785a(0x14d)][_0x44785a(0x3f7)](_0xd633f9))!=null?_0xe88546:null;}[_0x14623f(0x344)](_0x36149d){const _0x2f0278=_0x14623f,_0x2d28e5=this[_0x2f0278(0x27f)](_0x36149d);return _0x2d28e5?g['of'](_0x2d28e5):this[_0x2f0278(0x24c)]['pipe'](T[_0x2f0278(0x2e3)](_0x330f9=>_0x330f9[_0x2f0278(0x435)]===_0x36149d));}[_0x14623f(0x21f)](){const _0x156527=_0x14623f;this['_univerInstanceService'][_0x156527(0x15f)](a[_0x156527(0x2e8)][_0x156527(0x328)])[_0x156527(0x160)](g[_0x156527(0x476)](this[_0x156527(0x1c2)]),T[_0x156527(0x2cc)](0x10))[_0x156527(0x3e0)](async _0x365914=>{const _0x2aaa6d=_0x156527,_0x305d9b=_0x365914['getUnitId'](),_0x489404=await this[_0x2aaa6d(0x393)](_0x305d9b,j[_0x2aaa6d(0x328)]);this[_0x2aaa6d(0x14d)][_0x2aaa6d(0x3da)](_0x305d9b,_0x489404);}),this[_0x156527(0x429)]['getTypeOfUnitAdded$'](a[_0x156527(0x2e8)][_0x156527(0x378)])[_0x156527(0x160)](g[_0x156527(0x476)](this[_0x156527(0x1c2)]),T['delay'](0x10))['pipe'](T[_0x156527(0x2e3)](_0x13906d=>!_0x13906d['getUnitId']()[_0x156527(0x301)]('__')))[_0x156527(0x3e0)](async _0x146400=>{const _0x3eccd1=_0x156527,_0x27302a=_0x146400[_0x3eccd1(0x30f)](),_0x13f4bb=await this[_0x3eccd1(0x393)](_0x27302a,j[_0x3eccd1(0x378)]);this[_0x3eccd1(0x14d)][_0x3eccd1(0x3da)](_0x27302a,_0x13f4bb);}),g[_0x156527(0x233)](this[_0x156527(0x429)][_0x156527(0x399)](a['UniverInstanceType'][_0x156527(0x328)]),this[_0x156527(0x429)]['getTypeOfUnitDisposed$'](a[_0x156527(0x2e8)][_0x156527(0x378)]))[_0x156527(0x160)](g[_0x156527(0x476)](this[_0x156527(0x1c2)]))[_0x156527(0x3e0)](_0x2ddc96=>{const _0x4c76a3=_0x156527,_0x4adc9e=_0x2ddc96['getUnitId'](),_0x3f2993=this[_0x4c76a3(0x14d)][_0x4c76a3(0x3f7)](_0x4adc9e);_0x3f2993&&(_0x3f2993[_0x4c76a3(0x188)](),this[_0x4c76a3(0x14d)][_0x4c76a3(0x38c)](_0x4adc9e));});}async[_0x14623f(0x393)](_0x25d542,_0x221b8f){const _0x52bbc9=_0x14623f,_0x384e5a=await this['_collabSessionService'][_0x52bbc9(0x4aa)](_0x25d542),_0x1fe87a=this['_injector'][_0x52bbc9(0x32c)](this[_0x52bbc9(0x2ba)](_0x221b8f),_0x25d542,_0x221b8f,_0x384e5a);return await _0x1fe87a[_0x52bbc9(0x327)](),this[_0x52bbc9(0x24c)][_0x52bbc9(0x389)](_0x1fe87a),_0x1fe87a;}[_0x14623f(0x2ba)](_0xf6ca5f){const _0x1dc074=_0x14623f;switch(_0xf6ca5f){case j[_0x1dc074(0x378)]:return Pe;case j[_0x1dc074(0x328)]:return Me;default:throw new Error(_0x1dc074(0x215)+_0xf6ca5f);}}},exports[_0x14623f(0x4b3)]=Ee([a[_0x14623f(0x280)](a[_0x14623f(0x4e8)][_0x14623f(0x253)],exports[_0x14623f(0x4b3)]),p(0x0,h[_0x14623f(0x362)](h['Injector'])),p(0x1,h[_0x14623f(0x362)](exports[_0x14623f(0x397)])),p(0x2,a[_0x14623f(0x18f)])],exports['CollaborationController']);let me=class extends a[_0x14623f(0x237)]{constructor(_0x4622f5,_0x43285f,_0x42efc5,_0x1b3f6b,_0x1c881b,_0x386360,_0x3b3dd6,_0x424999,_0xa88337,_0x3768fd,_0x54e5f2,_0x27381b,_0x4f534c){const _0x34e94b=_0x14623f;super(),d(this,_0x34e94b(0x42a),new g[(_0x34e94b(0x46b))](null)),d(this,'state$',this[_0x34e94b(0x42a)][_0x34e94b(0x180)]()),d(this,_0x34e94b(0x24d)),d(this,_0x34e94b(0x3a4),!0x1),d(this,_0x34e94b(0x486),this[_0x34e94b(0x261)][_0x34e94b(0x160)](T['map'](_0x2dbccd=>_0x2dbccd?_0x2dbccd['status']:U['OFFLINE']),T[_0x34e94b(0x3c5)](0x1))),d(this,_0x34e94b(0x28e),!0x1),d(this,_0x34e94b(0x453),[]),(this[_0x34e94b(0x435)]=_0x4622f5,this[_0x34e94b(0x4f2)]=_0x43285f,this[_0x34e94b(0x398)]=_0x42efc5,this[_0x34e94b(0x31a)]=_0x1b3f6b,this[_0x34e94b(0x4e0)]=_0x1c881b,this[_0x34e94b(0x17c)]=_0x386360,this['_localeService']=_0x3b3dd6,this[_0x34e94b(0x377)]=_0x424999,this['_logService']=_0xa88337,this['_commandService']=_0x3768fd,this[_0x34e94b(0x3c6)]=_0x54e5f2,this[_0x34e94b(0x168)]=_0x27381b,this[_0x34e94b(0x450)]=_0x4f534c);}get['state'](){const _0x373a66=_0x14623f;return this[_0x373a66(0x24d)];}async['init'](){const _0x228ec8=_0x14623f;if(this[_0x228ec8(0x2ee)])throw new Error(_0x228ec8(0x1c4));await this[_0x228ec8(0x21f)]();}['pauseCollaboration'](){const _0x4015fe=_0x14623f;return this['_collaborationPaused']=!0x0,a[_0x4015fe(0x290)](()=>{const _0x3ee1f9=_0x4015fe;this['_collaborationPaused']=!0x1,this[_0x3ee1f9(0x402)]();});}[_0x14623f(0x4ed)](_0x2cb0cb){const _0x1ace99=_0x14623f;this[_0x1ace99(0x24d)]=_0x2cb0cb,this['_state$'][_0x1ace99(0x389)](_0x2cb0cb);}async[_0x14623f(0x21f)](){const _0x4556bb=_0x14623f;var _0x2241d4;return this[_0x4556bb(0x4ed)](await this['_createInitialState']()),this[_0x4556bb(0x450)]&&((_0x2241d4=this['_singleActiveUnitService'])==null||_0x2241d4['editingUnit'](this['unitID']),this['disposeWithMe'](a[_0x4556bb(0x290)](this[_0x4556bb(0x450)][_0x4556bb(0x25a)](this[_0x4556bb(0x435)])[_0x4556bb(0x3e0)](_0x4a5e5e=>{const _0x43674b=_0x4556bb;this[_0x43674b(0x391)][_0x43674b(0x4bd)](_0x43674b(0x293),_0x43674b(0x187),_0x4a5e5e),_0x4a5e5e===Ct['OTHER_CLIENTS_EDITING']?(this[_0x43674b(0x3c6)][_0x43674b(0x3cf)]({'content':this[_0x43674b(0x3d8)]['t'](_0x43674b(0x15a)),'type':oe[_0x43674b(0x25f)]['Warning']}),this[_0x43674b(0x168)]['updatePermissionPoint'](new E[(_0x43674b(0x2b0))](this[_0x43674b(0x435)])['id'],!0x1)):this[_0x43674b(0x168)]['updatePermissionPoint'](new E[(_0x43674b(0x2b0))](this[_0x43674b(0x435)])['id'],!0x0);})))),this['disposeWithMe'](a[_0x4556bb(0x290)](this[_0x4556bb(0x398)][_0x4556bb(0x199)]['subscribe'](_0xfcfd8d=>{const _0x2e5aba=_0x4556bb;_0xfcfd8d===W[_0x2e5aba(0x21e)]?this[_0x2e5aba(0x4d4)]():_0xfcfd8d===W[_0x2e5aba(0x20c)]&&this['_toggleOffline']();}))),this['disposeWithMe'](a[_0x4556bb(0x290)](this[_0x4556bb(0x398)][_0x4556bb(0x20e)][_0x4556bb(0x3e0)](_0x3c6204=>{const _0xe36499=_0x4556bb;try{switch(_0x3c6204['eventID']){case u[_0xe36499(0x323)]['NEW_CHANGESETS']:{this[_0xe36499(0x166)](u[_0xe36499(0x25b)](_0x3c6204[_0xe36499(0x250)]));break;}case u[_0xe36499(0x323)][_0xe36499(0x3a9)]:{this[_0xe36499(0x185)](_0x3c6204['data']);break;}case u[_0xe36499(0x323)][_0xe36499(0x1d3)]:{this[_0xe36499(0x2d7)]();break;}case u['CollaborationEvent'][_0xe36499(0x380)]:{this[_0xe36499(0x264)](_0x3c6204['data']['changesets'][_0xe36499(0x3a5)](_0x3ae9e6=>u[_0xe36499(0x25b)](_0x3ae9e6)));break;}case u[_0xe36499(0x323)][_0xe36499(0x456)]:this[_0xe36499(0x2d7)]({'isPermissionRej':!0x0});}}catch(_0x215ed4){throw console[_0xe36499(0x2fb)](_0xe36499(0x4d6),_0x215ed4),_0x215ed4;}}))),this[_0x4556bb(0x24d)];}['_unlockTransition'](){const _0x1ba365=_0x14623f;this[_0x1ba365(0x28e)]=!0x1;}[_0x14623f(0x3b9)](){const _0x51ae04=_0x14623f;if(this[_0x51ae04(0x28e)])throw new Error(_0x51ae04(0x34e));this[_0x51ae04(0x28e)]=!0x0;}[_0x14623f(0x284)](_0x49765b){const _0x1de3ec=_0x14623f;this[_0x1de3ec(0x3b9)](),this[_0x1de3ec(0x4ed)](this[_0x1de3ec(0x24d)][_0x1de3ec(0x4a4)](_0x49765b)),this[_0x1de3ec(0x24e)]();}[_0x14623f(0x166)](_0xd7184d){const _0x4aa529=_0x14623f;if(!(_0xd7184d[_0x4aa529(0x332)]<=this[_0x4aa529(0x377)]['getCurrentRevForDocument'](this[_0x4aa529(0x435)]))){if(this[_0x4aa529(0x3a4)]){this[_0x4aa529(0x453)][_0x4aa529(0x2fe)](_0xd7184d);return;}this[_0x4aa529(0x409)](_0xd7184d);}}['_exhaustRemoteChangesetQueue'](){const _0x24d839=_0x14623f;this[_0x24d839(0x453)]['forEach'](_0x48ff8d=>this[_0x24d839(0x409)](_0x48ff8d)),this[_0x24d839(0x453)]=[];}[_0x14623f(0x409)](_0x51e1ad){const _0x3265fc=_0x14623f,_0x3366ce=this[_0x3265fc(0x17c)]['interceptor'][_0x3265fc(0x4c1)](this[_0x3265fc(0x17c)][_0x3265fc(0x48c)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x51e1ad[_0x3265fc(0x17f)],null)||_0x51e1ad['mutations'],_0x36bb3f={..._0x51e1ad,'mutations':_0x3366ce};this[_0x3265fc(0x3b9)](),this[_0x3265fc(0x4ed)](this['_state'][_0x3265fc(0x1ca)](_0x36bb3f)),this[_0x3265fc(0x24e)]();}[_0x14623f(0x185)](_0x284f20){const _0xcd8d18=_0x14623f;this[_0xcd8d18(0x3b9)](),this[_0xcd8d18(0x4ed)](this['_state'][_0xcd8d18(0x158)](_0x284f20)),this['_unlockTransition']();}[_0x14623f(0x2d7)](_0x3769c1){const _0x2800f7=_0x14623f;this['_lockTransition'](),this['_updateState'](this[_0x2800f7(0x24d)][_0x2800f7(0x369)](_0x3769c1)),this[_0x2800f7(0x24e)]();}[_0x14623f(0x264)](_0x3cf5da){const _0x4621e7=_0x14623f;if(!(this[_0x4621e7(0x24d)]instanceof x))throw new TypeError(_0x4621e7(0x216));const _0x53fd7d=_0x3cf5da[_0x4621e7(0x3a5)](_0x212963=>{const _0x3666a6=_0x4621e7,_0x3ef539=this[_0x3666a6(0x17c)][_0x3666a6(0x48c)][_0x3666a6(0x4c1)](this[_0x3666a6(0x17c)][_0x3666a6(0x48c)][_0x3666a6(0x25c)]()[_0x3666a6(0x1a9)])(_0x212963['mutations'],null)||_0x212963[_0x3666a6(0x17f)];return{..._0x212963,'mutations':_0x3ef539};});this[_0x4621e7(0x3b9)](),this[_0x4621e7(0x4ed)](this[_0x4621e7(0x24d)][_0x4621e7(0x208)](_0x53fd7d)),this['_unlockTransition']();}[_0x14623f(0x469)](){const _0x1ca274=_0x14623f;this[_0x1ca274(0x3b9)](),this[_0x1ca274(0x4ed)](this['_state'][_0x1ca274(0x3b4)]()),this['_unlockTransition']();}[_0x14623f(0x4d4)](){const _0x515fc2=_0x14623f;this[_0x515fc2(0x3b9)](),this[_0x515fc2(0x4ed)](this[_0x515fc2(0x24d)][_0x515fc2(0x3ac)]()),this[_0x515fc2(0x24e)]();}async[_0x14623f(0x1c6)](){return new Promise(_0x24a2d=>{const _0x550f7c=_0x5cb3;this['_session'][_0x550f7c(0x199)][_0x550f7c(0x160)](T[_0x550f7c(0x1d2)](0x1))['subscribe'](async _0x5b72c1=>{const _0x241b29=_0x550f7c;_0x24a2d(await this[_0x241b29(0x170)](_0x5b72c1===W[_0x241b29(0x21e)]));});});}[_0x14623f(0x3ee)](){const _0xca1faf=this['unitID'];return{'onStateChange':(_0x5191ff,_0x1df93b)=>{const _0x28a14a=_0x5cb3;if(_0x5191ff!==this['_state'])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x5191ff[_0x28a14a(0x33b)]+_0x28a14a(0x45c)+_0x1df93b[_0x28a14a(0x33b)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x28a14a(0x4ed)](_0x1df93b);},'onSendChangeset':_0x1b0f23=>{const _0x13e63c=_0x5cb3,_0x558229={'eventID':u[_0x13e63c(0x323)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x1b0f23[_0x13e63c(0x435)],'unitType':this['_type'],'changeset':_0x1b0f23,'memberID':this[_0x13e63c(0x398)][_0x13e63c(0x310)]()}};this[_0x13e63c(0x398)][_0x13e63c(0x4c3)](_0x558229,this['unitID']);},'onMissingChangesets':({from:_0x5ede62,to:_0x1f51f1})=>{const _0x2f47aa=_0x5cb3;this['_logService']['debug'](_0x2f47aa(0x293),'fetching\x20missing\x20changesets\x20from\x20'+_0x5ede62+_0x2f47aa(0x174)+_0x1f51f1);const _0x1c7b53={'eventID':u['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0xca1faf,'unitType':this['_type'],'from':_0x5ede62,'to':_0x1f51f1}};this['_session'][_0x2f47aa(0x4c3)](_0x1c7b53,this['unitID']);}};}async[_0x14623f(0x170)](_0x3084ab){const _0x2f2f2b=_0x14623f;var _0xd1f67e,_0x259bf0;const _0x54faae=await this[_0x2f2f2b(0x4e0)][_0x2f2f2b(0x43f)](this[_0x2f2f2b(0x435)]),_0x3d2d0b=(_0xd1f67e=_0x54faae==null?void 0x0:_0x54faae[_0x2f2f2b(0x17f)])!=null?_0xd1f67e:[],_0x322359=(_0x259bf0=_0x54faae==null?void 0x0:_0x54faae[_0x2f2f2b(0x473)])!=null?_0x259bf0:null,_0x3795ba=this['unitID'];try{this[_0x2f2f2b(0x45e)](_0x322359,_0x3d2d0b);}catch(_0xb0d097){this[_0x2f2f2b(0x391)][_0x2f2f2b(0x2fb)](_0xb0d097);}const _0x3a984c=this[_0x2f2f2b(0x3ee)]();if(_0x3084ab){const _0x303df1=Tt(this['_injector'],_0x3795ba,this[_0x2f2f2b(0x4f2)],_0x322359,_0x3d2d0b,_0x3a984c);return _0x303df1 instanceof $?_0x303df1[_0x2f2f2b(0x14f)]():(_0x303df1 instanceof H||_0x303df1 instanceof k)&&_0x303df1['resend'](),_0x303df1;}return this[_0x2f2f2b(0x31a)][_0x2f2f2b(0x32c)](B,_0x3795ba,this[_0x2f2f2b(0x4f2)],_0x322359,_0x3d2d0b,_0x3a984c);}[_0x14623f(0x45e)](_0x136bb8,_0x5319d9){const _0x15e666=_0x14623f;var _0x575fb9,_0x50c801;const _0x2f031a=this[_0x15e666(0x17c)]['interceptor'][_0x15e666(0x4c1)](this['_compressMutationService'][_0x15e666(0x48c)][_0x15e666(0x25c)]()[_0x15e666(0x1a9)]);(_0x575fb9=_0x2f031a((_0x136bb8==null?void 0x0:_0x136bb8['mutations'])||[],null))==null||_0x575fb9[_0x15e666(0x466)](_0x2af993=>this[_0x15e666(0x32e)][_0x15e666(0x303)](_0x2af993['id'],_0x2af993[_0x15e666(0x29a)])),(_0x50c801=_0x2f031a(_0x5319d9||[],null))==null||_0x50c801[_0x15e666(0x466)](_0xa3ea44=>this[_0x15e666(0x32e)][_0x15e666(0x303)](_0xa3ea44['id'],_0xa3ea44['params']));}};me=Ee([p(0x3,h[_0x14623f(0x362)](h['Injector'])),p(0x4,h['Inject'](exports['LocalCacheService'])),p(0x5,h[_0x14623f(0x362)](u[_0x14623f(0x1c3)])),p(0x6,h['Inject'](a['LocaleService'])),p(0x7,h[_0x14623f(0x362)](u[_0x14623f(0x430)])),p(0x8,a[_0x14623f(0x47a)]),p(0x9,a[_0x14623f(0x2be)]),p(0xa,N['IMessageService']),p(0xb,a['IPermissionService']),p(0xc,h['Optional'](pe))],me);let Pe=class extends me{constructor(_0x11ca4e,_0x27f66a,_0x31d1da,_0x450404,_0x21d0a7,_0x1ac914,_0x4fea92,_0x534ae6,_0x469abd,_0x4dd931,_0x2b5cc1,_0x5ebd20,_0x873ffd,_0x32c973,_0x3e4791,_0x3b43b5,_0x5dcb9c){const _0x39bb8f=_0x14623f;super(_0x11ca4e,_0x27f66a,_0x31d1da,_0x450404,_0x21d0a7,_0x1ac914,_0x4fea92,_0x534ae6,_0x873ffd,_0x32c973,_0x3e4791,_0x3b43b5,_0x5dcb9c),this[_0x39bb8f(0x435)]=_0x11ca4e,this[_0x39bb8f(0x2c2)]=_0x27f66a,this[_0x39bb8f(0x416)]=_0x31d1da,this[_0x39bb8f(0x47b)]=_0x469abd,this[_0x39bb8f(0x1dc)]=_0x4dd931,this[_0x39bb8f(0x437)]=_0x2b5cc1,this[_0x39bb8f(0x1dd)]=_0x5ebd20;}[_0x14623f(0x3ee)](){const _0x54a309=_0x14623f,_0xeeac4=super[_0x54a309(0x3ee)]();return _0xeeac4[_0x54a309(0x4b7)]=_0x2bbf9d=>this[_0x54a309(0x1dc)][_0x54a309(0x3a8)](_0x2bbf9d),_0xeeac4[_0x54a309(0x3ec)]=_0x36d320=>this[_0x54a309(0x437)]['transformSelections'](_0x36d320),_0xeeac4[_0x54a309(0x3d4)]=_0x33a5fa=>this[_0x54a309(0x1dd)][_0x54a309(0x3b5)](_0x33a5fa),_0xeeac4[_0x54a309(0x3d5)]=_0x5a9024=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x5a9024),_0xeeac4;}async['_init'](){const _0x40e0ec=_0x14623f,_0x38c602=await super[_0x40e0ec(0x21f)]();return this[_0x40e0ec(0x47b)][_0x40e0ec(0x41f)]['pipe'](g[_0x40e0ec(0x476)](this['dispose$']))['subscribe'](_0x28900d=>{const _0x23301e=_0x40e0ec;if(_0x28900d==null)return;const {unitId:_0x1887cb,redoState:_0x49ba5a,commandId:_0x20caa6}=_0x28900d;if(_0x1887cb!==this['unitID'])return;const _0x24de53={'id':_0x20caa6,'type':a['CommandType'][_0x23301e(0x3d7)],'params':{'unitId':_0x1887cb,'actions':_0x49ba5a['actions'],'textRanges':null}};this[_0x23301e(0x284)](_0x24de53);}),_0x38c602;}};Pe=Ee([p(0x3,h[_0x14623f(0x362)](h['Injector'])),p(0x4,h['Inject'](exports[_0x14623f(0x28b)])),p(0x5,h[_0x14623f(0x362)](u[_0x14623f(0x1c3)])),p(0x6,h[_0x14623f(0x362)](a[_0x14623f(0x201)])),p(0x7,h[_0x14623f(0x362)](u['RevisionService'])),p(0x8,h[_0x14623f(0x362)](y['DocStateChangeManagerService'])),p(0x9,h[_0x14623f(0x362)](ve)),p(0xa,h[_0x14623f(0x362)](ge)),p(0xb,h[_0x14623f(0x362)](Ve)),p(0xc,a[_0x14623f(0x47a)]),p(0xd,a[_0x14623f(0x2be)]),p(0xe,N[_0x14623f(0x462)]),p(0xf,a[_0x14623f(0x291)]),p(0x10,h[_0x14623f(0x1b0)](pe))],Pe);let Me=class extends me{constructor(_0x3f1e66,_0x26c7f2,_0x3101bb,_0x2296a8,_0xf681b7,_0x3a4f32,_0x26b02a,_0x257f69,_0x1f3045,_0x15d63d,_0x152330,_0x4a3815,_0xde308b,_0x25df4a){const _0x481d29=_0x14623f;super(_0x3f1e66,_0x26c7f2,_0x3101bb,_0x2296a8,_0xf681b7,_0x3a4f32,_0x26b02a,_0x257f69,_0x15d63d,_0x152330,_0x4a3815,_0xde308b,_0x25df4a),this[_0x481d29(0x435)]=_0x3f1e66,this[_0x481d29(0x2c2)]=_0x26c7f2,this[_0x481d29(0x416)]=_0x3101bb,this[_0x481d29(0x21c)]=_0x1f3045;}[_0x14623f(0x3ee)](){const _0x3a561f=_0x14623f,_0x511f7f=super[_0x3a561f(0x3ee)]();return _0x511f7f[_0x3a561f(0x3ec)]=_0x52fdc2=>this[_0x3a561f(0x21c)][_0x3a561f(0x16d)](_0x52fdc2),_0x511f7f;}async[_0x14623f(0x21f)](){const _0x1a0b4a=_0x14623f,_0x4f0743=await super['_init']();return this[_0x1a0b4a(0x39f)](this[_0x1a0b4a(0x32e)][_0x1a0b4a(0x1d4)]((_0x159c69,_0x38217c)=>{const _0x53bca7=_0x1a0b4a;if(_0x159c69['type']!==a['CommandType'][_0x53bca7(0x3d7)]||_0x38217c!=null&&_0x38217c['fromCollab']||_0x38217c!=null&&_0x38217c[_0x53bca7(0x14a)])return;const _0x1e7682=_0x159c69[_0x53bca7(0x29a)];if((_0x1e7682==null?void 0x0:_0x1e7682['unitId'])!==this['unitID'])return;const _0x461ad6=_0x159c69,_0xf55852=this[_0x53bca7(0x17c)][_0x53bca7(0x48c)][_0x53bca7(0x4c1)](this[_0x53bca7(0x17c)][_0x53bca7(0x48c)][_0x53bca7(0x25c)]()['COMPRESS_MUTATION_SEND'])([_0x461ad6],null)||[_0x461ad6];this[_0x53bca7(0x284)](_0xf55852[0x0]);})),_0x4f0743;}};Me=Ee([p(0x3,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),p(0x4,h[_0x14623f(0x362)](exports[_0x14623f(0x28b)])),p(0x5,h[_0x14623f(0x362)](u[_0x14623f(0x1c3)])),p(0x6,h['Inject'](a[_0x14623f(0x201)])),p(0x7,h[_0x14623f(0x362)](u[_0x14623f(0x430)])),p(0x8,h[_0x14623f(0x362)](fe)),p(0x9,a[_0x14623f(0x47a)]),p(0xa,a[_0x14623f(0x2be)]),p(0xb,N[_0x14623f(0x462)]),p(0xc,a['IPermissionService']),p(0xd,h[_0x14623f(0x1b0)](pe))],Me);const tt=[_0x14623f(0x177),'jiqing500',_0x14623f(0x2ea),_0x14623f(0x239),_0x14623f(0x2cb),'gold400'];class We extends a[_0x14623f(0x4cf)]{constructor(){const _0x2fc35a=_0x14623f;super(...arguments),d(this,_0x2fc35a(0x1be),new Map()),d(this,_0x2fc35a(0x298),0x0);}[_0x14623f(0x18b)](_0x2335eb){const _0x28decd=_0x14623f;if(this['_assignedColors']['has'](_0x2335eb))return this[_0x28decd(0x1be)][_0x28decd(0x3f7)](_0x2335eb);const _0x3ff0d5=tt[this[_0x28decd(0x298)]];return this[_0x28decd(0x298)]=(this[_0x28decd(0x298)]+0x1)%tt[_0x28decd(0x338)],this[_0x28decd(0x1be)][_0x28decd(0x3da)](_0x2335eb,_0x3ff0d5),_0x3ff0d5;}}var ws=Object[_0x14623f(0x4e3)],Ls=Object['getOwnPropertyDescriptor'],Ps=(_0xd4765f,_0x4d8b55,_0xbcc6f0,_0x2ce4a7)=>{for(var _0x4c228d=_0x2ce4a7>0x1?void 0x0:_0x2ce4a7?Ls(_0x4d8b55,_0xbcc6f0):_0x4d8b55,_0x260b7c=_0xd4765f['length']-0x1,_0x3f7fd6;_0x260b7c>=0x0;_0x260b7c--)(_0x3f7fd6=_0xd4765f[_0x260b7c])&&(_0x4c228d=(_0x2ce4a7?_0x3f7fd6(_0x4d8b55,_0xbcc6f0,_0x4c228d):_0x3f7fd6(_0x4c228d))||_0x4c228d);return _0x2ce4a7&&_0x4c228d&&ws(_0x4d8b55,_0xbcc6f0,_0x4c228d),_0x4c228d;},q=(_0x5d73f0,_0x217fa3)=>(_0x8bfef4,_0x5e8383)=>_0x217fa3(_0x8bfef4,_0x5e8383,_0x5d73f0);const Ms=0x12c,ys=0x64,Ns=()=>{let _0x1ac0f=[],_0x322849=!0x1;return _0x650f15=>{const _0xd0959b=_0x5cb3;_0x1ac0f[_0xd0959b(0x2fe)](_0x650f15),_0x322849||(_0x322849=!0x0,setTimeout(()=>{_0x1ac0f['forEach'](_0x316523=>_0x316523()),_0x1ac0f=[],_0x322849=!0x1;}));};};let ye=class extends a[_0x14623f(0x237)]{constructor(_0x5e9fc3,_0x1ed115,_0xa97f76,_0x651d54,_0x23d9c5,_0x2a4d3e,_0x3eae78,_0x421064){const _0x5d9c78=_0x14623f;super(),d(this,'_online',!0x1),d(this,_0x5d9c78(0x21f),!0x1),d(this,_0x5d9c78(0x366),new g[(_0x5d9c78(0x46b))](new Map())),d(this,_0x5d9c78(0x2d1),this[_0x5d9c78(0x366)]['asObservable']()),d(this,_0x5d9c78(0x167),new g[(_0x5d9c78(0x46b))]([])),d(this,'roomMembers$',this['_roomMembers$'][_0x5d9c78(0x160)](g['debounceTime'](Ms))),d(this,_0x5d9c78(0x223),He((_0x2388da,_0x542d5c)=>{const _0xa9accc=_0x5d9c78,_0x30a1e5={'eventID':u[_0xa9accc(0x323)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xa9accc(0x398)][_0xa9accc(0x310)](),'selection':Ke['serializeRangeWithSheet'](_0x2388da,_0x542d5c[_0xa9accc(0x221)])}};this['_session'][_0xa9accc(0x4c3)](_0x30a1e5,this[_0xa9accc(0x435)]);},ys)),(this['unitID']=_0x5e9fc3,this[_0x5d9c78(0x398)]=_0x1ed115,this[_0x5d9c78(0x31a)]=_0xa97f76,this['_colorAssignService']=_0x651d54,this[_0x5d9c78(0x14e)]=_0x23d9c5,this['_univerInstanceService']=_0x2a4d3e,this[_0x5d9c78(0x32e)]=_0x3eae78,this[_0x5d9c78(0x1b1)]=_0x421064);}get[_0x14623f(0x4eb)](){const _0xa7ba97=_0x14623f;return this[_0xa7ba97(0x366)][_0xa7ba97(0x385)]();}get[_0x14623f(0x191)](){const _0x5f53b8=_0x14623f;return this[_0x5f53b8(0x167)][_0x5f53b8(0x385)]();}[_0x14623f(0x188)](){const _0x670975=_0x14623f;super['dispose'](),this['_cursorInfo$'][_0x670975(0x389)](new Map()),this[_0x670975(0x366)]['complete'](),this['_roomMembers$'][_0x670975(0x389)]([]),this[_0x670975(0x167)]['complete']();}[_0x14623f(0x327)](){const _0x3a1b8e=_0x14623f;this[_0x3a1b8e(0x21f)]||(this[_0x3a1b8e(0x21f)]=!0x0,this[_0x3a1b8e(0x398)][_0x3a1b8e(0x199)][_0x3a1b8e(0x160)](g[_0x3a1b8e(0x476)](this[_0x3a1b8e(0x1c2)]))[_0x3a1b8e(0x3e0)](_0x7fd20f=>{const _0x30a179=_0x3a1b8e;_0x7fd20f===W[_0x30a179(0x21e)]?this['_toggleOnline']():this[_0x30a179(0x469)]();}),this[_0x3a1b8e(0x398)][_0x3a1b8e(0x20e)][_0x3a1b8e(0x160)](g['takeUntil'](this[_0x3a1b8e(0x1c2)]))[_0x3a1b8e(0x3e0)](_0x263850=>{const _0x2737f5=_0x3a1b8e,_0x5b6a31=_0x263850['eventID'];_0x5b6a31===u[_0x2737f5(0x323)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x263850),_0x5b6a31===u['CollaborationEvent'][_0x2737f5(0x23d)]&&this['_onCursorDelete'](_0x263850);}),this[_0x3a1b8e(0x3f4)](),this[_0x3a1b8e(0x39f)](this['_commandService'][_0x3a1b8e(0x1d4)](_0x51334c=>{const _0x40be36=_0x3a1b8e;if(this[_0x40be36(0x4a2)]&&_0x51334c['id']===E['SetSelectionsOperation']['id']&&_0x51334c['params'][_0x40be36(0x3e9)]===this[_0x40be36(0x435)]){const _0x519f30=_0x51334c[_0x40be36(0x29a)];this[_0x40be36(0x223)](_0x519f30['subUnitId'],_0x519f30[_0x40be36(0x17e)][0x0]);}})));}[_0x14623f(0x1e7)](_0x21b19a){const _0x125fb1=_0x14623f;var _0x420c4b,_0xb2533c;const {memberID:_0x2035a2,selection:_0x4b8761}=_0x21b19a[_0x125fb1(0x250)],{sheetName:_0x3f6c7b,range:_0x1dd3d9}=Ke['deserializeRangeWithSheet'](_0x4b8761),_0xfce966={'name':(_0xb2533c=(_0x420c4b=this['_memberService'][_0x125fb1(0x2fa)](this[_0x125fb1(0x435)],_0x2035a2))==null?void 0x0:_0x420c4b[_0x125fb1(0x44a)])!=null?_0xb2533c:_0x125fb1(0x408),'range':this[_0x125fb1(0x468)](_0x3f6c7b,_0x1dd3d9),'sheetID':_0x3f6c7b,'color':this[_0x125fb1(0x36b)][_0x125fb1(0x18b)](_0x2035a2),'selection':_0x4b8761},_0x4bd29c=this['cursorInfo'];_0x4bd29c['set'](_0x2035a2,_0xfce966),this[_0x125fb1(0x366)][_0x125fb1(0x389)](_0x4bd29c);}[_0x14623f(0x312)](_0x37b884){const _0x276b87=_0x14623f,{memberID:_0x18dd7b}=_0x37b884[_0x276b87(0x250)],_0x5970ec=this[_0x276b87(0x4eb)];_0x5970ec[_0x276b87(0x38c)](_0x18dd7b),this[_0x276b87(0x366)][_0x276b87(0x389)](_0x5970ec);}[_0x14623f(0x468)](_0xdc2abd,_0x315c6e){const _0x474464=_0x14623f;var _0x5edeec,_0x76b887;const _0x443525=(_0x76b887=(_0x5edeec=this[_0x474464(0x429)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x5edeec[_0x474464(0x175)](_0xdc2abd))==null?void 0x0:_0x76b887[_0x474464(0x19a)]();return(_0x443525==null?void 0x0:_0x443525['find'](_0x442785=>a['Rectangle'][_0x474464(0x464)](_0x442785,_0x315c6e)))||_0x315c6e;}[_0x14623f(0x3f4)](){const _0x4ca176=_0x14623f,_0x47ce41=new a[(_0x4ca176(0x4d2))](),_0x13eea0=Ns(),_0x356c4b=()=>{const _0x4888bd=_0x4ca176;_0x47ce41[_0x4888bd(0x188)]();const _0x4e4935=(_0x8cc71f,_0x55c350,_0x39c484,_0x32f825)=>{const _0x1a2229=_0x4888bd;let _0x164d0c=[];switch(_0x8cc71f['id']){case E['EffectRefRangId'][_0x1a2229(0x1ce)]:{_0x164d0c=E[_0x1a2229(0x3e2)](_0x8cc71f,_0x32f825);break;}case E['EffectRefRangId'][_0x1a2229(0x273)]:{_0x164d0c=E[_0x1a2229(0x308)](_0x8cc71f,_0x32f825);break;}case E[_0x1a2229(0x156)]['InsertColCommandId']:{_0x164d0c=E[_0x1a2229(0x4d1)](_0x8cc71f,_0x32f825);break;}case E[_0x1a2229(0x156)][_0x1a2229(0x41e)]:{_0x164d0c=E['handleInsertRangeMoveDown'](_0x8cc71f,_0x32f825);break;}case E[_0x1a2229(0x156)]['InsertRangeMoveRightCommandId']:{_0x164d0c=E[_0x1a2229(0x354)](_0x8cc71f,_0x32f825);break;}case E[_0x1a2229(0x156)]['InsertRowCommandId']:{_0x164d0c=E[_0x1a2229(0x39e)](_0x8cc71f,_0x32f825);break;}case E['EffectRefRangId'][_0x1a2229(0x3f1)]:{_0x164d0c=E[_0x1a2229(0x276)](_0x8cc71f,_0x32f825);break;}case E[_0x1a2229(0x156)][_0x1a2229(0x3c9)]:{_0x164d0c=E['handleIRemoveCol'](_0x8cc71f,_0x32f825);break;}case E[_0x1a2229(0x156)][_0x1a2229(0x2f4)]:{_0x164d0c=E[_0x1a2229(0x4a1)](_0x8cc71f,_0x32f825);break;}}const _0x4a8159=E[_0x1a2229(0x493)](_0x164d0c,_0x32f825),_0x4034bc=this[_0x1a2229(0x4eb)]['get'](_0x55c350);if(_0x4034bc&&_0x4a8159){const _0x2fd137={..._0x4034bc,'range':_0x4a8159};this[_0x1a2229(0x4eb)]['set'](_0x55c350,_0x2fd137),_0x13eea0(()=>{const _0x4eea1f=_0x1a2229,_0x2d1d5a=this[_0x4eea1f(0x1b1)][_0x4eea1f(0x4c0)](_0x4a8159,_0x13aad2=>(_0x2d1d5a[_0x4eea1f(0x188)](),_0x4e4935(_0x13aad2,_0x55c350,_0x39c484,_0x4a8159)));_0x47ce41['add'](_0x2d1d5a);});}return{'redos':[],'undos':[]};};this[_0x4888bd(0x4eb)][_0x4888bd(0x466)]((_0x4b52c7,_0x54f314)=>{const _0x7ed556=_0x4888bd,{range:_0x2ff240,sheetID:_0x5de09f}=_0x4b52c7,_0x299a83=this[_0x7ed556(0x1b1)][_0x7ed556(0x4c0)](_0x2ff240,_0x397f5c=>(_0x299a83[_0x7ed556(0x188)](),_0x4e4935(_0x397f5c,_0x54f314,_0x5de09f,_0x2ff240)));_0x47ce41[_0x7ed556(0x2de)](_0x299a83);});};this[_0x4ca176(0x39f)](a[_0x4ca176(0x290)](this[_0x4ca176(0x366)][_0x4ca176(0x3e0)](()=>{_0x356c4b();})));}[_0x14623f(0x4d4)](){const _0x143971=_0x14623f;var _0x34bf1c,_0xb07645;if(this[_0x143971(0x4a2)]=!0x0,((_0x34bf1c=this[_0x143971(0x429)]['getFocusedUnit']())==null?void 0x0:_0x34bf1c[_0x143971(0x30f)]())!==this[_0x143971(0x435)])return;const _0x2870de=(_0xb07645=this[_0x143971(0x31a)][_0x143971(0x3f7)](E[_0x143971(0x2f5)])[_0x143971(0x4d3)]())==null?void 0x0:_0xb07645[0x0],_0x8e7633=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x143971(0x2e8)][_0x143971(0x328)])[_0x143971(0x404)]();_0x2870de&&_0x8e7633&&this[_0x143971(0x223)](_0x8e7633[_0x143971(0x42b)](),_0x2870de);}[_0x14623f(0x469)](){const _0x5a39f7=_0x14623f;this[_0x5a39f7(0x4a2)]=!0x1;}};ye=Ps([q(0x2,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),q(0x3,h[_0x14623f(0x362)](We)),q(0x4,h[_0x14623f(0x362)](G)),q(0x5,a[_0x14623f(0x18f)]),q(0x6,a['ICommandService']),q(0x7,h[_0x14623f(0x362)](E[_0x14623f(0x2b1)]))],ye);var As=Object[_0x14623f(0x4e3)],js=Object[_0x14623f(0x4a0)],$s=(_0xddde6f,_0x580c5b,_0x402479,_0x176140)=>{const _0x4ae9d3=_0x14623f;for(var _0x4fae72=_0x176140>0x1?void 0x0:_0x176140?js(_0x580c5b,_0x402479):_0x580c5b,_0x487393=_0xddde6f[_0x4ae9d3(0x338)]-0x1,_0x52d8b8;_0x487393>=0x0;_0x487393--)(_0x52d8b8=_0xddde6f[_0x487393])&&(_0x4fae72=(_0x176140?_0x52d8b8(_0x580c5b,_0x402479,_0x4fae72):_0x52d8b8(_0x4fae72))||_0x4fae72);return _0x176140&&_0x4fae72&&As(_0x580c5b,_0x402479,_0x4fae72),_0x4fae72;},V=(_0x1c79c6,_0x1fa72c)=>(_0x6e1519,_0x15bcd6)=>_0x1fa72c(_0x6e1519,_0x15bcd6,_0x1c79c6);const Hs=0x12c,xs=0x64;let Ne=class extends a[_0x14623f(0x237)]{constructor(_0xfc1ddb,_0x3848a9,_0x19054a,_0x432204,_0x2b15ba,_0xc8d3d4,_0x131f95,_0x1d5f07,_0x24cdbe){const _0x214fa9=_0x14623f;super(),d(this,_0x214fa9(0x4a2),!0x1),d(this,_0x214fa9(0x21f),!0x1),d(this,'_cursorInfo$',new g[(_0x214fa9(0x46b))](new Map())),d(this,_0x214fa9(0x2d1),this[_0x214fa9(0x366)][_0x214fa9(0x180)]()),d(this,_0x214fa9(0x167),new g['BehaviorSubject']([])),d(this,'roomMembers$',this[_0x214fa9(0x167)][_0x214fa9(0x160)](g['debounceTime'](Hs))),d(this,_0x214fa9(0x223),He(_0x26e6b5=>{const _0x24e0bf=_0x214fa9,_0x129230={'eventID':u['CollaborationEvent'][_0x24e0bf(0x472)],'data':{'unitID':this['unitID'],'memberID':this[_0x24e0bf(0x398)][_0x24e0bf(0x310)](),'selection':bt(_0x26e6b5)}};this[_0x24e0bf(0x398)][_0x24e0bf(0x4c3)](_0x129230,this[_0x24e0bf(0x435)]);},xs)),(this[_0x214fa9(0x435)]=_0xfc1ddb,this[_0x214fa9(0x398)]=_0x3848a9,this[_0x214fa9(0x31a)]=_0x19054a,this[_0x214fa9(0x36b)]=_0x432204,this['_memberService']=_0x2b15ba,this[_0x214fa9(0x465)]=_0xc8d3d4,this['_transformService']=_0x131f95,this[_0x214fa9(0x429)]=_0x1d5f07,this[_0x214fa9(0x32e)]=_0x24cdbe);}get[_0x14623f(0x4eb)](){const _0x47a8c1=_0x14623f;return this[_0x47a8c1(0x366)][_0x47a8c1(0x385)]();}get['roomMembers'](){const _0x5da017=_0x14623f;return this[_0x5da017(0x167)][_0x5da017(0x385)]();}[_0x14623f(0x188)](){const _0x511e31=_0x14623f;super[_0x511e31(0x188)](),this[_0x511e31(0x366)][_0x511e31(0x389)](new Map()),this[_0x511e31(0x366)][_0x511e31(0x271)](),this[_0x511e31(0x167)][_0x511e31(0x389)]([]),this[_0x511e31(0x167)][_0x511e31(0x271)]();}[_0x14623f(0x327)](){const _0x274e7e=_0x14623f;this['_init']||(this[_0x274e7e(0x21f)]=!0x0,this[_0x274e7e(0x398)][_0x274e7e(0x199)]['pipe'](g[_0x274e7e(0x476)](this[_0x274e7e(0x1c2)]))[_0x274e7e(0x3e0)](_0x550ad5=>{const _0x294259=_0x274e7e;_0x550ad5===W[_0x294259(0x21e)]?this[_0x294259(0x4d4)]():this[_0x294259(0x469)]();}),this[_0x274e7e(0x398)][_0x274e7e(0x20e)][_0x274e7e(0x160)](g[_0x274e7e(0x476)](this[_0x274e7e(0x1c2)]))['subscribe'](_0x4b8406=>{const _0x76b276=_0x274e7e,_0x2e443a=_0x4b8406['eventID'];_0x2e443a===u[_0x76b276(0x323)][_0x76b276(0x472)]&&this['_onCursorUpdate'](_0x4b8406),_0x2e443a===u['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0x4b8406);}),this[_0x274e7e(0x39f)](this[_0x274e7e(0x32e)][_0x274e7e(0x1d4)](_0x30b515=>{const _0x346047=_0x274e7e,_0xb6f401=_0x30b515['params'];_0xb6f401!=null&&this[_0x346047(0x4a2)]&&_0x30b515['id']===y[_0x346047(0x36e)]['id']&&_0xb6f401[_0x346047(0x3e9)]===this[_0x346047(0x435)]&&_0xb6f401['isEditing']===!0x1&&this['_updateLocalCursor'](_0xb6f401[_0x346047(0x16e)]);})),this['_syncEditingCollabCursorService'][_0x274e7e(0x2c3)][_0x274e7e(0x160)](g[_0x274e7e(0x476)](this[_0x274e7e(0x1c2)]))[_0x274e7e(0x3e0)](_0x52dccf=>{const _0x2443fb=_0x274e7e;if((_0x52dccf==null?void 0x0:_0x52dccf[_0x2443fb(0x435)])!==this['unitID'])return;const _0x4110c5={'eventID':u[_0x2443fb(0x323)][_0x2443fb(0x472)],'data':_0x52dccf};this['_onCursorUpdate'](_0x4110c5);}),this[_0x274e7e(0x39f)](this[_0x274e7e(0x32e)][_0x274e7e(0x1d4)](_0x4c186f=>{const _0x5dca77=_0x274e7e;if(_0x4c186f[_0x5dca77(0x29a)]==null)return;const _0xd1cb50=_0x4c186f[_0x5dca77(0x29a)];if(_0x4c186f['id']!==y[_0x5dca77(0x444)]['id']||_0xd1cb50[_0x5dca77(0x3e9)]!==this[_0x5dca77(0x435)])return;const _0x1e4bca={'id':'doc.mutation.rich-text-editing','params':_0xd1cb50},_0x4b4030=this[_0x5dca77(0x4eb)];for(const [_0x115f94,_0x597129]of _0x4b4030){const _0xb089b2={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x597129[_0x5dca77(0x16e)]}},_0x5119e5=this[_0x5dca77(0x204)][_0x5dca77(0x1e1)](_0x1e4bca,_0xb089b2,!0x1);if(u['isTransformMutationFailure'](_0x5119e5))throw _0x5119e5['error'];_0x4b4030[_0x5dca77(0x3da)](_0x115f94,{..._0x597129,'ranges':_0x5119e5['m2Prime'][_0x5dca77(0x29a)][_0x5dca77(0x30b)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x4b4030);});})));}[_0x14623f(0x1e7)](_0x3f8777){const _0x4d8d00=_0x14623f;var _0x112b70,_0x3139ad;const {memberID:_0x26ebcf,selection:_0x406223}=_0x3f8777[_0x4d8d00(0x250)],_0x50f099=ms(_0x406223),_0x495996=(_0x3139ad=(_0x112b70=this['_memberService'][_0x4d8d00(0x2fa)](this[_0x4d8d00(0x435)],_0x26ebcf))==null?void 0x0:_0x112b70[_0x4d8d00(0x44a)])!=null?_0x3139ad:'Unknown\x20user',_0x49accb={'color':this[_0x4d8d00(0x36b)][_0x4d8d00(0x18b)](_0x26ebcf),'name':_0x495996,'ranges':_0x50f099},_0x592b8a=this[_0x4d8d00(0x4eb)];_0x592b8a[_0x4d8d00(0x3da)](_0x26ebcf,_0x49accb),this[_0x4d8d00(0x366)][_0x4d8d00(0x389)](_0x592b8a);}['_onCursorDelete'](_0x374eb4){const _0x4a3eef=_0x14623f,{memberID:_0x5136c1}=_0x374eb4[_0x4a3eef(0x250)],_0x3206e9=this[_0x4a3eef(0x4eb)];_0x3206e9['delete'](_0x5136c1),this[_0x4a3eef(0x366)][_0x4a3eef(0x389)](_0x3206e9);}['_toggleOnline'](){const _0x44881f=_0x14623f;var _0x43d5b0;if(this[_0x44881f(0x4a2)]=!0x0,((_0x43d5b0=this[_0x44881f(0x429)][_0x44881f(0x47c)]())==null?void 0x0:_0x43d5b0[_0x44881f(0x30f)]())!==this[_0x44881f(0x435)])return;const _0xad4159=this[_0x44881f(0x31a)][_0x44881f(0x3f7)](y[_0x44881f(0x324)])[_0x44881f(0x4d3)](),_0x3e90c7=_0xad4159==null?void 0x0:_0xad4159[_0x44881f(0x3a5)](y['serializeTextRange']);Array[_0x44881f(0x3ca)](_0x3e90c7)&&_0x3e90c7[_0x44881f(0x338)]>0x0&&this[_0x44881f(0x223)](_0x3e90c7);}[_0x14623f(0x469)](){this['_online']=!0x1;}};Ne=$s([V(0x2,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),V(0x3,h[_0x14623f(0x362)](We)),V(0x4,h[_0x14623f(0x362)](G)),V(0x5,h[_0x14623f(0x362)](Ve)),V(0x6,u[_0x14623f(0x483)]),V(0x7,a[_0x14623f(0x18f)]),V(0x8,a[_0x14623f(0x2be)])],Ne);var ks=Object[_0x14623f(0x4e3)],Bs=Object['getOwnPropertyDescriptor'],Fs=(_0x30fddd,_0x58b239,_0x3059b2,_0x4b99b5)=>{for(var _0x2348be=_0x4b99b5>0x1?void 0x0:_0x4b99b5?Bs(_0x58b239,_0x3059b2):_0x58b239,_0x52799b=_0x30fddd['length']-0x1,_0x3a6f2b;_0x52799b>=0x0;_0x52799b--)(_0x3a6f2b=_0x30fddd[_0x52799b])&&(_0x2348be=(_0x4b99b5?_0x3a6f2b(_0x58b239,_0x3059b2,_0x2348be):_0x3a6f2b(_0x2348be))||_0x2348be);return _0x4b99b5&&_0x2348be&&ks(_0x58b239,_0x3059b2,_0x2348be),_0x2348be;},Oe=(_0x51be7b,_0x503aac)=>(_0x34b61f,_0xfca25a)=>_0x503aac(_0x34b61f,_0xfca25a,_0x51be7b);let J=class extends a['RxDisposable']{constructor(_0x534b14,_0xcd43da,_0x47359e){const _0x5f09cf=_0x14623f;super(),d(this,_0x5f09cf(0x14d),new Map()),d(this,'_entityInit$',new g['Subject']()),(this[_0x5f09cf(0x429)]=_0x534b14,this[_0x5f09cf(0x31a)]=_0xcd43da,this['_collabSessionService']=_0x47359e,this[_0x5f09cf(0x21f)]());}[_0x14623f(0x188)](){const _0x50b71b=_0x14623f;super[_0x50b71b(0x188)](),this['_entityInit$'][_0x50b71b(0x271)](),this['_entities'][_0x50b71b(0x466)](_0x3fea8c=>_0x3fea8c[_0x50b71b(0x188)]());}[_0x14623f(0x383)](_0x19c74c){const _0x15f29=_0x14623f;return this[_0x15f29(0x14d)][_0x15f29(0x33f)](_0x19c74c)?this[_0x15f29(0x14d)]['get'](_0x19c74c)[_0x15f29(0x2d1)]:this[_0x15f29(0x24c)][_0x15f29(0x160)](g['filter'](_0x431ec9=>_0x431ec9['unitID']===_0x19c74c),g[_0x15f29(0x2b6)](_0x457f19=>_0x457f19[_0x15f29(0x2d1)]));}['_init'](){const _0x4755aa=_0x14623f;this[_0x4755aa(0x429)]['getTypeOfUnitAdded$'](a[_0x4755aa(0x2e8)][_0x4755aa(0x328)])[_0x4755aa(0x160)](g[_0x4755aa(0x476)](this[_0x4755aa(0x1c2)]))[_0x4755aa(0x3e0)](async _0xcd5dff=>{const _0x5e9528=_0x4755aa,_0x1d605d=_0xcd5dff[_0x5e9528(0x30f)](),_0x4124cb=await this[_0x5e9528(0x2b9)](_0x1d605d);this[_0x5e9528(0x24c)][_0x5e9528(0x389)](_0x4124cb),this[_0x5e9528(0x14d)][_0x5e9528(0x3da)](_0x1d605d,_0x4124cb);}),this[_0x4755aa(0x429)]['getTypeOfUnitAdded$'](a[_0x4755aa(0x2e8)]['UNIVER_DOC'])[_0x4755aa(0x160)](g['takeUntil'](this['dispose$']))[_0x4755aa(0x160)](g[_0x4755aa(0x2e3)](_0x51e10a=>!_0x51e10a['getUnitId']()['startsWith']('__')))[_0x4755aa(0x3e0)](async _0x23e5ae=>{const _0x169576=_0x4755aa,_0x2bcd53=_0x23e5ae[_0x169576(0x30f)](),_0x31574e=await this[_0x169576(0x2ed)](_0x2bcd53);this[_0x169576(0x24c)][_0x169576(0x389)](_0x31574e),this[_0x169576(0x14d)][_0x169576(0x3da)](_0x2bcd53,_0x31574e);}),g['merge'](this['_univerInstanceService'][_0x4755aa(0x399)](a['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x4755aa(0x2e8)][_0x4755aa(0x328)]))['pipe'](g[_0x4755aa(0x476)](this[_0x4755aa(0x1c2)]))[_0x4755aa(0x3e0)](_0x121be1=>{const _0x374fca=_0x4755aa,_0x1d9ca0=_0x121be1['getUnitId'](),_0x4cbe8c=this[_0x374fca(0x14d)][_0x374fca(0x3f7)](_0x1d9ca0);_0x4cbe8c&&(_0x4cbe8c[_0x374fca(0x188)](),this[_0x374fca(0x14d)][_0x374fca(0x38c)](_0x1d9ca0));});}async[_0x14623f(0x2b9)](_0x43b56a){const _0x5b7262=_0x14623f,_0x1de80c=await this['_collabSessionService'][_0x5b7262(0x4aa)](_0x43b56a),_0x15bd5b=this[_0x5b7262(0x31a)][_0x5b7262(0x32c)](ye,_0x43b56a,_0x1de80c);return _0x15bd5b[_0x5b7262(0x327)](),_0x15bd5b;}async[_0x14623f(0x2ed)](_0xc135c5){const _0x117d99=_0x14623f,_0x3e04c0=await this[_0x117d99(0x2bb)][_0x117d99(0x4aa)](_0xc135c5),_0x573f71=this[_0x117d99(0x31a)][_0x117d99(0x32c)](Ne,_0xc135c5,_0x3e04c0);return _0x573f71[_0x117d99(0x327)](),_0x573f71;}};J=Fs([a[_0x14623f(0x280)](a['LifecycleStages']['Starting'],J),Oe(0x0,a[_0x14623f(0x18f)]),Oe(0x1,h[_0x14623f(0x362)](h[_0x14623f(0x241)])),Oe(0x2,h[_0x14623f(0x362)](exports[_0x14623f(0x397)]))],J);const ce=0x14,st=0xc8,De=0x4,Vs=0x5;function Ws(_0x545b00,_0x4313f4){const _0x64368e=_0x14623f;let {radius:_0x9ce335,width:_0x6cb7a5,height:_0x382eb9}=_0x4313f4;_0x9ce335=_0x9ce335!=null?_0x9ce335:0x0,_0x6cb7a5=_0x6cb7a5!=null?_0x6cb7a5:0x1e,_0x382eb9=_0x382eb9!=null?_0x382eb9:0x1e;let _0x5a4007=0x0,_0x140b31=0x0,_0x37de55=0x0;_0x5a4007=_0x140b31=_0x37de55=Math[_0x64368e(0x2d0)](_0x9ce335,_0x6cb7a5/0x2,_0x382eb9/0x2),_0x545b00[_0x64368e(0x33e)](),_0x545b00[_0x64368e(0x3df)](_0x5a4007,0x0),_0x545b00[_0x64368e(0x1e6)](_0x6cb7a5-_0x140b31,0x0),_0x545b00[_0x64368e(0x2a5)](_0x6cb7a5-_0x140b31,_0x140b31,_0x140b31,Math['PI']*0x3/0x2,0x0,!0x1),_0x545b00[_0x64368e(0x1e6)](_0x6cb7a5,_0x382eb9-_0x37de55),_0x545b00[_0x64368e(0x2a5)](_0x6cb7a5-_0x37de55,_0x382eb9-_0x37de55,_0x37de55,0x0,Math['PI']/0x2,!0x1),_0x545b00['lineTo'](0x0,_0x382eb9),_0x545b00['lineTo'](0x0,_0x5a4007),_0x545b00[_0x64368e(0x2a5)](_0x5a4007,_0x5a4007,_0x5a4007,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x545b00[_0x64368e(0x173)](),_0x4313f4[_0x64368e(0x3f2)]&&(_0x545b00[_0x64368e(0x4a9)](),_0x545b00[_0x64368e(0x2ec)]=_0x4313f4[_0x64368e(0x3f2)],_0x4313f4[_0x64368e(0x2ca)]===_0x64368e(0x31b)?_0x545b00[_0x64368e(0x3f2)](_0x64368e(0x31b)):_0x545b00['fill'](),_0x545b00[_0x64368e(0x214)]());}class Ce extends R['Shape']{constructor(_0x2a418c,_0xe60387){const _0xf52595=_0x14623f;super(_0x2a418c,_0xe60387),d(this,_0xf52595(0x2e7)),d(this,_0xf52595(0x1f1)),(this['color']=_0xe60387==null?void 0x0:_0xe60387['color'],this['text']=_0xe60387==null?void 0x0:_0xe60387[_0xf52595(0x1f1)]);}static[_0x14623f(0x246)](_0x36082c,_0x1cf329){const _0x4eb28c=_0x14623f,{text:_0x125724,color:_0x2f49a9}=_0x1cf329;_0x36082c[_0x4eb28c(0x4a9)](),_0x36082c[_0x4eb28c(0x2a2)]=_0x4eb28c(0x3c1);const _0x35bbc0=_0x36082c['measureText'](_0x125724)[_0x4eb28c(0x458)],_0x2d6fe3=Math[_0x4eb28c(0x2d0)](_0x35bbc0+0x2*De,st);Ws(_0x36082c,{'height':ce,'radius':0x4,'width':_0x2d6fe3,'fill':_0x2f49a9,'evented':!0x1}),_0x36082c[_0x4eb28c(0x2ec)]=_0x4eb28c(0x154);const _0x38e9ce=De,_0x1ab127=ce-Vs,_0x23fa39=st-0x2*De;if(_0x35bbc0>_0x23fa39){let _0x30b0b0='',_0x276d97=0x0;for(const _0x266be9 of _0x125724){const _0x23c578=_0x36082c[_0x4eb28c(0x321)](_0x266be9)['width'];if(_0x276d97+_0x23c578<=_0x23fa39-_0x36082c[_0x4eb28c(0x321)](_0x4eb28c(0x48e))[_0x4eb28c(0x458)])_0x30b0b0+=_0x266be9,_0x276d97+=_0x23c578;else{_0x30b0b0+=_0x4eb28c(0x48e);break;}}_0x36082c[_0x4eb28c(0x3ab)](_0x30b0b0,_0x38e9ce,_0x1ab127);}else _0x36082c[_0x4eb28c(0x3ab)](_0x125724,_0x38e9ce,_0x1ab127);_0x36082c[_0x4eb28c(0x214)]();}[_0x14623f(0x289)](_0x392806){Ce['drawWith'](_0x392806,this);}}const Gs=0x1,Ys=1.5;class Ks extends R[_0x14623f(0x3cb)]{constructor(_0x2355b4,_0x14736c){const _0x1995f8=_0x14623f;super(_0x2355b4,_0x14736c),d(this,_0x1995f8(0x411)),d(this,_0x1995f8(0x455),!0x1),d(this,_0x1995f8(0x345)),d(this,_0x1995f8(0x454),''),d(this,_0x1995f8(0x19e),_0x1995f8(0x39a)),(_0x14736c&&this[_0x1995f8(0x1d0)](_0x14736c),this['onPointerEnter$'][_0x1995f8(0x4be)](()=>this[_0x1995f8(0x1d0)]({'hovered':!0x0})),this[_0x1995f8(0x45b)]['subscribeEvent'](()=>this[_0x1995f8(0x1d0)]({'hovered':!0x1})));}['setShapeProps'](_0x4e3250){const _0x514a4d=_0x14623f;var _0x50d610,_0xd9219,_0x5d2e13,_0x1dd613,_0x5cc2a6;this[_0x514a4d(0x411)]=(_0x50d610=_0x4e3250[_0x514a4d(0x2e7)])!=null?_0x50d610:this['_color'],this['_hovered']=(_0xd9219=_0x4e3250[_0x514a4d(0x165)])!=null?_0xd9219:this[_0x514a4d(0x455)],this['_range']=(_0x5d2e13=_0x4e3250['range'])!=null?_0x5d2e13:this[_0x514a4d(0x345)],this[_0x514a4d(0x454)]=(_0x1dd613=_0x4e3250[_0x514a4d(0x44a)])!=null?_0x1dd613:this['_name'],this['_labelPosition']=(_0x5cc2a6=_0x4e3250['labelPosition'])!=null?_0x5cc2a6:this[_0x514a4d(0x19e)],this[_0x514a4d(0x266)]({'width':_0x4e3250[_0x514a4d(0x458)],'height':_0x4e3250[_0x514a4d(0x31c)]});}[_0x14623f(0x357)](_0x14616e){const _0x359f7b=_0x14623f,{row:_0x3eb0c5,column:_0x237ed5}=_0x14616e;if(_0x3eb0c5>=this[_0x359f7b(0x345)]['startRow']&&_0x3eb0c5<=this[_0x359f7b(0x345)][_0x359f7b(0x3ad)]&&_0x237ed5>=this['_range']['startColumn']&&_0x237ed5<=this[_0x359f7b(0x345)][_0x359f7b(0x285)]){this[_0x359f7b(0x1d0)]({'hovered':!0x0});return;}this[_0x359f7b(0x1d0)]({'hovered':!0x1});}[_0x14623f(0x23f)](_0x5041e0){return!0x1;}[_0x14623f(0x289)](_0x3e6138){const _0x204989=_0x14623f;R[_0x204989(0x3a2)]['drawWith'](_0x3e6138,{'width':this[_0x204989(0x458)],'height':this['height'],'strokeWidth':Ys,'stroke':this['_color'],'evented':!0x1}),this[_0x204989(0x455)]&&(_0x3e6138[_0x204989(0x4a9)](),_0x3e6138['transform'](0x1,0x0,0x0,0x1,this[_0x204989(0x458)],this[_0x204989(0x19e)]==='bottom'?0x0:-ce),Ce[_0x204989(0x246)](_0x3e6138,{'text':this[_0x204989(0x454)],'color':this[_0x204989(0x411)]}),_0x3e6138[_0x204989(0x214)]());}}var Xs=Object[_0x14623f(0x4e3)],qs=Object['getOwnPropertyDescriptor'],zs=(_0x2b1e5c,_0xe730c3,_0xf68146,_0x4bf0cd)=>{const _0x192b78=_0x14623f;for(var _0x3c2050=_0x4bf0cd>0x1?void 0x0:_0x4bf0cd?qs(_0xe730c3,_0xf68146):_0xe730c3,_0x23f030=_0x2b1e5c[_0x192b78(0x338)]-0x1,_0x485c26;_0x23f030>=0x0;_0x23f030--)(_0x485c26=_0x2b1e5c[_0x23f030])&&(_0x3c2050=(_0x4bf0cd?_0x485c26(_0xe730c3,_0xf68146,_0x3c2050):_0x485c26(_0x3c2050))||_0x3c2050);return _0x4bf0cd&&_0x3c2050&&Xs(_0xe730c3,_0xf68146,_0x3c2050),_0x3c2050;},le=(_0x5e0130,_0x1ac6b5)=>(_0x11dd07,_0x395c01)=>_0x1ac6b5(_0x11dd07,_0x395c01,_0x5e0130);const Js=0x1389;let ue=class extends a[_0x14623f(0x237)]{constructor(_0x196391,_0x1a20ae,_0x3846b4,_0x49bee3){const _0x575a0c=_0x14623f;super(),d(this,_0x575a0c(0x1e3),new Set()),d(this,_0x575a0c(0x198),null),(this[_0x575a0c(0x1f4)]=_0x196391,this[_0x575a0c(0x429)]=_0x1a20ae,this[_0x575a0c(0x145)]=_0x3846b4,this[_0x575a0c(0x43e)]=_0x49bee3,this[_0x575a0c(0x21f)]());}get[_0x14623f(0x3f5)](){const _0x3c2069=_0x14623f;return this['_renderManagerService'][_0x3c2069(0x438)](this[_0x3c2069(0x429)]['getCurrentUnitForType'](a[_0x3c2069(0x2e8)][_0x3c2069(0x328)])[_0x3c2069(0x30f)]())[_0x3c2069(0x2c5)](ee['SheetSkeletonManagerService']);}get[_0x14623f(0x16b)](){const _0x5ef4dd=_0x14623f;return this[_0x5ef4dd(0x429)][_0x5ef4dd(0x258)](a['UniverInstanceType'][_0x5ef4dd(0x328)])['getUnitId']();}[_0x14623f(0x21f)](){const _0xb00b4e=_0x14623f;this[_0xb00b4e(0x3f5)][_0xb00b4e(0x47d)][_0xb00b4e(0x160)](T[_0xb00b4e(0x476)](this['dispose$']),T['switchMap'](_0x4e4b29=>{const _0x1c9418=_0xb00b4e;if(_0x4e4b29){const _0xcfc42b=_0x4e4b29[_0x1c9418(0x309)];return g[_0x1c9418(0x299)](this['_collabCursorController'][_0x1c9418(0x383)](this[_0x1c9418(0x16b)]),this['_themeService']['currentTheme$'])[_0x1c9418(0x160)](T['map'](([_0x44cf44,_0x53df8c])=>{const _0x58fa2c=_0x1c9418,_0x103950=new Map();return _0x44cf44[_0x58fa2c(0x466)]((_0x5f5b51,_0x26f5c4)=>{const _0xdb00ef=_0x58fa2c;if(_0x5f5b51[_0xdb00ef(0x255)]===_0xcfc42b){const _0xdb6c5e={..._0x5f5b51};_0xdb6c5e['color']=_0x53df8c[_0x5f5b51[_0xdb00ef(0x2e7)]],_0x103950[_0xdb00ef(0x3da)](_0x26f5c4,_0xdb6c5e);}}),{'skeleton':_0x4e4b29,'cursors':_0x103950};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0xb00b4e(0x3e0)](({skeleton:_0x45e5e2,cursors:_0x2cecd4})=>{const _0xc66da3=_0xb00b4e;this['_removeCollabCursors'](),_0x45e5e2&&this[_0xc66da3(0x144)](_0x45e5e2,_0x2cecd4);}),this[_0xb00b4e(0x3f5)][_0xb00b4e(0x47d)][_0xb00b4e(0x3e0)](_0xce7622=>{const _0x5cbeda=_0xb00b4e;if(_0xce7622==null)return;const {skeleton:_0x362cbf}=_0xce7622,_0x4e35f8=this[_0x5cbeda(0x145)]['getRenderById'](this[_0x5cbeda(0x16b)]),{scene:_0x27316f}=_0x4e35f8;_0x27316f[_0x5cbeda(0x217)][_0x5cbeda(0x4be)](He(_0x2a6b33=>{const _0x42c7b=_0x5cbeda;var _0x565f4b,_0x3e3198;const {offsetX:_0x2cb312,offsetY:_0x2c78ef}=_0x2a6b33,{x:_0x41216c,y:_0x1cc3a7}=_0x27316f[_0x42c7b(0x4d8)](R['Vector2']['FromArray']([_0x2cb312,_0x2c78ef])),{scaleX:_0x62c9f8,scaleY:_0x5464eb}=_0x27316f['getAncestorScale'](),_0x170cc1=_0x27316f[_0x42c7b(0x23e)](ee[_0x42c7b(0x1f8)]['VIEW_MAIN']),_0x894a83=_0x27316f['getScrollXYByRelativeCoords'](R[_0x42c7b(0x244)]['FromArray']([_0x41216c,_0x1cc3a7]),_0x170cc1),_0x5e783a=_0x362cbf[_0x42c7b(0x3ef)](_0x2cb312,_0x2c78ef,_0x62c9f8,_0x5464eb,_0x894a83);((_0x565f4b=this[_0x42c7b(0x198)])==null?void 0x0:_0x565f4b['column'])===_0x5e783a[_0x42c7b(0x3c8)]&&((_0x3e3198=this[_0x42c7b(0x198)])==null?void 0x0:_0x3e3198[_0x42c7b(0x471)])===_0x5e783a[_0x42c7b(0x471)]||this['_cursors']['forEach'](_0x2cb839=>{_0x2cb839['onMouseMove'](_0x5e783a);});},0x64));});}[_0x14623f(0x144)](_0x68a81b,_0x5b2878){const _0x77e517=_0x14623f;var _0x2f2576;const _0x3603e3=(_0x2f2576=this[_0x77e517(0x3f5)][_0x77e517(0x19f)]())==null?void 0x0:_0x2f2576[_0x77e517(0x20d)];if(!_0x3603e3)return;const _0x5c2930=this[_0x77e517(0x498)]();if(!_0x5c2930)return;this[_0x77e517(0x1e3)][_0x77e517(0x466)](_0x36e2bf=>{const _0x340595=_0x77e517;_0x36e2bf[_0x340595(0x4c6)]();});const {scene:_0x1082d6}=_0x5c2930,_0x5817a7=Zs(Array[_0x77e517(0x3ce)](_0x5b2878[_0x77e517(0x413)]()))['map'](_0x376dee=>{const _0x482e37=_0x77e517,{color:_0x1947dd,range:_0x166bdf,name:_0x46006a,selection:_0x25f53c,sheetID:_0x2c10c3}=_0x376dee,{startColumn:_0x4068f4,startRow:_0x100b6a,endColumn:_0xb267e2,endRow:_0x45d326}=_0x166bdf,_0x4e8c98=ee[_0x482e37(0x265)](_0x100b6a,_0x4068f4,_0x1082d6,_0x3603e3),_0x1ffc66=ee[_0x482e37(0x265)](_0x45d326,_0xb267e2,_0x1082d6,_0x3603e3),{columnHeaderHeightAndMarginTop:_0x2eeeb7}=_0x3603e3,{startX:_0x543558,startY:_0xe7934e}=_0x4e8c98,{endX:_0x5d9e8e,endY:_0x3257fd}=_0x1ffc66,_0x3cea9c=_0x5d9e8e-_0x543558,_0x2b1813=_0x3257fd-_0xe7934e,_0x3329e7={'labelPosition':_0xe7934e-_0x2eeeb7>=ce?_0x482e37(0x39a):_0x482e37(0x38f),'sheetID':_0x2c10c3,'range':_0x166bdf,'color':_0x1947dd,'name':_0x46006a,'selection':_0x25f53c,'left':_0x543558,'top':_0xe7934e,'width':_0x3cea9c,'height':_0x2b1813,'evented':!0x1,'zIndex':Js};return new Ks(_0x46006a,_0x3329e7);});_0x1082d6[_0x77e517(0x1c5)](_0x5817a7,Gs),this['_cursors']=new Set(_0x5817a7);}[_0x14623f(0x352)](){const _0x458c41=_0x14623f;var _0x319da1;(_0x319da1=this['_cursors'])==null||_0x319da1[_0x458c41(0x466)](_0x7da1e1=>_0x7da1e1[_0x458c41(0x188)]());}[_0x14623f(0x498)](){const _0x5b24d6=_0x14623f;return ee[_0x5b24d6(0x1cf)](this[_0x5b24d6(0x429)],this[_0x5b24d6(0x145)]);}};ue=zs([a[_0x14623f(0x280)](a[_0x14623f(0x4e8)][_0x14623f(0x2f7)],ue),le(0x0,h[_0x14623f(0x362)](J)),le(0x1,a[_0x14623f(0x18f)]),le(0x2,R[_0x14623f(0x390)]),le(0x3,h[_0x14623f(0x362)](a['ThemeService']))],ue);function Zs(_0x345b28){const _0x539138=_0x14623f,_0x3727c3=new Map();return _0x345b28[_0x539138(0x466)](_0x4c8e3d=>{const _0xdd5a92=_0x539138;if(_0x3727c3[_0xdd5a92(0x33f)](_0x4c8e3d[_0xdd5a92(0x329)])){const _0x2d079b=_0x3727c3[_0xdd5a92(0x3f7)](_0x4c8e3d[_0xdd5a92(0x329)]);_0x2d079b[_0xdd5a92(0x44a)]+=',\x20'+_0x4c8e3d[_0xdd5a92(0x44a)];}else _0x3727c3['set'](_0x4c8e3d[_0xdd5a92(0x329)],_0x4c8e3d);}),Array[_0x539138(0x3ce)](_0x3727c3[_0x539138(0x413)]());}var M=function(){const _0xca6c33=_0x14623f;return M=Object['assign']||function(_0x1f4223){const _0x5f1336=_0x5cb3;for(var _0x29139f,_0x135a60=0x1,_0x8288e9=arguments[_0x5f1336(0x338)];_0x135a60<_0x8288e9;_0x135a60++){_0x29139f=arguments[_0x135a60];for(var _0x24e9b6 in _0x29139f)Object[_0x5f1336(0x161)]['hasOwnProperty']['call'](_0x29139f,_0x24e9b6)&&(_0x1f4223[_0x24e9b6]=_0x29139f[_0x24e9b6]);}return _0x1f4223;},M[_0xca6c33(0x34f)](this,arguments);},Qs=function(_0x55f6f4,_0x417c42){const _0x1517f9=_0x14623f;var _0x206536={};for(var _0x158bac in _0x55f6f4)Object[_0x1517f9(0x161)][_0x1517f9(0x19b)][_0x1517f9(0x2e2)](_0x55f6f4,_0x158bac)&&_0x417c42[_0x1517f9(0x421)](_0x158bac)<0x0&&(_0x206536[_0x158bac]=_0x55f6f4[_0x158bac]);if(_0x55f6f4!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5303d1=0x0,_0x158bac=Object[_0x1517f9(0x28d)](_0x55f6f4);_0x5303d1<_0x158bac[_0x1517f9(0x338)];_0x5303d1++)_0x417c42[_0x1517f9(0x421)](_0x158bac[_0x5303d1])<0x0&&Object[_0x1517f9(0x161)][_0x1517f9(0x4ae)][_0x1517f9(0x2e2)](_0x55f6f4,_0x158bac[_0x5303d1])&&(_0x206536[_0x158bac[_0x5303d1]]=_0x55f6f4[_0x158bac[_0x5303d1]]);}return _0x206536;},Ge=L['forwardRef'](function(_0x462618,_0x926cd8){const _0x65d172=_0x14623f;var _0x239a13=_0x462618['icon'],_0x162639=_0x462618['id'],_0xba09c=_0x462618[_0x65d172(0x32d)],_0x3d6e72=_0x462618[_0x65d172(0x2ae)],_0x48bf78=Qs(_0x462618,[_0x65d172(0x2a1),'id',_0x65d172(0x32d),'extend']),_0x5a1581=_0x65d172(0x238)[_0x65d172(0x46e)](_0x162639,'\x20')[_0x65d172(0x46e)](_0xba09c||'')[_0x65d172(0x1b6)](),_0xd29344=L[_0x65d172(0x3d9)]('_'['concat'](si()));return Rt(_0x239a13,''['concat'](_0x162639),{'defIds':_0x239a13['defIds'],'idSuffix':_0xd29344[_0x65d172(0x423)]},M({'ref':_0x926cd8,'className':_0x5a1581},_0x48bf78),_0x3d6e72);});function Rt(_0x422fb0,_0x1fef26,_0x329f56,_0x16ff58,_0xe9f3d8){const _0x50ddbf=_0x14623f;return L['createElement'](_0x422fb0[_0x50ddbf(0x218)],M(M({'key':_0x1fef26},ei(_0x422fb0,_0x329f56,_0xe9f3d8)),_0x16ff58),(ti(_0x422fb0,_0x329f56)['children']||[])[_0x50ddbf(0x3a5)](function(_0x15bc8f,_0x2039c8){const _0x4d950f=_0x50ddbf;return Rt(_0x15bc8f,''[_0x4d950f(0x46e)](_0x1fef26,'-')[_0x4d950f(0x46e)](_0x422fb0[_0x4d950f(0x218)],'-')[_0x4d950f(0x46e)](_0x2039c8),_0x329f56,void 0x0,_0xe9f3d8);}));}function ei(_0x5a4c9b,_0x493958,_0x48dc21){const _0x2a6da0=_0x14623f;var _0x504411=M({},_0x5a4c9b[_0x2a6da0(0x365)]);_0x48dc21!=null&&_0x48dc21[_0x2a6da0(0x49a)]&&_0x504411[_0x2a6da0(0x3f2)]===_0x2a6da0(0x49a)&&(_0x504411[_0x2a6da0(0x3f2)]=_0x48dc21[_0x2a6da0(0x49a)]);var _0x38461d=_0x493958['defIds'];return!_0x38461d||_0x38461d[_0x2a6da0(0x338)]===0x0||(_0x5a4c9b[_0x2a6da0(0x218)]===_0x2a6da0(0x479)&&_0x504411[_0x2a6da0(0x4cd)]&&(_0x504411[_0x2a6da0(0x4cd)]=_0x504411[_0x2a6da0(0x4cd)]+_0x493958[_0x2a6da0(0x184)]),Object['entries'](_0x504411)[_0x2a6da0(0x466)](function(_0x515d3d){const _0xaee038=_0x2a6da0;var _0x25c2e3=_0x515d3d[0x0],_0x29fe30=_0x515d3d[0x1];typeof _0x29fe30==_0xaee038(0x30a)&&(_0x504411[_0x25c2e3]=_0x29fe30[_0xaee038(0x4b8)](/url\(#(.*)\)/,_0xaee038(0x4af)[_0xaee038(0x46e)](_0x493958[_0xaee038(0x184)],')')));})),_0x504411;}function ti(_0xa6d407,_0x4f87eb){const _0x27d4e9=_0x14623f;var _0x3fdb05,_0x2c5932=_0x4f87eb['defIds'];return!_0x2c5932||_0x2c5932[_0x27d4e9(0x338)]===0x0?_0xa6d407:_0xa6d407[_0x27d4e9(0x218)]==='defs'&&(!((_0x3fdb05=_0xa6d407['children'])===null||_0x3fdb05===void 0x0)&&_0x3fdb05['length'])?M(M({},_0xa6d407),{'children':_0xa6d407['children']['map'](function(_0x545a00){const _0x3986db=_0x27d4e9;return typeof _0x545a00[_0x3986db(0x365)]['id']=='string'&&_0x2c5932&&_0x2c5932['indexOf'](_0x545a00['attrs']['id'])>-0x1?M(M({},_0x545a00),{'attrs':M(M({},_0x545a00['attrs']),{'id':_0x545a00[_0x3986db(0x365)]['id']+_0x4f87eb['idSuffix']})}):_0x545a00;})}):_0xa6d407;}function si(){const _0x19948e=_0x14623f;return Math[_0x19948e(0x39b)]()['toString'](0x24)[_0x19948e(0x163)](0x2,0x8);}Ge['displayName']=_0x14623f(0x18a);var ii={'tag':_0x14623f(0x2bd),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x14623f(0x202),'height':_0x14623f(0x202)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x14623f(0x311),'strokeLinecap':'round','strokeLinejoin':_0x14623f(0x2bf),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x14623f(0x49f),'attrs':{'id':_0x14623f(0x3a1)},'children':[{'tag':_0x14623f(0x18e),'attrs':{'fill':_0x14623f(0x4bc),'d':_0x14623f(0x4f5)}}]}]}],'defIds':[_0x14623f(0x3a1)]},Ot=L[_0x14623f(0x3cc)](function(_0x4ab9ae,_0xcae41b){const _0x53c492=_0x14623f;return L['createElement'](Ge,Object['assign']({},_0x4ab9ae,{'id':_0x53c492(0x3a3),'ref':_0xcae41b,'icon':ii}));});Ot[_0x14623f(0x1f0)]='OffLineSingle';var ni={'tag':_0x14623f(0x2bd),'attrs':{'fill':_0x14623f(0x342),'viewBox':_0x14623f(0x4d5),'width':_0x14623f(0x202),'height':_0x14623f(0x202)},'children':[{'tag':'g','attrs':{'clipPath':_0x14623f(0x2dc)},'children':[{'tag':_0x14623f(0x18e),'attrs':{'stroke':_0x14623f(0x4b2),'d':_0x14623f(0x3ed),'strokeLinecap':_0x14623f(0x2bf),'strokeLinejoin':_0x14623f(0x2bf),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x14623f(0x18e),'attrs':{'fill':_0x14623f(0x4bc),'d':_0x14623f(0x4f5),'transform':_0x14623f(0x1f6)}}]}]}],'defIds':[_0x14623f(0x22a)]},Dt=L[_0x14623f(0x3cc)](function(_0x4646d1,_0x1888dd){const _0x1ea1bf=_0x14623f;return L[_0x1ea1bf(0x381)](Ge,Object[_0x1ea1bf(0x247)]({},_0x4646d1,{'id':'on-line-single','ref':_0x1888dd,'icon':ni}));});Dt[_0x14623f(0x1f0)]=_0x14623f(0x29f);const ri=_0x14623f(0x225),oi='univer-online-status-title',ai=_0x14623f(0x3c3),ci=_0x14623f(0x4da),li=_0x14623f(0x467),ie={'onlineStatusIcon':ri,'onlineStatusTitle':oi,'onlineStatus':ai,'online':ci,'offline':li};function hi(_0x1e5db0){const _0x33ee2d=_0x14623f;switch(_0x1e5db0){case U['OFFLINE']:return _0x33ee2d(0x267);case U[_0x33ee2d(0x4a8)]:return _0x33ee2d(0x45a);case U['FETCH_MISS']:return _0x33ee2d(0x2c1);case U[_0x33ee2d(0x1a0)]:return _0x33ee2d(0x153);case U['PENDING']:case U[_0x33ee2d(0x1bb)]:case U['AWAITING_WITH_PENDING']:return _0x33ee2d(0x179);case U[_0x33ee2d(0x392)]:return _0x33ee2d(0x4c7);}}function Ut(_0x4bc745){const _0xcca978=_0x14623f,{status$:_0x2c571f}=_0x4bc745,_0x3ad531=N[_0xcca978(0x4ac)](_0x2c571f,U[_0xcca978(0x1a0)]),_0x1b8dea=ct[_0xcca978(0x171)](a[_0xcca978(0x201)]),_0x35c836=_0x3ad531!==U[_0xcca978(0x20c)],_0x550fd1=_0x1b8dea['t'](hi(_0x3ad531)),_0x14a463=xt(ie[_0xcca978(0x3b2)],{[ie[_0xcca978(0x232)]]:_0x35c836,[ie[_0xcca978(0x1e5)]]:!_0x35c836}),_0x18b85e=_0x35c836?L[_0xcca978(0x381)](Dt,null):L[_0xcca978(0x381)](Ot,null);return L['createElement']('div',{'className':_0x14a463},L['createElement']('div',{'className':ie[_0xcca978(0x227)]},_0x18b85e),L[_0xcca978(0x381)](_0xcca978(0x2ff),{'className':ie[_0xcca978(0x3b3)]},_0x550fd1));}var _i=Object[_0x14623f(0x4e3)],ui=Object[_0x14623f(0x4a0)],di=(_0x39f543,_0x364d14,_0x205327,_0x2c8625)=>{const _0x223181=_0x14623f;for(var _0x2b19ed=_0x2c8625>0x1?void 0x0:_0x2c8625?ui(_0x364d14,_0x205327):_0x364d14,_0x40d3b0=_0x39f543[_0x223181(0x338)]-0x1,_0x252f5b;_0x40d3b0>=0x0;_0x40d3b0--)(_0x252f5b=_0x39f543[_0x40d3b0])&&(_0x2b19ed=(_0x2c8625?_0x252f5b(_0x364d14,_0x205327,_0x2b19ed):_0x252f5b(_0x2b19ed))||_0x2b19ed);return _0x2c8625&&_0x2b19ed&&_i(_0x364d14,_0x205327,_0x2b19ed),_0x2b19ed;},he=(_0x105a4b,_0x5a57a0)=>(_0x40b9ed,_0x3a237e)=>_0x5a57a0(_0x40b9ed,_0x3a237e,_0x105a4b);exports[_0x14623f(0x38b)]=class extends a['Disposable']{constructor(_0x305904,_0x42ea99,_0x27afad,_0x1be849){const _0x5397ae=_0x14623f;super(),d(this,'_status$',new g[(_0x5397ae(0x46b))](U[_0x5397ae(0x1a0)])),(this[_0x5397ae(0x429)]=_0x305904,this[_0x5397ae(0x29b)]=_0x42ea99,this[_0x5397ae(0x31a)]=_0x27afad,this[_0x5397ae(0x339)]=_0x1be849,this['_initStatusComponent'](),this[_0x5397ae(0x3db)]());}[_0x14623f(0x1c0)](){const _0x1940a3=_0x14623f;this[_0x1940a3(0x39f)](this[_0x1940a3(0x29b)]['registerComponent'](N[_0x1940a3(0x302)][_0x1940a3(0x3d1)],()=>ct[_0x1940a3(0x2d9)](Si({'status$':this['_status$'][_0x1940a3(0x180)]()}),this[_0x1940a3(0x31a)])));}[_0x14623f(0x3db)](){const _0x473ebb=_0x14623f;this[_0x473ebb(0x39f)](a[_0x473ebb(0x290)](this[_0x473ebb(0x429)][_0x473ebb(0x33c)][_0x473ebb(0x160)](g[_0x473ebb(0x2b6)](()=>{const _0x1ce47a=_0x473ebb,_0x2c54db=this[_0x1ce47a(0x429)][_0x1ce47a(0x47c)]();return _0x2c54db?this[_0x1ce47a(0x339)][_0x1ce47a(0x344)](_0x2c54db[_0x1ce47a(0x30f)]()):g['of'](null);}),g[_0x473ebb(0x2b6)](_0x460f92=>_0x460f92?_0x460f92[_0x473ebb(0x486)]:g['of'](U[_0x473ebb(0x1a0)])))[_0x473ebb(0x3e0)](_0x7c5f95=>{const _0x158c67=_0x473ebb;this[_0x158c67(0x152)]['next'](_0x7c5f95);})));}},exports['DesktopCollaborationStatusDisplayController']=di([a['OnLifecycle'](a[_0x14623f(0x4e8)][_0x14623f(0x253)],exports[_0x14623f(0x38b)]),he(0x0,a[_0x14623f(0x18f)]),he(0x1,N[_0x14623f(0x334)]),he(0x2,h['Inject'](h[_0x14623f(0x241)])),he(0x3,h[_0x14623f(0x362)](exports['CollaborationController']))],exports[_0x14623f(0x38b)]);function Si(_0x39196c){const {status$:_0x5b330b}=_0x39196c;return function(){const _0x15102e=_0x5cb3;return L[_0x15102e(0x381)](Ut,{'status$':_0x5b330b});};}const Ye=h[_0x14623f(0x1af)](_0x14623f(0x4ec));var vi=Object[_0x14623f(0x4e3)],gi=Object['getOwnPropertyDescriptor'],fi=(_0x40a665,_0x3c0426,_0x537c43,_0x544ce7)=>{const _0x505633=_0x14623f;for(var _0x42c417=_0x544ce7>0x1?void 0x0:_0x544ce7?gi(_0x3c0426,_0x537c43):_0x3c0426,_0x4334d6=_0x40a665[_0x505633(0x338)]-0x1,_0x31de3a;_0x4334d6>=0x0;_0x4334d6--)(_0x31de3a=_0x40a665[_0x4334d6])&&(_0x42c417=(_0x544ce7?_0x31de3a(_0x3c0426,_0x537c43,_0x42c417):_0x31de3a(_0x42c417))||_0x42c417);return _0x544ce7&&_0x42c417&&vi(_0x3c0426,_0x537c43,_0x42c417),_0x42c417;},z=(_0x36b319,_0x3df7f0)=>(_0x38e5b5,_0x5265a9)=>_0x3df7f0(_0x38e5b5,_0x5265a9,_0x36b319);exports[_0x14623f(0x42d)]=class extends a['RxDisposable']{constructor(_0x3b5458,_0x546199,_0x3a6a5b,_0x5caf46,_0x4441cc,_0x9e786c){const _0x2b4a10=_0x14623f;super(),this[_0x2b4a10(0x439)]=_0x3b5458,this[_0x2b4a10(0x391)]=_0x546199,this[_0x2b4a10(0x32e)]=_0x3a6a5b,this[_0x2b4a10(0x4e0)]=_0x5caf46,this[_0x2b4a10(0x1fd)]=_0x4441cc,_0x9e786c?_0x9e786c==null||_0x9e786c[_0x2b4a10(0x44f)]()['then'](()=>this['_init']()):(this[_0x2b4a10(0x391)]['debug']('[DataLoaderController]',_0x2b4a10(0x29c)),this['_init']());}async[_0x14623f(0x21f)](){const _0x58a791=_0x14623f,_0x53944a=this[_0x58a791(0x439)][_0x58a791(0x4a5)]('unit'),_0x2bda6e=this[_0x58a791(0x439)][_0x58a791(0x4a5)]('type');if(!_0x53944a||!_0x2bda6e){this[_0x58a791(0x391)]['debug'](_0x58a791(0x40c),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2bda6e)){case j['UNIVER_SHEET']:{const _0x17ad4c=await this[_0x58a791(0x436)](_0x53944a);this[_0x58a791(0x440)](_0x17ad4c);break;}case j[_0x58a791(0x378)]:{await this[_0x58a791(0x15e)](_0x53944a);break;}default:{this['_logService'][_0x58a791(0x2fb)](_0x58a791(0x40c),_0x58a791(0x17d));break;}}}async[_0x14623f(0x440)](_0x549a75){const _0x4dd40a=_0x14623f;await this[_0x4dd40a(0x183)](_0x549a75),_0x549a75[_0x4dd40a(0x374)][_0x4dd40a(0x160)](g[_0x4dd40a(0x476)](this[_0x4dd40a(0x1c2)]))['subscribe'](_0x2b7773=>{const _0x1385d1=_0x4dd40a;_0x2b7773&&this[_0x1385d1(0x491)](_0x2b7773);}),this[_0x4dd40a(0x439)][_0x4dd40a(0x26b)][_0x4dd40a(0x160)](g[_0x4dd40a(0x476)](this[_0x4dd40a(0x1c2)]))[_0x4dd40a(0x3e0)](()=>this[_0x4dd40a(0x183)](_0x549a75));}['_updateURLWithCurrentState'](_0x40e184,_0x1de2c7=!0x1){const _0x192822=_0x14623f,_0x1adcae=this[_0x192822(0x439)][_0x192822(0x4a5)]('subunit');_0x40e184['getSheetId']()!==_0x1adcae&&this['_urlService']['setParam'](_0x192822(0x34a),_0x40e184[_0x192822(0x42b)](),_0x1de2c7);}async[_0x14623f(0x183)](_0x4b07bc){const _0x25498e=_0x14623f;var _0x15f490;const _0x53896b=this[_0x25498e(0x439)][_0x25498e(0x4a5)](_0x25498e(0x34a));if(!_0x53896b||!_0x4b07bc[_0x25498e(0x175)](_0x53896b)){const _0x3962dc=_0x4b07bc[_0x25498e(0x4b1)]()[0x0],_0x2c9021=_0x4b07bc[_0x25498e(0x175)](_0x3962dc);if(!_0x2c9021)return;this['_updateURLWithCurrentState'](_0x2c9021,!0x0),await this['_commandService'][_0x25498e(0x303)](E['SetWorksheetActivateCommand']['id'],{'unitId':_0x4b07bc[_0x25498e(0x30f)](),'subUnitId':_0x3962dc});return;}((_0x15f490=_0x4b07bc[_0x25498e(0x404)]())==null?void 0x0:_0x15f490['getSheetId']())!==_0x53896b&&await this['_commandService'][_0x25498e(0x303)](E[_0x25498e(0x1ec)]['id'],{'unitId':_0x4b07bc['getUnitId'](),'subUnitId':_0x53896b});}async[_0x14623f(0x436)](_0x305f23){const _0x39ecf0=_0x14623f;let _0xd0988f=0x0;const _0x35a6e8=await this['_localCacheService'][_0x39ecf0(0x43f)](_0x305f23);return _0x35a6e8&&(_0x35a6e8['awaitingChangeset']||_0x35a6e8[_0x39ecf0(0x17f)]['length']!==0x0)&&(_0xd0988f=_0x35a6e8[_0x39ecf0(0x4dc)]),_0xd0988f===0x0&&this[_0x39ecf0(0x391)]['debug'](_0x39ecf0(0x40c),_0x39ecf0(0x172)),this[_0x39ecf0(0x1fd)][_0x39ecf0(0x42e)](_0x305f23,_0xd0988f);}async[_0x14623f(0x15e)](_0x582d47){const _0x4ab23c=_0x14623f;let _0x29ce5e=0x0;const _0x1c43d3=await this[_0x4ab23c(0x4e0)]['loadOfflineData'](_0x582d47);return _0x1c43d3&&(_0x1c43d3[_0x4ab23c(0x473)]||_0x1c43d3['mutations']['length']!==0x0)&&(_0x29ce5e=_0x1c43d3[_0x4ab23c(0x4dc)]),_0x29ce5e===0x0&&this[_0x4ab23c(0x391)][_0x4ab23c(0x4bd)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4ab23c(0x1fd)][_0x4ab23c(0x2c4)](_0x582d47,_0x29ce5e);}},exports[_0x14623f(0x42d)]=fi([a[_0x14623f(0x280)](a['LifecycleStages'][_0x14623f(0x253)],exports[_0x14623f(0x42d)]),z(0x0,Ye),z(0x1,a[_0x14623f(0x47a)]),z(0x2,a[_0x14623f(0x2be)]),z(0x3,h[_0x14623f(0x362)](exports['LocalCacheService'])),z(0x4,h['Inject'](u[_0x14623f(0x1db)])),z(0x5,h[_0x14623f(0x1b0)](kt['IRemoteInstanceService']))],exports['DataLoaderController']);var mi=Object[_0x14623f(0x4e3)],Ii=Object[_0x14623f(0x4a0)],pi=(_0x25983e,_0x484195,_0x4fbae3,_0x31d658)=>{const _0x231857=_0x14623f;for(var _0x262de4=_0x31d658>0x1?void 0x0:_0x31d658?Ii(_0x484195,_0x4fbae3):_0x484195,_0x3dced4=_0x25983e[_0x231857(0x338)]-0x1,_0x5510b4;_0x3dced4>=0x0;_0x3dced4--)(_0x5510b4=_0x25983e[_0x3dced4])&&(_0x262de4=(_0x31d658?_0x5510b4(_0x484195,_0x4fbae3,_0x262de4):_0x5510b4(_0x262de4))||_0x262de4);return _0x31d658&&_0x262de4&&mi(_0x484195,_0x4fbae3,_0x262de4),_0x262de4;},it=(_0x3ffd46,_0xea366d)=>(_0x2f48be,_0x48219e)=>_0xea366d(_0x2f48be,_0x48219e,_0x3ffd46);const Ei='DEFAULT_FILE_NAME',Ci=_0x14623f(0x4b4);let de=class extends a[_0x14623f(0x4cf)]{constructor(_0x23f5a2,_0xc0e676){const _0xeeb0ce=_0x14623f;super(),this[_0xeeb0ce(0x429)]=_0x23f5a2,this[_0xeeb0ce(0x4d0)]=_0xc0e676,this[_0xeeb0ce(0x21f)]();}[_0x14623f(0x21f)](){const _0x5c1c8a=_0x14623f;this[_0x5c1c8a(0x39f)](a['toDisposable'](this[_0x5c1c8a(0x429)][_0x5c1c8a(0x33c)]['subscribe'](()=>{const _0x2d383f=_0x5c1c8a;var _0x1adc0c;const _0x5ef245=this[_0x2d383f(0x429)][_0x2d383f(0x47c)]();let _0x14ed50=(_0x1adc0c=this[_0x2d383f(0x4d0)][_0x2d383f(0x178)](Ei))!=null?_0x1adc0c:Ci;_0x5ef245 instanceof a[_0x2d383f(0x2f3)]&&(_0x14ed50=_0x5ef245['name']),document[_0x2d383f(0x209)]=_0x14ed50;})));}};de=pi([a[_0x14623f(0x280)](a[_0x14623f(0x4e8)][_0x14623f(0x169)],de),it(0x0,a[_0x14623f(0x18f)]),it(0x1,a[_0x14623f(0x3ae)])],de);var bi=Object['defineProperty'],Ti=Object[_0x14623f(0x4a0)],Ri=(_0x36ca54,_0x38a8cd,_0x162b21,_0x15184d)=>{for(var _0x6db0b=_0x15184d>0x1?void 0x0:_0x15184d?Ti(_0x38a8cd,_0x162b21):_0x38a8cd,_0x5d720b=_0x36ca54['length']-0x1,_0x377081;_0x5d720b>=0x0;_0x5d720b--)(_0x377081=_0x36ca54[_0x5d720b])&&(_0x6db0b=(_0x15184d?_0x377081(_0x38a8cd,_0x162b21,_0x6db0b):_0x377081(_0x6db0b))||_0x6db0b);return _0x15184d&&_0x6db0b&&bi(_0x38a8cd,_0x162b21,_0x6db0b),_0x6db0b;},nt=(_0x382037,_0x1df12f)=>(_0x179c8f,_0x4622fe)=>_0x1df12f(_0x179c8f,_0x4622fe,_0x382037);let Ae=class{constructor(_0x41ce98,_0xcc8f99){const _0xe935ed=_0x14623f;this[_0xe935ed(0x4d0)]=_0x41ce98,this[_0xe935ed(0x1c7)]=_0xcc8f99;}async[_0x14623f(0x211)](_0x4bc0cc,_0x47ce60){const _0x1ae341=_0x14623f;var _0x3e7546;const {unitID:_0x12a6e6,type:_0xa1f22d,revision:_0x39d917=0x0}=_0x47ce60,_0x46aa2c=this['_getSnapshotAPIPrefix']()+'/'+_0xa1f22d+_0x1ae341(0x434)+_0x12a6e6+_0x1ae341(0x477)+(_0x39d917===0x1?0x0:_0x39d917),_0x1f784c=(await this[_0x1ae341(0x1c7)][_0x1ae341(0x3f7)](_0x46aa2c))['body'],_0x6ee499=(_0x3e7546=_0x1f784c[_0x1ae341(0x331)])==null?void 0x0:_0x3e7546[_0x1ae341(0x46a)];if(_0x6ee499){const _0x4487c5=_0x6ee499==null?void 0x0:_0x6ee499[_0x1ae341(0x3be)],_0x43853a=a['textEncoder'][_0x1ae341(0x333)](a['b64DecodeUnicode'](_0x4487c5));_0x6ee499[_0x1ae341(0x3be)]=_0x43853a,Object[_0x1ae341(0x269)](_0x6ee499[_0x1ae341(0x2b3)])[_0x1ae341(0x466)](([,_0x36750b])=>{const _0x5d0de5=_0x1ae341,_0x5acd4e=_0x36750b[_0x5d0de5(0x3be)],_0x5bcaea=a[_0x5d0de5(0x3bb)][_0x5d0de5(0x333)](a['b64DecodeUnicode'](_0x5acd4e));_0x36750b[_0x5d0de5(0x3be)]=_0x5bcaea;});}return _0x1f784c;}async[_0x14623f(0x461)](_0x3d6b5e,_0x13c262){const _0x37605e=_0x14623f,{unitID:_0x3cc33e,type:_0x5b6c4d,blockID:_0x331876}=_0x13c262,_0x40d5d6=this[_0x37605e(0x481)]()+'/'+_0x5b6c4d+_0x37605e(0x434)+_0x3cc33e+_0x37605e(0x295)+_0x331876;return(await this[_0x37605e(0x1c7)]['get'](_0x40d5d6))[_0x37605e(0x448)];}async['fetchMissingChangesets'](_0x1f370d,_0xb8629){const _0x54987b=_0x14623f,{unitID:_0x3eee25,type:_0x161fad,from:_0x4fc297,to:_0x266d60}=_0xb8629,_0xef11a3=this[_0x54987b(0x481)]()+'/'+_0x161fad+_0x54987b(0x434)+_0x3eee25+'/fetchmissing?from='+_0x4fc297+_0x54987b(0x1f9)+_0x266d60;return(await this[_0x54987b(0x1c7)][_0x54987b(0x3f7)](_0xef11a3))[_0x54987b(0x448)];}['_getSnapshotAPIPrefix'](){const _0x287834=_0x14623f;var _0x26c9a7;return(_0x26c9a7=this['_configService'][_0x287834(0x178)](ht))!=null?_0x26c9a7:this[_0x287834(0x481)]();}['_getAPIPrefix'](){const _0x4e1410=_0x14623f;var _0x44ac16;return(_0x44ac16=this[_0x4e1410(0x4d0)][_0x4e1410(0x178)](lt))!=null?_0x44ac16:Bt;}async[_0x14623f(0x3c0)](_0x259389,_0x4b7cbd){const _0x4172c0=_0x14623f,_0x41de16=_0x4172c0(0x1d7)+_0x4b7cbd['type']+_0x4172c0(0x434)+_0x4b7cbd[_0x4172c0(0x435)]+'/resources';return(await this[_0x4172c0(0x1c7)][_0x4172c0(0x3f7)](_0x41de16,{'params':{'resourceId':JSON[_0x4172c0(0x1a6)](_0x4b7cbd[_0x4172c0(0x21a)])}}))[_0x4172c0(0x448)];}['saveSnapshot'](){const _0x1112d0=_0x14623f;throw new Error(_0x1112d0(0x375));}[_0x14623f(0x337)](){const _0x20cba3=_0x14623f;throw new Error(_0x20cba3(0x375));}[_0x14623f(0x296)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Ae=Ri([nt(0x0,a['IConfigService']),nt(0x1,h[_0x14623f(0x362)](P['HTTPService']))],Ae);var Oi=Object[_0x14623f(0x4e3)],Di=Object[_0x14623f(0x4a0)],Ui=(_0x3ea143,_0x51896a,_0x46b0f9,_0x4fc22f)=>{const _0x215484=_0x14623f;for(var _0x233e89=_0x4fc22f>0x1?void 0x0:_0x4fc22f?Di(_0x51896a,_0x46b0f9):_0x51896a,_0x373536=_0x3ea143[_0x215484(0x338)]-0x1,_0x181f27;_0x373536>=0x0;_0x373536--)(_0x181f27=_0x3ea143[_0x373536])&&(_0x233e89=(_0x4fc22f?_0x181f27(_0x51896a,_0x46b0f9,_0x233e89):_0x181f27(_0x233e89))||_0x233e89);return _0x4fc22f&&_0x233e89&&Oi(_0x51896a,_0x46b0f9,_0x233e89),_0x233e89;},ne=(_0x40cae5,_0x116676)=>(_0x562fd2,_0xbb09b)=>_0x116676(_0x562fd2,_0xbb09b,_0x40cae5);let je=class extends a[_0x14623f(0x200)]{constructor(_0x452cc2,_0x3d76ff,_0x5d5172,_0x4857be,_0x1b74c5){const _0x50c93f=_0x14623f;super(_0x452cc2,_0x3d76ff,_0x5d5172),this[_0x50c93f(0x204)]=_0x4857be,this[_0x50c93f(0x391)]=_0x1b74c5;}[_0x14623f(0x403)](_0x26a0d2,_0x3211ee){const _0x5ecb7d=_0x14623f,_0x418ed1=this['_getUndoStack'](_0x26a0d2);if(_0x418ed1)try{const _0x4343e9=this[_0x5ecb7d(0x27c)](_0x418ed1,_0x3211ee);this['_substituteUndoStack'](_0x26a0d2,_0x4343e9);}catch(_0x15f819){this[_0x5ecb7d(0x391)][_0x5ecb7d(0x2fb)](_0x5ecb7d(0x424),_0x15f819),this['_clearUndo'](_0x26a0d2);}const _0x369ca7=this[_0x5ecb7d(0x2bc)](_0x26a0d2);if(_0x369ca7)try{const _0x581087=this[_0x5ecb7d(0x27c)](_0x369ca7,_0x3211ee);this[_0x5ecb7d(0x3b6)](_0x26a0d2,_0x581087);}catch(_0x2e1075){this['_logService']['error'](_0x2e1075),this[_0x5ecb7d(0x283)](_0x26a0d2);}}[_0x14623f(0x43d)](_0xab60d6){const _0x21437c=_0x14623f,_0x5037df=this['_getUndoStack'](_0xab60d6);_0x5037df&&(_0x5037df[_0x21437c(0x338)]=0x0,this['_updateStatus']());}[_0x14623f(0x283)](_0x9d450){const _0x4b6254=_0x14623f,_0x5e5364=this['_getRedoStack'](_0x9d450);_0x5e5364&&(_0x5e5364[_0x4b6254(0x338)]=0x0,this[_0x4b6254(0x3cd)]());}[_0x14623f(0x432)](_0x2a6cf9,_0x17d706){const _0xd181e3=_0x14623f;this[_0xd181e3(0x3a7)][_0xd181e3(0x3da)](_0x2a6cf9,_0x17d706),this['_updateStatus']();}[_0x14623f(0x3b6)](_0x5a247d,_0x46aef1){const _0x4c3d6b=_0x14623f;this[_0x4c3d6b(0x219)][_0x4c3d6b(0x3da)](_0x5a247d,_0x46aef1),this[_0x4c3d6b(0x3cd)]();}[_0x14623f(0x27c)](_0x2444f0,_0x14baba){const _0x12e8e5=_0x14623f,_0x4601ed=[];let _0x4ec4c4=_0x14baba,_0x300674=_0x14baba;for(let _0x2b595b=_0x2444f0['length']-0x1;_0x2b595b>=0x0;_0x2b595b--){const {unitID:_0xe8ee61,undoMutations:_0x1f14c9,redoMutations:_0x12ead8}=_0x2444f0[_0x2b595b],_0xb95867=this[_0x12e8e5(0x204)][_0x12e8e5(0x2f0)](_0x4ec4c4,_0x1f14c9),_0x1771f7=this['_transformService'][_0x12e8e5(0x2f0)](_0x300674,_0x12ead8);if(u[_0x12e8e5(0x3f9)](_0xb95867)||u[_0x12e8e5(0x3f9)](_0x1771f7)){this['_logService'][_0x12e8e5(0x2fb)](_0x12e8e5(0x424),'transformStack\x20failed!',_0xb95867,_0x1771f7);break;}_0x4ec4c4=_0xb95867['c1Prime'],_0x300674=_0x1771f7[_0x12e8e5(0x1fe)],_0x4601ed[_0x12e8e5(0x2fe)]({'unitID':_0xe8ee61,'undoMutations':_0xb95867[_0x12e8e5(0x388)],'redoMutations':_0x1771f7[_0x12e8e5(0x388)]});}return _0x4601ed[_0x12e8e5(0x30d)]();}};je=Ui([ne(0x0,a[_0x14623f(0x18f)]),ne(0x1,a['ICommandService']),ne(0x2,a[_0x14623f(0x405)]),ne(0x3,u['ITransformService']),ne(0x4,a[_0x14623f(0x47a)])],je);class wt extends a[_0x14623f(0x237)]{constructor(){const _0x6ac8e9=_0x14623f;super(),d(this,_0x6ac8e9(0x26b)),this[_0x6ac8e9(0x26b)]=g[_0x6ac8e9(0x3f6)](window,'popstate')[_0x6ac8e9(0x160)](g['takeUntil'](this[_0x6ac8e9(0x1c2)]),g[_0x6ac8e9(0x3c5)](0x1),g[_0x6ac8e9(0x3b7)](void 0x0));}[_0x14623f(0x278)](_0x4d8bf1,_0x4a19a9,_0x1f5833=!0x1){const _0x343a2d=_0x14623f,_0x2ed4ae=new URL(window[_0x343a2d(0x207)][_0x343a2d(0x368)]);_0x2ed4ae[_0x343a2d(0x35a)][_0x343a2d(0x3da)](_0x4d8bf1,_0x4a19a9),_0x1f5833?window[_0x343a2d(0x387)]['replaceState']('','',_0x2ed4ae[_0x343a2d(0x2f2)]()):window[_0x343a2d(0x387)][_0x343a2d(0x240)]('','',_0x2ed4ae[_0x343a2d(0x2f2)]());}['removeParam'](_0x367501,_0x1dbad0=!0x1){const _0x203f8c=_0x14623f,_0x3d0e42=new URL(window['location'][_0x203f8c(0x368)]);_0x3d0e42[_0x203f8c(0x35a)][_0x203f8c(0x38c)](_0x367501),_0x1dbad0?window[_0x203f8c(0x387)]['replaceState']('','',_0x3d0e42[_0x203f8c(0x2f2)]()):window[_0x203f8c(0x387)]['pushState']('','',_0x3d0e42[_0x203f8c(0x2f2)]());}[_0x14623f(0x4a5)](_0x3864b0){const _0x5691fa=_0x14623f;var _0x101471;return(_0x101471=new URL(window[_0x5691fa(0x207)][_0x5691fa(0x368)])[_0x5691fa(0x35a)][_0x5691fa(0x3f7)](_0x3864b0))!=null?_0x101471:void 0x0;}}const Ue=_0x14623f(0x35f),wi=_0x14623f(0x21d),_e=0x6,Li=1.5,we=0x4,Pi=1.5,Mi=_0x14623f(0x347);class yi{constructor(_0x549c34,_0x33712e,_0x2dc803,_0x2c0a76){const _0x4a9b0e=_0x14623f;d(this,_0x4a9b0e(0x2a9),[]),d(this,'_anchor',null),d(this,_0x4a9b0e(0x2cd),null),d(this,_0x4a9b0e(0x336),null),d(this,_0x4a9b0e(0x28a),null),d(this,'_eventUnsubscribe',null),(this[_0x4a9b0e(0x348)]=_0x549c34,this['_scene']=_0x33712e,this[_0x4a9b0e(0x2f6)]=_0x2dc803,this[_0x4a9b0e(0x22d)]=_0x2c0a76,this[_0x4a9b0e(0x360)]());}set['_hover'](_0x275b1c){const _0x16d7f8=_0x14623f;_0x275b1c?(this['_anchorDot']&&this[_0x16d7f8(0x336)][_0x16d7f8(0x425)](),this[_0x16d7f8(0x2cd)]&&this[_0x16d7f8(0x2cd)][_0x16d7f8(0x3cf)]()):(this[_0x16d7f8(0x336)]&&this['_anchorDot'][_0x16d7f8(0x3cf)](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x14623f(0x188)](){const _0x454be2=_0x14623f;for(const _0x341d85 of this[_0x454be2(0x2a9)])_0x341d85['dispose']();this[_0x454be2(0x2cd)]&&this[_0x454be2(0x2cd)][_0x454be2(0x188)](),this[_0x454be2(0x336)]&&this[_0x454be2(0x336)][_0x454be2(0x188)](),this[_0x454be2(0x478)]&&this['_anchor']['dispose'](),this[_0x454be2(0x181)]&&this[_0x454be2(0x181)]();}['_render'](){const _0x2e4248=_0x14623f,{_docSkeleton:_0xb1e6a,_document:_0x3f07c6}=this,{color:_0x402daa,name:_0x156d28,ranges:_0x140fee}=this[_0x2e4248(0x348)],_0x421ba3=_0x3f07c6['getOffsetConfig'](),{docsLeft:_0x396496,docsTop:_0x2e88d6}=_0x421ba3,_0x31b4aa=new R[(_0x2e4248(0x40a))](_0x421ba3,_0xb1e6a);for(const {startOffset:_0x1aeb72,endOffset:_0x1f4729,collapsed:_0x73663f,isActive:_0x245f7a}of _0x140fee){const _0x330db4=_0xb1e6a[_0x2e4248(0x229)](_0x1aeb72),_0x4ecf77=_0xb1e6a['findNodePositionByCharIndex'](_0x1f4729);if(_0x245f7a){const {contentBoxPointGroup:_0x1d6f40}=_0x31b4aa['getRangePointData'](_0x4ecf77,_0x4ecf77);if(_0x1d6f40[_0x2e4248(0x338)]===0x0)continue;this[_0x2e4248(0x1fa)](_0x402daa,_0x1d6f40,_0x396496,_0x2e88d6,_0x156d28),this[_0x2e4248(0x181)]=this[_0x2e4248(0x3e6)]();}if(!_0x73663f){const {contentBoxPointGroup:_0xbb0a6b}=_0x31b4aa[_0x2e4248(0x32b)](_0x330db4,_0x4ecf77);if(_0xbb0a6b['length']===0x0)continue;this[_0x2e4248(0x49c)](_0x402daa,_0xbb0a6b,_0x396496,_0x2e88d6);}}}['_drawAnchor'](_0x1e56ca,_0x1a453f,_0x1b8563,_0x24396f,_0x1eea6b){const _0x5d8aa2=_0x14623f,_0x39a487=this[_0x5d8aa2(0x2f1)](_0x1a453f),{left:_0xab6b69,top:_0x49c6a2,height:_0x55f5f2}=_0x39a487,_0x2eb96d=this[_0x5d8aa2(0x2e0)](),_0x35e51c=Pi/_0x2eb96d,_0x40fb18=new R[(_0x5d8aa2(0x3a2))](Ue+a[_0x5d8aa2(0x4e4)][_0x5d8aa2(0x2fc)](_e),{'left':_0xab6b69+_0x1b8563-_0x35e51c,'top':_0x49c6a2+_0x24396f,'height':_0x55f5f2,'width':Li,'fill':_0x1e56ca||R[_0x5d8aa2(0x3de)](a[_0x5d8aa2(0x359)][_0x5d8aa2(0x396)],0x0),'strokeWidth':_0x35e51c,'stroke':Mi,'evented':!0x0});this[_0x5d8aa2(0x478)]=_0x40fb18,this['_scene'][_0x5d8aa2(0x4f0)](_0x40fb18,R[_0x5d8aa2(0x4db)]);const _0x1ec7df=new R[(_0x5d8aa2(0x3a2))](Ue+a[_0x5d8aa2(0x4e4)][_0x5d8aa2(0x2fc)](_e),{'left':_0xab6b69+_0x1b8563-_0x35e51c,'top':_0x49c6a2+_0x24396f-we/0x2,'height':we,'width':we,'fill':_0x1e56ca||R[_0x5d8aa2(0x3de)](a[_0x5d8aa2(0x359)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x1e56ca||R[_0x5d8aa2(0x3de)](a['COLORS'][_0x5d8aa2(0x396)],0x0),'evented':!0x1});this[_0x5d8aa2(0x336)]=_0x1ec7df,this[_0x5d8aa2(0x3dd)][_0x5d8aa2(0x4f0)](_0x1ec7df,R['TEXT_RANGE_LAYER_INDEX']);const _0xc7e899=new Ce(Ue+a['Tools'][_0x5d8aa2(0x2fc)](_e),{'left':_0xab6b69+_0x1b8563-_0x35e51c,'top':_0x49c6a2+_0x24396f-ce,'text':_0x1eea6b,'color':_0x1e56ca});this[_0x5d8aa2(0x2cd)]=_0xc7e899,this['_scene'][_0x5d8aa2(0x4f0)](_0xc7e899,R['TEXT_RANGE_LAYER_INDEX']),this[_0x5d8aa2(0x194)]=!0x1;}['_handleHover'](){const _0xf284d0=_0x14623f,_0x122c43=this[_0xf284d0(0x478)][_0xf284d0(0x31f)][_0xf284d0(0x4be)](()=>{const _0x220a46=_0xf284d0;this[_0x220a46(0x194)]=!0x0;}),_0x200497=this['_anchor']['onPointerLeave$'][_0xf284d0(0x4be)](()=>{const _0x4f621e=_0xf284d0;this[_0x4f621e(0x28a)]&&clearTimeout(this[_0x4f621e(0x28a)]),this[_0x4f621e(0x28a)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3891e5=_0xf284d0;_0x122c43['unsubscribe'](),_0x200497[_0x3891e5(0x275)]();};}['_drawRange'](_0x1c77b7,_0x1fb035,_0x5a2334,_0x3f14be){const _0x188947=_0x14623f,_0x261553=new a[(_0x188947(0x150))](_0x1c77b7)[_0x188947(0x1ab)](0.2)['toRgbString'](),_0x512373=new R[(_0x188947(0x38e))](wi+a['Tools'][_0x188947(0x2fc)](_e),{'pointsGroup':_0x1fb035,'fill':_0x261553||R[_0x188947(0x3de)](a[_0x188947(0x359)]['black'],0.2),'left':_0x5a2334,'top':_0x3f14be,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x188947(0x2a9)][_0x188947(0x2fe)](_0x512373),this[_0x188947(0x3dd)][_0x188947(0x4f0)](_0x512373,R['TEXT_RANGE_LAYER_INDEX']);}[_0x14623f(0x2f1)](_0x8fcf23){const _0x1d1b56=_0x8fcf23[0x0],_0x35d6e5=_0x1d1b56[0x0],_0x299126=_0x1d1b56[0x2],{x:_0x3c4f90,y:_0x23ba10}=_0x35d6e5,{x:_0x26a3bb,y:_0x48d46a}=_0x299126;return{'left':_0x3c4f90,'top':_0x23ba10,'width':_0x26a3bb-_0x3c4f90,'height':_0x48d46a-_0x23ba10};}[_0x14623f(0x2e0)](){const _0xdb38e0=_0x14623f,{scaleX:_0x2aa465,scaleY:_0x111e9c}=this[_0xdb38e0(0x3dd)][_0xdb38e0(0x3af)]();return Math['max'](_0x2aa465,_0x111e9c);}}var Ni=Object[_0x14623f(0x4e3)],Ai=Object[_0x14623f(0x4a0)],ji=(_0x2e9746,_0x12da41,_0x13d9c9,_0x2b3c0b)=>{const _0x53c279=_0x14623f;for(var _0x6972b=_0x2b3c0b>0x1?void 0x0:_0x2b3c0b?Ai(_0x12da41,_0x13d9c9):_0x12da41,_0x178579=_0x2e9746[_0x53c279(0x338)]-0x1,_0x133263;_0x178579>=0x0;_0x178579--)(_0x133263=_0x2e9746[_0x178579])&&(_0x6972b=(_0x2b3c0b?_0x133263(_0x12da41,_0x13d9c9,_0x6972b):_0x133263(_0x6972b))||_0x6972b);return _0x2b3c0b&&_0x6972b&&Ni(_0x12da41,_0x13d9c9,_0x6972b),_0x6972b;},re=(_0x1dd873,_0x49acb3)=>(_0x186542,_0x3447f8)=>_0x49acb3(_0x186542,_0x3447f8,_0x1dd873);let Se=class extends a['RxDisposable']{constructor(_0x4e87b1,_0x469723,_0x112321,_0x4c6d65,_0x3ff57c){const _0x3961e4=_0x14623f;super(),d(this,_0x3961e4(0x1e3),[]),(this['_collabCursorController']=_0x4e87b1,this[_0x3961e4(0x429)]=_0x469723,this[_0x3961e4(0x145)]=_0x112321,this[_0x3961e4(0x281)]=_0x4c6d65,this[_0x3961e4(0x43e)]=_0x3ff57c,this[_0x3961e4(0x21f)]());}[_0x14623f(0x21f)](){const _0xbf66d=_0x14623f;this[_0xbf66d(0x281)]['currentSkeleton$']['pipe'](T[_0xbf66d(0x476)](this[_0xbf66d(0x1c2)]),T[_0xbf66d(0x2b6)](_0x30fafd=>{const _0x2b9f73=_0xbf66d;if(_0x30fafd){const _0x9022a3=_0x30fafd['getViewModel']()['getDataModel']()[_0x2b9f73(0x30f)]();return g[_0x2b9f73(0x299)](this[_0x2b9f73(0x1f4)][_0x2b9f73(0x383)](_0x9022a3),this[_0x2b9f73(0x43e)][_0x2b9f73(0x346)])[_0x2b9f73(0x160)](T[_0x2b9f73(0x3a5)](([_0x38738b,_0x4f9bfa])=>({'skeleton':_0x30fafd,'cursors':[..._0x38738b[_0x2b9f73(0x413)]()][_0x2b9f73(0x226)](_0x47a388=>({..._0x47a388,'color':_0x4f9bfa[_0x47a388[_0x2b9f73(0x2e7)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x4d922a,cursors:_0xa90008})=>{const _0x364077=_0xbf66d;this[_0x364077(0x352)](),_0x4d922a&&this[_0x364077(0x144)](_0x4d922a,_0xa90008);});}['_updateCollabCursors'](_0x5ba1c1,_0x3d5852){const _0x21171b=_0x14623f,_0x1de289=this[_0x21171b(0x304)]();if(_0x1de289==null)return;const {scene:_0x29a6a8,document:_0x131d1c}=_0x1de289,_0x10d0ed=_0x3d5852[_0x21171b(0x3a5)](_0x2d9539=>new yi(_0x2d9539,_0x29a6a8,_0x5ba1c1,_0x131d1c));this[_0x21171b(0x1e3)]=_0x10d0ed;}[_0x14623f(0x352)](){const _0x5784cd=_0x14623f;this[_0x5784cd(0x1e3)]['forEach'](_0x168df6=>_0x168df6[_0x5784cd(0x188)]()),this['_cursors']=[];}[_0x14623f(0x304)](){const _0x41d760=_0x14623f;return y[_0x41d760(0x1ed)](this[_0x41d760(0x429)],this['_renderManagerService']);}};Se=ji([a[_0x14623f(0x280)](a['LifecycleStages']['Steady'],Se),re(0x0,h[_0x14623f(0x362)](J)),re(0x1,a[_0x14623f(0x18f)]),re(0x2,R[_0x14623f(0x390)]),re(0x3,h[_0x14623f(0x362)](y['DocSkeletonManagerService'])),re(0x4,h['Inject'](a[_0x14623f(0x27e)]))],Se);var $i=Object[_0x14623f(0x4e3)],Hi=Object[_0x14623f(0x4a0)],xi=(_0x3109e8,_0x19ad8e,_0x22147c,_0x27b79d)=>{const _0x3b8164=_0x14623f;for(var _0x16e2ab=_0x27b79d>0x1?void 0x0:_0x27b79d?Hi(_0x19ad8e,_0x22147c):_0x19ad8e,_0x11d0dd=_0x3109e8[_0x3b8164(0x338)]-0x1,_0x11cf18;_0x11d0dd>=0x0;_0x11d0dd--)(_0x11cf18=_0x3109e8[_0x11d0dd])&&(_0x16e2ab=(_0x27b79d?_0x11cf18(_0x19ad8e,_0x22147c,_0x16e2ab):_0x11cf18(_0x16e2ab))||_0x16e2ab);return _0x27b79d&&_0x16e2ab&&$i(_0x19ad8e,_0x22147c,_0x16e2ab),_0x16e2ab;},Le=(_0x2f293f,_0x31d3ba)=>(_0x2e5566,_0x1ed12c)=>_0x31d3ba(_0x2e5566,_0x1ed12c,_0x2f293f);function _0x119c(){const _0x5c558b=['UPDATE_CURSOR','awaitingChangeset','_getAPIPrefixPath','[UniverCollaborationClientPlugin]','takeUntil','/rev/','_anchor','use','ILogService','_docStateChangeManagerService','getFocusedUnit','currentSkeleton$','UNDEFINED','save\x20fail\x20reason\x20is\x20','IImageIoService','_getAPIPrefix','confirm','ITransformService','@univerjs/engine-formula','baseRev','status$','all','compose','_collaborationTimeoutTimer','updateOfflineData','SUBMIT_CHANGESET','interceptor','JOINING','...','_beforeCloseService','YUUMI_UNABLE_LOAD_URL','_updateURLWithCurrentState','_unitOnClients','runRefRangeMutations','SNAPSHOT_URL_KEY','conflict.content','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','?size=','_getSheetObject','_waitForHeartbeatResponse','colorChannel1','IMEInputManagerService','_drawRange','getImageSourceCache','AUTHZ_URL_KEY','clipPath','getOwnPropertyDescriptor','handleIRemoveRow','_online','IBeforeCloseService','appendMutation','getParam','10cuPSVM','failed\x20to\x20apply\x20missed\x20changesets!','CONFLICT','save','requireSession','57902GnbQYs','useObservable','FETCH_MISSING','propertyIsEnumerable','url(#$1','ImageUploadStatusType','getUnhiddenWorksheets','currentColor','CollaborationController','Univer','registerBeforeClose','error$','onTransformIME','replace','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_scheduleReconnection','liveShareNewHost','#fff','debug','subscribeEvent','_event$','registerRefRange','fetchThroughInterceptors','WebSocketService','send','_getSendChangesetTimeout','changesets','makeDirty','collabStatus.synced','open$','clearInterval','EXCHANGE_SIGN_URL_SERVER_URL_KEY','result','FETCH_MISS','xlink:href','CommentService','Disposable','_configService','handleInsertCol','DisposableCollection','getSelections','_toggleOnline','0\x200\x2017\x2016','Error\x20on\x20receiving\x20event','session.will-retry','getRelativeCoord','getItem','univer-online','TEXT_RANGE_LAYER_INDEX','rev','synced','RECV','IDLE','_localCacheService','_executeRemoteChangeset','isTransformMutationFailure','defineProperty','Tools','_onConnectionOpen','mapDocumentTypeToUniverType','setCurrentUser','LifecycleStages','enableOfflineEditing','code','cursorInfo','uni.network.url-service','_updateState','ACTIVE_UNIT_EVENT_CHANNEL','onCommentUpdate','addObject','onStateChange','_type','PERMISSION_DENIED','_saveTaskMap','M0\x200H16V16H0z','_onConflict','setTimeout','_socket$','addEventListener','_updateCollabCursors','_renderManagerService','_userManagerService','[CollaborationSessionService]','disableLocalCache','getTime','onlyLocal','SNAPSHOT_HAS_BEEN_REMOVED','_showConflictNotification','_entities','_memberService','_schedule','ColorKit','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_status$','collabStatus.notCollab','#FFF','DependentOn','EffectRefRangId','_replaceFileID','onRemoteAck','_initModules','collaboration.single-unit.warning','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','listCollaborators','_handleHeartbeatEvent','_loadDoc','getTypeOfUnitAdded$','pipe','prototype','rxjs/operators','substring','_socketReady','hovered','_onRemoteChangeset','_roomMembers$','_permissionService','Ready','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_unitId','updateCursorEvent','transformSelections','ranges','fetch_missing','_createInitialStateImpl','useDependency','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','closePath','\x20to\x20','getSheetBySheetId','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','purple300','getConfig','collabStatus.syncing','/object','IUndoRedoService','_compressMutationService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','selections','mutations','asObservable','_eventUnsubscribe','UNIVER_SLIDE','_updateSubUnitFromURLParams','idSuffix','_onRemoteACK','@univerjs/ui','editing\x20status\x20changed\x20to','dispose','isTransformMutationsWithChangesetSuccess','UniverIcon','assignAColorForMemberID','collaborators','1965792wpSaQT','path','IUniverInstanceService','max','roomMembers','joinEvent','UNIVER_UNKNOWN','_hover','_localStorageService','_members','Error','_lastPointer','sessionStatus$','getMergeData','hasOwnProperty','/universer-api/snapshot','_sendingTimer','_labelPosition','getCurrent','NOT_COLLAB','_retryCount','CONNECTOR_DATA_TOO_LARGE','replaceTextRanges','UniverCollaborationPlugin','135TSbZhc','stringify','setWaitCount','transformRemoteChangeset','COMPRESS_MUTATION_APPLY','_exhaustSavingTask','setAlpha','INTERNAL_ERROR','_rescheduleHeartbeatEvent','_undoRedoService','createIdentifier','Optional','_refRangeService','then','serializeCombRequest','_sendHeartbeatTimer','_getCurrentRevision','trim','editingUnit','_transformPreviousActiveRange','_clearTimeoutTimer','_heartbeatTimer','AWAITING','UNIVER_COLLABORATION_CLIENT_PLUGIN','url','_assignedColors','ILocalStorageService','_initStatusComponent','/universer-api/comb','dispose$','CompressMutationService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','addObjects','_createInitialState','_httpService','not_collab','_ensureSubject','onRemoteChangeset','_change$','_removeRoom','_decreaseWaiting','DeleteRangeMoveLeftCommandId','getSheetObject','setShapeProps','[SyncedState]:\x20received\x20rejection.','take','CHANGESET_REJ','onCommandExecuted','leaveEvent','unshift','/universer-api/snapshot/','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','awaiting','_scheduleSaving','SnapshotService','_docTransformIMECacheService','_docSyncEditingCollabCursorService','permission.content','BASE64','@wendellhu/redi','transformMutation','getCurrentUser','_cursors','/universer-api/oidc/authpage','offline','lineTo','_onCursorUpdate','XHRHTTPImplementation','SUCCUSS','routeKey','ws://127.0.0.1:8000/universer-api/comb/connect','SetWorksheetActivateCommand','getDocObject','sessionStatus','put','displayName','text','_transformUndoRedoStack','/-/object/list','_collabCursorController','serializeTextRange','translate(.97)','\x20in\x20_schedule.','VIEWPORT_KEY','&to=','_drawAnchor','_transformSelections','RETRY_CONNECTING_MAX_COUNT','_snapshotService','c1Prime','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','LocalUndoRedoService','LocaleService','1em','onSendChangeset','_transformService','_fetchMissChangesets','_imageSourceCache','location','onMissedChangesetFetched','title','rxjs','collaboration-client.offline-data-not-saved','OFFLINE','skeleton','event$','_timeoutTimer','updateCollaborator','getUnitOnRev','pending','_unitStatus','restore','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','onPointerMove$','tag','_redoStacks','resourceIDs','_id','_sheetTransformSelectionsService','collab-text-range-','ONLINE','_init','ICollaborationSocketService','range','src','_updateLocalCursor','APPLY_REJECT','univer-online-status-icon','flatMap','onlineStatusIcon','_config','findNodePositionByCharIndex','on-line-single_clip0_910_349','_socketMessageSubscription','memberID','_document','react','UNKNOWN_CMD','HEARTBEAT_INTERVAL_KEY','m1Prime','online','merge','/universer-api/file/{fileID}/sign-url','_onCombEvent','createSocket','RxDisposable','univerjs-icon\x20univerjs-icon-','red300','unload','LIVESHARE_TERMINATE','HEARTBEAT','USERS_LEAVE','getViewport','triggerDblclick','pushState','Injector','_handleLeaveEvent','userID','Vector2','isTransformChangesetsSuccess','drawWith','assign','deepClone','INGEST','objectType','OTHER_CLIENTS_EDITING','_entityInit$','_state','_unlockTransition','doc.mutation.rich-text-editing','data','_http','allowed','Starting','key','sheetID','SEND_CHANGESET_TIMEOUT','APPLY_NON_SEQUENTIAL_REVISION','getCurrentUnitForType','/role','getUnitStatus$','parseProtocolChangeset','getInterceptPoints','getImage','symbol','MessageType','isPermissionRej','state$','onMissingChangesets','_sessions','_onFetchMissResult','getCoordByCell','transformByState','collabStatus.offline','UniverCollaborationClientPlugin','entries','addImageSourceCache','urlChange$','size','_getSignURL','/object/','_commentUpdate$','COLLAB_WEB_SOCKET_URL','complete','create','DeleteRangeMoveUpCommandId','COMPLETION_FINISHED','unsubscribe','handleMoveRange','/collaborator','setParam','[CollaborationSession]','CollaborationStatusDisplay','_socket','_transformStack','unknown','ThemeService','getCollabEntity','OnLifecycle','_docSkeletonManagerService','_tryEnsureSocket','_clearRedo','_onLocalMutation','endColumn','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','SNAPSHOT_SERVER_URL_KEY','catch','_draw','_hideTimer','LocalCacheService','LOCAL_CACHE_INTERVAL_KEY','getOwnPropertySymbols','_transitionLocked','onload','toDisposable','IPermissionService','image/jpeg','[CollaborationEntity]','_syncEditingCollabCursor','/block/','saveChangeset','_retryConnectingTimer','_colorIndex','combineLatest','params','_uiPartsService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_socketService','eventID','OnLineSingle','append','icon','font','_clearOtherTimers','Warning','arc','disposeUnit','socket\x20close','AuthzIoHttpService','_shapes','84digTaA','liveShareOperation','enableAuthServer','36544VaeJny','extend','session.collaboration-timeout','WorkbookEditablePermission','RefRangeService','Plugin','sheets','_submitChangeset','_checkMissing','switchMap','deleteCollaborator','COLLAB_WEB_SOCKET_URL_KEY','_startSheetCollabCursor','_getCtorByUniverType','_collabSessionService','_getRedoStack','svg','ICommandService','round','_disableEditing','collabStatus.fetchMiss','type','collabCursorState$','loadDoc','with','USERS_ENTER','registerHTTPInterceptor','transformChangesets','_queuedRemoteChangesets','fillRule','blue400','delay','_textBubble','collaMsg','UUID','min','cursorInfo$','socketService','_pendingMutations','[OfflineState]:\x20received\x20acknowledgement.','concatMap','parse','_onRemoteRejected','infoRsp','connectInjector','_transformRemoteChangesetByIMECache','_createSocket','url(#on-line-single_clip0_910_349)','_onUserJoin','add','Module','_getScale','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','call','filter','INVALID_ARGUMENT','_clearCollaborationTimeoutTimer','csAckEvent','color','UniverInstanceType','@univerjs/sheets-ui','verdancy600','setInterval','fillStyle','_startDocCollabCursor','state','some','transformMutationsWithChangeset','_getAnchorBounding','toString','Workbook','RemoveRowCommandId','SelectionManagerService','_docSkeleton','Steady','LIVESHARE_REQUEST_HOST','_onRecvEvent','getMember','error','generateRandomId','list','push','div','_handler','startsWith','BuiltInUIPart','executeCommand','_getDocObject','CollaborationStatus','_handleEvent','newValue','handleDeleteRangeMoveUp','sheetId','string','textRanges','UNAUTHENTICATED','reverse','Subject','getUnitId','getMemberID','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','_onCursorDelete','permission.title','IURLService','getUndoRedoMutationParamsCache','close','@univerjs/core','_incrementRevisionNumber','[CollaborationState]:\x20apply\x20error!','_injector','evenodd','height','_sendHeartbeat','clear','onPointerEnter$','getRoom','measureText','_acknowledgedAwaitingChangeset','CollaborationEvent','TextSelectionManagerService','readAsDataURL','roomInfos','init','UNIVER_SHEET','selection','_clearHeartbeatTimer','getRangePointData','createInstance','className','_commandService','NO_OTHER_CLIENTS_EDITING','reduce','snapshot','revision','encode','IUIPartsService','_HTTPService','_anchorDot','saveSheetBlock','length','_collaborationController','LICENSE_DISTRO_REJECTED','status','focused$','@univerjs/sheets','beginPath','has','_clearLocalCache','_isPermissionRej','none','image/jpg','getCollabEntity$','_range','currentTheme$','rgba(255,\x20255,\x20255,\x200.01)','_cursor','onStarting','subunit','HELLO','setUndoRedoMutationParamsCache','HTTPService','[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.','apply','CollaborationSocketService','split','_removeCollabCursors','createCollaborator','handleInsertRangeMoveRight','_saveCache','incrementRevForDocument','onMouseMove','actions','COLORS','searchParams','_cachedData','localeService','resend','1744716vRViWw','collab-text-anchor-','_render','2199924ddIokM','Inject','POST','resolve','attrs','_cursorInfo$','@univerjs/engine-render','href','onRemoteRej','distinctUntilChanged','_colorAssignService','cmd','CollaborationSession','SetTextSelectionsOperation','_onMessage','pluginName','getCurrentRevForDocument','LICENSE_IMPORT_SIZE_EXCEEDED','ERROR_IMAGE','activeSheet$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','FAIL','_revisionService','UNIVER_DOC','@univerjs/rpc','SetSelectionsOperation','LOCAL_CACHE_INTERVAL','_roomMembers','objectActions','LIVESHARE_NEW_HOST','c2Prime','PSEUDO_FETCH_MISSING_RESULT','createElement','collaboratorID','getCollabCursors$','\x20-\x20','getValue','deserializeToCombResponse','history','m2Prime','next','/universer-api/stream/file/upload','DesktopCollaborationStatusDisplayController','delete','InsertSheetMutation','RegularPolygon','bottom','IRenderManagerService','_logService','SYNCED','_startCollaboration','_handleJoinEvent','removeMember','black','CollaborationSessionService','_session','getTypeOfUnitDisposed$','top','random','@univerjs/drawing','_scheduleTimestamp','handleInsertRow','disposeWithMe','_awaitingChangeset','off-line-single_clip0_910_343','Rect','off-line-single','_collaborationPaused','map','NOT_FOUND','_undoStacks','transformIMECache','CHANGESET_ACK','PENDING','fillText','toggleOnline','endRow','IConfigService','getAncestorScale','submit\x20changeset\x20error!','includes','onlineStatus','onlineStatusTitle','toggleOffline','syncEditingCollabCursor','_substituteRedoStack','mapTo','_snapshotServerService','_lockTransition','isActive','textEncoder','collaborationUniverTypes','LIVESHARE_FETCH_OPERATIONS','originalMeta','MSG_FOR_ERROR','getResourcesRequest','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','conflict','univer-online-status','lodash/debounce','shareReplay','_messageService','_clearScheduledTask','column','RemoveColCommandId','isArray','Shape','forwardRef','_updateStatus','from','show','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','HEADER_MENU','storage','image/png','onSyncEditingCollabCursor','onTransformRemoteChangesetByIMECache','COMMENT_UPDATE','MUTATION','_localeService','useRef','set','_initStatusListener','clearTimeout','_scene','getColor','moveTo','subscribe','_scheduleCollaborationTimeoutTimer','handleDeleteRangeMoveLeft','[CollaborationSessionService]:\x20socket\x20error','IHTTPImplementation','updateMember','_handleHover','_scheduleClearOtherTimer','2897279ksEdzV','unitId','ERROR_EXCEED_SIZE','CHANGESET_REVISION_CONFILICT','onTransformSelections','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','_createHandler','getCellPositionByOffset','ALREADY_EXISTS','MoveRangeCommandId','fill','[SyncedState]:\x20received\x20acknowledgement.','_onRefRangeChange','_sheetSkeletonManagerService','fromEvent','get','COLLAB_SUBMIT_CHANGESET_URL_KEY','isTransformMutationsWithChangesetFailure','_transformUndoredo','LIVESHARE_OPERATION','_setupBeforeClosingHandler','csRejEvent','listRoles','override','[PendingState]:\x20received\x20rejection.','_disabled','_exhaustRemoteChangesetQueue','transformUndoRedo','getActiveSheet','IContextService','JOIN','post','Unknown\x20user','_applyRemoteChangeset','NodePositionConvertToCursor','registerOnClose','[DataLoaderController]','message$','9jFwpHq','8274jjdxqY','putCollaborators','_color','_onConnectionFailed','values','NEW_CHANGESETS','reject','session','saveOfflineData','getUnitType','commentUpdate$','_send','getActiveRange','ImageSourceType','_joinRoom','InsertRangeMoveDownCommandId','docStateChange$','7DSrqup','indexOf','roles','current','[CollaborationUndoRedoService]','hide','_sessionStatus$','ERROR_IMAGE_TYPE','toStringTag','_univerInstanceService','_state$','getSheetId','socket\x20open.','DataLoaderController','loadSheet','_unitID','RevisionService','enableSingleActiveInstanceLock','_substituteUndoStack','LEAVE','/unit/','unitID','_loadSheet','_docTransformSelectionsService','getRenderById','_urlService','joinRsp','_waitCount','ISnapshotServerService','_clearUndo','_themeService','loadOfflineData','_setupSubUnitSync','_onUserLeave','_scheduleHeartbeat','_updateLocalCache','RichTextEditingMutation','FileId','YUUMI_URL_COL_OUT_OF_RANGE','_ws','body','awaiting_with_pending','name','UNKNOWN_CODE','update','_selfUnitIDs','{fileID}','whenReady','_singleActiveUnitService','UNRECOGNIZED','_getLoginPath','_remoteChangesetQueue','_name','_hovered','PERMISSION_REJ','TOO_MANY_REQUESTS','width','objectID','collabStatus.conflict','onPointerLeave$','\x0aAfter:\x20','_removeClearOtherTimer','_replayCachedMutations','HEARTBEAT_INTERVAL','newCsEvent','getSheetBlock','IMessageService','_notificationService','contains','_syncEditingCollabCursorService','forEach','univer-offline','_getMergeRange','_toggleOffline','workbook','BehaviorSubject','setItem','LICENSE_MAX_UNITS_EXCEEDED','concat','auth.needGotoLoginAlert','_collabCursorState$','row'];_0x119c=function(){return _0x5c558b;};return _0x119c();}let Ie=class{constructor(_0x350615,_0x417db9,_0xd4a3ef){const _0x4cce56=_0x14623f;this[_0x4cce56(0x4d0)]=_0x350615,this[_0x4cce56(0x1c7)]=_0x417db9,this[_0x4cce56(0x35c)]=_0xd4a3ef,this[_0x4cce56(0x327)]();}[_0x14623f(0x327)](){const _0x5cd46d=_0x14623f;this[_0x5cd46d(0x1c7)][_0x5cd46d(0x2c7)]({'priority':0x1,'interceptor':(_0x1688f5,_0x1a08cb)=>_0x1a08cb(_0x1688f5)[_0x5cd46d(0x160)](g[_0x5cd46d(0x2d5)](async _0x4df083=>{const _0x26a5d8=_0x5cd46d,_0x3c1121=_0x4df083;if(_0x3c1121[_0x26a5d8(0x33b)]===0x191&&window[_0x26a5d8(0x482)](this['localeService']['t'](_0x26a5d8(0x46f)))){const _0x4855d3=window['encodeURIComponent'](window[_0x26a5d8(0x207)][_0x26a5d8(0x368)]);window[_0x26a5d8(0x207)]['href']=this[_0x26a5d8(0x452)]()+'?url='+_0x4855d3;}return _0x3c1121;}))});}[_0x14623f(0x452)](){const _0x228a2b=_0x14623f;var _0x13572e;return(_0x13572e=this['_configService'][_0x228a2b(0x178)](ft))!=null?_0x13572e:Jt;}};Ie=xi([Le(0x0,a['IConfigService']),Le(0x1,h[_0x14623f(0x362)](P[_0x14623f(0x34d)])),Le(0x2,h['Inject'](a['LocaleService']))],Ie);var ki=Object['defineProperty'],Bi=Object[_0x14623f(0x4a0)],Fi=(_0x2a265a,_0x374f47,_0x26170d,_0x34db6c)=>{const _0x2b82d5=_0x14623f;for(var _0x5526b7=_0x34db6c>0x1?void 0x0:_0x34db6c?Bi(_0x374f47,_0x26170d):_0x374f47,_0x20b70f=_0x2a265a[_0x2b82d5(0x338)]-0x1,_0x2091d6;_0x20b70f>=0x0;_0x20b70f--)(_0x2091d6=_0x2a265a[_0x20b70f])&&(_0x5526b7=(_0x34db6c?_0x2091d6(_0x374f47,_0x26170d,_0x5526b7):_0x2091d6(_0x5526b7))||_0x5526b7);return _0x34db6c&&_0x5526b7&&ki(_0x374f47,_0x26170d,_0x5526b7),_0x5526b7;},rt=(_0x4921b8,_0x3372e2)=>(_0x552237,_0x6b1d48)=>_0x3372e2(_0x552237,_0x6b1d48,_0x4921b8);const Lt=_0x14623f(0x49e),Vi='/universer-api/authz';exports[_0x14623f(0x2a8)]=class{constructor(_0x5a3935,_0x158ebd){const _0x3df217=_0x14623f;this['_HTTPService']=_0x5a3935,this[_0x3df217(0x4d0)]=_0x158ebd;}[_0x14623f(0x474)](){const _0x552a26=_0x14623f;var _0x381dee;return(_0x381dee=this[_0x552a26(0x4d0)][_0x552a26(0x178)](Lt))!=null?_0x381dee:Vi;}async[_0x14623f(0x272)](_0x6e581){const _0x311c19=_0x14623f,_0x53c4fc=this[_0x311c19(0x474)]()+'/'+_0x6e581[_0x311c19(0x24a)]+_0x311c19(0x17a);return(await this[_0x311c19(0x335)]['post'](_0x53c4fc,{'body':_0x6e581}))[_0x311c19(0x448)]['objectID']||'';}async[_0x14623f(0x2fd)](_0x296af1){const _0x21fa99=_0x14623f,_0x36dfcf=this[_0x21fa99(0x474)]()+_0x21fa99(0x1f3);return(await this[_0x21fa99(0x335)][_0x21fa99(0x407)](_0x36dfcf,{'body':_0x296af1}))[_0x21fa99(0x448)]['objects'];}async[_0x14623f(0x44c)](_0x48685d){const _0x2d0857=_0x14623f,_0x5b6337=this['_getAPIPrefixPath']()+'/'+_0x48685d[_0x2d0857(0x24a)]+'/object/'+_0x48685d['objectID'];await this['_HTTPService'][_0x2d0857(0x1ef)](_0x5b6337,{'body':_0x48685d});}async[_0x14623f(0x252)](_0x4f1698){const _0x496784=_0x14623f,_0x392ce1=this['_getAPIPrefixPath']()+'/'+_0x4f1698[_0x496784(0x24a)]+_0x496784(0x26e)+_0x4f1698['objectID']+'/allowed';return(await this[_0x496784(0x335)][_0x496784(0x407)](_0x392ce1,{'body':_0x4f1698}))['body'][_0x496784(0x358)];}async['batchAllowed'](_0x498eca){const _0x274bd7=_0x14623f,_0x28ae98=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x274bd7(0x335)][_0x274bd7(0x407)](_0x28ae98,{'body':{'requests':_0x498eca}}))[_0x274bd7(0x448)][_0x274bd7(0x37d)];}async[_0x14623f(0x3fe)](_0x4d34a6){const _0x10f717=_0x14623f,_0x3e8c2e=this['_getAPIPrefixPath']()+'/'+_0x4d34a6['objectType']+_0x10f717(0x259),_0x28487f=await this['_HTTPService'][_0x10f717(0x407)](_0x3e8c2e,{'body':_0x4d34a6});return{'roles':_0x28487f[_0x10f717(0x448)][_0x10f717(0x422)],'actions':_0x28487f['body'][_0x10f717(0x358)]};}async[_0x14623f(0x2b7)](_0x3bbdb0){const _0xe4c73=_0x14623f,_0x2672af=this[_0xe4c73(0x474)]()+'/collaborator';await this[_0xe4c73(0x335)][_0xe4c73(0x38c)](_0x2672af,{'params':{'collaboratorID':_0x3bbdb0[_0xe4c73(0x382)],'objectID':_0x3bbdb0[_0xe4c73(0x459)],'unitID':_0x3bbdb0[_0xe4c73(0x435)]}});}async[_0x14623f(0x210)](_0x53c92a){const _0x31db50=_0x14623f,_0x2be3ad=this[_0x31db50(0x474)]()+'/collaborator';await this['_HTTPService']['patch'](_0x2be3ad,{'body':_0x53c92a});}async[_0x14623f(0x353)](_0x188eb2){const _0x4a8099=_0x14623f,_0x19a7cc=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x4a8099(0x335)][_0x4a8099(0x407)](_0x19a7cc,{'body':_0x188eb2});}async[_0x14623f(0x15c)](_0x21c76a){const _0x3f828a=_0x14623f,_0x291b53=this[_0x3f828a(0x474)]()+_0x3f828a(0x277);return(await this[_0x3f828a(0x335)]['get'](_0x291b53,{'params':{'objectID':_0x21c76a['objectID'],'unitID':_0x21c76a[_0x3f828a(0x435)]}}))[_0x3f828a(0x448)][_0x3f828a(0x18c)];}async[_0x14623f(0x410)](_0x382d5c){const _0x9e6c7=_0x14623f,_0x53c77b=this['_getAPIPrefixPath']()+_0x9e6c7(0x277);await this[_0x9e6c7(0x335)][_0x9e6c7(0x1ef)](_0x53c77b,{'body':_0x382d5c});}},exports[_0x14623f(0x2a8)]=Fi([rt(0x0,h['Inject'](P[_0x14623f(0x34d)])),rt(0x1,h[_0x14623f(0x362)](a['IConfigService']))],exports[_0x14623f(0x2a8)]);var Wi=Object[_0x14623f(0x4e3)],Gi=Object[_0x14623f(0x4a0)],Yi=(_0x1b880,_0x2f2144,_0x2b1804,_0x425e0e)=>{const _0x3b1e86=_0x14623f;for(var _0x40260f=_0x425e0e>0x1?void 0x0:_0x425e0e?Gi(_0x2f2144,_0x2b1804):_0x2f2144,_0x595331=_0x1b880[_0x3b1e86(0x338)]-0x1,_0x493395;_0x595331>=0x0;_0x595331--)(_0x493395=_0x1b880[_0x595331])&&(_0x40260f=(_0x425e0e?_0x493395(_0x2f2144,_0x2b1804,_0x40260f):_0x493395(_0x40260f))||_0x40260f);return _0x425e0e&&_0x40260f&&Wi(_0x2f2144,_0x2b1804,_0x40260f),_0x40260f;},ot=(_0x539292,_0x5778e6)=>(_0x391c80,_0x467927)=>_0x5778e6(_0x391c80,_0x467927,_0x539292);const Ki=[_0x14623f(0x3d3),_0x14623f(0x292),_0x14623f(0x343),'image/gif','image/bmp'],Xi=0x5*0x400*0x400,qi=_0x14623f(0x496),zi=_0x14623f(0x38a),Ji=_0x14623f(0x4ca),Zi=_0x14623f(0x234);let $e=class{constructor(_0x1c88c7,_0x543721){const _0x31f5e4=_0x14623f;d(this,_0x31f5e4(0x43b),0x0),d(this,_0x31f5e4(0x1cb),new g[(_0x31f5e4(0x30e))]()),d(this,'change$',this[_0x31f5e4(0x1cb)]),d(this,_0x31f5e4(0x206),new Map()),(this[_0x31f5e4(0x1c7)]=_0x1c88c7,this[_0x31f5e4(0x4d0)]=_0x543721);}[_0x14623f(0x1a7)](_0x232d6d){const _0x4903e8=_0x14623f;this['_waitCount']=_0x232d6d,this[_0x4903e8(0x1cb)][_0x4903e8(0x389)](_0x232d6d);}[_0x14623f(0x49d)](_0x4ccad6,_0x15a8aa){const _0x5d5e6d=_0x14623f;if(_0x15a8aa===A[_0x5d5e6d(0x41c)][_0x5d5e6d(0x1df)]){const _0x29ff89=new Image();return _0x29ff89[_0x5d5e6d(0x222)]=_0x4ccad6,_0x29ff89;}return this[_0x5d5e6d(0x206)]['get'](_0x4ccad6);}[_0x14623f(0x26a)](_0x5953d0,_0x470697,_0x36b7ab){const _0x5c4008=_0x14623f;_0x470697===A[_0x5c4008(0x41c)][_0x5c4008(0x1df)]||_0x36b7ab==null||this[_0x5c4008(0x206)][_0x5c4008(0x3da)](_0x5953d0,_0x36b7ab);}async[_0x14623f(0x25d)](_0x65c49d){const _0x219b95=_0x14623f;try{const _0x24c076=this[_0x219b95(0x157)](this[_0x219b95(0x26d)](),''+_0x65c49d),_0x44ae48=(await this['_httpService'][_0x219b95(0x3f7)](_0x24c076))[_0x219b95(0x448)];return _0x44ae48[_0x219b95(0x2fb)]&&_0x44ae48[_0x219b95(0x2fb)][_0x219b95(0x4ea)]===mt['OK']?Promise[_0x219b95(0x364)](_0x44ae48[_0x219b95(0x1bd)]):Promise[_0x219b95(0x415)](_0x44ae48[_0x219b95(0x2fb)]);}catch(_0x3433f7){return Promise[_0x219b95(0x415)](_0x3433f7);}}async['saveImage'](_0x4e9fea){const _0x5b1773=_0x14623f;let _0x4beb4b='';if(!Ki['includes'](_0x4e9fea[_0x5b1773(0x2c2)]))return this[_0x5b1773(0x1cd)](),Promise['reject'](new Error(A[_0x5b1773(0x4b0)][_0x5b1773(0x427)]));if(_0x4e9fea['size']>Xi)return this[_0x5b1773(0x1cd)](),Promise[_0x5b1773(0x415)](new Error(A[_0x5b1773(0x4b0)][_0x5b1773(0x3ea)]));try{const _0x3f1c9e=new FormData();_0x3f1c9e[_0x5b1773(0x2a0)]('file',_0x4e9fea);const _0x54a7df=this['_getUploadFileURL']()+_0x5b1773(0x497)+_0x4e9fea[_0x5b1773(0x26c)]['toString'](),_0x34bbcf=await(await fetch(_0x54a7df,{'method':_0x5b1773(0x363),'body':_0x3f1c9e}))['json']();if(typeof _0x34bbcf['FileId']!=_0x5b1773(0x30a))return this['_decreaseWaiting'](),Promise[_0x5b1773(0x415)](new Error(A[_0x5b1773(0x4b0)][_0x5b1773(0x373)]));_0x4beb4b=_0x34bbcf[_0x5b1773(0x445)];}catch{return this[_0x5b1773(0x1cd)](),Promise[_0x5b1773(0x415)](new Error(A[_0x5b1773(0x4b0)][_0x5b1773(0x373)]));}return new Promise((_0x4ddbfe,_0x23fd6e)=>{const _0x31b8c6=_0x5b1773,_0x8f7de3=new FileReader();_0x8f7de3[_0x31b8c6(0x325)](_0x4e9fea),_0x8f7de3[_0x31b8c6(0x28f)]=_0x3530fc=>{const _0x5779fe=_0x31b8c6;var _0x46d0dd;const _0x144924=(_0x46d0dd=_0x3530fc['target'])==null?void 0x0:_0x46d0dd[_0x5779fe(0x4cb)];if(_0x144924==null){this[_0x5779fe(0x1cd)](),_0x23fd6e(new Error(A[_0x5779fe(0x4b0)][_0x5779fe(0x373)]));return;}const _0x4a4d8f=a[_0x5779fe(0x4e4)][_0x5779fe(0x2fc)](0x6);_0x4ddbfe({'imageId':_0x4a4d8f,'imageSourceType':A['ImageSourceType'][_0x5779fe(0x2cf)],'source':_0x4beb4b,'base64Cache':_0x144924,'status':A[_0x5779fe(0x4b0)][_0x5779fe(0x1e9)]}),this[_0x5779fe(0x1cd)]();};});}['_getUploadFileURL'](){const _0x283c71=_0x14623f;var _0x49f363;return(_0x49f363=this[_0x283c71(0x4d0)][_0x283c71(0x178)](qi))!=null?_0x49f363:zi;}[_0x14623f(0x26d)](){const _0x2cd6d6=_0x14623f;var _0x3a6aad;return(_0x3a6aad=this[_0x2cd6d6(0x4d0)][_0x2cd6d6(0x178)](Ji))!=null?_0x3a6aad:Zi;}[_0x14623f(0x157)](_0x6c19e4,_0xe72538){const _0x146c62=_0x14623f;return _0x6c19e4[_0x146c62(0x4b8)](_0x146c62(0x44e),_0xe72538);}[_0x14623f(0x1cd)](){const _0x5d1137=_0x14623f;this[_0x5d1137(0x43b)]-=0x1,this[_0x5d1137(0x1cb)]['next'](this[_0x5d1137(0x43b)]);}};$e=Yi([ot(0x0,h[_0x14623f(0x362)](P['HTTPService'])),ot(0x1,a[_0x14623f(0x3ae)])],$e);var Pt=Object['defineProperty'],Qi=Object[_0x14623f(0x4a0)],en=(_0xef2785,_0x5b7c1c,_0x568d1a)=>_0x5b7c1c in _0xef2785?Pt(_0xef2785,_0x5b7c1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568d1a}):_0xef2785[_0x5b7c1c]=_0x568d1a,tn=(_0x3bf87a,_0x4d75db,_0x41beda,_0x3ac1d4)=>{for(var _0x449400=_0x3ac1d4>0x1?void 0x0:_0x3ac1d4?Qi(_0x4d75db,_0x41beda):_0x4d75db,_0x5352df=_0x3bf87a['length']-0x1,_0x44a179;_0x5352df>=0x0;_0x5352df--)(_0x44a179=_0x3bf87a[_0x5352df])&&(_0x449400=(_0x3ac1d4?_0x44a179(_0x4d75db,_0x41beda,_0x449400):_0x44a179(_0x449400))||_0x449400);return _0x3ac1d4&&_0x449400&&Pt(_0x4d75db,_0x41beda,_0x449400),_0x449400;},at=(_0x4249af,_0x55f6a6)=>(_0x49e121,_0x18f79a)=>_0x55f6a6(_0x49e121,_0x18f79a,_0x4249af),sn=(_0x23cc6e,_0x128dfa,_0x4e721a)=>en(_0x23cc6e,_0x128dfa+'',_0x4e721a);const nn=_0x14623f(0x1bc);exports[_0x14623f(0x268)]=class extends a[_0x14623f(0x2b2)]{constructor(_0x4cc7b8,_0x56b5ef,_0x3790c8){const _0x1cded1=_0x14623f;super(),this[_0x1cded1(0x228)]=_0x4cc7b8,this[_0x1cded1(0x391)]=_0x56b5ef,this[_0x1cded1(0x31a)]=_0x3790c8;}[_0x14623f(0x349)](_0x451403){const _0x1717ec=_0x14623f;var _0x4f31de,_0x39f2cf,_0x497749,_0xf143a9,_0x78df5d;_0x451403[_0x1717ec(0x33f)](a[_0x1717ec(0x17b)])&&this[_0x1717ec(0x391)][_0x1717ec(0x2fb)](_0x1717ec(0x475),_0x1717ec(0x1ff));let _0x394d36=[[a[_0x1717ec(0x17b)],{'useClass':je}],[exports[_0x1717ec(0x397)]],[We],[P['HTTPService']],[Ye,{'useClass':wt}],[G],[exports[_0x1717ec(0x28b)]],[P[_0x1717ec(0x4c2)]],[fe],[ge],[ve],[Ve],[Ie],[Fe],[Be,{'useClass':(_0x39f2cf=(_0x4f31de=this[_0x1717ec(0x228)])==null?void 0x0:_0x4f31de[_0x1717ec(0x2d2)])!=null?_0x39f2cf:exports[_0x1717ec(0x350)]}],[P[_0x1717ec(0x3e4)],{'useClass':P[_0x1717ec(0x1e8)]}],[a[_0x1717ec(0x43c)],{'useClass':Ae}],[a['IAuthzIoService'],{'useClass':exports[_0x1717ec(0x2a8)]}],[A[_0x1717ec(0x480)],{'useClass':$e}],[exports[_0x1717ec(0x4b3)]],[exports[_0x1717ec(0x42d)]],[exports[_0x1717ec(0x38b)]],[de],[J]];(_0x497749=this[_0x1717ec(0x228)])!=null&&_0x497749[_0x1717ec(0x431)]&&_0x394d36[_0x1717ec(0x2fe)]([pe,{'useClass':_s}]),((_0xf143a9=this[_0x1717ec(0x228)])==null?void 0x0:_0xf143a9[_0x1717ec(0x3bc)])==null||this[_0x1717ec(0x228)][_0x1717ec(0x3bc)][_0x1717ec(0x3b1)](a['UniverInstanceType'][_0x1717ec(0x328)])?_0x394d36[_0x1717ec(0x2fe)]([ue]):this[_0x1717ec(0x228)]['collaborationUniverTypes'][_0x1717ec(0x3b1)](a[_0x1717ec(0x2e8)][_0x1717ec(0x378)])&&_0x394d36['push']([Se]),_0x394d36=a['mergeOverrideWithDependencies'](_0x394d36,(_0x78df5d=this[_0x1717ec(0x228)])==null?void 0x0:_0x78df5d[_0x1717ec(0x3ff)]),_0x394d36['forEach'](_0x584abb=>_0x451403['add'](_0x584abb)),_0x451403['get'](P[_0x1717ec(0x34d)])[_0x1717ec(0x2c7)]({'priority':0x14,'interceptor':P['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_initModules']();}[_0x14623f(0x159)](){const _0x74c76f=_0x14623f;var _0x4b9680,_0x38e47c;(_0x4b9680=this[_0x74c76f(0x228)])!=null&&_0x4b9680[_0x74c76f(0x4e9)]||this['_injector'][_0x74c76f(0x3f7)](exports[_0x74c76f(0x28b)])[_0x74c76f(0x148)](),(_0x38e47c=this['_config'])!=null&&_0x38e47c[_0x74c76f(0x2ac)]&&this[_0x74c76f(0x31a)][_0x74c76f(0x3f7)](Ie);}},sn(exports[_0x14623f(0x268)],_0x14623f(0x370),nn),exports['UniverCollaborationClientPlugin']=tn([a[_0x14623f(0x155)](u[_0x14623f(0x1a4)]),at(0x1,a[_0x14623f(0x47a)]),at(0x2,h[_0x14623f(0x362)](h['Injector']))],exports[_0x14623f(0x268)]),exports['AUTHZ_URL_KEY']=Lt,exports[_0x14623f(0x3f8)]=gt,exports[_0x14623f(0x2b8)]=ut,exports[_0x14623f(0x305)]=U,exports[_0x14623f(0x27a)]=Ut,exports[_0x14623f(0x4ce)]=Fe,exports[_0x14623f(0x230)]=dt,exports['HEARTBEAT_TIMEOUT_KEY']=xe,exports[_0x14623f(0x220)]=Be,exports[_0x14623f(0x314)]=Ye,exports[_0x14623f(0x28c)]=vt,exports['LOGIN_URL_KEY']=ft,exports['SEND_CHANGESET_TIMEOUT_KEY']=_t,exports[_0x14623f(0x287)]=lt,exports[_0x14623f(0x494)]=ht,exports['SessionStatus']=W,exports['WebURLService']=wt,exports[_0x14623f(0x386)]=It,exports[_0x14623f(0x1b3)]=pt;