@univerjs-pro/collaboration-client 0.2.4-alpha.0 → 0.2.5

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 _0x2ad778=_0x379e;(function(_0x2478a6,_0x25ffb4){const _0x2090af=_0x379e,_0x2428b4=_0x2478a6();while(!![]){try{const _0x2a7b1b=parseInt(_0x2090af(0x3cf))/0x1*(-parseInt(_0x2090af(0x16a))/0x2)+-parseInt(_0x2090af(0x1c0))/0x3+parseInt(_0x2090af(0x175))/0x4*(parseInt(_0x2090af(0x4a1))/0x5)+-parseInt(_0x2090af(0x4ed))/0x6+parseInt(_0x2090af(0x2ee))/0x7+-parseInt(_0x2090af(0x4d5))/0x8*(-parseInt(_0x2090af(0x4b2))/0x9)+parseInt(_0x2090af(0x1a4))/0xa;if(_0x2a7b1b===_0x25ffb4)break;else _0x2428b4['push'](_0x2428b4['shift']());}catch(_0x47c476){_0x2428b4['push'](_0x2428b4['shift']());}}}(_0x315b,0x61473));var $t=Object[_0x2ad778(0x4be)],Ht=(_0x15e76a,_0xba4299,_0x65b8a4)=>_0xba4299 in _0x15e76a?$t(_0x15e76a,_0xba4299,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x65b8a4}):_0x15e76a[_0xba4299]=_0x65b8a4,u=(_0x3caee5,_0x1c11e2,_0x17b501)=>Ht(_0x3caee5,typeof _0x1c11e2!=_0x2ad778(0x2dc)?_0x1c11e2+'':_0x1c11e2,_0x17b501);Object['defineProperty'](exports,Symbol[_0x2ad778(0x1ad)],{'value':_0x2ad778(0x479)});const o=require(_0x2ad778(0x312)),p=require(_0x2ad778(0x260)),Z=require(_0x2ad778(0x18c)),M=require('@univerjs/ui'),_=require(_0x2ad778(0x2d2)),v=require(_0x2ad778(0x381)),E=require(_0x2ad778(0x4e5)),L=require('@univerjs/docs'),U=require(_0x2ad778(0x32f)),N=require(_0x2ad778(0x3f8)),Xe=require('@univerjs/engine-formula'),xe=require(_0x2ad778(0x393)),T=require('@univerjs/engine-render'),J=require(_0x2ad778(0x3ed)),w=require(_0x2ad778(0x3ab)),xt=require('clsx'),kt=require(_0x2ad778(0x238)),lt=_0x2ad778(0x4b8),Bt=_0x2ad778(0x4c2),ht=_0x2ad778(0x1a2),_t=_0x2ad778(0x288),Ft=0x7d0,ut=_0x2ad778(0x3fe),Vt=_0x2ad778(0x47d),dt=_0x2ad778(0x265),Wt=0x7530,ke='HEARTBEAT_TIMEOUT',St=0x2710,Gt=_0x2ad778(0x3a6),Yt=0x4e20,Kt='RETRY_CONNECTING_MAX_COUNT',Xt=0x3,vt=_0x2ad778(0x2f2),qt=0x3e8,gt=_0x2ad778(0x3fb),Jt=_0x2ad778(0x398),ft=_0x2ad778(0x2ea),zt=_0x2ad778(0x37d);var mt=(_0x44b9a0=>(_0x44b9a0[_0x44b9a0['UNDEFINED']=0x0]=_0x2ad778(0x4e0),_0x44b9a0[_0x44b9a0['OK']=0x1]='OK',_0x44b9a0[_0x44b9a0[_0x2ad778(0x33b)]=0x2]=_0x2ad778(0x33b),_0x44b9a0[_0x44b9a0['PERMISSION_DENIED']=0x3]=_0x2ad778(0x460),_0x44b9a0[_0x44b9a0['NOT_FOUND']=0x4]=_0x2ad778(0x4c6),_0x44b9a0[_0x44b9a0['UNAUTHENTICATED']=0x5]=_0x2ad778(0x21d),_0x44b9a0[_0x44b9a0[_0x2ad778(0x48d)]=0x6]=_0x2ad778(0x48d),_0x44b9a0[_0x44b9a0[_0x2ad778(0x2a3)]=0x7]=_0x2ad778(0x2a3),_0x44b9a0[_0x44b9a0[_0x2ad778(0x22c)]=0x8]=_0x2ad778(0x22c),_0x44b9a0[_0x44b9a0[_0x2ad778(0x168)]=0x9]=_0x2ad778(0x168),_0x44b9a0[_0x44b9a0[_0x2ad778(0x2b0)]=0x1389]=_0x2ad778(0x2b0),_0x44b9a0[_0x44b9a0['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x44b9a0[_0x44b9a0[_0x2ad778(0x20a)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x44b9a0[_0x44b9a0[_0x2ad778(0x4cc)]=0x1b59]=_0x2ad778(0x4cc),_0x44b9a0[_0x44b9a0[_0x2ad778(0x374)]=0x1b5a]=_0x2ad778(0x374),_0x44b9a0[_0x44b9a0[_0x2ad778(0x315)]=0x1b5b]=_0x2ad778(0x315),_0x44b9a0[_0x44b9a0['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x2ad778(0x1e2),_0x44b9a0[_0x44b9a0[_0x2ad778(0x1f3)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x44b9a0[_0x44b9a0[_0x2ad778(0x3a2)]=0x2329]=_0x2ad778(0x3a2),_0x44b9a0[_0x44b9a0[_0x2ad778(0x400)]=0x232a]=_0x2ad778(0x400),_0x44b9a0[_0x44b9a0[_0x2ad778(0x1aa)]=0x232b]=_0x2ad778(0x1aa),_0x44b9a0[_0x44b9a0[_0x2ad778(0x2f0)]=0x232c]=_0x2ad778(0x2f0),_0x44b9a0[_0x44b9a0[_0x2ad778(0x42e)]=0x232d]=_0x2ad778(0x42e),_0x44b9a0[_0x44b9a0[_0x2ad778(0x161)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x44b9a0[_0x44b9a0['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2ad778(0x386),_0x44b9a0[_0x44b9a0['UNRECOGNIZED']=-0x1]=_0x2ad778(0x1a1),_0x44b9a0))(mt||{}),A=(_0x1f11d0=>(_0x1f11d0[_0x1f11d0['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x1f11d0[_0x1f11d0['UNIVER_DOC']=0x1]=_0x2ad778(0x257),_0x1f11d0[_0x1f11d0[_0x2ad778(0x421)]=0x2]=_0x2ad778(0x421),_0x1f11d0[_0x1f11d0[_0x2ad778(0x25f)]=0x3]=_0x2ad778(0x25f),_0x1f11d0[_0x1f11d0[_0x2ad778(0x1a1)]=-0x1]=_0x2ad778(0x1a1),_0x1f11d0))(A||{}),b=(_0x5b132a=>(_0x5b132a[_0x5b132a[_0x2ad778(0x220)]=0x0]=_0x2ad778(0x220),_0x5b132a[_0x5b132a[_0x2ad778(0x3e9)]=0x1]=_0x2ad778(0x3e9),_0x5b132a[_0x5b132a[_0x2ad778(0x20b)]=0x2]=_0x2ad778(0x20b),_0x5b132a[_0x5b132a['LEAVE']=0x3]=_0x2ad778(0x3b2),_0x5b132a[_0x5b132a[_0x2ad778(0x285)]=0x4]=_0x2ad778(0x285),_0x5b132a[_0x5b132a[_0x2ad778(0x185)]=0x5]='HEARTBEAT',_0x5b132a[_0x5b132a[_0x2ad778(0x3b5)]=0x6]='RECV',_0x5b132a[_0x5b132a[_0x2ad778(0x1a1)]=-0x1]='UNRECOGNIZED',_0x5b132a))(b||{}),Be=(_0x3846e3=>(_0x3846e3[_0x3846e3[_0x2ad778(0x47f)]=0x0]=_0x2ad778(0x47f),_0x3846e3[_0x3846e3['OK']=0x1]='OK',_0x3846e3[_0x3846e3[_0x2ad778(0x342)]=0x2]=_0x2ad778(0x342),_0x3846e3[_0x3846e3[_0x2ad778(0x1a1)]=-0x1]=_0x2ad778(0x1a1),_0x3846e3))(Be||{}),Zt=Object[_0x2ad778(0x4be)],Qt=Object[_0x2ad778(0x16e)],es=(_0x1151c5,_0x52df1c,_0x1c9cfd,_0x418c27)=>{const _0x1e68a8=_0x2ad778;for(var _0x54a34a=_0x418c27>0x1?void 0x0:_0x418c27?Qt(_0x52df1c,_0x1c9cfd):_0x52df1c,_0x3b954a=_0x1151c5[_0x1e68a8(0x32e)]-0x1,_0x1a17e4;_0x3b954a>=0x0;_0x3b954a--)(_0x1a17e4=_0x1151c5[_0x3b954a])&&(_0x54a34a=(_0x418c27?_0x1a17e4(_0x52df1c,_0x1c9cfd,_0x54a34a):_0x1a17e4(_0x54a34a))||_0x54a34a);return _0x418c27&&_0x54a34a&&Zt(_0x52df1c,_0x1c9cfd,_0x54a34a),_0x54a34a;},qe=(_0x4a1485,_0x29f8d5)=>(_0x42930e,_0x56882c)=>_0x29f8d5(_0x42930e,_0x56882c,_0x4a1485);let W=class extends o[_0x2ad778(0x299)]{constructor(_0x13a60c,_0xfbd708){const _0x4ef539=_0x2ad778;super(),u(this,_0x4ef539(0x23d),new Map()),(this['_univerInstanceService']=_0x13a60c,this[_0x4ef539(0x268)]=_0xfbd708,this[_0x4ef539(0x233)](o[_0x4ef539(0x1e7)](v[_0x4ef539(0x443)](this['_univerInstanceService'][_0x4ef539(0x1e8)](o[_0x4ef539(0x3c7)]['UNIVER_SHEET'])[_0x4ef539(0x502)](E[_0x4ef539(0x2c7)](_0x49591d=>_0x49591d[_0x4ef539(0x340)]())),this[_0x4ef539(0x2ec)][_0x4ef539(0x1e8)](o[_0x4ef539(0x3c7)]['UNIVER_DOC'])[_0x4ef539(0x502)](E[_0x4ef539(0x2c7)](_0x1f3b4a=>_0x1f3b4a[_0x4ef539(0x340)]())),this['_univerInstanceService'][_0x4ef539(0x1e8)](o[_0x4ef539(0x3c7)][_0x4ef539(0x25f)])['pipe'](E[_0x4ef539(0x2c7)](_0x5b3acf=>_0x5b3acf[_0x4ef539(0x340)]())))['subscribe'](_0x1d25db=>this['_removeRoom'](_0x1d25db)))));}[_0x2ad778(0x465)](_0x39ceb1){const _0x33ba59=_0x2ad778;this[_0x33ba59(0x268)][_0x33ba59(0x465)](_0x39ceb1);}['getCurrentUser'](){const _0x609057=_0x2ad778;return this[_0x609057(0x268)][_0x609057(0x433)]();}[_0x2ad778(0x4c7)](_0x428b1c,_0x1ca112){const _0x4ffd6d=_0x2ad778;let _0x5df6e1=this[_0x4ffd6d(0x23d)][_0x4ffd6d(0x49d)](_0x428b1c);_0x5df6e1||(_0x5df6e1=new ts(),this[_0x4ffd6d(0x23d)]['set'](_0x428b1c,_0x5df6e1)),_0x5df6e1[_0x4ffd6d(0x4c7)](_0x1ca112);}[_0x2ad778(0x262)](_0x56b086,_0x47f9fe){const _0x4a1f99=_0x2ad778,_0x23b261=this[_0x4a1f99(0x23d)]['get'](_0x56b086);_0x23b261&&_0x23b261[_0x4a1f99(0x262)](_0x47f9fe);}['getRoom'](_0x544f3d){const _0x382ea8=_0x2ad778;return this['_roomMembers'][_0x382ea8(0x49d)](_0x544f3d);}[_0x2ad778(0x4ec)](_0x304121,_0x1b7a69){const _0x289549=_0x2ad778,_0x2e82c4=this[_0x289549(0x23d)][_0x289549(0x49d)](_0x304121);if(_0x2e82c4)return _0x2e82c4[_0x289549(0x4ec)](_0x1b7a69);}[_0x2ad778(0x434)](_0x8ef46c){const _0x5f9ca4=_0x2ad778,_0x1b469c=this[_0x5f9ca4(0x23d)][_0x5f9ca4(0x49d)](_0x8ef46c);_0x1b469c&&(_0x1b469c[_0x5f9ca4(0x194)](),this['_roomMembers']['delete'](_0x8ef46c));}['dispose'](){const _0x2ea4a0=_0x2ad778;this[_0x2ea4a0(0x23d)][_0x2ea4a0(0x169)](_0xc81da2=>_0xc81da2[_0x2ea4a0(0x194)]()),this[_0x2ea4a0(0x23d)][_0x2ea4a0(0x200)]();}};W=es([qe(0x0,o[_0x2ad778(0x1ed)]),qe(0x1,o[_0x2ad778(0x143)](o[_0x2ad778(0x201)]))],W);class ts extends o[_0x2ad778(0x299)]{constructor(){super(...arguments),u(this,'_members',new Map());}[_0x2ad778(0x194)](){const _0x3a5070=_0x2ad778;this[_0x3a5070(0x3b3)][_0x3a5070(0x200)]();}[_0x2ad778(0x4c7)](_0x3f54b3){const _0x5b20d3=_0x2ad778;this[_0x5b20d3(0x3b3)][_0x5b20d3(0x20c)](_0x3f54b3[_0x5b20d3(0x1a9)],_0x3f54b3);}[_0x2ad778(0x262)](_0x443581){const _0x29053a=_0x2ad778;this['_members'][_0x29053a(0x40a)](_0x443581);}[_0x2ad778(0x4ec)](_0x1720c1){const _0x5a6a10=_0x2ad778;return this[_0x5a6a10(0x3b3)][_0x5a6a10(0x49d)](_0x1720c1);}}function It(_0x16a6cc){const _0x35527a=_0x2ad778;var _0x96ed37,_0xf8d4d5,_0x54459b,_0x439961;const _0x111ce7=_0x16a6cc[_0x35527a(0x2f7)],_0x4877af=JSON[_0x35527a(0x34f)](_0x111ce7);switch(_0x4877af['cmd']){case b[_0x35527a(0x185)]:case b[_0x35527a(0x3e9)]:{const _0x554f4e=_0x4877af['infoRsp'];return{..._0x4877af,'data':_0x554f4e,'cmd':_0x4877af[_0x35527a(0x36f)]};}case b[_0x35527a(0x20b)]:{const _0xe7f2af=_0x4877af[_0x35527a(0x316)];return{..._0x4877af,'data':_0xe7f2af,'cmd':_0x4877af[_0x35527a(0x36f)]};}case b['RECV']:{const _0x4ca481=_0x4877af[_0x35527a(0x1d4)];switch(_0x4ca481[_0x35527a(0x318)]){case _[_0x35527a(0x4b9)][_0x35527a(0x396)]:return{..._0x4877af,'data':{..._0x4ca481,'data':(_0x96ed37=_0x4ca481['permissionRejEvent'])==null?void 0x0:_0x96ed37['cs']},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent'][_0x35527a(0x4dc)]:return{..._0x4877af,'data':{..._0x4ca481,'data':(_0xf8d4d5=_0x4ca481[_0x35527a(0x206)])==null?void 0x0:_0xf8d4d5['cs']},'cmd':_0x4877af[_0x35527a(0x36f)]};case _[_0x35527a(0x4b9)][_0x35527a(0x3f4)]:return{..._0x4877af,'data':{..._0x4ca481,'data':(_0x54459b=_0x4ca481['newCsEvent'])==null?void 0x0:_0x54459b['cs']},'cmd':_0x4877af['cmd']};case _[_0x35527a(0x4b9)][_0x35527a(0x1ce)]:return{..._0x4877af,'data':{..._0x4ca481,'data':(_0x439961=_0x4ca481[_0x35527a(0x426)])==null?void 0x0:_0x439961['cs']},'cmd':_0x4877af['cmd']};case _['CollaborationEvent'][_0x35527a(0x1be)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x480)]},'cmd':_0x4877af[_0x35527a(0x36f)]};case _[_0x35527a(0x4b9)][_0x35527a(0x237)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x235)]},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent']['USERS_LEAVE']:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x226)]},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x466)]},'cmd':_0x4877af[_0x35527a(0x36f)]};case _[_0x35527a(0x4b9)][_0x35527a(0x39f)]:case _[_0x35527a(0x4b9)][_0x35527a(0x409)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x1d8)]},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent'][_0x35527a(0x4b4)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481['liveShareNewHost']},'cmd':_0x4877af[_0x35527a(0x36f)]};case _[_0x35527a(0x4b9)][_0x35527a(0x420)]:return{..._0x4877af,'data':_0x4ca481,'cmd':_0x4877af[_0x35527a(0x36f)]};case _[_0x35527a(0x4b9)][_0x35527a(0x3eb)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481['commentUpdateEvent']},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481['updatePermissionObjEvent']},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent'][_0x35527a(0x1fe)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x467)]},'cmd':_0x4877af[_0x35527a(0x36f)]};default:return _0x4877af;}}default:return _0x4877af;}}function pt(_0x559507){const _0x50c9b0=_0x2ad778;switch(_0x559507[_0x50c9b0(0x36f)]){case b[_0x50c9b0(0x185)]:case b['HELLO']:return JSON[_0x50c9b0(0x146)]({'cmd':_0x559507[_0x50c9b0(0x36f)],'routeKey':_0x559507['routeKey']});case b[_0x50c9b0(0x285)]:{let _0x576d0c;switch(_0x559507[_0x50c9b0(0x2f7)][_0x50c9b0(0x318)]){case _[_0x50c9b0(0x4b9)][_0x50c9b0(0x1be)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x1be)],'updateCursorEvent':_0x559507['data'][_0x50c9b0(0x2f7)]};break;}case _[_0x50c9b0(0x4b9)][_0x50c9b0(0x16d)]:{_0x576d0c={'eventID':_['CollaborationEvent'][_0x50c9b0(0x16d)],'leaveEvent':_0x559507['data'][_0x50c9b0(0x2f7)]};break;}case _['CollaborationEvent'][_0x50c9b0(0x237)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x237)],'joinEvent':_0x559507[_0x50c9b0(0x2f7)]['data']};break;}case _[_0x50c9b0(0x4b9)]['LIVESHARE_NEW_HOST']:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x28f)],'liveShareNewHost':_0x559507['data'][_0x50c9b0(0x2f7)]};break;}case _[_0x50c9b0(0x4b9)][_0x50c9b0(0x409)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x409)],'liveShareOperation':_0x559507[_0x50c9b0(0x2f7)][_0x50c9b0(0x2f7)]};break;}case _[_0x50c9b0(0x4b9)][_0x50c9b0(0x4b4)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x4b4)],'liveShareTerminate':_0x559507[_0x50c9b0(0x2f7)][_0x50c9b0(0x2f7)]};break;}case _[_0x50c9b0(0x4b9)][_0x50c9b0(0x3d6)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x3d6)],'liveShareRequestHost':_0x559507['data']['data']};break;}case _['CollaborationEvent'][_0x50c9b0(0x39f)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x39f)]};break;}default:_0x576d0c={'eventID':_0x559507[_0x50c9b0(0x2f7)][_0x50c9b0(0x318)]};}return JSON[_0x50c9b0(0x146)]({'cmd':_0x559507['cmd'],'routeKey':_0x559507[_0x50c9b0(0x4c1)],'collaMsg':_0x576d0c});}case b[_0x50c9b0(0x20b)]:return JSON['stringify']({'cmd':_0x559507[_0x50c9b0(0x36f)],'routeKey':_0x559507[_0x50c9b0(0x4c1)],'joinReq':_0x559507[_0x50c9b0(0x2f7)]});case b[_0x50c9b0(0x3b2)]:return JSON['stringify']({'cmd':_0x559507[_0x50c9b0(0x36f)],'routeKey':_0x559507[_0x50c9b0(0x4c1)],'leaveReq':_0x559507['data']});default:throw new Error(_0x50c9b0(0x455));}}var ss=Object[_0x2ad778(0x4be)],is=Object[_0x2ad778(0x16e)],ns=(_0x189b3e,_0x363823,_0x5ec100,_0x186661)=>{const _0xc85808=_0x2ad778;for(var _0x394e43=_0x186661>0x1?void 0x0:_0x186661?is(_0x363823,_0x5ec100):_0x363823,_0x5c4f3a=_0x189b3e[_0xc85808(0x32e)]-0x1,_0x55ee0a;_0x5c4f3a>=0x0;_0x5c4f3a--)(_0x55ee0a=_0x189b3e[_0x5c4f3a])&&(_0x394e43=(_0x186661?_0x55ee0a(_0x363823,_0x5ec100,_0x394e43):_0x55ee0a(_0x394e43))||_0x394e43);return _0x186661&&_0x394e43&&ss(_0x363823,_0x5ec100,_0x394e43),_0x394e43;},te=(_0x2599d5,_0xb23176)=>(_0x602be3,_0x5929b1)=>_0xb23176(_0x602be3,_0x5929b1,_0x2599d5);const Fe=o[_0x2ad778(0x241)](_0x2ad778(0x2e4));function rs(_0x16022d,_0x3d63f5,_0x37a721){const _0x252008=_0x2ad778;return _0x16022d+'/'+_0x3d63f5+_0x252008(0x3fd)+_0x37a721+_0x252008(0x48e);}exports[_0x2ad778(0x389)]=class{constructor(_0x5a9a85,_0x32cc42,_0x59e920,_0x5bf12d,_0x3f2b1d){const _0x204dc0=_0x2ad778;this[_0x204dc0(0x451)]=_0x5a9a85,this[_0x204dc0(0x2fe)]=_0x32cc42,this[_0x204dc0(0x508)]=_0x59e920,this[_0x204dc0(0x46f)]=_0x5bf12d,this[_0x204dc0(0x155)]=_0x3f2b1d;}['createSocket'](_0x21b7f4){const _0x3697d9=_0x2ad778,_0x5a84db=this['_ws'][_0x3697d9(0x31f)](_0x21b7f4);if(!_0x5a84db)throw new Error(_0x3697d9(0x4ca));const _0x34d242=new o['DisposableCollection'](),_0x5363a4=new v[(_0x3697d9(0x2c6))]();_0x34d242['add'](o[_0x3697d9(0x1e7)](_0x5a84db['close$'][_0x3697d9(0x27c)](_0x3c20d8=>_0x5363a4['next'](_0x3c20d8)))),_0x34d242[_0x3697d9(0x459)](o[_0x3697d9(0x1e7)](()=>_0x5363a4['complete']()));const _0x17c0e3=new v['Subject']();_0x34d242[_0x3697d9(0x459)](o['toDisposable'](_0x5a84db['error$'][_0x3697d9(0x27c)](_0x505a72=>_0x17c0e3[_0x3697d9(0x368)](_0x505a72)))),_0x34d242[_0x3697d9(0x459)](o[_0x3697d9(0x1e7)](()=>_0x17c0e3['complete']()));const _0x2e3830=new v[(_0x3697d9(0x2c6))]();_0x34d242['add'](o[_0x3697d9(0x1e7)](_0x5a84db['message$'][_0x3697d9(0x27c)](_0x1bf6b3=>{const _0x5e6420=_0x3697d9,_0x34e6ec=It(_0x1bf6b3);_0x2e3830[_0x5e6420(0x368)](_0x34e6ec);}))),_0x34d242[_0x3697d9(0x459)](o['toDisposable'](()=>_0x2e3830[_0x3697d9(0x1df)]()));const _0x12b041=()=>{const _0x125e0d=_0x3697d9;_0x17c0e3[_0x125e0d(0x368)](new Event('connection\x20error')),_0x5363a4[_0x125e0d(0x368)](new CloseEvent(_0x125e0d(0x2dd))),_0xa3c625['close']();},_0xa3c625={'memberID':'','close$':_0x5363a4[_0x3697d9(0x1bd)](),'error$':_0x17c0e3[_0x3697d9(0x1bd)](),'open$':_0x5a84db[_0x3697d9(0x319)],'message$':_0x2e3830[_0x3697d9(0x1bd)](),'send':_0x2bf3ac=>{const _0x478ced=_0x3697d9;if(_0x2bf3ac['cmd']===b[_0x478ced(0x285)]){if(_0x2bf3ac[_0x478ced(0x2f7)][_0x478ced(0x318)]===_[_0x478ced(0x4b9)][_0x478ced(0x246)]){this['_submitChangeset'](_0xa3c625,_0x2bf3ac[_0x478ced(0x2f7)])[_0x478ced(0x1cf)](_0x53a305=>{const _0x3c77ae=_0x478ced;this[_0x3c77ae(0x46f)][_0x3c77ae(0x191)](_0x53a305),_0x12b041();});return;}if(_0x2bf3ac[_0x478ced(0x2f7)][_0x478ced(0x318)]===_[_0x478ced(0x4b9)]['FETCH_MISSING']){const _0x1d3107=_0x2bf3ac[_0x478ced(0x2f7)];this[_0x478ced(0x4f1)](_0x1d3107)[_0x478ced(0x22e)](_0x5c84d5=>{const _0x495bf2=_0x478ced;_0x2e3830[_0x495bf2(0x368)]({'cmd':b[_0x495bf2(0x3b5)],'code':Be['OK'],'routeKey':_0x1d3107['data']['unitID'],'routeType':'','data':{'eventID':_[_0x495bf2(0x4b9)][_0x495bf2(0x281)],'data':{'changesets':_0x5c84d5}}});})[_0x478ced(0x1cf)](_0x11d23e=>{const _0x53f416=_0x478ced;this[_0x53f416(0x46f)][_0x53f416(0x191)](_0x11d23e),_0x12b041();});return;}}_0x5a84db['send'](pt(_0x2bf3ac));},'close':()=>{const _0x102f2f=_0x3697d9;_0x5a84db['close'](),_0x34d242[_0x102f2f(0x194)]();}};return _0xa3c625;}async[_0x2ad778(0x293)](_0xf8d935,_0x1eee59){const _0x1e4517=_0x2ad778;var _0x284e10;const {unitType:_0x1bea97,unitID:_0x230551,changeset:_0x1a6056}=_0x1eee59[_0x1e4517(0x2f7)],_0x2ed714={'unitID':_0x230551,'memberID':_0xf8d935[_0x1e4517(0x1a9)],'type':_0x1bea97,'changeset':_[_0x1e4517(0x423)](_0x1a6056)},_0x480bc5=rs((_0x284e10=this[_0x1e4517(0x508)][_0x1e4517(0x39e)](gt))!=null?_0x284e10:Jt,_0x1bea97,_0x230551);try{await this[_0x1e4517(0x451)]['post'](_0x480bc5,{'body':_0x2ed714});}catch(_0xa1dd96){throw this['_logService'][_0x1e4517(0x191)](_0x1e4517(0x3e5),'submit\x20changeset\x20error!'),_0xa1dd96;}}async[_0x2ad778(0x4f1)](_0x262a13){const _0x28c737=_0x2ad778,{unitID:_0x5e2237,from:_0x1ef503,to:_0x3e25f9,unitType:_0x398c73}=_0x262a13[_0x28c737(0x2f7)];return(await this[_0x28c737(0x155)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5e2237,'type':_0x398c73,'from':_0x1ef503,'to':_0x3e25f9}))[_0x28c737(0x388)];}},exports[_0x2ad778(0x389)]=ns([te(0x0,o['Inject'](U[_0x2ad778(0x2cf)])),te(0x1,o[_0x2ad778(0x143)](U[_0x2ad778(0x1b1)])),te(0x2,o[_0x2ad778(0x4aa)]),te(0x3,o[_0x2ad778(0x2ac)]),te(0x4,o['ISnapshotServerService'])],exports[_0x2ad778(0x389)]);class Ve{constructor(){const _0x31f403=_0x2ad778;u(this,_0x31f403(0x407),new v[(_0x31f403(0x2c6))]()),u(this,_0x31f403(0x38e),this[_0x31f403(0x407)][_0x31f403(0x1bd)]());}[_0x2ad778(0x2df)](_0x4e4d91){const _0x3708ea=_0x2ad778;this[_0x3708ea(0x407)]['next'](_0x4e4d91);}}var os=Object[_0x2ad778(0x4be)],as=Object[_0x2ad778(0x16e)],Et=(_0xc2cbd4,_0x30a9a5,_0x172a0,_0x11ae4e)=>{const _0x446997=_0x2ad778;for(var _0x409fd3=_0x11ae4e>0x1?void 0x0:_0x11ae4e?as(_0x30a9a5,_0x172a0):_0x30a9a5,_0x4ba095=_0xc2cbd4[_0x446997(0x32e)]-0x1,_0x17e51d;_0x4ba095>=0x0;_0x4ba095--)(_0x17e51d=_0xc2cbd4[_0x4ba095])&&(_0x409fd3=(_0x11ae4e?_0x17e51d(_0x30a9a5,_0x172a0,_0x409fd3):_0x17e51d(_0x409fd3))||_0x409fd3);return _0x11ae4e&&_0x409fd3&&os(_0x30a9a5,_0x172a0,_0x409fd3),_0x409fd3;},P=(_0x3a29f4,_0x23a979)=>(_0x4ca73d,_0x510c21)=>_0x23a979(_0x4ca73d,_0x510c21,_0x3a29f4),V=(_0x1d7fce=>(_0x1d7fce[_0x1d7fce[_0x2ad778(0x1db)]=0x0]='IDLE',_0x1d7fce[_0x1d7fce[_0x2ad778(0x48a)]=0x1]=_0x2ad778(0x48a),_0x1d7fce[_0x1d7fce[_0x2ad778(0x2fc)]=0x2]=_0x2ad778(0x2fc),_0x1d7fce[_0x1d7fce[_0x2ad778(0x21e)]=0x3]=_0x2ad778(0x21e),_0x1d7fce))(V||{});exports[_0x2ad778(0x228)]=class extends o[_0x2ad778(0x30e)]{constructor(_0x26eaa3,_0x3481f9,_0xa98b77,_0x41500e,_0x60addd,_0x4643d0,_0x1a33bf,_0x30a0e4,_0x20f570){const _0x1dd490=_0x2ad778;super(),u(this,_0x1dd490(0x3a7),new v[(_0x1dd490(0x31c))](0x0)),u(this,'sessionStatus$',this[_0x1dd490(0x3a7)][_0x1dd490(0x1bd)]()),u(this,'_event$',new v[(_0x1dd490(0x2c6))]()),u(this,'event$',this[_0x1dd490(0x444)][_0x1dd490(0x1bd)]()),u(this,_0x1dd490(0x1b2)),u(this,_0x1dd490(0x341)),u(this,_0x1dd490(0x154)),(this['_unitID']=_0x26eaa3,this[_0x1dd490(0x46f)]=_0xa98b77,this[_0x1dd490(0x372)]=_0x41500e,this['_messageService']=_0x60addd,this[_0x1dd490(0x508)]=_0x4643d0,this['_localeService']=_0x1a33bf,this[_0x1dd490(0x278)]=_0x30a0e4,this['_commentService']=_0x20f570,_0x3481f9[_0x1dd490(0x502)](E[_0x1dd490(0x306)](this['dispose$']))[_0x1dd490(0x27c)](_0x894bc0=>{const _0x1fd920=_0x1dd490;var _0x571b20;typeof _0x894bc0>'u'||(this[_0x1fd920(0x1b2)]=_0x894bc0,_0x894bc0?(this[_0x1fd920(0x19d)](_0x894bc0),this['_socketMessageSubscription']=this[_0x1fd920(0x1b2)][_0x1fd920(0x230)][_0x1fd920(0x27c)](_0x42c7d2=>{const _0x39838c=_0x1fd920;_0x42c7d2[_0x39838c(0x4c1)]===this['_unitID']&&this[_0x39838c(0x452)](_0x42c7d2);})):(this['_sessionStatus$'][_0x1fd920(0x368)](0x2),(_0x571b20=this[_0x1fd920(0x341)])==null||_0x571b20[_0x1fd920(0x3ae)](),this[_0x1fd920(0x341)]=null));}),this[_0x1dd490(0x233)](this['_beforeCloseService'][_0x1dd490(0x416)](()=>{const _0x308b8b=_0x1dd490;var _0x18b57f;(_0x18b57f=this[_0x308b8b(0x1b2)])==null||_0x18b57f[_0x308b8b(0x424)]({'cmd':b[_0x308b8b(0x3b2)],'data':{'roomID':this[_0x308b8b(0x2bd)]}});})));}get[_0x2ad778(0x360)](){const _0x43f35c=_0x2ad778;return this[_0x43f35c(0x3a7)][_0x43f35c(0x261)]();}[_0x2ad778(0x505)](){var _0x4d7793,_0x4edf76;return(_0x4edf76=(_0x4d7793=this['_socket'])==null?void 0x0:_0x4d7793['memberID'])!=null?_0x4edf76:null;}[_0x2ad778(0x194)](){const _0x1a0a07=_0x2ad778;super['dispose'](),this['dispose$']['next'](),this[_0x1a0a07(0x46a)][_0x1a0a07(0x1df)]();}[_0x2ad778(0x4d6)](){const _0x16acc4=_0x2ad778;var _0x1b4cbd,_0x4b401e;(_0x1b4cbd=this[_0x16acc4(0x1b2)])==null||_0x1b4cbd[_0x16acc4(0x424)]({'cmd':b[_0x16acc4(0x3b2)],'data':{'roomID':this[_0x16acc4(0x2bd)]}}),this[_0x16acc4(0x444)]['complete'](),this['_sessionStatus$'][_0x16acc4(0x1df)](),(_0x4b401e=this[_0x16acc4(0x1b2)])==null||_0x4b401e[_0x16acc4(0x4d6)](),this['dispose']();}['_onCombEvent'](_0x482a84){const _0x2eb1d9=_0x2ad778;_0x482a84[_0x2eb1d9(0x36f)]===b[_0x2eb1d9(0x20b)]?this[_0x2eb1d9(0x147)](_0x482a84):_0x482a84[_0x2eb1d9(0x36f)]===b[_0x2eb1d9(0x3b5)]&&this[_0x2eb1d9(0x1ff)](_0x482a84);}[_0x2ad778(0x19d)](_0x1f7868){const _0x4fec67=_0x2ad778;this[_0x4fec67(0x3a7)][_0x4fec67(0x368)](0x1),_0x1f7868[_0x4fec67(0x424)]({'cmd':b['JOIN'],'routeKey':this[_0x4fec67(0x2bd)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4fec67(0x2bd)]}]}});}[_0x2ad778(0x147)](_0x12f5ed){const _0x5ba120=_0x2ad778;var _0x4ca32d;if(_0x12f5ed['code']===Be[_0x5ba120(0x342)]){this[_0x5ba120(0x1d0)][_0x5ba120(0x1c6)]({'type':Z[_0x5ba120(0x310)]['Warning'],'content':this['_localeService']['t'](_0x5ba120(0x428))}),this[_0x5ba120(0x3a7)]['next'](0x2);return;}this[_0x5ba120(0x3a7)][_0x5ba120(0x368)](0x3);const _0xdd3c55=(_0x4ca32d=_0x12f5ed[_0x5ba120(0x2f7)][_0x5ba120(0x142)][this[_0x5ba120(0x2bd)]])==null?void 0x0:_0x4ca32d[_0x5ba120(0x295)];_0xdd3c55&&_0xdd3c55['forEach'](_0x5d4f60=>this[_0x5ba120(0x278)][_0x5ba120(0x4c7)](this[_0x5ba120(0x2bd)],_0x5d4f60));}['_onRecvEvent'](_0x2d5ce9){const _0x159ffc=_0x2ad778;try{const _0xe6e983=_0x2d5ce9[_0x159ffc(0x2f7)];switch(_0xe6e983[_0x159ffc(0x318)]){case _['CollaborationEvent'][_0x159ffc(0x237)]:this[_0x159ffc(0x38a)](_0xe6e983),this[_0x159ffc(0x444)][_0x159ffc(0x368)](_0xe6e983);break;case _[_0x159ffc(0x4b9)]['USERS_LEAVE']:this[_0x159ffc(0x29f)](_0xe6e983),this[_0x159ffc(0x444)][_0x159ffc(0x368)](_0xe6e983);break;case _[_0x159ffc(0x4b9)]['CHANGESET_ACK']:this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x159ffc(0x368)](_0xe6e983);break;case _[_0x159ffc(0x4b9)]['MSG_FOR_ERROR']:this[_0x159ffc(0x46f)][_0x159ffc(0x191)](_0x159ffc(0x2f9)+JSON[_0x159ffc(0x146)](_0xe6e983)),this[_0x159ffc(0x444)][_0x159ffc(0x368)](_0xe6e983);break;case _[_0x159ffc(0x4b9)][_0x159ffc(0x3eb)]:this[_0x159ffc(0x462)][_0x159ffc(0x2df)](_0xe6e983[_0x159ffc(0x2f7)]),this[_0x159ffc(0x444)][_0x159ffc(0x368)](_0xe6e983);break;default:this[_0x159ffc(0x444)][_0x159ffc(0x368)](_0xe6e983);}}catch(_0x544e2f){this['_logService']['error'](_0x544e2f,_0x2d5ce9);}}['_onUserJoin'](_0x304095){const _0x166098=_0x2ad778;this[_0x166098(0x278)][_0x166098(0x4c7)](this[_0x166098(0x2bd)],_0x304095['data']);}[_0x2ad778(0x29f)](_0x4a52c9){const _0x2cefc4=_0x2ad778;this[_0x2cefc4(0x278)][_0x2cefc4(0x262)](this[_0x2cefc4(0x2bd)],_0x4a52c9[_0x2cefc4(0x2f7)][_0x2cefc4(0x1a9)]);}async[_0x2ad778(0x424)](_0x38d585,_0x30ffd3){const _0x4bcc41=_0x2ad778;if(this[_0x4bcc41(0x360)]!==0x3||!this['_socket'])throw new Error(_0x4bcc41(0x20e));try{_0x38d585['eventID']===_[_0x4bcc41(0x4b9)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x4bcc41(0x1b2)]['send']({'cmd':b['INGEST'],'routeKey':_0x30ffd3,'routeType':'','data':_0x38d585});}catch(_0x500dc8){this[_0x4bcc41(0x46f)][_0x4bcc41(0x191)](_0x500dc8);}}[_0x2ad778(0x23a)](){const _0x1ff1ac=_0x2ad778;var _0x3642b3;this[_0x1ff1ac(0x154)]=window[_0x1ff1ac(0x33a)](()=>{const _0x3a2244=_0x1ff1ac;this[_0x3a2244(0x154)]=null,this[_0x3a2244(0x1d0)][_0x3a2244(0x1c6)]({'type':Z[_0x3a2244(0x310)][_0x3a2244(0x4e8)],'content':this['_localeService']['t'](_0x3a2244(0x331))});},(_0x3642b3=this[_0x1ff1ac(0x508)]['getConfig'](ke))!=null?_0x3642b3:St);}[_0x2ad778(0x3ef)](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}},exports['CollaborationSession']=Et([P(0x2,o[_0x2ad778(0x2ac)]),P(0x3,M[_0x2ad778(0x4ac)]),P(0x4,M[_0x2ad778(0x253)]),P(0x5,o[_0x2ad778(0x4aa)]),P(0x6,o[_0x2ad778(0x143)](o[_0x2ad778(0x384)])),P(0x7,o[_0x2ad778(0x143)](W)),P(0x8,o[_0x2ad778(0x143)](Ve))],exports[_0x2ad778(0x228)]),exports[_0x2ad778(0x277)]=class extends o[_0x2ad778(0x299)]{constructor(_0x57762b,_0x5afd9f,_0x442bae,_0x522385,_0x5ae952,_0x5b0f40){const _0x54aaf9=_0x2ad778;super(),u(this,'_socket$',new v[(_0x54aaf9(0x31c))](void 0x0)),u(this,_0x54aaf9(0x23c),new Map()),u(this,_0x54aaf9(0x2d7),new v[(_0x54aaf9(0x31c))](0x0)),u(this,'status$',this[_0x54aaf9(0x2d7)][_0x54aaf9(0x1bd)]()),u(this,'_socketReady',!0x1),u(this,_0x54aaf9(0x20f)),u(this,'_timeoutTimer'),u(this,'_retryConnectingTimer'),u(this,'_retryCount',0x0),(this[_0x54aaf9(0x31d)]=_0x57762b,this[_0x54aaf9(0x4fd)]=_0x5afd9f,this[_0x54aaf9(0x1d0)]=_0x442bae,this[_0x54aaf9(0x46f)]=_0x522385,this[_0x54aaf9(0x508)]=_0x5ae952,this['_socketService']=_0x5b0f40);}get[_0x2ad778(0x1b2)](){const _0x38299e=_0x2ad778;return this[_0x38299e(0x1a0)][_0x38299e(0x261)]();}[_0x2ad778(0x194)](){const _0x1488be=_0x2ad778;super[_0x1488be(0x194)](),this[_0x1488be(0x23c)]['forEach'](_0x399b8e=>_0x399b8e[_0x1488be(0x194)]()),this[_0x1488be(0x23c)][_0x1488be(0x200)](),this['_status$'][_0x1488be(0x1df)]();}async[_0x2ad778(0x34a)](_0x5e9c7d){const _0xa3c976=_0x2ad778;if(this[_0xa3c976(0x23c)][_0xa3c976(0x44d)](_0x5e9c7d))return this[_0xa3c976(0x23c)][_0xa3c976(0x49d)](_0x5e9c7d);this[_0xa3c976(0x1f6)]();const _0x1c4af4=this[_0xa3c976(0x31d)][_0xa3c976(0x3b9)](exports['CollaborationSession'],_0x5e9c7d,this[_0xa3c976(0x1a0)][_0xa3c976(0x1bd)]());return this[_0xa3c976(0x23c)][_0xa3c976(0x20c)](_0x5e9c7d,_0x1c4af4),_0x1c4af4;}['closeSession'](_0x2c9406){const _0x5770e9=_0x2ad778;var _0x38169b;const _0xceb3f9=this[_0x5770e9(0x23c)][_0x5770e9(0x49d)](_0x2c9406);_0xceb3f9&&(this[_0x5770e9(0x23c)]['delete'](_0x2c9406),_0xceb3f9[_0x5770e9(0x4d6)]()),this[_0x5770e9(0x23c)][_0x5770e9(0x441)]||(_0x38169b=this[_0x5770e9(0x1b2)])==null||_0x38169b[_0x5770e9(0x4d6)]();}[_0x2ad778(0x4f5)](){const _0xb65a23=_0x2ad778;var _0x40c472;const _0x3c08e3=(_0x40c472=this[_0xb65a23(0x508)][_0xb65a23(0x39e)](ut))!=null?_0x40c472:Vt;return this[_0xb65a23(0x1d9)][_0xb65a23(0x31f)](_0x3c08e3);}['_tryEnsureSocket'](){const _0x457fea=_0x2ad778;try{const _0x54915d=this['_createSocket']();if(_0x54915d){const _0x4950bb=_0x54915d[_0x457fea(0x424)];_0x54915d[_0x457fea(0x424)]=_0x560c7a=>(this[_0x457fea(0x476)](),_0x4950bb['apply'](_0x54915d,[_0x560c7a])),_0x54915d['message$'][_0x457fea(0x27c)](_0x131e91=>this[_0x457fea(0x2b1)](_0x54915d,_0x131e91)),_0x54915d[_0x457fea(0x27d)]['pipe'](E[_0x457fea(0x3df)](0x1))['subscribe'](_0x1d30af=>this[_0x457fea(0x46f)][_0x457fea(0x191)](_0x457fea(0x3a5),_0x1d30af)),_0x54915d['open$']['pipe'](E[_0x457fea(0x3df)](0x1))[_0x457fea(0x27c)](()=>{const _0x3729d5=_0x457fea;this[_0x3729d5(0x203)](_0x54915d);}),_0x54915d[_0x457fea(0x252)]['pipe'](E[_0x457fea(0x3df)](0x1))[_0x457fea(0x27c)](_0x1446ab=>{const _0x575147=_0x457fea;this[_0x575147(0x46f)][_0x575147(0x484)](_0x575147(0x152),'socket\x20close',_0x1446ab),this['_onConnectionFailed']();});}}catch(_0x160b72){this[_0x457fea(0x46f)]['error'](_0x160b72),this['_onConnectionFailed']();}}[_0x2ad778(0x203)](_0x55402f){const _0x7465e6=_0x2ad778;this[_0x7465e6(0x46f)][_0x7465e6(0x484)](_0x7465e6(0x152),_0x7465e6(0x42d)),_0x55402f['send']({'cmd':b[_0x7465e6(0x3e9)]}),this[_0x7465e6(0x476)]();}[_0x2ad778(0x24f)](){const _0x1c93ee=_0x2ad778;var _0x27dbbf;this[_0x1c93ee(0x2d7)][_0x1c93ee(0x368)](0x2),this[_0x1c93ee(0x1a0)]['next'](null),this['_clearTimeoutTimer'](),this[_0x1c93ee(0x144)](),this[_0x1c93ee(0x34e)]=!0x1,this[_0x1c93ee(0x25b)]<((_0x27dbbf=this[_0x1c93ee(0x508)][_0x1c93ee(0x39e)](Kt))!=null?_0x27dbbf:Xt)?(this['_scheduleReconnection'](this[_0x1c93ee(0x25b)]),this[_0x1c93ee(0x25b)]+=0x1):this[_0x1c93ee(0x1d0)][_0x1c93ee(0x1c6)]({'type':Z[_0x1c93ee(0x310)][_0x1c93ee(0x4e8)],'content':this['_localeService']['t'](_0x1c93ee(0x322))});}[_0x2ad778(0x33c)](_0x48b0ef){const _0x8a7ee6=_0x2ad778;var _0x4045aa;const _0x25fdff=((_0x4045aa=this['_configService']['getConfig'](Gt))!=null?_0x4045aa:Yt)*0x2**_0x48b0ef;this[_0x8a7ee6(0x1d0)][_0x8a7ee6(0x1c6)]({'type':Z[_0x8a7ee6(0x310)][_0x8a7ee6(0x4ff)],'content':this[_0x8a7ee6(0x4fd)]['t'](_0x8a7ee6(0x160))}),this[_0x8a7ee6(0x47c)]=setTimeout(()=>{const _0x5a1384=_0x8a7ee6;this['_tryEnsureSocket'](),clearTimeout(this[_0x5a1384(0x47c)]),this[_0x5a1384(0x47c)]=null;},_0x25fdff);}['_rescheduleHeartbeatEvent'](){const _0x50fa80=_0x2ad778;var _0x19fd0e;this[_0x50fa80(0x144)](),this[_0x50fa80(0x20f)]=setTimeout(()=>this[_0x50fa80(0x3d8)](),(_0x19fd0e=this[_0x50fa80(0x508)][_0x50fa80(0x39e)](dt))!=null?_0x19fd0e:Wt);}[_0x2ad778(0x3d8)](){const _0xce183a=_0x2ad778;this[_0xce183a(0x1b2)][_0xce183a(0x424)]({'cmd':b[_0xce183a(0x185)]}),this[_0xce183a(0x35d)]();}[_0x2ad778(0x35d)](){const _0x5a3122=_0x2ad778;var _0x538a3d;this['_timeoutTimer']=setTimeout(()=>this[_0x5a3122(0x24f)](),(_0x538a3d=this[_0x5a3122(0x508)][_0x5a3122(0x39e)](ke))!=null?_0x538a3d:St);}[_0x2ad778(0x2b1)](_0x3db6e3,_0x5b93bb){const _0x5e11c7=_0x2ad778,{cmd:_0x28a31c}=_0x5b93bb;_0x28a31c===b[_0x5e11c7(0x3e9)]&&!this[_0x5e11c7(0x34e)]&&(_0x3db6e3[_0x5e11c7(0x1a9)]=_0x5b93bb['data'][_0x5e11c7(0x1a9)],this[_0x5e11c7(0x1a0)][_0x5e11c7(0x368)](_0x3db6e3),this['_status$'][_0x5e11c7(0x368)](0x3),this[_0x5e11c7(0x34e)]=!0x0),_0x28a31c===b['HEARTBEAT']&&this[_0x5e11c7(0x28c)](),this[_0x5e11c7(0x476)]();}['_clearHeartbeatTimer'](){const _0x1ef1dc=_0x2ad778;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x1ef1dc(0x20f)]),this[_0x1ef1dc(0x20f)]=null);}[_0x2ad778(0x28c)](){const _0x1fcf6c=_0x2ad778;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x1fcf6c(0x188)]),this['_timeoutTimer']=null);}},exports[_0x2ad778(0x277)]=Et([P(0x0,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),P(0x1,o['Inject'](o[_0x2ad778(0x384)])),P(0x2,M['IMessageService']),P(0x3,o[_0x2ad778(0x2ac)]),P(0x4,o['IConfigService']),P(0x5,Fe)],exports[_0x2ad778(0x277)]);var cs=Object['defineProperty'],ls=Object[_0x2ad778(0x16e)],hs=(_0xc9043c,_0x14df0a,_0x56a8bf,_0x1704e2)=>{const _0x4487ec=_0x2ad778;for(var _0x372244=_0x1704e2>0x1?void 0x0:_0x1704e2?ls(_0x14df0a,_0x56a8bf):_0x14df0a,_0x14eca8=_0xc9043c[_0x4487ec(0x32e)]-0x1,_0x490d4f;_0x14eca8>=0x0;_0x14eca8--)(_0x490d4f=_0xc9043c[_0x14eca8])&&(_0x372244=(_0x1704e2?_0x490d4f(_0x14df0a,_0x56a8bf,_0x372244):_0x490d4f(_0x372244))||_0x372244);return _0x1704e2&&_0x372244&&cs(_0x14df0a,_0x56a8bf,_0x372244),_0x372244;},se=(_0x5c5b74,_0x187328)=>(_0x243e53,_0x50c2ca)=>_0x187328(_0x243e53,_0x50c2ca,_0x5c5b74);exports['LocalCacheService']=class extends o[_0x2ad778(0x299)]{constructor(_0x350de9,_0x5e6dd0,_0x1148c1,_0x2792f9,_0x3e3442){const _0x191a66=_0x2ad778;super(),u(this,'_cachedData',new Map()),u(this,_0x191a66(0x2be),new Map()),u(this,'_disabled',!0x1),(this[_0x191a66(0x508)]=_0x350de9,this[_0x191a66(0x4d4)]=_0x5e6dd0,this[_0x191a66(0x372)]=_0x1148c1,this['_localeService']=_0x2792f9,this[_0x191a66(0x43c)]=_0x3e3442,this['_setupBeforeClosingHandler']());}[_0x2ad778(0x436)](){const _0x3026cd=_0x2ad778;this[_0x3026cd(0x3e0)]=!0x0;}['enableLocalCache'](){const _0xe1f6af=_0x2ad778;this[_0xe1f6af(0x3e0)]=!0x1;}['dispose'](){const _0x45c5fa=_0x2ad778;this[_0x45c5fa(0x43b)]()[_0x45c5fa(0x22e)](()=>super[_0x45c5fa(0x194)]());}async[_0x2ad778(0x4bf)](_0x460111){const _0x9bcde1=_0x2ad778;return this[_0x9bcde1(0x3e0)]?null:this[_0x9bcde1(0x4d4)][_0x9bcde1(0x475)](Je(_0x460111));}async[_0x2ad778(0x1d3)](_0x566d8b,_0x1dc6ec){const _0x354ed1=_0x2ad778;return!!this[_0x354ed1(0x4d4)]['setItem'](_0x566d8b,_0x1dc6ec);}[_0x2ad778(0x181)](_0x287064,_0x1b5ba5,_0x7c24a0,_0x363baa){const _0x54999d=_0x2ad778,_0x4f8bb4=this[_0x54999d(0x43c)][_0x54999d(0x3a9)](_0x287064);this[_0x54999d(0x3e6)][_0x54999d(0x20c)](_0x287064,{'unitID':_0x287064,'type':_0x1b5ba5,'awaitingChangeset':_0x7c24a0,'mutations':_0x363baa,'rev':_0x4f8bb4}),this[_0x54999d(0x2be)][_0x54999d(0x44d)](_0x287064)||this[_0x54999d(0x19a)](_0x287064);}['_scheduleSaving'](_0x5d328f){const _0x35e79f=_0x2ad778,_0x5aedab=this[_0x35e79f(0x4c5)]();_0x5aedab===0x0?this[_0x35e79f(0x3ea)](_0x5d328f):this[_0x35e79f(0x2be)][_0x35e79f(0x20c)](_0x5d328f,setTimeout(()=>this[_0x35e79f(0x3ea)](_0x5d328f),_0x5aedab));}['_getSaveTimeout'](){const _0x105ad4=_0x2ad778;var _0x325853;return(_0x325853=this['_configService'][_0x105ad4(0x39e)](vt))!=null?_0x325853:qt;}[_0x2ad778(0x3ea)](_0x3c739e){const _0x709b75=_0x2ad778,_0x3f0f67=this['_saveTaskMap']['get'](_0x3c739e);return _0x3f0f67!==void 0x0&&window['clearTimeout'](_0x3f0f67),this[_0x709b75(0x4d4)][_0x709b75(0x2b7)](Je(_0x3c739e),this[_0x709b75(0x3e6)][_0x709b75(0x49d)](_0x3c739e))[_0x709b75(0x22e)](()=>this[_0x709b75(0x2be)]['delete'](_0x3c739e));}async['_exhaustSavingTask'](){const _0x60b3c1=_0x2ad778,_0x1c7f18=[];this[_0x60b3c1(0x2be)][_0x60b3c1(0x169)]((_0x243dba,_0x15809f)=>{const _0x4084d4=_0x60b3c1;window[_0x4084d4(0x333)](_0x243dba),_0x1c7f18[_0x4084d4(0x363)](this['_saveCache'](_0x15809f)['then'](()=>{const _0x357267=_0x4084d4;this[_0x357267(0x2be)][_0x357267(0x40a)](_0x15809f);}));}),await Promise[_0x60b3c1(0x2ce)](_0x1c7f18);}[_0x2ad778(0x405)](){const _0x530003=_0x2ad778;this[_0x530003(0x233)](this['_beforeCloseService'][_0x530003(0x4e2)](()=>{const _0x378781=_0x530003;if(this[_0x378781(0x2be)][_0x378781(0x441)])return this[_0x378781(0x4fd)]['t'](_0x378781(0x3f0));}));}},exports[_0x2ad778(0x1eb)]=hs([se(0x0,o[_0x2ad778(0x4aa)]),se(0x1,o['ILocalStorageService']),se(0x2,M[_0x2ad778(0x4ac)]),se(0x3,o['Inject'](o['LocaleService'])),se(0x4,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)]))],exports[_0x2ad778(0x1eb)]);function Je(_0x2b1ac7){return'unit-cache-'+_0x2b1ac7;}const Ee=o[_0x2ad778(0x241)](_0x2ad778(0x4c4));var Ct=(_0x425d95=>(_0x425d95[_0x425d95['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2ad778(0x2d5),_0x425d95[_0x425d95[_0x2ad778(0x4ce)]=0x1]=_0x2ad778(0x4ce),_0x425d95))(Ct||{});const ze=0x7530,Ze=_0x2ad778(0x33e);class _s extends o[_0x2ad778(0x299)]{constructor(){const _0x2c0344=_0x2ad778;super(),u(this,'_id',o['Tools'][_0x2c0344(0x4db)]()),u(this,_0x2c0344(0x2a9),new Set()),u(this,_0x2c0344(0x37b),new Map()),u(this,_0x2c0344(0x3fa),null),u(this,_0x2c0344(0x18b),new Map()),u(this,_0x2c0344(0x211),new Map()),this[_0x2c0344(0x3c3)]();}['dispose'](){const _0x4a94db=_0x2ad778;super[_0x4a94db(0x194)](),this[_0x4a94db(0x18b)]['forEach']((_0x198932,_0x211a29)=>this[_0x4a94db(0x4ae)](_0x211a29)),this[_0x4a94db(0x3fa)]&&window['clearInterval'](this[_0x4a94db(0x3fa)]);}[_0x2ad778(0x21a)](_0x47994b){const _0xa5b002=_0x2ad778;return this[_0xa5b002(0x297)](_0x47994b)[_0xa5b002(0x502)](v['distinctUntilChanged']());}['editingUnit'](_0x449d6b){const _0x4b3609=_0x2ad778;this['_selfUnitIDs'][_0x4b3609(0x441)]===0x0&&this[_0x4b3609(0x1d1)](),this[_0x4b3609(0x2a9)][_0x4b3609(0x459)](_0x449d6b),this[_0x4b3609(0x2d3)]({'type':0x0,'memberID':this[_0x4b3609(0x236)],'unitIDs':[_0x449d6b],'isForwarded':!0x1});}[_0x2ad778(0x207)](_0x48de72){const _0x46b5bf=_0x2ad778;this[_0x46b5bf(0x2a9)][_0x46b5bf(0x40a)](_0x48de72),this[_0x46b5bf(0x2a9)][_0x46b5bf(0x441)]===0x0&&this[_0x46b5bf(0x3fa)]&&window[_0x46b5bf(0x4d3)](this['_heartbeatTimer']);}['_init'](){const _0x2ce994=_0x2ad778;this['disposeWithMe'](o[_0x2ce994(0x1e7)](v[_0x2ce994(0x4c9)](window,'storage')['subscribe'](_0x1be933=>{const _0x922869=_0x2ce994;if(_0x1be933[_0x922869(0x16f)]!==Ze||!_0x1be933['newValue'])return;const _0x2dca7f=JSON[_0x922869(0x34f)](_0x1be933[_0x922869(0x149)]);this['_handleEvent'](_0x2dca7f);}))),window[_0x2ce994(0x2e9)](_0x2ce994(0x162),()=>this[_0x2ce994(0x2d3)]({'type':0x1,'memberID':this[_0x2ce994(0x236)],'unitIDs':Array[_0x2ce994(0x3b4)](this[_0x2ce994(0x2a9)])}));}[_0x2ad778(0x23b)](_0x581ab2){const _0x3bcbad=_0x2ad778;switch(_0x581ab2[_0x3bcbad(0x348)]){case 0x0:this[_0x3bcbad(0x3ee)](_0x581ab2);break;case 0x1:this[_0x3bcbad(0x473)](_0x581ab2);break;case 0x2:this['_handleHeartbeatEvent'](_0x581ab2);break;}}[_0x2ad778(0x3ee)](_0x8a35c7){const _0x1d37af=_0x2ad778,{unitIDs:_0xa9900f,memberID:_0x4109af,isForwarded:_0x22a91d}=_0x8a35c7;_0xa9900f['forEach'](_0x93f515=>{const _0x59ac72=_0x379e;if(!_0x22a91d&&this['_unitOnClients']['has'](_0x93f515)&&this[_0x59ac72(0x297)](_0x93f515)[_0x59ac72(0x368)](0x1),!this[_0x59ac72(0x37b)][_0x59ac72(0x44d)](_0x93f515)||!this[_0x59ac72(0x37b)][_0x59ac72(0x49d)](_0x93f515)['has'](_0x4109af)){const _0x536aae=this[_0x59ac72(0x37b)]['get'](_0x93f515)||new Set();_0x536aae['add'](_0x4109af),this[_0x59ac72(0x37b)][_0x59ac72(0x20c)](_0x93f515,_0x536aae),this[_0x59ac72(0x4dd)](_0x4109af);}}),_0x22a91d||this[_0x1d37af(0x2d3)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2ad778(0x4dd)](_0x9df082){const _0x1b51e6=_0x2ad778;this[_0x1b51e6(0x4ae)](_0x9df082);const _0x25db1f=window[_0x1b51e6(0x33a)](()=>{const _0x11c56e=_0x1b51e6;this[_0x11c56e(0x37b)][_0x11c56e(0x169)](_0x563de=>{_0x563de['delete'](_0x9df082);});},ze*0x2);this[_0x1b51e6(0x18b)][_0x1b51e6(0x20c)](_0x9df082,_0x25db1f);}['_removeClearOtherTimer'](_0x590de4){const _0x270259=_0x2ad778;if(this[_0x270259(0x18b)][_0x270259(0x44d)](_0x590de4)){const _0x41e590=this[_0x270259(0x18b)][_0x270259(0x49d)](_0x590de4);_0x41e590&&window['clearTimeout'](_0x41e590),this[_0x270259(0x18b)]['set'](_0x590de4,null);}}[_0x2ad778(0x473)](_0x11bf2e){const _0x2bc5ca=_0x2ad778,{memberID:_0x14d342,unitIDs:_0x9a8587}=_0x11bf2e;_0x9a8587[_0x2bc5ca(0x169)](_0x54d2f6=>{const _0x46a041=_0x2bc5ca;var _0x1b32e8;const _0x3c805e=this['_unitOnClients'][_0x46a041(0x49d)](_0x54d2f6);_0x3c805e&&(_0x3c805e['delete'](_0x14d342),(_0x1b32e8=this[_0x46a041(0x297)](_0x54d2f6))==null||_0x1b32e8[_0x46a041(0x368)](_0x3c805e[_0x46a041(0x441)]===0x0?0x0:0x1));}),this[_0x2bc5ca(0x4ae)](_0x14d342);}['_handleHeartbeatEvent'](_0x539092){const _0x196e6a=_0x2ad778;this[_0x196e6a(0x4dd)](_0x539092[_0x196e6a(0x1a9)]);}[_0x2ad778(0x2d3)](_0x1cba8e){const _0x45fe72=_0x2ad778;localStorage[_0x45fe72(0x2b7)](Ze,JSON[_0x45fe72(0x146)](_0x1cba8e));}['_scheduleHeartbeat'](){const _0x493e12=_0x2ad778;this[_0x493e12(0x3fa)]=window[_0x493e12(0x3d2)](()=>{const _0x2664e4=_0x493e12;this[_0x2664e4(0x2d3)]({'type':0x2,'memberID':this['_id']});},ze);}[_0x2ad778(0x297)](_0x2d6abf){const _0x3823f4=_0x2ad778;return this[_0x3823f4(0x211)][_0x3823f4(0x44d)](_0x2d6abf)||this[_0x3823f4(0x211)]['set'](_0x2d6abf,new v[(_0x3823f4(0x31c))](0x0)),this['_unitStatus'][_0x3823f4(0x49d)](_0x2d6abf);}}var us=Object[_0x2ad778(0x4be)],ds=Object[_0x2ad778(0x16e)],Ss=(_0x165c1c,_0x11225f,_0x554b58,_0x2e5f26)=>{for(var _0x216a08=_0x2e5f26>0x1?void 0x0:_0x2e5f26?ds(_0x11225f,_0x554b58):_0x11225f,_0x1cb92b=_0x165c1c['length']-0x1,_0x15a584;_0x1cb92b>=0x0;_0x1cb92b--)(_0x15a584=_0x165c1c[_0x1cb92b])&&(_0x216a08=(_0x2e5f26?_0x15a584(_0x11225f,_0x554b58,_0x216a08):_0x15a584(_0x216a08))||_0x216a08);return _0x2e5f26&&_0x216a08&&us(_0x11225f,_0x554b58,_0x216a08),_0x216a08;},Qe=(_0x48a6a6,_0x1e75de)=>(_0x2235b6,_0x31520e)=>_0x1e75de(_0x2235b6,_0x31520e,_0x48a6a6);let ge=class{constructor(_0x452017,_0x5bdf43){const _0x10e28c=_0x2ad778;this['_injector']=_0x452017,this[_0x10e28c(0x258)]=_0x5bdf43;}[_0x2ad778(0x232)](_0x200044){const _0x2a4d9f=_0x2ad778;this[_0x2a4d9f(0x27b)](_0x200044),this[_0x2a4d9f(0x417)](_0x200044);}[_0x2ad778(0x255)](_0x22ddd7){const _0x5e0782=_0x2ad778,_0x54795e=this[_0x5e0782(0x31d)][_0x5e0782(0x49d)](L['IMEInputManagerService']),{redoCache:_0x4277b9}=_0x54795e[_0x5e0782(0x3d3)]();if(_0x4277b9['length']===0x0)return _0x22ddd7;let _0x1fb48f=o[_0x5e0782(0x3e8)]['deepClone'](_0x22ddd7['mutations'][0x0]);for(let _0x2b7f26=0x0;_0x2b7f26<_0x4277b9['length'];_0x2b7f26++){const _0x995123={'id':_0x5e0782(0x30b),'params':{..._0x4277b9[_0x2b7f26]}},_0x471b42=this[_0x5e0782(0x258)]['transformMutation'](_0x1fb48f,_0x995123,!0x1);if(_['isTransformMutationFailure'](_0x471b42))throw _0x471b42[_0x5e0782(0x191)];_0x1fb48f=_0x471b42['m1Prime'];}return{...o['Tools'][_0x5e0782(0x3a4)](_0x22ddd7),'mutations':[_0x1fb48f]};}[_0x2ad778(0x27b)](_0x4085d9){const _0x552ed0=_0x2ad778,_0x35305e=this[_0x552ed0(0x31d)][_0x552ed0(0x49d)](L['IMEInputManagerService']),{undoCache:_0x81b445,redoCache:_0x3b7cbe}=_0x35305e[_0x552ed0(0x3d3)]();if(_0x81b445[_0x552ed0(0x32e)]===0x0||_0x3b7cbe[_0x552ed0(0x32e)]===0x0)return;const _0x3cf8ae=[],_0x21a4fb=[];let _0x5ef7f9=o[_0x552ed0(0x3e8)]['deepClone'](_0x4085d9['mutations'][0x0]),_0x30b3cd=o[_0x552ed0(0x3e8)]['deepClone'](_0x4085d9[_0x552ed0(0x3da)][0x0]);for(let _0x340cfa=_0x81b445[_0x552ed0(0x32e)]-0x1;_0x340cfa>=0x0;_0x340cfa--){const _0x5e43da={'id':_0x552ed0(0x30b),'params':{..._0x81b445[_0x340cfa]}},_0x225d86={'id':_0x552ed0(0x30b),'params':{..._0x3b7cbe[_0x340cfa]}},_0x16d92c=this[_0x552ed0(0x258)][_0x552ed0(0x327)](_0x5ef7f9,_0x5e43da,!0x1),_0x3474ef=this[_0x552ed0(0x258)][_0x552ed0(0x327)](_0x30b3cd,_0x225d86,!0x1);if(_['isTransformMutationFailure'](_0x16d92c))throw _0x16d92c['error'];if(_['isTransformMutationFailure'](_0x3474ef))throw _0x3474ef[_0x552ed0(0x191)];_0x3cf8ae[_0x552ed0(0x430)](_0x16d92c[_0x552ed0(0x29e)][_0x552ed0(0x1ba)]),_0x21a4fb['unshift'](_0x3474ef[_0x552ed0(0x29e)]['params']),_0x5ef7f9=_0x16d92c['m1Prime'],_0x30b3cd=_0x3474ef[_0x552ed0(0x23f)];}_0x35305e['setUndoRedoMutationParamsCache']({'undoCache':_0x3cf8ae,'redoCache':_0x21a4fb});}['_transformPreviousActiveRange'](_0x31fc4b){const _0x51da0d=_0x2ad778,_0x41dee0=this[_0x51da0d(0x31d)][_0x51da0d(0x49d)](L['IMEInputManagerService']),_0xea6eeb=_0x41dee0[_0x51da0d(0x338)]();if(_0xea6eeb==null)return;const _0x14fecc=[{'id':_0x51da0d(0x30b),'params':{'unitId':_0x31fc4b['unitID'],'actions':null,'textRanges':[_0xea6eeb]}}],_0x1a7685=this['_transformService'][_0x51da0d(0x18a)](_0x31fc4b,_0x14fecc);if(!_[_0x51da0d(0x2bf)](_0x1a7685))throw _0x1a7685[_0x51da0d(0x191)];const _0x597827=_0x1a7685[_0x51da0d(0x29e)][0x0]['params'][_0x51da0d(0x15a)];Array[_0x51da0d(0x3b6)](_0x597827)&&_0x597827[_0x51da0d(0x32e)]&&_0x41dee0[_0x51da0d(0x2da)](_0x597827[0x0]);}};ge=Ss([Qe(0x0,o[_0x2ad778(0x143)](o['Injector'])),Qe(0x1,_[_0x2ad778(0x4a5)])],ge);var vs=Object[_0x2ad778(0x4be)],gs=Object[_0x2ad778(0x16e)],fs=(_0x23e55f,_0x402bff,_0x54827b,_0x1cccf2)=>{const _0x5592e9=_0x2ad778;for(var _0xb1b8c7=_0x1cccf2>0x1?void 0x0:_0x1cccf2?gs(_0x402bff,_0x54827b):_0x402bff,_0x11e71d=_0x23e55f[_0x5592e9(0x32e)]-0x1,_0x4f0357;_0x11e71d>=0x0;_0x11e71d--)(_0x4f0357=_0x23e55f[_0x11e71d])&&(_0xb1b8c7=(_0x1cccf2?_0x4f0357(_0x402bff,_0x54827b,_0xb1b8c7):_0x4f0357(_0xb1b8c7))||_0xb1b8c7);return _0x1cccf2&&_0xb1b8c7&&vs(_0x402bff,_0x54827b,_0xb1b8c7),_0xb1b8c7;},et=(_0x3bb8dd,_0x3af801)=>(_0x596768,_0x355a09)=>_0x3af801(_0x596768,_0x355a09,_0x3bb8dd);let fe=class{constructor(_0x4ca221,_0x475da2){const _0x2e301a=_0x2ad778;this[_0x2e301a(0x31d)]=_0x4ca221,this[_0x2e301a(0x258)]=_0x475da2;}[_0x2ad778(0x49e)](_0x17f209){const _0x5173a9=_0x2ad778;var _0x4b7352;const _0x462982=this['_injector'][_0x5173a9(0x49d)](L[_0x5173a9(0x187)]),_0x28e818=(_0x4b7352=_0x462982[_0x5173a9(0x202)]())!=null?_0x4b7352:[],_0x11a47b=_0x28e818==null?void 0x0:_0x28e818[_0x5173a9(0x2c7)](L[_0x5173a9(0x218)]);if(_0x11a47b[_0x5173a9(0x32e)]===0x0)return;const _0x20ed4f=[{'id':_0x5173a9(0x30b),'params':{'unitId':_0x17f209[_0x5173a9(0x422)],'actions':null,'textRanges':_0x11a47b}}],_0x27f4a7=this[_0x5173a9(0x258)][_0x5173a9(0x18a)](_0x17f209,_0x20ed4f);if(!_[_0x5173a9(0x2bf)](_0x27f4a7))throw _0x27f4a7[_0x5173a9(0x191)];const _0xd3bfd9=_0x27f4a7[_0x5173a9(0x29e)][0x0][_0x5173a9(0x1ba)]['textRanges'];Array[_0x5173a9(0x3b6)](_0xd3bfd9)&&_0xd3bfd9[_0x5173a9(0x32e)]&&_0x462982[_0x5173a9(0x2d6)](_0xd3bfd9,!0x1);}};fe=fs([et(0x0,o[_0x2ad778(0x143)](o['Injector'])),et(0x1,_[_0x2ad778(0x4a5)])],fe);function bt(_0x535b05){const _0x4eacd2=_0x2ad778;let _0x4738a8='';for(const _0xda8a44 of _0x535b05){const {startOffset:_0x7435b8,endOffset:_0x3c310c,isActive:_0x5644ec}=_0xda8a44;_0x4738a8[_0x4eacd2(0x32e)]&&(_0x4738a8+=','),_0x4738a8+=_0x7435b8+':'+_0x3c310c+':'+(_0x5644ec?'1':'0');}return _0x4738a8;}function ms(_0x45c99e){const _0x4509aa=_0x2ad778,_0x2c9b09=_0x45c99e[_0x4509aa(0x267)](','),_0x43412c=[];for(const _0x40286d of _0x2c9b09){const [_0x418f19,_0xea2a7e,_0x522f7f]=_0x40286d[_0x4509aa(0x267)](':');_0x43412c['push']({'startOffset':Number(_0x418f19),'endOffset':Number(_0xea2a7e),'collapsed':_0x418f19===_0xea2a7e,'isActive':_0x522f7f==='1'});}return _0x43412c['some'](_0x88feef=>_0x88feef[_0x4509aa(0x22f)])||(_0x43412c[0x0][_0x4509aa(0x22f)]=!0x0),_0x43412c;}class We extends o[_0x2ad778(0x30e)]{constructor(){const _0x457fb6=_0x2ad778;super(...arguments),u(this,_0x457fb6(0x307),new v[(_0x457fb6(0x31c))](null)),u(this,_0x457fb6(0x199),this[_0x457fb6(0x307)][_0x457fb6(0x1bd)]());}[_0x2ad778(0x40c)](_0x4bd423){const _0x5eb977=_0x2ad778,{unitID:_0x4834c9,memberID:_0x2b71c2,textRanges:_0xecaaca}=_0x4bd423,_0x122790=bt(_0xecaaca),_0x537ffa={'unitID':_0x4834c9,'memberID':_0x2b71c2,'selection':_0x122790};this[_0x5eb977(0x307)][_0x5eb977(0x368)](_0x537ffa);}}var Is=Object[_0x2ad778(0x4be)],ps=Object[_0x2ad778(0x16e)],Es=(_0x36a1b0,_0x24a2f1,_0x4abcf8,_0x107f7d)=>{for(var _0x4b9565=_0x107f7d>0x1?void 0x0:_0x107f7d?ps(_0x24a2f1,_0x4abcf8):_0x24a2f1,_0x7a6709=_0x36a1b0['length']-0x1,_0x583ff2;_0x7a6709>=0x0;_0x7a6709--)(_0x583ff2=_0x36a1b0[_0x7a6709])&&(_0x4b9565=(_0x107f7d?_0x583ff2(_0x24a2f1,_0x4abcf8,_0x4b9565):_0x583ff2(_0x4b9565))||_0x4b9565);return _0x107f7d&&_0x4b9565&&Is(_0x24a2f1,_0x4abcf8,_0x4b9565),_0x4b9565;},tt=(_0x10723b,_0x46b21b)=>(_0xbdfe98,_0x1e3f00)=>_0x46b21b(_0xbdfe98,_0x1e3f00,_0x10723b);function Cs(_0xed495f){const {unitID:_0x52d002,mutations:_0x10466b}=_0xed495f;return{'unitId':_0x52d002,'subUnitId':_0x10466b[0x0]['params']['subUnitId']};}let me=class{constructor(_0x30dcc1,_0x4ae7cc){const _0x418e8a=_0x2ad778;this[_0x418e8a(0x31d)]=_0x30dcc1,this['_transformService']=_0x4ae7cc;}[_0x2ad778(0x49e)](_0x11c549){const _0x26465d=_0x2ad778;var _0xce9748,_0x1c5077,_0x1b3c24;const _0x26c3f9=this[_0x26465d(0x31d)]['get'](p['SheetsSelectionsService']),{unitId:_0x18bf04,subUnitId:_0x5c41fc}=Cs(_0x11c549),_0x142daa=_0x26c3f9[_0x26465d(0x345)](_0x18bf04)[_0x26465d(0x202)]();if(_0x142daa[_0x26465d(0x32e)]===0x0||!_0x18bf04||!_0x5c41fc)return;const _0xa75b2f=[{'id':p[_0x26465d(0x311)]['id'],'params':{'unitId':_0x18bf04,'subUnitId':_0x5c41fc,'selections':o[_0x26465d(0x3e8)]['deepClone'](_0x142daa)}}],_0x4408a3=this[_0x26465d(0x258)][_0x26465d(0x18a)](_0x11c549,_0xa75b2f);if(!_[_0x26465d(0x2bf)](_0x4408a3))throw _0x4408a3['error'];const _0x18d262=(_0x1b3c24=(_0x1c5077=(_0xce9748=_0x4408a3[_0x26465d(0x29e)][0x0])==null?void 0x0:_0xce9748[_0x26465d(0x1ba)])==null?void 0x0:_0x1c5077[_0x26465d(0x46e)])!=null?_0x1b3c24:_0x142daa;Array[_0x26465d(0x3b6)](_0x18d262)&&_0x18d262[_0x26465d(0x32e)]&&this[_0x26465d(0x31d)][_0x26465d(0x49d)](o[_0x26465d(0x4e4)])[_0x26465d(0x2a6)](p['SetSelectionsOperation']['id'],{'unitId':_0x18bf04,'subUnitId':_0x5c41fc,'selections':_0x18d262});}};me=Es([tt(0x0,o['Inject'](o[_0x2ad778(0x26c)])),tt(0x1,_['ITransformService'])],me);const bs=new Set([p['InsertSheetMutation']['id']]);function Ts(_0x5c38b6,_0x2c72ef,_0x38e7f8,_0x26b208,_0x587299){const _0x11c071=_0x2ad778;var _0x1a582d,_0x21d94f,_0x42775a,_0x540757;const _0x5a27f3=[];for(const _0x4dcb1c of _0x5c38b6)if(bs[_0x11c071(0x44d)](_0x4dcb1c['id'])){if(_0x5a27f3[_0x11c071(0x32e)]>0x0)break;_0x5a27f3[_0x11c071(0x363)](_0x4dcb1c);break;}else _0x5a27f3['push'](_0x4dcb1c);const _0x8d3365=(_0x21d94f=(_0x1a582d=_0x587299[_0x11c071(0x433)]())==null?void 0x0:_0x1a582d[_0x11c071(0x40e)])!=null?_0x21d94f:_0x11c071(0x1b3),_0x646b1b=(_0x540757=(_0x42775a=_0x587299['getCurrentUser']())==null?void 0x0:_0x42775a[_0x11c071(0x1a9)])!=null?_0x540757:_0x11c071(0x1b3);return{'changeset':{'unitID':_0x2c72ef,'type':_['mapDocumentTypeToUniverType'](_0x38e7f8[_0x11c071(0x2bc)](_0x2c72ef)),'baseRev':_0x26b208[_0x11c071(0x3a9)](_0x2c72ef),'revision':0x0,'userID':_0x8d3365,'memberID':_0x646b1b,'mutations':_0x5a27f3},'pendingMutations':_0x5c38b6[_0x11c071(0x37a)](_0x5a27f3[_0x11c071(0x32e)])};}function Rs(_0x58c8a5,_0x3f3d36,_0x27a1a5,_0x4af8c2,_0x2013ed){const _0x216a82=_0x2ad778;var _0x45e06a,_0x5512b0,_0x594895,_0x5bb706;const _0x5e6af7=[_0x58c8a5[_0x216a82(0x4fe)]((_0x44d56c,_0x318899)=>{const _0x3e477c=_0x216a82;var _0x258171;const {id:_0x236530}=_0x44d56c,{id:_0x189475,type:_0x52354c}=_0x318899,_0x5e0eca=(_0x258171=_0x44d56c['params'])!=null?_0x258171:{'actions':null},_0x28b3d4=_0x318899[_0x3e477c(0x1ba)];if(_0x236530&&_0x236530!==_0x189475)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x236530+_0x3e477c(0x32b)+_0x189475+'.');return{..._0x44d56c,'id':_0x189475,'type':_0x52354c,'params':{'unitId':_0x28b3d4[_0x3e477c(0x353)],'textRanges':_0x28b3d4[_0x3e477c(0x15a)],'actions':o[_0x3e477c(0x2c0)][_0x3e477c(0x31e)](_0x5e0eca[_0x3e477c(0x2fd)],_0x28b3d4[_0x3e477c(0x2fd)])}};},{})],_0x459093=(_0x5512b0=(_0x45e06a=_0x2013ed[_0x216a82(0x433)]())==null?void 0x0:_0x45e06a[_0x216a82(0x40e)])!=null?_0x5512b0:'unknown',_0x211ff2=(_0x5bb706=(_0x594895=_0x2013ed['getCurrentUser']())==null?void 0x0:_0x594895['memberID'])!=null?_0x5bb706:_0x216a82(0x1b3);return{'changeset':{'unitID':_0x3f3d36,'type':_[_0x216a82(0x186)](_0x27a1a5[_0x216a82(0x2bc)](_0x3f3d36)),'baseRev':_0x4af8c2[_0x216a82(0x3a9)](_0x3f3d36),'revision':0x0,'userID':_0x459093,'memberID':_0x211ff2,'mutations':_0x5e6af7},'pendingMutations':[]};}var Os=Object[_0x2ad778(0x4be)],Ds=Object[_0x2ad778(0x16e)],Y=(_0x27ea5b,_0x242086,_0x3e8914,_0xfc4c55)=>{const _0x5582fd=_0x2ad778;for(var _0x472d8d=_0xfc4c55>0x1?void 0x0:_0xfc4c55?Ds(_0x242086,_0x3e8914):_0x242086,_0x1a6d2d=_0x27ea5b[_0x5582fd(0x32e)]-0x1,_0x260253;_0x1a6d2d>=0x0;_0x1a6d2d--)(_0x260253=_0x27ea5b[_0x1a6d2d])&&(_0x472d8d=(_0xfc4c55?_0x260253(_0x242086,_0x3e8914,_0x472d8d):_0x260253(_0x472d8d))||_0x472d8d);return _0xfc4c55&&_0x472d8d&&Os(_0x242086,_0x3e8914,_0x472d8d),_0x472d8d;},g=(_0x5a2044,_0x49a537)=>(_0x252c42,_0x7a3d36)=>_0x49a537(_0x252c42,_0x7a3d36,_0x5a2044),D=(_0x5ec58c=>(_0x5ec58c[_0x2ad778(0x4da)]='not_collab',_0x5ec58c['SYNCED']=_0x2ad778(0x14f),_0x5ec58c[_0x2ad778(0x2bb)]=_0x2ad778(0x2a2),_0x5ec58c[_0x2ad778(0x171)]=_0x2ad778(0x404),_0x5ec58c['AWAITING_WITH_PENDING']=_0x2ad778(0x366),_0x5ec58c[_0x2ad778(0x4df)]=_0x2ad778(0x1de),_0x5ec58c[_0x2ad778(0x205)]=_0x2ad778(0x1e9),_0x5ec58c[_0x2ad778(0x2fc)]='offline',_0x5ec58c))(D||{});class K{constructor(_0x640e5c,_0x170886,_0x222059,_0x10fcc7,_0x3809aa,_0x55e14a,_0x401cf5,_0x57173a,_0x19bc1f){const _0x2c31bf=_0x2ad778;u(this,_0x2c31bf(0x38c),null),u(this,_0x2c31bf(0x3c2),[]),(this['unitID']=_0x640e5c,this[_0x2c31bf(0x348)]=_0x170886,this['_handler']=_0x3809aa,this['_commandService']=_0x55e14a,this['_undoRedoService']=_0x401cf5,this['_revisionService']=_0x57173a,this['_localCacheService']=_0x19bc1f,this[_0x2c31bf(0x38c)]=_0x222059,this[_0x2c31bf(0x3c2)]=_0x10fcc7);}[_0x2ad778(0x4ba)](_0x1ac716){const _0x54a2e5=_0x2ad778,_0x5ad1f9=this[_0x54a2e5(0x43c)]['getCurrentRevForDocument'](this[_0x54a2e5(0x422)]);return _0x1ac716[_0x54a2e5(0x437)]>_0x5ad1f9+0x1?(this[_0x54a2e5(0x290)]['onMissingChangesets']({'from':_0x5ad1f9,'to':_0x1ac716[_0x54a2e5(0x437)]-0x1}),!0x0):!0x1;}[_0x2ad778(0x35f)](_0x1366bb){const _0x5431c6=_0x2ad778;this[_0x5431c6(0x296)][_0x5431c6(0x320)](this[_0x5431c6(0x422)],_0x1366bb);}[_0x2ad778(0x157)](_0x4f9528){const _0x141c38=_0x2ad778;var _0x54631d,_0x41169f;(_0x41169f=(_0x54631d=this[_0x141c38(0x290)])['onTransformSelections'])==null||_0x41169f[_0x141c38(0x2db)](_0x54631d,_0x4f9528);}[_0x2ad778(0x39c)](_0x519996){const _0x57820c=_0x2ad778;var _0x50003e,_0xf447f5;return(_0xf447f5=(_0x50003e=this[_0x57820c(0x290)])['onTransformIME'])==null?void 0x0:_0xf447f5[_0x57820c(0x2db)](_0x50003e,_0x519996);}[_0x2ad778(0x1e0)](_0x43e83f){const _0x2b3c6f=_0x2ad778;var _0x194d11,_0x2ef485,_0x24c0b6;return(_0x24c0b6=(_0x2ef485=(_0x194d11=this['_handler'])[_0x2b3c6f(0x13f)])==null?void 0x0:_0x2ef485['call'](_0x194d11,_0x43e83f))!=null?_0x24c0b6:_0x43e83f;}[_0x2ad778(0x270)](_0x5945b6){const _0x455f0f=_0x2ad778;var _0x30afab,_0x2814e5;if(this[_0x455f0f(0x348)]===A[_0x455f0f(0x257)]){const {unitID:_0x4947b4,mutations:_0x36872b,memberID:_0x4d6f5e}=_0x5945b6,_0x5b2251=_0x36872b[0x0][_0x455f0f(0x1ba)]['textRanges'];Array[_0x455f0f(0x3b6)](_0x5b2251)&&_0x5b2251[_0x455f0f(0x32e)]>0x0&&((_0x2814e5=(_0x30afab=this['_handler'])[_0x455f0f(0x247)])==null||_0x2814e5[_0x455f0f(0x2db)](_0x30afab,{'unitID':_0x4947b4,'memberID':_0x4d6f5e,'textRanges':_0x5b2251}));}}[_0x2ad778(0x474)](){const _0x5a985b=_0x2ad778;this[_0x5a985b(0x4e6)][_0x5a985b(0x181)](this[_0x5a985b(0x422)],this[_0x5a985b(0x348)],this[_0x5a985b(0x38c)],this[_0x5a985b(0x3c2)]);}['_getCurrentRevision'](){const _0x5b789a=_0x2ad778;return this[_0x5b789a(0x43c)]['getCurrentRevForDocument'](this[_0x5b789a(0x422)]);}[_0x2ad778(0x3e1)](){const _0x391f04=_0x2ad778;this[_0x391f04(0x43c)][_0x391f04(0x501)](this[_0x391f04(0x422)]);}[_0x2ad778(0x4a7)](_0x2c1e56){const _0x2fe26e=_0x2ad778;var _0x1722e4;const _0x4c454b=this['_transformRemoteChangesetByIMECache'](_0x2c1e56),_0x4cb3cb=o[_0x2fe26e(0x468)](_0x4c454b[_0x2fe26e(0x3da)],this[_0x2fe26e(0x14c)],{'fromCollab':!0x0});if(!_0x4cb3cb[_0x2fe26e(0x3c1)])throw _0x4cb3cb[_0x2fe26e(0x191)]instanceof Error?_0x4cb3cb['error']:new Error((_0x1722e4=_0x4cb3cb[_0x2fe26e(0x191)])!=null?_0x1722e4:_0x2fe26e(0x1e4));this[_0x2fe26e(0x39c)](_0x4c454b),this[_0x2fe26e(0x35f)](_0x2c1e56),this[_0x2fe26e(0x157)](_0x4c454b),this['_syncEditingCollabCursor'](_0x4c454b),this[_0x2fe26e(0x3e1)]();}}let ae=class extends K{constructor(_0x53aba1,_0x2a1647,_0x7a1364,_0x34f9e9,_0x3e3247,_0x2ebd15,_0x243313,_0x55f5fa,_0x186ed6){const _0x198856=_0x2ad778;super(_0x53aba1,_0x2a1647,null,[],_0x7a1364,_0x55f5fa,_0x243313,_0x34f9e9,_0x3e3247),u(this,_0x198856(0x35e),'synced'),(this['_injector']=_0x2ebd15,this['_logService']=_0x186ed6);}['appendMutation'](_0x6df600){const _0x2163ff=_0x2ad778,_0x5a3457=this[_0x2163ff(0x31d)][_0x2163ff(0x3b9)](j,this[_0x2163ff(0x422)],this['type'],[_0x6df600],this[_0x2163ff(0x290)]);return _0x5a3457[_0x2163ff(0x325)](),_0x5a3457[_0x2163ff(0x474)](),_0x5a3457;}['onRemoteChangeset'](_0x471425){const _0x16c33f=_0x2ad778;if(this[_0x16c33f(0x4ba)](_0x471425))return this[_0x16c33f(0x31d)][_0x16c33f(0x3b9)](H,this[_0x16c33f(0x422)],this[_0x16c33f(0x348)],null,[],null,[_0x471425],this[_0x16c33f(0x290)]);try{return this['_executeRemoteChangeset'](_0x471425),this;}catch(_0x330f7c){return this[_0x16c33f(0x46f)][_0x16c33f(0x191)](_0x16c33f(0x251),_0x330f7c),this;}}[_0x2ad778(0x3ce)](){const _0xca5ecc=_0x2ad778;throw new Error(_0xca5ecc(0x4d8));}['onRemoteRej'](){const _0x2dfa2b=_0x2ad778;throw new Error(_0x2dfa2b(0x3db));}['toggleOffline'](){const _0x1024e6=_0x2ad778;return this[_0x1024e6(0x31d)]['createInstance'](k,this[_0x1024e6(0x422)],this[_0x1024e6(0x348)],null,[],this[_0x1024e6(0x290)]);}[_0x2ad778(0x44e)](){return this;}[_0x2ad778(0x2af)](){const _0x421995=_0x2ad778;throw new Error(_0x421995(0x16b));}};ae=Y([g(0x3,o[_0x2ad778(0x143)](_['RevisionService'])),g(0x4,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0x5,o['Inject'](o[_0x2ad778(0x26c)])),g(0x6,o['IUndoRedoService']),g(0x7,o['ICommandService']),g(0x8,o[_0x2ad778(0x2ac)])],ae);let j=class extends K{constructor(_0x1ad8a8,_0x1f23a0,_0x592ea4,_0x563fe6,_0x1358fe,_0x581c1b,_0x5714aa,_0x643762,_0xac2e9d,_0x30dccb,_0x21ea22,_0xf2caec,_0x5f2abb,_0x49567f){const _0x212c30=_0x2ad778;super(_0x1ad8a8,_0x1f23a0,null,_0x592ea4,_0x563fe6,_0x30dccb,_0x49567f,_0x581c1b,_0x5714aa),u(this,_0x212c30(0x35e),_0x212c30(0x2a2)),u(this,_0x212c30(0x1ab),null),u(this,_0x212c30(0x217),null),(this[_0x212c30(0x31d)]=_0x1358fe,this[_0x212c30(0x278)]=_0x643762,this[_0x212c30(0x46f)]=_0xac2e9d,this[_0x212c30(0x508)]=_0x21ea22,this['_transformService']=_0xf2caec,this[_0x212c30(0x2ec)]=_0x5f2abb);}[_0x2ad778(0x3d4)](_0x164696){const _0x17c15c=_0x2ad778;return this[_0x17c15c(0x3c2)]['push'](_0x164696),this['_updateLocalCache'](),this;}[_0x2ad778(0x216)](_0x4de8f7){const _0x457903=_0x2ad778;if(this['_checkMissing'](_0x4de8f7))return this[_0x457903(0x43a)](),this[_0x457903(0x31d)]['createInstance'](H,this[_0x457903(0x422)],this[_0x457903(0x348)],null,this[_0x457903(0x3c2)],null,[_0x4de8f7],this[_0x457903(0x290)]);try{const _0x32b7d1=this[_0x457903(0x258)][_0x457903(0x18a)](_0x4de8f7,this['_pendingMutations']);if(_[_0x457903(0x2bf)](_0x32b7d1)){const {c1Prime:_0x345b9e,m2Prime:_0x46d5cd}=_0x32b7d1;this['_executeRemoteChangeset'](_0x345b9e);const _0x4a8e97=this[_0x457903(0x31d)]['createInstance'](j,this['unitID'],this[_0x457903(0x348)],_0x46d5cd,this[_0x457903(0x290)]);return this[_0x457903(0x43a)](),_0x4a8e97[_0x457903(0x325)](this[_0x457903(0x1ab)]?Math['max'](0x0,new Date()['getTime']()-this[_0x457903(0x1ab)]):this[_0x457903(0x1b6)]()),_0x4a8e97;}throw _0x32b7d1['error'];}catch(_0x6013f4){return this['_logService'][_0x457903(0x191)](_0x6013f4),this[_0x457903(0x1a8)](!0x1);}}[_0x2ad778(0x3ce)](){const _0x3e93f4=_0x2ad778;throw new Error(_0x3e93f4(0x362));}[_0x2ad778(0x499)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2ad778(0x364)](){const _0xc85760=_0x2ad778;return this[_0xc85760(0x43a)](),this['_injector']['createInstance'](k,this['unitID'],this['type'],null,this[_0xc85760(0x3c2)],this[_0xc85760(0x290)]);}['toggleOnline'](){return this;}[_0x2ad778(0x325)](_0x7a0078){const _0x842b74=_0x2ad778;_0x7a0078=_0x7a0078!=null?_0x7a0078:this[_0x842b74(0x1b6)](),this['_scheduleTimestamp']=new Date()['getTime'](),this['_sendingTimer']=setTimeout(()=>{const _0x5f2cad=_0x842b74;this['_clearScheduledTask']();let _0x2013d2=null;switch(this[_0x5f2cad(0x348)]){case A[_0x5f2cad(0x421)]:{_0x2013d2=Ts(this[_0x5f2cad(0x3c2)],this[_0x5f2cad(0x422)],this[_0x5f2cad(0x2ec)],this[_0x5f2cad(0x43c)],this[_0x5f2cad(0x278)]);break;}case A['UNIVER_DOC']:{_0x2013d2=Rs(this[_0x5f2cad(0x3c2)],this[_0x5f2cad(0x422)],this[_0x5f2cad(0x2ec)],this['_revisionService'],this[_0x5f2cad(0x278)]);break;}default:throw new Error(_0x5f2cad(0x195)+this[_0x5f2cad(0x348)]+_0x5f2cad(0x2d9));}const {changeset:_0x4ae8d5,pendingMutations:_0xde8631}=_0x2013d2;this[_0x5f2cad(0x290)]['onSendChangeset'](_0x4ae8d5);const _0x5966c9=_0xde8631[_0x5f2cad(0x32e)]?this[_0x5f2cad(0x31d)][_0x5f2cad(0x3b9)]($,this[_0x5f2cad(0x422)],this[_0x5f2cad(0x348)],_0x4ae8d5,_0xde8631,this[_0x5f2cad(0x290)]):this[_0x5f2cad(0x31d)][_0x5f2cad(0x3b9)](x,this['unitID'],this[_0x5f2cad(0x348)],_0x4ae8d5,this['_handler']);_0x5966c9[_0x5f2cad(0x474)](),this[_0x5f2cad(0x290)]['onStateChange'](this,_0x5966c9);},_0x7a0078);}['_getSendChangesetTimeout'](){const _0x3bf39c=_0x2ad778;var _0x559a71;return(_0x559a71=this[_0x3bf39c(0x508)][_0x3bf39c(0x39e)](_t))!=null?_0x559a71:Ft;}[_0x2ad778(0x2af)](){const _0x4e0124=_0x2ad778;throw new Error(_0x4e0124(0x469));}['_clearScheduledTask'](){const _0x5c5503=_0x2ad778;this[_0x5c5503(0x217)]!=null&&(clearTimeout(this[_0x5c5503(0x217)]),this[_0x5c5503(0x217)]=null);}['_onConflict'](_0xd27fce){const _0x1f7331=_0x2ad778;return this[_0x1f7331(0x43a)](),this[_0x1f7331(0x31d)][_0x1f7331(0x3b9)](G,this[_0x1f7331(0x422)],this[_0x1f7331(0x348)],null,this['_pendingMutations'],this[_0x1f7331(0x290)],_0xd27fce);}};j=Y([g(0x4,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),g(0x5,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0x6,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0x7,o['Inject'](W)),g(0x8,o[_0x2ad778(0x2ac)]),g(0x9,o['ICommandService']),g(0xa,o[_0x2ad778(0x4aa)]),g(0xb,_[_0x2ad778(0x4a5)]),g(0xc,o['IUniverInstanceService']),g(0xd,o['IUndoRedoService'])],j);let x=class extends K{constructor(_0x3cbb04,_0x51f5d0,_0x1e6cb2,_0x4d317e,_0x256ad2,_0x207677,_0x562a48,_0x1529d7,_0xdf07f7,_0x55617c,_0x2dcd88){const _0x30eabf=_0x2ad778;super(_0x3cbb04,_0x51f5d0,_0x1e6cb2,[],_0x4d317e,_0x1529d7,_0x2dcd88,_0x207677,_0x562a48),u(this,_0x30eabf(0x35e),_0x30eabf(0x404)),(this[_0x30eabf(0x31d)]=_0x256ad2,this[_0x30eabf(0x46f)]=_0xdf07f7,this['_transformService']=_0x55617c);}[_0x2ad778(0x3d4)](_0x45c65d){const _0x3bda49=_0x2ad778,_0x2cd97b=this[_0x3bda49(0x31d)][_0x3bda49(0x3b9)]($,this[_0x3bda49(0x422)],this[_0x3bda49(0x348)],this['_awaitingChangeset'],[_0x45c65d],this[_0x3bda49(0x290)]);return _0x2cd97b[_0x3bda49(0x474)](),_0x2cd97b;}[_0x2ad778(0x216)](_0x43b476){const _0xe985b9=_0x2ad778;if(this[_0xe985b9(0x4ba)](_0x43b476))return this[_0xe985b9(0x31d)][_0xe985b9(0x3b9)](H,this[_0xe985b9(0x422)],this[_0xe985b9(0x348)],this[_0xe985b9(0x38c)],[],null,[_0x43b476],this['_handler']);try{const _0x2a9827=this['_transformService'][_0xe985b9(0x365)]([_0x43b476],[this['_awaitingChangeset']],!0x1);if(_[_0xe985b9(0x4f9)](_0x2a9827)){const {c1Prime:_0x4dace1,c2Prime:_0x622ce1}=_0x2a9827;this[_0xe985b9(0x4a7)](_0x4dace1[0x0]),_0x622ce1[0x0][_0xe985b9(0x3c9)]=this[_0xe985b9(0x355)]();const _0x5802b8=this[_0xe985b9(0x31d)][_0xe985b9(0x3b9)](x,this[_0xe985b9(0x422)],this[_0xe985b9(0x348)],_0x622ce1[0x0],this[_0xe985b9(0x290)]);return _0x5802b8['_updateLocalCache'](),_0x5802b8;}return this[_0xe985b9(0x1a8)](!0x1);}catch(_0x4d6869){return this['_logService']['error'](_0x4d6869),this[_0xe985b9(0x1a8)](!0x1);}}['onRemoteAck'](_0x536afa){const _0x6f7975=_0x2ad778,_0x1f4f2d=this[_0x6f7975(0x43c)][_0x6f7975(0x3a9)](this['unitID']);if(_0x536afa['revision']<_0x1f4f2d-0x1)return this;if(this[_0x6f7975(0x4ba)](_0x536afa))return this[_0x6f7975(0x31d)][_0x6f7975(0x3b9)](H,this[_0x6f7975(0x422)],this['type'],null,[],this[_0x6f7975(0x38c)],[],this[_0x6f7975(0x290)]);this[_0x6f7975(0x3e1)]();const _0x2e35ea=this[_0x6f7975(0x31d)][_0x6f7975(0x3b9)](ae,this[_0x6f7975(0x422)],this[_0x6f7975(0x348)],this[_0x6f7975(0x290)]);return _0x2e35ea['_updateLocalCache'](),_0x2e35ea;}['onRemoteRej'](_0x47e82c){const _0x8f221e=_0x2ad778;return this['_onConflict'](!!(_0x47e82c!=null&&_0x47e82c[_0x8f221e(0x500)]));}['toggleOffline'](){const _0x130e26=_0x2ad778;return this[_0x130e26(0x31d)][_0x130e26(0x3b9)](k,this[_0x130e26(0x422)],this['type'],this[_0x130e26(0x38c)],[],this[_0x130e26(0x290)]);}[_0x2ad778(0x44e)](){return this;}['resend'](){const _0x56abad=_0x2ad778;this['_handler'][_0x56abad(0x382)](this['_awaitingChangeset']);}[_0x2ad778(0x1a8)](_0x15c688){const _0x5e965f=_0x2ad778;return this[_0x5e965f(0x31d)][_0x5e965f(0x3b9)](G,this['unitID'],this[_0x5e965f(0x348)],this['_awaitingChangeset'],[],this[_0x5e965f(0x290)],_0x15c688);}};x=Y([g(0x4,o['Inject'](o['Injector'])),g(0x5,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0x6,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0x7,o[_0x2ad778(0x4e4)]),g(0x8,o['ILogService']),g(0x9,_[_0x2ad778(0x4a5)]),g(0xa,o[_0x2ad778(0x29a)])],x);let $=class extends K{constructor(_0x400eca,_0x3177cd,_0x33ed1f,_0x4025c3,_0x16a2d3,_0x2480fe,_0x10840f,_0x2013f2,_0x1cd022,_0x371f0d,_0x40be49,_0x5c52db){const _0x25ab1f=_0x2ad778;super(_0x400eca,_0x3177cd,_0x33ed1f,_0x4025c3,_0x16a2d3,_0x1cd022,_0x5c52db,_0x10840f,_0x2013f2),u(this,_0x25ab1f(0x35e),_0x25ab1f(0x366)),(this[_0x25ab1f(0x31d)]=_0x2480fe,this['_logService']=_0x371f0d,this[_0x25ab1f(0x258)]=_0x40be49);}[_0x2ad778(0x3d4)](_0x590cae){const _0x5ba66b=_0x2ad778;return this[_0x5ba66b(0x3c2)][_0x5ba66b(0x363)](_0x590cae),this;}[_0x2ad778(0x216)](_0x4c8f11){const _0xfc5fd8=_0x2ad778;if(this[_0xfc5fd8(0x4ba)](_0x4c8f11))return this[_0xfc5fd8(0x31d)]['createInstance'](H,this['unitID'],this['type'],this[_0xfc5fd8(0x38c)],this[_0xfc5fd8(0x3c2)],null,[_0x4c8f11],this['_handler']);try{const _0x192220=this[_0xfc5fd8(0x258)][_0xfc5fd8(0x365)]([_0x4c8f11],[this[_0xfc5fd8(0x38c)]],!0x1);if(_[_0xfc5fd8(0x4f9)](_0x192220)){const {c1Prime:_0x207499,c2Prime:_0x553d43}=_0x192220,_0x426592=this['_transformService'][_0xfc5fd8(0x18a)](_0x207499[0x0],this[_0xfc5fd8(0x3c2)]);if(_[_0xfc5fd8(0x2bf)](_0x426592)){const {c1Prime:_0x18a919,m2Prime:_0x338979}=_0x426592;return this[_0xfc5fd8(0x4a7)](_0x18a919),_0x553d43[0x0]['baseRev']=this[_0xfc5fd8(0x355)](),this[_0xfc5fd8(0x31d)][_0xfc5fd8(0x3b9)]($,this[_0xfc5fd8(0x422)],this[_0xfc5fd8(0x348)],_0x553d43[0x0],_0x338979,this[_0xfc5fd8(0x290)]);}throw _0x426592[_0xfc5fd8(0x191)];}throw _0x192220['error'];}catch(_0x1b1680){return this['_logService'][_0xfc5fd8(0x191)](_0x1b1680),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x2cbef3){const _0xfe1b9e=_0x2ad778;if(this['_checkMissing'](_0x2cbef3))return this[_0xfe1b9e(0x31d)][_0xfe1b9e(0x3b9)](H,this[_0xfe1b9e(0x422)],this['type'],null,this[_0xfe1b9e(0x3c2)],this[_0xfe1b9e(0x38c)],[],this[_0xfe1b9e(0x290)]);this[_0xfe1b9e(0x3e1)]();const _0x378bad=this['_injector'][_0xfe1b9e(0x3b9)](j,this['unitID'],this[_0xfe1b9e(0x348)],this[_0xfe1b9e(0x3c2)],this[_0xfe1b9e(0x290)]);return _0x378bad['_schedule'](),_0x378bad[_0xfe1b9e(0x474)](),_0x378bad;}[_0x2ad778(0x499)](_0x5ba050){const _0x1a75aa=_0x2ad778;return this[_0x1a75aa(0x1a8)](!!(_0x5ba050!=null&&_0x5ba050[_0x1a75aa(0x500)]));}[_0x2ad778(0x364)](){const _0x165e75=_0x2ad778;return this[_0x165e75(0x31d)]['createInstance'](k,this[_0x165e75(0x422)],this[_0x165e75(0x348)],this[_0x165e75(0x38c)],this[_0x165e75(0x3c2)],this['_handler']);}[_0x2ad778(0x44e)](){return this;}[_0x2ad778(0x2af)](){const _0xba5dd=_0x2ad778;this[_0xba5dd(0x290)][_0xba5dd(0x382)](this[_0xba5dd(0x38c)]);}[_0x2ad778(0x1a8)](_0x52eca4){const _0x5f4caf=_0x2ad778;return this[_0x5f4caf(0x31d)][_0x5f4caf(0x3b9)](G,this['unitID'],this[_0x5f4caf(0x348)],null,this['_pendingMutations'],this[_0x5f4caf(0x290)],_0x52eca4);}};$=Y([g(0x5,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),g(0x6,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0x7,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0x8,o[_0x2ad778(0x4e4)]),g(0x9,o[_0x2ad778(0x2ac)]),g(0xa,_[_0x2ad778(0x4a5)]),g(0xb,o[_0x2ad778(0x29a)])],$);let G=class extends K{constructor(_0x245d7b,_0x3cc5bc,_0x3acb72,_0x567ec1,_0x34e45b,_0x58cf21=!0x1,_0x42a3fb,_0x1255fe,_0x31a175,_0x15b6e4,_0xd3904b,_0x1669a5,_0x597c49){const _0x2304f4=_0x2ad778;super(_0x245d7b,_0x3cc5bc,_0x3acb72,_0x567ec1,_0x34e45b,_0x1255fe,_0x31a175,_0xd3904b,_0x15b6e4),u(this,_0x2304f4(0x35e),_0x2304f4(0x1e9)),(this['_isPermissionRej']=_0x58cf21,this[_0x2304f4(0x3a8)]=_0x42a3fb,this[_0x2304f4(0x4fd)]=_0x1669a5,this['_notificationService']=_0x597c49,this[_0x2304f4(0x336)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x2ad778(0x3d4)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x2ad778(0x499)](){return this;}[_0x2ad778(0x364)](){return this;}[_0x2ad778(0x44e)](){return this;}[_0x2ad778(0x2af)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2ad778(0x4b6)](){const _0x54de86=_0x2ad778;this[_0x54de86(0x4e6)][_0x54de86(0x181)](this[_0x54de86(0x422)],this[_0x54de86(0x348)],null,[]);}['_showConflictNotification'](){const _0x2fb683=_0x2ad778;this[_0x2fb683(0x231)]?this[_0x2fb683(0x2a7)][_0x2fb683(0x1c6)]({'title':this[_0x2fb683(0x4fd)]['t'](_0x2fb683(0x406)),'content':this[_0x2fb683(0x4fd)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x2fb683(0x2a7)]['show']({'title':this[_0x2fb683(0x4fd)]['t'](_0x2fb683(0x17c)),'content':this['_localeService']['t']('conflict.content'),'type':_0x2fb683(0x191),'duration':0x0});}[_0x2ad778(0x2fb)](){const _0x21e479=_0x2ad778;this[_0x21e479(0x3a8)][_0x21e479(0x28e)](new p[(_0x21e479(0x344))](this['unitID'])['id'],!0x1);}};G=Y([g(0x6,o[_0x2ad778(0x143)](o[_0x2ad778(0x358)])),g(0x7,o[_0x2ad778(0x4e4)]),g(0x8,o[_0x2ad778(0x29a)]),g(0x9,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0xa,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0xb,o[_0x2ad778(0x143)](o[_0x2ad778(0x384)])),g(0xc,M['INotificationService'])],G);let k=class extends K{constructor(_0x3bb138,_0x55dc21,_0x1e0653,_0x19a77c,_0x2e4101,_0x163e8a,_0x15cb4e,_0x4746c7,_0x4c1777,_0x1d7629){const _0x32379b=_0x2ad778;super(_0x3bb138,_0x55dc21,_0x1e0653,_0x19a77c,_0x2e4101,_0x4c1777,_0x1d7629,_0x15cb4e,_0x4746c7),u(this,'status',_0x32379b(0x28a)),this['_injector']=_0x163e8a;}[_0x2ad778(0x3d4)](_0x5aa577){const _0x2ac9f8=_0x2ad778;return this[_0x2ac9f8(0x3c2)][_0x2ac9f8(0x363)](_0x5aa577),this['_updateLocalCache'](),this;}[_0x2ad778(0x216)](_0x1cd696){const _0x41bcfe=_0x2ad778;throw new Error(_0x41bcfe(0x425));}[_0x2ad778(0x3ce)](){const _0x1b87cb=_0x2ad778;throw new Error(_0x1b87cb(0x26e));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}[_0x2ad778(0x44e)](){const _0x574ff1=_0x2ad778,{_injector:_0x5b8b73,_pendingMutations:_0x4ff832,_awaitingChangeset:_0x2fa74b,unitID:_0x292664,_handler:_0x51cf00,type:_0x566cd6}=this,_0x2c1102=Tt(_0x5b8b73,_0x292664,_0x566cd6,_0x2fa74b,_0x4ff832,_0x51cf00);return _0x2c1102 instanceof j?_0x2c1102[_0x574ff1(0x325)]():(_0x2c1102 instanceof $||_0x2c1102 instanceof x)&&_0x2c1102[_0x574ff1(0x2af)](),_0x2c1102;}['resend'](){const _0x1db3be=_0x2ad778;throw new Error(_0x1db3be(0x275));}};k=Y([g(0x5,o[_0x2ad778(0x143)](o['Injector'])),g(0x6,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0x7,o[_0x2ad778(0x143)](exports['LocalCacheService'])),g(0x8,o[_0x2ad778(0x4e4)]),g(0x9,o['IUndoRedoService'])],k);let H=class extends K{constructor(_0x2bcbe1,_0x555d35,_0x3f880a,_0x3490ab,_0x2ba552,_0x19d57d,_0x11f57c,_0x80ef42,_0x48ecf9,_0x208532,_0x3ece42,_0x12e418,_0xae628,_0x1721a5){const _0x18ed7e=_0x2ad778;super(_0x2bcbe1,_0x555d35,_0x3f880a,_0x3490ab,_0x11f57c,_0x12e418,_0xae628,_0x48ecf9,_0x208532),u(this,_0x18ed7e(0x35e),_0x18ed7e(0x1de)),(this[_0x18ed7e(0x17a)]=_0x2ba552,this[_0x18ed7e(0x45e)]=_0x19d57d,this[_0x18ed7e(0x31d)]=_0x80ef42,this[_0x18ed7e(0x46f)]=_0x3ece42,this[_0x18ed7e(0x258)]=_0x1721a5);}[_0x2ad778(0x4bd)](_0x4aea58){const _0xc75bd2=_0x2ad778;try{const _0x1dda5a=[..._0x4aea58,...this['_queuedRemoteChangesets']],_0x18480f=[this['_awaitingChangeset']||this[_0xc75bd2(0x17a)]][_0xc75bd2(0x1dd)](_0x3de88a=>!!_0x3de88a);let _0x7299c7,_0x57fbee;if(_0x18480f['length']){const _0x50aaf9=this[_0xc75bd2(0x258)][_0xc75bd2(0x365)](_0x1dda5a,_0x18480f,!0x1);if(!_['isTransformChangesetsSuccess'](_0x50aaf9))throw _0x50aaf9[_0xc75bd2(0x191)];_0x7299c7=_0x50aaf9[_0xc75bd2(0x447)],_0x57fbee=_0x50aaf9[_0xc75bd2(0x153)];}else _0x7299c7=_0x1dda5a,_0x57fbee=[];let _0x5b128d=this[_0xc75bd2(0x3c2)];_0x7299c7[_0xc75bd2(0x169)](_0xcb51e3=>{const _0x29d777=_0xc75bd2;let _0x5bfb60;if(_0x5b128d['length']){const _0x4cd489=this['_transformService'][_0x29d777(0x18a)](_0xcb51e3,_0x5b128d);if(!_[_0x29d777(0x2bf)](_0x4cd489))throw _0x4cd489[_0x29d777(0x191)];_0x5bfb60=_0x4cd489['c1Prime'],_0x5b128d=_0x4cd489[_0x29d777(0x29e)];}else _0x5bfb60=_0xcb51e3;this[_0x29d777(0x4a7)](_0x5bfb60);}),this[_0xc75bd2(0x17a)]&&this[_0xc75bd2(0x3e1)](),this[_0xc75bd2(0x38c)]&&_0x57fbee['length']&&(_0x57fbee[0x0]['baseRev']=this['_getCurrentRevision']());let _0x2e31fb;if(this[_0xc75bd2(0x38c)]&&_0x5b128d[_0xc75bd2(0x32e)]!==0x0)_0x2e31fb=this[_0xc75bd2(0x31d)]['createInstance']($,this[_0xc75bd2(0x422)],this['type'],_0x57fbee[0x0],_0x5b128d,this[_0xc75bd2(0x290)]);else{if(this['_awaitingChangeset']&&_0x5b128d[_0xc75bd2(0x32e)]===0x0)_0x57fbee[0x0][_0xc75bd2(0x3c9)]=this[_0xc75bd2(0x355)](),_0x2e31fb=this[_0xc75bd2(0x31d)]['createInstance'](x,this[_0xc75bd2(0x422)],this['type'],_0x57fbee[0x0],this[_0xc75bd2(0x290)]);else{if(_0x5b128d[_0xc75bd2(0x32e)]!==0x0){const _0x5c37a9=this[_0xc75bd2(0x31d)]['createInstance'](j,this[_0xc75bd2(0x422)],this[_0xc75bd2(0x348)],_0x5b128d,this[_0xc75bd2(0x290)]);_0x5c37a9['_schedule'](),_0x2e31fb=_0x5c37a9;}else _0x2e31fb=this[_0xc75bd2(0x31d)][_0xc75bd2(0x3b9)](ae,this['unitID'],this[_0xc75bd2(0x348)],this['_handler']);}}return _0x2e31fb[_0xc75bd2(0x474)](),_0x2e31fb;}catch(_0x5018c1){return this[_0xc75bd2(0x46f)][_0xc75bd2(0x191)](_0xc75bd2(0x36d),_0xc75bd2(0x25e),_0x5018c1),this[_0xc75bd2(0x31d)][_0xc75bd2(0x3b9)](G,this[_0xc75bd2(0x422)],this[_0xc75bd2(0x348)],this[_0xc75bd2(0x38c)],this['_pendingMutations'],this[_0xc75bd2(0x290)],!0x1);}}[_0x2ad778(0x2af)](){const _0x36b5c2=_0x2ad778;throw new Error(_0x36b5c2(0x1bb));}['appendMutation'](_0x505a52){const _0xb8c784=_0x2ad778;return this[_0xb8c784(0x3c2)][_0xb8c784(0x363)](_0x505a52),this;}[_0x2ad778(0x216)](_0x2e35ee){const _0x472dc9=_0x2ad778;return this[_0x472dc9(0x45e)]['push'](_0x2e35ee),this;}[_0x2ad778(0x3ce)](_0x4d7847){const _0x3ef0e4=_0x2ad778;if(this[_0x3ef0e4(0x38c)])return this[_0x3ef0e4(0x17a)]=this[_0x3ef0e4(0x38c)],this[_0x3ef0e4(0x38c)]=null,this;throw new Error(_0x3ef0e4(0x225));}[_0x2ad778(0x499)](_0x52a2e9){const _0x58761b=_0x2ad778;return this[_0x58761b(0x1a8)](!!(_0x52a2e9!=null&&_0x52a2e9['isPermissionRej']));}[_0x2ad778(0x364)](){const _0x10bfc0=_0x2ad778;return this[_0x10bfc0(0x31d)][_0x10bfc0(0x3b9)](k,this['unitID'],this[_0x10bfc0(0x348)],this['_awaitingChangeset'],this[_0x10bfc0(0x3c2)],this[_0x10bfc0(0x290)]);}['toggleOnline'](){return this;}['_onConflict'](_0x14a68e){const _0xc95b9c=_0x2ad778;return this[_0xc95b9c(0x31d)][_0xc95b9c(0x3b9)](G,this[_0xc95b9c(0x422)],this[_0xc95b9c(0x348)],this[_0xc95b9c(0x38c)],this['_pendingMutations'],this['_handler'],_0x14a68e);}};H=Y([g(0x7,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),g(0x8,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0x9,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0xa,o[_0x2ad778(0x2ac)]),g(0xb,o[_0x2ad778(0x4e4)]),g(0xc,o['IUndoRedoService']),g(0xd,_[_0x2ad778(0x4a5)])],H);function Tt(_0x4cc54a,_0x55e4ea,_0x1a5aab,_0x14424b,_0x467d65,_0x212ab7){const _0x4500ac=_0x2ad778;return _0x14424b&&_0x467d65[_0x4500ac(0x32e)]?_0x4cc54a[_0x4500ac(0x3b9)]($,_0x55e4ea,_0x1a5aab,_0x14424b,_0x467d65,_0x212ab7):_0x14424b?_0x4cc54a[_0x4500ac(0x3b9)](x,_0x55e4ea,_0x1a5aab,_0x14424b,_0x212ab7):_0x467d65[_0x4500ac(0x32e)]?_0x4cc54a['createInstance'](j,_0x55e4ea,_0x1a5aab,_0x467d65,_0x212ab7):_0x4cc54a[_0x4500ac(0x3b9)](ae,_0x55e4ea,_0x1a5aab,_0x212ab7);}var Us=Object[_0x2ad778(0x4be)],Ps=Object[_0x2ad778(0x16e)],Ce=(_0x51ae51,_0x4472a8,_0x80fdea,_0x4e70bc)=>{const _0xea5dca=_0x2ad778;for(var _0x3f90d1=_0x4e70bc>0x1?void 0x0:_0x4e70bc?Ps(_0x4472a8,_0x80fdea):_0x4472a8,_0x30ed4f=_0x51ae51[_0xea5dca(0x32e)]-0x1,_0xa5733c;_0x30ed4f>=0x0;_0x30ed4f--)(_0xa5733c=_0x51ae51[_0x30ed4f])&&(_0x3f90d1=(_0x4e70bc?_0xa5733c(_0x4472a8,_0x80fdea,_0x3f90d1):_0xa5733c(_0x3f90d1))||_0x3f90d1);return _0x4e70bc&&_0x3f90d1&&Us(_0x4472a8,_0x80fdea,_0x3f90d1),_0x3f90d1;},I=(_0x34d0bd,_0x27438e)=>(_0x55e10c,_0x3d4706)=>_0x27438e(_0x55e10c,_0x3d4706,_0x34d0bd);exports[_0x2ad778(0x371)]=class extends o[_0x2ad778(0x30e)]{constructor(_0x177857,_0x256568,_0xaf313){const _0x1434fe=_0x2ad778;super(),u(this,_0x1434fe(0x17b),new Map()),u(this,'_entityInit$',new v[(_0x1434fe(0x2c6))]()),(this[_0x1434fe(0x31d)]=_0x177857,this[_0x1434fe(0x197)]=_0x256568,this[_0x1434fe(0x2ec)]=_0xaf313,this[_0x1434fe(0x3c3)]());}['dispose'](){const _0x2d02ab=_0x2ad778;super[_0x2d02ab(0x194)](),this['_entities'][_0x2d02ab(0x169)](_0x40d07d=>_0x40d07d[_0x2d02ab(0x194)]()),this[_0x2d02ab(0x17b)][_0x2d02ab(0x200)]();}[_0x2ad778(0x454)](_0x2f7737){const _0x3717ee=_0x2ad778;var _0x2cd627;return(_0x2cd627=this[_0x3717ee(0x17b)][_0x3717ee(0x49d)](_0x2f7737))!=null?_0x2cd627:null;}[_0x2ad778(0x317)](_0x5e5827){const _0x4e71b0=_0x2ad778,_0x32f859=this[_0x4e71b0(0x454)](_0x5e5827);return _0x32f859?v['of'](_0x32f859):this[_0x4e71b0(0x2b5)][_0x4e71b0(0x502)](E[_0x4e71b0(0x1dd)](_0x2d2fa5=>_0x2d2fa5[_0x4e71b0(0x422)]===_0x5e5827));}[_0x2ad778(0x3c3)](){const _0x9ba43d=_0x2ad778;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x9ba43d(0x3c7)][_0x9ba43d(0x421)])['pipe'](v[_0x9ba43d(0x306)](this['dispose$']),E[_0x9ba43d(0x352)](0x10))[_0x9ba43d(0x27c)](async _0x11ce22=>{const _0x35b6d4=_0x9ba43d,_0x41d709=_0x11ce22[_0x35b6d4(0x340)](),_0x2c980c=await this[_0x35b6d4(0x4fc)](_0x41d709,A[_0x35b6d4(0x421)]);this[_0x35b6d4(0x17b)]['set'](_0x41d709,_0x2c980c);}),this[_0x9ba43d(0x2ec)][_0x9ba43d(0x4b7)](o[_0x9ba43d(0x3c7)][_0x9ba43d(0x257)])[_0x9ba43d(0x502)](v['takeUntil'](this['dispose$']),E[_0x9ba43d(0x352)](0x10))[_0x9ba43d(0x502)](E[_0x9ba43d(0x1dd)](_0x360087=>!_0x360087[_0x9ba43d(0x340)]()[_0x9ba43d(0x3bf)]('__')))[_0x9ba43d(0x27c)](async _0x5e2aee=>{const _0x4261ec=_0x9ba43d,_0x2f36c0=_0x5e2aee[_0x4261ec(0x340)](),_0x58636d=await this[_0x4261ec(0x4fc)](_0x2f36c0,A[_0x4261ec(0x257)]);this[_0x4261ec(0x17b)][_0x4261ec(0x20c)](_0x2f36c0,_0x58636d);}),v['merge'](this[_0x9ba43d(0x2ec)][_0x9ba43d(0x1e8)](o[_0x9ba43d(0x3c7)][_0x9ba43d(0x421)]),this['_univerInstanceService'][_0x9ba43d(0x1e8)](o['UniverInstanceType']['UNIVER_DOC']))['pipe'](v['takeUntil'](this[_0x9ba43d(0x46a)]))[_0x9ba43d(0x27c)](_0x529b80=>{const _0x17a943=_0x9ba43d,_0x19de9d=_0x529b80[_0x17a943(0x340)](),_0x73fba6=this[_0x17a943(0x17b)][_0x17a943(0x49d)](_0x19de9d);_0x73fba6&&(_0x73fba6['dispose'](),this['_entities'][_0x17a943(0x40a)](_0x19de9d));});}async['_startCollaboration'](_0x25e13c,_0x368fb3){const _0x5eb1ba=_0x2ad778,_0xe33fd2=await this[_0x5eb1ba(0x197)][_0x5eb1ba(0x34a)](_0x25e13c),_0x2bb515=this['_injector'][_0x5eb1ba(0x3b9)](this['_getCtorByUniverType'](_0x368fb3),_0x25e13c,_0x368fb3,_0xe33fd2);return await _0x2bb515[_0x5eb1ba(0x367)](),this[_0x5eb1ba(0x2b5)][_0x5eb1ba(0x368)](_0x2bb515),_0x2bb515;}[_0x2ad778(0x179)](_0x1b3054){const _0x3c4187=_0x2ad778;switch(_0x1b3054){case A['UNIVER_DOC']:return Le;case A[_0x3c4187(0x421)]:return Me;default:throw new Error(_0x3c4187(0x2cc)+_0x1b3054);}}},exports[_0x2ad778(0x371)]=Ce([o[_0x2ad778(0x492)](o[_0x2ad778(0x2e2)][_0x2ad778(0x33f)],exports[_0x2ad778(0x371)]),I(0x0,o['Inject'](o[_0x2ad778(0x26c)])),I(0x1,o[_0x2ad778(0x143)](exports[_0x2ad778(0x277)])),I(0x2,o[_0x2ad778(0x1ed)])],exports[_0x2ad778(0x371)]);let Ie=class extends o[_0x2ad778(0x30e)]{constructor(_0x4ea816,_0x5379d7,_0x402fb8,_0xfa2b6,_0x12ce06,_0x80cefc,_0xce5811,_0x1b8403,_0x52d8e6,_0x15289d,_0x279f35,_0x5f0877,_0x2ca4ac){const _0x3a8de6=_0x2ad778;super(),u(this,_0x3a8de6(0x43f),new v[(_0x3a8de6(0x31c))](null)),u(this,'state$',this[_0x3a8de6(0x43f)][_0x3a8de6(0x1bd)]()),u(this,_0x3a8de6(0x332)),u(this,_0x3a8de6(0x234),!0x1),u(this,_0x3a8de6(0x39a),this['state$'][_0x3a8de6(0x502)](E[_0x3a8de6(0x2c7)](_0x5e3953=>_0x5e3953?_0x5e3953[_0x3a8de6(0x35e)]:D[_0x3a8de6(0x2fc)]),E['shareReplay'](0x1))),u(this,'_transitionLocked',!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x3a8de6(0x422)]=_0x4ea816,this['_type']=_0x5379d7,this['_session']=_0x402fb8,this['_injector']=_0xfa2b6,this['_localCacheService']=_0x12ce06,this[_0x3a8de6(0x37e)]=_0x80cefc,this[_0x3a8de6(0x4fd)]=_0xce5811,this[_0x3a8de6(0x43c)]=_0x1b8403,this[_0x3a8de6(0x46f)]=_0x52d8e6,this[_0x3a8de6(0x14c)]=_0x15289d,this['_messageService']=_0x279f35,this[_0x3a8de6(0x3a8)]=_0x5f0877,this[_0x3a8de6(0x182)]=_0x2ca4ac);}get['state'](){const _0x24478c=_0x2ad778;return this[_0x24478c(0x332)];}async[_0x2ad778(0x367)](){const _0x33fa8b=_0x2ad778;if(this[_0x33fa8b(0x485)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x2ad778(0x32a)](){const _0x4bc5e6=_0x2ad778;return this[_0x4bc5e6(0x234)]=!0x0,o[_0x4bc5e6(0x1e7)](()=>{const _0x533d53=_0x4bc5e6;this['_collaborationPaused']=!0x1,this[_0x533d53(0x287)]();});}[_0x2ad778(0x21f)](_0x401b7f){const _0x3310b5=_0x2ad778;this[_0x3310b5(0x332)]=_0x401b7f,this[_0x3310b5(0x43f)]['next'](_0x401b7f);}async[_0x2ad778(0x3c3)](){const _0x2811a7=_0x2ad778;var _0x5e2001;return this[_0x2811a7(0x21f)](await this['_createInitialState']()),this[_0x2811a7(0x182)]&&((_0x5e2001=this[_0x2811a7(0x182)])==null||_0x5e2001[_0x2811a7(0x392)](this['unitID']),this[_0x2811a7(0x233)](o['toDisposable'](this[_0x2811a7(0x182)]['getUnitStatus$'](this[_0x2811a7(0x422)])[_0x2811a7(0x27c)](_0x49bad1=>{const _0x410b89=_0x2811a7;this['_logService'][_0x410b89(0x484)](_0x410b89(0x380),'editing\x20status\x20changed\x20to',_0x49bad1),_0x49bad1===Ct[_0x410b89(0x4ce)]?(this['_messageService']['show']({'content':this[_0x410b89(0x4fd)]['t'](_0x410b89(0x3c4)),'type':Z[_0x410b89(0x310)][_0x410b89(0x4ff)]}),this[_0x410b89(0x3a8)][_0x410b89(0x28e)](new p[(_0x410b89(0x344))](this[_0x410b89(0x422)])['id'],!0x1)):this['_permissionService']['updatePermissionPoint'](new p[(_0x410b89(0x344))](this['unitID'])['id'],!0x0);})))),this[_0x2811a7(0x233)](o[_0x2811a7(0x1e7)](this['_session'][_0x2811a7(0x292)][_0x2811a7(0x27c)](_0x1206ac=>{const _0x25bbc2=_0x2811a7;_0x1206ac===V[_0x25bbc2(0x21e)]?this[_0x25bbc2(0x43e)]():_0x1206ac===V[_0x25bbc2(0x2fc)]&&this[_0x25bbc2(0x148)]();}))),this['disposeWithMe'](o[_0x2811a7(0x1e7)](this[_0x2811a7(0x22d)]['event$'][_0x2811a7(0x27c)](_0x521f43=>{const _0x22ddc5=_0x2811a7;try{switch(_0x521f43[_0x22ddc5(0x318)]){case _['CollaborationEvent'][_0x22ddc5(0x3f4)]:{this[_0x22ddc5(0x4ef)](_['parseProtocolChangeset'](_0x521f43[_0x22ddc5(0x2f7)]));break;}case _['CollaborationEvent'][_0x22ddc5(0x4dc)]:{this['_onRemoteACK'](_0x521f43[_0x22ddc5(0x2f7)]);break;}case _[_0x22ddc5(0x4b9)][_0x22ddc5(0x1ce)]:{this[_0x22ddc5(0x458)]();break;}case _[_0x22ddc5(0x4b9)][_0x22ddc5(0x281)]:{this[_0x22ddc5(0x26a)](_0x521f43[_0x22ddc5(0x2f7)][_0x22ddc5(0x388)][_0x22ddc5(0x2c7)](_0x53ee49=>_['parseProtocolChangeset'](_0x53ee49)));break;}case _[_0x22ddc5(0x4b9)][_0x22ddc5(0x396)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x171b09){throw console[_0x22ddc5(0x191)]('Error\x20on\x20receiving\x20event',_0x171b09),_0x171b09;}}))),this['_state'];}[_0x2ad778(0x304)](){const _0x264f1b=_0x2ad778;this[_0x264f1b(0x412)]=!0x1;}[_0x2ad778(0x472)](){const _0x322e7e=_0x2ad778;if(this['_transitionLocked'])throw new Error(_0x322e7e(0x1f9));this[_0x322e7e(0x412)]=!0x0;}['_onLocalMutation'](_0x22a275){const _0x208973=_0x2ad778;this[_0x208973(0x472)](),this['_updateState'](this['_state'][_0x208973(0x3d4)](_0x22a275)),this['_unlockTransition']();}[_0x2ad778(0x4ef)](_0x2ada73){const _0x3a3936=_0x2ad778;if(!(_0x2ada73[_0x3a3936(0x437)]<=this[_0x3a3936(0x43c)][_0x3a3936(0x3a9)](this['unitID']))){if(this[_0x3a3936(0x234)]){this[_0x3a3936(0x27e)][_0x3a3936(0x363)](_0x2ada73);return;}this[_0x3a3936(0x3e7)](_0x2ada73);}}[_0x2ad778(0x287)](){const _0x19cea5=_0x2ad778;this['_remoteChangesetQueue']['forEach'](_0x3dc503=>this[_0x19cea5(0x3e7)](_0x3dc503)),this[_0x19cea5(0x27e)]=[];}[_0x2ad778(0x3e7)](_0x219714){const _0x541eca=_0x2ad778,_0x3dda01=this[_0x541eca(0x37e)]['interceptor'][_0x541eca(0x284)](this[_0x541eca(0x37e)][_0x541eca(0x198)][_0x541eca(0x3a0)]()['COMPRESS_MUTATION_APPLY'])(_0x219714[_0x541eca(0x3da)],null)||_0x219714[_0x541eca(0x3da)],_0x29bacf={..._0x219714,'mutations':_0x3dda01};this[_0x541eca(0x472)](),this[_0x541eca(0x21f)](this[_0x541eca(0x332)][_0x541eca(0x216)](_0x29bacf)),this[_0x541eca(0x304)]();}[_0x2ad778(0x1c7)](_0x42f3fd){const _0x9b2a7f=_0x2ad778;this['_lockTransition'](),this[_0x9b2a7f(0x21f)](this[_0x9b2a7f(0x332)][_0x9b2a7f(0x3ce)](_0x42f3fd)),this[_0x9b2a7f(0x304)]();}[_0x2ad778(0x458)](_0x4ca3ee){const _0x5460de=_0x2ad778;this[_0x5460de(0x472)](),this[_0x5460de(0x21f)](this['_state'][_0x5460de(0x499)](_0x4ca3ee)),this[_0x5460de(0x304)]();}[_0x2ad778(0x26a)](_0x187946){const _0x31f327=_0x2ad778;if(!(this[_0x31f327(0x332)]instanceof H))throw new TypeError(_0x31f327(0x49c));const _0xe74a87=_0x187946[_0x31f327(0x2c7)](_0x23bee2=>{const _0x3fa67a=_0x31f327,_0x251f6e=this[_0x3fa67a(0x37e)]['interceptor'][_0x3fa67a(0x284)](this[_0x3fa67a(0x37e)][_0x3fa67a(0x198)][_0x3fa67a(0x3a0)]()[_0x3fa67a(0x2d8)])(_0x23bee2[_0x3fa67a(0x3da)],null)||_0x23bee2['mutations'];return{..._0x23bee2,'mutations':_0x251f6e};});this[_0x31f327(0x472)](),this[_0x31f327(0x21f)](this[_0x31f327(0x332)]['onMissedChangesetFetched'](_0xe74a87)),this[_0x31f327(0x304)]();}[_0x2ad778(0x148)](){const _0x5c9f06=_0x2ad778;this[_0x5c9f06(0x472)](),this['_updateState'](this[_0x5c9f06(0x332)]['toggleOffline']()),this[_0x5c9f06(0x304)]();}[_0x2ad778(0x43e)](){const _0x10c53d=_0x2ad778;this[_0x10c53d(0x472)](),this[_0x10c53d(0x21f)](this[_0x10c53d(0x332)][_0x10c53d(0x44e)]()),this[_0x10c53d(0x304)]();}async[_0x2ad778(0x1dc)](){return new Promise(_0x3cb10f=>{const _0x2cd6ad=_0x379e;this[_0x2cd6ad(0x22d)]['sessionStatus$']['pipe'](E['take'](0x1))[_0x2cd6ad(0x27c)](async _0x59da48=>{const _0xe907a3=_0x2cd6ad;_0x3cb10f(await this['_createInitialStateImpl'](_0x59da48===V[_0xe907a3(0x21e)]));});});}[_0x2ad778(0x14d)](){const _0x504162=_0x2ad778,_0x3a7973=this[_0x504162(0x422)];return{'onStateChange':(_0x2f2442,_0x3321b8)=>{const _0x5af2c8=_0x504162;if(_0x2f2442!==this['_state'])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2f2442['status']+_0x5af2c8(0x490)+_0x3321b8[_0x5af2c8(0x35e)]+_0x5af2c8(0x41d)+this[_0x5af2c8(0x332)]['status']);this['_updateState'](_0x3321b8);},'onSendChangeset':_0x24c100=>{const _0xd6ec52=_0x504162,_0x158f52={'eventID':_['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x24c100['unitID'],'unitType':this[_0xd6ec52(0x3c0)],'changeset':_0x24c100,'memberID':this[_0xd6ec52(0x22d)][_0xd6ec52(0x505)]()}};this[_0xd6ec52(0x22d)][_0xd6ec52(0x424)](_0x158f52,this['unitID']);},'onMissingChangesets':({from:_0x560f8d,to:_0x23a695})=>{const _0x1e0c3e=_0x504162;this[_0x1e0c3e(0x46f)]['debug'](_0x1e0c3e(0x380),_0x1e0c3e(0x509)+_0x560f8d+_0x1e0c3e(0x4cb)+_0x23a695);const _0x48aa3a={'eventID':_[_0x1e0c3e(0x4b9)]['FETCH_MISSING'],'data':{'unitID':_0x3a7973,'unitType':this[_0x1e0c3e(0x3c0)],'from':_0x560f8d,'to':_0x23a695}};this[_0x1e0c3e(0x22d)][_0x1e0c3e(0x424)](_0x48aa3a,this[_0x1e0c3e(0x422)]);}};}async['_createInitialStateImpl'](_0x521833){const _0x261afb=_0x2ad778;var _0x36aa92,_0x3039b0;const _0x2cfc1b=await this[_0x261afb(0x4e6)]['loadOfflineData'](this[_0x261afb(0x422)]),_0x490d21=(_0x36aa92=_0x2cfc1b==null?void 0x0:_0x2cfc1b[_0x261afb(0x3da)])!=null?_0x36aa92:[],_0x27edbb=(_0x3039b0=_0x2cfc1b==null?void 0x0:_0x2cfc1b[_0x261afb(0x477)])!=null?_0x3039b0:null,_0x1ee1fa=this[_0x261afb(0x422)];try{this['_replayCachedMutations'](_0x27edbb,_0x490d21);}catch(_0x12ba91){this[_0x261afb(0x46f)][_0x261afb(0x191)](_0x12ba91);}const _0x49e8da=this['_createHandler']();if(_0x521833){const _0x2e055a=Tt(this['_injector'],_0x1ee1fa,this[_0x261afb(0x3c0)],_0x27edbb,_0x490d21,_0x49e8da);return _0x2e055a instanceof j?_0x2e055a[_0x261afb(0x325)]():(_0x2e055a instanceof $||_0x2e055a instanceof x)&&_0x2e055a[_0x261afb(0x2af)](),_0x2e055a;}return this[_0x261afb(0x31d)][_0x261afb(0x3b9)](k,_0x1ee1fa,this[_0x261afb(0x3c0)],_0x27edbb,_0x490d21,_0x49e8da);}[_0x2ad778(0x15d)](_0x26befc,_0x46c4b2){const _0x25f50c=_0x2ad778;var _0x2193f1,_0xf921ec;const _0x2f0f1e=this[_0x25f50c(0x37e)][_0x25f50c(0x198)][_0x25f50c(0x284)](this[_0x25f50c(0x37e)][_0x25f50c(0x198)][_0x25f50c(0x3a0)]()[_0x25f50c(0x2d8)]);(_0x2193f1=_0x2f0f1e((_0x26befc==null?void 0x0:_0x26befc[_0x25f50c(0x3da)])||[],null))==null||_0x2193f1[_0x25f50c(0x169)](_0x181b1c=>this[_0x25f50c(0x14c)][_0x25f50c(0x2a6)](_0x181b1c['id'],_0x181b1c[_0x25f50c(0x1ba)])),(_0xf921ec=_0x2f0f1e(_0x46c4b2||[],null))==null||_0xf921ec[_0x25f50c(0x169)](_0xb1708d=>this[_0x25f50c(0x14c)][_0x25f50c(0x2a6)](_0xb1708d['id'],_0xb1708d[_0x25f50c(0x1ba)]));}};Ie=Ce([I(0x3,o['Inject'](o[_0x2ad778(0x26c)])),I(0x4,o[_0x2ad778(0x143)](exports['LocalCacheService'])),I(0x5,o[_0x2ad778(0x143)](_[_0x2ad778(0x1d2)])),I(0x6,o[_0x2ad778(0x143)](o['LocaleService'])),I(0x7,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),I(0x8,o[_0x2ad778(0x2ac)]),I(0x9,o[_0x2ad778(0x4e4)]),I(0xa,M[_0x2ad778(0x253)]),I(0xb,o[_0x2ad778(0x358)]),I(0xc,o[_0x2ad778(0x1f8)](Ee))],Ie);let Le=class extends Ie{constructor(_0x3213be,_0xa5d6cf,_0x4fb8aa,_0x2272ad,_0x2040a2,_0x40aec1,_0xcb9b97,_0x21b6ee,_0x3df663,_0x1f22ae,_0x3170f5,_0x515750,_0x16aa6f,_0x206fa2,_0x302801,_0x5ca577,_0x96958a){const _0x274ae2=_0x2ad778;super(_0x3213be,_0xa5d6cf,_0x4fb8aa,_0x2272ad,_0x2040a2,_0x40aec1,_0xcb9b97,_0x21b6ee,_0x16aa6f,_0x206fa2,_0x302801,_0x5ca577,_0x96958a),this[_0x274ae2(0x422)]=_0x3213be,this[_0x274ae2(0x348)]=_0xa5d6cf,this[_0x274ae2(0x159)]=_0x4fb8aa,this[_0x274ae2(0x282)]=_0x3df663,this['_docTransformIMECacheService']=_0x1f22ae,this['_docTransformSelectionsService']=_0x3170f5,this[_0x274ae2(0x42b)]=_0x515750;}[_0x2ad778(0x14d)](){const _0xae32b6=_0x2ad778,_0x26aae7=super['_createHandler']();return _0x26aae7['onTransformIME']=_0xb63485=>this[_0xae32b6(0x308)][_0xae32b6(0x232)](_0xb63485),_0x26aae7[_0xae32b6(0x1d7)]=_0x1cb4ee=>this[_0xae32b6(0x470)][_0xae32b6(0x49e)](_0x1cb4ee),_0x26aae7[_0xae32b6(0x247)]=_0x1068ca=>this[_0xae32b6(0x42b)][_0xae32b6(0x40c)](_0x1068ca),_0x26aae7[_0xae32b6(0x13f)]=_0x1c6299=>this[_0xae32b6(0x308)][_0xae32b6(0x255)](_0x1c6299),_0x26aae7;}async[_0x2ad778(0x3c3)](){const _0x1e2387=_0x2ad778,_0xe3ef9e=await super[_0x1e2387(0x3c3)]();return this['_docStateChangeManagerService']['docStateChange$']['pipe'](v['takeUntil'](this[_0x1e2387(0x46a)]))['subscribe'](_0x2c109f=>{const _0x559fd5=_0x1e2387;if(_0x2c109f==null)return;const {unitId:_0x4a301e,redoState:_0x5cd98b,commandId:_0xc1a815}=_0x2c109f;if(_0x4a301e!==this[_0x559fd5(0x422)])return;const _0x35e339={'id':_0xc1a815,'type':o[_0x559fd5(0x4cf)][_0x559fd5(0x2b9)],'params':{'unitId':_0x4a301e,'actions':_0x5cd98b[_0x559fd5(0x2fd)],'textRanges':null}};this[_0x559fd5(0x1ca)](_0x35e339);}),_0xe3ef9e;}};Le=Ce([I(0x3,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),I(0x4,o[_0x2ad778(0x143)](exports['LocalCacheService'])),I(0x5,o['Inject'](_[_0x2ad778(0x1d2)])),I(0x6,o[_0x2ad778(0x143)](o[_0x2ad778(0x384)])),I(0x7,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),I(0x8,o[_0x2ad778(0x143)](L[_0x2ad778(0x172)])),I(0x9,o[_0x2ad778(0x143)](ge)),I(0xa,o['Inject'](fe)),I(0xb,o[_0x2ad778(0x143)](We)),I(0xc,o['ILogService']),I(0xd,o[_0x2ad778(0x4e4)]),I(0xe,M[_0x2ad778(0x253)]),I(0xf,o[_0x2ad778(0x358)]),I(0x10,o['Optional'](Ee))],Le);let Me=class extends Ie{constructor(_0xb96769,_0x55a066,_0x275a16,_0x4d49b8,_0x237102,_0x28fa42,_0x554e2d,_0x542976,_0x52d3a3,_0x2cd7b6,_0x646661,_0x3fac9a,_0x3f57b6,_0x4090ea){const _0x2712c3=_0x2ad778;super(_0xb96769,_0x55a066,_0x275a16,_0x4d49b8,_0x237102,_0x28fa42,_0x554e2d,_0x542976,_0x2cd7b6,_0x646661,_0x3fac9a,_0x3f57b6,_0x4090ea),this[_0x2712c3(0x422)]=_0xb96769,this[_0x2712c3(0x348)]=_0x55a066,this[_0x2712c3(0x159)]=_0x275a16,this['_sheetTransformSelectionsService']=_0x52d3a3;}['_createHandler'](){const _0x436fc2=_0x2ad778,_0x37a222=super[_0x436fc2(0x14d)]();return _0x37a222[_0x436fc2(0x1d7)]=_0x2df45a=>this['_sheetTransformSelectionsService'][_0x436fc2(0x49e)](_0x2df45a),_0x37a222;}async['_init'](){const _0x21d678=_0x2ad778,_0x1646ce=await super[_0x21d678(0x3c3)]();return this[_0x21d678(0x233)](this[_0x21d678(0x14c)]['onCommandExecuted']((_0x3582da,_0x230033)=>{const _0x435e09=_0x21d678;if(_0x3582da[_0x435e09(0x348)]!==o['CommandType'][_0x435e09(0x2b9)]||_0x230033!=null&&_0x230033[_0x435e09(0x3a1)]||_0x230033!=null&&_0x230033[_0x435e09(0x25d)])return;const _0x2859e6=_0x3582da['params'];if((_0x2859e6==null?void 0x0:_0x2859e6['unitId'])!==this[_0x435e09(0x422)])return;const _0x2b259e=_0x3582da,_0x2c4d1f=this['_compressMutationService'][_0x435e09(0x198)]['fetchThroughInterceptors'](this[_0x435e09(0x37e)][_0x435e09(0x198)][_0x435e09(0x3a0)]()['COMPRESS_MUTATION_SEND'])([_0x2b259e],null)||[_0x2b259e];this[_0x435e09(0x1ca)](_0x2c4d1f[0x0]);})),_0x1646ce;}};Me=Ce([I(0x3,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),I(0x4,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),I(0x5,o[_0x2ad778(0x143)](_[_0x2ad778(0x1d2)])),I(0x6,o[_0x2ad778(0x143)](o['LocaleService'])),I(0x7,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),I(0x8,o[_0x2ad778(0x143)](me)),I(0x9,o[_0x2ad778(0x2ac)]),I(0xa,o['ICommandService']),I(0xb,M[_0x2ad778(0x253)]),I(0xc,o[_0x2ad778(0x358)]),I(0xd,o[_0x2ad778(0x1f8)](Ee))],Me);const st=[_0x2ad778(0x379),_0x2ad778(0x1b4),_0x2ad778(0x193),'red300','blue400',_0x2ad778(0x3d0)];class Ge extends o['Disposable']{constructor(){const _0xd3bff9=_0x2ad778;super(...arguments),u(this,_0xd3bff9(0x49b),new Map()),u(this,_0xd3bff9(0x1d5),0x0);}[_0x2ad778(0x478)](_0x21879b){const _0x194c25=_0x2ad778;if(this['_assignedColors'][_0x194c25(0x44d)](_0x21879b))return this[_0x194c25(0x49b)][_0x194c25(0x49d)](_0x21879b);const _0xf142e9=st[this[_0x194c25(0x1d5)]];return this[_0x194c25(0x1d5)]=(this[_0x194c25(0x1d5)]+0x1)%st[_0x194c25(0x32e)],this['_assignedColors'][_0x194c25(0x20c)](_0x21879b,_0xf142e9),_0xf142e9;}}var ws=Object['defineProperty'],ys=Object[_0x2ad778(0x16e)],Ls=(_0xe9244e,_0x9ae0d9,_0x3a0aad,_0x3c1664)=>{const _0x4f014a=_0x2ad778;for(var _0x24f8f7=_0x3c1664>0x1?void 0x0:_0x3c1664?ys(_0x9ae0d9,_0x3a0aad):_0x9ae0d9,_0x153baf=_0xe9244e[_0x4f014a(0x32e)]-0x1,_0x303b1f;_0x153baf>=0x0;_0x153baf--)(_0x303b1f=_0xe9244e[_0x153baf])&&(_0x24f8f7=(_0x3c1664?_0x303b1f(_0x9ae0d9,_0x3a0aad,_0x24f8f7):_0x303b1f(_0x24f8f7))||_0x24f8f7);return _0x3c1664&&_0x24f8f7&&ws(_0x9ae0d9,_0x3a0aad,_0x24f8f7),_0x24f8f7;},X=(_0x13b43d,_0x197c33)=>(_0x587992,_0x5969be)=>_0x197c33(_0x587992,_0x5969be,_0x13b43d);const Ms=0x12c,Ns=0x64,As=()=>{let _0x1369d8=[],_0x7cade=!0x1;return _0x3a0ec9=>{const _0xde83e8=_0x379e;_0x1369d8[_0xde83e8(0x363)](_0x3a0ec9),_0x7cade||(_0x7cade=!0x0,setTimeout(()=>{const _0x3b1110=_0xde83e8;_0x1369d8[_0x3b1110(0x169)](_0x18eee8=>_0x18eee8()),_0x1369d8=[],_0x7cade=!0x1;}));};};let Ne=class extends o[_0x2ad778(0x30e)]{constructor(_0x3aee0f,_0x1ba173,_0x4d95cd,_0x4f0227,_0x1667f3,_0x3e4b90,_0x4c6c2a,_0x5878fd){const _0x480bbc=_0x2ad778;super(),u(this,'_online',!0x1),u(this,'_init',!0x1),u(this,_0x480bbc(0x408),new v[(_0x480bbc(0x31c))](new Map())),u(this,_0x480bbc(0x1da),this[_0x480bbc(0x408)]['asObservable']()),u(this,_0x480bbc(0x47e),new v[(_0x480bbc(0x31c))]([])),u(this,_0x480bbc(0x449),this[_0x480bbc(0x47e)][_0x480bbc(0x502)](v['debounceTime'](Ms))),u(this,_0x480bbc(0x1ec),xe((_0x177a5a,_0x600782)=>{const _0x17ca02=_0x480bbc,_0x5a19f1={'eventID':_[_0x17ca02(0x4b9)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x17ca02(0x422)],'memberID':this[_0x17ca02(0x22d)][_0x17ca02(0x505)](),'selection':Xe[_0x17ca02(0x219)](_0x177a5a,_0x600782['range'])}};this[_0x17ca02(0x22d)][_0x17ca02(0x424)](_0x5a19f1,this[_0x17ca02(0x422)]);},Ns)),(this[_0x480bbc(0x422)]=_0x3aee0f,this[_0x480bbc(0x22d)]=_0x1ba173,this[_0x480bbc(0x31d)]=_0x4d95cd,this[_0x480bbc(0x38d)]=_0x4f0227,this[_0x480bbc(0x278)]=_0x1667f3,this[_0x480bbc(0x2ec)]=_0x3e4b90,this[_0x480bbc(0x14c)]=_0x4c6c2a,this[_0x480bbc(0x4d7)]=_0x5878fd);}get[_0x2ad778(0x31b)](){const _0x1b9e47=_0x2ad778;return this[_0x1b9e47(0x408)][_0x1b9e47(0x261)]();}get['roomMembers'](){const _0x46ed6f=_0x2ad778;return this[_0x46ed6f(0x47e)]['getValue']();}[_0x2ad778(0x194)](){const _0x1be25e=_0x2ad778;super['dispose'](),this[_0x1be25e(0x408)][_0x1be25e(0x368)](new Map()),this[_0x1be25e(0x408)][_0x1be25e(0x1df)](),this[_0x1be25e(0x47e)][_0x1be25e(0x368)]([]),this[_0x1be25e(0x47e)]['complete']();}['init'](){const _0x30c4ed=_0x2ad778;this[_0x30c4ed(0x3c3)]||(this[_0x30c4ed(0x3c3)]=!0x0,this[_0x30c4ed(0x22d)]['sessionStatus$']['pipe'](v[_0x30c4ed(0x306)](this[_0x30c4ed(0x46a)]))['subscribe'](_0x54cf06=>{const _0x2b7bb4=_0x30c4ed;_0x54cf06===V[_0x2b7bb4(0x21e)]?this[_0x2b7bb4(0x43e)]():this[_0x2b7bb4(0x148)]();}),this[_0x30c4ed(0x22d)][_0x30c4ed(0x1e5)][_0x30c4ed(0x502)](v[_0x30c4ed(0x306)](this[_0x30c4ed(0x46a)]))[_0x30c4ed(0x27c)](_0x4e0357=>{const _0x1ff81e=_0x30c4ed,_0x53a441=_0x4e0357[_0x1ff81e(0x318)];_0x53a441===_['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x1ff81e(0x1ac)](_0x4e0357),_0x53a441===_['CollaborationEvent'][_0x1ff81e(0x16d)]&&this[_0x1ff81e(0x3f1)](_0x4e0357);}),this[_0x30c4ed(0x3de)](),this[_0x30c4ed(0x233)](this['_commandService'][_0x30c4ed(0x19b)](_0xacf804=>{const _0xe05015=_0x30c4ed;if(this['_online']&&_0xacf804['id']===p[_0xe05015(0x311)]['id']&&_0xacf804['params'][_0xe05015(0x353)]===this[_0xe05015(0x422)]){const _0x333bbc=_0xacf804[_0xe05015(0x1ba)];this[_0xe05015(0x1ec)](_0x333bbc[_0xe05015(0x385)],_0x333bbc['selections'][0x0]);}})));}[_0x2ad778(0x1ac)](_0x26f892){const _0x1cdf4e=_0x2ad778;var _0x41a937,_0x36fc8a;const {memberID:_0x5eaa4f,selection:_0x17b7e1}=_0x26f892[_0x1cdf4e(0x2f7)],{sheetName:_0x55f12b,range:_0x123e95}=Xe[_0x1cdf4e(0x4f7)](_0x17b7e1),_0x2c8875={'name':(_0x36fc8a=(_0x41a937=this[_0x1cdf4e(0x278)]['getMember'](this[_0x1cdf4e(0x422)],_0x5eaa4f))==null?void 0x0:_0x41a937['name'])!=null?_0x36fc8a:'Unknown\x20user','range':this[_0x1cdf4e(0x495)](_0x55f12b,_0x123e95),'sheetID':_0x55f12b,'color':this[_0x1cdf4e(0x38d)][_0x1cdf4e(0x478)](_0x5eaa4f),'selection':_0x17b7e1},_0x19a69c=this[_0x1cdf4e(0x31b)];_0x19a69c['set'](_0x5eaa4f,_0x2c8875),this[_0x1cdf4e(0x408)]['next'](_0x19a69c);}[_0x2ad778(0x3f1)](_0x3b597f){const _0x326a6f=_0x2ad778,{memberID:_0x24d47d}=_0x3b597f[_0x326a6f(0x2f7)],_0x1c685b=this[_0x326a6f(0x31b)];_0x1c685b[_0x326a6f(0x40a)](_0x24d47d),this[_0x326a6f(0x408)]['next'](_0x1c685b);}[_0x2ad778(0x495)](_0x203038,_0x25bfe2){const _0x3240db=_0x2ad778;var _0x3fcde1,_0x2c7326;const _0x4e40ec=(_0x2c7326=(_0x3fcde1=this[_0x3240db(0x2ec)][_0x3240db(0x1e6)](this[_0x3240db(0x422)]))==null?void 0x0:_0x3fcde1[_0x3240db(0x337)](_0x203038))==null?void 0x0:_0x2c7326[_0x3240db(0x324)]();return(_0x4e40ec==null?void 0x0:_0x4e40ec[_0x3240db(0x506)](_0x27b9d0=>o[_0x3240db(0x4bc)][_0x3240db(0x42c)](_0x27b9d0,_0x25bfe2)))||_0x25bfe2;}[_0x2ad778(0x3de)](){const _0x57adbf=_0x2ad778,_0x57c4de=new o[(_0x57adbf(0x244))](),_0x2d18dc=As(),_0x24e53f=()=>{const _0x13dc34=_0x57adbf;_0x57c4de['dispose']();const _0x176c6d=(_0x535f29,_0x67d281,_0x4ae824,_0x53cd4e)=>{const _0x18a86a=_0x379e;let _0x54fd2b=[];switch(_0x535f29['id']){case p[_0x18a86a(0x4a9)][_0x18a86a(0x1d6)]:{_0x54fd2b=p[_0x18a86a(0x354)](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x1f5)]:{_0x54fd2b=p['handleDeleteRangeMoveUp'](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x4d9)]:{_0x54fd2b=p[_0x18a86a(0x27a)](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x3b1)]:{_0x54fd2b=p['handleInsertRangeMoveDown'](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x3ad)]:{_0x54fd2b=p['handleInsertRangeMoveRight'](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x2eb)]:{_0x54fd2b=p[_0x18a86a(0x26f)](_0x535f29,_0x53cd4e);break;}case p['EffectRefRangId'][_0x18a86a(0x3e4)]:{_0x54fd2b=p['handleMoveRange'](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x301)]:{_0x54fd2b=p['handleIRemoveCol'](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x41b)]:{_0x54fd2b=p[_0x18a86a(0x214)](_0x535f29,_0x53cd4e);break;}}const _0x347909=p[_0x18a86a(0x44a)](_0x54fd2b,_0x53cd4e),_0x399389=this[_0x18a86a(0x31b)][_0x18a86a(0x49d)](_0x67d281);if(_0x399389&&_0x347909){const _0x1d6d9f={..._0x399389,'range':_0x347909};this['cursorInfo'][_0x18a86a(0x20c)](_0x67d281,_0x1d6d9f),_0x2d18dc(()=>{const _0xdd9e70=_0x18a86a,_0x14f8c5=this[_0xdd9e70(0x4d7)][_0xdd9e70(0x170)](_0x347909,_0xe0655d=>(_0x14f8c5[_0xdd9e70(0x194)](),_0x176c6d(_0xe0655d,_0x67d281,_0x4ae824,_0x347909)));_0x57c4de[_0xdd9e70(0x459)](_0x14f8c5);});}return{'redos':[],'undos':[]};};this[_0x13dc34(0x31b)]['forEach']((_0x2f2dbd,_0x117ffd)=>{const _0x5b0d34=_0x13dc34,{range:_0x345191,sheetID:_0x1b45d3}=_0x2f2dbd,_0x22a5d9=this[_0x5b0d34(0x4d7)][_0x5b0d34(0x170)](_0x345191,_0x4a9700=>(_0x22a5d9['dispose'](),_0x176c6d(_0x4a9700,_0x117ffd,_0x1b45d3,_0x345191)));_0x57c4de[_0x5b0d34(0x459)](_0x22a5d9);});};this[_0x57adbf(0x233)](o[_0x57adbf(0x1e7)](this[_0x57adbf(0x408)][_0x57adbf(0x27c)](()=>{_0x24e53f();})));}['_toggleOnline'](){const _0x544787=_0x2ad778;var _0x28ad10,_0x1eda77;if(this[_0x544787(0x507)]=!0x0,((_0x28ad10=this[_0x544787(0x2ec)][_0x544787(0x401)]())==null?void 0x0:_0x28ad10[_0x544787(0x340)]())!==this['unitID'])return;const _0x38feda=(_0x1eda77=this[_0x544787(0x31d)][_0x544787(0x49d)](p[_0x544787(0x461)])['getCurrentSelections']())==null?void 0x0:_0x1eda77[0x0],_0x5990a2=this[_0x544787(0x2ec)]['getCurrentUnitForType'](o[_0x544787(0x3c7)][_0x544787(0x421)])[_0x544787(0x18f)]();_0x38feda&&_0x5990a2&&this[_0x544787(0x1ec)](_0x5990a2[_0x544787(0x496)](),_0x38feda);}['_toggleOffline'](){this['_online']=!0x1;}};Ne=Ls([X(0x2,o[_0x2ad778(0x143)](o['Injector'])),X(0x3,o[_0x2ad778(0x143)](Ge)),X(0x4,o[_0x2ad778(0x143)](W)),X(0x5,o[_0x2ad778(0x1ed)]),X(0x6,o[_0x2ad778(0x4e4)]),X(0x7,o[_0x2ad778(0x143)](p[_0x2ad778(0x2ae)]))],Ne);var js=Object[_0x2ad778(0x4be)],$s=Object[_0x2ad778(0x16e)],Hs=(_0x39d374,_0x3cd115,_0x50ae57,_0x30c43e)=>{const _0x44e3c8=_0x2ad778;for(var _0x1efeb1=_0x30c43e>0x1?void 0x0:_0x30c43e?$s(_0x3cd115,_0x50ae57):_0x3cd115,_0x3bad92=_0x39d374[_0x44e3c8(0x32e)]-0x1,_0x1ec7c8;_0x3bad92>=0x0;_0x3bad92--)(_0x1ec7c8=_0x39d374[_0x3bad92])&&(_0x1efeb1=(_0x30c43e?_0x1ec7c8(_0x3cd115,_0x50ae57,_0x1efeb1):_0x1ec7c8(_0x1efeb1))||_0x1efeb1);return _0x30c43e&&_0x1efeb1&&js(_0x3cd115,_0x50ae57,_0x1efeb1),_0x1efeb1;},F=(_0x419f75,_0x139789)=>(_0x4d5544,_0x12b139)=>_0x139789(_0x4d5544,_0x12b139,_0x419f75);const xs=0x12c,ks=0x64;let Ae=class extends o[_0x2ad778(0x30e)]{constructor(_0x3f4e7b,_0x3396ac,_0xe397cd,_0x2c7bfd,_0x13fd49,_0x2c426b,_0x538a94,_0x4e3b27,_0x14bf43){const _0x5aebf2=_0x2ad778;super(),u(this,_0x5aebf2(0x507),!0x1),u(this,_0x5aebf2(0x3c3),!0x1),u(this,_0x5aebf2(0x408),new v['BehaviorSubject'](new Map())),u(this,_0x5aebf2(0x1da),this['_cursorInfo$'][_0x5aebf2(0x1bd)]()),u(this,_0x5aebf2(0x47e),new v[(_0x5aebf2(0x31c))]([])),u(this,_0x5aebf2(0x449),this[_0x5aebf2(0x47e)][_0x5aebf2(0x502)](v[_0x5aebf2(0x15f)](xs))),u(this,_0x5aebf2(0x1ec),xe(_0x52b85f=>{const _0x4a6b97=_0x5aebf2,_0x55c0ee={'eventID':_[_0x4a6b97(0x4b9)][_0x4a6b97(0x1be)],'data':{'unitID':this[_0x4a6b97(0x422)],'memberID':this['_session'][_0x4a6b97(0x505)](),'selection':bt(_0x52b85f)}};this[_0x4a6b97(0x22d)]['send'](_0x55c0ee,this[_0x4a6b97(0x422)]);},ks)),(this['unitID']=_0x3f4e7b,this[_0x5aebf2(0x22d)]=_0x3396ac,this[_0x5aebf2(0x31d)]=_0xe397cd,this[_0x5aebf2(0x38d)]=_0x2c7bfd,this[_0x5aebf2(0x278)]=_0x13fd49,this[_0x5aebf2(0x210)]=_0x2c426b,this['_transformService']=_0x538a94,this['_univerInstanceService']=_0x4e3b27,this[_0x5aebf2(0x14c)]=_0x14bf43);}get[_0x2ad778(0x31b)](){const _0x3faca6=_0x2ad778;return this['_cursorInfo$'][_0x3faca6(0x261)]();}get[_0x2ad778(0x2c3)](){const _0xf1c42b=_0x2ad778;return this[_0xf1c42b(0x47e)]['getValue']();}[_0x2ad778(0x194)](){const _0x1073e9=_0x2ad778;super[_0x1073e9(0x194)](),this[_0x1073e9(0x408)][_0x1073e9(0x368)](new Map()),this['_cursorInfo$'][_0x1073e9(0x1df)](),this[_0x1073e9(0x47e)][_0x1073e9(0x368)]([]),this[_0x1073e9(0x47e)][_0x1073e9(0x1df)]();}['init'](){const _0x1962e1=_0x2ad778;this[_0x1962e1(0x3c3)]||(this[_0x1962e1(0x3c3)]=!0x0,this[_0x1962e1(0x22d)][_0x1962e1(0x292)][_0x1962e1(0x502)](v[_0x1962e1(0x306)](this[_0x1962e1(0x46a)]))['subscribe'](_0x23f08f=>{const _0x147216=_0x1962e1;_0x23f08f===V[_0x147216(0x21e)]?this[_0x147216(0x43e)]():this['_toggleOffline']();}),this['_session'][_0x1962e1(0x1e5)]['pipe'](v[_0x1962e1(0x306)](this[_0x1962e1(0x46a)]))[_0x1962e1(0x27c)](_0x300624=>{const _0x58cf01=_0x1962e1,_0xdcd09d=_0x300624[_0x58cf01(0x318)];_0xdcd09d===_[_0x58cf01(0x4b9)]['UPDATE_CURSOR']&&this[_0x58cf01(0x1ac)](_0x300624),_0xdcd09d===_[_0x58cf01(0x4b9)][_0x58cf01(0x16d)]&&this[_0x58cf01(0x3f1)](_0x300624);}),this[_0x1962e1(0x233)](this['_commandService'][_0x1962e1(0x19b)](_0x58b711=>{const _0x2423aa=_0x1962e1,_0xe323f4=_0x58b711[_0x2423aa(0x1ba)];_0xe323f4!=null&&this[_0x2423aa(0x507)]&&_0x58b711['id']===L['SetTextSelectionsOperation']['id']&&_0xe323f4[_0x2423aa(0x353)]===this[_0x2423aa(0x422)]&&_0xe323f4[_0x2423aa(0x46c)]===!0x1&&this[_0x2423aa(0x1ec)](_0xe323f4[_0x2423aa(0x3cb)]);})),this[_0x1962e1(0x210)]['collabCursorState$']['pipe'](v['takeUntil'](this[_0x1962e1(0x46a)]))[_0x1962e1(0x27c)](_0xa1345=>{const _0x5f4f57=_0x1962e1;if((_0xa1345==null?void 0x0:_0xa1345[_0x5f4f57(0x422)])!==this[_0x5f4f57(0x422)])return;const _0x774ceb={'eventID':_[_0x5f4f57(0x4b9)]['UPDATE_CURSOR'],'data':_0xa1345};this['_onCursorUpdate'](_0x774ceb);}),this[_0x1962e1(0x233)](this[_0x1962e1(0x14c)][_0x1962e1(0x19b)](_0x4a1430=>{const _0x339faf=_0x1962e1;if(_0x4a1430[_0x339faf(0x1ba)]==null)return;const _0x4e1007=_0x4a1430['params'];if(_0x4a1430['id']!==L[_0x339faf(0x1a6)]['id']||_0x4e1007[_0x339faf(0x353)]!==this[_0x339faf(0x422)])return;const _0x3c7ef9={'id':_0x339faf(0x30b),'params':_0x4e1007},_0x5f1ac2=this[_0x339faf(0x31b)];for(const [_0x1ad3a3,_0x1483c2]of _0x5f1ac2){const _0x4d4888={'id':_0x339faf(0x30b),'params':{'unitId':this[_0x339faf(0x422)],'actions':null,'textRanges':_0x1483c2[_0x339faf(0x3cb)]}},_0xaf825d=this[_0x339faf(0x258)][_0x339faf(0x327)](_0x3c7ef9,_0x4d4888,!0x1);if(_['isTransformMutationFailure'](_0xaf825d))throw _0xaf825d[_0x339faf(0x191)];_0x5f1ac2['set'](_0x1ad3a3,{..._0x1483c2,'ranges':_0xaf825d[_0x339faf(0x29e)]['params'][_0x339faf(0x15a)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x5f1ac2);});})));}['_onCursorUpdate'](_0x2102e0){const _0x192e09=_0x2ad778;var _0x276748,_0x4b8fc5;const {memberID:_0xfae8ca,selection:_0x4b146f}=_0x2102e0[_0x192e09(0x2f7)],_0x45fe3a=ms(_0x4b146f),_0x1bb5b4=(_0x4b8fc5=(_0x276748=this[_0x192e09(0x278)][_0x192e09(0x4ec)](this[_0x192e09(0x422)],_0xfae8ca))==null?void 0x0:_0x276748[_0x192e09(0x249)])!=null?_0x4b8fc5:_0x192e09(0x2b2),_0x310b09={'color':this[_0x192e09(0x38d)][_0x192e09(0x478)](_0xfae8ca),'name':_0x1bb5b4,'ranges':_0x45fe3a},_0x1bc372=this[_0x192e09(0x31b)];_0x1bc372[_0x192e09(0x20c)](_0xfae8ca,_0x310b09),this['_cursorInfo$'][_0x192e09(0x368)](_0x1bc372);}[_0x2ad778(0x3f1)](_0xdfb1fc){const _0x340dc1=_0x2ad778,{memberID:_0x349b39}=_0xdfb1fc[_0x340dc1(0x2f7)],_0x438925=this[_0x340dc1(0x31b)];_0x438925[_0x340dc1(0x40a)](_0x349b39),this[_0x340dc1(0x408)][_0x340dc1(0x368)](_0x438925);}[_0x2ad778(0x43e)](){const _0x256029=_0x2ad778;var _0x4ea0a1;if(this[_0x256029(0x507)]=!0x0,((_0x4ea0a1=this[_0x256029(0x2ec)]['getFocusedUnit']())==null?void 0x0:_0x4ea0a1[_0x256029(0x340)]())!==this['unitID'])return;const _0x44080a=this[_0x256029(0x31d)][_0x256029(0x49d)](L[_0x256029(0x187)])[_0x256029(0x202)](),_0x5daa1f=_0x44080a==null?void 0x0:_0x44080a[_0x256029(0x2c7)](L[_0x256029(0x218)]);Array[_0x256029(0x3b6)](_0x5daa1f)&&_0x5daa1f[_0x256029(0x32e)]>0x0&&this['_updateLocalCursor'](_0x5daa1f);}['_toggleOffline'](){const _0x22164b=_0x2ad778;this[_0x22164b(0x507)]=!0x1;}};Ae=Hs([F(0x2,o['Inject'](o[_0x2ad778(0x26c)])),F(0x3,o[_0x2ad778(0x143)](Ge)),F(0x4,o[_0x2ad778(0x143)](W)),F(0x5,o[_0x2ad778(0x143)](We)),F(0x6,_[_0x2ad778(0x4a5)]),F(0x7,o[_0x2ad778(0x1ed)]),F(0x8,o[_0x2ad778(0x4e4)])],Ae);var Bs=Object['defineProperty'],Fs=Object['getOwnPropertyDescriptor'],Vs=(_0x214c22,_0x35528f,_0x3d5c8f,_0x57eb77)=>{const _0xa20962=_0x2ad778;for(var _0x5c8c47=_0x57eb77>0x1?void 0x0:_0x57eb77?Fs(_0x35528f,_0x3d5c8f):_0x35528f,_0x4fdcb9=_0x214c22[_0xa20962(0x32e)]-0x1,_0x251865;_0x4fdcb9>=0x0;_0x4fdcb9--)(_0x251865=_0x214c22[_0x4fdcb9])&&(_0x5c8c47=(_0x57eb77?_0x251865(_0x35528f,_0x3d5c8f,_0x5c8c47):_0x251865(_0x5c8c47))||_0x5c8c47);return _0x57eb77&&_0x5c8c47&&Bs(_0x35528f,_0x3d5c8f,_0x5c8c47),_0x5c8c47;},De=(_0x4a90ed,_0x5f177e)=>(_0x2325ec,_0x9c1bba)=>_0x5f177e(_0x2325ec,_0x9c1bba,_0x4a90ed);let z=class extends o[_0x2ad778(0x30e)]{constructor(_0x37894a,_0x456be3,_0x2c3fa4){const _0x16a6bc=_0x2ad778;super(),u(this,'_entities',new Map()),u(this,'_entityInit$',new v['Subject']()),(this[_0x16a6bc(0x2ec)]=_0x37894a,this['_injector']=_0x456be3,this[_0x16a6bc(0x197)]=_0x2c3fa4,this[_0x16a6bc(0x3c3)]());}[_0x2ad778(0x194)](){const _0x3b6caa=_0x2ad778;super[_0x3b6caa(0x194)](),this['_entityInit$'][_0x3b6caa(0x1df)](),this[_0x3b6caa(0x17b)][_0x3b6caa(0x169)](_0x1cfc3a=>_0x1cfc3a['dispose']());}[_0x2ad778(0x4ea)](_0x38cf23){const _0x50dbb4=_0x2ad778;return this['_entities']['has'](_0x38cf23)?this[_0x50dbb4(0x17b)][_0x50dbb4(0x49d)](_0x38cf23)[_0x50dbb4(0x1da)]:this[_0x50dbb4(0x2b5)][_0x50dbb4(0x502)](v['filter'](_0xece97f=>_0xece97f[_0x50dbb4(0x422)]===_0x38cf23),v[_0x50dbb4(0x1c4)](_0x29df85=>_0x29df85[_0x50dbb4(0x1da)]));}[_0x2ad778(0x3c3)](){const _0x2ce18e=_0x2ad778;this[_0x2ce18e(0x2ec)][_0x2ce18e(0x4b7)](o[_0x2ce18e(0x3c7)][_0x2ce18e(0x421)])[_0x2ce18e(0x502)](v[_0x2ce18e(0x306)](this[_0x2ce18e(0x46a)]))[_0x2ce18e(0x27c)](async _0x51a30d=>{const _0x482bb2=_0x2ce18e,_0x407797=_0x51a30d[_0x482bb2(0x340)](),_0x13ad52=await this[_0x482bb2(0x1cd)](_0x407797);this['_entityInit$'][_0x482bb2(0x368)](_0x13ad52),this[_0x482bb2(0x17b)][_0x482bb2(0x20c)](_0x407797,_0x13ad52);}),this[_0x2ce18e(0x2ec)][_0x2ce18e(0x4b7)](o[_0x2ce18e(0x3c7)]['UNIVER_DOC'])[_0x2ce18e(0x502)](v[_0x2ce18e(0x306)](this[_0x2ce18e(0x46a)]))[_0x2ce18e(0x502)](v[_0x2ce18e(0x1dd)](_0xe84117=>!_0xe84117[_0x2ce18e(0x340)]()[_0x2ce18e(0x3bf)]('__')))[_0x2ce18e(0x27c)](async _0x16ad72=>{const _0x2ed96c=_0x2ce18e,_0xf8e9b9=_0x16ad72[_0x2ed96c(0x340)](),_0x386096=await this[_0x2ed96c(0x383)](_0xf8e9b9);this[_0x2ed96c(0x2b5)][_0x2ed96c(0x368)](_0x386096),this[_0x2ed96c(0x17b)][_0x2ed96c(0x20c)](_0xf8e9b9,_0x386096);}),v[_0x2ce18e(0x443)](this[_0x2ce18e(0x2ec)][_0x2ce18e(0x1e8)](o[_0x2ce18e(0x3c7)][_0x2ce18e(0x257)]),this[_0x2ce18e(0x2ec)][_0x2ce18e(0x1e8)](o[_0x2ce18e(0x3c7)]['UNIVER_SHEET']))[_0x2ce18e(0x502)](v['takeUntil'](this[_0x2ce18e(0x46a)]))[_0x2ce18e(0x27c)](_0x1f2482=>{const _0x748afc=_0x2ce18e,_0x436ed8=_0x1f2482[_0x748afc(0x340)](),_0x26c828=this['_entities'][_0x748afc(0x49d)](_0x436ed8);_0x26c828&&(_0x26c828[_0x748afc(0x194)](),this[_0x748afc(0x17b)][_0x748afc(0x40a)](_0x436ed8));});}async[_0x2ad778(0x1cd)](_0x519997){const _0x115080=_0x2ad778,_0x3ff832=await this[_0x115080(0x197)][_0x115080(0x34a)](_0x519997),_0x3eb3d3=this[_0x115080(0x31d)]['createInstance'](Ne,_0x519997,_0x3ff832);return _0x3eb3d3[_0x115080(0x367)](),_0x3eb3d3;}async[_0x2ad778(0x383)](_0x4a418a){const _0x314709=_0x2ad778,_0x4096e6=await this[_0x314709(0x197)][_0x314709(0x34a)](_0x4a418a),_0x1a528f=this[_0x314709(0x31d)][_0x314709(0x3b9)](Ae,_0x4a418a,_0x4096e6);return _0x1a528f['init'](),_0x1a528f;}};z=Vs([o[_0x2ad778(0x492)](o[_0x2ad778(0x2e2)][_0x2ad778(0x33f)],z),De(0x0,o[_0x2ad778(0x1ed)]),De(0x1,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),De(0x2,o[_0x2ad778(0x143)](exports['CollaborationSessionService']))],z);const ce=0x14,it=0xc8,Ue=0x4,Ws=0x5;function _0x379e(_0x10120a,_0x22401b){const _0x315bc2=_0x315b();return _0x379e=function(_0x379e55,_0x226b06){_0x379e55=_0x379e55-0x13f;let _0x11a08f=_0x315bc2[_0x379e55];return _0x11a08f;},_0x379e(_0x10120a,_0x22401b);}function Gs(_0x344e4b,_0x38f994){const _0x54700f=_0x2ad778;let {radius:_0x20da30,width:_0x5745ea,height:_0x4c681c}=_0x38f994;_0x20da30=_0x20da30!=null?_0x20da30:0x0,_0x5745ea=_0x5745ea!=null?_0x5745ea:0x1e,_0x4c681c=_0x4c681c!=null?_0x4c681c:0x1e;let _0x20e3ec=0x0,_0x4b4f62=0x0,_0x3805ad=0x0;_0x20e3ec=_0x4b4f62=_0x3805ad=Math['min'](_0x20da30,_0x5745ea/0x2,_0x4c681c/0x2),_0x344e4b['beginPath'](),_0x344e4b['moveTo'](_0x20e3ec,0x0),_0x344e4b['lineTo'](_0x5745ea-_0x4b4f62,0x0),_0x344e4b[_0x54700f(0x402)](_0x5745ea-_0x4b4f62,_0x4b4f62,_0x4b4f62,Math['PI']*0x3/0x2,0x0,!0x1),_0x344e4b[_0x54700f(0x313)](_0x5745ea,_0x4c681c-_0x3805ad),_0x344e4b[_0x54700f(0x402)](_0x5745ea-_0x3805ad,_0x4c681c-_0x3805ad,_0x3805ad,0x0,Math['PI']/0x2,!0x1),_0x344e4b[_0x54700f(0x313)](0x0,_0x4c681c),_0x344e4b[_0x54700f(0x313)](0x0,_0x20e3ec),_0x344e4b[_0x54700f(0x402)](_0x20e3ec,_0x20e3ec,_0x20e3ec,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x344e4b[_0x54700f(0x35a)](),_0x38f994['fill']&&(_0x344e4b[_0x54700f(0x4d2)](),_0x344e4b['fillStyle']=_0x38f994[_0x54700f(0x403)],_0x38f994['fillRule']==='evenodd'?_0x344e4b[_0x54700f(0x403)](_0x54700f(0x19f)):_0x344e4b[_0x54700f(0x403)](),_0x344e4b['restore']());}class be extends T[_0x2ad778(0x463)]{constructor(_0x47de7f,_0x2c1c45){const _0x5ce849=_0x2ad778;super(_0x47de7f,_0x2c1c45),u(this,_0x5ce849(0x1b7)),u(this,_0x5ce849(0x1f4)),(this[_0x5ce849(0x1b7)]=_0x2c1c45==null?void 0x0:_0x2c1c45['color'],this['text']=_0x2c1c45==null?void 0x0:_0x2c1c45['text']);}static[_0x2ad778(0x4f6)](_0x5eb021,_0x5481fb){const _0x45b9eb=_0x2ad778,{text:_0x521b28,color:_0x2327e3}=_0x5481fb;_0x5eb021[_0x45b9eb(0x4d2)](),_0x5eb021[_0x45b9eb(0x227)]=_0x45b9eb(0x178);const _0x4cf370=_0x5eb021['measureText'](_0x521b28)[_0x45b9eb(0x493)],_0xd1eb21=Math[_0x45b9eb(0x359)](_0x4cf370+0x2*Ue,it);Gs(_0x5eb021,{'height':ce,'radius':0x4,'width':_0xd1eb21,'fill':_0x2327e3,'evented':!0x1}),_0x5eb021[_0x45b9eb(0x2f8)]='#FFF';const _0x277036=Ue,_0x36c6f7=ce-Ws,_0x6a4a1=it-0x2*Ue;if(_0x4cf370>_0x6a4a1){let _0x3a768d='',_0x18e811=0x0;for(const _0xa6f93e of _0x521b28){const _0x4b007f=_0x5eb021['measureText'](_0xa6f93e)[_0x45b9eb(0x493)];if(_0x18e811+_0x4b007f<=_0x6a4a1-_0x5eb021[_0x45b9eb(0x145)](_0x45b9eb(0x2e6))['width'])_0x3a768d+=_0xa6f93e,_0x18e811+=_0x4b007f;else{_0x3a768d+=_0x45b9eb(0x2e6);break;}}_0x5eb021['fillText'](_0x3a768d,_0x277036,_0x36c6f7);}else _0x5eb021[_0x45b9eb(0x45a)](_0x521b28,_0x277036,_0x36c6f7);_0x5eb021[_0x45b9eb(0x335)]();}[_0x2ad778(0x30f)](_0x4b3ae9){be['drawWith'](_0x4b3ae9,this);}}const Ys=0x1,Ks=1.5;class Xs extends T[_0x2ad778(0x463)]{constructor(_0x54a6f6,_0x282385){const _0x5d6222=_0x2ad778;super(_0x54a6f6,_0x282385),u(this,_0x5d6222(0x450)),u(this,_0x5d6222(0x47a),!0x1),u(this,'_range'),u(this,_0x5d6222(0x414),''),u(this,_0x5d6222(0x286),_0x5d6222(0x387)),(_0x282385&&this[_0x5d6222(0x273)](_0x282385),this['onPointerEnter$'][_0x5d6222(0x1f7)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x5d6222(0x1f7)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2ad778(0x273)](_0x7b9f07){const _0x42db72=_0x2ad778;var _0x3ce3f1,_0xa00e7a,_0x21d510,_0x3a544c,_0x59a9ff;this[_0x42db72(0x450)]=(_0x3ce3f1=_0x7b9f07[_0x42db72(0x1b7)])!=null?_0x3ce3f1:this['_color'],this[_0x42db72(0x47a)]=(_0xa00e7a=_0x7b9f07[_0x42db72(0x34b)])!=null?_0xa00e7a:this[_0x42db72(0x47a)],this[_0x42db72(0x272)]=(_0x21d510=_0x7b9f07['range'])!=null?_0x21d510:this['_range'],this[_0x42db72(0x414)]=(_0x3a544c=_0x7b9f07[_0x42db72(0x249)])!=null?_0x3a544c:this[_0x42db72(0x414)],this[_0x42db72(0x286)]=(_0x59a9ff=_0x7b9f07['labelPosition'])!=null?_0x59a9ff:this['_labelPosition'],this[_0x42db72(0x209)]({'width':_0x7b9f07[_0x42db72(0x493)],'height':_0x7b9f07[_0x42db72(0x269)]});}[_0x2ad778(0x45c)](_0x2f9910){const _0x4fe4d8=_0x2ad778,{row:_0x244e7d,column:_0x12ffa9}=_0x2f9910;if(_0x244e7d>=this[_0x4fe4d8(0x272)][_0x4fe4d8(0x264)]&&_0x244e7d<=this[_0x4fe4d8(0x272)][_0x4fe4d8(0x21b)]&&_0x12ffa9>=this['_range'][_0x4fe4d8(0x2d1)]&&_0x12ffa9<=this['_range'][_0x4fe4d8(0x4cd)]){this[_0x4fe4d8(0x273)]({'hovered':!0x0});return;}this[_0x4fe4d8(0x273)]({'hovered':!0x1});}[_0x2ad778(0x2f1)](_0x123959){return!0x1;}[_0x2ad778(0x30f)](_0x2fd633){const _0x38af74=_0x2ad778;T[_0x38af74(0x38b)][_0x38af74(0x4f6)](_0x2fd633,{'width':this[_0x38af74(0x493)],'height':this[_0x38af74(0x269)],'strokeWidth':Ks,'stroke':this['_color'],'evented':!0x1}),this[_0x38af74(0x47a)]&&(_0x2fd633['save'](),_0x2fd633['transform'](0x1,0x0,0x0,0x1,this[_0x38af74(0x493)],this[_0x38af74(0x286)]===_0x38af74(0x419)?0x0:-ce),be[_0x38af74(0x4f6)](_0x2fd633,{'text':this[_0x38af74(0x414)],'color':this['_color']}),_0x2fd633['restore']());}}var qs=Object['defineProperty'],Js=Object['getOwnPropertyDescriptor'],zs=(_0x5f6f8e,_0x59624a,_0x33f8cf,_0x163ad2)=>{const _0xecd794=_0x2ad778;for(var _0x20ac31=_0x163ad2>0x1?void 0x0:_0x163ad2?Js(_0x59624a,_0x33f8cf):_0x59624a,_0x12724d=_0x5f6f8e[_0xecd794(0x32e)]-0x1,_0x1fdb74;_0x12724d>=0x0;_0x12724d--)(_0x1fdb74=_0x5f6f8e[_0x12724d])&&(_0x20ac31=(_0x163ad2?_0x1fdb74(_0x59624a,_0x33f8cf,_0x20ac31):_0x1fdb74(_0x20ac31))||_0x20ac31);return _0x163ad2&&_0x20ac31&&qs(_0x59624a,_0x33f8cf,_0x20ac31),_0x20ac31;},le=(_0x673495,_0x1c6b58)=>(_0x22a6c1,_0x4ad367)=>_0x1c6b58(_0x22a6c1,_0x4ad367,_0x673495);const Zs=0x1389;function _0x315b(){const _0x47c101=['Vector2','_transitionLocked','useObservable','_name','on-line-single','registerOnClose','_transformPreviousActiveRange','focused$','bottom','_hideTimer','RemoveRowCommandId','_getSnapshotAPIPrefix','\x0aCurrent:\x20','_themeService','getCellPositionByOffset','MSG_FOR_ERROR','UNIVER_SHEET','unitID','parseChangesetToProtocol','send','[OfflineState]:\x20received\x20changeset.','csRejEvent','_anchor','session.room-full','univer-online-status-icon','updateCollaborator','_docSyncEditingCollabCursorService','contains','socket\x20open.','LICENSE_DISTRO_REJECTED','off-line-single_clip0_910_343','unshift','/fetchmissing?from=','headers','getCurrentUser','_removeRoom','deserializeToCombResponse','disableLocalCache','revision','attrs','mergeOverrideWithDependencies','_clearScheduledTask','_exhaustSavingTask','_revisionService','xlink:href','_toggleOnline','_state$','univer-online-status','size','reverse','merge','_event$','selection','svg','c1Prime','isInternalEditorID','roomMembers$','runRefRangeMutations','_clearUndo','saveChangeset','has','toggleOnline','tag','_color','_http','_onCombEvent','displayName','getCollabEntity','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onlineStatus','addObjects','_onRemoteRejected','add','fillText','column','onMouseMove','findNodePositionByCharIndex','_queuedRemoteChangesets','rgba(255,\x20255,\x20255,\x200.01)','PERMISSION_DENIED','SheetsSelectionsService','_commentService','Shape','getDocObject','setCurrentUser','liveShareNewHost','shouldCloseConn','sequenceExecute','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose$','/universer-api/authz','isEditing','DataLoaderController','selections','_logService','_docTransformSelectionsService','M0\x200H16V16H0z','_lockTransition','_handleLeaveEvent','_updateLocalCache','getItem','_rescheduleHeartbeatEvent','awaitingChangeset','assignAColorForMemberID','Module','_hovered','activeSheet$','_retryConnectingTimer','ws://127.0.0.1:8000/universer-api/comb/connect','_roomMembers$','UNKNOWN_CODE','updateCursorEvent','univer-offline','_uiPartsService','getDataModel','debug','state','clipPath','_substituteRedoStack','getAncestorScale','_decreaseWaiting','JOINING','collabStatus.notCollab','string','ALREADY_EXISTS','/new_changes','_updateStatus','\x0aAfter:\x20','_anchorDot','OnLifecycle','width','onlineStatusIcon','_getMergeRange','getSheetId','image/bmp','CollaborationStatus','onRemoteRej','/collaborator','_assignedColors','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','get','transformSelections','workbook','confirm','440ZajZMu','json','_sheetSkeletonManagerService','collabStatus.conflict','ITransformService','SheetPermissionInitController','_executeRemoteChangeset','UPDATE_PERMISSION_OBJ','EffectRefRangId','IConfigService','getParam','IBeforeCloseService','_hover','_removeClearOtherTimer','SnapshotService','collabStatus.syncing','_lastPointer','1728lxtoib','OnLineSingle','LIVESHARE_TERMINATE','WebURLService','_clearLocalCache','getTypeOfUnitAdded$','SNAPSHOT_SERVER_URL_KEY','CollaborationEvent','_checkMissing','_initMergeInterceptor','Rectangle','onMissedChangesetFetched','defineProperty','loadOfflineData','SetWorksheetActivateCommand','routeKey','/universer-api/snapshot','_getUndoStack','univer-pro.collaboration-client.single-active-unit-service','_getSaveTimeout','NOT_FOUND','updateMember','extend','fromEvent','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','\x20to\x20','APPLY_REJECT','endColumn','OTHER_CLIENTS_EDITING','CommandType','colorChannel1','_docSkeletonManagerService','save','clearInterval','_localStorageService','29168OwwWsS','close','_refRangeService','[SyncedState]:\x20received\x20acknowledgement.','InsertColCommandId','NOT_COLLAB','generateRandomId','CHANGESET_ACK','_scheduleClearOtherTimer','snapshot','FETCH_MISS','UNDEFINED','collaborators','registerBeforeClose','_snapshotService','ICommandService','rxjs/operators','_localCacheService','SEND_CHANGESET_TIMEOUT_KEY','Error','AUTHZ_URL_KEY','getCollabCursors$','COLORS','getMember','2388612OZnLlK','MergeInterceptorFactory','_onRemoteChangeset','IAuthzIoService','_fetchMissChangesets','_initStatusComponent','UniverCollaborationClientPlugin','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_createSocket','drawWith','deserializeRangeWithSheet','UUID','isTransformChangesetsSuccess','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','encode','_startCollaboration','_localeService','reduce','Warning','isPermissionRej','incrementRevForDocument','pipe','loadDoc','update','getMemberID','find','_online','_configService','fetching\x20missing\x20changesets\x20from\x20','/rev/','_updateSubUnitFromURLParams','ImageSourceType','onTransformRemoteChangesetByIMECache','getRenderById','univer-online-status-title','roomInfos','Inject','_clearHeartbeatTimer','measureText','stringify','_onJoinRoomEvent','_toggleOffline','newValue','currentColor','collaboration.closeRoom','_commandService','_createHandler','originalMeta','synced','replace','with','[CollaborationSessionService]','c2Prime','_collaborationTimeoutTimer','_snapshotServerService','OffLineSingle','_transformSelections','_imageSourceCache','session','textRanges','HEARTBEAT_TIMEOUT_KEY','BASE64','_replayCachedMutations','replaceState','debounceTime','session.will-retry','YUUMI_UNABLE_LOAD_URL','unload','onPointerLeave$','_undoStacks','listRoles','HEARTBEAT_INTERVAL_KEY','unit','COMPLETION_FINISHED','forEach','51348YnPoRc','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_httpService','USERS_LEAVE','getOwnPropertyDescriptor','key','registerRefRange','AWAITING','DocStateChangeManagerService','_getRedoStack','sheetID','1996Veiavk','flatMap','list','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_getCtorByUniverType','_acknowledgedAwaitingChangeset','_entities','conflict.title','UniverIcon','current','b64DecodeUnicode','_config','updateOfflineData','_singleActiveUnitService','url','[CollaborationUndoRedoService]','HEARTBEAT','mapDocumentTypeToUniverType','TextSelectionManagerService','_timeoutTimer','/resources','transformMutationsWithChangeset','_clearOtherTimers','@univerjs/design','searchParams','off-line-single','getActiveSheet','ICollaborationSocketService','error','removeParam','verdancy600','dispose','[PendingState]:\x20unhandled\x20univer\x20type:\x20','round','_collabSessionService','interceptor','collabCursorState$','_scheduleSaving','onCommandExecuted','currentSkeleton$','_joinRoom','SheetSkeletonManagerService','evenodd','_socket$','UNRECOGNIZED','SNAPSHOT_URL_KEY','_renderManagerService','1901700DLoHRE','_getSignURL','RichTextEditingMutation','_transformStack','_onConflict','memberID','LICENSE_IMPORT_SIZE_EXCEEDED','_scheduleTimestamp','_onCursorUpdate','toStringTag','use','_urlService','registerComponent','WebSocketService','_socket','unknown','jiqing500','includes','_getSendChangesetTimeout','color','location','_change$','params','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','saveSnapshot','asObservable','UPDATE_CURSOR','_updateCollabCursors','1144956eEmrbI','on-line-single_clip0_910_349','create','LOCAL_CACHE_INTERVAL_KEY','switchMap','useDependency','show','_onRemoteACK','IContextService','online','_onLocalMutation','RegularPolygon','useRef','_startSheetCollabCursor','CHANGESET_REJ','catch','_messageService','_scheduleHeartbeat','CompressMutationService','saveOfflineData','collaMsg','_colorIndex','DeleteRangeMoveLeftCommandId','onTransformSelections','liveShareOperation','_socketService','cursorInfo$','IDLE','_createInitialState','filter','fetch_missing','complete','_transformRemoteChangesetByIMECache','mapTo','APPLY_PERMISSION_DENIED','textEncoder','[CollaborationState]:\x20apply\x20error!','event$','getUniverSheetInstance','toDisposable','getTypeOfUnitDisposed$','conflict','urlChange$','LocalCacheService','_updateLocalCursor','IUniverInstanceService','collabStatus.synced','IImageIoService','assign','_getLoginPath','_eventUnsubscribe','CONNECTOR_DATA_TOO_LARGE','text','DeleteRangeMoveUpCommandId','_tryEnsureSocket','subscribeEvent','Optional','[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.','NodePositionConvertToCursor','history','ISnapshotServerService','_redoStacks','SHOULD_CLOSE_CONN','_onRecvEvent','clear','UserManagerService','getCurrentSelections','_onConnectionOpen','_initModules','CONFLICT','csAckEvent','disposeUnit','defIds','transformByState','SNAPSHOT_HAS_BEEN_REMOVED','JOIN','set','body','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_sendHeartbeatTimer','_syncEditingCollabCursorService','_unitStatus','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','_cursors','handleIRemoveRow','_collabCursorController','onRemoteChangeset','_sendingTimer','serializeTextRange','serializeRangeWithSheet','getUnitStatus$','endRow','_substituteUndoStack','UNAUTHENTICATED','ONLINE','_updateState','UNKNOWN_CMD','IHTTPImplementation','DEFAULT_FILE_NAME','getCoordByCell','objectID','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','leaveEvent','font','CollaborationSession','ERROR_EXCEED_SIZE','_scene','collabStatus.offline','TOO_MANY_REQUESTS','_session','then','isActive','message$','_isPermissionRej','transformIMECache','disposeWithMe','_collaborationPaused','joinEvent','_id','USERS_ENTER','@univerjs/rpc','UNIVER_COLLABORATION_CLIENT_PLUGIN','_scheduleCollaborationTimeoutTimer','_handleEvent','_sessions','_roomMembers','TEXT_RANGE_LAYER_INDEX','m1Prime','_getAnchorBounding','createIdentifier','onStarting','skeleton','DisposableCollection','concatMap','SUBMIT_CHANGESET','onSyncEditingCollabCursor','HEADER_MENU','name','src','popstate','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getOffsetConfig','addObject','_onConnectionFailed','/-/object/-/batch_allowed','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','close$','IMessageService','[DataLoaderController]','transformRemoteChangeset','readAsDataURL','UNIVER_DOC','_transformService','_removeCollabCursors','_unitId','_retryCount','div','onlyLocal','failed\x20to\x20apply\x20missed\x20changesets!','UNIVER_SLIDE','@univerjs/sheets','getValue','removeMember','/block/','startRow','HEARTBEAT_INTERVAL','objects','split','_userManagerService','height','_onFetchMissResult','_waitCount','Injector','ERROR_IMAGE','[OfflineState]:\x20received\x20acknowledgement.','handleInsertRow','_syncEditingCollabCursor','put','_range','setShapeProps','_loadDoc','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','requestParams','CollaborationSessionService','_memberService','_replaceFileID','handleInsertCol','_transformUndoRedoStack','subscribe','error$','_remoteChangesetQueue','/-/object/list','/role','PSEUDO_FETCH_MISSING_RESULT','_docStateChangeManagerService','DependentOn','fetchThroughInterceptors','INGEST','_labelPosition','_exhaustRemoteChangesetQueue','SEND_CHANGESET_TIMEOUT','getUnhiddenWorksheets','offline','Ready','_clearTimeoutTimer','?size=','updatePermissionPoint','LIVESHARE_NEW_HOST','_handler','getVpScrollXYInfoByPosToVp','sessionStatus$','_submitChangeset','[UniverCollaborationClientPlugin]','members','_undoRedoService','_ensureSubject','href','Disposable','IUndoRedoService','idSuffix','currentTheme$','uni.network.url-service','m2Prime','_onUserLeave','getViewport','concat','pending','INVALID_ARGUMENT','POST','row','executeCommand','_notificationService','ThemeService','_selfUnitIDs','resolve','Workbook','ILogService','listCollaborators','RefRangeService','resend','CHANGESET_REVISION_CONFILICT','_onMessage','Unknown\x20user','Univer','withCredentials','_entityInit$','addImageSourceCache','setItem','LocalUndoRedoService','MUTATION','collaboratorID','PENDING','getUnitType','_unitID','_saveTaskMap','isTransformMutationsWithChangesetSuccess','JSONX','entries','DocSkeletonManagerService','roomMembers','_cursor','getColor','Subject','map','image/png','BuiltInUIPart','max','rev','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','putCollaborators','all','HTTPService','pushState','startColumn','@univerjs-pro/collaboration','_send','_initCloseConn','NO_OTHER_CLIENTS_EDITING','replaceTextRanges','_status$','COMPRESS_MUTATION_APPLY','\x20in\x20_schedule.','setActiveRange','call','symbol','connection\x20error','_getUploadFileURL','onCommentUpdate','action','black','LifecycleStages','setAlpha','univer-pro.collaboration-client-socket-service','RevisionService','...','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_getScale','addEventListener','LOGIN_URL_KEY','InsertRowCommandId','_univerInstanceService','transformStack\x20failed!','3865253lljwku','image/jpg','LICENSE_EXPORT_SIZE_EXCEEDED','triggerDblclick','LOCAL_CACHE_INTERVAL','1em','defs','sheetId','collab-text-range-','data','fillStyle','save\x20fail\x20reason\x20is\x20','_textBubble','_disableEditing','OFFLINE','actions','_ws','getCurrentUnitForType','_updateURLWithCurrentState','RemoveColCommandId','CollaborationStatusDisplay','_collaborationController','_unlockTransition','_drawAnchor','takeUntil','_collabCursorState$','_docTransformIMECacheService','random','VIEW_MAIN','doc.mutation.rich-text-editing','roles','ColorKit','RxDisposable','_draw','MessageType','SetSelectionsOperation','@univerjs/core','lineTo','_HTTPService','APPLY_REVISION_CONFILICT','joinRsp','getCollabEntity$','eventID','open$','change$','cursorInfo','BehaviorSubject','_injector','compose','createSocket','transformUndoRedo','saveImage','session.connection-failed','0\x200\x2017\x2016','getMergeData','_schedule','IRenderManagerService','transformMutation','values','_drawRange','pauseCollaboration','\x20-\x20','socketService','_getAPIPrefixPath','length','@univerjs/network','_document','session.collaboration-timeout','_state','clearTimeout','combineLatest','restore','_showConflictNotification','getSheetBySheetId','getActiveRange','getImage','setTimeout','INTERNAL_ERROR','_scheduleReconnection','post','ACTIVE_UNIT_EVENT_CHANNEL','Starting','getUnitId','_socketMessageSubscription','FAIL','DesktopCollaborationStatusDisplayController','WorkbookEditablePermission','getWorkbookSelections','_loadSheet','children','type','method','requireSession','hovered','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ERROR_IMAGE_TYPE','_socketReady','parse','COLLAB_WEB_SOCKET_URL_KEY','univer-online','delay','unitId','handleDeleteRangeMoveLeft','_getCurrentRevision','_handleHover','_clearRedo','IPermissionService','min','closePath','loadSheet','setParam','_waitForHeartbeatResponse','status','_transformUndoredo','sessionStatus','setWaitCount','[PendingState]:\x20received\x20acknowledgement.','push','toggleOffline','transformChangesets','awaiting_with_pending','init','next','registerHTTPInterceptor','AuthzIoHttpService','url(#$1','onPointerEnter$','[FetchMissState]','_getDocObject','cmd','forwardRef','CollaborationController','_beforeCloseService','Plugin','APPLY_NON_SEQUENTIAL_REVISION','indexOf','sheets','apply','whenReady','purple300','slice','_unitOnClients','auth.needGotoLoginAlert','/universer-api/oidc/authpage','_compressMutationService','_initStatusListener','[CollaborationEntity]','rxjs','onSendChangeset','_startDocCollabCursor','LocaleService','subUnitId','YUUMI_URL_COL_OUT_OF_RANGE','top','changesets','CollaborationSocketService','_onUserJoin','Rect','_awaitingChangeset','_colorAssignService','commentUpdate$','allowed','_setupSubUnitSync','isTransformMutationsWithChangesetFailure','editingUnit','lodash/debounce','file','/universer-api/stream/file/upload','PERMISSION_REJ','prototype','/universer-api/comb','hide','status$','_initUnitPermissionChange','_transformIMECache','_render','getConfig','LIVESHARE_FETCH_OPERATIONS','getInterceptPoints','fromCollab','LICENSE_MAX_UNITS_EXCEEDED','getSheetObject','deepClone','[CollaborationSessionService]:\x20socket\x20error','RETRY_CONNECTING_INTERVAL','_sessionStatus$','_permissionService','getCurrentRevForDocument','batchAllowed','react','function','InsertRangeMoveRightCommandId','unsubscribe','COLLAB_SUBMIT_CHANGESET_URL_KEY','objectType','InsertRangeMoveDownCommandId','LEAVE','_members','from','RECV','isArray','onPointerMove$','?url=','createInstance','_collaborationSessionService','saveSheetBlock','url(#on-line-single_clip0_910_349)','HTTPRequest','ImageUploadStatusType','startsWith','_type','result','_pendingMutations','_init','collaboration.single-unit.warning','reject','_getSheetObject','UniverInstanceType','_docSkeleton','baseRev','none','ranges','icon','FromArray','onRemoteAck','12nEpUCf','gold400','getUnitOnRev','setInterval','getUndoRedoMutationParamsCache','appendMutation','resourceIDs','LIVESHARE_REQUEST_HOST','path','_sendHeartbeat','#fff','mutations','[SyncedState]:\x20received\x20rejection.','toString','subunit','_onRefRangeChange','take','_disabled','_incrementRevisionNumber','&to=','Steady','MoveRangeCommandId','[CollaborationSession]','_cachedData','_applyRemoteChangeset','Tools','HELLO','_saveCache','COMMENT_UPDATE','getViewModel','@univerjs/sheets-ui','_handleJoinEvent','_clearCollaborationTimeoutTimer','collaboration-client.offline-data-not-saved','_onCursorDelete','encodeURIComponent','/object/','NEW_CHANGESETS','getOwnPropertySymbols','makeDirty','_getAPIPrefix','@univerjs/drawing','createElement','_heartbeatTimer','COLLAB_SUBMIT_CHANGESET_URL','title','/unit/','COLLAB_WEB_SOCKET_URL','getRangePointData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getFocusedUnit','arc','fill','awaiting','_setupBeforeClosingHandler','permission.title','_commentUpdate$','_cursorInfo$','LIVESHARE_OPERATION','delete','0\x200\x2016\x2016','syncEditingCollabCursor','objectActions','userID','enableOfflineEditing','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.'];_0x315b=function(){return _0x47c101;};return _0x315b();}let ue=class extends o['RxDisposable']{constructor(_0x392733,_0x5a7f14,_0x8dee2b,_0x14c911){const _0x46b667=_0x2ad778;super(),u(this,_0x46b667(0x213),new Set()),u(this,'_lastPointer',null),(this[_0x46b667(0x215)]=_0x392733,this['_univerInstanceService']=_0x5a7f14,this[_0x46b667(0x1a3)]=_0x8dee2b,this[_0x46b667(0x41e)]=_0x14c911,this[_0x46b667(0x3c3)]());}get[_0x2ad778(0x4a3)](){const _0x43c93a=_0x2ad778;return this['_renderManagerService'][_0x43c93a(0x140)](this[_0x43c93a(0x2ec)][_0x43c93a(0x2ff)](o['UniverInstanceType']['UNIVER_SHEET'])['getUnitId']())[_0x43c93a(0x151)](J[_0x43c93a(0x19e)]);}get['_unitId'](){const _0x21caaf=_0x2ad778;return this[_0x21caaf(0x2ec)][_0x21caaf(0x2ff)](o['UniverInstanceType'][_0x21caaf(0x421)])['getUnitId']();}['_init'](){const _0x304477=_0x2ad778;this[_0x304477(0x4a3)][_0x304477(0x19c)][_0x304477(0x502)](E[_0x304477(0x306)](this[_0x304477(0x46a)]),E[_0x304477(0x1c4)](_0x2bb110=>{const _0x54d053=_0x304477;if(_0x2bb110){const _0x51d594=_0x2bb110[_0x54d053(0x2f5)];return v['combineLatest'](this[_0x54d053(0x215)]['getCollabCursors$'](this[_0x54d053(0x25a)]),this[_0x54d053(0x41e)]['currentTheme$'])['pipe'](E['map'](([_0x2037dd,_0x6654ab])=>{const _0x33a2a2=new Map();return _0x2037dd['forEach']((_0x5cb621,_0x31774c)=>{const _0x307ecd=_0x379e;if(_0x5cb621[_0x307ecd(0x174)]===_0x51d594){const _0x55159f={..._0x5cb621};_0x55159f['color']=_0x6654ab[_0x5cb621[_0x307ecd(0x1b7)]],_0x33a2a2['set'](_0x31774c,_0x55159f);}}),{'skeleton':_0x2bb110,'cursors':_0x33a2a2};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x304477(0x27c)](({skeleton:_0x263ab8,cursors:_0x541921})=>{const _0x4b4021=_0x304477;this['_removeCollabCursors'](),_0x263ab8&&this[_0x4b4021(0x1bf)](_0x263ab8,_0x541921);}),this[_0x304477(0x4a3)][_0x304477(0x19c)][_0x304477(0x27c)](_0x10dc84=>{const _0x1c103e=_0x304477;if(_0x10dc84==null)return;const {skeleton:_0x5c5545}=_0x10dc84,_0x59ef99=this[_0x1c103e(0x1a3)][_0x1c103e(0x140)](this[_0x1c103e(0x25a)]),{scene:_0x3d4d56}=_0x59ef99;_0x3d4d56[_0x1c103e(0x3b7)][_0x1c103e(0x1f7)](xe(_0x477130=>{const _0xa8af6e=_0x1c103e;var _0x57b889,_0x28ec50;const {offsetX:_0x53c778,offsetY:_0x515c7f}=_0x477130,{x:_0x5a2d90,y:_0x3e1d1e}=_0x3d4d56['getRelativeToViewportCoord'](T[_0xa8af6e(0x411)][_0xa8af6e(0x3cd)]([_0x53c778,_0x515c7f])),{scaleX:_0x14dc1c,scaleY:_0x31186a}=_0x3d4d56['getAncestorScale'](),_0x4a0f90=_0x3d4d56[_0xa8af6e(0x2a0)](J['VIEWPORT_KEY'][_0xa8af6e(0x30a)]),_0x474be8=_0x3d4d56[_0xa8af6e(0x291)](T[_0xa8af6e(0x411)][_0xa8af6e(0x3cd)]([_0x5a2d90,_0x3e1d1e]),_0x4a0f90),_0xe85e21=_0x5c5545[_0xa8af6e(0x41f)](_0x53c778,_0x515c7f,_0x14dc1c,_0x31186a,_0x474be8);((_0x57b889=this[_0xa8af6e(0x4b1)])==null?void 0x0:_0x57b889[_0xa8af6e(0x45b)])===_0xe85e21[_0xa8af6e(0x45b)]&&((_0x28ec50=this[_0xa8af6e(0x4b1)])==null?void 0x0:_0x28ec50[_0xa8af6e(0x2a5)])===_0xe85e21[_0xa8af6e(0x2a5)]||this[_0xa8af6e(0x213)]['forEach'](_0x286cbf=>{const _0x5204b4=_0xa8af6e;_0x286cbf[_0x5204b4(0x45c)](_0xe85e21);});},0x64));});}[_0x2ad778(0x1bf)](_0x9a3b67,_0x24abfa){const _0x5ee0f6=_0x2ad778;var _0x26088e;const _0x2c99a7=(_0x26088e=this[_0x5ee0f6(0x4a3)]['getCurrent']())==null?void 0x0:_0x26088e[_0x5ee0f6(0x243)];if(!_0x2c99a7)return;const _0x23f40c=this[_0x5ee0f6(0x3c6)]();if(!_0x23f40c)return;this[_0x5ee0f6(0x213)][_0x5ee0f6(0x169)](_0x174901=>{const _0x43dcc=_0x5ee0f6;_0x174901[_0x43dcc(0x3f6)]();});const {scene:_0x2f174b}=_0x23f40c,_0x5d991f=Qs(Array[_0x5ee0f6(0x3b4)](_0x24abfa[_0x5ee0f6(0x328)]()))[_0x5ee0f6(0x2c7)](_0x26ed4e=>{const _0x3e3b0f=_0x5ee0f6,{color:_0x52dc06,range:_0x4c53d7,name:_0x4d8b68,selection:_0x18f082,sheetID:_0x4b7261}=_0x26ed4e,{startColumn:_0x454268,startRow:_0x24fc30,endColumn:_0x1731a2,endRow:_0x44ecff}=_0x4c53d7,_0x143628=J[_0x3e3b0f(0x223)](_0x24fc30,_0x454268,_0x2f174b,_0x2c99a7),_0x28a41c=J[_0x3e3b0f(0x223)](_0x44ecff,_0x1731a2,_0x2f174b,_0x2c99a7),{columnHeaderHeightAndMarginTop:_0x2b8597}=_0x2c99a7,{startX:_0xa483a0,startY:_0x1d5155}=_0x143628,{endX:_0xf97f59,endY:_0x112d43}=_0x28a41c,_0x1f8521=_0xf97f59-_0xa483a0,_0x4dfa27=_0x112d43-_0x1d5155,_0x3af3a6={'labelPosition':_0x1d5155-_0x2b8597>=ce?_0x3e3b0f(0x387):_0x3e3b0f(0x419),'sheetID':_0x4b7261,'range':_0x4c53d7,'color':_0x52dc06,'name':_0x4d8b68,'selection':_0x18f082,'left':_0xa483a0,'top':_0x1d5155,'width':_0x1f8521,'height':_0x4dfa27,'evented':!0x1,'zIndex':Zs};return new Xs(_0x4d8b68,_0x3af3a6);});_0x2f174b[_0x5ee0f6(0x457)](_0x5d991f,Ys),this[_0x5ee0f6(0x213)]=new Set(_0x5d991f);}[_0x2ad778(0x259)](){const _0x507264=_0x2ad778;var _0x2dc031;(_0x2dc031=this['_cursors'])==null||_0x2dc031[_0x507264(0x169)](_0x3a291b=>_0x3a291b[_0x507264(0x194)]());}['_getSheetObject'](){const _0x3f0cdb=_0x2ad778;return J[_0x3f0cdb(0x3a3)](this[_0x3f0cdb(0x2ec)],this[_0x3f0cdb(0x1a3)]);}};ue=zs([o['OnLifecycle'](o['LifecycleStages']['Steady'],ue),le(0x0,o[_0x2ad778(0x143)](z)),le(0x1,o['IUniverInstanceService']),le(0x2,T['IRenderManagerService']),le(0x3,o[_0x2ad778(0x143)](o[_0x2ad778(0x2a8)]))],ue);function Qs(_0x160045){const _0x237120=_0x2ad778,_0x2ec5fa=new Map();return _0x160045[_0x237120(0x169)](_0x2ea7d5=>{const _0x2078a7=_0x237120;if(_0x2ec5fa[_0x2078a7(0x44d)](_0x2ea7d5['selection'])){const _0xb63e4e=_0x2ec5fa[_0x2078a7(0x49d)](_0x2ea7d5[_0x2078a7(0x445)]);_0xb63e4e['name']+=',\x20'+_0x2ea7d5[_0x2078a7(0x249)];}else _0x2ec5fa[_0x2078a7(0x20c)](_0x2ea7d5[_0x2078a7(0x445)],_0x2ea7d5);}),Array[_0x237120(0x3b4)](_0x2ec5fa[_0x237120(0x328)]());}var y=function(){const _0x5b6d2e=_0x2ad778;return y=Object[_0x5b6d2e(0x1f0)]||function(_0x94a1de){const _0x35a418=_0x5b6d2e;for(var _0x2ddfaf,_0x2bb205=0x1,_0x28d154=arguments[_0x35a418(0x32e)];_0x2bb205<_0x28d154;_0x2bb205++){_0x2ddfaf=arguments[_0x2bb205];for(var _0x47ff23 in _0x2ddfaf)Object[_0x35a418(0x397)]['hasOwnProperty'][_0x35a418(0x2db)](_0x2ddfaf,_0x47ff23)&&(_0x94a1de[_0x47ff23]=_0x2ddfaf[_0x47ff23]);}return _0x94a1de;},y[_0x5b6d2e(0x377)](this,arguments);},ei=function(_0x13c8ae,_0x5a86d){const _0x228fbf=_0x2ad778;var _0x3bf862={};for(var _0x401a03 in _0x13c8ae)Object['prototype']['hasOwnProperty']['call'](_0x13c8ae,_0x401a03)&&_0x5a86d[_0x228fbf(0x375)](_0x401a03)<0x0&&(_0x3bf862[_0x401a03]=_0x13c8ae[_0x401a03]);if(_0x13c8ae!=null&&typeof Object['getOwnPropertySymbols']==_0x228fbf(0x3ac)){for(var _0x339aa5=0x0,_0x401a03=Object[_0x228fbf(0x3f5)](_0x13c8ae);_0x339aa5<_0x401a03[_0x228fbf(0x32e)];_0x339aa5++)_0x5a86d[_0x228fbf(0x375)](_0x401a03[_0x339aa5])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x13c8ae,_0x401a03[_0x339aa5])&&(_0x3bf862[_0x401a03[_0x339aa5]]=_0x13c8ae[_0x401a03[_0x339aa5]]);}return _0x3bf862;},Ye=w[_0x2ad778(0x370)](function(_0x10d023,_0xa5e154){const _0x24a9f0=_0x2ad778;var _0xd242=_0x10d023[_0x24a9f0(0x3cc)],_0x1f253e=_0x10d023['id'],_0x24ecdb=_0x10d023['className'],_0x148732=_0x10d023[_0x24a9f0(0x4c8)],_0x44c07c=ei(_0x10d023,[_0x24a9f0(0x3cc),'id','className','extend']),_0x252862='univerjs-icon\x20univerjs-icon-'[_0x24a9f0(0x2a1)](_0x1f253e,'\x20')[_0x24a9f0(0x2a1)](_0x24ecdb||'')['trim'](),_0x18d94a=w[_0x24a9f0(0x1cc)]('_'[_0x24a9f0(0x2a1)](ii()));return Rt(_0xd242,''[_0x24a9f0(0x2a1)](_0x1f253e),{'defIds':_0xd242[_0x24a9f0(0x208)],'idSuffix':_0x18d94a[_0x24a9f0(0x17e)]},y({'ref':_0xa5e154,'className':_0x252862},_0x44c07c),_0x148732);});function Rt(_0xab22ea,_0x540f60,_0x52690e,_0x470247,_0x2a832a){const _0x409652=_0x2ad778;return w[_0x409652(0x3f9)](_0xab22ea[_0x409652(0x44f)],y(y({'key':_0x540f60},ti(_0xab22ea,_0x52690e,_0x2a832a)),_0x470247),(si(_0xab22ea,_0x52690e)[_0x409652(0x347)]||[])['map'](function(_0x87febd,_0xc49e4c){const _0x499fee=_0x409652;return Rt(_0x87febd,''[_0x499fee(0x2a1)](_0x540f60,'-')[_0x499fee(0x2a1)](_0xab22ea[_0x499fee(0x44f)],'-')[_0x499fee(0x2a1)](_0xc49e4c),_0x52690e,void 0x0,_0x2a832a);}));}function ti(_0x58470f,_0x3942a7,_0x467019){const _0x360de4=_0x2ad778;var _0x578909=y({},_0x58470f[_0x360de4(0x438)]);_0x467019!=null&&_0x467019[_0x360de4(0x4d0)]&&_0x578909[_0x360de4(0x403)]===_0x360de4(0x4d0)&&(_0x578909[_0x360de4(0x403)]=_0x467019['colorChannel1']);var _0x27caed=_0x3942a7[_0x360de4(0x208)];return!_0x27caed||_0x27caed['length']===0x0||(_0x58470f['tag']===_0x360de4(0x1ae)&&_0x578909[_0x360de4(0x43d)]&&(_0x578909[_0x360de4(0x43d)]=_0x578909[_0x360de4(0x43d)]+_0x3942a7[_0x360de4(0x29b)]),Object[_0x360de4(0x2c1)](_0x578909)[_0x360de4(0x169)](function(_0x4d5bf0){const _0x44bb2b=_0x360de4;var _0x585d22=_0x4d5bf0[0x0],_0xdd5833=_0x4d5bf0[0x1];typeof _0xdd5833=='string'&&(_0x578909[_0x585d22]=_0xdd5833[_0x44bb2b(0x150)](/url\(#(.*)\)/,_0x44bb2b(0x36b)['concat'](_0x3942a7[_0x44bb2b(0x29b)],')')));})),_0x578909;}function si(_0x15c3c6,_0x18ecf7){const _0x431e20=_0x2ad778;var _0x55084a,_0x543c11=_0x18ecf7[_0x431e20(0x208)];return!_0x543c11||_0x543c11[_0x431e20(0x32e)]===0x0?_0x15c3c6:_0x15c3c6[_0x431e20(0x44f)]==='defs'&&(!((_0x55084a=_0x15c3c6[_0x431e20(0x347)])===null||_0x55084a===void 0x0)&&_0x55084a[_0x431e20(0x32e)])?y(y({},_0x15c3c6),{'children':_0x15c3c6['children'][_0x431e20(0x2c7)](function(_0x30c1dd){const _0x50c661=_0x431e20;return typeof _0x30c1dd[_0x50c661(0x438)]['id']==_0x50c661(0x48c)&&_0x543c11&&_0x543c11[_0x50c661(0x375)](_0x30c1dd[_0x50c661(0x438)]['id'])>-0x1?y(y({},_0x30c1dd),{'attrs':y(y({},_0x30c1dd[_0x50c661(0x438)]),{'id':_0x30c1dd['attrs']['id']+_0x18ecf7[_0x50c661(0x29b)]})}):_0x30c1dd;})}):_0x15c3c6;}function ii(){const _0x97755a=_0x2ad778;return Math[_0x97755a(0x309)]()[_0x97755a(0x3dc)](0x24)['substring'](0x2,0x8);}Ye[_0x2ad778(0x453)]=_0x2ad778(0x17d);var ni={'tag':_0x2ad778(0x446),'attrs':{'fill':'none','viewBox':_0x2ad778(0x40b),'width':_0x2ad778(0x2f3),'height':_0x2ad778(0x2f3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x2ad778(0x14a),'d':_0x2ad778(0x212),'strokeLinecap':_0x2ad778(0x196),'strokeLinejoin':_0x2ad778(0x196),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2ad778(0x486),'attrs':{'id':_0x2ad778(0x42f)},'children':[{'tag':_0x2ad778(0x3d7),'attrs':{'fill':'#fff','d':_0x2ad778(0x471)}}]}]}],'defIds':[_0x2ad778(0x42f)]},Ot=w['forwardRef'](function(_0x1ab4eb,_0x17d429){const _0x42d4cf=_0x2ad778;return w[_0x42d4cf(0x3f9)](Ye,Object[_0x42d4cf(0x1f0)]({},_0x1ab4eb,{'id':_0x42d4cf(0x18e),'ref':_0x17d429,'icon':ni}));});Ot[_0x2ad778(0x453)]=_0x2ad778(0x156);var ri={'tag':_0x2ad778(0x446),'attrs':{'fill':_0x2ad778(0x3ca),'viewBox':_0x2ad778(0x323),'width':'1em','height':_0x2ad778(0x2f3)},'children':[{'tag':'g','attrs':{'clipPath':_0x2ad778(0x3bc)},'children':[{'tag':'path','attrs':{'stroke':_0x2ad778(0x14a),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x2ad778(0x196),'strokeWidth':1.2}}]},{'tag':_0x2ad778(0x2f4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2ad778(0x1c1)},'children':[{'tag':_0x2ad778(0x3d7),'attrs':{'fill':_0x2ad778(0x3d9),'d':_0x2ad778(0x471),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2ad778(0x1c1)]},Dt=w[_0x2ad778(0x370)](function(_0x2131e2,_0x4ca94d){const _0x99541f=_0x2ad778;return w[_0x99541f(0x3f9)](Ye,Object[_0x99541f(0x1f0)]({},_0x2131e2,{'id':_0x99541f(0x415),'ref':_0x4ca94d,'icon':ri}));});Dt[_0x2ad778(0x453)]=_0x2ad778(0x4b3);const oi=_0x2ad778(0x429),ai=_0x2ad778(0x141),ci=_0x2ad778(0x440),li=_0x2ad778(0x351),hi=_0x2ad778(0x481),ie={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x582d15){const _0x49c292=_0x2ad778;switch(_0x582d15){case D[_0x49c292(0x2fc)]:return _0x49c292(0x22b);case D['CONFLICT']:return _0x49c292(0x4a4);case D['FETCH_MISS']:return'collabStatus.fetchMiss';case D['NOT_COLLAB']:return _0x49c292(0x48b);case D[_0x49c292(0x2bb)]:case D[_0x49c292(0x171)]:case D['AWAITING_WITH_PENDING']:return _0x49c292(0x4b0);case D['SYNCED']:return _0x49c292(0x1ee);}}function Ut(_0x12e29d){const _0x3932f6=_0x2ad778,{status$:_0x291690}=_0x12e29d,_0x43b92a=M[_0x3932f6(0x413)](_0x291690,D[_0x3932f6(0x4da)]),_0x49f9f7=o[_0x3932f6(0x1c5)](o[_0x3932f6(0x384)]),_0x342074=_0x43b92a!==D[_0x3932f6(0x2fc)],_0x2a36f4=_0x49f9f7['t'](_i(_0x43b92a)),_0x3dae62=xt(ie[_0x3932f6(0x456)],{[ie[_0x3932f6(0x1c9)]]:_0x342074,[ie[_0x3932f6(0x28a)]]:!_0x342074}),_0x2c47c1=_0x342074?w[_0x3932f6(0x3f9)](Dt,null):w[_0x3932f6(0x3f9)](Ot,null);return w[_0x3932f6(0x3f9)](_0x3932f6(0x25c),{'className':_0x3dae62},w[_0x3932f6(0x3f9)](_0x3932f6(0x25c),{'className':ie[_0x3932f6(0x494)]},_0x2c47c1),w[_0x3932f6(0x3f9)](_0x3932f6(0x25c),{'className':ie['onlineStatusTitle']},_0x2a36f4));}var ui=Object['defineProperty'],di=Object[_0x2ad778(0x16e)],Si=(_0x286444,_0x22dfac,_0xc61ee,_0x5f3537)=>{const _0x35cd71=_0x2ad778;for(var _0xb1a3a3=_0x5f3537>0x1?void 0x0:_0x5f3537?di(_0x22dfac,_0xc61ee):_0x22dfac,_0x1c45de=_0x286444[_0x35cd71(0x32e)]-0x1,_0x16e236;_0x1c45de>=0x0;_0x1c45de--)(_0x16e236=_0x286444[_0x1c45de])&&(_0xb1a3a3=(_0x5f3537?_0x16e236(_0x22dfac,_0xc61ee,_0xb1a3a3):_0x16e236(_0xb1a3a3))||_0xb1a3a3);return _0x5f3537&&_0xb1a3a3&&ui(_0x22dfac,_0xc61ee,_0xb1a3a3),_0xb1a3a3;},he=(_0x4de96b,_0x1e8b66)=>(_0x816266,_0x32dfa5)=>_0x1e8b66(_0x816266,_0x32dfa5,_0x4de96b);exports[_0x2ad778(0x343)]=class extends o[_0x2ad778(0x299)]{constructor(_0x59127f,_0x8dba3,_0x46bc72,_0x1b0594){const _0xef0c11=_0x2ad778;super(),u(this,_0xef0c11(0x2d7),new v[(_0xef0c11(0x31c))](D['NOT_COLLAB'])),(this[_0xef0c11(0x2ec)]=_0x59127f,this[_0xef0c11(0x482)]=_0x8dba3,this['_injector']=_0x46bc72,this[_0xef0c11(0x303)]=_0x1b0594,this[_0xef0c11(0x4f2)](),this[_0xef0c11(0x37f)]());}['_initStatusComponent'](){const _0x628321=_0x2ad778;this['disposeWithMe'](this[_0x628321(0x482)][_0x628321(0x1b0)](M[_0x628321(0x2c9)][_0x628321(0x248)],()=>o['connectInjector'](vi({'status$':this[_0x628321(0x2d7)][_0x628321(0x1bd)]()}),this['_injector'])));}[_0x2ad778(0x37f)](){const _0x9df7e8=_0x2ad778;this['disposeWithMe'](o[_0x9df7e8(0x1e7)](this[_0x9df7e8(0x2ec)][_0x9df7e8(0x418)][_0x9df7e8(0x502)](v[_0x9df7e8(0x1c4)](()=>{const _0x4843fc=_0x9df7e8,_0xba4974=this['_univerInstanceService']['getFocusedUnit']();return _0xba4974?this['_collaborationController'][_0x4843fc(0x317)](_0xba4974[_0x4843fc(0x340)]()):v['of'](null);}),v[_0x9df7e8(0x1c4)](_0x2743cb=>_0x2743cb?_0x2743cb[_0x9df7e8(0x39a)]:v['of'](D[_0x9df7e8(0x4da)])))[_0x9df7e8(0x27c)](_0x358a30=>{const _0x3f9fe8=_0x9df7e8;this['_status$'][_0x3f9fe8(0x368)](_0x358a30);})));}},exports['DesktopCollaborationStatusDisplayController']=Si([o['OnLifecycle'](o[_0x2ad778(0x2e2)][_0x2ad778(0x33f)],exports['DesktopCollaborationStatusDisplayController']),he(0x0,o[_0x2ad778(0x1ed)]),he(0x1,M['IUIPartsService']),he(0x2,o['Inject'](o['Injector'])),he(0x3,o[_0x2ad778(0x143)](exports[_0x2ad778(0x371)]))],exports[_0x2ad778(0x343)]);function vi(_0x4ad4ba){const {status$:_0x4db4a6}=_0x4ad4ba;return function(){const _0x353479=_0x379e;return w[_0x353479(0x3f9)](Ut,{'status$':_0x4db4a6});};}const Ke=o[_0x2ad778(0x241)](_0x2ad778(0x29d));var gi=Object[_0x2ad778(0x4be)],fi=Object[_0x2ad778(0x16e)],mi=(_0x22e391,_0x294b66,_0x39fc10,_0x3bb33b)=>{const _0x15d63d=_0x2ad778;for(var _0x3acc6b=_0x3bb33b>0x1?void 0x0:_0x3bb33b?fi(_0x294b66,_0x39fc10):_0x294b66,_0x235dc0=_0x22e391[_0x15d63d(0x32e)]-0x1,_0xa0b162;_0x235dc0>=0x0;_0x235dc0--)(_0xa0b162=_0x22e391[_0x235dc0])&&(_0x3acc6b=(_0x3bb33b?_0xa0b162(_0x294b66,_0x39fc10,_0x3acc6b):_0xa0b162(_0x3acc6b))||_0x3acc6b);return _0x3bb33b&&_0x3acc6b&&gi(_0x294b66,_0x39fc10,_0x3acc6b),_0x3acc6b;},q=(_0x123e87,_0xa99da)=>(_0xae00a7,_0x25676b)=>_0xa99da(_0xae00a7,_0x25676b,_0x123e87);exports['DataLoaderController']=class extends o[_0x2ad778(0x30e)]{constructor(_0x3ae49f,_0x3b10d6,_0x5f37f8,_0x6f7bcd,_0x4c4797,_0x51a54a){const _0x1875e4=_0x2ad778;super(),this[_0x1875e4(0x1af)]=_0x3ae49f,this['_logService']=_0x3b10d6,this[_0x1875e4(0x14c)]=_0x5f37f8,this['_localCacheService']=_0x6f7bcd,this['_snapshotService']=_0x4c4797,_0x51a54a?_0x51a54a==null||_0x51a54a[_0x1875e4(0x378)]()[_0x1875e4(0x22e)](()=>this['_init']()):(this[_0x1875e4(0x46f)][_0x1875e4(0x484)](_0x1875e4(0x254),_0x1875e4(0x24c)),this['_init']());}async['_init'](){const _0x32184f=_0x2ad778,_0x2d5b50=this[_0x32184f(0x1af)][_0x32184f(0x4ab)](_0x32184f(0x167)),_0x247f4c=this['_urlService'][_0x32184f(0x4ab)]('type');if(!_0x2d5b50||!_0x247f4c){this[_0x32184f(0x46f)][_0x32184f(0x484)](_0x32184f(0x254),_0x32184f(0x410));return;}switch(Number(_0x247f4c)){case A[_0x32184f(0x421)]:{const _0x5eda24=await this[_0x32184f(0x346)](_0x2d5b50);this[_0x32184f(0x390)](_0x5eda24);break;}case A[_0x32184f(0x257)]:{await this[_0x32184f(0x274)](_0x2d5b50);break;}default:{this[_0x32184f(0x46f)]['error'](_0x32184f(0x254),_0x32184f(0x34c));break;}}}async['_setupSubUnitSync'](_0x50c170){const _0x484a31=_0x2ad778;await this['_updateSubUnitFromURLParams'](_0x50c170),_0x50c170[_0x484a31(0x47b)][_0x484a31(0x502)](v['takeUntil'](this[_0x484a31(0x46a)]))[_0x484a31(0x27c)](_0x4946f2=>{const _0x4937ef=_0x484a31;_0x4946f2&&this[_0x4937ef(0x300)](_0x4946f2);}),this[_0x484a31(0x1af)][_0x484a31(0x1ea)]['pipe'](v['takeUntil'](this[_0x484a31(0x46a)]))[_0x484a31(0x27c)](()=>this['_updateSubUnitFromURLParams'](_0x50c170));}[_0x2ad778(0x300)](_0x43a841,_0x284998=!0x1){const _0x4ebf2c=_0x2ad778,_0x472f68=this[_0x4ebf2c(0x1af)][_0x4ebf2c(0x4ab)]('subunit');_0x43a841[_0x4ebf2c(0x496)]()!==_0x472f68&&this[_0x4ebf2c(0x1af)][_0x4ebf2c(0x35c)]('subunit',_0x43a841['getSheetId'](),_0x284998);}async[_0x2ad778(0x50b)](_0x13b84d){const _0x56d980=_0x2ad778;var _0x3bf5f8;const _0x21f8d7=this['_urlService']['getParam'](_0x56d980(0x3dd));if(!_0x21f8d7||!_0x13b84d[_0x56d980(0x337)](_0x21f8d7)){const _0x582db5=_0x13b84d[_0x56d980(0x289)]()[0x0],_0x1cf2ed=_0x13b84d['getSheetBySheetId'](_0x582db5);if(!_0x1cf2ed)return;this[_0x56d980(0x300)](_0x1cf2ed,!0x0),await this[_0x56d980(0x14c)][_0x56d980(0x2a6)](p[_0x56d980(0x4c0)]['id'],{'unitId':_0x13b84d[_0x56d980(0x340)](),'subUnitId':_0x582db5});return;}((_0x3bf5f8=_0x13b84d[_0x56d980(0x18f)]())==null?void 0x0:_0x3bf5f8[_0x56d980(0x496)]())!==_0x21f8d7&&await this[_0x56d980(0x14c)][_0x56d980(0x2a6)](p['SetWorksheetActivateCommand']['id'],{'unitId':_0x13b84d[_0x56d980(0x340)](),'subUnitId':_0x21f8d7});}async['_loadSheet'](_0x423658){const _0x10068a=_0x2ad778;let _0x54a351=0x0;const _0x1cb9f2=await this['_localCacheService']['loadOfflineData'](_0x423658);return _0x1cb9f2&&(_0x1cb9f2[_0x10068a(0x477)]||_0x1cb9f2[_0x10068a(0x3da)][_0x10068a(0x32e)]!==0x0)&&(_0x54a351=_0x1cb9f2[_0x10068a(0x2cb)]),_0x54a351===0x0&&this[_0x10068a(0x46f)][_0x10068a(0x484)](_0x10068a(0x254),_0x10068a(0x2e7)),this[_0x10068a(0x4e3)][_0x10068a(0x35b)](_0x423658,_0x54a351);}async[_0x2ad778(0x274)](_0x52a13a){const _0x41386f=_0x2ad778;let _0x421333=0x0;const _0x3aa29d=await this['_localCacheService'][_0x41386f(0x4bf)](_0x52a13a);return _0x3aa29d&&(_0x3aa29d[_0x41386f(0x477)]||_0x3aa29d[_0x41386f(0x3da)]['length']!==0x0)&&(_0x421333=_0x3aa29d[_0x41386f(0x2cb)]),_0x421333===0x0&&this['_logService'][_0x41386f(0x484)](_0x41386f(0x254),_0x41386f(0x2e7)),this[_0x41386f(0x4e3)][_0x41386f(0x503)](_0x52a13a,_0x421333);}},exports[_0x2ad778(0x46d)]=mi([o[_0x2ad778(0x492)](o[_0x2ad778(0x2e2)][_0x2ad778(0x33f)],exports['DataLoaderController']),q(0x0,Ke),q(0x1,o[_0x2ad778(0x2ac)]),q(0x2,o[_0x2ad778(0x4e4)]),q(0x3,o['Inject'](exports[_0x2ad778(0x1eb)])),q(0x4,o['Inject'](_[_0x2ad778(0x4af)])),q(0x5,o[_0x2ad778(0x1f8)](kt['IRemoteInstanceService']))],exports[_0x2ad778(0x46d)]);var Ii=Object[_0x2ad778(0x4be)],pi=Object[_0x2ad778(0x16e)],Ei=(_0x37f705,_0x501d68,_0x254d0d,_0x8d7eab)=>{const _0x2ba562=_0x2ad778;for(var _0x38258b=_0x8d7eab>0x1?void 0x0:_0x8d7eab?pi(_0x501d68,_0x254d0d):_0x501d68,_0x3c142b=_0x37f705[_0x2ba562(0x32e)]-0x1,_0x14ee36;_0x3c142b>=0x0;_0x3c142b--)(_0x14ee36=_0x37f705[_0x3c142b])&&(_0x38258b=(_0x8d7eab?_0x14ee36(_0x501d68,_0x254d0d,_0x38258b):_0x14ee36(_0x38258b))||_0x38258b);return _0x8d7eab&&_0x38258b&&Ii(_0x501d68,_0x254d0d,_0x38258b),_0x38258b;},nt=(_0x257670,_0x56f7d0)=>(_0x4deab3,_0x4bf529)=>_0x56f7d0(_0x4deab3,_0x4bf529,_0x257670);const Ci=_0x2ad778(0x222),bi=_0x2ad778(0x2b3);let de=class extends o['Disposable']{constructor(_0x28e5d,_0x204784){const _0x3a35c9=_0x2ad778;super(),this[_0x3a35c9(0x2ec)]=_0x28e5d,this[_0x3a35c9(0x508)]=_0x204784,this[_0x3a35c9(0x3c3)]();}[_0x2ad778(0x3c3)](){const _0x17e4cc=_0x2ad778;this[_0x17e4cc(0x233)](o[_0x17e4cc(0x1e7)](this[_0x17e4cc(0x2ec)]['focused$'][_0x17e4cc(0x27c)](()=>{const _0x538cb8=_0x17e4cc;var _0xceb3d8;const _0x3cca68=this['_univerInstanceService']['getFocusedUnit']();let _0xc7bf1f=(_0xceb3d8=this['_configService']['getConfig'](Ci))!=null?_0xceb3d8:bi;_0x3cca68 instanceof o[_0x538cb8(0x2ab)]&&(_0xc7bf1f=_0x3cca68[_0x538cb8(0x249)]),document[_0x538cb8(0x3fc)]=_0xc7bf1f;})));}};de=Ei([o[_0x2ad778(0x492)](o['LifecycleStages'][_0x2ad778(0x28b)],de),nt(0x0,o[_0x2ad778(0x1ed)]),nt(0x1,o[_0x2ad778(0x4aa)])],de);var Ti=Object[_0x2ad778(0x4be)],Ri=Object[_0x2ad778(0x16e)],Oi=(_0x16d696,_0x36c063,_0x1bb6da,_0x416a10)=>{for(var _0x58d499=_0x416a10>0x1?void 0x0:_0x416a10?Ri(_0x36c063,_0x1bb6da):_0x36c063,_0x59c6ac=_0x16d696['length']-0x1,_0x122839;_0x59c6ac>=0x0;_0x59c6ac--)(_0x122839=_0x16d696[_0x59c6ac])&&(_0x58d499=(_0x416a10?_0x122839(_0x36c063,_0x1bb6da,_0x58d499):_0x122839(_0x58d499))||_0x58d499);return _0x416a10&&_0x58d499&&Ti(_0x36c063,_0x1bb6da,_0x58d499),_0x58d499;},rt=(_0x41009d,_0x326140)=>(_0x1e6be3,_0x2e8fd1)=>_0x326140(_0x1e6be3,_0x2e8fd1,_0x41009d);let je=class{constructor(_0x3b4e22,_0x42a602){const _0x3e4382=_0x2ad778;this[_0x3e4382(0x508)]=_0x3b4e22,this[_0x3e4382(0x16c)]=_0x42a602;}async[_0x2ad778(0x3d1)](_0x4dda4b,_0x472934){const _0x3f0974=_0x2ad778;var _0x1cc28e;const {unitID:_0xa0564,type:_0x3ae592,revision:_0x2d3710=0x0}=_0x472934,_0x29010b=this[_0x3f0974(0x41c)]()+'/'+_0x3ae592+_0x3f0974(0x3fd)+_0xa0564+_0x3f0974(0x50a)+(_0x2d3710===0x1?0x0:_0x2d3710),_0x4e423e=(await this['_httpService'][_0x3f0974(0x49d)](_0x29010b))['body'],_0x5574d5=(_0x1cc28e=_0x4e423e[_0x3f0974(0x4de)])==null?void 0x0:_0x1cc28e[_0x3f0974(0x49f)];if(_0x5574d5){const _0xfe15d2=_0x5574d5==null?void 0x0:_0x5574d5[_0x3f0974(0x14e)],_0x1bf451=o[_0x3f0974(0x1e3)][_0x3f0974(0x4fb)](o[_0x3f0974(0x17f)](_0xfe15d2));_0x5574d5[_0x3f0974(0x14e)]=_0x1bf451,Object[_0x3f0974(0x2c1)](_0x5574d5[_0x3f0974(0x376)])['forEach'](([,_0x2ec6b2])=>{const _0x239d75=_0x3f0974,_0x439e47=_0x2ec6b2[_0x239d75(0x14e)],_0x1ef0e3=o[_0x239d75(0x1e3)][_0x239d75(0x4fb)](o[_0x239d75(0x17f)](_0x439e47));_0x2ec6b2[_0x239d75(0x14e)]=_0x1ef0e3;});}return _0x4e423e;}async['getSheetBlock'](_0x5124ee,_0x25de8a){const _0x12943f=_0x2ad778,{unitID:_0x28fcf4,type:_0x5bd0ba,blockID:_0x1ee74a}=_0x25de8a,_0x4e8df0=this[_0x12943f(0x3f7)]()+'/'+_0x5bd0ba+'/unit/'+_0x28fcf4+_0x12943f(0x263)+_0x1ee74a;return(await this[_0x12943f(0x16c)][_0x12943f(0x49d)](_0x4e8df0))['body'];}async['fetchMissingChangesets'](_0x48ba3d,_0x190597){const _0x35a4f2=_0x2ad778,{unitID:_0x5036cf,type:_0x1ff42b,from:_0x36cf06,to:_0x2c352f}=_0x190597,_0x583df9=this[_0x35a4f2(0x3f7)]()+'/'+_0x1ff42b+_0x35a4f2(0x3fd)+_0x5036cf+_0x35a4f2(0x431)+_0x36cf06+_0x35a4f2(0x3e2)+_0x2c352f;return(await this[_0x35a4f2(0x16c)][_0x35a4f2(0x49d)](_0x583df9))[_0x35a4f2(0x20d)];}[_0x2ad778(0x41c)](){const _0x13593e=_0x2ad778;var _0xe510d5;return(_0xe510d5=this[_0x13593e(0x508)][_0x13593e(0x39e)](ht))!=null?_0xe510d5:this[_0x13593e(0x3f7)]();}[_0x2ad778(0x3f7)](){const _0x46a00f=_0x2ad778;var _0x362e06;return(_0x362e06=this[_0x46a00f(0x508)][_0x46a00f(0x39e)](lt))!=null?_0x362e06:Bt;}async['getResourcesRequest'](_0x638d3a,_0xad133d){const _0xcdd257=_0x2ad778,_0x7d6206='/universer-api/snapshot/'+_0xad133d[_0xcdd257(0x348)]+_0xcdd257(0x3fd)+_0xad133d[_0xcdd257(0x422)]+_0xcdd257(0x189);return(await this[_0xcdd257(0x16c)][_0xcdd257(0x49d)](_0x7d6206,{'params':{'resourceId':JSON[_0xcdd257(0x146)](_0xad133d[_0xcdd257(0x3d5)])}}))[_0xcdd257(0x20d)];}[_0x2ad778(0x1bc)](){const _0x59cf9e=_0x2ad778;throw new Error(_0x59cf9e(0x4fa));}[_0x2ad778(0x3bb)](){const _0x17fe97=_0x2ad778;throw new Error(_0x17fe97(0x4fa));}[_0x2ad778(0x44c)](){const _0x503ab1=_0x2ad778;throw new Error(_0x503ab1(0x4fa));}};je=Oi([rt(0x0,o['IConfigService']),rt(0x1,o[_0x2ad778(0x143)](U['HTTPService']))],je);var Di=Object[_0x2ad778(0x4be)],Ui=Object[_0x2ad778(0x16e)],Pi=(_0x5e83c9,_0x258960,_0x398e32,_0x1af072)=>{for(var _0x5dc2d4=_0x1af072>0x1?void 0x0:_0x1af072?Ui(_0x258960,_0x398e32):_0x258960,_0x41a15a=_0x5e83c9['length']-0x1,_0x59478a;_0x41a15a>=0x0;_0x41a15a--)(_0x59478a=_0x5e83c9[_0x41a15a])&&(_0x5dc2d4=(_0x1af072?_0x59478a(_0x258960,_0x398e32,_0x5dc2d4):_0x59478a(_0x5dc2d4))||_0x5dc2d4);return _0x1af072&&_0x5dc2d4&&Di(_0x258960,_0x398e32,_0x5dc2d4),_0x5dc2d4;},ne=(_0x3a217a,_0x5511af)=>(_0x497e40,_0x6592be)=>_0x5511af(_0x497e40,_0x6592be,_0x3a217a);let $e=class extends o[_0x2ad778(0x2b8)]{constructor(_0x3004b0,_0x328fb6,_0x2f16f7,_0x570954,_0x1075df){const _0x58f310=_0x2ad778;super(_0x3004b0,_0x328fb6,_0x2f16f7),this[_0x58f310(0x258)]=_0x570954,this[_0x58f310(0x46f)]=_0x1075df;}[_0x2ad778(0x320)](_0xde1ea5,_0x2b46f0){const _0x25eb5a=_0x2ad778,_0x51292f=this[_0x25eb5a(0x4c3)](_0xde1ea5);if(_0x51292f)try{const _0x5bfc05=this[_0x25eb5a(0x1a7)](_0x51292f,_0x2b46f0);this[_0x25eb5a(0x21c)](_0xde1ea5,_0x5bfc05);}catch(_0x3440aa){this[_0x25eb5a(0x46f)][_0x25eb5a(0x191)](_0x25eb5a(0x184),_0x3440aa),this['_clearUndo'](_0xde1ea5);}const _0x5ebcbf=this[_0x25eb5a(0x173)](_0xde1ea5);if(_0x5ebcbf)try{const _0x4bee65=this[_0x25eb5a(0x1a7)](_0x5ebcbf,_0x2b46f0);this[_0x25eb5a(0x487)](_0xde1ea5,_0x4bee65);}catch(_0x2de693){this[_0x25eb5a(0x46f)]['error'](_0x2de693),this['_clearRedo'](_0xde1ea5);}}[_0x2ad778(0x44b)](_0x1ba448){const _0x5b0557=_0x2ad778,_0x208bf5=this[_0x5b0557(0x4c3)](_0x1ba448);_0x208bf5&&(_0x208bf5[_0x5b0557(0x32e)]=0x0,this['_updateStatus']());}[_0x2ad778(0x357)](_0x21248a){const _0x5d5935=_0x2ad778,_0x54335a=this[_0x5d5935(0x173)](_0x21248a);_0x54335a&&(_0x54335a[_0x5d5935(0x32e)]=0x0,this[_0x5d5935(0x48f)]());}[_0x2ad778(0x21c)](_0x3d0578,_0x1157c5){const _0x203b8a=_0x2ad778;this[_0x203b8a(0x164)]['set'](_0x3d0578,_0x1157c5),this[_0x203b8a(0x48f)]();}[_0x2ad778(0x487)](_0x372756,_0x5ae632){const _0x153155=_0x2ad778;this[_0x153155(0x1fd)][_0x153155(0x20c)](_0x372756,_0x5ae632),this[_0x153155(0x48f)]();}[_0x2ad778(0x1a7)](_0x3bc9df,_0xc0de){const _0x50a69f=_0x2ad778,_0x2b29e9=[];let _0x5c7e3d=_0xc0de,_0xb2990e=_0xc0de;for(let _0x595806=_0x3bc9df['length']-0x1;_0x595806>=0x0;_0x595806--){const {unitID:_0x1abdf0,undoMutations:_0x209caa,redoMutations:_0x1d1e71}=_0x3bc9df[_0x595806],_0x243ec2=this[_0x50a69f(0x258)][_0x50a69f(0x18a)](_0x5c7e3d,_0x209caa),_0x48591a=this[_0x50a69f(0x258)][_0x50a69f(0x18a)](_0xb2990e,_0x1d1e71);if(_[_0x50a69f(0x391)](_0x243ec2)||_[_0x50a69f(0x391)](_0x48591a)){this[_0x50a69f(0x46f)][_0x50a69f(0x191)](_0x50a69f(0x184),_0x50a69f(0x2ed),_0x243ec2,_0x48591a);break;}_0x5c7e3d=_0x243ec2[_0x50a69f(0x447)],_0xb2990e=_0x48591a['c1Prime'],_0x2b29e9['push']({'unitID':_0x1abdf0,'undoMutations':_0x243ec2[_0x50a69f(0x29e)],'redoMutations':_0x48591a[_0x50a69f(0x29e)]});}return _0x2b29e9[_0x50a69f(0x442)]();}};$e=Pi([ne(0x0,o['IUniverInstanceService']),ne(0x1,o[_0x2ad778(0x4e4)]),ne(0x2,o[_0x2ad778(0x1c8)]),ne(0x3,_['ITransformService']),ne(0x4,o[_0x2ad778(0x2ac)])],$e);class Pt extends o[_0x2ad778(0x30e)]{constructor(){const _0x38c7fd=_0x2ad778;super(),u(this,'urlChange$'),this[_0x38c7fd(0x1ea)]=v[_0x38c7fd(0x4c9)](window,_0x38c7fd(0x24b))[_0x38c7fd(0x502)](v[_0x38c7fd(0x306)](this[_0x38c7fd(0x46a)]),v['shareReplay'](0x1),v[_0x38c7fd(0x1e1)](void 0x0));}[_0x2ad778(0x35c)](_0x45275d,_0x1fdc72,_0x551d68=!0x1){const _0x1c8e5d=_0x2ad778,_0x5d810d=new URL(window[_0x1c8e5d(0x1b8)][_0x1c8e5d(0x298)]);_0x5d810d[_0x1c8e5d(0x18d)][_0x1c8e5d(0x20c)](_0x45275d,_0x1fdc72),_0x551d68?window[_0x1c8e5d(0x1fb)][_0x1c8e5d(0x15e)]('','',_0x5d810d['toString']()):window['history'][_0x1c8e5d(0x2d0)]('','',_0x5d810d[_0x1c8e5d(0x3dc)]());}[_0x2ad778(0x192)](_0x22b683,_0x23fabf=!0x1){const _0x476cf4=_0x2ad778,_0x2ad951=new URL(window['location'][_0x476cf4(0x298)]);_0x2ad951['searchParams']['delete'](_0x22b683),_0x23fabf?window[_0x476cf4(0x1fb)][_0x476cf4(0x15e)]('','',_0x2ad951[_0x476cf4(0x3dc)]()):window['history']['pushState']('','',_0x2ad951[_0x476cf4(0x3dc)]());}[_0x2ad778(0x4ab)](_0x30b606){const _0x103b36=_0x2ad778;var _0x3bb8f9;return(_0x3bb8f9=new URL(window['location']['href'])['searchParams'][_0x103b36(0x49d)](_0x30b606))!=null?_0x3bb8f9:void 0x0;}}const Pe='collab-text-anchor-',wi=_0x2ad778(0x2f6),_e=0x6,yi=1.5,we=0x4,Li=1.5,Mi=_0x2ad778(0x45f);class Ni{constructor(_0x51bd04,_0x290a1b,_0x2fbdd4,_0x348328){const _0x6740a8=_0x2ad778;u(this,'_shapes',[]),u(this,_0x6740a8(0x427),null),u(this,_0x6740a8(0x2fa),null),u(this,_0x6740a8(0x491),null),u(this,_0x6740a8(0x41a),null),u(this,'_eventUnsubscribe',null),(this[_0x6740a8(0x2c4)]=_0x51bd04,this['_scene']=_0x290a1b,this[_0x6740a8(0x3c8)]=_0x2fbdd4,this[_0x6740a8(0x330)]=_0x348328,this[_0x6740a8(0x39d)]());}set[_0x2ad778(0x4ad)](_0x254195){const _0x21ba44=_0x2ad778;_0x254195?(this[_0x21ba44(0x491)]&&this[_0x21ba44(0x491)][_0x21ba44(0x399)](),this[_0x21ba44(0x2fa)]&&this[_0x21ba44(0x2fa)]['show']()):(this[_0x21ba44(0x491)]&&this[_0x21ba44(0x491)][_0x21ba44(0x1c6)](),this['_textBubble']&&this[_0x21ba44(0x2fa)]['hide']());}[_0x2ad778(0x194)](){const _0x326fde=_0x2ad778;for(const _0x64b911 of this['_shapes'])_0x64b911[_0x326fde(0x194)]();this[_0x326fde(0x2fa)]&&this[_0x326fde(0x2fa)][_0x326fde(0x194)](),this['_anchorDot']&&this[_0x326fde(0x491)][_0x326fde(0x194)](),this[_0x326fde(0x427)]&&this['_anchor']['dispose'](),this[_0x326fde(0x1f2)]&&this[_0x326fde(0x1f2)]();}[_0x2ad778(0x39d)](){const _0x33d5b4=_0x2ad778,{_docSkeleton:_0x4e51c0,_document:_0x273651}=this,{color:_0x4bc27f,name:_0x1137dd,ranges:_0x136ba5}=this['_cursor'],_0x4163fc=_0x273651[_0x33d5b4(0x24d)](),{docsLeft:_0x290db1,docsTop:_0x73950e}=_0x4163fc,_0x191327=new T[(_0x33d5b4(0x1fa))](_0x4163fc,_0x4e51c0);for(const {startOffset:_0x5bd19d,endOffset:_0x3dd96e,collapsed:_0x2f8432,isActive:_0x14b85b}of _0x136ba5){const _0x200413=_0x4e51c0[_0x33d5b4(0x45d)](_0x5bd19d),_0x255d99=_0x4e51c0['findNodePositionByCharIndex'](_0x3dd96e);if(_0x14b85b){const {contentBoxPointGroup:_0x575240}=_0x191327['getRangePointData'](_0x255d99,_0x255d99);if(_0x575240['length']===0x0)continue;this[_0x33d5b4(0x305)](_0x4bc27f,_0x575240,_0x290db1,_0x73950e,_0x1137dd),this['_eventUnsubscribe']=this[_0x33d5b4(0x356)]();}if(!_0x2f8432){const {contentBoxPointGroup:_0xb4b6db}=_0x191327[_0x33d5b4(0x3ff)](_0x200413,_0x255d99);if(_0xb4b6db[_0x33d5b4(0x32e)]===0x0)continue;this[_0x33d5b4(0x329)](_0x4bc27f,_0xb4b6db,_0x290db1,_0x73950e);}}}[_0x2ad778(0x305)](_0x4a75b0,_0x152727,_0x25277e,_0x45b896,_0x4d6e3e){const _0x1a26e4=_0x2ad778,_0x2c1569=this[_0x1a26e4(0x240)](_0x152727),{left:_0x39cb17,top:_0x1dd5ac,height:_0x4ce123}=_0x2c1569,_0x5ba9ae=this['_getScale'](),_0x15f134=Li/_0x5ba9ae,_0x1070e0=new T['Rect'](Pe+o[_0x1a26e4(0x3e8)][_0x1a26e4(0x4db)](_e),{'left':_0x39cb17+_0x25277e-_0x15f134,'top':_0x1dd5ac+_0x45b896,'height':_0x4ce123,'width':yi,'fill':_0x4a75b0||T[_0x1a26e4(0x2c5)](o[_0x1a26e4(0x4eb)][_0x1a26e4(0x2e1)],0x0),'strokeWidth':_0x15f134,'stroke':Mi,'evented':!0x0});this[_0x1a26e4(0x427)]=_0x1070e0,this['_scene'][_0x1a26e4(0x24e)](_0x1070e0,T[_0x1a26e4(0x23e)]);const _0x3b2f9d=new T[(_0x1a26e4(0x38b))](Pe+o[_0x1a26e4(0x3e8)][_0x1a26e4(0x4db)](_e),{'left':_0x39cb17+_0x25277e-_0x15f134,'top':_0x1dd5ac+_0x45b896-we/0x2,'height':we,'width':we,'fill':_0x4a75b0||T[_0x1a26e4(0x2c5)](o[_0x1a26e4(0x4eb)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x4a75b0||T[_0x1a26e4(0x2c5)](o[_0x1a26e4(0x4eb)][_0x1a26e4(0x2e1)],0x0),'evented':!0x1});this[_0x1a26e4(0x491)]=_0x3b2f9d,this['_scene'][_0x1a26e4(0x24e)](_0x3b2f9d,T['TEXT_RANGE_LAYER_INDEX']);const _0x5d6175=new be(Pe+o[_0x1a26e4(0x3e8)]['generateRandomId'](_e),{'left':_0x39cb17+_0x25277e-_0x15f134,'top':_0x1dd5ac+_0x45b896-ce,'text':_0x4d6e3e,'color':_0x4a75b0});this[_0x1a26e4(0x2fa)]=_0x5d6175,this[_0x1a26e4(0x22a)][_0x1a26e4(0x24e)](_0x5d6175,T['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}['_handleHover'](){const _0x14f854=_0x2ad778,_0x3b6424=this[_0x14f854(0x427)][_0x14f854(0x36c)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x1e9b5b=this['_anchor'][_0x14f854(0x163)]['subscribeEvent'](()=>{const _0x382d1f=_0x14f854;this[_0x382d1f(0x41a)]&&clearTimeout(this[_0x382d1f(0x41a)]),this[_0x382d1f(0x41a)]=setTimeout(()=>{const _0x5586f8=_0x382d1f;this[_0x5586f8(0x4ad)]=!0x1;},0x7d0);});return()=>{const _0x3f6a25=_0x14f854;_0x3b6424[_0x3f6a25(0x3ae)](),_0x1e9b5b['unsubscribe']();};}[_0x2ad778(0x329)](_0xc2309f,_0x3b7540,_0x43cdf4,_0xe19dad){const _0x106580=_0x2ad778,_0xa11fbd=new o[(_0x106580(0x30d))](_0xc2309f)[_0x106580(0x2e3)](0.2)['toRgbString'](),_0x17aff7=new T[(_0x106580(0x1cb))](wi+o[_0x106580(0x3e8)][_0x106580(0x4db)](_e),{'pointsGroup':_0x3b7540,'fill':_0xa11fbd||T[_0x106580(0x2c5)](o[_0x106580(0x4eb)]['black'],0.2),'left':_0x43cdf4,'top':_0xe19dad,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x106580(0x363)](_0x17aff7),this[_0x106580(0x22a)][_0x106580(0x24e)](_0x17aff7,T['TEXT_RANGE_LAYER_INDEX']);}[_0x2ad778(0x240)](_0x14f42c){const _0x236678=_0x14f42c[0x0],_0x2bb290=_0x236678[0x0],_0x5d2d2b=_0x236678[0x2],{x:_0x54bc8e,y:_0x3644f9}=_0x2bb290,{x:_0x4da38a,y:_0x5b1643}=_0x5d2d2b;return{'left':_0x54bc8e,'top':_0x3644f9,'width':_0x4da38a-_0x54bc8e,'height':_0x5b1643-_0x3644f9};}[_0x2ad778(0x2e8)](){const _0x4753d1=_0x2ad778,{scaleX:_0x50f80a,scaleY:_0x3472b6}=this[_0x4753d1(0x22a)][_0x4753d1(0x488)]();return Math[_0x4753d1(0x2ca)](_0x50f80a,_0x3472b6);}}var Ai=Object[_0x2ad778(0x4be)],ji=Object[_0x2ad778(0x16e)],$i=(_0x471979,_0x3ab3ad,_0x2b00a2,_0x1fd760)=>{const _0x30b26e=_0x2ad778;for(var _0x5928ab=_0x1fd760>0x1?void 0x0:_0x1fd760?ji(_0x3ab3ad,_0x2b00a2):_0x3ab3ad,_0xffe2db=_0x471979[_0x30b26e(0x32e)]-0x1,_0x3c8717;_0xffe2db>=0x0;_0xffe2db--)(_0x3c8717=_0x471979[_0xffe2db])&&(_0x5928ab=(_0x1fd760?_0x3c8717(_0x3ab3ad,_0x2b00a2,_0x5928ab):_0x3c8717(_0x5928ab))||_0x5928ab);return _0x1fd760&&_0x5928ab&&Ai(_0x3ab3ad,_0x2b00a2,_0x5928ab),_0x5928ab;},re=(_0x5b90b9,_0x1d2001)=>(_0x3ad16d,_0x59a7b2)=>_0x1d2001(_0x3ad16d,_0x59a7b2,_0x5b90b9);let Se=class extends o['RxDisposable']{constructor(_0x19504b,_0xca2673,_0x5b0081,_0x107b19,_0x4a108f){const _0x10631a=_0x2ad778;super(),u(this,'_cursors',[]),(this[_0x10631a(0x215)]=_0x19504b,this[_0x10631a(0x2ec)]=_0xca2673,this[_0x10631a(0x1a3)]=_0x5b0081,this[_0x10631a(0x4d1)]=_0x107b19,this[_0x10631a(0x41e)]=_0x4a108f,this['_init']());}[_0x2ad778(0x3c3)](){const _0xd741b5=_0x2ad778;this[_0xd741b5(0x4d1)][_0xd741b5(0x19c)][_0xd741b5(0x502)](E[_0xd741b5(0x306)](this[_0xd741b5(0x46a)]),E[_0xd741b5(0x1c4)](_0x519e82=>{const _0x2deb98=_0xd741b5;if(_0x519e82){const _0x52b6ff=_0x519e82[_0x2deb98(0x3ec)]()[_0x2deb98(0x483)]()[_0x2deb98(0x340)]();return v[_0x2deb98(0x334)](this[_0x2deb98(0x215)][_0x2deb98(0x4ea)](_0x52b6ff),this[_0x2deb98(0x41e)][_0x2deb98(0x29c)])[_0x2deb98(0x502)](E[_0x2deb98(0x2c7)](([_0x2dbc08,_0x38b6ee])=>({'skeleton':_0x519e82,'cursors':[..._0x2dbc08[_0x2deb98(0x328)]()][_0x2deb98(0x176)](_0x416042=>({..._0x416042,'color':_0x38b6ee[_0x416042[_0x2deb98(0x1b7)]]}))})));}return v['of']({'skeleton':null,'cursors':[]});}))[_0xd741b5(0x27c)](({skeleton:_0x3b1316,cursors:_0x25e34e})=>{const _0x241639=_0xd741b5;this[_0x241639(0x259)](),_0x3b1316&&this[_0x241639(0x1bf)](_0x3b1316,_0x25e34e);});}[_0x2ad778(0x1bf)](_0x13f84f,_0x549c87){const _0x44bd63=_0x2ad778,_0x32594f=this[_0x44bd63(0x36e)]();if(_0x32594f==null)return;const {scene:_0x16ca47,document:_0x57e463}=_0x32594f,_0x454ce1=_0x549c87[_0x44bd63(0x2c7)](_0x46260f=>new Ni(_0x46260f,_0x16ca47,_0x13f84f,_0x57e463));this['_cursors']=_0x454ce1;}[_0x2ad778(0x259)](){const _0x5e13af=_0x2ad778;this[_0x5e13af(0x213)][_0x5e13af(0x169)](_0x45ff71=>_0x45ff71[_0x5e13af(0x194)]()),this[_0x5e13af(0x213)]=[];}[_0x2ad778(0x36e)](){const _0x49e95f=_0x2ad778;return L[_0x49e95f(0x464)](this[_0x49e95f(0x2ec)],this[_0x49e95f(0x1a3)]);}};Se=$i([o[_0x2ad778(0x492)](o[_0x2ad778(0x2e2)][_0x2ad778(0x3e3)],Se),re(0x0,o[_0x2ad778(0x143)](z)),re(0x1,o['IUniverInstanceService']),re(0x2,T[_0x2ad778(0x326)]),re(0x3,o[_0x2ad778(0x143)](L[_0x2ad778(0x2c2)])),re(0x4,o[_0x2ad778(0x143)](o['ThemeService']))],Se);var Hi=Object[_0x2ad778(0x4be)],xi=Object[_0x2ad778(0x16e)],ki=(_0x3d92d9,_0x379b0b,_0x48fbd4,_0x19e89e)=>{const _0x45d8dd=_0x2ad778;for(var _0x4da7cd=_0x19e89e>0x1?void 0x0:_0x19e89e?xi(_0x379b0b,_0x48fbd4):_0x379b0b,_0x398c0e=_0x3d92d9[_0x45d8dd(0x32e)]-0x1,_0x1dbfd6;_0x398c0e>=0x0;_0x398c0e--)(_0x1dbfd6=_0x3d92d9[_0x398c0e])&&(_0x4da7cd=(_0x19e89e?_0x1dbfd6(_0x379b0b,_0x48fbd4,_0x4da7cd):_0x1dbfd6(_0x4da7cd))||_0x4da7cd);return _0x19e89e&&_0x4da7cd&&Hi(_0x379b0b,_0x48fbd4,_0x4da7cd),_0x4da7cd;},ye=(_0x515b3b,_0x59054c)=>(_0x486195,_0x4e7d00)=>_0x59054c(_0x486195,_0x4e7d00,_0x515b3b);let pe=class{constructor(_0x5ed238,_0x2c1b23,_0x5b9c3f){const _0x238328=_0x2ad778;this[_0x238328(0x508)]=_0x5ed238,this[_0x238328(0x16c)]=_0x2c1b23,this['localeService']=_0x5b9c3f,this[_0x238328(0x367)]();}[_0x2ad778(0x367)](){const _0x3942d9=_0x2ad778;this[_0x3942d9(0x16c)][_0x3942d9(0x369)]({'priority':0x1,'interceptor':(_0xce4662,_0x1b4b32)=>_0x1b4b32(_0xce4662)[_0x3942d9(0x502)](v[_0x3942d9(0x245)](async _0x13e5ef=>{const _0x4b2c5b=_0x3942d9,_0x5ed0e7=_0x13e5ef;if(_0x5ed0e7[_0x4b2c5b(0x35e)]===0x191&&window[_0x4b2c5b(0x4a0)](this['localeService']['t'](_0x4b2c5b(0x37c)))){const _0xffffc8=window[_0x4b2c5b(0x3f2)](window[_0x4b2c5b(0x1b8)]['href']);window[_0x4b2c5b(0x1b8)][_0x4b2c5b(0x298)]=this[_0x4b2c5b(0x1f1)]()+_0x4b2c5b(0x3b8)+_0xffffc8;}return _0x5ed0e7;}))});}[_0x2ad778(0x1f1)](){const _0x55014a=_0x2ad778;var _0x551e59;return(_0x551e59=this[_0x55014a(0x508)][_0x55014a(0x39e)](ft))!=null?_0x551e59:zt;}};pe=ki([ye(0x0,o['IConfigService']),ye(0x1,o[_0x2ad778(0x143)](U['HTTPService'])),ye(0x2,o[_0x2ad778(0x143)](o[_0x2ad778(0x384)]))],pe);var Bi=Object['defineProperty'],Fi=Object[_0x2ad778(0x16e)],Vi=(_0x5b3844,_0x263154,_0x5c59b9,_0x138b2a)=>{const _0x306714=_0x2ad778;for(var _0x510aaf=_0x138b2a>0x1?void 0x0:_0x138b2a?Fi(_0x263154,_0x5c59b9):_0x263154,_0x33183f=_0x5b3844[_0x306714(0x32e)]-0x1,_0x128126;_0x33183f>=0x0;_0x33183f--)(_0x128126=_0x5b3844[_0x33183f])&&(_0x510aaf=(_0x138b2a?_0x128126(_0x263154,_0x5c59b9,_0x510aaf):_0x128126(_0x510aaf))||_0x510aaf);return _0x138b2a&&_0x510aaf&&Bi(_0x263154,_0x5c59b9,_0x510aaf),_0x510aaf;},ot=(_0x52313c,_0x20fb40)=>(_0x20b60f,_0x88cbfd)=>_0x20fb40(_0x20b60f,_0x88cbfd,_0x52313c);const wt=_0x2ad778(0x4e9),Wi=_0x2ad778(0x46b);exports['AuthzIoHttpService']=class extends o[_0x2ad778(0x299)]{constructor(_0x1e6148,_0x1a7676){const _0x5ea64b=_0x2ad778;super(),this[_0x5ea64b(0x314)]=_0x1e6148,this['_configService']=_0x1a7676,this[_0x5ea64b(0x4bb)]();}['_initMergeInterceptor'](){const _0x3871cf=_0x2ad778,_0x520334=this;this[_0x3871cf(0x233)](this['_HTTPService'][_0x3871cf(0x369)]({'priority':0x3e7,'interceptor':U[_0x3871cf(0x4ee)]({'isMatch'(_0x53c084){const _0x242383=_0x3871cf;var _0x594725;if(_0x53c084[_0x242383(0x349)]==='POST'&&((_0x594725=_0x53c084[_0x242383(0x276)])!=null&&_0x594725['body'])){const {objectID:_0x21d76f,objectType:_0x47905a}=_0x53c084[_0x242383(0x276)]['body']||{};if(!_0x21d76f||_0x47905a===void 0x0)return!0x1;const _0x5597fa=_0x520334[_0x242383(0x32d)]()+'/'+_0x47905a+_0x242383(0x3f3)+_0x21d76f+'/allowed';if(_0x53c084['url']===_0x5597fa)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5899a5){const _0x5d31c1=_0x3871cf;var _0x57f4f9;return(_0x57f4f9=_0x5899a5[_0x5d31c1(0x276)])==null?void 0x0:_0x57f4f9[_0x5d31c1(0x20d)];},'mergeParamsToRequest'(_0x3a05b3,_0x49444e){const _0x9609f3=_0x3871cf,_0x4dd1bd=_0x520334[_0x9609f3(0x32d)]()+_0x9609f3(0x250),_0x312c57=_0x3a05b3['reduce']((_0x582bc8,_0x132a95)=>{const _0x4f4b36=_0x9609f3,{unitID:_0x4028b2,objectID:_0x4d0948,objectType:_0x5494e7,actions:_0x463c33}=_0x132a95;return _0x582bc8[_0x4028b2]||(_0x582bc8[_0x4028b2]={}),_0x582bc8[_0x4028b2][_0x4d0948]||(_0x582bc8[_0x4028b2][_0x4d0948]={'objectID':_0x4d0948,'objectType':_0x5494e7,'actions':[]}),_0x582bc8[_0x4028b2][_0x4d0948][_0x4f4b36(0x2fd)][_0x4f4b36(0x363)](..._0x463c33),_0x582bc8;},{}),_0x5b3f45=[];for(const _0x41c846 in _0x312c57)for(const _0x4d7bc7 in _0x312c57[_0x41c846]){const {actions:_0x5a8d03,objectType:_0x13c59}=_0x312c57[_0x41c846][_0x4d7bc7],_0x1fb886=[...new Set(_0x5a8d03)];_0x5b3f45[_0x9609f3(0x363)]({'unitID':_0x41c846,'objectID':_0x4d7bc7,'objectType':_0x13c59,'actions':_0x1fb886});}return new U[(_0x9609f3(0x3bd))](_0x9609f3(0x2a4),_0x4dd1bd,{'headers':_0x49444e[_0x9609f3(0x432)],'withCredentials':_0x49444e[_0x9609f3(0x2b4)],'responseType':_0x49444e['responseType'],'body':{'requests':_0x5b3f45}});}},{'distributeResult'(_0x1ab47f,_0x5524c0){const _0x39d36=_0x3871cf,{objectActions:_0x4aa803}=_0x1ab47f;return _0x5524c0[_0x39d36(0x2c7)](_0x136728=>{const _0x469d87=_0x39d36,{unitID:_0x20a109,objectID:_0x2ffa67,actions:_0x3b105b}=_0x136728,_0xf9afd2=_0x4aa803[_0x469d87(0x506)](_0x48085d=>_0x48085d['unitID']===_0x20a109&&_0x48085d[_0x469d87(0x224)]===_0x2ffa67),_0x1264cb=_0x3b105b['map'](_0x4d2765=>_0xf9afd2==null?void 0x0:_0xf9afd2[_0x469d87(0x2fd)][_0x469d87(0x506)](_0x59971a=>_0x59971a[_0x469d87(0x2e0)]===_0x4d2765))[_0x469d87(0x1dd)](_0x4603b8=>!!_0x4603b8);return{'config':_0x136728,'result':{'actions':_0x1264cb,'error':_0x1ab47f[_0x469d87(0x191)]}};});}})}));}[_0x2ad778(0x32d)](){const _0x475d2b=_0x2ad778;var _0x4b16d3;return(_0x4b16d3=this[_0x475d2b(0x508)][_0x475d2b(0x39e)](wt))!=null?_0x4b16d3:Wi;}async[_0x2ad778(0x1c2)](_0x5e98af){const _0x3345e4=_0x2ad778,_0x285ddf=this['_getAPIPrefixPath']()+'/'+_0x5e98af['objectType']+'/object';return(await this[_0x3345e4(0x314)][_0x3345e4(0x33d)](_0x285ddf,{'body':_0x5e98af}))[_0x3345e4(0x20d)][_0x3345e4(0x224)]||'';}async[_0x2ad778(0x177)](_0x4d6553){const _0x4b0786=_0x2ad778,_0x232f80=this[_0x4b0786(0x32d)]()+_0x4b0786(0x27f);return(await this[_0x4b0786(0x314)][_0x4b0786(0x33d)](_0x232f80,{'body':_0x4d6553}))[_0x4b0786(0x20d)][_0x4b0786(0x266)];}async[_0x2ad778(0x504)](_0x5a3d9b){const _0x27d8fc=_0x2ad778,_0x1e5e0b=this[_0x27d8fc(0x32d)]()+'/'+_0x5a3d9b[_0x27d8fc(0x3b0)]+_0x27d8fc(0x3f3)+_0x5a3d9b[_0x27d8fc(0x224)];await this[_0x27d8fc(0x314)][_0x27d8fc(0x271)](_0x1e5e0b,{'body':_0x5a3d9b});}async[_0x2ad778(0x38f)](_0x82577d){const _0x406ddd=_0x2ad778,_0x54c10d=this['_getAPIPrefixPath']()+'/'+_0x82577d['objectType']+_0x406ddd(0x3f3)+_0x82577d[_0x406ddd(0x224)]+'/allowed';return(await this['_HTTPService'][_0x406ddd(0x33d)](_0x54c10d,{'body':_0x82577d}))[_0x406ddd(0x20d)][_0x406ddd(0x2fd)];}async[_0x2ad778(0x3aa)](_0xc6ebc7){const _0xaf75b=_0x2ad778,_0x35c1a5=this[_0xaf75b(0x32d)]()+_0xaf75b(0x250);return(await this[_0xaf75b(0x314)][_0xaf75b(0x33d)](_0x35c1a5,{'body':{'requests':_0xc6ebc7}}))[_0xaf75b(0x20d)][_0xaf75b(0x40d)];}async[_0x2ad778(0x165)](_0xfa9618){const _0x42f52a=_0x2ad778,_0x2648fd=this[_0x42f52a(0x32d)]()+'/'+_0xfa9618[_0x42f52a(0x3b0)]+_0x42f52a(0x280),_0x4ce9c3=await this[_0x42f52a(0x314)][_0x42f52a(0x33d)](_0x2648fd,{'body':_0xfa9618});return{'roles':_0x4ce9c3[_0x42f52a(0x20d)][_0x42f52a(0x30c)],'actions':_0x4ce9c3['body'][_0x42f52a(0x2fd)]};}async['deleteCollaborator'](_0x4b3851){const _0x19e365=_0x2ad778,_0x2a0cda=this['_getAPIPrefixPath']()+_0x19e365(0x49a);await this[_0x19e365(0x314)]['delete'](_0x2a0cda,{'params':{'collaboratorID':_0x4b3851[_0x19e365(0x2ba)],'objectID':_0x4b3851[_0x19e365(0x224)],'unitID':_0x4b3851[_0x19e365(0x422)]}});}async[_0x2ad778(0x42a)](_0x408618){const _0x51a76d=_0x2ad778,_0x45b0f3=this[_0x51a76d(0x32d)]()+'/collaborator';await this[_0x51a76d(0x314)]['patch'](_0x45b0f3,{'body':_0x408618});}async['createCollaborator'](_0x221146){const _0x4fc3b1=_0x2ad778,_0x238cfd=this[_0x4fc3b1(0x32d)]()+_0x4fc3b1(0x49a);await this['_HTTPService'][_0x4fc3b1(0x33d)](_0x238cfd,{'body':_0x221146});}async[_0x2ad778(0x2ad)](_0x315250){const _0x12f88a=_0x2ad778,_0x3d13a0=this[_0x12f88a(0x32d)]()+_0x12f88a(0x49a);return(await this[_0x12f88a(0x314)][_0x12f88a(0x49d)](_0x3d13a0,{'params':{'objectID':_0x315250[_0x12f88a(0x224)],'unitID':_0x315250[_0x12f88a(0x422)]}}))[_0x12f88a(0x20d)][_0x12f88a(0x4e1)];}async[_0x2ad778(0x2cd)](_0x53e8f5){const _0x5aaa32=_0x2ad778,_0x2862d6=this[_0x5aaa32(0x32d)]()+_0x5aaa32(0x49a);await this[_0x5aaa32(0x314)][_0x5aaa32(0x271)](_0x2862d6,{'body':_0x53e8f5});}},exports[_0x2ad778(0x36a)]=Vi([ot(0x0,o[_0x2ad778(0x143)](U[_0x2ad778(0x2cf)])),ot(0x1,o[_0x2ad778(0x143)](o[_0x2ad778(0x4aa)]))],exports[_0x2ad778(0x36a)]);var Gi=Object['defineProperty'],Yi=Object[_0x2ad778(0x16e)],Ki=(_0x1b5e5d,_0x45cf9f,_0x273a12,_0x384dae)=>{const _0x518bd6=_0x2ad778;for(var _0x555c5c=_0x384dae>0x1?void 0x0:_0x384dae?Yi(_0x45cf9f,_0x273a12):_0x45cf9f,_0x14fd28=_0x1b5e5d[_0x518bd6(0x32e)]-0x1,_0x3982c1;_0x14fd28>=0x0;_0x14fd28--)(_0x3982c1=_0x1b5e5d[_0x14fd28])&&(_0x555c5c=(_0x384dae?_0x3982c1(_0x45cf9f,_0x273a12,_0x555c5c):_0x3982c1(_0x555c5c))||_0x555c5c);return _0x384dae&&_0x555c5c&&Gi(_0x45cf9f,_0x273a12,_0x555c5c),_0x555c5c;},at=(_0x4b9490,_0x3d97f6)=>(_0x57343d,_0x5f2141)=>_0x3d97f6(_0x57343d,_0x5f2141,_0x4b9490);const Xi=[_0x2ad778(0x2c8),'image/jpeg',_0x2ad778(0x2ef),'image/gif',_0x2ad778(0x497)],qi=0x5*0x400*0x400,Ji=_0x2ad778(0x4f4),zi=_0x2ad778(0x395),Zi='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Qi='/universer-api/file/{fileID}/sign-url';let He=class{constructor(_0x15d3fe,_0x8db20){const _0x1e8758=_0x2ad778;u(this,_0x1e8758(0x26b),0x0),u(this,_0x1e8758(0x1b9),new v[(_0x1e8758(0x2c6))]()),u(this,_0x1e8758(0x31a),this[_0x1e8758(0x1b9)]),u(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x15d3fe,this[_0x1e8758(0x508)]=_0x8db20);}[_0x2ad778(0x361)](_0x55ac5e){this['_waitCount']=_0x55ac5e,this['_change$']['next'](_0x55ac5e);}['getImageSourceCache'](_0x51371e,_0x249b5e){const _0x2a72cb=_0x2ad778;if(_0x249b5e===N[_0x2a72cb(0x50c)][_0x2a72cb(0x15c)]){const _0x17d803=new Image();return _0x17d803[_0x2a72cb(0x24a)]=_0x51371e,_0x17d803;}return this[_0x2a72cb(0x158)][_0x2a72cb(0x49d)](_0x51371e);}[_0x2ad778(0x2b6)](_0x2eca01,_0x35c97e,_0x1e673f){const _0xcf1591=_0x2ad778;_0x35c97e===N[_0xcf1591(0x50c)][_0xcf1591(0x15c)]||_0x1e673f==null||this[_0xcf1591(0x158)][_0xcf1591(0x20c)](_0x2eca01,_0x1e673f);}async[_0x2ad778(0x339)](_0x1d5dae){const _0x14f6ba=_0x2ad778;try{const _0x449caa=this[_0x14f6ba(0x279)](this[_0x14f6ba(0x1a5)](),''+_0x1d5dae),_0xd9cb93=(await this[_0x14f6ba(0x16c)][_0x14f6ba(0x49d)](_0x449caa))[_0x14f6ba(0x20d)];return _0xd9cb93['error']&&_0xd9cb93[_0x14f6ba(0x191)]['code']===mt['OK']?Promise[_0x14f6ba(0x2aa)](_0xd9cb93[_0x14f6ba(0x183)]):Promise[_0x14f6ba(0x3c5)](_0xd9cb93[_0x14f6ba(0x191)]);}catch(_0x4e5ef1){return Promise[_0x14f6ba(0x3c5)](_0x4e5ef1);}}async[_0x2ad778(0x321)](_0x3787df){const _0xb6c698=_0x2ad778;let _0x27a3bf='';if(!Xi[_0xb6c698(0x1b5)](_0x3787df[_0xb6c698(0x348)]))return this[_0xb6c698(0x489)](),Promise[_0xb6c698(0x3c5)](new Error(N[_0xb6c698(0x3be)][_0xb6c698(0x34d)]));if(_0x3787df['size']>qi)return this[_0xb6c698(0x489)](),Promise[_0xb6c698(0x3c5)](new Error(N[_0xb6c698(0x3be)][_0xb6c698(0x229)]));try{const _0x5894be=new FormData();_0x5894be['append'](_0xb6c698(0x394),_0x3787df);const _0x2d5af9=this[_0xb6c698(0x2de)]()+_0xb6c698(0x28d)+_0x3787df[_0xb6c698(0x441)]['toString'](),_0x590bde=await(await fetch(_0x2d5af9,{'method':'POST','body':_0x5894be}))[_0xb6c698(0x4a2)]();if(typeof _0x590bde['FileId']!=_0xb6c698(0x48c))return this[_0xb6c698(0x489)](),Promise[_0xb6c698(0x3c5)](new Error(N['ImageUploadStatusType'][_0xb6c698(0x26d)]));_0x27a3bf=_0x590bde['FileId'];}catch{return this[_0xb6c698(0x489)](),Promise[_0xb6c698(0x3c5)](new Error(N[_0xb6c698(0x3be)][_0xb6c698(0x26d)]));}return new Promise((_0x58ed25,_0x2247bf)=>{const _0x1a1aef=_0xb6c698,_0x12b532=new FileReader();_0x12b532[_0x1a1aef(0x256)](_0x3787df),_0x12b532['onload']=_0x771aa4=>{const _0x7a6f10=_0x1a1aef;var _0x3e0d1f;const _0x17ceb7=(_0x3e0d1f=_0x771aa4['target'])==null?void 0x0:_0x3e0d1f['result'];if(_0x17ceb7==null){this[_0x7a6f10(0x489)](),_0x2247bf(new Error(N[_0x7a6f10(0x3be)]['ERROR_IMAGE']));return;}const _0x725002=o['Tools']['generateRandomId'](0x6);_0x58ed25({'imageId':_0x725002,'imageSourceType':N[_0x7a6f10(0x50c)][_0x7a6f10(0x4f8)],'source':_0x27a3bf,'base64Cache':_0x17ceb7,'status':N[_0x7a6f10(0x3be)]['SUCCUSS']}),this[_0x7a6f10(0x489)]();};});}[_0x2ad778(0x2de)](){const _0x2c59a1=_0x2ad778;var _0x580c02;return(_0x580c02=this[_0x2c59a1(0x508)][_0x2c59a1(0x39e)](Ji))!=null?_0x580c02:zi;}['_getSignURL'](){const _0x29f87d=_0x2ad778;var _0x241807;return(_0x241807=this['_configService'][_0x29f87d(0x39e)](Zi))!=null?_0x241807:Qi;}[_0x2ad778(0x279)](_0x1e4a75,_0x33fdc8){return _0x1e4a75['replace']('{fileID}',_0x33fdc8);}[_0x2ad778(0x489)](){const _0x2dbbd6=_0x2ad778;this[_0x2dbbd6(0x26b)]-=0x1,this['_change$'][_0x2dbbd6(0x368)](this['_waitCount']);}};He=Ki([at(0x0,o[_0x2ad778(0x143)](U[_0x2ad778(0x2cf)])),at(0x1,o[_0x2ad778(0x4aa)])],He);var en=Object[_0x2ad778(0x4be)],tn=Object[_0x2ad778(0x16e)],sn=(_0xe2d8d3,_0xf1442e,_0x176464,_0x53feae)=>{for(var _0x2581b5=_0x53feae>0x1?void 0x0:_0x53feae?tn(_0xf1442e,_0x176464):_0xf1442e,_0x2bdf62=_0xe2d8d3['length']-0x1,_0x3e51cb;_0x2bdf62>=0x0;_0x2bdf62--)(_0x3e51cb=_0xe2d8d3[_0x2bdf62])&&(_0x2581b5=(_0x53feae?_0x3e51cb(_0xf1442e,_0x176464,_0x2581b5):_0x3e51cb(_0x2581b5))||_0x2581b5);return _0x53feae&&_0x2581b5&&en(_0xf1442e,_0x176464,_0x2581b5),_0x2581b5;},oe=(_0x19f2b9,_0x2a8e8b)=>(_0x58189e,_0x341f00)=>_0x2a8e8b(_0x58189e,_0x341f00,_0x19f2b9);let ve=class extends o[_0x2ad778(0x30e)]{constructor(_0x34b726,_0x463a54,_0x58c63d,_0x7f288e,_0x143191){const _0x3c6bb7=_0x2ad778;super(),this[_0x3c6bb7(0x31d)]=_0x34b726,this[_0x3c6bb7(0x2ec)]=_0x463a54,this[_0x3c6bb7(0x3a8)]=_0x58c63d,this[_0x3c6bb7(0x3ba)]=_0x7f288e,this[_0x3c6bb7(0x4fd)]=_0x143191,this[_0x3c6bb7(0x39b)](),this[_0x3c6bb7(0x2d4)]();}[_0x2ad778(0x2d4)](){const _0x13e244=_0x2ad778,_0x1762e5=async _0xdedfec=>{const _0x45542b=_0x379e;(await this[_0x45542b(0x3ba)][_0x45542b(0x34a)](_0xdedfec))['event$'][_0x45542b(0x502)](E[_0x45542b(0x1dd)](_0x3c1a84=>_0x3c1a84['eventID']===_[_0x45542b(0x4b9)][_0x45542b(0x1fe)]),E['takeUntil'](this['dispose$']))[_0x45542b(0x27c)](_0x197b41=>{const _0x33e5f4=_0x45542b,_0x3e26cf=_0x197b41,{reason:_0x1dacc3}=_0x3e26cf[_0x33e5f4(0x2f7)];this[_0x33e5f4(0x31d)][_0x33e5f4(0x49d)](M['IMessageService'])['show']({'type':Z[_0x33e5f4(0x310)][_0x33e5f4(0x4e8)],'content':this['_localeService']['t'](_0x33e5f4(0x14b))+'('+_0x1dacc3+')'}),this[_0x33e5f4(0x3a8)]['updatePermissionPoint'](new p[(_0x33e5f4(0x344))](_0xdedfec)['id'],!0x1),this[_0x33e5f4(0x3ba)]['closeSession'](_0xdedfec);});};v[_0x13e244(0x443)](this['_univerInstanceService'][_0x13e244(0x4b7)](o[_0x13e244(0x3c7)][_0x13e244(0x421)]),this[_0x13e244(0x2ec)][_0x13e244(0x4b7)](o[_0x13e244(0x3c7)][_0x13e244(0x257)]))['pipe'](E[_0x13e244(0x2c7)](_0x5bf4da=>_0x5bf4da[_0x13e244(0x340)]()),E['filter'](_0x3efcf8=>!o[_0x13e244(0x448)](_0x3efcf8)),E[_0x13e244(0x306)](this[_0x13e244(0x46a)]))[_0x13e244(0x27c)](_0x5e2a14=>{_0x1762e5(_0x5e2a14);});}[_0x2ad778(0x39b)](){const _0x803123=_0x2ad778,_0x469901=async _0x150dbc=>{const _0x514558=_0x379e;(await this['_collaborationSessionService'][_0x514558(0x34a)](_0x150dbc))['event$'][_0x514558(0x502)](E[_0x514558(0x1dd)](_0x5df345=>_0x5df345[_0x514558(0x318)]===_['CollaborationEvent'][_0x514558(0x4a8)]),E[_0x514558(0x306)](this[_0x514558(0x46a)]))['subscribe'](_0x397fa4=>{const _0x2debb9=_0x514558,_0x336c6c=_0x397fa4,{objectId:_0x24b34e}=_0x336c6c['data'];_0x24b34e===_0x150dbc&&this[_0x2debb9(0x31d)]['get'](J[_0x2debb9(0x4a6)])['initWorkbookPermissionChange'](_0x150dbc);});};v[_0x803123(0x443)](this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x803123(0x3c7)]['UNIVER_SHEET']),this[_0x803123(0x2ec)]['getTypeOfUnitAdded$'](o[_0x803123(0x3c7)]['UNIVER_DOC']))['pipe'](E[_0x803123(0x2c7)](_0x22ff00=>_0x22ff00[_0x803123(0x340)]()),E[_0x803123(0x1dd)](_0xcf8555=>!o[_0x803123(0x448)](_0xcf8555)),E[_0x803123(0x306)](this[_0x803123(0x46a)]))['subscribe'](_0x4df664=>{_0x469901(_0x4df664);});}};ve=sn([o[_0x2ad778(0x492)](o[_0x2ad778(0x2e2)]['Starting'],ve),oe(0x0,o[_0x2ad778(0x143)](o['Injector'])),oe(0x1,o[_0x2ad778(0x1ed)]),oe(0x2,o[_0x2ad778(0x358)]),oe(0x3,o['Inject'](exports[_0x2ad778(0x277)])),oe(0x4,o[_0x2ad778(0x143)](o[_0x2ad778(0x384)]))],ve);var yt=Object[_0x2ad778(0x4be)],nn=Object[_0x2ad778(0x16e)],rn=(_0x43aa9b,_0x55a22b,_0x47bc47)=>_0x55a22b in _0x43aa9b?yt(_0x43aa9b,_0x55a22b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47bc47}):_0x43aa9b[_0x55a22b]=_0x47bc47,on=(_0x1cbbd2,_0x188df1,_0x8c269e,_0x45ba18)=>{const _0x449911=_0x2ad778;for(var _0x39f41e=_0x45ba18>0x1?void 0x0:_0x45ba18?nn(_0x188df1,_0x8c269e):_0x188df1,_0x2b685f=_0x1cbbd2[_0x449911(0x32e)]-0x1,_0x2c5f0f;_0x2b685f>=0x0;_0x2b685f--)(_0x2c5f0f=_0x1cbbd2[_0x2b685f])&&(_0x39f41e=(_0x45ba18?_0x2c5f0f(_0x188df1,_0x8c269e,_0x39f41e):_0x2c5f0f(_0x39f41e))||_0x39f41e);return _0x45ba18&&_0x39f41e&&yt(_0x188df1,_0x8c269e,_0x39f41e),_0x39f41e;},ct=(_0x20154b,_0x42d27b)=>(_0x2189db,_0x34e943)=>_0x42d27b(_0x2189db,_0x34e943,_0x20154b),an=(_0x1b2494,_0x1d301f,_0x36f419)=>rn(_0x1b2494,_0x1d301f+'',_0x36f419);const cn=_0x2ad778(0x239);exports[_0x2ad778(0x4f3)]=class extends o[_0x2ad778(0x373)]{constructor(_0x546d2a,_0xcc1487,_0x464289){const _0x37c302=_0x2ad778;super(),this[_0x37c302(0x180)]=_0x546d2a,this[_0x37c302(0x46f)]=_0xcc1487,this[_0x37c302(0x31d)]=_0x464289;}[_0x2ad778(0x242)](_0x1e9705){const _0x2b5433=_0x2ad778;var _0x423a81,_0xc80841,_0x77bbfd,_0xc6c615,_0x496ce3;_0x1e9705[_0x2b5433(0x44d)](o[_0x2b5433(0x29a)])&&this[_0x2b5433(0x46f)][_0x2b5433(0x191)](_0x2b5433(0x294),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3b4418=[[o[_0x2b5433(0x29a)],{'useClass':$e}],[exports[_0x2b5433(0x277)]],[Ge],[U[_0x2b5433(0x2cf)]],[Ke,{'useClass':Pt}],[W],[exports[_0x2b5433(0x1eb)]],[U['WebSocketService']],[me],[fe],[ge],[We],[pe],[Ve],[ve],[Fe,{'useClass':(_0xc80841=(_0x423a81=this[_0x2b5433(0x180)])==null?void 0x0:_0x423a81[_0x2b5433(0x32c)])!=null?_0xc80841:exports[_0x2b5433(0x389)]}],[U[_0x2b5433(0x221)],{'useClass':U['XHRHTTPImplementation']}],[o[_0x2b5433(0x1fc)],{'useClass':je}],[o[_0x2b5433(0x4f0)],{'useClass':exports['AuthzIoHttpService']}],[N[_0x2b5433(0x1ef)],{'useClass':He}],[exports[_0x2b5433(0x371)]],[exports[_0x2b5433(0x46d)]],[exports[_0x2b5433(0x343)]],[de],[z]];(_0x77bbfd=this[_0x2b5433(0x180)])!=null&&_0x77bbfd['enableSingleActiveInstanceLock']&&_0x3b4418[_0x2b5433(0x363)]([Ee,{'useClass':_s}]),((_0xc6c615=this[_0x2b5433(0x180)])==null?void 0x0:_0xc6c615['collaborationUniverTypes'])==null||this[_0x2b5433(0x180)]['collaborationUniverTypes'][_0x2b5433(0x1b5)](o[_0x2b5433(0x3c7)][_0x2b5433(0x421)])?_0x3b4418[_0x2b5433(0x363)]([ue]):this[_0x2b5433(0x180)]['collaborationUniverTypes']['includes'](o[_0x2b5433(0x3c7)][_0x2b5433(0x257)])&&_0x3b4418['push']([Se]),_0x3b4418=o[_0x2b5433(0x439)](_0x3b4418,(_0x496ce3=this['_config'])==null?void 0x0:_0x496ce3['override']),_0x3b4418['forEach'](_0x3e9961=>_0x1e9705[_0x2b5433(0x459)](_0x3e9961)),_0x1e9705[_0x2b5433(0x49d)](U[_0x2b5433(0x2cf)])[_0x2b5433(0x369)]({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_initModules']();}[_0x2ad778(0x204)](){const _0x2059a5=_0x2ad778;var _0x36f857,_0x26c04e;(_0x36f857=this[_0x2059a5(0x180)])!=null&&_0x36f857[_0x2059a5(0x40f)]||this[_0x2059a5(0x31d)][_0x2059a5(0x49d)](exports[_0x2059a5(0x1eb)])['disableLocalCache'](),(_0x26c04e=this[_0x2059a5(0x180)])!=null&&_0x26c04e['enableAuthServer']&&this['_injector'][_0x2059a5(0x49d)](pe);}},an(exports[_0x2ad778(0x4f3)],'pluginName',cn),exports[_0x2ad778(0x4f3)]=on([o[_0x2ad778(0x283)](_['UniverCollaborationPlugin']),ct(0x1,o[_0x2ad778(0x2ac)]),ct(0x2,o[_0x2ad778(0x143)](o['Injector']))],exports[_0x2ad778(0x4f3)]),exports[_0x2ad778(0x4e9)]=wt,exports[_0x2ad778(0x3af)]=gt,exports[_0x2ad778(0x350)]=ut,exports[_0x2ad778(0x498)]=D,exports[_0x2ad778(0x302)]=Ut,exports['CommentService']=Ve,exports[_0x2ad778(0x166)]=dt,exports[_0x2ad778(0x15b)]=ke,exports[_0x2ad778(0x190)]=Fe,exports['IURLService']=Ke,exports[_0x2ad778(0x1c3)]=vt,exports['LOGIN_URL_KEY']=ft,exports[_0x2ad778(0x4e7)]=_t,exports['SNAPSHOT_SERVER_URL_KEY']=lt,exports[_0x2ad778(0x1a2)]=ht,exports['SessionStatus']=V,exports[_0x2ad778(0x4b5)]=Pt,exports[_0x2ad778(0x435)]=It,exports['serializeCombRequest']=pt;
1
+ 'use strict';const _0x42f461=_0x527e;(function(_0x5ed0de,_0x504270){const _0x2fa677=_0x527e,_0x343872=_0x5ed0de();while(!![]){try{const _0x52c8fc=-parseInt(_0x2fa677(0x26c))/0x1*(-parseInt(_0x2fa677(0x13f))/0x2)+parseInt(_0x2fa677(0x1ff))/0x3*(parseInt(_0x2fa677(0x3eb))/0x4)+-parseInt(_0x2fa677(0x1a7))/0x5*(-parseInt(_0x2fa677(0x38f))/0x6)+-parseInt(_0x2fa677(0x15b))/0x7+-parseInt(_0x2fa677(0x422))/0x8+parseInt(_0x2fa677(0x182))/0x9+parseInt(_0x2fa677(0x3ba))/0xa*(-parseInt(_0x2fa677(0x253))/0xb);if(_0x52c8fc===_0x504270)break;else _0x343872['push'](_0x343872['shift']());}catch(_0x568551){_0x343872['push'](_0x343872['shift']());}}}(_0x3600,0x1966f));var At=Object[_0x42f461(0x3c5)],jt=(_0xb6ba5e,_0x10c595,_0x149f41)=>_0x10c595 in _0xb6ba5e?At(_0xb6ba5e,_0x10c595,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x149f41}):_0xb6ba5e[_0x10c595]=_0x149f41,u=(_0x348232,_0x29e1cb,_0x4da470)=>jt(_0x348232,typeof _0x29e1cb!=_0x42f461(0x275)?_0x29e1cb+'':_0x29e1cb,_0x4da470);Object[_0x42f461(0x3c5)](exports,Symbol[_0x42f461(0x45f)],{'value':'Module'});const o=require(_0x42f461(0x40d)),p=require(_0x42f461(0xbe)),Z=require(_0x42f461(0x3a3)),M=require('@univerjs/ui'),_=require(_0x42f461(0xc7)),v=require(_0x42f461(0x481)),C=require(_0x42f461(0x45d)),L=require(_0x42f461(0x342)),P=require(_0x42f461(0x18c)),N=require(_0x42f461(0x144)),Ge=require(_0x42f461(0x192)),je=require(_0x42f461(0x3db)),T=require(_0x42f461(0x20c)),J=require(_0x42f461(0x460)),y=require(_0x42f461(0x476)),$t=require(_0x42f461(0x29a)),Ht=require(_0x42f461(0x1f6)),ot=_0x42f461(0x306),xt=_0x42f461(0x3b7),at=_0x42f461(0x314),ct=_0x42f461(0x23f),kt=0x7d0,lt=_0x42f461(0x1c2),Bt=_0x42f461(0x33b),ht=_0x42f461(0x1b0),Ft=0x7530,$e='HEARTBEAT_TIMEOUT',_t=0x2710,Vt=_0x42f461(0x39b),Wt=0x4e20,Gt=_0x42f461(0x325),Yt=0x3,ut=_0x42f461(0x21f),Kt=0x3e8,dt='COLLAB_SUBMIT_CHANGESET_URL',Xt=_0x42f461(0x303),St=_0x42f461(0x22b),qt=_0x42f461(0x1bb);var vt=(_0x5bad69=>(_0x5bad69[_0x5bad69[_0x42f461(0x24b)]=0x0]=_0x42f461(0x24b),_0x5bad69[_0x5bad69['OK']=0x1]='OK',_0x5bad69[_0x5bad69[_0x42f461(0x156)]=0x2]='INTERNAL_ERROR',_0x5bad69[_0x5bad69['PERMISSION_DENIED']=0x3]=_0x42f461(0x2a2),_0x5bad69[_0x5bad69['NOT_FOUND']=0x4]=_0x42f461(0x170),_0x5bad69[_0x5bad69[_0x42f461(0xc5)]=0x5]=_0x42f461(0xc5),_0x5bad69[_0x5bad69[_0x42f461(0x167)]=0x6]=_0x42f461(0x167),_0x5bad69[_0x5bad69['INVALID_ARGUMENT']=0x7]=_0x42f461(0x27c),_0x5bad69[_0x5bad69[_0x42f461(0x21e)]=0x8]=_0x42f461(0x21e),_0x5bad69[_0x5bad69[_0x42f461(0xb8)]=0x9]=_0x42f461(0xb8),_0x5bad69[_0x5bad69[_0x42f461(0x3a9)]=0x1389]=_0x42f461(0x3a9),_0x5bad69[_0x5bad69[_0x42f461(0xbd)]=0x1771]=_0x42f461(0xbd),_0x5bad69[_0x5bad69['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5bad69[_0x5bad69[_0x42f461(0x256)]=0x1b59]=_0x42f461(0x256),_0x5bad69[_0x5bad69[_0x42f461(0x2c4)]=0x1b5a]=_0x42f461(0x2c4),_0x5bad69[_0x5bad69[_0x42f461(0x3fd)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5bad69[_0x5bad69['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x42f461(0x46c),_0x5bad69[_0x5bad69['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x42f461(0x2e0),_0x5bad69[_0x5bad69['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5bad69[_0x5bad69['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x42f461(0x100),_0x5bad69[_0x5bad69[_0x42f461(0x289)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5bad69[_0x5bad69[_0x42f461(0x2f4)]=0x232c]=_0x42f461(0x2f4),_0x5bad69[_0x5bad69[_0x42f461(0x173)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5bad69[_0x5bad69[_0x42f461(0xdf)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5bad69[_0x5bad69[_0x42f461(0xe7)]=0x2712]=_0x42f461(0xe7),_0x5bad69[_0x5bad69['UNRECOGNIZED']=-0x1]=_0x42f461(0x350),_0x5bad69))(vt||{}),A=(_0x39cc00=>(_0x39cc00[_0x39cc00[_0x42f461(0x36a)]=0x0]=_0x42f461(0x36a),_0x39cc00[_0x39cc00[_0x42f461(0x46d)]=0x1]=_0x42f461(0x46d),_0x39cc00[_0x39cc00[_0x42f461(0x23d)]=0x2]=_0x42f461(0x23d),_0x39cc00[_0x39cc00[_0x42f461(0x355)]=0x3]=_0x42f461(0x355),_0x39cc00[_0x39cc00[_0x42f461(0x350)]=-0x1]='UNRECOGNIZED',_0x39cc00))(A||{}),b=(_0x9f605=>(_0x9f605[_0x9f605[_0x42f461(0x1e0)]=0x0]='UNKNOWN_CMD',_0x9f605[_0x9f605[_0x42f461(0x14c)]=0x1]=_0x42f461(0x14c),_0x9f605[_0x9f605['JOIN']=0x2]=_0x42f461(0x232),_0x9f605[_0x9f605['LEAVE']=0x3]='LEAVE',_0x9f605[_0x9f605[_0x42f461(0x448)]=0x4]=_0x42f461(0x448),_0x9f605[_0x9f605[_0x42f461(0x22e)]=0x5]=_0x42f461(0x22e),_0x9f605[_0x9f605[_0x42f461(0x461)]=0x6]=_0x42f461(0x461),_0x9f605[_0x9f605['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x9f605))(b||{}),He=(_0x3d23c0=>(_0x3d23c0[_0x3d23c0[_0x42f461(0x287)]=0x0]='UNKNOWN_CODE',_0x3d23c0[_0x3d23c0['OK']=0x1]='OK',_0x3d23c0[_0x3d23c0[_0x42f461(0x34e)]=0x2]=_0x42f461(0x34e),_0x3d23c0[_0x3d23c0[_0x42f461(0x350)]=-0x1]=_0x42f461(0x350),_0x3d23c0))(He||{}),Jt=Object[_0x42f461(0x3c5)],zt=Object[_0x42f461(0x1b1)],Zt=(_0x3be71b,_0x343649,_0x4cb484,_0x14ffd5)=>{const _0x335c0c=_0x42f461;for(var _0x2fc9f4=_0x14ffd5>0x1?void 0x0:_0x14ffd5?zt(_0x343649,_0x4cb484):_0x343649,_0x19c325=_0x3be71b[_0x335c0c(0x441)]-0x1,_0x548776;_0x19c325>=0x0;_0x19c325--)(_0x548776=_0x3be71b[_0x19c325])&&(_0x2fc9f4=(_0x14ffd5?_0x548776(_0x343649,_0x4cb484,_0x2fc9f4):_0x548776(_0x2fc9f4))||_0x2fc9f4);return _0x14ffd5&&_0x2fc9f4&&Jt(_0x343649,_0x4cb484,_0x2fc9f4),_0x2fc9f4;},Ye=(_0x1d3057,_0x4f3a69)=>(_0x50ba1d,_0x176650)=>_0x4f3a69(_0x50ba1d,_0x176650,_0x1d3057);let W=class extends o['Disposable']{constructor(_0x2a909b,_0x4fa7a5){const _0x10ff0c=_0x42f461;super(),u(this,_0x10ff0c(0x11e),new Map()),(this[_0x10ff0c(0x3c1)]=_0x2a909b,this[_0x10ff0c(0x205)]=_0x4fa7a5,this[_0x10ff0c(0x2e2)](o[_0x10ff0c(0x262)](v['merge'](this[_0x10ff0c(0x3c1)][_0x10ff0c(0x3c7)](o[_0x10ff0c(0x3a7)][_0x10ff0c(0x23d)])[_0x10ff0c(0x285)](C['map'](_0x2ebf9a=>_0x2ebf9a[_0x10ff0c(0x2d9)]())),this[_0x10ff0c(0x3c1)][_0x10ff0c(0x3c7)](o[_0x10ff0c(0x3a7)][_0x10ff0c(0x46d)])[_0x10ff0c(0x285)](C['map'](_0x5a8b24=>_0x5a8b24['getUnitId']())),this[_0x10ff0c(0x3c1)][_0x10ff0c(0x3c7)](o[_0x10ff0c(0x3a7)][_0x10ff0c(0x355)])[_0x10ff0c(0x285)](C['map'](_0x54e86f=>_0x54e86f[_0x10ff0c(0x2d9)]())))[_0x10ff0c(0x17e)](_0x2760b3=>this[_0x10ff0c(0x21d)](_0x2760b3)))));}[_0x42f461(0x2a7)](_0x224459){const _0x52f86d=_0x42f461;this[_0x52f86d(0x205)]['setCurrentUser'](_0x224459);}[_0x42f461(0x119)](){const _0x11218e=_0x42f461;return this['_userManagerService'][_0x11218e(0x119)]();}[_0x42f461(0x225)](_0x45ad31,_0x383cfc){const _0x52b130=_0x42f461;let _0x484cc2=this[_0x52b130(0x11e)][_0x52b130(0xc0)](_0x45ad31);_0x484cc2||(_0x484cc2=new Qt(),this['_roomMembers'][_0x52b130(0x1c4)](_0x45ad31,_0x484cc2)),_0x484cc2['updateMember'](_0x383cfc);}[_0x42f461(0xf9)](_0x227940,_0x536b8e){const _0x559c03=_0x42f461,_0xa8645a=this[_0x559c03(0x11e)][_0x559c03(0xc0)](_0x227940);_0xa8645a&&_0xa8645a[_0x559c03(0xf9)](_0x536b8e);}[_0x42f461(0x1fa)](_0x5a4b1f){const _0x5971b4=_0x42f461;return this[_0x5971b4(0x11e)][_0x5971b4(0xc0)](_0x5a4b1f);}[_0x42f461(0x297)](_0x1bb087,_0x317cf5){const _0x3f755e=_0x42f461,_0x27c341=this[_0x3f755e(0x11e)][_0x3f755e(0xc0)](_0x1bb087);if(_0x27c341)return _0x27c341[_0x3f755e(0x297)](_0x317cf5);}['_removeRoom'](_0x1fae72){const _0x3a7996=_0x42f461,_0x44b8e9=this[_0x3a7996(0x11e)]['get'](_0x1fae72);_0x44b8e9&&(_0x44b8e9[_0x3a7996(0x442)](),this['_roomMembers']['delete'](_0x1fae72));}[_0x42f461(0x442)](){const _0x47b610=_0x42f461;this['_roomMembers'][_0x47b610(0x375)](_0x30fb15=>_0x30fb15[_0x47b610(0x442)]()),this['_roomMembers'][_0x47b610(0x21c)]();}};W=Zt([Ye(0x0,o[_0x42f461(0x237)]),Ye(0x1,o[_0x42f461(0x1f3)](o['UserManagerService']))],W);class Qt extends o['Disposable']{constructor(){const _0x4fc070=_0x42f461;super(...arguments),u(this,_0x4fc070(0x12f),new Map());}[_0x42f461(0x442)](){const _0x577f44=_0x42f461;this[_0x577f44(0x12f)]['clear']();}[_0x42f461(0x225)](_0x11d740){const _0x533344=_0x42f461;this[_0x533344(0x12f)][_0x533344(0x1c4)](_0x11d740[_0x533344(0x27e)],_0x11d740);}[_0x42f461(0xf9)](_0x121422){const _0x998a01=_0x42f461;this[_0x998a01(0x12f)][_0x998a01(0x213)](_0x121422);}[_0x42f461(0x297)](_0x33b1cc){const _0x172515=_0x42f461;return this[_0x172515(0x12f)][_0x172515(0xc0)](_0x33b1cc);}}function gt(_0x33ebd8){const _0x20d347=_0x42f461;var _0x2d8c71,_0x5d924f,_0x407a9e,_0x5b27e2;const _0x33aca6=_0x33ebd8[_0x20d347(0x407)],_0x2ae7ea=JSON['parse'](_0x33aca6);switch(_0x2ae7ea[_0x20d347(0xf6)]){case b['HEARTBEAT']:case b[_0x20d347(0x14c)]:{const _0x3f455f=_0x2ae7ea[_0x20d347(0x38b)];return{..._0x2ae7ea,'data':_0x3f455f,'cmd':_0x2ae7ea[_0x20d347(0xf6)]};}case b[_0x20d347(0x232)]:{const _0xbeccd7=_0x2ae7ea['joinRsp'];return{..._0x2ae7ea,'data':_0xbeccd7,'cmd':_0x2ae7ea[_0x20d347(0xf6)]};}case b[_0x20d347(0x461)]:{const _0x3de232=_0x2ae7ea['collaMsg'];switch(_0x3de232[_0x20d347(0x35a)]){case _['CollaborationEvent'][_0x20d347(0x3f2)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':(_0x2d8c71=_0x3de232[_0x20d347(0x2f6)])==null?void 0x0:_0x2d8c71['cs']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x1d7)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':(_0x5d924f=_0x3de232[_0x20d347(0x1de)])==null?void 0x0:_0x5d924f['cs']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x2f3)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':(_0x407a9e=_0x3de232[_0x20d347(0x42b)])==null?void 0x0:_0x407a9e['cs']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _['CollaborationEvent']['CHANGESET_REJ']:return{..._0x2ae7ea,'data':{..._0x3de232,'data':(_0x5b27e2=_0x3de232['csRejEvent'])==null?void 0x0:_0x5b27e2['cs']},'cmd':_0x2ae7ea['cmd']};case _[_0x20d347(0x301)]['UPDATE_CURSOR']:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232[_0x20d347(0x335)]},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x3e3)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232[_0x20d347(0x1d8)]},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)]['USERS_LEAVE']:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232[_0x20d347(0x2d3)]},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)]['LIVESHARE_NEW_HOST']:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232[_0x20d347(0x2fe)]},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x454)]:case _[_0x20d347(0x301)][_0x20d347(0xc2)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232['liveShareOperation']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x38c)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232['liveShareNewHost']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)]['MSG_FOR_ERROR']:return{..._0x2ae7ea,'data':_0x3de232,'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)]['COMMENT_UPDATE']:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232[_0x20d347(0x3c4)]},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x293)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232['updatePermissionObjEvent']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0xd2)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232['shouldCloseConn']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};default:return _0x2ae7ea;}}default:return _0x2ae7ea;}}function ft(_0x391fac){const _0x41cd80=_0x42f461;switch(_0x391fac[_0x41cd80(0xf6)]){case b[_0x41cd80(0x22e)]:case b[_0x41cd80(0x14c)]:return JSON[_0x41cd80(0x472)]({'cmd':_0x391fac['cmd'],'routeKey':_0x391fac['routeKey']});case b[_0x41cd80(0x448)]:{let _0x2da1c5;switch(_0x391fac[_0x41cd80(0x407)][_0x41cd80(0x35a)]){case _[_0x41cd80(0x301)][_0x41cd80(0x102)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0x102)],'updateCursorEvent':_0x391fac['data'][_0x41cd80(0x407)]};break;}case _[_0x41cd80(0x301)][_0x41cd80(0x427)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0x427)],'leaveEvent':_0x391fac['data'][_0x41cd80(0x407)]};break;}case _[_0x41cd80(0x301)][_0x41cd80(0x3e3)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0x3e3)],'joinEvent':_0x391fac['data'][_0x41cd80(0x407)]};break;}case _[_0x41cd80(0x301)][_0x41cd80(0xd8)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0xd8)],'liveShareNewHost':_0x391fac[_0x41cd80(0x407)][_0x41cd80(0x407)]};break;}case _['CollaborationEvent'][_0x41cd80(0xc2)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0xc2)],'liveShareOperation':_0x391fac[_0x41cd80(0x407)]['data']};break;}case _[_0x41cd80(0x301)]['LIVESHARE_TERMINATE']:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0x38c)],'liveShareTerminate':_0x391fac[_0x41cd80(0x407)][_0x41cd80(0x407)]};break;}case _['CollaborationEvent'][_0x41cd80(0x13b)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x391fac[_0x41cd80(0x407)]['data']};break;}case _[_0x41cd80(0x301)][_0x41cd80(0x454)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x2da1c5={'eventID':_0x391fac[_0x41cd80(0x407)]['eventID']};}return JSON['stringify']({'cmd':_0x391fac[_0x41cd80(0xf6)],'routeKey':_0x391fac['routeKey'],'collaMsg':_0x2da1c5});}case b['JOIN']:return JSON[_0x41cd80(0x472)]({'cmd':_0x391fac['cmd'],'routeKey':_0x391fac[_0x41cd80(0xea)],'joinReq':_0x391fac[_0x41cd80(0x407)]});case b[_0x41cd80(0x2ae)]:return JSON[_0x41cd80(0x472)]({'cmd':_0x391fac['cmd'],'routeKey':_0x391fac[_0x41cd80(0xea)],'leaveReq':_0x391fac[_0x41cd80(0x407)]});default:throw new Error(_0x41cd80(0x3c9));}}var es=Object['defineProperty'],ts=Object[_0x42f461(0x1b1)],ss=(_0x5c2f15,_0x3afb7f,_0x4ae222,_0x581e29)=>{const _0x59ee86=_0x42f461;for(var _0x53fd1e=_0x581e29>0x1?void 0x0:_0x581e29?ts(_0x3afb7f,_0x4ae222):_0x3afb7f,_0x240bcd=_0x5c2f15[_0x59ee86(0x441)]-0x1,_0xdc5972;_0x240bcd>=0x0;_0x240bcd--)(_0xdc5972=_0x5c2f15[_0x240bcd])&&(_0x53fd1e=(_0x581e29?_0xdc5972(_0x3afb7f,_0x4ae222,_0x53fd1e):_0xdc5972(_0x53fd1e))||_0x53fd1e);return _0x581e29&&_0x53fd1e&&es(_0x3afb7f,_0x4ae222,_0x53fd1e),_0x53fd1e;},te=(_0x1e9644,_0x3f5208)=>(_0x3eae26,_0x185398)=>_0x3f5208(_0x3eae26,_0x185398,_0x1e9644);const xe=o['createIdentifier'](_0x42f461(0x271));function is(_0x3beed6,_0x219bb5,_0x277ccf){const _0x38aab5=_0x42f461;return _0x3beed6+'/'+_0x219bb5+'/unit/'+_0x277ccf+_0x38aab5(0x248);}exports['CollaborationSocketService']=class{constructor(_0xb7f9c8,_0x45f9c3,_0x3bda95,_0x383262,_0x165fe2){const _0x506f83=_0x42f461;this['_http']=_0xb7f9c8,this[_0x506f83(0x16b)]=_0x45f9c3,this[_0x506f83(0x408)]=_0x3bda95,this[_0x506f83(0x313)]=_0x383262,this[_0x506f83(0x220)]=_0x165fe2;}['createSocket'](_0x38d4ca){const _0x507e1a=_0x42f461,_0x3af4c6=this['_ws'][_0x507e1a(0x14f)](_0x38d4ca);if(!_0x3af4c6)throw new Error(_0x507e1a(0x404));const _0x23c930=new o['DisposableCollection'](),_0x3b1a63=new v[(_0x507e1a(0x26e))]();_0x23c930['add'](o['toDisposable'](_0x3af4c6[_0x507e1a(0x10f)]['subscribe'](_0x457e9c=>_0x3b1a63[_0x507e1a(0x3b2)](_0x457e9c)))),_0x23c930['add'](o[_0x507e1a(0x262)](()=>_0x3b1a63['complete']()));const _0x55008e=new v[(_0x507e1a(0x26e))]();_0x23c930[_0x507e1a(0x1eb)](o['toDisposable'](_0x3af4c6[_0x507e1a(0x374)][_0x507e1a(0x17e)](_0x4ffabd=>_0x55008e['next'](_0x4ffabd)))),_0x23c930[_0x507e1a(0x1eb)](o[_0x507e1a(0x262)](()=>_0x55008e[_0x507e1a(0x14d)]()));const _0x3e314b=new v[(_0x507e1a(0x26e))]();_0x23c930[_0x507e1a(0x1eb)](o[_0x507e1a(0x262)](_0x3af4c6[_0x507e1a(0x2dd)][_0x507e1a(0x17e)](_0x458e0d=>{const _0x135141=_0x507e1a,_0x4d4d1e=gt(_0x458e0d);_0x3e314b[_0x135141(0x3b2)](_0x4d4d1e);}))),_0x23c930[_0x507e1a(0x1eb)](o[_0x507e1a(0x262)](()=>_0x3e314b[_0x507e1a(0x14d)]()));const _0x39dcef=()=>{const _0x183343=_0x507e1a;_0x55008e[_0x183343(0x3b2)](new Event('connection\x20error')),_0x3b1a63[_0x183343(0x3b2)](new CloseEvent(_0x183343(0x3a2))),_0x42aca3[_0x183343(0x18f)]();},_0x42aca3={'memberID':'','close$':_0x3b1a63[_0x507e1a(0xbc)](),'error$':_0x55008e[_0x507e1a(0xbc)](),'open$':_0x3af4c6[_0x507e1a(0x401)],'message$':_0x3e314b[_0x507e1a(0xbc)](),'send':_0x473545=>{const _0x3ecbb2=_0x507e1a;if(_0x473545[_0x3ecbb2(0xf6)]===b[_0x3ecbb2(0x448)]){if(_0x473545[_0x3ecbb2(0x407)]['eventID']===_['CollaborationEvent'][_0x3ecbb2(0x432)]){this['_submitChangeset'](_0x42aca3,_0x473545[_0x3ecbb2(0x407)])[_0x3ecbb2(0x1e9)](_0x34648f=>{this['_logService']['error'](_0x34648f),_0x39dcef();});return;}if(_0x473545[_0x3ecbb2(0x407)][_0x3ecbb2(0x35a)]===_['CollaborationEvent'][_0x3ecbb2(0x115)]){const _0x2f9e00=_0x473545['data'];this[_0x3ecbb2(0x3d4)](_0x2f9e00)[_0x3ecbb2(0x44b)](_0x2e058e=>{const _0x5a8b0e=_0x3ecbb2;_0x3e314b[_0x5a8b0e(0x3b2)]({'cmd':b[_0x5a8b0e(0x461)],'code':He['OK'],'routeKey':_0x2f9e00[_0x5a8b0e(0x407)][_0x5a8b0e(0x33c)],'routeType':'','data':{'eventID':_[_0x5a8b0e(0x301)][_0x5a8b0e(0x1a3)],'data':{'changesets':_0x2e058e}}});})[_0x3ecbb2(0x1e9)](_0x4ad459=>{const _0x13a511=_0x3ecbb2;this[_0x13a511(0x313)][_0x13a511(0x34d)](_0x4ad459),_0x39dcef();});return;}}_0x3af4c6[_0x3ecbb2(0x36d)](ft(_0x473545));},'close':()=>{const _0x3d8572=_0x507e1a;_0x3af4c6[_0x3d8572(0x18f)](),_0x23c930[_0x3d8572(0x442)]();}};return _0x42aca3;}async[_0x42f461(0x453)](_0x12018a,_0x149649){const _0x576cb4=_0x42f461;var _0x2a8b1b;const {unitType:_0xa20a41,unitID:_0x4f102a,changeset:_0x5b74cb}=_0x149649['data'],_0xb8adc={'unitID':_0x4f102a,'memberID':_0x12018a['memberID'],'type':_0xa20a41,'changeset':_['parseChangesetToProtocol'](_0x5b74cb)},_0x3ea48c=is((_0x2a8b1b=this[_0x576cb4(0x408)][_0x576cb4(0x1b4)](dt))!=null?_0x2a8b1b:Xt,_0xa20a41,_0x4f102a);try{await this[_0x576cb4(0x3ad)][_0x576cb4(0x42a)](_0x3ea48c,{'body':_0xb8adc});}catch(_0x4892cd){throw this['_logService'][_0x576cb4(0x34d)](_0x576cb4(0x244),'submit\x20changeset\x20error!'),_0x4892cd;}}async[_0x42f461(0x3d4)](_0x322d41){const _0x8614ed=_0x42f461,{unitID:_0x46fbaf,from:_0x1eaa70,to:_0x3efe69,unitType:_0x5dbb70}=_0x322d41[_0x8614ed(0x407)];return(await this['_snapshotServerService'][_0x8614ed(0x211)]({'metadata':void 0x0},{'unitID':_0x46fbaf,'type':_0x5dbb70,'from':_0x1eaa70,'to':_0x3efe69}))[_0x8614ed(0x352)];}},exports[_0x42f461(0x12a)]=ss([te(0x0,o[_0x42f461(0x1f3)](P['HTTPService'])),te(0x1,o[_0x42f461(0x1f3)](P['WebSocketService'])),te(0x2,o['IConfigService']),te(0x3,o[_0x42f461(0x218)]),te(0x4,o[_0x42f461(0x41d)])],exports[_0x42f461(0x12a)]);class ke{constructor(){const _0x1cd0ac=_0x42f461;u(this,_0x1cd0ac(0x41c),new v[(_0x1cd0ac(0x26e))]()),u(this,_0x1cd0ac(0x29f),this['_commentUpdate$'][_0x1cd0ac(0xbc)]());}['onCommentUpdate'](_0x2ec84f){const _0x14bb82=_0x42f461;this[_0x14bb82(0x41c)][_0x14bb82(0x3b2)](_0x2ec84f);}}var ns=Object[_0x42f461(0x3c5)],rs=Object[_0x42f461(0x1b1)],mt=(_0x4fff4b,_0x5bceda,_0x1adaf5,_0x38630e)=>{const _0x228d9d=_0x42f461;for(var _0x7510e0=_0x38630e>0x1?void 0x0:_0x38630e?rs(_0x5bceda,_0x1adaf5):_0x5bceda,_0x413083=_0x4fff4b[_0x228d9d(0x441)]-0x1,_0x25f4a1;_0x413083>=0x0;_0x413083--)(_0x25f4a1=_0x4fff4b[_0x413083])&&(_0x7510e0=(_0x38630e?_0x25f4a1(_0x5bceda,_0x1adaf5,_0x7510e0):_0x25f4a1(_0x7510e0))||_0x7510e0);return _0x38630e&&_0x7510e0&&ns(_0x5bceda,_0x1adaf5,_0x7510e0),_0x7510e0;},U=(_0x56f8dc,_0xbb5c97)=>(_0x1c3340,_0x243da1)=>_0xbb5c97(_0x1c3340,_0x243da1,_0x56f8dc),V=(_0x2923d9=>(_0x2923d9[_0x2923d9[_0x42f461(0x228)]=0x0]=_0x42f461(0x228),_0x2923d9[_0x2923d9['JOINING']=0x1]=_0x42f461(0x16a),_0x2923d9[_0x2923d9['OFFLINE']=0x2]=_0x42f461(0x187),_0x2923d9[_0x2923d9[_0x42f461(0x336)]=0x3]='ONLINE',_0x2923d9))(V||{});exports[_0x42f461(0x323)]=class extends o[_0x42f461(0x451)]{constructor(_0x34f996,_0x2c5378,_0x509368,_0x4a368f,_0x3f5935,_0x481c3f,_0x79cae0,_0x143eeb,_0x503e6a){const _0x45b905=_0x42f461;super(),u(this,_0x45b905(0xc8),new v[(_0x45b905(0x151))](0x0)),u(this,_0x45b905(0x227),this['_sessionStatus$'][_0x45b905(0xbc)]()),u(this,_0x45b905(0xd3),new v[(_0x45b905(0x26e))]()),u(this,'event$',this[_0x45b905(0xd3)][_0x45b905(0xbc)]()),u(this,_0x45b905(0x2a9)),u(this,'_socketMessageSubscription'),u(this,_0x45b905(0xf1)),(this[_0x45b905(0x315)]=_0x34f996,this['_logService']=_0x509368,this[_0x45b905(0x1cf)]=_0x4a368f,this[_0x45b905(0x45c)]=_0x3f5935,this[_0x45b905(0x408)]=_0x481c3f,this[_0x45b905(0x15c)]=_0x79cae0,this[_0x45b905(0x2d2)]=_0x143eeb,this[_0x45b905(0x41a)]=_0x503e6a,_0x2c5378['pipe'](C['takeUntil'](this[_0x45b905(0x1b8)]))[_0x45b905(0x17e)](_0x4870fa=>{const _0x23fce9=_0x45b905;var _0x424523;typeof _0x4870fa>'u'||(this[_0x23fce9(0x2a9)]=_0x4870fa,_0x4870fa?(this['_joinRoom'](_0x4870fa),this[_0x23fce9(0x33f)]=this[_0x23fce9(0x2a9)][_0x23fce9(0x2dd)][_0x23fce9(0x17e)](_0x3728c0=>{const _0x3c250a=_0x23fce9;_0x3728c0[_0x3c250a(0xea)]===this[_0x3c250a(0x315)]&&this[_0x3c250a(0x2cc)](_0x3728c0);})):(this[_0x23fce9(0xc8)]['next'](0x2),(_0x424523=this[_0x23fce9(0x33f)])==null||_0x424523[_0x23fce9(0x188)](),this['_socketMessageSubscription']=null));}),this[_0x45b905(0x2e2)](this[_0x45b905(0x1cf)]['registerOnClose'](()=>{const _0x381509=_0x45b905;var _0x5f145d;(_0x5f145d=this[_0x381509(0x2a9)])==null||_0x5f145d[_0x381509(0x36d)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x381509(0x315)]}});})));}get[_0x42f461(0x3e6)](){const _0x307e20=_0x42f461;return this[_0x307e20(0xc8)][_0x307e20(0x1da)]();}['getMemberID'](){var _0x305cab,_0x3530e3;return(_0x3530e3=(_0x305cab=this['_socket'])==null?void 0x0:_0x305cab['memberID'])!=null?_0x3530e3:null;}[_0x42f461(0x442)](){const _0x49cdea=_0x42f461;super['dispose'](),this['dispose$']['next'](),this[_0x49cdea(0x1b8)]['complete']();}[_0x42f461(0x18f)](){const _0xe8ed6=_0x42f461;var _0x3aa5e8,_0x19771e;(_0x3aa5e8=this[_0xe8ed6(0x2a9)])==null||_0x3aa5e8[_0xe8ed6(0x36d)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0xe8ed6(0x315)]}}),this[_0xe8ed6(0xd3)][_0xe8ed6(0x14d)](),this[_0xe8ed6(0xc8)][_0xe8ed6(0x14d)](),(_0x19771e=this[_0xe8ed6(0x2a9)])==null||_0x19771e[_0xe8ed6(0x18f)](),this[_0xe8ed6(0x442)]();}[_0x42f461(0x2cc)](_0x5ac025){const _0x5078b7=_0x42f461;_0x5ac025[_0x5078b7(0xf6)]===b['JOIN']?this[_0x5078b7(0x2a5)](_0x5ac025):_0x5ac025['cmd']===b[_0x5078b7(0x461)]&&this[_0x5078b7(0x263)](_0x5ac025);}[_0x42f461(0x1d4)](_0x45c324){const _0x2a0d68=_0x42f461;this[_0x2a0d68(0xc8)][_0x2a0d68(0x3b2)](0x1),_0x45c324[_0x2a0d68(0x36d)]({'cmd':b[_0x2a0d68(0x232)],'routeKey':this[_0x2a0d68(0x315)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2a0d68(0x315)]}]}});}[_0x42f461(0x2a5)](_0x3f337c){const _0x569304=_0x42f461;var _0x6cccee;if(_0x3f337c[_0x569304(0x199)]===He['FAIL']){this[_0x569304(0x45c)][_0x569304(0x20a)]({'type':Z[_0x569304(0x2ad)][_0x569304(0x341)],'content':this['_localeService']['t'](_0x569304(0xf8))}),this['_sessionStatus$'][_0x569304(0x3b2)](0x2);return;}this[_0x569304(0xc8)][_0x569304(0x3b2)](0x3);const _0x250d03=(_0x6cccee=_0x3f337c['data'][_0x569304(0x2b3)][this['_unitID']])==null?void 0x0:_0x6cccee[_0x569304(0x452)];_0x250d03&&_0x250d03['forEach'](_0x4705dc=>this[_0x569304(0x2d2)][_0x569304(0x225)](this[_0x569304(0x315)],_0x4705dc));}[_0x42f461(0x263)](_0x44c317){const _0x5b151b=_0x42f461;try{const _0x1d90ac=_0x44c317[_0x5b151b(0x407)];switch(_0x1d90ac[_0x5b151b(0x35a)]){case _[_0x5b151b(0x301)]['USERS_ENTER']:this['_onUserJoin'](_0x1d90ac),this[_0x5b151b(0xd3)]['next'](_0x1d90ac);break;case _['CollaborationEvent'][_0x5b151b(0x427)]:this['_onUserLeave'](_0x1d90ac),this[_0x5b151b(0xd3)][_0x5b151b(0x3b2)](_0x1d90ac);break;case _[_0x5b151b(0x301)][_0x5b151b(0x1d7)]:this['_clearCollaborationTimeoutTimer'](),this[_0x5b151b(0xd3)][_0x5b151b(0x3b2)](_0x1d90ac);break;case _['CollaborationEvent'][_0x5b151b(0x3fb)]:this[_0x5b151b(0x313)][_0x5b151b(0x34d)](_0x5b151b(0x259)+JSON[_0x5b151b(0x472)](_0x1d90ac)),this[_0x5b151b(0xd3)][_0x5b151b(0x3b2)](_0x1d90ac);break;case _['CollaborationEvent'][_0x5b151b(0x224)]:this[_0x5b151b(0x41a)]['onCommentUpdate'](_0x1d90ac[_0x5b151b(0x407)]),this[_0x5b151b(0xd3)]['next'](_0x1d90ac);break;default:this[_0x5b151b(0xd3)][_0x5b151b(0x3b2)](_0x1d90ac);}}catch(_0x430516){this['_logService']['error'](_0x430516,_0x44c317);}}[_0x42f461(0x2ef)](_0x1f0af0){const _0x84e21e=_0x42f461;this[_0x84e21e(0x2d2)][_0x84e21e(0x225)](this[_0x84e21e(0x315)],_0x1f0af0[_0x84e21e(0x407)]);}[_0x42f461(0x217)](_0x5d5091){const _0x43f26b=_0x42f461;this['_memberService'][_0x43f26b(0xf9)](this[_0x43f26b(0x315)],_0x5d5091[_0x43f26b(0x407)][_0x43f26b(0x27e)]);}async['send'](_0x48f2cb,_0x2a8e58){const _0x48b59f=_0x42f461;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x48b59f(0x221));try{_0x48f2cb['eventID']===_[_0x48b59f(0x301)][_0x48b59f(0x2f3)]&&this[_0x48b59f(0x2a6)](),this[_0x48b59f(0x2a9)][_0x48b59f(0x36d)]({'cmd':b[_0x48b59f(0x448)],'routeKey':_0x2a8e58,'routeType':'','data':_0x48f2cb});}catch(_0x272f9e){this[_0x48b59f(0x313)][_0x48b59f(0x34d)](_0x272f9e);}}[_0x42f461(0x2a6)](){const _0x3df1a9=_0x42f461;var _0x2cd180;this[_0x3df1a9(0xf1)]=window[_0x3df1a9(0x362)](()=>{const _0x36a680=_0x3df1a9;this[_0x36a680(0xf1)]=null,this[_0x36a680(0x45c)]['show']({'type':Z[_0x36a680(0x2ad)][_0x36a680(0x467)],'content':this[_0x36a680(0x15c)]['t'](_0x36a680(0x443))});},(_0x2cd180=this[_0x3df1a9(0x408)]['getConfig']($e))!=null?_0x2cd180:_t);}[_0x42f461(0x1ed)](){const _0x44633b=_0x42f461;this[_0x44633b(0xf1)]&&(clearTimeout(this[_0x44633b(0xf1)]),this[_0x44633b(0xf1)]=null);}},exports['CollaborationSession']=mt([U(0x2,o['ILogService']),U(0x3,M[_0x42f461(0x2ab)]),U(0x4,M[_0x42f461(0x3f8)]),U(0x5,o[_0x42f461(0x398)]),U(0x6,o['Inject'](o[_0x42f461(0x465)])),U(0x7,o['Inject'](W)),U(0x8,o[_0x42f461(0x1f3)](ke))],exports[_0x42f461(0x323)]),exports[_0x42f461(0x1bd)]=class extends o['Disposable']{constructor(_0x57053c,_0x44e755,_0x5d53ab,_0xc83b4c,_0x2d9a0f,_0x2f9829){const _0x5604b2=_0x42f461;super(),u(this,_0x5604b2(0x26f),new v[(_0x5604b2(0x151))](void 0x0)),u(this,_0x5604b2(0x32d),new Map()),u(this,_0x5604b2(0x41f),new v[(_0x5604b2(0x151))](0x0)),u(this,_0x5604b2(0x279),this[_0x5604b2(0x41f)]['asObservable']()),u(this,_0x5604b2(0x3ca),!0x1),u(this,_0x5604b2(0x2d6)),u(this,_0x5604b2(0x233)),u(this,_0x5604b2(0x292)),u(this,'_retryCount',0x0),(this['_injector']=_0x57053c,this['_localeService']=_0x44e755,this['_messageService']=_0x5d53ab,this[_0x5604b2(0x313)]=_0xc83b4c,this['_configService']=_0x2d9a0f,this[_0x5604b2(0x127)]=_0x2f9829);}get['_socket'](){const _0xac468f=_0x42f461;return this['_socket$'][_0xac468f(0x1da)]();}[_0x42f461(0x442)](){const _0xeec02e=_0x42f461;super[_0xeec02e(0x442)](),this[_0xeec02e(0x32d)][_0xeec02e(0x375)](_0xb3b3be=>_0xb3b3be[_0xeec02e(0x442)]()),this[_0xeec02e(0x32d)][_0xeec02e(0x21c)](),this[_0xeec02e(0x41f)][_0xeec02e(0x14d)]();}async[_0x42f461(0xf7)](_0x26ea12){const _0x5c6097=_0x42f461;if(this[_0x5c6097(0x32d)]['has'](_0x26ea12))return this[_0x5c6097(0x32d)][_0x5c6097(0xc0)](_0x26ea12);this[_0x5c6097(0x22c)]();const _0x45a2e5=this['_injector'][_0x5c6097(0x1ec)](exports['CollaborationSession'],_0x26ea12,this[_0x5c6097(0x26f)]['asObservable']());return this[_0x5c6097(0x32d)][_0x5c6097(0x1c4)](_0x26ea12,_0x45a2e5),_0x45a2e5;}[_0x42f461(0x470)](_0x5c5afa){const _0x1e251b=_0x42f461;var _0x3dcf2c;const _0x4cafde=this[_0x1e251b(0x32d)][_0x1e251b(0xc0)](_0x5c5afa);_0x4cafde&&(this[_0x1e251b(0x32d)][_0x1e251b(0x213)](_0x5c5afa),_0x4cafde['close']()),this[_0x1e251b(0x32d)][_0x1e251b(0x19c)]||(_0x3dcf2c=this[_0x1e251b(0x2a9)])==null||_0x3dcf2c['close']();}[_0x42f461(0xed)](){const _0x14def6=_0x42f461;var _0x31e0fb;const _0x4e9cd0=(_0x31e0fb=this[_0x14def6(0x408)][_0x14def6(0x1b4)](lt))!=null?_0x31e0fb:Bt;return this['_socketService'][_0x14def6(0x14f)](_0x4e9cd0);}['_tryEnsureSocket'](){const _0x497eb8=_0x42f461;try{const _0x589513=this[_0x497eb8(0xed)]();if(_0x589513){const _0x1d45c1=_0x589513[_0x497eb8(0x36d)];_0x589513[_0x497eb8(0x36d)]=_0x188153=>(this['_rescheduleHeartbeatEvent'](),_0x1d45c1[_0x497eb8(0x32b)](_0x589513,[_0x188153])),_0x589513[_0x497eb8(0x2dd)][_0x497eb8(0x17e)](_0x433ab2=>this[_0x497eb8(0x439)](_0x589513,_0x433ab2)),_0x589513[_0x497eb8(0x374)][_0x497eb8(0x285)](C[_0x497eb8(0x417)](0x1))[_0x497eb8(0x17e)](_0x2071c7=>this[_0x497eb8(0x313)][_0x497eb8(0x34d)]('[CollaborationSessionService]:\x20socket\x20error',_0x2071c7)),_0x589513[_0x497eb8(0x401)][_0x497eb8(0x285)](C['take'](0x1))['subscribe'](()=>{const _0x3c4d50=_0x497eb8;this[_0x3c4d50(0x40c)](_0x589513);}),_0x589513['close$'][_0x497eb8(0x285)](C[_0x497eb8(0x417)](0x1))[_0x497eb8(0x17e)](_0x430be7=>{const _0x46dced=_0x497eb8;this['_logService']['debug'](_0x46dced(0x458),_0x46dced(0x2a3),_0x430be7),this[_0x46dced(0x1a8)]();});}}catch(_0x54b85c){this['_logService'][_0x497eb8(0x34d)](_0x54b85c),this[_0x497eb8(0x1a8)]();}}[_0x42f461(0x40c)](_0x571400){const _0x568820=_0x42f461;this['_logService']['debug']('[CollaborationSessionService]','socket\x20open.'),_0x571400[_0x568820(0x36d)]({'cmd':b[_0x568820(0x14c)]}),this[_0x568820(0x202)]();}[_0x42f461(0x1a8)](){const _0x30b6ff=_0x42f461;var _0x4eb870;this[_0x30b6ff(0x41f)][_0x30b6ff(0x3b2)](0x2),this[_0x30b6ff(0x26f)][_0x30b6ff(0x3b2)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this[_0x30b6ff(0x3ca)]=!0x1,this[_0x30b6ff(0x14b)]<((_0x4eb870=this[_0x30b6ff(0x408)][_0x30b6ff(0x1b4)](Gt))!=null?_0x4eb870:Yt)?(this[_0x30b6ff(0x471)](this[_0x30b6ff(0x14b)]),this[_0x30b6ff(0x14b)]+=0x1):this['_messageService']['show']({'type':Z[_0x30b6ff(0x2ad)][_0x30b6ff(0x467)],'content':this[_0x30b6ff(0x15c)]['t']('session.connection-failed')});}[_0x42f461(0x471)](_0x4c90bc){const _0x589abd=_0x42f461;var _0x19fc72;const _0x1a23b1=((_0x19fc72=this[_0x589abd(0x408)]['getConfig'](Vt))!=null?_0x19fc72:Wt)*0x2**_0x4c90bc;this[_0x589abd(0x45c)][_0x589abd(0x20a)]({'type':Z['MessageType'][_0x589abd(0x341)],'content':this[_0x589abd(0x15c)]['t'](_0x589abd(0x2ed))}),this[_0x589abd(0x292)]=setTimeout(()=>{const _0x18ccad=_0x589abd;this['_tryEnsureSocket'](),clearTimeout(this[_0x18ccad(0x292)]),this['_retryConnectingTimer']=null;},_0x1a23b1);}[_0x42f461(0x202)](){const _0x48ebb0=_0x42f461;var _0x598a9e;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x48ebb0(0x2a4)](),(_0x598a9e=this[_0x48ebb0(0x408)][_0x48ebb0(0x1b4)](ht))!=null?_0x598a9e:Ft);}[_0x42f461(0x2a4)](){const _0x59ff71=_0x42f461;this[_0x59ff71(0x2a9)][_0x59ff71(0x36d)]({'cmd':b[_0x59ff71(0x22e)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x280e32=_0x42f461;var _0x3317b9;this[_0x280e32(0x233)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x3317b9=this[_0x280e32(0x408)]['getConfig']($e))!=null?_0x3317b9:_t);}['_onMessage'](_0x42e8ba,_0x34fc94){const _0x504b36=_0x42f461,{cmd:_0x30a5e7}=_0x34fc94;_0x30a5e7===b[_0x504b36(0x14c)]&&!this[_0x504b36(0x3ca)]&&(_0x42e8ba[_0x504b36(0x27e)]=_0x34fc94[_0x504b36(0x407)][_0x504b36(0x27e)],this['_socket$']['next'](_0x42e8ba),this[_0x504b36(0x41f)][_0x504b36(0x3b2)](0x3),this[_0x504b36(0x3ca)]=!0x0),_0x30a5e7===b[_0x504b36(0x22e)]&&this[_0x504b36(0x137)](),this[_0x504b36(0x202)]();}[_0x42f461(0x310)](){const _0x56cbed=_0x42f461;this[_0x56cbed(0x2d6)]!=null&&(clearTimeout(this[_0x56cbed(0x2d6)]),this[_0x56cbed(0x2d6)]=null);}[_0x42f461(0x137)](){const _0x1bd96f=_0x42f461;this[_0x1bd96f(0x233)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x1bd96f(0x233)]=null);}},exports[_0x42f461(0x1bd)]=mt([U(0x0,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),U(0x1,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)])),U(0x2,M[_0x42f461(0x3f8)]),U(0x3,o[_0x42f461(0x218)]),U(0x4,o['IConfigService']),U(0x5,xe)],exports[_0x42f461(0x1bd)]);var os=Object[_0x42f461(0x3c5)],as=Object[_0x42f461(0x1b1)],cs=(_0x9ede0,_0x25a2f7,_0x4856d4,_0xbdc3ad)=>{const _0x8dcc53=_0x42f461;for(var _0x139dcb=_0xbdc3ad>0x1?void 0x0:_0xbdc3ad?as(_0x25a2f7,_0x4856d4):_0x25a2f7,_0x30ce67=_0x9ede0[_0x8dcc53(0x441)]-0x1,_0x3e5dfb;_0x30ce67>=0x0;_0x30ce67--)(_0x3e5dfb=_0x9ede0[_0x30ce67])&&(_0x139dcb=(_0xbdc3ad?_0x3e5dfb(_0x25a2f7,_0x4856d4,_0x139dcb):_0x3e5dfb(_0x139dcb))||_0x139dcb);return _0xbdc3ad&&_0x139dcb&&os(_0x25a2f7,_0x4856d4,_0x139dcb),_0x139dcb;},se=(_0x1b0dd7,_0x1c2fcb)=>(_0x18a4ea,_0x40bc58)=>_0x1c2fcb(_0x18a4ea,_0x40bc58,_0x1b0dd7);exports[_0x42f461(0x3a0)]=class extends o['Disposable']{constructor(_0x324884,_0x161200,_0x56d37e,_0x216f58,_0x1127bf){const _0x4f5f14=_0x42f461;super(),u(this,'_cachedData',new Map()),u(this,_0x4f5f14(0x2d5),new Map()),u(this,_0x4f5f14(0x39c),!0x1),(this[_0x4f5f14(0x408)]=_0x324884,this[_0x4f5f14(0x3a1)]=_0x161200,this[_0x4f5f14(0x1cf)]=_0x56d37e,this['_localeService']=_0x216f58,this[_0x4f5f14(0x45b)]=_0x1127bf,this[_0x4f5f14(0x39d)]());}[_0x42f461(0x1b3)](){const _0x23e764=_0x42f461;this[_0x23e764(0x39c)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x42f461(0x442)](){const _0x161416=_0x42f461;this['exhaustSavingTask']()['then'](()=>super[_0x161416(0x442)]());}async[_0x42f461(0x42d)](_0x3a3cb5){const _0x323145=_0x42f461;return this[_0x323145(0x39c)]?null:this[_0x323145(0x3a1)][_0x323145(0xf0)](Ke(_0x3a3cb5));}async[_0x42f461(0x12b)](_0x21c382,_0x1324d0){const _0x34b77e=_0x42f461;return!!this['_localStorageService'][_0x34b77e(0xd5)](_0x21c382,_0x1324d0);}[_0x42f461(0x32e)](_0x34c38f,_0x361772,_0x2ad5b5,_0x398436){const _0x4c6d35=_0x42f461,_0x46d27a=this['_revisionService'][_0x4c6d35(0x3b0)](_0x34c38f);this[_0x4c6d35(0x161)][_0x4c6d35(0x1c4)](_0x34c38f,{'unitID':_0x34c38f,'type':_0x361772,'awaitingChangeset':_0x2ad5b5,'mutations':_0x398436,'rev':_0x46d27a}),this[_0x4c6d35(0x2d5)][_0x4c6d35(0x208)](_0x34c38f)||this[_0x4c6d35(0x1f8)](_0x34c38f);}[_0x42f461(0x1f8)](_0x28b9d6){const _0x59c6a8=_0x42f461,_0x315c02=this[_0x59c6a8(0x107)]();_0x315c02===0x0?this['_saveCache'](_0x28b9d6):this[_0x59c6a8(0x2d5)][_0x59c6a8(0x1c4)](_0x28b9d6,setTimeout(()=>this[_0x59c6a8(0x28b)](_0x28b9d6),_0x315c02));}[_0x42f461(0x107)](){const _0x27d160=_0x42f461;var _0x281853;return(_0x281853=this[_0x27d160(0x408)][_0x27d160(0x1b4)](ut))!=null?_0x281853:Kt;}[_0x42f461(0x28b)](_0x36b92a){const _0x2993b9=_0x42f461,_0x21a5c1=this[_0x2993b9(0x2d5)]['get'](_0x36b92a);return _0x21a5c1!==void 0x0&&window[_0x2993b9(0x1e7)](_0x21a5c1),this[_0x2993b9(0x3a1)]['setItem'](Ke(_0x36b92a),this[_0x2993b9(0x161)][_0x2993b9(0xc0)](_0x36b92a))['then'](()=>this[_0x2993b9(0x2d5)][_0x2993b9(0x213)](_0x36b92a));}async[_0x42f461(0x400)](){const _0x4340f9=_0x42f461,_0x323621=[];this['_saveTaskMap'][_0x4340f9(0x375)]((_0x57396f,_0x38a63e)=>{const _0x3a5a8b=_0x4340f9;window[_0x3a5a8b(0x1e7)](_0x57396f),_0x323621[_0x3a5a8b(0x302)](this[_0x3a5a8b(0x28b)](_0x38a63e)[_0x3a5a8b(0x44b)](()=>{const _0x1fb429=_0x3a5a8b;this[_0x1fb429(0x2d5)][_0x1fb429(0x213)](_0x38a63e);}));}),await Promise[_0x4340f9(0x2cd)](_0x323621);}[_0x42f461(0x39d)](){const _0x12caa3=_0x42f461;this[_0x12caa3(0x2e2)](this[_0x12caa3(0x1cf)]['registerBeforeClose'](()=>{const _0x5b65f0=_0x12caa3;if(this[_0x5b65f0(0x2d5)][_0x5b65f0(0x19c)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports['LocalCacheService']=cs([se(0x0,o['IConfigService']),se(0x1,o[_0x42f461(0x1a1)]),se(0x2,M['IBeforeCloseService']),se(0x3,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)])),se(0x4,o[_0x42f461(0x1f3)](_['RevisionService']))],exports[_0x42f461(0x3a0)]);function Ke(_0xf19074){const _0x2b98c5=_0x42f461;return _0x2b98c5(0x124)+_0xf19074;}const Ee=o[_0x42f461(0x367)](_0x42f461(0x40b));var It=(_0x50d09a=>(_0x50d09a[_0x50d09a['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x42f461(0x2a8),_0x50d09a[_0x50d09a[_0x42f461(0x322)]=0x1]=_0x42f461(0x322),_0x50d09a))(It||{});function _0x527e(_0x44394d,_0x20f8c2){const _0x360067=_0x3600();return _0x527e=function(_0x527e3f,_0x13a94f){_0x527e3f=_0x527e3f-0xb6;let _0x85141a=_0x360067[_0x527e3f];return _0x85141a;},_0x527e(_0x44394d,_0x20f8c2);}const Xe=0x7530,qe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends o['Disposable']{constructor(){const _0x31572c=_0x42f461;super(),u(this,_0x31572c(0x105),o[_0x31572c(0x11c)][_0x31572c(0x238)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0x31572c(0xeb),new Map()),u(this,'_heartbeatTimer',null),u(this,'_clearOtherTimers',new Map()),u(this,_0x31572c(0x2f0),new Map()),this[_0x31572c(0x2b4)]();}[_0x42f461(0x442)](){const _0xfeadd2=_0x42f461;super[_0xfeadd2(0x442)](),this[_0xfeadd2(0x1ea)][_0xfeadd2(0x375)]((_0x110a3b,_0x4e51bb)=>this[_0xfeadd2(0x295)](_0x4e51bb)),this['_heartbeatTimer']&&window[_0xfeadd2(0xe9)](this[_0xfeadd2(0x331)]);}[_0x42f461(0x365)](_0x59bbd0){const _0x43163f=_0x42f461;return this[_0x43163f(0x3d9)](_0x59bbd0)[_0x43163f(0x285)](v[_0x43163f(0x2b0)]());}[_0x42f461(0x136)](_0x3566fa){const _0x415a95=_0x42f461;this[_0x415a95(0x38a)]['size']===0x0&&this[_0x415a95(0x125)](),this[_0x415a95(0x38a)][_0x415a95(0x1eb)](_0x3566fa),this[_0x415a95(0x264)]({'type':0x0,'memberID':this[_0x415a95(0x105)],'unitIDs':[_0x3566fa],'isForwarded':!0x1});}[_0x42f461(0xb6)](_0x415246){const _0x2b8315=_0x42f461;this[_0x2b8315(0x38a)][_0x2b8315(0x213)](_0x415246),this[_0x2b8315(0x38a)][_0x2b8315(0x19c)]===0x0&&this[_0x2b8315(0x331)]&&window[_0x2b8315(0xe9)](this['_heartbeatTimer']);}[_0x42f461(0x2b4)](){const _0x4b2335=_0x42f461;this[_0x4b2335(0x2e2)](o['toDisposable'](v[_0x4b2335(0x3dc)](window,_0x4b2335(0xe8))['subscribe'](_0x58f739=>{const _0xf9d0c6=_0x4b2335;if(_0x58f739[_0xf9d0c6(0x3be)]!==qe||!_0x58f739[_0xf9d0c6(0xe0)])return;const _0x4bc777=JSON[_0xf9d0c6(0x23c)](_0x58f739[_0xf9d0c6(0xe0)]);this[_0xf9d0c6(0x380)](_0x4bc777);}))),window[_0x4b2335(0x361)](_0x4b2335(0x104),()=>this['_send']({'type':0x1,'memberID':this[_0x4b2335(0x105)],'unitIDs':Array[_0x4b2335(0x10a)](this[_0x4b2335(0x38a)])}));}[_0x42f461(0x380)](_0x48b324){const _0xa3f8fa=_0x42f461;switch(_0x48b324[_0xa3f8fa(0x3b1)]){case 0x0:this['_handleJoinEvent'](_0x48b324);break;case 0x1:this[_0xa3f8fa(0x201)](_0x48b324);break;case 0x2:this[_0xa3f8fa(0x103)](_0x48b324);break;}}[_0x42f461(0x1ad)](_0x75be4f){const _0x14c3a1=_0x42f461,{unitIDs:_0x355dcb,memberID:_0x547529,isForwarded:_0x181cfb}=_0x75be4f;_0x355dcb[_0x14c3a1(0x375)](_0x152ea0=>{const _0x86a71d=_0x14c3a1;if(!_0x181cfb&&this[_0x86a71d(0xeb)][_0x86a71d(0x208)](_0x152ea0)&&this[_0x86a71d(0x3d9)](_0x152ea0)[_0x86a71d(0x3b2)](0x1),!this['_unitOnClients'][_0x86a71d(0x208)](_0x152ea0)||!this[_0x86a71d(0xeb)][_0x86a71d(0xc0)](_0x152ea0)['has'](_0x547529)){const _0x34c027=this[_0x86a71d(0xeb)][_0x86a71d(0xc0)](_0x152ea0)||new Set();_0x34c027[_0x86a71d(0x1eb)](_0x547529),this['_unitOnClients'][_0x86a71d(0x1c4)](_0x152ea0,_0x34c027),this[_0x86a71d(0x3c8)](_0x547529);}}),_0x181cfb||this['_send']({'type':0x0,'memberID':this[_0x14c3a1(0x105)],'unitIDs':[...this[_0x14c3a1(0x38a)]],'isForwarded':!0x0});}[_0x42f461(0x3c8)](_0x201520){const _0x4fbe1f=_0x42f461;this['_removeClearOtherTimer'](_0x201520);const _0x2dd4f0=window['setTimeout'](()=>{const _0x308f88=_0x527e;this['_unitOnClients'][_0x308f88(0x375)](_0x5acfdb=>{const _0x1338ef=_0x308f88;_0x5acfdb[_0x1338ef(0x213)](_0x201520);});},Xe*0x2);this[_0x4fbe1f(0x1ea)][_0x4fbe1f(0x1c4)](_0x201520,_0x2dd4f0);}[_0x42f461(0x295)](_0x48dd40){const _0x45a6c8=_0x42f461;if(this[_0x45a6c8(0x1ea)][_0x45a6c8(0x208)](_0x48dd40)){const _0x5631b4=this[_0x45a6c8(0x1ea)]['get'](_0x48dd40);_0x5631b4&&window['clearTimeout'](_0x5631b4),this['_clearOtherTimers']['set'](_0x48dd40,null);}}[_0x42f461(0x201)](_0x57a1f7){const _0x3db76b=_0x42f461,{memberID:_0x58c895,unitIDs:_0x1da4e0}=_0x57a1f7;_0x1da4e0[_0x3db76b(0x375)](_0xe06e50=>{const _0x5d111d=_0x3db76b;var _0x4d50f6;const _0x3e11b5=this[_0x5d111d(0xeb)][_0x5d111d(0xc0)](_0xe06e50);_0x3e11b5&&(_0x3e11b5['delete'](_0x58c895),(_0x4d50f6=this[_0x5d111d(0x3d9)](_0xe06e50))==null||_0x4d50f6[_0x5d111d(0x3b2)](_0x3e11b5['size']===0x0?0x0:0x1));}),this[_0x3db76b(0x295)](_0x58c895);}[_0x42f461(0x103)](_0x4c3cb6){const _0x51f2cb=_0x42f461;this['_scheduleClearOtherTimer'](_0x4c3cb6[_0x51f2cb(0x27e)]);}[_0x42f461(0x264)](_0x5ce64a){const _0x1c24e2=_0x42f461;localStorage[_0x1c24e2(0xd5)](qe,JSON['stringify'](_0x5ce64a));}[_0x42f461(0x125)](){const _0x128e39=_0x42f461;this[_0x128e39(0x331)]=window[_0x128e39(0x1c8)](()=>{const _0x2534c2=_0x128e39;this[_0x2534c2(0x264)]({'type':0x2,'memberID':this[_0x2534c2(0x105)]});},Xe);}[_0x42f461(0x3d9)](_0x4e50e9){const _0x5e42cd=_0x42f461;return this[_0x5e42cd(0x2f0)][_0x5e42cd(0x208)](_0x4e50e9)||this['_unitStatus'][_0x5e42cd(0x1c4)](_0x4e50e9,new v['BehaviorSubject'](0x0)),this[_0x5e42cd(0x2f0)]['get'](_0x4e50e9);}}var hs=Object[_0x42f461(0x3c5)],_s=Object[_0x42f461(0x1b1)],us=(_0x2da98f,_0x31672f,_0x39ca5b,_0x3b4c3e)=>{const _0x4d5e59=_0x42f461;for(var _0x3af4ef=_0x3b4c3e>0x1?void 0x0:_0x3b4c3e?_s(_0x31672f,_0x39ca5b):_0x31672f,_0x22dc3a=_0x2da98f[_0x4d5e59(0x441)]-0x1,_0x2dc28f;_0x22dc3a>=0x0;_0x22dc3a--)(_0x2dc28f=_0x2da98f[_0x22dc3a])&&(_0x3af4ef=(_0x3b4c3e?_0x2dc28f(_0x31672f,_0x39ca5b,_0x3af4ef):_0x2dc28f(_0x3af4ef))||_0x3af4ef);return _0x3b4c3e&&_0x3af4ef&&hs(_0x31672f,_0x39ca5b,_0x3af4ef),_0x3af4ef;},Je=(_0x5debd9,_0xfc09bd)=>(_0x23730a,_0x582b5b)=>_0xfc09bd(_0x23730a,_0x582b5b,_0x5debd9);let ge=class{constructor(_0x340741,_0x40f100){const _0x8894bf=_0x42f461;this[_0x8894bf(0x16e)]=_0x340741,this[_0x8894bf(0x269)]=_0x40f100;}[_0x42f461(0x1c1)](_0x381178){const _0x3c875d=_0x42f461;this[_0x3c875d(0x13c)](_0x381178),this[_0x3c875d(0x47d)](_0x381178);}[_0x42f461(0x17d)](_0xbadd8){const _0x4adf98=_0x42f461,_0x79554e=this[_0x4adf98(0x16e)][_0x4adf98(0xc0)](L[_0x4adf98(0x165)]),{redoCache:_0x1a34be}=_0x79554e['getUndoRedoMutationParamsCache']();if(_0x1a34be[_0x4adf98(0x441)]===0x0)return _0xbadd8;let _0x226cff=o[_0x4adf98(0x11c)][_0x4adf98(0x368)](_0xbadd8[_0x4adf98(0x132)][0x0]);for(let _0x42c168=0x0;_0x42c168<_0x1a34be[_0x4adf98(0x441)];_0x42c168++){const _0x55d2e4={'id':_0x4adf98(0x30a),'params':{..._0x1a34be[_0x42c168]}},_0x59da53=this['_transformService'][_0x4adf98(0x129)](_0x226cff,_0x55d2e4,!0x1);if(_['isTransformMutationFailure'](_0x59da53))throw _0x59da53[_0x4adf98(0x34d)];_0x226cff=_0x59da53[_0x4adf98(0x39e)];}return{...o['Tools'][_0x4adf98(0x368)](_0xbadd8),'mutations':[_0x226cff]};}[_0x42f461(0x13c)](_0x166ae2){const _0x11aed2=_0x42f461,_0x54f1a1=this[_0x11aed2(0x16e)]['get'](L[_0x11aed2(0x165)]),{undoCache:_0x433a8f,redoCache:_0x20ac2c}=_0x54f1a1['getUndoRedoMutationParamsCache']();if(_0x433a8f['length']===0x0||_0x20ac2c[_0x11aed2(0x441)]===0x0)return;const _0x347197=[],_0x3b78e1=[];let _0x58a6b3=o[_0x11aed2(0x11c)][_0x11aed2(0x368)](_0x166ae2['mutations'][0x0]),_0x14dee4=o[_0x11aed2(0x11c)][_0x11aed2(0x368)](_0x166ae2[_0x11aed2(0x132)][0x0]);for(let _0x45c07d=_0x433a8f[_0x11aed2(0x441)]-0x1;_0x45c07d>=0x0;_0x45c07d--){const _0x5dcf70={'id':_0x11aed2(0x30a),'params':{..._0x433a8f[_0x45c07d]}},_0x33d9b9={'id':'doc.mutation.rich-text-editing','params':{..._0x20ac2c[_0x45c07d]}},_0x357d1c=this['_transformService'][_0x11aed2(0x129)](_0x58a6b3,_0x5dcf70,!0x1),_0x1cb300=this[_0x11aed2(0x269)][_0x11aed2(0x129)](_0x14dee4,_0x33d9b9,!0x1);if(_[_0x11aed2(0x164)](_0x357d1c))throw _0x357d1c['error'];if(_[_0x11aed2(0x164)](_0x1cb300))throw _0x1cb300[_0x11aed2(0x34d)];_0x347197[_0x11aed2(0x1f1)](_0x357d1c[_0x11aed2(0x166)][_0x11aed2(0x2ec)]),_0x3b78e1[_0x11aed2(0x1f1)](_0x1cb300[_0x11aed2(0x166)][_0x11aed2(0x2ec)]),_0x58a6b3=_0x357d1c[_0x11aed2(0x39e)],_0x14dee4=_0x1cb300['m1Prime'];}_0x54f1a1['setUndoRedoMutationParamsCache']({'undoCache':_0x347197,'redoCache':_0x3b78e1});}[_0x42f461(0x47d)](_0x34607c){const _0x18b3a2=_0x42f461,_0x247e00=this[_0x18b3a2(0x16e)][_0x18b3a2(0xc0)](L[_0x18b3a2(0x165)]),_0x3cd6cf=_0x247e00[_0x18b3a2(0x120)]();if(_0x3cd6cf==null)return;const _0x25fd31=[{'id':_0x18b3a2(0x30a),'params':{'unitId':_0x34607c[_0x18b3a2(0x33c)],'actions':null,'textRanges':[_0x3cd6cf]}}],_0x11e563=this[_0x18b3a2(0x269)]['transformMutationsWithChangeset'](_0x34607c,_0x25fd31);if(!_[_0x18b3a2(0xc9)](_0x11e563))throw _0x11e563[_0x18b3a2(0x34d)];const _0x4bf65b=_0x11e563[_0x18b3a2(0x166)][0x0][_0x18b3a2(0x2ec)]['textRanges'];Array['isArray'](_0x4bf65b)&&_0x4bf65b[_0x18b3a2(0x441)]&&_0x247e00[_0x18b3a2(0x260)](_0x4bf65b[0x0]);}};ge=us([Je(0x0,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),Je(0x1,_[_0x42f461(0x37b)])],ge);var ds=Object[_0x42f461(0x3c5)],Ss=Object[_0x42f461(0x1b1)],vs=(_0x467fe4,_0x4ab29e,_0x3a447f,_0x58d757)=>{for(var _0x531d14=_0x58d757>0x1?void 0x0:_0x58d757?Ss(_0x4ab29e,_0x3a447f):_0x4ab29e,_0x123a4a=_0x467fe4['length']-0x1,_0x2b8f3e;_0x123a4a>=0x0;_0x123a4a--)(_0x2b8f3e=_0x467fe4[_0x123a4a])&&(_0x531d14=(_0x58d757?_0x2b8f3e(_0x4ab29e,_0x3a447f,_0x531d14):_0x2b8f3e(_0x531d14))||_0x531d14);return _0x58d757&&_0x531d14&&ds(_0x4ab29e,_0x3a447f,_0x531d14),_0x531d14;},ze=(_0x3102fa,_0x23adbc)=>(_0x2854aa,_0x591895)=>_0x23adbc(_0x2854aa,_0x591895,_0x3102fa);let fe=class{constructor(_0x57743a,_0x433829){const _0x27346e=_0x42f461;this[_0x27346e(0x16e)]=_0x57743a,this[_0x27346e(0x269)]=_0x433829;}['transformSelections'](_0x55ade3){const _0x16042e=_0x42f461;var _0x41013f;const _0x3baa15=this[_0x16042e(0x16e)][_0x16042e(0xc0)](L['TextSelectionManagerService']),_0x16f157=(_0x41013f=_0x3baa15[_0x16042e(0x2c9)]())!=null?_0x41013f:[],_0xd3d6ea=_0x16f157==null?void 0x0:_0x16f157['map'](L[_0x16042e(0x14e)]);if(_0xd3d6ea[_0x16042e(0x441)]===0x0)return;const _0x1d5166=[{'id':_0x16042e(0x30a),'params':{'unitId':_0x55ade3[_0x16042e(0x33c)],'actions':null,'textRanges':_0xd3d6ea}}],_0x82841f=this['_transformService'][_0x16042e(0x431)](_0x55ade3,_0x1d5166);if(!_[_0x16042e(0xc9)](_0x82841f))throw _0x82841f['error'];const _0x107e75=_0x82841f[_0x16042e(0x166)][0x0][_0x16042e(0x2ec)]['textRanges'];Array[_0x16042e(0xb7)](_0x107e75)&&_0x107e75[_0x16042e(0x441)]&&_0x3baa15['replaceTextRanges'](_0x107e75,!0x1);}};fe=vs([ze(0x0,o['Inject'](o[_0x42f461(0x13e)])),ze(0x1,_[_0x42f461(0x37b)])],fe);function pt(_0x5db27b){const _0xa3b777=_0x42f461;let _0xf07f4d='';for(const _0x53e9c6 of _0x5db27b){const {startOffset:_0x1de625,endOffset:_0x32f158,isActive:_0x40aaf5}=_0x53e9c6;_0xf07f4d[_0xa3b777(0x441)]&&(_0xf07f4d+=','),_0xf07f4d+=_0x1de625+':'+_0x32f158+':'+(_0x40aaf5?'1':'0');}return _0xf07f4d;}function gs(_0x174587){const _0x505fa4=_0x42f461,_0x3efe9f=_0x174587[_0x505fa4(0x3a5)](','),_0x1098a4=[];for(const _0x202049 of _0x3efe9f){const [_0x42a780,_0x5748fe,_0x3b338e]=_0x202049[_0x505fa4(0x3a5)](':');_0x1098a4[_0x505fa4(0x302)]({'startOffset':Number(_0x42a780),'endOffset':Number(_0x5748fe),'collapsed':_0x42a780===_0x5748fe,'isActive':_0x3b338e==='1'});}return _0x1098a4['some'](_0x16a73d=>_0x16a73d[_0x505fa4(0x2d0)])||(_0x1098a4[0x0][_0x505fa4(0x2d0)]=!0x0),_0x1098a4;}class Be extends o[_0x42f461(0x451)]{constructor(){const _0x41a0bb=_0x42f461;super(...arguments),u(this,_0x41a0bb(0x403),new v[(_0x41a0bb(0x151))](null)),u(this,_0x41a0bb(0x3c0),this[_0x41a0bb(0x403)][_0x41a0bb(0xbc)]());}[_0x42f461(0x2b1)](_0xd8fa10){const _0x354e89=_0x42f461,{unitID:_0x5490a7,memberID:_0x4f49ab,textRanges:_0x1bb371}=_0xd8fa10,_0x3c5cc7=pt(_0x1bb371),_0x27f314={'unitID':_0x5490a7,'memberID':_0x4f49ab,'selection':_0x3c5cc7};this[_0x354e89(0x403)][_0x354e89(0x3b2)](_0x27f314);}}var fs=Object[_0x42f461(0x3c5)],ms=Object[_0x42f461(0x1b1)],Is=(_0x1c3454,_0x35e481,_0xb86a11,_0x3ef481)=>{const _0x2f0d1d=_0x42f461;for(var _0x1d78bf=_0x3ef481>0x1?void 0x0:_0x3ef481?ms(_0x35e481,_0xb86a11):_0x35e481,_0x20a5b6=_0x1c3454[_0x2f0d1d(0x441)]-0x1,_0x249e2b;_0x20a5b6>=0x0;_0x20a5b6--)(_0x249e2b=_0x1c3454[_0x20a5b6])&&(_0x1d78bf=(_0x3ef481?_0x249e2b(_0x35e481,_0xb86a11,_0x1d78bf):_0x249e2b(_0x1d78bf))||_0x1d78bf);return _0x3ef481&&_0x1d78bf&&fs(_0x35e481,_0xb86a11,_0x1d78bf),_0x1d78bf;},Ze=(_0x4df353,_0x3898eb)=>(_0x4d7374,_0xfa1fc1)=>_0x3898eb(_0x4d7374,_0xfa1fc1,_0x4df353);function ps(_0x546d37){const _0x1debc8=_0x42f461,{unitID:_0xa2133b,mutations:_0x20d581}=_0x546d37;return{'unitId':_0xa2133b,'subUnitId':_0x20d581[0x0][_0x1debc8(0x2ec)]['subUnitId']};}let me=class{constructor(_0x1efb17,_0x48daa1){const _0x429bd1=_0x42f461;this[_0x429bd1(0x16e)]=_0x1efb17,this[_0x429bd1(0x269)]=_0x48daa1;}[_0x42f461(0x41e)](_0x26e884){const _0x41ca40=_0x42f461;var _0x54f7f0,_0xf47d9,_0x34280e;const _0x3ee3b5=this['_injector'][_0x41ca40(0xc0)](p[_0x41ca40(0x421)]),{unitId:_0x3b3f95,subUnitId:_0xf109e6}=ps(_0x26e884),_0x13e01e=_0x3ee3b5['getWorkbookSelections'](_0x3b3f95)['getCurrentSelections']();if(_0x13e01e[_0x41ca40(0x441)]===0x0||!_0x3b3f95||!_0xf109e6)return;const _0x2e674b=[{'id':p[_0x41ca40(0x43e)]['id'],'params':{'unitId':_0x3b3f95,'subUnitId':_0xf109e6,'selections':o['Tools'][_0x41ca40(0x368)](_0x13e01e)}}],_0xf8c7ae=this['_transformService']['transformMutationsWithChangeset'](_0x26e884,_0x2e674b);if(!_[_0x41ca40(0xc9)](_0xf8c7ae))throw _0xf8c7ae[_0x41ca40(0x34d)];const _0x2c8249=(_0x34280e=(_0xf47d9=(_0x54f7f0=_0xf8c7ae[_0x41ca40(0x166)][0x0])==null?void 0x0:_0x54f7f0[_0x41ca40(0x2ec)])==null?void 0x0:_0xf47d9[_0x41ca40(0x1c0)])!=null?_0x34280e:_0x13e01e;Array[_0x41ca40(0xb7)](_0x2c8249)&&_0x2c8249[_0x41ca40(0x441)]&&this[_0x41ca40(0x16e)][_0x41ca40(0xc0)](o[_0x41ca40(0xff)])['executeCommand'](p[_0x41ca40(0x43e)]['id'],{'unitId':_0x3b3f95,'subUnitId':_0xf109e6,'selections':_0x2c8249});}};me=Is([Ze(0x0,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),Ze(0x1,_[_0x42f461(0x37b)])],me);const Es=new Set([p[_0x42f461(0x298)]['id']]);function Cs(_0x27e9f,_0xd8021c,_0x240180,_0x2a90a9,_0x34c8f9){const _0xfbd26e=_0x42f461;var _0x2f3ca8,_0x9ab7da,_0x249656,_0x4e54d1;const _0x1f672f=[];for(const _0x13f876 of _0x27e9f)if(Es[_0xfbd26e(0x208)](_0x13f876['id'])){if(_0x1f672f[_0xfbd26e(0x441)]>0x0)break;_0x1f672f[_0xfbd26e(0x302)](_0x13f876);break;}else _0x1f672f[_0xfbd26e(0x302)](_0x13f876);const _0xa20f39=(_0x9ab7da=(_0x2f3ca8=_0x34c8f9['getCurrentUser']())==null?void 0x0:_0x2f3ca8[_0xfbd26e(0x223)])!=null?_0x9ab7da:_0xfbd26e(0x47c),_0x1c6191=(_0x4e54d1=(_0x249656=_0x34c8f9[_0xfbd26e(0x119)]())==null?void 0x0:_0x249656['memberID'])!=null?_0x4e54d1:'unknown';return{'changeset':{'unitID':_0xd8021c,'type':_[_0xfbd26e(0x2f7)](_0x240180[_0xfbd26e(0x40a)](_0xd8021c)),'baseRev':_0x2a90a9['getCurrentRevForDocument'](_0xd8021c),'revision':0x0,'userID':_0xa20f39,'memberID':_0x1c6191,'mutations':_0x1f672f},'pendingMutations':_0x27e9f['slice'](_0x1f672f[_0xfbd26e(0x441)])};}function bs(_0x470692,_0x20a59c,_0x223456,_0x383d34,_0x2e5b94){const _0x4e0f57=_0x42f461;var _0x481299,_0x2deafb,_0x5f23ef,_0x309a75;const _0x2ef674=[_0x470692[_0x4e0f57(0x3fc)]((_0x224095,_0x5ff14d)=>{const _0x495315=_0x4e0f57;var _0x815f3e;const {id:_0x4f6ef4}=_0x224095,{id:_0x2ee833,type:_0x334962}=_0x5ff14d,_0x1cd786=(_0x815f3e=_0x224095[_0x495315(0x2ec)])!=null?_0x815f3e:{'actions':null},_0x338065=_0x5ff14d['params'];if(_0x4f6ef4&&_0x4f6ef4!==_0x2ee833)throw new Error(_0x495315(0x377)+_0x4f6ef4+_0x495315(0x2f2)+_0x2ee833+'.');return{..._0x224095,'id':_0x2ee833,'type':_0x334962,'params':{'unitId':_0x338065[_0x495315(0xc4)],'textRanges':_0x338065[_0x495315(0x30f)],'actions':o['JSONX'][_0x495315(0x1c6)](_0x1cd786['actions'],_0x338065[_0x495315(0x42c)])}};},{})],_0x540c17=(_0x2deafb=(_0x481299=_0x2e5b94[_0x4e0f57(0x119)]())==null?void 0x0:_0x481299['userID'])!=null?_0x2deafb:_0x4e0f57(0x47c),_0x258573=(_0x309a75=(_0x5f23ef=_0x2e5b94[_0x4e0f57(0x119)]())==null?void 0x0:_0x5f23ef[_0x4e0f57(0x27e)])!=null?_0x309a75:_0x4e0f57(0x47c);return{'changeset':{'unitID':_0x20a59c,'type':_[_0x4e0f57(0x2f7)](_0x223456[_0x4e0f57(0x40a)](_0x20a59c)),'baseRev':_0x383d34[_0x4e0f57(0x3b0)](_0x20a59c),'revision':0x0,'userID':_0x540c17,'memberID':_0x258573,'mutations':_0x2ef674},'pendingMutations':[]};}var Ts=Object['defineProperty'],Rs=Object[_0x42f461(0x1b1)],Y=(_0x5dbee2,_0x10023a,_0x29a45e,_0x26125a)=>{const _0x9d566e=_0x42f461;for(var _0x32a1d7=_0x26125a>0x1?void 0x0:_0x26125a?Rs(_0x10023a,_0x29a45e):_0x10023a,_0x5566a0=_0x5dbee2[_0x9d566e(0x441)]-0x1,_0x77eff0;_0x5566a0>=0x0;_0x5566a0--)(_0x77eff0=_0x5dbee2[_0x5566a0])&&(_0x32a1d7=(_0x26125a?_0x77eff0(_0x10023a,_0x29a45e,_0x32a1d7):_0x77eff0(_0x32a1d7))||_0x32a1d7);return _0x26125a&&_0x32a1d7&&Ts(_0x10023a,_0x29a45e,_0x32a1d7),_0x32a1d7;},g=(_0xd45b51,_0xb45612)=>(_0x3a3eb3,_0x4d51da)=>_0xb45612(_0x3a3eb3,_0x4d51da,_0xd45b51),D=(_0x8545b=>(_0x8545b[_0x42f461(0x2ea)]='not_collab',_0x8545b[_0x42f461(0x477)]=_0x42f461(0x37f),_0x8545b[_0x42f461(0x483)]=_0x42f461(0x12d),_0x8545b[_0x42f461(0x1d1)]=_0x42f461(0x418),_0x8545b[_0x42f461(0x31c)]=_0x42f461(0x42e),_0x8545b['FETCH_MISS']='fetch_missing',_0x8545b['CONFLICT']=_0x42f461(0x1fc),_0x8545b[_0x42f461(0x187)]=_0x42f461(0xd9),_0x8545b))(D||{});class K{constructor(_0x319b4c,_0x495228,_0x2002e4,_0x29c8cd,_0x382425,_0xd68a4b,_0x80013b,_0x529fbd,_0x3062d3){const _0x2c49ce=_0x42f461;u(this,'_awaitingChangeset',null),u(this,'_pendingMutations',[]),(this[_0x2c49ce(0x33c)]=_0x319b4c,this['type']=_0x495228,this[_0x2c49ce(0x348)]=_0x382425,this[_0x2c49ce(0x28d)]=_0xd68a4b,this[_0x2c49ce(0x45e)]=_0x80013b,this[_0x2c49ce(0x45b)]=_0x529fbd,this[_0x2c49ce(0x19f)]=_0x3062d3,this[_0x2c49ce(0x28f)]=_0x2002e4,this['_pendingMutations']=_0x29c8cd);}['_checkMissing'](_0x5a90e1){const _0x2a8f35=_0x42f461,_0xcfb9a8=this[_0x2a8f35(0x45b)][_0x2a8f35(0x3b0)](this['unitID']);return _0x5a90e1['revision']>_0xcfb9a8+0x1?(this[_0x2a8f35(0x348)][_0x2a8f35(0x242)]({'from':_0xcfb9a8,'to':_0x5a90e1[_0x2a8f35(0x1ba)]-0x1}),!0x0):!0x1;}[_0x42f461(0x29b)](_0x5a9634){const _0x893403=_0x42f461;this[_0x893403(0x45e)][_0x893403(0x210)](this[_0x893403(0x33c)],_0x5a9634);}[_0x42f461(0x317)](_0x58c9f5){const _0x510ee4=_0x42f461;var _0x421e63,_0x4c5ce7;(_0x4c5ce7=(_0x421e63=this[_0x510ee4(0x348)])[_0x510ee4(0x154)])==null||_0x4c5ce7['call'](_0x421e63,_0x58c9f5);}[_0x42f461(0x19e)](_0x17d0fd){const _0x3d4b00=_0x42f461;var _0xfb0536,_0x18a5b4;return(_0x18a5b4=(_0xfb0536=this[_0x3d4b00(0x348)])[_0x3d4b00(0x196)])==null?void 0x0:_0x18a5b4[_0x3d4b00(0x356)](_0xfb0536,_0x17d0fd);}[_0x42f461(0x270)](_0x4b7059){const _0xe51532=_0x42f461;var _0x52280e,_0xe34fed,_0x5dbbdb;return(_0x5dbbdb=(_0xe34fed=(_0x52280e=this[_0xe51532(0x348)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xe34fed[_0xe51532(0x356)](_0x52280e,_0x4b7059))!=null?_0x5dbbdb:_0x4b7059;}[_0x42f461(0x1bf)](_0x502da0){const _0x5b16f6=_0x42f461;var _0x43fb4b,_0x4479db;if(this[_0x5b16f6(0x3b1)]===A[_0x5b16f6(0x46d)]){const {unitID:_0x1b0099,mutations:_0x1381e8,memberID:_0x3a7bfe}=_0x502da0,_0x4a46d6=_0x1381e8[0x0][_0x5b16f6(0x2ec)]['textRanges'];Array[_0x5b16f6(0xb7)](_0x4a46d6)&&_0x4a46d6[_0x5b16f6(0x441)]>0x0&&((_0x4479db=(_0x43fb4b=this[_0x5b16f6(0x348)])[_0x5b16f6(0x388)])==null||_0x4479db[_0x5b16f6(0x356)](_0x43fb4b,{'unitID':_0x1b0099,'memberID':_0x3a7bfe,'textRanges':_0x4a46d6}));}}['_updateLocalCache'](){const _0x1d5a28=_0x42f461;this[_0x1d5a28(0x19f)][_0x1d5a28(0x32e)](this[_0x1d5a28(0x33c)],this[_0x1d5a28(0x3b1)],this['_awaitingChangeset'],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x51f99d=_0x42f461;return this['_revisionService']['getCurrentRevForDocument'](this[_0x51f99d(0x33c)]);}[_0x42f461(0x1fb)](){const _0x309c31=_0x42f461;this['_revisionService'][_0x309c31(0x17c)](this['unitID']);}[_0x42f461(0x126)](_0x231660){const _0x3a0834=_0x42f461;var _0x17f25e;const _0x11eeb3=this[_0x3a0834(0x270)](_0x231660),_0x2e684b=o['sequenceExecute'](_0x11eeb3[_0x3a0834(0x132)],this[_0x3a0834(0x28d)],{'fromCollab':!0x0});if(!_0x2e684b[_0x3a0834(0x419)])throw _0x2e684b[_0x3a0834(0x34d)]instanceof Error?_0x2e684b[_0x3a0834(0x34d)]:new Error((_0x17f25e=_0x2e684b[_0x3a0834(0x34d)])!=null?_0x17f25e:_0x3a0834(0x11d));this[_0x3a0834(0x19e)](_0x11eeb3),this[_0x3a0834(0x29b)](_0x231660),this[_0x3a0834(0x317)](_0x11eeb3),this[_0x3a0834(0x1bf)](_0x11eeb3),this['_incrementRevisionNumber']();}}let ae=class extends K{constructor(_0x4a65cf,_0x1408a6,_0x5619b4,_0x7a8fa3,_0x52d214,_0xa53018,_0x243f11,_0x146387,_0x4244fc){const _0x58c48e=_0x42f461;super(_0x4a65cf,_0x1408a6,null,[],_0x5619b4,_0x146387,_0x243f11,_0x7a8fa3,_0x52d214),u(this,_0x58c48e(0x3bd),_0x58c48e(0x37f)),(this[_0x58c48e(0x16e)]=_0xa53018,this['_logService']=_0x4244fc);}[_0x42f461(0x219)](_0x5970f1){const _0x56ec00=_0x42f461,_0x1996bd=this[_0x56ec00(0x16e)][_0x56ec00(0x1ec)](j,this[_0x56ec00(0x33c)],this[_0x56ec00(0x3b1)],[_0x5970f1],this[_0x56ec00(0x348)]);return _0x1996bd[_0x56ec00(0x282)](),_0x1996bd[_0x56ec00(0x47f)](),_0x1996bd;}[_0x42f461(0x370)](_0x5d31f6){const _0x1c8fd0=_0x42f461;if(this[_0x1c8fd0(0x176)](_0x5d31f6))return this[_0x1c8fd0(0x16e)][_0x1c8fd0(0x1ec)](H,this['unitID'],this[_0x1c8fd0(0x3b1)],null,[],null,[_0x5d31f6],this[_0x1c8fd0(0x348)]);try{return this[_0x1c8fd0(0x126)](_0x5d31f6),this;}catch(_0xb8d477){return this[_0x1c8fd0(0x313)][_0x1c8fd0(0x34d)](_0x1c8fd0(0x3bb),_0xb8d477),this;}}['onRemoteAck'](){const _0x29b1d3=_0x42f461;throw new Error(_0x29b1d3(0x2e5));}[_0x42f461(0x2af)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x42f461(0xe4)](){const _0xa66c25=_0x42f461;return this[_0xa66c25(0x16e)]['createInstance'](k,this['unitID'],this[_0xa66c25(0x3b1)],null,[],this[_0xa66c25(0x348)]);}[_0x42f461(0x240)](){return this;}[_0x42f461(0x3e8)](){const _0x57be14=_0x42f461;throw new Error(_0x57be14(0x2ca));}};ae=Y([g(0x3,o['Inject'](_[_0x42f461(0x482)])),g(0x4,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),g(0x5,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),g(0x6,o[_0x42f461(0xcf)]),g(0x7,o[_0x42f461(0xff)]),g(0x8,o[_0x42f461(0x218)])],ae);let j=class extends K{constructor(_0x9d7bcb,_0x2d016d,_0x171347,_0x314bd2,_0x31c279,_0xfd80b,_0x1e1f74,_0x3f7cb6,_0x52d0b8,_0x316f30,_0x4a59e6,_0x3038f3,_0x1a7cd3,_0x2925af){const _0x280e91=_0x42f461;super(_0x9d7bcb,_0x2d016d,null,_0x171347,_0x314bd2,_0x316f30,_0x2925af,_0xfd80b,_0x1e1f74),u(this,_0x280e91(0x3bd),_0x280e91(0x12d)),u(this,_0x280e91(0x3f5),null),u(this,'_sendingTimer',null),(this[_0x280e91(0x16e)]=_0x31c279,this[_0x280e91(0x2d2)]=_0x3f7cb6,this[_0x280e91(0x313)]=_0x52d0b8,this[_0x280e91(0x408)]=_0x4a59e6,this[_0x280e91(0x269)]=_0x3038f3,this[_0x280e91(0x3c1)]=_0x1a7cd3);}[_0x42f461(0x219)](_0x5aa5ae){const _0x5247ed=_0x42f461;return this[_0x5247ed(0xe6)]['push'](_0x5aa5ae),this[_0x5247ed(0x47f)](),this;}[_0x42f461(0x370)](_0x4234b9){const _0x4cf2cd=_0x42f461;if(this[_0x4cf2cd(0x176)](_0x4234b9))return this[_0x4cf2cd(0x3a6)](),this[_0x4cf2cd(0x16e)][_0x4cf2cd(0x1ec)](H,this['unitID'],this[_0x4cf2cd(0x3b1)],null,this[_0x4cf2cd(0xe6)],null,[_0x4234b9],this[_0x4cf2cd(0x348)]);try{const _0x22037b=this[_0x4cf2cd(0x269)][_0x4cf2cd(0x431)](_0x4234b9,this[_0x4cf2cd(0xe6)]);if(_[_0x4cf2cd(0xc9)](_0x22037b)){const {c1Prime:_0x517259,m2Prime:_0x598137}=_0x22037b;this[_0x4cf2cd(0x126)](_0x517259);const _0x5029fd=this['_injector']['createInstance'](j,this[_0x4cf2cd(0x33c)],this[_0x4cf2cd(0x3b1)],_0x598137,this['_handler']);return this[_0x4cf2cd(0x3a6)](),_0x5029fd[_0x4cf2cd(0x282)](this['_scheduleTimestamp']?Math[_0x4cf2cd(0x200)](0x0,new Date()['getTime']()-this[_0x4cf2cd(0x3f5)]):this[_0x4cf2cd(0x2be)]()),_0x5029fd;}throw _0x22037b[_0x4cf2cd(0x34d)];}catch(_0x263551){return this[_0x4cf2cd(0x313)]['error'](_0x263551),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x5c30da=_0x42f461;throw new Error(_0x5c30da(0x19d));}[_0x42f461(0x2af)](){const _0x98d560=_0x42f461;throw new Error(_0x98d560(0x430));}[_0x42f461(0xe4)](){const _0x267613=_0x42f461;return this[_0x267613(0x3a6)](),this[_0x267613(0x16e)][_0x267613(0x1ec)](k,this[_0x267613(0x33c)],this['type'],null,this[_0x267613(0xe6)],this[_0x267613(0x348)]);}['toggleOnline'](){return this;}['_schedule'](_0x4a6049){const _0x42675a=_0x42f461;_0x4a6049=_0x4a6049!=null?_0x4a6049:this['_getSendChangesetTimeout'](),this[_0x42675a(0x3f5)]=new Date()['getTime'](),this[_0x42675a(0x459)]=setTimeout(()=>{const _0x1d3666=_0x42675a;this['_clearScheduledTask']();let _0x43f89d=null;switch(this['type']){case A['UNIVER_SHEET']:{_0x43f89d=Cs(this[_0x1d3666(0xe6)],this[_0x1d3666(0x33c)],this[_0x1d3666(0x3c1)],this[_0x1d3666(0x45b)],this[_0x1d3666(0x2d2)]);break;}case A[_0x1d3666(0x46d)]:{_0x43f89d=bs(this[_0x1d3666(0xe6)],this[_0x1d3666(0x33c)],this[_0x1d3666(0x3c1)],this['_revisionService'],this[_0x1d3666(0x2d2)]);break;}default:throw new Error(_0x1d3666(0x44d)+this['type']+_0x1d3666(0xe2));}const {changeset:_0x28de7e,pendingMutations:_0x14c0ce}=_0x43f89d;this[_0x1d3666(0x348)][_0x1d3666(0x402)](_0x28de7e);const _0x3051de=_0x14c0ce[_0x1d3666(0x441)]?this[_0x1d3666(0x16e)][_0x1d3666(0x1ec)]($,this['unitID'],this[_0x1d3666(0x3b1)],_0x28de7e,_0x14c0ce,this[_0x1d3666(0x348)]):this['_injector'][_0x1d3666(0x1ec)](x,this['unitID'],this[_0x1d3666(0x3b1)],_0x28de7e,this[_0x1d3666(0x348)]);_0x3051de[_0x1d3666(0x47f)](),this[_0x1d3666(0x348)]['onStateChange'](this,_0x3051de);},_0x4a6049);}[_0x42f461(0x2be)](){const _0x4da5ab=_0x42f461;var _0x26d602;return(_0x26d602=this['_configService'][_0x4da5ab(0x1b4)](ct))!=null?_0x26d602:kt;}[_0x42f461(0x3e8)](){const _0x1adbdc=_0x42f461;throw new Error(_0x1adbdc(0x3f3));}['_clearScheduledTask'](){const _0x29d5b9=_0x42f461;this[_0x29d5b9(0x459)]!=null&&(clearTimeout(this[_0x29d5b9(0x459)]),this[_0x29d5b9(0x459)]=null);}['_onConflict'](_0x28dfd3){const _0x4ec596=_0x42f461;return this[_0x4ec596(0x3a6)](),this[_0x4ec596(0x16e)]['createInstance'](G,this[_0x4ec596(0x33c)],this[_0x4ec596(0x3b1)],null,this[_0x4ec596(0xe6)],this[_0x4ec596(0x348)],_0x28dfd3);}};j=Y([g(0x4,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),g(0x5,o[_0x42f461(0x1f3)](_[_0x42f461(0x482)])),g(0x6,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),g(0x7,o[_0x42f461(0x1f3)](W)),g(0x8,o[_0x42f461(0x218)]),g(0x9,o['ICommandService']),g(0xa,o['IConfigService']),g(0xb,_[_0x42f461(0x37b)]),g(0xc,o[_0x42f461(0x237)]),g(0xd,o[_0x42f461(0xcf)])],j);let x=class extends K{constructor(_0x32ca20,_0x518d3d,_0x551b37,_0x5db4fd,_0x457df7,_0x46298c,_0x48cb08,_0x4fede3,_0x417d59,_0x3f9b7d,_0x41e8bd){const _0xf0cb3b=_0x42f461;super(_0x32ca20,_0x518d3d,_0x551b37,[],_0x5db4fd,_0x4fede3,_0x41e8bd,_0x46298c,_0x48cb08),u(this,_0xf0cb3b(0x3bd),_0xf0cb3b(0x418)),(this[_0xf0cb3b(0x16e)]=_0x457df7,this[_0xf0cb3b(0x313)]=_0x417d59,this['_transformService']=_0x3f9b7d);}[_0x42f461(0x219)](_0x33508a){const _0x3de2cf=_0x42f461,_0x29e5cf=this['_injector'][_0x3de2cf(0x1ec)]($,this[_0x3de2cf(0x33c)],this[_0x3de2cf(0x3b1)],this['_awaitingChangeset'],[_0x33508a],this[_0x3de2cf(0x348)]);return _0x29e5cf[_0x3de2cf(0x47f)](),_0x29e5cf;}[_0x42f461(0x370)](_0x1878e0){const _0x2ed871=_0x42f461;if(this[_0x2ed871(0x176)](_0x1878e0))return this[_0x2ed871(0x16e)]['createInstance'](H,this[_0x2ed871(0x33c)],this[_0x2ed871(0x3b1)],this[_0x2ed871(0x28f)],[],null,[_0x1878e0],this[_0x2ed871(0x348)]);try{const _0x4ac6e0=this[_0x2ed871(0x269)][_0x2ed871(0x25a)]([_0x1878e0],[this[_0x2ed871(0x28f)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4ac6e0)){const {c1Prime:_0x5d8947,c2Prime:_0x5c093e}=_0x4ac6e0;this[_0x2ed871(0x126)](_0x5d8947[0x0]),_0x5c093e[0x0][_0x2ed871(0x134)]=this[_0x2ed871(0x27a)]();const _0x9e9445=this['_injector']['createInstance'](x,this['unitID'],this[_0x2ed871(0x3b1)],_0x5c093e[0x0],this[_0x2ed871(0x348)]);return _0x9e9445[_0x2ed871(0x47f)](),_0x9e9445;}return this['_onConflict'](!0x1);}catch(_0x2c2661){return this[_0x2ed871(0x313)][_0x2ed871(0x34d)](_0x2c2661),this[_0x2ed871(0x1dd)](!0x1);}}[_0x42f461(0x11f)](_0x264a4e){const _0x5c4610=_0x42f461,_0x273cf2=this[_0x5c4610(0x45b)][_0x5c4610(0x3b0)](this[_0x5c4610(0x33c)]);if(_0x264a4e['revision']<_0x273cf2-0x1)return this;if(this[_0x5c4610(0x176)](_0x264a4e))return this['_injector'][_0x5c4610(0x1ec)](H,this[_0x5c4610(0x33c)],this[_0x5c4610(0x3b1)],null,[],this[_0x5c4610(0x28f)],[],this[_0x5c4610(0x348)]);this[_0x5c4610(0x1fb)]();const _0x368d98=this[_0x5c4610(0x16e)][_0x5c4610(0x1ec)](ae,this[_0x5c4610(0x33c)],this['type'],this[_0x5c4610(0x348)]);return _0x368d98[_0x5c4610(0x47f)](),_0x368d98;}[_0x42f461(0x2af)](_0x1ee3dd){const _0x4e84be=_0x42f461;return this[_0x4e84be(0x1dd)](!!(_0x1ee3dd!=null&&_0x1ee3dd[_0x4e84be(0x35e)]));}[_0x42f461(0xe4)](){const _0x274aa5=_0x42f461;return this[_0x274aa5(0x16e)]['createInstance'](k,this['unitID'],this['type'],this[_0x274aa5(0x28f)],[],this['_handler']);}[_0x42f461(0x240)](){return this;}[_0x42f461(0x3e8)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x302dfa){const _0x5479aa=_0x42f461;return this['_injector'][_0x5479aa(0x1ec)](G,this['unitID'],this['type'],this[_0x5479aa(0x28f)],[],this[_0x5479aa(0x348)],_0x302dfa);}};x=Y([g(0x4,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),g(0x5,o[_0x42f461(0x1f3)](_[_0x42f461(0x482)])),g(0x6,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),g(0x7,o[_0x42f461(0xff)]),g(0x8,o[_0x42f461(0x218)]),g(0x9,_['ITransformService']),g(0xa,o[_0x42f461(0xcf)])],x);let $=class extends K{constructor(_0x3ec8aa,_0x326617,_0x5ab610,_0x5cca83,_0x1b2ad8,_0x450b5d,_0x151a93,_0x5e0550,_0x90b840,_0x5a0713,_0x2f33c9,_0x3805cc){const _0x818a26=_0x42f461;super(_0x3ec8aa,_0x326617,_0x5ab610,_0x5cca83,_0x1b2ad8,_0x90b840,_0x3805cc,_0x151a93,_0x5e0550),u(this,_0x818a26(0x3bd),_0x818a26(0x42e)),(this[_0x818a26(0x16e)]=_0x450b5d,this[_0x818a26(0x313)]=_0x5a0713,this['_transformService']=_0x2f33c9);}[_0x42f461(0x219)](_0x4f594b){const _0xeefea0=_0x42f461;return this['_pendingMutations'][_0xeefea0(0x302)](_0x4f594b),this;}['onRemoteChangeset'](_0x5b0f83){const _0x56152f=_0x42f461;if(this[_0x56152f(0x176)](_0x5b0f83))return this['_injector']['createInstance'](H,this[_0x56152f(0x33c)],this['type'],this['_awaitingChangeset'],this[_0x56152f(0xe6)],null,[_0x5b0f83],this[_0x56152f(0x348)]);try{const _0x4de811=this[_0x56152f(0x269)][_0x56152f(0x25a)]([_0x5b0f83],[this[_0x56152f(0x28f)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4de811)){const {c1Prime:_0x428b88,c2Prime:_0x40bf7d}=_0x4de811,_0x5f57ff=this[_0x56152f(0x269)][_0x56152f(0x431)](_0x428b88[0x0],this[_0x56152f(0xe6)]);if(_[_0x56152f(0xc9)](_0x5f57ff)){const {c1Prime:_0xab70d8,m2Prime:_0x18c5df}=_0x5f57ff;return this[_0x56152f(0x126)](_0xab70d8),_0x40bf7d[0x0][_0x56152f(0x134)]=this[_0x56152f(0x27a)](),this['_injector'][_0x56152f(0x1ec)]($,this[_0x56152f(0x33c)],this[_0x56152f(0x3b1)],_0x40bf7d[0x0],_0x18c5df,this[_0x56152f(0x348)]);}throw _0x5f57ff[_0x56152f(0x34d)];}throw _0x4de811[_0x56152f(0x34d)];}catch(_0x32b189){return this[_0x56152f(0x313)][_0x56152f(0x34d)](_0x32b189),this[_0x56152f(0x1dd)](!0x1);}}[_0x42f461(0x11f)](_0xa5a76b){const _0x48d18c=_0x42f461;if(this['_checkMissing'](_0xa5a76b))return this[_0x48d18c(0x16e)][_0x48d18c(0x1ec)](H,this[_0x48d18c(0x33c)],this[_0x48d18c(0x3b1)],null,this[_0x48d18c(0xe6)],this[_0x48d18c(0x28f)],[],this[_0x48d18c(0x348)]);this[_0x48d18c(0x1fb)]();const _0xf947bf=this[_0x48d18c(0x16e)][_0x48d18c(0x1ec)](j,this[_0x48d18c(0x33c)],this[_0x48d18c(0x3b1)],this['_pendingMutations'],this[_0x48d18c(0x348)]);return _0xf947bf[_0x48d18c(0x282)](),_0xf947bf[_0x48d18c(0x47f)](),_0xf947bf;}['onRemoteRej'](_0x1be5f8){const _0x3fc805=_0x42f461;return this[_0x3fc805(0x1dd)](!!(_0x1be5f8!=null&&_0x1be5f8[_0x3fc805(0x35e)]));}[_0x42f461(0xe4)](){const _0x4aaeba=_0x42f461;return this[_0x4aaeba(0x16e)]['createInstance'](k,this[_0x4aaeba(0x33c)],this[_0x4aaeba(0x3b1)],this['_awaitingChangeset'],this[_0x4aaeba(0xe6)],this[_0x4aaeba(0x348)]);}[_0x42f461(0x240)](){return this;}[_0x42f461(0x3e8)](){const _0x51111c=_0x42f461;this[_0x51111c(0x348)][_0x51111c(0x402)](this[_0x51111c(0x28f)]);}[_0x42f461(0x1dd)](_0x2be7e3){const _0x1c0846=_0x42f461;return this[_0x1c0846(0x16e)][_0x1c0846(0x1ec)](G,this[_0x1c0846(0x33c)],this[_0x1c0846(0x3b1)],null,this[_0x1c0846(0xe6)],this[_0x1c0846(0x348)],_0x2be7e3);}};$=Y([g(0x5,o[_0x42f461(0x1f3)](o['Injector'])),g(0x6,o['Inject'](_[_0x42f461(0x482)])),g(0x7,o[_0x42f461(0x1f3)](exports['LocalCacheService'])),g(0x8,o[_0x42f461(0xff)]),g(0x9,o[_0x42f461(0x218)]),g(0xa,_[_0x42f461(0x37b)]),g(0xb,o[_0x42f461(0xcf)])],$);let G=class extends K{constructor(_0x3d9366,_0x3e35ef,_0x2ad00c,_0x581310,_0x1cef81,_0x2c03ed=!0x1,_0x3fe34f,_0x467d65,_0x2ba1fa,_0x2c61fd,_0x3db7c0,_0x597c25,_0x41fb61){const _0x2f093b=_0x42f461;super(_0x3d9366,_0x3e35ef,_0x2ad00c,_0x581310,_0x1cef81,_0x467d65,_0x2ba1fa,_0x3db7c0,_0x2c61fd),u(this,_0x2f093b(0x3bd),'conflict'),(this[_0x2f093b(0x25b)]=_0x2c03ed,this[_0x2f093b(0xfa)]=_0x3fe34f,this[_0x2f093b(0x15c)]=_0x597c25,this['_notificationService']=_0x41fb61,this[_0x2f093b(0x3e5)](),this[_0x2f093b(0x15d)](),this[_0x2f093b(0x2f9)]());}[_0x42f461(0x219)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x42f461(0x2af)](){return this;}[_0x42f461(0xe4)](){return this;}['toggleOnline'](){return this;}[_0x42f461(0x3e8)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x42f461(0x15d)](){const _0x30c700=_0x42f461;this['_localCacheService'][_0x30c700(0x32e)](this[_0x30c700(0x33c)],this[_0x30c700(0x3b1)],null,[]);}[_0x42f461(0x3e5)](){const _0x406da0=_0x42f461;this['_isPermissionRej']?this[_0x406da0(0x312)][_0x406da0(0x20a)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x406da0(0x15c)]['t'](_0x406da0(0x326)),'type':_0x406da0(0x34d),'duration':0x0}):this[_0x406da0(0x312)][_0x406da0(0x20a)]({'title':this[_0x406da0(0x15c)]['t'](_0x406da0(0x236)),'content':this[_0x406da0(0x15c)]['t'](_0x406da0(0x1a6)),'type':_0x406da0(0x34d),'duration':0x0});}['_disableEditing'](){const _0x4d3b12=_0x42f461;this[_0x4d3b12(0xfa)][_0x4d3b12(0x27b)](new p['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};G=Y([g(0x6,o['Inject'](o['IPermissionService'])),g(0x7,o[_0x42f461(0xff)]),g(0x8,o[_0x42f461(0xcf)]),g(0x9,o[_0x42f461(0x1f3)](exports['LocalCacheService'])),g(0xa,o[_0x42f461(0x1f3)](_[_0x42f461(0x482)])),g(0xb,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)])),g(0xc,M['INotificationService'])],G);let k=class extends K{constructor(_0x56c28f,_0x1f5c01,_0x9b021,_0xd9b481,_0x441f3f,_0x55df00,_0x12b67d,_0x27dbb3,_0x6f0a45,_0x582c10){const _0x40a2e5=_0x42f461;super(_0x56c28f,_0x1f5c01,_0x9b021,_0xd9b481,_0x441f3f,_0x6f0a45,_0x582c10,_0x12b67d,_0x27dbb3),u(this,_0x40a2e5(0x3bd),_0x40a2e5(0xd9)),this[_0x40a2e5(0x16e)]=_0x55df00;}[_0x42f461(0x219)](_0x5b748a){const _0x156eb7=_0x42f461;return this[_0x156eb7(0xe6)][_0x156eb7(0x302)](_0x5b748a),this[_0x156eb7(0x47f)](),this;}[_0x42f461(0x370)](_0x3a247c){const _0x1ec696=_0x42f461;throw new Error(_0x1ec696(0x1c3));}['onRemoteAck'](){const _0x3240e0=_0x42f461;throw new Error(_0x3240e0(0x414));}[_0x42f461(0x2af)](){const _0x2d48ac=_0x42f461;throw new Error(_0x2d48ac(0x46f));}['toggleOffline'](){return this;}[_0x42f461(0x240)](){const {_injector:_0x36c9e8,_pendingMutations:_0x1103c4,_awaitingChangeset:_0x3b9245,unitID:_0x438c61,_handler:_0x391f49,type:_0x189dd2}=this,_0x3bb1a6=Et(_0x36c9e8,_0x438c61,_0x189dd2,_0x3b9245,_0x1103c4,_0x391f49);return _0x3bb1a6 instanceof j?_0x3bb1a6['_schedule']():(_0x3bb1a6 instanceof $||_0x3bb1a6 instanceof x)&&_0x3bb1a6['resend'](),_0x3bb1a6;}[_0x42f461(0x3e8)](){const _0x9071a2=_0x42f461;throw new Error(_0x9071a2(0x304));}};k=Y([g(0x5,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),g(0x6,o[_0x42f461(0x1f3)](_['RevisionService'])),g(0x7,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),g(0x8,o['ICommandService']),g(0x9,o[_0x42f461(0xcf)])],k);let H=class extends K{constructor(_0x375e98,_0x181f06,_0x511b98,_0x1fea90,_0x1685e0,_0x50378f,_0x5f2597,_0x38d232,_0x52f4cc,_0x2e31af,_0x4af964,_0x17d729,_0x29f17f,_0x5eab9f){const _0x4e0544=_0x42f461;super(_0x375e98,_0x181f06,_0x511b98,_0x1fea90,_0x5f2597,_0x17d729,_0x29f17f,_0x52f4cc,_0x2e31af),u(this,_0x4e0544(0x3bd),_0x4e0544(0x24a)),(this[_0x4e0544(0x181)]=_0x1685e0,this[_0x4e0544(0xba)]=_0x50378f,this[_0x4e0544(0x16e)]=_0x38d232,this['_logService']=_0x4af964,this['_transformService']=_0x5eab9f);}[_0x42f461(0x261)](_0x1cfb24){const _0x7a559c=_0x42f461;try{const _0x59ba93=[..._0x1cfb24,...this[_0x7a559c(0xba)]],_0x3e1d7e=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x7a559c(0x357)](_0x181483=>!!_0x181483);let _0x1efddc,_0xc70de8;if(_0x3e1d7e['length']){const _0x4e78dc=this[_0x7a559c(0x269)]['transformChangesets'](_0x59ba93,_0x3e1d7e,!0x1);if(!_[_0x7a559c(0x204)](_0x4e78dc))throw _0x4e78dc[_0x7a559c(0x34d)];_0x1efddc=_0x4e78dc[_0x7a559c(0x3b8)],_0xc70de8=_0x4e78dc[_0x7a559c(0x43c)];}else _0x1efddc=_0x59ba93,_0xc70de8=[];let _0x2a9344=this['_pendingMutations'];_0x1efddc[_0x7a559c(0x375)](_0xc0b6a4=>{const _0x37a3bb=_0x7a559c;let _0x2084eb;if(_0x2a9344['length']){const _0x117ee0=this[_0x37a3bb(0x269)]['transformMutationsWithChangeset'](_0xc0b6a4,_0x2a9344);if(!_[_0x37a3bb(0xc9)](_0x117ee0))throw _0x117ee0[_0x37a3bb(0x34d)];_0x2084eb=_0x117ee0[_0x37a3bb(0x3b8)],_0x2a9344=_0x117ee0['m2Prime'];}else _0x2084eb=_0xc0b6a4;this[_0x37a3bb(0x126)](_0x2084eb);}),this[_0x7a559c(0x181)]&&this[_0x7a559c(0x1fb)](),this[_0x7a559c(0x28f)]&&_0xc70de8['length']&&(_0xc70de8[0x0][_0x7a559c(0x134)]=this[_0x7a559c(0x27a)]());let _0x7f2a97;if(this['_awaitingChangeset']&&_0x2a9344[_0x7a559c(0x441)]!==0x0)_0x7f2a97=this[_0x7a559c(0x16e)][_0x7a559c(0x1ec)]($,this[_0x7a559c(0x33c)],this[_0x7a559c(0x3b1)],_0xc70de8[0x0],_0x2a9344,this[_0x7a559c(0x348)]);else{if(this[_0x7a559c(0x28f)]&&_0x2a9344[_0x7a559c(0x441)]===0x0)_0xc70de8[0x0][_0x7a559c(0x134)]=this[_0x7a559c(0x27a)](),_0x7f2a97=this[_0x7a559c(0x16e)]['createInstance'](x,this[_0x7a559c(0x33c)],this[_0x7a559c(0x3b1)],_0xc70de8[0x0],this['_handler']);else{if(_0x2a9344[_0x7a559c(0x441)]!==0x0){const _0x55f847=this[_0x7a559c(0x16e)]['createInstance'](j,this[_0x7a559c(0x33c)],this[_0x7a559c(0x3b1)],_0x2a9344,this[_0x7a559c(0x348)]);_0x55f847['_schedule'](),_0x7f2a97=_0x55f847;}else _0x7f2a97=this['_injector'][_0x7a559c(0x1ec)](ae,this[_0x7a559c(0x33c)],this[_0x7a559c(0x3b1)],this[_0x7a559c(0x348)]);}}return _0x7f2a97[_0x7a559c(0x47f)](),_0x7f2a97;}catch(_0xccc4c9){return this['_logService'][_0x7a559c(0x34d)](_0x7a559c(0x3e7),_0x7a559c(0x222),_0xccc4c9),this[_0x7a559c(0x16e)][_0x7a559c(0x1ec)](G,this[_0x7a559c(0x33c)],this[_0x7a559c(0x3b1)],this[_0x7a559c(0x28f)],this[_0x7a559c(0xe6)],this[_0x7a559c(0x348)],!0x1);}}['resend'](){const _0x918900=_0x42f461;throw new Error(_0x918900(0x446));}[_0x42f461(0x219)](_0x49d285){const _0x45fb1d=_0x42f461;return this[_0x45fb1d(0xe6)][_0x45fb1d(0x302)](_0x49d285),this;}[_0x42f461(0x370)](_0x38371a){const _0x2def89=_0x42f461;return this[_0x2def89(0xba)][_0x2def89(0x302)](_0x38371a),this;}[_0x42f461(0x11f)](_0x1d2de0){const _0xbc4c2b=_0x42f461;if(this['_awaitingChangeset'])return this[_0xbc4c2b(0x181)]=this[_0xbc4c2b(0x28f)],this['_awaitingChangeset']=null,this;throw new Error(_0xbc4c2b(0xb9));}[_0x42f461(0x2af)](_0x3ec421){const _0x348216=_0x42f461;return this[_0x348216(0x1dd)](!!(_0x3ec421!=null&&_0x3ec421[_0x348216(0x35e)]));}['toggleOffline'](){const _0x1b7155=_0x42f461;return this[_0x1b7155(0x16e)]['createInstance'](k,this[_0x1b7155(0x33c)],this['type'],this[_0x1b7155(0x28f)],this['_pendingMutations'],this[_0x1b7155(0x348)]);}[_0x42f461(0x240)](){return this;}[_0x42f461(0x1dd)](_0x4e15b3){const _0xfcc498=_0x42f461;return this['_injector']['createInstance'](G,this[_0xfcc498(0x33c)],this['type'],this[_0xfcc498(0x28f)],this[_0xfcc498(0xe6)],this[_0xfcc498(0x348)],_0x4e15b3);}};H=Y([g(0x7,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),g(0x8,o['Inject'](_['RevisionService'])),g(0x9,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),g(0xa,o[_0x42f461(0x218)]),g(0xb,o['ICommandService']),g(0xc,o[_0x42f461(0xcf)]),g(0xd,_[_0x42f461(0x37b)])],H);function Et(_0x3818ac,_0x8ed124,_0xb9e5ec,_0xd15b25,_0xc316bb,_0x5ab893){const _0x1665c6=_0x42f461;return _0xd15b25&&_0xc316bb[_0x1665c6(0x441)]?_0x3818ac[_0x1665c6(0x1ec)]($,_0x8ed124,_0xb9e5ec,_0xd15b25,_0xc316bb,_0x5ab893):_0xd15b25?_0x3818ac[_0x1665c6(0x1ec)](x,_0x8ed124,_0xb9e5ec,_0xd15b25,_0x5ab893):_0xc316bb[_0x1665c6(0x441)]?_0x3818ac['createInstance'](j,_0x8ed124,_0xb9e5ec,_0xc316bb,_0x5ab893):_0x3818ac['createInstance'](ae,_0x8ed124,_0xb9e5ec,_0x5ab893);}var Os=Object[_0x42f461(0x3c5)],Ds=Object[_0x42f461(0x1b1)],Ce=(_0x516d5e,_0x419aa6,_0x55908b,_0x3003c8)=>{const _0x4a2988=_0x42f461;for(var _0x1ba540=_0x3003c8>0x1?void 0x0:_0x3003c8?Ds(_0x419aa6,_0x55908b):_0x419aa6,_0xb36062=_0x516d5e[_0x4a2988(0x441)]-0x1,_0x21fc68;_0xb36062>=0x0;_0xb36062--)(_0x21fc68=_0x516d5e[_0xb36062])&&(_0x1ba540=(_0x3003c8?_0x21fc68(_0x419aa6,_0x55908b,_0x1ba540):_0x21fc68(_0x1ba540))||_0x1ba540);return _0x3003c8&&_0x1ba540&&Os(_0x419aa6,_0x55908b,_0x1ba540),_0x1ba540;},I=(_0x52e302,_0x19ede7)=>(_0x54efb7,_0x49696f)=>_0x19ede7(_0x54efb7,_0x49696f,_0x52e302);exports[_0x42f461(0x1f4)]=class extends o[_0x42f461(0x451)]{constructor(_0x4cec7b,_0x4df4c1,_0x453a29){const _0x74a39f=_0x42f461;super(),u(this,_0x74a39f(0x2c5),new Map()),u(this,'_entityInit$',new v[(_0x74a39f(0x26e))]()),(this['_injector']=_0x4cec7b,this['_collabSessionService']=_0x4df4c1,this[_0x74a39f(0x3c1)]=_0x453a29,this[_0x74a39f(0x2b4)]());}[_0x42f461(0x442)](){const _0x123bf0=_0x42f461;super[_0x123bf0(0x442)](),this['_entities'][_0x123bf0(0x375)](_0x1cadfd=>_0x1cadfd['dispose']()),this['_entities'][_0x123bf0(0x21c)]();}[_0x42f461(0x31d)](_0x5506b0){const _0x1a88f0=_0x42f461;var _0x12fbac;return(_0x12fbac=this[_0x1a88f0(0x2c5)]['get'](_0x5506b0))!=null?_0x12fbac:null;}[_0x42f461(0x34b)](_0x2e9b4f){const _0x22388c=_0x42f461,_0x33ffde=this[_0x22388c(0x31d)](_0x2e9b4f);return _0x33ffde?v['of'](_0x33ffde):this[_0x22388c(0x1ae)]['pipe'](C[_0x22388c(0x357)](_0x416e29=>_0x416e29[_0x22388c(0x33c)]===_0x2e9b4f));}[_0x42f461(0x2b4)](){const _0x1e3958=_0x42f461;this[_0x1e3958(0x3c1)][_0x1e3958(0x283)](o[_0x1e3958(0x3a7)][_0x1e3958(0x23d)])['pipe'](v[_0x1e3958(0x174)](this[_0x1e3958(0x1b8)]),C[_0x1e3958(0xda)](0x10))['subscribe'](async _0x275bc7=>{const _0xd0a4f8=_0x1e3958,_0x4868e4=_0x275bc7[_0xd0a4f8(0x2d9)](),_0x5453ac=await this['_startCollaboration'](_0x4868e4,A[_0xd0a4f8(0x23d)]);this[_0xd0a4f8(0x2c5)][_0xd0a4f8(0x1c4)](_0x4868e4,_0x5453ac);}),this[_0x1e3958(0x3c1)]['getTypeOfUnitAdded$'](o[_0x1e3958(0x3a7)][_0x1e3958(0x46d)])['pipe'](v['takeUntil'](this[_0x1e3958(0x1b8)]),C[_0x1e3958(0xda)](0x10))[_0x1e3958(0x285)](C[_0x1e3958(0x357)](_0x12509e=>!_0x12509e[_0x1e3958(0x2d9)]()[_0x1e3958(0x31f)]('__')))[_0x1e3958(0x17e)](async _0x597d59=>{const _0x523d4a=_0x1e3958,_0x451f6a=_0x597d59[_0x523d4a(0x2d9)](),_0x13ecfe=await this[_0x523d4a(0x20b)](_0x451f6a,A[_0x523d4a(0x46d)]);this[_0x523d4a(0x2c5)][_0x523d4a(0x1c4)](_0x451f6a,_0x13ecfe);}),v[_0x1e3958(0x420)](this[_0x1e3958(0x3c1)][_0x1e3958(0x3c7)](o[_0x1e3958(0x3a7)][_0x1e3958(0x23d)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x1e3958(0x46d)]))[_0x1e3958(0x285)](v['takeUntil'](this['dispose$']))[_0x1e3958(0x17e)](_0x2febf2=>{const _0x5917f0=_0x1e3958,_0x2345a2=_0x2febf2[_0x5917f0(0x2d9)](),_0x210308=this[_0x5917f0(0x2c5)][_0x5917f0(0xc0)](_0x2345a2);_0x210308&&(_0x210308[_0x5917f0(0x442)](),this[_0x5917f0(0x2c5)][_0x5917f0(0x213)](_0x2345a2));});}async[_0x42f461(0x20b)](_0x56621c,_0x912719){const _0x2ea946=_0x42f461,_0x34a949=await this[_0x2ea946(0x34a)][_0x2ea946(0xf7)](_0x56621c),_0x5d0970=this[_0x2ea946(0x16e)][_0x2ea946(0x1ec)](this[_0x2ea946(0x1c7)](_0x912719),_0x56621c,_0x912719,_0x34a949);return await _0x5d0970['init'](),this['_entityInit$'][_0x2ea946(0x3b2)](_0x5d0970),_0x5d0970;}[_0x42f461(0x1c7)](_0x36de61){const _0x2a19bf=_0x42f461;switch(_0x36de61){case A['UNIVER_DOC']:return Le;case A[_0x2a19bf(0x23d)]:return exports[_0x2a19bf(0x2cb)];default:throw new Error(_0x2a19bf(0x3d0)+_0x36de61);}}},exports[_0x42f461(0x1f4)]=Ce([o['OnLifecycle'](o['LifecycleStages'][_0x42f461(0x1df)],exports[_0x42f461(0x1f4)]),I(0x0,o['Inject'](o[_0x42f461(0x13e)])),I(0x1,o[_0x42f461(0x1f3)](exports[_0x42f461(0x1bd)])),I(0x2,o[_0x42f461(0x237)])],exports[_0x42f461(0x1f4)]);let Ie=class extends o[_0x42f461(0x451)]{constructor(_0x16aa5f,_0x5267e2,_0x3f5e41,_0x5cfc3e,_0x289f16,_0x439afa,_0x38802a,_0x405a6d,_0x89cd5b,_0x5e5728,_0x532834,_0x2b0dff,_0x3f7143){const _0x271110=_0x42f461;super(),u(this,_0x271110(0x40e),new v['BehaviorSubject'](null)),u(this,'state$',this[_0x271110(0x40e)]['asObservable']()),u(this,'_state'),u(this,'_collaborationPaused',!0x1),u(this,'status$',this[_0x271110(0x3ee)][_0x271110(0x285)](C[_0x271110(0x145)](_0x22e466=>_0x22e466?_0x22e466[_0x271110(0x3bd)]:D[_0x271110(0x187)]),C[_0x271110(0x328)](0x1))),u(this,_0x271110(0x1d5),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x271110(0x33c)]=_0x16aa5f,this[_0x271110(0x20f)]=_0x5267e2,this[_0x271110(0x1ce)]=_0x3f5e41,this['_injector']=_0x5cfc3e,this[_0x271110(0x19f)]=_0x289f16,this['_compressMutationService']=_0x439afa,this[_0x271110(0x15c)]=_0x38802a,this[_0x271110(0x45b)]=_0x405a6d,this[_0x271110(0x313)]=_0x89cd5b,this[_0x271110(0x28d)]=_0x5e5728,this[_0x271110(0x45c)]=_0x532834,this[_0x271110(0xfa)]=_0x2b0dff,this[_0x271110(0x444)]=_0x3f7143);}get[_0x42f461(0x389)](){const _0x164018=_0x42f461;return this[_0x164018(0x475)];}async[_0x42f461(0x464)](){const _0x3154fd=_0x42f461;if(this[_0x3154fd(0x389)])throw new Error(_0x3154fd(0x3e9));await this[_0x3154fd(0x2b4)]();}[_0x42f461(0x1e5)](){const _0x5a68a0=_0x42f461;return this[_0x5a68a0(0x3f7)]=!0x0,o[_0x5a68a0(0x262)](()=>{const _0xd57f85=_0x5a68a0;this[_0xd57f85(0x3f7)]=!0x1,this[_0xd57f85(0x11a)]();});}['_updateState'](_0x283e65){const _0x1e65d5=_0x42f461;this['_state']=_0x283e65,this[_0x1e65d5(0x40e)][_0x1e65d5(0x3b2)](_0x283e65);}async[_0x42f461(0x2b4)](){const _0x2c329d=_0x42f461;var _0x5a2426;return this[_0x2c329d(0x141)](await this[_0x2c329d(0x3b5)]()),this['_singleActiveUnitService']&&((_0x5a2426=this[_0x2c329d(0x444)])==null||_0x5a2426[_0x2c329d(0x136)](this[_0x2c329d(0x33c)]),this['disposeWithMe'](o[_0x2c329d(0x262)](this['_singleActiveUnitService'][_0x2c329d(0x365)](this[_0x2c329d(0x33c)])[_0x2c329d(0x17e)](_0x4864d3=>{const _0x358536=_0x2c329d;this[_0x358536(0x313)][_0x358536(0x43b)](_0x358536(0x3cb),_0x358536(0x3ce),_0x4864d3),_0x4864d3===It[_0x358536(0x322)]?(this[_0x358536(0x45c)]['show']({'content':this['_localeService']['t']('collaboration.single-unit.warning'),'type':Z[_0x358536(0x2ad)][_0x358536(0x341)]}),this['_permissionService']['updatePermissionPoint'](new p[(_0x358536(0x194))](this[_0x358536(0x33c)])['id'],!0x1)):this[_0x358536(0xfa)][_0x358536(0x27b)](new p[(_0x358536(0x194))](this[_0x358536(0x33c)])['id'],!0x0);})))),this[_0x2c329d(0x2e2)](o[_0x2c329d(0x262)](this[_0x2c329d(0x1ce)][_0x2c329d(0x227)][_0x2c329d(0x17e)](_0x549bab=>{const _0x3af37a=_0x2c329d;_0x549bab===V[_0x3af37a(0x336)]?this[_0x3af37a(0xc6)]():_0x549bab===V['OFFLINE']&&this[_0x3af37a(0x178)]();}))),this[_0x2c329d(0x2e2)](o['toDisposable'](this['_session']['event$'][_0x2c329d(0x17e)](_0x5113cb=>{const _0x5be36a=_0x2c329d;try{switch(_0x5113cb[_0x5be36a(0x35a)]){case _[_0x5be36a(0x301)]['NEW_CHANGESETS']:{this[_0x5be36a(0x16d)](_[_0x5be36a(0x123)](_0x5113cb[_0x5be36a(0x407)]));break;}case _[_0x5be36a(0x301)][_0x5be36a(0x1d7)]:{this[_0x5be36a(0x2b9)](_0x5113cb['data']);break;}case _[_0x5be36a(0x301)][_0x5be36a(0x33d)]:{this['_onRemoteRejected']();break;}case _[_0x5be36a(0x301)][_0x5be36a(0x1a3)]:{this[_0x5be36a(0x321)](_0x5113cb['data']['changesets'][_0x5be36a(0x145)](_0x461da9=>_[_0x5be36a(0x123)](_0x461da9)));break;}case _['CollaborationEvent'][_0x5be36a(0x3f2)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x5427f9){throw console[_0x5be36a(0x34d)](_0x5be36a(0x1e4),_0x5427f9),_0x5427f9;}}))),this['_state'];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x2fa907=_0x42f461;if(this[_0x2fa907(0x1d5)])throw new Error(_0x2fa907(0x1f2));this[_0x2fa907(0x1d5)]=!0x0;}['_onLocalMutation'](_0x42a4e8){const _0x598698=_0x42f461;this[_0x598698(0x206)](),this[_0x598698(0x141)](this[_0x598698(0x475)][_0x598698(0x219)](_0x42a4e8)),this[_0x598698(0x1fe)]();}[_0x42f461(0x16d)](_0x121cab){const _0x513ce6=_0x42f461;if(!(_0x121cab[_0x513ce6(0x1ba)]<=this['_revisionService'][_0x513ce6(0x3b0)](this[_0x513ce6(0x33c)]))){if(this['_collaborationPaused']){this[_0x513ce6(0x22a)][_0x513ce6(0x302)](_0x121cab);return;}this[_0x513ce6(0x268)](_0x121cab);}}['_exhaustRemoteChangesetQueue'](){const _0xddccd7=_0x42f461;this[_0xddccd7(0x22a)][_0xddccd7(0x375)](_0x56ac6f=>this[_0xddccd7(0x268)](_0x56ac6f)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x94873a){const _0x452f60=_0x42f461,_0x471e2a=this[_0x452f60(0x276)]['interceptor'][_0x452f60(0x3dd)](this[_0x452f60(0x276)]['interceptor'][_0x452f60(0x434)]()[_0x452f60(0x198)])(_0x94873a[_0x452f60(0x132)],null)||_0x94873a[_0x452f60(0x132)],_0x42d34e={..._0x94873a,'mutations':_0x471e2a};this[_0x452f60(0x206)](),this[_0x452f60(0x141)](this['_state'][_0x452f60(0x370)](_0x42d34e)),this['_unlockTransition']();}[_0x42f461(0x2b9)](_0x432012){const _0x203f2c=_0x42f461;this[_0x203f2c(0x206)](),this['_updateState'](this['_state'][_0x203f2c(0x11f)](_0x432012)),this[_0x203f2c(0x1fe)]();}[_0x42f461(0x447)](_0x58af81){const _0x5c1a6f=_0x42f461;this[_0x5c1a6f(0x206)](),this[_0x5c1a6f(0x141)](this['_state'][_0x5c1a6f(0x2af)](_0x58af81)),this[_0x5c1a6f(0x1fe)]();}[_0x42f461(0x321)](_0x29e0c4){const _0x5d0ea9=_0x42f461;if(!(this[_0x5d0ea9(0x475)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x330f24=_0x29e0c4[_0x5d0ea9(0x145)](_0x45518e=>{const _0x4bbb61=_0x5d0ea9,_0x24c90c=this['_compressMutationService'][_0x4bbb61(0x2c2)][_0x4bbb61(0x3dd)](this[_0x4bbb61(0x276)]['interceptor'][_0x4bbb61(0x434)]()[_0x4bbb61(0x198)])(_0x45518e[_0x4bbb61(0x132)],null)||_0x45518e[_0x4bbb61(0x132)];return{..._0x45518e,'mutations':_0x24c90c};});this[_0x5d0ea9(0x206)](),this[_0x5d0ea9(0x141)](this[_0x5d0ea9(0x475)][_0x5d0ea9(0x261)](_0x330f24)),this[_0x5d0ea9(0x1fe)]();}[_0x42f461(0x178)](){const _0x3c91c2=_0x42f461;this[_0x3c91c2(0x206)](),this[_0x3c91c2(0x141)](this[_0x3c91c2(0x475)][_0x3c91c2(0xe4)]()),this[_0x3c91c2(0x1fe)]();}[_0x42f461(0xc6)](){const _0x48e3ec=_0x42f461;this[_0x48e3ec(0x206)](),this[_0x48e3ec(0x141)](this[_0x48e3ec(0x475)][_0x48e3ec(0x240)]()),this['_unlockTransition']();}async[_0x42f461(0x3b5)](){return new Promise(_0xb5d73b=>{const _0x3ec30a=_0x527e;this[_0x3ec30a(0x1ce)][_0x3ec30a(0x227)][_0x3ec30a(0x285)](C[_0x3ec30a(0x417)](0x1))[_0x3ec30a(0x17e)](async _0x5017f5=>{const _0x44f187=_0x3ec30a;_0xb5d73b(await this[_0x44f187(0x19b)](_0x5017f5===V[_0x44f187(0x336)]));});});}[_0x42f461(0x12e)](){const _0x298345=_0x42f461,_0x499ded=this[_0x298345(0x33c)];return{'onStateChange':(_0x5658f8,_0x20633e)=>{const _0x5676f5=_0x298345;if(_0x5658f8!==this['_state'])throw new Error(_0x5676f5(0x109)+_0x5658f8[_0x5676f5(0x3bd)]+_0x5676f5(0x428)+_0x20633e[_0x5676f5(0x3bd)]+_0x5676f5(0x1e2)+this['_state'][_0x5676f5(0x3bd)]);this[_0x5676f5(0x141)](_0x20633e);},'onSendChangeset':_0x1dca91=>{const _0x4911d3=_0x298345,_0xba7a5f={'eventID':_[_0x4911d3(0x301)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x1dca91[_0x4911d3(0x33c)],'unitType':this[_0x4911d3(0x20f)],'changeset':_0x1dca91,'memberID':this[_0x4911d3(0x1ce)][_0x4911d3(0x142)]()}};this['_session'][_0x4911d3(0x36d)](_0xba7a5f,this[_0x4911d3(0x33c)]);},'onMissingChangesets':({from:_0x49e9ab,to:_0x585a6e})=>{const _0x2c856f=_0x298345;this[_0x2c856f(0x313)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x49e9ab+'\x20to\x20'+_0x585a6e);const _0x5ab07b={'eventID':_['CollaborationEvent'][_0x2c856f(0x115)],'data':{'unitID':_0x499ded,'unitType':this['_type'],'from':_0x49e9ab,'to':_0x585a6e}};this[_0x2c856f(0x1ce)][_0x2c856f(0x36d)](_0x5ab07b,this['unitID']);}};}async['_createInitialStateImpl'](_0x38e89d){const _0x774d6b=_0x42f461;var _0x350a12,_0x59b0d5;const _0x351c34=await this[_0x774d6b(0x19f)]['loadOfflineData'](this['unitID']),_0x2b4675=(_0x350a12=_0x351c34==null?void 0x0:_0x351c34['mutations'])!=null?_0x350a12:[],_0x389e64=(_0x59b0d5=_0x351c34==null?void 0x0:_0x351c34[_0x774d6b(0x286)])!=null?_0x59b0d5:null,_0x21e847=this[_0x774d6b(0x33c)];try{this[_0x774d6b(0x152)](_0x389e64,_0x2b4675);}catch(_0x3cce63){this[_0x774d6b(0x313)]['error'](_0x3cce63);}const _0x2d266d=this['_createHandler']();if(_0x38e89d){const _0x242694=Et(this[_0x774d6b(0x16e)],_0x21e847,this[_0x774d6b(0x20f)],_0x389e64,_0x2b4675,_0x2d266d);return _0x242694 instanceof j?_0x242694[_0x774d6b(0x282)]():(_0x242694 instanceof $||_0x242694 instanceof x)&&_0x242694[_0x774d6b(0x3e8)](),_0x242694;}return this[_0x774d6b(0x16e)][_0x774d6b(0x1ec)](k,_0x21e847,this['_type'],_0x389e64,_0x2b4675,_0x2d266d);}['_replayCachedMutations'](_0x25ac00,_0x1d0036){const _0x1691c9=_0x42f461;var _0x25d467,_0x539512;const _0x5678ff=this[_0x1691c9(0x276)][_0x1691c9(0x2c2)][_0x1691c9(0x3dd)](this[_0x1691c9(0x276)][_0x1691c9(0x2c2)][_0x1691c9(0x434)]()['COMPRESS_MUTATION_APPLY']);(_0x25d467=_0x5678ff((_0x25ac00==null?void 0x0:_0x25ac00[_0x1691c9(0x132)])||[],null))==null||_0x25d467[_0x1691c9(0x375)](_0x585320=>this['_commandService']['executeCommand'](_0x585320['id'],_0x585320[_0x1691c9(0x2ec)])),(_0x539512=_0x5678ff(_0x1d0036||[],null))==null||_0x539512['forEach'](_0x4d630d=>this[_0x1691c9(0x28d)][_0x1691c9(0x117)](_0x4d630d['id'],_0x4d630d[_0x1691c9(0x2ec)]));}};Ie=Ce([I(0x3,o['Inject'](o[_0x42f461(0x13e)])),I(0x4,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),I(0x5,o['Inject'](_[_0x42f461(0xcb)])),I(0x6,o['Inject'](o['LocaleService'])),I(0x7,o[_0x42f461(0x1f3)](_[_0x42f461(0x482)])),I(0x8,o[_0x42f461(0x218)]),I(0x9,o[_0x42f461(0xff)]),I(0xa,M[_0x42f461(0x3f8)]),I(0xb,o[_0x42f461(0x114)]),I(0xc,o[_0x42f461(0x122)](Ee))],Ie);let Le=class extends Ie{constructor(_0x277e47,_0x4ef1ea,_0x1cccd2,_0x1afe38,_0xf82d05,_0x5f5729,_0x2c91db,_0x2db378,_0x45b3a9,_0xf778a3,_0x270d4a,_0x43d6c1,_0x7d0b0d,_0x42de37,_0x1afb2b,_0x5d92cc,_0x56eed0){const _0x3f6d17=_0x42f461;super(_0x277e47,_0x4ef1ea,_0x1cccd2,_0x1afe38,_0xf82d05,_0x5f5729,_0x2c91db,_0x2db378,_0x7d0b0d,_0x42de37,_0x1afb2b,_0x5d92cc,_0x56eed0),this[_0x3f6d17(0x33c)]=_0x277e47,this[_0x3f6d17(0x3b1)]=_0x4ef1ea,this['session']=_0x1cccd2,this[_0x3f6d17(0x474)]=_0x45b3a9,this[_0x3f6d17(0x2fb)]=_0xf778a3,this[_0x3f6d17(0x32f)]=_0x270d4a,this[_0x3f6d17(0x409)]=_0x43d6c1;}[_0x42f461(0x12e)](){const _0x565f1b=_0x42f461,_0x34e2a9=super[_0x565f1b(0x12e)]();return _0x34e2a9['onTransformIME']=_0x38f577=>this[_0x565f1b(0x2fb)][_0x565f1b(0x1c1)](_0x38f577),_0x34e2a9[_0x565f1b(0x154)]=_0x35f845=>this[_0x565f1b(0x32f)]['transformSelections'](_0x35f845),_0x34e2a9[_0x565f1b(0x388)]=_0x1c6f78=>this[_0x565f1b(0x409)]['syncEditingCollabCursor'](_0x1c6f78),_0x34e2a9[_0x565f1b(0x175)]=_0x2beedc=>this[_0x565f1b(0x2fb)][_0x565f1b(0x17d)](_0x2beedc),_0x34e2a9;}async[_0x42f461(0x2b4)](){const _0x454bdc=_0x42f461,_0xc96adb=await super[_0x454bdc(0x2b4)]();return this[_0x454bdc(0x474)][_0x454bdc(0x35f)][_0x454bdc(0x285)](v['takeUntil'](this['dispose$']))[_0x454bdc(0x17e)](_0x1cf26d=>{const _0x3dfe1a=_0x454bdc;if(_0x1cf26d==null)return;const {unitId:_0x3bf495,redoState:_0x2040d1,commandId:_0x819ec9}=_0x1cf26d;if(_0x3bf495!==this['unitID'])return;const _0x262a60={'id':_0x819ec9,'type':o[_0x3dfe1a(0x46b)][_0x3dfe1a(0x1e8)],'params':{'unitId':_0x3bf495,'actions':_0x2040d1[_0x3dfe1a(0x42c)],'textRanges':null}};this['_onLocalMutation'](_0x262a60);}),_0xc96adb;}};Le=Ce([I(0x3,o['Inject'](o['Injector'])),I(0x4,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),I(0x5,o[_0x42f461(0x1f3)](_[_0x42f461(0xcb)])),I(0x6,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)])),I(0x7,o[_0x42f461(0x1f3)](_['RevisionService'])),I(0x8,o[_0x42f461(0x1f3)](L['DocStateChangeManagerService'])),I(0x9,o[_0x42f461(0x1f3)](ge)),I(0xa,o[_0x42f461(0x1f3)](fe)),I(0xb,o[_0x42f461(0x1f3)](Be)),I(0xc,o[_0x42f461(0x218)]),I(0xd,o['ICommandService']),I(0xe,M['IMessageService']),I(0xf,o[_0x42f461(0x114)]),I(0x10,o[_0x42f461(0x122)](Ee))],Le),exports[_0x42f461(0x2cb)]=class extends Ie{constructor(_0x4732c0,_0xe6b005,_0x4509a5,_0x3f8218,_0x2f5048,_0x16485c,_0x863ed9,_0x49f175,_0x1d4312,_0xe6dd46,_0x38845e,_0x3fa030,_0x1e7016,_0x1d1b2f){const _0x2b5dd0=_0x42f461;super(_0x4732c0,_0xe6b005,_0x4509a5,_0x3f8218,_0x2f5048,_0x16485c,_0x863ed9,_0x49f175,_0xe6dd46,_0x38845e,_0x3fa030,_0x1e7016,_0x1d1b2f),this['unitID']=_0x4732c0,this[_0x2b5dd0(0x3b1)]=_0xe6b005,this['session']=_0x4509a5,this['_sheetTransformSelectionsService']=_0x1d4312;}['_createHandler'](){const _0x26cfcb=_0x42f461,_0x4df126=super[_0x26cfcb(0x12e)]();return _0x4df126[_0x26cfcb(0x154)]=_0x4e5928=>this['_sheetTransformSelectionsService'][_0x26cfcb(0x41e)](_0x4e5928),_0x4df126;}async[_0x42f461(0x2b4)](){const _0x165f66=_0x42f461,_0x178ed0=await super[_0x165f66(0x2b4)]();return this[_0x165f66(0x2e2)](this[_0x165f66(0x28d)][_0x165f66(0x2d7)]((_0x2c34c7,_0x476dec)=>{const _0x2440b0=_0x165f66;if(_0x2c34c7['type']!==o['CommandType'][_0x2440b0(0x1e8)]||_0x476dec!=null&&_0x476dec[_0x2440b0(0x245)]||_0x476dec!=null&&_0x476dec[_0x2440b0(0x159)])return;const _0x1b7a4e=_0x2c34c7[_0x2440b0(0x2ec)];if((_0x1b7a4e==null?void 0x0:_0x1b7a4e[_0x2440b0(0xc4)])!==this[_0x2440b0(0x33c)])return;const _0x726b5b=_0x2c34c7,_0x17ad60=this[_0x2440b0(0x276)][_0x2440b0(0x2c2)][_0x2440b0(0x3dd)](this[_0x2440b0(0x276)][_0x2440b0(0x2c2)][_0x2440b0(0x434)]()['COMPRESS_MUTATION_SEND'])([_0x726b5b],null)||[_0x726b5b];this[_0x2440b0(0x343)](_0x17ad60[0x0]);})),_0x178ed0;}},exports['SheetCollaborationEntity']=Ce([I(0x3,o['Inject'](o[_0x42f461(0x13e)])),I(0x4,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),I(0x5,o['Inject'](_[_0x42f461(0xcb)])),I(0x6,o[_0x42f461(0x1f3)](o['LocaleService'])),I(0x7,o[_0x42f461(0x1f3)](_[_0x42f461(0x482)])),I(0x8,o[_0x42f461(0x1f3)](me)),I(0x9,o['ILogService']),I(0xa,o[_0x42f461(0xff)]),I(0xb,M[_0x42f461(0x3f8)]),I(0xc,o[_0x42f461(0x114)]),I(0xd,o[_0x42f461(0x122)](Ee))],exports[_0x42f461(0x2cb)]);const Qe=['purple300','jiqing500',_0x42f461(0x17f),'red300',_0x42f461(0x457),'gold400'];class Fe extends o[_0x42f461(0x216)]{constructor(){const _0x1cee56=_0x42f461;super(...arguments),u(this,_0x1cee56(0x140),new Map()),u(this,_0x1cee56(0x241),0x0);}['assignAColorForMemberID'](_0x53b689){const _0x5eb1e6=_0x42f461;if(this[_0x5eb1e6(0x140)][_0x5eb1e6(0x208)](_0x53b689))return this[_0x5eb1e6(0x140)][_0x5eb1e6(0xc0)](_0x53b689);const _0x4c0ea2=Qe[this[_0x5eb1e6(0x241)]];return this[_0x5eb1e6(0x241)]=(this[_0x5eb1e6(0x241)]+0x1)%Qe[_0x5eb1e6(0x441)],this[_0x5eb1e6(0x140)]['set'](_0x53b689,_0x4c0ea2),_0x4c0ea2;}}var Ps=Object[_0x42f461(0x3c5)],Us=Object['getOwnPropertyDescriptor'],ys=(_0x40e487,_0xcf40f1,_0xc4f61e,_0x57a715)=>{const _0x52a994=_0x42f461;for(var _0x1daf79=_0x57a715>0x1?void 0x0:_0x57a715?Us(_0xcf40f1,_0xc4f61e):_0xcf40f1,_0x50df2f=_0x40e487[_0x52a994(0x441)]-0x1,_0x55bcb7;_0x50df2f>=0x0;_0x50df2f--)(_0x55bcb7=_0x40e487[_0x50df2f])&&(_0x1daf79=(_0x57a715?_0x55bcb7(_0xcf40f1,_0xc4f61e,_0x1daf79):_0x55bcb7(_0x1daf79))||_0x1daf79);return _0x57a715&&_0x1daf79&&Ps(_0xcf40f1,_0xc4f61e,_0x1daf79),_0x1daf79;},X=(_0x5ad730,_0x36cd2b)=>(_0x3b2d77,_0x36fc8a)=>_0x36cd2b(_0x3b2d77,_0x36fc8a,_0x5ad730);const ws=0x12c,Ls=0x64,Ms=()=>{let _0xc67fc0=[],_0x32b761=!0x1;return _0x4e4866=>{const _0x4c9736=_0x527e;_0xc67fc0[_0x4c9736(0x302)](_0x4e4866),_0x32b761||(_0x32b761=!0x0,setTimeout(()=>{const _0x574f63=_0x4c9736;_0xc67fc0[_0x574f63(0x375)](_0x4fe070=>_0x4fe070()),_0xc67fc0=[],_0x32b761=!0x1;}));};};let Me=class extends o[_0x42f461(0x451)]{constructor(_0x4bebc2,_0x378ad6,_0x30fde2,_0x2af41a,_0x2e1410,_0xfd2edc,_0x368dfd,_0x2ba6d2){const _0x23772d=_0x42f461;super(),u(this,_0x23772d(0x3fa),!0x1),u(this,_0x23772d(0x2b4),!0x1),u(this,_0x23772d(0x3bf),new v[(_0x23772d(0x151))](new Map())),u(this,_0x23772d(0x209),this[_0x23772d(0x3bf)][_0x23772d(0xbc)]()),u(this,'_roomMembers$',new v[(_0x23772d(0x151))]([])),u(this,_0x23772d(0x172),this[_0x23772d(0xbf)]['pipe'](v[_0x23772d(0x2a1)](ws))),u(this,_0x23772d(0x410),je((_0x13cbee,_0x4f7775)=>{const _0x4c8ba3=_0x23772d,_0x4a1284={'eventID':_[_0x4c8ba3(0x301)][_0x4c8ba3(0x102)],'data':{'unitID':this[_0x4c8ba3(0x33c)],'memberID':this['_session'][_0x4c8ba3(0x142)](),'selection':Ge[_0x4c8ba3(0x281)](_0x13cbee,_0x4f7775[_0x4c8ba3(0x372)])}};this[_0x4c8ba3(0x1ce)]['send'](_0x4a1284,this[_0x4c8ba3(0x33c)]);},Ls)),(this[_0x23772d(0x33c)]=_0x4bebc2,this[_0x23772d(0x1ce)]=_0x378ad6,this[_0x23772d(0x16e)]=_0x30fde2,this[_0x23772d(0x390)]=_0x2af41a,this[_0x23772d(0x2d2)]=_0x2e1410,this[_0x23772d(0x3c1)]=_0xfd2edc,this['_commandService']=_0x368dfd,this['_refRangeService']=_0x2ba6d2);}get[_0x42f461(0x2b8)](){const _0x7a442e=_0x42f461;return this[_0x7a442e(0x3bf)][_0x7a442e(0x1da)]();}get[_0x42f461(0x203)](){const _0x2d1236=_0x42f461;return this[_0x2d1236(0xbf)][_0x2d1236(0x1da)]();}[_0x42f461(0x442)](){const _0x5b0cc0=_0x42f461;super['dispose'](),this[_0x5b0cc0(0x3bf)][_0x5b0cc0(0x3b2)](new Map()),this['_cursorInfo$'][_0x5b0cc0(0x14d)](),this[_0x5b0cc0(0xbf)][_0x5b0cc0(0x3b2)]([]),this[_0x5b0cc0(0xbf)]['complete']();}[_0x42f461(0x464)](){const _0x1782d9=_0x42f461;this[_0x1782d9(0x2b4)]||(this[_0x1782d9(0x2b4)]=!0x0,this[_0x1782d9(0x1ce)]['sessionStatus$'][_0x1782d9(0x285)](v[_0x1782d9(0x174)](this['dispose$']))[_0x1782d9(0x17e)](_0x52361d=>{_0x52361d===V['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x1782d9(0x1ce)][_0x1782d9(0x35d)][_0x1782d9(0x285)](v['takeUntil'](this['dispose$']))[_0x1782d9(0x17e)](_0x4f7382=>{const _0x215514=_0x1782d9,_0x5ee700=_0x4f7382['eventID'];_0x5ee700===_[_0x215514(0x301)][_0x215514(0x102)]&&this[_0x215514(0x23b)](_0x4f7382),_0x5ee700===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x215514(0x369)](_0x4f7382);}),this[_0x1782d9(0x153)](),this[_0x1782d9(0x2e2)](this[_0x1782d9(0x28d)][_0x1782d9(0x2d7)](_0x15d49e=>{const _0x259d9c=_0x1782d9;if(this[_0x259d9c(0x3fa)]&&_0x15d49e['id']===p[_0x259d9c(0x43e)]['id']&&_0x15d49e[_0x259d9c(0x2ec)][_0x259d9c(0xc4)]===this['unitID']){const _0xfe24c=_0x15d49e[_0x259d9c(0x2ec)];this[_0x259d9c(0x410)](_0xfe24c['subUnitId'],_0xfe24c[_0x259d9c(0x1c0)][0x0]);}})));}[_0x42f461(0x23b)](_0x44f17d){const _0x511f7c=_0x42f461;var _0x2244ed,_0x18c44a;const {memberID:_0x5f4e07,selection:_0x3c4607}=_0x44f17d[_0x511f7c(0x407)],{sheetName:_0x2abc57,range:_0x1cdb57}=Ge[_0x511f7c(0x353)](_0x3c4607),_0x3f1f5d={'name':(_0x18c44a=(_0x2244ed=this[_0x511f7c(0x2d2)][_0x511f7c(0x297)](this['unitID'],_0x5f4e07))==null?void 0x0:_0x2244ed[_0x511f7c(0x1a0)])!=null?_0x18c44a:_0x511f7c(0x333),'range':this[_0x511f7c(0x347)](_0x2abc57,_0x1cdb57),'sheetID':_0x2abc57,'color':this['_colorAssignService'][_0x511f7c(0x30d)](_0x5f4e07),'selection':_0x3c4607},_0x23245d=this[_0x511f7c(0x2b8)];_0x23245d[_0x511f7c(0x1c4)](_0x5f4e07,_0x3f1f5d),this[_0x511f7c(0x3bf)][_0x511f7c(0x3b2)](_0x23245d);}[_0x42f461(0x369)](_0x5a4082){const _0x4753a2=_0x42f461,{memberID:_0x2a07bb}=_0x5a4082[_0x4753a2(0x407)],_0x30b9e6=this['cursorInfo'];_0x30b9e6[_0x4753a2(0x213)](_0x2a07bb),this[_0x4753a2(0x3bf)][_0x4753a2(0x3b2)](_0x30b9e6);}['_getMergeRange'](_0x2ebb94,_0x296cab){const _0x16547e=_0x42f461;var _0xd4c78e,_0x3bb5d2;const _0xbc5c29=(_0x3bb5d2=(_0xd4c78e=this[_0x16547e(0x3c1)][_0x16547e(0x346)](this[_0x16547e(0x33c)]))==null?void 0x0:_0xd4c78e[_0x16547e(0x135)](_0x2ebb94))==null?void 0x0:_0x3bb5d2['getMergeData']();return(_0xbc5c29==null?void 0x0:_0xbc5c29[_0x16547e(0x3d5)](_0x5a36d7=>o[_0x16547e(0x36f)]['contains'](_0x5a36d7,_0x296cab)))||_0x296cab;}['_onRefRangeChange'](){const _0x9896fc=_0x42f461,_0x31e584=new o[(_0x9896fc(0x3f6))](),_0x49e80f=Ms(),_0x1734c=()=>{const _0x44aee1=_0x9896fc;_0x31e584['dispose']();const _0x4c710c=(_0x2a3028,_0x5bd6ef,_0x2d7685,_0x58a041)=>{const _0x25d13e=_0x527e;let _0x378914=[];switch(_0x2a3028['id']){case p[_0x25d13e(0xec)]['DeleteRangeMoveLeftCommandId']:{_0x378914=p[_0x25d13e(0x386)](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0x3da)]:{_0x378914=p['handleDeleteRangeMoveUp'](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0x150)]:{_0x378914=p['handleInsertCol'](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0x30e)]:{_0x378914=p[_0x25d13e(0x3ec)](_0x2a3028,_0x58a041);break;}case p['EffectRefRangId'][_0x25d13e(0x25c)]:{_0x378914=p[_0x25d13e(0x3ef)](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0xfc)]:{_0x378914=p['handleInsertRow'](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0x38e)]:{_0x378914=p[_0x25d13e(0x44a)](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0x186)]:{_0x378914=p[_0x25d13e(0xd7)](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)]['RemoveRowCommandId']:{_0x378914=p[_0x25d13e(0x101)](_0x2a3028,_0x58a041);break;}}const _0x20dd05=p[_0x25d13e(0x34c)](_0x378914,_0x58a041),_0xeeeaba=this[_0x25d13e(0x2b8)]['get'](_0x5bd6ef);if(_0xeeeaba&&_0x20dd05){const _0x93d6a3={..._0xeeeaba,'range':_0x20dd05};this['cursorInfo'][_0x25d13e(0x1c4)](_0x5bd6ef,_0x93d6a3),_0x49e80f(()=>{const _0x1e4f5a=_0x25d13e,_0x22b7a7=this[_0x1e4f5a(0x273)][_0x1e4f5a(0x2c6)](_0x20dd05,_0x50a922=>(_0x22b7a7[_0x1e4f5a(0x442)](),_0x4c710c(_0x50a922,_0x5bd6ef,_0x2d7685,_0x20dd05)));_0x31e584[_0x1e4f5a(0x1eb)](_0x22b7a7);});}return{'redos':[],'undos':[]};};this[_0x44aee1(0x2b8)][_0x44aee1(0x375)]((_0x1e1ea5,_0x448cb0)=>{const _0x9e79fb=_0x44aee1,{range:_0x526c6f,sheetID:_0x14ce5b}=_0x1e1ea5,_0x4c2fd4=this[_0x9e79fb(0x273)][_0x9e79fb(0x2c6)](_0x526c6f,_0x3fc311=>(_0x4c2fd4[_0x9e79fb(0x442)](),_0x4c710c(_0x3fc311,_0x448cb0,_0x14ce5b,_0x526c6f)));_0x31e584['add'](_0x4c2fd4);});};this['disposeWithMe'](o[_0x9896fc(0x262)](this[_0x9896fc(0x3bf)]['subscribe'](()=>{_0x1734c();})));}['_toggleOnline'](){const _0x2623bb=_0x42f461;var _0x3a3104,_0x29fd64;if(this['_online']=!0x0,((_0x3a3104=this[_0x2623bb(0x3c1)][_0x2623bb(0xcc)]())==null?void 0x0:_0x3a3104['getUnitId']())!==this['unitID'])return;const _0x14ffaf=(_0x29fd64=this['_injector']['get'](p[_0x2623bb(0x421)])[_0x2623bb(0x2c9)]())==null?void 0x0:_0x29fd64[0x0],_0x59bb29=this[_0x2623bb(0x3c1)][_0x2623bb(0x2fa)](o[_0x2623bb(0x3a7)][_0x2623bb(0x23d)])['getActiveSheet']();_0x14ffaf&&_0x59bb29&&this['_updateLocalCursor'](_0x59bb29['getSheetId'](),_0x14ffaf);}[_0x42f461(0x178)](){const _0xce3cf0=_0x42f461;this[_0xce3cf0(0x3fa)]=!0x1;}};Me=ys([X(0x2,o['Inject'](o['Injector'])),X(0x3,o[_0x42f461(0x1f3)](Fe)),X(0x4,o['Inject'](W)),X(0x5,o['IUniverInstanceService']),X(0x6,o[_0x42f461(0xff)]),X(0x7,o[_0x42f461(0x1f3)](p[_0x42f461(0x2e9)]))],Me);var Ns=Object[_0x42f461(0x3c5)],As=Object['getOwnPropertyDescriptor'],js=(_0xdd4659,_0x54fbf4,_0xf64455,_0x4c4381)=>{const _0x418956=_0x42f461;for(var _0x8888b2=_0x4c4381>0x1?void 0x0:_0x4c4381?As(_0x54fbf4,_0xf64455):_0x54fbf4,_0x560a93=_0xdd4659[_0x418956(0x441)]-0x1,_0x15f50a;_0x560a93>=0x0;_0x560a93--)(_0x15f50a=_0xdd4659[_0x560a93])&&(_0x8888b2=(_0x4c4381?_0x15f50a(_0x54fbf4,_0xf64455,_0x8888b2):_0x15f50a(_0x8888b2))||_0x8888b2);return _0x4c4381&&_0x8888b2&&Ns(_0x54fbf4,_0xf64455,_0x8888b2),_0x8888b2;},F=(_0x885a8f,_0x1c3781)=>(_0x4fc76d,_0x5a6bcd)=>_0x1c3781(_0x4fc76d,_0x5a6bcd,_0x885a8f);const $s=0x12c,Hs=0x64;let Ne=class extends o['RxDisposable']{constructor(_0x26bf5d,_0x2db998,_0x46cb76,_0x3655ce,_0x3a579a,_0x342e84,_0xfaa224,_0x5a579,_0x35ca13){const _0x9adc3a=_0x42f461;super(),u(this,_0x9adc3a(0x3fa),!0x1),u(this,_0x9adc3a(0x2b4),!0x1),u(this,_0x9adc3a(0x3bf),new v['BehaviorSubject'](new Map())),u(this,_0x9adc3a(0x209),this[_0x9adc3a(0x3bf)][_0x9adc3a(0xbc)]()),u(this,_0x9adc3a(0xbf),new v['BehaviorSubject']([])),u(this,_0x9adc3a(0x172),this[_0x9adc3a(0xbf)][_0x9adc3a(0x285)](v['debounceTime']($s))),u(this,_0x9adc3a(0x410),je(_0x356de1=>{const _0x37d831=_0x9adc3a,_0x1619f5={'eventID':_[_0x37d831(0x301)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x37d831(0x33c)],'memberID':this[_0x37d831(0x1ce)][_0x37d831(0x142)](),'selection':pt(_0x356de1)}};this[_0x37d831(0x1ce)][_0x37d831(0x36d)](_0x1619f5,this['unitID']);},Hs)),(this[_0x9adc3a(0x33c)]=_0x26bf5d,this['_session']=_0x2db998,this[_0x9adc3a(0x16e)]=_0x46cb76,this[_0x9adc3a(0x390)]=_0x3655ce,this[_0x9adc3a(0x2d2)]=_0x3a579a,this[_0x9adc3a(0x197)]=_0x342e84,this[_0x9adc3a(0x269)]=_0xfaa224,this[_0x9adc3a(0x3c1)]=_0x5a579,this[_0x9adc3a(0x28d)]=_0x35ca13);}get[_0x42f461(0x2b8)](){const _0x1017cf=_0x42f461;return this['_cursorInfo$'][_0x1017cf(0x1da)]();}get[_0x42f461(0x203)](){const _0x4bc752=_0x42f461;return this[_0x4bc752(0xbf)][_0x4bc752(0x1da)]();}[_0x42f461(0x442)](){const _0x35aab7=_0x42f461;super[_0x35aab7(0x442)](),this[_0x35aab7(0x3bf)][_0x35aab7(0x3b2)](new Map()),this['_cursorInfo$'][_0x35aab7(0x14d)](),this['_roomMembers$'][_0x35aab7(0x3b2)]([]),this['_roomMembers$']['complete']();}[_0x42f461(0x464)](){const _0x1e9bb5=_0x42f461;this[_0x1e9bb5(0x2b4)]||(this['_init']=!0x0,this[_0x1e9bb5(0x1ce)][_0x1e9bb5(0x227)][_0x1e9bb5(0x285)](v[_0x1e9bb5(0x174)](this[_0x1e9bb5(0x1b8)]))['subscribe'](_0x17af78=>{const _0x59d0af=_0x1e9bb5;_0x17af78===V[_0x59d0af(0x336)]?this[_0x59d0af(0xc6)]():this[_0x59d0af(0x178)]();}),this['_session']['event$'][_0x1e9bb5(0x285)](v[_0x1e9bb5(0x174)](this[_0x1e9bb5(0x1b8)]))[_0x1e9bb5(0x17e)](_0x1c639b=>{const _0x4981c6=_0x1e9bb5,_0x5d5206=_0x1c639b[_0x4981c6(0x35a)];_0x5d5206===_[_0x4981c6(0x301)]['UPDATE_CURSOR']&&this[_0x4981c6(0x23b)](_0x1c639b),_0x5d5206===_[_0x4981c6(0x301)][_0x4981c6(0x427)]&&this[_0x4981c6(0x369)](_0x1c639b);}),this[_0x1e9bb5(0x2e2)](this[_0x1e9bb5(0x28d)][_0x1e9bb5(0x2d7)](_0x43cbdf=>{const _0x3c59e1=_0x1e9bb5,_0xb203ac=_0x43cbdf['params'];_0xb203ac!=null&&this[_0x3c59e1(0x3fa)]&&_0x43cbdf['id']===L[_0x3c59e1(0x378)]['id']&&_0xb203ac['unitId']===this[_0x3c59e1(0x33c)]&&_0xb203ac[_0x3c59e1(0x359)]===!0x1&&this[_0x3c59e1(0x410)](_0xb203ac[_0x3c59e1(0x1af)]);})),this[_0x1e9bb5(0x197)][_0x1e9bb5(0x3c0)][_0x1e9bb5(0x285)](v[_0x1e9bb5(0x174)](this['dispose$']))[_0x1e9bb5(0x17e)](_0x3a358c=>{const _0x371fc6=_0x1e9bb5;if((_0x3a358c==null?void 0x0:_0x3a358c[_0x371fc6(0x33c)])!==this[_0x371fc6(0x33c)])return;const _0x345d12={'eventID':_[_0x371fc6(0x301)][_0x371fc6(0x102)],'data':_0x3a358c};this[_0x371fc6(0x23b)](_0x345d12);}),this[_0x1e9bb5(0x2e2)](this[_0x1e9bb5(0x28d)][_0x1e9bb5(0x2d7)](_0x1acc34=>{const _0x5060ea=_0x1e9bb5;if(_0x1acc34[_0x5060ea(0x2ec)]==null)return;const _0x587b35=_0x1acc34[_0x5060ea(0x2ec)];if(_0x1acc34['id']!==L[_0x5060ea(0x133)]['id']||_0x587b35[_0x5060ea(0xc4)]!==this[_0x5060ea(0x33c)])return;const _0x300fbd={'id':_0x5060ea(0x30a),'params':_0x587b35},_0x4983b0=this[_0x5060ea(0x2b8)];for(const [_0x4d74b7,_0x4679bc]of _0x4983b0){const _0x2aa0b1={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x5060ea(0x33c)],'actions':null,'textRanges':_0x4679bc['ranges']}},_0x1ebfb9=this['_transformService'][_0x5060ea(0x129)](_0x300fbd,_0x2aa0b1,!0x1);if(_[_0x5060ea(0x164)](_0x1ebfb9))throw _0x1ebfb9['error'];_0x4983b0[_0x5060ea(0x1c4)](_0x4d74b7,{..._0x4679bc,'ranges':_0x1ebfb9[_0x5060ea(0x166)][_0x5060ea(0x2ec)][_0x5060ea(0x30f)]});}queueMicrotask(()=>{const _0x718b03=_0x5060ea;this[_0x718b03(0x3bf)][_0x718b03(0x3b2)](_0x4983b0);});})));}['_onCursorUpdate'](_0x3e9668){const _0x1dd53d=_0x42f461;var _0x173a31,_0x423194;const {memberID:_0x3dc7a3,selection:_0x59cc51}=_0x3e9668[_0x1dd53d(0x407)],_0x1d9074=gs(_0x59cc51),_0x2f3474=(_0x423194=(_0x173a31=this['_memberService'][_0x1dd53d(0x297)](this[_0x1dd53d(0x33c)],_0x3dc7a3))==null?void 0x0:_0x173a31['name'])!=null?_0x423194:_0x1dd53d(0x333),_0x2977a7={'color':this[_0x1dd53d(0x390)][_0x1dd53d(0x30d)](_0x3dc7a3),'name':_0x2f3474,'ranges':_0x1d9074},_0x5d838b=this['cursorInfo'];_0x5d838b[_0x1dd53d(0x1c4)](_0x3dc7a3,_0x2977a7),this[_0x1dd53d(0x3bf)]['next'](_0x5d838b);}['_onCursorDelete'](_0x2ff438){const _0x30e62f=_0x42f461,{memberID:_0x4f58b1}=_0x2ff438[_0x30e62f(0x407)],_0x15da6b=this[_0x30e62f(0x2b8)];_0x15da6b[_0x30e62f(0x213)](_0x4f58b1),this[_0x30e62f(0x3bf)][_0x30e62f(0x3b2)](_0x15da6b);}['_toggleOnline'](){const _0x42dae8=_0x42f461;var _0x2e3d73;if(this[_0x42dae8(0x3fa)]=!0x0,((_0x2e3d73=this['_univerInstanceService'][_0x42dae8(0xcc)]())==null?void 0x0:_0x2e3d73[_0x42dae8(0x2d9)]())!==this['unitID'])return;const _0x16f215=this[_0x42dae8(0x16e)][_0x42dae8(0xc0)](L[_0x42dae8(0xce)])[_0x42dae8(0x2c9)](),_0x3a55df=_0x16f215==null?void 0x0:_0x16f215[_0x42dae8(0x145)](L[_0x42dae8(0x14e)]);Array['isArray'](_0x3a55df)&&_0x3a55df[_0x42dae8(0x441)]>0x0&&this[_0x42dae8(0x410)](_0x3a55df);}[_0x42f461(0x178)](){const _0x412838=_0x42f461;this[_0x412838(0x3fa)]=!0x1;}};Ne=js([F(0x2,o['Inject'](o[_0x42f461(0x13e)])),F(0x3,o[_0x42f461(0x1f3)](Fe)),F(0x4,o[_0x42f461(0x1f3)](W)),F(0x5,o[_0x42f461(0x1f3)](Be)),F(0x6,_[_0x42f461(0x37b)]),F(0x7,o[_0x42f461(0x237)]),F(0x8,o[_0x42f461(0xff)])],Ne);var xs=Object['defineProperty'],ks=Object[_0x42f461(0x1b1)],Bs=(_0x25b67e,_0x449227,_0x3324cf,_0x49fc77)=>{for(var _0x16dc99=_0x49fc77>0x1?void 0x0:_0x49fc77?ks(_0x449227,_0x3324cf):_0x449227,_0x2eb532=_0x25b67e['length']-0x1,_0x3579f1;_0x2eb532>=0x0;_0x2eb532--)(_0x3579f1=_0x25b67e[_0x2eb532])&&(_0x16dc99=(_0x49fc77?_0x3579f1(_0x449227,_0x3324cf,_0x16dc99):_0x3579f1(_0x16dc99))||_0x16dc99);return _0x49fc77&&_0x16dc99&&xs(_0x449227,_0x3324cf,_0x16dc99),_0x16dc99;},De=(_0x4ca5d4,_0x3e3472)=>(_0x35595d,_0x111158)=>_0x3e3472(_0x35595d,_0x111158,_0x4ca5d4);let z=class extends o[_0x42f461(0x451)]{constructor(_0x2c712d,_0x268a4b,_0xb1d993){const _0x2e9abf=_0x42f461;super(),u(this,_0x2e9abf(0x2c5),new Map()),u(this,_0x2e9abf(0x1ae),new v[(_0x2e9abf(0x26e))]()),(this[_0x2e9abf(0x3c1)]=_0x2c712d,this['_injector']=_0x268a4b,this[_0x2e9abf(0x34a)]=_0xb1d993,this[_0x2e9abf(0x2b4)]());}[_0x42f461(0x442)](){const _0x1c190b=_0x42f461;super['dispose'](),this[_0x1c190b(0x1ae)][_0x1c190b(0x14d)](),this[_0x1c190b(0x2c5)][_0x1c190b(0x375)](_0xca4032=>_0xca4032[_0x1c190b(0x442)]());}[_0x42f461(0x416)](_0x374e79){const _0x4ad905=_0x42f461;return this[_0x4ad905(0x2c5)]['has'](_0x374e79)?this[_0x4ad905(0x2c5)][_0x4ad905(0xc0)](_0x374e79)[_0x4ad905(0x209)]:this['_entityInit$'][_0x4ad905(0x285)](v[_0x4ad905(0x357)](_0x1095d7=>_0x1095d7[_0x4ad905(0x33c)]===_0x374e79),v[_0x4ad905(0xe5)](_0x7dcee3=>_0x7dcee3['cursorInfo$']));}[_0x42f461(0x2b4)](){const _0x245502=_0x42f461;this[_0x245502(0x3c1)][_0x245502(0x283)](o['UniverInstanceType'][_0x245502(0x23d)])[_0x245502(0x285)](v[_0x245502(0x174)](this['dispose$']))['subscribe'](async _0x4baba6=>{const _0xa55744=_0x245502,_0x436045=_0x4baba6[_0xa55744(0x2d9)](),_0x46e459=await this[_0xa55744(0x29d)](_0x436045);this[_0xa55744(0x1ae)][_0xa55744(0x3b2)](_0x46e459),this['_entities'][_0xa55744(0x1c4)](_0x436045,_0x46e459);}),this[_0x245502(0x3c1)][_0x245502(0x283)](o[_0x245502(0x3a7)][_0x245502(0x46d)])[_0x245502(0x285)](v[_0x245502(0x174)](this[_0x245502(0x1b8)]))[_0x245502(0x285)](v['filter'](_0xc84be0=>!_0xc84be0['getUnitId']()[_0x245502(0x31f)]('__')))[_0x245502(0x17e)](async _0x503128=>{const _0x5dc334=_0x245502,_0x1868e1=_0x503128['getUnitId'](),_0x23e3dc=await this['_startDocCollabCursor'](_0x1868e1);this[_0x5dc334(0x1ae)][_0x5dc334(0x3b2)](_0x23e3dc),this[_0x5dc334(0x2c5)][_0x5dc334(0x1c4)](_0x1868e1,_0x23e3dc);}),v[_0x245502(0x420)](this[_0x245502(0x3c1)]['getTypeOfUnitDisposed$'](o[_0x245502(0x3a7)]['UNIVER_DOC']),this[_0x245502(0x3c1)][_0x245502(0x3c7)](o[_0x245502(0x3a7)][_0x245502(0x23d)]))[_0x245502(0x285)](v[_0x245502(0x174)](this[_0x245502(0x1b8)]))[_0x245502(0x17e)](_0x2174ba=>{const _0x51b19a=_0x245502,_0x145b92=_0x2174ba[_0x51b19a(0x2d9)](),_0x37cf3e=this['_entities'][_0x51b19a(0xc0)](_0x145b92);_0x37cf3e&&(_0x37cf3e[_0x51b19a(0x442)](),this['_entities'][_0x51b19a(0x213)](_0x145b92));});}async[_0x42f461(0x29d)](_0x32e5a3){const _0x674188=_0x42f461,_0x4ab50b=await this[_0x674188(0x34a)]['requireSession'](_0x32e5a3),_0x57e6cc=this[_0x674188(0x16e)][_0x674188(0x1ec)](Me,_0x32e5a3,_0x4ab50b);return _0x57e6cc[_0x674188(0x464)](),_0x57e6cc;}async[_0x42f461(0x229)](_0x23bb38){const _0x572560=_0x42f461,_0x281775=await this[_0x572560(0x34a)][_0x572560(0xf7)](_0x23bb38),_0x3d5e99=this[_0x572560(0x16e)][_0x572560(0x1ec)](Ne,_0x23bb38,_0x281775);return _0x3d5e99[_0x572560(0x464)](),_0x3d5e99;}};z=Bs([o[_0x42f461(0x25d)](o['LifecycleStages'][_0x42f461(0x1df)],z),De(0x0,o[_0x42f461(0x237)]),De(0x1,o['Inject'](o[_0x42f461(0x13e)])),De(0x2,o[_0x42f461(0x1f3)](exports[_0x42f461(0x1bd)]))],z);const ce=0x14,et=0xc8,Pe=0x4,Fs=0x5;function Vs(_0x4985f2,_0x58eae3){const _0x13bc8b=_0x42f461;let {radius:_0x49df6e,width:_0x46a223,height:_0x130f88}=_0x58eae3;_0x49df6e=_0x49df6e!=null?_0x49df6e:0x0,_0x46a223=_0x46a223!=null?_0x46a223:0x1e,_0x130f88=_0x130f88!=null?_0x130f88:0x1e;let _0x33fddd=0x0,_0x59a251=0x0,_0x3ad2c4=0x0;_0x33fddd=_0x59a251=_0x3ad2c4=Math['min'](_0x49df6e,_0x46a223/0x2,_0x130f88/0x2),_0x4985f2[_0x13bc8b(0x2bd)](),_0x4985f2[_0x13bc8b(0x1a5)](_0x33fddd,0x0),_0x4985f2[_0x13bc8b(0x3f9)](_0x46a223-_0x59a251,0x0),_0x4985f2[_0x13bc8b(0x3e1)](_0x46a223-_0x59a251,_0x59a251,_0x59a251,Math['PI']*0x3/0x2,0x0,!0x1),_0x4985f2[_0x13bc8b(0x3f9)](_0x46a223,_0x130f88-_0x3ad2c4),_0x4985f2['arc'](_0x46a223-_0x3ad2c4,_0x130f88-_0x3ad2c4,_0x3ad2c4,0x0,Math['PI']/0x2,!0x1),_0x4985f2[_0x13bc8b(0x3f9)](0x0,_0x130f88),_0x4985f2[_0x13bc8b(0x3f9)](0x0,_0x33fddd),_0x4985f2[_0x13bc8b(0x3e1)](_0x33fddd,_0x33fddd,_0x33fddd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4985f2[_0x13bc8b(0x121)](),_0x58eae3[_0x13bc8b(0xfb)]&&(_0x4985f2['save'](),_0x4985f2['fillStyle']=_0x58eae3[_0x13bc8b(0xfb)],_0x58eae3[_0x13bc8b(0x397)]===_0x13bc8b(0x39a)?_0x4985f2[_0x13bc8b(0xfb)]('evenodd'):_0x4985f2[_0x13bc8b(0xfb)](),_0x4985f2[_0x13bc8b(0x2e7)]());}class be extends T[_0x42f461(0x24e)]{constructor(_0x582ab6,_0x43694a){const _0x408a02=_0x42f461;super(_0x582ab6,_0x43694a),u(this,'color'),u(this,_0x408a02(0x1ca)),(this['color']=_0x43694a==null?void 0x0:_0x43694a[_0x408a02(0x12c)],this[_0x408a02(0x1ca)]=_0x43694a==null?void 0x0:_0x43694a['text']);}static[_0x42f461(0x13a)](_0x38de89,_0xb14542){const _0x13b8a9=_0x42f461,{text:_0x17dbfa,color:_0x3d67a9}=_0xb14542;_0x38de89[_0x13b8a9(0x26b)](),_0x38de89[_0x13b8a9(0x2dc)]=_0x13b8a9(0x2c0);const _0x2fc21f=_0x38de89['measureText'](_0x17dbfa)[_0x13b8a9(0x280)],_0x3936e2=Math[_0x13b8a9(0x2b6)](_0x2fc21f+0x2*Pe,et);Vs(_0x38de89,{'height':ce,'radius':0x4,'width':_0x3936e2,'fill':_0x3d67a9,'evented':!0x1}),_0x38de89[_0x13b8a9(0x239)]=_0x13b8a9(0x36e);const _0x5e2a22=Pe,_0x4a0a92=ce-Fs,_0xf441c1=et-0x2*Pe;if(_0x2fc21f>_0xf441c1){let _0x4a2251='',_0x32d2c7=0x0;for(const _0x6d9471 of _0x17dbfa){const _0x1e8c5d=_0x38de89[_0x13b8a9(0x160)](_0x6d9471)[_0x13b8a9(0x280)];if(_0x32d2c7+_0x1e8c5d<=_0xf441c1-_0x38de89[_0x13b8a9(0x160)]('...')[_0x13b8a9(0x280)])_0x4a2251+=_0x6d9471,_0x32d2c7+=_0x1e8c5d;else{_0x4a2251+='...';break;}}_0x38de89[_0x13b8a9(0x360)](_0x4a2251,_0x5e2a22,_0x4a0a92);}else _0x38de89[_0x13b8a9(0x360)](_0x17dbfa,_0x5e2a22,_0x4a0a92);_0x38de89['restore']();}[_0x42f461(0x32a)](_0x318564){const _0x467724=_0x42f461;be[_0x467724(0x13a)](_0x318564,this);}}const Ws=0x1,Gs=1.5;class Ct extends T['Shape']{constructor(_0x7280ae,_0x2da723){const _0xcb93cc=_0x42f461;super(_0x7280ae,_0x2da723),u(this,_0xcb93cc(0x371)),u(this,'_hovered',!0x1),u(this,_0xcb93cc(0x254)),u(this,_0xcb93cc(0x2ac),''),u(this,_0xcb93cc(0x383),_0xcb93cc(0x1dc)),u(this,'_backgroundColor'),(_0x2da723&&this[_0xcb93cc(0x212)](_0x2da723),this[_0xcb93cc(0x185)][_0xcb93cc(0x31e)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0xcb93cc(0x2db)][_0xcb93cc(0x31e)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x42f461(0x212)](_0x56bd5a){const _0x48309f=_0x42f461;var _0x4afe67,_0x4e21fc,_0xc5a8e4,_0x373325,_0x5161e1,_0x13a9d5;this[_0x48309f(0x371)]=(_0x4afe67=_0x56bd5a['color'])!=null?_0x4afe67:this[_0x48309f(0x371)],this['_hovered']=(_0x4e21fc=_0x56bd5a[_0x48309f(0x309)])!=null?_0x4e21fc:this[_0x48309f(0x2ce)],this[_0x48309f(0x254)]=(_0xc5a8e4=_0x56bd5a['range'])!=null?_0xc5a8e4:this[_0x48309f(0x254)],this[_0x48309f(0x2ac)]=(_0x373325=_0x56bd5a[_0x48309f(0x1a0)])!=null?_0x373325:this[_0x48309f(0x2ac)],this[_0x48309f(0x383)]=(_0x5161e1=_0x56bd5a[_0x48309f(0x38d)])!=null?_0x5161e1:this[_0x48309f(0x383)],this[_0x48309f(0x284)]=(_0x13a9d5=_0x56bd5a[_0x48309f(0x24d)])!=null?_0x13a9d5:this[_0x48309f(0x284)],this[_0x48309f(0x3cf)]({'width':_0x56bd5a['width'],'height':_0x56bd5a[_0x48309f(0x469)]});}['onMouseMove'](_0x23dc2e){const _0x4d9838=_0x42f461,{row:_0xa9f19,column:_0x36e423}=_0x23dc2e;if(_0xa9f19>=this['_range']['startRow']&&_0xa9f19<=this[_0x4d9838(0x254)][_0x4d9838(0x332)]&&_0x36e423>=this[_0x4d9838(0x254)]['startColumn']&&_0x36e423<=this['_range'][_0x4d9838(0xde)]){this[_0x4d9838(0x212)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x42f461(0x478)](_0x4f647c){return!0x1;}[_0x42f461(0x32a)](_0x335523){const _0x5e7836=_0x42f461;T[_0x5e7836(0x1a9)][_0x5e7836(0x13a)](_0x335523,{'width':this[_0x5e7836(0x280)],'height':this['height'],'strokeWidth':Gs,'stroke':this[_0x5e7836(0x371)],'evented':!0x1,'fill':this[_0x5e7836(0x284)]}),this['_hovered']&&(_0x335523[_0x5e7836(0x26b)](),_0x335523[_0x5e7836(0x266)](0x1,0x0,0x0,0x1,this['width'],this[_0x5e7836(0x383)]===_0x5e7836(0x44f)?0x0:-ce),be[_0x5e7836(0x13a)](_0x335523,{'text':this[_0x5e7836(0x2ac)],'color':this['_color']}),_0x335523[_0x5e7836(0x2e7)]());}}var Ys=Object['defineProperty'],Ks=Object['getOwnPropertyDescriptor'],Xs=(_0x1b6240,_0x581c66,_0xcbe5df,_0x23a821)=>{const _0x4c411b=_0x42f461;for(var _0x9b090c=_0x23a821>0x1?void 0x0:_0x23a821?Ks(_0x581c66,_0xcbe5df):_0x581c66,_0xcb4e1d=_0x1b6240[_0x4c411b(0x441)]-0x1,_0x2627a3;_0xcb4e1d>=0x0;_0xcb4e1d--)(_0x2627a3=_0x1b6240[_0xcb4e1d])&&(_0x9b090c=(_0x23a821?_0x2627a3(_0x581c66,_0xcbe5df,_0x9b090c):_0x2627a3(_0x9b090c))||_0x9b090c);return _0x23a821&&_0x9b090c&&Ys(_0x581c66,_0xcbe5df,_0x9b090c),_0x9b090c;},le=(_0x215c83,_0x2d8c2a)=>(_0xc9cf92,_0x686252)=>_0x2d8c2a(_0xc9cf92,_0x686252,_0x215c83);const qs=0x1389;let ue=class extends o[_0x42f461(0x451)]{constructor(_0x1ec9eb,_0x5a814a,_0x1b08d7,_0x35f935){const _0xe34a8d=_0x42f461;super(),u(this,_0xe34a8d(0x1a2),new Set()),u(this,_0xe34a8d(0x2aa),null),(this[_0xe34a8d(0xca)]=_0x1ec9eb,this[_0xe34a8d(0x3c1)]=_0x5a814a,this[_0xe34a8d(0x2ff)]=_0x1b08d7,this[_0xe34a8d(0x324)]=_0x35f935,this[_0xe34a8d(0x2b4)]());}get[_0x42f461(0x330)](){const _0x5a178a=_0x42f461;return this['_renderManagerService'][_0x5a178a(0x251)](this[_0x5a178a(0x3c1)][_0x5a178a(0x2fa)](o[_0x5a178a(0x3a7)]['UNIVER_SHEET'])[_0x5a178a(0x2d9)]())[_0x5a178a(0x235)](J['SheetSkeletonManagerService']);}get['_unitId'](){const _0x150d2b=_0x42f461;return this[_0x150d2b(0x3c1)][_0x150d2b(0x2fa)](o[_0x150d2b(0x3a7)][_0x150d2b(0x23d)])[_0x150d2b(0x2d9)]();}['_init'](){const _0x4c577b=_0x42f461;this[_0x4c577b(0x330)][_0x4c577b(0xd4)]['pipe'](C[_0x4c577b(0x174)](this[_0x4c577b(0x1b8)]),C['switchMap'](_0x51d430=>{const _0x40add1=_0x4c577b;if(_0x51d430){const _0x1a1f9a=_0x51d430[_0x40add1(0x146)];return v[_0x40add1(0x387)](this[_0x40add1(0xca)][_0x40add1(0x416)](this[_0x40add1(0x1cb)]),this[_0x40add1(0x324)][_0x40add1(0x130)])[_0x40add1(0x285)](C['map'](([_0x3f8229,_0x296749])=>{const _0xbf3457=_0x40add1,_0x45fed5=new Map();return _0x3f8229[_0xbf3457(0x375)]((_0x3883c8,_0xd1217a)=>{const _0x45000f=_0xbf3457;if(_0x3883c8['sheetID']===_0x1a1f9a){const _0x4edf23={..._0x3883c8};_0x4edf23[_0x45000f(0x12c)]=_0x296749[_0x3883c8[_0x45000f(0x12c)]],_0x45fed5[_0x45000f(0x1c4)](_0xd1217a,_0x4edf23);}}),{'skeleton':_0x51d430,'cursors':_0x45fed5};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x4c577b(0x17e)](({skeleton:_0x4fee3b,cursors:_0x25c076})=>{const _0x53dc1c=_0x4c577b;this[_0x53dc1c(0x3c3)](),_0x4fee3b&&this[_0x53dc1c(0x18d)](_0x4fee3b,_0x25c076);}),this['_sheetSkeletonManagerService'][_0x4c577b(0xd4)][_0x4c577b(0x17e)](_0x14b1dd=>{const _0x1c650a=_0x4c577b;if(_0x14b1dd==null)return;const {skeleton:_0x135cca}=_0x14b1dd,_0x1b2eaa=this[_0x1c650a(0x2ff)][_0x1c650a(0x251)](this[_0x1c650a(0x1cb)]),{scene:_0x2413a7}=_0x1b2eaa;_0x2413a7[_0x1c650a(0x2c7)][_0x1c650a(0x31e)](je(_0x563e62=>{const _0x3e4b1f=_0x1c650a;var _0x537ddd,_0x6a6fe5;const {offsetX:_0x1c2a90,offsetY:_0x2daf1a}=_0x563e62,{x:_0x47a878,y:_0x4aa7dc}=_0x2413a7[_0x3e4b1f(0x3cd)](T[_0x3e4b1f(0x2b2)]['FromArray']([_0x1c2a90,_0x2daf1a])),{scaleX:_0x17ecb7,scaleY:_0xdbaa6e}=_0x2413a7[_0x3e4b1f(0x379)](),_0x55e184=_0x2413a7[_0x3e4b1f(0x113)](J['VIEWPORT_KEY']['VIEW_MAIN']),_0x334d56=_0x2413a7[_0x3e4b1f(0x337)](T['Vector2']['FromArray']([_0x47a878,_0x4aa7dc]),_0x55e184),_0x1dcf3e=_0x135cca['getCellPositionByOffset'](_0x1c2a90,_0x2daf1a,_0x17ecb7,_0xdbaa6e,_0x334d56);((_0x537ddd=this['_lastPointer'])==null?void 0x0:_0x537ddd[_0x3e4b1f(0x450)])===_0x1dcf3e[_0x3e4b1f(0x450)]&&((_0x6a6fe5=this[_0x3e4b1f(0x2aa)])==null?void 0x0:_0x6a6fe5[_0x3e4b1f(0x112)])===_0x1dcf3e[_0x3e4b1f(0x112)]||this['_cursors']['forEach'](_0x35b5f8=>{const _0x2ec5dd=_0x3e4b1f;_0x35b5f8[_0x2ec5dd(0x3f4)](_0x1dcf3e);});},0x64));});}[_0x42f461(0x18d)](_0x544692,_0x42753b){const _0x7ae08c=_0x42f461;var _0x39db7a;const _0x34b627=(_0x39db7a=this[_0x7ae08c(0x330)][_0x7ae08c(0x316)]())==null?void 0x0:_0x39db7a['skeleton'];if(!_0x34b627)return;const _0x230fda=this[_0x7ae08c(0xcd)]();if(!_0x230fda)return;this[_0x7ae08c(0x1a2)][_0x7ae08c(0x375)](_0x491950=>{const _0x4d1780=_0x7ae08c;_0x491950[_0x4d1780(0x16f)]();});const {scene:_0x46fc36}=_0x230fda,_0x1dc1bd=Js(Array[_0x7ae08c(0x10a)](_0x42753b['values']()))['map'](_0x22d161=>{const _0x5289dc=_0x7ae08c,{color:_0x10e9bd,range:_0x31878e,name:_0x206549,selection:_0x4798e6,sheetID:_0x43f619}=_0x22d161,{startColumn:_0x4185ac,startRow:_0x36e62a,endColumn:_0x3d2605,endRow:_0x288c1e}=_0x31878e,_0x551fe4=J['getCoordByCell'](_0x36e62a,_0x4185ac,_0x46fc36,_0x34b627),_0x2d70ee=J[_0x5289dc(0x1ab)](_0x288c1e,_0x3d2605,_0x46fc36,_0x34b627),{columnHeaderHeightAndMarginTop:_0x1e5fd4}=_0x34b627,{startX:_0x298a1a,startY:_0x3f1062}=_0x551fe4,{endX:_0x3cb096,endY:_0x349506}=_0x2d70ee,_0x406856=_0x3cb096-_0x298a1a,_0x25c165=_0x349506-_0x3f1062,_0x51708d={'labelPosition':_0x3f1062-_0x1e5fd4>=ce?_0x5289dc(0x1dc):'bottom','sheetID':_0x43f619,'range':_0x31878e,'color':_0x10e9bd,'name':_0x206549,'selection':_0x4798e6,'left':_0x298a1a,'top':_0x3f1062,'width':_0x406856,'height':_0x25c165,'evented':!0x1,'zIndex':qs};return new Ct(_0x206549,_0x51708d);});_0x46fc36[_0x7ae08c(0x2d1)](_0x1dc1bd,Ws),this[_0x7ae08c(0x1a2)]=new Set(_0x1dc1bd);}[_0x42f461(0x3c3)](){const _0x56ed62=_0x42f461;var _0x3e494c;(_0x3e494c=this[_0x56ed62(0x1a2)])==null||_0x3e494c[_0x56ed62(0x375)](_0x5e4071=>_0x5e4071['dispose']());}[_0x42f461(0xcd)](){const _0xb5135d=_0x42f461;return J[_0xb5135d(0x392)](this[_0xb5135d(0x3c1)],this[_0xb5135d(0x2ff)]);}};ue=Xs([o[_0x42f461(0x25d)](o['LifecycleStages']['Steady'],ue),le(0x0,o[_0x42f461(0x1f3)](z)),le(0x1,o[_0x42f461(0x237)]),le(0x2,T[_0x42f461(0x18e)]),le(0x3,o[_0x42f461(0x1f3)](o[_0x42f461(0x2cf)]))],ue);function Js(_0x5a98df){const _0x51aff5=_0x42f461,_0x167801=new Map();return _0x5a98df[_0x51aff5(0x375)](_0x3044c4=>{const _0x3609a0=_0x51aff5;if(_0x167801[_0x3609a0(0x208)](_0x3044c4[_0x3609a0(0x168)])){const _0x6ba61c=_0x167801['get'](_0x3044c4[_0x3609a0(0x168)]);_0x6ba61c['name']+=',\x20'+_0x3044c4[_0x3609a0(0x1a0)];}else _0x167801[_0x3609a0(0x1c4)](_0x3044c4[_0x3609a0(0x168)],_0x3044c4);}),Array[_0x51aff5(0x10a)](_0x167801[_0x51aff5(0x294)]());}var w=function(){return w=Object['assign']||function(_0x46c755){const _0x304de1=_0x527e;for(var _0x42184d,_0xff4ff=0x1,_0x50a1af=arguments[_0x304de1(0x441)];_0xff4ff<_0x50a1af;_0xff4ff++){_0x42184d=arguments[_0xff4ff];for(var _0x19dbff in _0x42184d)Object[_0x304de1(0x22d)][_0x304de1(0x158)][_0x304de1(0x356)](_0x42184d,_0x19dbff)&&(_0x46c755[_0x19dbff]=_0x42184d[_0x19dbff]);}return _0x46c755;},w['apply'](this,arguments);},zs=function(_0x16a25a,_0x309363){const _0x9db07c=_0x42f461;var _0x1fe28b={};for(var _0x4c55bd in _0x16a25a)Object[_0x9db07c(0x22d)][_0x9db07c(0x158)][_0x9db07c(0x356)](_0x16a25a,_0x4c55bd)&&_0x309363[_0x9db07c(0x13d)](_0x4c55bd)<0x0&&(_0x1fe28b[_0x4c55bd]=_0x16a25a[_0x4c55bd]);if(_0x16a25a!=null&&typeof Object[_0x9db07c(0x35c)]=='function'){for(var _0x2da9bb=0x0,_0x4c55bd=Object['getOwnPropertySymbols'](_0x16a25a);_0x2da9bb<_0x4c55bd[_0x9db07c(0x441)];_0x2da9bb++)_0x309363[_0x9db07c(0x13d)](_0x4c55bd[_0x2da9bb])<0x0&&Object['prototype'][_0x9db07c(0x3f1)][_0x9db07c(0x356)](_0x16a25a,_0x4c55bd[_0x2da9bb])&&(_0x1fe28b[_0x4c55bd[_0x2da9bb]]=_0x16a25a[_0x4c55bd[_0x2da9bb]]);}return _0x1fe28b;},Ve=y[_0x42f461(0x31b)](function(_0x27e2fd,_0x38fa5f){const _0x38f7bf=_0x42f461;var _0x37241f=_0x27e2fd[_0x38f7bf(0x258)],_0x5c7122=_0x27e2fd['id'],_0x5e8d84=_0x27e2fd[_0x38f7bf(0x1ef)],_0x290513=_0x27e2fd[_0x38f7bf(0xe1)],_0x15b890=zs(_0x27e2fd,['icon','id',_0x38f7bf(0x1ef),_0x38f7bf(0xe1)]),_0x167530='univerjs-icon\x20univerjs-icon-'[_0x38f7bf(0xee)](_0x5c7122,'\x20')[_0x38f7bf(0xee)](_0x5e8d84||'')[_0x38f7bf(0x373)](),_0x12f82c=y[_0x38f7bf(0x2e1)]('_'[_0x38f7bf(0xee)](ei()));return bt(_0x37241f,''[_0x38f7bf(0xee)](_0x5c7122),{'defIds':_0x37241f[_0x38f7bf(0x3a4)],'idSuffix':_0x12f82c['current']},w({'ref':_0x38fa5f,'className':_0x167530},_0x15b890),_0x290513);});function bt(_0x394d83,_0x8241d4,_0xc888df,_0xba4e02,_0x3f4132){const _0x5e1585=_0x42f461;return y[_0x5e1585(0x344)](_0x394d83[_0x5e1585(0x290)],w(w({'key':_0x8241d4},Zs(_0x394d83,_0xc888df,_0x3f4132)),_0xba4e02),(Qs(_0x394d83,_0xc888df)[_0x5e1585(0x35b)]||[])['map'](function(_0x4c461a,_0x11bd97){const _0x304742=_0x5e1585;return bt(_0x4c461a,''[_0x304742(0xee)](_0x8241d4,'-')['concat'](_0x394d83[_0x304742(0x290)],'-')['concat'](_0x11bd97),_0xc888df,void 0x0,_0x3f4132);}));}function Zs(_0x57beaf,_0x202452,_0xbe6174){const _0x6a10fb=_0x42f461;var _0x39170d=w({},_0x57beaf['attrs']);_0xbe6174!=null&&_0xbe6174[_0x6a10fb(0x272)]&&_0x39170d[_0x6a10fb(0xfb)]===_0x6a10fb(0x272)&&(_0x39170d[_0x6a10fb(0xfb)]=_0xbe6174[_0x6a10fb(0x272)]);var _0x4235e2=_0x202452[_0x6a10fb(0x3a4)];return!_0x4235e2||_0x4235e2['length']===0x0||(_0x57beaf[_0x6a10fb(0x290)]==='use'&&_0x39170d[_0x6a10fb(0xc3)]&&(_0x39170d[_0x6a10fb(0xc3)]=_0x39170d['xlink:href']+_0x202452[_0x6a10fb(0x1c9)]),Object[_0x6a10fb(0x2e8)](_0x39170d)[_0x6a10fb(0x375)](function(_0x53ddc8){const _0x4a5fe3=_0x6a10fb;var _0x5a24ae=_0x53ddc8[0x0],_0x234797=_0x53ddc8[0x1];typeof _0x234797==_0x4a5fe3(0x10d)&&(_0x39170d[_0x5a24ae]=_0x234797[_0x4a5fe3(0x128)](/url\(#(.*)\)/,_0x4a5fe3(0x25e)[_0x4a5fe3(0xee)](_0x202452[_0x4a5fe3(0x1c9)],')')));})),_0x39170d;}function Qs(_0x4c885a,_0x357375){const _0x214048=_0x42f461;var _0x4f2577,_0x588aae=_0x357375['defIds'];return!_0x588aae||_0x588aae[_0x214048(0x441)]===0x0?_0x4c885a:_0x4c885a[_0x214048(0x290)]===_0x214048(0x27d)&&(!((_0x4f2577=_0x4c885a['children'])===null||_0x4f2577===void 0x0)&&_0x4f2577[_0x214048(0x441)])?w(w({},_0x4c885a),{'children':_0x4c885a[_0x214048(0x35b)][_0x214048(0x145)](function(_0x285b1f){const _0x3d8072=_0x214048;return typeof _0x285b1f[_0x3d8072(0x345)]['id']=='string'&&_0x588aae&&_0x588aae[_0x3d8072(0x13d)](_0x285b1f[_0x3d8072(0x345)]['id'])>-0x1?w(w({},_0x285b1f),{'attrs':w(w({},_0x285b1f[_0x3d8072(0x345)]),{'id':_0x285b1f[_0x3d8072(0x345)]['id']+_0x357375[_0x3d8072(0x1c9)]})}):_0x285b1f;})}):_0x4c885a;}function ei(){const _0x4ad728=_0x42f461;return Math[_0x4ad728(0x296)]()['toString'](0x24)[_0x4ad728(0x424)](0x2,0x8);}Ve['displayName']=_0x42f461(0x385);var ti={'tag':_0x42f461(0x2c1),'attrs':{'fill':'none','viewBox':_0x42f461(0x42f),'width':'1em','height':_0x42f461(0x157)},'children':[{'tag':'g','attrs':{'clipPath':_0x42f461(0x3fe)},'children':[{'tag':_0x42f461(0x339),'attrs':{'stroke':_0x42f461(0x18b),'d':_0x42f461(0x429),'strokeLinecap':_0x42f461(0x18a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x42f461(0x27d),'attrs':{},'children':[{'tag':_0x42f461(0x44e),'attrs':{'id':_0x42f461(0x22f)},'children':[{'tag':'path','attrs':{'fill':_0x42f461(0x24f),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x42f461(0x22f)]},Tt=y[_0x42f461(0x31b)](function(_0x2f085b,_0x53ea75){const _0x531ddf=_0x42f461;return y[_0x531ddf(0x344)](Ve,Object[_0x531ddf(0x33e)]({},_0x2f085b,{'id':'off-line-single','ref':_0x53ea75,'icon':ti}));});Tt['displayName']=_0x42f461(0x300);var si={'tag':_0x42f461(0x2c1),'attrs':{'fill':_0x42f461(0x267),'viewBox':_0x42f461(0x19a),'width':_0x42f461(0x157),'height':_0x42f461(0x157)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x42f461(0x339),'attrs':{'stroke':_0x42f461(0x18b),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x42f461(0x18a),'strokeLinejoin':_0x42f461(0x18a),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x42f461(0x44e),'attrs':{'id':_0x42f461(0x1fd)},'children':[{'tag':_0x42f461(0x339),'attrs':{'fill':_0x42f461(0x24f),'d':_0x42f461(0x2df),'transform':_0x42f461(0x3e2)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Rt=y[_0x42f461(0x31b)](function(_0x5b0797,_0x39d517){const _0x3cc914=_0x42f461;return y[_0x3cc914(0x344)](Ve,Object[_0x3cc914(0x33e)]({},_0x5b0797,{'id':_0x3cc914(0x395),'ref':_0x39d517,'icon':si}));});Rt[_0x42f461(0x2fd)]=_0x42f461(0x2e3);const ii=_0x42f461(0x3d2),ni=_0x42f461(0x3ae),ri='univer-online-status',oi=_0x42f461(0x274),ai=_0x42f461(0x214),ie={'onlineStatusIcon':ii,'onlineStatusTitle':ni,'onlineStatus':ri,'online':oi,'offline':ai};function ci(_0x2d9b61){const _0x4b2f90=_0x42f461;switch(_0x2d9b61){case D['OFFLINE']:return _0x4b2f90(0x376);case D[_0x4b2f90(0xfd)]:return _0x4b2f90(0x1d0);case D[_0x4b2f90(0x108)]:return'collabStatus.fetchMiss';case D[_0x4b2f90(0x2ea)]:return _0x4b2f90(0x468);case D[_0x4b2f90(0x483)]:case D[_0x4b2f90(0x1d1)]:case D[_0x4b2f90(0x31c)]:return'collabStatus.syncing';case D[_0x4b2f90(0x477)]:return _0x4b2f90(0x2de);}}function Ot(_0x1ac1f5){const _0x2b32d9=_0x42f461,{status$:_0x1e3849}=_0x1ac1f5,_0x578170=M[_0x2b32d9(0x247)](_0x1e3849,D[_0x2b32d9(0x2ea)]),_0x2c2d31=o[_0x2b32d9(0x3e0)](o[_0x2b32d9(0x465)]),_0x3ad99a=_0x578170!==D[_0x2b32d9(0x187)],_0x47b856=_0x2c2d31['t'](ci(_0x578170)),_0x517186=$t(ie[_0x2b32d9(0x2ba)],{[ie[_0x2b32d9(0xfe)]]:_0x3ad99a,[ie[_0x2b32d9(0xd9)]]:!_0x3ad99a}),_0x183b7f=_0x3ad99a?y[_0x2b32d9(0x344)](Rt,null):y[_0x2b32d9(0x344)](Tt,null);return y[_0x2b32d9(0x344)](_0x2b32d9(0x277),{'className':_0x517186},y['createElement'](_0x2b32d9(0x277),{'className':ie[_0x2b32d9(0x40f)]},_0x183b7f),y['createElement'](_0x2b32d9(0x277),{'className':ie[_0x2b32d9(0x1e3)]},_0x47b856));}var li=Object['defineProperty'],hi=Object[_0x42f461(0x1b1)],_i=(_0x186a52,_0x4ade4c,_0x155f24,_0x733d1d)=>{const _0x2c6a88=_0x42f461;for(var _0x56f0ad=_0x733d1d>0x1?void 0x0:_0x733d1d?hi(_0x4ade4c,_0x155f24):_0x4ade4c,_0xf84030=_0x186a52[_0x2c6a88(0x441)]-0x1,_0x2467e8;_0xf84030>=0x0;_0xf84030--)(_0x2467e8=_0x186a52[_0xf84030])&&(_0x56f0ad=(_0x733d1d?_0x2467e8(_0x4ade4c,_0x155f24,_0x56f0ad):_0x2467e8(_0x56f0ad))||_0x56f0ad);return _0x733d1d&&_0x56f0ad&&li(_0x4ade4c,_0x155f24,_0x56f0ad),_0x56f0ad;},he=(_0x2f1055,_0x40b301)=>(_0x44cfb8,_0x4eeab9)=>_0x40b301(_0x44cfb8,_0x4eeab9,_0x2f1055);exports[_0x42f461(0x405)]=class extends o[_0x42f461(0x216)]{constructor(_0xa64dda,_0x45ffa5,_0x388635,_0x413ed4){const _0x57530e=_0x42f461;super(),u(this,'_status$',new v[(_0x57530e(0x151))](D[_0x57530e(0x2ea)])),(this[_0x57530e(0x3c1)]=_0xa64dda,this['_uiPartsService']=_0x45ffa5,this[_0x57530e(0x16e)]=_0x388635,this[_0x57530e(0xdd)]=_0x413ed4,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x42f461(0x2b5)](){const _0x34c8df=_0x42f461;this[_0x34c8df(0x2e2)](this[_0x34c8df(0x433)][_0x34c8df(0x28e)](M[_0x34c8df(0x243)][_0x34c8df(0x177)],()=>o[_0x34c8df(0x148)](ui({'status$':this['_status$'][_0x34c8df(0xbc)]()}),this[_0x34c8df(0x16e)])));}[_0x42f461(0x307)](){const _0x1dc2ef=_0x42f461;this[_0x1dc2ef(0x2e2)](o[_0x1dc2ef(0x262)](this[_0x1dc2ef(0x3c1)]['focused$']['pipe'](v[_0x1dc2ef(0xe5)](()=>{const _0x29b79c=_0x1dc2ef,_0x1bbe72=this[_0x29b79c(0x3c1)][_0x29b79c(0xcc)]();return _0x1bbe72?this[_0x29b79c(0xdd)][_0x29b79c(0x34b)](_0x1bbe72[_0x29b79c(0x2d9)]()):v['of'](null);}),v[_0x1dc2ef(0xe5)](_0x25d028=>_0x25d028?_0x25d028['status$']:v['of'](D[_0x1dc2ef(0x2ea)])))[_0x1dc2ef(0x17e)](_0x4d7a8e=>{const _0xc4348d=_0x1dc2ef;this[_0xc4348d(0x41f)][_0xc4348d(0x3b2)](_0x4d7a8e);})));}},exports[_0x42f461(0x405)]=_i([o[_0x42f461(0x25d)](o[_0x42f461(0x43a)][_0x42f461(0x1df)],exports[_0x42f461(0x405)]),he(0x0,o[_0x42f461(0x237)]),he(0x1,M['IUIPartsService']),he(0x2,o[_0x42f461(0x1f3)](o['Injector'])),he(0x3,o[_0x42f461(0x1f3)](exports[_0x42f461(0x1f4)]))],exports[_0x42f461(0x405)]);function ui(_0x31be25){const {status$:_0x292363}=_0x31be25;return function(){const _0x2b9a1a=_0x527e;return y[_0x2b9a1a(0x344)](Ot,{'status$':_0x292363});};}const We=o[_0x42f461(0x367)]('uni.network.url-service');var di=Object[_0x42f461(0x3c5)],Si=Object[_0x42f461(0x1b1)],vi=(_0x212ba2,_0x106063,_0x4f8dbf,_0x9577d6)=>{const _0x1a10d0=_0x42f461;for(var _0x1eac31=_0x9577d6>0x1?void 0x0:_0x9577d6?Si(_0x106063,_0x4f8dbf):_0x106063,_0x53ab5b=_0x212ba2[_0x1a10d0(0x441)]-0x1,_0x147d6d;_0x53ab5b>=0x0;_0x53ab5b--)(_0x147d6d=_0x212ba2[_0x53ab5b])&&(_0x1eac31=(_0x9577d6?_0x147d6d(_0x106063,_0x4f8dbf,_0x1eac31):_0x147d6d(_0x1eac31))||_0x1eac31);return _0x9577d6&&_0x1eac31&&di(_0x106063,_0x4f8dbf,_0x1eac31),_0x1eac31;},q=(_0x5e74f6,_0x1efac9)=>(_0x1d5cd9,_0x2594c3)=>_0x1efac9(_0x1d5cd9,_0x2594c3,_0x5e74f6);exports[_0x42f461(0x3b3)]=class extends o[_0x42f461(0x451)]{constructor(_0x4b7fe5,_0x1fa521,_0x3a9ee5,_0x422524,_0x4f14cc,_0x481205){const _0xc91468=_0x42f461;super(),this[_0xc91468(0x111)]=_0x4b7fe5,this[_0xc91468(0x313)]=_0x1fa521,this[_0xc91468(0x28d)]=_0x3a9ee5,this['_localCacheService']=_0x422524,this[_0xc91468(0x1b7)]=_0x4f14cc,_0x481205?_0x481205==null||_0x481205[_0xc91468(0x162)]()['then'](()=>this[_0xc91468(0x2b4)]()):(this[_0xc91468(0x313)][_0xc91468(0x43b)](_0xc91468(0x1e1),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xc91468(0x2b4)]());}async['_init'](){const _0x55151f=_0x42f461,_0x149c61=this[_0x55151f(0x111)]['getParam'](_0x55151f(0x399)),_0x31dc33=this['_urlService']['getParam'](_0x55151f(0x3b1));if(!_0x149c61||!_0x31dc33){this[_0x55151f(0x313)]['debug']('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x31dc33)){case A[_0x55151f(0x23d)]:{const _0x574e46=await this[_0x55151f(0x2d4)](_0x149c61);this[_0x55151f(0xdb)](_0x574e46);break;}case A[_0x55151f(0x46d)]:{await this['_loadDoc'](_0x149c61);break;}default:{this[_0x55151f(0x313)][_0x55151f(0x34d)]('[DataLoaderController]',_0x55151f(0x1ee));break;}}}async['_setupSubUnitSync'](_0x5929d9){const _0x483f2b=_0x42f461;await this[_0x483f2b(0x20d)](_0x5929d9),_0x5929d9[_0x483f2b(0x2a0)]['pipe'](v[_0x483f2b(0x174)](this['dispose$']))[_0x483f2b(0x17e)](_0x39c4bc=>{const _0x179726=_0x483f2b;_0x39c4bc&&this[_0x179726(0x118)](_0x39c4bc);}),this[_0x483f2b(0x111)]['urlChange$']['pipe'](v[_0x483f2b(0x174)](this[_0x483f2b(0x1b8)]))[_0x483f2b(0x17e)](()=>this[_0x483f2b(0x20d)](_0x5929d9));}['_updateURLWithCurrentState'](_0x366199,_0xb5763b=!0x1){const _0x16469e=_0x42f461,_0x280947=this[_0x16469e(0x111)][_0x16469e(0x3d1)](_0x16469e(0x462));_0x366199[_0x16469e(0x3d6)]()!==_0x280947&&this['_urlService'][_0x16469e(0x23e)]('subunit',_0x366199['getSheetId'](),_0xb5763b);}async[_0x42f461(0x20d)](_0x26dc1e){const _0x56791f=_0x42f461;var _0x3be7a3;const _0x5da19a=this['_urlService'][_0x56791f(0x3d1)](_0x56791f(0x462));if(!_0x5da19a||!_0x26dc1e[_0x56791f(0x135)](_0x5da19a)){const _0x93206b=_0x26dc1e[_0x56791f(0xd6)]()[0x0],_0x3f5b7f=_0x26dc1e[_0x56791f(0x135)](_0x93206b);if(!_0x3f5b7f)return;this['_updateURLWithCurrentState'](_0x3f5b7f,!0x0),await this[_0x56791f(0x28d)][_0x56791f(0x117)](p[_0x56791f(0x3b4)]['id'],{'unitId':_0x26dc1e[_0x56791f(0x2d9)](),'subUnitId':_0x93206b});return;}((_0x3be7a3=_0x26dc1e[_0x56791f(0x131)]())==null?void 0x0:_0x3be7a3[_0x56791f(0x3d6)]())!==_0x5da19a&&await this['_commandService'][_0x56791f(0x117)](p[_0x56791f(0x3b4)]['id'],{'unitId':_0x26dc1e[_0x56791f(0x2d9)](),'subUnitId':_0x5da19a});}async[_0x42f461(0x2d4)](_0x5a99ae){const _0x30e7c7=_0x42f461;let _0x38bd13=0x0;const _0x46b457=await this['_localCacheService'][_0x30e7c7(0x42d)](_0x5a99ae);return _0x46b457&&(_0x46b457[_0x30e7c7(0x286)]||_0x46b457[_0x30e7c7(0x132)][_0x30e7c7(0x441)]!==0x0)&&(_0x38bd13=_0x46b457[_0x30e7c7(0x14a)]),_0x38bd13===0x0&&this['_logService'][_0x30e7c7(0x43b)](_0x30e7c7(0x1e1),_0x30e7c7(0x449)),this['_snapshotService']['loadSheet'](_0x5a99ae,_0x38bd13);}async['_loadDoc'](_0x1d85fc){const _0x27ea42=_0x42f461;let _0x17a9ca=0x0;const _0x5c7006=await this[_0x27ea42(0x19f)]['loadOfflineData'](_0x1d85fc);return _0x5c7006&&(_0x5c7006[_0x27ea42(0x286)]||_0x5c7006[_0x27ea42(0x132)][_0x27ea42(0x441)]!==0x0)&&(_0x17a9ca=_0x5c7006[_0x27ea42(0x14a)]),_0x17a9ca===0x0&&this['_logService'][_0x27ea42(0x43b)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x27ea42(0x1b7)]['loadDoc'](_0x1d85fc,_0x17a9ca);}},exports[_0x42f461(0x3b3)]=vi([o[_0x42f461(0x25d)](o['LifecycleStages'][_0x42f461(0x1df)],exports['DataLoaderController']),q(0x0,We),q(0x1,o[_0x42f461(0x218)]),q(0x2,o[_0x42f461(0xff)]),q(0x3,o['Inject'](exports[_0x42f461(0x3a0)])),q(0x4,o['Inject'](_['SnapshotService'])),q(0x5,o['Optional'](Ht[_0x42f461(0x3cc)]))],exports['DataLoaderController']);var gi=Object['defineProperty'],fi=Object[_0x42f461(0x1b1)],mi=(_0x1316ad,_0x530a22,_0xf663db,_0xbeff14)=>{for(var _0x14b668=_0xbeff14>0x1?void 0x0:_0xbeff14?fi(_0x530a22,_0xf663db):_0x530a22,_0x3a2d7c=_0x1316ad['length']-0x1,_0x3f6c3e;_0x3a2d7c>=0x0;_0x3a2d7c--)(_0x3f6c3e=_0x1316ad[_0x3a2d7c])&&(_0x14b668=(_0xbeff14?_0x3f6c3e(_0x530a22,_0xf663db,_0x14b668):_0x3f6c3e(_0x14b668))||_0x14b668);return _0xbeff14&&_0x14b668&&gi(_0x530a22,_0xf663db,_0x14b668),_0x14b668;},tt=(_0x3cdf07,_0x13011b)=>(_0x25c7f1,_0x2bcc00)=>_0x13011b(_0x25c7f1,_0x2bcc00,_0x3cdf07);const Ii='DEFAULT_FILE_NAME',pi=_0x42f461(0x36b);let de=class extends o[_0x42f461(0x216)]{constructor(_0x18c3f,_0x943185){const _0x5c9c3e=_0x42f461;super(),this[_0x5c9c3e(0x3c1)]=_0x18c3f,this[_0x5c9c3e(0x408)]=_0x943185,this['_init']();}[_0x42f461(0x2b4)](){const _0x1766ee=_0x42f461;this[_0x1766ee(0x2e2)](o[_0x1766ee(0x262)](this[_0x1766ee(0x3c1)][_0x1766ee(0x1b9)][_0x1766ee(0x17e)](()=>{const _0x2ca57d=_0x1766ee;var _0x14dc8e;const _0x3e9715=this[_0x2ca57d(0x3c1)][_0x2ca57d(0xcc)]();let _0x421cad=(_0x14dc8e=this[_0x2ca57d(0x408)][_0x2ca57d(0x1b4)](Ii))!=null?_0x14dc8e:pi;_0x3e9715 instanceof o[_0x2ca57d(0x455)]&&(_0x421cad=_0x3e9715[_0x2ca57d(0x1a0)]),document[_0x2ca57d(0x406)]=_0x421cad;})));}};de=mi([o['OnLifecycle'](o[_0x42f461(0x43a)][_0x42f461(0x2f5)],de),tt(0x0,o[_0x42f461(0x237)]),tt(0x1,o[_0x42f461(0x398)])],de);var Ei=Object[_0x42f461(0x3c5)],Ci=Object[_0x42f461(0x1b1)],bi=(_0x383b83,_0x545ea2,_0x43a691,_0x4895ec)=>{const _0x29096a=_0x42f461;for(var _0x53fd80=_0x4895ec>0x1?void 0x0:_0x4895ec?Ci(_0x545ea2,_0x43a691):_0x545ea2,_0x2b968f=_0x383b83[_0x29096a(0x441)]-0x1,_0x17e0af;_0x2b968f>=0x0;_0x2b968f--)(_0x17e0af=_0x383b83[_0x2b968f])&&(_0x53fd80=(_0x4895ec?_0x17e0af(_0x545ea2,_0x43a691,_0x53fd80):_0x17e0af(_0x53fd80))||_0x53fd80);return _0x4895ec&&_0x53fd80&&Ei(_0x545ea2,_0x43a691,_0x53fd80),_0x53fd80;},st=(_0x395c16,_0x2a42fd)=>(_0x5076d6,_0x21fd1e)=>_0x2a42fd(_0x5076d6,_0x21fd1e,_0x395c16);function _0x3600(){const _0x2d0a98=['_hover','SNAPSHOT_SERVER_URL_KEY','_initStatusListener','image/jpeg','hovered','doc.mutation.rich-text-editing','objectID','/-/object/list','assignAColorForMemberID','InsertRangeMoveDownCommandId','textRanges','_clearHeartbeatTimer','_collaborationSessionService','_notificationService','_logService','SNAPSHOT_URL_KEY','_unitID','getCurrent','_transformSelections','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','popstate','LocalUndoRedoService','forwardRef','AWAITING_WITH_PENDING','getCollabEntity','subscribeEvent','startsWith','setAlpha','_onFetchMissResult','OTHER_CLIENTS_EDITING','CollaborationSession','_themeService','RETRY_CONNECTING_MAX_COUNT','permission.content','image/bmp','shareReplay','/collaborator','_draw','apply','_hideTimer','_sessions','updateOfflineData','_docTransformSelectionsService','_sheetSkeletonManagerService','_heartbeatTimer','endRow','Unknown\x20user','mapTo','updateCursorEvent','ONLINE','getVpScrollXYInfoByPosToVp','ImageSourceType','path','saveSheetBlock','ws://127.0.0.1:8000/universer-api/comb/connect','unitID','CHANGESET_REJ','assign','_socketMessageSubscription','ICollaborationSocketService','Warning','@univerjs/docs','_onLocalMutation','createElement','attrs','getUniverSheetInstance','_getMergeRange','_handler','put','_collabSessionService','getCollabEntity$','runRefRangeMutations','error','FAIL','SheetPermissionInitController','UNRECOGNIZED','/rev/','changesets','deserializeRangeWithSheet','_initCloseConn','UNIVER_SLIDE','call','filter','resolve','isEditing','eventID','children','getOwnPropertySymbols','event$','isPermissionRej','docStateChange$','fillText','addEventListener','setTimeout','_replaceFileID','ThresholdInterceptorFactory','getUnitStatus$','ERROR_EXCEED_SIZE','createIdentifier','deepClone','_onCursorDelete','UNIVER_UNKNOWN','Univer','COLLAB_WEB_SOCKET_URL_KEY','send','#FFF','Rectangle','onRemoteChangeset','_color','range','trim','error$','forEach','collabStatus.offline','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','SetTextSelectionsOperation','getAncestorScale','body','ITransformService','reject','_substituteUndoStack','/resources','synced','_handleEvent','saveImage','patch','_labelPosition','append','UniverIcon','handleDeleteRangeMoveLeft','combineLatest','onSyncEditingCollabCursor','state','_selfUnitIDs','infoRsp','LIVESHARE_TERMINATE','labelPosition','MoveRangeCommandId','276sifmhL','_colorAssignService','_getLoginPath','getSheetObject','href','image/png','on-line-single','getRangePointData','fillRule','IConfigService','unit','evenodd','RETRY_CONNECTING_INTERVAL','_disabled','_setupBeforeClosingHandler','m1Prime','TEXT_RANGE_LAYER_INDEX','LocalCacheService','_localStorageService','connection\x20error','@univerjs/design','defIds','split','_clearScheduledTask','UniverInstanceType','/role','CHANGESET_REVISION_CONFILICT','putCollaborators','SnapshotServerOverHTTPService','saveChangeset','_http','univer-online-status-title','BASE64','getCurrentRevForDocument','type','next','DataLoaderController','SetWorksheetActivateCommand','_createInitialState','objectType','/universer-api/snapshot','c1Prime','SUCCUSS','20oovdIj','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','urlChange$','status','key','_cursorInfo$','collabCursorState$','_univerInstanceService','RegularPolygon','_removeCollabCursors','commentUpdateEvent','defineProperty','LOCAL_CACHE_INTERVAL_KEY','getTypeOfUnitDisposed$','_scheduleClearOtherTimer','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_socketReady','[CollaborationEntity]','IRemoteInstanceService','getRelativeToViewportCoord','editing\x20status\x20changed\x20to','transformByState','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getParam','univer-online-status-icon','getOffsetConfig','_fetchMissChangesets','find','getSheetId','_scene','HEARTBEAT_INTERVAL_KEY','_ensureSubject','DeleteRangeMoveUpCommandId','lodash/debounce','fromEvent','fetchThroughInterceptors','POST','originalMeta','useDependency','arc','translate(.97)','USERS_ENTER','HEARTBEAT_TIMEOUT_KEY','_showConflictNotification','sessionStatus','[FetchMissState]','resend','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','23564sYGUvP','handleInsertRangeMoveDown','/unit/','state$','handleInsertRangeMoveRight','override','propertyIsEnumerable','PERMISSION_REJ','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','onMouseMove','_scheduleTimestamp','DisposableCollection','_collaborationPaused','IMessageService','lineTo','_online','MSG_FOR_ERROR','reduce','APPLY_REVISION_CONFILICT','url(#off-line-single_clip0_910_343)','flatMap','exhaustSavingTask','open$','onSendChangeset','_collabCursorState$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','DesktopCollaborationStatusDisplayController','title','data','_configService','_docSyncEditingCollabCursorService','getUnitType','univer-pro.collaboration-client.single-active-unit-service','_onConnectionOpen','@univerjs/core','_state$','onlineStatusIcon','_updateLocalCursor','[UniverCollaborationClientPlugin]','responseType','_HTTPService','[OfflineState]:\x20received\x20acknowledgement.','/block/','getCollabCursors$','take','awaiting','result','_commentService','_initModules','_commentUpdate$','ISnapshotServerService','transformSelections','_status$','merge','SheetsSelectionsService','649552cLxRyL','onload','substring','/fetchmissing?from=','ERROR_IMAGE','USERS_LEAVE','\x0aAfter:\x20','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','post','newCsEvent','actions','loadOfflineData','awaiting_with_pending','0\x200\x2016\x2016','[PendingState]:\x20received\x20rejection.','transformMutationsWithChangeset','SUBMIT_CHANGESET','_uiPartsService','getInterceptPoints','collaborators','CommentService','SessionStatus','_getSnapshotAPIPrefix','_onMessage','LifecycleStages','debug','c2Prime','UNIVER_COLLABORATION_CLIENT_PLUGIN','SetSelectionsOperation','method','_updateStatus','length','dispose','session.collaboration-timeout','_singleActiveUnitService','/universer-api/snapshot/','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRemoteRejected','INGEST','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','handleMoveRange','then','_anchorDot','[PendingState]:\x20unhandled\x20univer\x20type:\x20','clipPath','bottom','column','RxDisposable','members','_submitChangeset','LIVESHARE_FETCH_OPERATIONS','Workbook','_getUndoStack','blue400','[CollaborationSessionService]','_sendingTimer','includes','_revisionService','_messageService','rxjs/operators','_undoRedoService','toStringTag','@univerjs/sheets-ui','RECV','subunit','_docSkeletonManagerService','init','LocaleService','_clearRedo','Error','collabStatus.notCollab','height','serializeCombRequest','CommandType','APPLY_PERMISSION_DENIED','UNIVER_DOC','UniverCollaborationPlugin','[OfflineState]:\x20received\x20rejection.','closeSession','_scheduleReconnection','stringify','IImageIoService','_docStateChangeManagerService','_state','react','SYNCED','triggerDblclick','UUID','COLORS','_eventUnsubscribe','unknown','_transformPreviousActiveRange','pluginName','_updateLocalCache','change$','rxjs','RevisionService','PENDING','disposeUnit','isArray','COMPLETION_FINISHED','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_queuedRemoteChangesets','transformStack\x20failed!','asObservable','SNAPSHOT_INVALID_SNAPSHOT','@univerjs/sheets','_roomMembers$','get','black','LIVESHARE_OPERATION','xlink:href','unitId','UNAUTHENTICATED','_toggleOnline','@univerjs-pro/collaboration','_sessionStatus$','isTransformMutationsWithChangesetSuccess','_collabCursorController','CompressMutationService','getFocusedUnit','_getSheetObject','TextSelectionManagerService','IUndoRedoService','_change$','_textBubble','SHOULD_CLOSE_CONN','_event$','currentSkeleton$','setItem','getUnhiddenWorksheets','handleIRemoveCol','LIVESHARE_NEW_HOST','offline','delay','_setupSubUnitSync','_substituteRedoStack','_collaborationController','endColumn','YUUMI_UNABLE_LOAD_URL','newValue','extend','\x20in\x20_schedule.','_handleHover','toggleOffline','switchMap','_pendingMutations','YUUMI_URL_COL_OUT_OF_RANGE','storage','clearInterval','routeKey','_unitOnClients','EffectRefRangId','_createSocket','concat','toRgbString','getItem','_collaborationTimeoutTimer','_initMergeInterceptor','UniverCollaborationClientPlugin','XHRHTTPImplementation','concatMap','cmd','requireSession','session.room-full','removeMember','_permissionService','fill','InsertRowCommandId','CONFLICT','online','ICommandService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','handleIRemoveRow','UPDATE_CURSOR','_handleHeartbeatEvent','unload','_id','auth.needGotoLoginAlert','_getSaveTimeout','FETCH_MISS','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','from','requestParams','listRoles','string','collab-text-anchor-','close$','enableSingleActiveInstanceLock','_urlService','row','getViewport','IPermissionService','FETCH_MISSING','registerHTTPInterceptor','executeCommand','_updateURLWithCurrentState','getCurrentUser','_exhaustRemoteChangesetQueue','Plugin','Tools','[CollaborationState]:\x20apply\x20error!','_roomMembers','onRemoteAck','getActiveRange','closePath','Optional','parseProtocolChangeset','unit-cache-','_scheduleHeartbeat','_executeRemoteChangeset','_socketService','replace','transformMutation','CollaborationSocketService','saveOfflineData','color','pending','_createHandler','_members','currentTheme$','getActiveSheet','mutations','RichTextEditingMutation','baseRev','getSheetBySheetId','editingUnit','_clearTimeoutTimer','isTransformMutationsWithChangesetFailure','create','drawWith','LIVESHARE_REQUEST_HOST','_transformUndoRedoStack','indexOf','Injector','18938jgpwDd','_assignedColors','_updateState','getMemberID','_getSignURL','@univerjs/drawing','map','sheetId','_config','connectInjector','ImageUploadStatusType','rev','_retryCount','HELLO','complete','serializeTextRange','createSocket','InsertColCommandId','BehaviorSubject','_replayCachedMutations','_onRefRangeChange','onTransformSelections','WebSocketService','INTERNAL_ERROR','1em','hasOwnProperty','onlyLocal','addObject','37884cYmsmh','_localeService','_clearLocalCache','_getDocObject','initWorkbookPermissionChange','measureText','_cachedData','whenReady','&to=','isTransformMutationFailure','IMEInputManagerService','m2Prime','ALREADY_EXISTS','selection','_waitCount','JOINING','_ws','/allowed','_onRemoteChangeset','_injector','makeDirty','NOT_FOUND','workbook','roomMembers$','LICENSE_DISTRO_REJECTED','takeUntil','onTransformRemoteChangesetByIMECache','_checkMissing','HEADER_MENU','_toggleOffline','getViewModel','pushState','deserializeToCombResponse','incrementRevForDocument','transformRemoteChangeset','subscribe','verdancy600','/object','_acknowledgedAwaitingChangeset','1742877fKPWQb','ImageIoService','getImage','onPointerEnter$','RemoveColCommandId','OFFLINE','unsubscribe','collaborationUniverTypes','round','currentColor','@univerjs/network','_updateCollabCursors','IRenderManagerService','close','enableAuthServer','MergeInterceptorFactory','@univerjs/engine-formula','AuthzIoHttpService','WorkbookEditablePermission','headers','onTransformIME','_syncEditingCollabCursorService','COMPRESS_MUTATION_APPLY','code','0\x200\x2017\x2016','_createInitialStateImpl','size','[PendingState]:\x20received\x20acknowledgement.','_transformIMECache','_localCacheService','name','ILocalStorageService','_cursors','PSEUDO_FETCH_MISSING_RESULT','enableOfflineEditing','moveTo','conflict.content','12820HhmCJL','_onConnectionFailed','Rect','_getScale','getCoordByCell','collaboratorID','_handleJoinEvent','_entityInit$','ranges','HEARTBEAT_INTERVAL','getOwnPropertyDescriptor','_getRedoStack','disableLocalCache','getConfig','_httpService','allowed','_snapshotService','dispose$','focused$','revision','/universer-api/oidc/authpage','?url=','CollaborationSessionService','_render','_syncEditingCollabCursor','selections','transformIMECache','COLLAB_WEB_SOCKET_URL','[OfflineState]:\x20received\x20changeset.','set','FileId','compose','_getCtorByUniverType','setInterval','idSuffix','text','_unitId','_transformStack','?size=','_session','_beforeCloseService','collabStatus.conflict','AWAITING','IAuthzIoService','file','_joinRoom','_transitionLocked','_shapes','CHANGESET_ACK','joinEvent','location','getValue','image/jpg','top','_onConflict','csAckEvent','Starting','UNKNOWN_CMD','[DataLoaderController]','\x0aCurrent:\x20','onlineStatusTitle','Error\x20on\x20receiving\x20event','pauseCollaboration','NodePositionConvertToCursor','clearTimeout','MUTATION','catch','_clearOtherTimers','add','createInstance','_clearCollaborationTimeoutTimer','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','className','history','unshift','[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.','Inject','CollaborationController','_anchor','@univerjs/rpc','_getUploadFileURL','_scheduleSaving','b64DecodeUnicode','getRoom','_incrementRevisionNumber','conflict','on-line-single_clip0_910_349','_unlockTransition','57uwDMkl','max','_handleLeaveEvent','_rescheduleHeartbeatEvent','roomMembers','isTransformChangesetsSuccess','_userManagerService','_lockTransition','_getAPIPrefixPath','has','cursorInfo$','show','_startCollaboration','@univerjs/engine-render','_updateSubUnitFromURLParams','mergeOverrideWithDependencies','_type','transformUndoRedo','fetchMissingChangesets','setShapeProps','delete','univer-offline','[CollaborationUndoRedoService]','Disposable','_onUserLeave','ILogService','appendMutation','batchAllowed','_decreaseWaiting','clear','_removeRoom','TOO_MANY_REQUESTS','LOCAL_CACHE_INTERVAL','_snapshotServerService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','failed\x20to\x20apply\x20missed\x20changesets!','userID','COMMENT_UPDATE','updateMember','_getAnchorBounding','sessionStatus$','IDLE','_startDocCollabCursor','_remoteChangesetQueue','LOGIN_URL_KEY','_tryEnsureSocket','prototype','HEARTBEAT','off-line-single_clip0_910_343','_redoStacks','_imageSourceCache','JOIN','_timeoutTimer','snapshot','with','conflict.title','IUniverInstanceService','generateRandomId','fillStyle','reverse','_onCursorUpdate','parse','UNIVER_SHEET','setParam','SEND_CHANGESET_TIMEOUT','toggleOnline','_colorIndex','onMissingChangesets','BuiltInUIPart','[CollaborationSession]','fromCollab','replaceState','useObservable','/new_changes','/object/','fetch_missing','UNDEFINED','localeService','backgroundColor','Shape','#fff','/universer-api/authz','getRenderById','toString','1332881XBoGgU','_range','ColorKit','APPLY_REJECT','getUnitOnRev','icon','save\x20fail\x20reason\x20is\x20','transformChangesets','_isPermissionRej','InsertRangeMoveRightCommandId','OnLifecycle','url(#$1','findNodePositionByCharIndex','setActiveRange','onMissedChangesetFetched','toDisposable','_onRecvEvent','_send','getImageSourceCache','transform','none','_applyRemoteChangeset','_transformService','getDataModel','save','1CxDbzy','readAsDataURL','Subject','_socket$','_transformRemoteChangesetByIMECache','univer-pro.collaboration-client-socket-service','colorChannel1','_refRangeService','univer-online','symbol','_compressMutationService','div','image/gif','status$','_getCurrentRevision','updatePermissionPoint','INVALID_ARGUMENT','defs','memberID','deleteCollaborator','width','serializeRangeWithSheet','_schedule','getTypeOfUnitAdded$','_backgroundColor','pipe','awaitingChangeset','UNKNOWN_CODE','collaboration.closeRoom','LICENSE_IMPORT_SIZE_EXCEEDED','url','_saveCache','_drawRange','_commandService','registerComponent','_awaitingChangeset','tag','json','_retryConnectingTimer','UPDATE_PERMISSION_OBJ','values','_removeClearOtherTimer','random','getMember','InsertSheetMutation','CollaborationStatusDisplay','clsx','_transformUndoredo','ERROR_IMAGE_TYPE','_startSheetCollabCursor','isInternalEditorID','commentUpdate$','activeSheet$','debounceTime','PERMISSION_DENIED','socket\x20close','_sendHeartbeat','_onJoinRoomEvent','_scheduleCollaborationTimeoutTimer','setCurrentUser','NO_OTHER_CLIENTS_EDITING','_socket','_lastPointer','IBeforeCloseService','_name','MessageType','LEAVE','onRemoteRej','distinctUntilChanged','syncEditingCollabCursor','Vector2','roomInfos','_init','_initStatusComponent','min','_getAPIPrefix','cursorInfo','_onRemoteACK','onlineStatus','IURLService','_undoStacks','beginPath','_getSendChangesetTimeout','list','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','svg','interceptor','listCollaborators','APPLY_NON_SEQUENTIAL_REVISION','_entities','registerRefRange','onPointerMove$','_initUnitPermissionChange','getCurrentSelections','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','SheetCollaborationEntity','_onCombEvent','all','_hovered','ThemeService','isActive','addObjects','_memberService','leaveEvent','_loadSheet','_saveTaskMap','_sendHeartbeatTimer','onCommandExecuted','objects','getUnitId','HTTPService','onPointerLeave$','font','message$','collabStatus.synced','M0\x200H16V16H0z','CONNECTOR_DATA_TOO_LARGE','useRef','disposeWithMe','OnLineSingle','encodeURIComponent','[SyncedState]:\x20received\x20acknowledgement.','getColor','restore','entries','RefRangeService','NOT_COLLAB','_cursor','params','session.will-retry','hide','_onUserJoin','_unitStatus','_clearUndo','\x20-\x20','NEW_CHANGESETS','LICENSE_EXPORT_SIZE_EXCEEDED','Ready','permissionRejEvent','mapDocumentTypeToUniverType','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_disableEditing','getCurrentUnitForType','_docTransformIMECacheService','rgba(255,\x20255,\x20255,\x200.01)','displayName','liveShareNewHost','_renderManagerService','OffLineSingle','CollaborationEvent','push','/universer-api/comb','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.'];_0x3600=function(){return _0x2d0a98;};return _0x3600();}exports[_0x42f461(0x3ab)]=class{constructor(_0x3bbfc5,_0x24092b){const _0x45bb24=_0x42f461;this[_0x45bb24(0x408)]=_0x3bbfc5,this['_httpService']=_0x24092b;}async[_0x42f461(0x257)](_0x3fe7ae,_0xe1b349){const _0x167361=_0x42f461;var _0x5eb881;const {unitID:_0x3a69f4,type:_0x5aa267,revision:_0x19a929=0x0}=_0xe1b349,_0x2af879=this[_0x167361(0x438)]()+'/'+_0x5aa267+_0x167361(0x3ed)+_0x3a69f4+_0x167361(0x351)+_0x19a929,_0x283066=(await this[_0x167361(0x1b5)][_0x167361(0xc0)](_0x2af879))[_0x167361(0x37a)],_0x534cee=(_0x5eb881=_0x283066[_0x167361(0x234)])==null?void 0x0:_0x5eb881[_0x167361(0x171)];if(_0x534cee){const _0x593cee=_0x534cee==null?void 0x0:_0x534cee[_0x167361(0x3df)],_0x31d604=o['textEncoder']['encode'](o[_0x167361(0x1f9)](_0x593cee));_0x534cee[_0x167361(0x3df)]=_0x31d604,Object[_0x167361(0x2e8)](_0x534cee['sheets'])[_0x167361(0x375)](([,_0x3a7b58])=>{const _0x31d5cf=_0x167361,_0x183238=_0x3a7b58[_0x31d5cf(0x3df)],_0x1dd884=o['textEncoder']['encode'](o[_0x31d5cf(0x1f9)](_0x183238));_0x3a7b58['originalMeta']=_0x1dd884;});}return _0x283066;}async['getSheetBlock'](_0x3c6b00,_0x4216b1){const _0x391c5d=_0x42f461,{unitID:_0x51e554,type:_0x2c17a2,blockID:_0x43c590}=_0x4216b1,_0xe14c3a=this['_getAPIPrefix']()+'/'+_0x2c17a2+_0x391c5d(0x3ed)+_0x51e554+_0x391c5d(0x415)+_0x43c590;return(await this[_0x391c5d(0x1b5)]['get'](_0xe14c3a))[_0x391c5d(0x37a)];}async[_0x42f461(0x211)](_0x3aa9b1,_0xc27bbb){const _0x279fc9=_0x42f461,{unitID:_0x49867e,type:_0x9ee47e,from:_0x436aae,to:_0x309caf}=_0xc27bbb,_0x323bad=this[_0x279fc9(0x2b7)]()+'/'+_0x9ee47e+_0x279fc9(0x3ed)+_0x49867e+_0x279fc9(0x425)+_0x436aae+_0x279fc9(0x163)+_0x309caf;return(await this['_httpService'][_0x279fc9(0xc0)](_0x323bad))[_0x279fc9(0x37a)];}[_0x42f461(0x438)](){const _0x2c5864=_0x42f461;var _0x26001f;return(_0x26001f=this[_0x2c5864(0x408)][_0x2c5864(0x1b4)](at))!=null?_0x26001f:this['_getAPIPrefix']();}[_0x42f461(0x2b7)](){const _0x5490b1=_0x42f461;var _0x377da5;return(_0x377da5=this[_0x5490b1(0x408)][_0x5490b1(0x1b4)](ot))!=null?_0x377da5:xt;}async['getResourcesRequest'](_0x19fdd1,_0x34845a){const _0x546db7=_0x42f461,_0x1abe8f=_0x546db7(0x445)+_0x34845a[_0x546db7(0x3b1)]+'/unit/'+_0x34845a[_0x546db7(0x33c)]+_0x546db7(0x37e);return(await this['_httpService'][_0x546db7(0xc0)](_0x1abe8f,{'params':{'resourceId':JSON[_0x546db7(0x472)](_0x34845a['resourceIDs'])}}))['body'];}['saveSnapshot'](){const _0x56de56=_0x42f461;throw new Error(_0x56de56(0x3ea));}[_0x42f461(0x33a)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x42f461(0x3ac)](){const _0x2a445f=_0x42f461;throw new Error(_0x2a445f(0x3ea));}},exports[_0x42f461(0x3ab)]=bi([st(0x0,o[_0x42f461(0x398)]),st(0x1,o[_0x42f461(0x1f3)](P[_0x42f461(0x2da)]))],exports[_0x42f461(0x3ab)]);var Ti=Object[_0x42f461(0x3c5)],Ri=Object[_0x42f461(0x1b1)],Oi=(_0x471020,_0x22a3c9,_0x1cadd9,_0x4cd2f2)=>{for(var _0xc03f7b=_0x4cd2f2>0x1?void 0x0:_0x4cd2f2?Ri(_0x22a3c9,_0x1cadd9):_0x22a3c9,_0x34cd37=_0x471020['length']-0x1,_0x55784f;_0x34cd37>=0x0;_0x34cd37--)(_0x55784f=_0x471020[_0x34cd37])&&(_0xc03f7b=(_0x4cd2f2?_0x55784f(_0x22a3c9,_0x1cadd9,_0xc03f7b):_0x55784f(_0xc03f7b))||_0xc03f7b);return _0x4cd2f2&&_0xc03f7b&&Ti(_0x22a3c9,_0x1cadd9,_0xc03f7b),_0xc03f7b;},ne=(_0x4e9580,_0x3ee63d)=>(_0x33ea28,_0x247f4a)=>_0x3ee63d(_0x33ea28,_0x247f4a,_0x4e9580);let Ae=class extends o[_0x42f461(0x31a)]{constructor(_0x24f5dd,_0x311a1f,_0x2bbe27,_0x35d250,_0x23a81d){const _0x153210=_0x42f461;super(_0x24f5dd,_0x311a1f,_0x2bbe27),this['_transformService']=_0x35d250,this[_0x153210(0x313)]=_0x23a81d;}[_0x42f461(0x210)](_0x1c62b7,_0x139423){const _0x9c42a8=_0x42f461,_0x4c401b=this[_0x9c42a8(0x456)](_0x1c62b7);if(_0x4c401b)try{const _0x30379a=this[_0x9c42a8(0x1cc)](_0x4c401b,_0x139423);this['_substituteUndoStack'](_0x1c62b7,_0x30379a);}catch(_0x165e2d){this['_logService'][_0x9c42a8(0x34d)](_0x9c42a8(0x215),_0x165e2d),this[_0x9c42a8(0x2f1)](_0x1c62b7);}const _0x4c76a9=this[_0x9c42a8(0x1b2)](_0x1c62b7);if(_0x4c76a9)try{const _0x24dc93=this[_0x9c42a8(0x1cc)](_0x4c76a9,_0x139423);this['_substituteRedoStack'](_0x1c62b7,_0x24dc93);}catch(_0xa3b259){this[_0x9c42a8(0x313)]['error'](_0xa3b259),this[_0x9c42a8(0x466)](_0x1c62b7);}}[_0x42f461(0x2f1)](_0x41684c){const _0x1331ea=_0x42f461,_0x48e86d=this[_0x1331ea(0x456)](_0x41684c);_0x48e86d&&(_0x48e86d[_0x1331ea(0x441)]=0x0,this['_updateStatus']());}[_0x42f461(0x466)](_0x35517f){const _0x4ea566=_0x42f461,_0x1ab47e=this[_0x4ea566(0x1b2)](_0x35517f);_0x1ab47e&&(_0x1ab47e[_0x4ea566(0x441)]=0x0,this[_0x4ea566(0x440)]());}[_0x42f461(0x37d)](_0x4a59d6,_0x5950aa){const _0x3bc9ab=_0x42f461;this[_0x3bc9ab(0x2bc)][_0x3bc9ab(0x1c4)](_0x4a59d6,_0x5950aa),this[_0x3bc9ab(0x440)]();}[_0x42f461(0xdc)](_0x5e8add,_0x498616){const _0x298147=_0x42f461;this[_0x298147(0x230)][_0x298147(0x1c4)](_0x5e8add,_0x498616),this[_0x298147(0x440)]();}[_0x42f461(0x1cc)](_0x2c3057,_0x2a7087){const _0x2f0ebd=_0x42f461,_0x540fe6=[];let _0x1ffbcd=_0x2a7087,_0x53d904=_0x2a7087;for(let _0x5165f6=_0x2c3057[_0x2f0ebd(0x441)]-0x1;_0x5165f6>=0x0;_0x5165f6--){const {unitID:_0x2f680c,undoMutations:_0x105260,redoMutations:_0x397942}=_0x2c3057[_0x5165f6],_0x2e76f9=this[_0x2f0ebd(0x269)][_0x2f0ebd(0x431)](_0x1ffbcd,_0x105260),_0x36c6e6=this[_0x2f0ebd(0x269)]['transformMutationsWithChangeset'](_0x53d904,_0x397942);if(_[_0x2f0ebd(0x138)](_0x2e76f9)||_[_0x2f0ebd(0x138)](_0x36c6e6)){this['_logService']['error']('[CollaborationUndoRedoService]',_0x2f0ebd(0xbb),_0x2e76f9,_0x36c6e6);break;}_0x1ffbcd=_0x2e76f9[_0x2f0ebd(0x3b8)],_0x53d904=_0x36c6e6['c1Prime'],_0x540fe6['push']({'unitID':_0x2f680c,'undoMutations':_0x2e76f9[_0x2f0ebd(0x166)],'redoMutations':_0x36c6e6[_0x2f0ebd(0x166)]});}return _0x540fe6[_0x2f0ebd(0x23a)]();}};Ae=Oi([ne(0x0,o[_0x42f461(0x237)]),ne(0x1,o['ICommandService']),ne(0x2,o['IContextService']),ne(0x3,_[_0x42f461(0x37b)]),ne(0x4,o[_0x42f461(0x218)])],Ae);class Dt extends o[_0x42f461(0x451)]{constructor(){const _0x19cf87=_0x42f461;super(),u(this,_0x19cf87(0x3bc)),this[_0x19cf87(0x3bc)]=v[_0x19cf87(0x3dc)](window,_0x19cf87(0x319))[_0x19cf87(0x285)](v[_0x19cf87(0x174)](this['dispose$']),v['shareReplay'](0x1),v[_0x19cf87(0x334)](void 0x0));}[_0x42f461(0x23e)](_0x5e0657,_0x9353b8,_0xa3660b=!0x1){const _0x11d351=_0x42f461,_0x13068d=new URL(window[_0x11d351(0x1d9)]['href']);_0x13068d['searchParams'][_0x11d351(0x1c4)](_0x5e0657,_0x9353b8),_0xa3660b?window[_0x11d351(0x1f0)]['replaceState']('','',_0x13068d[_0x11d351(0x252)]()):window[_0x11d351(0x1f0)][_0x11d351(0x17a)]('','',_0x13068d[_0x11d351(0x252)]());}['removeParam'](_0x76fbc3,_0x4f2e4d=!0x1){const _0x356068=_0x42f461,_0x22e26a=new URL(window[_0x356068(0x1d9)]['href']);_0x22e26a['searchParams']['delete'](_0x76fbc3),_0x4f2e4d?window[_0x356068(0x1f0)][_0x356068(0x246)]('','',_0x22e26a[_0x356068(0x252)]()):window['history'][_0x356068(0x17a)]('','',_0x22e26a[_0x356068(0x252)]());}[_0x42f461(0x3d1)](_0x50dc50){const _0x1ea6fe=_0x42f461;var _0x2e4e44;return(_0x2e4e44=new URL(window[_0x1ea6fe(0x1d9)][_0x1ea6fe(0x393)])['searchParams']['get'](_0x50dc50))!=null?_0x2e4e44:void 0x0;}}const Ue=_0x42f461(0x10e),Di='collab-text-range-',_e=0x6,Pi=1.5,ye=0x4,Ui=1.5,yi=_0x42f461(0x2fc);class wi{constructor(_0x46c59d,_0x336672,_0x1ea791,_0x355275){const _0x229eff=_0x42f461;u(this,_0x229eff(0x1d6),[]),u(this,_0x229eff(0x1f5),null),u(this,'_textBubble',null),u(this,_0x229eff(0x44c),null),u(this,'_hideTimer',null),u(this,_0x229eff(0x47b),null),(this['_cursor']=_0x46c59d,this[_0x229eff(0x3d7)]=_0x336672,this['_docSkeleton']=_0x1ea791,this['_document']=_0x355275,this[_0x229eff(0x1be)]());}set['_hover'](_0x3400b1){const _0x2f794d=_0x42f461;_0x3400b1?(this['_anchorDot']&&this[_0x2f794d(0x44c)][_0x2f794d(0x2ee)](),this[_0x2f794d(0xd1)]&&this['_textBubble'][_0x2f794d(0x20a)]()):(this[_0x2f794d(0x44c)]&&this[_0x2f794d(0x44c)]['show'](),this[_0x2f794d(0xd1)]&&this[_0x2f794d(0xd1)][_0x2f794d(0x2ee)]());}[_0x42f461(0x442)](){const _0x51c726=_0x42f461;for(const _0x225b52 of this[_0x51c726(0x1d6)])_0x225b52[_0x51c726(0x442)]();this[_0x51c726(0xd1)]&&this[_0x51c726(0xd1)][_0x51c726(0x442)](),this[_0x51c726(0x44c)]&&this['_anchorDot'][_0x51c726(0x442)](),this['_anchor']&&this['_anchor']['dispose'](),this[_0x51c726(0x47b)]&&this[_0x51c726(0x47b)]();}['_render'](){const _0x9cd43a=_0x42f461,{_docSkeleton:_0x2fac42,_document:_0xab3c56}=this,{color:_0x42ddfe,name:_0x45b523,ranges:_0x1ee0e5}=this[_0x9cd43a(0x2eb)],_0x271e99=_0xab3c56[_0x9cd43a(0x3d3)](),{docsLeft:_0x33f961,docsTop:_0x2d1d00}=_0x271e99,_0x781fe8=new T[(_0x9cd43a(0x1e6))](_0x271e99,_0x2fac42);for(const {startOffset:_0x570c03,endOffset:_0x273582,collapsed:_0x3bbac1,isActive:_0x2322ef}of _0x1ee0e5){const _0x4f78a1=_0x2fac42['findNodePositionByCharIndex'](_0x570c03),_0x1499c8=_0x2fac42[_0x9cd43a(0x25f)](_0x273582);if(_0x2322ef){const {contentBoxPointGroup:_0x50d10e}=_0x781fe8[_0x9cd43a(0x396)](_0x1499c8,_0x1499c8);if(_0x50d10e[_0x9cd43a(0x441)]===0x0)continue;this['_drawAnchor'](_0x42ddfe,_0x50d10e,_0x33f961,_0x2d1d00,_0x45b523),this[_0x9cd43a(0x47b)]=this[_0x9cd43a(0xe3)]();}if(!_0x3bbac1){const {contentBoxPointGroup:_0x4cce67}=_0x781fe8[_0x9cd43a(0x396)](_0x4f78a1,_0x1499c8);if(_0x4cce67['length']===0x0)continue;this[_0x9cd43a(0x28c)](_0x42ddfe,_0x4cce67,_0x33f961,_0x2d1d00);}}}['_drawAnchor'](_0x36c600,_0x38659e,_0x1ad39c,_0x55853d,_0x172352){const _0x1b0f94=_0x42f461,_0xf630a4=this[_0x1b0f94(0x226)](_0x38659e),{left:_0x10da41,top:_0x5a933a,height:_0x197037}=_0xf630a4,_0x1864ce=this[_0x1b0f94(0x1aa)](),_0x57f0ac=Ui/_0x1864ce,_0x283849=new T['Rect'](Ue+o[_0x1b0f94(0x11c)][_0x1b0f94(0x238)](_e),{'left':_0x10da41+_0x1ad39c-_0x57f0ac,'top':_0x5a933a+_0x55853d,'height':_0x197037,'width':Pi,'fill':_0x36c600||T[_0x1b0f94(0x2e6)](o[_0x1b0f94(0x47a)]['black'],0x0),'strokeWidth':_0x57f0ac,'stroke':yi,'evented':!0x0});this[_0x1b0f94(0x1f5)]=_0x283849,this['_scene'][_0x1b0f94(0x15a)](_0x283849,T[_0x1b0f94(0x39f)]);const _0x4b5ccf=new T['Rect'](Ue+o['Tools'][_0x1b0f94(0x238)](_e),{'left':_0x10da41+_0x1ad39c-_0x57f0ac,'top':_0x5a933a+_0x55853d-ye/0x2,'height':ye,'width':ye,'fill':_0x36c600||T[_0x1b0f94(0x2e6)](o[_0x1b0f94(0x47a)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x36c600||T['getColor'](o[_0x1b0f94(0x47a)][_0x1b0f94(0xc1)],0x0),'evented':!0x1});this[_0x1b0f94(0x44c)]=_0x4b5ccf,this[_0x1b0f94(0x3d7)][_0x1b0f94(0x15a)](_0x4b5ccf,T['TEXT_RANGE_LAYER_INDEX']);const _0x3aba6b=new be(Ue+o['Tools'][_0x1b0f94(0x238)](_e),{'left':_0x10da41+_0x1ad39c-_0x57f0ac,'top':_0x5a933a+_0x55853d-ce,'text':_0x172352,'color':_0x36c600});this[_0x1b0f94(0xd1)]=_0x3aba6b,this['_scene'][_0x1b0f94(0x15a)](_0x3aba6b,T[_0x1b0f94(0x39f)]),this[_0x1b0f94(0x305)]=!0x1;}[_0x42f461(0xe3)](){const _0x294d31=_0x42f461,_0x412046=this[_0x294d31(0x1f5)]['onPointerEnter$'][_0x294d31(0x31e)](()=>{const _0x3ab57b=_0x294d31;this[_0x3ab57b(0x305)]=!0x0;}),_0x5869a8=this[_0x294d31(0x1f5)][_0x294d31(0x2db)]['subscribeEvent'](()=>{const _0x5048a7=_0x294d31;this[_0x5048a7(0x32c)]&&clearTimeout(this[_0x5048a7(0x32c)]),this['_hideTimer']=setTimeout(()=>{const _0x11c019=_0x5048a7;this[_0x11c019(0x305)]=!0x1;},0x7d0);});return()=>{_0x412046['unsubscribe'](),_0x5869a8['unsubscribe']();};}[_0x42f461(0x28c)](_0x2f3f72,_0x178cb3,_0x1f5980,_0x5d878a){const _0x3aa73c=_0x42f461,_0xb1993a=new o[(_0x3aa73c(0x255))](_0x2f3f72)[_0x3aa73c(0x320)](0.2)[_0x3aa73c(0xef)](),_0x47cae2=new T[(_0x3aa73c(0x3c2))](Di+o[_0x3aa73c(0x11c)][_0x3aa73c(0x238)](_e),{'pointsGroup':_0x178cb3,'fill':_0xb1993a||T[_0x3aa73c(0x2e6)](o[_0x3aa73c(0x47a)]['black'],0.2),'left':_0x1f5980,'top':_0x5d878a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3aa73c(0x1d6)]['push'](_0x47cae2),this[_0x3aa73c(0x3d7)][_0x3aa73c(0x15a)](_0x47cae2,T[_0x3aa73c(0x39f)]);}[_0x42f461(0x226)](_0x3d5741){const _0x3c8621=_0x3d5741[0x0],_0x993df0=_0x3c8621[0x0],_0x45f338=_0x3c8621[0x2],{x:_0x4c8b0a,y:_0x26b204}=_0x993df0,{x:_0x4c0cf0,y:_0x39065e}=_0x45f338;return{'left':_0x4c8b0a,'top':_0x26b204,'width':_0x4c0cf0-_0x4c8b0a,'height':_0x39065e-_0x26b204};}[_0x42f461(0x1aa)](){const {scaleX:_0x2b0101,scaleY:_0x160cc0}=this['_scene']['getAncestorScale']();return Math['max'](_0x2b0101,_0x160cc0);}}var Li=Object[_0x42f461(0x3c5)],Mi=Object['getOwnPropertyDescriptor'],Ni=(_0x58c048,_0x344d3c,_0x292191,_0x8e6766)=>{const _0x1e0194=_0x42f461;for(var _0x4466d2=_0x8e6766>0x1?void 0x0:_0x8e6766?Mi(_0x344d3c,_0x292191):_0x344d3c,_0x4c55c8=_0x58c048[_0x1e0194(0x441)]-0x1,_0x8b9412;_0x4c55c8>=0x0;_0x4c55c8--)(_0x8b9412=_0x58c048[_0x4c55c8])&&(_0x4466d2=(_0x8e6766?_0x8b9412(_0x344d3c,_0x292191,_0x4466d2):_0x8b9412(_0x4466d2))||_0x4466d2);return _0x8e6766&&_0x4466d2&&Li(_0x344d3c,_0x292191,_0x4466d2),_0x4466d2;},re=(_0x45f480,_0x101724)=>(_0x542cfc,_0x46c50f)=>_0x101724(_0x542cfc,_0x46c50f,_0x45f480);let Se=class extends o[_0x42f461(0x451)]{constructor(_0x408235,_0xab0cd9,_0x6dc345,_0x54e03f,_0x59d8c2){const _0x2fdcb2=_0x42f461;super(),u(this,_0x2fdcb2(0x1a2),[]),(this[_0x2fdcb2(0xca)]=_0x408235,this[_0x2fdcb2(0x3c1)]=_0xab0cd9,this['_renderManagerService']=_0x6dc345,this[_0x2fdcb2(0x463)]=_0x54e03f,this[_0x2fdcb2(0x324)]=_0x59d8c2,this[_0x2fdcb2(0x2b4)]());}[_0x42f461(0x2b4)](){const _0x2be3ef=_0x42f461;this[_0x2be3ef(0x463)][_0x2be3ef(0xd4)]['pipe'](C[_0x2be3ef(0x174)](this[_0x2be3ef(0x1b8)]),C['switchMap'](_0x52aebc=>{const _0x322ce2=_0x2be3ef;if(_0x52aebc){const _0x46f6ff=_0x52aebc[_0x322ce2(0x179)]()[_0x322ce2(0x26a)]()[_0x322ce2(0x2d9)]();return v['combineLatest'](this[_0x322ce2(0xca)][_0x322ce2(0x416)](_0x46f6ff),this[_0x322ce2(0x324)][_0x322ce2(0x130)])[_0x322ce2(0x285)](C[_0x322ce2(0x145)](([_0x5707b6,_0x294426])=>({'skeleton':_0x52aebc,'cursors':[..._0x5707b6[_0x322ce2(0x294)]()][_0x322ce2(0x3ff)](_0xa096bb=>({..._0xa096bb,'color':_0x294426[_0xa096bb[_0x322ce2(0x12c)]]}))})));}return v['of']({'skeleton':null,'cursors':[]});}))[_0x2be3ef(0x17e)](({skeleton:_0x46983,cursors:_0x405cd1})=>{const _0x394b6c=_0x2be3ef;this[_0x394b6c(0x3c3)](),_0x46983&&this['_updateCollabCursors'](_0x46983,_0x405cd1);});}[_0x42f461(0x18d)](_0x2133d0,_0x4edbc1){const _0x3bc909=_0x42f461,_0x468f78=this[_0x3bc909(0x15e)]();if(_0x468f78==null)return;const {scene:_0x57e9d7,document:_0x1a554a}=_0x468f78,_0x32e990=_0x4edbc1[_0x3bc909(0x145)](_0xac944=>new wi(_0xac944,_0x57e9d7,_0x2133d0,_0x1a554a));this['_cursors']=_0x32e990;}[_0x42f461(0x3c3)](){const _0x311e62=_0x42f461;this[_0x311e62(0x1a2)][_0x311e62(0x375)](_0x13e623=>_0x13e623['dispose']()),this[_0x311e62(0x1a2)]=[];}[_0x42f461(0x15e)](){const _0x5cdd51=_0x42f461;return L['getDocObject'](this['_univerInstanceService'],this[_0x5cdd51(0x2ff)]);}};Se=Ni([o[_0x42f461(0x25d)](o[_0x42f461(0x43a)]['Steady'],Se),re(0x0,o[_0x42f461(0x1f3)](z)),re(0x1,o['IUniverInstanceService']),re(0x2,T[_0x42f461(0x18e)]),re(0x3,o[_0x42f461(0x1f3)](L['DocSkeletonManagerService'])),re(0x4,o[_0x42f461(0x1f3)](o[_0x42f461(0x2cf)]))],Se);var Ai=Object[_0x42f461(0x3c5)],ji=Object['getOwnPropertyDescriptor'],$i=(_0x5431d6,_0x36e27c,_0x1560d5,_0x1bcc44)=>{for(var _0x1b9ba4=_0x1bcc44>0x1?void 0x0:_0x1bcc44?ji(_0x36e27c,_0x1560d5):_0x36e27c,_0x52e0c2=_0x5431d6['length']-0x1,_0x39a23d;_0x52e0c2>=0x0;_0x52e0c2--)(_0x39a23d=_0x5431d6[_0x52e0c2])&&(_0x1b9ba4=(_0x1bcc44?_0x39a23d(_0x36e27c,_0x1560d5,_0x1b9ba4):_0x39a23d(_0x1b9ba4))||_0x1b9ba4);return _0x1bcc44&&_0x1b9ba4&&Ai(_0x36e27c,_0x1560d5,_0x1b9ba4),_0x1b9ba4;},we=(_0x175352,_0x16313e)=>(_0x599fe4,_0x34372c)=>_0x16313e(_0x599fe4,_0x34372c,_0x175352);let pe=class{constructor(_0x5b0aa1,_0x13c648,_0x3081dc){const _0x19cade=_0x42f461;this[_0x19cade(0x408)]=_0x5b0aa1,this[_0x19cade(0x1b5)]=_0x13c648,this[_0x19cade(0x24c)]=_0x3081dc,this[_0x19cade(0x464)]();}[_0x42f461(0x464)](){const _0x214d77=_0x42f461;this[_0x214d77(0x1b5)][_0x214d77(0x116)]({'priority':0x1,'interceptor':(_0x406798,_0x5b1b88)=>_0x5b1b88(_0x406798)[_0x214d77(0x285)](v[_0x214d77(0xf5)](async _0x34ff4f=>{const _0x30eba4=_0x214d77,_0x37c963=_0x34ff4f;if(_0x37c963['status']===0x191&&window['confirm'](this[_0x30eba4(0x24c)]['t'](_0x30eba4(0x106)))){const _0x3e0cf5=window[_0x30eba4(0x2e4)](window[_0x30eba4(0x1d9)][_0x30eba4(0x393)]);window[_0x30eba4(0x1d9)]['href']=this[_0x30eba4(0x391)]()+_0x30eba4(0x1bc)+_0x3e0cf5;}return _0x37c963;}))});}[_0x42f461(0x391)](){const _0x4451cc=_0x42f461;var _0x4383ce;return(_0x4383ce=this[_0x4451cc(0x408)]['getConfig'](St))!=null?_0x4383ce:qt;}};pe=$i([we(0x0,o[_0x42f461(0x398)]),we(0x1,o['Inject'](P[_0x42f461(0x2da)])),we(0x2,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)]))],pe);var Hi=Object[_0x42f461(0x3c5)],xi=Object[_0x42f461(0x1b1)],ki=(_0x3b76fd,_0x42ba12,_0x16eb06,_0x30f0db)=>{const _0x7c0ba7=_0x42f461;for(var _0x2f3b42=_0x30f0db>0x1?void 0x0:_0x30f0db?xi(_0x42ba12,_0x16eb06):_0x42ba12,_0x3b4c2e=_0x3b76fd[_0x7c0ba7(0x441)]-0x1,_0x38a74d;_0x3b4c2e>=0x0;_0x3b4c2e--)(_0x38a74d=_0x3b76fd[_0x3b4c2e])&&(_0x2f3b42=(_0x30f0db?_0x38a74d(_0x42ba12,_0x16eb06,_0x2f3b42):_0x38a74d(_0x2f3b42))||_0x2f3b42);return _0x30f0db&&_0x2f3b42&&Hi(_0x42ba12,_0x16eb06,_0x2f3b42),_0x2f3b42;},it=(_0x27de07,_0x48d354)=>(_0x45dd45,_0x5815dc)=>_0x48d354(_0x45dd45,_0x5815dc,_0x27de07);const Pt='AUTHZ_URL_KEY',Bi=_0x42f461(0x250);exports[_0x42f461(0x193)]=class extends o['Disposable']{constructor(_0x47c4c9,_0x5306e2){const _0x115014=_0x42f461;super(),this[_0x115014(0x413)]=_0x47c4c9,this['_configService']=_0x5306e2,this[_0x115014(0xf2)]();}[_0x42f461(0xf2)](){const _0x46c7d2=_0x42f461,_0x45b926=this;this[_0x46c7d2(0x2e2)](this[_0x46c7d2(0x413)][_0x46c7d2(0x116)]({'priority':0x3e7,'interceptor':P[_0x46c7d2(0x191)]({'isMatch'(_0xbfa394){const _0x33b790=_0x46c7d2;var _0x7fd075;if(_0xbfa394[_0x33b790(0x43f)]===_0x33b790(0x3de)&&((_0x7fd075=_0xbfa394[_0x33b790(0x10b)])!=null&&_0x7fd075[_0x33b790(0x37a)])){const {objectID:_0x33c991,objectType:_0x588ec1}=_0xbfa394[_0x33b790(0x10b)]['body']||{};if(!_0x33c991||_0x588ec1===void 0x0)return!0x1;const _0x2a19a0=_0x45b926['_getAPIPrefixPath']()+'/'+_0x588ec1+'/object/'+_0x33c991+_0x33b790(0x16c);if(_0xbfa394[_0x33b790(0x28a)]===_0x2a19a0)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3b8605){const _0x4b9c13=_0x46c7d2;var _0x5e0265;return(_0x5e0265=_0x3b8605[_0x4b9c13(0x10b)])==null?void 0x0:_0x5e0265[_0x4b9c13(0x37a)];},'mergeParamsToRequest'(_0x5e1a14,_0x42150d){const _0xce3a78=_0x46c7d2,_0x4c020b=_0x45b926[_0xce3a78(0x207)]()+'/-/object/-/batch_allowed',_0xfd5a75=_0x5e1a14[_0xce3a78(0x3fc)]((_0xa8655a,_0x5e4b87)=>{const _0x50bbd7=_0xce3a78,{unitID:_0x8ef638,objectID:_0x4cb766,objectType:_0x1a364b,actions:_0x13e357}=_0x5e4b87;return _0xa8655a[_0x8ef638]||(_0xa8655a[_0x8ef638]={}),_0xa8655a[_0x8ef638][_0x4cb766]||(_0xa8655a[_0x8ef638][_0x4cb766]={'objectID':_0x4cb766,'objectType':_0x1a364b,'actions':[]}),_0xa8655a[_0x8ef638][_0x4cb766][_0x50bbd7(0x42c)][_0x50bbd7(0x302)](..._0x13e357),_0xa8655a;},{}),_0x2b87c4=[];for(const _0x174ebd in _0xfd5a75)for(const _0x44057c in _0xfd5a75[_0x174ebd]){const {actions:_0x2c4e77,objectType:_0x3bc841}=_0xfd5a75[_0x174ebd][_0x44057c],_0x9fae9=[...new Set(_0x2c4e77)];_0x2b87c4[_0xce3a78(0x302)]({'unitID':_0x174ebd,'objectID':_0x44057c,'objectType':_0x3bc841,'actions':_0x9fae9});}return new P['HTTPRequest'](_0xce3a78(0x3de),_0x4c020b,{'headers':_0x42150d[_0xce3a78(0x195)],'withCredentials':_0x42150d['withCredentials'],'responseType':_0x42150d[_0xce3a78(0x412)],'body':{'requests':_0x2b87c4}});}},{'distributeResult'(_0x3b92c3,_0x46a806){const _0x48a8e5=_0x46c7d2,{objectActions:_0x489723}=_0x3b92c3;return _0x46a806[_0x48a8e5(0x145)](_0x3109eb=>{const _0x16f39f=_0x48a8e5,{unitID:_0x36c15f,objectID:_0x4adedd,actions:_0x39de0c}=_0x3109eb,_0x5789b5=_0x489723[_0x16f39f(0x3d5)](_0x1ef0fa=>_0x1ef0fa[_0x16f39f(0x33c)]===_0x36c15f&&_0x1ef0fa[_0x16f39f(0x30b)]===_0x4adedd),_0x53c2eb=_0x39de0c[_0x16f39f(0x145)](_0xa171be=>_0x5789b5==null?void 0x0:_0x5789b5[_0x16f39f(0x42c)]['find'](_0x48876b=>_0x48876b['action']===_0xa171be))[_0x16f39f(0x357)](_0x6a4c45=>!!_0x6a4c45);return{'config':_0x3109eb,'result':{'actions':_0x53c2eb,'error':_0x3b92c3[_0x16f39f(0x34d)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3190b3=_0x42f461;var _0x2bd4e;return(_0x2bd4e=this[_0x3190b3(0x408)][_0x3190b3(0x1b4)](Pt))!=null?_0x2bd4e:Bi;}async[_0x42f461(0x139)](_0x257739){const _0xd1c8b1=_0x42f461,_0x5b61a1=this[_0xd1c8b1(0x207)]()+'/'+_0x257739[_0xd1c8b1(0x3b6)]+_0xd1c8b1(0x180);return(await this[_0xd1c8b1(0x413)][_0xd1c8b1(0x42a)](_0x5b61a1,{'body':_0x257739}))['body'][_0xd1c8b1(0x30b)]||'';}async[_0x42f461(0x2bf)](_0x3b7f0f){const _0x4709df=_0x42f461,_0x5b4412=this[_0x4709df(0x207)]()+_0x4709df(0x30c);return(await this[_0x4709df(0x413)][_0x4709df(0x42a)](_0x5b4412,{'body':_0x3b7f0f}))[_0x4709df(0x37a)][_0x4709df(0x2d8)];}async['update'](_0x2efa4f){const _0x86de79=_0x42f461,_0x44d163=this['_getAPIPrefixPath']()+'/'+_0x2efa4f[_0x86de79(0x3b6)]+_0x86de79(0x249)+_0x2efa4f[_0x86de79(0x30b)];await this[_0x86de79(0x413)]['put'](_0x44d163,{'body':_0x2efa4f});}async[_0x42f461(0x1b6)](_0x220f14){const _0x1e5b9a=_0x42f461,_0x80a3b9=this[_0x1e5b9a(0x207)]()+'/'+_0x220f14[_0x1e5b9a(0x3b6)]+_0x1e5b9a(0x249)+_0x220f14[_0x1e5b9a(0x30b)]+_0x1e5b9a(0x16c);return(await this[_0x1e5b9a(0x413)]['post'](_0x80a3b9,{'body':_0x220f14}))[_0x1e5b9a(0x37a)][_0x1e5b9a(0x42c)];}async[_0x42f461(0x21a)](_0x1b0db2){const _0x11d6aa=_0x42f461,_0xa1a6f3=this[_0x11d6aa(0x207)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x11d6aa(0x42a)](_0xa1a6f3,{'body':{'requests':_0x1b0db2}}))[_0x11d6aa(0x37a)]['objectActions'];}async[_0x42f461(0x10c)](_0x54142d){const _0x41f4c2=_0x42f461,_0x28b638=this[_0x41f4c2(0x207)]()+'/'+_0x54142d[_0x41f4c2(0x3b6)]+_0x41f4c2(0x3a8),_0x214bb0=await this[_0x41f4c2(0x413)]['post'](_0x28b638,{'body':_0x54142d});return{'roles':_0x214bb0[_0x41f4c2(0x37a)]['roles'],'actions':_0x214bb0[_0x41f4c2(0x37a)]['actions']};}async[_0x42f461(0x27f)](_0x3d49cd){const _0x2a0914=_0x42f461,_0x5421a7=this[_0x2a0914(0x207)]()+'/collaborator';await this[_0x2a0914(0x413)][_0x2a0914(0x213)](_0x5421a7,{'params':{'collaboratorID':_0x3d49cd[_0x2a0914(0x1ac)],'objectID':_0x3d49cd[_0x2a0914(0x30b)],'unitID':_0x3d49cd[_0x2a0914(0x33c)]}});}async['updateCollaborator'](_0x46a3dc){const _0x36d0ba=_0x42f461,_0x27948e=this[_0x36d0ba(0x207)]()+_0x36d0ba(0x329);await this[_0x36d0ba(0x413)][_0x36d0ba(0x382)](_0x27948e,{'body':_0x46a3dc});}async['createCollaborator'](_0x420fbf){const _0x18e538=_0x42f461,_0x11697f=this[_0x18e538(0x207)]()+_0x18e538(0x329);await this[_0x18e538(0x413)]['post'](_0x11697f,{'body':_0x420fbf});}async[_0x42f461(0x2c3)](_0x575f8d){const _0x3b6f13=_0x42f461,_0x237f73=this[_0x3b6f13(0x207)]()+'/collaborator';return(await this['_HTTPService']['get'](_0x237f73,{'params':{'objectID':_0x575f8d['objectID'],'unitID':_0x575f8d['unitID']}}))['body'][_0x3b6f13(0x435)];}async[_0x42f461(0x3aa)](_0x699165){const _0x2113b7=_0x42f461,_0x2ffacd=this['_getAPIPrefixPath']()+_0x2113b7(0x329);await this[_0x2113b7(0x413)][_0x2113b7(0x349)](_0x2ffacd,{'body':_0x699165});}},exports[_0x42f461(0x193)]=ki([it(0x0,o[_0x42f461(0x1f3)](P['HTTPService'])),it(0x1,o[_0x42f461(0x1f3)](o[_0x42f461(0x398)]))],exports[_0x42f461(0x193)]);var Fi=Object[_0x42f461(0x3c5)],Vi=Object[_0x42f461(0x1b1)],Wi=(_0x50a46b,_0x1104cd,_0x3ca119,_0xbc327f)=>{const _0x517423=_0x42f461;for(var _0x5e97c4=_0xbc327f>0x1?void 0x0:_0xbc327f?Vi(_0x1104cd,_0x3ca119):_0x1104cd,_0x3cca41=_0x50a46b[_0x517423(0x441)]-0x1,_0x3444f6;_0x3cca41>=0x0;_0x3cca41--)(_0x3444f6=_0x50a46b[_0x3cca41])&&(_0x5e97c4=(_0xbc327f?_0x3444f6(_0x1104cd,_0x3ca119,_0x5e97c4):_0x3444f6(_0x5e97c4))||_0x5e97c4);return _0xbc327f&&_0x5e97c4&&Fi(_0x1104cd,_0x3ca119,_0x5e97c4),_0x5e97c4;},nt=(_0x3b0ddd,_0x5c9384)=>(_0x1e5670,_0x16ffce)=>_0x5c9384(_0x1e5670,_0x16ffce,_0x3b0ddd);const Gi=[_0x42f461(0x394),_0x42f461(0x308),_0x42f461(0x1db),_0x42f461(0x278),_0x42f461(0x327)],Yi=0x5*0x400*0x400,Ki=_0x42f461(0x2f8),Xi='/universer-api/stream/file/upload',qi='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Ji='/universer-api/file/{fileID}/sign-url';exports['ImageIoService']=class{constructor(_0x59edf5,_0xb4cb80){const _0x50f889=_0x42f461;u(this,_0x50f889(0x169),0x0),u(this,_0x50f889(0xd0),new v['Subject']()),u(this,_0x50f889(0x480),this['_change$']),u(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x59edf5,this[_0x50f889(0x408)]=_0xb4cb80);}['setWaitCount'](_0x2accdb){const _0x308372=_0x42f461;this[_0x308372(0x169)]=_0x2accdb,this[_0x308372(0xd0)]['next'](_0x2accdb);}[_0x42f461(0x265)](_0xbe2e03,_0x5ad346){const _0x33b5d9=_0x42f461;if(_0x5ad346===N['ImageSourceType'][_0x33b5d9(0x3af)]){const _0x2a6e83=new Image();return _0x2a6e83['src']=_0xbe2e03,_0x2a6e83;}return this[_0x33b5d9(0x231)]['get'](_0xbe2e03);}['addImageSourceCache'](_0x4e76f7,_0x2765b2,_0x1de647){const _0x5ec6a9=_0x42f461;_0x2765b2===N[_0x5ec6a9(0x338)]['BASE64']||_0x1de647==null||this[_0x5ec6a9(0x231)][_0x5ec6a9(0x1c4)](_0x4e76f7,_0x1de647);}async[_0x42f461(0x184)](_0x25494a){const _0x101b2b=_0x42f461;try{const _0x28707f=this[_0x101b2b(0x363)](this[_0x101b2b(0x143)](),''+_0x25494a),_0x41f96b=(await this['_httpService'][_0x101b2b(0xc0)](_0x28707f))[_0x101b2b(0x37a)];return _0x41f96b[_0x101b2b(0x34d)]&&_0x41f96b[_0x101b2b(0x34d)]['code']===vt['OK']?Promise[_0x101b2b(0x358)](_0x41f96b['url']):Promise[_0x101b2b(0x37c)](_0x41f96b['error']);}catch(_0x26646d){return Promise['reject'](_0x26646d);}}async[_0x42f461(0x381)](_0x115583){const _0x4b7847=_0x42f461;let _0x3ef09e='';if(!Gi[_0x4b7847(0x45a)](_0x115583[_0x4b7847(0x3b1)]))return this[_0x4b7847(0x21b)](),Promise[_0x4b7847(0x37c)](new Error(N[_0x4b7847(0x149)][_0x4b7847(0x29c)]));if(_0x115583['size']>Yi)return this['_decreaseWaiting'](),Promise[_0x4b7847(0x37c)](new Error(N[_0x4b7847(0x149)][_0x4b7847(0x366)]));try{const _0x420af6=new FormData();_0x420af6[_0x4b7847(0x384)](_0x4b7847(0x1d3),_0x115583);const _0x3ba9bc=this[_0x4b7847(0x1f7)]()+_0x4b7847(0x1cd)+_0x115583[_0x4b7847(0x19c)][_0x4b7847(0x252)](),_0x228782=await(await fetch(_0x3ba9bc,{'method':_0x4b7847(0x3de),'body':_0x420af6}))[_0x4b7847(0x291)]();if(typeof _0x228782[_0x4b7847(0x1c5)]!='string')return this['_decreaseWaiting'](),Promise[_0x4b7847(0x37c)](new Error(N[_0x4b7847(0x149)][_0x4b7847(0x426)]));_0x3ef09e=_0x228782['FileId'];}catch{return this[_0x4b7847(0x21b)](),Promise[_0x4b7847(0x37c)](new Error(N['ImageUploadStatusType'][_0x4b7847(0x426)]));}return new Promise((_0x3006ea,_0x3c4abd)=>{const _0x2826ea=_0x4b7847,_0x54d000=new FileReader();_0x54d000[_0x2826ea(0x26d)](_0x115583),_0x54d000[_0x2826ea(0x423)]=_0xa3f7d9=>{const _0x39515c=_0x2826ea;var _0x341249;const _0x5770da=(_0x341249=_0xa3f7d9['target'])==null?void 0x0:_0x341249[_0x39515c(0x419)];if(_0x5770da==null){this['_decreaseWaiting'](),_0x3c4abd(new Error(N[_0x39515c(0x149)][_0x39515c(0x426)]));return;}const _0x3d6dba=o[_0x39515c(0x11c)][_0x39515c(0x238)](0x6);_0x3006ea({'imageId':_0x3d6dba,'imageSourceType':N[_0x39515c(0x338)][_0x39515c(0x479)],'source':_0x3ef09e,'base64Cache':_0x5770da,'status':N['ImageUploadStatusType'][_0x39515c(0x3b9)]}),this[_0x39515c(0x21b)]();};});}[_0x42f461(0x1f7)](){const _0x3634aa=_0x42f461;var _0x16336e;return(_0x16336e=this[_0x3634aa(0x408)][_0x3634aa(0x1b4)](Ki))!=null?_0x16336e:Xi;}['_getSignURL'](){const _0x34c2b5=_0x42f461;var _0x52b709;return(_0x52b709=this[_0x34c2b5(0x408)][_0x34c2b5(0x1b4)](qi))!=null?_0x52b709:Ji;}['_replaceFileID'](_0x172565,_0x477f49){const _0x4e6dd1=_0x42f461;return _0x172565[_0x4e6dd1(0x128)]('{fileID}',_0x477f49);}['_decreaseWaiting'](){const _0x9183a9=_0x42f461;this[_0x9183a9(0x169)]-=0x1,this[_0x9183a9(0xd0)]['next'](this['_waitCount']);}},exports[_0x42f461(0x183)]=Wi([nt(0x0,o[_0x42f461(0x1f3)](P['HTTPService'])),nt(0x1,o[_0x42f461(0x398)])],exports[_0x42f461(0x183)]);var zi=Object[_0x42f461(0x3c5)],Zi=Object[_0x42f461(0x1b1)],Qi=(_0x4c49df,_0x5e413d,_0x46bf27,_0x22fddf)=>{const _0x4fcd20=_0x42f461;for(var _0x564402=_0x22fddf>0x1?void 0x0:_0x22fddf?Zi(_0x5e413d,_0x46bf27):_0x5e413d,_0x28851b=_0x4c49df[_0x4fcd20(0x441)]-0x1,_0x49480b;_0x28851b>=0x0;_0x28851b--)(_0x49480b=_0x4c49df[_0x28851b])&&(_0x564402=(_0x22fddf?_0x49480b(_0x5e413d,_0x46bf27,_0x564402):_0x49480b(_0x564402))||_0x564402);return _0x22fddf&&_0x564402&&zi(_0x5e413d,_0x46bf27,_0x564402),_0x564402;},oe=(_0x33b31d,_0xcedf12)=>(_0x208caa,_0x1745e5)=>_0xcedf12(_0x208caa,_0x1745e5,_0x33b31d);let ve=class extends o[_0x42f461(0x451)]{constructor(_0x1b1aa3,_0x1f3c73,_0x2e3a01,_0x5121e3,_0x256398){const _0x42e9dd=_0x42f461;super(),this[_0x42e9dd(0x16e)]=_0x1b1aa3,this[_0x42e9dd(0x3c1)]=_0x1f3c73,this['_permissionService']=_0x2e3a01,this[_0x42e9dd(0x311)]=_0x5121e3,this[_0x42e9dd(0x15c)]=_0x256398,this[_0x42e9dd(0x2c8)](),this['_initCloseConn']();}[_0x42f461(0x354)](){const _0x2e0f94=_0x42f461,_0x1adce1=async _0x5ed369=>{const _0x23e782=_0x527e;(await this[_0x23e782(0x311)]['requireSession'](_0x5ed369))[_0x23e782(0x35d)][_0x23e782(0x285)](C[_0x23e782(0x357)](_0x4fbb96=>_0x4fbb96['eventID']===_[_0x23e782(0x301)][_0x23e782(0xd2)]),C[_0x23e782(0x174)](this[_0x23e782(0x1b8)]))[_0x23e782(0x17e)](_0x3f4536=>{const _0x240890=_0x23e782,_0xa73735=_0x3f4536,{reason:_0x596073}=_0xa73735[_0x240890(0x407)];this[_0x240890(0x16e)][_0x240890(0xc0)](M[_0x240890(0x3f8)])['show']({'type':Z[_0x240890(0x2ad)]['Error'],'content':this['_localeService']['t'](_0x240890(0x288))+'('+_0x596073+')'}),this['_permissionService'][_0x240890(0x27b)](new p[(_0x240890(0x194))](_0x5ed369)['id'],!0x1),this[_0x240890(0x311)][_0x240890(0x470)](_0x5ed369);});};v['merge'](this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x2e0f94(0x3a7)][_0x2e0f94(0x23d)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x2e0f94(0x3a7)][_0x2e0f94(0x46d)]))['pipe'](C[_0x2e0f94(0x145)](_0x47b8d6=>_0x47b8d6[_0x2e0f94(0x2d9)]()),C[_0x2e0f94(0x357)](_0x3fa984=>!o['isInternalEditorID'](_0x3fa984)),C[_0x2e0f94(0x174)](this[_0x2e0f94(0x1b8)]))['subscribe'](_0x3f38bf=>{_0x1adce1(_0x3f38bf);});}[_0x42f461(0x2c8)](){const _0x2b914e=_0x42f461,_0x509bfd=async _0x1d91e9=>{const _0x14bd0f=_0x527e;(await this[_0x14bd0f(0x311)]['requireSession'](_0x1d91e9))[_0x14bd0f(0x35d)][_0x14bd0f(0x285)](C[_0x14bd0f(0x357)](_0x254765=>_0x254765[_0x14bd0f(0x35a)]===_[_0x14bd0f(0x301)][_0x14bd0f(0x293)]),C[_0x14bd0f(0x174)](this[_0x14bd0f(0x1b8)]))[_0x14bd0f(0x17e)](_0x3f62f4=>{const _0x2eea58=_0x14bd0f,_0x3b5f44=_0x3f62f4,{objectId:_0x59bf1d}=_0x3b5f44[_0x2eea58(0x407)];_0x59bf1d===_0x1d91e9&&this[_0x2eea58(0x16e)][_0x2eea58(0xc0)](J[_0x2eea58(0x34f)])[_0x2eea58(0x15f)](_0x1d91e9);});};v['merge'](this[_0x2b914e(0x3c1)][_0x2b914e(0x283)](o[_0x2b914e(0x3a7)][_0x2b914e(0x23d)]),this[_0x2b914e(0x3c1)]['getTypeOfUnitAdded$'](o[_0x2b914e(0x3a7)][_0x2b914e(0x46d)]))[_0x2b914e(0x285)](C['map'](_0x3006ed=>_0x3006ed[_0x2b914e(0x2d9)]()),C[_0x2b914e(0x357)](_0x206373=>!o[_0x2b914e(0x29e)](_0x206373)),C[_0x2b914e(0x174)](this[_0x2b914e(0x1b8)]))[_0x2b914e(0x17e)](_0x20fdd3=>{_0x509bfd(_0x20fdd3);});}};ve=Qi([o['OnLifecycle'](o['LifecycleStages'][_0x42f461(0x1df)],ve),oe(0x0,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),oe(0x1,o[_0x42f461(0x237)]),oe(0x2,o[_0x42f461(0x114)]),oe(0x3,o[_0x42f461(0x1f3)](exports[_0x42f461(0x1bd)])),oe(0x4,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)]))],ve);var Ut=Object[_0x42f461(0x3c5)],en=Object[_0x42f461(0x1b1)],tn=(_0x184976,_0x24f1fa,_0x1a9979)=>_0x24f1fa in _0x184976?Ut(_0x184976,_0x24f1fa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a9979}):_0x184976[_0x24f1fa]=_0x1a9979,sn=(_0x50bdf4,_0x44cb21,_0x11f83f,_0x21118f)=>{const _0x3f7344=_0x42f461;for(var _0x19c15c=_0x21118f>0x1?void 0x0:_0x21118f?en(_0x44cb21,_0x11f83f):_0x44cb21,_0x58b016=_0x50bdf4[_0x3f7344(0x441)]-0x1,_0x1378d6;_0x58b016>=0x0;_0x58b016--)(_0x1378d6=_0x50bdf4[_0x58b016])&&(_0x19c15c=(_0x21118f?_0x1378d6(_0x44cb21,_0x11f83f,_0x19c15c):_0x1378d6(_0x19c15c))||_0x19c15c);return _0x21118f&&_0x19c15c&&Ut(_0x44cb21,_0x11f83f,_0x19c15c),_0x19c15c;},rt=(_0x44ae3b,_0x4f8a25)=>(_0x44ad87,_0xa0534b)=>_0x4f8a25(_0x44ad87,_0xa0534b,_0x44ae3b),nn=(_0x3d5f1c,_0x189787,_0x2be5f8)=>tn(_0x3d5f1c,_0x189787+'',_0x2be5f8);const rn=_0x42f461(0x43d);exports[_0x42f461(0xf3)]=class extends o[_0x42f461(0x11b)]{constructor(_0x48489f,_0x19d3e1,_0x51c099){const _0x47bba5=_0x42f461;super(),this[_0x47bba5(0x147)]=_0x48489f,this['_logService']=_0x19d3e1,this[_0x47bba5(0x16e)]=_0x51c099;}['onStarting'](_0x55e8be){const _0x54516a=_0x42f461;var _0x3367fe,_0x16ee6d,_0x4c907e,_0xca38e,_0x199336;_0x55e8be['has'](o['IUndoRedoService'])&&this[_0x54516a(0x313)]['error'](_0x54516a(0x411),_0x54516a(0x318));let _0x40b5e5=[[o[_0x54516a(0xcf)],{'useClass':Ae}],[exports['CollaborationSessionService']],[Fe],[P['HTTPService']],[We,{'useClass':Dt}],[W],[exports['LocalCacheService']],[P[_0x54516a(0x155)]],[me],[fe],[ge],[Be],[pe],[ke],[ve],[xe,{'useClass':(_0x16ee6d=(_0x3367fe=this[_0x54516a(0x147)])==null?void 0x0:_0x3367fe['socketService'])!=null?_0x16ee6d:exports[_0x54516a(0x12a)]}],[P['IHTTPImplementation'],{'useClass':P[_0x54516a(0xf4)]}],[o[_0x54516a(0x41d)],{'useClass':exports[_0x54516a(0x3ab)]}],[o[_0x54516a(0x1d2)],{'useClass':exports[_0x54516a(0x193)]}],[N[_0x54516a(0x473)],{'useClass':exports['ImageIoService']}],[exports['CollaborationController']],[exports[_0x54516a(0x3b3)]],[exports[_0x54516a(0x405)]],[de],[z]];(_0x4c907e=this[_0x54516a(0x147)])!=null&&_0x4c907e[_0x54516a(0x110)]&&_0x40b5e5[_0x54516a(0x302)]([Ee,{'useClass':ls}]),((_0xca38e=this[_0x54516a(0x147)])==null?void 0x0:_0xca38e[_0x54516a(0x189)])==null||this[_0x54516a(0x147)][_0x54516a(0x189)][_0x54516a(0x45a)](o[_0x54516a(0x3a7)]['UNIVER_SHEET'])?_0x40b5e5[_0x54516a(0x302)]([ue]):this[_0x54516a(0x147)][_0x54516a(0x189)]['includes'](o[_0x54516a(0x3a7)]['UNIVER_DOC'])&&_0x40b5e5['push']([Se]),_0x40b5e5=o[_0x54516a(0x20e)](_0x40b5e5,(_0x199336=this[_0x54516a(0x147)])==null?void 0x0:_0x199336[_0x54516a(0x3f0)]),_0x40b5e5[_0x54516a(0x375)](_0x46b922=>_0x55e8be['add'](_0x46b922)),_0x55e8be['get'](P['HTTPService'])[_0x54516a(0x116)]({'priority':0x14,'interceptor':P[_0x54516a(0x364)]({'maxParallel':0x6})}),this[_0x54516a(0x41b)]();}[_0x42f461(0x41b)](){const _0x4837f2=_0x42f461;var _0xe71b1a,_0x2c25a1;(_0xe71b1a=this['_config'])!=null&&_0xe71b1a[_0x4837f2(0x1a4)]||this[_0x4837f2(0x16e)][_0x4837f2(0xc0)](exports[_0x4837f2(0x3a0)])[_0x4837f2(0x1b3)](),(_0x2c25a1=this[_0x4837f2(0x147)])!=null&&_0x2c25a1[_0x4837f2(0x190)]&&this[_0x4837f2(0x16e)][_0x4837f2(0xc0)](pe);}},nn(exports[_0x42f461(0xf3)],_0x42f461(0x47e),rn),exports['UniverCollaborationClientPlugin']=sn([o['DependentOn'](_[_0x42f461(0x46e)]),rt(0x1,o[_0x42f461(0x218)]),rt(0x2,o[_0x42f461(0x1f3)](o['Injector']))],exports[_0x42f461(0xf3)]),exports['AUTHZ_URL_KEY']=Pt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=dt,exports[_0x42f461(0x36c)]=lt,exports['CollaborationStatus']=D,exports[_0x42f461(0x299)]=Ot,exports[_0x42f461(0x436)]=ke,exports[_0x42f461(0x3d8)]=ht,exports[_0x42f461(0x3e4)]=$e,exports[_0x42f461(0x340)]=xe,exports[_0x42f461(0x2bb)]=We,exports[_0x42f461(0x3c6)]=ut,exports[_0x42f461(0x22b)]=St,exports['SEND_CHANGESET_TIMEOUT_KEY']=ct,exports[_0x42f461(0x306)]=ot,exports['SNAPSHOT_URL_KEY']=at,exports[_0x42f461(0x437)]=V,exports['SheetCollabCursorShape']=Ct,exports['WebURLService']=Dt,exports[_0x42f461(0x17b)]=gt,exports[_0x42f461(0x46a)]=ft;