@univerjs-pro/collaboration-client 0.4.0-nightly.202410121605 → 0.4.0-nightly.202410131605

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 _0x28eb85=_0xb2fc;(function(_0x128c93,_0x12e637){const _0x2567cc=_0xb2fc,_0x75d7da=_0x128c93();while(!![]){try{const _0x33e3aa=parseInt(_0x2567cc(0x3ee))/0x1+parseInt(_0x2567cc(0x1cb))/0x2+-parseInt(_0x2567cc(0x1ab))/0x3*(-parseInt(_0x2567cc(0x229))/0x4)+-parseInt(_0x2567cc(0x3a8))/0x5*(-parseInt(_0x2567cc(0x150))/0x6)+-parseInt(_0x2567cc(0x19f))/0x7*(parseInt(_0x2567cc(0x17c))/0x8)+parseInt(_0x2567cc(0x26b))/0x9*(parseInt(_0x2567cc(0x428))/0xa)+parseInt(_0x2567cc(0x1e1))/0xb*(-parseInt(_0x2567cc(0x37b))/0xc);if(_0x33e3aa===_0x12e637)break;else _0x75d7da['push'](_0x75d7da['shift']());}catch(_0x384cb5){_0x75d7da['push'](_0x75d7da['shift']());}}}(_0x59b6,0xcf9a7));var kt=Object[_0x28eb85(0x114)],Bt=(_0x2404a4,_0x347c11,_0xdc958b)=>_0x347c11 in _0x2404a4?kt(_0x2404a4,_0x347c11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc958b}):_0x2404a4[_0x347c11]=_0xdc958b,d=(_0x5f2f1a,_0x182be8,_0x2ef595)=>Bt(_0x5f2f1a,typeof _0x182be8!=_0x28eb85(0x52f)?_0x182be8+'':_0x182be8,_0x2ef595);Object['defineProperty'](exports,Symbol[_0x28eb85(0x493)],{'value':_0x28eb85(0x353)});const a=require(_0x28eb85(0x38e)),v=require(_0x28eb85(0x3e9)),E=require(_0x28eb85(0x440)),X=require(_0x28eb85(0x237)),N=require(_0x28eb85(0x136)),P=require(_0x28eb85(0x33e)),_=require('@univerjs-pro/collaboration'),Vt=require(_0x28eb85(0x2ad)),V=require(_0x28eb85(0x366)),w=require('@univerjs/docs-ui'),C=require('@univerjs/sheets'),R=require(_0x28eb85(0x3b5)),L=require(_0x28eb85(0x2ab)),Je=require(_0x28eb85(0x3b0)),te=require(_0x28eb85(0x269)),U=require('react'),Wt=require(_0x28eb85(0x2d1)),Ft=require('@univerjs-pro/license'),ht=_0x28eb85(0x534),Gt='/universer-api/snapshot',_t=_0x28eb85(0x39a),Yt='SEND_CHANGESET_TIMEOUT',Kt=0x7d0,ut=_0x28eb85(0x16c),Xt=_0x28eb85(0x148),dt=_0x28eb85(0x2d8),qt=0x7530,Ve='HEARTBEAT_TIMEOUT',St=0x4e20,zt=0x4e20,vt=_0x28eb85(0x4c8),Jt=0x3,ft=_0x28eb85(0x2da),Zt=0x3e8,gt=_0x28eb85(0x4b7),Qt=_0x28eb85(0x424),mt='LOGIN_URL_KEY',es='/universer-api/oidc/authpage';var It=(_0x4cb4ed=>(_0x4cb4ed[_0x4cb4ed['UNDEFINED']=0x0]=_0x28eb85(0x486),_0x4cb4ed[_0x4cb4ed['OK']=0x1]='OK',_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x3e1)]=0x2]=_0x28eb85(0x3e1),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x35b)]=0x3]=_0x28eb85(0x35b),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x50e)]=0x4]=_0x28eb85(0x50e),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x1f0)]=0x5]=_0x28eb85(0x1f0),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x33a)]=0x6]=_0x28eb85(0x33a),_0x4cb4ed[_0x4cb4ed['INVALID_ARGUMENT']=0x7]=_0x28eb85(0x128),_0x4cb4ed[_0x4cb4ed['TOO_MANY_REQUESTS']=0x8]=_0x28eb85(0x50f),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x2a3)]=0x9]='COMPLETION_FINISHED',_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x4fc)]=0x1389]=_0x28eb85(0x4fc),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x248)]=0x1771]=_0x28eb85(0x248),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x27c)]=0x1772]=_0x28eb85(0x27c),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x35e)]=0x1b59]=_0x28eb85(0x35e),_0x4cb4ed[_0x4cb4ed['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x35d)]=0x1b5b]=_0x28eb85(0x35d),_0x4cb4ed[_0x4cb4ed['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x28eb85(0x3ac),_0x4cb4ed[_0x4cb4ed['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x28eb85(0x1d5),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x3fe)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4cb4ed[_0x4cb4ed['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x2cc)]=0x232b]=_0x28eb85(0x2cc),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x4cf)]=0x232c]=_0x28eb85(0x4cf),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x48e)]=0x232d]=_0x28eb85(0x48e),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x26c)]=0x2711]=_0x28eb85(0x26c),_0x4cb4ed[_0x4cb4ed['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x253)]=0x2713]=_0x28eb85(0x253),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x4b0)]=0x2714]=_0x28eb85(0x4b0),_0x4cb4ed[_0x4cb4ed[_0x28eb85(0x2d0)]=-0x1]=_0x28eb85(0x2d0),_0x4cb4ed))(It||{}),j=(_0x2177bd=>(_0x2177bd[_0x2177bd[_0x28eb85(0x4c5)]=0x0]=_0x28eb85(0x4c5),_0x2177bd[_0x2177bd[_0x28eb85(0x43a)]=0x1]='UNIVER_DOC',_0x2177bd[_0x2177bd['UNIVER_SHEET']=0x2]=_0x28eb85(0x384),_0x2177bd[_0x2177bd[_0x28eb85(0x25c)]=0x3]='UNIVER_SLIDE',_0x2177bd[_0x2177bd[_0x28eb85(0x4ce)]=0x4]='UNIVER_PROJECT',_0x2177bd[_0x2177bd[_0x28eb85(0x2d0)]=-0x1]=_0x28eb85(0x2d0),_0x2177bd))(j||{}),b=(_0x98db9=>(_0x98db9[_0x98db9[_0x28eb85(0x399)]=0x0]=_0x28eb85(0x399),_0x98db9[_0x98db9[_0x28eb85(0x14c)]=0x1]=_0x28eb85(0x14c),_0x98db9[_0x98db9[_0x28eb85(0x159)]=0x2]='JOIN',_0x98db9[_0x98db9[_0x28eb85(0x27d)]=0x3]='LEAVE',_0x98db9[_0x98db9[_0x28eb85(0x42e)]=0x4]=_0x28eb85(0x42e),_0x98db9[_0x98db9[_0x28eb85(0x1b7)]=0x5]=_0x28eb85(0x1b7),_0x98db9[_0x98db9[_0x28eb85(0x386)]=0x6]='RECV',_0x98db9[_0x98db9[_0x28eb85(0x2d0)]=-0x1]=_0x28eb85(0x2d0),_0x98db9))(b||{}),We=(_0x413b59=>(_0x413b59[_0x413b59['UNKNOWN_CODE']=0x0]=_0x28eb85(0x503),_0x413b59[_0x413b59['OK']=0x1]='OK',_0x413b59[_0x413b59[_0x28eb85(0x45b)]=0x2]=_0x28eb85(0x45b),_0x413b59[_0x413b59[_0x28eb85(0x2d0)]=-0x1]=_0x28eb85(0x2d0),_0x413b59))(We||{}),pt=(_0x511c09=>(_0x511c09[_0x511c09[_0x28eb85(0x50b)]=0x0]=_0x28eb85(0x50b),_0x511c09[_0x511c09['HttpImport']=0x1]=_0x28eb85(0x3bd),_0x511c09[_0x511c09[_0x28eb85(0x52e)]=0x2]=_0x28eb85(0x52e),_0x511c09[_0x511c09[_0x28eb85(0x21c)]=0x3]='UnitEmbedded',_0x511c09[_0x511c09[_0x28eb85(0x29e)]=0x4]=_0x28eb85(0x29e),_0x511c09[_0x511c09[_0x28eb85(0x2d0)]=-0x1]='UNRECOGNIZED',_0x511c09))(pt||{});const A=_0x28eb85(0x1e0),ts={};function Ct(_0x5d99ca){const _0x442f7f=_0x28eb85;var _0x5220bf,_0x164747,_0x20f07b,_0x1971c0;const _0x45dfca=_0x5d99ca['data'],_0x12bd3d=JSON[_0x442f7f(0x3a4)](_0x45dfca);switch(_0x12bd3d[_0x442f7f(0x224)]){case b[_0x442f7f(0x1b7)]:case b[_0x442f7f(0x14c)]:{const _0x390d50=_0x12bd3d[_0x442f7f(0x15c)];return{..._0x12bd3d,'data':_0x390d50,'cmd':_0x12bd3d['cmd']};}case b[_0x442f7f(0x159)]:{const _0x12a97a=_0x12bd3d[_0x442f7f(0x304)];return{..._0x12bd3d,'data':_0x12a97a,'cmd':_0x12bd3d[_0x442f7f(0x224)]};}case b[_0x442f7f(0x386)]:{const _0x56f1d8=_0x12bd3d['collaMsg'];switch(_0x56f1d8[_0x442f7f(0x16b)]){case _[_0x442f7f(0x46d)][_0x442f7f(0x192)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':(_0x5220bf=_0x56f1d8['permissionRejEvent'])==null?void 0x0:_0x5220bf['cs']},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)][_0x442f7f(0x3d4)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':(_0x164747=_0x56f1d8[_0x442f7f(0x332)])==null?void 0x0:_0x164747['cs']},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _['CollaborationEvent'][_0x442f7f(0x208)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':(_0x20f07b=_0x56f1d8['newCsEvent'])==null?void 0x0:_0x20f07b['cs']},'cmd':_0x12bd3d['cmd']};case _['CollaborationEvent'][_0x442f7f(0x402)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':(_0x1971c0=_0x56f1d8[_0x442f7f(0x222)])==null?void 0x0:_0x1971c0['cs']},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _['CollaborationEvent'][_0x442f7f(0x1c5)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x454)]},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)]['USERS_ENTER']:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x25b)]},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)]['USERS_LEAVE']:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x370)]},'cmd':_0x12bd3d['cmd']};case _['CollaborationEvent'][_0x442f7f(0x489)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8['liveShareNewHost']},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)][_0x442f7f(0x317)]:case _[_0x442f7f(0x46d)]['LIVESHARE_OPERATION']:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x125)]},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8['liveShareNewHost']},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)][_0x442f7f(0x257)]:return{..._0x12bd3d,'data':_0x56f1d8,'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _['CollaborationEvent'][_0x442f7f(0x37f)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x199)]},'cmd':_0x12bd3d[_0x442f7f(0x224)]};case _[_0x442f7f(0x46d)][_0x442f7f(0x300)]:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x1a2)]},'cmd':_0x12bd3d['cmd']};case _[_0x442f7f(0x46d)]['SHOULD_CLOSE_CONN']:return{..._0x12bd3d,'data':{..._0x56f1d8,'data':_0x56f1d8[_0x442f7f(0x153)]},'cmd':_0x12bd3d[_0x442f7f(0x224)]};default:return _0x12bd3d;}}default:return _0x12bd3d;}}function Et(_0x3d6c37){const _0x176bd0=_0x28eb85;switch(_0x3d6c37[_0x176bd0(0x224)]){case b[_0x176bd0(0x1b7)]:case b[_0x176bd0(0x14c)]:return JSON['stringify']({'cmd':_0x3d6c37[_0x176bd0(0x224)],'routeKey':_0x3d6c37['routeKey']});case b[_0x176bd0(0x42e)]:{let _0x4184d9;switch(_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x16b)]){case _[_0x176bd0(0x46d)][_0x176bd0(0x1c5)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)][_0x176bd0(0x1c5)],'updateCursorEvent':_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x451)]};break;}case _[_0x176bd0(0x46d)][_0x176bd0(0x32b)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)][_0x176bd0(0x32b)],'leaveEvent':_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x451)]};break;}case _['CollaborationEvent'][_0x176bd0(0x2c4)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)]['USERS_ENTER'],'joinEvent':_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x451)]};break;}case _[_0x176bd0(0x46d)][_0x176bd0(0x489)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)][_0x176bd0(0x489)],'liveShareNewHost':_0x3d6c37[_0x176bd0(0x451)]['data']};break;}case _[_0x176bd0(0x46d)][_0x176bd0(0x322)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x3d6c37[_0x176bd0(0x451)]['data']};break;}case _[_0x176bd0(0x46d)][_0x176bd0(0x344)]:{_0x4184d9={'eventID':_['CollaborationEvent'][_0x176bd0(0x344)],'liveShareTerminate':_0x3d6c37[_0x176bd0(0x451)]['data']};break;}case _['CollaborationEvent'][_0x176bd0(0x1ee)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x451)]};break;}case _['CollaborationEvent'][_0x176bd0(0x317)]:{_0x4184d9={'eventID':_[_0x176bd0(0x46d)][_0x176bd0(0x317)]};break;}default:_0x4184d9={'eventID':_0x3d6c37[_0x176bd0(0x451)][_0x176bd0(0x16b)]};}return JSON[_0x176bd0(0x360)]({'cmd':_0x3d6c37[_0x176bd0(0x224)],'routeKey':_0x3d6c37[_0x176bd0(0x22b)],'collaMsg':_0x4184d9});}case b[_0x176bd0(0x159)]:return JSON[_0x176bd0(0x360)]({'cmd':_0x3d6c37['cmd'],'routeKey':_0x3d6c37['routeKey'],'joinReq':_0x3d6c37[_0x176bd0(0x451)]});case b[_0x176bd0(0x27d)]:return JSON[_0x176bd0(0x360)]({'cmd':_0x3d6c37[_0x176bd0(0x224)],'routeKey':_0x3d6c37[_0x176bd0(0x22b)],'leaveReq':_0x3d6c37[_0x176bd0(0x451)]});default:throw new Error(_0x176bd0(0x2ec));}}var ss=Object[_0x28eb85(0x114)],is=Object[_0x28eb85(0x38b)],ns=(_0x376671,_0x103ce6,_0x52541e,_0x137178)=>{const _0x367e7c=_0x28eb85;for(var _0x5c2c82=_0x137178>0x1?void 0x0:_0x137178?is(_0x103ce6,_0x52541e):_0x103ce6,_0x335765=_0x376671[_0x367e7c(0x355)]-0x1,_0x503819;_0x335765>=0x0;_0x335765--)(_0x503819=_0x376671[_0x335765])&&(_0x5c2c82=(_0x137178?_0x503819(_0x103ce6,_0x52541e,_0x5c2c82):_0x503819(_0x5c2c82))||_0x5c2c82);return _0x137178&&_0x5c2c82&&ss(_0x103ce6,_0x52541e,_0x5c2c82),_0x5c2c82;},oe=(_0x5e1bb1,_0x511e22)=>(_0x5122f8,_0x4212a3)=>_0x511e22(_0x5122f8,_0x4212a3,_0x5e1bb1);const Fe=a[_0x28eb85(0x12a)](_0x28eb85(0x2d9));function rs(_0x3a1182,_0x13917e,_0x54eecc){const _0x50d396=_0x28eb85;return _0x3a1182+'/'+_0x13917e+_0x50d396(0x3ef)+_0x54eecc+_0x50d396(0x470);}exports[_0x28eb85(0x41a)]=class extends a[_0x28eb85(0x216)]{constructor(_0x3bb6b8,_0x13238e,_0x20d73b,_0x536b80,_0x3f8e55){const _0x54c5c3=_0x28eb85;super(),this[_0x54c5c3(0x302)]=_0x3bb6b8,this['_ws']=_0x13238e,this[_0x54c5c3(0x4d8)]=_0x20d73b,this[_0x54c5c3(0x1a7)]=_0x536b80,this[_0x54c5c3(0x478)]=_0x3f8e55;}[_0x28eb85(0x345)](_0x3b65a8){const _0x758c43=_0x28eb85,_0x52c45a=this[_0x758c43(0x1d6)][_0x758c43(0x345)](_0x3b65a8);if(!_0x52c45a)throw new Error(_0x758c43(0x3b7));const _0x1424fe=new a[(_0x758c43(0x3fa))](),_0x50214f=new v[(_0x758c43(0x1ec))]();_0x1424fe['add'](_0x52c45a[_0x758c43(0x2a6)][_0x758c43(0x14a)](_0x33cec6=>_0x50214f[_0x758c43(0x3fd)](_0x33cec6))),_0x1424fe[_0x758c43(0x4e1)](a['toDisposable'](()=>_0x50214f[_0x758c43(0x500)]()));const _0xa72eac=new v[(_0x758c43(0x1ec))]();_0x1424fe[_0x758c43(0x4e1)](_0x52c45a[_0x758c43(0x1e8)][_0x758c43(0x14a)](_0x476062=>_0xa72eac[_0x758c43(0x3fd)](_0x476062))),_0x1424fe[_0x758c43(0x4e1)](a[_0x758c43(0x40e)](()=>_0xa72eac[_0x758c43(0x500)]()));const _0x1d0ea6=new v[(_0x758c43(0x1ec))]();_0x1424fe['add'](_0x52c45a[_0x758c43(0x3e5)][_0x758c43(0x14a)](_0x4e3b23=>{const _0x103749=Ct(_0x4e3b23);_0x1d0ea6['next'](_0x103749);})),_0x1424fe['add'](a[_0x758c43(0x40e)](()=>_0x1d0ea6[_0x758c43(0x500)]()));let _0x1ab5e4;const _0x7505a=()=>{const _0x282726=_0x758c43;_0xa72eac[_0x282726(0x3fd)](new Event('connection\x20error')),_0x50214f[_0x282726(0x3fd)](new CloseEvent(_0x282726(0x213))),_0x1ab5e4[_0x282726(0x4d9)]();};return _0x1ab5e4={'memberID':'','close$':_0x50214f[_0x758c43(0x291)](),'error$':_0xa72eac[_0x758c43(0x291)](),'open$':_0x52c45a[_0x758c43(0x3d2)],'message$':_0x1d0ea6[_0x758c43(0x291)](),'send':_0x38a38c=>{const _0x1f1eb9=_0x758c43;if(_0x38a38c[_0x1f1eb9(0x224)]===b['INGEST']){if(_0x38a38c[_0x1f1eb9(0x451)]['eventID']===_[_0x1f1eb9(0x46d)][_0x1f1eb9(0x13f)]){this[_0x1f1eb9(0x147)](_0x1ab5e4,_0x38a38c['data'])[_0x1f1eb9(0x50c)](_0x7bcaff=>{const _0x2a7226=_0x1f1eb9;this[_0x2a7226(0x1a7)][_0x2a7226(0x533)](_0x7bcaff),_0x7505a();});return;}if(_0x38a38c['data'][_0x1f1eb9(0x16b)]===_[_0x1f1eb9(0x46d)][_0x1f1eb9(0x336)]){const _0x1561f3=_0x38a38c[_0x1f1eb9(0x451)];this[_0x1f1eb9(0x521)](_0x1561f3)['then'](_0x1ac8e3=>{const _0x1c7fdc=_0x1f1eb9;_0x1d0ea6['next']({'cmd':b['RECV'],'code':We['OK'],'routeKey':_0x1561f3[_0x1c7fdc(0x451)][_0x1c7fdc(0x333)],'routeType':'','data':{'eventID':_[_0x1c7fdc(0x46d)][_0x1c7fdc(0x4fb)],'data':{'changesets':_0x1ac8e3}}});})[_0x1f1eb9(0x50c)](_0x20820b=>{const _0x2050ea=_0x1f1eb9;this[_0x2050ea(0x1a7)]['error'](_0x20820b),_0x7505a();});return;}}_0x52c45a[_0x1f1eb9(0x178)](Et(_0x38a38c));},'close':()=>{const _0x350b82=_0x758c43;_0x52c45a[_0x350b82(0x4d9)](),_0x1424fe[_0x350b82(0x347)]();}},_0x1ab5e4;}async['_submitChangeset'](_0x5b79b4,_0x4dec06){const _0x135bf4=_0x28eb85;var _0x829cf,_0x216277;const {unitType:_0x5f5bcc,unitID:_0x5bf8ed,changeset:_0x27ea13}=_0x4dec06[_0x135bf4(0x451)],_0x39370d={'unitID':_0x5bf8ed,'memberID':_0x5b79b4[_0x135bf4(0x25e)],'type':_0x5f5bcc,'changeset':_[_0x135bf4(0x23e)](_0x27ea13)},_0xe807b0=this['_configService']['getConfig'](gt),_0x5efe3e=this['_configService'][_0x135bf4(0x184)](A),_0x35ac05=rs((_0x216277=(_0x829cf=_0x5efe3e==null?void 0x0:_0x5efe3e['collabSubmitChangesetUrl'])!=null?_0x829cf:_0xe807b0)!=null?_0x216277:Qt,_0x5f5bcc,_0x5bf8ed);try{await this['_http'][_0x135bf4(0x252)](_0x35ac05,{'body':_0x39370d});}catch(_0x48133f){throw this[_0x135bf4(0x1a7)][_0x135bf4(0x533)](_0x135bf4(0x3cd),_0x135bf4(0x4c0)),_0x48133f;}}async['_fetchMissChangesets'](_0x322355){const _0x523fb3=_0x28eb85,{unitID:_0x549cd9,from:_0x1adb40,to:_0x3b9260,unitType:_0xe8d031}=_0x322355['data'];return(await this[_0x523fb3(0x478)][_0x523fb3(0x185)]({'metadata':void 0x0},{'unitID':_0x549cd9,'type':_0xe8d031,'from':_0x1adb40,'to':_0x3b9260}))['changesets'];}},exports[_0x28eb85(0x41a)]=ns([oe(0x0,a['Inject'](P[_0x28eb85(0x176)])),oe(0x1,a[_0x28eb85(0x23f)](P[_0x28eb85(0x2a1)])),oe(0x2,a[_0x28eb85(0x420)]),oe(0x3,a['ILogService']),oe(0x4,_[_0x28eb85(0x383)])],exports['CollaborationSocketService']);const os=_0x28eb85(0x2fa);function as(_0x365679){const _0xb7858d=_0x28eb85;return JSON[_0xb7858d(0x360)](_0x365679)['length'];}class Ge{constructor(){const _0x16ddd9=_0x28eb85;d(this,_0x16ddd9(0x1e9),new v['Subject']()),d(this,_0x16ddd9(0x21f),this['_commentUpdate$'][_0x16ddd9(0x291)]());}[_0x28eb85(0x2d5)](_0x36699c){const _0x102757=_0x28eb85;this[_0x102757(0x1e9)][_0x102757(0x3fd)](_0x36699c);}}var cs=Object[_0x28eb85(0x114)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x9edeae,_0x3c86b8,_0x4fb51a,_0x4d4b6d)=>{const _0x345102=_0x28eb85;for(var _0x14e228=_0x4d4b6d>0x1?void 0x0:_0x4d4b6d?ls(_0x3c86b8,_0x4fb51a):_0x3c86b8,_0x51eb78=_0x9edeae[_0x345102(0x355)]-0x1,_0x1f7dea;_0x51eb78>=0x0;_0x51eb78--)(_0x1f7dea=_0x9edeae[_0x51eb78])&&(_0x14e228=(_0x4d4b6d?_0x1f7dea(_0x3c86b8,_0x4fb51a,_0x14e228):_0x1f7dea(_0x14e228))||_0x14e228);return _0x4d4b6d&&_0x14e228&&cs(_0x3c86b8,_0x4fb51a,_0x14e228),_0x14e228;},Ze=(_0x4c11d4,_0x520c65)=>(_0xd37627,_0xcf0820)=>_0x520c65(_0xd37627,_0xcf0820,_0x4c11d4);let q=class extends a[_0x28eb85(0x216)]{constructor(_0x4710e3,_0x5176e1){const _0x1056f4=_0x28eb85;super(),d(this,_0x1056f4(0x27f),new Map()),(this['_univerInstanceService']=_0x4710e3,this[_0x1056f4(0x492)]=_0x5176e1,this[_0x1056f4(0x214)](a[_0x1056f4(0x40e)](v[_0x1056f4(0x1ea)](this['_univerInstanceService'][_0x1056f4(0x1da)](a['UniverInstanceType'][_0x1056f4(0x384)])['pipe'](E[_0x1056f4(0x331)](_0x3e5ff8=>_0x3e5ff8[_0x1056f4(0x270)]())),this[_0x1056f4(0x357)]['getTypeOfUnitDisposed$'](a[_0x1056f4(0x24a)][_0x1056f4(0x43a)])[_0x1056f4(0x495)](E[_0x1056f4(0x331)](_0x17b1c8=>_0x17b1c8['getUnitId']())),this[_0x1056f4(0x357)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x1056f4(0x25c)])[_0x1056f4(0x495)](E[_0x1056f4(0x331)](_0x12b947=>_0x12b947['getUnitId']())))[_0x1056f4(0x14a)](_0x400483=>this[_0x1056f4(0x41c)](_0x400483)))));}[_0x28eb85(0x219)](_0x47e719){const _0x500338=_0x28eb85;this[_0x500338(0x492)][_0x500338(0x219)](_0x47e719);}[_0x28eb85(0x173)](){const _0x248a56=_0x28eb85;return this['_userManagerService'][_0x248a56(0x173)]();}['updateMember'](_0x23ee10,_0x40c7cb){const _0x479710=_0x28eb85;let _0x136f2d=this['_roomMembers'][_0x479710(0x30d)](_0x23ee10);_0x136f2d||(_0x136f2d=new _s(),this['_roomMembers'][_0x479710(0x191)](_0x23ee10,_0x136f2d)),_0x136f2d[_0x479710(0x1ed)](_0x40c7cb);}[_0x28eb85(0x187)](_0x38514c,_0x14198a){const _0x4871cd=_0x28eb85,_0x1a3532=this[_0x4871cd(0x27f)][_0x4871cd(0x30d)](_0x38514c);_0x1a3532&&_0x1a3532['removeMember'](_0x14198a);}[_0x28eb85(0x3e6)](_0xe7a691){const _0x258860=_0x28eb85;return this[_0x258860(0x27f)][_0x258860(0x30d)](_0xe7a691);}[_0x28eb85(0x4f6)](_0x51d461,_0x3402fc){const _0x4b08fe=_0x28eb85,_0x4ede08=this[_0x4b08fe(0x27f)][_0x4b08fe(0x30d)](_0x51d461);if(_0x4ede08)return _0x4ede08[_0x4b08fe(0x4f6)](_0x3402fc);}[_0x28eb85(0x41c)](_0xf6c0af){const _0x3fd957=_0x28eb85,_0x23a84f=this[_0x3fd957(0x27f)][_0x3fd957(0x30d)](_0xf6c0af);_0x23a84f&&(_0x23a84f[_0x3fd957(0x347)](),this[_0x3fd957(0x27f)][_0x3fd957(0x25f)](_0xf6c0af));}[_0x28eb85(0x347)](){const _0x2d9b88=_0x28eb85;this[_0x2d9b88(0x27f)]['forEach'](_0x1b73a1=>_0x1b73a1[_0x2d9b88(0x347)]()),this[_0x2d9b88(0x27f)][_0x2d9b88(0x382)]();}};q=hs([Ze(0x0,a[_0x28eb85(0x286)]),Ze(0x1,a[_0x28eb85(0x23f)](a['UserManagerService']))],q);class _s extends a[_0x28eb85(0x216)]{constructor(){const _0x27f594=_0x28eb85;super(...arguments),d(this,_0x27f594(0x303),new Map());}[_0x28eb85(0x347)](){const _0x29838a=_0x28eb85;this[_0x29838a(0x303)][_0x29838a(0x382)]();}['updateMember'](_0x200745){const _0x503017=_0x28eb85;this[_0x503017(0x303)][_0x503017(0x191)](_0x200745[_0x503017(0x25e)],_0x200745);}['removeMember'](_0x97c635){const _0x4954ee=_0x28eb85;this['_members'][_0x4954ee(0x25f)](_0x97c635);}[_0x28eb85(0x4f6)](_0x11cd95){const _0x10f717=_0x28eb85;return this[_0x10f717(0x303)]['get'](_0x11cd95);}}var us=Object[_0x28eb85(0x114)],ds=Object[_0x28eb85(0x38b)],Ss=(_0x29a319,_0x48a7fa,_0x181063,_0x27fcc9)=>{for(var _0x300d4f=_0x27fcc9>0x1?void 0x0:_0x27fcc9?ds(_0x48a7fa,_0x181063):_0x48a7fa,_0xddd251=_0x29a319['length']-0x1,_0x5e18d5;_0xddd251>=0x0;_0xddd251--)(_0x5e18d5=_0x29a319[_0xddd251])&&(_0x300d4f=(_0x27fcc9?_0x5e18d5(_0x48a7fa,_0x181063,_0x300d4f):_0x5e18d5(_0x300d4f))||_0x300d4f);return _0x27fcc9&&_0x300d4f&&us(_0x48a7fa,_0x181063,_0x300d4f),_0x300d4f;},B=(_0x16895b,_0x3594b2)=>(_0x58dbf3,_0x3d57b4)=>_0x3594b2(_0x58dbf3,_0x3d57b4,_0x16895b),$=(_0x4c71f2=>(_0x4c71f2[_0x4c71f2[_0x28eb85(0x36f)]=0x0]=_0x28eb85(0x36f),_0x4c71f2[_0x4c71f2[_0x28eb85(0x379)]=0x1]='JOINING',_0x4c71f2[_0x4c71f2[_0x28eb85(0x29c)]=0x2]=_0x28eb85(0x29c),_0x4c71f2[_0x4c71f2[_0x28eb85(0x47d)]=0x3]='ONLINE',_0x4c71f2))($||{});exports['CollaborationSession']=class extends a[_0x28eb85(0x2f9)]{constructor(_0x1dbd23,_0x330a7b,_0x5273e7,_0x8a2190,_0x2f1bdc,_0x6302d9,_0x205f0c,_0x1e50a9,_0x33a738,_0x40d9f1){const _0x47c46d=_0x28eb85;super(),d(this,_0x47c46d(0x299),new v[(_0x47c46d(0x276))](0x0)),d(this,_0x47c46d(0x194),this[_0x47c46d(0x299)][_0x47c46d(0x291)]()),d(this,_0x47c46d(0x4ed),new v[(_0x47c46d(0x1ec))]()),d(this,_0x47c46d(0x476),this[_0x47c46d(0x4ed)][_0x47c46d(0x291)]()),d(this,_0x47c46d(0x2a7)),d(this,'_socketMessageSubscription'),d(this,_0x47c46d(0x463)),d(this,'_shouldReportTelemetry',!0x1),d(this,'_telemetryInfo',null),(this[_0x47c46d(0x1bd)]=_0x1dbd23,this[_0x47c46d(0x1a7)]=_0x5273e7,this[_0x47c46d(0x3be)]=_0x8a2190,this[_0x47c46d(0x23d)]=_0x2f1bdc,this['_configService']=_0x6302d9,this[_0x47c46d(0x122)]=_0x205f0c,this[_0x47c46d(0x4c9)]=_0x1e50a9,this['_commentService']=_0x33a738,this[_0x47c46d(0x183)]=_0x40d9f1,this[_0x47c46d(0x52d)]=!!this['_telemetryService'],_0x330a7b[_0x47c46d(0x495)](v['takeUntil'](this[_0x47c46d(0x2fb)]))['subscribe'](_0x1c7e8c=>{const _0x41cb5d=_0x47c46d;var _0xec55cb;typeof _0x1c7e8c>'u'||(this[_0x41cb5d(0x2a7)]=_0x1c7e8c,_0x1c7e8c?(this[_0x41cb5d(0x3a9)](_0x1c7e8c),this[_0x41cb5d(0x19b)]=_0x1c7e8c[_0x41cb5d(0x3e5)][_0x41cb5d(0x14a)](_0x56caf2=>{const _0x4baf0d=_0x41cb5d;_0x56caf2[_0x4baf0d(0x22b)]===this[_0x4baf0d(0x1bd)]&&this[_0x4baf0d(0x2b6)](_0x56caf2);})):(this[_0x41cb5d(0x3d1)](),this[_0x41cb5d(0x299)][_0x41cb5d(0x3fd)](0x2),(_0xec55cb=this['_socketMessageSubscription'])==null||_0xec55cb['unsubscribe'](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0x47c46d(0x3be)][_0x47c46d(0x395)](()=>{const _0x52aa14=_0x47c46d;var _0x7ebfaf;(_0x7ebfaf=this['_socket'])==null||_0x7ebfaf[_0x52aa14(0x178)]({'cmd':b[_0x52aa14(0x27d)],'data':{'roomID':this[_0x52aa14(0x1bd)]}});})));}get[_0x28eb85(0x4ab)](){return this['_sessionStatus$']['getValue']();}[_0x28eb85(0x2e4)](){const _0x4c2f09=_0x28eb85;var _0x592c5b,_0x5a5315;return(_0x5a5315=(_0x592c5b=this[_0x4c2f09(0x2a7)])==null?void 0x0:_0x592c5b[_0x4c2f09(0x25e)])!=null?_0x5a5315:null;}['dispose'](){const _0x16d617=_0x28eb85;super[_0x16d617(0x347)](),this[_0x16d617(0x2fb)][_0x16d617(0x3fd)](),this[_0x16d617(0x2fb)][_0x16d617(0x500)]();}[_0x28eb85(0x4d9)](){const _0x416c21=_0x28eb85;var _0x16fc27,_0x3d7d23;this[_0x416c21(0x3d1)](),(_0x16fc27=this[_0x416c21(0x2a7)])==null||_0x16fc27[_0x416c21(0x178)]({'cmd':b[_0x416c21(0x27d)],'data':{'roomID':this[_0x416c21(0x1bd)]}}),(_0x3d7d23=this[_0x416c21(0x2a7)])==null||_0x3d7d23[_0x416c21(0x4d9)](),this['_event$'][_0x416c21(0x500)](),this['_sessionStatus$'][_0x416c21(0x500)](),this[_0x416c21(0x347)]();}[_0x28eb85(0x2b6)](_0x46fc18){const _0x404d28=_0x28eb85;_0x46fc18['cmd']===b[_0x404d28(0x159)]?this[_0x404d28(0x4b5)](_0x46fc18):_0x46fc18['cmd']===b[_0x404d28(0x386)]&&this[_0x404d28(0x20f)](_0x46fc18);}[_0x28eb85(0x3a9)](_0x8d6783){const _0x4a2c62=_0x28eb85;this[_0x4a2c62(0x299)][_0x4a2c62(0x3fd)](0x1),_0x8d6783[_0x4a2c62(0x178)]({'cmd':b[_0x4a2c62(0x159)],'routeKey':this[_0x4a2c62(0x1bd)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4a2c62(0x1bd)]}]}});}[_0x28eb85(0x4b5)](_0x5c219b){const _0x2782dd=_0x28eb85;var _0x10a7c9;if(_0x5c219b['code']===We['FAIL']){this[_0x2782dd(0x23d)][_0x2782dd(0x2bd)]({'type':X[_0x2782dd(0x2ea)][_0x2782dd(0x529)],'content':this[_0x2782dd(0x122)]['t'](_0x2782dd(0x512))}),this[_0x2782dd(0x299)][_0x2782dd(0x3fd)](0x2);return;}this[_0x2782dd(0x299)][_0x2782dd(0x3fd)](0x3);const _0x5c9be6=(_0x10a7c9=_0x5c219b[_0x2782dd(0x451)][_0x2782dd(0x37a)][this['_unitID']])==null?void 0x0:_0x10a7c9['members'];_0x5c9be6&&_0x5c9be6[_0x2782dd(0x2bf)](_0x23c359=>this[_0x2782dd(0x4c9)][_0x2782dd(0x1ed)](this[_0x2782dd(0x1bd)],_0x23c359));}['_onRecvEvent'](_0x1438b7){const _0x14d549=_0x28eb85;try{const _0x834c9=_0x1438b7[_0x14d549(0x451)];switch(_0x834c9[_0x14d549(0x16b)]){case _[_0x14d549(0x46d)][_0x14d549(0x2c4)]:this['_onUserJoin'](_0x834c9),this['_event$']['next'](_0x834c9);break;case _[_0x14d549(0x46d)]['USERS_LEAVE']:this['_onUserLeave'](_0x834c9),this[_0x14d549(0x4ed)][_0x14d549(0x3fd)](_0x834c9);break;case _[_0x14d549(0x46d)][_0x14d549(0x3d4)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x14d549(0x4df)](),this[_0x14d549(0x4ed)][_0x14d549(0x3fd)](_0x834c9);break;case _[_0x14d549(0x46d)][_0x14d549(0x257)]:this[_0x14d549(0x1a7)]['error'](_0x14d549(0x418)+JSON[_0x14d549(0x360)](_0x834c9)),this[_0x14d549(0x4ed)][_0x14d549(0x3fd)](_0x834c9);break;case _[_0x14d549(0x46d)]['COMMENT_UPDATE']:this[_0x14d549(0x509)][_0x14d549(0x2d5)](_0x834c9[_0x14d549(0x451)]),this['_event$'][_0x14d549(0x3fd)](_0x834c9);break;default:this['_event$'][_0x14d549(0x3fd)](_0x834c9);}}catch(_0x477892){this[_0x14d549(0x1a7)][_0x14d549(0x533)](_0x477892,_0x1438b7);}}[_0x28eb85(0x243)](_0x44de88){const _0x214ad9=_0x28eb85;this[_0x214ad9(0x4c9)][_0x214ad9(0x1ed)](this[_0x214ad9(0x1bd)],_0x44de88['data']);}[_0x28eb85(0x1f9)](_0x1ccdc3){const _0x21953f=_0x28eb85;this[_0x21953f(0x4c9)][_0x21953f(0x187)](this['_unitID'],_0x1ccdc3[_0x21953f(0x451)][_0x21953f(0x25e)]);}async['send'](_0x2dfa1a,_0x540904){const _0x53b39f=_0x28eb85;if(this['sessionStatus']!==0x3||!this[_0x53b39f(0x2a7)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2dfa1a[_0x53b39f(0x16b)]===_[_0x53b39f(0x46d)][_0x53b39f(0x13f)]&&(this[_0x53b39f(0x527)](),this[_0x53b39f(0x11a)](_0x2dfa1a)),this[_0x53b39f(0x2a7)][_0x53b39f(0x178)]({'cmd':b['INGEST'],'routeKey':_0x540904,'routeType':'','data':_0x2dfa1a});}catch(_0xfa0d21){this[_0x53b39f(0x1a7)][_0x53b39f(0x533)](_0xfa0d21);}}[_0x28eb85(0x527)](){const _0x54c694=_0x28eb85;var _0x1e3edc;this[_0x54c694(0x463)]=window[_0x54c694(0x16f)](()=>{const _0x1cbe06=_0x54c694;this[_0x1cbe06(0x463)]=null,this[_0x1cbe06(0x23d)]['show']({'type':X[_0x1cbe06(0x2ea)][_0x1cbe06(0x457)],'content':this[_0x1cbe06(0x122)]['t'](_0x1cbe06(0x1f1))});},(_0x1e3edc=this['_configService'][_0x54c694(0x184)](Ve))!=null?_0x1e3edc:St);}['_clearCollaborationTimeoutTimer'](){const _0x4e68ed=_0x28eb85;this[_0x4e68ed(0x463)]&&(clearTimeout(this[_0x4e68ed(0x463)]),this[_0x4e68ed(0x463)]=null);}[_0x28eb85(0x11a)](_0x13bda8){const _0x498eaf=_0x28eb85;if(!this[_0x498eaf(0x52d)])return;const {data:_0x143127}=_0x13bda8,{unitID:_0x8253,changeset:_0x19ab69}=_0x143127,{mutations:_0x327eef,type:_0x28fb13}=_0x19ab69;this[_0x498eaf(0x416)]={'unitId':_0x8253,'type':_0x28fb13,'startTime':performance[_0x498eaf(0x48f)](),'stopTime':0x0,'duration':0x0,'size':as(_0x327eef)};}[_0x28eb85(0x518)](){const _0x46e870=_0x28eb85;if(this[_0x46e870(0x52d)]){if(!this['_telemetryInfo']){this['_logService'][_0x46e870(0x533)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo']['stopTime']=performance['now'](),this[_0x46e870(0x416)][_0x46e870(0x1ca)]=this[_0x46e870(0x416)][_0x46e870(0x284)]-this[_0x46e870(0x416)]['startTime'],this[_0x46e870(0x183)][_0x46e870(0x34f)](os,this[_0x46e870(0x416)]),this['_telemetryInfo']=null;}}[_0x28eb85(0x3d1)](){this['_telemetryInfo']=null;}},exports['CollaborationSession']=Ss([B(0x2,a['ILogService']),B(0x3,N['IBeforeCloseService']),B(0x4,N['IMessageService']),B(0x5,a[_0x28eb85(0x420)]),B(0x6,a[_0x28eb85(0x23f)](a[_0x28eb85(0x3c6)])),B(0x7,a[_0x28eb85(0x23f)](q)),B(0x8,a[_0x28eb85(0x23f)](Ge)),B(0x9,a['Optional'](Vt[_0x28eb85(0x4e9)]))],exports[_0x28eb85(0x15f)]);var vs=Object[_0x28eb85(0x114)],fs=Object['getOwnPropertyDescriptor'],gs=(_0x3dd153,_0x1e2895,_0x40cc41,_0x14ada9)=>{const _0x3a1534=_0x28eb85;for(var _0x5ac15c=_0x14ada9>0x1?void 0x0:_0x14ada9?fs(_0x1e2895,_0x40cc41):_0x1e2895,_0xdadd52=_0x3dd153[_0x3a1534(0x355)]-0x1,_0x353f9e;_0xdadd52>=0x0;_0xdadd52--)(_0x353f9e=_0x3dd153[_0xdadd52])&&(_0x5ac15c=(_0x14ada9?_0x353f9e(_0x1e2895,_0x40cc41,_0x5ac15c):_0x353f9e(_0x5ac15c))||_0x5ac15c);return _0x14ada9&&_0x5ac15c&&vs(_0x1e2895,_0x40cc41,_0x5ac15c),_0x5ac15c;},Z=(_0x44134e,_0xbbfa8f)=>(_0x547ee1,_0x31b00d)=>_0xbbfa8f(_0x547ee1,_0x31b00d,_0x44134e);exports[_0x28eb85(0x398)]=class extends a[_0x28eb85(0x216)]{constructor(_0x58b2c5,_0x1ec205,_0xaa288,_0x4c35a5,_0x426ce3,_0x1586d1){const _0x6eb1d8=_0x28eb85;super(),d(this,_0x6eb1d8(0x51a),new v[(_0x6eb1d8(0x276))](void 0x0)),d(this,_0x6eb1d8(0x4e3),this[_0x6eb1d8(0x51a)]['asObservable']()),d(this,_0x6eb1d8(0x363),null),d(this,_0x6eb1d8(0x3aa),new Map()),d(this,_0x6eb1d8(0x19c),new v['BehaviorSubject']($[_0x6eb1d8(0x36f)])),d(this,_0x6eb1d8(0x1dd),this[_0x6eb1d8(0x19c)][_0x6eb1d8(0x291)]()),d(this,_0x6eb1d8(0x17b),!0x1),d(this,_0x6eb1d8(0x358)),d(this,_0x6eb1d8(0x2a2),0x0),d(this,_0x6eb1d8(0x48a)),d(this,_0x6eb1d8(0x51f)),(this['_injector']=_0x58b2c5,this['_localeService']=_0x1ec205,this[_0x6eb1d8(0x23d)]=_0xaa288,this[_0x6eb1d8(0x1a7)]=_0x4c35a5,this[_0x6eb1d8(0x4d8)]=_0x426ce3,this[_0x6eb1d8(0x49c)]=_0x1586d1,this[_0x6eb1d8(0x236)]());}get[_0x28eb85(0x2a7)](){const _0xcc982d=_0x28eb85;return this['_socket$'][_0xcc982d(0x4d6)]();}[_0x28eb85(0x236)](){const _0x1d727c=_0x28eb85;this[_0x1d727c(0x2e1)](),this[_0x1d727c(0x290)]();}[_0x28eb85(0x347)](){const _0x312159=_0x28eb85;super[_0x312159(0x347)](),this['_sessions'][_0x312159(0x2bf)](_0x7fbd5a=>_0x7fbd5a[_0x312159(0x347)]()),this[_0x312159(0x3aa)][_0x312159(0x382)](),this['_status$']['complete']();}async[_0x28eb85(0x123)](_0x48a6b4){const _0x2e9db0=_0x28eb85;if(this[_0x2e9db0(0x3aa)][_0x2e9db0(0x186)](_0x48a6b4))return this['_sessions']['get'](_0x48a6b4);this[_0x2e9db0(0x251)]();const _0x4bd4fa=this[_0x2e9db0(0x152)][_0x2e9db0(0x2e6)](exports[_0x2e9db0(0x15f)],_0x48a6b4,this['_socket$'][_0x2e9db0(0x291)]());return this['_sessions'][_0x2e9db0(0x191)](_0x48a6b4,_0x4bd4fa),_0x4bd4fa;}[_0x28eb85(0x42a)](_0x1122ae){const _0x369af5=_0x28eb85;var _0x5c04ab;const _0x140674=this[_0x369af5(0x3aa)][_0x369af5(0x30d)](_0x1122ae);_0x140674&&(this[_0x369af5(0x3aa)][_0x369af5(0x25f)](_0x1122ae),_0x140674[_0x369af5(0x4d9)]()),this['_sessions'][_0x369af5(0x50a)]||(_0x5c04ab=this[_0x369af5(0x2a7)])==null||_0x5c04ab['close']();}['reconnect'](){const _0x42d50c=_0x28eb85;this[_0x42d50c(0x2a2)]=0x0,this[_0x42d50c(0x358)]!=null&&(clearTimeout(this[_0x42d50c(0x358)]),this[_0x42d50c(0x358)]=null),this[_0x42d50c(0x146)]();}[_0x28eb85(0x38c)](){const _0x28da5e=_0x28eb85;var _0x2d1177,_0x3341ac;const _0xe211e5=this[_0x28da5e(0x4d8)][_0x28da5e(0x184)](ut),_0x28dd4c=this[_0x28da5e(0x4d8)][_0x28da5e(0x184)](A),_0x397cd8=(_0x3341ac=(_0x2d1177=_0x28dd4c==null?void 0x0:_0x28dd4c['collabWebSocketUrl'])!=null?_0x2d1177:_0xe211e5)!=null?_0x3341ac:Xt,_0x2f7962=this['_socketService'][_0x28da5e(0x345)](_0x397cd8);return this[_0x28da5e(0x363)]=_0x2f7962,_0x2f7962;}['_tryEnsureSocket'](){const _0x4c1e79=_0x28eb85;var _0x5ab95e,_0x298515;try{const _0x1255d6=(_0x298515=(_0x5ab95e=this[_0x4c1e79(0x2a7)])!=null?_0x5ab95e:this[_0x4c1e79(0x363)])!=null?_0x298515:this[_0x4c1e79(0x38c)]();if(_0x1255d6){const _0x4f213d=_0x1255d6['send'];_0x1255d6[_0x4c1e79(0x178)]=_0x41c6de=>(this[_0x4c1e79(0x34b)](),_0x4f213d[_0x4c1e79(0x47a)](_0x1255d6,[_0x41c6de])),_0x1255d6[_0x4c1e79(0x3e5)][_0x4c1e79(0x14a)](_0x2ef2dd=>this[_0x4c1e79(0x2f3)](_0x1255d6,_0x2ef2dd)),_0x1255d6[_0x4c1e79(0x1e8)][_0x4c1e79(0x495)](E[_0x4c1e79(0x2f0)](0x1))['subscribe'](_0x544d28=>this['_logService'][_0x4c1e79(0x533)](_0x4c1e79(0x145),_0x544d28)),_0x1255d6[_0x4c1e79(0x3d2)][_0x4c1e79(0x495)](E[_0x4c1e79(0x2f0)](0x1))['subscribe'](()=>{const _0x22e93b=_0x4c1e79;this[_0x22e93b(0x162)](_0x1255d6);}),_0x1255d6[_0x4c1e79(0x2a6)][_0x4c1e79(0x495)](E['take'](0x1))[_0x4c1e79(0x14a)](_0x3ee571=>{const _0x5de938=_0x4c1e79;this[_0x5de938(0x1a7)][_0x5de938(0x3b2)](_0x5de938(0x227),'socket\x20close',_0x3ee571),this[_0x5de938(0x522)]();});}}catch(_0x1a1d8a){this['_logService'][_0x4c1e79(0x533)](_0x1a1d8a),this[_0x4c1e79(0x522)]();}}[_0x28eb85(0x162)](_0x5e3d89){const _0x4c5c49=_0x28eb85;this[_0x4c5c49(0x1a7)][_0x4c5c49(0x3b2)](_0x4c5c49(0x227),_0x4c5c49(0x421)),_0x5e3d89['send']({'cmd':b['HELLO']}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x106373=_0x28eb85;window['addEventListener']('offline',()=>this[_0x106373(0x436)]());}[_0x28eb85(0x436)](){const _0x5d9cd9=_0x28eb85;this[_0x5d9cd9(0x17b)]=!0x1,this[_0x5d9cd9(0x363)]=null,this['_status$']['next']($['OFFLINE']),this[_0x5d9cd9(0x51a)][_0x5d9cd9(0x3fd)](null),this[_0x5d9cd9(0x435)](),this['_clearHeartbeatTimer']();}[_0x28eb85(0x522)](){const _0x4b0385=_0x28eb85;var _0x53c888;this[_0x4b0385(0x436)](),this['_retryCount']<((_0x53c888=this['_configService'][_0x4b0385(0x184)](vt))!=null?_0x53c888:Jt)?(this[_0x4b0385(0x23d)]['show']({'key':_0x4b0385(0x25d),'type':X[_0x4b0385(0x2ea)][_0x4b0385(0x529)],'content':this[_0x4b0385(0x122)]['t'](_0x4b0385(0x496))}),this[_0x4b0385(0x146)]()):this['_messageService'][_0x4b0385(0x2bd)]({'key':'collaboration-session-retry','type':X[_0x4b0385(0x2ea)][_0x4b0385(0x457)],'content':this['_localeService']['t'](_0x4b0385(0x262))});}[_0x28eb85(0x290)](){const _0x45cb79=_0x28eb85,_0x3a701e=()=>{this['_socket']||this['reconnect']();},_0x319a33=()=>{const _0x41db79=_0xb2fc;this[_0x41db79(0x2a7)]||document[_0x41db79(0x3ed)]===_0x41db79(0x453)||this['reconnect']();};window[_0x45cb79(0x3dc)](_0x45cb79(0x30a),_0x3a701e),document[_0x45cb79(0x3dc)]('visibilitychange',_0x319a33);}[_0x28eb85(0x146)](){const _0x171792=_0x28eb85;var _0x5dd308;const _0xb9e437=this[_0x171792(0x2a2)],_0xcf0b92=this['_configService'][_0x171792(0x184)](A),_0x30f359=_0xb9e437===0x0?0x0:((_0x5dd308=_0xcf0b92==null?void 0x0:_0xcf0b92[_0x171792(0x41e)])!=null?_0x5dd308:zt)*0x2**_0xb9e437;this[_0x171792(0x358)]=window[_0x171792(0x16f)](()=>{const _0x434983=_0x171792;clearTimeout(this[_0x434983(0x358)]),this[_0x434983(0x358)]=null,this[_0x434983(0x251)]();},_0x30f359),this[_0x171792(0x2a2)]+=0x1;}[_0x28eb85(0x2f3)](_0x483da0,_0x2d969e){const _0x12c48f=_0x28eb85,{cmd:_0x27117c}=_0x2d969e;_0x27117c===b['HELLO']&&!this[_0x12c48f(0x17b)]&&(_0x483da0['memberID']=_0x2d969e[_0x12c48f(0x451)][_0x12c48f(0x25e)],this[_0x12c48f(0x51a)][_0x12c48f(0x3fd)](_0x483da0),this[_0x12c48f(0x19c)]['next']($[_0x12c48f(0x47d)]),this[_0x12c48f(0x17b)]=!0x0,this['_candidateSocket']=null),_0x27117c===b['HEARTBEAT']&&this[_0x12c48f(0x435)](),this['_rescheduleHeartbeat']();}[_0x28eb85(0x34b)](){const _0xc8f774=_0x28eb85;var _0x372c94;this[_0xc8f774(0x44b)](),this['_sendHeartbeatTimer']=window[_0xc8f774(0x16f)](()=>this[_0xc8f774(0x2f4)](),(_0x372c94=this[_0xc8f774(0x4d8)]['getConfig'](dt))!=null?_0x372c94:qt);}[_0x28eb85(0x2f4)](){const _0x57aa53=_0x28eb85;this[_0x57aa53(0x2a7)][_0x57aa53(0x178)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x28eb85(0x40c)](){const _0x2e30f6=_0x28eb85;var _0x40201a;this['_timeoutTimer']=window[_0x2e30f6(0x16f)](()=>this[_0x2e30f6(0x522)](),(_0x40201a=this[_0x2e30f6(0x4d8)][_0x2e30f6(0x184)](Ve))!=null?_0x40201a:St);}[_0x28eb85(0x44b)](){const _0x5e6aef=_0x28eb85;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x5e6aef(0x48a)]),this[_0x5e6aef(0x48a)]=null);}['_clearTimeoutTimer'](){const _0x5f3207=_0x28eb85;this[_0x5f3207(0x51f)]!=null&&(clearTimeout(this[_0x5f3207(0x51f)]),this[_0x5f3207(0x51f)]=null);}},exports[_0x28eb85(0x398)]=gs([Z(0x0,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),Z(0x1,a[_0x28eb85(0x23f)](a[_0x28eb85(0x3c6)])),Z(0x2,N[_0x28eb85(0x25a)]),Z(0x3,a[_0x28eb85(0x155)]),Z(0x4,a[_0x28eb85(0x420)]),Z(0x5,Fe)],exports[_0x28eb85(0x398)]);var ms=Object[_0x28eb85(0x114)],Is=Object[_0x28eb85(0x38b)],ps=(_0xbefe11,_0x469451,_0x379ca8,_0x738a1a)=>{for(var _0x17ad2d=_0x738a1a>0x1?void 0x0:_0x738a1a?Is(_0x469451,_0x379ca8):_0x469451,_0x53b335=_0xbefe11['length']-0x1,_0x2a1dab;_0x53b335>=0x0;_0x53b335--)(_0x2a1dab=_0xbefe11[_0x53b335])&&(_0x17ad2d=(_0x738a1a?_0x2a1dab(_0x469451,_0x379ca8,_0x17ad2d):_0x2a1dab(_0x17ad2d))||_0x17ad2d);return _0x738a1a&&_0x17ad2d&&ms(_0x469451,_0x379ca8,_0x17ad2d),_0x17ad2d;},De=(_0x495c9e,_0x1cbe09)=>(_0xe50d09,_0x1295b2)=>_0x1cbe09(_0xe50d09,_0x1295b2,_0x495c9e);let fe=class{constructor(_0x2b328e,_0xf6f02f,_0x1ed5ce){const _0x1ef82b=_0x28eb85;this['_injector']=_0x2b328e,this[_0x1ef82b(0x294)]=_0xf6f02f,this[_0x1ef82b(0x272)]=_0x1ed5ce;}['transformIMECache'](_0x10ae00){this['_transformUndoRedoStack'](_0x10ae00),this['_transformPreviousActiveRange'](_0x10ae00);}['transformRemoteChangeset'](_0x58cdb5){const _0x192785=_0x28eb85,{unitID:_0x52cf9b}=_0x58cdb5,_0x3cfe22=this[_0x192785(0x272)][_0x192785(0x310)](_0x52cf9b)[_0x192785(0x296)](w['DocIMEInputManagerService']),{redoCache:_0x202622}=_0x3cfe22[_0x192785(0x2d7)]();if(_0x202622[_0x192785(0x355)]===0x0)return _0x58cdb5;let _0x194373=a[_0x192785(0x356)][_0x192785(0x1b8)](_0x58cdb5[_0x192785(0x143)][0x0]);for(let _0x29e496=0x0;_0x29e496<_0x202622[_0x192785(0x355)];_0x29e496++){const _0x292354={'id':_0x192785(0x320),'params':{..._0x202622[_0x29e496]}},_0x355b78=this[_0x192785(0x294)]['transformMutation'](_0x194373,_0x292354,!0x1);if(_['isTransformMutationFailure'](_0x355b78))throw _0x355b78[_0x192785(0x533)];_0x194373=_0x355b78[_0x192785(0x365)];}return{...a[_0x192785(0x356)][_0x192785(0x1b8)](_0x58cdb5),'mutations':[_0x194373]};}[_0x28eb85(0x4f3)](_0x2a806c){const _0x240f1a=_0x28eb85,{unitID:_0x3bf08b}=_0x2a806c,_0x39f97a=this[_0x240f1a(0x272)][_0x240f1a(0x310)](_0x3bf08b)[_0x240f1a(0x296)](w[_0x240f1a(0x423)]),{undoCache:_0x2d23f1,redoCache:_0x367e79}=_0x39f97a[_0x240f1a(0x2d7)]();if(_0x2d23f1[_0x240f1a(0x355)]===0x0||_0x367e79[_0x240f1a(0x355)]===0x0)return;const _0x112e49=[],_0x3e0e28=[];let _0x2e0535=a[_0x240f1a(0x356)]['deepClone'](_0x2a806c[_0x240f1a(0x143)][0x0]),_0xec41f=a[_0x240f1a(0x356)]['deepClone'](_0x2a806c[_0x240f1a(0x143)][0x0]);for(let _0x322907=_0x2d23f1[_0x240f1a(0x355)]-0x1;_0x322907>=0x0;_0x322907--){const _0x5e644a={'id':_0x240f1a(0x320),'params':{..._0x2d23f1[_0x322907]}},_0x311120={'id':_0x240f1a(0x320),'params':{..._0x367e79[_0x322907]}},_0x509566=this[_0x240f1a(0x294)][_0x240f1a(0x21d)](_0x2e0535,_0x5e644a,!0x1),_0x34acd4=this[_0x240f1a(0x294)][_0x240f1a(0x21d)](_0xec41f,_0x311120,!0x1);if(_['isTransformMutationFailure'](_0x509566))throw _0x509566[_0x240f1a(0x533)];if(_[_0x240f1a(0x39e)](_0x34acd4))throw _0x34acd4['error'];_0x112e49[_0x240f1a(0x1de)](_0x509566[_0x240f1a(0x480)][_0x240f1a(0x1cf)]),_0x3e0e28[_0x240f1a(0x1de)](_0x34acd4[_0x240f1a(0x480)][_0x240f1a(0x1cf)]),_0x2e0535=_0x509566[_0x240f1a(0x365)],_0xec41f=_0x34acd4[_0x240f1a(0x365)];}_0x39f97a['setUndoRedoMutationParamsCache']({'undoCache':_0x112e49,'redoCache':_0x3e0e28});}[_0x28eb85(0x279)](_0x5937f1){const _0x2deaa2=_0x28eb85,{unitID:_0x5a49b7}=_0x5937f1,_0xc445c2=this[_0x2deaa2(0x272)][_0x2deaa2(0x310)](_0x5a49b7)['with'](w['DocIMEInputManagerService']),_0x180510=_0xc445c2['getActiveRange']();if(_0x180510==null)return;const _0x574c70=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5937f1[_0x2deaa2(0x333)],'actions':null,'textRanges':[_0x180510]}}],_0x90cdf7=this['_transformService'][_0x2deaa2(0x3ff)](_0x5937f1,_0x574c70);if(!_[_0x2deaa2(0x2ca)](_0x90cdf7))throw _0x90cdf7['error'];const _0x18ba95=_0x90cdf7[_0x2deaa2(0x480)][0x0][_0x2deaa2(0x1cf)][_0x2deaa2(0x22a)];Array[_0x2deaa2(0x33c)](_0x18ba95)&&_0x18ba95[_0x2deaa2(0x355)]&&_0xc445c2['setActiveRange'](_0x18ba95[0x0]);}};fe=ps([De(0x0,a[_0x28eb85(0x23f)](a['Injector'])),De(0x1,_['ITransformService']),De(0x2,R[_0x28eb85(0x209)])],fe);var Cs=Object[_0x28eb85(0x114)],Es=Object[_0x28eb85(0x38b)],bs=(_0x1c7dbc,_0x74077e,_0x41c807,_0xe48440)=>{const _0x4166c1=_0x28eb85;for(var _0x331534=_0xe48440>0x1?void 0x0:_0xe48440?Es(_0x74077e,_0x41c807):_0x74077e,_0xeefb04=_0x1c7dbc[_0x4166c1(0x355)]-0x1,_0x343f8c;_0xeefb04>=0x0;_0xeefb04--)(_0x343f8c=_0x1c7dbc[_0xeefb04])&&(_0x331534=(_0xe48440?_0x343f8c(_0x74077e,_0x41c807,_0x331534):_0x343f8c(_0x331534))||_0x331534);return _0xe48440&&_0x331534&&Cs(_0x74077e,_0x41c807,_0x331534),_0x331534;},ae=(_0x19c41f,_0xee36ff)=>(_0x529b83,_0x2439b5)=>_0xee36ff(_0x529b83,_0x2439b5,_0x19c41f);exports[_0x28eb85(0x1f5)]=class extends a[_0x28eb85(0x216)]{constructor(_0x27e5d5,_0x57f88d,_0x381d47,_0xd48216,_0x46a67b){const _0x197910=_0x28eb85;super(),d(this,'_cachedData',new Map()),d(this,_0x197910(0x21e),new Map()),d(this,'_disabled',!0x1),(this[_0x197910(0x4d8)]=_0x27e5d5,this['_localStorageService']=_0x57f88d,this[_0x197910(0x3be)]=_0x381d47,this[_0x197910(0x122)]=_0xd48216,this[_0x197910(0x325)]=_0x46a67b,this[_0x197910(0x412)]());}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x2c5d57=_0x28eb85;this[_0x2c5d57(0x225)]=!0x1;}['dispose'](){const _0x6f059e=_0x28eb85;this['exhaustSavingTask']()[_0x6f059e(0x167)](()=>super[_0x6f059e(0x347)]());}async[_0x28eb85(0x2c6)](_0x2be45c){const _0x23d0f3=_0x28eb85;return this[_0x23d0f3(0x225)]?null:this[_0x23d0f3(0x124)][_0x23d0f3(0x240)](Qe(_0x2be45c));}async[_0x28eb85(0x2f2)](_0x396120,_0x42b31f){const _0x32bc5f=_0x28eb85;return!!this['_localStorageService'][_0x32bc5f(0x2dc)](_0x396120,_0x42b31f);}[_0x28eb85(0x118)](_0x39e697,_0x297ba4,_0x476bbb,_0x94b929){const _0x1239ca=_0x28eb85,_0x5156f9=this[_0x1239ca(0x325)][_0x1239ca(0x134)](_0x39e697);this[_0x1239ca(0x3b3)][_0x1239ca(0x191)](_0x39e697,{'unitID':_0x39e697,'type':_0x297ba4,'awaitingChangeset':_0x476bbb,'mutations':_0x94b929,'rev':_0x5156f9}),this[_0x1239ca(0x21e)][_0x1239ca(0x186)](_0x39e697)||this[_0x1239ca(0x306)](_0x39e697);}[_0x28eb85(0x306)](_0x5c87b1){const _0x3d8ad5=_0x28eb85,_0x546864=this['_getSaveTimeout']();_0x546864===0x0?this[_0x3d8ad5(0x271)](_0x5c87b1):this[_0x3d8ad5(0x21e)]['set'](_0x5c87b1,setTimeout(()=>this['_saveCache'](_0x5c87b1),_0x546864));}[_0x28eb85(0x466)](){var _0x3bfd7c;return(_0x3bfd7c=this['_configService']['getConfig'](ft))!=null?_0x3bfd7c:Zt;}[_0x28eb85(0x271)](_0x6180ec){const _0x28b54a=_0x28eb85,_0x24d905=this[_0x28b54a(0x21e)]['get'](_0x6180ec);return _0x24d905!==void 0x0&&window[_0x28b54a(0x46a)](_0x24d905),this['_localStorageService'][_0x28b54a(0x2dc)](Qe(_0x6180ec),this[_0x28b54a(0x3b3)][_0x28b54a(0x30d)](_0x6180ec))[_0x28b54a(0x167)](()=>this[_0x28b54a(0x21e)]['delete'](_0x6180ec));}async[_0x28eb85(0x13a)](){const _0x3f8fbb=_0x28eb85,_0x4bc142=[];this[_0x3f8fbb(0x21e)][_0x3f8fbb(0x2bf)]((_0x2847e6,_0x381885)=>{const _0x2c01f2=_0x3f8fbb;window[_0x2c01f2(0x46a)](_0x2847e6),_0x4bc142[_0x2c01f2(0x3f4)](this['_saveCache'](_0x381885)['then'](()=>{const _0x41d231=_0x2c01f2;this[_0x41d231(0x21e)][_0x41d231(0x25f)](_0x381885);}));}),await Promise[_0x3f8fbb(0x14b)](_0x4bc142);}['_setupBeforeClosingHandler'](){const _0x1cdfd9=_0x28eb85;this[_0x1cdfd9(0x214)](this[_0x1cdfd9(0x3be)][_0x1cdfd9(0x3cb)](()=>{const _0x409734=_0x1cdfd9;if(this['_saveTaskMap'][_0x409734(0x50a)])return this[_0x409734(0x122)]['t'](_0x409734(0x20a));}));}},exports[_0x28eb85(0x1f5)]=bs([ae(0x0,a['IConfigService']),ae(0x1,a[_0x28eb85(0x341)]),ae(0x2,N[_0x28eb85(0x4a6)]),ae(0x3,a[_0x28eb85(0x23f)](a[_0x28eb85(0x3c6)])),ae(0x4,a[_0x28eb85(0x23f)](_['RevisionService']))],exports[_0x28eb85(0x1f5)]);function Qe(_0x358bf1){const _0x1c9807=_0x28eb85;return _0x1c9807(0x34e)+_0x358bf1;}var Ts=Object['defineProperty'],Rs=Object[_0x28eb85(0x38b)],Os=(_0x752c26,_0x21cc5f,_0x5d9437,_0x5adacc)=>{for(var _0x8128=_0x5adacc>0x1?void 0x0:_0x5adacc?Rs(_0x21cc5f,_0x5d9437):_0x21cc5f,_0x1a0889=_0x752c26['length']-0x1,_0x2957a5;_0x1a0889>=0x0;_0x1a0889--)(_0x2957a5=_0x752c26[_0x1a0889])&&(_0x8128=(_0x5adacc?_0x2957a5(_0x21cc5f,_0x5d9437,_0x8128):_0x2957a5(_0x8128))||_0x8128);return _0x5adacc&&_0x8128&&Ts(_0x21cc5f,_0x5d9437,_0x8128),_0x8128;},ye=(_0x56d776,_0x7c87f5)=>(_0x35e4cf,_0x420742)=>_0x7c87f5(_0x35e4cf,_0x420742,_0x56d776);function Ds(_0x22a22d){const _0x2dba5d=_0x28eb85,{unitID:_0x144b16,mutations:_0x24ca2d}=_0x22a22d;return{'unitId':_0x144b16,'subUnitId':_0x24ca2d[0x0]['params'][_0x2dba5d(0x2a8)]};}let ge=class{constructor(_0x1db2e3,_0x520115,_0x2ef165){const _0x72c95c=_0x28eb85;this[_0x72c95c(0x152)]=_0x1db2e3,this['_transformService']=_0x520115,this[_0x72c95c(0x258)]=_0x2ef165;}[_0x28eb85(0x14f)](_0x461a76){const _0x3981a2=_0x28eb85;var _0x449727,_0x359b18,_0x4a3c4b,_0x54343d;const _0x378c99=this['_injector'][_0x3981a2(0x30d)](C['SheetsSelectionsService']),{unitId:_0x47f5bb,subUnitId:_0x3dd6cb}=Ds(_0x461a76),_0x2c8257=_0x378c99[_0x3981a2(0x2dd)](_0x47f5bb)[_0x3981a2(0x157)](),_0x1cd606=(_0x359b18=(_0x449727=this[_0x3981a2(0x258)][_0x3981a2(0x318)](_0x47f5bb))==null?void 0x0:_0x449727[_0x3981a2(0x351)]())==null?void 0x0:_0x359b18[_0x3981a2(0x1b5)]();if(_0x2c8257[_0x3981a2(0x355)]===0x0||!_0x47f5bb||!_0x3dd6cb)return;const _0x37762f=[{'id':C[_0x3981a2(0x275)]['id'],'params':{'unitId':_0x47f5bb,'subUnitId':_0x1cd606,'selections':a[_0x3981a2(0x356)]['deepClone'](_0x2c8257)}}],_0x527335=this['_transformService'][_0x3981a2(0x3ff)](_0x461a76,_0x37762f);if(!_[_0x3981a2(0x2ca)](_0x527335))throw _0x527335[_0x3981a2(0x533)];const _0x2764b4=(_0x54343d=(_0x4a3c4b=_0x527335[_0x3981a2(0x480)][0x0])==null?void 0x0:_0x4a3c4b[_0x3981a2(0x1cf)])==null?void 0x0:_0x54343d[_0x3981a2(0x3c9)];Array[_0x3981a2(0x33c)](_0x2764b4)&&_0x2764b4[_0x3981a2(0x355)]&&this[_0x3981a2(0x152)][_0x3981a2(0x30d)](a[_0x3981a2(0x1b0)])['executeCommand'](C[_0x3981a2(0x275)]['id'],{'unitId':_0x47f5bb,'subUnitId':_0x1cd606,'selections':_0x2764b4});}};ge=Os([ye(0x0,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),ye(0x1,_[_0x28eb85(0x2b4)]),ye(0x2,a['IUniverInstanceService'])],ge);const be=a['createIdentifier'](_0x28eb85(0x12f));var bt=(_0x26d6e7=>(_0x26d6e7[_0x26d6e7['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x28eb85(0x437),_0x26d6e7[_0x26d6e7[_0x28eb85(0x130)]=0x1]=_0x28eb85(0x130),_0x26d6e7))(bt||{});const et=0x7530,tt='ACTIVE_UNIT_EVENT_CHANNEL';class ys extends a['Disposable']{constructor(){const _0xf104e=_0x28eb85;super(),d(this,_0xf104e(0x530),a[_0xf104e(0x356)]['generateRandomId']()),d(this,'_selfUnitIDs',new Set()),d(this,_0xf104e(0x51b),new Map()),d(this,_0xf104e(0x1c7),null),d(this,'_clearOtherTimers',new Map()),d(this,'_unitStatus',new Map()),this[_0xf104e(0x3e8)]();}['dispose'](){const _0x44e5b9=_0x28eb85;super['dispose'](),this[_0x44e5b9(0x2a5)][_0x44e5b9(0x2bf)]((_0x585749,_0x5eccc0)=>this[_0x44e5b9(0x113)](_0x5eccc0)),this['_heartbeatTimer']&&window[_0x44e5b9(0x490)](this[_0x44e5b9(0x1c7)]);}[_0x28eb85(0x359)](_0x22b346){const _0x453f4a=_0x28eb85;return this[_0x453f4a(0x1fa)](_0x22b346)[_0x453f4a(0x495)](v[_0x453f4a(0x1cc)]());}['editingUnit'](_0x2f159f){const _0x144a56=_0x28eb85;this[_0x144a56(0x2cb)][_0x144a56(0x50a)]===0x0&&this[_0x144a56(0x483)](),this[_0x144a56(0x2cb)][_0x144a56(0x4e1)](_0x2f159f),this[_0x144a56(0x1e7)]({'type':0x0,'memberID':this[_0x144a56(0x530)],'unitIDs':[_0x2f159f],'isForwarded':!0x1});}[_0x28eb85(0x49d)](_0x20887b){const _0x1c80f8=_0x28eb85;this[_0x1c80f8(0x2cb)]['delete'](_0x20887b),this[_0x1c80f8(0x2cb)][_0x1c80f8(0x50a)]===0x0&&this[_0x1c80f8(0x1c7)]&&window[_0x1c80f8(0x490)](this['_heartbeatTimer']);}[_0x28eb85(0x3e8)](){const _0x28b04f=_0x28eb85;this[_0x28b04f(0x214)](a[_0x28b04f(0x40e)](v[_0x28b04f(0x33b)](window,_0x28b04f(0x4bf))[_0x28b04f(0x14a)](_0x1d64b7=>{const _0x3007c7=_0x28b04f;if(_0x1d64b7[_0x3007c7(0x4f1)]!==tt||!_0x1d64b7['newValue'])return;const _0x50791c=JSON[_0x3007c7(0x3a4)](_0x1d64b7[_0x3007c7(0x311)]);this['_handleEvent'](_0x50791c);}))),window[_0x28b04f(0x3dc)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x28b04f(0x530)],'unitIDs':Array[_0x28b04f(0x507)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x458bd0){const _0x9a343d=_0x28eb85;switch(_0x458bd0['type']){case 0x0:this[_0x9a343d(0x488)](_0x458bd0);break;case 0x1:this[_0x9a343d(0x1be)](_0x458bd0);break;case 0x2:this[_0x9a343d(0x374)](_0x458bd0);break;}}[_0x28eb85(0x488)](_0x5d87d1){const _0x4dc9ca=_0x28eb85,{unitIDs:_0x3b7637,memberID:_0x52065b,isForwarded:_0x2887d7}=_0x5d87d1;_0x3b7637[_0x4dc9ca(0x2bf)](_0x45dbf0=>{const _0x55a03f=_0x4dc9ca;if(!_0x2887d7&&this[_0x55a03f(0x51b)][_0x55a03f(0x186)](_0x45dbf0)&&this[_0x55a03f(0x1fa)](_0x45dbf0)[_0x55a03f(0x3fd)](0x1),!this['_unitOnClients']['has'](_0x45dbf0)||!this[_0x55a03f(0x51b)][_0x55a03f(0x30d)](_0x45dbf0)[_0x55a03f(0x186)](_0x52065b)){const _0x323c53=this[_0x55a03f(0x51b)][_0x55a03f(0x30d)](_0x45dbf0)||new Set();_0x323c53[_0x55a03f(0x4e1)](_0x52065b),this[_0x55a03f(0x51b)][_0x55a03f(0x191)](_0x45dbf0,_0x323c53),this[_0x55a03f(0x4c6)](_0x52065b);}}),_0x2887d7||this[_0x4dc9ca(0x1e7)]({'type':0x0,'memberID':this[_0x4dc9ca(0x530)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xc6a0de){const _0x461f03=_0x28eb85;this[_0x461f03(0x113)](_0xc6a0de);const _0x18e168=window['setTimeout'](()=>{const _0x2ab481=_0x461f03;this['_unitOnClients'][_0x2ab481(0x2bf)](_0xa8fd45=>{_0xa8fd45['delete'](_0xc6a0de);});},et*0x2);this[_0x461f03(0x2a5)]['set'](_0xc6a0de,_0x18e168);}['_removeClearOtherTimer'](_0xc6156e){const _0x47f483=_0x28eb85;if(this[_0x47f483(0x2a5)][_0x47f483(0x186)](_0xc6156e)){const _0x21dcf8=this['_clearOtherTimers'][_0x47f483(0x30d)](_0xc6156e);_0x21dcf8&&window[_0x47f483(0x46a)](_0x21dcf8),this[_0x47f483(0x2a5)][_0x47f483(0x191)](_0xc6156e,null);}}[_0x28eb85(0x1be)](_0x4c6d7a){const _0x115bd6=_0x28eb85,{memberID:_0xc44713,unitIDs:_0x3c097e}=_0x4c6d7a;_0x3c097e[_0x115bd6(0x2bf)](_0x419227=>{const _0x106059=_0x115bd6;var _0x42f643;const _0x253eb9=this[_0x106059(0x51b)][_0x106059(0x30d)](_0x419227);_0x253eb9&&(_0x253eb9[_0x106059(0x25f)](_0xc44713),(_0x42f643=this['_ensureSubject'](_0x419227))==null||_0x42f643['next'](_0x253eb9[_0x106059(0x50a)]===0x0?0x0:0x1));}),this[_0x115bd6(0x113)](_0xc44713);}['_handleHeartbeatEvent'](_0x9a3eff){const _0x496907=_0x28eb85;this['_scheduleClearOtherTimer'](_0x9a3eff[_0x496907(0x25e)]);}[_0x28eb85(0x1e7)](_0x41c77f){const _0x157178=_0x28eb85;localStorage['setItem'](tt,JSON[_0x157178(0x360)](_0x41c77f));}[_0x28eb85(0x483)](){const _0x3e6cbf=_0x28eb85;this[_0x3e6cbf(0x1c7)]=window[_0x3e6cbf(0x3bb)](()=>{const _0xd9f3e0=_0x3e6cbf;this[_0xd9f3e0(0x1e7)]({'type':0x2,'memberID':this[_0xd9f3e0(0x530)]});},et);}[_0x28eb85(0x1fa)](_0xa624ee){const _0x2b4cbb=_0x28eb85;return this[_0x2b4cbb(0x36b)]['has'](_0xa624ee)||this[_0x2b4cbb(0x36b)]['set'](_0xa624ee,new v['BehaviorSubject'](0x0)),this['_unitStatus'][_0x2b4cbb(0x30d)](_0xa624ee);}}function Tt(_0x4620f7){const _0x307212=_0x28eb85;let _0x18523c='';for(const _0x471841 of _0x4620f7){const {startOffset:_0x16eec6,endOffset:_0x363a75,isActive:_0x43207f}=_0x471841;_0x18523c[_0x307212(0x355)]&&(_0x18523c+=','),_0x18523c+=_0x16eec6+':'+_0x363a75+':'+(_0x43207f?'1':'0');}return _0x18523c;}function Us(_0x570683){const _0x266d82=_0x28eb85,_0x33c4fe=_0x570683[_0x266d82(0x4dc)](','),_0x36ecd2=[];for(const _0x320bde of _0x33c4fe){const [_0x15ac63,_0x54b993,_0x54c82c]=_0x320bde['split'](':');_0x36ecd2[_0x266d82(0x3f4)]({'startOffset':Number(_0x15ac63),'endOffset':Number(_0x54b993),'collapsed':_0x15ac63===_0x54b993,'isActive':_0x54c82c==='1'});}return _0x36ecd2[_0x266d82(0x1d0)](_0x55127c=>_0x55127c[_0x266d82(0x226)])||(_0x36ecd2[0x0][_0x266d82(0x226)]=!0x0),_0x36ecd2;}class Ye extends a['RxDisposable']{constructor(){const _0x11ac84=_0x28eb85;super(...arguments),d(this,'_collabCursorState$',new v[(_0x11ac84(0x276))](null)),d(this,_0x11ac84(0x17a),this['_collabCursorState$'][_0x11ac84(0x291)]());}['syncEditingCollabCursor'](_0x1ebc35){const _0x6c4328=_0x28eb85,{unitID:_0x216e77,memberID:_0x422430,textRanges:_0x336d35}=_0x1ebc35,_0x3d86ec=Tt(_0x336d35),_0x4c77f7={'unitID':_0x216e77,'memberID':_0x422430,'selection':_0x3d86ec};this[_0x6c4328(0x280)][_0x6c4328(0x3fd)](_0x4c77f7);}}var Ps=Object['defineProperty'],ws=Object[_0x28eb85(0x38b)],Ms=(_0x39e8ed,_0x161c49,_0x2626bd,_0x150b76)=>{const _0x23af29=_0x28eb85;for(var _0x5bb412=_0x150b76>0x1?void 0x0:_0x150b76?ws(_0x161c49,_0x2626bd):_0x161c49,_0x2624b5=_0x39e8ed[_0x23af29(0x355)]-0x1,_0x445867;_0x2624b5>=0x0;_0x2624b5--)(_0x445867=_0x39e8ed[_0x2624b5])&&(_0x5bb412=(_0x150b76?_0x445867(_0x161c49,_0x2626bd,_0x5bb412):_0x445867(_0x5bb412))||_0x5bb412);return _0x150b76&&_0x5bb412&&Ps(_0x161c49,_0x2626bd,_0x5bb412),_0x5bb412;},st=(_0x4e9ed4,_0x178386)=>(_0x36a568,_0x2d2f48)=>_0x178386(_0x36a568,_0x2d2f48,_0x4e9ed4);function _0x59b6(){const _0x2f5b9f=['No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_scene','2135vpsvyG','_joinRoom','_sessions','Optional','APPLY_PERMISSION_DENIED','_collabSessionService','_syncEditingCollabCursorService','_docTransformIMECacheService','@univerjs/engine-formula','_initResize','debug','_cachedData','_schedule','@univerjs/engine-render','onStarting','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getViewport','getTime','fromEventSubject','setInterval','/allowed','HttpImport','_beforeCloseService','cursorInfo','serializeCombRequest','lineTo','_waitCount','_transformStack','_onConflict','registerRenderModule','LocaleService','getSheetBySheetId','/object','selections','_collaborationSessionService','registerBeforeClose','getSkeleton','[CollaborationSession]','saveSheetBlock','headers','current','_throwTelemetryCollaborationNewChangeset','open$','image/png','CHANGESET_ACK','getCurrentUnitForType','HEARTBEAT_INTERVAL_KEY','registerComponent','baseRev','onRemoteRej','DeleteRangeMoveLeftCommandId','concat','addEventListener','_initMergeInterceptor','objectType','TEXT_RANGE_LAYER_INDEX','_initCommandExecutedListener','INTERNAL_ERROR','DocSelectionManagerService','_anchor','colorChannel1','message$','getRoom','revision','_init','rxjs','_entities','_getCurrentRevision','getResourcesRequest','visibilityState','270051RgKnUc','/unit/','getCurrent','offline','_transformUndoredo','RichTextEditingMutation','push','univer-online-status-icon','_showConflictNotification','_cursorShapes','DeleteRangeMoveUpCommandId','div','DisposableCollection','_onLocalMutation','_sendingTimer','next','LICENSE_MAX_UNITS_EXCEEDED','transformMutationsWithChangeset','SetDocZoomRatioOperation','replaceTextRanges','CHANGESET_REJ','_colorIndex','_backgroundColor','FETCH_MISS','authzUrl','conflict.content','focused$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','isEditing','_lockTransition','_waitForHeartbeatResponse','_compressMutationService','toDisposable','url(#$1','collabStatus.conflict','_getSendChangesetTimeout','_setupBeforeClosingHandler','collaboratorID','hovered','unitId','_telemetryInfo','subscribeEvent','save\x20fail\x20reason\x20is\x20','collab-text-anchor-','CollaborationSocketService','M0\x200H16V16H0z','_removeRoom','currentColor','retryConnectingInterval','enableOfflineEditing','IConfigService','socket\x20open.','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','DocIMEInputManagerService','/universer-api/comb','debounceTime','toggleOffline','encode','3495410PieJHX','/role','closeSession','ThresholdInterceptorFactory','origin','listRoles','INGEST','create','bottom','JSONX','_labelPosition','update','awaitingChangeset','_clearTimeoutTimer','_onOffline','NO_OTHER_CLIENTS_EDITING','toggleOnline','/-/object/list','UNIVER_DOC','_sheetTransformSelectionsService','width','_getSnapshotAPIPrefix','_document','_collaborationPaused','rxjs/operators','Workbook','_transformSelections','listCollaborators','handleIRemoveRow','min','mergeOverrideWithDependencies','collaborators','AUTHZ_URL_KEY','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','ColorKit','_clearHeartbeatTimer','DocSkeletonManagerService','[UniverCollaborationClientPlugin]','hasOwnProperty','_unlockTransition','_updateCollabCursors','data','_setupSubUnitSync','hidden','updateCursorEvent','EXCHANGE_SIGN_URL_SERVER_URL_KEY','flatMap','Error','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','DocStateChangeManagerService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','FAIL','_handleHover','patch','toString','resourceIDs','xlink:href','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','closePath','_collaborationTimeoutTimer','_config','_handler','_getSaveTimeout','rgba(255,\x20255,\x20255,\x200.01)','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_startSheetCollabCursor','clearTimeout','NOT_COLLAB','skeleton','CollaborationEvent','toRgbString','_httpService','/new_changes','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','not_collab','Vector2','CommentService','univerjs-icon\x20univerjs-icon-','event$','_applyRemoteChangeset','_snapshotServerService','_collaborationController','apply','EffectRefRangId','snapshotServerUrl','ONLINE','_updateURLWithCurrentState','max','m2Prime','_queuedRemoteChangesets','Tooltip','_scheduleHeartbeat','moveTo','IPermissionService','UNDEFINED','[DataLoaderController]','_handleJoinEvent','LIVESHARE_NEW_HOST','_sendHeartbeatTimer','_toggleOnline','getFocusedUnit','_updateLocalCache','LICENSE_DISTRO_REJECTED','now','clearInterval','font','_userManagerService','toStringTag','CompressMutationService','pipe','session.will-retry','getParam','_drawAnchor','?size=','objects','objectActions','_socketService','disposeUnit','updatePermissionPoint','getCoordByCell','_toggleOffline','top','_notificationService','_sheetSkeletonManagerService','handleInsertCol','ERROR_EXCEED_SIZE','IBeforeCloseService','fillText','DependentOn','localeService','image/gif','sessionStatus','loadDoc','code','UNIVER_COLLABORATION_CLIENT_PLUGIN','CollaborationController','YUUMI_SUBSCRIPTION_NOT_FOUND','_clearScheduledTask','_snapshotService','restore','location','_onJoinRoomEvent','_cursorInfo$','COLLAB_SUBMIT_CHANGESET_URL','SetWorksheetActivateCommand','clipPath','_initStatusComponent','IContextService','LocalUndoRedoService','workbook','_createInitialStateImpl','storage','submit\x20changeset\x20error!','LOGIN_URL_KEY','responseType','_checkMissing','assign','UNIVER_UNKNOWN','_scheduleClearOtherTimer','objectID','RETRY_CONNECTING_MAX_COUNT','_memberService','_registerRenderDependencies','concatMap','roomMembers','loadSheet','UNIVER_PROJECT','LICENSE_EXPORT_SIZE_EXCEEDED','touchDependencies','on-line-single','getMergeData','InsertSheetMutation','ImageSourceType','UniverCollaborationClientPlugin','getValue','_uiPartsService','_configService','close','off-line-single_clip0_910_343','result','split','fromCollab','_remoteChangesetQueue','_clearCollaborationTimeoutTimer','collabStatus.offline','add','actions','socket$','HEADER_MENU','_awaitingChangeset','_pendingMutations','{fileID}','DataLoaderController','ITelemetryService','DEFAULT_FILE_NAME','sheets','range','_event$','red300','_loadSheet','ranges','key','isTransformMutationsWithChangesetFailure','_transformUndoRedoStack','onlineStatusIcon','indexOf','getMember','confirm','state$','startsWith','RevisionService','PSEUDO_FETCH_MISSING_RESULT','CHANGESET_REVISION_CONFILICT','pending','_docTransformSelectionsService','find','complete','saveImage','_clearLocalCache','UNKNOWN_CODE','init','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_color','from','onlineStatus','_commentService','size','Undefined','catch','PENDING','NOT_FOUND','TOO_MANY_REQUESTS','_createInitialState','_getAPIPrefix','session.room-full','call','onSendChangeset','SnapshotServerOverHTTPService','defIds','generateRandomId','_stopTelemetryCollaborationNewChangeset','_syncEditingCollabCursor','_socket$','_unitOnClients','path','collaboration.single-unit.warning','_updateSubUnitFromURLParams','_timeoutTimer','/universer-api/file/{fileID}/sign-url','_fetchMissChangesets','_onConnectionFailed','?url=','IRemoteInstanceService','collabStatus.synced','handleMoveRange','_scheduleCollaborationTimeoutTimer','labelPosition','Warning','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','refreshPermission','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_shouldReportTelemetry','HttpExport','symbol','_id','translate(.97)','onRemoteAck','error','SNAPSHOT_SERVER_URL_KEY','_localCacheService','Unknown\x20user','_createHandler','_removeClearOtherTimer','defineProperty','IUIPartsService','getUnitType','replaceState','updateOfflineData','setParam','_startTelemetryCollaborationNewChangeset','_state','_updateState','[OfflineState]:\x20received\x20acknowledgement.','_registerDependencies','onMissedChangesetFetched','_themeService','isPermissionRej','_localeService','requireSession','_localStorageService','liveShareOperation','auth.needGotoLoginAlert','permission.content','INVALID_ARGUMENT','replace','createIdentifier','onStateChange','_undoRedoService','selection','_clearUndo','univer-pro.collaboration-client.single-active-unit-service','OTHER_CLIENTS_EDITING','fetching\x20missing\x20changesets\x20from\x20','onTransformSelections','SHOULD_CLOSE_CONN','getCurrentRevOfUnit','RemoveRowCommandId','@univerjs/ui','getDeserializedSheetBlock','backgroundColor','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','exhaustSavingTask','runRefRangeMutations','univer-online-status','save','_getCtorByUniverType','SUBMIT_CHANGESET','_transformRemoteChangesetByIMECache','appendMutation','enableAuthServer','mutations','createElement','[CollaborationSessionService]:\x20socket\x20error','_tryReconnect','_submitChangeset','ws://127.0.0.1:8000/universer-api/comb/connect','FromArray','subscribe','all','HELLO','_transformIMECache','parseProtocolChangeset','transformSelections','9948LaoKTS','_docSkeleton','_injector','shouldCloseConn','_onCursorDelete','ILogService','[SyncedState]:\x20received\x20rejection.','getCurrentSelections','setConfig','JOIN','transformUndoRedo','_updateStatus','infoRsp','/universer-api/snapshot/','HTTPRequest','CollaborationSession','_state$','popstate','_onConnectionOpen','COLLAB_WEB_SOCKET_URL_KEY','useObservable','_refRangeService','_getAnchorBounding','then','onTransformRemoteChangesetByIMECache','delay','_eventUnsubscribe','eventID','COLLAB_WEB_SOCKET_URL','_onCursorUpdate','fetch_missing','setTimeout','executeCommand','_hovered','VIEWPORT_KEY','getCurrentUser','_executeRemoteChangeset','change$','HTTPService','\x20to\x20','send','transformChangesets','collabCursorState$','_socketReady','96sbUsWS','withCredentials','onRemoteChangeset','conflict.title','disableLocalCache','unsubscribe','className','_telemetryService','getConfig','fetchMissingChangesets','has','removeMember','registerHTTPInterceptor','/collaborator','InsertRangeMoveDownCommandId','_initCloseConn','_decreaseWaiting','href','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_replaceFileID','DesktopCollaborationStatusDisplayController','set','PERMISSION_REJ','MUTATION','sessionStatus$','OnLineSingle','assignAColorForMemberID','prototype','_getScale','commentUpdateEvent','handleIRemoveCol','_socketMessageSubscription','_status$','_draw','collabStatus.syncing','587342aYVdsc','onPointerMove$','b64DecodeUnicode','updatePermissionObjEvent','makeDirty','UniverCollaborationPlugin','object','defs','_logService','ERROR_IMAGE_TYPE','_commandService','[CollaborationEntity]','469953JPbucn','Shape','loginUrlKey','_getLoginPath','removeParam','ICommandService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_roomMembers$','Injector','url(#on-line-single_clip0_910_349)','getSheetId','onReady','HEARTBEAT','deepClone','\x0aAfter:\x20','getTypeOfUnitAdded$','registerRefRange','[CollaborationState]:\x20apply\x20error!','_unitID','_handleLeaveEvent','_initStatusListener','height','#FFF','InsertColCommandId','_getRedoStack','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','UPDATE_CURSOR','shareReplay','_heartbeatTimer','_updateLocalCursor','_replayCachedMutations','duration','749406GgPYTY','distinctUntilChanged','forwardRef','getDocRanges','params','some','&to=','_initModules','svg','fetchThroughInterceptors','CONNECTOR_DATA_TOO_LARGE','_ws','conflict','getCollabCursors$','displayName','getTypeOfUnitDisposed$','saveChangeset','_name','status$','unshift','copyFileMeta','collaboration-client.config','32945nvHykV','_assignedColors','permission.title','_transitionLocked','body','_loadDoc','_send','error$','_commentUpdate$','merge','_onFetchMissResult','Subject','updateMember','LIVESHARE_REQUEST_HOST','EmptyMutation','UNAUTHENTICATED','session.collaboration-timeout','_drawTextRange','_session','_textBubble','LocalCacheService','_change$','COLORS','arc','_onUserLeave','_ensureSubject','_docSyncEditingCollabCursorService','_refreshCollabCursors','transform','_onRemoteChangeset','_type','TRANSFORM_CHANGE_OBSERVABLE_TYPE','text','resend','onCommandExecuted','transformIMECache','idSuffix','_clearRedo','IAuthzIoService','NEW_CHANGESETS','IRenderManagerService','collaboration-client.offline-data-not-saved','onSyncEditingCollabCursor','pluginName','editingUnit','CollaborationStatusDisplay','_onRecvEvent','_onRemoteACK','hide','reduce','connection\x20error','disposeWithMe','filter','Disposable','extend','collabStatus.fetchMiss','setCurrentUser','_lastPointer','_incrementRevisionNumber','UnitEmbedded','transformMutation','_saveTaskMap','commentUpdate$','setAlpha','fillStyle','csRejEvent','originalMeta','cmd','_disabled','isActive','[CollaborationSessionService]','uploadFileServerUrl','36zFSaND','textRanges','routeKey','BASE64','0\x200\x2016\x2016','collab-text-range-','addObject','json','interceptor','_docStateChangeManagerService','COMPRESS_MUTATION_APPLY','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','RemoveColCommandId','_initEventListeners','@univerjs/design','pushState','getVpScrollXYInfoByPosToVp','method','...','string','_messageService','parseChangesetToProtocol','Inject','getItem','SheetCollabCursorShape','collaboration.closeRoom','_onUserJoin','unknown','image/bmp','encodeURIComponent','IUndoRedoService','SNAPSHOT_INVALID_SNAPSHOT','saveSnapshot','UniverInstanceType','/resources','collabStatus.notCollab','deserializeRangeWithSheet','collab-rect-range-','fetchMiss','cursorInfo$','_tryEnsureSocket','post','YUUMI_RATE_OVER_LIMIT','type','CollaborationStatus','takeUntil','MSG_FOR_ERROR','_instanceService','onMouseMove','IMessageService','joinEvent','UNIVER_SLIDE','collaboration-session-retry','memberID','delete','_drawRectRange','CommandType','session.connection-failed','batchAllowed','enableSingleActiveInstanceLock','drawWith','status','_getUndoStack','_initRequestHeader','@univerjs/sheets-ui','endColumn','9mSnwia','YUUMI_UNABLE_LOAD_URL','handleInsertRangeMoveDown','univer-offline','getUnitOnRev','getUnitId','_saveCache','_renderManagerService','_exhaustRemoteChangesetQueue','_disableEditing','SetSelectionsOperation','BehaviorSubject','FileId','getCellPositionByOffset','_transformPreviousActiveRange','onRendered','collab-client.tooltip.reconnect','SNAPSHOT_HAS_BEEN_REMOVED','LEAVE','IURLService','_roomMembers','_collabCursorState$','ImageIoService','INotificationService','socketService','stopTime','onPointerLeave$','IUniverInstanceService','onlineStatusTitle','getInterceptPoints','Plugin','_permissionService','\x20-\x20','awaiting_with_pending','sheetID','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','readAsDataURL','_listenToOnlineEvent','asObservable','/object/','onlyLocal','_transformService','_cursor','with','useRef','values','_sessionStatus$','SheetsSelectionsService','incrementRevOfUnit','OFFLINE','COLLAB_SUBMIT_CHANGESET_URL_KEY','UnitSnapshot','Univer','isTransformChangesetsSuccess','WebSocketService','_retryCount','COMPLETION_FINISHED','SessionStatus','_clearOtherTimers','close$','_socket','subUnitId','onMissingChangesets','_shapes','@univerjs/drawing','SEND_CHANGESET_TIMEOUT_KEY','@univerjs/telemetry','url(#off-line-single_clip0_910_343)','on-line-single_clip0_910_349','#fff','_getMergeRange','1em','session','ITransformService','getCollabEntity$','_onCombEvent','measureText','fillRule','_startCollaboration','SYNCED','includes','[CollaborationUndoRedoService]','show','syncEditingCollabCursor','forEach','onTransformIME','_urlService','_scheduleTimestamp','handleDeleteRangeMoveUp','USERS_ENTER','_getSheetObject','loadOfflineData','resolve','requestParams','MoveRangeCommandId','isTransformMutationsWithChangesetSuccess','_selfUnitIDs','LICENSE_IMPORT_SIZE_EXCEEDED','substring','getSheetObject','&source=','UNRECOGNIZED','@univerjs/rpc','COMPRESS_MUTATION_SEND','subunit','_initUnitPermissionChange','onCommentUpdate','/rev/','getUndoRedoMutationParamsCache','HEARTBEAT_INTERVAL','univer-pro.collaboration-client-socket-service','LOCAL_CACHE_INTERVAL','/fetchmissing?from=','setItem','getWorkbookSelections','tag','_hover','MergeInterceptorFactory','_listenToOfflineEvent','currentTheme$','compose','getMemberID','0\x200\x2017\x2016','createInstance','_singleActiveUnitService','NodePositionConvertToRectRange','state','MessageType','startColumn','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','black','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[FetchMissState]','take','_imageSourceCache','saveOfflineData','_onMessage','_sendHeartbeat','[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.','SheetCollaborationEntity','POST','initWorkbookPermissionChange','RxDisposable','collaboration_new_changeset','dispose$','off-line-single','_context','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','Rect','UPDATE_PERMISSION_OBJ','awaiting','_http','_members','joinRsp','verdancy600','_scheduleSaving','children','HEARTBEAT_TIMEOUT_KEY','name','online','DocCollaborationEntity','_getDownloadEndpointURL','get','XHRHTTPImplementation','_docSkeletonManagerService','getRenderById','newValue','fill','useDependency','none','history','_HTTPService','LIVESHARE_FETCH_OPERATIONS','getUnit','/universer-api/authz','ThemeService','_acknowledgedAwaitingChangeset','WorkbookEditablePermission','/block/','\x20in\x20_schedule.','_online','doc.mutation.rich-text-editing','_colorAssignService','LIVESHARE_OPERATION','_getAPIPrefixPath','currentSkeleton$','_revisionService','_substituteRedoStack','roomMembers$','_hideTimer','deserializeToCombResponse','AWAITING','USERS_LEAVE','round','jiqing500','column','AWAITING_WITH_PENDING','CollaborationEntity','map','csAckEvent','unitID','rev','RegularPolygon','FETCH_MISSING','findNodePositionByCharIndex','c1Prime','addObjects','ALREADY_EXISTS','fromEvent','isArray','_isPermissionRej','@univerjs/network','VIEW_MAIN','_removeCollabCursors','ILocalStorageService','_onRemoteRejected','every','LIVESHARE_TERMINATE','createSocket','getCollabEntity','dispose','handleInsertRangeMoveRight','debounce','SnapshotService','_rescheduleHeartbeat','editing\x20status\x20changed\x20to','SetTextSelectionsOperation','unit-cache-','capture','userID','getActiveSheet','SUCCUSS','Module','UUID','length','Tools','_univerInstanceService','_retryConnectingTimer','getUnitStatus$','changesets','PERMISSION_DENIED','unit','APPLY_REVISION_CONFILICT','APPLY_REJECT','combineLatest','stringify','searchParams','color','_candidateSocket','switchMap','m1Prime','@univerjs/docs','_anchorDot','BuiltInUIPart','put','getSheetBlock','_unitStatus','endRow','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','reject','IDLE','leaveEvent','_cursors','_startDocCollabCursor','ERROR_IMAGE','_handleHeartbeatEvent','WebURLService','snapshot','getRangePointData','attrs','JOINING','roomInfos','5028AMtLqQ','getAncestorScale','downloadEndpointUrl','onPointerEnter$','COMMENT_UPDATE','deleteCollaborator','_undoStacks','clear','ISnapshotServerService','UNIVER_SHEET','mapDocumentTypeToUniverType','RECV','_collabCursorController','_getUploadFileURL','serializeRangeWithSheet','_substituteUndoStack','getOwnPropertyDescriptor','_createSocket','LOCAL_CACHE_INTERVAL_KEY','@univerjs/core','row','evenodd','AuthzIoHttpService','_entityInit$','/-/object/-/batch_allowed','SheetPermissionInitController','registerOnClose','setShapeProps','append','CollaborationSessionService','UNKNOWN_CMD','SNAPSHOT_URL_KEY','url','ImageUploadStatusType','engine','isTransformMutationFailure','\x0aCurrent:\x20','roles','transformByState','_range','createCollaborator','parse','getColor'];_0x59b6=function(){return _0x2f5b9f;};return _0x59b6();}let me=class{constructor(_0x1cd496,_0x5c9cac){this['_injector']=_0x1cd496,this['_transformService']=_0x5c9cac;}[_0x28eb85(0x14f)](_0x4a6cf8){const _0x3d2558=_0x28eb85;var _0x3f8a42;const _0x5a0f2d=this['_injector'][_0x3d2558(0x30d)](V[_0x3d2558(0x3e2)]),_0x418db5=(_0x3f8a42=_0x5a0f2d[_0x3d2558(0x1ce)]())!=null?_0x3f8a42:[];if(_0x418db5[_0x3d2558(0x355)]===0x0)return;const _0x131a85=[{'id':_0x3d2558(0x320),'params':{'unitId':_0x4a6cf8[_0x3d2558(0x333)],'actions':null,'textRanges':_0x418db5}}],_0x35a841=this['_transformService'][_0x3d2558(0x3ff)](_0x4a6cf8,_0x131a85);if(!_[_0x3d2558(0x2ca)](_0x35a841))throw _0x35a841[_0x3d2558(0x533)];const _0x1116bc=_0x35a841['m2Prime'][0x0][_0x3d2558(0x1cf)][_0x3d2558(0x22a)];Array[_0x3d2558(0x33c)](_0x1116bc)&&_0x1116bc[_0x3d2558(0x355)]&&_0x5a0f2d[_0x3d2558(0x401)](_0x1116bc,!0x1);}};me=Ms([st(0x0,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),st(0x1,_['ITransformService'])],me);const Ns=new Set([C[_0x28eb85(0x4d3)]['id']]);function it(_0x2af8bb,_0x14bd04,_0x21a5fc,_0x37893b,_0x2250b6){const _0x3a3db0=_0x28eb85;var _0x1b8495,_0x37835f,_0x88f8d0,_0x4ebf88;const _0x5bb37a=[];for(const _0x35d325 of _0x2af8bb)if(Ns[_0x3a3db0(0x186)](_0x35d325['id'])){if(_0x5bb37a['length']>0x0)break;_0x5bb37a['push'](_0x35d325);break;}else _0x5bb37a['push'](_0x35d325);const _0x1de2ed=(_0x37835f=(_0x1b8495=_0x2250b6[_0x3a3db0(0x173)]())==null?void 0x0:_0x1b8495[_0x3a3db0(0x350)])!=null?_0x37835f:'unknown',_0xf74b8e=(_0x4ebf88=(_0x88f8d0=_0x2250b6[_0x3a3db0(0x173)]())==null?void 0x0:_0x88f8d0[_0x3a3db0(0x25e)])!=null?_0x4ebf88:_0x3a3db0(0x244);return{'changeset':{'unitID':_0x14bd04,'type':_[_0x3a3db0(0x385)](_0x21a5fc['getUnitType'](_0x14bd04)),'baseRev':_0x37893b[_0x3a3db0(0x134)](_0x14bd04),'revision':0x0,'userID':_0x1de2ed,'memberID':_0xf74b8e,'mutations':_0x5bb37a},'pendingMutations':_0x2af8bb['slice'](_0x5bb37a['length'])};}function As(_0x58db40,_0x38d62c,_0x103497,_0x3a21a8,_0x27d4d9){const _0x591c6d=_0x28eb85;var _0x332288,_0x4aaa50,_0x41fe33,_0x3f9f41;const _0x1cc690=[_0x58db40[_0x591c6d(0x212)]((_0x164924,_0x183351)=>{const _0x310666=_0x591c6d;var _0x2ad5a7;const {id:_0x1f2908}=_0x164924,{id:_0x4bd8d5,type:_0x27a4ec}=_0x183351,_0x5d8897=(_0x2ad5a7=_0x164924[_0x310666(0x1cf)])!=null?_0x2ad5a7:{'actions':null},_0x12e853=_0x183351[_0x310666(0x1cf)];if(_0x1f2908&&_0x1f2908!==_0x4bd8d5)throw new Error(_0x310666(0x28e)+_0x1f2908+_0x310666(0x28b)+_0x4bd8d5+'.');return{..._0x164924,'id':_0x4bd8d5,'type':_0x27a4ec,'params':{'unitId':_0x12e853[_0x310666(0x415)],'textRanges':_0x12e853[_0x310666(0x22a)],'actions':a[_0x310666(0x431)][_0x310666(0x2e3)](_0x5d8897[_0x310666(0x4e2)],_0x12e853[_0x310666(0x4e2)])}};},{})],_0x1a3bfc=(_0x4aaa50=(_0x332288=_0x27d4d9[_0x591c6d(0x173)]())==null?void 0x0:_0x332288[_0x591c6d(0x350)])!=null?_0x4aaa50:_0x591c6d(0x244),_0x1f4d3a=(_0x3f9f41=(_0x41fe33=_0x27d4d9['getCurrentUser']())==null?void 0x0:_0x41fe33[_0x591c6d(0x25e)])!=null?_0x3f9f41:'unknown';return{'changeset':{'unitID':_0x38d62c,'type':_[_0x591c6d(0x385)](_0x103497[_0x591c6d(0x116)](_0x38d62c)),'baseRev':_0x3a21a8[_0x591c6d(0x134)](_0x38d62c),'revision':0x0,'userID':_0x1a3bfc,'memberID':_0x1f4d3a,'mutations':_0x1cc690},'pendingMutations':[]};}const Ls={'id':C[_0x28eb85(0x1ef)]['id'],'type':a[_0x28eb85(0x261)][_0x28eb85(0x193)],'params':{}};var js=Object[_0x28eb85(0x114)],$s=Object['getOwnPropertyDescriptor'],z=(_0x5ce1cd,_0x1db956,_0x1f78af,_0x3dbc80)=>{const _0x56afc4=_0x28eb85;for(var _0x288ca8=_0x3dbc80>0x1?void 0x0:_0x3dbc80?$s(_0x1db956,_0x1f78af):_0x1db956,_0x190b61=_0x5ce1cd[_0x56afc4(0x355)]-0x1,_0x34425e;_0x190b61>=0x0;_0x190b61--)(_0x34425e=_0x5ce1cd[_0x190b61])&&(_0x288ca8=(_0x3dbc80?_0x34425e(_0x1db956,_0x1f78af,_0x288ca8):_0x34425e(_0x288ca8))||_0x288ca8);return _0x3dbc80&&_0x288ca8&&js(_0x1db956,_0x1f78af,_0x288ca8),_0x288ca8;},g=(_0x416279,_0x22cd4f)=>(_0x1e66b0,_0x5bea40)=>_0x22cd4f(_0x1e66b0,_0x5bea40,_0x416279),y=(_0x5eb044=>(_0x5eb044[_0x28eb85(0x46b)]=_0x28eb85(0x472),_0x5eb044['SYNCED']='synced',_0x5eb044[_0x28eb85(0x50d)]=_0x28eb85(0x4fd),_0x5eb044['AWAITING']=_0x28eb85(0x301),_0x5eb044[_0x28eb85(0x32f)]=_0x28eb85(0x28c),_0x5eb044[_0x28eb85(0x405)]=_0x28eb85(0x16e),_0x5eb044['CONFLICT']=_0x28eb85(0x1d7),_0x5eb044[_0x28eb85(0x29c)]='offline',_0x5eb044))(y||{});class J{constructor(_0x296e91,_0x370537,_0xfac256,_0x16c9c1,_0x4be987,_0x473ba9,_0x3e63a8,_0x21afa8,_0x295e7f){const _0x4dc17b=_0x28eb85;d(this,_0x4dc17b(0x4e5),null),d(this,_0x4dc17b(0x4e6),[]),(this[_0x4dc17b(0x333)]=_0x296e91,this['type']=_0x370537,this[_0x4dc17b(0x465)]=_0x4be987,this['_commandService']=_0x473ba9,this['_undoRedoService']=_0x3e63a8,this[_0x4dc17b(0x325)]=_0x21afa8,this[_0x4dc17b(0x535)]=_0x295e7f,this[_0x4dc17b(0x4e5)]=_0xfac256,this['_pendingMutations']=_0x16c9c1);}['_checkMissing'](_0xb86926){const _0x14b821=_0x28eb85,_0x24ee1f=this['_revisionService'][_0x14b821(0x134)](this['unitID']);return _0xb86926['revision']>_0x24ee1f+0x1?(this[_0x14b821(0x465)][_0x14b821(0x2a9)]({'from':_0x24ee1f,'to':_0xb86926[_0x14b821(0x3e7)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x2c402c){const _0x5e2d99=_0x28eb85;this[_0x5e2d99(0x12c)][_0x5e2d99(0x15a)](this[_0x5e2d99(0x333)],_0x2c402c);}[_0x28eb85(0x442)](_0x42084f){const _0x203995=_0x28eb85;var _0x5acf2f,_0x4d51ee;(_0x4d51ee=(_0x5acf2f=this[_0x203995(0x465)])['onTransformSelections'])==null||_0x4d51ee[_0x203995(0x513)](_0x5acf2f,_0x42084f);}[_0x28eb85(0x14d)](_0x4e3207){const _0x5b09cc=_0x28eb85;var _0x54c00b,_0x44d860;return(_0x44d860=(_0x54c00b=this[_0x5b09cc(0x465)])[_0x5b09cc(0x2c0)])==null?void 0x0:_0x44d860[_0x5b09cc(0x513)](_0x54c00b,_0x4e3207);}[_0x28eb85(0x140)](_0x3c0071){const _0x30b84a=_0x28eb85;var _0x4f806d,_0x38a85f,_0x989525;return(_0x989525=(_0x38a85f=(_0x4f806d=this[_0x30b84a(0x465)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x38a85f[_0x30b84a(0x513)](_0x4f806d,_0x3c0071))!=null?_0x989525:_0x3c0071;}['_syncEditingCollabCursor'](_0x5c2eaf){const _0x3caca7=_0x28eb85;var _0x91ffb1,_0x36768c;if(this[_0x3caca7(0x254)]===j[_0x3caca7(0x43a)]){const {unitID:_0x15d092,mutations:_0xd7babe,memberID:_0x5365b1}=_0x5c2eaf,_0x45db52=_0xd7babe[0x0]['params']['textRanges'];Array[_0x3caca7(0x33c)](_0x45db52)&&_0x45db52['length']>0x0&&((_0x36768c=(_0x91ffb1=this[_0x3caca7(0x465)])[_0x3caca7(0x20b)])==null||_0x36768c['call'](_0x91ffb1,{'unitID':_0x15d092,'memberID':_0x5365b1,'textRanges':_0x45db52}));}}[_0x28eb85(0x48d)](){const _0x51836c=_0x28eb85;this[_0x51836c(0x535)]['updateOfflineData'](this[_0x51836c(0x333)],this[_0x51836c(0x254)],this[_0x51836c(0x4e5)],this['_pendingMutations']);}[_0x28eb85(0x3eb)](){const _0x43e31c=_0x28eb85;return this[_0x43e31c(0x325)]['getCurrentRevOfUnit'](this[_0x43e31c(0x333)]);}['_incrementRevisionNumber'](){const _0x3cb52b=_0x28eb85;this[_0x3cb52b(0x325)][_0x3cb52b(0x29b)](this[_0x3cb52b(0x333)]);}[_0x28eb85(0x174)](_0x28d961){const _0x490da5=_0x28eb85;var _0x3d98b3;const _0x87c975=this[_0x490da5(0x140)](_0x28d961),_0x337f5f=a['sequenceExecute'](_0x87c975['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x337f5f[_0x490da5(0x4db)])throw _0x337f5f[_0x490da5(0x533)]instanceof Error?_0x337f5f['error']:new Error((_0x3d98b3=_0x337f5f[_0x490da5(0x533)])!=null?_0x3d98b3:_0x490da5(0x1bc));this[_0x490da5(0x14d)](_0x87c975),this[_0x490da5(0x3f2)](_0x28d961),this[_0x490da5(0x442)](_0x87c975),this[_0x490da5(0x519)](_0x87c975),this['_incrementRevisionNumber']();}}let se=class extends J{constructor(_0x304c78,_0x6f4764,_0x45029b,_0xed37e1,_0x1917a1,_0x33ca99,_0x28ef6e,_0x463f13,_0x308bf6,_0x23e740){const _0x454e87=_0x28eb85;super(_0x304c78,_0x6f4764,null,[],_0x45029b,_0x463f13,_0x28ef6e,_0xed37e1,_0x1917a1),d(this,_0x454e87(0x266),'synced'),(this[_0x454e87(0x152)]=_0x33ca99,this[_0x454e87(0x1a7)]=_0x308bf6,this[_0x454e87(0x294)]=_0x23e740);}['appendMutation'](_0x4e4f7b){const _0x3ea634=_0x28eb85,_0x6c5505=this[_0x3ea634(0x152)][_0x3ea634(0x2e6)](x,this[_0x3ea634(0x333)],this['type'],[_0x4e4f7b],this[_0x3ea634(0x465)]);return _0x6c5505[_0x3ea634(0x3b4)](),_0x6c5505[_0x3ea634(0x48d)](),_0x6c5505;}[_0x28eb85(0x17e)](_0x3da218){const _0x360905=_0x28eb85;if(this[_0x360905(0x4c3)](_0x3da218))return this[_0x360905(0x152)][_0x360905(0x2e6)](H,this[_0x360905(0x333)],this[_0x360905(0x254)],null,[],null,[_0x3da218],this['_handler']);try{const _0x2d620a=this[_0x360905(0x294)][_0x360905(0x3ff)](_0x3da218,[Ls]);if(_['isTransformMutationsWithChangesetSuccess'](_0x2d620a)){const {c1Prime:_0xb8d27a}=_0x2d620a;return this[_0x360905(0x174)](_0xb8d27a),this;}throw _0x2d620a[_0x360905(0x533)];}catch(_0x195f0b){return this[_0x360905(0x1a7)][_0x360905(0x533)](_0x195f0b),this[_0x360905(0x3c4)](!0x1);}}[_0x28eb85(0x3c4)](_0x21ca5){const _0x4ac931=_0x28eb85;return this['_injector'][_0x4ac931(0x2e6)](F,this[_0x4ac931(0x333)],this[_0x4ac931(0x254)],null,[],this[_0x4ac931(0x465)],_0x21ca5);}[_0x28eb85(0x532)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x28eb85(0x3d9)](){const _0x571863=_0x28eb85;throw new Error(_0x571863(0x156));}[_0x28eb85(0x426)](){const _0x265ef9=_0x28eb85;return this[_0x265ef9(0x152)][_0x265ef9(0x2e6)](G,this['unitID'],this[_0x265ef9(0x254)],null,[],this[_0x265ef9(0x465)]);}[_0x28eb85(0x438)](){return this;}['resend'](){const _0x146489=_0x28eb85;throw new Error(_0x146489(0x461));}[_0x28eb85(0x24f)](){const _0x5625b4=_0x28eb85,_0x282125=this[_0x5625b4(0x325)][_0x5625b4(0x134)](this[_0x5625b4(0x333)]);return this['_handler'][_0x5625b4(0x2a9)]({'from':_0x282125,'to':0x0}),this[_0x5625b4(0x152)][_0x5625b4(0x2e6)](H,this['unitID'],this[_0x5625b4(0x254)],null,[],null,[],this[_0x5625b4(0x465)]);}};se=z([g(0x3,a['Inject'](_[_0x28eb85(0x4fa)])),g(0x4,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0x5,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),g(0x6,a[_0x28eb85(0x247)]),g(0x7,a[_0x28eb85(0x1b0)]),g(0x8,a['ILogService']),g(0x9,_[_0x28eb85(0x2b4)])],se);let x=class extends J{constructor(_0x1eab77,_0xe9eb12,_0x5c976d,_0x15c599,_0x1d8eeb,_0x4f3a46,_0x52d435,_0xa89872,_0x52c17b,_0x32bfa7,_0x278255,_0x3a9a13,_0x35794c,_0x1e7f6a){const _0x23fa16=_0x28eb85;super(_0x1eab77,_0xe9eb12,null,_0x5c976d,_0x15c599,_0x32bfa7,_0x1e7f6a,_0x4f3a46,_0x52d435),d(this,_0x23fa16(0x266),_0x23fa16(0x4fd)),d(this,_0x23fa16(0x2c2),null),d(this,'_sendingTimer',null),(this[_0x23fa16(0x152)]=_0x1d8eeb,this[_0x23fa16(0x4c9)]=_0xa89872,this[_0x23fa16(0x1a7)]=_0x52c17b,this[_0x23fa16(0x4d8)]=_0x278255,this['_transformService']=_0x3a9a13,this['_univerInstanceService']=_0x35794c);}['appendMutation'](_0x27d853){const _0x5a2f7e=_0x28eb85;return this[_0x5a2f7e(0x4e6)]['push'](_0x27d853),this['_updateLocalCache'](),this;}[_0x28eb85(0x17e)](_0x298979){const _0x1e3be4=_0x28eb85;if(this[_0x1e3be4(0x4c3)](_0x298979))return this[_0x1e3be4(0x4b1)](),this[_0x1e3be4(0x152)][_0x1e3be4(0x2e6)](H,this[_0x1e3be4(0x333)],this['type'],null,this[_0x1e3be4(0x4e6)],null,[_0x298979],this[_0x1e3be4(0x465)]);try{const _0x47dbfd=this[_0x1e3be4(0x294)][_0x1e3be4(0x3ff)](_0x298979,this[_0x1e3be4(0x4e6)]);if(_[_0x1e3be4(0x2ca)](_0x47dbfd)){const {c1Prime:_0x954a80,m2Prime:_0x928cf}=_0x47dbfd;this[_0x1e3be4(0x174)](_0x954a80);const _0x64fdfb=this[_0x1e3be4(0x152)]['createInstance'](x,this[_0x1e3be4(0x333)],this['type'],_0x928cf,this[_0x1e3be4(0x465)]);return this['_clearScheduledTask'](),_0x64fdfb[_0x1e3be4(0x3b4)](this[_0x1e3be4(0x2c2)]?Math[_0x1e3be4(0x47f)](0x0,new Date()[_0x1e3be4(0x3b9)]()-this[_0x1e3be4(0x2c2)]):this['_getSendChangesetTimeout']()),_0x64fdfb;}throw _0x47dbfd['error'];}catch(_0x36544e){return this['_logService'][_0x1e3be4(0x533)](_0x36544e),this['_onConflict'](!0x1);}}[_0x28eb85(0x532)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x28eb85(0x3d9)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x28eb85(0x426)](){const _0x5c68f3=_0x28eb85;return this[_0x5c68f3(0x4b1)](),this['_injector'][_0x5c68f3(0x2e6)](G,this[_0x5c68f3(0x333)],this[_0x5c68f3(0x254)],null,this[_0x5c68f3(0x4e6)],this[_0x5c68f3(0x465)]);}[_0x28eb85(0x438)](){return this;}['_schedule'](_0x155d04){const _0x3e406c=_0x28eb85,_0x571a7c=_0x155d04!=null?_0x155d04:this[_0x3e406c(0x411)]();this[_0x3e406c(0x2c2)]=new Date()[_0x3e406c(0x3b9)](),this['_sendingTimer']=window[_0x3e406c(0x16f)](()=>{const _0x3e173b=_0x3e406c;this[_0x3e173b(0x4b1)]();let _0x416ba3=null;switch(this['type']){case j[_0x3e173b(0x384)]:{_0x416ba3=it(this[_0x3e173b(0x4e6)],this[_0x3e173b(0x333)],this[_0x3e173b(0x357)],this['_revisionService'],this['_memberService']);break;}case j[_0x3e173b(0x43a)]:{this['_pendingMutations'][_0x3e173b(0x343)](_0x3c99a9=>_0x3c99a9['id']===V['RichTextEditingMutation']['id'])?_0x416ba3=As(this['_pendingMutations'],this[_0x3e173b(0x333)],this[_0x3e173b(0x357)],this['_revisionService'],this[_0x3e173b(0x4c9)]):_0x416ba3=it(this[_0x3e173b(0x4e6)],this[_0x3e173b(0x333)],this[_0x3e173b(0x357)],this[_0x3e173b(0x325)],this[_0x3e173b(0x4c9)]);break;}default:throw new Error(_0x3e173b(0x2ee)+this[_0x3e173b(0x254)]+_0x3e173b(0x31e));}const {changeset:_0xb48e46,pendingMutations:_0x2d8d93}=_0x416ba3;this[_0x3e173b(0x465)][_0x3e173b(0x514)](_0xb48e46);const _0x13ffea=_0x2d8d93['length']?this[_0x3e173b(0x152)][_0x3e173b(0x2e6)](k,this[_0x3e173b(0x333)],this[_0x3e173b(0x254)],_0xb48e46,_0x2d8d93,this[_0x3e173b(0x465)]):this['_injector'][_0x3e173b(0x2e6)](W,this[_0x3e173b(0x333)],this[_0x3e173b(0x254)],_0xb48e46,this['_handler']);_0x13ffea[_0x3e173b(0x48d)](),this[_0x3e173b(0x465)][_0x3e173b(0x12b)](this,_0x13ffea);},_0x571a7c);}[_0x28eb85(0x411)](){const _0x1e45aa=_0x28eb85;var _0x23d29f;const _0x2417a9=this['_configService'][_0x1e45aa(0x184)](A);return(_0x23d29f=_0x2417a9==null?void 0x0:_0x2417a9['sendChangesetTimeout'])!=null?_0x23d29f:Kt;}[_0x28eb85(0x202)](){const _0x4e05b7=_0x28eb85;throw new Error(_0x4e05b7(0x458));}[_0x28eb85(0x4b1)](){const _0x3f10c7=_0x28eb85;this[_0x3f10c7(0x3fc)]!=null&&(clearTimeout(this[_0x3f10c7(0x3fc)]),this[_0x3f10c7(0x3fc)]=null);}[_0x28eb85(0x3c4)](_0x1a8fbc){const _0x1deae8=_0x28eb85;return this[_0x1deae8(0x4b1)](),this[_0x1deae8(0x152)][_0x1deae8(0x2e6)](F,this[_0x1deae8(0x333)],this[_0x1deae8(0x254)],null,this['_pendingMutations'],this[_0x1deae8(0x465)],_0x1a8fbc);}};x=z([g(0x4,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),g(0x5,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),g(0x6,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0x7,a['Inject'](q)),g(0x8,a[_0x28eb85(0x155)]),g(0x9,a['ICommandService']),g(0xa,a[_0x28eb85(0x420)]),g(0xb,_[_0x28eb85(0x2b4)]),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0x28eb85(0x247)])],x);let W=class extends J{constructor(_0x4a4e2a,_0x1e1530,_0x166c81,_0x2f8831,_0x15b661,_0x12db87,_0x41288a,_0xd4914d,_0x2fc9e5,_0x31fbdc,_0x263a01){const _0x516ee8=_0x28eb85;super(_0x4a4e2a,_0x1e1530,_0x166c81,[],_0x2f8831,_0xd4914d,_0x263a01,_0x12db87,_0x41288a),d(this,'status',_0x516ee8(0x301)),(this[_0x516ee8(0x152)]=_0x15b661,this[_0x516ee8(0x1a7)]=_0x2fc9e5,this[_0x516ee8(0x294)]=_0x31fbdc);}[_0x28eb85(0x141)](_0x355a5b){const _0x526289=_0x28eb85,_0x2eb72f=this[_0x526289(0x152)][_0x526289(0x2e6)](k,this[_0x526289(0x333)],this['type'],this[_0x526289(0x4e5)],[_0x355a5b],this[_0x526289(0x465)]);return _0x2eb72f[_0x526289(0x48d)](),_0x2eb72f;}[_0x28eb85(0x17e)](_0x4d1b74){const _0x10cf82=_0x28eb85;if(this[_0x10cf82(0x4c3)](_0x4d1b74))return this[_0x10cf82(0x152)][_0x10cf82(0x2e6)](H,this[_0x10cf82(0x333)],this[_0x10cf82(0x254)],this[_0x10cf82(0x4e5)],[],null,[_0x4d1b74],this[_0x10cf82(0x465)]);try{const _0x370d89=this[_0x10cf82(0x294)]['transformChangesets']([_0x4d1b74],[this[_0x10cf82(0x4e5)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x370d89)){const {c1Prime:_0x551ea6,c2Prime:_0x2b0303}=_0x370d89;this[_0x10cf82(0x174)](_0x551ea6[0x0]),_0x2b0303[0x0]['baseRev']=this['_getCurrentRevision']();const _0x29e2cd=this[_0x10cf82(0x152)][_0x10cf82(0x2e6)](W,this[_0x10cf82(0x333)],this['type'],_0x2b0303[0x0],this[_0x10cf82(0x465)]);return _0x29e2cd[_0x10cf82(0x48d)](),_0x29e2cd;}return this['_onConflict'](!0x1);}catch(_0x301a06){return this['_logService'][_0x10cf82(0x533)](_0x301a06),this[_0x10cf82(0x3c4)](!0x1);}}[_0x28eb85(0x532)](_0x5c559c){const _0x3ce2f7=_0x28eb85,_0x1a34f6=this[_0x3ce2f7(0x325)][_0x3ce2f7(0x134)](this[_0x3ce2f7(0x333)]);if(_0x5c559c[_0x3ce2f7(0x3e7)]<_0x1a34f6-0x1)return this;if(this['_checkMissing'](_0x5c559c))return this['_injector']['createInstance'](H,this[_0x3ce2f7(0x333)],this[_0x3ce2f7(0x254)],null,[],this[_0x3ce2f7(0x4e5)],[],this[_0x3ce2f7(0x465)]);this[_0x3ce2f7(0x21b)]();const _0x4fca33=this['_injector']['createInstance'](se,this[_0x3ce2f7(0x333)],this[_0x3ce2f7(0x254)],this['_handler']);return _0x4fca33[_0x3ce2f7(0x48d)](),_0x4fca33;}[_0x28eb85(0x3d9)](_0x25da40){const _0x2e57b2=_0x28eb85;return this[_0x2e57b2(0x3c4)](!!(_0x25da40!=null&&_0x25da40[_0x2e57b2(0x121)]));}[_0x28eb85(0x426)](){const _0x3fd93e=_0x28eb85;return this[_0x3fd93e(0x152)]['createInstance'](G,this[_0x3fd93e(0x333)],this['type'],this[_0x3fd93e(0x4e5)],[],this['_handler']);}[_0x28eb85(0x438)](){return this;}[_0x28eb85(0x202)](){const _0x52b9d7=_0x28eb85;this[_0x52b9d7(0x465)]['onSendChangeset'](this[_0x52b9d7(0x4e5)]);}[_0x28eb85(0x3c4)](_0x3130a1){const _0x2e7eda=_0x28eb85;return this[_0x2e7eda(0x152)]['createInstance'](F,this[_0x2e7eda(0x333)],this['type'],this[_0x2e7eda(0x4e5)],[],this['_handler'],_0x3130a1);}};W=z([g(0x4,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),g(0x5,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),g(0x6,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0x7,a[_0x28eb85(0x1b0)]),g(0x8,a['ILogService']),g(0x9,_[_0x28eb85(0x2b4)]),g(0xa,a[_0x28eb85(0x247)])],W);let k=class extends J{constructor(_0x3a9198,_0x39cf34,_0x1404dd,_0x4d5569,_0x57b3b3,_0x443514,_0x43f800,_0x553fc1,_0x394af9,_0x2c0bd6,_0x2c21fc,_0x538320){const _0x2aceba=_0x28eb85;super(_0x3a9198,_0x39cf34,_0x1404dd,_0x4d5569,_0x57b3b3,_0x394af9,_0x538320,_0x43f800,_0x553fc1),d(this,_0x2aceba(0x266),'awaiting_with_pending'),(this[_0x2aceba(0x152)]=_0x443514,this['_logService']=_0x2c0bd6,this[_0x2aceba(0x294)]=_0x2c21fc);}[_0x28eb85(0x141)](_0x1c6da8){const _0x40be42=_0x28eb85;return this[_0x40be42(0x4e6)]['push'](_0x1c6da8),this;}['onRemoteChangeset'](_0x598c66){const _0xaf3e8e=_0x28eb85;if(this[_0xaf3e8e(0x4c3)](_0x598c66))return this[_0xaf3e8e(0x152)][_0xaf3e8e(0x2e6)](H,this[_0xaf3e8e(0x333)],this['type'],this[_0xaf3e8e(0x4e5)],this['_pendingMutations'],null,[_0x598c66],this[_0xaf3e8e(0x465)]);try{const _0x346ac3=this[_0xaf3e8e(0x294)]['transformChangesets']([_0x598c66],[this[_0xaf3e8e(0x4e5)]],!0x1);if(_[_0xaf3e8e(0x2a0)](_0x346ac3)){const {c1Prime:_0x4466f6,c2Prime:_0x54cb8c}=_0x346ac3,_0x12eb79=this[_0xaf3e8e(0x294)][_0xaf3e8e(0x3ff)](_0x4466f6[0x0],this[_0xaf3e8e(0x4e6)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x12eb79)){const {c1Prime:_0x1ba41d,m2Prime:_0x48c579}=_0x12eb79;return this[_0xaf3e8e(0x174)](_0x1ba41d),_0x54cb8c[0x0][_0xaf3e8e(0x3d8)]=this[_0xaf3e8e(0x3eb)](),this[_0xaf3e8e(0x152)][_0xaf3e8e(0x2e6)](k,this['unitID'],this[_0xaf3e8e(0x254)],_0x54cb8c[0x0],_0x48c579,this[_0xaf3e8e(0x465)]);}throw _0x12eb79['error'];}throw _0x346ac3[_0xaf3e8e(0x533)];}catch(_0x525307){return this[_0xaf3e8e(0x1a7)][_0xaf3e8e(0x533)](_0x525307),this[_0xaf3e8e(0x3c4)](!0x1);}}[_0x28eb85(0x532)](_0x5ac472){const _0x52111a=_0x28eb85;if(this[_0x52111a(0x4c3)](_0x5ac472))return this[_0x52111a(0x152)]['createInstance'](H,this[_0x52111a(0x333)],this[_0x52111a(0x254)],null,this[_0x52111a(0x4e6)],this[_0x52111a(0x4e5)],[],this['_handler']);this[_0x52111a(0x21b)]();const _0x72d637=this[_0x52111a(0x152)][_0x52111a(0x2e6)](x,this[_0x52111a(0x333)],this[_0x52111a(0x254)],this[_0x52111a(0x4e6)],this[_0x52111a(0x465)]);return _0x72d637['_schedule'](),_0x72d637['_updateLocalCache'](),_0x72d637;}[_0x28eb85(0x3d9)](_0x11e84e){const _0x41e586=_0x28eb85;return this[_0x41e586(0x3c4)](!!(_0x11e84e!=null&&_0x11e84e[_0x41e586(0x121)]));}[_0x28eb85(0x426)](){const _0x67e8c0=_0x28eb85;return this[_0x67e8c0(0x152)][_0x67e8c0(0x2e6)](G,this[_0x67e8c0(0x333)],this[_0x67e8c0(0x254)],this[_0x67e8c0(0x4e5)],this[_0x67e8c0(0x4e6)],this[_0x67e8c0(0x465)]);}[_0x28eb85(0x438)](){return this;}['resend'](){const _0x43dcfb=_0x28eb85;this[_0x43dcfb(0x465)][_0x43dcfb(0x514)](this[_0x43dcfb(0x4e5)]);}[_0x28eb85(0x3c4)](_0x287f1a){const _0x29ff9e=_0x28eb85;return this[_0x29ff9e(0x152)][_0x29ff9e(0x2e6)](F,this[_0x29ff9e(0x333)],this['type'],null,this['_pendingMutations'],this[_0x29ff9e(0x465)],_0x287f1a);}};k=z([g(0x5,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),g(0x6,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),g(0x7,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0x8,a[_0x28eb85(0x1b0)]),g(0x9,a[_0x28eb85(0x155)]),g(0xa,_['ITransformService']),g(0xb,a[_0x28eb85(0x247)])],k);let F=class extends J{constructor(_0x7577de,_0x43b5c7,_0x107fe0,_0x53335d,_0x1bf664,_0x3875e2=!0x1,_0xeae194,_0x5f36b9,_0x5e87bb,_0x271b1e,_0x4b013f,_0x13cee6,_0x30adb0){const _0x54571d=_0x28eb85;super(_0x7577de,_0x43b5c7,_0x107fe0,_0x53335d,_0x1bf664,_0x5f36b9,_0x5e87bb,_0x4b013f,_0x271b1e),d(this,'status','conflict'),(this[_0x54571d(0x33d)]=_0x3875e2,this[_0x54571d(0x28a)]=_0xeae194,this['_localeService']=_0x13cee6,this[_0x54571d(0x4a2)]=_0x30adb0,this[_0x54571d(0x3f6)](),this['_clearLocalCache'](),this[_0x54571d(0x274)]());}[_0x28eb85(0x141)](){return this;}[_0x28eb85(0x17e)](){return this;}[_0x28eb85(0x532)](){return this;}[_0x28eb85(0x3d9)](){return this;}[_0x28eb85(0x426)](){return this;}[_0x28eb85(0x438)](){return this;}[_0x28eb85(0x202)](){const _0x3a887f=_0x28eb85;throw new Error(_0x3a887f(0x449));}[_0x28eb85(0x502)](){const _0x1c7f2c=_0x28eb85;this['_localCacheService'][_0x1c7f2c(0x118)](this[_0x1c7f2c(0x333)],this[_0x1c7f2c(0x254)],null,[]);}[_0x28eb85(0x3f6)](){const _0x2c6de7=_0x28eb85;this[_0x2c6de7(0x33d)]?this[_0x2c6de7(0x4a2)]['show']({'title':this[_0x2c6de7(0x122)]['t'](_0x2c6de7(0x1e3)),'content':this['_localeService']['t'](_0x2c6de7(0x127)),'type':_0x2c6de7(0x533),'duration':0x0}):this['_notificationService'][_0x2c6de7(0x2bd)]({'title':this[_0x2c6de7(0x122)]['t'](_0x2c6de7(0x17f)),'content':this[_0x2c6de7(0x122)]['t'](_0x2c6de7(0x407)),'type':_0x2c6de7(0x533),'duration':0x0});}[_0x28eb85(0x274)](){const _0x2b720e=_0x28eb85;this[_0x2b720e(0x28a)][_0x2b720e(0x49e)](new C[(_0x2b720e(0x31c))](this[_0x2b720e(0x333)])['id'],!0x1);}};F=z([g(0x6,a[_0x28eb85(0x23f)](a[_0x28eb85(0x485)])),g(0x7,a[_0x28eb85(0x1b0)]),g(0x8,a[_0x28eb85(0x247)]),g(0x9,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0xa,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),g(0xb,a[_0x28eb85(0x23f)](a[_0x28eb85(0x3c6)])),g(0xc,N[_0x28eb85(0x282)])],F);let G=class extends J{constructor(_0x4dd10e,_0x17e7f7,_0x465463,_0x39eb58,_0x437906,_0x35d91d,_0x2d2046,_0x424022,_0x2c8a9d,_0x31d514){const _0x47c4e5=_0x28eb85;super(_0x4dd10e,_0x17e7f7,_0x465463,_0x39eb58,_0x437906,_0x2c8a9d,_0x31d514,_0x2d2046,_0x424022),d(this,'status',_0x47c4e5(0x3f1)),this['_injector']=_0x35d91d;}['appendMutation'](_0x1f3901){const _0x334e09=_0x28eb85;return this[_0x334e09(0x4e6)][_0x334e09(0x3f4)](_0x1f3901),this[_0x334e09(0x48d)](),this;}[_0x28eb85(0x17e)](_0xfabb46){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x28eb85(0x532)](){const _0x24d0b7=_0x28eb85;throw new Error(_0x24d0b7(0x11d));}[_0x28eb85(0x3d9)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}[_0x28eb85(0x438)](){const _0xe62b75=_0x28eb85,{_injector:_0x16aa45,_pendingMutations:_0x429503,_awaitingChangeset:_0x40e798,unitID:_0x394138,_handler:_0x46cae1,type:_0x46f705}=this,_0x30a548=Rt(_0x16aa45,_0x394138,_0x46f705,_0x40e798,_0x429503,_0x46cae1);return _0x30a548 instanceof x?_0x30a548[_0xe62b75(0x3b4)]():(_0x30a548 instanceof k||_0x30a548 instanceof W)&&_0x30a548[_0xe62b75(0x202)](),_0x30a548;}['resend'](){const _0x55e319=_0x28eb85;throw new Error(_0x55e319(0x52a));}};G=z([g(0x5,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),g(0x6,a['Inject'](_[_0x28eb85(0x4fa)])),g(0x7,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),g(0x8,a[_0x28eb85(0x1b0)]),g(0x9,a[_0x28eb85(0x247)])],G);let H=class extends J{constructor(_0x553621,_0x181412,_0x6d7e1f,_0x4ef4ea,_0x13379e,_0x20cc4c,_0x4f1c79,_0x53e15a,_0x2cfc48,_0x2a324d,_0x3d85ef,_0xcdaab9,_0x4cb38c,_0x33d962){const _0x1924fa=_0x28eb85;super(_0x553621,_0x181412,_0x6d7e1f,_0x4ef4ea,_0x4f1c79,_0xcdaab9,_0x4cb38c,_0x2cfc48,_0x2a324d),d(this,_0x1924fa(0x266),_0x1924fa(0x16e)),(this['_acknowledgedAwaitingChangeset']=_0x13379e,this[_0x1924fa(0x481)]=_0x20cc4c,this[_0x1924fa(0x152)]=_0x53e15a,this[_0x1924fa(0x1a7)]=_0x3d85ef,this[_0x1924fa(0x294)]=_0x33d962);}[_0x28eb85(0x11f)](_0x3d70ea){const _0x104a7d=_0x28eb85;try{const _0x3ebd47=[..._0x3d70ea,...this[_0x104a7d(0x481)]],_0x3ec27e=[this[_0x104a7d(0x4e5)]||this[_0x104a7d(0x31b)]][_0x104a7d(0x215)](_0x2908e4=>!!_0x2908e4);let _0x232ea4,_0x33c006;if(_0x3ec27e[_0x104a7d(0x355)]){const _0x103ea9=this[_0x104a7d(0x294)][_0x104a7d(0x179)](_0x3ebd47,_0x3ec27e,!0x1);if(!_[_0x104a7d(0x2a0)](_0x103ea9))throw _0x103ea9['error'];_0x232ea4=_0x103ea9[_0x104a7d(0x338)],_0x33c006=_0x103ea9['c2Prime'];}else _0x232ea4=_0x3ebd47,_0x33c006=[];let _0x2ccda4=this[_0x104a7d(0x4e6)];_0x232ea4[_0x104a7d(0x2bf)](_0x25e752=>{const _0x58c054=_0x104a7d;let _0x3eaebd;if(_0x2ccda4[_0x58c054(0x355)]){const _0x23cb51=this['_transformService'][_0x58c054(0x3ff)](_0x25e752,_0x2ccda4);if(!_[_0x58c054(0x2ca)](_0x23cb51))throw _0x23cb51[_0x58c054(0x533)];_0x3eaebd=_0x23cb51[_0x58c054(0x338)],_0x2ccda4=_0x23cb51[_0x58c054(0x480)];}else _0x3eaebd=_0x25e752;this[_0x58c054(0x174)](_0x3eaebd);}),this['_acknowledgedAwaitingChangeset']&&this[_0x104a7d(0x21b)](),this[_0x104a7d(0x4e5)]&&_0x33c006['length']&&(_0x33c006[0x0][_0x104a7d(0x3d8)]=this[_0x104a7d(0x3eb)]());let _0x79a5d;if(this[_0x104a7d(0x4e5)]&&_0x2ccda4[_0x104a7d(0x355)]!==0x0)_0x79a5d=this[_0x104a7d(0x152)][_0x104a7d(0x2e6)](k,this[_0x104a7d(0x333)],this[_0x104a7d(0x254)],_0x33c006[0x0],_0x2ccda4,this['_handler']);else{if(this[_0x104a7d(0x4e5)]&&_0x2ccda4[_0x104a7d(0x355)]===0x0)_0x33c006[0x0][_0x104a7d(0x3d8)]=this[_0x104a7d(0x3eb)](),_0x79a5d=this[_0x104a7d(0x152)][_0x104a7d(0x2e6)](W,this[_0x104a7d(0x333)],this[_0x104a7d(0x254)],_0x33c006[0x0],this[_0x104a7d(0x465)]);else{if(_0x2ccda4[_0x104a7d(0x355)]!==0x0){const _0x1fabfd=this[_0x104a7d(0x152)][_0x104a7d(0x2e6)](x,this['unitID'],this[_0x104a7d(0x254)],_0x2ccda4,this[_0x104a7d(0x465)]);_0x1fabfd[_0x104a7d(0x3b4)](),_0x79a5d=_0x1fabfd;}else _0x79a5d=this[_0x104a7d(0x152)][_0x104a7d(0x2e6)](se,this[_0x104a7d(0x333)],this[_0x104a7d(0x254)],this[_0x104a7d(0x465)]);}}return _0x79a5d[_0x104a7d(0x48d)](),_0x79a5d;}catch(_0x1cba50){return this[_0x104a7d(0x1a7)][_0x104a7d(0x533)](_0x104a7d(0x2ef),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1cba50),this[_0x104a7d(0x152)][_0x104a7d(0x2e6)](F,this[_0x104a7d(0x333)],this[_0x104a7d(0x254)],this[_0x104a7d(0x4e5)],this['_pendingMutations'],this[_0x104a7d(0x465)],!0x1);}}[_0x28eb85(0x202)](){const _0x3b9937=_0x28eb85;throw new Error(_0x3b9937(0x1c4));}['appendMutation'](_0x3550b6){const _0x3d4fcd=_0x28eb85;return this['_pendingMutations'][_0x3d4fcd(0x3f4)](_0x3550b6),this;}[_0x28eb85(0x17e)](_0x2ef705){const _0x365d0e=_0x28eb85;return this[_0x365d0e(0x481)][_0x365d0e(0x3f4)](_0x2ef705),this;}[_0x28eb85(0x532)](_0x129a7a){const _0x22bc81=_0x28eb85;if(this[_0x22bc81(0x4e5)])return this[_0x22bc81(0x31b)]=this[_0x22bc81(0x4e5)],this[_0x22bc81(0x4e5)]=null,this;throw new Error(_0x22bc81(0x52c));}[_0x28eb85(0x3d9)](_0x53cc81){const _0x2e1ac6=_0x28eb85;return this[_0x2e1ac6(0x3c4)](!!(_0x53cc81!=null&&_0x53cc81[_0x2e1ac6(0x121)]));}[_0x28eb85(0x426)](){const _0x598eae=_0x28eb85;return this['_injector'][_0x598eae(0x2e6)](G,this[_0x598eae(0x333)],this['type'],this[_0x598eae(0x4e5)],this[_0x598eae(0x4e6)],this[_0x598eae(0x465)]);}[_0x28eb85(0x438)](){return this;}['_onConflict'](_0x4ee7dd){const _0x5c6d01=_0x28eb85;return this[_0x5c6d01(0x152)][_0x5c6d01(0x2e6)](F,this['unitID'],this[_0x5c6d01(0x254)],this[_0x5c6d01(0x4e5)],this[_0x5c6d01(0x4e6)],this['_handler'],_0x4ee7dd);}};H=z([g(0x7,a['Inject'](a[_0x28eb85(0x1b3)])),g(0x8,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),g(0x9,a[_0x28eb85(0x23f)](exports['LocalCacheService'])),g(0xa,a['ILogService']),g(0xb,a[_0x28eb85(0x1b0)]),g(0xc,a[_0x28eb85(0x247)]),g(0xd,_[_0x28eb85(0x2b4)])],H);function Rt(_0x2e200b,_0x4dc0ab,_0x33e6a6,_0x7685a6,_0x15ccd7,_0x1befdc){const _0x459294=_0x28eb85;return _0x7685a6&&_0x15ccd7['length']?_0x2e200b[_0x459294(0x2e6)](k,_0x4dc0ab,_0x33e6a6,_0x7685a6,_0x15ccd7,_0x1befdc):_0x7685a6?_0x2e200b[_0x459294(0x2e6)](W,_0x4dc0ab,_0x33e6a6,_0x7685a6,_0x1befdc):_0x15ccd7[_0x459294(0x355)]?_0x2e200b[_0x459294(0x2e6)](x,_0x4dc0ab,_0x33e6a6,_0x15ccd7,_0x1befdc):_0x2e200b[_0x459294(0x2e6)](se,_0x4dc0ab,_0x33e6a6,_0x1befdc);}var Hs=Object[_0x28eb85(0x114)],xs=Object[_0x28eb85(0x38b)],Ke=(_0x6dede3,_0x66f0e2,_0x28c5d2,_0x17fa4c)=>{for(var _0x116055=_0x17fa4c>0x1?void 0x0:_0x17fa4c?xs(_0x66f0e2,_0x28c5d2):_0x66f0e2,_0x42fb56=_0x6dede3['length']-0x1,_0x14cb23;_0x42fb56>=0x0;_0x42fb56--)(_0x14cb23=_0x6dede3[_0x42fb56])&&(_0x116055=(_0x17fa4c?_0x14cb23(_0x66f0e2,_0x28c5d2,_0x116055):_0x14cb23(_0x116055))||_0x116055);return _0x17fa4c&&_0x116055&&Hs(_0x66f0e2,_0x28c5d2,_0x116055),_0x116055;},I=(_0x6cfcc8,_0x40d228)=>(_0x51c43f,_0x2f7477)=>_0x40d228(_0x51c43f,_0x2f7477,_0x6cfcc8);exports[_0x28eb85(0x330)]=class extends a[_0x28eb85(0x2f9)]{constructor(_0x44d707,_0x1df794,_0x190f2c,_0x3939e9,_0x24cf8d,_0x51654c,_0x58295d,_0x4f0edc,_0x5a23b7,_0x5b5d08,_0x4d3fd1,_0xc40e45,_0x107ddd){const _0x13d7a3=_0x28eb85;super(),d(this,_0x13d7a3(0x160),new v[(_0x13d7a3(0x276))](null)),d(this,_0x13d7a3(0x4f8),this[_0x13d7a3(0x160)][_0x13d7a3(0x291)]()),d(this,_0x13d7a3(0x11b)),d(this,'_collaborationPaused',!0x1),d(this,_0x13d7a3(0x1dd),this['state$'][_0x13d7a3(0x495)](v[_0x13d7a3(0x331)](_0x1518fe=>_0x1518fe?_0x1518fe[_0x13d7a3(0x266)]:y['OFFLINE']),v[_0x13d7a3(0x1c6)](0x1))),d(this,'_transitionLocked',!0x1),d(this,_0x13d7a3(0x4de),[]),(this[_0x13d7a3(0x333)]=_0x44d707,this['session']=_0x1df794,this['_type']=_0x190f2c,this[_0x13d7a3(0x152)]=_0x3939e9,this[_0x13d7a3(0x535)]=_0x24cf8d,this['_compressMutationService']=_0x51654c,this[_0x13d7a3(0x122)]=_0x58295d,this[_0x13d7a3(0x325)]=_0x4f0edc,this[_0x13d7a3(0x1a7)]=_0x5a23b7,this[_0x13d7a3(0x1a9)]=_0x5b5d08,this[_0x13d7a3(0x23d)]=_0x4d3fd1,this['_permissionService']=_0xc40e45,this[_0x13d7a3(0x2e7)]=_0x107ddd);}get[_0x28eb85(0x2e9)](){const _0x292dd7=_0x28eb85;return this[_0x292dd7(0x11b)];}async[_0x28eb85(0x504)](){const _0x29921a=_0x28eb85;if(this['state'])throw new Error(_0x29921a(0x18e));await this['_init']();}['pauseCollaboration'](){const _0x5ea39a=_0x28eb85;return this[_0x5ea39a(0x43f)]=!0x0,a[_0x5ea39a(0x40e)](()=>{const _0x27941b=_0x5ea39a;this[_0x27941b(0x43f)]=!0x1,this[_0x27941b(0x273)]();});}[_0x28eb85(0x11c)](_0x16cef5){const _0x1154cd=_0x28eb85;this['_state']=_0x16cef5,this[_0x1154cd(0x160)][_0x1154cd(0x3fd)](_0x16cef5);}async['_init'](){const _0x1dec28=_0x28eb85;var _0x394ae0;this[_0x1dec28(0x11c)](await this[_0x1dec28(0x510)]()),this[_0x1dec28(0x2e7)]&&((_0x394ae0=this[_0x1dec28(0x2e7)])==null||_0x394ae0[_0x1dec28(0x20d)](this['unitID']),this[_0x1dec28(0x214)](this[_0x1dec28(0x2e7)][_0x1dec28(0x359)](this[_0x1dec28(0x333)])[_0x1dec28(0x14a)](_0x21797b=>{const _0x4ab57b=_0x1dec28;this[_0x4ab57b(0x1a7)][_0x4ab57b(0x3b2)](_0x4ab57b(0x1aa),_0x4ab57b(0x34c),_0x21797b),_0x21797b===bt[_0x4ab57b(0x130)]?(this[_0x4ab57b(0x23d)][_0x4ab57b(0x2bd)]({'content':this[_0x4ab57b(0x122)]['t'](_0x4ab57b(0x51d)),'type':X['MessageType']['Warning']}),this['_permissionService']['updatePermissionPoint'](new C[(_0x4ab57b(0x31c))](this[_0x4ab57b(0x333)])['id'],!0x1)):this['_permissionService'][_0x4ab57b(0x49e)](new C[(_0x4ab57b(0x31c))](this[_0x4ab57b(0x333)])['id'],!0x0);})));let _0x4f39ed=!0x1;return this[_0x1dec28(0x214)](this['session'][_0x1dec28(0x194)][_0x1dec28(0x14a)](_0x2b30ee=>{const _0x5af91f=_0x1dec28;_0x2b30ee===$[_0x5af91f(0x47d)]?this[_0x5af91f(0x48b)](_0x4f39ed):_0x2b30ee===$[_0x5af91f(0x29c)]&&(_0x4f39ed=!0x0,this[_0x5af91f(0x4a0)]());})),this[_0x1dec28(0x214)](this[_0x1dec28(0x2b3)]['event$'][_0x1dec28(0x14a)](_0x3e3f65=>{const _0x5c3309=_0x1dec28;try{switch(_0x3e3f65['eventID']){case _['CollaborationEvent'][_0x5c3309(0x208)]:{this['_onRemoteChangeset'](_[_0x5c3309(0x14e)](_0x3e3f65[_0x5c3309(0x451)]));break;}case _[_0x5c3309(0x46d)][_0x5c3309(0x3d4)]:{this[_0x5c3309(0x210)](_0x3e3f65[_0x5c3309(0x451)]);break;}case _[_0x5c3309(0x46d)]['CHANGESET_REJ']:{this[_0x5c3309(0x342)]();break;}case _[_0x5c3309(0x46d)][_0x5c3309(0x4fb)]:{this[_0x5c3309(0x1eb)](_0x3e3f65[_0x5c3309(0x451)][_0x5c3309(0x35a)]['map'](_0x137da5=>_[_0x5c3309(0x14e)](_0x137da5)));break;}case _['CollaborationEvent'][_0x5c3309(0x192)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x203390){throw console['error']('Error\x20on\x20receiving\x20event',_0x203390),_0x203390;}})),this[_0x1dec28(0x11b)];}[_0x28eb85(0x44f)](){const _0x4e3178=_0x28eb85;this[_0x4e3178(0x1e4)]=!0x1;}['_lockTransition'](){const _0x521b80=_0x28eb85;if(this[_0x521b80(0x1e4)])throw new Error(_0x521b80(0x2f5));this[_0x521b80(0x1e4)]=!0x0;}[_0x28eb85(0x3fb)](_0x2203b2){const _0x11e8e0=_0x28eb85;this[_0x11e8e0(0x40b)](),this[_0x11e8e0(0x11c)](this[_0x11e8e0(0x11b)][_0x11e8e0(0x141)](_0x2203b2)),this[_0x11e8e0(0x44f)]();}[_0x28eb85(0x1fe)](_0x299cb0){const _0x1b1945=_0x28eb85;if(!(_0x299cb0[_0x1b1945(0x3e7)]<=this[_0x1b1945(0x325)][_0x1b1945(0x134)](this[_0x1b1945(0x333)]))){if(this[_0x1b1945(0x43f)]){this[_0x1b1945(0x4de)][_0x1b1945(0x3f4)](_0x299cb0);return;}this[_0x1b1945(0x477)](_0x299cb0);}}[_0x28eb85(0x273)](){const _0x3eb388=_0x28eb85;this[_0x3eb388(0x4de)]['forEach'](_0x4cd3a2=>this[_0x3eb388(0x477)](_0x4cd3a2)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x40558c){const _0x38dcff=_0x28eb85,_0x2a7e0b=this[_0x38dcff(0x40d)]['interceptor']['fetchThroughInterceptors'](this[_0x38dcff(0x40d)][_0x38dcff(0x231)][_0x38dcff(0x288)]()[_0x38dcff(0x233)])(_0x40558c[_0x38dcff(0x143)],null)||_0x40558c[_0x38dcff(0x143)],_0x268221={..._0x40558c,'mutations':_0x2a7e0b};this[_0x38dcff(0x40b)](),this['_updateState'](this['_state']['onRemoteChangeset'](_0x268221)),this[_0x38dcff(0x44f)]();}[_0x28eb85(0x210)](_0x276686){const _0x4fe0a3=_0x28eb85;this[_0x4fe0a3(0x40b)](),this['_updateState'](this[_0x4fe0a3(0x11b)]['onRemoteAck'](_0x276686)),this[_0x4fe0a3(0x44f)]();}[_0x28eb85(0x342)](_0x224429){const _0x2c2e1a=_0x28eb85;this[_0x2c2e1a(0x40b)](),this['_updateState'](this['_state'][_0x2c2e1a(0x3d9)](_0x224429)),this['_unlockTransition']();}[_0x28eb85(0x1eb)](_0x538dbe){const _0x3b9755=_0x28eb85;if(!(this[_0x3b9755(0x11b)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x139364=_0x538dbe[_0x3b9755(0x331)](_0x28f687=>{const _0x5a2307=_0x3b9755,_0x5c52ca=this[_0x5a2307(0x40d)][_0x5a2307(0x231)][_0x5a2307(0x1d4)](this[_0x5a2307(0x40d)][_0x5a2307(0x231)][_0x5a2307(0x288)]()[_0x5a2307(0x233)])(_0x28f687[_0x5a2307(0x143)],null)||_0x28f687[_0x5a2307(0x143)];return{..._0x28f687,'mutations':_0x5c52ca};});this[_0x3b9755(0x40b)](),this[_0x3b9755(0x11c)](this[_0x3b9755(0x11b)][_0x3b9755(0x11f)](_0x139364)),this['_unlockTransition']();}[_0x28eb85(0x4a0)](){const _0x544f07=_0x28eb85;this[_0x544f07(0x40b)](),this['_updateState'](this[_0x544f07(0x11b)][_0x544f07(0x426)]()),this[_0x544f07(0x44f)]();}[_0x28eb85(0x48b)](_0x3da598=!0x1){const _0x192b4a=_0x28eb85;this[_0x192b4a(0x40b)](),this[_0x192b4a(0x11c)](this[_0x192b4a(0x11b)][_0x192b4a(0x438)]()),this[_0x192b4a(0x44f)]();const _0x1dfdb8=this['_state'];_0x3da598&&_0x1dfdb8 instanceof se&&(this['_lockTransition'](),this[_0x192b4a(0x11c)](_0x1dfdb8[_0x192b4a(0x24f)]()),this[_0x192b4a(0x44f)]());}async['_createInitialState'](){return new Promise(_0x20c3b5=>{const _0x34dd90=_0xb2fc;this['session'][_0x34dd90(0x194)][_0x34dd90(0x495)](v[_0x34dd90(0x2f0)](0x1))[_0x34dd90(0x14a)](async _0x10e80b=>{const _0x146739=_0x34dd90;_0x20c3b5(await this[_0x146739(0x4be)](_0x10e80b===$['ONLINE']));});});}['_createHandler'](){const _0x22e6e2=_0x28eb85,_0x1e8854=this[_0x22e6e2(0x333)];return{'onStateChange':(_0x2bb699,_0x3de517)=>{const _0x578768=_0x22e6e2;if(_0x2bb699!==this[_0x578768(0x11b)])throw new Error(_0x578768(0x471)+_0x2bb699['status']+_0x578768(0x1b9)+_0x3de517['status']+_0x578768(0x39f)+this[_0x578768(0x11b)]['status']);this[_0x578768(0x11c)](_0x3de517);},'onSendChangeset':_0x17cf83=>{const _0x7ffbe8=_0x22e6e2,_0x52f0a6={'eventID':_[_0x7ffbe8(0x46d)][_0x7ffbe8(0x13f)],'data':{'unitID':_0x17cf83[_0x7ffbe8(0x333)],'unitType':this['_type'],'changeset':_0x17cf83,'memberID':this[_0x7ffbe8(0x2b3)]['getMemberID']()}};this[_0x7ffbe8(0x2b3)][_0x7ffbe8(0x178)](_0x52f0a6,this[_0x7ffbe8(0x333)]);},'onMissingChangesets':({from:_0x16822b,to:_0x28fbf5})=>{const _0x1dc5f8=_0x22e6e2;this[_0x1dc5f8(0x1a7)][_0x1dc5f8(0x3b2)](_0x1dc5f8(0x1aa),_0x1dc5f8(0x131)+_0x16822b+_0x1dc5f8(0x177)+_0x28fbf5);const _0x397b41={'eventID':_['CollaborationEvent'][_0x1dc5f8(0x336)],'data':{'unitID':_0x1e8854,'unitType':this[_0x1dc5f8(0x1ff)],'from':_0x16822b,'to':_0x28fbf5}};this[_0x1dc5f8(0x2b3)][_0x1dc5f8(0x178)](_0x397b41,this[_0x1dc5f8(0x333)]);}};}async['_createInitialStateImpl'](_0x268a9c){const _0x36dba5=_0x28eb85;var _0x2df6de,_0x4b883d;const _0x2e6c75=await this['_localCacheService'][_0x36dba5(0x2c6)](this['unitID']),_0x3be12e=(_0x2df6de=_0x2e6c75==null?void 0x0:_0x2e6c75[_0x36dba5(0x143)])!=null?_0x2df6de:[],_0x50f971=(_0x4b883d=_0x2e6c75==null?void 0x0:_0x2e6c75['awaitingChangeset'])!=null?_0x4b883d:null,_0x37b434=this[_0x36dba5(0x333)];try{this['_replayCachedMutations'](_0x50f971,_0x3be12e);}catch(_0x146fce){this[_0x36dba5(0x1a7)]['error'](_0x146fce);}const _0x26212e=this['_createHandler']();if(_0x268a9c){const _0x4345b9=Rt(this[_0x36dba5(0x152)],_0x37b434,this[_0x36dba5(0x1ff)],_0x50f971,_0x3be12e,_0x26212e);return _0x4345b9 instanceof x?_0x4345b9['_schedule']():(_0x4345b9 instanceof k||_0x4345b9 instanceof W)&&_0x4345b9[_0x36dba5(0x202)](),_0x4345b9;}return this[_0x36dba5(0x152)][_0x36dba5(0x2e6)](G,_0x37b434,this[_0x36dba5(0x1ff)],_0x50f971,_0x3be12e,_0x26212e);}[_0x28eb85(0x1c9)](_0x5bcab3,_0xcdd224){const _0x28eefc=_0x28eb85;var _0x5d1819,_0x3ae99f;const _0x1dcd4a=this['_compressMutationService'][_0x28eefc(0x231)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x28eefc(0x231)][_0x28eefc(0x288)]()['COMPRESS_MUTATION_APPLY']);(_0x5d1819=_0x1dcd4a((_0x5bcab3==null?void 0x0:_0x5bcab3['mutations'])||[],null))==null||_0x5d1819[_0x28eefc(0x2bf)](_0x56e465=>this[_0x28eefc(0x1a9)][_0x28eefc(0x170)](_0x56e465['id'],_0x56e465['params'])),(_0x3ae99f=_0x1dcd4a(_0xcdd224||[],null))==null||_0x3ae99f[_0x28eefc(0x2bf)](_0x5d8a09=>this['_commandService']['executeCommand'](_0x5d8a09['id'],_0x5d8a09['params']));}},exports[_0x28eb85(0x330)]=Ke([I(0x3,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),I(0x4,a['Inject'](exports[_0x28eb85(0x1f5)])),I(0x5,a[_0x28eb85(0x23f)](_[_0x28eb85(0x494)])),I(0x6,a[_0x28eb85(0x23f)](a['LocaleService'])),I(0x7,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),I(0x8,a[_0x28eb85(0x155)]),I(0x9,a[_0x28eb85(0x1b0)]),I(0xa,N[_0x28eb85(0x25a)]),I(0xb,a['IPermissionService']),I(0xc,a[_0x28eb85(0x3ab)](be))],exports['CollaborationEntity']),exports[_0x28eb85(0x30b)]=class extends exports[_0x28eb85(0x330)]{constructor(_0xf77f82,_0x212477,_0x2577ae,_0x1c521d,_0x1f262a,_0x3de221,_0x33491d,_0x4a909d,_0xd9d30a,_0x15f3e6,_0x67352c,_0x338ce1,_0x2e6162,_0x24cdc3,_0x1428f0,_0x209771,_0xb5b6de){const _0x5d1ead=_0x28eb85;super(_0xf77f82,_0x2577ae,_0x212477,_0x1c521d,_0x1f262a,_0x3de221,_0x33491d,_0x4a909d,_0x2e6162,_0x24cdc3,_0x1428f0,_0x209771,_0xb5b6de),this[_0x5d1ead(0x333)]=_0xf77f82,this['type']=_0x212477,this[_0x5d1ead(0x232)]=_0xd9d30a,this['_docTransformIMECacheService']=_0x15f3e6,this[_0x5d1ead(0x4fe)]=_0x67352c,this[_0x5d1ead(0x1fb)]=_0x338ce1;}[_0x28eb85(0x537)](){const _0x4bcf01=_0x28eb85,_0x1dde56=super['_createHandler']();return _0x1dde56[_0x4bcf01(0x2c0)]=_0x408470=>this[_0x4bcf01(0x3af)][_0x4bcf01(0x204)](_0x408470),_0x1dde56['onTransformSelections']=_0x2ab25f=>this[_0x4bcf01(0x4fe)][_0x4bcf01(0x14f)](_0x2ab25f),_0x1dde56['onSyncEditingCollabCursor']=_0x597129=>this['_docSyncEditingCollabCursorService'][_0x4bcf01(0x2be)](_0x597129),_0x1dde56[_0x4bcf01(0x168)]=_0x3a0447=>this[_0x4bcf01(0x3af)]['transformRemoteChangeset'](_0x3a0447),_0x1dde56;}async['_init'](){const _0x5e21db=_0x28eb85,_0x5ca4a7=await super[_0x5e21db(0x3e8)]();return this[_0x5e21db(0x214)](this[_0x5e21db(0x1a9)][_0x5e21db(0x203)]((_0x9aa23e,_0x224b16)=>{const _0x1d6a6f=_0x5e21db;if(_0x9aa23e[_0x1d6a6f(0x254)]!==a[_0x1d6a6f(0x261)][_0x1d6a6f(0x193)]||_0x224b16!=null&&_0x224b16[_0x1d6a6f(0x4dd)]||_0x224b16!=null&&_0x224b16[_0x1d6a6f(0x293)])return;const _0x118854=_0x9aa23e[_0x1d6a6f(0x1cf)];if((_0x118854==null?void 0x0:_0x118854['unitId'])!==this[_0x1d6a6f(0x333)])return;let _0x4f4800=_0x9aa23e;if(_0x4f4800['id']===V[_0x1d6a6f(0x3f3)]['id']){const _0x36cc0b=_0x4f4800[_0x1d6a6f(0x1cf)];_0x4f4800={'id':V[_0x1d6a6f(0x3f3)]['id'],'type':a[_0x1d6a6f(0x261)][_0x1d6a6f(0x193)],'params':{'unitId':_0x36cc0b[_0x1d6a6f(0x415)],'actions':_0x36cc0b[_0x1d6a6f(0x4e2)],'textRanges':null}};}const _0xb855a8=this[_0x1d6a6f(0x40d)][_0x1d6a6f(0x231)][_0x1d6a6f(0x1d4)](this[_0x1d6a6f(0x40d)][_0x1d6a6f(0x231)]['getInterceptPoints']()[_0x1d6a6f(0x2d2)])([_0x4f4800],null)||[_0x4f4800];this[_0x1d6a6f(0x3fb)](_0xb855a8[0x0]);})),_0x5ca4a7;}},exports[_0x28eb85(0x30b)]=Ke([I(0x3,a['Inject'](a[_0x28eb85(0x1b3)])),I(0x4,a['Inject'](exports[_0x28eb85(0x1f5)])),I(0x5,a[_0x28eb85(0x23f)](_['CompressMutationService'])),I(0x6,a[_0x28eb85(0x23f)](a['LocaleService'])),I(0x7,a[_0x28eb85(0x23f)](_[_0x28eb85(0x4fa)])),I(0x8,a['Inject'](w[_0x28eb85(0x459)])),I(0x9,a[_0x28eb85(0x23f)](fe)),I(0xa,a[_0x28eb85(0x23f)](me)),I(0xb,a[_0x28eb85(0x23f)](Ye)),I(0xc,a[_0x28eb85(0x155)]),I(0xd,a[_0x28eb85(0x1b0)]),I(0xe,N[_0x28eb85(0x25a)]),I(0xf,a[_0x28eb85(0x485)]),I(0x10,a[_0x28eb85(0x3ab)](be))],exports[_0x28eb85(0x30b)]),exports[_0x28eb85(0x2f6)]=class extends exports[_0x28eb85(0x330)]{constructor(_0x3e4d8f,_0x5f9453,_0x3e4afa,_0x43a05b,_0x410ad8,_0x20d0ef,_0x59e300,_0x1bd394,_0x1a5c23,_0x1b1743,_0xa8d732,_0x1d8daa,_0x95f8d7,_0x40aab8){const _0x312e1a=_0x28eb85;super(_0x3e4d8f,_0x3e4afa,_0x5f9453,_0x43a05b,_0x410ad8,_0x20d0ef,_0x59e300,_0x1bd394,_0x1b1743,_0xa8d732,_0x1d8daa,_0x95f8d7,_0x40aab8),this[_0x312e1a(0x333)]=_0x3e4d8f,this[_0x312e1a(0x254)]=_0x5f9453,this[_0x312e1a(0x43b)]=_0x1a5c23;}[_0x28eb85(0x537)](){const _0x1e15e7=_0x28eb85,_0x3c8968=super[_0x1e15e7(0x537)]();return _0x3c8968[_0x1e15e7(0x132)]=_0x44c8c2=>this[_0x1e15e7(0x43b)][_0x1e15e7(0x14f)](_0x44c8c2),_0x3c8968;}async[_0x28eb85(0x3e8)](){const _0x363916=_0x28eb85,_0x1a3bed=await super[_0x363916(0x3e8)]();return this[_0x363916(0x214)](this[_0x363916(0x1a9)]['onCommandExecuted']((_0xab6425,_0x4ee66a)=>{const _0x304dd5=_0x363916;if(_0xab6425[_0x304dd5(0x254)]!==a['CommandType']['MUTATION']||_0x4ee66a!=null&&_0x4ee66a[_0x304dd5(0x4dd)]||_0x4ee66a!=null&&_0x4ee66a[_0x304dd5(0x293)])return;const _0x23aae7=_0xab6425[_0x304dd5(0x1cf)];if((_0x23aae7==null?void 0x0:_0x23aae7[_0x304dd5(0x415)])!==this['unitID'])return;const _0x563f59=_0xab6425,_0x5f18d0=this[_0x304dd5(0x40d)][_0x304dd5(0x231)][_0x304dd5(0x1d4)](this[_0x304dd5(0x40d)]['interceptor'][_0x304dd5(0x288)]()['COMPRESS_MUTATION_SEND'])([_0x563f59],null)||[_0x563f59];this[_0x304dd5(0x3fb)](_0x5f18d0[0x0]);})),_0x1a3bed;}},exports[_0x28eb85(0x2f6)]=Ke([I(0x3,a[_0x28eb85(0x23f)](a['Injector'])),I(0x4,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),I(0x5,a[_0x28eb85(0x23f)](_[_0x28eb85(0x494)])),I(0x6,a[_0x28eb85(0x23f)](a['LocaleService'])),I(0x7,a['Inject'](_[_0x28eb85(0x4fa)])),I(0x8,a[_0x28eb85(0x23f)](ge)),I(0x9,a[_0x28eb85(0x155)]),I(0xa,a[_0x28eb85(0x1b0)]),I(0xb,N['IMessageService']),I(0xc,a['IPermissionService']),I(0xd,a[_0x28eb85(0x3ab)](be))],exports[_0x28eb85(0x2f6)]);var ks=Object[_0x28eb85(0x114)],Bs=Object['getOwnPropertyDescriptor'],Vs=(_0x3c9899,_0xa8da47,_0x135a5c,_0x20038a)=>{for(var _0x3a5493=_0x20038a>0x1?void 0x0:_0x20038a?Bs(_0xa8da47,_0x135a5c):_0xa8da47,_0x19c3a6=_0x3c9899['length']-0x1,_0x85b58a;_0x19c3a6>=0x0;_0x19c3a6--)(_0x85b58a=_0x3c9899[_0x19c3a6])&&(_0x3a5493=(_0x20038a?_0x85b58a(_0xa8da47,_0x135a5c,_0x3a5493):_0x85b58a(_0x3a5493))||_0x3a5493);return _0x20038a&&_0x3a5493&&ks(_0xa8da47,_0x135a5c,_0x3a5493),_0x3a5493;},Ue=(_0x1ef18b,_0x3ef9e4)=>(_0x415f83,_0x5d34be)=>_0x3ef9e4(_0x415f83,_0x5d34be,_0x1ef18b);exports[_0x28eb85(0x4af)]=class extends a[_0x28eb85(0x2f9)]{constructor(_0x54dab1,_0x545c05,_0x2baaa3){const _0x1c8974=_0x28eb85;super(),d(this,_0x1c8974(0x3ea),new Map()),d(this,'_entityInit$',new v[(_0x1c8974(0x1ec))]()),(this[_0x1c8974(0x152)]=_0x54dab1,this[_0x1c8974(0x3ad)]=_0x545c05,this[_0x1c8974(0x357)]=_0x2baaa3,this[_0x1c8974(0x3e8)]());}[_0x28eb85(0x347)](){const _0x558ab2=_0x28eb85;super['dispose'](),this[_0x558ab2(0x3ea)]['forEach'](_0x2fcd32=>_0x2fcd32[_0x558ab2(0x347)]()),this['_entities']['clear']();}[_0x28eb85(0x346)](_0x1b3f8a){const _0x283fa3=_0x28eb85;var _0x2c6fd5;return(_0x2c6fd5=this[_0x283fa3(0x3ea)][_0x283fa3(0x30d)](_0x1b3f8a))!=null?_0x2c6fd5:null;}[_0x28eb85(0x2b5)](_0x23c925){const _0x4f733f=_0x28eb85,_0x576af7=this[_0x4f733f(0x346)](_0x23c925);return _0x576af7?v['of'](_0x576af7):this[_0x4f733f(0x392)]['pipe'](E[_0x4f733f(0x215)](_0x20b1ad=>_0x20b1ad[_0x4f733f(0x333)]===_0x23c925));}[_0x28eb85(0x3e8)](){const _0x3367e5=_0x28eb85;this[_0x3367e5(0x357)][_0x3367e5(0x1ba)](a[_0x3367e5(0x24a)]['UNIVER_SHEET'])[_0x3367e5(0x495)](v[_0x3367e5(0x256)](this[_0x3367e5(0x2fb)]),E['delay'](0x10))[_0x3367e5(0x14a)](async _0xc8c1a9=>{const _0x140351=_0x3367e5,_0x466fdf=_0xc8c1a9[_0x140351(0x270)](),_0x3e6869=await this[_0x140351(0x2b9)](_0x466fdf,j[_0x140351(0x384)]);this['_entities'][_0x140351(0x191)](_0x466fdf,_0x3e6869);}),this['_univerInstanceService'][_0x3367e5(0x1ba)](a[_0x3367e5(0x24a)][_0x3367e5(0x43a)])['pipe'](v[_0x3367e5(0x256)](this[_0x3367e5(0x2fb)]),E[_0x3367e5(0x169)](0x10))[_0x3367e5(0x495)](E['filter'](_0x10b705=>!_0x10b705[_0x3367e5(0x270)]()['startsWith']('__')))[_0x3367e5(0x14a)](async _0xda4fae=>{const _0x156018=_0x3367e5,_0x33a052=_0xda4fae[_0x156018(0x270)](),_0x1c2143=await this['_startCollaboration'](_0x33a052,j[_0x156018(0x43a)]);this[_0x156018(0x3ea)][_0x156018(0x191)](_0x33a052,_0x1c2143);}),v['merge'](this[_0x3367e5(0x357)][_0x3367e5(0x1da)](a[_0x3367e5(0x24a)][_0x3367e5(0x384)]),this['_univerInstanceService'][_0x3367e5(0x1da)](a['UniverInstanceType'][_0x3367e5(0x43a)]))[_0x3367e5(0x495)](v[_0x3367e5(0x256)](this[_0x3367e5(0x2fb)]))[_0x3367e5(0x14a)](_0x4a5dfa=>{const _0xcea958=_0x3367e5,_0x4d19c7=_0x4a5dfa['getUnitId'](),_0x307613=this[_0xcea958(0x3ea)]['get'](_0x4d19c7);_0x307613&&(_0x307613[_0xcea958(0x347)](),this['_entities']['delete'](_0x4d19c7));});}async[_0x28eb85(0x2b9)](_0x54195a,_0x4a4b21){const _0x353af2=_0x28eb85,_0x49cb89=await this[_0x353af2(0x3ad)][_0x353af2(0x123)](_0x54195a),_0x2c36c9=this[_0x353af2(0x152)][_0x353af2(0x2e6)](this[_0x353af2(0x13e)](_0x4a4b21),_0x54195a,_0x4a4b21,_0x49cb89);return await _0x2c36c9[_0x353af2(0x504)](),this['_entityInit$'][_0x353af2(0x3fd)](_0x2c36c9),_0x2c36c9;}[_0x28eb85(0x13e)](_0x584f30){const _0x11b510=_0x28eb85;switch(_0x584f30){case j[_0x11b510(0x43a)]:return exports[_0x11b510(0x30b)];case j[_0x11b510(0x384)]:return exports[_0x11b510(0x2f6)];default:throw new Error(_0x11b510(0x2fe)+_0x584f30);}}},exports[_0x28eb85(0x4af)]=Vs([Ue(0x0,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),Ue(0x1,a['Inject'](exports[_0x28eb85(0x398)])),Ue(0x2,a[_0x28eb85(0x286)])],exports['CollaborationController']);const nt=['purple300',_0x28eb85(0x32d),_0x28eb85(0x305),_0x28eb85(0x4ee),'blue400','gold400'];class Xe extends a[_0x28eb85(0x216)]{constructor(){const _0x31a75d=_0x28eb85;super(...arguments),d(this,_0x31a75d(0x1e2),new Map()),d(this,_0x31a75d(0x403),0x0);}['assignAColorForMemberID'](_0x45f955){const _0x47d124=_0x28eb85;if(this[_0x47d124(0x1e2)][_0x47d124(0x186)](_0x45f955))return this['_assignedColors'][_0x47d124(0x30d)](_0x45f955);const _0x51100a=nt[this[_0x47d124(0x403)]];return this[_0x47d124(0x403)]=(this['_colorIndex']+0x1)%nt[_0x47d124(0x355)],this[_0x47d124(0x1e2)]['set'](_0x45f955,_0x51100a),_0x51100a;}}var Ws=Object[_0x28eb85(0x114)],Fs=Object[_0x28eb85(0x38b)],Gs=(_0x560594,_0x5c4a1a,_0x94cfe1,_0x11af0d)=>{const _0x22171a=_0x28eb85;for(var _0x1cf7fe=_0x11af0d>0x1?void 0x0:_0x11af0d?Fs(_0x5c4a1a,_0x94cfe1):_0x5c4a1a,_0x57120b=_0x560594[_0x22171a(0x355)]-0x1,_0x452ce0;_0x57120b>=0x0;_0x57120b--)(_0x452ce0=_0x560594[_0x57120b])&&(_0x1cf7fe=(_0x11af0d?_0x452ce0(_0x5c4a1a,_0x94cfe1,_0x1cf7fe):_0x452ce0(_0x1cf7fe))||_0x1cf7fe);return _0x11af0d&&_0x1cf7fe&&Ws(_0x5c4a1a,_0x94cfe1,_0x1cf7fe),_0x1cf7fe;},K=(_0x1fae95,_0x28b6fd)=>(_0xa3d6e9,_0x241cb3)=>_0x28b6fd(_0xa3d6e9,_0x241cb3,_0x1fae95);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x28eb85(0x2f9)]{constructor(_0x205e14,_0x5a1208,_0x5f35dd,_0x47e764,_0x546976,_0x4abfd6,_0x37c9a1,_0xb008b9,_0x5c0ca5){const _0x54f3a6=_0x28eb85;super(),d(this,'_online',!0x1),d(this,_0x54f3a6(0x3e8),!0x1),d(this,_0x54f3a6(0x4b6),new v['BehaviorSubject'](new Map())),d(this,'cursorInfo$',this[_0x54f3a6(0x4b6)][_0x54f3a6(0x291)]()),d(this,_0x54f3a6(0x1b2),new v['BehaviorSubject']([])),d(this,_0x54f3a6(0x327),this[_0x54f3a6(0x1b2)]['pipe'](v[_0x54f3a6(0x425)](Ys))),d(this,_0x54f3a6(0x1c8),a[_0x54f3a6(0x349)](_0xf303ad=>{const _0x4c3c57=_0x54f3a6,_0x725ac4={'eventID':_['CollaborationEvent'][_0x4c3c57(0x1c5)],'data':{'unitID':this[_0x4c3c57(0x333)],'memberID':this[_0x4c3c57(0x1f3)][_0x4c3c57(0x2e4)](),'selection':Tt(_0xf303ad)}};this[_0x4c3c57(0x1f3)][_0x4c3c57(0x178)](_0x725ac4,this[_0x4c3c57(0x333)]);},Ks)),(this[_0x54f3a6(0x333)]=_0x205e14,this[_0x54f3a6(0x1f3)]=_0x5a1208,this[_0x54f3a6(0x152)]=_0x5f35dd,this['_colorAssignService']=_0x47e764,this[_0x54f3a6(0x4c9)]=_0x546976,this[_0x54f3a6(0x3ae)]=_0x4abfd6,this[_0x54f3a6(0x294)]=_0x37c9a1,this[_0x54f3a6(0x357)]=_0xb008b9,this[_0x54f3a6(0x1a9)]=_0x5c0ca5);}get[_0x28eb85(0x3bf)](){const _0x534837=_0x28eb85;return this[_0x534837(0x4b6)]['getValue']();}get[_0x28eb85(0x4cc)](){const _0x80f817=_0x28eb85;return this[_0x80f817(0x1b2)]['getValue']();}[_0x28eb85(0x347)](){const _0x36751f=_0x28eb85;super['dispose'](),this[_0x36751f(0x4b6)][_0x36751f(0x3fd)](new Map()),this[_0x36751f(0x4b6)][_0x36751f(0x500)](),this[_0x36751f(0x1b2)]['next']([]),this[_0x36751f(0x1b2)][_0x36751f(0x500)]();}[_0x28eb85(0x504)](){const _0x2ca438=_0x28eb85;this['_init']||(this[_0x2ca438(0x3e8)]=!0x0,this[_0x2ca438(0x1f3)][_0x2ca438(0x194)][_0x2ca438(0x495)](v[_0x2ca438(0x256)](this['dispose$']))[_0x2ca438(0x14a)](_0x373286=>{const _0x14c899=_0x2ca438;_0x373286===$[_0x14c899(0x47d)]?this[_0x14c899(0x48b)]():this['_toggleOffline']();}),this[_0x2ca438(0x1f3)][_0x2ca438(0x476)]['pipe'](v[_0x2ca438(0x256)](this[_0x2ca438(0x2fb)]))[_0x2ca438(0x14a)](_0x26cadb=>{const _0x10ec9c=_0x2ca438,_0x36414d=_0x26cadb[_0x10ec9c(0x16b)];_0x36414d===_['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x10ec9c(0x16d)](_0x26cadb),_0x36414d===_[_0x10ec9c(0x46d)][_0x10ec9c(0x32b)]&&this[_0x10ec9c(0x154)](_0x26cadb);}),this[_0x2ca438(0x214)](this['_commandService'][_0x2ca438(0x203)](_0x3416eb=>{const _0x40576a=_0x2ca438,_0xa7aac4=_0x3416eb['params'];_0xa7aac4!=null&&this[_0x40576a(0x31f)]&&_0x3416eb['id']===V[_0x40576a(0x34d)]['id']&&_0xa7aac4[_0x40576a(0x415)]===this[_0x40576a(0x333)]&&_0xa7aac4[_0x40576a(0x40a)]===!0x1&&this[_0x40576a(0x1c8)](_0xa7aac4[_0x40576a(0x4f0)]);})),this[_0x2ca438(0x3ae)][_0x2ca438(0x17a)][_0x2ca438(0x495)](v[_0x2ca438(0x256)](this[_0x2ca438(0x2fb)]))['subscribe'](_0x3ad70e=>{const _0xe2e7e9=_0x2ca438;if((_0x3ad70e==null?void 0x0:_0x3ad70e[_0xe2e7e9(0x333)])!==this[_0xe2e7e9(0x333)])return;const _0x53937e={'eventID':_['CollaborationEvent'][_0xe2e7e9(0x1c5)],'data':_0x3ad70e};this['_onCursorUpdate'](_0x53937e);}),this['disposeWithMe'](this[_0x2ca438(0x1a9)][_0x2ca438(0x203)](_0x4999b7=>{const _0x706025=_0x2ca438;if(_0x4999b7['params']==null)return;const _0x567874=_0x4999b7[_0x706025(0x1cf)];if(_0x4999b7['id']!==V[_0x706025(0x3f3)]['id']||_0x567874['unitId']!==this['unitID'])return;const _0x30a8cb={'id':_0x706025(0x320),'params':_0x567874},_0x1aeccb=this[_0x706025(0x3bf)];for(const [_0x5c2aad,_0x3c85b8]of _0x1aeccb){const _0x28dff1={'id':_0x706025(0x320),'params':{'unitId':this[_0x706025(0x333)],'actions':null,'textRanges':_0x3c85b8[_0x706025(0x4f0)]}},_0x2504e6=this[_0x706025(0x294)]['transformMutation'](_0x30a8cb,_0x28dff1,!0x1);if(_[_0x706025(0x39e)](_0x2504e6))throw _0x2504e6[_0x706025(0x533)];_0x1aeccb['set'](_0x5c2aad,{..._0x3c85b8,'ranges':_0x2504e6['m2Prime'][_0x706025(0x1cf)][_0x706025(0x22a)]});}queueMicrotask(()=>{const _0x5e36ee=_0x706025;this[_0x5e36ee(0x4b6)]['next'](_0x1aeccb);});})));}['_onCursorUpdate'](_0x1be388){const _0x5ada33=_0x28eb85;var _0x2cdb19,_0x340432;const {memberID:_0x482cff,selection:_0x217fea}=_0x1be388[_0x5ada33(0x451)],_0x158a00=Us(_0x217fea),_0x544a14=(_0x340432=(_0x2cdb19=this['_memberService']['getMember'](this['unitID'],_0x482cff))==null?void 0x0:_0x2cdb19[_0x5ada33(0x309)])!=null?_0x340432:_0x5ada33(0x536),_0x1ca038={'color':this[_0x5ada33(0x321)]['assignAColorForMemberID'](_0x482cff),'name':_0x544a14,'ranges':_0x158a00},_0x1610c6=this[_0x5ada33(0x3bf)];_0x1610c6['set'](_0x482cff,_0x1ca038),this['_cursorInfo$'][_0x5ada33(0x3fd)](_0x1610c6);}[_0x28eb85(0x154)](_0x591108){const _0x16f404=_0x28eb85,{memberID:_0x7651f9}=_0x591108['data'],_0x4c22e3=this[_0x16f404(0x3bf)];_0x4c22e3['delete'](_0x7651f9),this[_0x16f404(0x4b6)]['next'](_0x4c22e3);}[_0x28eb85(0x48b)](){const _0x5b01ce=_0x28eb85;var _0x360a1d;if(this[_0x5b01ce(0x31f)]=!0x0,((_0x360a1d=this[_0x5b01ce(0x357)]['getFocusedUnit']())==null?void 0x0:_0x360a1d['getUnitId']())!==this['unitID'])return;const _0x2ed58b=this['_injector'][_0x5b01ce(0x30d)](V[_0x5b01ce(0x3e2)])['getDocRanges']();Array['isArray'](_0x2ed58b)&&_0x2ed58b[_0x5b01ce(0x355)]>0x0&&this['_updateLocalCursor'](_0x2ed58b);}['_toggleOffline'](){const _0x538dd9=_0x28eb85;this[_0x538dd9(0x31f)]=!0x1;}};$e=Gs([K(0x2,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),K(0x3,a[_0x28eb85(0x23f)](Xe)),K(0x4,a[_0x28eb85(0x23f)](q)),K(0x5,a[_0x28eb85(0x23f)](Ye)),K(0x6,_[_0x28eb85(0x2b4)]),K(0x7,a[_0x28eb85(0x286)]),K(0x8,a['ICommandService'])],$e);var Xs=Object[_0x28eb85(0x114)],qs=Object[_0x28eb85(0x38b)],zs=(_0xb17073,_0x2f5e65,_0x2d34f0,_0x5c99a1)=>{const _0x396249=_0x28eb85;for(var _0x29470a=_0x5c99a1>0x1?void 0x0:_0x5c99a1?qs(_0x2f5e65,_0x2d34f0):_0x2f5e65,_0x4fdd50=_0xb17073[_0x396249(0x355)]-0x1,_0x4197c4;_0x4fdd50>=0x0;_0x4fdd50--)(_0x4197c4=_0xb17073[_0x4fdd50])&&(_0x29470a=(_0x5c99a1?_0x4197c4(_0x2f5e65,_0x2d34f0,_0x29470a):_0x4197c4(_0x29470a))||_0x29470a);return _0x5c99a1&&_0x29470a&&Xs(_0x2f5e65,_0x2d34f0,_0x29470a),_0x29470a;},Q=(_0x3a6299,_0x5d465c)=>(_0x442038,_0x3eca4a)=>_0x5d465c(_0x442038,_0x3eca4a,_0x3a6299);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x48e72e=[],_0x329413=!0x1;return _0x2d0738=>{const _0x335164=_0xb2fc;_0x48e72e[_0x335164(0x3f4)](_0x2d0738),_0x329413||(_0x329413=!0x0,setTimeout(()=>{const _0x5d2b0d=_0x335164;_0x48e72e[_0x5d2b0d(0x2bf)](_0x199c31=>_0x199c31()),_0x48e72e=[],_0x329413=!0x1;}));};};let He=class extends a[_0x28eb85(0x2f9)]{constructor(_0xa7aca7,_0x2e48c6,_0x3e492b,_0x1d24ea,_0x2984d3,_0xb85a2c,_0x201800,_0x475e12){const _0x4ace8d=_0x28eb85;super(),d(this,_0x4ace8d(0x31f),!0x1),d(this,_0x4ace8d(0x3e8),!0x1),d(this,_0x4ace8d(0x4b6),new v[(_0x4ace8d(0x276))](new Map())),d(this,_0x4ace8d(0x250),this[_0x4ace8d(0x4b6)][_0x4ace8d(0x291)]()),d(this,_0x4ace8d(0x1b2),new v[(_0x4ace8d(0x276))]([])),d(this,_0x4ace8d(0x327),this[_0x4ace8d(0x1b2)]['pipe'](v[_0x4ace8d(0x425)](Js))),d(this,_0x4ace8d(0x1c8),a[_0x4ace8d(0x349)]((_0x222076,_0x53f318)=>{const _0x220365=_0x4ace8d,_0x18c1fe={'eventID':_[_0x220365(0x46d)][_0x220365(0x1c5)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x220365(0x2e4)](),'selection':Je[_0x220365(0x389)](_0x222076,_0x53f318['range'])}};this[_0x220365(0x1f3)][_0x220365(0x178)](_0x18c1fe,this[_0x220365(0x333)]);},Zs)),(this[_0x4ace8d(0x333)]=_0xa7aca7,this['_session']=_0x2e48c6,this[_0x4ace8d(0x152)]=_0x3e492b,this[_0x4ace8d(0x321)]=_0x1d24ea,this[_0x4ace8d(0x4c9)]=_0x2984d3,this['_univerInstanceService']=_0xb85a2c,this[_0x4ace8d(0x1a9)]=_0x201800,this[_0x4ace8d(0x165)]=_0x475e12);}get[_0x28eb85(0x3bf)](){const _0x4f1f27=_0x28eb85;return this[_0x4f1f27(0x4b6)][_0x4f1f27(0x4d6)]();}get[_0x28eb85(0x4cc)](){const _0x1b3c65=_0x28eb85;return this[_0x1b3c65(0x1b2)]['getValue']();}[_0x28eb85(0x347)](){const _0x344224=_0x28eb85;super['dispose'](),this[_0x344224(0x4b6)][_0x344224(0x3fd)](new Map()),this[_0x344224(0x4b6)]['complete'](),this[_0x344224(0x1b2)][_0x344224(0x3fd)]([]),this[_0x344224(0x1b2)][_0x344224(0x500)]();}[_0x28eb85(0x504)](){const _0x3fcfcb=_0x28eb85;this[_0x3fcfcb(0x3e8)]||(this['_init']=!0x0,this['_session'][_0x3fcfcb(0x194)][_0x3fcfcb(0x495)](v[_0x3fcfcb(0x256)](this['dispose$']))[_0x3fcfcb(0x14a)](_0x47fcb5=>{const _0x2a5185=_0x3fcfcb;_0x47fcb5===$[_0x2a5185(0x47d)]?this[_0x2a5185(0x48b)]():this[_0x2a5185(0x4a0)]();}),this[_0x3fcfcb(0x1f3)][_0x3fcfcb(0x476)][_0x3fcfcb(0x495)](v[_0x3fcfcb(0x256)](this[_0x3fcfcb(0x2fb)]))[_0x3fcfcb(0x14a)](_0x59f2a2=>{const _0x1a9597=_0x3fcfcb,_0x22c889=_0x59f2a2[_0x1a9597(0x16b)];_0x22c889===_[_0x1a9597(0x46d)][_0x1a9597(0x1c5)]&&this['_onCursorUpdate'](_0x59f2a2),_0x22c889===_[_0x1a9597(0x46d)][_0x1a9597(0x32b)]&&this[_0x1a9597(0x154)](_0x59f2a2);}),this['_onRefRangeChange'](),this[_0x3fcfcb(0x214)](this['_commandService'][_0x3fcfcb(0x203)](_0x29b173=>{const _0x10bf6d=_0x3fcfcb;if(this['_online']&&_0x29b173['id']===C['SetSelectionsOperation']['id']&&_0x29b173[_0x10bf6d(0x1cf)][_0x10bf6d(0x415)]===this[_0x10bf6d(0x333)]){const _0x13c9a9=_0x29b173[_0x10bf6d(0x1cf)];this['_updateLocalCursor'](_0x13c9a9[_0x10bf6d(0x2a8)],_0x13c9a9[_0x10bf6d(0x3c9)][0x0]);}})));}[_0x28eb85(0x16d)](_0x4a81ad){const _0x21d1f0=_0x28eb85;var _0x3cb599,_0x52427a;const {memberID:_0x4dcfbd,selection:_0x15ff05}=_0x4a81ad[_0x21d1f0(0x451)],{sheetName:_0x484d4b,range:_0x3eaa24}=Je[_0x21d1f0(0x24d)](_0x15ff05),_0x5364fa={'name':(_0x52427a=(_0x3cb599=this[_0x21d1f0(0x4c9)][_0x21d1f0(0x4f6)](this['unitID'],_0x4dcfbd))==null?void 0x0:_0x3cb599[_0x21d1f0(0x309)])!=null?_0x52427a:_0x21d1f0(0x536),'range':this[_0x21d1f0(0x2b1)](_0x484d4b,_0x3eaa24),'sheetID':_0x484d4b,'color':this['_colorAssignService'][_0x21d1f0(0x196)](_0x4dcfbd),'selection':_0x15ff05},_0x440ed4=this[_0x21d1f0(0x3bf)];_0x440ed4['set'](_0x4dcfbd,_0x5364fa),this[_0x21d1f0(0x4b6)][_0x21d1f0(0x3fd)](_0x440ed4);}[_0x28eb85(0x154)](_0x303f68){const _0x4431fc=_0x28eb85,{memberID:_0x725735}=_0x303f68[_0x4431fc(0x451)],_0x487a25=this[_0x4431fc(0x3bf)];_0x487a25[_0x4431fc(0x25f)](_0x725735),this[_0x4431fc(0x4b6)][_0x4431fc(0x3fd)](_0x487a25);}[_0x28eb85(0x2b1)](_0x3c096e,_0x511d77){const _0x1dc48a=_0x28eb85;var _0x4b1f51,_0x42e72c;const _0xd12b8e=(_0x42e72c=(_0x4b1f51=this[_0x1dc48a(0x357)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x4b1f51[_0x1dc48a(0x3c7)](_0x3c096e))==null?void 0x0:_0x42e72c[_0x1dc48a(0x4d2)]();return(_0xd12b8e==null?void 0x0:_0xd12b8e[_0x1dc48a(0x4ff)](_0xa359ec=>a['Rectangle']['contains'](_0xa359ec,_0x511d77)))||_0x511d77;}['_onRefRangeChange'](){const _0x2f686b=_0x28eb85,_0x5dcc8e=new a['DisposableCollection'](),_0x15a092=Qs(),_0x282408=()=>{const _0x57134f=_0xb2fc;_0x5dcc8e[_0x57134f(0x347)]();const _0xa7777=(_0x8169d2,_0x4728e1,_0x30843c,_0x380b92)=>{const _0x54efbc=_0x57134f;let _0x32a3fb=[];switch(_0x8169d2['id']){case C[_0x54efbc(0x47b)][_0x54efbc(0x3da)]:{_0x32a3fb=C['handleDeleteRangeMoveLeft'](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)][_0x54efbc(0x3f8)]:{_0x32a3fb=C[_0x54efbc(0x2c3)](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)][_0x54efbc(0x1c2)]:{_0x32a3fb=C[_0x54efbc(0x4a4)](_0x8169d2,_0x380b92);break;}case C['EffectRefRangId'][_0x54efbc(0x18a)]:{_0x32a3fb=C[_0x54efbc(0x26d)](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)]['InsertRangeMoveRightCommandId']:{_0x32a3fb=C[_0x54efbc(0x348)](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)]['InsertRowCommandId']:{_0x32a3fb=C['handleInsertRow'](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)][_0x54efbc(0x2c9)]:{_0x32a3fb=C[_0x54efbc(0x526)](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)][_0x54efbc(0x235)]:{_0x32a3fb=C[_0x54efbc(0x19a)](_0x8169d2,_0x380b92);break;}case C[_0x54efbc(0x47b)][_0x54efbc(0x135)]:{_0x32a3fb=C[_0x54efbc(0x444)](_0x8169d2,_0x380b92);break;}}const _0x5ba2b0=C[_0x54efbc(0x13b)](_0x32a3fb,_0x380b92),_0x16da01=this['cursorInfo'][_0x54efbc(0x30d)](_0x4728e1);if(_0x16da01&&_0x5ba2b0){const _0x99d88e={..._0x16da01,'range':_0x5ba2b0};this[_0x54efbc(0x3bf)][_0x54efbc(0x191)](_0x4728e1,_0x99d88e),_0x15a092(()=>{const _0x88ab17=_0x54efbc,_0x541496=this[_0x88ab17(0x165)]['registerRefRange'](_0x5ba2b0,_0xf55875=>(_0x541496[_0x88ab17(0x347)](),_0xa7777(_0xf55875,_0x4728e1,_0x30843c,_0x5ba2b0)));_0x5dcc8e[_0x88ab17(0x4e1)](_0x541496);});}return{'redos':[],'undos':[]};};this[_0x57134f(0x3bf)][_0x57134f(0x2bf)]((_0x59030e,_0x32cbc6)=>{const _0x36a108=_0x57134f,{range:_0x4ca5df,sheetID:_0x42185c}=_0x59030e,_0x1dbcd3=this[_0x36a108(0x165)][_0x36a108(0x1bb)](_0x4ca5df,_0x18e6ca=>(_0x1dbcd3[_0x36a108(0x347)](),_0xa7777(_0x18e6ca,_0x32cbc6,_0x42185c,_0x4ca5df)));_0x5dcc8e['add'](_0x1dbcd3);});};this['disposeWithMe'](a[_0x2f686b(0x40e)](this[_0x2f686b(0x4b6)]['subscribe'](()=>{_0x282408();})));}[_0x28eb85(0x48b)](){const _0x22f1ed=_0x28eb85;var _0x4b5437,_0xca6a92;if(this[_0x22f1ed(0x31f)]=!0x0,((_0x4b5437=this[_0x22f1ed(0x357)][_0x22f1ed(0x48c)]())==null?void 0x0:_0x4b5437[_0x22f1ed(0x270)]())!==this[_0x22f1ed(0x333)])return;const _0x3e79c1=(_0xca6a92=this[_0x22f1ed(0x152)][_0x22f1ed(0x30d)](C[_0x22f1ed(0x29a)])[_0x22f1ed(0x157)]())==null?void 0x0:_0xca6a92[0x0],_0x938b41=this[_0x22f1ed(0x357)][_0x22f1ed(0x3d5)](a[_0x22f1ed(0x24a)][_0x22f1ed(0x384)])['getActiveSheet']();_0x3e79c1&&_0x938b41&&this[_0x22f1ed(0x1c8)](_0x938b41[_0x22f1ed(0x1b5)](),_0x3e79c1);}[_0x28eb85(0x4a0)](){const _0x4b867a=_0x28eb85;this[_0x4b867a(0x31f)]=!0x1;}};He=zs([Q(0x2,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),Q(0x3,a['Inject'](Xe)),Q(0x4,a[_0x28eb85(0x23f)](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a[_0x28eb85(0x1b0)]),Q(0x7,a[_0x28eb85(0x23f)](C['RefRangeService']))],He);var ei=Object[_0x28eb85(0x114)],ti=Object[_0x28eb85(0x38b)],si=(_0x3d459c,_0x408514,_0x4a59b6,_0x562d53)=>{const _0x3a0e5d=_0x28eb85;for(var _0x16852c=_0x562d53>0x1?void 0x0:_0x562d53?ti(_0x408514,_0x4a59b6):_0x408514,_0x10638d=_0x3d459c[_0x3a0e5d(0x355)]-0x1,_0x57d8f8;_0x10638d>=0x0;_0x10638d--)(_0x57d8f8=_0x3d459c[_0x10638d])&&(_0x16852c=(_0x562d53?_0x57d8f8(_0x408514,_0x4a59b6,_0x16852c):_0x57d8f8(_0x16852c))||_0x16852c);return _0x562d53&&_0x16852c&&ei(_0x408514,_0x4a59b6,_0x16852c),_0x16852c;},Pe=(_0x4113d4,_0x593015)=>(_0x33f2c4,_0x487788)=>_0x593015(_0x33f2c4,_0x487788,_0x4113d4);let ie=class extends a[_0x28eb85(0x2f9)]{constructor(_0x4eda9d,_0x352c39,_0x2e5a6e){const _0x192159=_0x28eb85;super(),d(this,_0x192159(0x3ea),new Map()),d(this,_0x192159(0x392),new v[(_0x192159(0x1ec))]()),(this[_0x192159(0x357)]=_0x4eda9d,this['_injector']=_0x352c39,this[_0x192159(0x3ad)]=_0x2e5a6e,this[_0x192159(0x3e8)]());}[_0x28eb85(0x347)](){const _0xc0fd1=_0x28eb85;super[_0xc0fd1(0x347)](),this[_0xc0fd1(0x392)][_0xc0fd1(0x500)](),this['_entities'][_0xc0fd1(0x2bf)](_0x14b208=>_0x14b208[_0xc0fd1(0x347)]());}[_0x28eb85(0x1d8)](_0x23433c){const _0x5b5f62=_0x28eb85;return this[_0x5b5f62(0x3ea)]['has'](_0x23433c)?this[_0x5b5f62(0x3ea)][_0x5b5f62(0x30d)](_0x23433c)['cursorInfo$']:this[_0x5b5f62(0x392)]['pipe'](v[_0x5b5f62(0x215)](_0x2b26f9=>_0x2b26f9[_0x5b5f62(0x333)]===_0x23433c),v[_0x5b5f62(0x364)](_0x8e3b69=>_0x8e3b69[_0x5b5f62(0x250)]));}[_0x28eb85(0x3e8)](){const _0x255f74=_0x28eb85;this[_0x255f74(0x357)][_0x255f74(0x1ba)](a[_0x255f74(0x24a)][_0x255f74(0x384)])['pipe'](v[_0x255f74(0x256)](this['dispose$']))['subscribe'](async _0x37e686=>{const _0x128193=_0x255f74,_0x42797f=_0x37e686[_0x128193(0x270)](),_0x228ced=await this[_0x128193(0x469)](_0x42797f);this[_0x128193(0x392)][_0x128193(0x3fd)](_0x228ced),this[_0x128193(0x3ea)][_0x128193(0x191)](_0x42797f,_0x228ced);}),this['_univerInstanceService'][_0x255f74(0x1ba)](a[_0x255f74(0x24a)]['UNIVER_DOC'])[_0x255f74(0x495)](v[_0x255f74(0x256)](this[_0x255f74(0x2fb)]))[_0x255f74(0x495)](v[_0x255f74(0x215)](_0x53a98e=>!_0x53a98e['getUnitId']()[_0x255f74(0x4f9)]('__')))[_0x255f74(0x14a)](async _0x59fc94=>{const _0x4f6688=_0x255f74,_0x30740d=_0x59fc94[_0x4f6688(0x270)](),_0x37de98=await this['_startDocCollabCursor'](_0x30740d);this[_0x4f6688(0x392)][_0x4f6688(0x3fd)](_0x37de98),this[_0x4f6688(0x3ea)][_0x4f6688(0x191)](_0x30740d,_0x37de98);}),v[_0x255f74(0x1ea)](this[_0x255f74(0x357)][_0x255f74(0x1da)](a[_0x255f74(0x24a)][_0x255f74(0x43a)]),this[_0x255f74(0x357)][_0x255f74(0x1da)](a[_0x255f74(0x24a)][_0x255f74(0x384)]))[_0x255f74(0x495)](v[_0x255f74(0x256)](this['dispose$']))[_0x255f74(0x14a)](_0x588a13=>{const _0x51c21e=_0x255f74,_0x1621ad=_0x588a13[_0x51c21e(0x270)](),_0x3bf652=this['_entities'][_0x51c21e(0x30d)](_0x1621ad);_0x3bf652&&(_0x3bf652[_0x51c21e(0x347)](),this[_0x51c21e(0x3ea)]['delete'](_0x1621ad));});}async['_startSheetCollabCursor'](_0x3a57b){const _0x93d6df=_0x28eb85,_0x49bf77=await this[_0x93d6df(0x3ad)][_0x93d6df(0x123)](_0x3a57b),_0xd55f07=this[_0x93d6df(0x152)][_0x93d6df(0x2e6)](He,_0x3a57b,_0x49bf77);return _0xd55f07['init'](),_0xd55f07;}async[_0x28eb85(0x372)](_0x38048b){const _0x373d78=_0x28eb85,_0x72ee92=await this[_0x373d78(0x3ad)][_0x373d78(0x123)](_0x38048b),_0x26aeb3=this[_0x373d78(0x152)][_0x373d78(0x2e6)]($e,_0x38048b,_0x72ee92);return _0x26aeb3[_0x373d78(0x504)](),_0x26aeb3;}};ie=si([Pe(0x0,a[_0x28eb85(0x286)]),Pe(0x1,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),Pe(0x2,a['Inject'](exports['CollaborationSessionService']))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x18751e,_0x474091){const _0x420904=_0x28eb85;let {radius:_0x3d57da,width:_0x5701a0,height:_0x46ea20}=_0x474091;_0x3d57da=_0x3d57da!=null?_0x3d57da:0x0,_0x5701a0=_0x5701a0!=null?_0x5701a0:0x1e,_0x46ea20=_0x46ea20!=null?_0x46ea20:0x1e;let _0x4fe1a1=0x0,_0x53ed90=0x0,_0x7d3385=0x0;_0x4fe1a1=_0x53ed90=_0x7d3385=Math['min'](_0x3d57da,_0x5701a0/0x2,_0x46ea20/0x2),_0x18751e['beginPath'](),_0x18751e[_0x420904(0x484)](_0x4fe1a1,0x0),_0x18751e[_0x420904(0x3c1)](_0x5701a0-_0x53ed90,0x0),_0x18751e[_0x420904(0x1f8)](_0x5701a0-_0x53ed90,_0x53ed90,_0x53ed90,Math['PI']*0x3/0x2,0x0,!0x1),_0x18751e[_0x420904(0x3c1)](_0x5701a0,_0x46ea20-_0x7d3385),_0x18751e[_0x420904(0x1f8)](_0x5701a0-_0x7d3385,_0x46ea20-_0x7d3385,_0x7d3385,0x0,Math['PI']/0x2,!0x1),_0x18751e[_0x420904(0x3c1)](0x0,_0x46ea20),_0x18751e[_0x420904(0x3c1)](0x0,_0x4fe1a1),_0x18751e[_0x420904(0x1f8)](_0x4fe1a1,_0x4fe1a1,_0x4fe1a1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x18751e[_0x420904(0x462)](),_0x474091['fill']&&(_0x18751e['save'](),_0x18751e[_0x420904(0x221)]=_0x474091[_0x420904(0x312)],_0x474091[_0x420904(0x2b8)]===_0x420904(0x390)?_0x18751e['fill'](_0x420904(0x390)):_0x18751e['fill'](),_0x18751e[_0x420904(0x4b3)]());}class Te extends R[_0x28eb85(0x1ac)]{constructor(_0x53a912,_0x497524){const _0x2987f4=_0x28eb85;super(_0x53a912,_0x497524),d(this,_0x2987f4(0x362)),d(this,_0x2987f4(0x201)),(this[_0x2987f4(0x362)]=_0x497524==null?void 0x0:_0x497524[_0x2987f4(0x362)],this[_0x2987f4(0x201)]=_0x497524==null?void 0x0:_0x497524['text']);}static['drawWith'](_0xb0874f,_0xd22fd4){const _0x1cf8a5=_0x28eb85,{text:_0x28d385,color:_0x58540b}=_0xd22fd4;_0xb0874f['save'](),_0xb0874f[_0x1cf8a5(0x491)]=_0x1cf8a5(0x505);const _0x42fa01=_0xb0874f[_0x1cf8a5(0x2b7)](_0x28d385)[_0x1cf8a5(0x43c)],_0x658a42=Math[_0x1cf8a5(0x445)](_0x42fa01+0x2*we,rt);ni(_0xb0874f,{'height':ue,'radius':0x4,'width':_0x658a42,'fill':_0x58540b,'evented':!0x1}),_0xb0874f['fillStyle']=_0x1cf8a5(0x1c1);const _0x15b025=we,_0x2ae7ca=ue-ii,_0x290806=rt-0x2*we;if(_0x42fa01>_0x290806){let _0x5a656d='',_0x4f28b1=0x0;for(const _0x3538cc of _0x28d385){const _0x40a251=_0xb0874f[_0x1cf8a5(0x2b7)](_0x3538cc)[_0x1cf8a5(0x43c)];if(_0x4f28b1+_0x40a251<=_0x290806-_0xb0874f['measureText'](_0x1cf8a5(0x23b))[_0x1cf8a5(0x43c)])_0x5a656d+=_0x3538cc,_0x4f28b1+=_0x40a251;else{_0x5a656d+='...';break;}}_0xb0874f['fillText'](_0x5a656d,_0x15b025,_0x2ae7ca);}else _0xb0874f[_0x1cf8a5(0x4a7)](_0x28d385,_0x15b025,_0x2ae7ca);_0xb0874f[_0x1cf8a5(0x4b3)]();}[_0x28eb85(0x19d)](_0x283657){const _0x4e36ea=_0x28eb85;Te[_0x4e36ea(0x265)](_0x283657,this);}}const Me=_0x28eb85(0x419),ri=_0x28eb85(0x22e),oi=_0x28eb85(0x24e),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x28eb85(0x467);class ot{constructor(_0x44e057,_0x26c655,_0xdea099,_0x443938){const _0x5af627=_0x28eb85;d(this,_0x5af627(0x2aa),[]),d(this,'_anchor',null),d(this,_0x5af627(0x1f4),null),d(this,_0x5af627(0x367),null),d(this,_0x5af627(0x328),null),d(this,'_eventUnsubscribe',null),(this[_0x5af627(0x295)]=_0x44e057,this['_scene']=_0x26c655,this[_0x5af627(0x151)]=_0xdea099,this[_0x5af627(0x43e)]=_0x443938,this['_render']());}set[_0x28eb85(0x2df)](_0xe6a952){const _0x1dbfae=_0x28eb85;_0xe6a952?(this[_0x1dbfae(0x367)]&&this[_0x1dbfae(0x367)]['hide'](),this[_0x1dbfae(0x1f4)]&&this[_0x1dbfae(0x1f4)][_0x1dbfae(0x2bd)]()):(this[_0x1dbfae(0x367)]&&this[_0x1dbfae(0x367)]['show'](),this[_0x1dbfae(0x1f4)]&&this[_0x1dbfae(0x1f4)][_0x1dbfae(0x211)]());}['dispose'](){const _0x56747c=_0x28eb85;for(const _0x1c612f of this['_shapes'])_0x1c612f[_0x56747c(0x347)]();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x56747c(0x367)]&&this[_0x56747c(0x367)]['dispose'](),this[_0x56747c(0x3e3)]&&this[_0x56747c(0x3e3)][_0x56747c(0x347)](),this['_eventUnsubscribe']&&this[_0x56747c(0x16a)]();}['_render'](){const _0x2ffa20=_0x28eb85;var _0x4f4b50;const {_docSkeleton:_0x38ffc3,_document:_0x193ca1}=this,{color:_0x38f5e3,name:_0x557bac,ranges:_0x22929b}=this[_0x2ffa20(0x295)],_0x48f31a=_0x193ca1['getOffsetConfig'](),{docsLeft:_0x20bedc,docsTop:_0xea2e0e}=_0x48f31a,_0x3b60b6=new w['NodePositionConvertToCursor'](_0x48f31a,_0x38ffc3);for(const {startOffset:_0xb49ca4,endOffset:_0x52022c,collapsed:_0x518c58,isActive:_0x342d5f}of _0x22929b){const _0x324994=_0x38ffc3[_0x2ffa20(0x337)](_0xb49ca4),_0x3fc934=_0x38ffc3[_0x2ffa20(0x337)](_0x52022c);if(_0x342d5f){const {contentBoxPointGroup:_0x39b9af}=_0x3b60b6[_0x2ffa20(0x377)](_0x3fc934,_0x3fc934);if(_0x39b9af[_0x2ffa20(0x355)]===0x0)continue;this[_0x2ffa20(0x498)](_0x38f5e3,_0x39b9af,_0x20bedc,_0xea2e0e,_0x557bac),this['_eventUnsubscribe']=this[_0x2ffa20(0x45c)]();}if(!_0x518c58&&_0x324994&&_0x3fc934){if(w['isValidRectRange'](_0x324994,_0x3fc934)){const _0x1253b7=new w[(_0x2ffa20(0x2e8))](_0x48f31a,_0x38ffc3),{pointGroup:_0x4457a7}=(_0x4f4b50=_0x1253b7[_0x2ffa20(0x377)](_0x324994,_0x3fc934))!=null?_0x4f4b50:{};if(_0x4457a7==null||_0x4457a7[_0x2ffa20(0x355)]===0x0)continue;this[_0x2ffa20(0x260)](_0x38f5e3,_0x4457a7,_0x20bedc,_0xea2e0e);}else{const {contentBoxPointGroup:_0x50b0af}=_0x3b60b6[_0x2ffa20(0x377)](_0x324994,_0x3fc934);if(_0x50b0af['length']===0x0)continue;this[_0x2ffa20(0x1f2)](_0x38f5e3,_0x50b0af,_0x20bedc,_0xea2e0e);}}}}[_0x28eb85(0x498)](_0x35dc6e,_0x86a6f9,_0x230d47,_0x40aedf,_0x4f7032){const _0x4c9f33=_0x28eb85,_0x24b4cb=this[_0x4c9f33(0x166)](_0x86a6f9),{left:_0x98f147,top:_0x1d88f4,height:_0x884c6e}=_0x24b4cb,_0x4ce829=this[_0x4c9f33(0x198)](),_0x1357c4=ci/_0x4ce829,_0x59494d=new R[(_0x4c9f33(0x2ff))](Me+a[_0x4c9f33(0x356)][_0x4c9f33(0x517)](ce),{'left':_0x98f147+_0x230d47-_0x1357c4,'top':_0x1d88f4+_0x40aedf,'height':_0x884c6e,'width':ai,'fill':_0x35dc6e||R[_0x4c9f33(0x3a5)](a[_0x4c9f33(0x1f7)]['black'],0x0),'strokeWidth':_0x1357c4,'stroke':li,'evented':!0x0});this[_0x4c9f33(0x3e3)]=_0x59494d,this[_0x4c9f33(0x3a7)][_0x4c9f33(0x22f)](_0x59494d,w[_0x4c9f33(0x3df)]);const _0x255a3d=new R[(_0x4c9f33(0x2ff))](Me+a[_0x4c9f33(0x356)][_0x4c9f33(0x517)](ce),{'left':_0x98f147+_0x230d47-_0x1357c4,'top':_0x1d88f4+_0x40aedf-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x35dc6e||R[_0x4c9f33(0x3a5)](a[_0x4c9f33(0x1f7)][_0x4c9f33(0x2ed)],0x0),'strokeWidth':0x0,'stroke':_0x35dc6e||R[_0x4c9f33(0x3a5)](a[_0x4c9f33(0x1f7)]['black'],0x0),'evented':!0x1});this[_0x4c9f33(0x367)]=_0x255a3d,this[_0x4c9f33(0x3a7)][_0x4c9f33(0x22f)](_0x255a3d,w['TEXT_RANGE_LAYER_INDEX']);const _0x205f87=new Te(Me+a[_0x4c9f33(0x356)][_0x4c9f33(0x517)](ce),{'left':_0x98f147+_0x230d47-_0x1357c4,'top':_0x1d88f4+_0x40aedf-ue,'text':_0x4f7032,'color':_0x35dc6e});this[_0x4c9f33(0x1f4)]=_0x205f87,this[_0x4c9f33(0x3a7)][_0x4c9f33(0x22f)](_0x205f87,w[_0x4c9f33(0x3df)]),this[_0x4c9f33(0x2df)]=!0x1;}[_0x28eb85(0x45c)](){const _0x4966be=_0x28eb85,_0x6aa34e=this[_0x4966be(0x3e3)][_0x4966be(0x37e)][_0x4966be(0x417)](()=>{const _0x58d91c=_0x4966be;this[_0x58d91c(0x2df)]=!0x0;}),_0x575813=this[_0x4966be(0x3e3)][_0x4966be(0x285)][_0x4966be(0x417)](()=>{const _0x4a97db=_0x4966be;this['_hideTimer']&&clearTimeout(this[_0x4a97db(0x328)]),this[_0x4a97db(0x328)]=setTimeout(()=>{const _0x1e9508=_0x4a97db;this[_0x1e9508(0x2df)]=!0x1;},0x7d0);});return()=>{const _0x19b74b=_0x4966be;_0x6aa34e[_0x19b74b(0x181)](),_0x575813[_0x19b74b(0x181)]();};}[_0x28eb85(0x1f2)](_0x11bf4a,_0x3026a9,_0x395720,_0x21eafe){const _0x1cb571=_0x28eb85,_0x408fb6=new a[(_0x1cb571(0x44a))](_0x11bf4a)['setAlpha'](0.2)[_0x1cb571(0x46e)](),_0x2f757a=new R[(_0x1cb571(0x335))](ri+a[_0x1cb571(0x356)][_0x1cb571(0x517)](ce),{'pointsGroup':_0x3026a9,'fill':_0x408fb6||R[_0x1cb571(0x3a5)](a[_0x1cb571(0x1f7)][_0x1cb571(0x2ed)],0.2),'left':_0x395720,'top':_0x21eafe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1cb571(0x2aa)][_0x1cb571(0x3f4)](_0x2f757a),this[_0x1cb571(0x3a7)][_0x1cb571(0x22f)](_0x2f757a,w['TEXT_RANGE_LAYER_INDEX']);}[_0x28eb85(0x260)](_0x4ad31a,_0x3bd080,_0x538f2d,_0x5299d6){const _0x153a39=_0x28eb85,_0x30234f=new a[(_0x153a39(0x44a))](_0x4ad31a)[_0x153a39(0x220)](0.2)[_0x153a39(0x46e)](),_0x137b14=new R[(_0x153a39(0x335))](oi+a['Tools'][_0x153a39(0x517)](ce),{'pointsGroup':_0x3bd080,'fill':_0x30234f||R[_0x153a39(0x3a5)](a['COLORS'][_0x153a39(0x2ed)],0.2),'left':_0x538f2d,'top':_0x5299d6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x153a39(0x2aa)][_0x153a39(0x3f4)](_0x137b14),this[_0x153a39(0x3a7)][_0x153a39(0x22f)](_0x137b14,w[_0x153a39(0x3df)]);}['_getAnchorBounding'](_0x47fcea){const _0x1201e5=_0x47fcea[0x0],_0xf61e25=_0x1201e5[0x0],_0x400680=_0x1201e5[0x2],{x:_0x2dd6dc,y:_0x7f33b4}=_0xf61e25,{x:_0x4a2cff,y:_0x227dca}=_0x400680;return{'left':_0x2dd6dc,'top':_0x7f33b4,'width':_0x4a2cff-_0x2dd6dc,'height':_0x227dca-_0x7f33b4};}[_0x28eb85(0x198)](){const _0x244265=_0x28eb85,{scaleX:_0x463231,scaleY:_0x38576a}=this[_0x244265(0x3a7)][_0x244265(0x37c)]();return Math['max'](_0x463231,_0x38576a);}}var hi=Object[_0x28eb85(0x114)],_i=Object[_0x28eb85(0x38b)],ui=(_0x2756c8,_0x38be7e,_0x4584a6,_0x5045e9)=>{const _0x1a79ee=_0x28eb85;for(var _0x5b6446=_0x5045e9>0x1?void 0x0:_0x5045e9?_i(_0x38be7e,_0x4584a6):_0x38be7e,_0x41f706=_0x2756c8[_0x1a79ee(0x355)]-0x1,_0x19eae8;_0x41f706>=0x0;_0x41f706--)(_0x19eae8=_0x2756c8[_0x41f706])&&(_0x5b6446=(_0x5045e9?_0x19eae8(_0x38be7e,_0x4584a6,_0x5b6446):_0x19eae8(_0x5b6446))||_0x5b6446);return _0x5045e9&&_0x5b6446&&hi(_0x38be7e,_0x4584a6,_0x5b6446),_0x5b6446;},de=(_0x40d6af,_0x20d0d9)=>(_0x392c21,_0x191d7a)=>_0x20d0d9(_0x392c21,_0x191d7a,_0x40d6af);let xe=class extends a[_0x28eb85(0x2f9)]{constructor(_0x2cb48a,_0x404061,_0xb7fb72,_0x272026,_0x4eb9ef){const _0x22fe1a=_0x28eb85;super(),d(this,_0x22fe1a(0x3f7),[]),d(this,_0x22fe1a(0x371),[]),(this['_context']=_0x2cb48a,this[_0x22fe1a(0x30f)]=_0x404061,this[_0x22fe1a(0x387)]=_0xb7fb72,this[_0x22fe1a(0x1a9)]=_0x272026,this[_0x22fe1a(0x120)]=_0x4eb9ef,this['_init']());}[_0x28eb85(0x3e8)](){const _0x13e21c=_0x28eb85,_0x7b1432=this[_0x13e21c(0x2fd)][_0x13e21c(0x415)],_0x933d3b=this[_0x13e21c(0x30f)];this[_0x13e21c(0x214)](v[_0x13e21c(0x35f)]([this['_collabCursorController']['getCollabCursors$'](_0x7b1432),this[_0x13e21c(0x120)]['currentTheme$']])['pipe'](E[_0x13e21c(0x331)](([_0x578252,_0x19cea3])=>({'skeleton':_0x933d3b[_0x13e21c(0x3cc)](),'cursors':[..._0x578252[_0x13e21c(0x298)]()][_0x13e21c(0x456)](_0x7fe4e=>({..._0x7fe4e,'color':_0x19cea3[_0x7fe4e['color']]}))})))[_0x13e21c(0x14a)](_0x44590b=>{const _0x3557ee=_0x13e21c;if(this[_0x3557ee(0x340)](),_0x44590b){const {skeleton:_0x47d7b6,cursors:_0x559e70}=_0x44590b;this[_0x3557ee(0x450)](_0x47d7b6,_0x559e70);}})),this[_0x13e21c(0x3b1)](),this[_0x13e21c(0x3e0)]();}[_0x28eb85(0x450)](_0x53cf0a,_0x2f79a1){const _0x30f170=_0x28eb85,{scene:_0x227f04,mainComponent:_0x5a758a}=this[_0x30f170(0x2fd)],_0x33bcba=_0x2f79a1[_0x30f170(0x331)](_0xef89f5=>new ot(_0xef89f5,_0x227f04,_0x53cf0a,_0x5a758a));this[_0x30f170(0x3f7)]=_0x33bcba,this[_0x30f170(0x371)]=_0x2f79a1;}[_0x28eb85(0x1fc)](){const _0x7852b6=_0x28eb85;this[_0x7852b6(0x340)]();const {scene:_0x19e326,mainComponent:_0x3084f7}=this[_0x7852b6(0x2fd)],_0x387598=this[_0x7852b6(0x30f)][_0x7852b6(0x3cc)](),_0x20355b=this['_cursors'][_0x7852b6(0x331)](_0x123256=>new ot(_0x123256,_0x19e326,_0x387598,_0x3084f7));this[_0x7852b6(0x3f7)]=_0x20355b;}[_0x28eb85(0x340)](){const _0x2587c4=_0x28eb85;this[_0x2587c4(0x3f7)][_0x2587c4(0x2bf)](_0x31529f=>_0x31529f[_0x2587c4(0x347)]()),this[_0x2587c4(0x3f7)]=[];}[_0x28eb85(0x3e0)](){const _0x303b78=_0x28eb85,_0x1d8f79=[w[_0x303b78(0x400)]['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x3477c9=>{const _0x46631d=_0x303b78;_0x1d8f79[_0x46631d(0x2bb)](_0x3477c9['id'])&&_0x3477c9['params'][_0x46631d(0x415)]===this[_0x46631d(0x2fd)][_0x46631d(0x415)]&&this[_0x46631d(0x1fc)]();}));}[_0x28eb85(0x3b1)](){const _0x28023e=_0x28eb85;this[_0x28023e(0x214)](a[_0x28023e(0x3ba)](this[_0x28023e(0x2fd)][_0x28023e(0x39d)]['onTransformChange$'])[_0x28023e(0x495)](E[_0x28023e(0x215)](_0x4ae205=>_0x4ae205['type']===R[_0x28023e(0x200)]['resize']),E['throttleTime'](0x10))['subscribe'](()=>{const _0x56e6f1=_0x28023e;this[_0x56e6f1(0x1fc)]();}));}};xe=ui([de(0x1,a[_0x28eb85(0x23f)](V[_0x28eb85(0x44c)])),de(0x2,a[_0x28eb85(0x23f)](ie)),de(0x3,a[_0x28eb85(0x1b0)]),de(0x4,a['Inject'](a['ThemeService']))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x28eb85(0x1ac)]{constructor(_0x5adb12,_0x4d3614){const _0x581370=_0x28eb85;super(_0x5adb12,_0x4d3614),d(this,_0x581370(0x506)),d(this,_0x581370(0x171),!0x1),d(this,_0x581370(0x3a2)),d(this,_0x581370(0x1dc),''),d(this,_0x581370(0x432),'top'),d(this,_0x581370(0x404)),(_0x4d3614&&this['setShapeProps'](_0x4d3614),this[_0x581370(0x37e)][_0x581370(0x417)](()=>this[_0x581370(0x396)]({'hovered':!0x0})),this[_0x581370(0x285)][_0x581370(0x417)](()=>this[_0x581370(0x396)]({'hovered':!0x1})));}['setShapeProps'](_0x4c89bc){const _0x8b537a=_0x28eb85;var _0x20608f,_0x43fd71,_0x15c5e9,_0x4ac5df,_0x1130fa,_0x46ff1e;this['_color']=(_0x20608f=_0x4c89bc[_0x8b537a(0x362)])!=null?_0x20608f:this[_0x8b537a(0x506)],this[_0x8b537a(0x171)]=(_0x43fd71=_0x4c89bc[_0x8b537a(0x414)])!=null?_0x43fd71:this[_0x8b537a(0x171)],this['_range']=(_0x15c5e9=_0x4c89bc[_0x8b537a(0x4ec)])!=null?_0x15c5e9:this[_0x8b537a(0x3a2)],this['_name']=(_0x4ac5df=_0x4c89bc['name'])!=null?_0x4ac5df:this['_name'],this[_0x8b537a(0x432)]=(_0x1130fa=_0x4c89bc[_0x8b537a(0x528)])!=null?_0x1130fa:this['_labelPosition'],this[_0x8b537a(0x404)]=(_0x46ff1e=_0x4c89bc[_0x8b537a(0x138)])!=null?_0x46ff1e:this[_0x8b537a(0x404)],this[_0x8b537a(0x3a1)]({'width':_0x4c89bc[_0x8b537a(0x43c)],'height':_0x4c89bc[_0x8b537a(0x1c0)]});}[_0x28eb85(0x259)](_0x136c1b){const _0x1fbde2=_0x28eb85,{row:_0x4ca0f7,column:_0x2e1cbd}=_0x136c1b;if(_0x4ca0f7>=this[_0x1fbde2(0x3a2)]['startRow']&&_0x4ca0f7<=this['_range'][_0x1fbde2(0x36c)]&&_0x2e1cbd>=this[_0x1fbde2(0x3a2)][_0x1fbde2(0x2eb)]&&_0x2e1cbd<=this[_0x1fbde2(0x3a2)][_0x1fbde2(0x26a)]){this[_0x1fbde2(0x396)]({'hovered':!0x0});return;}this[_0x1fbde2(0x396)]({'hovered':!0x1});}['triggerDblclick'](_0x38efaf){return!0x1;}[_0x28eb85(0x19d)](_0x5cd9fe){const _0xfde0ab=_0x28eb85;R[_0xfde0ab(0x2ff)][_0xfde0ab(0x265)](_0x5cd9fe,{'width':this[_0xfde0ab(0x43c)],'height':this[_0xfde0ab(0x1c0)],'strokeWidth':Si,'stroke':this[_0xfde0ab(0x506)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0xfde0ab(0x171)]&&(_0x5cd9fe[_0xfde0ab(0x13d)](),_0x5cd9fe[_0xfde0ab(0x1fd)](0x1,0x0,0x0,0x1,this[_0xfde0ab(0x43c)],this[_0xfde0ab(0x432)]===_0xfde0ab(0x430)?0x0:-ue),Te[_0xfde0ab(0x265)](_0x5cd9fe,{'text':this[_0xfde0ab(0x1dc)],'color':this[_0xfde0ab(0x506)]}),_0x5cd9fe[_0xfde0ab(0x4b3)]());}}var vi=Object[_0x28eb85(0x114)],fi=Object[_0x28eb85(0x38b)],gi=(_0x4f4b32,_0x203832,_0x41c7ae,_0x5641a7)=>{const _0x3059d8=_0x28eb85;for(var _0x2d5871=_0x5641a7>0x1?void 0x0:_0x5641a7?fi(_0x203832,_0x41c7ae):_0x203832,_0x347716=_0x4f4b32[_0x3059d8(0x355)]-0x1,_0x5da51e;_0x347716>=0x0;_0x347716--)(_0x5da51e=_0x4f4b32[_0x347716])&&(_0x2d5871=(_0x5641a7?_0x5da51e(_0x203832,_0x41c7ae,_0x2d5871):_0x5da51e(_0x2d5871))||_0x2d5871);return _0x5641a7&&_0x2d5871&&vi(_0x203832,_0x41c7ae,_0x2d5871),_0x2d5871;},Ae=(_0x461ceb,_0x43ea2f)=>(_0x1322ca,_0x1574f7)=>_0x43ea2f(_0x1322ca,_0x1574f7,_0x461ceb);const mi=0x1389;let ke=class extends a[_0x28eb85(0x2f9)]{constructor(_0x181d57,_0x308f07,_0x126533,_0x538276){const _0x6e36ba=_0x28eb85;super(),d(this,_0x6e36ba(0x371),new Set()),d(this,_0x6e36ba(0x21a),null),(this['_context']=_0x181d57,this[_0x6e36ba(0x4a3)]=_0x308f07,this[_0x6e36ba(0x387)]=_0x126533,this[_0x6e36ba(0x120)]=_0x538276,this[_0x6e36ba(0x3e8)]());}[_0x28eb85(0x3e8)](){const _0x3c50e3=_0x28eb85;this['_sheetSkeletonManagerService'][_0x3c50e3(0x324)][_0x3c50e3(0x495)](E['takeUntil'](this[_0x3c50e3(0x2fb)]),E[_0x3c50e3(0x364)](_0xd20acd=>{const _0xbaeccf=_0x3c50e3;if(_0xd20acd){const _0xb26e33=_0xd20acd['sheetId'];return v[_0xbaeccf(0x35f)](this['_collabCursorController'][_0xbaeccf(0x1d8)](this[_0xbaeccf(0x2fd)][_0xbaeccf(0x415)]),this[_0xbaeccf(0x120)][_0xbaeccf(0x2e2)])[_0xbaeccf(0x495)](E[_0xbaeccf(0x331)](([_0x51e39d,_0x349b8f])=>{const _0x3368bc=new Map();return _0x51e39d['forEach']((_0xec4483,_0x4c6068)=>{const _0x38ecfb=_0xb2fc;if(_0xec4483[_0x38ecfb(0x28d)]===_0xb26e33){const _0x3a9d0b={..._0xec4483};_0x3a9d0b[_0x38ecfb(0x362)]=_0x349b8f[_0xec4483[_0x38ecfb(0x362)]],_0x3368bc[_0x38ecfb(0x191)](_0x4c6068,_0x3a9d0b);}}),{'skeleton':_0xd20acd,'cursors':_0x3368bc};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x28564e,cursors:_0x1c9406})=>{const _0x559ea0=_0x3c50e3;this[_0x559ea0(0x340)](),_0x28564e&&this[_0x559ea0(0x450)](_0x28564e,_0x1c9406);}),this[_0x3c50e3(0x4a3)][_0x3c50e3(0x324)][_0x3c50e3(0x14a)](_0x209de4=>{const _0x5001d6=_0x3c50e3;if(_0x209de4==null)return;const {skeleton:_0x29a9de}=_0x209de4,{scene:_0x560b7b}=this['_context'];_0x560b7b[_0x5001d6(0x1a0)][_0x5001d6(0x417)](a[_0x5001d6(0x349)](_0x4b41cf=>{const _0x5785bf=_0x5001d6;var _0x1d4752,_0x5eecb2;const {offsetX:_0x1d7d32,offsetY:_0x114f24}=_0x4b41cf,{x:_0x37572b,y:_0x37a22f}=_0x560b7b['getRelativeToViewportCoord'](R[_0x5785bf(0x473)][_0x5785bf(0x149)]([_0x1d7d32,_0x114f24])),{scaleX:_0x47c644,scaleY:_0x2ceeaa}=_0x560b7b[_0x5785bf(0x37c)](),_0x4b3310=_0x560b7b[_0x5785bf(0x3b8)](te[_0x5785bf(0x172)][_0x5785bf(0x33f)]),_0x125380=_0x560b7b[_0x5785bf(0x239)](R[_0x5785bf(0x473)][_0x5785bf(0x149)]([_0x37572b,_0x37a22f]),_0x4b3310),_0x56381a=_0x29a9de[_0x5785bf(0x278)](_0x1d7d32,_0x114f24,_0x47c644,_0x2ceeaa,_0x125380);((_0x1d4752=this[_0x5785bf(0x21a)])==null?void 0x0:_0x1d4752[_0x5785bf(0x32e)])===_0x56381a['column']&&((_0x5eecb2=this[_0x5785bf(0x21a)])==null?void 0x0:_0x5eecb2[_0x5785bf(0x38f)])===_0x56381a['row']||this[_0x5785bf(0x371)][_0x5785bf(0x2bf)](_0x37d6b5=>{const _0xadf0fb=_0x5785bf;_0x37d6b5[_0xadf0fb(0x259)](_0x56381a);});},0x64));});}[_0x28eb85(0x450)](_0x3ac94e,_0x14db08){const _0x1c7727=_0x28eb85;var _0xaff1e0;const _0x22fe13=(_0xaff1e0=this[_0x1c7727(0x4a3)][_0x1c7727(0x3f0)]())==null?void 0x0:_0xaff1e0[_0x1c7727(0x46c)];if(!_0x22fe13)return;const _0x3be777=this[_0x1c7727(0x2c5)]();if(!_0x3be777)return;this[_0x1c7727(0x371)][_0x1c7727(0x2bf)](_0x428272=>{const _0x23b9a4=_0x1c7727;_0x428272[_0x23b9a4(0x1a3)]();});const {scene:_0x466e9a}=_0x3be777,_0x489753=Ii(Array['from'](_0x14db08['values']()))['map'](_0x185a08=>{const _0x11a889=_0x1c7727,{color:_0x3b84d6,range:_0x3eecdb,name:_0xcb214,selection:_0x2c8457,sheetID:_0x4b8bfb}=_0x185a08,{startColumn:_0x81bd4a,startRow:_0x2b61a7,endColumn:_0x1cf8b0,endRow:_0x3ec59f}=_0x3eecdb,_0x5c46bd=te[_0x11a889(0x49f)](_0x2b61a7,_0x81bd4a,_0x466e9a,_0x22fe13),_0x53e5ba=te[_0x11a889(0x49f)](_0x3ec59f,_0x1cf8b0,_0x466e9a,_0x22fe13),{columnHeaderHeightAndMarginTop:_0x28a30c}=_0x22fe13,{startX:_0x5e6c3d,startY:_0x5410b9}=_0x5c46bd,{endX:_0x21010b,endY:_0x1d344c}=_0x53e5ba,_0x4cfdb6=_0x21010b-_0x5e6c3d,_0x483e64=_0x1d344c-_0x5410b9,_0x442551={'labelPosition':_0x5410b9-_0x28a30c>=ue?_0x11a889(0x4a1):_0x11a889(0x430),'sheetID':_0x4b8bfb,'range':_0x3eecdb,'color':_0x3b84d6,'name':_0xcb214,'selection':_0x2c8457,'left':_0x5e6c3d,'top':_0x5410b9,'width':_0x4cfdb6,'height':_0x483e64,'evented':!0x1,'zIndex':mi};return new Ot(_0xcb214,_0x442551);});_0x466e9a[_0x1c7727(0x339)](_0x489753,di),this[_0x1c7727(0x371)]=new Set(_0x489753);}[_0x28eb85(0x340)](){const _0x354147=_0x28eb85;var _0x3f94fa;(_0x3f94fa=this[_0x354147(0x371)])==null||_0x3f94fa['forEach'](_0x2bd1a0=>_0x2bd1a0[_0x354147(0x347)]());}['_getSheetObject'](){const _0x2c7ab6=_0x28eb85;return te[_0x2c7ab6(0x2ce)](this['_context']['unit'],this[_0x2c7ab6(0x2fd)]);}};ke=gi([Ae(0x1,a[_0x28eb85(0x23f)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](ie)),Ae(0x3,a[_0x28eb85(0x23f)](a[_0x28eb85(0x31a)]))],ke);function Ii(_0xc7c1c5){const _0x199930=_0x28eb85,_0x13903a=new Map();return _0xc7c1c5[_0x199930(0x2bf)](_0x54a6f2=>{const _0x280937=_0x199930;if(_0x13903a[_0x280937(0x186)](_0x54a6f2[_0x280937(0x12d)])){const _0x31edde=_0x13903a[_0x280937(0x30d)](_0x54a6f2[_0x280937(0x12d)]);_0x31edde['name']+=',\x20'+_0x54a6f2[_0x280937(0x309)];}else _0x13903a[_0x280937(0x191)](_0x54a6f2[_0x280937(0x12d)],_0x54a6f2);}),Array[_0x199930(0x507)](_0x13903a[_0x199930(0x298)]());}function _0xb2fc(_0x54b07c,_0x50386d){const _0x59b631=_0x59b6();return _0xb2fc=function(_0xb2fc18,_0x35569a){_0xb2fc18=_0xb2fc18-0x113;let _0x57731f=_0x59b631[_0xb2fc18];return _0x57731f;},_0xb2fc(_0x54b07c,_0x50386d);}var M=function(){const _0x3bcb98=_0x28eb85;return M=Object['assign']||function(_0x5527a8){const _0x2b6a56=_0xb2fc;for(var _0x16b644,_0x1cd0f9=0x1,_0x24f514=arguments[_0x2b6a56(0x355)];_0x1cd0f9<_0x24f514;_0x1cd0f9++){_0x16b644=arguments[_0x1cd0f9];for(var _0x20d5bd in _0x16b644)Object[_0x2b6a56(0x197)][_0x2b6a56(0x44e)][_0x2b6a56(0x513)](_0x16b644,_0x20d5bd)&&(_0x5527a8[_0x20d5bd]=_0x16b644[_0x20d5bd]);}return _0x5527a8;},M[_0x3bcb98(0x47a)](this,arguments);},pi=function(_0x380019,_0x20e74e){const _0x546fef=_0x28eb85;var _0xf65b2e={};for(var _0x2a785d in _0x380019)Object['prototype'][_0x546fef(0x44e)][_0x546fef(0x513)](_0x380019,_0x2a785d)&&_0x20e74e[_0x546fef(0x4f5)](_0x2a785d)<0x0&&(_0xf65b2e[_0x2a785d]=_0x380019[_0x2a785d]);if(_0x380019!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x12312f=0x0,_0x2a785d=Object['getOwnPropertySymbols'](_0x380019);_0x12312f<_0x2a785d[_0x546fef(0x355)];_0x12312f++)_0x20e74e[_0x546fef(0x4f5)](_0x2a785d[_0x12312f])<0x0&&Object[_0x546fef(0x197)]['propertyIsEnumerable'][_0x546fef(0x513)](_0x380019,_0x2a785d[_0x12312f])&&(_0xf65b2e[_0x2a785d[_0x12312f]]=_0x380019[_0x2a785d[_0x12312f]]);}return _0xf65b2e;},qe=U[_0x28eb85(0x1cd)](function(_0x2dfd27,_0x161bd0){const _0x4f57b0=_0x28eb85;var _0xdbe633=_0x2dfd27['icon'],_0xc7613=_0x2dfd27['id'],_0x23a8bc=_0x2dfd27['className'],_0x5edaa9=_0x2dfd27[_0x4f57b0(0x217)],_0x96f194=pi(_0x2dfd27,['icon','id',_0x4f57b0(0x182),_0x4f57b0(0x217)]),_0xe0e815=_0x4f57b0(0x475)[_0x4f57b0(0x3db)](_0xc7613,'\x20')['concat'](_0x23a8bc||'')['trim'](),_0x356091=U[_0x4f57b0(0x297)]('_'[_0x4f57b0(0x3db)](bi()));return Dt(_0xdbe633,''[_0x4f57b0(0x3db)](_0xc7613),{'defIds':_0xdbe633[_0x4f57b0(0x516)],'idSuffix':_0x356091[_0x4f57b0(0x3d0)]},M({'ref':_0x161bd0,'className':_0xe0e815},_0x96f194),_0x5edaa9);});function Dt(_0x2bf7b3,_0x3f2334,_0xc6702a,_0x3e6862,_0x56359b){const _0x48a79e=_0x28eb85;return U[_0x48a79e(0x144)](_0x2bf7b3[_0x48a79e(0x2de)],M(M({'key':_0x3f2334},Ci(_0x2bf7b3,_0xc6702a,_0x56359b)),_0x3e6862),(Ei(_0x2bf7b3,_0xc6702a)[_0x48a79e(0x307)]||[])[_0x48a79e(0x331)](function(_0x25c8ab,_0x1cafda){const _0x3d5a7a=_0x48a79e;return Dt(_0x25c8ab,''[_0x3d5a7a(0x3db)](_0x3f2334,'-')[_0x3d5a7a(0x3db)](_0x2bf7b3['tag'],'-')[_0x3d5a7a(0x3db)](_0x1cafda),_0xc6702a,void 0x0,_0x56359b);}));}function Ci(_0x4b087c,_0x4890dc,_0x1534a1){const _0x4a5662=_0x28eb85;var _0x3c152=M({},_0x4b087c[_0x4a5662(0x378)]);_0x1534a1!=null&&_0x1534a1[_0x4a5662(0x3e4)]&&_0x3c152[_0x4a5662(0x312)]===_0x4a5662(0x3e4)&&(_0x3c152['fill']=_0x1534a1[_0x4a5662(0x3e4)]);var _0x10cb68=_0x4890dc[_0x4a5662(0x516)];return!_0x10cb68||_0x10cb68[_0x4a5662(0x355)]===0x0||(_0x4b087c[_0x4a5662(0x2de)]==='use'&&_0x3c152[_0x4a5662(0x460)]&&(_0x3c152[_0x4a5662(0x460)]=_0x3c152['xlink:href']+_0x4890dc['idSuffix']),Object['entries'](_0x3c152)['forEach'](function(_0x55b03a){const _0x42773f=_0x4a5662;var _0x579153=_0x55b03a[0x0],_0x377b4f=_0x55b03a[0x1];typeof _0x377b4f=='string'&&(_0x3c152[_0x579153]=_0x377b4f['replace'](/url\(#(.*)\)/,_0x42773f(0x40f)[_0x42773f(0x3db)](_0x4890dc[_0x42773f(0x205)],')')));})),_0x3c152;}function Ei(_0x257445,_0x4f8e8d){const _0x293f9f=_0x28eb85;var _0x4cdff7,_0x6a8fd3=_0x4f8e8d[_0x293f9f(0x516)];return!_0x6a8fd3||_0x6a8fd3['length']===0x0?_0x257445:_0x257445[_0x293f9f(0x2de)]===_0x293f9f(0x1a6)&&(!((_0x4cdff7=_0x257445[_0x293f9f(0x307)])===null||_0x4cdff7===void 0x0)&&_0x4cdff7[_0x293f9f(0x355)])?M(M({},_0x257445),{'children':_0x257445[_0x293f9f(0x307)][_0x293f9f(0x331)](function(_0x39e68b){const _0x5983df=_0x293f9f;return typeof _0x39e68b[_0x5983df(0x378)]['id']=='string'&&_0x6a8fd3&&_0x6a8fd3['indexOf'](_0x39e68b[_0x5983df(0x378)]['id'])>-0x1?M(M({},_0x39e68b),{'attrs':M(M({},_0x39e68b['attrs']),{'id':_0x39e68b[_0x5983df(0x378)]['id']+_0x4f8e8d[_0x5983df(0x205)]})}):_0x39e68b;})}):_0x257445;}function bi(){const _0x47f710=_0x28eb85;return Math['random']()[_0x47f710(0x45e)](0x24)[_0x47f710(0x2cd)](0x2,0x8);}qe['displayName']='UniverIcon';var Ti={'tag':'svg','attrs':{'fill':_0x28eb85(0x314),'viewBox':_0x28eb85(0x22d),'width':_0x28eb85(0x2b2),'height':_0x28eb85(0x2b2)},'children':[{'tag':'g','attrs':{'clipPath':_0x28eb85(0x2ae)},'children':[{'tag':_0x28eb85(0x51c),'attrs':{'stroke':_0x28eb85(0x41d),'d':_0x28eb85(0x36d),'strokeLinecap':_0x28eb85(0x32c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x28eb85(0x1a6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x28eb85(0x4da)},'children':[{'tag':_0x28eb85(0x51c),'attrs':{'fill':'#fff','d':_0x28eb85(0x41b)}}]}]}],'defIds':['off-line-single_clip0_910_343']},yt=U['forwardRef'](function(_0x14e843,_0x506a65){const _0x4bf57b=_0x28eb85;return U[_0x4bf57b(0x144)](qe,Object[_0x4bf57b(0x4c4)]({},_0x14e843,{'id':_0x4bf57b(0x2fc),'ref':_0x506a65,'icon':Ti}));});yt['displayName']='OffLineSingle';var Ri={'tag':_0x28eb85(0x1d3),'attrs':{'fill':'none','viewBox':_0x28eb85(0x2e5),'width':_0x28eb85(0x2b2),'height':_0x28eb85(0x2b2)},'children':[{'tag':'g','attrs':{'clipPath':_0x28eb85(0x1b4)},'children':[{'tag':'path','attrs':{'stroke':_0x28eb85(0x41d),'d':_0x28eb85(0x422),'strokeLinecap':_0x28eb85(0x32c),'strokeLinejoin':_0x28eb85(0x32c),'strokeWidth':1.2}}]},{'tag':_0x28eb85(0x1a6),'attrs':{},'children':[{'tag':_0x28eb85(0x4b9),'attrs':{'id':_0x28eb85(0x2af)},'children':[{'tag':_0x28eb85(0x51c),'attrs':{'fill':_0x28eb85(0x2b0),'d':_0x28eb85(0x41b),'transform':_0x28eb85(0x531)}}]}]}],'defIds':[_0x28eb85(0x2af)]},Ut=U[_0x28eb85(0x1cd)](function(_0x456ab9,_0x12549e){const _0x19b895=_0x28eb85;return U[_0x19b895(0x144)](qe,Object[_0x19b895(0x4c4)]({},_0x456ab9,{'id':_0x19b895(0x4d1),'ref':_0x12549e,'icon':Ri}));});Ut[_0x28eb85(0x1d9)]=_0x28eb85(0x195);function Pt(_0x4c48d2){const _0x273d03=_0x28eb85;var _0x44fd15,_0x2563c4,_0x432747='';if(typeof _0x4c48d2==_0x273d03(0x23c)||typeof _0x4c48d2=='number')_0x432747+=_0x4c48d2;else{if(typeof _0x4c48d2==_0x273d03(0x1a5)){if(Array[_0x273d03(0x33c)](_0x4c48d2)){var _0xe1e50a=_0x4c48d2['length'];for(_0x44fd15=0x0;_0x44fd15<_0xe1e50a;_0x44fd15++)_0x4c48d2[_0x44fd15]&&(_0x2563c4=Pt(_0x4c48d2[_0x44fd15]))&&(_0x432747&&(_0x432747+='\x20'),_0x432747+=_0x2563c4);}else{for(_0x2563c4 in _0x4c48d2)_0x4c48d2[_0x2563c4]&&(_0x432747&&(_0x432747+='\x20'),_0x432747+=_0x2563c4);}}}return _0x432747;}function Oi(){const _0x43ceb3=_0x28eb85;for(var _0x6a6890,_0x4ebae3,_0x42d08a=0x0,_0x36811f='',_0x43fd9b=arguments[_0x43ceb3(0x355)];_0x42d08a<_0x43fd9b;_0x42d08a++)(_0x6a6890=arguments[_0x42d08a])&&(_0x4ebae3=Pt(_0x6a6890))&&(_0x36811f&&(_0x36811f+='\x20'),_0x36811f+=_0x4ebae3);return _0x36811f;}const Di=_0x28eb85(0x3f5),yi='univer-online-status-title',Ui=_0x28eb85(0x13c),Pi='univer-online',wi=_0x28eb85(0x26e),le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x513cc4){const _0x13948d=_0x28eb85;switch(_0x513cc4){case y[_0x13948d(0x29c)]:return _0x13948d(0x4e0);case y['CONFLICT']:return _0x13948d(0x410);case y['FETCH_MISS']:return _0x13948d(0x218);case y[_0x13948d(0x46b)]:return _0x13948d(0x24c);case y['PENDING']:case y[_0x13948d(0x32a)]:case y['AWAITING_WITH_PENDING']:return _0x13948d(0x19e);case y[_0x13948d(0x2ba)]:return _0x13948d(0x525);}}function wt(_0x1b93b1){const _0x302c43=_0x28eb85,{status$:_0x1c7c72}=_0x1b93b1,_0x18d44f=N[_0x302c43(0x164)](_0x1c7c72,y['NOT_COLLAB']),_0x2d3895=a[_0x302c43(0x313)](a[_0x302c43(0x3c6)]),_0x5c6ffa=a[_0x302c43(0x313)](exports[_0x302c43(0x398)]),_0x52a983=_0x18d44f!==y[_0x302c43(0x29c)],_0x598b43=_0x2d3895['t'](Mi(_0x18d44f)),_0x69d7a1=Oi(le[_0x302c43(0x508)],{[le[_0x302c43(0x30a)]]:_0x52a983,[le['offline']]:!_0x52a983}),_0x266a4d=_0x52a983?U[_0x302c43(0x144)](Ut,null):U['createElement'](yt,null),_0x1c0202=U['useCallback'](()=>{_0x52a983||_0x5c6ffa['reconnect']();},[_0x52a983,_0x5c6ffa]);function _0x502566(){const _0x8a9b43=_0x302c43;return U[_0x8a9b43(0x144)]('div',{'className':_0x69d7a1,'onClick':_0x1c0202},U[_0x8a9b43(0x144)](_0x8a9b43(0x3f9),{'className':le[_0x8a9b43(0x4f4)]},_0x266a4d),U[_0x8a9b43(0x144)](_0x8a9b43(0x3f9),{'className':le[_0x8a9b43(0x287)]},_0x598b43));}return _0x52a983?_0x502566():U[_0x302c43(0x144)](X[_0x302c43(0x482)],{'title':_0x2d3895['t'](_0x302c43(0x27b))},_0x502566());}var Ni=Object[_0x28eb85(0x114)],Ai=Object['getOwnPropertyDescriptor'],Li=(_0x1c301a,_0x33baac,_0x3c01ac,_0x1f9228)=>{const _0x4c74e8=_0x28eb85;for(var _0x39ee27=_0x1f9228>0x1?void 0x0:_0x1f9228?Ai(_0x33baac,_0x3c01ac):_0x33baac,_0xda100e=_0x1c301a[_0x4c74e8(0x355)]-0x1,_0x1327d3;_0xda100e>=0x0;_0xda100e--)(_0x1327d3=_0x1c301a[_0xda100e])&&(_0x39ee27=(_0x1f9228?_0x1327d3(_0x33baac,_0x3c01ac,_0x39ee27):_0x1327d3(_0x39ee27))||_0x39ee27);return _0x1f9228&&_0x39ee27&&Ni(_0x33baac,_0x3c01ac,_0x39ee27),_0x39ee27;},Se=(_0x73b6d,_0x5df3f6)=>(_0xf9a594,_0x3e7a7d)=>_0x5df3f6(_0xf9a594,_0x3e7a7d,_0x73b6d);exports[_0x28eb85(0x190)]=class extends a[_0x28eb85(0x216)]{constructor(_0x1a89c6,_0xc0d59e,_0x3677e7,_0x43284e){const _0x4713c2=_0x28eb85;super(),d(this,_0x4713c2(0x19c),new v[(_0x4713c2(0x276))](y[_0x4713c2(0x46b)])),(this[_0x4713c2(0x357)]=_0x1a89c6,this[_0x4713c2(0x4d7)]=_0xc0d59e,this[_0x4713c2(0x152)]=_0x3677e7,this[_0x4713c2(0x479)]=_0x43284e,this[_0x4713c2(0x4ba)](),this[_0x4713c2(0x1bf)]());}[_0x28eb85(0x1bf)](){const _0x4b4c3c=_0x28eb85;this[_0x4b4c3c(0x214)](this[_0x4b4c3c(0x357)][_0x4b4c3c(0x408)][_0x4b4c3c(0x495)](v[_0x4b4c3c(0x364)](()=>{const _0x3134d2=_0x4b4c3c,_0x1b876=this[_0x3134d2(0x357)]['getFocusedUnit']();return _0x1b876?this[_0x3134d2(0x479)][_0x3134d2(0x2b5)](_0x1b876[_0x3134d2(0x270)]()):v['of'](null);}),v[_0x4b4c3c(0x364)](_0x42d1d5=>_0x42d1d5?_0x42d1d5['status$']:v['of'](y[_0x4b4c3c(0x46b)])))[_0x4b4c3c(0x14a)](_0x3e5772=>{const _0x4cf4aa=_0x4b4c3c;this[_0x4cf4aa(0x19c)][_0x4cf4aa(0x3fd)](_0x3e5772);}));}[_0x28eb85(0x4ba)](){const _0x500cd6=_0x28eb85;this[_0x500cd6(0x214)](this[_0x500cd6(0x4d7)][_0x500cd6(0x3d7)](N[_0x500cd6(0x368)][_0x500cd6(0x4e4)],()=>a['connectInjector'](ji({'status$':this[_0x500cd6(0x19c)][_0x500cd6(0x291)]()}),this[_0x500cd6(0x152)])));}},exports[_0x28eb85(0x190)]=Li([Se(0x0,a[_0x28eb85(0x286)]),Se(0x1,N[_0x28eb85(0x115)]),Se(0x2,a['Inject'](a['Injector'])),Se(0x3,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x4af)]))],exports[_0x28eb85(0x190)]);function ji(_0x5c4f1e){const {status$:_0x349761}=_0x5c4f1e;return function(){return U['createElement'](wt,{'status$':_0x349761});};}const ze=a['createIdentifier']('uni.network.url-service');var $i=Object[_0x28eb85(0x114)],Hi=Object['getOwnPropertyDescriptor'],xi=(_0x4456a7,_0x534c34,_0x3bcbd4,_0xa1428d)=>{const _0x114659=_0x28eb85;for(var _0x59def1=_0xa1428d>0x1?void 0x0:_0xa1428d?Hi(_0x534c34,_0x3bcbd4):_0x534c34,_0x24818b=_0x4456a7[_0x114659(0x355)]-0x1,_0x11b506;_0x24818b>=0x0;_0x24818b--)(_0x11b506=_0x4456a7[_0x24818b])&&(_0x59def1=(_0xa1428d?_0x11b506(_0x534c34,_0x3bcbd4,_0x59def1):_0x11b506(_0x59def1))||_0x59def1);return _0xa1428d&&_0x59def1&&$i(_0x534c34,_0x3bcbd4,_0x59def1),_0x59def1;},ee=(_0x59c63c,_0x1c5f01)=>(_0x3f99f7,_0x140989)=>_0x1c5f01(_0x3f99f7,_0x140989,_0x59c63c);exports['DataLoaderController']=class extends a[_0x28eb85(0x2f9)]{constructor(_0x35bc54,_0x362d43,_0x37d167,_0x25bd18,_0x34d0c2,_0x1a74db){const _0x5a070c=_0x28eb85;super(),this[_0x5a070c(0x2c1)]=_0x35bc54,this[_0x5a070c(0x1a7)]=_0x362d43,this[_0x5a070c(0x1a9)]=_0x37d167,this[_0x5a070c(0x535)]=_0x25bd18,this[_0x5a070c(0x4b2)]=_0x34d0c2,_0x1a74db?_0x1a74db==null||_0x1a74db['whenReady']()[_0x5a070c(0x167)](()=>this[_0x5a070c(0x3e8)]()):(this[_0x5a070c(0x1a7)][_0x5a070c(0x3b2)](_0x5a070c(0x487),_0x5a070c(0x1b1)),this[_0x5a070c(0x3e8)]());}async['_init'](){const _0x282353=_0x28eb85,_0x341a53=this[_0x282353(0x2c1)][_0x282353(0x497)](_0x282353(0x35c)),_0x28b985=this[_0x282353(0x2c1)]['getParam']('type');if(!_0x341a53||!_0x28b985){this['_logService'][_0x282353(0x3b2)](_0x282353(0x487),_0x282353(0x3a6));return;}switch(Number(_0x28b985)){case j[_0x282353(0x384)]:{const _0x1df32d=await this[_0x282353(0x4ef)](_0x341a53);this[_0x282353(0x452)](_0x1df32d);break;}case j[_0x282353(0x43a)]:{await this[_0x282353(0x1e6)](_0x341a53);break;}default:{this[_0x282353(0x1a7)]['error'](_0x282353(0x487),_0x282353(0x139));break;}}}async[_0x28eb85(0x452)](_0x3d5609){const _0x235d7c=_0x28eb85;await this[_0x235d7c(0x51e)](_0x3d5609),_0x3d5609['activeSheet$'][_0x235d7c(0x495)](v['takeUntil'](this[_0x235d7c(0x2fb)]))[_0x235d7c(0x14a)](_0x23a4f5=>{const _0x394429=_0x235d7c;_0x23a4f5&&this[_0x394429(0x47e)](_0x23a4f5);}),this[_0x235d7c(0x2c1)]['urlChange$'][_0x235d7c(0x495)](v[_0x235d7c(0x256)](this[_0x235d7c(0x2fb)]))['subscribe'](()=>this[_0x235d7c(0x51e)](_0x3d5609));}['_updateURLWithCurrentState'](_0x258de5,_0x30f6d7=!0x1){const _0x3af67d=_0x28eb85,_0x2cfc34=this[_0x3af67d(0x2c1)]['getParam'](_0x3af67d(0x2d3));_0x258de5[_0x3af67d(0x1b5)]()!==_0x2cfc34&&this[_0x3af67d(0x2c1)][_0x3af67d(0x119)](_0x3af67d(0x2d3),_0x258de5['getSheetId'](),_0x30f6d7);}async[_0x28eb85(0x51e)](_0xeeb2b0){const _0x25f748=_0x28eb85;var _0x2de05e;const _0xcf1c83=this['_urlService'][_0x25f748(0x497)](_0x25f748(0x2d3));if(!_0xcf1c83||!_0xeeb2b0[_0x25f748(0x3c7)](_0xcf1c83)){const _0xb43f1d=_0xeeb2b0['getUnhiddenWorksheets']()[0x0],_0x32cc89=_0xeeb2b0[_0x25f748(0x3c7)](_0xb43f1d);if(!_0x32cc89)return;this[_0x25f748(0x47e)](_0x32cc89,!0x0),await this['_commandService'][_0x25f748(0x170)](C[_0x25f748(0x4b8)]['id'],{'unitId':_0xeeb2b0[_0x25f748(0x270)](),'subUnitId':_0xb43f1d});return;}((_0x2de05e=_0xeeb2b0['getActiveSheet']())==null?void 0x0:_0x2de05e['getSheetId']())!==_0xcf1c83&&await this['_commandService'][_0x25f748(0x170)](C[_0x25f748(0x4b8)]['id'],{'unitId':_0xeeb2b0['getUnitId'](),'subUnitId':_0xcf1c83});}async[_0x28eb85(0x4ef)](_0xc4ec88){const _0x575e8a=_0x28eb85;let _0x1ac69e=0x0;const _0x23ddc=await this[_0x575e8a(0x535)]['loadOfflineData'](_0xc4ec88);return _0x23ddc&&(_0x23ddc[_0x575e8a(0x434)]||_0x23ddc[_0x575e8a(0x143)][_0x575e8a(0x355)]!==0x0)&&(_0x1ac69e=_0x23ddc[_0x575e8a(0x334)]),_0x1ac69e===0x0&&this[_0x575e8a(0x1a7)][_0x575e8a(0x3b2)](_0x575e8a(0x487),_0x575e8a(0x234)),this['_snapshotService'][_0x575e8a(0x4cd)](_0xc4ec88,_0x1ac69e);}async['_loadDoc'](_0x141f22){const _0x5cb148=_0x28eb85;let _0x3daba9=0x0;const _0x303f18=await this[_0x5cb148(0x535)][_0x5cb148(0x2c6)](_0x141f22);return _0x303f18&&(_0x303f18[_0x5cb148(0x434)]||_0x303f18[_0x5cb148(0x143)][_0x5cb148(0x355)]!==0x0)&&(_0x3daba9=_0x303f18[_0x5cb148(0x334)]),_0x3daba9===0x0&&this[_0x5cb148(0x1a7)][_0x5cb148(0x3b2)](_0x5cb148(0x487),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x5cb148(0x4b2)][_0x5cb148(0x4ac)](_0x141f22,_0x3daba9);}},exports[_0x28eb85(0x4e8)]=xi([ee(0x0,ze),ee(0x1,a[_0x28eb85(0x155)]),ee(0x2,a[_0x28eb85(0x1b0)]),ee(0x3,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x1f5)])),ee(0x4,a[_0x28eb85(0x23f)](_[_0x28eb85(0x34a)])),ee(0x5,a[_0x28eb85(0x3ab)](Wt[_0x28eb85(0x524)]))],exports[_0x28eb85(0x4e8)]);var ki=Object[_0x28eb85(0x114)],Bi=Object[_0x28eb85(0x38b)],Vi=(_0x2f3b2e,_0x51802f,_0x1cf2f6,_0x4b2bb4)=>{const _0xbcc7de=_0x28eb85;for(var _0x3b21a9=_0x4b2bb4>0x1?void 0x0:_0x4b2bb4?Bi(_0x51802f,_0x1cf2f6):_0x51802f,_0x2753ec=_0x2f3b2e[_0xbcc7de(0x355)]-0x1,_0x3b49bd;_0x2753ec>=0x0;_0x2753ec--)(_0x3b49bd=_0x2f3b2e[_0x2753ec])&&(_0x3b21a9=(_0x4b2bb4?_0x3b49bd(_0x51802f,_0x1cf2f6,_0x3b21a9):_0x3b49bd(_0x3b21a9))||_0x3b21a9);return _0x4b2bb4&&_0x3b21a9&&ki(_0x51802f,_0x1cf2f6,_0x3b21a9),_0x3b21a9;},at=(_0xc8be12,_0x353dbb)=>(_0x467340,_0x591c3d)=>_0x353dbb(_0x467340,_0x591c3d,_0xc8be12);const Wi=_0x28eb85(0x4ea),Fi=_0x28eb85(0x29f);let Ie=class extends a[_0x28eb85(0x216)]{constructor(_0x41a0e1,_0x1e0445){const _0x41bf9c=_0x28eb85;super(),this[_0x41bf9c(0x357)]=_0x41a0e1,this['_configService']=_0x1e0445,this[_0x41bf9c(0x3e8)]();}['_init'](){const _0x2483e2=_0x28eb85;this['disposeWithMe'](this[_0x2483e2(0x357)][_0x2483e2(0x408)][_0x2483e2(0x14a)](()=>{const _0x5a2ab4=_0x2483e2;var _0x4b9c7e;const _0xf1c537=this[_0x5a2ab4(0x357)][_0x5a2ab4(0x48c)]();let _0x592105=(_0x4b9c7e=this[_0x5a2ab4(0x4d8)][_0x5a2ab4(0x184)](Wi))!=null?_0x4b9c7e:Fi;_0xf1c537 instanceof a[_0x5a2ab4(0x441)]&&(_0x592105=_0xf1c537[_0x5a2ab4(0x309)]),document['title']=_0x592105;}));}};Ie=Vi([at(0x0,a['IUniverInstanceService']),at(0x1,a[_0x28eb85(0x420)])],Ie);var Gi=Object['defineProperty'],Yi=Object[_0x28eb85(0x38b)],Ki=(_0x4dde30,_0x3cb740,_0x1b07b2,_0x342642)=>{for(var _0x273e56=_0x342642>0x1?void 0x0:_0x342642?Yi(_0x3cb740,_0x1b07b2):_0x3cb740,_0x15a9ba=_0x4dde30['length']-0x1,_0x52c961;_0x15a9ba>=0x0;_0x15a9ba--)(_0x52c961=_0x4dde30[_0x15a9ba])&&(_0x273e56=(_0x342642?_0x52c961(_0x3cb740,_0x1b07b2,_0x273e56):_0x52c961(_0x273e56))||_0x273e56);return _0x342642&&_0x273e56&&Gi(_0x3cb740,_0x1b07b2,_0x273e56),_0x273e56;},Le=(_0x37da53,_0x2093cd)=>(_0x2912a8,_0x3b15e8)=>_0x2093cd(_0x2912a8,_0x3b15e8,_0x37da53);let pe=class{constructor(_0x40b83f,_0x1d9f36,_0x512043){const _0x3b3c2e=_0x28eb85;this[_0x3b3c2e(0x4d8)]=_0x40b83f,this[_0x3b3c2e(0x46f)]=_0x1d9f36,this[_0x3b3c2e(0x4a9)]=_0x512043,this[_0x3b3c2e(0x504)]();}['init'](){const _0x3437b7=_0x28eb85;this[_0x3437b7(0x46f)][_0x3437b7(0x188)]({'priority':0x1,'interceptor':(_0x235b40,_0x4da6d3)=>_0x4da6d3(_0x235b40)[_0x3437b7(0x495)](v[_0x3437b7(0x4cb)](async _0x5e5e82=>{const _0x410bf6=_0x3437b7,_0x34da62=_0x5e5e82;if(_0x34da62[_0x410bf6(0x266)]===0x191&&window[_0x410bf6(0x4f7)](this[_0x410bf6(0x4a9)]['t'](_0x410bf6(0x126)))){const _0x4dc9e0=window[_0x410bf6(0x246)](window['location'][_0x410bf6(0x18d)]);window['location'][_0x410bf6(0x18d)]=this[_0x410bf6(0x1ae)]()+_0x410bf6(0x523)+_0x4dc9e0;}return _0x34da62;}))});}['_getLoginPath'](){const _0x4623cb=_0x28eb85;var _0x3c013e,_0x212ebd;const _0x16cc5c=this[_0x4623cb(0x4d8)]['getConfig'](mt),_0x2b0a0c=this[_0x4623cb(0x4d8)][_0x4623cb(0x184)](A);return(_0x212ebd=(_0x3c013e=_0x2b0a0c==null?void 0x0:_0x2b0a0c[_0x4623cb(0x1ad)])!=null?_0x3c013e:_0x16cc5c)!=null?_0x212ebd:es;}};pe=Ki([Le(0x0,a[_0x28eb85(0x420)]),Le(0x1,a[_0x28eb85(0x23f)](P[_0x28eb85(0x176)])),Le(0x2,a['Inject'](a[_0x28eb85(0x3c6)]))],pe);var Xi=Object['defineProperty'],qi=Object[_0x28eb85(0x38b)],zi=(_0x16dc2a,_0x3131df,_0x561d65,_0x4b2a01)=>{const _0x333edc=_0x28eb85;for(var _0x49f7f5=_0x4b2a01>0x1?void 0x0:_0x4b2a01?qi(_0x3131df,_0x561d65):_0x3131df,_0x34cd4b=_0x16dc2a[_0x333edc(0x355)]-0x1,_0x3065b0;_0x34cd4b>=0x0;_0x34cd4b--)(_0x3065b0=_0x16dc2a[_0x34cd4b])&&(_0x49f7f5=(_0x4b2a01?_0x3065b0(_0x3131df,_0x561d65,_0x49f7f5):_0x3065b0(_0x49f7f5))||_0x49f7f5);return _0x4b2a01&&_0x49f7f5&&Xi(_0x3131df,_0x561d65,_0x49f7f5),_0x49f7f5;},ct=(_0xa25b2e,_0x385268)=>(_0x46c91b,_0x164004)=>_0x385268(_0x46c91b,_0x164004,_0xa25b2e);const Mt='AUTHZ_URL_KEY',Ji=_0x28eb85(0x319);exports[_0x28eb85(0x391)]=class extends a[_0x28eb85(0x216)]{constructor(_0x22e2d5,_0xc8b4f6){const _0x27c1ab=_0x28eb85;super(),this[_0x27c1ab(0x316)]=_0x22e2d5,this['_configService']=_0xc8b4f6,this[_0x27c1ab(0x3dd)]();}[_0x28eb85(0x3dd)](){const _0x358e7d=_0x28eb85,_0x899e4c=this;this['disposeWithMe'](this[_0x358e7d(0x316)][_0x358e7d(0x188)]({'priority':0x3e7,'interceptor':P[_0x358e7d(0x2e0)]({'isMatch'(_0x249ca5){const _0x117c70=_0x358e7d;var _0x53a6ee;if(_0x249ca5[_0x117c70(0x23a)]==='POST'&&((_0x53a6ee=_0x249ca5[_0x117c70(0x2c8)])!=null&&_0x53a6ee['body'])){const {objectID:_0x17ace0,objectType:_0x40f727}=_0x249ca5[_0x117c70(0x2c8)][_0x117c70(0x1e5)]||{};if(!_0x17ace0||_0x40f727===void 0x0)return!0x1;const _0x1d399b=_0x899e4c[_0x117c70(0x323)]()+'/'+_0x40f727+'/object/'+_0x17ace0+_0x117c70(0x3bc);if(_0x249ca5[_0x117c70(0x39b)]===_0x1d399b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xb651e8){const _0x4a75df=_0x358e7d;var _0x4af94d;return(_0x4af94d=_0xb651e8['requestParams'])==null?void 0x0:_0x4af94d[_0x4a75df(0x1e5)];},'mergeParamsToRequest'(_0x28ffb1,_0x4c0883){const _0x4a0ce8=_0x358e7d,_0x127e89=_0x899e4c[_0x4a0ce8(0x323)]()+'/-/object/-/batch_allowed',_0x1bf20d=_0x28ffb1[_0x4a0ce8(0x212)]((_0x1ca90f,_0x269242)=>{const _0x3ed5d2=_0x4a0ce8,{unitID:_0x56307d,objectID:_0x39211b,objectType:_0x105aca,actions:_0x5b566a}=_0x269242;return _0x1ca90f[_0x56307d]||(_0x1ca90f[_0x56307d]={}),_0x1ca90f[_0x56307d][_0x39211b]||(_0x1ca90f[_0x56307d][_0x39211b]={'objectID':_0x39211b,'objectType':_0x105aca,'actions':[]}),_0x1ca90f[_0x56307d][_0x39211b]['actions'][_0x3ed5d2(0x3f4)](..._0x5b566a),_0x1ca90f;},{}),_0x5b1586=[];for(const _0x23ef45 in _0x1bf20d)for(const _0x57a5d2 in _0x1bf20d[_0x23ef45]){const {actions:_0x45d7bb,objectType:_0xc4078a}=_0x1bf20d[_0x23ef45][_0x57a5d2],_0x197270=[...new Set(_0x45d7bb)];_0x5b1586[_0x4a0ce8(0x3f4)]({'unitID':_0x23ef45,'objectID':_0x57a5d2,'objectType':_0xc4078a,'actions':_0x197270});}return new P[(_0x4a0ce8(0x15e))](_0x4a0ce8(0x2f7),_0x127e89,{'headers':_0x4c0883[_0x4a0ce8(0x3cf)],'withCredentials':_0x4c0883[_0x4a0ce8(0x17d)],'responseType':_0x4c0883[_0x4a0ce8(0x4c2)],'body':{'requests':_0x5b1586}});}},{'distributeResult'(_0x16eac2,_0x129657){const {objectActions:_0x2e37fb}=_0x16eac2;return _0x129657['map'](_0xc4e7e0=>{const _0x27485d=_0xb2fc,{unitID:_0x30e6bf,objectID:_0x405f65,actions:_0x5310b7}=_0xc4e7e0,_0x521c65=_0x2e37fb[_0x27485d(0x4ff)](_0x3fc009=>_0x3fc009[_0x27485d(0x333)]===_0x30e6bf&&_0x3fc009['objectID']===_0x405f65),_0x932bef=_0x5310b7[_0x27485d(0x331)](_0x12ae27=>_0x521c65==null?void 0x0:_0x521c65['actions'][_0x27485d(0x4ff)](_0x4ad106=>_0x4ad106['action']===_0x12ae27))[_0x27485d(0x215)](_0x242ee7=>!!_0x242ee7);return{'config':_0xc4e7e0,'result':{'actions':_0x932bef,'error':_0x16eac2[_0x27485d(0x533)]}};});}})}));}[_0x28eb85(0x323)](){const _0x3935ff=_0x28eb85;var _0x4870b2,_0x26e26f;const _0x152262=this[_0x3935ff(0x4d8)]['getConfig'](Mt),_0x5a9cd8=this[_0x3935ff(0x4d8)][_0x3935ff(0x184)](A);return(_0x26e26f=(_0x4870b2=_0x5a9cd8==null?void 0x0:_0x5a9cd8[_0x3935ff(0x406)])!=null?_0x4870b2:_0x152262)!=null?_0x26e26f:Ji;}async[_0x28eb85(0x42f)](_0x442ad5){const _0x3e05c0=_0x28eb85,_0x798c92=this['_getAPIPrefixPath']()+'/'+_0x442ad5[_0x3e05c0(0x3de)]+_0x3e05c0(0x3c8);return(await this[_0x3e05c0(0x316)][_0x3e05c0(0x252)](_0x798c92,{'body':_0x442ad5}))[_0x3e05c0(0x1e5)][_0x3e05c0(0x4c7)]||'';}async['list'](_0x4aea30){const _0x1c4b54=_0x28eb85,_0x2fd738=this['_getAPIPrefixPath']()+_0x1c4b54(0x439);return(await this['_HTTPService'][_0x1c4b54(0x252)](_0x2fd738,{'body':_0x4aea30}))[_0x1c4b54(0x1e5)][_0x1c4b54(0x49a)];}async[_0x28eb85(0x433)](_0xc4660f){const _0x44d40a=_0x28eb85,_0x13cdae=this[_0x44d40a(0x323)]()+'/'+_0xc4660f[_0x44d40a(0x3de)]+_0x44d40a(0x292)+_0xc4660f['objectID'];await this[_0x44d40a(0x316)][_0x44d40a(0x369)](_0x13cdae,{'body':_0xc4660f});}async['allowed'](_0x5989fa){const _0x3fb7bf=_0x28eb85,_0xd65fa0=this[_0x3fb7bf(0x323)]()+'/'+_0x5989fa[_0x3fb7bf(0x3de)]+_0x3fb7bf(0x292)+_0x5989fa['objectID']+_0x3fb7bf(0x3bc);return(await this['_HTTPService'][_0x3fb7bf(0x252)](_0xd65fa0,{'body':_0x5989fa}))[_0x3fb7bf(0x1e5)][_0x3fb7bf(0x4e2)];}async[_0x28eb85(0x263)](_0x24ef04){const _0x282431=_0x28eb85,_0x358063=this[_0x282431(0x323)]()+_0x282431(0x393);return(await this[_0x282431(0x316)][_0x282431(0x252)](_0x358063,{'body':{'requests':_0x24ef04}}))[_0x282431(0x1e5)][_0x282431(0x49b)];}async[_0x28eb85(0x42d)](_0x4684bc){const _0x13cd41=_0x28eb85,_0x413234=this[_0x13cd41(0x323)]()+'/'+_0x4684bc[_0x13cd41(0x3de)]+_0x13cd41(0x429),_0x366aad=await this[_0x13cd41(0x316)][_0x13cd41(0x252)](_0x413234,{'body':_0x4684bc});return{'roles':_0x366aad['body'][_0x13cd41(0x3a0)],'actions':_0x366aad[_0x13cd41(0x1e5)]['actions']};}async[_0x28eb85(0x380)](_0x113ea9){const _0x282d99=_0x28eb85,_0x24a11b=this[_0x282d99(0x323)]()+_0x282d99(0x189);await this[_0x282d99(0x316)][_0x282d99(0x25f)](_0x24a11b,{'params':{'collaboratorID':_0x113ea9[_0x282d99(0x413)],'objectID':_0x113ea9[_0x282d99(0x4c7)],'unitID':_0x113ea9[_0x282d99(0x333)]}});}async['updateCollaborator'](_0x360dd7){const _0x4f045c=_0x28eb85,_0x364341=this[_0x4f045c(0x323)]()+_0x4f045c(0x189);await this['_HTTPService'][_0x4f045c(0x45d)](_0x364341,{'body':_0x360dd7});}async[_0x28eb85(0x3a3)](_0x45ca07){const _0x198a48=_0x28eb85,_0x17c1fb=this['_getAPIPrefixPath']()+_0x198a48(0x189);await this[_0x198a48(0x316)][_0x198a48(0x252)](_0x17c1fb,{'body':_0x45ca07});}async[_0x28eb85(0x443)](_0x336c6f){const _0x3753a2=_0x28eb85,_0x2ec912=this[_0x3753a2(0x323)]()+_0x3753a2(0x189);return(await this['_HTTPService']['get'](_0x2ec912,{'params':{'objectID':_0x336c6f[_0x3753a2(0x4c7)],'unitID':_0x336c6f[_0x3753a2(0x333)]}}))[_0x3753a2(0x1e5)][_0x3753a2(0x447)];}async['putCollaborators'](_0x33ea4d){const _0x376b7a=_0x28eb85,_0xcb6d8c=this[_0x376b7a(0x323)]()+_0x376b7a(0x189);await this[_0x376b7a(0x316)][_0x376b7a(0x369)](_0xcb6d8c,{'body':_0x33ea4d});}},exports[_0x28eb85(0x391)]=zi([ct(0x0,a['Inject'](P['HTTPService'])),ct(0x1,a[_0x28eb85(0x23f)](a['IConfigService']))],exports['AuthzIoHttpService']);var Zi=Object[_0x28eb85(0x114)],Qi=Object[_0x28eb85(0x38b)],en=(_0x5d6b96,_0x32d786,_0xc71488,_0x104317)=>{const _0x594fad=_0x28eb85;for(var _0x1d920d=_0x104317>0x1?void 0x0:_0x104317?Qi(_0x32d786,_0xc71488):_0x32d786,_0x56edb2=_0x5d6b96[_0x594fad(0x355)]-0x1,_0x5ac639;_0x56edb2>=0x0;_0x56edb2--)(_0x5ac639=_0x5d6b96[_0x56edb2])&&(_0x1d920d=(_0x104317?_0x5ac639(_0x32d786,_0xc71488,_0x1d920d):_0x5ac639(_0x1d920d))||_0x1d920d);return _0x104317&&_0x1d920d&&Zi(_0x32d786,_0xc71488,_0x1d920d),_0x1d920d;},tn=(_0x43ad28,_0x3454df)=>(_0x5ea3ac,_0x379628)=>_0x3454df(_0x5ea3ac,_0x379628,_0x43ad28);let Ce=class{constructor(_0x89577d){const _0x100a90=_0x28eb85;this['_httpService']=_0x89577d,this[_0x100a90(0x268)]();}[_0x28eb85(0x268)](){const _0x36bce7=_0x28eb85;this['_httpService'][_0x36bce7(0x188)]({'interceptor':(_0x1900c6,_0x24048c)=>{const _0x2f3821=_0x36bce7,_0x6c4c29=_0x1900c6[_0x2f3821(0x3cf)],_0x47d8a3=Ft['getAttachHeader']();return _0x47d8a3&&_0x6c4c29['set']('x-univer-host',_0x47d8a3),_0x24048c(_0x1900c6);}});}};Ce=en([tn(0x0,a[_0x28eb85(0x23f)](P[_0x28eb85(0x176)]))],Ce);var sn=Object[_0x28eb85(0x114)],nn=Object[_0x28eb85(0x38b)],rn=(_0x989aba,_0x5ac2c2,_0x5e5319,_0x7a75e6)=>{const _0x7ac152=_0x28eb85;for(var _0x30fb74=_0x7a75e6>0x1?void 0x0:_0x7a75e6?nn(_0x5ac2c2,_0x5e5319):_0x5ac2c2,_0x42d541=_0x989aba[_0x7ac152(0x355)]-0x1,_0x326bc3;_0x42d541>=0x0;_0x42d541--)(_0x326bc3=_0x989aba[_0x42d541])&&(_0x30fb74=(_0x7a75e6?_0x326bc3(_0x5ac2c2,_0x5e5319,_0x30fb74):_0x326bc3(_0x30fb74))||_0x30fb74);return _0x7a75e6&&_0x30fb74&&sn(_0x5ac2c2,_0x5e5319,_0x30fb74),_0x30fb74;},je=(_0x135900,_0x2ab63d)=>(_0xf2b8ad,_0x4668ad)=>_0x2ab63d(_0xf2b8ad,_0x4668ad,_0x135900);const on=[_0x28eb85(0x3d3),'image/jpeg','image/jpg',_0x28eb85(0x4aa),_0x28eb85(0x245)],an=0x5*0x400*0x400,cn=_0x28eb85(0x468),ln='/universer-api/stream/file/upload',hn=_0x28eb85(0x455),_n=_0x28eb85(0x520);exports['ImageIoService']=class{constructor(_0x4a4c3f,_0x515f62,_0x5feec0){const _0x5dd2d2=_0x28eb85;d(this,'_waitCount',0x0),d(this,'_change$',new v['Subject']()),d(this,_0x5dd2d2(0x175),this[_0x5dd2d2(0x1f6)]),d(this,_0x5dd2d2(0x2f1),new Map()),(this[_0x5dd2d2(0x46f)]=_0x4a4c3f,this[_0x5dd2d2(0x4d8)]=_0x515f62,this['_univerInstanceService']=_0x5feec0);}['setWaitCount'](_0x2dadd8){const _0x3a2a49=_0x28eb85;this[_0x3a2a49(0x3c2)]=_0x2dadd8,this['_change$'][_0x3a2a49(0x3fd)](_0x2dadd8);}['getImageSourceCache'](_0xa508e8,_0x60a9ac){const _0x3a9e23=_0x28eb85;if(_0x60a9ac===L['ImageSourceType'][_0x3a9e23(0x22c)]){const _0x35356b=new Image();return _0x35356b['src']=_0xa508e8,_0x35356b;}return this[_0x3a9e23(0x2f1)][_0x3a9e23(0x30d)](_0xa508e8);}['addImageSourceCache'](_0x1ca233,_0x5bd482,_0x4227de){const _0x531c5f=_0x28eb85;_0x5bd482===L[_0x531c5f(0x4d4)][_0x531c5f(0x22c)]||_0x4227de==null||this[_0x531c5f(0x2f1)][_0x531c5f(0x191)](_0x1ca233,_0x4227de);}async['getImage'](_0x4a7afd){const _0x589049=_0x28eb85;try{const _0x1398b6=this[_0x589049(0x18f)](this['_getSignURL'](),''+_0x4a7afd),_0xd6d34f=(await this[_0x589049(0x46f)][_0x589049(0x30d)](_0x1398b6))[_0x589049(0x1e5)];if(_0xd6d34f[_0x589049(0x533)]&&_0xd6d34f[_0x589049(0x533)][_0x589049(0x4ad)]===It['OK']){const _0x41d3de=new URL(_0xd6d34f[_0x589049(0x39b)],this[_0x589049(0x30c)]())[_0x589049(0x45e)]();return Promise[_0x589049(0x2c7)](_0x41d3de);}return Promise[_0x589049(0x36e)](_0xd6d34f[_0x589049(0x533)]);}catch(_0x1416a3){return Promise[_0x589049(0x36e)](_0x1416a3);}}async[_0x28eb85(0x501)](_0x59dcce){const _0x30fa25=_0x28eb85;let _0x45b10d='';if(!on[_0x30fa25(0x2bb)](_0x59dcce[_0x30fa25(0x254)]))return this[_0x30fa25(0x18c)](),Promise[_0x30fa25(0x36e)](new Error(L['ImageUploadStatusType'][_0x30fa25(0x1a8)]));if(_0x59dcce[_0x30fa25(0x50a)]>an)return this['_decreaseWaiting'](),Promise['reject'](new Error(L['ImageUploadStatusType'][_0x30fa25(0x4a5)]));try{const _0x3463e7=new FormData();_0x3463e7[_0x30fa25(0x397)]('file',_0x59dcce);const _0x1fdd96=this[_0x30fa25(0x357)][_0x30fa25(0x48c)](),_0x1afcde=_0x1fdd96==null?void 0x0:_0x1fdd96[_0x30fa25(0x270)]();if(!_0x1afcde)throw new Error('unitId\x20is\x20not\x20found');const _0x497da1=this[_0x30fa25(0x388)]()+_0x30fa25(0x499)+_0x59dcce['size'][_0x30fa25(0x45e)]()+_0x30fa25(0x2cf)+pt[_0x30fa25(0x21c)]+'&assign='+encodeURIComponent(_0x1afcde),_0x24d9f6=await(await fetch(_0x497da1,{'method':_0x30fa25(0x2f7),'body':_0x3463e7}))[_0x30fa25(0x230)]();if(typeof _0x24d9f6[_0x30fa25(0x277)]!=_0x30fa25(0x23c))return this[_0x30fa25(0x18c)](),Promise[_0x30fa25(0x36e)](new Error(L[_0x30fa25(0x39c)][_0x30fa25(0x373)]));_0x45b10d=_0x24d9f6['FileId'];}catch{return this[_0x30fa25(0x18c)](),Promise[_0x30fa25(0x36e)](new Error(L[_0x30fa25(0x39c)]['ERROR_IMAGE']));}return new Promise((_0x1f7faa,_0x37b8b0)=>{const _0x497065=_0x30fa25,_0x4e1b57=new FileReader();_0x4e1b57[_0x497065(0x28f)](_0x59dcce),_0x4e1b57['onload']=_0x86a100=>{const _0x330ee6=_0x497065;var _0x2854da;const _0x3c34a0=(_0x2854da=_0x86a100['target'])==null?void 0x0:_0x2854da[_0x330ee6(0x4db)];if(_0x3c34a0==null){this[_0x330ee6(0x18c)](),_0x37b8b0(new Error(L[_0x330ee6(0x39c)][_0x330ee6(0x373)]));return;}const _0x101b9b=a[_0x330ee6(0x356)][_0x330ee6(0x517)](0x6);_0x1f7faa({'imageId':_0x101b9b,'imageSourceType':L[_0x330ee6(0x4d4)][_0x330ee6(0x354)],'source':_0x45b10d,'base64Cache':_0x3c34a0,'status':L[_0x330ee6(0x39c)][_0x330ee6(0x352)]}),this[_0x330ee6(0x18c)]();};});}['_getUploadFileURL'](){const _0x2470a7=_0x28eb85;var _0x195311,_0x45720b;const _0xaf7cc7=this[_0x2470a7(0x4d8)][_0x2470a7(0x184)](cn),_0x271adb=this[_0x2470a7(0x4d8)][_0x2470a7(0x184)](A);return(_0x45720b=(_0x195311=_0x271adb==null?void 0x0:_0x271adb[_0x2470a7(0x228)])!=null?_0x195311:_0xaf7cc7)!=null?_0x45720b:ln;}['_getSignURL'](){const _0x38b759=_0x28eb85;var _0x57caad,_0x20652c;const _0x274967=this[_0x38b759(0x4d8)][_0x38b759(0x184)](hn),_0x4702e3=this[_0x38b759(0x4d8)]['getConfig'](A);return(_0x20652c=(_0x57caad=_0x4702e3==null?void 0x0:_0x4702e3['signUrlServerUrl'])!=null?_0x57caad:_0x274967)!=null?_0x20652c:_n;}[_0x28eb85(0x30c)](){const _0x2a9152=_0x28eb85;var _0x1ca775;const _0x10fbc8=this['_configService'][_0x2a9152(0x184)](A);return(_0x1ca775=_0x10fbc8==null?void 0x0:_0x10fbc8[_0x2a9152(0x37d)])!=null?_0x1ca775:location[_0x2a9152(0x42c)];}[_0x28eb85(0x18f)](_0x3a61d2,_0x20cae8){const _0x328f35=_0x28eb85;return _0x3a61d2[_0x328f35(0x129)](_0x328f35(0x4e7),_0x20cae8);}[_0x28eb85(0x18c)](){const _0x454f0d=_0x28eb85;this[_0x454f0d(0x3c2)]-=0x1,this[_0x454f0d(0x1f6)]['next'](this[_0x454f0d(0x3c2)]);}},exports[_0x28eb85(0x281)]=rn([je(0x0,a[_0x28eb85(0x23f)](P[_0x28eb85(0x176)])),je(0x1,a['IConfigService']),je(0x2,a['Inject'](a[_0x28eb85(0x286)]))],exports[_0x28eb85(0x281)]);var un=Object['defineProperty'],dn=Object[_0x28eb85(0x38b)],Sn=(_0xc7877d,_0x2583ed,_0x533d14,_0x1df4fd)=>{for(var _0x3302ca=_0x1df4fd>0x1?void 0x0:_0x1df4fd?dn(_0x2583ed,_0x533d14):_0x2583ed,_0x2bc366=_0xc7877d['length']-0x1,_0x158a01;_0x2bc366>=0x0;_0x2bc366--)(_0x158a01=_0xc7877d[_0x2bc366])&&(_0x3302ca=(_0x1df4fd?_0x158a01(_0x2583ed,_0x533d14,_0x3302ca):_0x158a01(_0x3302ca))||_0x3302ca);return _0x1df4fd&&_0x3302ca&&un(_0x2583ed,_0x533d14,_0x3302ca),_0x3302ca;},he=(_0x27192f,_0x3a7448)=>(_0x12661c,_0x2bf67f)=>_0x3a7448(_0x12661c,_0x2bf67f,_0x27192f);let Ee=class extends a[_0x28eb85(0x2f9)]{constructor(_0x510448,_0x175296,_0x823de0,_0x35a060,_0x2eecba){const _0x4f410f=_0x28eb85;super(),this[_0x4f410f(0x152)]=_0x510448,this[_0x4f410f(0x357)]=_0x175296,this['_permissionService']=_0x823de0,this[_0x4f410f(0x3ca)]=_0x35a060,this['_localeService']=_0x2eecba,this['_initUnitPermissionChange'](),this[_0x4f410f(0x18b)]();}[_0x28eb85(0x18b)](){const _0x34fa60=_0x28eb85,_0x68e952=async _0x23146d=>{const _0x5bb328=_0xb2fc;(await this['_collaborationSessionService']['requireSession'](_0x23146d))[_0x5bb328(0x476)]['pipe'](E['filter'](_0x48b1c3=>_0x48b1c3['eventID']===_['CollaborationEvent'][_0x5bb328(0x133)]),E[_0x5bb328(0x256)](this[_0x5bb328(0x2fb)]))['subscribe'](_0x49442c=>{const _0x149783=_0x5bb328,_0x27b840=_0x49442c,{reason:_0x17769d}=_0x27b840[_0x149783(0x451)];this[_0x149783(0x152)][_0x149783(0x30d)](N['IMessageService'])[_0x149783(0x2bd)]({'type':X[_0x149783(0x2ea)][_0x149783(0x457)],'content':this['_localeService']['t'](_0x149783(0x242))+'('+_0x17769d+')'}),this[_0x149783(0x28a)][_0x149783(0x49e)](new C[(_0x149783(0x31c))](_0x23146d)['id'],!0x1),this[_0x149783(0x3ca)][_0x149783(0x42a)](_0x23146d);});};v['merge'](this[_0x34fa60(0x357)][_0x34fa60(0x1ba)](a[_0x34fa60(0x24a)][_0x34fa60(0x384)]),this[_0x34fa60(0x357)]['getTypeOfUnitAdded$'](a[_0x34fa60(0x24a)][_0x34fa60(0x43a)]))['pipe'](E[_0x34fa60(0x331)](_0x5ba0c4=>_0x5ba0c4[_0x34fa60(0x270)]()),E['filter'](_0x4112b8=>!a['isInternalEditorID'](_0x4112b8)),E['takeUntil'](this[_0x34fa60(0x2fb)]))[_0x34fa60(0x14a)](_0xad5bab=>{_0x68e952(_0xad5bab);});}[_0x28eb85(0x2d4)](){const _0x584455=_0x28eb85,_0x1cb201=async _0x4b4665=>{const _0x5e9637=_0xb2fc;(await this[_0x5e9637(0x3ca)][_0x5e9637(0x123)](_0x4b4665))[_0x5e9637(0x476)][_0x5e9637(0x495)](E[_0x5e9637(0x215)](_0xf81760=>_0xf81760[_0x5e9637(0x16b)]===_[_0x5e9637(0x46d)][_0x5e9637(0x300)]),E[_0x5e9637(0x256)](this[_0x5e9637(0x2fb)]))[_0x5e9637(0x14a)](_0x5d2cda=>{const _0x3632de=_0x5e9637,_0x3b7e27=_0x5d2cda,{objectId:_0x36a23a}=_0x3b7e27[_0x3632de(0x451)],_0xcb446e=this['_injector'][_0x3632de(0x30d)](te[_0x3632de(0x394)]);_0x36a23a===_0x4b4665?_0xcb446e[_0x3632de(0x2f8)](_0x4b4665):_0xcb446e[_0x3632de(0x52b)](_0x4b4665,_0x36a23a);});};v[_0x584455(0x1ea)](this['_univerInstanceService'][_0x584455(0x1ba)](a[_0x584455(0x24a)][_0x584455(0x384)]),this[_0x584455(0x357)][_0x584455(0x1ba)](a['UniverInstanceType']['UNIVER_DOC']))[_0x584455(0x495)](E[_0x584455(0x331)](_0x220dd4=>_0x220dd4[_0x584455(0x270)]()),E[_0x584455(0x215)](_0x77b433=>!a['isInternalEditorID'](_0x77b433)),E[_0x584455(0x256)](this[_0x584455(0x2fb)]))['subscribe'](_0xb1aa23=>{_0x1cb201(_0xb1aa23);});}};Ee=Sn([he(0x0,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),he(0x1,a[_0x28eb85(0x286)]),he(0x2,a[_0x28eb85(0x485)]),he(0x3,a[_0x28eb85(0x23f)](exports[_0x28eb85(0x398)])),he(0x4,a[_0x28eb85(0x23f)](a[_0x28eb85(0x3c6)]))],Ee);var vn=Object[_0x28eb85(0x114)],fn=Object['getOwnPropertyDescriptor'],gn=(_0x3b87e3,_0x563a1e,_0x1bbef6,_0x3b5ec6)=>{const _0x14ed49=_0x28eb85;for(var _0xcc379b=_0x3b5ec6>0x1?void 0x0:_0x3b5ec6?fn(_0x563a1e,_0x1bbef6):_0x563a1e,_0x526594=_0x3b87e3[_0x14ed49(0x355)]-0x1,_0x3d343f;_0x526594>=0x0;_0x526594--)(_0x3d343f=_0x3b87e3[_0x526594])&&(_0xcc379b=(_0x3b5ec6?_0x3d343f(_0x563a1e,_0x1bbef6,_0xcc379b):_0x3d343f(_0xcc379b))||_0xcc379b);return _0x3b5ec6&&_0xcc379b&&vn(_0x563a1e,_0x1bbef6,_0xcc379b),_0xcc379b;},lt=(_0x30cff1,_0x5cd293)=>(_0x583bac,_0x24964e)=>_0x5cd293(_0x583bac,_0x24964e,_0x30cff1);exports[_0x28eb85(0x515)]=class{constructor(_0x4116b0,_0x56fd17){const _0x218ae8=_0x28eb85;this[_0x218ae8(0x4d8)]=_0x4116b0,this[_0x218ae8(0x46f)]=_0x56fd17;}async[_0x28eb85(0x26f)](_0x57f919,_0x1f2e61){const _0x3f90cb=_0x28eb85;var _0x49dcc5;const {unitID:_0x458402,type:_0x528b19,revision:_0x2f66a8=0x0}=_0x1f2e61,_0x17df0f=this[_0x3f90cb(0x43d)]()+'/'+_0x528b19+_0x3f90cb(0x3ef)+_0x458402+_0x3f90cb(0x2d6)+_0x2f66a8,_0x119f30=(await this['_httpService'][_0x3f90cb(0x30d)](_0x17df0f))[_0x3f90cb(0x1e5)],_0x27d2cb=(_0x49dcc5=_0x119f30[_0x3f90cb(0x376)])==null?void 0x0:_0x49dcc5[_0x3f90cb(0x4bd)];if(_0x27d2cb){const _0x3bc534=_0x27d2cb==null?void 0x0:_0x27d2cb[_0x3f90cb(0x223)],_0x4efc72=_['textEncoder'][_0x3f90cb(0x427)](_[_0x3f90cb(0x1a1)](_0x3bc534));_0x27d2cb[_0x3f90cb(0x223)]=_0x4efc72,Object['entries'](_0x27d2cb[_0x3f90cb(0x4eb)])['forEach'](([,_0x10ae4f])=>{const _0x52ea85=_0x3f90cb,_0x3ef406=_0x10ae4f[_0x52ea85(0x223)],_0x138523=_['textEncoder'][_0x52ea85(0x427)](_[_0x52ea85(0x1a1)](_0x3ef406));_0x10ae4f['originalMeta']=_0x138523;});}return _0x119f30;}async[_0x28eb85(0x36a)](_0x52c000,_0x4d8a5a){const _0x471110=_0x28eb85,{unitID:_0x3ab427,type:_0x152be6,blockID:_0x212d59}=_0x4d8a5a,_0x2828b8=this['_getAPIPrefix']()+'/'+_0x152be6+_0x471110(0x3ef)+_0x3ab427+_0x471110(0x31d)+_0x212d59;return(await this[_0x471110(0x46f)][_0x471110(0x30d)](_0x2828b8))[_0x471110(0x1e5)];}async[_0x28eb85(0x137)](_0x1cbc36,_0x4c09bb){const _0xa46175=_0x28eb85,{unitID:_0x3ec3b3,type:_0x50aee0,blockID:_0x4afc9b}=_0x4c09bb,_0x5de052=this[_0xa46175(0x511)]()+_0xa46175(0x31d)+_0x50aee0+_0xa46175(0x3ef)+_0x3ec3b3+_0xa46175(0x31d)+_0x4afc9b;return(await this[_0xa46175(0x46f)][_0xa46175(0x30d)](_0x5de052))['body'];}async['fetchMissingChangesets'](_0x481e47,_0x2df5c5){const _0x22f6c2=_0x28eb85,{unitID:_0xebe8d1,type:_0x544b1a,from:_0x3845ab,to:_0x4e2fc1}=_0x2df5c5,_0x533d5e=this[_0x22f6c2(0x511)]()+'/'+_0x544b1a+'/unit/'+_0xebe8d1+_0x22f6c2(0x2db)+_0x3845ab+_0x22f6c2(0x1d1)+_0x4e2fc1;return(await this['_httpService'][_0x22f6c2(0x30d)](_0x533d5e))[_0x22f6c2(0x1e5)];}[_0x28eb85(0x43d)](){const _0x3e4cb1=_0x28eb85;var _0x47f857;return(_0x47f857=this['_configService']['getConfig'](_t))!=null?_0x47f857:this[_0x3e4cb1(0x511)]();}[_0x28eb85(0x511)](){const _0x429c72=_0x28eb85;var _0x27d944,_0x2fedb0;const _0x1426f2=this[_0x429c72(0x4d8)][_0x429c72(0x184)](ht),_0x56ffd4=this['_configService'][_0x429c72(0x184)](A);return(_0x2fedb0=(_0x27d944=_0x56ffd4==null?void 0x0:_0x56ffd4[_0x429c72(0x47c)])!=null?_0x27d944:_0x1426f2)!=null?_0x2fedb0:Gt;}async[_0x28eb85(0x3ec)](_0x58045a,_0x108a18){const _0x3a39d9=_0x28eb85,_0x104681=_0x3a39d9(0x15d)+_0x108a18[_0x3a39d9(0x254)]+_0x3a39d9(0x3ef)+_0x108a18[_0x3a39d9(0x333)]+_0x3a39d9(0x24b);return(await this[_0x3a39d9(0x46f)][_0x3a39d9(0x30d)](_0x104681,{'params':{'resourceId':JSON['stringify'](_0x108a18[_0x3a39d9(0x45f)])}}))[_0x3a39d9(0x1e5)];}[_0x28eb85(0x249)](){const _0xf68d92=_0x28eb85;throw new Error(_0xf68d92(0x409));}[_0x28eb85(0x3ce)](){const _0xedff03=_0x28eb85;throw new Error(_0xedff03(0x409));}[_0x28eb85(0x1db)](){const _0x52f207=_0x28eb85;throw new Error(_0x52f207(0x409));}[_0x28eb85(0x1df)](){const _0x29444b=_0x28eb85;throw new Error(_0x29444b(0x409));}},exports['SnapshotServerOverHTTPService']=gn([lt(0x0,a[_0x28eb85(0x420)]),lt(0x1,a['Inject'](P[_0x28eb85(0x176)]))],exports[_0x28eb85(0x515)]);var mn=Object[_0x28eb85(0x114)],In=Object[_0x28eb85(0x38b)],pn=(_0xcd3011,_0x462022,_0x105a78,_0x528c95)=>{const _0x5dec7f=_0x28eb85;for(var _0x14673a=_0x528c95>0x1?void 0x0:_0x528c95?In(_0x462022,_0x105a78):_0x462022,_0x348a06=_0xcd3011[_0x5dec7f(0x355)]-0x1,_0x47ee28;_0x348a06>=0x0;_0x348a06--)(_0x47ee28=_0xcd3011[_0x348a06])&&(_0x14673a=(_0x528c95?_0x47ee28(_0x462022,_0x105a78,_0x14673a):_0x47ee28(_0x14673a))||_0x14673a);return _0x528c95&&_0x14673a&&mn(_0x462022,_0x105a78,_0x14673a),_0x14673a;},_e=(_0x19062c,_0x263ca3)=>(_0x23b1a3,_0x128df7)=>_0x263ca3(_0x23b1a3,_0x128df7,_0x19062c);let Be=class extends a[_0x28eb85(0x4bc)]{constructor(_0x5b9e56,_0x15d1ff,_0x225e35,_0x4f21cd,_0x7481b4){const _0x4671c8=_0x28eb85;super(_0x5b9e56,_0x15d1ff,_0x225e35),this[_0x4671c8(0x294)]=_0x4f21cd,this['_logService']=_0x7481b4;}[_0x28eb85(0x15a)](_0x4e23a9,_0x959415){const _0x4e72ba=_0x28eb85,_0x240a14=this[_0x4e72ba(0x267)](_0x4e23a9);if(_0x240a14)try{const _0x4d355b=this[_0x4e72ba(0x3c3)](_0x240a14,_0x959415);this[_0x4e72ba(0x38a)](_0x4e23a9,_0x4d355b);}catch(_0x44d678){this[_0x4e72ba(0x1a7)][_0x4e72ba(0x533)]('[CollaborationUndoRedoService]',_0x44d678),this['_clearUndo'](_0x4e23a9);}const _0x3a6647=this[_0x4e72ba(0x1c3)](_0x4e23a9);if(_0x3a6647)try{const _0x595169=this[_0x4e72ba(0x3c3)](_0x3a6647,_0x959415);this['_substituteRedoStack'](_0x4e23a9,_0x595169);}catch(_0x5a6d63){this[_0x4e72ba(0x1a7)][_0x4e72ba(0x533)](_0x5a6d63),this[_0x4e72ba(0x206)](_0x4e23a9);}}[_0x28eb85(0x12e)](_0x370d61){const _0x3e467d=_0x28eb85,_0xd71e18=this[_0x3e467d(0x267)](_0x370d61);_0xd71e18&&(_0xd71e18[_0x3e467d(0x355)]=0x0,this['_updateStatus']());}['_clearRedo'](_0xb9c989){const _0x4731d9=_0x28eb85,_0x4c5ea0=this[_0x4731d9(0x1c3)](_0xb9c989);_0x4c5ea0&&(_0x4c5ea0['length']=0x0,this[_0x4731d9(0x15b)]());}['_substituteUndoStack'](_0x3ed1bc,_0x2c62a3){const _0x428e2d=_0x28eb85;this[_0x428e2d(0x381)][_0x428e2d(0x191)](_0x3ed1bc,_0x2c62a3),this[_0x428e2d(0x15b)]();}[_0x28eb85(0x326)](_0x5acfe2,_0x4007a6){const _0x2669d1=_0x28eb85;this['_redoStacks'][_0x2669d1(0x191)](_0x5acfe2,_0x4007a6),this[_0x2669d1(0x15b)]();}['_transformStack'](_0x458591,_0x5ac37c){const _0x1e0f60=_0x28eb85,_0x4480f4=[];let _0x4bfa4f=_0x5ac37c,_0x1b06f3=_0x5ac37c;for(let _0x2642fb=_0x458591[_0x1e0f60(0x355)]-0x1;_0x2642fb>=0x0;_0x2642fb--){const {unitID:_0x1ea307,undoMutations:_0x187913,redoMutations:_0x37ffee}=_0x458591[_0x2642fb],_0x51ae7a=this[_0x1e0f60(0x294)][_0x1e0f60(0x3ff)](_0x4bfa4f,_0x187913),_0x10dd2d=this['_transformService'][_0x1e0f60(0x3ff)](_0x1b06f3,_0x37ffee);if(_[_0x1e0f60(0x4f2)](_0x51ae7a)||_[_0x1e0f60(0x4f2)](_0x10dd2d)){this[_0x1e0f60(0x1a7)][_0x1e0f60(0x533)](_0x1e0f60(0x2bc),'transformStack\x20failed!',_0x51ae7a,_0x10dd2d);break;}_0x4bfa4f=_0x51ae7a[_0x1e0f60(0x338)],_0x1b06f3=_0x10dd2d[_0x1e0f60(0x338)],_0x4480f4[_0x1e0f60(0x3f4)]({'unitID':_0x1ea307,'undoMutations':_0x51ae7a[_0x1e0f60(0x480)],'redoMutations':_0x10dd2d['m2Prime']});}return _0x4480f4['reverse']();}};Be=pn([_e(0x0,a[_0x28eb85(0x286)]),_e(0x1,a['ICommandService']),_e(0x2,a[_0x28eb85(0x4bb)]),_e(0x3,_['ITransformService']),_e(0x4,a[_0x28eb85(0x155)])],Be);class Nt extends a[_0x28eb85(0x2f9)]{constructor(){const _0x327a4d=_0x28eb85;super(),d(this,'urlChange$'),this['urlChange$']=v[_0x327a4d(0x33b)](window,_0x327a4d(0x161))[_0x327a4d(0x495)](v[_0x327a4d(0x256)](this[_0x327a4d(0x2fb)]),v[_0x327a4d(0x1c6)](0x1),v['mapTo'](void 0x0));}[_0x28eb85(0x119)](_0x225edf,_0x38fa08,_0x318dae=!0x1){const _0x51d2b9=_0x28eb85,_0x382165=new URL(window[_0x51d2b9(0x4b4)][_0x51d2b9(0x18d)]);_0x382165['searchParams'][_0x51d2b9(0x191)](_0x225edf,_0x38fa08),_0x318dae?window[_0x51d2b9(0x315)][_0x51d2b9(0x117)]('','',_0x382165['toString']()):window[_0x51d2b9(0x315)][_0x51d2b9(0x238)]('','',_0x382165[_0x51d2b9(0x45e)]());}[_0x28eb85(0x1af)](_0x449b28,_0x42a4b5=!0x1){const _0xb1d3c8=_0x28eb85,_0x4d998b=new URL(window[_0xb1d3c8(0x4b4)][_0xb1d3c8(0x18d)]);_0x4d998b[_0xb1d3c8(0x361)][_0xb1d3c8(0x25f)](_0x449b28),_0x42a4b5?window[_0xb1d3c8(0x315)][_0xb1d3c8(0x117)]('','',_0x4d998b[_0xb1d3c8(0x45e)]()):window[_0xb1d3c8(0x315)][_0xb1d3c8(0x238)]('','',_0x4d998b[_0xb1d3c8(0x45e)]());}[_0x28eb85(0x497)](_0x4d90f3){const _0x5ae31f=_0x28eb85;var _0x3ae7ba;return(_0x3ae7ba=new URL(window[_0x5ae31f(0x4b4)][_0x5ae31f(0x18d)])[_0x5ae31f(0x361)][_0x5ae31f(0x30d)](_0x4d90f3))!=null?_0x3ae7ba:void 0x0;}}var At=Object[_0x28eb85(0x114)],Cn=Object[_0x28eb85(0x38b)],En=(_0xd062c3,_0x2071ab,_0x10f155)=>_0x2071ab in _0xd062c3?At(_0xd062c3,_0x2071ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10f155}):_0xd062c3[_0x2071ab]=_0x10f155,bn=(_0x4eefcd,_0x190c67,_0x607bb3,_0x1d7d53)=>{for(var _0x57d440=_0x1d7d53>0x1?void 0x0:_0x1d7d53?Cn(_0x190c67,_0x607bb3):_0x190c67,_0xfa145d=_0x4eefcd['length']-0x1,_0x5dedc0;_0xfa145d>=0x0;_0xfa145d--)(_0x5dedc0=_0x4eefcd[_0xfa145d])&&(_0x57d440=(_0x1d7d53?_0x5dedc0(_0x190c67,_0x607bb3,_0x57d440):_0x5dedc0(_0x57d440))||_0x57d440);return _0x1d7d53&&_0x57d440&&At(_0x190c67,_0x607bb3,_0x57d440),_0x57d440;},ve=(_0x210e34,_0x17e7d9)=>(_0x43e063,_0x46ba5d)=>_0x17e7d9(_0x43e063,_0x46ba5d,_0x210e34),Tn=(_0x3d01f4,_0x2bc17a,_0x3d6fba)=>En(_0x3d01f4,_0x2bc17a+'',_0x3d6fba);const Rn=_0x28eb85(0x4ae);exports[_0x28eb85(0x4d5)]=class extends a[_0x28eb85(0x289)]{constructor(_0x54345a=ts,_0x36ac39,_0x1b61aa,_0x121152,_0x315d31){const _0x42ec85=_0x28eb85;super(),this[_0x42ec85(0x464)]=_0x54345a,this[_0x42ec85(0x1a7)]=_0x36ac39,this['_renderManagerService']=_0x1b61aa,this['_injector']=_0x121152,this[_0x42ec85(0x4d8)]=_0x315d31;const {..._0x585d2e}=this['_config'];this[_0x42ec85(0x4d8)][_0x42ec85(0x158)](A,_0x585d2e);}[_0x28eb85(0x3b6)](){const _0x4418bd=_0x28eb85;this[_0x4418bd(0x11e)](),a['touchDependencies'](this['_injector'],[[ie],[exports[_0x4418bd(0x4e8)]],[Ee]]);}[_0x28eb85(0x1b6)](){const _0x411e91=_0x28eb85;a[_0x411e91(0x4d0)](this[_0x411e91(0x152)],[[Ie]]);}[_0x28eb85(0x27a)](){const _0x95dc84=_0x28eb85;this[_0x95dc84(0x4ca)]();}[_0x28eb85(0x11e)](){const _0x247002=_0x28eb85;var _0x4d8ceb,_0x3ce449,_0x4ba0fc,_0x1cf457;this[_0x247002(0x152)][_0x247002(0x186)](a[_0x247002(0x247)])&&this[_0x247002(0x1a7)][_0x247002(0x533)](_0x247002(0x44d),_0x247002(0x45a));let _0x494c9e=[[a['IUndoRedoService'],{'useClass':Be}],[exports['CollaborationSessionService']],[Xe],[P['HTTPService']],[ze,{'useClass':Nt}],[q],[exports['LocalCacheService']],[P[_0x247002(0x2a1)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x3ce449=(_0x4d8ceb=this[_0x247002(0x464)])==null?void 0x0:_0x4d8ceb[_0x247002(0x283)])!=null?_0x3ce449:exports[_0x247002(0x41a)]}],[P['IHTTPImplementation'],{'useClass':P[_0x247002(0x30e)]}],[_[_0x247002(0x383)],{'useClass':exports['SnapshotServerOverHTTPService']}],[a[_0x247002(0x207)],{'useClass':exports['AuthzIoHttpService']}],[L['IImageIoService'],{'useClass':exports[_0x247002(0x281)]}],[exports[_0x247002(0x4af)]],[exports['DataLoaderController']],[exports[_0x247002(0x190)]],[Ie],[ie]];(_0x4ba0fc=this[_0x247002(0x464)])!=null&&_0x4ba0fc[_0x247002(0x264)]&&_0x494c9e[_0x247002(0x3f4)]([be,{'useClass':ys}]),_0x494c9e=a[_0x247002(0x446)](_0x494c9e,(_0x1cf457=this[_0x247002(0x464)])==null?void 0x0:_0x1cf457['override']),_0x494c9e[_0x247002(0x2bf)](_0x5b2ccd=>this[_0x247002(0x152)]['add'](_0x5b2ccd)),this['_initModules']();}[_0x28eb85(0x4ca)](){const _0x5f566d=_0x28eb85;this[_0x5f566d(0x214)](this[_0x5f566d(0x272)][_0x5f566d(0x3c5)](a[_0x5f566d(0x24a)][_0x5f566d(0x43a)],[xe])),this[_0x5f566d(0x214)](this['_renderManagerService'][_0x5f566d(0x3c5)](a[_0x5f566d(0x24a)][_0x5f566d(0x384)],[ke]));}[_0x28eb85(0x1d2)](){const _0x4a5ebd=_0x28eb85;var _0x29f6f5,_0x1f6bc1;this[_0x4a5ebd(0x152)][_0x4a5ebd(0x30d)](P[_0x4a5ebd(0x176)])[_0x4a5ebd(0x188)]({'priority':0x14,'interceptor':P[_0x4a5ebd(0x42b)]({'maxParallel':0x6})}),this[_0x4a5ebd(0x152)]['get'](Ce),(_0x29f6f5=this[_0x4a5ebd(0x464)])!=null&&_0x29f6f5[_0x4a5ebd(0x41f)]||this[_0x4a5ebd(0x152)][_0x4a5ebd(0x30d)](exports[_0x4a5ebd(0x1f5)])[_0x4a5ebd(0x180)](),(_0x1f6bc1=this[_0x4a5ebd(0x464)])!=null&&_0x1f6bc1[_0x4a5ebd(0x142)]&&this[_0x4a5ebd(0x152)][_0x4a5ebd(0x30d)](pe),this[_0x4a5ebd(0x152)]['get'](exports['CollaborationController']),this[_0x4a5ebd(0x152)]['has'](exports[_0x4a5ebd(0x190)])&&this['_injector'][_0x4a5ebd(0x30d)](exports['DesktopCollaborationStatusDisplayController']);}},Tn(exports[_0x28eb85(0x4d5)],_0x28eb85(0x20c),Rn),exports['UniverCollaborationClientPlugin']=bn([a[_0x28eb85(0x4a8)](_[_0x28eb85(0x1a4)]),ve(0x1,a['ILogService']),ve(0x2,R[_0x28eb85(0x209)]),ve(0x3,a[_0x28eb85(0x23f)](a[_0x28eb85(0x1b3)])),ve(0x4,a[_0x28eb85(0x420)])],exports['UniverCollaborationClientPlugin']),exports[_0x28eb85(0x448)]=Mt,exports[_0x28eb85(0x29d)]=gt,exports[_0x28eb85(0x163)]=ut,exports[_0x28eb85(0x255)]=y,exports[_0x28eb85(0x20e)]=wt,exports[_0x28eb85(0x474)]=Ge,exports[_0x28eb85(0x3d6)]=dt,exports[_0x28eb85(0x308)]=Ve,exports['ICollaborationSocketService']=Fe,exports[_0x28eb85(0x27e)]=ze,exports[_0x28eb85(0x38d)]=ft,exports[_0x28eb85(0x4c1)]=mt,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=vt,exports[_0x28eb85(0x2ac)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x28eb85(0x39a)]=_t,exports[_0x28eb85(0x2a4)]=$,exports[_0x28eb85(0x241)]=Ot,exports[_0x28eb85(0x375)]=Nt,exports[_0x28eb85(0x329)]=Ct,exports[_0x28eb85(0x3c0)]=Et;
1
+ 'use strict';const _0x945337=_0x38f3;(function(_0xa48716,_0x1119e9){const _0x7353fd=_0x38f3,_0x137d20=_0xa48716();while(!![]){try{const _0xc56291=parseInt(_0x7353fd(0x560))/0x1+parseInt(_0x7353fd(0x364))/0x2+-parseInt(_0x7353fd(0x192))/0x3+parseInt(_0x7353fd(0x17b))/0x4*(-parseInt(_0x7353fd(0x2b0))/0x5)+-parseInt(_0x7353fd(0x461))/0x6+parseInt(_0x7353fd(0x3ec))/0x7+parseInt(_0x7353fd(0x1c5))/0x8*(-parseInt(_0x7353fd(0x185))/0x9);if(_0xc56291===_0x1119e9)break;else _0x137d20['push'](_0x137d20['shift']());}catch(_0x2a6b6d){_0x137d20['push'](_0x137d20['shift']());}}}(_0x336a,0x494bf));var kt=Object[_0x945337(0x24b)],Bt=(_0x1c9b74,_0x4d1cca,_0x453581)=>_0x4d1cca in _0x1c9b74?kt(_0x1c9b74,_0x4d1cca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x453581}):_0x1c9b74[_0x4d1cca]=_0x453581,d=(_0x3206a2,_0x339db8,_0x557312)=>Bt(_0x3206a2,typeof _0x339db8!='symbol'?_0x339db8+'':_0x339db8,_0x557312);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x945337(0x30d)});const a=require(_0x945337(0x49f)),v=require(_0x945337(0x1fc)),E=require(_0x945337(0x3b4)),X=require(_0x945337(0x26f)),N=require(_0x945337(0x553)),P=require(_0x945337(0x2f6)),_=require(_0x945337(0x1e1)),Vt=require(_0x945337(0x189)),V=require('@univerjs/docs'),w=require(_0x945337(0x53b)),C=require(_0x945337(0x381)),R=require(_0x945337(0x236)),L=require(_0x945337(0x291)),Je=require(_0x945337(0x418)),te=require('@univerjs/sheets-ui'),U=require(_0x945337(0x3d6)),Wt=require(_0x945337(0x3a9)),Ft=require(_0x945337(0x4e8)),ht=_0x945337(0x54e),Gt=_0x945337(0x413),_t=_0x945337(0x438),Yt=_0x945337(0x46c),Kt=0x7d0,ut='COLLAB_WEB_SOCKET_URL',Xt=_0x945337(0x25b),dt=_0x945337(0x380),qt=0x7530,Ve=_0x945337(0x535),St=0x4e20,zt=0x4e20,vt='RETRY_CONNECTING_MAX_COUNT',Jt=0x3,ft=_0x945337(0x55b),Zt=0x3e8,gt=_0x945337(0x374),Qt=_0x945337(0x35c),mt=_0x945337(0x2d4),es=_0x945337(0x308);var It=(_0x39ad3a=>(_0x39ad3a[_0x39ad3a[_0x945337(0x276)]=0x0]=_0x945337(0x276),_0x39ad3a[_0x39ad3a['OK']=0x1]='OK',_0x39ad3a[_0x39ad3a[_0x945337(0x2ef)]=0x2]=_0x945337(0x2ef),_0x39ad3a[_0x39ad3a[_0x945337(0x190)]=0x3]=_0x945337(0x190),_0x39ad3a[_0x39ad3a[_0x945337(0x4dc)]=0x4]=_0x945337(0x4dc),_0x39ad3a[_0x39ad3a[_0x945337(0x355)]=0x5]=_0x945337(0x355),_0x39ad3a[_0x39ad3a[_0x945337(0x281)]=0x6]=_0x945337(0x281),_0x39ad3a[_0x39ad3a[_0x945337(0x1cb)]=0x7]='INVALID_ARGUMENT',_0x39ad3a[_0x39ad3a[_0x945337(0x229)]=0x8]=_0x945337(0x229),_0x39ad3a[_0x39ad3a[_0x945337(0x29e)]=0x9]=_0x945337(0x29e),_0x39ad3a[_0x39ad3a[_0x945337(0x2c2)]=0x1389]=_0x945337(0x2c2),_0x39ad3a[_0x39ad3a[_0x945337(0x541)]=0x1771]=_0x945337(0x541),_0x39ad3a[_0x39ad3a[_0x945337(0x48f)]=0x1772]=_0x945337(0x48f),_0x39ad3a[_0x39ad3a[_0x945337(0x537)]=0x1b59]=_0x945337(0x537),_0x39ad3a[_0x39ad3a[_0x945337(0x273)]=0x1b5a]=_0x945337(0x273),_0x39ad3a[_0x39ad3a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x945337(0x3e7),_0x39ad3a[_0x39ad3a[_0x945337(0x575)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x39ad3a[_0x39ad3a[_0x945337(0x4f6)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x39ad3a[_0x39ad3a[_0x945337(0x2da)]=0x2329]=_0x945337(0x2da),_0x39ad3a[_0x39ad3a[_0x945337(0x347)]=0x232a]=_0x945337(0x347),_0x39ad3a[_0x39ad3a[_0x945337(0x18b)]=0x232b]=_0x945337(0x18b),_0x39ad3a[_0x39ad3a[_0x945337(0x3bb)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x39ad3a[_0x39ad3a['LICENSE_DISTRO_REJECTED']=0x232d]=_0x945337(0x34b),_0x39ad3a[_0x39ad3a[_0x945337(0x492)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x39ad3a[_0x39ad3a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x945337(0x1b9),_0x39ad3a[_0x39ad3a[_0x945337(0x3a0)]=0x2713]=_0x945337(0x3a0),_0x39ad3a[_0x39ad3a[_0x945337(0x1bd)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x39ad3a[_0x39ad3a[_0x945337(0x202)]=-0x1]='UNRECOGNIZED',_0x39ad3a))(It||{}),j=(_0x5c47d7=>(_0x5c47d7[_0x5c47d7[_0x945337(0x52e)]=0x0]=_0x945337(0x52e),_0x5c47d7[_0x5c47d7['UNIVER_DOC']=0x1]=_0x945337(0x395),_0x5c47d7[_0x5c47d7['UNIVER_SHEET']=0x2]=_0x945337(0x53c),_0x5c47d7[_0x5c47d7[_0x945337(0x16e)]=0x3]=_0x945337(0x16e),_0x5c47d7[_0x5c47d7[_0x945337(0x216)]=0x4]=_0x945337(0x216),_0x5c47d7[_0x5c47d7[_0x945337(0x202)]=-0x1]='UNRECOGNIZED',_0x5c47d7))(j||{}),b=(_0x2d3efb=>(_0x2d3efb[_0x2d3efb[_0x945337(0x460)]=0x0]='UNKNOWN_CMD',_0x2d3efb[_0x2d3efb[_0x945337(0x25f)]=0x1]=_0x945337(0x25f),_0x2d3efb[_0x2d3efb[_0x945337(0x4e2)]=0x2]=_0x945337(0x4e2),_0x2d3efb[_0x2d3efb[_0x945337(0x1f3)]=0x3]=_0x945337(0x1f3),_0x2d3efb[_0x2d3efb[_0x945337(0x455)]=0x4]=_0x945337(0x455),_0x2d3efb[_0x2d3efb[_0x945337(0x489)]=0x5]=_0x945337(0x489),_0x2d3efb[_0x2d3efb[_0x945337(0x2f4)]=0x6]=_0x945337(0x2f4),_0x2d3efb[_0x2d3efb[_0x945337(0x202)]=-0x1]=_0x945337(0x202),_0x2d3efb))(b||{}),We=(_0xed2db3=>(_0xed2db3[_0xed2db3[_0x945337(0x3e6)]=0x0]=_0x945337(0x3e6),_0xed2db3[_0xed2db3['OK']=0x1]='OK',_0xed2db3[_0xed2db3['FAIL']=0x2]='FAIL',_0xed2db3[_0xed2db3['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0xed2db3))(We||{}),pt=(_0x49b95a=>(_0x49b95a[_0x49b95a[_0x945337(0x2d2)]=0x0]=_0x945337(0x2d2),_0x49b95a[_0x49b95a[_0x945337(0x557)]=0x1]=_0x945337(0x557),_0x49b95a[_0x49b95a[_0x945337(0x45a)]=0x2]=_0x945337(0x45a),_0x49b95a[_0x49b95a[_0x945337(0x29b)]=0x3]=_0x945337(0x29b),_0x49b95a[_0x49b95a[_0x945337(0x1f2)]=0x4]=_0x945337(0x1f2),_0x49b95a[_0x49b95a[_0x945337(0x202)]=-0x1]=_0x945337(0x202),_0x49b95a))(pt||{});const A=_0x945337(0x4bd),ts={};function Ct(_0xbe7210){const _0x4f89e5=_0x945337;var _0x5d0cba,_0x4b3d07,_0x1a550f,_0x1f3cbb;const _0x218f05=_0xbe7210[_0x4f89e5(0x375)],_0x20c12a=JSON[_0x4f89e5(0x2e0)](_0x218f05);switch(_0x20c12a[_0x4f89e5(0x4ef)]){case b[_0x4f89e5(0x489)]:case b[_0x4f89e5(0x25f)]:{const _0x416509=_0x20c12a[_0x4f89e5(0x3a2)];return{..._0x20c12a,'data':_0x416509,'cmd':_0x20c12a['cmd']};}case b[_0x4f89e5(0x4e2)]:{const _0x41fce4=_0x20c12a[_0x4f89e5(0x29c)];return{..._0x20c12a,'data':_0x41fce4,'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};}case b[_0x4f89e5(0x2f4)]:{const _0x2694f7=_0x20c12a[_0x4f89e5(0x29a)];switch(_0x2694f7[_0x4f89e5(0x170)]){case _['CollaborationEvent'][_0x4f89e5(0x186)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x5d0cba=_0x2694f7['permissionRejEvent'])==null?void 0x0:_0x5d0cba['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x1f1)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x4b3d07=_0x2694f7['csAckEvent'])==null?void 0x0:_0x4b3d07['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x3c6)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x1a550f=_0x2694f7['newCsEvent'])==null?void 0x0:_0x1a550f['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x573)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x1f3cbb=_0x2694f7['csRejEvent'])==null?void 0x0:_0x1f3cbb['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x206)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x20d)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)]['USERS_ENTER']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7['joinEvent']},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x3cb)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x253)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x500)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x245)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x487)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7['liveShareOperation']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x3cd)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x245)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x2d1)]:return{..._0x20c12a,'data':_0x2694f7,'cmd':_0x20c12a['cmd']};case _['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x1e4)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)]['UPDATE_PERMISSION_OBJ']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x360)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x2d8)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x1a1)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};default:return _0x20c12a;}}default:return _0x20c12a;}}function Et(_0x46d26c){const _0x5e43ff=_0x945337;switch(_0x46d26c['cmd']){case b['HEARTBEAT']:case b[_0x5e43ff(0x25f)]:return JSON[_0x5e43ff(0x22d)]({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)]});case b[_0x5e43ff(0x455)]:{let _0x54e5b1;switch(_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x170)]){case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x206)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x206)],'updateCursorEvent':_0x46d26c['data'][_0x5e43ff(0x375)]};break;}case _['CollaborationEvent'][_0x5e43ff(0x3cb)]:{_0x54e5b1={'eventID':_['CollaborationEvent'][_0x5e43ff(0x3cb)],'leaveEvent':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)]['USERS_ENTER']:{_0x54e5b1={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x46d26c[_0x5e43ff(0x375)]['data']};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x500)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x500)],'liveShareNewHost':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)]['LIVESHARE_OPERATION']:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x487)],'liveShareOperation':_0x46d26c[_0x5e43ff(0x375)]['data']};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x3cd)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x3cd)],'liveShareTerminate':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x2c8)]:{_0x54e5b1={'eventID':_['CollaborationEvent'][_0x5e43ff(0x2c8)],'liveShareRequestHost':_0x46d26c['data']['data']};break;}case _['CollaborationEvent'][_0x5e43ff(0x30c)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x30c)]};break;}default:_0x54e5b1={'eventID':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x170)]};}return JSON['stringify']({'cmd':_0x46d26c['cmd'],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)],'collaMsg':_0x54e5b1});}case b['JOIN']:return JSON['stringify']({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)],'joinReq':_0x46d26c[_0x5e43ff(0x375)]});case b['LEAVE']:return JSON[_0x5e43ff(0x22d)]({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c['routeKey'],'leaveReq':_0x46d26c[_0x5e43ff(0x375)]});default:throw new Error(_0x5e43ff(0x432));}}var ss=Object['defineProperty'],is=Object[_0x945337(0x3e2)],ns=(_0xebcb19,_0x4cbdc6,_0x29e0e2,_0x289869)=>{for(var _0x2e668a=_0x289869>0x1?void 0x0:_0x289869?is(_0x4cbdc6,_0x29e0e2):_0x4cbdc6,_0x1c214d=_0xebcb19['length']-0x1,_0xcbe805;_0x1c214d>=0x0;_0x1c214d--)(_0xcbe805=_0xebcb19[_0x1c214d])&&(_0x2e668a=(_0x289869?_0xcbe805(_0x4cbdc6,_0x29e0e2,_0x2e668a):_0xcbe805(_0x2e668a))||_0x2e668a);return _0x289869&&_0x2e668a&&ss(_0x4cbdc6,_0x29e0e2,_0x2e668a),_0x2e668a;},oe=(_0x2e6c81,_0x3c84cf)=>(_0x53455a,_0x4c7450)=>_0x3c84cf(_0x53455a,_0x4c7450,_0x2e6c81);const Fe=a['createIdentifier'](_0x945337(0x2ee));function rs(_0x4e6f08,_0x47b81f,_0x560bf6){const _0x58dd11=_0x945337;return _0x4e6f08+'/'+_0x47b81f+'/unit/'+_0x560bf6+_0x58dd11(0x32c);}exports[_0x945337(0x305)]=class extends a[_0x945337(0x45b)]{constructor(_0x1cb429,_0x1a47a5,_0x176484,_0x27f073,_0x3f598f){const _0x2e8b1b=_0x945337;super(),this[_0x2e8b1b(0x266)]=_0x1cb429,this[_0x2e8b1b(0x390)]=_0x1a47a5,this[_0x2e8b1b(0x4f8)]=_0x176484,this[_0x2e8b1b(0x4ae)]=_0x27f073,this[_0x2e8b1b(0x54d)]=_0x3f598f;}['createSocket'](_0x30e3c8){const _0x3f546f=_0x945337,_0x4857c3=this[_0x3f546f(0x390)][_0x3f546f(0x452)](_0x30e3c8);if(!_0x4857c3)throw new Error(_0x3f546f(0x499));const _0x53f45b=new a[(_0x3f546f(0x275))](),_0x3a71d0=new v[(_0x3f546f(0x36e))]();_0x53f45b[_0x3f546f(0x18a)](_0x4857c3[_0x3f546f(0x343)][_0x3f546f(0x397)](_0x90eefd=>_0x3a71d0[_0x3f546f(0x3ca)](_0x90eefd))),_0x53f45b[_0x3f546f(0x18a)](a[_0x3f546f(0x296)](()=>_0x3a71d0[_0x3f546f(0x531)]()));const _0x1d2c3d=new v['Subject']();_0x53f45b['add'](_0x4857c3[_0x3f546f(0x4b5)]['subscribe'](_0x499ab3=>_0x1d2c3d[_0x3f546f(0x3ca)](_0x499ab3))),_0x53f45b[_0x3f546f(0x18a)](a[_0x3f546f(0x296)](()=>_0x1d2c3d['complete']()));const _0x46a200=new v['Subject']();_0x53f45b[_0x3f546f(0x18a)](_0x4857c3[_0x3f546f(0x3dc)][_0x3f546f(0x397)](_0x58f5b6=>{const _0x737eaf=_0x3f546f,_0xa5fadc=Ct(_0x58f5b6);_0x46a200[_0x737eaf(0x3ca)](_0xa5fadc);})),_0x53f45b[_0x3f546f(0x18a)](a['toDisposable'](()=>_0x46a200[_0x3f546f(0x531)]()));let _0x5879cb;const _0xbe866e=()=>{const _0x282ada=_0x3f546f;_0x1d2c3d[_0x282ada(0x3ca)](new Event('connection\x20error')),_0x3a71d0[_0x282ada(0x3ca)](new CloseEvent(_0x282ada(0x3ae))),_0x5879cb[_0x282ada(0x322)]();};return _0x5879cb={'memberID':'','close$':_0x3a71d0[_0x3f546f(0x19b)](),'error$':_0x1d2c3d[_0x3f546f(0x19b)](),'open$':_0x4857c3[_0x3f546f(0x445)],'message$':_0x46a200['asObservable'](),'send':_0x59cbea=>{const _0x41a3c0=_0x3f546f;if(_0x59cbea[_0x41a3c0(0x4ef)]===b['INGEST']){if(_0x59cbea['data']['eventID']===_[_0x41a3c0(0x4eb)][_0x41a3c0(0x56d)]){this[_0x41a3c0(0x2f7)](_0x5879cb,_0x59cbea['data'])[_0x41a3c0(0x3ff)](_0x1579ce=>{const _0x17c0ec=_0x41a3c0;this[_0x17c0ec(0x4ae)]['error'](_0x1579ce),_0xbe866e();});return;}if(_0x59cbea[_0x41a3c0(0x375)][_0x41a3c0(0x170)]===_[_0x41a3c0(0x4eb)][_0x41a3c0(0x51d)]){const _0x3eed85=_0x59cbea[_0x41a3c0(0x375)];this[_0x41a3c0(0x412)](_0x3eed85)['then'](_0x3d2fca=>{const _0x26f5fe=_0x41a3c0;_0x46a200[_0x26f5fe(0x3ca)]({'cmd':b[_0x26f5fe(0x2f4)],'code':We['OK'],'routeKey':_0x3eed85[_0x26f5fe(0x375)][_0x26f5fe(0x1da)],'routeType':'','data':{'eventID':_[_0x26f5fe(0x4eb)][_0x26f5fe(0x4b7)],'data':{'changesets':_0x3d2fca}}});})['catch'](_0x64e661=>{const _0x3d1ae8=_0x41a3c0;this[_0x3d1ae8(0x4ae)]['error'](_0x64e661),_0xbe866e();});return;}}_0x4857c3['send'](Et(_0x59cbea));},'close':()=>{const _0x1aaa0f=_0x3f546f;_0x4857c3[_0x1aaa0f(0x322)](),_0x53f45b['dispose']();}},_0x5879cb;}async['_submitChangeset'](_0x466b29,_0x25b373){const _0x1e60b6=_0x945337;var _0x88ac27,_0x285af7;const {unitType:_0x5d086a,unitID:_0x6b1d6b,changeset:_0x120925}=_0x25b373[_0x1e60b6(0x375)],_0x411a8c={'unitID':_0x6b1d6b,'memberID':_0x466b29[_0x1e60b6(0x2ab)],'type':_0x5d086a,'changeset':_[_0x1e60b6(0x21d)](_0x120925)},_0x2ce0f4=this[_0x1e60b6(0x4f8)][_0x1e60b6(0x258)](gt),_0x6ea042=this['_configService'][_0x1e60b6(0x258)](A),_0x5bc3ad=rs((_0x285af7=(_0x88ac27=_0x6ea042==null?void 0x0:_0x6ea042[_0x1e60b6(0x377)])!=null?_0x88ac27:_0x2ce0f4)!=null?_0x285af7:Qt,_0x5d086a,_0x6b1d6b);try{await this['_http']['post'](_0x5bc3ad,{'body':_0x411a8c});}catch(_0x5d3d5d){throw this['_logService']['error'](_0x1e60b6(0x393),'submit\x20changeset\x20error!'),_0x5d3d5d;}}async[_0x945337(0x412)](_0x53a62b){const _0x4c7c3d=_0x945337,{unitID:_0x5b423d,from:_0x20ffbc,to:_0x5994ee,unitType:_0x11001b}=_0x53a62b[_0x4c7c3d(0x375)];return(await this[_0x4c7c3d(0x54d)][_0x4c7c3d(0x55d)]({'metadata':void 0x0},{'unitID':_0x5b423d,'type':_0x11001b,'from':_0x20ffbc,'to':_0x5994ee}))[_0x4c7c3d(0x37c)];}},exports['CollaborationSocketService']=ns([oe(0x0,a[_0x945337(0x4fa)](P[_0x945337(0x22e)])),oe(0x1,a[_0x945337(0x4fa)](P['WebSocketService'])),oe(0x2,a[_0x945337(0x1f7)]),oe(0x3,a[_0x945337(0x48c)]),oe(0x4,_['ISnapshotServerService'])],exports[_0x945337(0x305)]);const os=_0x945337(0x4b8);function as(_0x34430c){const _0x3036ed=_0x945337;return JSON[_0x3036ed(0x22d)](_0x34430c)['length'];}class Ge{constructor(){const _0x3eb5ef=_0x945337;d(this,_0x3eb5ef(0x2a1),new v['Subject']()),d(this,'commentUpdate$',this['_commentUpdate$'][_0x3eb5ef(0x19b)]());}['onCommentUpdate'](_0x578e8b){const _0x4eac04=_0x945337;this[_0x4eac04(0x2a1)]['next'](_0x578e8b);}}var cs=Object[_0x945337(0x24b)],ls=Object[_0x945337(0x3e2)],hs=(_0x1883e5,_0x58e953,_0x1cc1b8,_0x1625b1)=>{for(var _0x1046ad=_0x1625b1>0x1?void 0x0:_0x1625b1?ls(_0x58e953,_0x1cc1b8):_0x58e953,_0x10ace6=_0x1883e5['length']-0x1,_0xf467a;_0x10ace6>=0x0;_0x10ace6--)(_0xf467a=_0x1883e5[_0x10ace6])&&(_0x1046ad=(_0x1625b1?_0xf467a(_0x58e953,_0x1cc1b8,_0x1046ad):_0xf467a(_0x1046ad))||_0x1046ad);return _0x1625b1&&_0x1046ad&&cs(_0x58e953,_0x1cc1b8,_0x1046ad),_0x1046ad;},Ze=(_0x342364,_0x23698e)=>(_0x428d5d,_0x1033e2)=>_0x23698e(_0x428d5d,_0x1033e2,_0x342364);let q=class extends a[_0x945337(0x45b)]{constructor(_0x24f0ac,_0x25ff0c){const _0x46e7b9=_0x945337;super(),d(this,_0x46e7b9(0x568),new Map()),(this[_0x46e7b9(0x337)]=_0x24f0ac,this['_userManagerService']=_0x25ff0c,this[_0x46e7b9(0x50a)](a[_0x46e7b9(0x296)](v['merge'](this[_0x46e7b9(0x337)]['getTypeOfUnitDisposed$'](a[_0x46e7b9(0x3b1)][_0x46e7b9(0x53c)])[_0x46e7b9(0x550)](E[_0x46e7b9(0x2c1)](_0x3c3c91=>_0x3c3c91[_0x46e7b9(0x352)]())),this[_0x46e7b9(0x337)][_0x46e7b9(0x18e)](a[_0x46e7b9(0x3b1)]['UNIVER_DOC'])[_0x46e7b9(0x550)](E['map'](_0x4e78ab=>_0x4e78ab['getUnitId']())),this[_0x46e7b9(0x337)][_0x46e7b9(0x18e)](a['UniverInstanceType'][_0x46e7b9(0x16e)])[_0x46e7b9(0x550)](E[_0x46e7b9(0x2c1)](_0xacf866=>_0xacf866['getUnitId']())))['subscribe'](_0x23c54b=>this[_0x46e7b9(0x469)](_0x23c54b)))));}[_0x945337(0x342)](_0x470da6){const _0x38228f=_0x945337;this[_0x38228f(0x569)][_0x38228f(0x342)](_0x470da6);}[_0x945337(0x307)](){const _0x5bb3c2=_0x945337;return this['_userManagerService'][_0x5bb3c2(0x307)]();}[_0x945337(0x181)](_0x2bb2a8,_0x2fd658){const _0x4c4787=_0x945337;let _0x3db60e=this[_0x4c4787(0x568)]['get'](_0x2bb2a8);_0x3db60e||(_0x3db60e=new _s(),this[_0x4c4787(0x568)]['set'](_0x2bb2a8,_0x3db60e)),_0x3db60e[_0x4c4787(0x181)](_0x2fd658);}[_0x945337(0x41c)](_0x5f22c2,_0x5e3701){const _0x5dee8b=_0x945337,_0x4c6818=this[_0x5dee8b(0x568)][_0x5dee8b(0x3eb)](_0x5f22c2);_0x4c6818&&_0x4c6818['removeMember'](_0x5e3701);}[_0x945337(0x1c2)](_0x2e1160){const _0x5446a2=_0x945337;return this[_0x5446a2(0x568)][_0x5446a2(0x3eb)](_0x2e1160);}[_0x945337(0x467)](_0x591069,_0x3c53bc){const _0x7ed942=_0x945337,_0x12f3e3=this[_0x7ed942(0x568)][_0x7ed942(0x3eb)](_0x591069);if(_0x12f3e3)return _0x12f3e3[_0x7ed942(0x467)](_0x3c53bc);}[_0x945337(0x469)](_0x58459c){const _0x185a09=_0x945337,_0x5a973c=this[_0x185a09(0x568)][_0x185a09(0x3eb)](_0x58459c);_0x5a973c&&(_0x5a973c[_0x185a09(0x1eb)](),this[_0x185a09(0x568)][_0x185a09(0x532)](_0x58459c));}[_0x945337(0x1eb)](){const _0x5017dd=_0x945337;this[_0x5017dd(0x568)][_0x5017dd(0x278)](_0x3684d0=>_0x3684d0[_0x5017dd(0x1eb)]()),this[_0x5017dd(0x568)][_0x5017dd(0x196)]();}};q=hs([Ze(0x0,a[_0x945337(0x57b)]),Ze(0x1,a[_0x945337(0x4fa)](a[_0x945337(0x40e)]))],q);class _s extends a[_0x945337(0x45b)]{constructor(){const _0xb94c1=_0x945337;super(...arguments),d(this,_0xb94c1(0x428),new Map());}[_0x945337(0x1eb)](){const _0x38c9ac=_0x945337;this[_0x38c9ac(0x428)]['clear']();}[_0x945337(0x181)](_0xe4898d){const _0x45bfe3=_0x945337;this[_0x45bfe3(0x428)][_0x45bfe3(0x4a8)](_0xe4898d[_0x45bfe3(0x2ab)],_0xe4898d);}[_0x945337(0x41c)](_0x12f2fe){const _0x213ff6=_0x945337;this[_0x213ff6(0x428)]['delete'](_0x12f2fe);}[_0x945337(0x467)](_0x4ca019){const _0x4b352d=_0x945337;return this[_0x4b352d(0x428)]['get'](_0x4ca019);}}var us=Object[_0x945337(0x24b)],ds=Object[_0x945337(0x3e2)],Ss=(_0x1165ab,_0x36cec5,_0x5607e9,_0x6872ec)=>{const _0x2cd50c=_0x945337;for(var _0x54460d=_0x6872ec>0x1?void 0x0:_0x6872ec?ds(_0x36cec5,_0x5607e9):_0x36cec5,_0x5ed831=_0x1165ab[_0x2cd50c(0x3f0)]-0x1,_0x12d68c;_0x5ed831>=0x0;_0x5ed831--)(_0x12d68c=_0x1165ab[_0x5ed831])&&(_0x54460d=(_0x6872ec?_0x12d68c(_0x36cec5,_0x5607e9,_0x54460d):_0x12d68c(_0x54460d))||_0x54460d);return _0x6872ec&&_0x54460d&&us(_0x36cec5,_0x5607e9,_0x54460d),_0x54460d;},B=(_0x1507b6,_0x358d44)=>(_0xbecf55,_0xb20be8)=>_0x358d44(_0xbecf55,_0xb20be8,_0x1507b6),$=(_0x4587ff=>(_0x4587ff[_0x4587ff['IDLE']=0x0]=_0x945337(0x263),_0x4587ff[_0x4587ff[_0x945337(0x399)]=0x1]=_0x945337(0x399),_0x4587ff[_0x4587ff['OFFLINE']=0x2]=_0x945337(0x482),_0x4587ff[_0x4587ff['ONLINE']=0x3]=_0x945337(0x42e),_0x4587ff))($||{});exports[_0x945337(0x30a)]=class extends a[_0x945337(0x538)]{constructor(_0x572415,_0x359569,_0x3321de,_0x468498,_0x18876b,_0x46c56e,_0x57f218,_0x123122,_0x5ef093,_0x5e2711){const _0x182f59=_0x945337;super(),d(this,_0x182f59(0x310),new v[(_0x182f59(0x52c))](0x0)),d(this,'sessionStatus$',this[_0x182f59(0x310)][_0x182f59(0x19b)]()),d(this,_0x182f59(0x51b),new v[(_0x182f59(0x36e))]()),d(this,_0x182f59(0x23f),this[_0x182f59(0x51b)][_0x182f59(0x19b)]()),d(this,_0x182f59(0x3fe)),d(this,_0x182f59(0x45e)),d(this,_0x182f59(0x57a)),d(this,_0x182f59(0x338),!0x1),d(this,_0x182f59(0x237),null),(this[_0x182f59(0x20f)]=_0x572415,this[_0x182f59(0x4ae)]=_0x3321de,this[_0x182f59(0x22a)]=_0x468498,this[_0x182f59(0x392)]=_0x18876b,this[_0x182f59(0x4f8)]=_0x46c56e,this[_0x182f59(0x21a)]=_0x57f218,this[_0x182f59(0x526)]=_0x123122,this[_0x182f59(0x4cd)]=_0x5ef093,this[_0x182f59(0x2b8)]=_0x5e2711,this['_shouldReportTelemetry']=!!this[_0x182f59(0x2b8)],_0x359569[_0x182f59(0x550)](v[_0x182f59(0x43c)](this[_0x182f59(0x2ec)]))[_0x182f59(0x397)](_0xbb71fd=>{const _0xd140db=_0x182f59;var _0x55976e;typeof _0xbb71fd>'u'||(this[_0xd140db(0x3fe)]=_0xbb71fd,_0xbb71fd?(this[_0xd140db(0x1cd)](_0xbb71fd),this[_0xd140db(0x45e)]=_0xbb71fd[_0xd140db(0x3dc)][_0xd140db(0x397)](_0x2aa116=>{const _0x359701=_0xd140db;_0x2aa116[_0x359701(0x1c6)]===this[_0x359701(0x20f)]&&this[_0x359701(0x51c)](_0x2aa116);})):(this[_0xd140db(0x232)](),this[_0xd140db(0x310)][_0xd140db(0x3ca)](0x2),(_0x55976e=this['_socketMessageSubscription'])==null||_0x55976e[_0xd140db(0x346)](),this['_socketMessageSubscription']=null));}),this[_0x182f59(0x50a)](this[_0x182f59(0x22a)][_0x182f59(0x46e)](()=>{const _0x2837b1=_0x182f59;var _0x375720;(_0x375720=this['_socket'])==null||_0x375720[_0x2837b1(0x2a2)]({'cmd':b[_0x2837b1(0x1f3)],'data':{'roomID':this[_0x2837b1(0x20f)]}});})));}get[_0x945337(0x290)](){const _0x258240=_0x945337;return this[_0x258240(0x310)][_0x258240(0x2d6)]();}[_0x945337(0x56a)](){const _0x11faa3=_0x945337;var _0x3d8602,_0x3ce90e;return(_0x3ce90e=(_0x3d8602=this[_0x11faa3(0x3fe)])==null?void 0x0:_0x3d8602[_0x11faa3(0x2ab)])!=null?_0x3ce90e:null;}[_0x945337(0x1eb)](){const _0x1a4215=_0x945337;super['dispose'](),this[_0x1a4215(0x2ec)]['next'](),this[_0x1a4215(0x2ec)][_0x1a4215(0x531)]();}[_0x945337(0x322)](){const _0x197480=_0x945337;var _0x78284d,_0x2336d6;this[_0x197480(0x232)](),(_0x78284d=this[_0x197480(0x3fe)])==null||_0x78284d[_0x197480(0x2a2)]({'cmd':b[_0x197480(0x1f3)],'data':{'roomID':this['_unitID']}}),(_0x2336d6=this['_socket'])==null||_0x2336d6[_0x197480(0x322)](),this[_0x197480(0x51b)]['complete'](),this[_0x197480(0x310)]['complete'](),this['dispose']();}['_onCombEvent'](_0x27ca13){const _0x1a7299=_0x945337;_0x27ca13[_0x1a7299(0x4ef)]===b['JOIN']?this[_0x1a7299(0x326)](_0x27ca13):_0x27ca13[_0x1a7299(0x4ef)]===b[_0x1a7299(0x2f4)]&&this[_0x1a7299(0x1f4)](_0x27ca13);}['_joinRoom'](_0x51de92){const _0x2c8e17=_0x945337;this[_0x2c8e17(0x310)][_0x2c8e17(0x3ca)](0x1),_0x51de92[_0x2c8e17(0x2a2)]({'cmd':b['JOIN'],'routeKey':this[_0x2c8e17(0x20f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2c8e17(0x20f)]}]}});}[_0x945337(0x326)](_0x117680){const _0x2f2c03=_0x945337;var _0x2a03ce;if(_0x117680[_0x2f2c03(0x20c)]===We['FAIL']){this[_0x2f2c03(0x392)][_0x2f2c03(0x411)]({'type':X[_0x2f2c03(0x367)][_0x2f2c03(0x19d)],'content':this[_0x2f2c03(0x21a)]['t'](_0x2f2c03(0x20a))}),this[_0x2f2c03(0x310)]['next'](0x2);return;}this[_0x2f2c03(0x310)][_0x2f2c03(0x3ca)](0x3);const _0x224b14=(_0x2a03ce=_0x117680['data'][_0x2f2c03(0x241)][this[_0x2f2c03(0x20f)]])==null?void 0x0:_0x2a03ce[_0x2f2c03(0x30b)];_0x224b14&&_0x224b14[_0x2f2c03(0x278)](_0x5b2505=>this[_0x2f2c03(0x526)]['updateMember'](this[_0x2f2c03(0x20f)],_0x5b2505));}['_onRecvEvent'](_0x437081){const _0x187221=_0x945337;try{const _0x2613ff=_0x437081[_0x187221(0x375)];switch(_0x2613ff[_0x187221(0x170)]){case _[_0x187221(0x4eb)][_0x187221(0x1d2)]:this[_0x187221(0x50b)](_0x2613ff),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;case _['CollaborationEvent'][_0x187221(0x3cb)]:this['_onUserLeave'](_0x2613ff),this['_event$']['next'](_0x2613ff);break;case _[_0x187221(0x4eb)][_0x187221(0x1f1)]:this[_0x187221(0x52f)](),this[_0x187221(0x1e5)](),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;case _[_0x187221(0x4eb)][_0x187221(0x2d1)]:this[_0x187221(0x4ae)][_0x187221(0x2e8)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x2613ff)),this[_0x187221(0x51b)][_0x187221(0x3ca)](_0x2613ff);break;case _['CollaborationEvent']['COMMENT_UPDATE']:this[_0x187221(0x4cd)][_0x187221(0x39c)](_0x2613ff[_0x187221(0x375)]),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;default:this[_0x187221(0x51b)][_0x187221(0x3ca)](_0x2613ff);}}catch(_0x336304){this[_0x187221(0x4ae)]['error'](_0x336304,_0x437081);}}['_onUserJoin'](_0x1661f5){const _0x4176e1=_0x945337;this[_0x4176e1(0x526)][_0x4176e1(0x181)](this[_0x4176e1(0x20f)],_0x1661f5[_0x4176e1(0x375)]);}[_0x945337(0x3c9)](_0x4f2830){const _0x31085f=_0x945337;this[_0x31085f(0x526)]['removeMember'](this[_0x31085f(0x20f)],_0x4f2830['data'][_0x31085f(0x2ab)]);}async[_0x945337(0x2a2)](_0x48d621,_0x261afa){const _0x4ba1c5=_0x945337;if(this[_0x4ba1c5(0x290)]!==0x3||!this[_0x4ba1c5(0x3fe)])throw new Error(_0x4ba1c5(0x4f1));try{_0x48d621[_0x4ba1c5(0x170)]===_[_0x4ba1c5(0x4eb)][_0x4ba1c5(0x56d)]&&(this[_0x4ba1c5(0x335)](),this[_0x4ba1c5(0x4c1)](_0x48d621)),this[_0x4ba1c5(0x3fe)][_0x4ba1c5(0x2a2)]({'cmd':b[_0x4ba1c5(0x455)],'routeKey':_0x261afa,'routeType':'','data':_0x48d621});}catch(_0x2c4c63){this[_0x4ba1c5(0x4ae)]['error'](_0x2c4c63);}}[_0x945337(0x335)](){const _0x12dda8=_0x945337;var _0x5299eb;this['_collaborationTimeoutTimer']=window[_0x12dda8(0x191)](()=>{const _0x291199=_0x12dda8;this['_collaborationTimeoutTimer']=null,this[_0x291199(0x392)][_0x291199(0x411)]({'type':X[_0x291199(0x367)][_0x291199(0x372)],'content':this['_localeService']['t'](_0x291199(0x388))});},(_0x5299eb=this[_0x12dda8(0x4f8)][_0x12dda8(0x258)](Ve))!=null?_0x5299eb:St);}[_0x945337(0x1e5)](){const _0x2ba216=_0x945337;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x2ba216(0x57a)]),this['_collaborationTimeoutTimer']=null);}[_0x945337(0x4c1)](_0x58bad3){const _0x2ce149=_0x945337;if(!this[_0x2ce149(0x338)])return;const {data:_0x5c9aa7}=_0x58bad3,{unitID:_0x225b38,changeset:_0x68aee1}=_0x5c9aa7,{mutations:_0xb3d02d,type:_0x31fb8c}=_0x68aee1;this[_0x2ce149(0x237)]={'unitId':_0x225b38,'type':_0x31fb8c,'startTime':performance[_0x2ce149(0x405)](),'stopTime':0x0,'duration':0x0,'size':as(_0xb3d02d)};}[_0x945337(0x52f)](){const _0x277cc7=_0x945337;if(this[_0x277cc7(0x338)]){if(!this[_0x277cc7(0x237)]){this[_0x277cc7(0x4ae)][_0x277cc7(0x2e8)](_0x277cc7(0x393),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x277cc7(0x237)][_0x277cc7(0x2f3)]=performance[_0x277cc7(0x405)](),this[_0x277cc7(0x237)][_0x277cc7(0x3ac)]=this[_0x277cc7(0x237)][_0x277cc7(0x2f3)]-this[_0x277cc7(0x237)]['startTime'],this['_telemetryService'][_0x277cc7(0x222)](os,this[_0x277cc7(0x237)]),this[_0x277cc7(0x237)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x298731=_0x945337;this[_0x298731(0x237)]=null;}},exports[_0x945337(0x30a)]=Ss([B(0x2,a[_0x945337(0x48c)]),B(0x3,N[_0x945337(0x4f0)]),B(0x4,N[_0x945337(0x2b2)]),B(0x5,a[_0x945337(0x1f7)]),B(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),B(0x7,a[_0x945337(0x4fa)](q)),B(0x8,a['Inject'](Ge)),B(0x9,a[_0x945337(0x188)](Vt[_0x945337(0x25d)]))],exports[_0x945337(0x30a)]);var vs=Object['defineProperty'],fs=Object[_0x945337(0x3e2)],gs=(_0x145b3f,_0x3338df,_0x807908,_0x3d0c69)=>{for(var _0x51fe1e=_0x3d0c69>0x1?void 0x0:_0x3d0c69?fs(_0x3338df,_0x807908):_0x3338df,_0x37bf5f=_0x145b3f['length']-0x1,_0xeb631a;_0x37bf5f>=0x0;_0x37bf5f--)(_0xeb631a=_0x145b3f[_0x37bf5f])&&(_0x51fe1e=(_0x3d0c69?_0xeb631a(_0x3338df,_0x807908,_0x51fe1e):_0xeb631a(_0x51fe1e))||_0x51fe1e);return _0x3d0c69&&_0x51fe1e&&vs(_0x3338df,_0x807908,_0x51fe1e),_0x51fe1e;},Z=(_0x49fe0d,_0x4b6661)=>(_0x13690c,_0x6c7f17)=>_0x4b6661(_0x13690c,_0x6c7f17,_0x49fe0d);exports[_0x945337(0x3a5)]=class extends a['Disposable']{constructor(_0x152453,_0x49dbe3,_0x107907,_0xdc5d56,_0x150db4,_0x49b705){const _0x1928dc=_0x945337;super(),d(this,'_socket$',new v[(_0x1928dc(0x52c))](void 0x0)),d(this,_0x1928dc(0x2ea),this[_0x1928dc(0x56c)][_0x1928dc(0x19b)]()),d(this,'_candidateSocket',null),d(this,'_sessions',new Map()),d(this,'_status$',new v['BehaviorSubject']($[_0x1928dc(0x263)])),d(this,_0x1928dc(0x259),this[_0x1928dc(0x35a)][_0x1928dc(0x19b)]()),d(this,_0x1928dc(0x554),!0x1),d(this,_0x1928dc(0x480)),d(this,_0x1928dc(0x437),0x0),d(this,'_sendHeartbeatTimer'),d(this,'_timeoutTimer'),(this[_0x1928dc(0x3dd)]=_0x152453,this[_0x1928dc(0x21a)]=_0x49dbe3,this['_messageService']=_0x107907,this['_logService']=_0xdc5d56,this[_0x1928dc(0x4f8)]=_0x150db4,this[_0x1928dc(0x562)]=_0x49b705,this['_initEventListeners']());}get[_0x945337(0x3fe)](){const _0x13f416=_0x945337;return this[_0x13f416(0x56c)][_0x13f416(0x2d6)]();}[_0x945337(0x4d0)](){const _0x3abb76=_0x945337;this['_listenToOfflineEvent'](),this[_0x3abb76(0x3e4)]();}['dispose'](){const _0x2f4e03=_0x945337;super['dispose'](),this[_0x2f4e03(0x175)][_0x2f4e03(0x278)](_0x580052=>_0x580052[_0x2f4e03(0x1eb)]()),this[_0x2f4e03(0x175)][_0x2f4e03(0x196)](),this['_status$']['complete']();}async[_0x945337(0x369)](_0xa3c5d3){const _0x1b143b=_0x945337;if(this[_0x1b143b(0x175)]['has'](_0xa3c5d3))return this[_0x1b143b(0x175)][_0x1b143b(0x3eb)](_0xa3c5d3);this['_tryEnsureSocket']();const _0x22d7b5=this[_0x1b143b(0x3dd)][_0x1b143b(0x39d)](exports[_0x1b143b(0x30a)],_0xa3c5d3,this[_0x1b143b(0x56c)]['asObservable']());return this[_0x1b143b(0x175)][_0x1b143b(0x4a8)](_0xa3c5d3,_0x22d7b5),_0x22d7b5;}[_0x945337(0x350)](_0x95b134){const _0x4ef981=_0x945337;var _0x2f3671;const _0x3f53f5=this[_0x4ef981(0x175)][_0x4ef981(0x3eb)](_0x95b134);_0x3f53f5&&(this[_0x4ef981(0x175)]['delete'](_0x95b134),_0x3f53f5[_0x4ef981(0x322)]()),this[_0x4ef981(0x175)][_0x4ef981(0x17e)]||(_0x2f3671=this[_0x4ef981(0x3fe)])==null||_0x2f3671[_0x4ef981(0x322)]();}['reconnect'](){const _0x1b252d=_0x945337;this[_0x1b252d(0x437)]=0x0,this[_0x1b252d(0x480)]!=null&&(clearTimeout(this[_0x1b252d(0x480)]),this[_0x1b252d(0x480)]=null),this[_0x1b252d(0x483)]();}[_0x945337(0x3c3)](){const _0xb546dd=_0x945337;var _0x32fa8c,_0x48ad4b;const _0xe4ac42=this[_0xb546dd(0x4f8)][_0xb546dd(0x258)](ut),_0x1eee85=this[_0xb546dd(0x4f8)]['getConfig'](A),_0x2332fc=(_0x48ad4b=(_0x32fa8c=_0x1eee85==null?void 0x0:_0x1eee85[_0xb546dd(0x2af)])!=null?_0x32fa8c:_0xe4ac42)!=null?_0x48ad4b:Xt,_0x3bcb43=this['_socketService'][_0xb546dd(0x452)](_0x2332fc);return this['_candidateSocket']=_0x3bcb43,_0x3bcb43;}[_0x945337(0x465)](){const _0x213d0b=_0x945337;var _0x1f59e5,_0x200486;try{const _0x39df2b=(_0x200486=(_0x1f59e5=this[_0x213d0b(0x3fe)])!=null?_0x1f59e5:this[_0x213d0b(0x3e5)])!=null?_0x200486:this[_0x213d0b(0x3c3)]();if(_0x39df2b){const _0x21d5aa=_0x39df2b[_0x213d0b(0x2a2)];_0x39df2b[_0x213d0b(0x2a2)]=_0xf4db16=>(this[_0x213d0b(0x579)](),_0x21d5aa['apply'](_0x39df2b,[_0xf4db16])),_0x39df2b[_0x213d0b(0x3dc)][_0x213d0b(0x397)](_0x4d392=>this[_0x213d0b(0x518)](_0x39df2b,_0x4d392)),_0x39df2b[_0x213d0b(0x4b5)]['pipe'](E[_0x213d0b(0x551)](0x1))[_0x213d0b(0x397)](_0x372180=>this[_0x213d0b(0x4ae)][_0x213d0b(0x2e8)](_0x213d0b(0x426),_0x372180)),_0x39df2b[_0x213d0b(0x445)][_0x213d0b(0x550)](E['take'](0x1))['subscribe'](()=>{const _0x51a0ca=_0x213d0b;this[_0x51a0ca(0x1d3)](_0x39df2b);}),_0x39df2b[_0x213d0b(0x343)][_0x213d0b(0x550)](E['take'](0x1))[_0x213d0b(0x397)](_0x30ce0b=>{const _0x24c8b1=_0x213d0b;this[_0x24c8b1(0x4ae)][_0x24c8b1(0x44c)](_0x24c8b1(0x282),_0x24c8b1(0x17d),_0x30ce0b),this[_0x24c8b1(0x4de)]();});}}catch(_0x2eb525){this[_0x213d0b(0x4ae)]['error'](_0x2eb525),this[_0x213d0b(0x4de)]();}}[_0x945337(0x1d3)](_0x3d0f38){const _0x102705=_0x945337;this[_0x102705(0x4ae)][_0x102705(0x44c)](_0x102705(0x282),_0x102705(0x3c4)),_0x3d0f38[_0x102705(0x2a2)]({'cmd':b['HELLO']}),this['_rescheduleHeartbeat']();}[_0x945337(0x410)](){const _0x1a7dda=_0x945337;window[_0x1a7dda(0x1ea)](_0x1a7dda(0x1c1),()=>this[_0x1a7dda(0x50f)]());}[_0x945337(0x50f)](){const _0x458cb0=_0x945337;this['_socketReady']=!0x1,this[_0x458cb0(0x3e5)]=null,this[_0x458cb0(0x35a)][_0x458cb0(0x3ca)]($[_0x458cb0(0x482)]),this['_socket$'][_0x458cb0(0x3ca)](null),this[_0x458cb0(0x501)](),this[_0x458cb0(0x21c)]();}[_0x945337(0x4de)](){const _0x99224b=_0x945337;var _0x10f23f;this[_0x99224b(0x50f)](),this[_0x99224b(0x437)]<((_0x10f23f=this['_configService']['getConfig'](vt))!=null?_0x10f23f:Jt)?(this[_0x99224b(0x392)]['show']({'key':'collaboration-session-retry','type':X[_0x99224b(0x367)][_0x99224b(0x19d)],'content':this[_0x99224b(0x21a)]['t'](_0x99224b(0x389))}),this[_0x99224b(0x483)]()):this['_messageService'][_0x99224b(0x411)]({'key':'collaboration-session-retry','type':X[_0x99224b(0x367)]['Error'],'content':this[_0x99224b(0x21a)]['t']('session.connection-failed')});}[_0x945337(0x3e4)](){const _0x9df1fc=_0x945337,_0xa679b5=()=>{const _0x2d7eb6=_0x38f3;this[_0x2d7eb6(0x3fe)]||this['reconnect']();},_0x1fab0d=()=>{const _0x7ed857=_0x38f3;this['_socket']||document[_0x7ed857(0x252)]==='hidden'||this[_0x7ed857(0x4cc)]();};window['addEventListener'](_0x9df1fc(0x2c3),_0xa679b5),document[_0x9df1fc(0x1ea)](_0x9df1fc(0x570),_0x1fab0d);}[_0x945337(0x483)](){const _0x44cf94=_0x945337;var _0x175f8b;const _0x47d90d=this[_0x44cf94(0x437)],_0x20c978=this['_configService'][_0x44cf94(0x258)](A),_0x4d4150=_0x47d90d===0x0?0x0:((_0x175f8b=_0x20c978==null?void 0x0:_0x20c978[_0x44cf94(0x396)])!=null?_0x175f8b:zt)*0x2**_0x47d90d;this[_0x44cf94(0x480)]=window['setTimeout'](()=>{const _0x581cdf=_0x44cf94;clearTimeout(this[_0x581cdf(0x480)]),this['_retryConnectingTimer']=null,this[_0x581cdf(0x465)]();},_0x4d4150),this[_0x44cf94(0x437)]+=0x1;}[_0x945337(0x518)](_0x1a6396,_0x3e05a9){const _0x4ec95e=_0x945337,{cmd:_0x22e019}=_0x3e05a9;_0x22e019===b['HELLO']&&!this[_0x4ec95e(0x554)]&&(_0x1a6396[_0x4ec95e(0x2ab)]=_0x3e05a9[_0x4ec95e(0x375)][_0x4ec95e(0x2ab)],this[_0x4ec95e(0x56c)]['next'](_0x1a6396),this['_status$'][_0x4ec95e(0x3ca)]($[_0x4ec95e(0x42e)]),this[_0x4ec95e(0x554)]=!0x0,this[_0x4ec95e(0x3e5)]=null),_0x22e019===b[_0x4ec95e(0x489)]&&this[_0x4ec95e(0x501)](),this[_0x4ec95e(0x579)]();}[_0x945337(0x579)](){const _0x14cc36=_0x945337;var _0x1fb4c7;this[_0x14cc36(0x21c)](),this[_0x14cc36(0x529)]=window[_0x14cc36(0x191)](()=>this[_0x14cc36(0x1bf)](),(_0x1fb4c7=this['_configService'][_0x14cc36(0x258)](dt))!=null?_0x1fb4c7:qt);}['_sendHeartbeat'](){const _0x3dfffe=_0x945337;this[_0x3dfffe(0x3fe)]['send']({'cmd':b[_0x3dfffe(0x489)]}),this['_waitForHeartbeatResponse']();}[_0x945337(0x2dc)](){const _0x2b0382=_0x945337;var _0x3471ab;this['_timeoutTimer']=window[_0x2b0382(0x191)](()=>this[_0x2b0382(0x4de)](),(_0x3471ab=this[_0x2b0382(0x4f8)][_0x2b0382(0x258)](Ve))!=null?_0x3471ab:St);}[_0x945337(0x21c)](){const _0x2e418b=_0x945337;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2e418b(0x529)]),this[_0x2e418b(0x529)]=null);}[_0x945337(0x501)](){const _0x29fbbe=_0x945337;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x29fbbe(0x475)]),this[_0x29fbbe(0x475)]=null);}},exports['CollaborationSessionService']=gs([Z(0x0,a['Inject'](a['Injector'])),Z(0x1,a[_0x945337(0x4fa)](a['LocaleService'])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x945337(0x48c)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0x945337(0x24b)],Is=Object[_0x945337(0x3e2)],ps=(_0x4b9396,_0x5d20c2,_0x594158,_0x4b664b)=>{for(var _0xf8506=_0x4b664b>0x1?void 0x0:_0x4b664b?Is(_0x5d20c2,_0x594158):_0x5d20c2,_0x11145b=_0x4b9396['length']-0x1,_0x872b46;_0x11145b>=0x0;_0x11145b--)(_0x872b46=_0x4b9396[_0x11145b])&&(_0xf8506=(_0x4b664b?_0x872b46(_0x5d20c2,_0x594158,_0xf8506):_0x872b46(_0xf8506))||_0xf8506);return _0x4b664b&&_0xf8506&&ms(_0x5d20c2,_0x594158,_0xf8506),_0xf8506;},De=(_0x432036,_0x5b274e)=>(_0x49a5c9,_0x24dff3)=>_0x5b274e(_0x49a5c9,_0x24dff3,_0x432036);let fe=class{constructor(_0x528c38,_0x3ca70a,_0x1bb1c2){const _0x1dac88=_0x945337;this[_0x1dac88(0x3dd)]=_0x528c38,this[_0x1dac88(0x4f2)]=_0x3ca70a,this[_0x1dac88(0x277)]=_0x1bb1c2;}[_0x945337(0x1d1)](_0x4b4948){const _0x146011=_0x945337;this['_transformUndoRedoStack'](_0x4b4948),this[_0x146011(0x511)](_0x4b4948);}[_0x945337(0x201)](_0x52b687){const _0x39ea5d=_0x945337,{unitID:_0x2eb46e}=_0x52b687,_0x399d98=this[_0x39ea5d(0x277)][_0x39ea5d(0x474)](_0x2eb46e)[_0x39ea5d(0x545)](w['DocIMEInputManagerService']),{redoCache:_0x51ac2e}=_0x399d98['getUndoRedoMutationParamsCache']();if(_0x51ac2e[_0x39ea5d(0x3f0)]===0x0)return _0x52b687;let _0x327089=a['Tools'][_0x39ea5d(0x2fe)](_0x52b687[_0x39ea5d(0x435)][0x0]);for(let _0x138ab1=0x0;_0x138ab1<_0x51ac2e[_0x39ea5d(0x3f0)];_0x138ab1++){const _0x208ba8={'id':_0x39ea5d(0x333),'params':{..._0x51ac2e[_0x138ab1]}},_0x27c8c4=this[_0x39ea5d(0x4f2)][_0x39ea5d(0x34c)](_0x327089,_0x208ba8,!0x1);if(_[_0x39ea5d(0x420)](_0x27c8c4))throw _0x27c8c4['error'];_0x327089=_0x27c8c4[_0x39ea5d(0x1f9)];}return{...a[_0x39ea5d(0x4ea)][_0x39ea5d(0x2fe)](_0x52b687),'mutations':[_0x327089]};}[_0x945337(0x456)](_0x30bf68){const _0x4343c1=_0x945337,{unitID:_0xb5490}=_0x30bf68,_0x2c6277=this[_0x4343c1(0x277)][_0x4343c1(0x474)](_0xb5490)[_0x4343c1(0x545)](w['DocIMEInputManagerService']),{undoCache:_0x5dd7e4,redoCache:_0xd9c821}=_0x2c6277[_0x4343c1(0x3f6)]();if(_0x5dd7e4['length']===0x0||_0xd9c821[_0x4343c1(0x3f0)]===0x0)return;const _0x53fd79=[],_0x597bab=[];let _0x5948e0=a[_0x4343c1(0x4ea)][_0x4343c1(0x2fe)](_0x30bf68[_0x4343c1(0x435)][0x0]),_0xc7b081=a['Tools'][_0x4343c1(0x2fe)](_0x30bf68[_0x4343c1(0x435)][0x0]);for(let _0x52e81f=_0x5dd7e4[_0x4343c1(0x3f0)]-0x1;_0x52e81f>=0x0;_0x52e81f--){const _0x18284c={'id':_0x4343c1(0x333),'params':{..._0x5dd7e4[_0x52e81f]}},_0x38be56={'id':_0x4343c1(0x333),'params':{..._0xd9c821[_0x52e81f]}},_0x2ee338=this[_0x4343c1(0x4f2)][_0x4343c1(0x34c)](_0x5948e0,_0x18284c,!0x1),_0x2a68ce=this[_0x4343c1(0x4f2)][_0x4343c1(0x34c)](_0xc7b081,_0x38be56,!0x1);if(_[_0x4343c1(0x420)](_0x2ee338))throw _0x2ee338[_0x4343c1(0x2e8)];if(_[_0x4343c1(0x420)](_0x2a68ce))throw _0x2a68ce[_0x4343c1(0x2e8)];_0x53fd79['unshift'](_0x2ee338[_0x4343c1(0x178)][_0x4343c1(0x17c)]),_0x597bab[_0x4343c1(0x3c8)](_0x2a68ce['m2Prime'][_0x4343c1(0x17c)]),_0x5948e0=_0x2ee338[_0x4343c1(0x1f9)],_0xc7b081=_0x2a68ce[_0x4343c1(0x1f9)];}_0x2c6277[_0x4343c1(0x37e)]({'undoCache':_0x53fd79,'redoCache':_0x597bab});}[_0x945337(0x511)](_0x435d39){const _0x127cd4=_0x945337,{unitID:_0x41f330}=_0x435d39,_0x422320=this[_0x127cd4(0x277)][_0x127cd4(0x474)](_0x41f330)['with'](w[_0x127cd4(0x349)]),_0x3bf790=_0x422320['getActiveRange']();if(_0x3bf790==null)return;const _0x18198f=[{'id':_0x127cd4(0x333),'params':{'unitId':_0x435d39[_0x127cd4(0x1da)],'actions':null,'textRanges':[_0x3bf790]}}],_0x1531a6=this[_0x127cd4(0x4f2)][_0x127cd4(0x4df)](_0x435d39,_0x18198f);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1531a6))throw _0x1531a6[_0x127cd4(0x2e8)];const _0x59ad35=_0x1531a6['m2Prime'][0x0][_0x127cd4(0x17c)]['textRanges'];Array[_0x127cd4(0x48e)](_0x59ad35)&&_0x59ad35[_0x127cd4(0x3f0)]&&_0x422320[_0x127cd4(0x345)](_0x59ad35[0x0]);}};fe=ps([De(0x0,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),De(0x1,_[_0x945337(0x429)]),De(0x2,R[_0x945337(0x2c4)])],fe);var Cs=Object[_0x945337(0x24b)],Es=Object[_0x945337(0x3e2)],bs=(_0x47e384,_0x315431,_0x320af2,_0x2ca51c)=>{const _0x113c19=_0x945337;for(var _0xfeb2e7=_0x2ca51c>0x1?void 0x0:_0x2ca51c?Es(_0x315431,_0x320af2):_0x315431,_0x2d73e2=_0x47e384[_0x113c19(0x3f0)]-0x1,_0x4e02ab;_0x2d73e2>=0x0;_0x2d73e2--)(_0x4e02ab=_0x47e384[_0x2d73e2])&&(_0xfeb2e7=(_0x2ca51c?_0x4e02ab(_0x315431,_0x320af2,_0xfeb2e7):_0x4e02ab(_0xfeb2e7))||_0xfeb2e7);return _0x2ca51c&&_0xfeb2e7&&Cs(_0x315431,_0x320af2,_0xfeb2e7),_0xfeb2e7;},ae=(_0x13c6b3,_0x260db6)=>(_0x440024,_0x3caa59)=>_0x260db6(_0x440024,_0x3caa59,_0x13c6b3);exports[_0x945337(0x3a3)]=class extends a['Disposable']{constructor(_0x65f8fc,_0x146c58,_0x5a2332,_0xb2b72b,_0x81ffe3){const _0x140260=_0x945337;super(),d(this,_0x140260(0x2b1),new Map()),d(this,_0x140260(0x1db),new Map()),d(this,'_disabled',!0x1),(this[_0x140260(0x4f8)]=_0x65f8fc,this[_0x140260(0x1b3)]=_0x146c58,this[_0x140260(0x22a)]=_0x5a2332,this[_0x140260(0x21a)]=_0xb2b72b,this[_0x140260(0x1df)]=_0x81ffe3,this[_0x140260(0x332)]());}[_0x945337(0x19e)](){this['_disabled']=!0x0;}[_0x945337(0x3ea)](){const _0xcaaef3=_0x945337;this[_0xcaaef3(0x339)]=!0x1;}[_0x945337(0x1eb)](){const _0x347815=_0x945337;this[_0x347815(0x249)]()[_0x347815(0x33c)](()=>super['dispose']());}async[_0x945337(0x2d0)](_0x31f37e){const _0x12bbda=_0x945337;return this[_0x12bbda(0x339)]?null:this[_0x12bbda(0x1b3)][_0x12bbda(0x373)](Qe(_0x31f37e));}async[_0x945337(0x1d5)](_0x5f08dc,_0x2c69b5){const _0x5483e2=_0x945337;return!!this['_localStorageService'][_0x5483e2(0x539)](_0x5f08dc,_0x2c69b5);}[_0x945337(0x478)](_0x341bef,_0x208bb2,_0x4c9658,_0x279f9d){const _0x54a35c=_0x945337,_0x4c1c2d=this[_0x54a35c(0x1df)]['getCurrentRevOfUnit'](_0x341bef);this[_0x54a35c(0x2b1)]['set'](_0x341bef,{'unitID':_0x341bef,'type':_0x208bb2,'awaitingChangeset':_0x4c9658,'mutations':_0x279f9d,'rev':_0x4c1c2d}),this[_0x54a35c(0x1db)][_0x54a35c(0x384)](_0x341bef)||this[_0x54a35c(0x379)](_0x341bef);}[_0x945337(0x379)](_0x4ca41d){const _0x54f158=_0x945337,_0x13bd0a=this['_getSaveTimeout']();_0x13bd0a===0x0?this[_0x54f158(0x1ba)](_0x4ca41d):this[_0x54f158(0x1db)][_0x54f158(0x4a8)](_0x4ca41d,setTimeout(()=>this[_0x54f158(0x1ba)](_0x4ca41d),_0x13bd0a));}['_getSaveTimeout'](){const _0x5ac85e=_0x945337;var _0x378131;return(_0x378131=this[_0x5ac85e(0x4f8)][_0x5ac85e(0x258)](ft))!=null?_0x378131:Zt;}[_0x945337(0x1ba)](_0x19f5c2){const _0x5e1702=_0x945337,_0x183774=this[_0x5e1702(0x1db)][_0x5e1702(0x3eb)](_0x19f5c2);return _0x183774!==void 0x0&&window['clearTimeout'](_0x183774),this['_localStorageService'][_0x5e1702(0x539)](Qe(_0x19f5c2),this['_cachedData'][_0x5e1702(0x3eb)](_0x19f5c2))[_0x5e1702(0x33c)](()=>this[_0x5e1702(0x1db)][_0x5e1702(0x532)](_0x19f5c2));}async[_0x945337(0x249)](){const _0xa23ab1=_0x945337,_0x3d39f1=[];this[_0xa23ab1(0x1db)][_0xa23ab1(0x278)]((_0x2f298b,_0x239d12)=>{const _0x43017e=_0xa23ab1;window['clearTimeout'](_0x2f298b),_0x3d39f1[_0x43017e(0x3b0)](this[_0x43017e(0x1ba)](_0x239d12)[_0x43017e(0x33c)](()=>{const _0x143674=_0x43017e;this[_0x143674(0x1db)]['delete'](_0x239d12);}));}),await Promise['all'](_0x3d39f1);}['_setupBeforeClosingHandler'](){const _0x12eb03=_0x945337;this[_0x12eb03(0x50a)](this[_0x12eb03(0x22a)][_0x12eb03(0x226)](()=>{const _0x2685de=_0x12eb03;if(this['_saveTaskMap'][_0x2685de(0x17e)])return this['_localeService']['t'](_0x2685de(0x37d));}));}},exports[_0x945337(0x3a3)]=bs([ae(0x0,a['IConfigService']),ae(0x1,a['ILocalStorageService']),ae(0x2,N[_0x945337(0x4f0)]),ae(0x3,a['Inject'](a[_0x945337(0x299)])),ae(0x4,a[_0x945337(0x4fa)](_[_0x945337(0x574)]))],exports['LocalCacheService']);function Qe(_0x197f2a){const _0x29af2a=_0x945337;return _0x29af2a(0x214)+_0x197f2a;}var Ts=Object[_0x945337(0x24b)],Rs=Object[_0x945337(0x3e2)],Os=(_0x29a423,_0x43510c,_0x4108aa,_0x4baeeb)=>{const _0x3eb295=_0x945337;for(var _0x599eaf=_0x4baeeb>0x1?void 0x0:_0x4baeeb?Rs(_0x43510c,_0x4108aa):_0x43510c,_0x5df3ba=_0x29a423[_0x3eb295(0x3f0)]-0x1,_0x259bd8;_0x5df3ba>=0x0;_0x5df3ba--)(_0x259bd8=_0x29a423[_0x5df3ba])&&(_0x599eaf=(_0x4baeeb?_0x259bd8(_0x43510c,_0x4108aa,_0x599eaf):_0x259bd8(_0x599eaf))||_0x599eaf);return _0x4baeeb&&_0x599eaf&&Ts(_0x43510c,_0x4108aa,_0x599eaf),_0x599eaf;},ye=(_0x3878d6,_0x288cbf)=>(_0x17d82b,_0x481ce9)=>_0x288cbf(_0x17d82b,_0x481ce9,_0x3878d6);function Ds(_0x24aca8){const _0x1f988d=_0x945337,{unitID:_0x4472a7,mutations:_0x534153}=_0x24aca8;return{'unitId':_0x4472a7,'subUnitId':_0x534153[0x0][_0x1f988d(0x17c)][_0x1f988d(0x215)]};}let ge=class{constructor(_0x27abcf,_0x583db8,_0x6443df){const _0xfadf4e=_0x945337;this[_0xfadf4e(0x3dd)]=_0x27abcf,this[_0xfadf4e(0x4f2)]=_0x583db8,this[_0xfadf4e(0x3f4)]=_0x6443df;}[_0x945337(0x463)](_0x2ac23a){const _0xf87398=_0x945337;var _0x2ff856,_0x4ca257,_0x5f2be0,_0x417246;const _0x1658d0=this['_injector'][_0xf87398(0x3eb)](C[_0xf87398(0x403)]),{unitId:_0x1c11f5,subUnitId:_0x362f3f}=Ds(_0x2ac23a),_0x4e53c9=_0x1658d0[_0xf87398(0x471)](_0x1c11f5)[_0xf87398(0x57f)](),_0x30e285=(_0x4ca257=(_0x2ff856=this[_0xf87398(0x3f4)]['getUnit'](_0x1c11f5))==null?void 0x0:_0x2ff856[_0xf87398(0x4be)]())==null?void 0x0:_0x4ca257['getSheetId']();if(_0x4e53c9[_0xf87398(0x3f0)]===0x0||!_0x1c11f5||!_0x362f3f)return;const _0x5323cd=[{'id':C[_0xf87398(0x4d1)]['id'],'params':{'unitId':_0x1c11f5,'subUnitId':_0x30e285,'selections':a['Tools'][_0xf87398(0x2fe)](_0x4e53c9)}}],_0x4eea70=this[_0xf87398(0x4f2)][_0xf87398(0x4df)](_0x2ac23a,_0x5323cd);if(!_[_0xf87398(0x3f7)](_0x4eea70))throw _0x4eea70[_0xf87398(0x2e8)];const _0x8e4cc6=(_0x417246=(_0x5f2be0=_0x4eea70['m2Prime'][0x0])==null?void 0x0:_0x5f2be0[_0xf87398(0x17c)])==null?void 0x0:_0x417246[_0xf87398(0x53f)];Array[_0xf87398(0x48e)](_0x8e4cc6)&&_0x8e4cc6[_0xf87398(0x3f0)]&&this['_injector'][_0xf87398(0x3eb)](a[_0xf87398(0x400)])[_0xf87398(0x505)](C['SetSelectionsOperation']['id'],{'unitId':_0x1c11f5,'subUnitId':_0x30e285,'selections':_0x8e4cc6});}};ge=Os([ye(0x0,a['Inject'](a['Injector'])),ye(0x1,_[_0x945337(0x429)]),ye(0x2,a[_0x945337(0x57b)])],ge);const be=a[_0x945337(0x36a)](_0x945337(0x26a));var bt=(_0x4c216c=>(_0x4c216c[_0x4c216c[_0x945337(0x4d4)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x4c216c[_0x4c216c[_0x945337(0x2fd)]=0x1]=_0x945337(0x2fd),_0x4c216c))(bt||{});const et=0x7530,tt=_0x945337(0x1fa);class ys extends a['Disposable']{constructor(){const _0x4689d4=_0x945337;super(),d(this,_0x4689d4(0x534),a[_0x4689d4(0x4ea)][_0x4689d4(0x227)]()),d(this,_0x4689d4(0x4b3),new Set()),d(this,'_unitOnClients',new Map()),d(this,'_heartbeatTimer',null),d(this,_0x4689d4(0x204),new Map()),d(this,_0x4689d4(0x2c5),new Map()),this[_0x4689d4(0x458)]();}[_0x945337(0x1eb)](){const _0x1c755b=_0x945337;super[_0x1c755b(0x1eb)](),this[_0x1c755b(0x204)][_0x1c755b(0x278)]((_0x4b6e43,_0x5bf2fa)=>this[_0x1c755b(0x4f9)](_0x5bf2fa)),this[_0x1c755b(0x1bb)]&&window[_0x1c755b(0x453)](this['_heartbeatTimer']);}['getUnitStatus$'](_0xf27a3a){const _0x24355c=_0x945337;return this[_0x24355c(0x472)](_0xf27a3a)[_0x24355c(0x550)](v[_0x24355c(0x578)]());}[_0x945337(0x507)](_0x3ba87b){const _0x37a4b5=_0x945337;this[_0x37a4b5(0x4b3)]['size']===0x0&&this[_0x37a4b5(0x49a)](),this['_selfUnitIDs']['add'](_0x3ba87b),this[_0x37a4b5(0x583)]({'type':0x0,'memberID':this[_0x37a4b5(0x534)],'unitIDs':[_0x3ba87b],'isForwarded':!0x1});}[_0x945337(0x4c9)](_0x288dc0){const _0x15c026=_0x945337;this[_0x15c026(0x4b3)][_0x15c026(0x532)](_0x288dc0),this['_selfUnitIDs'][_0x15c026(0x17e)]===0x0&&this[_0x15c026(0x1bb)]&&window[_0x15c026(0x453)](this['_heartbeatTimer']);}[_0x945337(0x458)](){const _0xcfc091=_0x945337;this[_0xcfc091(0x50a)](a[_0xcfc091(0x296)](v[_0xcfc091(0x223)](window,_0xcfc091(0x31c))[_0xcfc091(0x397)](_0x2411ca=>{const _0x3ea18f=_0xcfc091;if(_0x2411ca[_0x3ea18f(0x269)]!==tt||!_0x2411ca[_0x3ea18f(0x287)])return;const _0x57372e=JSON[_0x3ea18f(0x2e0)](_0x2411ca['newValue']);this[_0x3ea18f(0x1c7)](_0x57372e);}))),window['addEventListener']('unload',()=>this[_0xcfc091(0x583)]({'type':0x1,'memberID':this[_0xcfc091(0x534)],'unitIDs':Array[_0xcfc091(0x3f2)](this[_0xcfc091(0x4b3)])}));}[_0x945337(0x1c7)](_0x1cc4e1){const _0x2a4f80=_0x945337;switch(_0x1cc4e1[_0x2a4f80(0x243)]){case 0x0:this[_0x2a4f80(0x23b)](_0x1cc4e1);break;case 0x1:this[_0x2a4f80(0x2e6)](_0x1cc4e1);break;case 0x2:this[_0x2a4f80(0x3d5)](_0x1cc4e1);break;}}['_handleJoinEvent'](_0x8f6b67){const _0x5e59d1=_0x945337,{unitIDs:_0x42f0cb,memberID:_0x230bb3,isForwarded:_0x3e143e}=_0x8f6b67;_0x42f0cb['forEach'](_0x12936e=>{const _0x21a12a=_0x38f3;if(!_0x3e143e&&this[_0x21a12a(0x254)][_0x21a12a(0x384)](_0x12936e)&&this[_0x21a12a(0x472)](_0x12936e)[_0x21a12a(0x3ca)](0x1),!this[_0x21a12a(0x254)][_0x21a12a(0x384)](_0x12936e)||!this[_0x21a12a(0x254)]['get'](_0x12936e)[_0x21a12a(0x384)](_0x230bb3)){const _0x418327=this['_unitOnClients'][_0x21a12a(0x3eb)](_0x12936e)||new Set();_0x418327[_0x21a12a(0x18a)](_0x230bb3),this[_0x21a12a(0x254)]['set'](_0x12936e,_0x418327),this[_0x21a12a(0x3d4)](_0x230bb3);}}),_0x3e143e||this[_0x5e59d1(0x583)]({'type':0x0,'memberID':this[_0x5e59d1(0x534)],'unitIDs':[...this[_0x5e59d1(0x4b3)]],'isForwarded':!0x0});}[_0x945337(0x3d4)](_0x8582dd){const _0x36fc95=_0x945337;this[_0x36fc95(0x4f9)](_0x8582dd);const _0x30eed1=window[_0x36fc95(0x191)](()=>{const _0x295644=_0x36fc95;this['_unitOnClients'][_0x295644(0x278)](_0x278f4a=>{const _0x55b4f6=_0x295644;_0x278f4a[_0x55b4f6(0x532)](_0x8582dd);});},et*0x2);this[_0x36fc95(0x204)][_0x36fc95(0x4a8)](_0x8582dd,_0x30eed1);}[_0x945337(0x4f9)](_0x1602ca){const _0x4a0fe7=_0x945337;if(this[_0x4a0fe7(0x204)][_0x4a0fe7(0x384)](_0x1602ca)){const _0x358cd4=this['_clearOtherTimers'][_0x4a0fe7(0x3eb)](_0x1602ca);_0x358cd4&&window[_0x4a0fe7(0x509)](_0x358cd4),this['_clearOtherTimers'][_0x4a0fe7(0x4a8)](_0x1602ca,null);}}[_0x945337(0x2e6)](_0x5eeca9){const _0x1dd8b2=_0x945337,{memberID:_0x189aa1,unitIDs:_0x5c65db}=_0x5eeca9;_0x5c65db['forEach'](_0xa91862=>{const _0x55173c=_0x38f3;var _0x375d31;const _0x2d0be6=this[_0x55173c(0x254)][_0x55173c(0x3eb)](_0xa91862);_0x2d0be6&&(_0x2d0be6[_0x55173c(0x532)](_0x189aa1),(_0x375d31=this[_0x55173c(0x472)](_0xa91862))==null||_0x375d31[_0x55173c(0x3ca)](_0x2d0be6[_0x55173c(0x17e)]===0x0?0x0:0x1));}),this[_0x1dd8b2(0x4f9)](_0x189aa1);}['_handleHeartbeatEvent'](_0x177aee){const _0x15071a=_0x945337;this[_0x15071a(0x3d4)](_0x177aee[_0x15071a(0x2ab)]);}['_send'](_0x826abf){const _0x162eee=_0x945337;localStorage[_0x162eee(0x539)](tt,JSON[_0x162eee(0x22d)](_0x826abf));}['_scheduleHeartbeat'](){const _0x482c89=_0x945337;this[_0x482c89(0x1bb)]=window[_0x482c89(0x330)](()=>{const _0x4a2553=_0x482c89;this[_0x4a2553(0x583)]({'type':0x2,'memberID':this['_id']});},et);}[_0x945337(0x472)](_0x119ef7){const _0x3b85c1=_0x945337;return this[_0x3b85c1(0x2c5)]['has'](_0x119ef7)||this['_unitStatus'][_0x3b85c1(0x4a8)](_0x119ef7,new v[(_0x3b85c1(0x52c))](0x0)),this[_0x3b85c1(0x2c5)]['get'](_0x119ef7);}}function Tt(_0x124cab){const _0x3084e1=_0x945337;let _0x390d60='';for(const _0x599cc5 of _0x124cab){const {startOffset:_0x227c3b,endOffset:_0x1ed78d,isActive:_0x3eac78}=_0x599cc5;_0x390d60[_0x3084e1(0x3f0)]&&(_0x390d60+=','),_0x390d60+=_0x227c3b+':'+_0x1ed78d+':'+(_0x3eac78?'1':'0');}return _0x390d60;}function Us(_0x155c39){const _0x25300d=_0x945337,_0x2f9a0f=_0x155c39[_0x25300d(0x45c)](','),_0x2ee330=[];for(const _0x2775b0 of _0x2f9a0f){const [_0xddd380,_0x472e34,_0xcb986c]=_0x2775b0[_0x25300d(0x45c)](':');_0x2ee330[_0x25300d(0x3b0)]({'startOffset':Number(_0xddd380),'endOffset':Number(_0x472e34),'collapsed':_0xddd380===_0x472e34,'isActive':_0xcb986c==='1'});}return _0x2ee330['some'](_0x12e785=>_0x12e785[_0x25300d(0x3db)])||(_0x2ee330[0x0][_0x25300d(0x3db)]=!0x0),_0x2ee330;}class Ye extends a[_0x945337(0x538)]{constructor(){const _0x5bee9e=_0x945337;super(...arguments),d(this,_0x5bee9e(0x582),new v[(_0x5bee9e(0x52c))](null)),d(this,_0x5bee9e(0x23e),this[_0x5bee9e(0x582)][_0x5bee9e(0x19b)]());}[_0x945337(0x271)](_0xe5d895){const _0x1f4eee=_0x945337,{unitID:_0x57aa10,memberID:_0x31f9f2,textRanges:_0x9fcf74}=_0xe5d895,_0xa0bfcd=Tt(_0x9fcf74),_0x52e83f={'unitID':_0x57aa10,'memberID':_0x31f9f2,'selection':_0xa0bfcd};this[_0x1f4eee(0x582)][_0x1f4eee(0x3ca)](_0x52e83f);}}var Ps=Object[_0x945337(0x24b)],ws=Object[_0x945337(0x3e2)],Ms=(_0x148505,_0x2934bf,_0x21ead1,_0x1d521b)=>{const _0x3ea87f=_0x945337;for(var _0x479a63=_0x1d521b>0x1?void 0x0:_0x1d521b?ws(_0x2934bf,_0x21ead1):_0x2934bf,_0x156423=_0x148505[_0x3ea87f(0x3f0)]-0x1,_0x232b95;_0x156423>=0x0;_0x156423--)(_0x232b95=_0x148505[_0x156423])&&(_0x479a63=(_0x1d521b?_0x232b95(_0x2934bf,_0x21ead1,_0x479a63):_0x232b95(_0x479a63))||_0x479a63);return _0x1d521b&&_0x479a63&&Ps(_0x2934bf,_0x21ead1,_0x479a63),_0x479a63;},st=(_0x4ce950,_0xac32a3)=>(_0x50bd13,_0x4c4814)=>_0xac32a3(_0x50bd13,_0x4c4814,_0x4ce950);let me=class{constructor(_0x3b16f8,_0x5127c5){const _0x123759=_0x945337;this[_0x123759(0x3dd)]=_0x3b16f8,this[_0x123759(0x4f2)]=_0x5127c5;}[_0x945337(0x463)](_0x133cb1){const _0x3e3eb0=_0x945337;var _0x2bc918;const _0x5ecf6d=this[_0x3e3eb0(0x3dd)][_0x3e3eb0(0x3eb)](V[_0x3e3eb0(0x1e0)]),_0xd2b192=(_0x2bc918=_0x5ecf6d[_0x3e3eb0(0x351)]())!=null?_0x2bc918:[];if(_0xd2b192[_0x3e3eb0(0x3f0)]===0x0)return;const _0x5e21ef=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x133cb1[_0x3e3eb0(0x1da)],'actions':null,'textRanges':_0xd2b192}}],_0x128103=this[_0x3e3eb0(0x4f2)][_0x3e3eb0(0x4df)](_0x133cb1,_0x5e21ef);if(!_['isTransformMutationsWithChangesetSuccess'](_0x128103))throw _0x128103[_0x3e3eb0(0x2e8)];const _0x41615b=_0x128103[_0x3e3eb0(0x178)][0x0]['params'][_0x3e3eb0(0x485)];Array[_0x3e3eb0(0x48e)](_0x41615b)&&_0x41615b['length']&&_0x5ecf6d['replaceTextRanges'](_0x41615b,!0x1);}};me=Ms([st(0x0,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),st(0x1,_[_0x945337(0x429)])],me);const Ns=new Set([C[_0x945337(0x1b4)]['id']]);function it(_0x2178e8,_0x490897,_0x25d842,_0x57b35c,_0x10423d){const _0x2d446c=_0x945337;var _0x11795b,_0x4a5109,_0x2192ed,_0x2de3c6;const _0x3483e5=[];for(const _0x253c5d of _0x2178e8)if(Ns[_0x2d446c(0x384)](_0x253c5d['id'])){if(_0x3483e5['length']>0x0)break;_0x3483e5['push'](_0x253c5d);break;}else _0x3483e5[_0x2d446c(0x3b0)](_0x253c5d);const _0x28b66e=(_0x4a5109=(_0x11795b=_0x10423d[_0x2d446c(0x307)]())==null?void 0x0:_0x11795b[_0x2d446c(0x4e9)])!=null?_0x4a5109:_0x2d446c(0x45d),_0x1f8cc9=(_0x2de3c6=(_0x2192ed=_0x10423d[_0x2d446c(0x307)]())==null?void 0x0:_0x2192ed[_0x2d446c(0x2ab)])!=null?_0x2de3c6:'unknown';return{'changeset':{'unitID':_0x490897,'type':_[_0x2d446c(0x543)](_0x25d842[_0x2d446c(0x27c)](_0x490897)),'baseRev':_0x57b35c[_0x2d446c(0x436)](_0x490897),'revision':0x0,'userID':_0x28b66e,'memberID':_0x1f8cc9,'mutations':_0x3483e5},'pendingMutations':_0x2178e8['slice'](_0x3483e5[_0x2d446c(0x3f0)])};}function As(_0x10828b,_0xe5c7aa,_0x1acfea,_0xaf7c99,_0x398922){const _0x1086cc=_0x945337;var _0x2f3028,_0x38b990,_0x847f92,_0x3326f2;const _0x14bb9c=[_0x10828b[_0x1086cc(0x580)]((_0x16e671,_0x7c8c97)=>{const _0x109d41=_0x1086cc;var _0x46b416;const {id:_0x359a04}=_0x16e671,{id:_0x37aa9c,type:_0x472b07}=_0x7c8c97,_0x2322ff=(_0x46b416=_0x16e671['params'])!=null?_0x46b416:{'actions':null},_0x4e0e4c=_0x7c8c97['params'];if(_0x359a04&&_0x359a04!==_0x37aa9c)throw new Error(_0x109d41(0x514)+_0x359a04+'\x20-\x20'+_0x37aa9c+'.');return{..._0x16e671,'id':_0x37aa9c,'type':_0x472b07,'params':{'unitId':_0x4e0e4c['unitId'],'textRanges':_0x4e0e4c['textRanges'],'actions':a['JSONX'][_0x109d41(0x4b0)](_0x2322ff[_0x109d41(0x3ef)],_0x4e0e4c[_0x109d41(0x3ef)])}};},{})],_0x410337=(_0x38b990=(_0x2f3028=_0x398922[_0x1086cc(0x307)]())==null?void 0x0:_0x2f3028[_0x1086cc(0x4e9)])!=null?_0x38b990:_0x1086cc(0x45d),_0x29e141=(_0x3326f2=(_0x847f92=_0x398922[_0x1086cc(0x307)]())==null?void 0x0:_0x847f92[_0x1086cc(0x2ab)])!=null?_0x3326f2:_0x1086cc(0x45d);return{'changeset':{'unitID':_0xe5c7aa,'type':_[_0x1086cc(0x543)](_0x1acfea[_0x1086cc(0x27c)](_0xe5c7aa)),'baseRev':_0xaf7c99['getCurrentRevOfUnit'](_0xe5c7aa),'revision':0x0,'userID':_0x410337,'memberID':_0x29e141,'mutations':_0x14bb9c},'pendingMutations':[]};}const Ls={'id':C[_0x945337(0x3d7)]['id'],'type':a[_0x945337(0x2fb)]['MUTATION'],'params':{}};var js=Object['defineProperty'],$s=Object[_0x945337(0x3e2)],z=(_0xb40d41,_0x352fe2,_0x337cfa,_0xf5965f)=>{const _0x41500f=_0x945337;for(var _0x25bb19=_0xf5965f>0x1?void 0x0:_0xf5965f?$s(_0x352fe2,_0x337cfa):_0x352fe2,_0x3b2546=_0xb40d41[_0x41500f(0x3f0)]-0x1,_0x7d414d;_0x3b2546>=0x0;_0x3b2546--)(_0x7d414d=_0xb40d41[_0x3b2546])&&(_0x25bb19=(_0xf5965f?_0x7d414d(_0x352fe2,_0x337cfa,_0x25bb19):_0x7d414d(_0x25bb19))||_0x25bb19);return _0xf5965f&&_0x25bb19&&js(_0x352fe2,_0x337cfa,_0x25bb19),_0x25bb19;},g=(_0x3364fb,_0x2a4b89)=>(_0x1f7f1a,_0x291287)=>_0x2a4b89(_0x1f7f1a,_0x291287,_0x3364fb),y=(_0x34c214=>(_0x34c214['NOT_COLLAB']=_0x945337(0x2bd),_0x34c214[_0x945337(0x4fb)]=_0x945337(0x4ad),_0x34c214[_0x945337(0x1a2)]=_0x945337(0x358),_0x34c214[_0x945337(0x2c9)]=_0x945337(0x3ba),_0x34c214[_0x945337(0x564)]=_0x945337(0x1ec),_0x34c214[_0x945337(0x2bf)]=_0x945337(0x24f),_0x34c214[_0x945337(0x486)]=_0x945337(0x3d3),_0x34c214[_0x945337(0x482)]=_0x945337(0x1c1),_0x34c214))(y||{});class J{constructor(_0x50e770,_0x2a2d82,_0x90f9c3,_0x48a2c7,_0x2e369c,_0xada5e8,_0x5e4889,_0xa2c0bc,_0x42caa3){const _0x6b5f80=_0x945337;d(this,_0x6b5f80(0x423),null),d(this,_0x6b5f80(0x194),[]),(this[_0x6b5f80(0x1da)]=_0x50e770,this[_0x6b5f80(0x243)]=_0x2a2d82,this[_0x6b5f80(0x404)]=_0x2e369c,this[_0x6b5f80(0x256)]=_0xada5e8,this[_0x6b5f80(0x217)]=_0x5e4889,this[_0x6b5f80(0x1df)]=_0xa2c0bc,this[_0x6b5f80(0x576)]=_0x42caa3,this[_0x6b5f80(0x423)]=_0x90f9c3,this['_pendingMutations']=_0x48a2c7);}['_checkMissing'](_0xac8a6e){const _0x3aa100=_0x945337,_0x428121=this[_0x3aa100(0x1df)]['getCurrentRevOfUnit'](this[_0x3aa100(0x1da)]);return _0xac8a6e[_0x3aa100(0x289)]>_0x428121+0x1?(this[_0x3aa100(0x404)][_0x3aa100(0x324)]({'from':_0x428121,'to':_0xac8a6e[_0x3aa100(0x289)]-0x1}),!0x0):!0x1;}[_0x945337(0x2c7)](_0x36bed7){const _0x574999=_0x945337;this[_0x574999(0x217)][_0x574999(0x1d0)](this[_0x574999(0x1da)],_0x36bed7);}[_0x945337(0x448)](_0x57629b){const _0x56968d=_0x945337;var _0x232419,_0x47e5c7;(_0x47e5c7=(_0x232419=this['_handler'])[_0x56968d(0x454)])==null||_0x47e5c7['call'](_0x232419,_0x57629b);}[_0x945337(0x334)](_0x53f89c){const _0x37b998=_0x945337;var _0x338d67,_0x28f1f5;return(_0x28f1f5=(_0x338d67=this[_0x37b998(0x404)])[_0x37b998(0x3d2)])==null?void 0x0:_0x28f1f5[_0x37b998(0x441)](_0x338d67,_0x53f89c);}[_0x945337(0x497)](_0x208d53){const _0x526f68=_0x945337;var _0x18100e,_0x281f98,_0x57a774;return(_0x57a774=(_0x281f98=(_0x18100e=this[_0x526f68(0x404)])[_0x526f68(0x1b1)])==null?void 0x0:_0x281f98[_0x526f68(0x441)](_0x18100e,_0x208d53))!=null?_0x57a774:_0x208d53;}[_0x945337(0x2b3)](_0x182f5a){const _0x577cb6=_0x945337;var _0x4d5d7b,_0x490ba8;if(this[_0x577cb6(0x243)]===j['UNIVER_DOC']){const {unitID:_0x5901a2,mutations:_0x48c239,memberID:_0x591151}=_0x182f5a,_0x1a1f27=_0x48c239[0x0]['params'][_0x577cb6(0x485)];Array[_0x577cb6(0x48e)](_0x1a1f27)&&_0x1a1f27[_0x577cb6(0x3f0)]>0x0&&((_0x490ba8=(_0x4d5d7b=this[_0x577cb6(0x404)])[_0x577cb6(0x54a)])==null||_0x490ba8['call'](_0x4d5d7b,{'unitID':_0x5901a2,'memberID':_0x591151,'textRanges':_0x1a1f27}));}}[_0x945337(0x581)](){const _0x609db7=_0x945337;this[_0x609db7(0x576)]['updateOfflineData'](this[_0x609db7(0x1da)],this[_0x609db7(0x243)],this[_0x609db7(0x423)],this['_pendingMutations']);}[_0x945337(0x1c0)](){const _0x27069e=_0x945337;return this[_0x27069e(0x1df)][_0x27069e(0x436)](this[_0x27069e(0x1da)]);}[_0x945337(0x2d7)](){const _0x2a4ca2=_0x945337;this['_revisionService'][_0x2a4ca2(0x4d8)](this['unitID']);}[_0x945337(0x363)](_0x4bf075){const _0x308872=_0x945337;var _0x2fe336;const _0x1d38e4=this['_transformRemoteChangesetByIMECache'](_0x4bf075),_0x13bb8c=a[_0x308872(0x39a)](_0x1d38e4[_0x308872(0x435)],this[_0x308872(0x256)],{'fromCollab':!0x0});if(!_0x13bb8c[_0x308872(0x331)])throw _0x13bb8c[_0x308872(0x2e8)]instanceof Error?_0x13bb8c[_0x308872(0x2e8)]:new Error((_0x2fe336=_0x13bb8c[_0x308872(0x2e8)])!=null?_0x2fe336:_0x308872(0x2de));this[_0x308872(0x334)](_0x1d38e4),this[_0x308872(0x2c7)](_0x4bf075),this[_0x308872(0x448)](_0x1d38e4),this['_syncEditingCollabCursor'](_0x1d38e4),this[_0x308872(0x2d7)]();}}let se=class extends J{constructor(_0x588e6a,_0x47b21d,_0x2df9c7,_0x14389d,_0x56cfb8,_0x207c43,_0x582cb7,_0x2d5af2,_0x4edb3f,_0xe12a29){const _0x2e4554=_0x945337;super(_0x588e6a,_0x47b21d,null,[],_0x2df9c7,_0x2d5af2,_0x582cb7,_0x14389d,_0x56cfb8),d(this,_0x2e4554(0x44d),'synced'),(this[_0x2e4554(0x3dd)]=_0x207c43,this[_0x2e4554(0x4ae)]=_0x4edb3f,this[_0x2e4554(0x4f2)]=_0xe12a29);}[_0x945337(0x561)](_0x137776){const _0x293b6e=_0x945337,_0x18f7f8=this['_injector'][_0x293b6e(0x39d)](x,this[_0x293b6e(0x1da)],this[_0x293b6e(0x243)],[_0x137776],this[_0x293b6e(0x404)]);return _0x18f7f8[_0x293b6e(0x2bc)](),_0x18f7f8[_0x293b6e(0x581)](),_0x18f7f8;}['onRemoteChangeset'](_0x2937bc){const _0x269718=_0x945337;if(this[_0x269718(0x35d)](_0x2937bc))return this['_injector'][_0x269718(0x39d)](H,this[_0x269718(0x1da)],this[_0x269718(0x243)],null,[],null,[_0x2937bc],this['_handler']);try{const _0x304193=this['_transformService'][_0x269718(0x4df)](_0x2937bc,[Ls]);if(_[_0x269718(0x3f7)](_0x304193)){const {c1Prime:_0x27075e}=_0x304193;return this['_executeRemoteChangeset'](_0x27075e),this;}throw _0x304193['error'];}catch(_0x2476ea){return this[_0x269718(0x4ae)][_0x269718(0x2e8)](_0x2476ea),this[_0x269718(0x3f5)](!0x1);}}[_0x945337(0x3f5)](_0x59732d){const _0x4a2cc9=_0x945337;return this[_0x4a2cc9(0x3dd)][_0x4a2cc9(0x39d)](F,this[_0x4a2cc9(0x1da)],this[_0x4a2cc9(0x243)],null,[],this[_0x4a2cc9(0x404)],_0x59732d);}['onRemoteAck'](){const _0x2669ee=_0x945337;throw new Error(_0x2669ee(0x50e));}[_0x945337(0x294)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x945337(0x506)](){const _0x1c6831=_0x945337;return this[_0x1c6831(0x3dd)][_0x1c6831(0x39d)](G,this[_0x1c6831(0x1da)],this['type'],null,[],this[_0x1c6831(0x404)]);}[_0x945337(0x267)](){return this;}[_0x945337(0x4a4)](){const _0x2fa7a6=_0x945337;throw new Error(_0x2fa7a6(0x3d8));}[_0x945337(0x2e2)](){const _0x5443c8=_0x945337,_0x3db652=this[_0x5443c8(0x1df)]['getCurrentRevOfUnit'](this[_0x5443c8(0x1da)]);return this[_0x5443c8(0x404)][_0x5443c8(0x324)]({'from':_0x3db652,'to':0x0}),this[_0x5443c8(0x3dd)]['createInstance'](H,this[_0x5443c8(0x1da)],this[_0x5443c8(0x243)],null,[],null,[],this[_0x5443c8(0x404)]);}};se=z([g(0x3,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0x4,a[_0x945337(0x4fa)](exports['LocalCacheService'])),g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x38b)]),g(0x7,a[_0x945337(0x400)]),g(0x8,a['ILogService']),g(0x9,_[_0x945337(0x429)])],se);let x=class extends J{constructor(_0x412cff,_0x57aebd,_0x572848,_0xdce8c8,_0x5ee1d2,_0x51abab,_0x34e288,_0x8e86e1,_0x46e0de,_0x4ff8a8,_0x5434dd,_0x50d27e,_0xaf42f5,_0x689533){const _0x18f15a=_0x945337;super(_0x412cff,_0x57aebd,null,_0x572848,_0xdce8c8,_0x4ff8a8,_0x689533,_0x51abab,_0x34e288),d(this,_0x18f15a(0x44d),_0x18f15a(0x358)),d(this,_0x18f15a(0x41b),null),d(this,_0x18f15a(0x549),null),(this[_0x18f15a(0x3dd)]=_0x5ee1d2,this[_0x18f15a(0x526)]=_0x8e86e1,this['_logService']=_0x46e0de,this[_0x18f15a(0x4f8)]=_0x5434dd,this[_0x18f15a(0x4f2)]=_0x50d27e,this[_0x18f15a(0x337)]=_0xaf42f5);}['appendMutation'](_0x5d52b0){const _0x4e4ba6=_0x945337;return this[_0x4e4ba6(0x194)]['push'](_0x5d52b0),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xeda696){const _0x105be4=_0x945337;if(this[_0x105be4(0x35d)](_0xeda696))return this[_0x105be4(0x47e)](),this[_0x105be4(0x3dd)]['createInstance'](H,this[_0x105be4(0x1da)],this[_0x105be4(0x243)],null,this[_0x105be4(0x194)],null,[_0xeda696],this[_0x105be4(0x404)]);try{const _0x4b13bc=this[_0x105be4(0x4f2)][_0x105be4(0x4df)](_0xeda696,this[_0x105be4(0x194)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x4b13bc)){const {c1Prime:_0x815735,m2Prime:_0x2410ec}=_0x4b13bc;this[_0x105be4(0x363)](_0x815735);const _0x59ccba=this[_0x105be4(0x3dd)][_0x105be4(0x39d)](x,this['unitID'],this[_0x105be4(0x243)],_0x2410ec,this[_0x105be4(0x404)]);return this[_0x105be4(0x47e)](),_0x59ccba[_0x105be4(0x2bc)](this['_scheduleTimestamp']?Math[_0x105be4(0x25c)](0x0,new Date()[_0x105be4(0x548)]()-this[_0x105be4(0x41b)]):this[_0x105be4(0x2dd)]()),_0x59ccba;}throw _0x4b13bc[_0x105be4(0x2e8)];}catch(_0x390393){return this[_0x105be4(0x4ae)][_0x105be4(0x2e8)](_0x390393),this[_0x105be4(0x3f5)](!0x1);}}['onRemoteAck'](){const _0x1b86cf=_0x945337;throw new Error(_0x1b86cf(0x4a0));}[_0x945337(0x294)](){const _0x2229a7=_0x945337;throw new Error(_0x2229a7(0x516));}['toggleOffline'](){const _0x15b610=_0x945337;return this[_0x15b610(0x47e)](),this[_0x15b610(0x3dd)]['createInstance'](G,this[_0x15b610(0x1da)],this[_0x15b610(0x243)],null,this[_0x15b610(0x194)],this[_0x15b610(0x404)]);}['toggleOnline'](){return this;}['_schedule'](_0x2cf31e){const _0x5eab48=_0x945337,_0x21f151=_0x2cf31e!=null?_0x2cf31e:this[_0x5eab48(0x2dd)]();this['_scheduleTimestamp']=new Date()[_0x5eab48(0x548)](),this[_0x5eab48(0x549)]=window[_0x5eab48(0x191)](()=>{const _0x14800d=_0x5eab48;this[_0x14800d(0x47e)]();let _0x10f2af=null;switch(this[_0x14800d(0x243)]){case j[_0x14800d(0x53c)]:{_0x10f2af=it(this[_0x14800d(0x194)],this['unitID'],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]);break;}case j[_0x14800d(0x395)]:{this[_0x14800d(0x194)]['every'](_0x21d9ea=>_0x21d9ea['id']===V[_0x14800d(0x316)]['id'])?_0x10f2af=As(this[_0x14800d(0x194)],this[_0x14800d(0x1da)],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]):_0x10f2af=it(this['_pendingMutations'],this[_0x14800d(0x1da)],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]);break;}default:throw new Error(_0x14800d(0x31d)+this[_0x14800d(0x243)]+_0x14800d(0x2f2));}const {changeset:_0x1029c3,pendingMutations:_0x611d72}=_0x10f2af;this[_0x14800d(0x404)][_0x14800d(0x468)](_0x1029c3);const _0xc792f7=_0x611d72['length']?this[_0x14800d(0x3dd)][_0x14800d(0x39d)](k,this[_0x14800d(0x1da)],this[_0x14800d(0x243)],_0x1029c3,_0x611d72,this[_0x14800d(0x404)]):this['_injector'][_0x14800d(0x39d)](W,this[_0x14800d(0x1da)],this[_0x14800d(0x243)],_0x1029c3,this[_0x14800d(0x404)]);_0xc792f7['_updateLocalCache'](),this[_0x14800d(0x404)][_0x14800d(0x20e)](this,_0xc792f7);},_0x21f151);}[_0x945337(0x2dd)](){const _0x3fc188=_0x945337;var _0xba7890;const _0xaf034=this[_0x3fc188(0x4f8)]['getConfig'](A);return(_0xba7890=_0xaf034==null?void 0x0:_0xaf034['sendChangesetTimeout'])!=null?_0xba7890:Kt;}[_0x945337(0x4a4)](){const _0x4bf310=_0x945337;throw new Error(_0x4bf310(0x1cf));}['_clearScheduledTask'](){const _0x41b97b=_0x945337;this['_sendingTimer']!=null&&(clearTimeout(this[_0x41b97b(0x549)]),this['_sendingTimer']=null);}[_0x945337(0x3f5)](_0x2490b0){const _0x15c6a1=_0x945337;return this[_0x15c6a1(0x47e)](),this[_0x15c6a1(0x3dd)][_0x15c6a1(0x39d)](F,this[_0x15c6a1(0x1da)],this[_0x15c6a1(0x243)],null,this[_0x15c6a1(0x194)],this[_0x15c6a1(0x404)],_0x2490b0);}};x=z([g(0x4,a['Inject'](a['Injector'])),g(0x5,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x6,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x7,a[_0x945337(0x4fa)](q)),g(0x8,a[_0x945337(0x48c)]),g(0x9,a[_0x945337(0x400)]),g(0xa,a[_0x945337(0x1f7)]),g(0xb,_['ITransformService']),g(0xc,a[_0x945337(0x57b)]),g(0xd,a[_0x945337(0x38b)])],x);let W=class extends J{constructor(_0x538d91,_0x3f37db,_0x5f5c12,_0x4c741a,_0x2a392e,_0x2c8ccf,_0x3b5408,_0x42bfef,_0x1a6590,_0x1d2ab4,_0x4aa720){const _0x370454=_0x945337;super(_0x538d91,_0x3f37db,_0x5f5c12,[],_0x4c741a,_0x42bfef,_0x4aa720,_0x2c8ccf,_0x3b5408),d(this,'status',_0x370454(0x3ba)),(this[_0x370454(0x3dd)]=_0x2a392e,this[_0x370454(0x4ae)]=_0x1a6590,this['_transformService']=_0x1d2ab4);}[_0x945337(0x561)](_0x33c544){const _0x54b8a8=_0x945337,_0x15b746=this[_0x54b8a8(0x3dd)][_0x54b8a8(0x39d)](k,this[_0x54b8a8(0x1da)],this[_0x54b8a8(0x243)],this[_0x54b8a8(0x423)],[_0x33c544],this['_handler']);return _0x15b746['_updateLocalCache'](),_0x15b746;}[_0x945337(0x1d4)](_0x55ce04){const _0x1cfabc=_0x945337;if(this['_checkMissing'](_0x55ce04))return this['_injector'][_0x1cfabc(0x39d)](H,this[_0x1cfabc(0x1da)],this['type'],this[_0x1cfabc(0x423)],[],null,[_0x55ce04],this['_handler']);try{const _0x2b1326=this['_transformService'][_0x1cfabc(0x558)]([_0x55ce04],[this[_0x1cfabc(0x423)]],!0x1);if(_[_0x1cfabc(0x301)](_0x2b1326)){const {c1Prime:_0x425c25,c2Prime:_0x4ce499}=_0x2b1326;this['_executeRemoteChangeset'](_0x425c25[0x0]),_0x4ce499[0x0][_0x1cfabc(0x2f9)]=this[_0x1cfabc(0x1c0)]();const _0x2f8b53=this[_0x1cfabc(0x3dd)]['createInstance'](W,this['unitID'],this[_0x1cfabc(0x243)],_0x4ce499[0x0],this['_handler']);return _0x2f8b53[_0x1cfabc(0x581)](),_0x2f8b53;}return this[_0x1cfabc(0x3f5)](!0x1);}catch(_0x6552ea){return this[_0x1cfabc(0x4ae)][_0x1cfabc(0x2e8)](_0x6552ea),this[_0x1cfabc(0x3f5)](!0x1);}}[_0x945337(0x344)](_0x2d7d17){const _0x294e8c=_0x945337,_0x44f0f9=this[_0x294e8c(0x1df)][_0x294e8c(0x436)](this[_0x294e8c(0x1da)]);if(_0x2d7d17[_0x294e8c(0x289)]<_0x44f0f9-0x1)return this;if(this[_0x294e8c(0x35d)](_0x2d7d17))return this[_0x294e8c(0x3dd)][_0x294e8c(0x39d)](H,this[_0x294e8c(0x1da)],this['type'],null,[],this[_0x294e8c(0x423)],[],this[_0x294e8c(0x404)]);this[_0x294e8c(0x2d7)]();const _0x94a190=this[_0x294e8c(0x3dd)][_0x294e8c(0x39d)](se,this[_0x294e8c(0x1da)],this[_0x294e8c(0x243)],this[_0x294e8c(0x404)]);return _0x94a190[_0x294e8c(0x581)](),_0x94a190;}[_0x945337(0x294)](_0x4cca65){const _0x40b7c1=_0x945337;return this[_0x40b7c1(0x3f5)](!!(_0x4cca65!=null&&_0x4cca65['isPermissionRej']));}[_0x945337(0x506)](){const _0x8bdda=_0x945337;return this[_0x8bdda(0x3dd)][_0x8bdda(0x39d)](G,this[_0x8bdda(0x1da)],this[_0x8bdda(0x243)],this[_0x8bdda(0x423)],[],this[_0x8bdda(0x404)]);}['toggleOnline'](){return this;}[_0x945337(0x4a4)](){const _0x5b3bf3=_0x945337;this[_0x5b3bf3(0x404)][_0x5b3bf3(0x468)](this['_awaitingChangeset']);}[_0x945337(0x3f5)](_0x593c01){const _0x381473=_0x945337;return this[_0x381473(0x3dd)]['createInstance'](F,this[_0x381473(0x1da)],this['type'],this[_0x381473(0x423)],[],this[_0x381473(0x404)],_0x593c01);}};W=z([g(0x4,a['Inject'](a[_0x945337(0x2b5)])),g(0x5,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x6,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x7,a[_0x945337(0x400)]),g(0x8,a[_0x945337(0x48c)]),g(0x9,_[_0x945337(0x429)]),g(0xa,a[_0x945337(0x38b)])],W);let k=class extends J{constructor(_0x4315ef,_0x17ed98,_0x5c3861,_0x56132d,_0x58d492,_0x374f4a,_0xc9abc4,_0x55c8fd,_0x2a2452,_0x17867e,_0xcb8efa,_0x44147a){const _0x7ed69c=_0x945337;super(_0x4315ef,_0x17ed98,_0x5c3861,_0x56132d,_0x58d492,_0x2a2452,_0x44147a,_0xc9abc4,_0x55c8fd),d(this,_0x7ed69c(0x44d),_0x7ed69c(0x1ec)),(this[_0x7ed69c(0x3dd)]=_0x374f4a,this[_0x7ed69c(0x4ae)]=_0x17867e,this['_transformService']=_0xcb8efa);}[_0x945337(0x561)](_0x3350e4){return this['_pendingMutations']['push'](_0x3350e4),this;}[_0x945337(0x1d4)](_0x45aea0){const _0x3c41c4=_0x945337;if(this[_0x3c41c4(0x35d)](_0x45aea0))return this['_injector'][_0x3c41c4(0x39d)](H,this[_0x3c41c4(0x1da)],this[_0x3c41c4(0x243)],this['_awaitingChangeset'],this[_0x3c41c4(0x194)],null,[_0x45aea0],this[_0x3c41c4(0x404)]);try{const _0x417d0e=this[_0x3c41c4(0x4f2)][_0x3c41c4(0x558)]([_0x45aea0],[this[_0x3c41c4(0x423)]],!0x1);if(_[_0x3c41c4(0x301)](_0x417d0e)){const {c1Prime:_0x1231dc,c2Prime:_0x59c96d}=_0x417d0e,_0xd858fd=this[_0x3c41c4(0x4f2)][_0x3c41c4(0x4df)](_0x1231dc[0x0],this[_0x3c41c4(0x194)]);if(_[_0x3c41c4(0x3f7)](_0xd858fd)){const {c1Prime:_0x4b28e5,m2Prime:_0x734ea0}=_0xd858fd;return this[_0x3c41c4(0x363)](_0x4b28e5),_0x59c96d[0x0][_0x3c41c4(0x2f9)]=this[_0x3c41c4(0x1c0)](),this[_0x3c41c4(0x3dd)][_0x3c41c4(0x39d)](k,this[_0x3c41c4(0x1da)],this[_0x3c41c4(0x243)],_0x59c96d[0x0],_0x734ea0,this[_0x3c41c4(0x404)]);}throw _0xd858fd[_0x3c41c4(0x2e8)];}throw _0x417d0e['error'];}catch(_0x5bea25){return this[_0x3c41c4(0x4ae)][_0x3c41c4(0x2e8)](_0x5bea25),this[_0x3c41c4(0x3f5)](!0x1);}}['onRemoteAck'](_0x2fde04){const _0x7ee547=_0x945337;if(this['_checkMissing'](_0x2fde04))return this[_0x7ee547(0x3dd)][_0x7ee547(0x39d)](H,this[_0x7ee547(0x1da)],this[_0x7ee547(0x243)],null,this[_0x7ee547(0x194)],this['_awaitingChangeset'],[],this[_0x7ee547(0x404)]);this[_0x7ee547(0x2d7)]();const _0x1f6aae=this[_0x7ee547(0x3dd)][_0x7ee547(0x39d)](x,this[_0x7ee547(0x1da)],this['type'],this[_0x7ee547(0x194)],this[_0x7ee547(0x404)]);return _0x1f6aae['_schedule'](),_0x1f6aae['_updateLocalCache'](),_0x1f6aae;}[_0x945337(0x294)](_0x3df7e4){const _0x2f04e4=_0x945337;return this[_0x2f04e4(0x3f5)](!!(_0x3df7e4!=null&&_0x3df7e4[_0x2f04e4(0x3a1)]));}['toggleOffline'](){const _0x323478=_0x945337;return this[_0x323478(0x3dd)]['createInstance'](G,this[_0x323478(0x1da)],this[_0x323478(0x243)],this[_0x323478(0x423)],this[_0x323478(0x194)],this[_0x323478(0x404)]);}[_0x945337(0x267)](){return this;}['resend'](){const _0x38c548=_0x945337;this[_0x38c548(0x404)][_0x38c548(0x468)](this['_awaitingChangeset']);}['_onConflict'](_0xd9a54c){const _0x5d8d62=_0x945337;return this[_0x5d8d62(0x3dd)]['createInstance'](F,this[_0x5d8d62(0x1da)],this['type'],null,this['_pendingMutations'],this[_0x5d8d62(0x404)],_0xd9a54c);}};function _0x38f3(_0xa19542,_0x550d50){const _0x336a95=_0x336a();return _0x38f3=function(_0x38f3d7,_0x35a2f0){_0x38f3d7=_0x38f3d7-0x16e;let _0x122e0c=_0x336a95[_0x38f3d7];return _0x122e0c;},_0x38f3(_0xa19542,_0x550d50);}k=z([g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0x7,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x8,a['ICommandService']),g(0x9,a['ILogService']),g(0xa,_['ITransformService']),g(0xb,a[_0x945337(0x38b)])],k);let F=class extends J{constructor(_0x2c0c6c,_0x321307,_0x27b5c2,_0x1b3957,_0x9d6c63,_0x5667cf=!0x1,_0x36be64,_0x327317,_0x3ebb5e,_0x404f16,_0x99c795,_0x5263fc,_0x465eaa){const _0xf3ef9c=_0x945337;super(_0x2c0c6c,_0x321307,_0x27b5c2,_0x1b3957,_0x9d6c63,_0x327317,_0x3ebb5e,_0x99c795,_0x404f16),d(this,_0xf3ef9c(0x44d),_0xf3ef9c(0x3d3)),(this[_0xf3ef9c(0x260)]=_0x5667cf,this['_permissionService']=_0x36be64,this['_localeService']=_0x5263fc,this[_0xf3ef9c(0x555)]=_0x465eaa,this[_0xf3ef9c(0x250)](),this[_0xf3ef9c(0x313)](),this[_0xf3ef9c(0x53a)]());}[_0x945337(0x561)](){return this;}[_0x945337(0x1d4)](){return this;}[_0x945337(0x344)](){return this;}[_0x945337(0x294)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x945337(0x4a4)](){const _0x5835f7=_0x945337;throw new Error(_0x5835f7(0x1ca));}[_0x945337(0x313)](){const _0x2b4906=_0x945337;this['_localCacheService'][_0x2b4906(0x478)](this[_0x2b4906(0x1da)],this['type'],null,[]);}[_0x945337(0x250)](){const _0x578e0a=_0x945337;this[_0x578e0a(0x260)]?this[_0x578e0a(0x555)][_0x578e0a(0x411)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x578e0a(0x21a)]['t'](_0x578e0a(0x3b6)),'type':_0x578e0a(0x2e8),'duration':0x0}):this[_0x578e0a(0x555)][_0x578e0a(0x411)]({'title':this[_0x578e0a(0x21a)]['t'](_0x578e0a(0x572)),'content':this['_localeService']['t'](_0x578e0a(0x283)),'type':_0x578e0a(0x2e8),'duration':0x0});}[_0x945337(0x53a)](){const _0x375c7b=_0x945337;this[_0x375c7b(0x209)][_0x375c7b(0x470)](new C[(_0x375c7b(0x298))](this[_0x375c7b(0x1da)])['id'],!0x1);}};F=z([g(0x6,a[_0x945337(0x4fa)](a['IPermissionService'])),g(0x7,a['ICommandService']),g(0x8,a[_0x945337(0x38b)]),g(0x9,a['Inject'](exports[_0x945337(0x3a3)])),g(0xa,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0xb,a['Inject'](a[_0x945337(0x299)])),g(0xc,N[_0x945337(0x3a8)])],F);let G=class extends J{constructor(_0x589141,_0x31ba2d,_0x488c5d,_0x554022,_0x2136cd,_0x5e1f17,_0x3d5725,_0x171831,_0x27df95,_0x322936){const _0x3ad709=_0x945337;super(_0x589141,_0x31ba2d,_0x488c5d,_0x554022,_0x2136cd,_0x27df95,_0x322936,_0x3d5725,_0x171831),d(this,_0x3ad709(0x44d),'offline'),this[_0x3ad709(0x3dd)]=_0x5e1f17;}[_0x945337(0x561)](_0x3fc65a){const _0x15c4de=_0x945337;return this['_pendingMutations'][_0x15c4de(0x3b0)](_0x3fc65a),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x45f0e0){const _0x1da536=_0x945337;throw new Error(_0x1da536(0x4cf));}[_0x945337(0x344)](){const _0x52c831=_0x945337;throw new Error(_0x52c831(0x20b));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x945337(0x506)](){return this;}[_0x945337(0x267)](){const _0x53bcf5=_0x945337,{_injector:_0x18213b,_pendingMutations:_0x57b2a9,_awaitingChangeset:_0x9487a2,unitID:_0x36a44e,_handler:_0x5aaef5,type:_0x75e53}=this,_0x37e066=Rt(_0x18213b,_0x36a44e,_0x75e53,_0x9487a2,_0x57b2a9,_0x5aaef5);return _0x37e066 instanceof x?_0x37e066[_0x53bcf5(0x2bc)]():(_0x37e066 instanceof k||_0x37e066 instanceof W)&&_0x37e066[_0x53bcf5(0x4a4)](),_0x37e066;}[_0x945337(0x4a4)](){const _0x34dedf=_0x945337;throw new Error(_0x34dedf(0x359));}};G=z([g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x7,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x8,a['ICommandService']),g(0x9,a[_0x945337(0x38b)])],G);let H=class extends J{constructor(_0x438696,_0x50d732,_0x41d5a8,_0x331ac6,_0x388801,_0x3e82d9,_0x3fa600,_0x296028,_0x5903c0,_0xca5bf4,_0x288411,_0x4f0a80,_0xdda2af,_0x42ebd0){const _0x4b9f57=_0x945337;super(_0x438696,_0x50d732,_0x41d5a8,_0x331ac6,_0x3fa600,_0x4f0a80,_0xdda2af,_0x5903c0,_0xca5bf4),d(this,_0x4b9f57(0x44d),'fetch_missing'),(this[_0x4b9f57(0x1be)]=_0x388801,this[_0x4b9f57(0x2a7)]=_0x3e82d9,this['_injector']=_0x296028,this[_0x4b9f57(0x4ae)]=_0x288411,this[_0x4b9f57(0x4f2)]=_0x42ebd0);}[_0x945337(0x443)](_0x4bce27){const _0x20fc3e=_0x945337;try{const _0x5bced7=[..._0x4bce27,...this[_0x20fc3e(0x2a7)]],_0x597815=[this[_0x20fc3e(0x423)]||this[_0x20fc3e(0x1be)]]['filter'](_0x3c926e=>!!_0x3c926e);let _0x48ab2f,_0x1d56b5;if(_0x597815[_0x20fc3e(0x3f0)]){const _0x366210=this[_0x20fc3e(0x4f2)]['transformChangesets'](_0x5bced7,_0x597815,!0x1);if(!_['isTransformChangesetsSuccess'](_0x366210))throw _0x366210[_0x20fc3e(0x2e8)];_0x48ab2f=_0x366210[_0x20fc3e(0x44e)],_0x1d56b5=_0x366210[_0x20fc3e(0x4a1)];}else _0x48ab2f=_0x5bced7,_0x1d56b5=[];let _0x8a9a0d=this[_0x20fc3e(0x194)];_0x48ab2f[_0x20fc3e(0x278)](_0x272d23=>{const _0x103dac=_0x20fc3e;let _0x2dbf10;if(_0x8a9a0d[_0x103dac(0x3f0)]){const _0x5c9239=this[_0x103dac(0x4f2)][_0x103dac(0x4df)](_0x272d23,_0x8a9a0d);if(!_[_0x103dac(0x3f7)](_0x5c9239))throw _0x5c9239[_0x103dac(0x2e8)];_0x2dbf10=_0x5c9239[_0x103dac(0x44e)],_0x8a9a0d=_0x5c9239[_0x103dac(0x178)];}else _0x2dbf10=_0x272d23;this[_0x103dac(0x363)](_0x2dbf10);}),this[_0x20fc3e(0x1be)]&&this[_0x20fc3e(0x2d7)](),this[_0x20fc3e(0x423)]&&_0x1d56b5[_0x20fc3e(0x3f0)]&&(_0x1d56b5[0x0]['baseRev']=this[_0x20fc3e(0x1c0)]());let _0x2aedcf;if(this[_0x20fc3e(0x423)]&&_0x8a9a0d[_0x20fc3e(0x3f0)]!==0x0)_0x2aedcf=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](k,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],_0x1d56b5[0x0],_0x8a9a0d,this['_handler']);else{if(this[_0x20fc3e(0x423)]&&_0x8a9a0d[_0x20fc3e(0x3f0)]===0x0)_0x1d56b5[0x0][_0x20fc3e(0x2f9)]=this[_0x20fc3e(0x1c0)](),_0x2aedcf=this['_injector'][_0x20fc3e(0x39d)](W,this['unitID'],this[_0x20fc3e(0x243)],_0x1d56b5[0x0],this[_0x20fc3e(0x404)]);else{if(_0x8a9a0d[_0x20fc3e(0x3f0)]!==0x0){const _0x1f35b5=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](x,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],_0x8a9a0d,this[_0x20fc3e(0x404)]);_0x1f35b5['_schedule'](),_0x2aedcf=_0x1f35b5;}else _0x2aedcf=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](se,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],this[_0x20fc3e(0x404)]);}}return _0x2aedcf[_0x20fc3e(0x581)](),_0x2aedcf;}catch(_0x204437){return this[_0x20fc3e(0x4ae)][_0x20fc3e(0x2e8)]('[FetchMissState]',_0x20fc3e(0x2fa),_0x204437),this[_0x20fc3e(0x3dd)]['createInstance'](F,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],this[_0x20fc3e(0x423)],this[_0x20fc3e(0x194)],this[_0x20fc3e(0x404)],!0x1);}}[_0x945337(0x4a4)](){const _0x1e2c27=_0x945337;throw new Error(_0x1e2c27(0x4bb));}['appendMutation'](_0x1f1f4a){const _0x5cb801=_0x945337;return this[_0x5cb801(0x194)]['push'](_0x1f1f4a),this;}[_0x945337(0x1d4)](_0x22b341){const _0x46e446=_0x945337;return this[_0x46e446(0x2a7)]['push'](_0x22b341),this;}[_0x945337(0x344)](_0x1f3b16){const _0x1a9785=_0x945337;if(this[_0x1a9785(0x423)])return this[_0x1a9785(0x1be)]=this[_0x1a9785(0x423)],this[_0x1a9785(0x423)]=null,this;throw new Error(_0x1a9785(0x38f));}['onRemoteRej'](_0x2d5552){const _0x3c993e=_0x945337;return this[_0x3c993e(0x3f5)](!!(_0x2d5552!=null&&_0x2d5552[_0x3c993e(0x3a1)]));}['toggleOffline'](){const _0x3af520=_0x945337;return this[_0x3af520(0x3dd)][_0x3af520(0x39d)](G,this[_0x3af520(0x1da)],this[_0x3af520(0x243)],this[_0x3af520(0x423)],this['_pendingMutations'],this[_0x3af520(0x404)]);}['toggleOnline'](){return this;}[_0x945337(0x3f5)](_0x1975e1){const _0x310b8e=_0x945337;return this[_0x310b8e(0x3dd)][_0x310b8e(0x39d)](F,this[_0x310b8e(0x1da)],this['type'],this[_0x310b8e(0x423)],this[_0x310b8e(0x194)],this['_handler'],_0x1975e1);}};H=z([g(0x7,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x8,a['Inject'](_[_0x945337(0x574)])),g(0x9,a[_0x945337(0x4fa)](exports['LocalCacheService'])),g(0xa,a[_0x945337(0x48c)]),g(0xb,a[_0x945337(0x400)]),g(0xc,a[_0x945337(0x38b)]),g(0xd,_[_0x945337(0x429)])],H);function Rt(_0x3cc55f,_0x108087,_0x33c2ae,_0x1ab03f,_0x20b5aa,_0x50ef39){const _0x646f13=_0x945337;return _0x1ab03f&&_0x20b5aa[_0x646f13(0x3f0)]?_0x3cc55f['createInstance'](k,_0x108087,_0x33c2ae,_0x1ab03f,_0x20b5aa,_0x50ef39):_0x1ab03f?_0x3cc55f['createInstance'](W,_0x108087,_0x33c2ae,_0x1ab03f,_0x50ef39):_0x20b5aa[_0x646f13(0x3f0)]?_0x3cc55f[_0x646f13(0x39d)](x,_0x108087,_0x33c2ae,_0x20b5aa,_0x50ef39):_0x3cc55f[_0x646f13(0x39d)](se,_0x108087,_0x33c2ae,_0x50ef39);}var Hs=Object[_0x945337(0x24b)],xs=Object[_0x945337(0x3e2)],Ke=(_0x1563eb,_0x609d68,_0x5ca567,_0x1c67a8)=>{const _0x4fd08c=_0x945337;for(var _0x2ba57e=_0x1c67a8>0x1?void 0x0:_0x1c67a8?xs(_0x609d68,_0x5ca567):_0x609d68,_0x5aa8cc=_0x1563eb[_0x4fd08c(0x3f0)]-0x1,_0x1e2b81;_0x5aa8cc>=0x0;_0x5aa8cc--)(_0x1e2b81=_0x1563eb[_0x5aa8cc])&&(_0x2ba57e=(_0x1c67a8?_0x1e2b81(_0x609d68,_0x5ca567,_0x2ba57e):_0x1e2b81(_0x2ba57e))||_0x2ba57e);return _0x1c67a8&&_0x2ba57e&&Hs(_0x609d68,_0x5ca567,_0x2ba57e),_0x2ba57e;},I=(_0x5e7b11,_0x240df3)=>(_0x501f55,_0x55c61a)=>_0x240df3(_0x501f55,_0x55c61a,_0x5e7b11);exports[_0x945337(0x23c)]=class extends a[_0x945337(0x538)]{constructor(_0x2c3ace,_0x3953d4,_0x9eb3a3,_0x360998,_0x12d71e,_0x38b1c8,_0x2710de,_0x2b8d6f,_0x569818,_0x39e28e,_0x3d7f0b,_0x55b02d,_0x35981b){const _0x307b68=_0x945337;super(),d(this,'_state$',new v[(_0x307b68(0x52c))](null)),d(this,'state$',this['_state$'][_0x307b68(0x19b)]()),d(this,_0x307b68(0x171)),d(this,_0x307b68(0x3fd),!0x1),d(this,'status$',this['state$'][_0x307b68(0x550)](v[_0x307b68(0x2c1)](_0x32bdcc=>_0x32bdcc?_0x32bdcc[_0x307b68(0x44d)]:y[_0x307b68(0x482)]),v[_0x307b68(0x421)](0x1))),d(this,_0x307b68(0x520),!0x1),d(this,_0x307b68(0x1b7),[]),(this[_0x307b68(0x1da)]=_0x2c3ace,this['session']=_0x3953d4,this[_0x307b68(0x1ad)]=_0x9eb3a3,this[_0x307b68(0x3dd)]=_0x360998,this[_0x307b68(0x576)]=_0x12d71e,this[_0x307b68(0x17f)]=_0x38b1c8,this[_0x307b68(0x21a)]=_0x2710de,this[_0x307b68(0x1df)]=_0x2b8d6f,this[_0x307b68(0x4ae)]=_0x569818,this[_0x307b68(0x256)]=_0x39e28e,this[_0x307b68(0x392)]=_0x3d7f0b,this['_permissionService']=_0x55b02d,this[_0x307b68(0x328)]=_0x35981b);}get[_0x945337(0x198)](){const _0xf663b1=_0x945337;return this[_0xf663b1(0x171)];}async[_0x945337(0x55a)](){const _0x1c1151=_0x945337;if(this[_0x1c1151(0x198)])throw new Error(_0x1c1151(0x1ef));await this[_0x1c1151(0x458)]();}[_0x945337(0x4c4)](){const _0x3ab12c=_0x945337;return this['_collaborationPaused']=!0x0,a[_0x3ab12c(0x296)](()=>{const _0x3d71f3=_0x3ab12c;this[_0x3d71f3(0x3fd)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x945337(0x31a)](_0x5522ee){const _0xbfcf2c=_0x945337;this[_0xbfcf2c(0x171)]=_0x5522ee,this[_0xbfcf2c(0x4fc)]['next'](_0x5522ee);}async['_init'](){const _0x4c65f9=_0x945337;var _0x27eb7d;this[_0x4c65f9(0x31a)](await this['_createInitialState']()),this[_0x4c65f9(0x328)]&&((_0x27eb7d=this[_0x4c65f9(0x328)])==null||_0x27eb7d['editingUnit'](this[_0x4c65f9(0x1da)]),this[_0x4c65f9(0x50a)](this[_0x4c65f9(0x328)][_0x4c65f9(0x321)](this[_0x4c65f9(0x1da)])[_0x4c65f9(0x397)](_0x3f3803=>{const _0x4b8882=_0x4c65f9;this[_0x4b8882(0x4ae)]['debug'](_0x4b8882(0x2ad),'editing\x20status\x20changed\x20to',_0x3f3803),_0x3f3803===bt[_0x4b8882(0x2fd)]?(this[_0x4b8882(0x392)][_0x4b8882(0x411)]({'content':this[_0x4b8882(0x21a)]['t'](_0x4b8882(0x402)),'type':X[_0x4b8882(0x367)]['Warning']}),this[_0x4b8882(0x209)]['updatePermissionPoint'](new C[(_0x4b8882(0x298))](this['unitID'])['id'],!0x1)):this[_0x4b8882(0x209)][_0x4b8882(0x470)](new C[(_0x4b8882(0x298))](this[_0x4b8882(0x1da)])['id'],!0x0);})));let _0x31f4c8=!0x1;return this[_0x4c65f9(0x50a)](this['session'][_0x4c65f9(0x37f)]['subscribe'](_0xe27901=>{const _0x48bb62=_0x4c65f9;_0xe27901===$[_0x48bb62(0x42e)]?this[_0x48bb62(0x415)](_0x31f4c8):_0xe27901===$[_0x48bb62(0x482)]&&(_0x31f4c8=!0x0,this['_toggleOffline']());})),this[_0x4c65f9(0x50a)](this[_0x4c65f9(0x318)][_0x4c65f9(0x23f)][_0x4c65f9(0x397)](_0x1de06c=>{const _0x57f627=_0x4c65f9;try{switch(_0x1de06c[_0x57f627(0x170)]){case _[_0x57f627(0x4eb)][_0x57f627(0x3c6)]:{this[_0x57f627(0x1f5)](_['parseProtocolChangeset'](_0x1de06c[_0x57f627(0x375)]));break;}case _['CollaborationEvent'][_0x57f627(0x1f1)]:{this[_0x57f627(0x521)](_0x1de06c['data']);break;}case _[_0x57f627(0x4eb)]['CHANGESET_REJ']:{this[_0x57f627(0x33d)]();break;}case _['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x57f627(0x3f9)](_0x1de06c[_0x57f627(0x375)][_0x57f627(0x37c)][_0x57f627(0x2c1)](_0x334a92=>_[_0x57f627(0x37a)](_0x334a92)));break;}case _['CollaborationEvent'][_0x57f627(0x186)]:this[_0x57f627(0x33d)]({'isPermissionRej':!0x0});}}catch(_0x2a46cf){throw console[_0x57f627(0x2e8)](_0x57f627(0x4a9),_0x2a46cf),_0x2a46cf;}})),this[_0x4c65f9(0x171)];}[_0x945337(0x3b7)](){const _0x1bc813=_0x945337;this[_0x1bc813(0x520)]=!0x1;}[_0x945337(0x4ce)](){const _0x4658d0=_0x945337;if(this[_0x4658d0(0x520)])throw new Error(_0x4658d0(0x29d));this[_0x4658d0(0x520)]=!0x0;}[_0x945337(0x285)](_0x176141){const _0x5510c0=_0x945337;this[_0x5510c0(0x4ce)](),this[_0x5510c0(0x31a)](this['_state'][_0x5510c0(0x561)](_0x176141)),this[_0x5510c0(0x3b7)]();}[_0x945337(0x1f5)](_0x125f82){const _0x53f209=_0x945337;if(!(_0x125f82[_0x53f209(0x289)]<=this[_0x53f209(0x1df)]['getCurrentRevOfUnit'](this[_0x53f209(0x1da)]))){if(this['_collaborationPaused']){this[_0x53f209(0x1b7)]['push'](_0x125f82);return;}this[_0x53f209(0x2ff)](_0x125f82);}}['_exhaustRemoteChangesetQueue'](){const _0x3352e0=_0x945337;this[_0x3352e0(0x1b7)][_0x3352e0(0x278)](_0x415814=>this['_applyRemoteChangeset'](_0x415814)),this[_0x3352e0(0x1b7)]=[];}[_0x945337(0x2ff)](_0x1b352d){const _0x2c9135=_0x945337,_0x1b82b4=this['_compressMutationService'][_0x2c9135(0x3b9)]['fetchThroughInterceptors'](this[_0x2c9135(0x17f)][_0x2c9135(0x3b9)]['getInterceptPoints']()[_0x2c9135(0x361)])(_0x1b352d[_0x2c9135(0x435)],null)||_0x1b352d[_0x2c9135(0x435)],_0x30e2cb={..._0x1b352d,'mutations':_0x1b82b4};this[_0x2c9135(0x4ce)](),this[_0x2c9135(0x31a)](this[_0x2c9135(0x171)]['onRemoteChangeset'](_0x30e2cb)),this[_0x2c9135(0x3b7)]();}[_0x945337(0x521)](_0x19f2f6){const _0x16468e=_0x945337;this['_lockTransition'](),this[_0x16468e(0x31a)](this['_state'][_0x16468e(0x344)](_0x19f2f6)),this[_0x16468e(0x3b7)]();}['_onRemoteRejected'](_0xf9236d){const _0x4a1903=_0x945337;this['_lockTransition'](),this['_updateState'](this['_state'][_0x4a1903(0x294)](_0xf9236d)),this['_unlockTransition']();}['_onFetchMissResult'](_0x3d7547){const _0x5adbf4=_0x945337;if(!(this[_0x5adbf4(0x171)]instanceof H))throw new TypeError(_0x5adbf4(0x311));const _0x32eeb3=_0x3d7547[_0x5adbf4(0x2c1)](_0x127ebd=>{const _0x48ddf9=_0x5adbf4,_0x29265b=this[_0x48ddf9(0x17f)][_0x48ddf9(0x3b9)][_0x48ddf9(0x40a)](this['_compressMutationService']['interceptor'][_0x48ddf9(0x1a8)]()[_0x48ddf9(0x361)])(_0x127ebd[_0x48ddf9(0x435)],null)||_0x127ebd[_0x48ddf9(0x435)];return{..._0x127ebd,'mutations':_0x29265b};});this[_0x5adbf4(0x4ce)](),this[_0x5adbf4(0x31a)](this[_0x5adbf4(0x171)]['onMissedChangesetFetched'](_0x32eeb3)),this[_0x5adbf4(0x3b7)]();}['_toggleOffline'](){const _0x48076e=_0x945337;this['_lockTransition'](),this[_0x48076e(0x31a)](this[_0x48076e(0x171)]['toggleOffline']()),this['_unlockTransition']();}[_0x945337(0x415)](_0x321225=!0x1){const _0x4669cd=_0x945337;this[_0x4669cd(0x4ce)](),this['_updateState'](this[_0x4669cd(0x171)][_0x4669cd(0x267)]()),this[_0x4669cd(0x3b7)]();const _0x43552b=this[_0x4669cd(0x171)];_0x321225&&_0x43552b instanceof se&&(this[_0x4669cd(0x4ce)](),this[_0x4669cd(0x31a)](_0x43552b[_0x4669cd(0x2e2)]()),this[_0x4669cd(0x3b7)]());}async[_0x945337(0x4e7)](){return new Promise(_0x24c48d=>{const _0x288091=_0x38f3;this[_0x288091(0x318)][_0x288091(0x37f)][_0x288091(0x550)](v[_0x288091(0x551)](0x1))[_0x288091(0x397)](async _0x1fc791=>{const _0x50ac68=_0x288091;_0x24c48d(await this[_0x50ac68(0x48a)](_0x1fc791===$[_0x50ac68(0x42e)]));});});}['_createHandler'](){const _0x1e35be=_0x945337,_0x592502=this[_0x1e35be(0x1da)];return{'onStateChange':(_0x2f95f8,_0x214f83)=>{const _0x5acd4d=_0x1e35be;if(_0x2f95f8!==this['_state'])throw new Error(_0x5acd4d(0x261)+_0x2f95f8[_0x5acd4d(0x44d)]+_0x5acd4d(0x40f)+_0x214f83[_0x5acd4d(0x44d)]+_0x5acd4d(0x47f)+this['_state']['status']);this[_0x5acd4d(0x31a)](_0x214f83);},'onSendChangeset':_0x6996bb=>{const _0x2f5ae7=_0x1e35be,_0x18e6d6={'eventID':_[_0x2f5ae7(0x4eb)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x6996bb[_0x2f5ae7(0x1da)],'unitType':this['_type'],'changeset':_0x6996bb,'memberID':this[_0x2f5ae7(0x318)][_0x2f5ae7(0x56a)]()}};this[_0x2f5ae7(0x318)]['send'](_0x18e6d6,this[_0x2f5ae7(0x1da)]);},'onMissingChangesets':({from:_0x1d89c6,to:_0x4e4e05})=>{const _0x93867a=_0x1e35be;this[_0x93867a(0x4ae)]['debug']('[CollaborationEntity]',_0x93867a(0x28c)+_0x1d89c6+'\x20to\x20'+_0x4e4e05);const _0x313f58={'eventID':_[_0x93867a(0x4eb)][_0x93867a(0x51d)],'data':{'unitID':_0x592502,'unitType':this[_0x93867a(0x1ad)],'from':_0x1d89c6,'to':_0x4e4e05}};this['session'][_0x93867a(0x2a2)](_0x313f58,this[_0x93867a(0x1da)]);}};}async[_0x945337(0x48a)](_0x26b6c9){const _0x35ba3e=_0x945337;var _0x7ad0f4,_0x1b7449;const _0x579e62=await this[_0x35ba3e(0x576)]['loadOfflineData'](this[_0x35ba3e(0x1da)]),_0x190cfc=(_0x7ad0f4=_0x579e62==null?void 0x0:_0x579e62[_0x35ba3e(0x435)])!=null?_0x7ad0f4:[],_0x3f2100=(_0x1b7449=_0x579e62==null?void 0x0:_0x579e62['awaitingChangeset'])!=null?_0x1b7449:null,_0x12b822=this[_0x35ba3e(0x1da)];try{this[_0x35ba3e(0x4cb)](_0x3f2100,_0x190cfc);}catch(_0x48728a){this[_0x35ba3e(0x4ae)][_0x35ba3e(0x2e8)](_0x48728a);}const _0x1ac125=this[_0x35ba3e(0x19c)]();if(_0x26b6c9){const _0x4bdeb1=Rt(this['_injector'],_0x12b822,this[_0x35ba3e(0x1ad)],_0x3f2100,_0x190cfc,_0x1ac125);return _0x4bdeb1 instanceof x?_0x4bdeb1[_0x35ba3e(0x2bc)]():(_0x4bdeb1 instanceof k||_0x4bdeb1 instanceof W)&&_0x4bdeb1[_0x35ba3e(0x4a4)](),_0x4bdeb1;}return this[_0x35ba3e(0x3dd)][_0x35ba3e(0x39d)](G,_0x12b822,this[_0x35ba3e(0x1ad)],_0x3f2100,_0x190cfc,_0x1ac125);}[_0x945337(0x4cb)](_0x4d80e6,_0x248a14){const _0xa00741=_0x945337;var _0x2f8d55,_0x286cd7;const _0x2fdfc1=this[_0xa00741(0x17f)]['interceptor']['fetchThroughInterceptors'](this[_0xa00741(0x17f)]['interceptor'][_0xa00741(0x1a8)]()['COMPRESS_MUTATION_APPLY']);(_0x2f8d55=_0x2fdfc1((_0x4d80e6==null?void 0x0:_0x4d80e6['mutations'])||[],null))==null||_0x2f8d55[_0xa00741(0x278)](_0xecef79=>this['_commandService'][_0xa00741(0x505)](_0xecef79['id'],_0xecef79['params'])),(_0x286cd7=_0x2fdfc1(_0x248a14||[],null))==null||_0x286cd7[_0xa00741(0x278)](_0x1c42d6=>this['_commandService'][_0xa00741(0x505)](_0x1c42d6['id'],_0x1c42d6['params']));}},exports[_0x945337(0x23c)]=Ke([I(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a[_0x945337(0x4fa)](_[_0x945337(0x1aa)])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),I(0x8,a[_0x945337(0x48c)]),I(0x9,a[_0x945337(0x400)]),I(0xa,N[_0x945337(0x2b2)]),I(0xb,a[_0x945337(0x414)]),I(0xc,a[_0x945337(0x188)](be))],exports[_0x945337(0x23c)]),exports[_0x945337(0x295)]=class extends exports[_0x945337(0x23c)]{constructor(_0x3c3197,_0x266a60,_0x29313d,_0x18e83f,_0x1ff179,_0x33b66d,_0x3b44a4,_0x503768,_0x4a8e8d,_0x2f58a5,_0xf52646,_0x202d15,_0x10e043,_0x48655b,_0x2b3f3b,_0x16d3c6,_0x1cbdb1){const _0xd401a3=_0x945337;super(_0x3c3197,_0x29313d,_0x266a60,_0x18e83f,_0x1ff179,_0x33b66d,_0x3b44a4,_0x503768,_0x10e043,_0x48655b,_0x2b3f3b,_0x16d3c6,_0x1cbdb1),this[_0xd401a3(0x1da)]=_0x3c3197,this[_0xd401a3(0x243)]=_0x266a60,this[_0xd401a3(0x182)]=_0x4a8e8d,this[_0xd401a3(0x172)]=_0x2f58a5,this['_docTransformSelectionsService']=_0xf52646,this[_0xd401a3(0x25e)]=_0x202d15;}['_createHandler'](){const _0x222aa2=_0x945337,_0x320040=super['_createHandler']();return _0x320040[_0x222aa2(0x3d2)]=_0x412ed5=>this[_0x222aa2(0x172)][_0x222aa2(0x1d1)](_0x412ed5),_0x320040[_0x222aa2(0x454)]=_0x1f4115=>this['_docTransformSelectionsService'][_0x222aa2(0x463)](_0x1f4115),_0x320040['onSyncEditingCollabCursor']=_0xaa5985=>this[_0x222aa2(0x25e)][_0x222aa2(0x271)](_0xaa5985),_0x320040[_0x222aa2(0x1b1)]=_0x48b627=>this[_0x222aa2(0x172)]['transformRemoteChangeset'](_0x48b627),_0x320040;}async[_0x945337(0x458)](){const _0x3b1302=_0x945337,_0x50ad2=await super[_0x3b1302(0x458)]();return this[_0x3b1302(0x50a)](this[_0x3b1302(0x256)][_0x3b1302(0x3ad)]((_0x134e90,_0x3795d9)=>{const _0x3fe17e=_0x3b1302;if(_0x134e90[_0x3fe17e(0x243)]!==a[_0x3fe17e(0x2fb)][_0x3fe17e(0x36f)]||_0x3795d9!=null&&_0x3795d9['fromCollab']||_0x3795d9!=null&&_0x3795d9[_0x3fe17e(0x1f0)])return;const _0x1ff5a7=_0x134e90['params'];if((_0x1ff5a7==null?void 0x0:_0x1ff5a7[_0x3fe17e(0x212)])!==this[_0x3fe17e(0x1da)])return;let _0x21cf37=_0x134e90;if(_0x21cf37['id']===V[_0x3fe17e(0x316)]['id']){const _0xf675ed=_0x21cf37[_0x3fe17e(0x17c)];_0x21cf37={'id':V[_0x3fe17e(0x316)]['id'],'type':a[_0x3fe17e(0x2fb)]['MUTATION'],'params':{'unitId':_0xf675ed[_0x3fe17e(0x212)],'actions':_0xf675ed[_0x3fe17e(0x3ef)],'textRanges':null}};}const _0x474aed=this['_compressMutationService']['interceptor'][_0x3fe17e(0x40a)](this[_0x3fe17e(0x17f)][_0x3fe17e(0x3b9)][_0x3fe17e(0x1a8)]()[_0x3fe17e(0x4c2)])([_0x21cf37],null)||[_0x21cf37];this[_0x3fe17e(0x285)](_0x474aed[0x0]);})),_0x50ad2;}},exports[_0x945337(0x295)]=Ke([I(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a['Inject'](_['CompressMutationService'])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_['RevisionService'])),I(0x8,a[_0x945337(0x4fa)](w['DocStateChangeManagerService'])),I(0x9,a[_0x945337(0x4fa)](fe)),I(0xa,a[_0x945337(0x4fa)](me)),I(0xb,a['Inject'](Ye)),I(0xc,a[_0x945337(0x48c)]),I(0xd,a['ICommandService']),I(0xe,N['IMessageService']),I(0xf,a[_0x945337(0x414)]),I(0x10,a[_0x945337(0x188)](be))],exports['DocCollaborationEntity']),exports['SheetCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x423f82,_0x37ab75,_0x21be21,_0x5be169,_0x3244f4,_0x4a8b40,_0x4cf9fd,_0x33e71c,_0x3e3ae2,_0x5e65ed,_0x448007,_0xd415d6,_0x5cafb0,_0x54ca1a){const _0x50ec23=_0x945337;super(_0x423f82,_0x21be21,_0x37ab75,_0x5be169,_0x3244f4,_0x4a8b40,_0x4cf9fd,_0x33e71c,_0x5e65ed,_0x448007,_0xd415d6,_0x5cafb0,_0x54ca1a),this[_0x50ec23(0x1da)]=_0x423f82,this['type']=_0x37ab75,this[_0x50ec23(0x50c)]=_0x3e3ae2;}[_0x945337(0x19c)](){const _0x52a489=_0x945337,_0x533f4a=super[_0x52a489(0x19c)]();return _0x533f4a[_0x52a489(0x454)]=_0x225d00=>this[_0x52a489(0x50c)][_0x52a489(0x463)](_0x225d00),_0x533f4a;}async[_0x945337(0x458)](){const _0x2c0c3c=_0x945337,_0xf8df4f=await super[_0x2c0c3c(0x458)]();return this[_0x2c0c3c(0x50a)](this[_0x2c0c3c(0x256)][_0x2c0c3c(0x3ad)]((_0x317709,_0x7ee253)=>{const _0x28311a=_0x2c0c3c;if(_0x317709['type']!==a[_0x28311a(0x2fb)][_0x28311a(0x36f)]||_0x7ee253!=null&&_0x7ee253[_0x28311a(0x4aa)]||_0x7ee253!=null&&_0x7ee253[_0x28311a(0x1f0)])return;const _0x42dea1=_0x317709['params'];if((_0x42dea1==null?void 0x0:_0x42dea1[_0x28311a(0x212)])!==this[_0x28311a(0x1da)])return;const _0x64b0b7=_0x317709,_0x30fae1=this[_0x28311a(0x17f)][_0x28311a(0x3b9)][_0x28311a(0x40a)](this[_0x28311a(0x17f)][_0x28311a(0x3b9)][_0x28311a(0x1a8)]()[_0x28311a(0x4c2)])([_0x64b0b7],null)||[_0x64b0b7];this['_onLocalMutation'](_0x30fae1[0x0]);})),_0xf8df4f;}},exports[_0x945337(0x4dd)]=Ke([I(0x3,a['Inject'](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a[_0x945337(0x4fa)](_[_0x945337(0x1aa)])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_['RevisionService'])),I(0x8,a[_0x945337(0x4fa)](ge)),I(0x9,a[_0x945337(0x48c)]),I(0xa,a[_0x945337(0x400)]),I(0xb,N[_0x945337(0x2b2)]),I(0xc,a[_0x945337(0x414)]),I(0xd,a['Optional'](be))],exports[_0x945337(0x4dd)]);var ks=Object[_0x945337(0x24b)],Bs=Object[_0x945337(0x3e2)],Vs=(_0xc7f3ce,_0x171703,_0x320c42,_0xae8f68)=>{const _0x2c1d76=_0x945337;for(var _0x24e668=_0xae8f68>0x1?void 0x0:_0xae8f68?Bs(_0x171703,_0x320c42):_0x171703,_0x4d865b=_0xc7f3ce[_0x2c1d76(0x3f0)]-0x1,_0x4bae11;_0x4d865b>=0x0;_0x4d865b--)(_0x4bae11=_0xc7f3ce[_0x4d865b])&&(_0x24e668=(_0xae8f68?_0x4bae11(_0x171703,_0x320c42,_0x24e668):_0x4bae11(_0x24e668))||_0x24e668);return _0xae8f68&&_0x24e668&&ks(_0x171703,_0x320c42,_0x24e668),_0x24e668;},Ue=(_0x30842e,_0x12fe95)=>(_0x545fc1,_0x3f440b)=>_0x12fe95(_0x545fc1,_0x3f440b,_0x30842e);exports[_0x945337(0x4ee)]=class extends a[_0x945337(0x538)]{constructor(_0x3133d4,_0x45e489,_0x3dfd26){const _0x10a16f=_0x945337;super(),d(this,_0x10a16f(0x565),new Map()),d(this,_0x10a16f(0x32d),new v[(_0x10a16f(0x36e))]()),(this[_0x10a16f(0x3dd)]=_0x3133d4,this['_collabSessionService']=_0x45e489,this[_0x10a16f(0x337)]=_0x3dfd26,this[_0x10a16f(0x458)]());}[_0x945337(0x1eb)](){const _0x5c7c0b=_0x945337;super[_0x5c7c0b(0x1eb)](),this[_0x5c7c0b(0x565)][_0x5c7c0b(0x278)](_0x368c07=>_0x368c07[_0x5c7c0b(0x1eb)]()),this[_0x5c7c0b(0x565)]['clear']();}[_0x945337(0x27d)](_0x16666e){var _0x2c37a8;return(_0x2c37a8=this['_entities']['get'](_0x16666e))!=null?_0x2c37a8:null;}[_0x945337(0x4b1)](_0x40b5bd){const _0x5e657d=_0x945337,_0x1fd78b=this[_0x5e657d(0x27d)](_0x40b5bd);return _0x1fd78b?v['of'](_0x1fd78b):this[_0x5e657d(0x32d)][_0x5e657d(0x550)](E[_0x5e657d(0x1dc)](_0x7cf465=>_0x7cf465[_0x5e657d(0x1da)]===_0x40b5bd));}[_0x945337(0x458)](){const _0x28d98d=_0x945337;this['_univerInstanceService'][_0x28d98d(0x51e)](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]),E[_0x28d98d(0x4d7)](0x10))[_0x28d98d(0x397)](async _0x4e5040=>{const _0x57be5c=_0x28d98d,_0x5eeda3=_0x4e5040[_0x57be5c(0x352)](),_0x5216dc=await this[_0x57be5c(0x417)](_0x5eeda3,j[_0x57be5c(0x53c)]);this[_0x57be5c(0x565)]['set'](_0x5eeda3,_0x5216dc);}),this[_0x28d98d(0x337)]['getTypeOfUnitAdded$'](a[_0x28d98d(0x3b1)]['UNIVER_DOC'])['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]),E[_0x28d98d(0x4d7)](0x10))['pipe'](E[_0x28d98d(0x1dc)](_0x1712b7=>!_0x1712b7[_0x28d98d(0x352)]()[_0x28d98d(0x2aa)]('__')))[_0x28d98d(0x397)](async _0x319efc=>{const _0x4537d9=_0x28d98d,_0x2f2e5e=_0x319efc[_0x4537d9(0x352)](),_0x3ebbe5=await this['_startCollaboration'](_0x2f2e5e,j[_0x4537d9(0x395)]);this[_0x4537d9(0x565)][_0x4537d9(0x4a8)](_0x2f2e5e,_0x3ebbe5);}),v[_0x28d98d(0x515)](this[_0x28d98d(0x337)][_0x28d98d(0x18e)](a[_0x28d98d(0x3b1)]['UNIVER_SHEET']),this[_0x28d98d(0x337)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]))[_0x28d98d(0x397)](_0x33a15a=>{const _0x5f3841=_0x28d98d,_0x4c69fd=_0x33a15a[_0x5f3841(0x352)](),_0xc5d13e=this[_0x5f3841(0x565)]['get'](_0x4c69fd);_0xc5d13e&&(_0xc5d13e[_0x5f3841(0x1eb)](),this['_entities']['delete'](_0x4c69fd));});}async[_0x945337(0x417)](_0x25ddc8,_0x5f0857){const _0x3c7c51=_0x945337,_0x40fb39=await this[_0x3c7c51(0x407)][_0x3c7c51(0x369)](_0x25ddc8),_0x25b29a=this['_injector'][_0x3c7c51(0x39d)](this[_0x3c7c51(0x16f)](_0x5f0857),_0x25ddc8,_0x5f0857,_0x40fb39);return await _0x25b29a[_0x3c7c51(0x55a)](),this['_entityInit$'][_0x3c7c51(0x3ca)](_0x25b29a),_0x25b29a;}['_getCtorByUniverType'](_0x121c7f){const _0x509c26=_0x945337;switch(_0x121c7f){case j[_0x509c26(0x395)]:return exports[_0x509c26(0x295)];case j[_0x509c26(0x53c)]:return exports[_0x509c26(0x4dd)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x121c7f);}}},exports[_0x945337(0x4ee)]=Vs([Ue(0x0,a['Inject'](a[_0x945337(0x2b5)])),Ue(0x1,a[_0x945337(0x4fa)](exports['CollaborationSessionService'])),Ue(0x2,a[_0x945337(0x57b)])],exports[_0x945337(0x4ee)]);const nt=[_0x945337(0x46f),_0x945337(0x3c0),_0x945337(0x4a6),'red300',_0x945337(0x3a4),'gold400'];class Xe extends a[_0x945337(0x45b)]{constructor(){const _0x3cd7c7=_0x945337;super(...arguments),d(this,_0x3cd7c7(0x502),new Map()),d(this,_0x3cd7c7(0x286),0x0);}['assignAColorForMemberID'](_0x1157e1){const _0xc61de6=_0x945337;if(this[_0xc61de6(0x502)][_0xc61de6(0x384)](_0x1157e1))return this[_0xc61de6(0x502)]['get'](_0x1157e1);const _0x36eb06=nt[this['_colorIndex']];return this[_0xc61de6(0x286)]=(this[_0xc61de6(0x286)]+0x1)%nt[_0xc61de6(0x3f0)],this[_0xc61de6(0x502)][_0xc61de6(0x4a8)](_0x1157e1,_0x36eb06),_0x36eb06;}}var Ws=Object[_0x945337(0x24b)],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x234042,_0xd5e2dc,_0xb8883b,_0x44a596)=>{const _0x12d550=_0x945337;for(var _0x3f4a43=_0x44a596>0x1?void 0x0:_0x44a596?Fs(_0xd5e2dc,_0xb8883b):_0xd5e2dc,_0x47d166=_0x234042[_0x12d550(0x3f0)]-0x1,_0x41dc7e;_0x47d166>=0x0;_0x47d166--)(_0x41dc7e=_0x234042[_0x47d166])&&(_0x3f4a43=(_0x44a596?_0x41dc7e(_0xd5e2dc,_0xb8883b,_0x3f4a43):_0x41dc7e(_0x3f4a43))||_0x3f4a43);return _0x44a596&&_0x3f4a43&&Ws(_0xd5e2dc,_0xb8883b,_0x3f4a43),_0x3f4a43;},K=(_0x31d690,_0x5d74f9)=>(_0x376657,_0xe85349)=>_0x5d74f9(_0x376657,_0xe85349,_0x31d690);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x945337(0x538)]{constructor(_0x490813,_0x2bedb3,_0x539af8,_0xf61bb2,_0x4d4f9d,_0x2def9e,_0x303577,_0x57240d,_0x5120a6){const _0x3e2284=_0x945337;super(),d(this,_0x3e2284(0x270),!0x1),d(this,_0x3e2284(0x458),!0x1),d(this,_0x3e2284(0x4bc),new v[(_0x3e2284(0x52c))](new Map())),d(this,_0x3e2284(0x247),this[_0x3e2284(0x4bc)][_0x3e2284(0x19b)]()),d(this,'_roomMembers$',new v[(_0x3e2284(0x52c))]([])),d(this,_0x3e2284(0x493),this[_0x3e2284(0x228)]['pipe'](v[_0x3e2284(0x3ee)](Ys))),d(this,_0x3e2284(0x4a7),a[_0x3e2284(0x49c)](_0x3198a6=>{const _0x54a9b0=_0x3e2284,_0x5d2602={'eventID':_['CollaborationEvent'][_0x54a9b0(0x206)],'data':{'unitID':this[_0x54a9b0(0x1da)],'memberID':this[_0x54a9b0(0x1e9)][_0x54a9b0(0x56a)](),'selection':Tt(_0x3198a6)}};this[_0x54a9b0(0x1e9)]['send'](_0x5d2602,this[_0x54a9b0(0x1da)]);},Ks)),(this[_0x3e2284(0x1da)]=_0x490813,this[_0x3e2284(0x1e9)]=_0x2bedb3,this[_0x3e2284(0x3dd)]=_0x539af8,this['_colorAssignService']=_0xf61bb2,this[_0x3e2284(0x526)]=_0x4d4f9d,this['_syncEditingCollabCursorService']=_0x2def9e,this[_0x3e2284(0x4f2)]=_0x303577,this['_univerInstanceService']=_0x57240d,this['_commandService']=_0x5120a6);}get[_0x945337(0x496)](){const _0x300f74=_0x945337;return this['_cursorInfo$'][_0x300f74(0x2d6)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x945337(0x1eb)](){const _0x24ee13=_0x945337;super[_0x24ee13(0x1eb)](),this['_cursorInfo$'][_0x24ee13(0x3ca)](new Map()),this['_cursorInfo$'][_0x24ee13(0x531)](),this[_0x24ee13(0x228)][_0x24ee13(0x3ca)]([]),this['_roomMembers$'][_0x24ee13(0x531)]();}[_0x945337(0x55a)](){const _0x458d97=_0x945337;this[_0x458d97(0x458)]||(this[_0x458d97(0x458)]=!0x0,this['_session'][_0x458d97(0x37f)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this[_0x458d97(0x2ec)]))[_0x458d97(0x397)](_0x5a6e1d=>{const _0x2c869e=_0x458d97;_0x5a6e1d===$[_0x2c869e(0x42e)]?this[_0x2c869e(0x415)]():this[_0x2c869e(0x218)]();}),this[_0x458d97(0x1e9)][_0x458d97(0x23f)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this['dispose$']))[_0x458d97(0x397)](_0x1687f2=>{const _0x451c2a=_0x458d97,_0x41e54c=_0x1687f2['eventID'];_0x41e54c===_['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1687f2),_0x41e54c===_[_0x451c2a(0x4eb)][_0x451c2a(0x3cb)]&&this[_0x451c2a(0x210)](_0x1687f2);}),this[_0x458d97(0x50a)](this[_0x458d97(0x256)]['onCommandExecuted'](_0x19f83a=>{const _0xfce9ee=_0x458d97,_0x5d8c5c=_0x19f83a[_0xfce9ee(0x17c)];_0x5d8c5c!=null&&this[_0xfce9ee(0x270)]&&_0x19f83a['id']===V['SetTextSelectionsOperation']['id']&&_0x5d8c5c[_0xfce9ee(0x212)]===this[_0xfce9ee(0x1da)]&&_0x5d8c5c[_0xfce9ee(0x571)]===!0x1&&this['_updateLocalCursor'](_0x5d8c5c[_0xfce9ee(0x542)]);})),this['_syncEditingCollabCursorService'][_0x458d97(0x23e)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this[_0x458d97(0x2ec)]))[_0x458d97(0x397)](_0x8aab4a=>{const _0x3255f3=_0x458d97;if((_0x8aab4a==null?void 0x0:_0x8aab4a['unitID'])!==this[_0x3255f3(0x1da)])return;const _0x4e8667={'eventID':_[_0x3255f3(0x4eb)][_0x3255f3(0x206)],'data':_0x8aab4a};this[_0x3255f3(0x1b8)](_0x4e8667);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2895ff=>{const _0x4976d7=_0x458d97;if(_0x2895ff['params']==null)return;const _0x1d2db8=_0x2895ff[_0x4976d7(0x17c)];if(_0x2895ff['id']!==V['RichTextEditingMutation']['id']||_0x1d2db8[_0x4976d7(0x212)]!==this[_0x4976d7(0x1da)])return;const _0x56d60b={'id':_0x4976d7(0x333),'params':_0x1d2db8},_0x5f353e=this[_0x4976d7(0x496)];for(const [_0x2cb237,_0x342db8]of _0x5f353e){const _0xe44a35={'id':_0x4976d7(0x333),'params':{'unitId':this[_0x4976d7(0x1da)],'actions':null,'textRanges':_0x342db8[_0x4976d7(0x542)]}},_0xcc5c89=this[_0x4976d7(0x4f2)][_0x4976d7(0x34c)](_0x56d60b,_0xe44a35,!0x1);if(_[_0x4976d7(0x420)](_0xcc5c89))throw _0xcc5c89[_0x4976d7(0x2e8)];_0x5f353e['set'](_0x2cb237,{..._0x342db8,'ranges':_0xcc5c89[_0x4976d7(0x178)][_0x4976d7(0x17c)][_0x4976d7(0x485)]});}queueMicrotask(()=>{const _0x184d4b=_0x4976d7;this[_0x184d4b(0x4bc)][_0x184d4b(0x3ca)](_0x5f353e);});})));}['_onCursorUpdate'](_0x2eb5a1){const _0x104cf8=_0x945337;var _0x4144da,_0x2cf84b;const {memberID:_0x4377f4,selection:_0x31c8bc}=_0x2eb5a1[_0x104cf8(0x375)],_0x32ae7b=Us(_0x31c8bc),_0x166ccc=(_0x2cf84b=(_0x4144da=this[_0x104cf8(0x526)][_0x104cf8(0x467)](this[_0x104cf8(0x1da)],_0x4377f4))==null?void 0x0:_0x4144da[_0x104cf8(0x508)])!=null?_0x2cf84b:_0x104cf8(0x3c2),_0x277ec2={'color':this['_colorAssignService'][_0x104cf8(0x2ac)](_0x4377f4),'name':_0x166ccc,'ranges':_0x32ae7b},_0x493e96=this['cursorInfo'];_0x493e96[_0x104cf8(0x4a8)](_0x4377f4,_0x277ec2),this[_0x104cf8(0x4bc)][_0x104cf8(0x3ca)](_0x493e96);}[_0x945337(0x210)](_0x4c474f){const _0x3a13bc=_0x945337,{memberID:_0x35dd51}=_0x4c474f[_0x3a13bc(0x375)],_0x1505bf=this['cursorInfo'];_0x1505bf[_0x3a13bc(0x532)](_0x35dd51),this['_cursorInfo$'][_0x3a13bc(0x3ca)](_0x1505bf);}[_0x945337(0x415)](){const _0x299005=_0x945337;var _0x2766fc;if(this['_online']=!0x0,((_0x2766fc=this[_0x299005(0x337)][_0x299005(0x255)]())==null?void 0x0:_0x2766fc[_0x299005(0x352)]())!==this[_0x299005(0x1da)])return;const _0x573078=this[_0x299005(0x3dd)][_0x299005(0x3eb)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x299005(0x48e)](_0x573078)&&_0x573078[_0x299005(0x3f0)]>0x0&&this[_0x299005(0x4a7)](_0x573078);}['_toggleOffline'](){const _0x236c96=_0x945337;this[_0x236c96(0x270)]=!0x1;}};$e=Gs([K(0x2,a[_0x945337(0x4fa)](a['Injector'])),K(0x3,a[_0x945337(0x4fa)](Xe)),K(0x4,a[_0x945337(0x4fa)](q)),K(0x5,a[_0x945337(0x4fa)](Ye)),K(0x6,_[_0x945337(0x429)]),K(0x7,a['IUniverInstanceService']),K(0x8,a[_0x945337(0x400)])],$e);var Xs=Object[_0x945337(0x24b)],qs=Object[_0x945337(0x3e2)],zs=(_0x17336c,_0x507f83,_0x2e536a,_0x443758)=>{for(var _0x41bacd=_0x443758>0x1?void 0x0:_0x443758?qs(_0x507f83,_0x2e536a):_0x507f83,_0x4720f9=_0x17336c['length']-0x1,_0xf2b72b;_0x4720f9>=0x0;_0x4720f9--)(_0xf2b72b=_0x17336c[_0x4720f9])&&(_0x41bacd=(_0x443758?_0xf2b72b(_0x507f83,_0x2e536a,_0x41bacd):_0xf2b72b(_0x41bacd))||_0x41bacd);return _0x443758&&_0x41bacd&&Xs(_0x507f83,_0x2e536a,_0x41bacd),_0x41bacd;},Q=(_0x3a087c,_0xfd9136)=>(_0x304a32,_0x19ea31)=>_0xfd9136(_0x304a32,_0x19ea31,_0x3a087c);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x2b6685=[],_0x4cf71b=!0x1;return _0x5da6c2=>{const _0x1743f5=_0x38f3;_0x2b6685[_0x1743f5(0x3b0)](_0x5da6c2),_0x4cf71b||(_0x4cf71b=!0x0,setTimeout(()=>{const _0x5308f4=_0x1743f5;_0x2b6685[_0x5308f4(0x278)](_0x549e81=>_0x549e81()),_0x2b6685=[],_0x4cf71b=!0x1;}));};};let He=class extends a[_0x945337(0x538)]{constructor(_0x35d5a3,_0x3e80cb,_0x438a85,_0x4311f4,_0x3ee91f,_0x427a2c,_0x3ad57b,_0x41c2c2){const _0x5a1c4f=_0x945337;super(),d(this,_0x5a1c4f(0x270),!0x1),d(this,'_init',!0x1),d(this,_0x5a1c4f(0x4bc),new v['BehaviorSubject'](new Map())),d(this,_0x5a1c4f(0x247),this[_0x5a1c4f(0x4bc)][_0x5a1c4f(0x19b)]()),d(this,_0x5a1c4f(0x228),new v['BehaviorSubject']([])),d(this,_0x5a1c4f(0x493),this['_roomMembers$'][_0x5a1c4f(0x550)](v[_0x5a1c4f(0x3ee)](Js))),d(this,_0x5a1c4f(0x4a7),a[_0x5a1c4f(0x49c)]((_0x1879bb,_0x578cba)=>{const _0xe8c8a=_0x5a1c4f,_0x2807ed={'eventID':_[_0xe8c8a(0x4eb)][_0xe8c8a(0x206)],'data':{'unitID':this[_0xe8c8a(0x1da)],'memberID':this[_0xe8c8a(0x1e9)][_0xe8c8a(0x56a)](),'selection':Je[_0xe8c8a(0x251)](_0x1879bb,_0x578cba[_0xe8c8a(0x25a)])}};this[_0xe8c8a(0x1e9)][_0xe8c8a(0x2a2)](_0x2807ed,this[_0xe8c8a(0x1da)]);},Zs)),(this['unitID']=_0x35d5a3,this['_session']=_0x3e80cb,this[_0x5a1c4f(0x3dd)]=_0x438a85,this['_colorAssignService']=_0x4311f4,this['_memberService']=_0x3ee91f,this['_univerInstanceService']=_0x427a2c,this[_0x5a1c4f(0x256)]=_0x3ad57b,this[_0x5a1c4f(0x385)]=_0x41c2c2);}get[_0x945337(0x496)](){const _0x3ddf53=_0x945337;return this[_0x3ddf53(0x4bc)][_0x3ddf53(0x2d6)]();}get['roomMembers'](){const _0x3542d2=_0x945337;return this[_0x3542d2(0x228)]['getValue']();}['dispose'](){const _0x1c2937=_0x945337;super[_0x1c2937(0x1eb)](),this['_cursorInfo$'][_0x1c2937(0x3ca)](new Map()),this[_0x1c2937(0x4bc)][_0x1c2937(0x531)](),this[_0x1c2937(0x228)]['next']([]),this[_0x1c2937(0x228)]['complete']();}['init'](){const _0x57bc12=_0x945337;this['_init']||(this[_0x57bc12(0x458)]=!0x0,this[_0x57bc12(0x1e9)][_0x57bc12(0x37f)]['pipe'](v['takeUntil'](this['dispose$']))[_0x57bc12(0x397)](_0x34a446=>{const _0x2f17f7=_0x57bc12;_0x34a446===$['ONLINE']?this[_0x2f17f7(0x415)]():this[_0x2f17f7(0x218)]();}),this[_0x57bc12(0x1e9)][_0x57bc12(0x23f)][_0x57bc12(0x550)](v[_0x57bc12(0x43c)](this[_0x57bc12(0x2ec)]))['subscribe'](_0x41ec47=>{const _0x2e5cbe=_0x57bc12,_0x1d591b=_0x41ec47[_0x2e5cbe(0x170)];_0x1d591b===_[_0x2e5cbe(0x4eb)][_0x2e5cbe(0x206)]&&this[_0x2e5cbe(0x1b8)](_0x41ec47),_0x1d591b===_[_0x2e5cbe(0x4eb)][_0x2e5cbe(0x3cb)]&&this[_0x2e5cbe(0x210)](_0x41ec47);}),this['_onRefRangeChange'](),this[_0x57bc12(0x50a)](this[_0x57bc12(0x256)]['onCommandExecuted'](_0x4ee6f6=>{const _0x13087e=_0x57bc12;if(this[_0x13087e(0x270)]&&_0x4ee6f6['id']===C[_0x13087e(0x4d1)]['id']&&_0x4ee6f6[_0x13087e(0x17c)][_0x13087e(0x212)]===this[_0x13087e(0x1da)]){const _0x1a6beb=_0x4ee6f6[_0x13087e(0x17c)];this[_0x13087e(0x4a7)](_0x1a6beb[_0x13087e(0x215)],_0x1a6beb[_0x13087e(0x53f)][0x0]);}})));}['_onCursorUpdate'](_0x44d616){const _0x153aec=_0x945337;var _0x3c91b5,_0x1be3c4;const {memberID:_0x4b859f,selection:_0x18a407}=_0x44d616[_0x153aec(0x375)],{sheetName:_0x39f5a3,range:_0x305843}=Je[_0x153aec(0x387)](_0x18a407),_0x18c5e0={'name':(_0x1be3c4=(_0x3c91b5=this[_0x153aec(0x526)][_0x153aec(0x467)](this[_0x153aec(0x1da)],_0x4b859f))==null?void 0x0:_0x3c91b5['name'])!=null?_0x1be3c4:_0x153aec(0x3c2),'range':this['_getMergeRange'](_0x39f5a3,_0x305843),'sheetID':_0x39f5a3,'color':this[_0x153aec(0x239)][_0x153aec(0x2ac)](_0x4b859f),'selection':_0x18a407},_0x4fa73d=this[_0x153aec(0x496)];_0x4fa73d['set'](_0x4b859f,_0x18c5e0),this[_0x153aec(0x4bc)][_0x153aec(0x3ca)](_0x4fa73d);}['_onCursorDelete'](_0x5501cb){const _0x347524=_0x945337,{memberID:_0x404df5}=_0x5501cb[_0x347524(0x375)],_0x138f11=this[_0x347524(0x496)];_0x138f11[_0x347524(0x532)](_0x404df5),this[_0x347524(0x4bc)][_0x347524(0x3ca)](_0x138f11);}[_0x945337(0x246)](_0x17bb34,_0x2a3afe){const _0x56debe=_0x945337;var _0x403c76,_0x3370d1;const _0x37f95c=(_0x3370d1=(_0x403c76=this[_0x56debe(0x337)][_0x56debe(0x224)](this[_0x56debe(0x1da)]))==null?void 0x0:_0x403c76['getSheetBySheetId'](_0x17bb34))==null?void 0x0:_0x3370d1[_0x56debe(0x544)]();return(_0x37f95c==null?void 0x0:_0x37f95c['find'](_0x53826d=>a[_0x56debe(0x1ff)][_0x56debe(0x36d)](_0x53826d,_0x2a3afe)))||_0x2a3afe;}['_onRefRangeChange'](){const _0x449f21=_0x945337,_0x25215c=new a[(_0x449f21(0x275))](),_0x49a8d2=Qs(),_0x7d752=()=>{const _0x9165cc=_0x449f21;_0x25215c['dispose']();const _0x543776=(_0x51da36,_0x1d7dcf,_0x3be053,_0x40b7db)=>{const _0x226ad8=_0x38f3;let _0x5eb90a=[];switch(_0x51da36['id']){case C['EffectRefRangId'][_0x226ad8(0x56e)]:{_0x5eb90a=C[_0x226ad8(0x1a7)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x36b)]:{_0x5eb90a=C[_0x226ad8(0x174)](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)][_0x226ad8(0x244)]:{_0x5eb90a=C[_0x226ad8(0x513)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x19f)]:{_0x5eb90a=C[_0x226ad8(0x476)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x5eb90a=C['handleInsertRangeMoveRight'](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x1e2)]:{_0x5eb90a=C[_0x226ad8(0x213)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x3a6)]:{_0x5eb90a=C[_0x226ad8(0x4ec)](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)][_0x226ad8(0x21f)]:{_0x5eb90a=C['handleIRemoveCol'](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)]['RemoveRowCommandId']:{_0x5eb90a=C[_0x226ad8(0x235)](_0x51da36,_0x40b7db);break;}}const _0x56b77e=C[_0x226ad8(0x1fb)](_0x5eb90a,_0x40b7db),_0xf85cf6=this[_0x226ad8(0x496)][_0x226ad8(0x3eb)](_0x1d7dcf);if(_0xf85cf6&&_0x56b77e){const _0x4bd0c3={..._0xf85cf6,'range':_0x56b77e};this[_0x226ad8(0x496)][_0x226ad8(0x4a8)](_0x1d7dcf,_0x4bd0c3),_0x49a8d2(()=>{const _0x4d8c73=_0x226ad8,_0x5b44e9=this[_0x4d8c73(0x385)][_0x4d8c73(0x425)](_0x56b77e,_0x10d563=>(_0x5b44e9[_0x4d8c73(0x1eb)](),_0x543776(_0x10d563,_0x1d7dcf,_0x3be053,_0x56b77e)));_0x25215c[_0x4d8c73(0x18a)](_0x5b44e9);});}return{'redos':[],'undos':[]};};this[_0x9165cc(0x496)]['forEach']((_0x12faf0,_0x44b028)=>{const _0x4640f0=_0x9165cc,{range:_0x1d202d,sheetID:_0x179076}=_0x12faf0,_0x4b9c27=this[_0x4640f0(0x385)][_0x4640f0(0x425)](_0x1d202d,_0x587baa=>(_0x4b9c27[_0x4640f0(0x1eb)](),_0x543776(_0x587baa,_0x44b028,_0x179076,_0x1d202d)));_0x25215c['add'](_0x4b9c27);});};this['disposeWithMe'](a['toDisposable'](this[_0x449f21(0x4bc)][_0x449f21(0x397)](()=>{_0x7d752();})));}['_toggleOnline'](){const _0x306c6d=_0x945337;var _0x3ea472,_0x3c361f;if(this[_0x306c6d(0x270)]=!0x0,((_0x3ea472=this['_univerInstanceService'][_0x306c6d(0x255)]())==null?void 0x0:_0x3ea472[_0x306c6d(0x352)]())!==this['unitID'])return;const _0x52c8d0=(_0x3c361f=this[_0x306c6d(0x3dd)][_0x306c6d(0x3eb)](C[_0x306c6d(0x403)])[_0x306c6d(0x57f)]())==null?void 0x0:_0x3c361f[0x0],_0x18e48a=this[_0x306c6d(0x337)][_0x306c6d(0x528)](a[_0x306c6d(0x3b1)][_0x306c6d(0x53c)])['getActiveSheet']();_0x52c8d0&&_0x18e48a&&this['_updateLocalCursor'](_0x18e48a[_0x306c6d(0x221)](),_0x52c8d0);}[_0x945337(0x218)](){const _0x14a47b=_0x945337;this[_0x14a47b(0x270)]=!0x1;}};He=zs([Q(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),Q(0x3,a[_0x945337(0x4fa)](Xe)),Q(0x4,a[_0x945337(0x4fa)](q)),Q(0x5,a[_0x945337(0x57b)]),Q(0x6,a[_0x945337(0x400)]),Q(0x7,a[_0x945337(0x4fa)](C[_0x945337(0x2e3)]))],He);var ei=Object[_0x945337(0x24b)],ti=Object[_0x945337(0x3e2)],si=(_0x3637b7,_0x288c99,_0x4db61f,_0x146976)=>{const _0x571244=_0x945337;for(var _0x1b5faf=_0x146976>0x1?void 0x0:_0x146976?ti(_0x288c99,_0x4db61f):_0x288c99,_0x334a4b=_0x3637b7[_0x571244(0x3f0)]-0x1,_0x25f797;_0x334a4b>=0x0;_0x334a4b--)(_0x25f797=_0x3637b7[_0x334a4b])&&(_0x1b5faf=(_0x146976?_0x25f797(_0x288c99,_0x4db61f,_0x1b5faf):_0x25f797(_0x1b5faf))||_0x1b5faf);return _0x146976&&_0x1b5faf&&ei(_0x288c99,_0x4db61f,_0x1b5faf),_0x1b5faf;},Pe=(_0x5c9361,_0x5b4c0d)=>(_0x390513,_0x2cafe4)=>_0x5b4c0d(_0x390513,_0x2cafe4,_0x5c9361);let ie=class extends a[_0x945337(0x538)]{constructor(_0x4a613f,_0x35bb96,_0x3566fc){const _0x297632=_0x945337;super(),d(this,'_entities',new Map()),d(this,_0x297632(0x32d),new v[(_0x297632(0x36e))]()),(this['_univerInstanceService']=_0x4a613f,this[_0x297632(0x3dd)]=_0x35bb96,this[_0x297632(0x407)]=_0x3566fc,this[_0x297632(0x458)]());}[_0x945337(0x1eb)](){const _0x376ff1=_0x945337;super[_0x376ff1(0x1eb)](),this['_entityInit$'][_0x376ff1(0x531)](),this[_0x376ff1(0x565)][_0x376ff1(0x278)](_0x1cba43=>_0x1cba43[_0x376ff1(0x1eb)]());}[_0x945337(0x2c6)](_0x5688c2){const _0x3553f1=_0x945337;return this[_0x3553f1(0x565)][_0x3553f1(0x384)](_0x5688c2)?this['_entities'][_0x3553f1(0x3eb)](_0x5688c2)[_0x3553f1(0x247)]:this[_0x3553f1(0x32d)]['pipe'](v[_0x3553f1(0x1dc)](_0x28d7fd=>_0x28d7fd[_0x3553f1(0x1da)]===_0x5688c2),v['switchMap'](_0x2b43cf=>_0x2b43cf['cursorInfo$']));}[_0x945337(0x458)](){const _0x3575b1=_0x945337;this[_0x3575b1(0x337)][_0x3575b1(0x51e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x53c)])['pipe'](v[_0x3575b1(0x43c)](this['dispose$']))[_0x3575b1(0x397)](async _0x224c96=>{const _0x4214a6=_0x3575b1,_0x29d880=_0x224c96['getUnitId'](),_0x4ff3e1=await this[_0x4214a6(0x32a)](_0x29d880);this[_0x4214a6(0x32d)][_0x4214a6(0x3ca)](_0x4ff3e1),this[_0x4214a6(0x565)][_0x4214a6(0x4a8)](_0x29d880,_0x4ff3e1);}),this[_0x3575b1(0x337)][_0x3575b1(0x51e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x395)])[_0x3575b1(0x550)](v[_0x3575b1(0x43c)](this[_0x3575b1(0x2ec)]))['pipe'](v[_0x3575b1(0x1dc)](_0x2a5c77=>!_0x2a5c77['getUnitId']()[_0x3575b1(0x2aa)]('__')))['subscribe'](async _0x1af05e=>{const _0x403326=_0x3575b1,_0x5b612e=_0x1af05e['getUnitId'](),_0x5753c6=await this[_0x403326(0x43b)](_0x5b612e);this[_0x403326(0x32d)][_0x403326(0x3ca)](_0x5753c6),this['_entities'][_0x403326(0x4a8)](_0x5b612e,_0x5753c6);}),v[_0x3575b1(0x515)](this[_0x3575b1(0x337)][_0x3575b1(0x18e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x395)]),this[_0x3575b1(0x337)][_0x3575b1(0x18e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x53c)]))[_0x3575b1(0x550)](v['takeUntil'](this['dispose$']))['subscribe'](_0x34c1f6=>{const _0x49cb2a=_0x3575b1,_0xe38696=_0x34c1f6[_0x49cb2a(0x352)](),_0x5b9e02=this[_0x49cb2a(0x565)][_0x49cb2a(0x3eb)](_0xe38696);_0x5b9e02&&(_0x5b9e02[_0x49cb2a(0x1eb)](),this[_0x49cb2a(0x565)][_0x49cb2a(0x532)](_0xe38696));});}async[_0x945337(0x32a)](_0x3bdbb8){const _0xf8fd2f=_0x945337,_0x88888d=await this[_0xf8fd2f(0x407)][_0xf8fd2f(0x369)](_0x3bdbb8),_0x211101=this[_0xf8fd2f(0x3dd)][_0xf8fd2f(0x39d)](He,_0x3bdbb8,_0x88888d);return _0x211101[_0xf8fd2f(0x55a)](),_0x211101;}async[_0x945337(0x43b)](_0x1984cd){const _0x35a73b=_0x945337,_0x5e6cde=await this[_0x35a73b(0x407)]['requireSession'](_0x1984cd),_0x2a0af5=this[_0x35a73b(0x3dd)][_0x35a73b(0x39d)]($e,_0x1984cd,_0x5e6cde);return _0x2a0af5[_0x35a73b(0x55a)](),_0x2a0af5;}};ie=si([Pe(0x0,a[_0x945337(0x57b)]),Pe(0x1,a[_0x945337(0x4fa)](a['Injector'])),Pe(0x2,a[_0x945337(0x4fa)](exports[_0x945337(0x3a5)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x422780,_0x25565a){const _0x4f36ef=_0x945337;let {radius:_0x191735,width:_0x2ecfcb,height:_0x4131f2}=_0x25565a;_0x191735=_0x191735!=null?_0x191735:0x0,_0x2ecfcb=_0x2ecfcb!=null?_0x2ecfcb:0x1e,_0x4131f2=_0x4131f2!=null?_0x4131f2:0x1e;let _0x58bbb4=0x0,_0x250308=0x0,_0x504099=0x0;_0x58bbb4=_0x250308=_0x504099=Math['min'](_0x191735,_0x2ecfcb/0x2,_0x4131f2/0x2),_0x422780[_0x4f36ef(0x4e5)](),_0x422780[_0x4f36ef(0x546)](_0x58bbb4,0x0),_0x422780[_0x4f36ef(0x329)](_0x2ecfcb-_0x250308,0x0),_0x422780['arc'](_0x2ecfcb-_0x250308,_0x250308,_0x250308,Math['PI']*0x3/0x2,0x0,!0x1),_0x422780['lineTo'](_0x2ecfcb,_0x4131f2-_0x504099),_0x422780[_0x4f36ef(0x386)](_0x2ecfcb-_0x504099,_0x4131f2-_0x504099,_0x504099,0x0,Math['PI']/0x2,!0x1),_0x422780['lineTo'](0x0,_0x4131f2),_0x422780[_0x4f36ef(0x329)](0x0,_0x58bbb4),_0x422780[_0x4f36ef(0x386)](_0x58bbb4,_0x58bbb4,_0x58bbb4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x422780['closePath'](),_0x25565a[_0x4f36ef(0x18c)]&&(_0x422780['save'](),_0x422780[_0x4f36ef(0x42c)]=_0x25565a[_0x4f36ef(0x18c)],_0x25565a[_0x4f36ef(0x38d)]===_0x4f36ef(0x439)?_0x422780[_0x4f36ef(0x18c)](_0x4f36ef(0x439)):_0x422780[_0x4f36ef(0x18c)](),_0x422780[_0x4f36ef(0x44b)]());}class Te extends R[_0x945337(0x366)]{constructor(_0x8e0119,_0x322db9){const _0x2cfa25=_0x945337;super(_0x8e0119,_0x322db9),d(this,_0x2cfa25(0x22b)),d(this,_0x2cfa25(0x4c8)),(this[_0x2cfa25(0x22b)]=_0x322db9==null?void 0x0:_0x322db9[_0x2cfa25(0x22b)],this[_0x2cfa25(0x4c8)]=_0x322db9==null?void 0x0:_0x322db9[_0x2cfa25(0x4c8)]);}static[_0x945337(0x39e)](_0x3d0090,_0x421397){const _0x7ad74e=_0x945337,{text:_0x4940dd,color:_0x392e04}=_0x421397;_0x3d0090[_0x7ad74e(0x4ab)](),_0x3d0090['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x345f55=_0x3d0090[_0x7ad74e(0x38a)](_0x4940dd)['width'],_0x1d17df=Math[_0x7ad74e(0x354)](_0x345f55+0x2*we,rt);ni(_0x3d0090,{'height':ue,'radius':0x4,'width':_0x1d17df,'fill':_0x392e04,'evented':!0x1}),_0x3d0090['fillStyle']=_0x7ad74e(0x309);const _0x213428=we,_0x8fe22f=ue-ii,_0x24cee5=rt-0x2*we;if(_0x345f55>_0x24cee5){let _0x260599='',_0x46c08f=0x0;for(const _0x2430e2 of _0x4940dd){const _0x1ee339=_0x3d0090[_0x7ad74e(0x38a)](_0x2430e2)[_0x7ad74e(0x1bc)];if(_0x46c08f+_0x1ee339<=_0x24cee5-_0x3d0090[_0x7ad74e(0x38a)]('...')[_0x7ad74e(0x1bc)])_0x260599+=_0x2430e2,_0x46c08f+=_0x1ee339;else{_0x260599+=_0x7ad74e(0x2ba);break;}}_0x3d0090[_0x7ad74e(0x274)](_0x260599,_0x213428,_0x8fe22f);}else _0x3d0090[_0x7ad74e(0x274)](_0x4940dd,_0x213428,_0x8fe22f);_0x3d0090[_0x7ad74e(0x44b)]();}[_0x945337(0x481)](_0x475ffc){const _0x16447c=_0x945337;Te[_0x16447c(0x39e)](_0x475ffc,this);}}const Me=_0x945337(0x200),ri='collab-text-range-',oi=_0x945337(0x41f),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x945337(0x27b);class ot{constructor(_0x117381,_0x5d6457,_0x50261d,_0x26d736){const _0xdc3ae=_0x945337;d(this,_0xdc3ae(0x556),[]),d(this,_0xdc3ae(0x401),null),d(this,_0xdc3ae(0x4e0),null),d(this,'_anchorDot',null),d(this,_0xdc3ae(0x3d1),null),d(this,_0xdc3ae(0x4c6),null),(this['_cursor']=_0x117381,this['_scene']=_0x5d6457,this['_docSkeleton']=_0x50261d,this[_0xdc3ae(0x327)]=_0x26d736,this['_render']());}set[_0x945337(0x4ff)](_0x157945){const _0x3b4567=_0x945337;_0x157945?(this[_0x3b4567(0x3e0)]&&this[_0x3b4567(0x3e0)][_0x3b4567(0x566)](),this[_0x3b4567(0x4e0)]&&this[_0x3b4567(0x4e0)][_0x3b4567(0x411)]()):(this[_0x3b4567(0x3e0)]&&this[_0x3b4567(0x3e0)]['show'](),this['_textBubble']&&this[_0x3b4567(0x4e0)]['hide']());}[_0x945337(0x1eb)](){const _0x40f36e=_0x945337;for(const _0x3f4b90 of this[_0x40f36e(0x556)])_0x3f4b90['dispose']();this['_textBubble']&&this[_0x40f36e(0x4e0)]['dispose'](),this[_0x40f36e(0x3e0)]&&this[_0x40f36e(0x3e0)][_0x40f36e(0x1eb)](),this[_0x40f36e(0x401)]&&this[_0x40f36e(0x401)][_0x40f36e(0x1eb)](),this['_eventUnsubscribe']&&this[_0x40f36e(0x4c6)]();}['_render'](){const _0x5f4a8d=_0x945337;var _0x279d02;const {_docSkeleton:_0x220900,_document:_0x2b87bb}=this,{color:_0x23a638,name:_0x1d74f6,ranges:_0x30da0b}=this[_0x5f4a8d(0x32b)],_0x2109c0=_0x2b87bb[_0x5f4a8d(0x26d)](),{docsLeft:_0x3bf1a3,docsTop:_0x505255}=_0x2109c0,_0x81d62b=new w['NodePositionConvertToCursor'](_0x2109c0,_0x220900);for(const {startOffset:_0x58f2dd,endOffset:_0x3dbe4b,collapsed:_0x4800af,isActive:_0x44fcec}of _0x30da0b){const _0x5a1e5f=_0x220900[_0x5f4a8d(0x46a)](_0x58f2dd),_0x799f45=_0x220900['findNodePositionByCharIndex'](_0x3dbe4b);if(_0x44fcec){const {contentBoxPointGroup:_0x2e1911}=_0x81d62b[_0x5f4a8d(0x54f)](_0x799f45,_0x799f45);if(_0x2e1911['length']===0x0)continue;this[_0x5f4a8d(0x450)](_0x23a638,_0x2e1911,_0x3bf1a3,_0x505255,_0x1d74f6),this[_0x5f4a8d(0x4c6)]=this['_handleHover']();}if(!_0x4800af&&_0x5a1e5f&&_0x799f45){if(w[_0x5f4a8d(0x2f0)](_0x5a1e5f,_0x799f45)){const _0xc7dfe8=new w[(_0x5f4a8d(0x211))](_0x2109c0,_0x220900),{pointGroup:_0xb4710e}=(_0x279d02=_0xc7dfe8[_0x5f4a8d(0x54f)](_0x5a1e5f,_0x799f45))!=null?_0x279d02:{};if(_0xb4710e==null||_0xb4710e[_0x5f4a8d(0x3f0)]===0x0)continue;this[_0x5f4a8d(0x563)](_0x23a638,_0xb4710e,_0x3bf1a3,_0x505255);}else{const {contentBoxPointGroup:_0x3712d0}=_0x81d62b[_0x5f4a8d(0x54f)](_0x5a1e5f,_0x799f45);if(_0x3712d0[_0x5f4a8d(0x3f0)]===0x0)continue;this[_0x5f4a8d(0x3aa)](_0x23a638,_0x3712d0,_0x3bf1a3,_0x505255);}}}}[_0x945337(0x450)](_0x991b32,_0x7b77d,_0xfea517,_0x436faa,_0x2d0ce6){const _0x36445a=_0x945337,_0x16df93=this[_0x36445a(0x1e7)](_0x7b77d),{left:_0x245045,top:_0x118e79,height:_0x382bce}=_0x16df93,_0x4cddb0=this[_0x36445a(0x303)](),_0x560312=ci/_0x4cddb0,_0x2edf53=new R[(_0x36445a(0x1f8))](Me+a[_0x36445a(0x4ea)][_0x36445a(0x227)](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa,'height':_0x382bce,'width':ai,'fill':_0x991b32||R[_0x36445a(0x32e)](a[_0x36445a(0x27a)][_0x36445a(0x484)],0x0),'strokeWidth':_0x560312,'stroke':li,'evented':!0x0});this[_0x36445a(0x401)]=_0x2edf53,this['_scene'][_0x36445a(0x4a5)](_0x2edf53,w[_0x36445a(0x48b)]);const _0xdb98b2=new R[(_0x36445a(0x1f8))](Me+a[_0x36445a(0x4ea)][_0x36445a(0x227)](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x991b32||R[_0x36445a(0x32e)](a[_0x36445a(0x27a)][_0x36445a(0x484)],0x0),'strokeWidth':0x0,'stroke':_0x991b32||R['getColor'](a[_0x36445a(0x27a)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0xdb98b2,this['_scene'][_0x36445a(0x4a5)](_0xdb98b2,w[_0x36445a(0x48b)]);const _0x3f8f83=new Te(Me+a[_0x36445a(0x4ea)]['generateRandomId'](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa-ue,'text':_0x2d0ce6,'color':_0x991b32});this[_0x36445a(0x4e0)]=_0x3f8f83,this[_0x36445a(0x52d)][_0x36445a(0x4a5)](_0x3f8f83,w['TEXT_RANGE_LAYER_INDEX']),this[_0x36445a(0x4ff)]=!0x1;}['_handleHover'](){const _0x19a697=_0x945337,_0x504c02=this[_0x19a697(0x401)]['onPointerEnter$'][_0x19a697(0x28a)](()=>{const _0x3e45eb=_0x19a697;this[_0x3e45eb(0x4ff)]=!0x0;}),_0x3c49ef=this[_0x19a697(0x401)][_0x19a697(0x4c0)][_0x19a697(0x28a)](()=>{const _0x5d0b42=_0x19a697;this[_0x5d0b42(0x3d1)]&&clearTimeout(this['_hideTimer']),this[_0x5d0b42(0x3d1)]=setTimeout(()=>{const _0x495c7c=_0x5d0b42;this[_0x495c7c(0x4ff)]=!0x1;},0x7d0);});return()=>{const _0x4ac040=_0x19a697;_0x504c02[_0x4ac040(0x346)](),_0x3c49ef[_0x4ac040(0x346)]();};}[_0x945337(0x3aa)](_0x1ed666,_0x13fa76,_0xb197ed,_0x1ba8bd){const _0x5b7fba=_0x945337,_0xdc262d=new a['ColorKit'](_0x1ed666)[_0x5b7fba(0x29f)](0.2)[_0x5b7fba(0x35b)](),_0x5ea3be=new R[(_0x5b7fba(0x1fe))](ri+a[_0x5b7fba(0x4ea)][_0x5b7fba(0x227)](ce),{'pointsGroup':_0x13fa76,'fill':_0xdc262d||R['getColor'](a[_0x5b7fba(0x27a)][_0x5b7fba(0x484)],0.2),'left':_0xb197ed,'top':_0x1ba8bd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b7fba(0x556)]['push'](_0x5ea3be),this['_scene'][_0x5b7fba(0x4a5)](_0x5ea3be,w[_0x5b7fba(0x48b)]);}[_0x945337(0x563)](_0x3c73dd,_0x247da3,_0xe352a4,_0x5ad3c6){const _0x560689=_0x945337,_0x236904=new a[(_0x560689(0x1a4))](_0x3c73dd)[_0x560689(0x29f)](0.2)['toRgbString'](),_0xd68263=new R[(_0x560689(0x1fe))](oi+a[_0x560689(0x4ea)][_0x560689(0x227)](ce),{'pointsGroup':_0x247da3,'fill':_0x236904||R[_0x560689(0x32e)](a[_0x560689(0x27a)][_0x560689(0x484)],0.2),'left':_0xe352a4,'top':_0x5ad3c6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x560689(0x3b0)](_0xd68263),this[_0x560689(0x52d)][_0x560689(0x4a5)](_0xd68263,w[_0x560689(0x48b)]);}['_getAnchorBounding'](_0x3d9efa){const _0x7fb43a=_0x3d9efa[0x0],_0x508e43=_0x7fb43a[0x0],_0x27bbda=_0x7fb43a[0x2],{x:_0x3c970a,y:_0x1ea9fb}=_0x508e43,{x:_0x38bc6a,y:_0xb52cbb}=_0x27bbda;return{'left':_0x3c970a,'top':_0x1ea9fb,'width':_0x38bc6a-_0x3c970a,'height':_0xb52cbb-_0x1ea9fb};}[_0x945337(0x303)](){const _0x549e7d=_0x945337,{scaleX:_0x4b9960,scaleY:_0x4f0427}=this[_0x549e7d(0x52d)][_0x549e7d(0x394)]();return Math[_0x549e7d(0x25c)](_0x4b9960,_0x4f0427);}}var hi=Object[_0x945337(0x24b)],_i=Object['getOwnPropertyDescriptor'],ui=(_0x989dd,_0x4daac4,_0x2b25e7,_0x1f30d1)=>{for(var _0x48e5a6=_0x1f30d1>0x1?void 0x0:_0x1f30d1?_i(_0x4daac4,_0x2b25e7):_0x4daac4,_0x4a1875=_0x989dd['length']-0x1,_0x271052;_0x4a1875>=0x0;_0x4a1875--)(_0x271052=_0x989dd[_0x4a1875])&&(_0x48e5a6=(_0x1f30d1?_0x271052(_0x4daac4,_0x2b25e7,_0x48e5a6):_0x271052(_0x48e5a6))||_0x48e5a6);return _0x1f30d1&&_0x48e5a6&&hi(_0x4daac4,_0x2b25e7,_0x48e5a6),_0x48e5a6;},de=(_0x41caa7,_0x297d6a)=>(_0x32ca0f,_0x5c00b0)=>_0x297d6a(_0x32ca0f,_0x5c00b0,_0x41caa7);let xe=class extends a[_0x945337(0x538)]{constructor(_0x24d042,_0x38f4f2,_0x962181,_0x18db58,_0x6af205){const _0x2045e8=_0x945337;super(),d(this,_0x2045e8(0x2f5),[]),d(this,_0x2045e8(0x3b8),[]),(this['_context']=_0x24d042,this[_0x2045e8(0x3f3)]=_0x38f4f2,this[_0x2045e8(0x356)]=_0x962181,this['_commandService']=_0x18db58,this[_0x2045e8(0x42d)]=_0x6af205,this[_0x2045e8(0x458)]());}[_0x945337(0x458)](){const _0x35b169=_0x945337,_0x4eb326=this[_0x35b169(0x3e8)][_0x35b169(0x212)],_0x5e6288=this[_0x35b169(0x3f3)];this[_0x35b169(0x50a)](v[_0x35b169(0x2b4)]([this['_collabCursorController'][_0x35b169(0x2c6)](_0x4eb326),this[_0x35b169(0x42d)][_0x35b169(0x3f8)]])[_0x35b169(0x550)](E[_0x35b169(0x2c1)](([_0x5bda81,_0x57e71a])=>({'skeleton':_0x5e6288['getSkeleton'](),'cursors':[..._0x5bda81[_0x35b169(0x27f)]()][_0x35b169(0x365)](_0x587fec=>({..._0x587fec,'color':_0x57e71a[_0x587fec['color']]}))})))['subscribe'](_0x25413f=>{const _0x222ee2=_0x35b169;if(this['_removeCollabCursors'](),_0x25413f){const {skeleton:_0x306ba4,cursors:_0x89dc97}=_0x25413f;this[_0x222ee2(0x376)](_0x306ba4,_0x89dc97);}})),this['_initResize'](),this[_0x35b169(0x4c7)]();}[_0x945337(0x376)](_0x8d2b4a,_0x337486){const _0x2b8098=_0x945337,{scene:_0x531f3f,mainComponent:_0x4d7aa9}=this[_0x2b8098(0x3e8)],_0x225aff=_0x337486[_0x2b8098(0x2c1)](_0x29cf29=>new ot(_0x29cf29,_0x531f3f,_0x8d2b4a,_0x4d7aa9));this['_cursorShapes']=_0x225aff,this[_0x2b8098(0x3b8)]=_0x337486;}[_0x945337(0x3be)](){const _0x5bf801=_0x945337;this[_0x5bf801(0x3bf)]();const {scene:_0x1a1984,mainComponent:_0x432f29}=this[_0x5bf801(0x3e8)],_0x47710c=this['_docSkeletonManagerService'][_0x5bf801(0x176)](),_0x17bc1d=this[_0x5bf801(0x3b8)][_0x5bf801(0x2c1)](_0x5eb294=>new ot(_0x5eb294,_0x1a1984,_0x47710c,_0x432f29));this[_0x5bf801(0x2f5)]=_0x17bc1d;}['_removeCollabCursors'](){const _0x57564f=_0x945337;this[_0x57564f(0x2f5)][_0x57564f(0x278)](_0x2aff1f=>_0x2aff1f['dispose']()),this[_0x57564f(0x2f5)]=[];}[_0x945337(0x4c7)](){const _0x4d1df1=_0x945337,_0x5ec294=[w['SetDocZoomRatioOperation']['id']];this[_0x4d1df1(0x50a)](this[_0x4d1df1(0x256)][_0x4d1df1(0x3ad)](_0x4f5f44=>{const _0x4f538c=_0x4d1df1;_0x5ec294[_0x4f538c(0x38c)](_0x4f5f44['id'])&&_0x4f5f44[_0x4f538c(0x17c)][_0x4f538c(0x212)]===this['_context'][_0x4f538c(0x212)]&&this[_0x4f538c(0x3be)]();}));}[_0x945337(0x52b)](){const _0x1af575=_0x945337;this[_0x1af575(0x50a)](a[_0x1af575(0x3fc)](this[_0x1af575(0x3e8)][_0x1af575(0x1ac)][_0x1af575(0x31e)])[_0x1af575(0x550)](E[_0x1af575(0x1dc)](_0x1e7a6c=>_0x1e7a6c[_0x1af575(0x243)]===R['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1af575(0x391)]),E[_0x1af575(0x1d8)](0x10))[_0x1af575(0x397)](()=>{const _0x24f8b3=_0x1af575;this[_0x24f8b3(0x3be)]();}));}};xe=ui([de(0x1,a['Inject'](V[_0x945337(0x447)])),de(0x2,a['Inject'](ie)),de(0x3,a[_0x945337(0x400)]),de(0x4,a['Inject'](a[_0x945337(0x2a4)]))],xe);const di=0x1,Si=1.5;class Ot extends R['Shape']{constructor(_0x382b78,_0x3779df){const _0x4defd6=_0x945337;super(_0x382b78,_0x3779df),d(this,_0x4defd6(0x197)),d(this,_0x4defd6(0x49b),!0x1),d(this,_0x4defd6(0x225)),d(this,_0x4defd6(0x203),''),d(this,_0x4defd6(0x33e),_0x4defd6(0x22f)),d(this,_0x4defd6(0x353)),(_0x3779df&&this[_0x4defd6(0x382)](_0x3779df),this[_0x4defd6(0x44f)][_0x4defd6(0x28a)](()=>this[_0x4defd6(0x382)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x4defd6(0x382)]({'hovered':!0x1})));}[_0x945337(0x382)](_0x287536){const _0x570ee2=_0x945337;var _0x5b3b1e,_0x3876a4,_0x3da982,_0x2da7dd,_0x4f8726,_0x29b3f1;this['_color']=(_0x5b3b1e=_0x287536[_0x570ee2(0x22b)])!=null?_0x5b3b1e:this[_0x570ee2(0x197)],this['_hovered']=(_0x3876a4=_0x287536[_0x570ee2(0x240)])!=null?_0x3876a4:this[_0x570ee2(0x49b)],this[_0x570ee2(0x225)]=(_0x3da982=_0x287536[_0x570ee2(0x25a)])!=null?_0x3da982:this[_0x570ee2(0x225)],this[_0x570ee2(0x203)]=(_0x2da7dd=_0x287536[_0x570ee2(0x508)])!=null?_0x2da7dd:this[_0x570ee2(0x203)],this['_labelPosition']=(_0x4f8726=_0x287536[_0x570ee2(0x370)])!=null?_0x4f8726:this[_0x570ee2(0x33e)],this[_0x570ee2(0x353)]=(_0x29b3f1=_0x287536[_0x570ee2(0x304)])!=null?_0x29b3f1:this[_0x570ee2(0x353)],this[_0x570ee2(0x3ce)]({'width':_0x287536['width'],'height':_0x287536[_0x570ee2(0x2f8)]});}[_0x945337(0x3de)](_0x57635f){const _0x165e2c=_0x945337,{row:_0x2f3c3d,column:_0x232bf1}=_0x57635f;if(_0x2f3c3d>=this['_range']['startRow']&&_0x2f3c3d<=this['_range']['endRow']&&_0x232bf1>=this[_0x165e2c(0x225)][_0x165e2c(0x462)]&&_0x232bf1<=this['_range'][_0x165e2c(0x284)]){this[_0x165e2c(0x382)]({'hovered':!0x0});return;}this[_0x165e2c(0x382)]({'hovered':!0x1});}[_0x945337(0x26c)](_0x3efa56){return!0x1;}[_0x945337(0x481)](_0x5ce87e){const _0xc6af58=_0x945337;R[_0xc6af58(0x1f8)][_0xc6af58(0x39e)](_0x5ce87e,{'width':this[_0xc6af58(0x1bc)],'height':this['height'],'strokeWidth':Si,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc6af58(0x353)]}),this['_hovered']&&(_0x5ce87e[_0xc6af58(0x4ab)](),_0x5ce87e[_0xc6af58(0x449)](0x1,0x0,0x0,0x1,this['width'],this[_0xc6af58(0x33e)]===_0xc6af58(0x4db)?0x0:-ue),Te[_0xc6af58(0x39e)](_0x5ce87e,{'text':this[_0xc6af58(0x203)],'color':this[_0xc6af58(0x197)]}),_0x5ce87e[_0xc6af58(0x44b)]());}}var vi=Object['defineProperty'],fi=Object[_0x945337(0x3e2)],gi=(_0x407ab8,_0x4c00f8,_0x373964,_0x4a72a9)=>{const _0x138567=_0x945337;for(var _0x1f1413=_0x4a72a9>0x1?void 0x0:_0x4a72a9?fi(_0x4c00f8,_0x373964):_0x4c00f8,_0x115274=_0x407ab8[_0x138567(0x3f0)]-0x1,_0x11988a;_0x115274>=0x0;_0x115274--)(_0x11988a=_0x407ab8[_0x115274])&&(_0x1f1413=(_0x4a72a9?_0x11988a(_0x4c00f8,_0x373964,_0x1f1413):_0x11988a(_0x1f1413))||_0x1f1413);return _0x4a72a9&&_0x1f1413&&vi(_0x4c00f8,_0x373964,_0x1f1413),_0x1f1413;},Ae=(_0x171099,_0x6b642f)=>(_0x58973f,_0x3386c6)=>_0x6b642f(_0x58973f,_0x3386c6,_0x171099);const mi=0x1389;let ke=class extends a[_0x945337(0x538)]{constructor(_0x5343df,_0x30c5c6,_0x1796b5,_0x5b4ace){const _0x11c3b7=_0x945337;super(),d(this,_0x11c3b7(0x3b8),new Set()),d(this,_0x11c3b7(0x43a),null),(this[_0x11c3b7(0x3e8)]=_0x5343df,this[_0x11c3b7(0x2a6)]=_0x30c5c6,this[_0x11c3b7(0x356)]=_0x1796b5,this[_0x11c3b7(0x42d)]=_0x5b4ace,this['_init']());}[_0x945337(0x458)](){const _0x18035=_0x945337;this[_0x18035(0x2a6)]['currentSkeleton$'][_0x18035(0x550)](E[_0x18035(0x43c)](this['dispose$']),E[_0x18035(0x442)](_0x3e5bae=>{const _0x19f80e=_0x18035;if(_0x3e5bae){const _0x12481d=_0x3e5bae['sheetId'];return v[_0x19f80e(0x2b4)](this[_0x19f80e(0x356)][_0x19f80e(0x2c6)](this[_0x19f80e(0x3e8)][_0x19f80e(0x212)]),this[_0x19f80e(0x42d)][_0x19f80e(0x3f8)])[_0x19f80e(0x550)](E[_0x19f80e(0x2c1)](([_0x24a336,_0x3e0d04])=>{const _0x51a473=_0x19f80e,_0x3edf26=new Map();return _0x24a336[_0x51a473(0x278)]((_0x28be31,_0x363970)=>{const _0x3b2cfc=_0x51a473;if(_0x28be31[_0x3b2cfc(0x264)]===_0x12481d){const _0x5dcc5e={..._0x28be31};_0x5dcc5e['color']=_0x3e0d04[_0x28be31[_0x3b2cfc(0x22b)]],_0x3edf26[_0x3b2cfc(0x4a8)](_0x363970,_0x5dcc5e);}}),{'skeleton':_0x3e5bae,'cursors':_0x3edf26};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x18035(0x397)](({skeleton:_0x17e714,cursors:_0x596d7c})=>{const _0xb27546=_0x18035;this[_0xb27546(0x3bf)](),_0x17e714&&this[_0xb27546(0x376)](_0x17e714,_0x596d7c);}),this[_0x18035(0x2a6)][_0x18035(0x3d0)][_0x18035(0x397)](_0x4c0ac4=>{const _0x159a99=_0x18035;if(_0x4c0ac4==null)return;const {skeleton:_0x208a6c}=_0x4c0ac4,{scene:_0x41adfe}=this[_0x159a99(0x3e8)];_0x41adfe[_0x159a99(0x3af)][_0x159a99(0x28a)](a[_0x159a99(0x49c)](_0x1bc98d=>{const _0xb86ed0=_0x159a99;var _0x298f34,_0x2818de;const {offsetX:_0x238577,offsetY:_0x3ea516}=_0x1bc98d,{x:_0x5b3cee,y:_0x205e06}=_0x41adfe['getRelativeToViewportCoord'](R[_0xb86ed0(0x490)]['FromArray']([_0x238577,_0x3ea516])),{scaleX:_0x44b130,scaleY:_0x1a8718}=_0x41adfe[_0xb86ed0(0x394)](),_0x45e64b=_0x41adfe[_0xb86ed0(0x195)](te[_0xb86ed0(0x3d9)][_0xb86ed0(0x37b)]),_0x15f2a3=_0x41adfe[_0xb86ed0(0x207)](R['Vector2']['FromArray']([_0x5b3cee,_0x205e06]),_0x45e64b),_0x5b9c0f=_0x208a6c[_0xb86ed0(0x2cb)](_0x238577,_0x3ea516,_0x44b130,_0x1a8718,_0x15f2a3);((_0x298f34=this['_lastPointer'])==null?void 0x0:_0x298f34[_0xb86ed0(0x4b4)])===_0x5b9c0f[_0xb86ed0(0x4b4)]&&((_0x2818de=this[_0xb86ed0(0x43a)])==null?void 0x0:_0x2818de[_0xb86ed0(0x3fb)])===_0x5b9c0f[_0xb86ed0(0x3fb)]||this['_cursors'][_0xb86ed0(0x278)](_0x17d95e=>{const _0x40849c=_0xb86ed0;_0x17d95e[_0x40849c(0x3de)](_0x5b9c0f);});},0x64));});}[_0x945337(0x376)](_0x3dceac,_0x21231e){const _0x32dd3e=_0x945337;var _0x3ab2c4;const _0x57b547=(_0x3ab2c4=this[_0x32dd3e(0x2a6)]['getCurrent']())==null?void 0x0:_0x3ab2c4['skeleton'];if(!_0x57b547)return;const _0x24d4fb=this[_0x32dd3e(0x419)]();if(!_0x24d4fb)return;this['_cursors'][_0x32dd3e(0x278)](_0x1b9d50=>{const _0x34c204=_0x32dd3e;_0x1b9d50[_0x34c204(0x2e5)]();});const {scene:_0x2bce08}=_0x24d4fb,_0x300722=Ii(Array[_0x32dd3e(0x3f2)](_0x21231e[_0x32dd3e(0x27f)]()))[_0x32dd3e(0x2c1)](_0x6f3596=>{const _0x1e9894=_0x32dd3e,{color:_0x5c82c9,range:_0x5de28e,name:_0x510418,selection:_0x3f1139,sheetID:_0x9a22c4}=_0x6f3596,{startColumn:_0x52e607,startRow:_0x5a2df1,endColumn:_0x15a109,endRow:_0x11b1c4}=_0x5de28e,_0x6c9e46=te[_0x1e9894(0x39f)](_0x5a2df1,_0x52e607,_0x2bce08,_0x57b547),_0x5abc55=te['getCoordByCell'](_0x11b1c4,_0x15a109,_0x2bce08,_0x57b547),{columnHeaderHeightAndMarginTop:_0xd15b2b}=_0x57b547,{startX:_0x1b2110,startY:_0x20132d}=_0x6c9e46,{endX:_0x1becf0,endY:_0x294fed}=_0x5abc55,_0x50c104=_0x1becf0-_0x1b2110,_0x3116fe=_0x294fed-_0x20132d,_0x59acbb={'labelPosition':_0x20132d-_0xd15b2b>=ue?_0x1e9894(0x22f):_0x1e9894(0x4db),'sheetID':_0x9a22c4,'range':_0x5de28e,'color':_0x5c82c9,'name':_0x510418,'selection':_0x3f1139,'left':_0x1b2110,'top':_0x20132d,'width':_0x50c104,'height':_0x3116fe,'evented':!0x1,'zIndex':mi};return new Ot(_0x510418,_0x59acbb);});_0x2bce08[_0x32dd3e(0x477)](_0x300722,di),this[_0x32dd3e(0x3b8)]=new Set(_0x300722);}[_0x945337(0x3bf)](){const _0xe65db5=_0x945337;var _0x3e34c3;(_0x3e34c3=this[_0xe65db5(0x3b8)])==null||_0x3e34c3[_0xe65db5(0x278)](_0x566d60=>_0x566d60[_0xe65db5(0x1eb)]());}[_0x945337(0x419)](){const _0x528281=_0x945337;return te[_0x528281(0x2b9)](this['_context'][_0x528281(0x42a)],this['_context']);}};ke=gi([Ae(0x1,a[_0x945337(0x4fa)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](ie)),Ae(0x3,a[_0x945337(0x4fa)](a['ThemeService']))],ke);function Ii(_0x23850c){const _0x1120d8=_0x945337,_0x4e8b12=new Map();return _0x23850c[_0x1120d8(0x278)](_0x2883f0=>{const _0x14d839=_0x1120d8;if(_0x4e8b12[_0x14d839(0x384)](_0x2883f0[_0x14d839(0x2a9)])){const _0x31f281=_0x4e8b12[_0x14d839(0x3eb)](_0x2883f0[_0x14d839(0x2a9)]);_0x31f281[_0x14d839(0x508)]+=',\x20'+_0x2883f0[_0x14d839(0x508)];}else _0x4e8b12[_0x14d839(0x4a8)](_0x2883f0[_0x14d839(0x2a9)],_0x2883f0);}),Array[_0x1120d8(0x3f2)](_0x4e8b12[_0x1120d8(0x27f)]());}var M=function(){const _0x1d8d38=_0x945337;return M=Object[_0x1d8d38(0x33f)]||function(_0x1d15be){const _0x10d6b0=_0x1d8d38;for(var _0x3a2043,_0x455f00=0x1,_0x38d634=arguments[_0x10d6b0(0x3f0)];_0x455f00<_0x38d634;_0x455f00++){_0x3a2043=arguments[_0x455f00];for(var _0x3f5ec5 in _0x3a2043)Object['prototype'][_0x10d6b0(0x47c)][_0x10d6b0(0x441)](_0x3a2043,_0x3f5ec5)&&(_0x1d15be[_0x3f5ec5]=_0x3a2043[_0x3f5ec5]);}return _0x1d15be;},M[_0x1d8d38(0x319)](this,arguments);},pi=function(_0x43af07,_0x430b1c){const _0x535be6=_0x945337;var _0xffdf0={};for(var _0x4e2ed2 in _0x43af07)Object['prototype'][_0x535be6(0x47c)]['call'](_0x43af07,_0x4e2ed2)&&_0x430b1c[_0x535be6(0x1a0)](_0x4e2ed2)<0x0&&(_0xffdf0[_0x4e2ed2]=_0x43af07[_0x4e2ed2]);if(_0x43af07!=null&&typeof Object[_0x535be6(0x34e)]==_0x535be6(0x408)){for(var _0x2f1599=0x0,_0x4e2ed2=Object['getOwnPropertySymbols'](_0x43af07);_0x2f1599<_0x4e2ed2['length'];_0x2f1599++)_0x430b1c[_0x535be6(0x1a0)](_0x4e2ed2[_0x2f1599])<0x0&&Object[_0x535be6(0x4c5)][_0x535be6(0x242)][_0x535be6(0x441)](_0x43af07,_0x4e2ed2[_0x2f1599])&&(_0xffdf0[_0x4e2ed2[_0x2f1599]]=_0x43af07[_0x4e2ed2[_0x2f1599]]);}return _0xffdf0;},qe=U[_0x945337(0x43e)](function(_0x1de81e,_0x32e8e6){const _0x222901=_0x945337;var _0x1ad02b=_0x1de81e[_0x222901(0x42b)],_0x281d90=_0x1de81e['id'],_0x351cc9=_0x1de81e[_0x222901(0x320)],_0x99b8b3=_0x1de81e['extend'],_0x4ac30f=pi(_0x1de81e,[_0x222901(0x42b),'id',_0x222901(0x320),_0x222901(0x4ca)]),_0x1e80bd='univerjs-icon\x20univerjs-icon-'[_0x222901(0x53d)](_0x281d90,'\x20')[_0x222901(0x53d)](_0x351cc9||'')[_0x222901(0x302)](),_0x527902=U['useRef']('_'[_0x222901(0x53d)](bi()));return Dt(_0x1ad02b,''[_0x222901(0x53d)](_0x281d90),{'defIds':_0x1ad02b['defIds'],'idSuffix':_0x527902[_0x222901(0x262)]},M({'ref':_0x32e8e6,'className':_0x1e80bd},_0x4ac30f),_0x99b8b3);});function Dt(_0x4364e3,_0x369eed,_0x1409ff,_0x488054,_0x1a5a9d){const _0x48f674=_0x945337;return U[_0x48f674(0x1b0)](_0x4364e3['tag'],M(M({'key':_0x369eed},Ci(_0x4364e3,_0x1409ff,_0x1a5a9d)),_0x488054),(Ei(_0x4364e3,_0x1409ff)[_0x48f674(0x362)]||[])[_0x48f674(0x2c1)](function(_0x3e6013,_0x1f98da){const _0x3ce9d4=_0x48f674;return Dt(_0x3e6013,''[_0x3ce9d4(0x53d)](_0x369eed,'-')[_0x3ce9d4(0x53d)](_0x4364e3[_0x3ce9d4(0x231)],'-')[_0x3ce9d4(0x53d)](_0x1f98da),_0x1409ff,void 0x0,_0x1a5a9d);}));}function Ci(_0x18428a,_0x48524e,_0x127852){const _0x1f8298=_0x945337;var _0x5c02e6=M({},_0x18428a[_0x1f8298(0x53e)]);_0x127852!=null&&_0x127852[_0x1f8298(0x306)]&&_0x5c02e6['fill']===_0x1f8298(0x306)&&(_0x5c02e6[_0x1f8298(0x18c)]=_0x127852[_0x1f8298(0x306)]);var _0x448bd4=_0x48524e[_0x1f8298(0x1c4)];return!_0x448bd4||_0x448bd4['length']===0x0||(_0x18428a[_0x1f8298(0x231)]===_0x1f8298(0x4b6)&&_0x5c02e6[_0x1f8298(0x233)]&&(_0x5c02e6[_0x1f8298(0x233)]=_0x5c02e6[_0x1f8298(0x233)]+_0x48524e[_0x1f8298(0x48d)]),Object[_0x1f8298(0x519)](_0x5c02e6)[_0x1f8298(0x278)](function(_0x51b0ec){const _0x4d6d17=_0x1f8298;var _0x591810=_0x51b0ec[0x0],_0x3c68b1=_0x51b0ec[0x1];typeof _0x3c68b1==_0x4d6d17(0x312)&&(_0x5c02e6[_0x591810]=_0x3c68b1[_0x4d6d17(0x559)](/url\(#(.*)\)/,_0x4d6d17(0x26e)[_0x4d6d17(0x53d)](_0x48524e[_0x4d6d17(0x48d)],')')));})),_0x5c02e6;}function _0x336a(){const _0x512a6d=['_assignedColors','M0\x200H16V16H0z','url(#on-line-single_clip0_910_349)','executeCommand','toggleOffline','editingUnit','name','clearTimeout','disposeWithMe','_onUserJoin','_sheetTransformSelectionsService','/object/','[SyncedState]:\x20received\x20acknowledgement.','_onOffline','/collaborator','_transformPreviousActiveRange','[UniverCollaborationClientPlugin]','handleInsertCol','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','merge','[PendingState]:\x20received\x20rejection.','&source=','_onMessage','entries','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_event$','_onCombEvent','FETCH_MISSING','getTypeOfUnitAdded$','reverse','_transitionLocked','_onRemoteACK','UUID','_getSignURL','patch','allowed','_memberService','IURLService','getCurrentUnitForType','_sendHeartbeatTimer','_HTTPService','_initResize','BehaviorSubject','_scene','UNIVER_UNKNOWN','_stopTelemetryCollaborationNewChangeset','_urlService','complete','delete','_initModules','_id','HEARTBEAT_TIMEOUT','number','APPLY_REJECT','RxDisposable','setItem','_disableEditing','@univerjs/docs-ui','UNIVER_SHEET','concat','attrs','selections','/role','SNAPSHOT_INVALID_SNAPSHOT','ranges','mapDocumentTypeToUniverType','getMergeData','with','moveTo','AUTHZ_URL_KEY','getTime','_sendingTimer','onSyncEditingCollabCursor','currentColor','ERROR_IMAGE_TYPE','_snapshotServerService','SNAPSHOT_SERVER_URL_KEY','getRangePointData','pipe','take','isTransformMutationsWithChangesetFailure','@univerjs/ui','_socketReady','_notificationService','_shapes','HttpImport','transformChangesets','replace','init','LOCAL_CACHE_INTERVAL','_imageSourceCache','fetchMissingChangesets','&assign=','path','241760yEVuai','appendMutation','_socketService','_drawRectRange','AWAITING_WITH_PENDING','_entities','hide','collabStatus.fetchMiss','_roomMembers','_userManagerService','getMemberID','urlChange$','_socket$','SUBMIT_CHANGESET','DeleteRangeMoveLeftCommandId','image/png','visibilitychange','isEditing','conflict.title','CHANGESET_REJ','RevisionService','APPLY_PERMISSION_DENIED','_localCacheService','_getUndoStack','distinctUntilChanged','_rescheduleHeartbeat','_collaborationTimeoutTimer','IUniverInstanceService','[DataLoaderController]','image/bmp','useCallback','getCurrentSelections','reduce','_updateLocalCache','_collabCursorState$','_send','UNIVER_SLIDE','_getCtorByUniverType','eventID','_state','_docTransformIMECacheService','getUnhiddenWorksheets','handleDeleteRangeMoveUp','_sessions','getSkeleton','update','m2Prime','saveSheetBlock','requestParams','1086932aayVoP','params','socket\x20close','size','_compressMutationService','whenReady','updateMember','_docStateChangeManagerService','collaboration.closeRoom','readAsDataURL','11430iuYShX','PERMISSION_REJ','LocalUndoRedoService','Optional','@univerjs/telemetry','add','LICENSE_IMPORT_SIZE_EXCEEDED','fill','activeSheet$','getTypeOfUnitDisposed$','resolve','PERMISSION_DENIED','setTimeout','300462gpYfov','round','_pendingMutations','getViewport','clear','_color','state','_registerDependencies','b64DecodeUnicode','asObservable','_createHandler','Warning','disableLocalCache','InsertRangeMoveDownCommandId','indexOf','shouldCloseConn','PENDING','mapTo','ColorKit','getImageSourceCache','HTTPRequest','handleDeleteRangeMoveLeft','getInterceptPoints','_collaborationController','CompressMutationService','json','engine','_type','objectActions','title','createElement','onTransformRemoteChangesetByIMECache','getSheetBySheetId','_localStorageService','InsertSheetMutation','removeParam','awaitingChangeset','_remoteChangesetQueue','_onCursorUpdate','YUUMI_URL_COL_OUT_OF_RANGE','_saveCache','_heartbeatTimer','width','YUUMI_SUBSCRIPTION_NOT_FOUND','_acknowledgedAwaitingChangeset','_sendHeartbeat','_getCurrentRevision','offline','getRoom','downloadEndpointUrl','defIds','2864HHgxkI','routeKey','_handleEvent','HEARTBEAT_TIMEOUT_KEY','_replaceFileID','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','INVALID_ARGUMENT','_waitCount','_joinRoom','DesktopCollaborationStatusDisplayController','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','transformUndoRedo','transformIMECache','USERS_ENTER','_onConnectionOpen','onRemoteChangeset','saveOfflineData','_updateURLWithCurrentState','_getSnapshotAPIPrefix','throttleTime','ERROR_IMAGE','unitID','_saveTaskMap','filter','isInternalEditorID','confirm','_revisionService','DocSelectionManagerService','@univerjs-pro/collaboration','InsertRowCommandId','withCredentials','commentUpdateEvent','_clearCollaborationTimeoutTimer','/-/object/-/batch_allowed','_getAnchorBounding','url','_session','addEventListener','dispose','awaiting_with_pending','/block/','objectID','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onlyLocal','CHANGESET_ACK','UnitSnapshot','LEAVE','_onRecvEvent','_onRemoteChangeset','_undoStacks','IConfigService','Rect','m1Prime','ACTIVE_UNIT_EVENT_CHANNEL','runRefRangeMutations','rxjs','Plugin','RegularPolygon','Rectangle','collab-text-anchor-','transformRemoteChangeset','UNRECOGNIZED','_name','_clearOtherTimers','div','UPDATE_CURSOR','getVpScrollXYInfoByPosToVp','image/jpeg','_permissionService','session.room-full','[OfflineState]:\x20received\x20acknowledgement.','code','updateCursorEvent','onStateChange','_unitID','_onCursorDelete','NodePositionConvertToRectRange','unitId','handleInsertRow','unit-cache-','subUnitId','UNIVER_PROJECT','_undoRedoService','_toggleOffline','url(#off-line-single_clip0_910_343)','_localeService','src','_clearHeartbeatTimer','parseChangesetToProtocol','getParam','RemoveColCommandId','OnLineSingle','getSheetId','capture','fromEvent','getUniverSheetInstance','_range','registerBeforeClose','generateRandomId','_roomMembers$','TOO_MANY_REQUESTS','_beforeCloseService','color','_snapshotService','stringify','HTTPService','top','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','tag','_throwTelemetryCollaborationNewChangeset','xlink:href','collabStatus.notCollab','handleIRemoveRow','@univerjs/engine-render','_telemetryInfo','useDependency','_colorAssignService','find','_handleJoinEvent','CollaborationEntity','signUrlServerUrl','collabCursorState$','event$','hovered','roomInfos','propertyIsEnumerable','type','InsertColCommandId','liveShareNewHost','_getMergeRange','cursorInfo$','registerHTTPInterceptor','exhaustSavingTask','rev','defineProperty','pluginName','loginUrlKey','EffectRefRangId','fetch_missing','_showConflictNotification','serializeRangeWithSheet','visibilityState','leaveEvent','_unitOnClients','getFocusedUnit','_commandService','_uiPartsService','getConfig','status$','range','ws://127.0.0.1:8000/universer-api/comb/connect','max','ITelemetryService','_docSyncEditingCollabCursorService','HELLO','_isPermissionRej','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','current','IDLE','sheetID','/universer-api/stream/file/upload','_http','toggleOnline','IUIPartsService','key','univer-pro.collaboration-client.single-active-unit-service','list','triggerDblclick','getOffsetConfig','url(#$1','@univerjs/design','_online','syncEditingCollabCursor','_setupSubUnitSync','APPLY_NON_SEQUENTIAL_REVISION','fillText','DisposableCollection','UNDEFINED','_renderManagerService','forEach','reject','COLORS','rgba(255,\x20255,\x20255,\x200.01)','getUnitType','getCollabEntity','x-univer-host','values','append','ALREADY_EXISTS','[CollaborationSessionService]','conflict.content','endColumn','_onLocalMutation','_colorIndex','newValue','_loadSheet','revision','subscribeEvent','enableAuthServer','fetching\x20missing\x20changesets\x20from\x20','registerComponent','1em','clipPath','sessionStatus','@univerjs/drawing','DependentOn','UniverIcon','onRemoteRej','DocCollaborationEntity','toDisposable','registerRenderModule','WorkbookEditablePermission','LocaleService','collaMsg','UnitEmbedded','joinRsp','[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.','COMPLETION_FINISHED','setAlpha','HEADER_MENU','_commentUpdate$','send','BASE64','ThemeService','put','_sheetSkeletonManagerService','_queuedRemoteChangesets','UniverCollaborationPlugin','selection','startsWith','memberID','assignAColorForMemberID','[CollaborationEntity]','encodeURIComponent','collabWebSocketUrl','5cbmHJn','_cachedData','IMessageService','_syncEditingCollabCursor','combineLatest','Injector','/object','DEFAULT_FILE_NAME','_telemetryService','getSheetObject','...','_initStatusComponent','_schedule','not_collab','createCollaborator','FETCH_MISS','CollaborationStatus','map','CHANGESET_REVISION_CONFILICT','online','IRenderManagerService','_unitStatus','getCollabCursors$','_transformUndoredo','LIVESHARE_REQUEST_HOST','AWAITING','_transformStack','getCellPositionByOffset','/resources','history','WebSocketService','objects','loadOfflineData','MSG_FOR_ERROR','Undefined','_initRequestHeader','LOGIN_URL_KEY','IRemoteInstanceService','getValue','_incrementRevisionNumber','SHOULD_CLOSE_CONN','focused$','LICENSE_MAX_UNITS_EXCEEDED','getAttachHeader','_waitForHeartbeatResponse','_getSendChangesetTimeout','[CollaborationState]:\x20apply\x20error!','searchParams','parse','none','fetchMiss','RefRangeService','#fff','makeDirty','_handleLeaveEvent','onlineStatus','error','onRendered','socket$','_initStatusListener','dispose$','replaceState','univer-pro.collaboration-client-socket-service','INTERNAL_ERROR','isValidRectRange','encode','\x20in\x20_schedule.','stopTime','RECV','_cursorShapes','@univerjs/network','_submitChangeset','height','baseRev','failed\x20to\x20apply\x20missed\x20changesets!','CommandType','/fetchmissing?from=','OTHER_CLIENTS_EDITING','deepClone','_applyRemoteChangeset','UniverCollaborationClientPlugin','isTransformChangesetsSuccess','trim','_getScale','backgroundColor','CollaborationSocketService','colorChannel1','getCurrentUser','/universer-api/oidc/authpage','#FFF','CollaborationSession','members','LIVESHARE_FETCH_OPERATIONS','Module','getSheetBlock','create','_sessionStatus$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','string','_clearLocalCache','onload','POST','RichTextEditingMutation','auth.needGotoLoginAlert','session','apply','_updateState','snapshot','storage','[PendingState]:\x20unhandled\x20univer\x20type:\x20','onTransformChange$','_initMergeInterceptor','className','getUnitStatus$','close','UNIVER_COLLABORATION_CLIENT_PLUGIN','onMissingChangesets','displayName','_onJoinRoomEvent','_document','_singleActiveUnitService','lineTo','_startSheetCollabCursor','_cursor','/new_changes','_entityInit$','getColor','substring','setInterval','result','_setupBeforeClosingHandler','doc.mutation.rich-text-editing','_transformIMECache','_scheduleCollaborationTimeoutTimer','ThresholdInterceptorFactory','_univerInstanceService','_shouldReportTelemetry','_disabled','getUnitOnRev','loadDoc','then','_onRemoteRejected','_labelPosition','assign','change$','origin','setCurrentUser','close$','onRemoteAck','setActiveRange','unsubscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','0\x200\x2017\x2016','DocIMEInputManagerService','enableOfflineEditing','LICENSE_DISTRO_REJECTED','transformMutation','_clearRedo','getOwnPropertySymbols','_loadDoc','closeSession','getDocRanges','getUnitId','_backgroundColor','min','UNAUTHENTICATED','_collabCursorController','_getUploadFileURL','pending','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_status$','toRgbString','/universer-api/comb','_checkMissing','/unit/','body','updatePermissionObjEvent','COMPRESS_MUTATION_APPLY','children','_executeRemoteChangeset','1031720ckQJOD','flatMap','Shape','MessageType','deserializeToCombResponse','requireSession','createIdentifier','DeleteRangeMoveUpCommandId','mergeOverrideWithDependencies','contains','Subject','MUTATION','labelPosition','ERROR_EXCEED_SIZE','Error','getItem','COLLAB_SUBMIT_CHANGESET_URL','data','_updateCollabCursors','collabSubmitChangesetUrl','location','_scheduleSaving','parseProtocolChangeset','VIEW_MAIN','changesets','collaboration-client.offline-data-not-saved','setUndoRedoMutationParamsCache','sessionStatus$','HEARTBEAT_INTERVAL','@univerjs/sheets','setShapeProps','/allowed','has','_refRangeService','arc','deserializeRangeWithSheet','session.collaboration-timeout','session.will-retry','measureText','IUndoRedoService','includes','fillRule','NOT_COLLAB','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_ws','resize','_messageService','[CollaborationSession]','getAncestorScale','UNIVER_DOC','retryConnectingInterval','subscribe','_initCloseConn','JOINING','sequenceExecute','serializeCombRequest','onCommentUpdate','createInstance','drawWith','getCoordByCell','YUUMI_RATE_OVER_LIMIT','isPermissionRej','infoRsp','LocalCacheService','blue400','CollaborationSessionService','MoveRangeCommandId','socketService','INotificationService','@univerjs/rpc','_drawTextRange','WebURLService','duration','onCommandExecuted','connection\x20error','onPointerMove$','push','UniverInstanceType','FileId','_getAPIPrefix','rxjs/operators','touchDependencies','permission.content','_unlockTransition','_cursors','interceptor','awaiting','LICENSE_EXPORT_SIZE_EXCEEDED','/universer-api/file/{fileID}/sign-url','MergeInterceptorFactory','_refreshCollabCursors','_removeCollabCursors','jiqing500','saveImage','Unknown\x20user','_createSocket','socket\x20open.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','NEW_CHANGESETS','onlineStatusTitle','unshift','_onUserLeave','next','USERS_LEAVE','SnapshotServerOverHTTPService','LIVESHARE_TERMINATE','transformByState','COLLAB_WEB_SOCKET_URL_KEY','currentSkeleton$','_hideTimer','onTransformIME','conflict','_scheduleClearOtherTimer','_handleHeartbeatEvent','react','EmptyMutation','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','VIEWPORT_KEY','off-line-single','isActive','message$','_injector','onMouseMove','SEND_CHANGESET_TIMEOUT_KEY','_anchorDot','collaboratorID','getOwnPropertyDescriptor','originalMeta','_listenToOnlineEvent','_candidateSocket','UNKNOWN_CODE','APPLY_REVISION_CONFILICT','_context','_updateSubUnitFromURLParams','enableLocalCache','get','3969847YPwRmY','collabStatus.synced','debounceTime','actions','length','CollaborationStatusDisplay','from','_docSkeletonManagerService','_instanceService','_onConflict','getUndoRedoMutationParamsCache','isTransformMutationsWithChangesetSuccess','currentTheme$','_onFetchMissResult','BuiltInUIPart','row','fromEventSubject','_collaborationPaused','_socket','catch','ICommandService','_anchor','collaboration.single-unit.warning','SheetsSelectionsService','_handler','now','collabStatus.conflict','_collabSessionService','function','href','fetchThroughInterceptors','AuthzIoHttpService','getResourcesRequest','saveChangeset','UserManagerService','\x0aAfter:\x20','_listenToOfflineEvent','show','_fetchMissChangesets','/universer-api/snapshot','IPermissionService','_toggleOnline','_change$','_startCollaboration','@univerjs/engine-formula','_getSheetObject','_clearUndo','_scheduleTimestamp','removeMember','uni.network.url-service','refreshPermission','collab-rect-range-','isTransformMutationFailure','shareReplay','_updateStatus','_awaitingChangeset','copyFileMeta','registerRefRange','[CollaborationSessionService]:\x20socket\x20error','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_members','ITransformService','unit','icon','fillStyle','_themeService','ONLINE','method','?url=','headers','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','objectType','roles','mutations','getCurrentRevOfUnit','_retryCount','SNAPSHOT_URL_KEY','evenodd','_lastPointer','_startDocCollabCursor','takeUntil','Workbook','forwardRef','textEncoder','initWorkbookPermissionChange','call','switchMap','onMissedChangesetFetched','/-/object/list','open$','onReady','DocSkeletonManagerService','_transformSelections','transform','setConfig','restore','debug','status','c1Prime','onPointerEnter$','_drawAnchor','LOCAL_CACHE_INTERVAL_KEY','createSocket','clearInterval','onTransformSelections','INGEST','_transformUndoRedoStack','popstate','_init','collaborators','HttpExport','Disposable','split','unknown','_socketMessageSubscription','uploadFileServerUrl','UNKNOWN_CMD','1187826nlirzv','startColumn','transformSelections','_decreaseWaiting','_tryEnsureSocket','toString','getMember','onSendChangeset','_removeRoom','findNodePositionByCharIndex','SetWorksheetActivateCommand','SEND_CHANGESET_TIMEOUT','subunit','registerOnClose','purple300','updatePermissionPoint','getWorkbookSelections','_ensureSubject','onlineStatusIcon','getRenderById','_timeoutTimer','handleInsertRangeMoveDown','addObjects','updateOfflineData','ImageIoService','[CollaborationUndoRedoService]','setParam','hasOwnProperty','/rev/','_clearScheduledTask','\x0aCurrent:\x20','_retryConnectingTimer','_draw','OFFLINE','_tryReconnect','black','textRanges','CONFLICT','LIVESHARE_OPERATION','ImageSourceType','HEARTBEAT','_createInitialStateImpl','TEXT_RANGE_LAYER_INDEX','ILogService','idSuffix','isArray','SNAPSHOT_HAS_BEEN_REMOVED','Vector2','_collaborationSessionService','YUUMI_UNABLE_LOAD_URL','roomMembers$','deleteCollaborator','_substituteUndoStack','cursorInfo','_transformRemoteChangesetByIMECache','0\x200\x2016\x2016','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_scheduleHeartbeat','_hovered','debounce','listRoles','IImageIoService','@univerjs/core','[PendingState]:\x20received\x20acknowledgement.','c2Prime','_getAPIPrefixPath','getImage','resend','addObject','verdancy600','_updateLocalCursor','set','Error\x20on\x20receiving\x20event','fromCollab','save','ImageUploadStatusType','synced','_logService','image/gif','compose','getCollabEntity$','ISnapshotServerService','_selfUnitIDs','column','error$','use','PSEUDO_FETCH_MISSING_RESULT','collaboration_new_changeset','svg','_getRedoStack','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursorInfo$','collaboration-client.config','getActiveSheet','/universer-api/authz','onPointerLeave$','_startTelemetryCollaborationNewChangeset','COMPRESS_MUTATION_SEND','off-line-single_clip0_910_343','pauseCollaboration','prototype','_eventUnsubscribe','_initCommandExecutedListener','text','disposeUnit','extend','_replayCachedMutations','reconnect','_commentService','_lockTransition','[OfflineState]:\x20received\x20changeset.','_initEventListeners','SetSelectionsOperation','_substituteRedoStack','?size=','NO_OTHER_CLIENTS_EDITING','DataLoaderController','authzUrl','delay','incrementRevOfUnit','pushState','post','bottom','NOT_FOUND','SheetCollaborationEntity','_onConnectionFailed','transformMutationsWithChangeset','_textBubble','sheets','JOIN','univer-online','collab-client.tooltip.reconnect','beginPath','univer-online-status-icon','_createInitialState','@univerjs-pro/license','userID','Tools','CollaborationEvent','handleMoveRange','_httpService','CollaborationController','cmd','IBeforeCloseService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformService','on-line-single_clip0_910_349','univer-online-status-title','localeService','CONNECTOR_DATA_TOO_LARGE','CommentService','_configService','_removeClearOtherTimer','Inject','SYNCED','_state$','file','_config','_hover','LIVESHARE_NEW_HOST','_clearTimeoutTimer'];_0x336a=function(){return _0x512a6d;};return _0x336a();}function Ei(_0x4e7f35,_0x3e7b44){const _0x1b45f2=_0x945337;var _0x498380,_0x40b3a5=_0x3e7b44[_0x1b45f2(0x1c4)];return!_0x40b3a5||_0x40b3a5['length']===0x0?_0x4e7f35:_0x4e7f35[_0x1b45f2(0x231)]==='defs'&&(!((_0x498380=_0x4e7f35[_0x1b45f2(0x362)])===null||_0x498380===void 0x0)&&_0x498380['length'])?M(M({},_0x4e7f35),{'children':_0x4e7f35['children'][_0x1b45f2(0x2c1)](function(_0x3c8905){const _0xf5e05c=_0x1b45f2;return typeof _0x3c8905['attrs']['id']==_0xf5e05c(0x312)&&_0x40b3a5&&_0x40b3a5[_0xf5e05c(0x1a0)](_0x3c8905[_0xf5e05c(0x53e)]['id'])>-0x1?M(M({},_0x3c8905),{'attrs':M(M({},_0x3c8905['attrs']),{'id':_0x3c8905[_0xf5e05c(0x53e)]['id']+_0x3e7b44['idSuffix']})}):_0x3c8905;})}):_0x4e7f35;}function bi(){const _0x243240=_0x945337;return Math['random']()['toString'](0x24)[_0x243240(0x32f)](0x2,0x8);}qe[_0x945337(0x325)]=_0x945337(0x293);var Ti={'tag':_0x945337(0x4b9),'attrs':{'fill':_0x945337(0x2e1),'viewBox':_0x945337(0x498),'width':_0x945337(0x28e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x945337(0x219)},'children':[{'tag':_0x945337(0x55f),'attrs':{'stroke':_0x945337(0x54b),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x945337(0x193),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x945337(0x4c3)},'children':[{'tag':'path','attrs':{'fill':_0x945337(0x2e4),'d':_0x945337(0x503)}}]}]}],'defIds':[_0x945337(0x4c3)]},yt=U[_0x945337(0x43e)](function(_0x1ca6f7,_0x3dc532){const _0x4335ee=_0x945337;return U[_0x4335ee(0x1b0)](qe,Object['assign']({},_0x1ca6f7,{'id':_0x4335ee(0x3da),'ref':_0x3dc532,'icon':Ti}));});yt[_0x945337(0x325)]='OffLineSingle';var Ri={'tag':_0x945337(0x4b9),'attrs':{'fill':'none','viewBox':_0x945337(0x348),'width':_0x945337(0x28e),'height':_0x945337(0x28e)},'children':[{'tag':'g','attrs':{'clipPath':_0x945337(0x504)},'children':[{'tag':_0x945337(0x55f),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x945337(0x193),'strokeLinejoin':_0x945337(0x193),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x945337(0x28f),'attrs':{'id':_0x945337(0x4f3)},'children':[{'tag':_0x945337(0x55f),'attrs':{'fill':_0x945337(0x2e4),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ut=U[_0x945337(0x43e)](function(_0x56657c,_0x24b3c9){const _0x423fe0=_0x945337;return U[_0x423fe0(0x1b0)](qe,Object['assign']({},_0x56657c,{'id':'on-line-single','ref':_0x24b3c9,'icon':Ri}));});Ut[_0x945337(0x325)]=_0x945337(0x220);function Pt(_0x2ab697){const _0x5cd919=_0x945337;var _0x8e07f3,_0x158d4f,_0x1aa24f='';if(typeof _0x2ab697=='string'||typeof _0x2ab697==_0x5cd919(0x536))_0x1aa24f+=_0x2ab697;else{if(typeof _0x2ab697=='object'){if(Array[_0x5cd919(0x48e)](_0x2ab697)){var _0x112610=_0x2ab697[_0x5cd919(0x3f0)];for(_0x8e07f3=0x0;_0x8e07f3<_0x112610;_0x8e07f3++)_0x2ab697[_0x8e07f3]&&(_0x158d4f=Pt(_0x2ab697[_0x8e07f3]))&&(_0x1aa24f&&(_0x1aa24f+='\x20'),_0x1aa24f+=_0x158d4f);}else{for(_0x158d4f in _0x2ab697)_0x2ab697[_0x158d4f]&&(_0x1aa24f&&(_0x1aa24f+='\x20'),_0x1aa24f+=_0x158d4f);}}}return _0x1aa24f;}function Oi(){const _0x3ee2d8=_0x945337;for(var _0x34b847,_0x29019b,_0x338aee=0x0,_0x4a5559='',_0x25fc35=arguments[_0x3ee2d8(0x3f0)];_0x338aee<_0x25fc35;_0x338aee++)(_0x34b847=arguments[_0x338aee])&&(_0x29019b=Pt(_0x34b847))&&(_0x4a5559&&(_0x4a5559+='\x20'),_0x4a5559+=_0x29019b);return _0x4a5559;}const Di=_0x945337(0x4e6),yi=_0x945337(0x4f4),Ui='univer-online-status',Pi=_0x945337(0x4e3),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x314525){const _0x416818=_0x945337;switch(_0x314525){case y[_0x416818(0x482)]:return'collabStatus.offline';case y[_0x416818(0x486)]:return _0x416818(0x406);case y[_0x416818(0x2bf)]:return _0x416818(0x567);case y['NOT_COLLAB']:return _0x416818(0x234);case y['PENDING']:case y['AWAITING']:case y[_0x416818(0x564)]:return'collabStatus.syncing';case y[_0x416818(0x4fb)]:return _0x416818(0x3ed);}}function wt(_0x4e2955){const _0x367217=_0x945337,{status$:_0x531e4a}=_0x4e2955,_0x305a5e=N['useObservable'](_0x531e4a,y['NOT_COLLAB']),_0x2e1e3d=a[_0x367217(0x238)](a[_0x367217(0x299)]),_0x33d2be=a['useDependency'](exports[_0x367217(0x3a5)]),_0x9cd7e4=_0x305a5e!==y[_0x367217(0x482)],_0x2771d5=_0x2e1e3d['t'](Mi(_0x305a5e)),_0x2ac032=Oi(le[_0x367217(0x2e7)],{[le['online']]:_0x9cd7e4,[le['offline']]:!_0x9cd7e4}),_0x2ae141=_0x9cd7e4?U[_0x367217(0x1b0)](Ut,null):U['createElement'](yt,null),_0x5ec467=U[_0x367217(0x57e)](()=>{const _0x3410f9=_0x367217;_0x9cd7e4||_0x33d2be[_0x3410f9(0x4cc)]();},[_0x9cd7e4,_0x33d2be]);function _0x5b59a1(){const _0x32e0fc=_0x367217;return U[_0x32e0fc(0x1b0)](_0x32e0fc(0x205),{'className':_0x2ac032,'onClick':_0x5ec467},U[_0x32e0fc(0x1b0)](_0x32e0fc(0x205),{'className':le[_0x32e0fc(0x473)]},_0x2ae141),U['createElement']('div',{'className':le[_0x32e0fc(0x3c7)]},_0x2771d5));}return _0x9cd7e4?_0x5b59a1():U[_0x367217(0x1b0)](X['Tooltip'],{'title':_0x2e1e3d['t'](_0x367217(0x4e4))},_0x5b59a1());}var Ni=Object[_0x945337(0x24b)],Ai=Object[_0x945337(0x3e2)],Li=(_0x307e80,_0xdca99a,_0x1e74d3,_0x867667)=>{for(var _0x857a0d=_0x867667>0x1?void 0x0:_0x867667?Ai(_0xdca99a,_0x1e74d3):_0xdca99a,_0x57f97d=_0x307e80['length']-0x1,_0x48405f;_0x57f97d>=0x0;_0x57f97d--)(_0x48405f=_0x307e80[_0x57f97d])&&(_0x857a0d=(_0x867667?_0x48405f(_0xdca99a,_0x1e74d3,_0x857a0d):_0x48405f(_0x857a0d))||_0x857a0d);return _0x867667&&_0x857a0d&&Ni(_0xdca99a,_0x1e74d3,_0x857a0d),_0x857a0d;},Se=(_0x3d146f,_0x59a9f0)=>(_0x125e27,_0x4885ae)=>_0x59a9f0(_0x125e27,_0x4885ae,_0x3d146f);exports[_0x945337(0x1ce)]=class extends a[_0x945337(0x45b)]{constructor(_0x2937cd,_0x13741a,_0x1c2902,_0x3d4c23){const _0xc3f7d2=_0x945337;super(),d(this,_0xc3f7d2(0x35a),new v[(_0xc3f7d2(0x52c))](y[_0xc3f7d2(0x38e)])),(this[_0xc3f7d2(0x337)]=_0x2937cd,this[_0xc3f7d2(0x257)]=_0x13741a,this['_injector']=_0x1c2902,this[_0xc3f7d2(0x1a9)]=_0x3d4c23,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x945337(0x2eb)](){const _0x3c2ef3=_0x945337;this[_0x3c2ef3(0x50a)](this['_univerInstanceService'][_0x3c2ef3(0x2d9)][_0x3c2ef3(0x550)](v[_0x3c2ef3(0x442)](()=>{const _0x28fc32=_0x3c2ef3,_0x489930=this[_0x28fc32(0x337)][_0x28fc32(0x255)]();return _0x489930?this[_0x28fc32(0x1a9)][_0x28fc32(0x4b1)](_0x489930['getUnitId']()):v['of'](null);}),v[_0x3c2ef3(0x442)](_0x4e8224=>_0x4e8224?_0x4e8224[_0x3c2ef3(0x259)]:v['of'](y[_0x3c2ef3(0x38e)])))['subscribe'](_0x134090=>{const _0x48d68f=_0x3c2ef3;this['_status$'][_0x48d68f(0x3ca)](_0x134090);}));}[_0x945337(0x2bb)](){const _0x5b2fc2=_0x945337;this['disposeWithMe'](this[_0x5b2fc2(0x257)][_0x5b2fc2(0x28d)](N[_0x5b2fc2(0x3fa)][_0x5b2fc2(0x2a0)],()=>a['connectInjector'](ji({'status$':this[_0x5b2fc2(0x35a)][_0x5b2fc2(0x19b)]()}),this['_injector'])));}},exports[_0x945337(0x1ce)]=Li([Se(0x0,a[_0x945337(0x57b)]),Se(0x1,N[_0x945337(0x268)]),Se(0x2,a['Inject'](a[_0x945337(0x2b5)])),Se(0x3,a['Inject'](exports[_0x945337(0x4ee)]))],exports['DesktopCollaborationStatusDisplayController']);function ji(_0x32ff78){const {status$:_0x4a917e}=_0x32ff78;return function(){return U['createElement'](wt,{'status$':_0x4a917e});};}const ze=a[_0x945337(0x36a)](_0x945337(0x41d));var $i=Object[_0x945337(0x24b)],Hi=Object[_0x945337(0x3e2)],xi=(_0xabce67,_0x52147d,_0x42d62c,_0x4c59f8)=>{const _0x20b5e3=_0x945337;for(var _0x436d3f=_0x4c59f8>0x1?void 0x0:_0x4c59f8?Hi(_0x52147d,_0x42d62c):_0x52147d,_0x4d0914=_0xabce67[_0x20b5e3(0x3f0)]-0x1,_0x12e7e8;_0x4d0914>=0x0;_0x4d0914--)(_0x12e7e8=_0xabce67[_0x4d0914])&&(_0x436d3f=(_0x4c59f8?_0x12e7e8(_0x52147d,_0x42d62c,_0x436d3f):_0x12e7e8(_0x436d3f))||_0x436d3f);return _0x4c59f8&&_0x436d3f&&$i(_0x52147d,_0x42d62c,_0x436d3f),_0x436d3f;},ee=(_0x492fcf,_0x3b562d)=>(_0x4e3f29,_0x349aad)=>_0x3b562d(_0x4e3f29,_0x349aad,_0x492fcf);exports['DataLoaderController']=class extends a[_0x945337(0x538)]{constructor(_0x2ec97a,_0x458cf4,_0x2f92df,_0x1cdef2,_0x7c0e74,_0x15fe94){const _0x52a799=_0x945337;super(),this[_0x52a799(0x530)]=_0x2ec97a,this[_0x52a799(0x4ae)]=_0x458cf4,this[_0x52a799(0x256)]=_0x2f92df,this['_localCacheService']=_0x1cdef2,this[_0x52a799(0x22c)]=_0x7c0e74,_0x15fe94?_0x15fe94==null||_0x15fe94[_0x52a799(0x180)]()[_0x52a799(0x33c)](()=>this[_0x52a799(0x458)]()):(this[_0x52a799(0x4ae)][_0x52a799(0x44c)](_0x52a799(0x57c),_0x52a799(0x230)),this[_0x52a799(0x458)]());}async[_0x945337(0x458)](){const _0x5b38bc=_0x945337,_0x13c5e0=this[_0x5b38bc(0x530)][_0x5b38bc(0x21e)](_0x5b38bc(0x42a)),_0x2e7dce=this[_0x5b38bc(0x530)][_0x5b38bc(0x21e)]('type');if(!_0x13c5e0||!_0x2e7dce){this[_0x5b38bc(0x4ae)][_0x5b38bc(0x44c)](_0x5b38bc(0x57c),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2e7dce)){case j[_0x5b38bc(0x53c)]:{const _0x4f4e45=await this[_0x5b38bc(0x288)](_0x13c5e0);this['_setupSubUnitSync'](_0x4f4e45);break;}case j[_0x5b38bc(0x395)]:{await this[_0x5b38bc(0x34f)](_0x13c5e0);break;}default:{this[_0x5b38bc(0x4ae)][_0x5b38bc(0x2e8)](_0x5b38bc(0x57c),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x945337(0x272)](_0x10faec){const _0x697f6d=_0x945337;await this[_0x697f6d(0x3e9)](_0x10faec),_0x10faec[_0x697f6d(0x18d)]['pipe'](v['takeUntil'](this[_0x697f6d(0x2ec)]))['subscribe'](_0x12df2d=>{const _0x27b19d=_0x697f6d;_0x12df2d&&this[_0x27b19d(0x1d6)](_0x12df2d);}),this[_0x697f6d(0x530)]['urlChange$'][_0x697f6d(0x550)](v[_0x697f6d(0x43c)](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x10faec));}[_0x945337(0x1d6)](_0x424f43,_0x3a1f28=!0x1){const _0x14a353=_0x945337,_0x450af6=this[_0x14a353(0x530)]['getParam'](_0x14a353(0x46d));_0x424f43[_0x14a353(0x221)]()!==_0x450af6&&this[_0x14a353(0x530)][_0x14a353(0x47b)]('subunit',_0x424f43[_0x14a353(0x221)](),_0x3a1f28);}async[_0x945337(0x3e9)](_0x4165a0){const _0x1bc096=_0x945337;var _0x42e40c;const _0x38e89a=this[_0x1bc096(0x530)]['getParam'](_0x1bc096(0x46d));if(!_0x38e89a||!_0x4165a0[_0x1bc096(0x1b2)](_0x38e89a)){const _0x2e0c3e=_0x4165a0[_0x1bc096(0x173)]()[0x0],_0x446cdf=_0x4165a0[_0x1bc096(0x1b2)](_0x2e0c3e);if(!_0x446cdf)return;this[_0x1bc096(0x1d6)](_0x446cdf,!0x0),await this[_0x1bc096(0x256)]['executeCommand'](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x4165a0[_0x1bc096(0x352)](),'subUnitId':_0x2e0c3e});return;}((_0x42e40c=_0x4165a0[_0x1bc096(0x4be)]())==null?void 0x0:_0x42e40c[_0x1bc096(0x221)]())!==_0x38e89a&&await this[_0x1bc096(0x256)][_0x1bc096(0x505)](C[_0x1bc096(0x46b)]['id'],{'unitId':_0x4165a0[_0x1bc096(0x352)](),'subUnitId':_0x38e89a});}async[_0x945337(0x288)](_0x3cbca0){const _0x418c72=_0x945337;let _0x35d5d4=0x0;const _0x37683b=await this[_0x418c72(0x576)]['loadOfflineData'](_0x3cbca0);return _0x37683b&&(_0x37683b['awaitingChangeset']||_0x37683b['mutations'][_0x418c72(0x3f0)]!==0x0)&&(_0x35d5d4=_0x37683b[_0x418c72(0x24a)]),_0x35d5d4===0x0&&this[_0x418c72(0x4ae)][_0x418c72(0x44c)](_0x418c72(0x57c),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x418c72(0x22c)]['loadSheet'](_0x3cbca0,_0x35d5d4);}async[_0x945337(0x34f)](_0x1e0b13){const _0x5c8ac2=_0x945337;let _0x352d36=0x0;const _0x49d194=await this['_localCacheService']['loadOfflineData'](_0x1e0b13);return _0x49d194&&(_0x49d194[_0x5c8ac2(0x1b6)]||_0x49d194[_0x5c8ac2(0x435)][_0x5c8ac2(0x3f0)]!==0x0)&&(_0x352d36=_0x49d194[_0x5c8ac2(0x24a)]),_0x352d36===0x0&&this[_0x5c8ac2(0x4ae)][_0x5c8ac2(0x44c)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x5c8ac2(0x33b)](_0x1e0b13,_0x352d36);}},exports[_0x945337(0x4d5)]=xi([ee(0x0,ze),ee(0x1,a[_0x945337(0x48c)]),ee(0x2,a[_0x945337(0x400)]),ee(0x3,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),ee(0x4,a['Inject'](_['SnapshotService'])),ee(0x5,a[_0x945337(0x188)](Wt[_0x945337(0x2d5)]))],exports['DataLoaderController']);var ki=Object[_0x945337(0x24b)],Bi=Object[_0x945337(0x3e2)],Vi=(_0x4a73d9,_0x296a39,_0x7b7e18,_0x29e5ce)=>{const _0x57f9e5=_0x945337;for(var _0x4ecfd3=_0x29e5ce>0x1?void 0x0:_0x29e5ce?Bi(_0x296a39,_0x7b7e18):_0x296a39,_0x2e6f06=_0x4a73d9[_0x57f9e5(0x3f0)]-0x1,_0x5d8b2f;_0x2e6f06>=0x0;_0x2e6f06--)(_0x5d8b2f=_0x4a73d9[_0x2e6f06])&&(_0x4ecfd3=(_0x29e5ce?_0x5d8b2f(_0x296a39,_0x7b7e18,_0x4ecfd3):_0x5d8b2f(_0x4ecfd3))||_0x4ecfd3);return _0x29e5ce&&_0x4ecfd3&&ki(_0x296a39,_0x7b7e18,_0x4ecfd3),_0x4ecfd3;},at=(_0x49d4e0,_0x18bef5)=>(_0x5b47d6,_0x4adb21)=>_0x18bef5(_0x5b47d6,_0x4adb21,_0x49d4e0);const Wi=_0x945337(0x2b7),Fi='Univer';let Ie=class extends a[_0x945337(0x45b)]{constructor(_0x15ce03,_0x416651){const _0x54beeb=_0x945337;super(),this[_0x54beeb(0x337)]=_0x15ce03,this[_0x54beeb(0x4f8)]=_0x416651,this[_0x54beeb(0x458)]();}['_init'](){const _0x108c02=_0x945337;this[_0x108c02(0x50a)](this['_univerInstanceService'][_0x108c02(0x2d9)]['subscribe'](()=>{const _0x41f86e=_0x108c02;var _0x207478;const _0x25ad1f=this[_0x41f86e(0x337)][_0x41f86e(0x255)]();let _0x10346c=(_0x207478=this['_configService'][_0x41f86e(0x258)](Wi))!=null?_0x207478:Fi;_0x25ad1f instanceof a[_0x41f86e(0x43d)]&&(_0x10346c=_0x25ad1f['name']),document[_0x41f86e(0x1af)]=_0x10346c;}));}};Ie=Vi([at(0x0,a['IUniverInstanceService']),at(0x1,a[_0x945337(0x1f7)])],Ie);var Gi=Object[_0x945337(0x24b)],Yi=Object[_0x945337(0x3e2)],Ki=(_0x2ddd55,_0x46a38b,_0xd6d35b,_0x555e77)=>{const _0x345ede=_0x945337;for(var _0x312f2a=_0x555e77>0x1?void 0x0:_0x555e77?Yi(_0x46a38b,_0xd6d35b):_0x46a38b,_0x3643a8=_0x2ddd55[_0x345ede(0x3f0)]-0x1,_0x1ac59c;_0x3643a8>=0x0;_0x3643a8--)(_0x1ac59c=_0x2ddd55[_0x3643a8])&&(_0x312f2a=(_0x555e77?_0x1ac59c(_0x46a38b,_0xd6d35b,_0x312f2a):_0x1ac59c(_0x312f2a))||_0x312f2a);return _0x555e77&&_0x312f2a&&Gi(_0x46a38b,_0xd6d35b,_0x312f2a),_0x312f2a;},Le=(_0x4e606e,_0x5db1a1)=>(_0x4d7404,_0x498fe1)=>_0x5db1a1(_0x4d7404,_0x498fe1,_0x4e606e);let pe=class{constructor(_0xbe6018,_0x24858d,_0xdfc72c){const _0x590416=_0x945337;this['_configService']=_0xbe6018,this['_httpService']=_0x24858d,this['localeService']=_0xdfc72c,this[_0x590416(0x55a)]();}['init'](){const _0x3cb731=_0x945337;this[_0x3cb731(0x4ed)][_0x3cb731(0x248)]({'priority':0x1,'interceptor':(_0x30c952,_0x56e380)=>_0x56e380(_0x30c952)[_0x3cb731(0x550)](v['concatMap'](async _0x480f07=>{const _0x22db54=_0x3cb731,_0x4cf382=_0x480f07;if(_0x4cf382[_0x22db54(0x44d)]===0x191&&window[_0x22db54(0x1de)](this[_0x22db54(0x4f5)]['t'](_0x22db54(0x317)))){const _0x5cca43=window[_0x22db54(0x2ae)](window[_0x22db54(0x378)][_0x22db54(0x409)]);window[_0x22db54(0x378)]['href']=this['_getLoginPath']()+_0x22db54(0x430)+_0x5cca43;}return _0x4cf382;}))});}['_getLoginPath'](){const _0x370138=_0x945337;var _0x2a1ac5,_0x441b46;const _0xe7b121=this[_0x370138(0x4f8)][_0x370138(0x258)](mt),_0x4f0ccb=this[_0x370138(0x4f8)]['getConfig'](A);return(_0x441b46=(_0x2a1ac5=_0x4f0ccb==null?void 0x0:_0x4f0ccb[_0x370138(0x24d)])!=null?_0x2a1ac5:_0xe7b121)!=null?_0x441b46:es;}};pe=Ki([Le(0x0,a[_0x945337(0x1f7)]),Le(0x1,a[_0x945337(0x4fa)](P[_0x945337(0x22e)])),Le(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x299)]))],pe);var Xi=Object['defineProperty'],qi=Object[_0x945337(0x3e2)],zi=(_0x3d686c,_0x286206,_0x4a5660,_0x4c99f5)=>{const _0x795989=_0x945337;for(var _0xbc1552=_0x4c99f5>0x1?void 0x0:_0x4c99f5?qi(_0x286206,_0x4a5660):_0x286206,_0x2509ae=_0x3d686c[_0x795989(0x3f0)]-0x1,_0x395006;_0x2509ae>=0x0;_0x2509ae--)(_0x395006=_0x3d686c[_0x2509ae])&&(_0xbc1552=(_0x4c99f5?_0x395006(_0x286206,_0x4a5660,_0xbc1552):_0x395006(_0xbc1552))||_0xbc1552);return _0x4c99f5&&_0xbc1552&&Xi(_0x286206,_0x4a5660,_0xbc1552),_0xbc1552;},ct=(_0x258445,_0x34b7f0)=>(_0x13a1ec,_0x4ffeda)=>_0x34b7f0(_0x13a1ec,_0x4ffeda,_0x258445);const Mt='AUTHZ_URL_KEY',Ji=_0x945337(0x4bf);exports[_0x945337(0x40b)]=class extends a[_0x945337(0x45b)]{constructor(_0x8eea89,_0x409cc6){const _0x31306e=_0x945337;super(),this[_0x31306e(0x52a)]=_0x8eea89,this[_0x31306e(0x4f8)]=_0x409cc6,this[_0x31306e(0x31f)]();}[_0x945337(0x31f)](){const _0x1eb650=_0x945337,_0x2e8071=this;this[_0x1eb650(0x50a)](this['_HTTPService'][_0x1eb650(0x248)]({'priority':0x3e7,'interceptor':P[_0x1eb650(0x3bd)]({'isMatch'(_0x14421e){const _0x498202=_0x1eb650;var _0x40b789;if(_0x14421e[_0x498202(0x42f)]===_0x498202(0x315)&&((_0x40b789=_0x14421e[_0x498202(0x17a)])!=null&&_0x40b789[_0x498202(0x35f)])){const {objectID:_0x18cb3e,objectType:_0x51df05}=_0x14421e['requestParams'][_0x498202(0x35f)]||{};if(!_0x18cb3e||_0x51df05===void 0x0)return!0x1;const _0x142c4c=_0x2e8071[_0x498202(0x4a2)]()+'/'+_0x51df05+_0x498202(0x50d)+_0x18cb3e+_0x498202(0x383);if(_0x14421e[_0x498202(0x1e8)]===_0x142c4c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x728d51){const _0x590caa=_0x1eb650;var _0x5b3f9e;return(_0x5b3f9e=_0x728d51[_0x590caa(0x17a)])==null?void 0x0:_0x5b3f9e[_0x590caa(0x35f)];},'mergeParamsToRequest'(_0x24ed89,_0x44e1ec){const _0x1b4c9f=_0x1eb650,_0x1313fc=_0x2e8071[_0x1b4c9f(0x4a2)]()+_0x1b4c9f(0x1e6),_0xdffc24=_0x24ed89[_0x1b4c9f(0x580)]((_0x18a1a5,_0x331a02)=>{const _0x3a2d5d=_0x1b4c9f,{unitID:_0x1fb642,objectID:_0x48c291,objectType:_0x16dc8a,actions:_0x51a9cd}=_0x331a02;return _0x18a1a5[_0x1fb642]||(_0x18a1a5[_0x1fb642]={}),_0x18a1a5[_0x1fb642][_0x48c291]||(_0x18a1a5[_0x1fb642][_0x48c291]={'objectID':_0x48c291,'objectType':_0x16dc8a,'actions':[]}),_0x18a1a5[_0x1fb642][_0x48c291][_0x3a2d5d(0x3ef)][_0x3a2d5d(0x3b0)](..._0x51a9cd),_0x18a1a5;},{}),_0x3dd070=[];for(const _0x5c281b in _0xdffc24)for(const _0x17d153 in _0xdffc24[_0x5c281b]){const {actions:_0x51e4df,objectType:_0x4f491e}=_0xdffc24[_0x5c281b][_0x17d153],_0x56749d=[...new Set(_0x51e4df)];_0x3dd070[_0x1b4c9f(0x3b0)]({'unitID':_0x5c281b,'objectID':_0x17d153,'objectType':_0x4f491e,'actions':_0x56749d});}return new P[(_0x1b4c9f(0x1a6))](_0x1b4c9f(0x315),_0x1313fc,{'headers':_0x44e1ec[_0x1b4c9f(0x431)],'withCredentials':_0x44e1ec[_0x1b4c9f(0x1e3)],'responseType':_0x44e1ec['responseType'],'body':{'requests':_0x3dd070}});}},{'distributeResult'(_0x4ffe1e,_0x293dea){const {objectActions:_0x447d7d}=_0x4ffe1e;return _0x293dea['map'](_0x44e8ec=>{const _0x2c9a69=_0x38f3,{unitID:_0x43b2fa,objectID:_0x360f87,actions:_0x300d3f}=_0x44e8ec,_0x47648c=_0x447d7d[_0x2c9a69(0x23a)](_0x5964f0=>_0x5964f0[_0x2c9a69(0x1da)]===_0x43b2fa&&_0x5964f0['objectID']===_0x360f87),_0x19ef4f=_0x300d3f[_0x2c9a69(0x2c1)](_0x15691b=>_0x47648c==null?void 0x0:_0x47648c[_0x2c9a69(0x3ef)]['find'](_0x54144b=>_0x54144b['action']===_0x15691b))[_0x2c9a69(0x1dc)](_0x501a83=>!!_0x501a83);return{'config':_0x44e8ec,'result':{'actions':_0x19ef4f,'error':_0x4ffe1e[_0x2c9a69(0x2e8)]}};});}})}));}[_0x945337(0x4a2)](){const _0x485c60=_0x945337;var _0x245917,_0x1f2d66;const _0x1bdf7f=this[_0x485c60(0x4f8)][_0x485c60(0x258)](Mt),_0x3ef77d=this[_0x485c60(0x4f8)][_0x485c60(0x258)](A);return(_0x1f2d66=(_0x245917=_0x3ef77d==null?void 0x0:_0x3ef77d[_0x485c60(0x4d6)])!=null?_0x245917:_0x1bdf7f)!=null?_0x1f2d66:Ji;}async[_0x945337(0x30f)](_0x543a0c){const _0x246b44=_0x945337,_0x1b9468=this[_0x246b44(0x4a2)]()+'/'+_0x543a0c[_0x246b44(0x433)]+_0x246b44(0x2b6);return(await this['_HTTPService'][_0x246b44(0x4da)](_0x1b9468,{'body':_0x543a0c}))[_0x246b44(0x35f)][_0x246b44(0x1ee)]||'';}async[_0x945337(0x26b)](_0x5d62ea){const _0x277352=_0x945337,_0x5c428c=this[_0x277352(0x4a2)]()+_0x277352(0x444);return(await this[_0x277352(0x52a)][_0x277352(0x4da)](_0x5c428c,{'body':_0x5d62ea}))[_0x277352(0x35f)][_0x277352(0x2cf)];}async[_0x945337(0x177)](_0x433cd9){const _0x46e232=_0x945337,_0x82dbb2=this[_0x46e232(0x4a2)]()+'/'+_0x433cd9[_0x46e232(0x433)]+_0x46e232(0x50d)+_0x433cd9[_0x46e232(0x1ee)];await this[_0x46e232(0x52a)]['put'](_0x82dbb2,{'body':_0x433cd9});}async[_0x945337(0x525)](_0x1609c1){const _0x2b2d3c=_0x945337,_0x68a325=this[_0x2b2d3c(0x4a2)]()+'/'+_0x1609c1['objectType']+_0x2b2d3c(0x50d)+_0x1609c1['objectID']+_0x2b2d3c(0x383);return(await this['_HTTPService'][_0x2b2d3c(0x4da)](_0x68a325,{'body':_0x1609c1}))[_0x2b2d3c(0x35f)][_0x2b2d3c(0x3ef)];}async['batchAllowed'](_0x31bed6){const _0x3f6bcc=_0x945337,_0x3c7bec=this[_0x3f6bcc(0x4a2)]()+_0x3f6bcc(0x1e6);return(await this[_0x3f6bcc(0x52a)][_0x3f6bcc(0x4da)](_0x3c7bec,{'body':{'requests':_0x31bed6}}))[_0x3f6bcc(0x35f)][_0x3f6bcc(0x1ae)];}async[_0x945337(0x49d)](_0x458144){const _0x124a13=_0x945337,_0x1d7f4a=this['_getAPIPrefixPath']()+'/'+_0x458144[_0x124a13(0x433)]+_0x124a13(0x540),_0x4740bb=await this[_0x124a13(0x52a)][_0x124a13(0x4da)](_0x1d7f4a,{'body':_0x458144});return{'roles':_0x4740bb[_0x124a13(0x35f)][_0x124a13(0x434)],'actions':_0x4740bb[_0x124a13(0x35f)][_0x124a13(0x3ef)]};}async[_0x945337(0x494)](_0xf7d9ad){const _0x5ec6c0=_0x945337,_0x407078=this[_0x5ec6c0(0x4a2)]()+_0x5ec6c0(0x510);await this[_0x5ec6c0(0x52a)]['delete'](_0x407078,{'params':{'collaboratorID':_0xf7d9ad[_0x5ec6c0(0x3e1)],'objectID':_0xf7d9ad[_0x5ec6c0(0x1ee)],'unitID':_0xf7d9ad[_0x5ec6c0(0x1da)]}});}async['updateCollaborator'](_0x3a3e97){const _0x1258d3=_0x945337,_0x2ab2ba=this[_0x1258d3(0x4a2)]()+_0x1258d3(0x510);await this['_HTTPService'][_0x1258d3(0x524)](_0x2ab2ba,{'body':_0x3a3e97});}async[_0x945337(0x2be)](_0x442f95){const _0x47b357=_0x945337,_0x1e9035=this[_0x47b357(0x4a2)]()+_0x47b357(0x510);await this[_0x47b357(0x52a)][_0x47b357(0x4da)](_0x1e9035,{'body':_0x442f95});}async['listCollaborators'](_0x44f5f3){const _0x51c2e7=_0x945337,_0x4b8288=this[_0x51c2e7(0x4a2)]()+_0x51c2e7(0x510);return(await this[_0x51c2e7(0x52a)][_0x51c2e7(0x3eb)](_0x4b8288,{'params':{'objectID':_0x44f5f3[_0x51c2e7(0x1ee)],'unitID':_0x44f5f3['unitID']}}))[_0x51c2e7(0x35f)][_0x51c2e7(0x459)];}async['putCollaborators'](_0x1a115d){const _0xaada9f=_0x945337,_0x2db2aa=this[_0xaada9f(0x4a2)]()+_0xaada9f(0x510);await this[_0xaada9f(0x52a)][_0xaada9f(0x2a5)](_0x2db2aa,{'body':_0x1a115d});}},exports[_0x945337(0x40b)]=zi([ct(0x0,a['Inject'](P[_0x945337(0x22e)])),ct(0x1,a[_0x945337(0x4fa)](a[_0x945337(0x1f7)]))],exports[_0x945337(0x40b)]);var Zi=Object[_0x945337(0x24b)],Qi=Object[_0x945337(0x3e2)],en=(_0x439d3b,_0x36a68c,_0x5af289,_0x59a45a)=>{const _0x6f2fd8=_0x945337;for(var _0x46811b=_0x59a45a>0x1?void 0x0:_0x59a45a?Qi(_0x36a68c,_0x5af289):_0x36a68c,_0x4ca905=_0x439d3b[_0x6f2fd8(0x3f0)]-0x1,_0x26e2ca;_0x4ca905>=0x0;_0x4ca905--)(_0x26e2ca=_0x439d3b[_0x4ca905])&&(_0x46811b=(_0x59a45a?_0x26e2ca(_0x36a68c,_0x5af289,_0x46811b):_0x26e2ca(_0x46811b))||_0x46811b);return _0x59a45a&&_0x46811b&&Zi(_0x36a68c,_0x5af289,_0x46811b),_0x46811b;},tn=(_0x3d5396,_0xda5140)=>(_0x5d1cb4,_0x474409)=>_0xda5140(_0x5d1cb4,_0x474409,_0x3d5396);let Ce=class{constructor(_0x490ee6){const _0x3ef684=_0x945337;this[_0x3ef684(0x4ed)]=_0x490ee6,this[_0x3ef684(0x2d3)]();}[_0x945337(0x2d3)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x3d04ee,_0x2fda50)=>{const _0x14526c=_0x38f3,_0x36f0f3=_0x3d04ee['headers'],_0x1c3419=Ft[_0x14526c(0x2db)]();return _0x1c3419&&_0x36f0f3[_0x14526c(0x4a8)](_0x14526c(0x27e),_0x1c3419),_0x2fda50(_0x3d04ee);}});}};Ce=en([tn(0x0,a[_0x945337(0x4fa)](P[_0x945337(0x22e)]))],Ce);var sn=Object['defineProperty'],nn=Object[_0x945337(0x3e2)],rn=(_0xa1f6a0,_0x4d9696,_0x41424,_0x173c7a)=>{const _0x14bb0d=_0x945337;for(var _0x4e37ed=_0x173c7a>0x1?void 0x0:_0x173c7a?nn(_0x4d9696,_0x41424):_0x4d9696,_0x2a1d94=_0xa1f6a0[_0x14bb0d(0x3f0)]-0x1,_0xeb155a;_0x2a1d94>=0x0;_0x2a1d94--)(_0xeb155a=_0xa1f6a0[_0x2a1d94])&&(_0x4e37ed=(_0x173c7a?_0xeb155a(_0x4d9696,_0x41424,_0x4e37ed):_0xeb155a(_0x4e37ed))||_0x4e37ed);return _0x173c7a&&_0x4e37ed&&sn(_0x4d9696,_0x41424,_0x4e37ed),_0x4e37ed;},je=(_0x67ba3c,_0x2cc672)=>(_0x24893e,_0x31a7a1)=>_0x2cc672(_0x24893e,_0x31a7a1,_0x67ba3c);const on=[_0x945337(0x56f),_0x945337(0x208),'image/jpg',_0x945337(0x4af),_0x945337(0x57d)],an=0x5*0x400*0x400,cn=_0x945337(0x51a),ln=_0x945337(0x265),hn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_n=_0x945337(0x3bc);exports['ImageIoService']=class{constructor(_0x4ccb43,_0x4b18a9,_0x54e430){const _0x28cb1c=_0x945337;d(this,_0x28cb1c(0x1cc),0x0),d(this,_0x28cb1c(0x416),new v[(_0x28cb1c(0x36e))]()),d(this,_0x28cb1c(0x340),this[_0x28cb1c(0x416)]),d(this,_0x28cb1c(0x55c),new Map()),(this['_httpService']=_0x4ccb43,this[_0x28cb1c(0x4f8)]=_0x4b18a9,this[_0x28cb1c(0x337)]=_0x54e430);}['setWaitCount'](_0x41283a){const _0x503c5c=_0x945337;this[_0x503c5c(0x1cc)]=_0x41283a,this['_change$']['next'](_0x41283a);}[_0x945337(0x1a5)](_0x375473,_0x4234cc){const _0x4ad759=_0x945337;if(_0x4234cc===L[_0x4ad759(0x488)][_0x4ad759(0x2a3)]){const _0x77c404=new Image();return _0x77c404[_0x4ad759(0x21b)]=_0x375473,_0x77c404;}return this[_0x4ad759(0x55c)][_0x4ad759(0x3eb)](_0x375473);}['addImageSourceCache'](_0x31e9ac,_0x33a65d,_0x2276eb){const _0x3912c3=_0x945337;_0x33a65d===L[_0x3912c3(0x488)][_0x3912c3(0x2a3)]||_0x2276eb==null||this[_0x3912c3(0x55c)][_0x3912c3(0x4a8)](_0x31e9ac,_0x2276eb);}async[_0x945337(0x4a3)](_0x593130){const _0x1b519e=_0x945337;try{const _0x22e53e=this[_0x1b519e(0x1c9)](this[_0x1b519e(0x523)](),''+_0x593130),_0x5d01a0=(await this[_0x1b519e(0x4ed)][_0x1b519e(0x3eb)](_0x22e53e))[_0x1b519e(0x35f)];if(_0x5d01a0[_0x1b519e(0x2e8)]&&_0x5d01a0[_0x1b519e(0x2e8)][_0x1b519e(0x20c)]===It['OK']){const _0x1869a2=new URL(_0x5d01a0[_0x1b519e(0x1e8)],this['_getDownloadEndpointURL']())[_0x1b519e(0x466)]();return Promise[_0x1b519e(0x18f)](_0x1869a2);}return Promise[_0x1b519e(0x279)](_0x5d01a0[_0x1b519e(0x2e8)]);}catch(_0x5026fe){return Promise[_0x1b519e(0x279)](_0x5026fe);}}async[_0x945337(0x3c1)](_0xe78a1f){const _0x49a358=_0x945337;let _0xa6415f='';if(!on[_0x49a358(0x38c)](_0xe78a1f['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(L['ImageUploadStatusType'][_0x49a358(0x54c)]));if(_0xe78a1f[_0x49a358(0x17e)]>an)return this['_decreaseWaiting'](),Promise[_0x49a358(0x279)](new Error(L[_0x49a358(0x4ac)][_0x49a358(0x371)]));try{const _0x3774d3=new FormData();_0x3774d3[_0x49a358(0x280)](_0x49a358(0x4fd),_0xe78a1f);const _0x2e80bf=this[_0x49a358(0x337)][_0x49a358(0x255)](),_0x3dc71e=_0x2e80bf==null?void 0x0:_0x2e80bf[_0x49a358(0x352)]();if(!_0x3dc71e)throw new Error('unitId\x20is\x20not\x20found');const _0x33392f=this[_0x49a358(0x357)]()+_0x49a358(0x4d3)+_0xe78a1f['size'][_0x49a358(0x466)]()+_0x49a358(0x517)+pt[_0x49a358(0x29b)]+_0x49a358(0x55e)+encodeURIComponent(_0x3dc71e),_0x2d1f72=await(await fetch(_0x33392f,{'method':_0x49a358(0x315),'body':_0x3774d3}))[_0x49a358(0x1ab)]();if(typeof _0x2d1f72['FileId']!=_0x49a358(0x312))return this[_0x49a358(0x464)](),Promise[_0x49a358(0x279)](new Error(L['ImageUploadStatusType'][_0x49a358(0x1d9)]));_0xa6415f=_0x2d1f72[_0x49a358(0x3b2)];}catch{return this['_decreaseWaiting'](),Promise[_0x49a358(0x279)](new Error(L[_0x49a358(0x4ac)][_0x49a358(0x1d9)]));}return new Promise((_0x4f4be8,_0x1e95d0)=>{const _0x5a5d67=_0x49a358,_0x382e90=new FileReader();_0x382e90[_0x5a5d67(0x184)](_0xe78a1f),_0x382e90[_0x5a5d67(0x314)]=_0x9fa56a=>{const _0x2fb230=_0x5a5d67;var _0x2b6078;const _0x556ad4=(_0x2b6078=_0x9fa56a['target'])==null?void 0x0:_0x2b6078[_0x2fb230(0x331)];if(_0x556ad4==null){this['_decreaseWaiting'](),_0x1e95d0(new Error(L['ImageUploadStatusType'][_0x2fb230(0x1d9)]));return;}const _0x17830c=a[_0x2fb230(0x4ea)][_0x2fb230(0x227)](0x6);_0x4f4be8({'imageId':_0x17830c,'imageSourceType':L[_0x2fb230(0x488)][_0x2fb230(0x522)],'source':_0xa6415f,'base64Cache':_0x556ad4,'status':L[_0x2fb230(0x4ac)]['SUCCUSS']}),this[_0x2fb230(0x464)]();};});}[_0x945337(0x357)](){const _0x3a6894=_0x945337;var _0x103b70,_0x9985e1;const _0x10c3d2=this[_0x3a6894(0x4f8)][_0x3a6894(0x258)](cn),_0x39154e=this['_configService'][_0x3a6894(0x258)](A);return(_0x9985e1=(_0x103b70=_0x39154e==null?void 0x0:_0x39154e[_0x3a6894(0x45f)])!=null?_0x103b70:_0x10c3d2)!=null?_0x9985e1:ln;}['_getSignURL'](){const _0x46b569=_0x945337;var _0x1fedf4,_0x3b15bb;const _0x429c54=this['_configService'][_0x46b569(0x258)](hn),_0x17a250=this['_configService'][_0x46b569(0x258)](A);return(_0x3b15bb=(_0x1fedf4=_0x17a250==null?void 0x0:_0x17a250[_0x46b569(0x23d)])!=null?_0x1fedf4:_0x429c54)!=null?_0x3b15bb:_n;}['_getDownloadEndpointURL'](){const _0x50cfde=_0x945337;var _0x505650;const _0x19c684=this[_0x50cfde(0x4f8)]['getConfig'](A);return(_0x505650=_0x19c684==null?void 0x0:_0x19c684[_0x50cfde(0x1c3)])!=null?_0x505650:location[_0x50cfde(0x341)];}['_replaceFileID'](_0x4dd1d0,_0x24fc36){const _0x28bef9=_0x945337;return _0x4dd1d0[_0x28bef9(0x559)]('{fileID}',_0x24fc36);}['_decreaseWaiting'](){const _0xdcc7c7=_0x945337;this[_0xdcc7c7(0x1cc)]-=0x1,this[_0xdcc7c7(0x416)][_0xdcc7c7(0x3ca)](this[_0xdcc7c7(0x1cc)]);}},exports[_0x945337(0x479)]=rn([je(0x0,a['Inject'](P[_0x945337(0x22e)])),je(0x1,a[_0x945337(0x1f7)]),je(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x57b)]))],exports[_0x945337(0x479)]);var un=Object[_0x945337(0x24b)],dn=Object[_0x945337(0x3e2)],Sn=(_0xeda5db,_0x187138,_0x304549,_0x9ed41b)=>{const _0x5b5d8a=_0x945337;for(var _0xc163b0=_0x9ed41b>0x1?void 0x0:_0x9ed41b?dn(_0x187138,_0x304549):_0x187138,_0x579608=_0xeda5db[_0x5b5d8a(0x3f0)]-0x1,_0x60a977;_0x579608>=0x0;_0x579608--)(_0x60a977=_0xeda5db[_0x579608])&&(_0xc163b0=(_0x9ed41b?_0x60a977(_0x187138,_0x304549,_0xc163b0):_0x60a977(_0xc163b0))||_0xc163b0);return _0x9ed41b&&_0xc163b0&&un(_0x187138,_0x304549,_0xc163b0),_0xc163b0;},he=(_0x496790,_0x2893b0)=>(_0x2ce484,_0x3dabfc)=>_0x2893b0(_0x2ce484,_0x3dabfc,_0x496790);let Ee=class extends a[_0x945337(0x538)]{constructor(_0x1d6445,_0x4d5aea,_0x947766,_0x2ad3c2,_0x11642f){const _0x4b88ee=_0x945337;super(),this[_0x4b88ee(0x3dd)]=_0x1d6445,this[_0x4b88ee(0x337)]=_0x4d5aea,this['_permissionService']=_0x947766,this[_0x4b88ee(0x491)]=_0x2ad3c2,this[_0x4b88ee(0x21a)]=_0x11642f,this['_initUnitPermissionChange'](),this[_0x4b88ee(0x398)]();}[_0x945337(0x398)](){const _0x43d51a=_0x945337,_0x24b84c=async _0x440a28=>{const _0x709dad=_0x38f3;(await this['_collaborationSessionService'][_0x709dad(0x369)](_0x440a28))[_0x709dad(0x23f)][_0x709dad(0x550)](E[_0x709dad(0x1dc)](_0x3b7915=>_0x3b7915[_0x709dad(0x170)]===_[_0x709dad(0x4eb)][_0x709dad(0x2d8)]),E[_0x709dad(0x43c)](this[_0x709dad(0x2ec)]))[_0x709dad(0x397)](_0x4a8930=>{const _0x37cdc8=_0x709dad,_0x58514f=_0x4a8930,{reason:_0x3c7ceb}=_0x58514f[_0x37cdc8(0x375)];this[_0x37cdc8(0x3dd)][_0x37cdc8(0x3eb)](N['IMessageService'])[_0x37cdc8(0x411)]({'type':X[_0x37cdc8(0x367)][_0x37cdc8(0x372)],'content':this[_0x37cdc8(0x21a)]['t'](_0x37cdc8(0x183))+'('+_0x3c7ceb+')'}),this[_0x37cdc8(0x209)][_0x37cdc8(0x470)](new C[(_0x37cdc8(0x298))](_0x440a28)['id'],!0x1),this['_collaborationSessionService'][_0x37cdc8(0x350)](_0x440a28);});};v[_0x43d51a(0x515)](this[_0x43d51a(0x337)][_0x43d51a(0x51e)](a[_0x43d51a(0x3b1)]['UNIVER_SHEET']),this[_0x43d51a(0x337)]['getTypeOfUnitAdded$'](a[_0x43d51a(0x3b1)][_0x43d51a(0x395)]))['pipe'](E[_0x43d51a(0x2c1)](_0x1bfbf3=>_0x1bfbf3[_0x43d51a(0x352)]()),E[_0x43d51a(0x1dc)](_0x3463bc=>!a[_0x43d51a(0x1dd)](_0x3463bc)),E[_0x43d51a(0x43c)](this['dispose$']))[_0x43d51a(0x397)](_0x4d2273=>{_0x24b84c(_0x4d2273);});}['_initUnitPermissionChange'](){const _0x5f3f4d=_0x945337,_0x10445c=async _0x394fe0=>{const _0x87ea45=_0x38f3;(await this['_collaborationSessionService'][_0x87ea45(0x369)](_0x394fe0))['event$'][_0x87ea45(0x550)](E['filter'](_0x33e089=>_0x33e089['eventID']===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E[_0x87ea45(0x43c)](this[_0x87ea45(0x2ec)]))[_0x87ea45(0x397)](_0x55db0a=>{const _0xc17e11=_0x87ea45,_0x45085b=_0x55db0a,{objectId:_0x59af19}=_0x45085b[_0xc17e11(0x375)],_0x11b242=this[_0xc17e11(0x3dd)][_0xc17e11(0x3eb)](te['SheetPermissionInitController']);_0x59af19===_0x394fe0?_0x11b242[_0xc17e11(0x440)](_0x394fe0):_0x11b242[_0xc17e11(0x41e)](_0x394fe0,_0x59af19);});};v[_0x5f3f4d(0x515)](this[_0x5f3f4d(0x337)][_0x5f3f4d(0x51e)](a[_0x5f3f4d(0x3b1)][_0x5f3f4d(0x53c)]),this[_0x5f3f4d(0x337)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x5f3f4d(0x395)]))['pipe'](E['map'](_0x24ce4b=>_0x24ce4b['getUnitId']()),E['filter'](_0x555c7c=>!a[_0x5f3f4d(0x1dd)](_0x555c7c)),E[_0x5f3f4d(0x43c)](this['dispose$']))[_0x5f3f4d(0x397)](_0x1f8d1d=>{_0x10445c(_0x1f8d1d);});}};Ee=Sn([he(0x0,a['Inject'](a[_0x945337(0x2b5)])),he(0x1,a['IUniverInstanceService']),he(0x2,a[_0x945337(0x414)]),he(0x3,a[_0x945337(0x4fa)](exports['CollaborationSessionService'])),he(0x4,a[_0x945337(0x4fa)](a[_0x945337(0x299)]))],Ee);var vn=Object[_0x945337(0x24b)],fn=Object[_0x945337(0x3e2)],gn=(_0x506f3c,_0x5203c3,_0x3701ea,_0x30ca28)=>{for(var _0xbfdc4a=_0x30ca28>0x1?void 0x0:_0x30ca28?fn(_0x5203c3,_0x3701ea):_0x5203c3,_0x26f5ad=_0x506f3c['length']-0x1,_0x4fad1f;_0x26f5ad>=0x0;_0x26f5ad--)(_0x4fad1f=_0x506f3c[_0x26f5ad])&&(_0xbfdc4a=(_0x30ca28?_0x4fad1f(_0x5203c3,_0x3701ea,_0xbfdc4a):_0x4fad1f(_0xbfdc4a))||_0xbfdc4a);return _0x30ca28&&_0xbfdc4a&&vn(_0x5203c3,_0x3701ea,_0xbfdc4a),_0xbfdc4a;},lt=(_0x58707c,_0xc2a03c)=>(_0x17b25a,_0x31a76b)=>_0xc2a03c(_0x17b25a,_0x31a76b,_0x58707c);exports[_0x945337(0x3cc)]=class{constructor(_0x1030a1,_0x4edecc){const _0x34ea7b=_0x945337;this[_0x34ea7b(0x4f8)]=_0x1030a1,this[_0x34ea7b(0x4ed)]=_0x4edecc;}async[_0x945337(0x33a)](_0x2d3b02,_0x5809ad){const _0x3dc87a=_0x945337;var _0x5415b0;const {unitID:_0x5555a4,type:_0x45b7e6,revision:_0x27b04a=0x0}=_0x5809ad,_0x2b3967=this[_0x3dc87a(0x1d7)]()+'/'+_0x45b7e6+_0x3dc87a(0x35e)+_0x5555a4+_0x3dc87a(0x47d)+_0x27b04a,_0x582f41=(await this['_httpService'][_0x3dc87a(0x3eb)](_0x2b3967))[_0x3dc87a(0x35f)],_0x5d339e=(_0x5415b0=_0x582f41[_0x3dc87a(0x31b)])==null?void 0x0:_0x5415b0['workbook'];if(_0x5d339e){const _0x1c3815=_0x5d339e==null?void 0x0:_0x5d339e[_0x3dc87a(0x3e3)],_0x1d6504=_[_0x3dc87a(0x43f)][_0x3dc87a(0x2f1)](_[_0x3dc87a(0x19a)](_0x1c3815));_0x5d339e['originalMeta']=_0x1d6504,Object[_0x3dc87a(0x519)](_0x5d339e[_0x3dc87a(0x4e1)])['forEach'](([,_0x4871be])=>{const _0x32edf1=_0x3dc87a,_0xa806ea=_0x4871be[_0x32edf1(0x3e3)],_0x1fa780=_['textEncoder'][_0x32edf1(0x2f1)](_[_0x32edf1(0x19a)](_0xa806ea));_0x4871be[_0x32edf1(0x3e3)]=_0x1fa780;});}return _0x582f41;}async[_0x945337(0x30e)](_0x130ddc,_0x12e667){const _0x1ddf7c=_0x945337,{unitID:_0xddf8f3,type:_0x5b4042,blockID:_0x223224}=_0x12e667,_0x1c5fbf=this[_0x1ddf7c(0x3b3)]()+'/'+_0x5b4042+'/unit/'+_0xddf8f3+_0x1ddf7c(0x1ed)+_0x223224;return(await this[_0x1ddf7c(0x4ed)][_0x1ddf7c(0x3eb)](_0x1c5fbf))[_0x1ddf7c(0x35f)];}async['getDeserializedSheetBlock'](_0x40abec,_0x4ded00){const _0x2fcd49=_0x945337,{unitID:_0x4756f9,type:_0x4de1be,blockID:_0x1da9df}=_0x4ded00,_0xe0b9f3=this[_0x2fcd49(0x3b3)]()+'/block/'+_0x4de1be+_0x2fcd49(0x35e)+_0x4756f9+_0x2fcd49(0x1ed)+_0x1da9df;return(await this[_0x2fcd49(0x4ed)][_0x2fcd49(0x3eb)](_0xe0b9f3))[_0x2fcd49(0x35f)];}async['fetchMissingChangesets'](_0x542c39,_0x31dbd7){const _0x1e824b=_0x945337,{unitID:_0x434fd3,type:_0x47e5f2,from:_0x46ccf5,to:_0x1bc6bc}=_0x31dbd7,_0x5d543b=this['_getAPIPrefix']()+'/'+_0x47e5f2+_0x1e824b(0x35e)+_0x434fd3+_0x1e824b(0x2fc)+_0x46ccf5+'&to='+_0x1bc6bc;return(await this['_httpService'][_0x1e824b(0x3eb)](_0x5d543b))['body'];}[_0x945337(0x1d7)](){const _0x4ecc8d=_0x945337;var _0x112bdd;return(_0x112bdd=this[_0x4ecc8d(0x4f8)][_0x4ecc8d(0x258)](_t))!=null?_0x112bdd:this[_0x4ecc8d(0x3b3)]();}[_0x945337(0x3b3)](){const _0x2bb731=_0x945337;var _0x17a162,_0x1d1cff;const _0x1b7489=this['_configService'][_0x2bb731(0x258)](ht),_0x42d2ec=this[_0x2bb731(0x4f8)][_0x2bb731(0x258)](A);return(_0x1d1cff=(_0x17a162=_0x42d2ec==null?void 0x0:_0x42d2ec['snapshotServerUrl'])!=null?_0x17a162:_0x1b7489)!=null?_0x1d1cff:Gt;}async[_0x945337(0x40c)](_0x3be683,_0x4d512c){const _0x54e5e2=_0x945337,_0x57acc4='/universer-api/snapshot/'+_0x4d512c['type']+_0x54e5e2(0x35e)+_0x4d512c[_0x54e5e2(0x1da)]+_0x54e5e2(0x2cc);return(await this[_0x54e5e2(0x4ed)][_0x54e5e2(0x3eb)](_0x57acc4,{'params':{'resourceId':JSON[_0x54e5e2(0x22d)](_0x4d512c['resourceIDs'])}}))[_0x54e5e2(0x35f)];}['saveSnapshot'](){const _0x2c18f1=_0x945337;throw new Error(_0x2c18f1(0x3c5));}[_0x945337(0x179)](){const _0x1618f8=_0x945337;throw new Error(_0x1618f8(0x3c5));}[_0x945337(0x40d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x945337(0x424)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x945337(0x3cc)]=gn([lt(0x0,a['IConfigService']),lt(0x1,a['Inject'](P[_0x945337(0x22e)]))],exports['SnapshotServerOverHTTPService']);var mn=Object[_0x945337(0x24b)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5a4113,_0x6f3323,_0x54c6a6,_0x1068b0)=>{const _0x40441c=_0x945337;for(var _0x1150a8=_0x1068b0>0x1?void 0x0:_0x1068b0?In(_0x6f3323,_0x54c6a6):_0x6f3323,_0x33c2e6=_0x5a4113[_0x40441c(0x3f0)]-0x1,_0xe2345;_0x33c2e6>=0x0;_0x33c2e6--)(_0xe2345=_0x5a4113[_0x33c2e6])&&(_0x1150a8=(_0x1068b0?_0xe2345(_0x6f3323,_0x54c6a6,_0x1150a8):_0xe2345(_0x1150a8))||_0x1150a8);return _0x1068b0&&_0x1150a8&&mn(_0x6f3323,_0x54c6a6,_0x1150a8),_0x1150a8;},_e=(_0x216f88,_0x3ceace)=>(_0x2298dd,_0x59db1c)=>_0x3ceace(_0x2298dd,_0x59db1c,_0x216f88);let Be=class extends a[_0x945337(0x187)]{constructor(_0x63b7b6,_0x5b738d,_0x19fbcf,_0x21c1e1,_0x49f521){const _0x1f8d79=_0x945337;super(_0x63b7b6,_0x5b738d,_0x19fbcf),this['_transformService']=_0x21c1e1,this[_0x1f8d79(0x4ae)]=_0x49f521;}[_0x945337(0x1d0)](_0x1c2d5f,_0x2bbd21){const _0x2955c0=_0x945337,_0x2f7eec=this[_0x2955c0(0x577)](_0x1c2d5f);if(_0x2f7eec)try{const _0x39dea2=this['_transformStack'](_0x2f7eec,_0x2bbd21);this[_0x2955c0(0x495)](_0x1c2d5f,_0x39dea2);}catch(_0x341ea9){this[_0x2955c0(0x4ae)][_0x2955c0(0x2e8)](_0x2955c0(0x47a),_0x341ea9),this[_0x2955c0(0x41a)](_0x1c2d5f);}const _0x4c0443=this[_0x2955c0(0x4ba)](_0x1c2d5f);if(_0x4c0443)try{const _0x2aaa69=this[_0x2955c0(0x2ca)](_0x4c0443,_0x2bbd21);this[_0x2955c0(0x4d2)](_0x1c2d5f,_0x2aaa69);}catch(_0x5946c2){this[_0x2955c0(0x4ae)]['error'](_0x5946c2),this['_clearRedo'](_0x1c2d5f);}}[_0x945337(0x41a)](_0x29ac7c){const _0x438a32=_0x945337,_0x4c0191=this[_0x438a32(0x577)](_0x29ac7c);_0x4c0191&&(_0x4c0191[_0x438a32(0x3f0)]=0x0,this['_updateStatus']());}[_0x945337(0x34d)](_0x1f52c4){const _0x2b9658=_0x945337,_0x9d4347=this[_0x2b9658(0x4ba)](_0x1f52c4);_0x9d4347&&(_0x9d4347[_0x2b9658(0x3f0)]=0x0,this[_0x2b9658(0x422)]());}[_0x945337(0x495)](_0x2bbf99,_0x46bf0b){const _0x47bc54=_0x945337;this[_0x47bc54(0x1f6)]['set'](_0x2bbf99,_0x46bf0b),this[_0x47bc54(0x422)]();}[_0x945337(0x4d2)](_0xa08074,_0x2411a1){const _0x56763a=_0x945337;this['_redoStacks'][_0x56763a(0x4a8)](_0xa08074,_0x2411a1),this[_0x56763a(0x422)]();}[_0x945337(0x2ca)](_0x31ecaf,_0x512883){const _0x240d68=_0x945337,_0x3faa7f=[];let _0x195e16=_0x512883,_0x583ba3=_0x512883;for(let _0x407f7f=_0x31ecaf[_0x240d68(0x3f0)]-0x1;_0x407f7f>=0x0;_0x407f7f--){const {unitID:_0xdaa35a,undoMutations:_0x5d9eb0,redoMutations:_0x2bc98e}=_0x31ecaf[_0x407f7f],_0xf8e809=this[_0x240d68(0x4f2)]['transformMutationsWithChangeset'](_0x195e16,_0x5d9eb0),_0x35360a=this[_0x240d68(0x4f2)][_0x240d68(0x4df)](_0x583ba3,_0x2bc98e);if(_['isTransformMutationsWithChangesetFailure'](_0xf8e809)||_[_0x240d68(0x552)](_0x35360a)){this[_0x240d68(0x4ae)][_0x240d68(0x2e8)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0xf8e809,_0x35360a);break;}_0x195e16=_0xf8e809[_0x240d68(0x44e)],_0x583ba3=_0x35360a['c1Prime'],_0x3faa7f[_0x240d68(0x3b0)]({'unitID':_0xdaa35a,'undoMutations':_0xf8e809[_0x240d68(0x178)],'redoMutations':_0x35360a[_0x240d68(0x178)]});}return _0x3faa7f[_0x240d68(0x51f)]();}};Be=pn([_e(0x0,a['IUniverInstanceService']),_e(0x1,a[_0x945337(0x400)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x945337(0x429)]),_e(0x4,a['ILogService'])],Be);class Nt extends a[_0x945337(0x538)]{constructor(){const _0x1a6989=_0x945337;super(),d(this,_0x1a6989(0x56b)),this[_0x1a6989(0x56b)]=v['fromEvent'](window,_0x1a6989(0x457))[_0x1a6989(0x550)](v[_0x1a6989(0x43c)](this[_0x1a6989(0x2ec)]),v[_0x1a6989(0x421)](0x1),v[_0x1a6989(0x1a3)](void 0x0));}[_0x945337(0x47b)](_0x1a41e8,_0x51da4e,_0x12a94a=!0x1){const _0xe70366=_0x945337,_0x321b77=new URL(window[_0xe70366(0x378)][_0xe70366(0x409)]);_0x321b77['searchParams'][_0xe70366(0x4a8)](_0x1a41e8,_0x51da4e),_0x12a94a?window[_0xe70366(0x2cd)]['replaceState']('','',_0x321b77['toString']()):window[_0xe70366(0x2cd)][_0xe70366(0x4d9)]('','',_0x321b77[_0xe70366(0x466)]());}[_0x945337(0x1b5)](_0x1ea143,_0x1ab068=!0x1){const _0x482d43=_0x945337,_0x3ea3c1=new URL(window[_0x482d43(0x378)]['href']);_0x3ea3c1[_0x482d43(0x2df)]['delete'](_0x1ea143),_0x1ab068?window[_0x482d43(0x2cd)][_0x482d43(0x2ed)]('','',_0x3ea3c1[_0x482d43(0x466)]()):window[_0x482d43(0x2cd)][_0x482d43(0x4d9)]('','',_0x3ea3c1[_0x482d43(0x466)]());}[_0x945337(0x21e)](_0x5b803f){const _0x2bc2c4=_0x945337;var _0x45ada9;return(_0x45ada9=new URL(window[_0x2bc2c4(0x378)][_0x2bc2c4(0x409)])[_0x2bc2c4(0x2df)]['get'](_0x5b803f))!=null?_0x45ada9:void 0x0;}}var At=Object['defineProperty'],Cn=Object['getOwnPropertyDescriptor'],En=(_0x500179,_0x3eec32,_0x51c288)=>_0x3eec32 in _0x500179?At(_0x500179,_0x3eec32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51c288}):_0x500179[_0x3eec32]=_0x51c288,bn=(_0x50e67a,_0x1dc922,_0x5366c8,_0x5cb5cf)=>{const _0x222cb2=_0x945337;for(var _0x3929c3=_0x5cb5cf>0x1?void 0x0:_0x5cb5cf?Cn(_0x1dc922,_0x5366c8):_0x1dc922,_0x48ae40=_0x50e67a[_0x222cb2(0x3f0)]-0x1,_0x10ba21;_0x48ae40>=0x0;_0x48ae40--)(_0x10ba21=_0x50e67a[_0x48ae40])&&(_0x3929c3=(_0x5cb5cf?_0x10ba21(_0x1dc922,_0x5366c8,_0x3929c3):_0x10ba21(_0x3929c3))||_0x3929c3);return _0x5cb5cf&&_0x3929c3&&At(_0x1dc922,_0x5366c8,_0x3929c3),_0x3929c3;},ve=(_0x2e1a8a,_0x44ea97)=>(_0x4fcffd,_0x48a174)=>_0x44ea97(_0x4fcffd,_0x48a174,_0x2e1a8a),Tn=(_0x348f70,_0x29e6d2,_0x46db22)=>En(_0x348f70,_0x29e6d2+'',_0x46db22);const Rn=_0x945337(0x323);exports[_0x945337(0x300)]=class extends a[_0x945337(0x1fd)]{constructor(_0x370ac5=ts,_0x5a79e,_0x2512a8,_0x240cf9,_0xa2ee7d){const _0x3ba533=_0x945337;super(),this[_0x3ba533(0x4fe)]=_0x370ac5,this[_0x3ba533(0x4ae)]=_0x5a79e,this[_0x3ba533(0x277)]=_0x2512a8,this[_0x3ba533(0x3dd)]=_0x240cf9,this['_configService']=_0xa2ee7d;const {..._0x2da3ad}=this[_0x3ba533(0x4fe)];this[_0x3ba533(0x4f8)][_0x3ba533(0x44a)](A,_0x2da3ad);}['onStarting'](){const _0x18e188=_0x945337;this[_0x18e188(0x199)](),a[_0x18e188(0x3b5)](this[_0x18e188(0x3dd)],[[ie],[exports[_0x18e188(0x4d5)]],[Ee]]);}[_0x945337(0x446)](){const _0x3cfffc=_0x945337;a[_0x3cfffc(0x3b5)](this[_0x3cfffc(0x3dd)],[[Ie]]);}[_0x945337(0x2e9)](){this['_registerRenderDependencies']();}[_0x945337(0x199)](){const _0x126ffa=_0x945337;var _0x5d6d6d,_0x4da76f,_0x4d6134,_0x4d4334;this[_0x126ffa(0x3dd)][_0x126ffa(0x384)](a[_0x126ffa(0x38b)])&&this['_logService'][_0x126ffa(0x2e8)](_0x126ffa(0x512),_0x126ffa(0x427));let _0x3ab063=[[a[_0x126ffa(0x38b)],{'useClass':Be}],[exports[_0x126ffa(0x3a5)]],[Xe],[P['HTTPService']],[ze,{'useClass':Nt}],[q],[exports[_0x126ffa(0x3a3)]],[P[_0x126ffa(0x2ce)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x4da76f=(_0x5d6d6d=this[_0x126ffa(0x4fe)])==null?void 0x0:_0x5d6d6d[_0x126ffa(0x3a7)])!=null?_0x4da76f:exports['CollaborationSocketService']}],[P['IHTTPImplementation'],{'useClass':P['XHRHTTPImplementation']}],[_[_0x126ffa(0x4b2)],{'useClass':exports[_0x126ffa(0x3cc)]}],[a['IAuthzIoService'],{'useClass':exports[_0x126ffa(0x40b)]}],[L[_0x126ffa(0x49e)],{'useClass':exports['ImageIoService']}],[exports[_0x126ffa(0x4ee)]],[exports[_0x126ffa(0x4d5)]],[exports[_0x126ffa(0x1ce)]],[Ie],[ie]];(_0x4d6134=this[_0x126ffa(0x4fe)])!=null&&_0x4d6134['enableSingleActiveInstanceLock']&&_0x3ab063['push']([be,{'useClass':ys}]),_0x3ab063=a[_0x126ffa(0x36c)](_0x3ab063,(_0x4d4334=this[_0x126ffa(0x4fe)])==null?void 0x0:_0x4d4334['override']),_0x3ab063[_0x126ffa(0x278)](_0x5511a8=>this[_0x126ffa(0x3dd)][_0x126ffa(0x18a)](_0x5511a8)),this[_0x126ffa(0x533)]();}['_registerRenderDependencies'](){const _0x326a3f=_0x945337;this[_0x326a3f(0x50a)](this[_0x326a3f(0x277)]['registerRenderModule'](a[_0x326a3f(0x3b1)]['UNIVER_DOC'],[xe])),this[_0x326a3f(0x50a)](this[_0x326a3f(0x277)][_0x326a3f(0x297)](a[_0x326a3f(0x3b1)][_0x326a3f(0x53c)],[ke]));}['_initModules'](){const _0x1472d3=_0x945337;var _0xa8d765,_0x5b4b0f;this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](P[_0x1472d3(0x22e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':P[_0x1472d3(0x336)]({'maxParallel':0x6})}),this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](Ce),(_0xa8d765=this[_0x1472d3(0x4fe)])!=null&&_0xa8d765[_0x1472d3(0x34a)]||this['_injector'][_0x1472d3(0x3eb)](exports['LocalCacheService'])[_0x1472d3(0x19e)](),(_0x5b4b0f=this['_config'])!=null&&_0x5b4b0f[_0x1472d3(0x28b)]&&this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](pe),this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](exports[_0x1472d3(0x4ee)]),this[_0x1472d3(0x3dd)][_0x1472d3(0x384)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](exports[_0x1472d3(0x1ce)]);}},Tn(exports['UniverCollaborationClientPlugin'],_0x945337(0x24c),Rn),exports['UniverCollaborationClientPlugin']=bn([a[_0x945337(0x292)](_[_0x945337(0x2a8)]),ve(0x1,a[_0x945337(0x48c)]),ve(0x2,R[_0x945337(0x2c4)]),ve(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),ve(0x4,a[_0x945337(0x1f7)])],exports[_0x945337(0x300)]),exports[_0x945337(0x547)]=Mt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=gt,exports[_0x945337(0x3cf)]=ut,exports[_0x945337(0x2c0)]=y,exports[_0x945337(0x3f1)]=wt,exports[_0x945337(0x4f7)]=Ge,exports['HEARTBEAT_INTERVAL_KEY']=dt,exports[_0x945337(0x1c8)]=Ve,exports['ICollaborationSocketService']=Fe,exports[_0x945337(0x527)]=ze,exports[_0x945337(0x451)]=ft,exports['LOGIN_URL_KEY']=mt,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=vt,exports[_0x945337(0x3df)]=Yt,exports[_0x945337(0x54e)]=ht,exports[_0x945337(0x438)]=_t,exports['SessionStatus']=$,exports['SheetCollabCursorShape']=Ot,exports[_0x945337(0x3ab)]=Nt,exports[_0x945337(0x368)]=Ct,exports[_0x945337(0x39b)]=Et;