@univerjs-pro/collaboration-client 0.2.8 → 0.2.10

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 _0x2cc1b3=_0x4b8d;(function(_0xf11e04,_0x12dd9f){const _0x2a6521=_0x4b8d,_0x672b45=_0xf11e04();while(!![]){try{const _0x31b207=parseInt(_0x2a6521(0x177))/0x1*(-parseInt(_0x2a6521(0x15b))/0x2)+parseInt(_0x2a6521(0x1e9))/0x3+parseInt(_0x2a6521(0x191))/0x4*(parseInt(_0x2a6521(0x494))/0x5)+parseInt(_0x2a6521(0x391))/0x6+-parseInt(_0x2a6521(0x469))/0x7*(parseInt(_0x2a6521(0x39c))/0x8)+parseInt(_0x2a6521(0x45b))/0x9*(-parseInt(_0x2a6521(0x474))/0xa)+-parseInt(_0x2a6521(0x3b3))/0xb*(parseInt(_0x2a6521(0x519))/0xc);if(_0x31b207===_0x12dd9f)break;else _0x672b45['push'](_0x672b45['shift']());}catch(_0x5c05a6){_0x672b45['push'](_0x672b45['shift']());}}}(_0x1e54,0x527f8));var $t=Object['defineProperty'],xt=(_0x22392b,_0x1a83a8,_0x30f589)=>_0x1a83a8 in _0x22392b?$t(_0x22392b,_0x1a83a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30f589}):_0x22392b[_0x1a83a8]=_0x30f589,u=(_0x3d5314,_0x57cc39,_0x52d9bf)=>xt(_0x3d5314,typeof _0x57cc39!=_0x2cc1b3(0x2ea)?_0x57cc39+'':_0x57cc39,_0x52d9bf);Object[_0x2cc1b3(0x1b2)](exports,Symbol['toStringTag'],{'value':_0x2cc1b3(0x1c2)});const o=require('@univerjs/core'),p=require(_0x2cc1b3(0x163)),Q=require('@univerjs/design'),L=require(_0x2cc1b3(0x449)),_=require('@univerjs-pro/collaboration'),v=require(_0x2cc1b3(0x422)),C=require(_0x2cc1b3(0x4cc)),P=require(_0x2cc1b3(0x354)),U=require(_0x2cc1b3(0x511)),A=require(_0x2cc1b3(0x4ad)),b=require(_0x2cc1b3(0x396)),Ye=require(_0x2cc1b3(0x36f)),$e=require(_0x2cc1b3(0x147)),J=require(_0x2cc1b3(0x51b)),y=require(_0x2cc1b3(0x24c)),Ht=require('clsx'),kt=require('@univerjs/rpc'),ct=_0x2cc1b3(0x268),Bt=_0x2cc1b3(0x1dc),lt=_0x2cc1b3(0x273),ht='SEND_CHANGESET_TIMEOUT',Ft=0x7d0,_t=_0x2cc1b3(0x276),Vt=_0x2cc1b3(0x41c),ut=_0x2cc1b3(0x2cd),Wt=0x7530,xe='HEARTBEAT_TIMEOUT',dt=0x2710,Gt=_0x2cc1b3(0x299),Yt=0x4e20,Kt='RETRY_CONNECTING_MAX_COUNT',Xt=0x3,St='LOCAL_CACHE_INTERVAL',qt=0x3e8,vt=_0x2cc1b3(0x3de),zt=_0x2cc1b3(0x16d),mt='LOGIN_URL_KEY',Jt=_0x2cc1b3(0x439);var gt=(_0x4884e5=>(_0x4884e5[_0x4884e5[_0x2cc1b3(0x4d2)]=0x0]=_0x2cc1b3(0x4d2),_0x4884e5[_0x4884e5['OK']=0x1]='OK',_0x4884e5[_0x4884e5[_0x2cc1b3(0x48c)]=0x2]=_0x2cc1b3(0x48c),_0x4884e5[_0x4884e5[_0x2cc1b3(0x40e)]=0x3]='PERMISSION_DENIED',_0x4884e5[_0x4884e5['NOT_FOUND']=0x4]='NOT_FOUND',_0x4884e5[_0x4884e5[_0x2cc1b3(0x528)]=0x5]=_0x2cc1b3(0x528),_0x4884e5[_0x4884e5[_0x2cc1b3(0x481)]=0x6]=_0x2cc1b3(0x481),_0x4884e5[_0x4884e5['INVALID_ARGUMENT']=0x7]=_0x2cc1b3(0x50d),_0x4884e5[_0x4884e5[_0x2cc1b3(0x3ad)]=0x8]=_0x2cc1b3(0x3ad),_0x4884e5[_0x4884e5[_0x2cc1b3(0x188)]=0x9]='COMPLETION_FINISHED',_0x4884e5[_0x4884e5[_0x2cc1b3(0x218)]=0x1389]=_0x2cc1b3(0x218),_0x4884e5[_0x4884e5[_0x2cc1b3(0x1bd)]=0x1771]=_0x2cc1b3(0x1bd),_0x4884e5[_0x4884e5[_0x2cc1b3(0x306)]=0x1772]=_0x2cc1b3(0x306),_0x4884e5[_0x4884e5['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4884e5[_0x4884e5['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2cc1b3(0x498),_0x4884e5[_0x4884e5[_0x2cc1b3(0x3e2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4884e5[_0x4884e5[_0x2cc1b3(0x220)]=0x1b5c]=_0x2cc1b3(0x220),_0x4884e5[_0x4884e5[_0x2cc1b3(0x2ab)]=0x1f41]=_0x2cc1b3(0x2ab),_0x4884e5[_0x4884e5[_0x2cc1b3(0x4b6)]=0x2329]=_0x2cc1b3(0x4b6),_0x4884e5[_0x4884e5[_0x2cc1b3(0x21c)]=0x232a]=_0x2cc1b3(0x21c),_0x4884e5[_0x4884e5['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2cc1b3(0x407),_0x4884e5[_0x4884e5[_0x2cc1b3(0x24b)]=0x232c]=_0x2cc1b3(0x24b),_0x4884e5[_0x4884e5[_0x2cc1b3(0x315)]=0x232d]=_0x2cc1b3(0x315),_0x4884e5[_0x4884e5['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x2cc1b3(0x3ea),_0x4884e5[_0x4884e5[_0x2cc1b3(0x1e5)]=0x2712]=_0x2cc1b3(0x1e5),_0x4884e5[_0x4884e5[_0x2cc1b3(0x349)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4884e5[_0x4884e5['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x2cc1b3(0x2fd),_0x4884e5[_0x4884e5[_0x2cc1b3(0x19f)]=-0x1]=_0x2cc1b3(0x19f),_0x4884e5))(gt||{}),j=(_0xdb0c6c=>(_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x3a4)]=0x0]=_0x2cc1b3(0x3a4),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x40b)]=0x1]=_0x2cc1b3(0x40b),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x3a1)]=0x2]='UNIVER_SHEET',_0xdb0c6c[_0xdb0c6c['UNIVER_SLIDE']=0x3]=_0x2cc1b3(0x237),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x4e2)]=0x4]=_0x2cc1b3(0x4e2),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x19f)]=-0x1]=_0x2cc1b3(0x19f),_0xdb0c6c))(j||{}),T=(_0x468fc0=>(_0x468fc0[_0x468fc0[_0x2cc1b3(0x3d5)]=0x0]=_0x2cc1b3(0x3d5),_0x468fc0[_0x468fc0['HELLO']=0x1]=_0x2cc1b3(0x2a0),_0x468fc0[_0x468fc0[_0x2cc1b3(0x520)]=0x2]=_0x2cc1b3(0x520),_0x468fc0[_0x468fc0[_0x2cc1b3(0x222)]=0x3]=_0x2cc1b3(0x222),_0x468fc0[_0x468fc0[_0x2cc1b3(0x3b9)]=0x4]=_0x2cc1b3(0x3b9),_0x468fc0[_0x468fc0[_0x2cc1b3(0x398)]=0x5]='HEARTBEAT',_0x468fc0[_0x468fc0[_0x2cc1b3(0x397)]=0x6]='RECV',_0x468fc0[_0x468fc0[_0x2cc1b3(0x19f)]=-0x1]=_0x2cc1b3(0x19f),_0x468fc0))(T||{}),He=(_0x3a435d=>(_0x3a435d[_0x3a435d[_0x2cc1b3(0x257)]=0x0]=_0x2cc1b3(0x257),_0x3a435d[_0x3a435d['OK']=0x1]='OK',_0x3a435d[_0x3a435d[_0x2cc1b3(0x3cc)]=0x2]=_0x2cc1b3(0x3cc),_0x3a435d[_0x3a435d['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3a435d))(He||{}),Zt=Object['defineProperty'],Qt=Object[_0x2cc1b3(0x47b)],es=(_0x5657ed,_0x3cf5b9,_0x369a8d,_0x1d8a1f)=>{const _0x1474f2=_0x2cc1b3;for(var _0x1b92a5=_0x1d8a1f>0x1?void 0x0:_0x1d8a1f?Qt(_0x3cf5b9,_0x369a8d):_0x3cf5b9,_0x53aeb5=_0x5657ed[_0x1474f2(0x209)]-0x1,_0x3e521e;_0x53aeb5>=0x0;_0x53aeb5--)(_0x3e521e=_0x5657ed[_0x53aeb5])&&(_0x1b92a5=(_0x1d8a1f?_0x3e521e(_0x3cf5b9,_0x369a8d,_0x1b92a5):_0x3e521e(_0x1b92a5))||_0x1b92a5);return _0x1d8a1f&&_0x1b92a5&&Zt(_0x3cf5b9,_0x369a8d,_0x1b92a5),_0x1b92a5;},Ke=(_0x2f694e,_0x558a0b)=>(_0xfde03c,_0x417b9c)=>_0x558a0b(_0xfde03c,_0x417b9c,_0x2f694e);let Y=class extends o[_0x2cc1b3(0x460)]{constructor(_0x207867,_0x511c98){const _0x456d19=_0x2cc1b3;super(),u(this,_0x456d19(0x23f),new Map()),(this['_univerInstanceService']=_0x207867,this[_0x456d19(0x4c4)]=_0x511c98,this[_0x456d19(0x4be)](o[_0x456d19(0x168)](v[_0x456d19(0x3e0)](this['_univerInstanceService'][_0x456d19(0x36a)](o[_0x456d19(0x271)]['UNIVER_SHEET'])[_0x456d19(0x478)](C['map'](_0x5ade47=>_0x5ade47[_0x456d19(0x15a)]())),this['_univerInstanceService'][_0x456d19(0x36a)](o[_0x456d19(0x271)][_0x456d19(0x40b)])[_0x456d19(0x478)](C['map'](_0x3e05d8=>_0x3e05d8[_0x456d19(0x15a)]())),this[_0x456d19(0x46f)]['getTypeOfUnitDisposed$'](o[_0x456d19(0x271)][_0x456d19(0x237)])[_0x456d19(0x478)](C['map'](_0x3015e1=>_0x3015e1[_0x456d19(0x15a)]())))['subscribe'](_0x5c6837=>this[_0x456d19(0x1cb)](_0x5c6837)))));}[_0x2cc1b3(0x50b)](_0x486406){const _0x386642=_0x2cc1b3;this[_0x386642(0x4c4)][_0x386642(0x50b)](_0x486406);}[_0x2cc1b3(0x215)](){const _0x43346c=_0x2cc1b3;return this[_0x43346c(0x4c4)][_0x43346c(0x215)]();}[_0x2cc1b3(0x180)](_0x591f8b,_0x58de24){const _0x2140db=_0x2cc1b3;let _0x2fb4f3=this['_roomMembers'][_0x2140db(0x3ba)](_0x591f8b);_0x2fb4f3||(_0x2fb4f3=new ts(),this[_0x2140db(0x23f)][_0x2140db(0x1b8)](_0x591f8b,_0x2fb4f3)),_0x2fb4f3['updateMember'](_0x58de24);}[_0x2cc1b3(0x192)](_0x5a9bf3,_0x46f7c1){const _0x3e2a5e=_0x2cc1b3,_0x24278b=this[_0x3e2a5e(0x23f)][_0x3e2a5e(0x3ba)](_0x5a9bf3);_0x24278b&&_0x24278b['removeMember'](_0x46f7c1);}[_0x2cc1b3(0x381)](_0x569047){const _0x4d0972=_0x2cc1b3;return this['_roomMembers'][_0x4d0972(0x3ba)](_0x569047);}[_0x2cc1b3(0x523)](_0x519e4c,_0x47052b){const _0x2fb369=_0x2cc1b3,_0x333323=this[_0x2fb369(0x23f)]['get'](_0x519e4c);if(_0x333323)return _0x333323[_0x2fb369(0x523)](_0x47052b);}[_0x2cc1b3(0x1cb)](_0x507e2f){const _0x32e4cc=_0x2cc1b3,_0x380de4=this[_0x32e4cc(0x23f)]['get'](_0x507e2f);_0x380de4&&(_0x380de4[_0x32e4cc(0x22c)](),this[_0x32e4cc(0x23f)][_0x32e4cc(0x386)](_0x507e2f));}['dispose'](){const _0x3b63a8=_0x2cc1b3;this[_0x3b63a8(0x23f)][_0x3b63a8(0x34c)](_0x4c0ddf=>_0x4c0ddf[_0x3b63a8(0x22c)]()),this[_0x3b63a8(0x23f)]['clear']();}};Y=es([Ke(0x0,o[_0x2cc1b3(0x298)]),Ke(0x1,o['Inject'](o[_0x2cc1b3(0x318)]))],Y);class ts extends o[_0x2cc1b3(0x460)]{constructor(){const _0x41b403=_0x2cc1b3;super(...arguments),u(this,_0x41b403(0x224),new Map());}[_0x2cc1b3(0x22c)](){const _0x54ce55=_0x2cc1b3;this[_0x54ce55(0x224)][_0x54ce55(0x1f8)]();}['updateMember'](_0x300952){const _0x44c3c1=_0x2cc1b3;this['_members'][_0x44c3c1(0x1b8)](_0x300952['memberID'],_0x300952);}[_0x2cc1b3(0x192)](_0x19df1d){const _0xf337ab=_0x2cc1b3;this[_0xf337ab(0x224)][_0xf337ab(0x386)](_0x19df1d);}[_0x2cc1b3(0x523)](_0x4995ec){const _0x402364=_0x2cc1b3;return this[_0x402364(0x224)][_0x402364(0x3ba)](_0x4995ec);}}function ft(_0x240005){const _0x37e797=_0x2cc1b3;var _0x1a997b,_0x596bba,_0x72eb8d,_0x150636;const _0x172811=_0x240005[_0x37e797(0x1c0)],_0x3773b4=JSON[_0x37e797(0x207)](_0x172811);switch(_0x3773b4[_0x37e797(0x3fd)]){case T[_0x37e797(0x398)]:case T[_0x37e797(0x2a0)]:{const _0x313730=_0x3773b4['infoRsp'];return{..._0x3773b4,'data':_0x313730,'cmd':_0x3773b4[_0x37e797(0x3fd)]};}case T[_0x37e797(0x520)]:{const _0x2ab07e=_0x3773b4[_0x37e797(0x4fb)];return{..._0x3773b4,'data':_0x2ab07e,'cmd':_0x3773b4[_0x37e797(0x3fd)]};}case T[_0x37e797(0x397)]:{const _0x14f2b1=_0x3773b4[_0x37e797(0x4db)];switch(_0x14f2b1[_0x37e797(0x266)]){case _[_0x37e797(0x173)][_0x37e797(0x172)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x1a997b=_0x14f2b1[_0x37e797(0x325)])==null?void 0x0:_0x1a997b['cs']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)]['CHANGESET_ACK']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x596bba=_0x14f2b1[_0x37e797(0x4dd)])==null?void 0x0:_0x596bba['cs']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x353)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x72eb8d=_0x14f2b1['newCsEvent'])==null?void 0x0:_0x72eb8d['cs']},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)]['CHANGESET_REJ']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x150636=_0x14f2b1[_0x37e797(0x517)])==null?void 0x0:_0x150636['cs']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x49a)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x2ce)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)]['USERS_ENTER']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x518)]},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)][_0x37e797(0x21e)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1['leaveEvent']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)]['LIVESHARE_NEW_HOST']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x3f1)]},'cmd':_0x3773b4['cmd']};case _['CollaborationEvent'][_0x37e797(0x17d)]:case _['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x524)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x2f1)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x3f1)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x3b4)]:return{..._0x3773b4,'data':_0x14f2b1,'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)]['COMMENT_UPDATE']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x2b0)]},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)]['UPDATE_PERMISSION_OBJ']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x372)]},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)][_0x37e797(0x3c3)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x1af)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};default:return _0x3773b4;}}default:return _0x3773b4;}}function It(_0x326216){const _0x1eafe3=_0x2cc1b3;switch(_0x326216['cmd']){case T[_0x1eafe3(0x398)]:case T[_0x1eafe3(0x2a0)]:return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216['routeKey']});case T[_0x1eafe3(0x3b9)]:{let _0x57eaa4;switch(_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x266)]){case _[_0x1eafe3(0x173)][_0x1eafe3(0x49a)]:{_0x57eaa4={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x21e)]:{_0x57eaa4={'eventID':_['CollaborationEvent'][_0x1eafe3(0x21e)],'leaveEvent':_0x326216['data'][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x3b2)]:{_0x57eaa4={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)]['LIVESHARE_NEW_HOST']:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)][_0x1eafe3(0x3a9)],'liveShareNewHost':_0x326216['data'][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x357)]:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)][_0x1eafe3(0x2f1)],'liveShareTerminate':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x1d0)]:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)][_0x1eafe3(0x1d0)],'liveShareRequestHost':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)]['LIVESHARE_FETCH_OPERATIONS']:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x57eaa4={'eventID':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x266)]};}return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216[_0x1eafe3(0x473)],'collaMsg':_0x57eaa4});}case T[_0x1eafe3(0x520)]:return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216[_0x1eafe3(0x473)],'joinReq':_0x326216[_0x1eafe3(0x1c0)]});case T[_0x1eafe3(0x222)]:return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216[_0x1eafe3(0x473)],'leaveReq':_0x326216[_0x1eafe3(0x1c0)]});default:throw new Error(_0x1eafe3(0x2b6));}}var ss=Object['defineProperty'],is=Object[_0x2cc1b3(0x47b)],ns=(_0x301fa9,_0x56bfcc,_0x49dd21,_0x26d7b0)=>{for(var _0x3e1f5a=_0x26d7b0>0x1?void 0x0:_0x26d7b0?is(_0x56bfcc,_0x49dd21):_0x56bfcc,_0x1efde8=_0x301fa9['length']-0x1,_0x1632d4;_0x1efde8>=0x0;_0x1efde8--)(_0x1632d4=_0x301fa9[_0x1efde8])&&(_0x3e1f5a=(_0x26d7b0?_0x1632d4(_0x56bfcc,_0x49dd21,_0x3e1f5a):_0x1632d4(_0x3e1f5a))||_0x3e1f5a);return _0x26d7b0&&_0x3e1f5a&&ss(_0x56bfcc,_0x49dd21,_0x3e1f5a),_0x3e1f5a;},se=(_0x100e47,_0x4397d5)=>(_0x9f3485,_0x57eb9e)=>_0x4397d5(_0x9f3485,_0x57eb9e,_0x100e47);const ke=o[_0x2cc1b3(0x364)](_0x2cc1b3(0x21a));function rs(_0x890cf4,_0x22ffaf,_0x4c88ff){const _0x523ccf=_0x2cc1b3;return _0x890cf4+'/'+_0x22ffaf+_0x523ccf(0x1c8)+_0x4c88ff+_0x523ccf(0x1b0);}exports[_0x2cc1b3(0x3e6)]=class{constructor(_0x1e15bf,_0x93377f,_0x421543,_0x12a30a,_0x56a506){const _0x44fa9b=_0x2cc1b3;this['_http']=_0x1e15bf,this[_0x44fa9b(0x1d5)]=_0x93377f,this[_0x44fa9b(0x3f8)]=_0x421543,this[_0x44fa9b(0x402)]=_0x12a30a,this[_0x44fa9b(0x2e9)]=_0x56a506;}[_0x2cc1b3(0x3cf)](_0x1b8d4f){const _0x5cc762=_0x2cc1b3,_0x398817=this[_0x5cc762(0x1d5)][_0x5cc762(0x3cf)](_0x1b8d4f);if(!_0x398817)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1c615d=new o[(_0x5cc762(0x289))](),_0x1ddbb1=new v[(_0x5cc762(0x3fb))]();_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](_0x398817[_0x5cc762(0x32a)][_0x5cc762(0x4c8)](_0x2f5ea2=>_0x1ddbb1[_0x5cc762(0x1a2)](_0x2f5ea2)))),_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](()=>_0x1ddbb1['complete']()));const _0x4eb891=new v[(_0x5cc762(0x3fb))]();_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](_0x398817[_0x5cc762(0x471)][_0x5cc762(0x4c8)](_0x1411f4=>_0x4eb891['next'](_0x1411f4)))),_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](()=>_0x4eb891[_0x5cc762(0x491)]()));const _0x379092=new v[(_0x5cc762(0x3fb))]();_0x1c615d['add'](o[_0x5cc762(0x168)](_0x398817['message$'][_0x5cc762(0x4c8)](_0x37ab1e=>{const _0x134bc0=_0x5cc762,_0x13e677=ft(_0x37ab1e);_0x379092[_0x134bc0(0x1a2)](_0x13e677);}))),_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](()=>_0x379092[_0x5cc762(0x491)]()));const _0x547e9e=()=>{const _0x1a0bca=_0x5cc762;_0x4eb891[_0x1a0bca(0x1a2)](new Event('connection\x20error')),_0x1ddbb1[_0x1a0bca(0x1a2)](new CloseEvent(_0x1a0bca(0x2be))),_0xa43a24[_0x1a0bca(0x2c5)]();},_0xa43a24={'memberID':'','close$':_0x1ddbb1[_0x5cc762(0x368)](),'error$':_0x4eb891[_0x5cc762(0x368)](),'open$':_0x398817[_0x5cc762(0x4d1)],'message$':_0x379092['asObservable'](),'send':_0xe43ed5=>{const _0x2da1c8=_0x5cc762;if(_0xe43ed5[_0x2da1c8(0x3fd)]===T['INGEST']){if(_0xe43ed5[_0x2da1c8(0x1c0)][_0x2da1c8(0x266)]===_[_0x2da1c8(0x173)][_0x2da1c8(0x350)]){this['_submitChangeset'](_0xa43a24,_0xe43ed5[_0x2da1c8(0x1c0)])[_0x2da1c8(0x367)](_0x279dd3=>{const _0x500d78=_0x2da1c8;this[_0x500d78(0x402)][_0x500d78(0x307)](_0x279dd3),_0x547e9e();});return;}if(_0xe43ed5[_0x2da1c8(0x1c0)][_0x2da1c8(0x266)]===_['CollaborationEvent'][_0x2da1c8(0x4ed)]){const _0x3e5198=_0xe43ed5[_0x2da1c8(0x1c0)];this['_fetchMissChangesets'](_0x3e5198)['then'](_0x28f7ed=>{const _0x15db61=_0x2da1c8;_0x379092['next']({'cmd':T[_0x15db61(0x397)],'code':He['OK'],'routeKey':_0x3e5198[_0x15db61(0x1c0)]['unitID'],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x15db61(0x2c4)],'data':{'changesets':_0x28f7ed}}});})['catch'](_0x387548=>{const _0x52a622=_0x2da1c8;this['_logService'][_0x52a622(0x307)](_0x387548),_0x547e9e();});return;}}_0x398817['send'](It(_0xe43ed5));},'close':()=>{const _0x4424b0=_0x5cc762;_0x398817['close'](),_0x1c615d[_0x4424b0(0x22c)]();}};return _0xa43a24;}async[_0x2cc1b3(0x44b)](_0x559555,_0x5df50d){const _0x614f2d=_0x2cc1b3;var _0xb4c64f;const {unitType:_0x53c58d,unitID:_0xa6ec12,changeset:_0x446f17}=_0x5df50d[_0x614f2d(0x1c0)],_0x5192c0={'unitID':_0xa6ec12,'memberID':_0x559555['memberID'],'type':_0x53c58d,'changeset':_['parseChangesetToProtocol'](_0x446f17)},_0x2ceb2c=rs((_0xb4c64f=this[_0x614f2d(0x3f8)][_0x614f2d(0x42f)](vt))!=null?_0xb4c64f:zt,_0x53c58d,_0xa6ec12);try{await this[_0x614f2d(0x4c3)][_0x614f2d(0x152)](_0x2ceb2c,{'body':_0x5192c0});}catch(_0x1cef09){throw this[_0x614f2d(0x402)]['error'](_0x614f2d(0x1d6),'submit\x20changeset\x20error!'),_0x1cef09;}}async[_0x2cc1b3(0x27f)](_0x3fb441){const _0x512b18=_0x2cc1b3,{unitID:_0x5a7fcc,from:_0x3ef462,to:_0x189d2e,unitType:_0x378748}=_0x3fb441['data'];return(await this[_0x512b18(0x2e9)][_0x512b18(0x259)]({'metadata':void 0x0},{'unitID':_0x5a7fcc,'type':_0x378748,'from':_0x3ef462,'to':_0x189d2e}))[_0x512b18(0x37d)];}},exports[_0x2cc1b3(0x3e6)]=ns([se(0x0,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1da)])),se(0x1,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1b3)])),se(0x2,o[_0x2cc1b3(0x149)]),se(0x3,o[_0x2cc1b3(0x4ba)]),se(0x4,o[_0x2cc1b3(0x3ef)])],exports[_0x2cc1b3(0x3e6)]);class Be{constructor(){const _0x2651e8=_0x2cc1b3;u(this,'_commentUpdate$',new v[(_0x2651e8(0x3fb))]()),u(this,'commentUpdate$',this['_commentUpdate$'][_0x2651e8(0x368)]());}[_0x2cc1b3(0x2e5)](_0x35cbe3){const _0x5638e1=_0x2cc1b3;this[_0x5638e1(0x251)][_0x5638e1(0x1a2)](_0x35cbe3);}}var os=Object[_0x2cc1b3(0x1b2)],as=Object[_0x2cc1b3(0x47b)],pt=(_0x166a5c,_0x1ca559,_0x4c3d9e,_0x24475c)=>{const _0x47d712=_0x2cc1b3;for(var _0x38938a=_0x24475c>0x1?void 0x0:_0x24475c?as(_0x1ca559,_0x4c3d9e):_0x1ca559,_0x24b8bc=_0x166a5c[_0x47d712(0x209)]-0x1,_0x839a8f;_0x24b8bc>=0x0;_0x24b8bc--)(_0x839a8f=_0x166a5c[_0x24b8bc])&&(_0x38938a=(_0x24475c?_0x839a8f(_0x1ca559,_0x4c3d9e,_0x38938a):_0x839a8f(_0x38938a))||_0x38938a);return _0x24475c&&_0x38938a&&os(_0x1ca559,_0x4c3d9e,_0x38938a),_0x38938a;},w=(_0x4eb29b,_0x530862)=>(_0x40d5c0,_0x7fad33)=>_0x530862(_0x40d5c0,_0x7fad33,_0x4eb29b),G=(_0x2e5851=>(_0x2e5851[_0x2e5851['IDLE']=0x0]=_0x2cc1b3(0x1ae),_0x2e5851[_0x2e5851[_0x2cc1b3(0x336)]=0x1]=_0x2cc1b3(0x336),_0x2e5851[_0x2e5851['OFFLINE']=0x2]='OFFLINE',_0x2e5851[_0x2e5851[_0x2cc1b3(0x302)]=0x3]='ONLINE',_0x2e5851))(G||{});exports['CollaborationSession']=class extends o[_0x2cc1b3(0x516)]{constructor(_0x113cd5,_0x1ba47a,_0x8a5e34,_0x331d98,_0x52b026,_0x4b2175,_0x138178,_0x591eb3,_0x156c8f){const _0x3e3ef3=_0x2cc1b3;super(),u(this,_0x3e3ef3(0x22d),new v[(_0x3e3ef3(0x445))](0x0)),u(this,_0x3e3ef3(0x380),this['_sessionStatus$']['asObservable']()),u(this,_0x3e3ef3(0x1b1),new v[(_0x3e3ef3(0x3fb))]()),u(this,_0x3e3ef3(0x4cf),this['_event$'][_0x3e3ef3(0x368)]()),u(this,'_socket'),u(this,'_socketMessageSubscription'),u(this,'_collaborationTimeoutTimer'),(this[_0x3e3ef3(0x226)]=_0x113cd5,this['_logService']=_0x8a5e34,this[_0x3e3ef3(0x37b)]=_0x331d98,this[_0x3e3ef3(0x475)]=_0x52b026,this[_0x3e3ef3(0x3f8)]=_0x4b2175,this[_0x3e3ef3(0x33c)]=_0x138178,this[_0x3e3ef3(0x3ab)]=_0x591eb3,this[_0x3e3ef3(0x3ca)]=_0x156c8f,_0x1ba47a[_0x3e3ef3(0x478)](C[_0x3e3ef3(0x1ef)](this[_0x3e3ef3(0x23e)]))[_0x3e3ef3(0x4c8)](_0x41564a=>{const _0x43311c=_0x3e3ef3;var _0x5211da;typeof _0x41564a>'u'||(this[_0x43311c(0x455)]=_0x41564a,_0x41564a?(this[_0x43311c(0x3b6)](_0x41564a),this[_0x43311c(0x167)]=this['_socket'][_0x43311c(0x1fc)][_0x43311c(0x4c8)](_0x2f0d12=>{const _0x391b8a=_0x43311c;_0x2f0d12['routeKey']===this[_0x391b8a(0x226)]&&this[_0x391b8a(0x26f)](_0x2f0d12);})):(this[_0x43311c(0x22d)][_0x43311c(0x1a2)](0x2),(_0x5211da=this[_0x43311c(0x167)])==null||_0x5211da[_0x43311c(0x265)](),this[_0x43311c(0x167)]=null));}),this[_0x3e3ef3(0x4be)](this[_0x3e3ef3(0x37b)][_0x3e3ef3(0x3be)](()=>{const _0x4a69f5=_0x3e3ef3;var _0x44c355;(_0x44c355=this[_0x4a69f5(0x455)])==null||_0x44c355['send']({'cmd':T['LEAVE'],'data':{'roomID':this[_0x4a69f5(0x226)]}});})));}get['sessionStatus'](){const _0x53fc7f=_0x2cc1b3;return this[_0x53fc7f(0x22d)][_0x53fc7f(0x14c)]();}[_0x2cc1b3(0x3a8)](){const _0x51679a=_0x2cc1b3;var _0x7d4e4d,_0x3b2b81;return(_0x3b2b81=(_0x7d4e4d=this[_0x51679a(0x455)])==null?void 0x0:_0x7d4e4d[_0x51679a(0x2fe)])!=null?_0x3b2b81:null;}[_0x2cc1b3(0x22c)](){const _0xe12e81=_0x2cc1b3;super[_0xe12e81(0x22c)](),this[_0xe12e81(0x23e)]['next'](),this['dispose$'][_0xe12e81(0x491)]();}['close'](){const _0x322bc4=_0x2cc1b3;var _0x12125f,_0xa9a594;(_0x12125f=this['_socket'])==null||_0x12125f['send']({'cmd':T[_0x322bc4(0x222)],'data':{'roomID':this['_unitID']}}),this[_0x322bc4(0x1b1)][_0x322bc4(0x491)](),this[_0x322bc4(0x22d)][_0x322bc4(0x491)](),(_0xa9a594=this['_socket'])==null||_0xa9a594[_0x322bc4(0x2c5)](),this[_0x322bc4(0x22c)]();}[_0x2cc1b3(0x26f)](_0x4f16eb){const _0x1b7742=_0x2cc1b3;_0x4f16eb['cmd']===T[_0x1b7742(0x520)]?this['_onJoinRoomEvent'](_0x4f16eb):_0x4f16eb['cmd']===T[_0x1b7742(0x397)]&&this['_onRecvEvent'](_0x4f16eb);}[_0x2cc1b3(0x3b6)](_0x3f56d1){const _0x43b688=_0x2cc1b3;this[_0x43b688(0x22d)][_0x43b688(0x1a2)](0x1),_0x3f56d1[_0x43b688(0x377)]({'cmd':T[_0x43b688(0x520)],'routeKey':this[_0x43b688(0x226)],'routeType':'','data':{'rooms':[{'roomID':this[_0x43b688(0x226)]}]}});}[_0x2cc1b3(0x42d)](_0x3c60ae){const _0x4b0125=_0x2cc1b3;var _0x234dbd;if(_0x3c60ae[_0x4b0125(0x2d0)]===He[_0x4b0125(0x3cc)]){this[_0x4b0125(0x475)][_0x4b0125(0x4f2)]({'type':Q[_0x4b0125(0x329)]['Warning'],'content':this[_0x4b0125(0x33c)]['t'](_0x4b0125(0x352))}),this[_0x4b0125(0x22d)]['next'](0x2);return;}this[_0x4b0125(0x22d)]['next'](0x3);const _0xb804a5=(_0x234dbd=_0x3c60ae[_0x4b0125(0x1c0)]['roomInfos'][this[_0x4b0125(0x226)]])==null?void 0x0:_0x234dbd[_0x4b0125(0x2ba)];_0xb804a5&&_0xb804a5['forEach'](_0x41f6f5=>this[_0x4b0125(0x3ab)][_0x4b0125(0x180)](this[_0x4b0125(0x226)],_0x41f6f5));}[_0x2cc1b3(0x3b0)](_0x5a591d){const _0x5af5b9=_0x2cc1b3;try{const _0x4ada76=_0x5a591d[_0x5af5b9(0x1c0)];switch(_0x4ada76[_0x5af5b9(0x266)]){case _['CollaborationEvent'][_0x5af5b9(0x3b2)]:this[_0x5af5b9(0x3c9)](_0x4ada76),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;case _[_0x5af5b9(0x173)][_0x5af5b9(0x21e)]:this[_0x5af5b9(0x4c6)](_0x4ada76),this['_event$']['next'](_0x4ada76);break;case _[_0x5af5b9(0x173)]['CHANGESET_ACK']:this[_0x5af5b9(0x4de)](),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;case _['CollaborationEvent'][_0x5af5b9(0x3b4)]:this[_0x5af5b9(0x402)][_0x5af5b9(0x307)](_0x5af5b9(0x375)+JSON[_0x5af5b9(0x3a5)](_0x4ada76)),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;case _[_0x5af5b9(0x173)]['COMMENT_UPDATE']:this[_0x5af5b9(0x3ca)][_0x5af5b9(0x2e5)](_0x4ada76[_0x5af5b9(0x1c0)]),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;default:this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);}}catch(_0x548785){this[_0x5af5b9(0x402)][_0x5af5b9(0x307)](_0x548785,_0x5a591d);}}[_0x2cc1b3(0x3c9)](_0x35daeb){const _0x373713=_0x2cc1b3;this[_0x373713(0x3ab)][_0x373713(0x180)](this[_0x373713(0x226)],_0x35daeb['data']);}[_0x2cc1b3(0x4c6)](_0x5ea91e){const _0x1138ff=_0x2cc1b3;this['_memberService'][_0x1138ff(0x192)](this['_unitID'],_0x5ea91e[_0x1138ff(0x1c0)][_0x1138ff(0x2fe)]);}async[_0x2cc1b3(0x377)](_0x1f6755,_0x52911f){const _0x3a53d3=_0x2cc1b3;if(this['sessionStatus']!==0x3||!this[_0x3a53d3(0x455)])throw new Error(_0x3a53d3(0x3c5));try{_0x1f6755[_0x3a53d3(0x266)]===_[_0x3a53d3(0x173)][_0x3a53d3(0x353)]&&this[_0x3a53d3(0x1f9)](),this[_0x3a53d3(0x455)][_0x3a53d3(0x377)]({'cmd':T['INGEST'],'routeKey':_0x52911f,'routeType':'','data':_0x1f6755});}catch(_0x1a25c6){this[_0x3a53d3(0x402)][_0x3a53d3(0x307)](_0x1a25c6);}}['_scheduleCollaborationTimeoutTimer'](){const _0x26701c=_0x2cc1b3;var _0x1d79f3;this[_0x26701c(0x4f0)]=window[_0x26701c(0x252)](()=>{const _0x41f2ef=_0x26701c;this['_collaborationTimeoutTimer']=null,this[_0x41f2ef(0x475)][_0x41f2ef(0x4f2)]({'type':Q[_0x41f2ef(0x329)]['Error'],'content':this[_0x41f2ef(0x33c)]['t']('session.collaboration-timeout')});},(_0x1d79f3=this['_configService'][_0x26701c(0x42f)](xe))!=null?_0x1d79f3:dt);}[_0x2cc1b3(0x4de)](){const _0x282e7b=_0x2cc1b3;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x282e7b(0x4f0)]),this['_collaborationTimeoutTimer']=null);}},exports[_0x2cc1b3(0x338)]=pt([w(0x2,o[_0x2cc1b3(0x4ba)]),w(0x3,L['IBeforeCloseService']),w(0x4,L[_0x2cc1b3(0x280)]),w(0x5,o[_0x2cc1b3(0x149)]),w(0x6,o['Inject'](o[_0x2cc1b3(0x2f6)])),w(0x7,o[_0x2cc1b3(0x333)](Y)),w(0x8,o[_0x2cc1b3(0x333)](Be))],exports[_0x2cc1b3(0x338)]),exports[_0x2cc1b3(0x14e)]=class extends o[_0x2cc1b3(0x460)]{constructor(_0x2c1ced,_0x1e585e,_0x3365a4,_0x2da1f7,_0x409127,_0x58d9d0){const _0x4a9730=_0x2cc1b3;super(),u(this,_0x4a9730(0x2bf),new v['BehaviorSubject'](void 0x0)),u(this,'_sessions',new Map()),u(this,_0x4a9730(0x40f),new v['BehaviorSubject'](0x0)),u(this,_0x4a9730(0x4ff),this[_0x4a9730(0x40f)][_0x4a9730(0x368)]()),u(this,_0x4a9730(0x272),!0x1),u(this,_0x4a9730(0x477)),u(this,_0x4a9730(0x1aa)),u(this,_0x4a9730(0x148)),u(this,_0x4a9730(0x2b7),0x0),(this[_0x4a9730(0x3fe)]=_0x2c1ced,this['_localeService']=_0x1e585e,this[_0x4a9730(0x475)]=_0x3365a4,this[_0x4a9730(0x402)]=_0x2da1f7,this[_0x4a9730(0x3f8)]=_0x409127,this[_0x4a9730(0x436)]=_0x58d9d0);}get[_0x2cc1b3(0x455)](){const _0x5ae67c=_0x2cc1b3;return this['_socket$'][_0x5ae67c(0x14c)]();}[_0x2cc1b3(0x22c)](){const _0x5ee98c=_0x2cc1b3;super[_0x5ee98c(0x22c)](),this[_0x5ee98c(0x156)][_0x5ee98c(0x34c)](_0x574984=>_0x574984[_0x5ee98c(0x22c)]()),this[_0x5ee98c(0x156)][_0x5ee98c(0x1f8)](),this[_0x5ee98c(0x40f)][_0x5ee98c(0x491)]();}async[_0x2cc1b3(0x33b)](_0xed9f8b){const _0x1f0516=_0x2cc1b3;if(this['_sessions']['has'](_0xed9f8b))return this[_0x1f0516(0x156)][_0x1f0516(0x3ba)](_0xed9f8b);this[_0x1f0516(0x4e8)]();const _0x3dc782=this[_0x1f0516(0x3fe)]['createInstance'](exports[_0x1f0516(0x338)],_0xed9f8b,this[_0x1f0516(0x2bf)][_0x1f0516(0x368)]());return this['_sessions'][_0x1f0516(0x1b8)](_0xed9f8b,_0x3dc782),_0x3dc782;}[_0x2cc1b3(0x410)](_0x3e713c){const _0x445b63=_0x2cc1b3;var _0x17348f;const _0x336943=this[_0x445b63(0x156)]['get'](_0x3e713c);_0x336943&&(this[_0x445b63(0x156)][_0x445b63(0x386)](_0x3e713c),_0x336943['close']()),this[_0x445b63(0x156)][_0x445b63(0x343)]||(_0x17348f=this['_socket'])==null||_0x17348f[_0x445b63(0x2c5)]();}[_0x2cc1b3(0x28b)](){const _0x47e17d=_0x2cc1b3;var _0x2e536c;const _0xb5fb00=(_0x2e536c=this['_configService'][_0x47e17d(0x42f)](_t))!=null?_0x2e536c:Vt;return this[_0x47e17d(0x436)]['createSocket'](_0xb5fb00);}['_tryEnsureSocket'](){const _0x1059d1=_0x2cc1b3;try{const _0x20454e=this[_0x1059d1(0x28b)]();if(_0x20454e){const _0x995f66=_0x20454e[_0x1059d1(0x377)];_0x20454e['send']=_0x395bac=>(this['_rescheduleHeartbeatEvent'](),_0x995f66[_0x1059d1(0x2af)](_0x20454e,[_0x395bac])),_0x20454e[_0x1059d1(0x1fc)][_0x1059d1(0x4c8)](_0x3f883f=>this[_0x1059d1(0x392)](_0x20454e,_0x3f883f)),_0x20454e[_0x1059d1(0x471)][_0x1059d1(0x478)](C[_0x1059d1(0x342)](0x1))['subscribe'](_0x49f7a0=>this[_0x1059d1(0x402)][_0x1059d1(0x307)](_0x1059d1(0x48d),_0x49f7a0)),_0x20454e[_0x1059d1(0x4d1)]['pipe'](C[_0x1059d1(0x342)](0x1))[_0x1059d1(0x4c8)](()=>{const _0x479638=_0x1059d1;this[_0x479638(0x503)](_0x20454e);}),_0x20454e['close$'][_0x1059d1(0x478)](C['take'](0x1))[_0x1059d1(0x4c8)](_0x4eed3b=>{const _0xf4192d=_0x1059d1;this[_0xf4192d(0x402)][_0xf4192d(0x1a1)](_0xf4192d(0x48b),_0xf4192d(0x484),_0x4eed3b),this[_0xf4192d(0x3e1)]();});}}catch(_0x46767e){this[_0x1059d1(0x402)]['error'](_0x46767e),this[_0x1059d1(0x3e1)]();}}[_0x2cc1b3(0x503)](_0x1e16d9){const _0x314b53=_0x2cc1b3;this[_0x314b53(0x402)][_0x314b53(0x1a1)](_0x314b53(0x48b),_0x314b53(0x4ef)),_0x1e16d9[_0x314b53(0x377)]({'cmd':T[_0x314b53(0x2a0)]}),this['_rescheduleHeartbeatEvent']();}[_0x2cc1b3(0x3e1)](){const _0x11542d=_0x2cc1b3;var _0x293079;this[_0x11542d(0x40f)][_0x11542d(0x1a2)](0x2),this[_0x11542d(0x2bf)][_0x11542d(0x1a2)](null),this[_0x11542d(0x184)](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x11542d(0x2b7)]<((_0x293079=this[_0x11542d(0x3f8)]['getConfig'](Kt))!=null?_0x293079:Xt)?(this[_0x11542d(0x35c)](this[_0x11542d(0x2b7)]),this[_0x11542d(0x2b7)]+=0x1):this[_0x11542d(0x475)]['show']({'type':Q[_0x11542d(0x329)]['Error'],'content':this[_0x11542d(0x33c)]['t'](_0x11542d(0x2aa))});}[_0x2cc1b3(0x35c)](_0xf9d896){const _0xdd0b3e=_0x2cc1b3;var _0x277365;const _0x562c7b=((_0x277365=this[_0xdd0b3e(0x3f8)]['getConfig'](Gt))!=null?_0x277365:Yt)*0x2**_0xf9d896;this[_0xdd0b3e(0x475)][_0xdd0b3e(0x4f2)]({'type':Q['MessageType'][_0xdd0b3e(0x3b1)],'content':this[_0xdd0b3e(0x33c)]['t'](_0xdd0b3e(0x17e))}),this[_0xdd0b3e(0x148)]=setTimeout(()=>{const _0x271f63=_0xdd0b3e;this[_0x271f63(0x4e8)](),clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null;},_0x562c7b);}['_rescheduleHeartbeatEvent'](){const _0xd62f8e=_0x2cc1b3;var _0x39b47f;this[_0xd62f8e(0x4a6)](),this[_0xd62f8e(0x477)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x39b47f=this['_configService']['getConfig'](ut))!=null?_0x39b47f:Wt);}[_0x2cc1b3(0x260)](){const _0x542f5c=_0x2cc1b3;this['_socket']['send']({'cmd':T[_0x542f5c(0x398)]}),this[_0x542f5c(0x46c)]();}[_0x2cc1b3(0x46c)](){const _0x56d070=_0x2cc1b3;var _0x5a0f66;this[_0x56d070(0x1aa)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x5a0f66=this[_0x56d070(0x3f8)]['getConfig'](xe))!=null?_0x5a0f66:dt);}[_0x2cc1b3(0x392)](_0x327605,_0x2eda02){const _0x3026f3=_0x2cc1b3,{cmd:_0x33da2a}=_0x2eda02;_0x33da2a===T[_0x3026f3(0x2a0)]&&!this['_socketReady']&&(_0x327605[_0x3026f3(0x2fe)]=_0x2eda02['data']['memberID'],this[_0x3026f3(0x2bf)][_0x3026f3(0x1a2)](_0x327605),this['_status$'][_0x3026f3(0x1a2)](0x3),this[_0x3026f3(0x272)]=!0x0),_0x33da2a===T[_0x3026f3(0x398)]&&this['_clearTimeoutTimer'](),this[_0x3026f3(0x27c)]();}['_clearHeartbeatTimer'](){const _0x2a15b6=_0x2cc1b3;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2a15b6(0x477)]),this[_0x2a15b6(0x477)]=null);}[_0x2cc1b3(0x184)](){const _0x2a49=_0x2cc1b3;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x2a49(0x1aa)]),this['_timeoutTimer']=null);}},exports[_0x2cc1b3(0x14e)]=pt([w(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),w(0x1,o[_0x2cc1b3(0x333)](o['LocaleService'])),w(0x2,L[_0x2cc1b3(0x280)]),w(0x3,o[_0x2cc1b3(0x4ba)]),w(0x4,o[_0x2cc1b3(0x149)]),w(0x5,ke)],exports[_0x2cc1b3(0x14e)]);var cs=Object[_0x2cc1b3(0x1b2)],ls=Object[_0x2cc1b3(0x47b)],hs=(_0x3a0986,_0x23b3f6,_0x3b4ac5,_0x3e0819)=>{const _0x41252d=_0x2cc1b3;for(var _0x23c93a=_0x3e0819>0x1?void 0x0:_0x3e0819?ls(_0x23b3f6,_0x3b4ac5):_0x23b3f6,_0x53b4f4=_0x3a0986[_0x41252d(0x209)]-0x1,_0x4b1e14;_0x53b4f4>=0x0;_0x53b4f4--)(_0x4b1e14=_0x3a0986[_0x53b4f4])&&(_0x23c93a=(_0x3e0819?_0x4b1e14(_0x23b3f6,_0x3b4ac5,_0x23c93a):_0x4b1e14(_0x23c93a))||_0x23c93a);return _0x3e0819&&_0x23c93a&&cs(_0x23b3f6,_0x3b4ac5,_0x23c93a),_0x23c93a;},ie=(_0x423c59,_0x565052)=>(_0x1e5ad9,_0x246046)=>_0x565052(_0x1e5ad9,_0x246046,_0x423c59);exports[_0x2cc1b3(0x15f)]=class extends o[_0x2cc1b3(0x460)]{constructor(_0x3d5531,_0x132145,_0x11decc,_0x322cc5,_0x136644){const _0x46a587=_0x2cc1b3;super(),u(this,_0x46a587(0x444),new Map()),u(this,'_saveTaskMap',new Map()),u(this,_0x46a587(0x28a),!0x1),(this[_0x46a587(0x3f8)]=_0x3d5531,this[_0x46a587(0x3c4)]=_0x132145,this[_0x46a587(0x37b)]=_0x11decc,this['_localeService']=_0x322cc5,this[_0x46a587(0x341)]=_0x136644,this[_0x46a587(0x183)]());}[_0x2cc1b3(0x36d)](){const _0x2da419=_0x2cc1b3;this[_0x2da419(0x28a)]=!0x0;}['enableLocalCache'](){const _0x5adad3=_0x2cc1b3;this[_0x5adad3(0x28a)]=!0x1;}[_0x2cc1b3(0x22c)](){const _0x1514ac=_0x2cc1b3;this[_0x1514ac(0x1f3)]()[_0x1514ac(0x360)](()=>super[_0x1514ac(0x22c)]());}async[_0x2cc1b3(0x4a7)](_0x635d31){const _0x28c6da=_0x2cc1b3;return this[_0x28c6da(0x28a)]?null:this[_0x28c6da(0x3c4)][_0x28c6da(0x243)](Xe(_0x635d31));}async[_0x2cc1b3(0x225)](_0x2ba752,_0x6992a){const _0xfdbe27=_0x2cc1b3;return!!this['_localStorageService'][_0xfdbe27(0x40a)](_0x2ba752,_0x6992a);}['updateOfflineData'](_0x2b2270,_0x123dea,_0x5cc3c6,_0x402ff4){const _0x325750=_0x2cc1b3,_0x16f701=this[_0x325750(0x341)][_0x325750(0x295)](_0x2b2270);this['_cachedData'][_0x325750(0x1b8)](_0x2b2270,{'unitID':_0x2b2270,'type':_0x123dea,'awaitingChangeset':_0x5cc3c6,'mutations':_0x402ff4,'rev':_0x16f701}),this['_saveTaskMap'][_0x325750(0x2ae)](_0x2b2270)||this['_scheduleSaving'](_0x2b2270);}[_0x2cc1b3(0x37e)](_0x520721){const _0x8d90d6=_0x2cc1b3,_0x55077e=this[_0x8d90d6(0x248)]();_0x55077e===0x0?this[_0x8d90d6(0x270)](_0x520721):this[_0x8d90d6(0x36e)][_0x8d90d6(0x1b8)](_0x520721,setTimeout(()=>this['_saveCache'](_0x520721),_0x55077e));}[_0x2cc1b3(0x248)](){const _0x4e18f9=_0x2cc1b3;var _0x50fcd2;return(_0x50fcd2=this[_0x4e18f9(0x3f8)]['getConfig'](St))!=null?_0x50fcd2:qt;}[_0x2cc1b3(0x270)](_0x1bc2b){const _0x36bd08=_0x2cc1b3,_0x27db6f=this[_0x36bd08(0x36e)]['get'](_0x1bc2b);return _0x27db6f!==void 0x0&&window[_0x36bd08(0x1ea)](_0x27db6f),this[_0x36bd08(0x3c4)][_0x36bd08(0x40a)](Xe(_0x1bc2b),this[_0x36bd08(0x444)][_0x36bd08(0x3ba)](_0x1bc2b))['then'](()=>this[_0x36bd08(0x36e)][_0x36bd08(0x386)](_0x1bc2b));}async[_0x2cc1b3(0x1f3)](){const _0x1d009d=_0x2cc1b3,_0x48a1f2=[];this[_0x1d009d(0x36e)][_0x1d009d(0x34c)]((_0x16db3f,_0x5337ac)=>{const _0x4be870=_0x1d009d;window[_0x4be870(0x1ea)](_0x16db3f),_0x48a1f2[_0x4be870(0x4bd)](this[_0x4be870(0x270)](_0x5337ac)[_0x4be870(0x360)](()=>{const _0x35660f=_0x4be870;this['_saveTaskMap'][_0x35660f(0x386)](_0x5337ac);}));}),await Promise[_0x1d009d(0x16a)](_0x48a1f2);}[_0x2cc1b3(0x183)](){const _0x22d836=_0x2cc1b3;this[_0x22d836(0x4be)](this[_0x22d836(0x37b)]['registerBeforeClose'](()=>{const _0x1e9907=_0x22d836;if(this[_0x1e9907(0x36e)][_0x1e9907(0x343)])return this[_0x1e9907(0x33c)]['t'](_0x1e9907(0x388));}));}},exports[_0x2cc1b3(0x15f)]=hs([ie(0x0,o['IConfigService']),ie(0x1,o['ILocalStorageService']),ie(0x2,L[_0x2cc1b3(0x1b6)]),ie(0x3,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)])),ie(0x4,o[_0x2cc1b3(0x333)](_['RevisionService']))],exports[_0x2cc1b3(0x15f)]);function Xe(_0x1bfcb9){return'unit-cache-'+_0x1bfcb9;}const pe=o[_0x2cc1b3(0x364)](_0x2cc1b3(0x500));var Ct=(_0x336e2b=>(_0x336e2b[_0x336e2b[_0x2cc1b3(0x2f0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x336e2b[_0x336e2b['OTHER_CLIENTS_EDITING']=0x1]=_0x2cc1b3(0x194),_0x336e2b))(Ct||{});const qe=0x7530,ze=_0x2cc1b3(0x164);class _s extends o[_0x2cc1b3(0x460)]{constructor(){const _0xc3832d=_0x2cc1b3;super(),u(this,_0xc3832d(0x1f7),o[_0xc3832d(0x492)]['generateRandomId']()),u(this,_0xc3832d(0x2ed),new Set()),u(this,_0xc3832d(0x311),new Map()),u(this,_0xc3832d(0x291),null),u(this,_0xc3832d(0x182),new Map()),u(this,'_unitStatus',new Map()),this[_0xc3832d(0x4e1)]();}['dispose'](){const _0x437716=_0x2cc1b3;super['dispose'](),this['_clearOtherTimers'][_0x437716(0x34c)]((_0x1e083d,_0xf26d8f)=>this['_removeClearOtherTimer'](_0xf26d8f)),this[_0x437716(0x291)]&&window[_0x437716(0x2d1)](this[_0x437716(0x291)]);}['getUnitStatus$'](_0x33983a){const _0x7f0b5e=_0x2cc1b3;return this[_0x7f0b5e(0x1f4)](_0x33983a)[_0x7f0b5e(0x478)](v[_0x7f0b5e(0x25f)]());}[_0x2cc1b3(0x1ab)](_0x292dcf){const _0x422cad=_0x2cc1b3;this['_selfUnitIDs'][_0x422cad(0x343)]===0x0&&this[_0x422cad(0x3af)](),this[_0x422cad(0x2ed)][_0x422cad(0x506)](_0x292dcf),this[_0x422cad(0x337)]({'type':0x0,'memberID':this[_0x422cad(0x1f7)],'unitIDs':[_0x292dcf],'isForwarded':!0x1});}[_0x2cc1b3(0x201)](_0x389e2c){const _0x2485c5=_0x2cc1b3;this[_0x2485c5(0x2ed)][_0x2485c5(0x386)](_0x389e2c),this[_0x2485c5(0x2ed)][_0x2485c5(0x343)]===0x0&&this[_0x2485c5(0x291)]&&window['clearInterval'](this[_0x2485c5(0x291)]);}['_init'](){const _0x39546b=_0x2cc1b3;this['disposeWithMe'](o[_0x39546b(0x168)](v[_0x39546b(0x37f)](window,'storage')['subscribe'](_0x526256=>{const _0x551d05=_0x39546b;if(_0x526256[_0x551d05(0x47d)]!==ze||!_0x526256[_0x551d05(0x310)])return;const _0x5cf6c0=JSON[_0x551d05(0x207)](_0x526256[_0x551d05(0x310)]);this[_0x551d05(0x441)](_0x5cf6c0);}))),window['addEventListener']('unload',()=>this[_0x39546b(0x337)]({'type':0x1,'memberID':this[_0x39546b(0x1f7)],'unitIDs':Array[_0x39546b(0x346)](this[_0x39546b(0x2ed)])}));}[_0x2cc1b3(0x441)](_0x43437e){const _0x1c436f=_0x2cc1b3;switch(_0x43437e[_0x1c436f(0x3e9)]){case 0x0:this[_0x1c436f(0x3e8)](_0x43437e);break;case 0x1:this['_handleLeaveEvent'](_0x43437e);break;case 0x2:this[_0x1c436f(0x293)](_0x43437e);break;}}[_0x2cc1b3(0x3e8)](_0x23b1be){const _0x4843b4=_0x2cc1b3,{unitIDs:_0x2da22b,memberID:_0x3019a9,isForwarded:_0xd566a6}=_0x23b1be;_0x2da22b[_0x4843b4(0x34c)](_0x256fb2=>{const _0x268ebd=_0x4843b4;if(!_0xd566a6&&this[_0x268ebd(0x311)][_0x268ebd(0x2ae)](_0x256fb2)&&this[_0x268ebd(0x1f4)](_0x256fb2)['next'](0x1),!this[_0x268ebd(0x311)][_0x268ebd(0x2ae)](_0x256fb2)||!this[_0x268ebd(0x311)][_0x268ebd(0x3ba)](_0x256fb2)[_0x268ebd(0x2ae)](_0x3019a9)){const _0x133ac4=this[_0x268ebd(0x311)][_0x268ebd(0x3ba)](_0x256fb2)||new Set();_0x133ac4[_0x268ebd(0x506)](_0x3019a9),this[_0x268ebd(0x311)][_0x268ebd(0x1b8)](_0x256fb2,_0x133ac4),this[_0x268ebd(0x4f9)](_0x3019a9);}}),_0xd566a6||this[_0x4843b4(0x337)]({'type':0x0,'memberID':this[_0x4843b4(0x1f7)],'unitIDs':[...this[_0x4843b4(0x2ed)]],'isForwarded':!0x0});}[_0x2cc1b3(0x4f9)](_0x19cf49){const _0x3d7dc0=_0x2cc1b3;this[_0x3d7dc0(0x453)](_0x19cf49);const _0x11a117=window[_0x3d7dc0(0x252)](()=>{const _0x33a489=_0x3d7dc0;this[_0x33a489(0x311)][_0x33a489(0x34c)](_0x1422c9=>{const _0x1b0764=_0x33a489;_0x1422c9[_0x1b0764(0x386)](_0x19cf49);});},qe*0x2);this[_0x3d7dc0(0x182)][_0x3d7dc0(0x1b8)](_0x19cf49,_0x11a117);}[_0x2cc1b3(0x453)](_0x5c9065){const _0x242580=_0x2cc1b3;if(this[_0x242580(0x182)][_0x242580(0x2ae)](_0x5c9065)){const _0x59bf32=this[_0x242580(0x182)][_0x242580(0x3ba)](_0x5c9065);_0x59bf32&&window[_0x242580(0x1ea)](_0x59bf32),this[_0x242580(0x182)][_0x242580(0x1b8)](_0x5c9065,null);}}['_handleLeaveEvent'](_0x238f21){const _0x48a377=_0x2cc1b3,{memberID:_0x524d31,unitIDs:_0xa1b79b}=_0x238f21;_0xa1b79b[_0x48a377(0x34c)](_0x1f6243=>{const _0x24efe9=_0x48a377;var _0x5e7648;const _0x4e30cc=this[_0x24efe9(0x311)]['get'](_0x1f6243);_0x4e30cc&&(_0x4e30cc['delete'](_0x524d31),(_0x5e7648=this[_0x24efe9(0x1f4)](_0x1f6243))==null||_0x5e7648[_0x24efe9(0x1a2)](_0x4e30cc[_0x24efe9(0x343)]===0x0?0x0:0x1));}),this[_0x48a377(0x453)](_0x524d31);}[_0x2cc1b3(0x293)](_0x3ca38d){const _0x481332=_0x2cc1b3;this[_0x481332(0x4f9)](_0x3ca38d[_0x481332(0x2fe)]);}[_0x2cc1b3(0x337)](_0x1ed038){const _0x3ac692=_0x2cc1b3;localStorage[_0x3ac692(0x40a)](ze,JSON['stringify'](_0x1ed038));}[_0x2cc1b3(0x3af)](){const _0x1a5165=_0x2cc1b3;this[_0x1a5165(0x291)]=window[_0x1a5165(0x41e)](()=>{const _0x204421=_0x1a5165;this[_0x204421(0x337)]({'type':0x2,'memberID':this['_id']});},qe);}[_0x2cc1b3(0x1f4)](_0x53d6bc){const _0x3c1561=_0x2cc1b3;return this['_unitStatus'][_0x3c1561(0x2ae)](_0x53d6bc)||this['_unitStatus'][_0x3c1561(0x1b8)](_0x53d6bc,new v[(_0x3c1561(0x445))](0x0)),this['_unitStatus'][_0x3c1561(0x3ba)](_0x53d6bc);}}var us=Object['defineProperty'],ds=Object[_0x2cc1b3(0x47b)],Ss=(_0x14e1d7,_0x32a771,_0x456b83,_0xda5d10)=>{for(var _0xd00f60=_0xda5d10>0x1?void 0x0:_0xda5d10?ds(_0x32a771,_0x456b83):_0x32a771,_0x356562=_0x14e1d7['length']-0x1,_0x5a5b02;_0x356562>=0x0;_0x356562--)(_0x5a5b02=_0x14e1d7[_0x356562])&&(_0xd00f60=(_0xda5d10?_0x5a5b02(_0x32a771,_0x456b83,_0xd00f60):_0x5a5b02(_0xd00f60))||_0xd00f60);return _0xda5d10&&_0xd00f60&&us(_0x32a771,_0x456b83,_0xd00f60),_0xd00f60;},Je=(_0x41c141,_0x2679cf)=>(_0x1aad9e,_0xe76af4)=>_0x2679cf(_0x1aad9e,_0xe76af4,_0x41c141);let ve=class{constructor(_0x3ecd12,_0x24c62d){const _0x15c0eb=_0x2cc1b3;this[_0x15c0eb(0x3fe)]=_0x3ecd12,this[_0x15c0eb(0x2ad)]=_0x24c62d;}[_0x2cc1b3(0x327)](_0x3de660){const _0x4b43a1=_0x2cc1b3;this[_0x4b43a1(0x4ac)](_0x3de660),this['_transformPreviousActiveRange'](_0x3de660);}[_0x2cc1b3(0x457)](_0x54cc83){const _0xc30c76=_0x2cc1b3,_0x34df20=this[_0xc30c76(0x3fe)]['get'](P['IMEInputManagerService']),{redoCache:_0x52a65c}=_0x34df20[_0xc30c76(0x3d3)]();if(_0x52a65c[_0xc30c76(0x209)]===0x0)return _0x54cc83;let _0x1c2c8a=o['Tools'][_0xc30c76(0x51f)](_0x54cc83['mutations'][0x0]);for(let _0x578cb6=0x0;_0x578cb6<_0x52a65c[_0xc30c76(0x209)];_0x578cb6++){const _0xbd45ae={'id':_0xc30c76(0x3da),'params':{..._0x52a65c[_0x578cb6]}},_0x5ef3cc=this[_0xc30c76(0x2ad)]['transformMutation'](_0x1c2c8a,_0xbd45ae,!0x1);if(_[_0xc30c76(0x24a)](_0x5ef3cc))throw _0x5ef3cc[_0xc30c76(0x307)];_0x1c2c8a=_0x5ef3cc[_0xc30c76(0x47e)];}return{...o['Tools']['deepClone'](_0x54cc83),'mutations':[_0x1c2c8a]};}['_transformUndoRedoStack'](_0x3b36cc){const _0x3f1b88=_0x2cc1b3,_0x267379=this[_0x3f1b88(0x3fe)]['get'](P[_0x3f1b88(0x2fc)]),{undoCache:_0x607129,redoCache:_0x30f3d5}=_0x267379[_0x3f1b88(0x3d3)]();if(_0x607129[_0x3f1b88(0x209)]===0x0||_0x30f3d5[_0x3f1b88(0x209)]===0x0)return;const _0x16f0cb=[],_0x2adc3e=[];let _0x239e4a=o[_0x3f1b88(0x492)][_0x3f1b88(0x51f)](_0x3b36cc[_0x3f1b88(0x1d1)][0x0]),_0x37fe6a=o['Tools'][_0x3f1b88(0x51f)](_0x3b36cc[_0x3f1b88(0x1d1)][0x0]);for(let _0x57ef7f=_0x607129[_0x3f1b88(0x209)]-0x1;_0x57ef7f>=0x0;_0x57ef7f--){const _0x380d0d={'id':_0x3f1b88(0x3da),'params':{..._0x607129[_0x57ef7f]}},_0x26e299={'id':_0x3f1b88(0x3da),'params':{..._0x30f3d5[_0x57ef7f]}},_0x76ea9d=this[_0x3f1b88(0x2ad)][_0x3f1b88(0x261)](_0x239e4a,_0x380d0d,!0x1),_0x1ca153=this['_transformService']['transformMutation'](_0x37fe6a,_0x26e299,!0x1);if(_[_0x3f1b88(0x24a)](_0x76ea9d))throw _0x76ea9d[_0x3f1b88(0x307)];if(_[_0x3f1b88(0x24a)](_0x1ca153))throw _0x1ca153['error'];_0x16f0cb[_0x3f1b88(0x199)](_0x76ea9d[_0x3f1b88(0x285)][_0x3f1b88(0x19e)]),_0x2adc3e['unshift'](_0x1ca153['m2Prime']['params']),_0x239e4a=_0x76ea9d[_0x3f1b88(0x47e)],_0x37fe6a=_0x1ca153['m1Prime'];}_0x267379['setUndoRedoMutationParamsCache']({'undoCache':_0x16f0cb,'redoCache':_0x2adc3e});}[_0x2cc1b3(0x31a)](_0xf0db61){const _0x12366b=_0x2cc1b3,_0x44db74=this[_0x12366b(0x3fe)][_0x12366b(0x3ba)](P['IMEInputManagerService']),_0x2ae492=_0x44db74[_0x12366b(0x213)]();if(_0x2ae492==null)return;const _0x214521=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf0db61[_0x12366b(0x3ee)],'actions':null,'textRanges':[_0x2ae492]}}],_0x2106e0=this[_0x12366b(0x2ad)][_0x12366b(0x525)](_0xf0db61,_0x214521);if(!_[_0x12366b(0x421)](_0x2106e0))throw _0x2106e0[_0x12366b(0x307)];const _0x3a3282=_0x2106e0['m2Prime'][0x0][_0x12366b(0x19e)]['textRanges'];Array[_0x12366b(0x1a8)](_0x3a3282)&&_0x3a3282[_0x12366b(0x209)]&&_0x44db74[_0x12366b(0x3b7)](_0x3a3282[0x0]);}};ve=Ss([Je(0x0,o[_0x2cc1b3(0x333)](o['Injector'])),Je(0x1,_[_0x2cc1b3(0x4ca)])],ve);var vs=Object[_0x2cc1b3(0x1b2)],ms=Object[_0x2cc1b3(0x47b)],gs=(_0xc9c5d2,_0x30ed81,_0x2ad67e,_0x4cc3dc)=>{const _0x469e92=_0x2cc1b3;for(var _0x5d48da=_0x4cc3dc>0x1?void 0x0:_0x4cc3dc?ms(_0x30ed81,_0x2ad67e):_0x30ed81,_0x2c4204=_0xc9c5d2[_0x469e92(0x209)]-0x1,_0x2d77dd;_0x2c4204>=0x0;_0x2c4204--)(_0x2d77dd=_0xc9c5d2[_0x2c4204])&&(_0x5d48da=(_0x4cc3dc?_0x2d77dd(_0x30ed81,_0x2ad67e,_0x5d48da):_0x2d77dd(_0x5d48da))||_0x5d48da);return _0x4cc3dc&&_0x5d48da&&vs(_0x30ed81,_0x2ad67e,_0x5d48da),_0x5d48da;},Ze=(_0x233f92,_0x240706)=>(_0xfd988d,_0x53603e)=>_0x240706(_0xfd988d,_0x53603e,_0x233f92);let me=class{constructor(_0x235629,_0x519b66){const _0x35ca9d=_0x2cc1b3;this[_0x35ca9d(0x3fe)]=_0x235629,this[_0x35ca9d(0x2ad)]=_0x519b66;}[_0x2cc1b3(0x2e8)](_0x416dc4){const _0x342e39=_0x2cc1b3;var _0x9a73ee;const _0x41441e=this['_injector'][_0x342e39(0x3ba)](P[_0x342e39(0x35b)]),_0x1bec2e=(_0x9a73ee=_0x41441e[_0x342e39(0x30f)]())!=null?_0x9a73ee:[],_0x781b38=_0x1bec2e==null?void 0x0:_0x1bec2e['map'](P[_0x342e39(0x19b)]);if(_0x781b38['length']===0x0)return;const _0x23838b=[{'id':_0x342e39(0x3da),'params':{'unitId':_0x416dc4[_0x342e39(0x3ee)],'actions':null,'textRanges':_0x781b38}}],_0x4046f6=this[_0x342e39(0x2ad)][_0x342e39(0x525)](_0x416dc4,_0x23838b);if(!_['isTransformMutationsWithChangesetSuccess'](_0x4046f6))throw _0x4046f6[_0x342e39(0x307)];const _0x5cb746=_0x4046f6[_0x342e39(0x285)][0x0][_0x342e39(0x19e)][_0x342e39(0x1bf)];Array[_0x342e39(0x1a8)](_0x5cb746)&&_0x5cb746['length']&&_0x41441e[_0x342e39(0x19a)](_0x5cb746,!0x1);}};me=gs([Ze(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),Ze(0x1,_['ITransformService'])],me);function Et(_0x3cf3a5){const _0xbee064=_0x2cc1b3;let _0x13039e='';for(const _0x4fc7e1 of _0x3cf3a5){const {startOffset:_0x337c3f,endOffset:_0x23c5ff,isActive:_0x297392}=_0x4fc7e1;_0x13039e[_0xbee064(0x209)]&&(_0x13039e+=','),_0x13039e+=_0x337c3f+':'+_0x23c5ff+':'+(_0x297392?'1':'0');}return _0x13039e;}function fs(_0x3d9d79){const _0x1ad505=_0x2cc1b3,_0x440423=_0x3d9d79['split'](','),_0x137f6d=[];for(const _0x63b174 of _0x440423){const [_0x1c17ed,_0x27b6d5,_0x150b6e]=_0x63b174[_0x1ad505(0x2ee)](':');_0x137f6d[_0x1ad505(0x4bd)]({'startOffset':Number(_0x1c17ed),'endOffset':Number(_0x27b6d5),'collapsed':_0x1c17ed===_0x27b6d5,'isActive':_0x150b6e==='1'});}return _0x137f6d[_0x1ad505(0x3eb)](_0x1936ad=>_0x1936ad[_0x1ad505(0x204)])||(_0x137f6d[0x0][_0x1ad505(0x204)]=!0x0),_0x137f6d;}class Fe extends o[_0x2cc1b3(0x516)]{constructor(){const _0x5b0ac8=_0x2cc1b3;super(...arguments),u(this,'_collabCursorState$',new v['BehaviorSubject'](null)),u(this,'collabCursorState$',this[_0x5b0ac8(0x18e)][_0x5b0ac8(0x368)]());}[_0x2cc1b3(0x2d6)](_0x4313be){const _0x1d1185=_0x2cc1b3,{unitID:_0x368289,memberID:_0x2c7c7c,textRanges:_0x3db626}=_0x4313be,_0x3f63ec=Et(_0x3db626),_0x4b87b2={'unitID':_0x368289,'memberID':_0x2c7c7c,'selection':_0x3f63ec};this['_collabCursorState$'][_0x1d1185(0x1a2)](_0x4b87b2);}}var Is=Object[_0x2cc1b3(0x1b2)],ps=Object[_0x2cc1b3(0x47b)],Cs=(_0x1f0cc2,_0x5b1599,_0x490b02,_0x4d59e0)=>{const _0x2caca8=_0x2cc1b3;for(var _0x202709=_0x4d59e0>0x1?void 0x0:_0x4d59e0?ps(_0x5b1599,_0x490b02):_0x5b1599,_0x5d0b50=_0x1f0cc2[_0x2caca8(0x209)]-0x1,_0x55c84c;_0x5d0b50>=0x0;_0x5d0b50--)(_0x55c84c=_0x1f0cc2[_0x5d0b50])&&(_0x202709=(_0x4d59e0?_0x55c84c(_0x5b1599,_0x490b02,_0x202709):_0x55c84c(_0x202709))||_0x202709);return _0x4d59e0&&_0x202709&&Is(_0x5b1599,_0x490b02,_0x202709),_0x202709;},Qe=(_0x318f08,_0x283a21)=>(_0x49d378,_0xf0dddd)=>_0x283a21(_0x49d378,_0xf0dddd,_0x318f08);function Es(_0x5d07e5){const _0x32d2ad=_0x2cc1b3,{unitID:_0x1a2520,mutations:_0x4946f9}=_0x5d07e5;return{'unitId':_0x1a2520,'subUnitId':_0x4946f9[0x0][_0x32d2ad(0x19e)]['subUnitId']};}let ge=class{constructor(_0x188e57,_0x47fc54){const _0x2c6376=_0x2cc1b3;this[_0x2c6376(0x3fe)]=_0x188e57,this['_transformService']=_0x47fc54;}[_0x2cc1b3(0x2e8)](_0xc9e6e3){const _0x3fd40c=_0x2cc1b3;var _0x247658,_0x205d47,_0x34bfe9;const _0x3b6d71=this[_0x3fd40c(0x3fe)][_0x3fd40c(0x3ba)](p[_0x3fd40c(0x154)]),{unitId:_0x527459,subUnitId:_0x35753d}=Es(_0xc9e6e3),_0x5a25c2=_0x3b6d71['getWorkbookSelections'](_0x527459)[_0x3fd40c(0x431)]();if(_0x5a25c2[_0x3fd40c(0x209)]===0x0||!_0x527459||!_0x35753d)return;const _0x7dc6b4=[{'id':p[_0x3fd40c(0x326)]['id'],'params':{'unitId':_0x527459,'subUnitId':_0x35753d,'selections':o['Tools'][_0x3fd40c(0x51f)](_0x5a25c2)}}],_0x169c7c=this['_transformService'][_0x3fd40c(0x525)](_0xc9e6e3,_0x7dc6b4);if(!_[_0x3fd40c(0x421)](_0x169c7c))throw _0x169c7c[_0x3fd40c(0x307)];const _0xf3b7b4=(_0x34bfe9=(_0x205d47=(_0x247658=_0x169c7c[_0x3fd40c(0x285)][0x0])==null?void 0x0:_0x247658[_0x3fd40c(0x19e)])==null?void 0x0:_0x205d47[_0x3fd40c(0x4a3)])!=null?_0x34bfe9:_0x5a25c2;Array[_0x3fd40c(0x1a8)](_0xf3b7b4)&&_0xf3b7b4[_0x3fd40c(0x209)]&&this[_0x3fd40c(0x3fe)][_0x3fd40c(0x3ba)](o[_0x3fd40c(0x1cf)])['executeCommand'](p[_0x3fd40c(0x326)]['id'],{'unitId':_0x527459,'subUnitId':_0x35753d,'selections':_0xf3b7b4});}};ge=Cs([Qe(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),Qe(0x1,_[_0x2cc1b3(0x4ca)])],ge);const bs=new Set([p['InsertSheetMutation']['id']]);function et(_0x19c067,_0x558a14,_0x50fdfa,_0x1c57e5,_0x3a642f){const _0x2c025b=_0x2cc1b3;var _0x397a31,_0x34ced6,_0x572643,_0x93c143;const _0x4c5447=[];for(const _0x2dfb16 of _0x19c067)if(bs[_0x2c025b(0x2ae)](_0x2dfb16['id'])){if(_0x4c5447[_0x2c025b(0x209)]>0x0)break;_0x4c5447[_0x2c025b(0x4bd)](_0x2dfb16);break;}else _0x4c5447[_0x2c025b(0x4bd)](_0x2dfb16);const _0x51b85c=(_0x34ced6=(_0x397a31=_0x3a642f[_0x2c025b(0x215)]())==null?void 0x0:_0x397a31[_0x2c025b(0x4dc)])!=null?_0x34ced6:_0x2c025b(0x2f5),_0x5d4f08=(_0x93c143=(_0x572643=_0x3a642f['getCurrentUser']())==null?void 0x0:_0x572643[_0x2c025b(0x2fe)])!=null?_0x93c143:'unknown';return{'changeset':{'unitID':_0x558a14,'type':_[_0x2c025b(0x50a)](_0x50fdfa[_0x2c025b(0x1e0)](_0x558a14)),'baseRev':_0x1c57e5[_0x2c025b(0x295)](_0x558a14),'revision':0x0,'userID':_0x51b85c,'memberID':_0x5d4f08,'mutations':_0x4c5447},'pendingMutations':_0x19c067[_0x2c025b(0x3f9)](_0x4c5447[_0x2c025b(0x209)])};}function Ts(_0x5e16a4,_0x19095a,_0x2b3266,_0x55642c,_0x45f3fb){const _0x21e38b=_0x2cc1b3;var _0x3d7f84,_0x2122b0,_0x20edf1,_0x3b93b7;const _0x33fc5e=[_0x5e16a4[_0x21e38b(0x497)]((_0x17d359,_0x1fd6f6)=>{const _0x67e00e=_0x21e38b;var _0x53f2dd;const {id:_0x2207a1}=_0x17d359,{id:_0x23ec0b,type:_0x5717c0}=_0x1fd6f6,_0x1945db=(_0x53f2dd=_0x17d359[_0x67e00e(0x19e)])!=null?_0x53f2dd:{'actions':null},_0x29bc59=_0x1fd6f6[_0x67e00e(0x19e)];if(_0x2207a1&&_0x2207a1!==_0x23ec0b)throw new Error(_0x67e00e(0x467)+_0x2207a1+_0x67e00e(0x526)+_0x23ec0b+'.');return{..._0x17d359,'id':_0x23ec0b,'type':_0x5717c0,'params':{'unitId':_0x29bc59[_0x67e00e(0x440)],'textRanges':_0x29bc59[_0x67e00e(0x1bf)],'actions':o[_0x67e00e(0x250)][_0x67e00e(0x4a9)](_0x1945db[_0x67e00e(0x27e)],_0x29bc59[_0x67e00e(0x27e)])}};},{})],_0x1393ba=(_0x2122b0=(_0x3d7f84=_0x45f3fb['getCurrentUser']())==null?void 0x0:_0x3d7f84[_0x21e38b(0x4dc)])!=null?_0x2122b0:_0x21e38b(0x2f5),_0x487861=(_0x3b93b7=(_0x20edf1=_0x45f3fb[_0x21e38b(0x215)]())==null?void 0x0:_0x20edf1[_0x21e38b(0x2fe)])!=null?_0x3b93b7:'unknown';return{'changeset':{'unitID':_0x19095a,'type':_[_0x21e38b(0x50a)](_0x2b3266['getUnitType'](_0x19095a)),'baseRev':_0x55642c[_0x21e38b(0x295)](_0x19095a),'revision':0x0,'userID':_0x1393ba,'memberID':_0x487861,'mutations':_0x33fc5e},'pendingMutations':[]};}const Rs={'id':p[_0x2cc1b3(0x2d9)]['id'],'type':o[_0x2cc1b3(0x423)][_0x2cc1b3(0x438)],'params':{}};var Os=Object['defineProperty'],Ds=Object[_0x2cc1b3(0x47b)],K=(_0x15b7a7,_0x2342e6,_0x32ff9f,_0x366f74)=>{const _0x392ffc=_0x2cc1b3;for(var _0x105859=_0x366f74>0x1?void 0x0:_0x366f74?Ds(_0x2342e6,_0x32ff9f):_0x2342e6,_0x56c72b=_0x15b7a7[_0x392ffc(0x209)]-0x1,_0x20a2c3;_0x56c72b>=0x0;_0x56c72b--)(_0x20a2c3=_0x15b7a7[_0x56c72b])&&(_0x105859=(_0x366f74?_0x20a2c3(_0x2342e6,_0x32ff9f,_0x105859):_0x20a2c3(_0x105859))||_0x105859);return _0x366f74&&_0x105859&&Os(_0x2342e6,_0x32ff9f,_0x105859),_0x105859;},m=(_0x163edf,_0x454f6d)=>(_0x524d28,_0x4fdfcb)=>_0x454f6d(_0x524d28,_0x4fdfcb,_0x163edf),D=(_0x1b9250=>(_0x1b9250[_0x2cc1b3(0x45a)]=_0x2cc1b3(0x282),_0x1b9250['SYNCED']='synced',_0x1b9250['PENDING']=_0x2cc1b3(0x470),_0x1b9250[_0x2cc1b3(0x255)]=_0x2cc1b3(0x2db),_0x1b9250[_0x2cc1b3(0x297)]=_0x2cc1b3(0x317),_0x1b9250[_0x2cc1b3(0x1d9)]=_0x2cc1b3(0x448),_0x1b9250[_0x2cc1b3(0x3ec)]=_0x2cc1b3(0x1d4),_0x1b9250[_0x2cc1b3(0x38a)]=_0x2cc1b3(0x2d8),_0x1b9250))(D||{});class X{constructor(_0x5adff8,_0x43005b,_0x3fca82,_0x4c52dd,_0x46672a,_0x5a7db5,_0x294dc6,_0x5354a1,_0x195aac){const _0x183ce9=_0x2cc1b3;u(this,_0x183ce9(0x408),null),u(this,_0x183ce9(0x290),[]),(this[_0x183ce9(0x3ee)]=_0x5adff8,this[_0x183ce9(0x3e9)]=_0x43005b,this[_0x183ce9(0x283)]=_0x46672a,this[_0x183ce9(0x466)]=_0x5a7db5,this['_undoRedoService']=_0x294dc6,this['_revisionService']=_0x5354a1,this['_localCacheService']=_0x195aac,this[_0x183ce9(0x408)]=_0x3fca82,this[_0x183ce9(0x290)]=_0x4c52dd);}[_0x2cc1b3(0x358)](_0x27df4f){const _0x4a6727=_0x2cc1b3,_0x484439=this[_0x4a6727(0x341)]['getCurrentRevForDocument'](this[_0x4a6727(0x3ee)]);return _0x27df4f[_0x4a6727(0x456)]>_0x484439+0x1?(this[_0x4a6727(0x283)]['onMissingChangesets']({'from':_0x484439,'to':_0x27df4f['revision']-0x1}),!0x0):!0x1;}[_0x2cc1b3(0x1bc)](_0x4d2c09){const _0x4ea5c5=_0x2cc1b3;this[_0x4ea5c5(0x4b0)][_0x4ea5c5(0x3ff)](this[_0x4ea5c5(0x3ee)],_0x4d2c09);}['_transformSelections'](_0x47f556){const _0x20604d=_0x2cc1b3;var _0x1bc990,_0x45cfd9;(_0x45cfd9=(_0x1bc990=this[_0x20604d(0x283)])[_0x20604d(0x3d6)])==null||_0x45cfd9[_0x20604d(0x181)](_0x1bc990,_0x47f556);}[_0x2cc1b3(0x239)](_0x26d210){const _0x104291=_0x2cc1b3;var _0x528541,_0x1b2ab5;return(_0x1b2ab5=(_0x528541=this[_0x104291(0x283)])[_0x104291(0x4d0)])==null?void 0x0:_0x1b2ab5['call'](_0x528541,_0x26d210);}[_0x2cc1b3(0x23c)](_0x3d1c97){const _0x26e0a9=_0x2cc1b3;var _0x2df1b4,_0x4f3a49,_0x3ffe35;return(_0x3ffe35=(_0x4f3a49=(_0x2df1b4=this['_handler'])[_0x26e0a9(0x258)])==null?void 0x0:_0x4f3a49[_0x26e0a9(0x181)](_0x2df1b4,_0x3d1c97))!=null?_0x3ffe35:_0x3d1c97;}[_0x2cc1b3(0x3b8)](_0x48e13f){const _0x127327=_0x2cc1b3;var _0x7cbd50,_0x26db69;if(this[_0x127327(0x3e9)]===j[_0x127327(0x40b)]){const {unitID:_0x2d50ba,mutations:_0x4f9c4e,memberID:_0x408700}=_0x48e13f,_0x1dc5ec=_0x4f9c4e[0x0][_0x127327(0x19e)]['textRanges'];Array[_0x127327(0x1a8)](_0x1dc5ec)&&_0x1dc5ec[_0x127327(0x209)]>0x0&&((_0x26db69=(_0x7cbd50=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x26db69['call'](_0x7cbd50,{'unitID':_0x2d50ba,'memberID':_0x408700,'textRanges':_0x1dc5ec}));}}['_updateLocalCache'](){const _0x411e8d=_0x2cc1b3;this[_0x411e8d(0x359)][_0x411e8d(0x324)](this[_0x411e8d(0x3ee)],this[_0x411e8d(0x3e9)],this['_awaitingChangeset'],this[_0x411e8d(0x290)]);}[_0x2cc1b3(0x41d)](){const _0x38597e=_0x2cc1b3;return this[_0x38597e(0x341)][_0x38597e(0x295)](this[_0x38597e(0x3ee)]);}[_0x2cc1b3(0x48e)](){const _0x1deeb3=_0x2cc1b3;this[_0x1deeb3(0x341)][_0x1deeb3(0x2f2)](this[_0x1deeb3(0x3ee)]);}['_executeRemoteChangeset'](_0x3101ea){const _0x124d32=_0x2cc1b3;var _0x324177;const _0x5701a0=this['_transformRemoteChangesetByIMECache'](_0x3101ea),_0x4a91b6=o[_0x124d32(0x49b)](_0x5701a0[_0x124d32(0x1d1)],this['_commandService'],{'fromCollab':!0x0});if(!_0x4a91b6['result'])throw _0x4a91b6['error']instanceof Error?_0x4a91b6[_0x124d32(0x307)]:new Error((_0x324177=_0x4a91b6[_0x124d32(0x307)])!=null?_0x324177:_0x124d32(0x45c));this['_transformIMECache'](_0x5701a0),this['_transformUndoredo'](_0x3101ea),this[_0x124d32(0x399)](_0x5701a0),this[_0x124d32(0x3b8)](_0x5701a0),this['_incrementRevisionNumber']();}}let ce=class extends X{constructor(_0x4cb485,_0x33e80c,_0xf69744,_0x595c90,_0x1d932a,_0x2b76cc,_0x24746e,_0x18b1c8,_0x44b8df,_0xecc75){const _0x2cac81=_0x2cc1b3;super(_0x4cb485,_0x33e80c,null,[],_0xf69744,_0x18b1c8,_0x24746e,_0x595c90,_0x1d932a),u(this,_0x2cac81(0x4c5),'synced'),(this[_0x2cac81(0x3fe)]=_0x2b76cc,this[_0x2cac81(0x402)]=_0x44b8df,this[_0x2cac81(0x2ad)]=_0xecc75);}['appendMutation'](_0x2711e3){const _0xcf557a=_0x2cc1b3,_0x3bbc38=this[_0xcf557a(0x3fe)]['createInstance']($,this[_0xcf557a(0x3ee)],this[_0xcf557a(0x3e9)],[_0x2711e3],this[_0xcf557a(0x283)]);return _0x3bbc38[_0xcf557a(0x308)](),_0x3bbc38[_0xcf557a(0x46a)](),_0x3bbc38;}[_0x2cc1b3(0x2b4)](_0x5ecfc0){const _0x48fbfe=_0x2cc1b3;if(this[_0x48fbfe(0x358)](_0x5ecfc0))return this[_0x48fbfe(0x3fe)][_0x48fbfe(0x171)](H,this['unitID'],this[_0x48fbfe(0x3e9)],null,[],null,[_0x5ecfc0],this[_0x48fbfe(0x283)]);try{const _0x5dc078=this[_0x48fbfe(0x2ad)][_0x48fbfe(0x525)](_0x5ecfc0,[Rs]);if(_[_0x48fbfe(0x421)](_0x5dc078)){const {c1Prime:_0x3c2e1c}=_0x5dc078;return this['_executeRemoteChangeset'](_0x3c2e1c),this;}throw _0x5dc078[_0x48fbfe(0x307)];}catch(_0x53b718){return this[_0x48fbfe(0x402)][_0x48fbfe(0x307)](_0x53b718),this['_onConflict'](!0x1);}}[_0x2cc1b3(0x1de)](_0x272ddb){const _0xec8f08=_0x2cc1b3;return this[_0xec8f08(0x3fe)][_0xec8f08(0x171)](B,this[_0xec8f08(0x3ee)],this[_0xec8f08(0x3e9)],null,[],this[_0xec8f08(0x283)],_0x272ddb);}[_0x2cc1b3(0x174)](){const _0x33fbe2=_0x2cc1b3;throw new Error(_0x33fbe2(0x429));}['onRemoteRej'](){const _0x4823c3=_0x2cc1b3;throw new Error(_0x4823c3(0x176));}['toggleOffline'](){const _0x29a101=_0x2cc1b3;return this[_0x29a101(0x3fe)][_0x29a101(0x171)](F,this[_0x29a101(0x3ee)],this[_0x29a101(0x3e9)],null,[],this[_0x29a101(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x28c)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ce=K([m(0x3,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0x4,o['Inject'](exports[_0x2cc1b3(0x15f)])),m(0x5,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x6,o[_0x2cc1b3(0x4a8)]),m(0x7,o[_0x2cc1b3(0x1cf)]),m(0x8,o[_0x2cc1b3(0x4ba)]),m(0x9,_[_0x2cc1b3(0x4ca)])],ce);let $=class extends X{constructor(_0x79b7f2,_0x1b09f5,_0x4a4a29,_0x64f184,_0x3b9ffc,_0x510738,_0x1a4bbd,_0x4b49ee,_0x117259,_0x53a4a8,_0x47acf6,_0x3a1473,_0x138f49,_0x17ac9f){const _0x1f5f2d=_0x2cc1b3;super(_0x79b7f2,_0x1b09f5,null,_0x4a4a29,_0x64f184,_0x53a4a8,_0x17ac9f,_0x510738,_0x1a4bbd),u(this,_0x1f5f2d(0x4c5),_0x1f5f2d(0x470)),u(this,'_scheduleTimestamp',null),u(this,_0x1f5f2d(0x4a1),null),(this['_injector']=_0x3b9ffc,this[_0x1f5f2d(0x3ab)]=_0x4b49ee,this[_0x1f5f2d(0x402)]=_0x117259,this[_0x1f5f2d(0x3f8)]=_0x47acf6,this[_0x1f5f2d(0x2ad)]=_0x3a1473,this[_0x1f5f2d(0x46f)]=_0x138f49);}['appendMutation'](_0x23befb){const _0x65fb60=_0x2cc1b3;return this[_0x65fb60(0x290)]['push'](_0x23befb),this['_updateLocalCache'](),this;}[_0x2cc1b3(0x2b4)](_0x1080bd){const _0x147277=_0x2cc1b3;if(this[_0x147277(0x358)](_0x1080bd))return this[_0x147277(0x45f)](),this[_0x147277(0x3fe)][_0x147277(0x171)](H,this['unitID'],this[_0x147277(0x3e9)],null,this[_0x147277(0x290)],null,[_0x1080bd],this[_0x147277(0x283)]);try{const _0xfbfcf9=this[_0x147277(0x2ad)][_0x147277(0x525)](_0x1080bd,this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0xfbfcf9)){const {c1Prime:_0x584f03,m2Prime:_0xc314ba}=_0xfbfcf9;this['_executeRemoteChangeset'](_0x584f03);const _0x1f7b6b=this[_0x147277(0x3fe)][_0x147277(0x171)]($,this['unitID'],this['type'],_0xc314ba,this['_handler']);return this[_0x147277(0x45f)](),_0x1f7b6b[_0x147277(0x308)](this[_0x147277(0x196)]?Math[_0x147277(0x4c9)](0x0,new Date()[_0x147277(0x296)]()-this[_0x147277(0x196)]):this[_0x147277(0x3d7)]()),_0x1f7b6b;}throw _0xfbfcf9[_0x147277(0x307)];}catch(_0x147abb){return this[_0x147277(0x402)][_0x147277(0x307)](_0x147abb),this[_0x147277(0x1de)](!0x1);}}[_0x2cc1b3(0x174)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x97805b=_0x2cc1b3;throw new Error(_0x97805b(0x309));}[_0x2cc1b3(0x4f6)](){const _0x570a8f=_0x2cc1b3;return this['_clearScheduledTask'](),this[_0x570a8f(0x3fe)][_0x570a8f(0x171)](F,this[_0x570a8f(0x3ee)],this[_0x570a8f(0x3e9)],null,this['_pendingMutations'],this[_0x570a8f(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x308)](_0x45db2e){const _0x1f66b=_0x2cc1b3;_0x45db2e=_0x45db2e!=null?_0x45db2e:this['_getSendChangesetTimeout'](),this[_0x1f66b(0x196)]=new Date()[_0x1f66b(0x296)](),this[_0x1f66b(0x4a1)]=setTimeout(()=>{const _0x7d0b07=_0x1f66b;this[_0x7d0b07(0x45f)]();let _0x192b17=null;switch(this[_0x7d0b07(0x3e9)]){case j[_0x7d0b07(0x3a1)]:{_0x192b17=et(this[_0x7d0b07(0x290)],this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x46f)],this[_0x7d0b07(0x341)],this[_0x7d0b07(0x3ab)]);break;}case j[_0x7d0b07(0x40b)]:{this['_pendingMutations'][_0x7d0b07(0x3bc)](_0x3ddb15=>_0x3ddb15['id']===P[_0x7d0b07(0x321)]['id'])?_0x192b17=Ts(this[_0x7d0b07(0x290)],this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x46f)],this[_0x7d0b07(0x341)],this[_0x7d0b07(0x3ab)]):_0x192b17=et(this[_0x7d0b07(0x290)],this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x46f)],this['_revisionService'],this[_0x7d0b07(0x3ab)]);break;}default:throw new Error(_0x7d0b07(0x38b)+this[_0x7d0b07(0x3e9)]+_0x7d0b07(0x1c9));}const {changeset:_0x32b728,pendingMutations:_0xcb89af}=_0x192b17;this['_handler']['onSendChangeset'](_0x32b728);const _0x594803=_0xcb89af['length']?this[_0x7d0b07(0x3fe)]['createInstance'](x,this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x3e9)],_0x32b728,_0xcb89af,this[_0x7d0b07(0x283)]):this[_0x7d0b07(0x3fe)][_0x7d0b07(0x171)](k,this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x3e9)],_0x32b728,this['_handler']);_0x594803[_0x7d0b07(0x46a)](),this[_0x7d0b07(0x283)][_0x7d0b07(0x278)](this,_0x594803);},_0x45db2e);}[_0x2cc1b3(0x3d7)](){const _0x991097=_0x2cc1b3;var _0x4002db;return(_0x4002db=this['_configService'][_0x991097(0x42f)](ht))!=null?_0x4002db:Ft;}['resend'](){const _0x15c101=_0x2cc1b3;throw new Error(_0x15c101(0x32e));}[_0x2cc1b3(0x45f)](){const _0x56e7e6=_0x2cc1b3;this[_0x56e7e6(0x4a1)]!=null&&(clearTimeout(this[_0x56e7e6(0x4a1)]),this['_sendingTimer']=null);}[_0x2cc1b3(0x1de)](_0xd3022d){const _0x2a7651=_0x2cc1b3;return this[_0x2a7651(0x45f)](),this[_0x2a7651(0x3fe)]['createInstance'](B,this[_0x2a7651(0x3ee)],this[_0x2a7651(0x3e9)],null,this[_0x2a7651(0x290)],this[_0x2a7651(0x283)],_0xd3022d);}};$=K([m(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x5,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0x6,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0x7,o[_0x2cc1b3(0x333)](Y)),m(0x8,o['ILogService']),m(0x9,o[_0x2cc1b3(0x1cf)]),m(0xa,o[_0x2cc1b3(0x149)]),m(0xb,_[_0x2cc1b3(0x4ca)]),m(0xc,o['IUniverInstanceService']),m(0xd,o[_0x2cc1b3(0x4a8)])],$);let k=class extends X{constructor(_0x85e0e3,_0x42925f,_0x52def0,_0x4d7c8c,_0x525acc,_0x2d667f,_0x337bf5,_0x3a0415,_0x45067f,_0xb7aeb4,_0xe8ef9f){const _0x36d055=_0x2cc1b3;super(_0x85e0e3,_0x42925f,_0x52def0,[],_0x4d7c8c,_0x3a0415,_0xe8ef9f,_0x2d667f,_0x337bf5),u(this,_0x36d055(0x4c5),_0x36d055(0x2db)),(this[_0x36d055(0x3fe)]=_0x525acc,this[_0x36d055(0x402)]=_0x45067f,this['_transformService']=_0xb7aeb4);}['appendMutation'](_0x2238a2){const _0x2f850c=_0x2cc1b3,_0x3681bd=this[_0x2f850c(0x3fe)][_0x2f850c(0x171)](x,this[_0x2f850c(0x3ee)],this[_0x2f850c(0x3e9)],this[_0x2f850c(0x408)],[_0x2238a2],this['_handler']);return _0x3681bd[_0x2f850c(0x46a)](),_0x3681bd;}[_0x2cc1b3(0x2b4)](_0x4a0c5a){const _0x38e6c7=_0x2cc1b3;if(this[_0x38e6c7(0x358)](_0x4a0c5a))return this['_injector'][_0x38e6c7(0x171)](H,this[_0x38e6c7(0x3ee)],this[_0x38e6c7(0x3e9)],this[_0x38e6c7(0x408)],[],null,[_0x4a0c5a],this[_0x38e6c7(0x283)]);try{const _0x3887fa=this['_transformService'][_0x38e6c7(0x1f6)]([_0x4a0c5a],[this['_awaitingChangeset']],!0x1);if(_[_0x38e6c7(0x468)](_0x3887fa)){const {c1Prime:_0xfa6b9d,c2Prime:_0xa162ac}=_0x3887fa;this[_0x38e6c7(0x426)](_0xfa6b9d[0x0]),_0xa162ac[0x0][_0x38e6c7(0x1ec)]=this[_0x38e6c7(0x41d)]();const _0x10f19c=this['_injector'][_0x38e6c7(0x171)](k,this[_0x38e6c7(0x3ee)],this[_0x38e6c7(0x3e9)],_0xa162ac[0x0],this[_0x38e6c7(0x283)]);return _0x10f19c[_0x38e6c7(0x46a)](),_0x10f19c;}return this[_0x38e6c7(0x1de)](!0x1);}catch(_0x3b1260){return this[_0x38e6c7(0x402)][_0x38e6c7(0x307)](_0x3b1260),this[_0x38e6c7(0x1de)](!0x1);}}[_0x2cc1b3(0x174)](_0x373a58){const _0xca2f62=_0x2cc1b3,_0x3521c3=this['_revisionService'][_0xca2f62(0x295)](this[_0xca2f62(0x3ee)]);if(_0x373a58[_0xca2f62(0x456)]<_0x3521c3-0x1)return this;if(this[_0xca2f62(0x358)](_0x373a58))return this[_0xca2f62(0x3fe)][_0xca2f62(0x171)](H,this[_0xca2f62(0x3ee)],this['type'],null,[],this[_0xca2f62(0x408)],[],this[_0xca2f62(0x283)]);this[_0xca2f62(0x48e)]();const _0x860566=this[_0xca2f62(0x3fe)][_0xca2f62(0x171)](ce,this[_0xca2f62(0x3ee)],this[_0xca2f62(0x3e9)],this['_handler']);return _0x860566['_updateLocalCache'](),_0x860566;}[_0x2cc1b3(0x320)](_0xb283a2){const _0x31081=_0x2cc1b3;return this[_0x31081(0x1de)](!!(_0xb283a2!=null&&_0xb283a2[_0x31081(0x3fc)]));}[_0x2cc1b3(0x4f6)](){const _0x494779=_0x2cc1b3;return this[_0x494779(0x3fe)][_0x494779(0x171)](F,this[_0x494779(0x3ee)],this['type'],this['_awaitingChangeset'],[],this[_0x494779(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x28c)](){const _0x41c2bf=_0x2cc1b3;this[_0x41c2bf(0x283)][_0x41c2bf(0x3ed)](this['_awaitingChangeset']);}[_0x2cc1b3(0x1de)](_0x28828f){const _0x581296=_0x2cc1b3;return this[_0x581296(0x3fe)][_0x581296(0x171)](B,this[_0x581296(0x3ee)],this[_0x581296(0x3e9)],this['_awaitingChangeset'],[],this[_0x581296(0x283)],_0x28828f);}};k=K([m(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x5,o[_0x2cc1b3(0x333)](_['RevisionService'])),m(0x6,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0x7,o['ICommandService']),m(0x8,o[_0x2cc1b3(0x4ba)]),m(0x9,_[_0x2cc1b3(0x4ca)]),m(0xa,o[_0x2cc1b3(0x4a8)])],k);let x=class extends X{constructor(_0x980c36,_0x11faf4,_0x3b7fea,_0x3f7358,_0x1ae06d,_0x5656f4,_0x5841ef,_0x905162,_0x57b88f,_0x2399b7,_0x4a3a43,_0x3c750d){const _0x8f43f9=_0x2cc1b3;super(_0x980c36,_0x11faf4,_0x3b7fea,_0x3f7358,_0x1ae06d,_0x57b88f,_0x3c750d,_0x5841ef,_0x905162),u(this,_0x8f43f9(0x4c5),_0x8f43f9(0x317)),(this[_0x8f43f9(0x3fe)]=_0x5656f4,this[_0x8f43f9(0x402)]=_0x2399b7,this[_0x8f43f9(0x2ad)]=_0x4a3a43);}['appendMutation'](_0x1b9f9b){const _0x55a7c4=_0x2cc1b3;return this[_0x55a7c4(0x290)][_0x55a7c4(0x4bd)](_0x1b9f9b),this;}['onRemoteChangeset'](_0x2d198c){const _0x197016=_0x2cc1b3;if(this['_checkMissing'](_0x2d198c))return this[_0x197016(0x3fe)][_0x197016(0x171)](H,this[_0x197016(0x3ee)],this[_0x197016(0x3e9)],this[_0x197016(0x408)],this[_0x197016(0x290)],null,[_0x2d198c],this[_0x197016(0x283)]);try{const _0x238951=this[_0x197016(0x2ad)][_0x197016(0x1f6)]([_0x2d198c],[this[_0x197016(0x408)]],!0x1);if(_[_0x197016(0x468)](_0x238951)){const {c1Prime:_0x17d3c3,c2Prime:_0x740b83}=_0x238951,_0x1a0f0f=this[_0x197016(0x2ad)][_0x197016(0x525)](_0x17d3c3[0x0],this[_0x197016(0x290)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x1a0f0f)){const {c1Prime:_0x3c782c,m2Prime:_0x3a0617}=_0x1a0f0f;return this[_0x197016(0x426)](_0x3c782c),_0x740b83[0x0][_0x197016(0x1ec)]=this['_getCurrentRevision'](),this[_0x197016(0x3fe)][_0x197016(0x171)](x,this[_0x197016(0x3ee)],this[_0x197016(0x3e9)],_0x740b83[0x0],_0x3a0617,this[_0x197016(0x283)]);}throw _0x1a0f0f[_0x197016(0x307)];}throw _0x238951[_0x197016(0x307)];}catch(_0x3f6913){return this[_0x197016(0x402)]['error'](_0x3f6913),this[_0x197016(0x1de)](!0x1);}}[_0x2cc1b3(0x174)](_0x366a5c){const _0x2ae15e=_0x2cc1b3;if(this['_checkMissing'](_0x366a5c))return this[_0x2ae15e(0x3fe)][_0x2ae15e(0x171)](H,this[_0x2ae15e(0x3ee)],this[_0x2ae15e(0x3e9)],null,this['_pendingMutations'],this[_0x2ae15e(0x408)],[],this[_0x2ae15e(0x283)]);this[_0x2ae15e(0x48e)]();const _0x7be349=this[_0x2ae15e(0x3fe)][_0x2ae15e(0x171)]($,this[_0x2ae15e(0x3ee)],this[_0x2ae15e(0x3e9)],this['_pendingMutations'],this[_0x2ae15e(0x283)]);return _0x7be349['_schedule'](),_0x7be349['_updateLocalCache'](),_0x7be349;}[_0x2cc1b3(0x320)](_0x45a81e){const _0x5dec9f=_0x2cc1b3;return this[_0x5dec9f(0x1de)](!!(_0x45a81e!=null&&_0x45a81e['isPermissionRej']));}[_0x2cc1b3(0x4f6)](){const _0x27eefe=_0x2cc1b3;return this[_0x27eefe(0x3fe)][_0x27eefe(0x171)](F,this[_0x27eefe(0x3ee)],this[_0x27eefe(0x3e9)],this[_0x27eefe(0x408)],this[_0x27eefe(0x290)],this['_handler']);}['toggleOnline'](){return this;}[_0x2cc1b3(0x28c)](){const _0x23510f=_0x2cc1b3;this[_0x23510f(0x283)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x2cc1b3(0x1de)](_0x42e790){const _0x1b502e=_0x2cc1b3;return this[_0x1b502e(0x3fe)][_0x1b502e(0x171)](B,this[_0x1b502e(0x3ee)],this[_0x1b502e(0x3e9)],null,this[_0x1b502e(0x290)],this[_0x1b502e(0x283)],_0x42e790);}};x=K([m(0x5,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x6,o['Inject'](_['RevisionService'])),m(0x7,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0x8,o['ICommandService']),m(0x9,o[_0x2cc1b3(0x4ba)]),m(0xa,_[_0x2cc1b3(0x4ca)]),m(0xb,o[_0x2cc1b3(0x4a8)])],x);let B=class extends X{constructor(_0x17bdec,_0x2e4702,_0x4e1857,_0x380fc0,_0x180c1b,_0xa963d0=!0x1,_0x40afa9,_0x26f1f7,_0x78481c,_0x30cf93,_0x41698b,_0x558ff2,_0x46510d){const _0x4078f7=_0x2cc1b3;super(_0x17bdec,_0x2e4702,_0x4e1857,_0x380fc0,_0x180c1b,_0x26f1f7,_0x78481c,_0x41698b,_0x30cf93),u(this,_0x4078f7(0x4c5),_0x4078f7(0x1d4)),(this['_isPermissionRej']=_0xa963d0,this[_0x4078f7(0x1fd)]=_0x40afa9,this[_0x4078f7(0x33c)]=_0x558ff2,this[_0x4078f7(0x50e)]=_0x46510d,this[_0x4078f7(0x458)](),this['_clearLocalCache'](),this[_0x4078f7(0x462)]());}[_0x2cc1b3(0x27b)](){return this;}['onRemoteChangeset'](){return this;}[_0x2cc1b3(0x174)](){return this;}[_0x2cc1b3(0x320)](){return this;}[_0x2cc1b3(0x4f6)](){return this;}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x28c)](){const _0x1bb12f=_0x2cc1b3;throw new Error(_0x1bb12f(0x1a5));}['_clearLocalCache'](){const _0x3c9bbf=_0x2cc1b3;this['_localCacheService'][_0x3c9bbf(0x324)](this[_0x3c9bbf(0x3ee)],this[_0x3c9bbf(0x3e9)],null,[]);}[_0x2cc1b3(0x458)](){const _0x1361b0=_0x2cc1b3;this['_isPermissionRej']?this[_0x1361b0(0x50e)][_0x1361b0(0x4f2)]({'title':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x4bf)),'content':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x39d)),'type':'error','duration':0x0}):this['_notificationService']['show']({'title':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x286)),'content':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x42c)),'type':_0x1361b0(0x307),'duration':0x0});}[_0x2cc1b3(0x462)](){const _0x47e4e5=_0x2cc1b3;this[_0x47e4e5(0x1fd)][_0x47e4e5(0x1e8)](new p[(_0x47e4e5(0x33a))](this[_0x47e4e5(0x3ee)])['id'],!0x1);}};B=K([m(0x6,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x42e)])),m(0x7,o['ICommandService']),m(0x8,o[_0x2cc1b3(0x4a8)]),m(0x9,o['Inject'](exports['LocalCacheService'])),m(0xa,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0xb,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)])),m(0xc,L[_0x2cc1b3(0x14f)])],B);let F=class extends X{constructor(_0x16bda4,_0x4af6bc,_0x521024,_0x1cc606,_0x52fdc3,_0x2c95a9,_0x2c6283,_0x5e6b07,_0x45bde9,_0x5582af){const _0x61fc5b=_0x2cc1b3;super(_0x16bda4,_0x4af6bc,_0x521024,_0x1cc606,_0x52fdc3,_0x45bde9,_0x5582af,_0x2c6283,_0x5e6b07),u(this,_0x61fc5b(0x4c5),'offline'),this['_injector']=_0x2c95a9;}[_0x2cc1b3(0x27b)](_0x386a6b){const _0x1acbd1=_0x2cc1b3;return this['_pendingMutations'][_0x1acbd1(0x4bd)](_0x386a6b),this['_updateLocalCache'](),this;}[_0x2cc1b3(0x2b4)](_0x58767b){const _0x5a3328=_0x2cc1b3;throw new Error(_0x5a3328(0x264));}[_0x2cc1b3(0x174)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x9c7a1f=_0x2cc1b3;throw new Error(_0x9c7a1f(0x279));}[_0x2cc1b3(0x4f6)](){return this;}[_0x2cc1b3(0x2e0)](){const _0x599460=_0x2cc1b3,{_injector:_0x3ef422,_pendingMutations:_0xf9efec,_awaitingChangeset:_0x273964,unitID:_0x749d36,_handler:_0xeeac37,type:_0x2cb746}=this,_0x4d2968=bt(_0x3ef422,_0x749d36,_0x2cb746,_0x273964,_0xf9efec,_0xeeac37);return _0x4d2968 instanceof $?_0x4d2968[_0x599460(0x308)]():(_0x4d2968 instanceof x||_0x4d2968 instanceof k)&&_0x4d2968[_0x599460(0x28c)](),_0x4d2968;}[_0x2cc1b3(0x28c)](){const _0x13e357=_0x2cc1b3;throw new Error(_0x13e357(0x4d8));}};F=K([m(0x5,o[_0x2cc1b3(0x333)](o['Injector'])),m(0x6,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0x7,o[_0x2cc1b3(0x333)](exports['LocalCacheService'])),m(0x8,o['ICommandService']),m(0x9,o[_0x2cc1b3(0x4a8)])],F);let H=class extends X{constructor(_0x55117a,_0x231557,_0x2fb6f8,_0x475ae2,_0x1e9715,_0x4a59b4,_0x320749,_0x533a7f,_0x437746,_0x392218,_0x47850a,_0x42adc0,_0x53ae25,_0x23b506){const _0x5d80af=_0x2cc1b3;super(_0x55117a,_0x231557,_0x2fb6f8,_0x475ae2,_0x320749,_0x42adc0,_0x53ae25,_0x437746,_0x392218),u(this,'status',_0x5d80af(0x448)),(this['_acknowledgedAwaitingChangeset']=_0x1e9715,this[_0x5d80af(0x47f)]=_0x4a59b4,this[_0x5d80af(0x3fe)]=_0x533a7f,this[_0x5d80af(0x402)]=_0x47850a,this[_0x5d80af(0x2ad)]=_0x23b506);}[_0x2cc1b3(0x3d2)](_0x4c8aec){const _0x7a744b=_0x2cc1b3;try{const _0x243d6c=[..._0x4c8aec,...this[_0x7a744b(0x47f)]],_0x4f6fa8=[this[_0x7a744b(0x408)]||this[_0x7a744b(0x4fd)]]['filter'](_0x18a323=>!!_0x18a323);let _0x549a3d,_0x5b538e;if(_0x4f6fa8[_0x7a744b(0x209)]){const _0x17953f=this[_0x7a744b(0x2ad)]['transformChangesets'](_0x243d6c,_0x4f6fa8,!0x1);if(!_[_0x7a744b(0x468)](_0x17953f))throw _0x17953f[_0x7a744b(0x307)];_0x549a3d=_0x17953f[_0x7a744b(0x4fc)],_0x5b538e=_0x17953f[_0x7a744b(0x1ad)];}else _0x549a3d=_0x243d6c,_0x5b538e=[];let _0x16bc75=this[_0x7a744b(0x290)];_0x549a3d[_0x7a744b(0x34c)](_0x149d26=>{const _0x54a355=_0x7a744b;let _0x21d900;if(_0x16bc75['length']){const _0x1b8c69=this[_0x54a355(0x2ad)][_0x54a355(0x525)](_0x149d26,_0x16bc75);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1b8c69))throw _0x1b8c69['error'];_0x21d900=_0x1b8c69[_0x54a355(0x4fc)],_0x16bc75=_0x1b8c69[_0x54a355(0x285)];}else _0x21d900=_0x149d26;this[_0x54a355(0x426)](_0x21d900);}),this[_0x7a744b(0x4fd)]&&this['_incrementRevisionNumber'](),this[_0x7a744b(0x408)]&&_0x5b538e[_0x7a744b(0x209)]&&(_0x5b538e[0x0]['baseRev']=this[_0x7a744b(0x41d)]());let _0x3f534d;if(this['_awaitingChangeset']&&_0x16bc75[_0x7a744b(0x209)]!==0x0)_0x3f534d=this['_injector'][_0x7a744b(0x171)](x,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],_0x5b538e[0x0],_0x16bc75,this['_handler']);else{if(this[_0x7a744b(0x408)]&&_0x16bc75[_0x7a744b(0x209)]===0x0)_0x5b538e[0x0]['baseRev']=this[_0x7a744b(0x41d)](),_0x3f534d=this[_0x7a744b(0x3fe)]['createInstance'](k,this['unitID'],this['type'],_0x5b538e[0x0],this[_0x7a744b(0x283)]);else{if(_0x16bc75[_0x7a744b(0x209)]!==0x0){const _0x4cbae4=this[_0x7a744b(0x3fe)][_0x7a744b(0x171)]($,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],_0x16bc75,this[_0x7a744b(0x283)]);_0x4cbae4[_0x7a744b(0x308)](),_0x3f534d=_0x4cbae4;}else _0x3f534d=this[_0x7a744b(0x3fe)][_0x7a744b(0x171)](ce,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],this[_0x7a744b(0x283)]);}}return _0x3f534d[_0x7a744b(0x46a)](),_0x3f534d;}catch(_0x25682c){return this[_0x7a744b(0x402)][_0x7a744b(0x307)](_0x7a744b(0x16c),_0x7a744b(0x1fe),_0x25682c),this[_0x7a744b(0x3fe)][_0x7a744b(0x171)](B,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],this[_0x7a744b(0x408)],this['_pendingMutations'],this[_0x7a744b(0x283)],!0x1);}}[_0x2cc1b3(0x28c)](){const _0x2427a1=_0x2cc1b3;throw new Error(_0x2427a1(0x489));}[_0x2cc1b3(0x27b)](_0x45f407){const _0x13e168=_0x2cc1b3;return this[_0x13e168(0x290)][_0x13e168(0x4bd)](_0x45f407),this;}[_0x2cc1b3(0x2b4)](_0x169dc4){const _0x17b934=_0x2cc1b3;return this[_0x17b934(0x47f)][_0x17b934(0x4bd)](_0x169dc4),this;}[_0x2cc1b3(0x174)](_0x5da449){const _0xaaa839=_0x2cc1b3;if(this['_awaitingChangeset'])return this[_0xaaa839(0x4fd)]=this[_0xaaa839(0x408)],this[_0xaaa839(0x408)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2cc1b3(0x320)](_0x51d396){const _0x11af3b=_0x2cc1b3;return this[_0x11af3b(0x1de)](!!(_0x51d396!=null&&_0x51d396[_0x11af3b(0x3fc)]));}[_0x2cc1b3(0x4f6)](){const _0x43b2c4=_0x2cc1b3;return this[_0x43b2c4(0x3fe)][_0x43b2c4(0x171)](F,this['unitID'],this[_0x43b2c4(0x3e9)],this[_0x43b2c4(0x408)],this[_0x43b2c4(0x290)],this[_0x43b2c4(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x1de)](_0x51a3f7){const _0x4f0373=_0x2cc1b3;return this['_injector']['createInstance'](B,this[_0x4f0373(0x3ee)],this[_0x4f0373(0x3e9)],this['_awaitingChangeset'],this[_0x4f0373(0x290)],this[_0x4f0373(0x283)],_0x51a3f7);}};H=K([m(0x7,o['Inject'](o['Injector'])),m(0x8,o['Inject'](_[_0x2cc1b3(0x4aa)])),m(0x9,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0xa,o['ILogService']),m(0xb,o[_0x2cc1b3(0x1cf)]),m(0xc,o['IUndoRedoService']),m(0xd,_[_0x2cc1b3(0x4ca)])],H);function bt(_0x4d50c1,_0x4d622a,_0x1010fe,_0x4a3351,_0x1f2c28,_0x1fbdb9){const _0x517ed1=_0x2cc1b3;return _0x4a3351&&_0x1f2c28[_0x517ed1(0x209)]?_0x4d50c1[_0x517ed1(0x171)](x,_0x4d622a,_0x1010fe,_0x4a3351,_0x1f2c28,_0x1fbdb9):_0x4a3351?_0x4d50c1[_0x517ed1(0x171)](k,_0x4d622a,_0x1010fe,_0x4a3351,_0x1fbdb9):_0x1f2c28['length']?_0x4d50c1[_0x517ed1(0x171)]($,_0x4d622a,_0x1010fe,_0x1f2c28,_0x1fbdb9):_0x4d50c1[_0x517ed1(0x171)](ce,_0x4d622a,_0x1010fe,_0x1fbdb9);}var Ps=Object[_0x2cc1b3(0x1b2)],Us=Object['getOwnPropertyDescriptor'],Ce=(_0x3a5d16,_0xb51974,_0x1c5a9e,_0x13de8c)=>{const _0x7b2e94=_0x2cc1b3;for(var _0x329add=_0x13de8c>0x1?void 0x0:_0x13de8c?Us(_0xb51974,_0x1c5a9e):_0xb51974,_0x5d4267=_0x3a5d16[_0x7b2e94(0x209)]-0x1,_0x1023f7;_0x5d4267>=0x0;_0x5d4267--)(_0x1023f7=_0x3a5d16[_0x5d4267])&&(_0x329add=(_0x13de8c?_0x1023f7(_0xb51974,_0x1c5a9e,_0x329add):_0x1023f7(_0x329add))||_0x329add);return _0x13de8c&&_0x329add&&Ps(_0xb51974,_0x1c5a9e,_0x329add),_0x329add;},I=(_0x50115b,_0x359b0e)=>(_0x38e277,_0x38f32f)=>_0x359b0e(_0x38e277,_0x38f32f,_0x50115b);exports[_0x2cc1b3(0x305)]=class extends o[_0x2cc1b3(0x516)]{constructor(_0x283233,_0x1f71f4,_0x10c5c0){const _0x35c0d0=_0x2cc1b3;super(),u(this,_0x35c0d0(0x339),new Map()),u(this,_0x35c0d0(0x403),new v['Subject']()),(this['_injector']=_0x283233,this['_collabSessionService']=_0x1f71f4,this[_0x35c0d0(0x46f)]=_0x10c5c0,this[_0x35c0d0(0x4e1)]());}['dispose'](){const _0x42d1a5=_0x2cc1b3;super['dispose'](),this[_0x42d1a5(0x339)][_0x42d1a5(0x34c)](_0x4bf42e=>_0x4bf42e[_0x42d1a5(0x22c)]()),this[_0x42d1a5(0x339)][_0x42d1a5(0x1f8)]();}['getCollabEntity'](_0x4c04ac){const _0x39cf99=_0x2cc1b3;var _0x14c29a;return(_0x14c29a=this[_0x39cf99(0x339)][_0x39cf99(0x3ba)](_0x4c04ac))!=null?_0x14c29a:null;}[_0x2cc1b3(0x1a6)](_0x464a2e){const _0x205191=_0x2cc1b3,_0x156834=this[_0x205191(0x1f0)](_0x464a2e);return _0x156834?v['of'](_0x156834):this[_0x205191(0x403)][_0x205191(0x478)](C[_0x205191(0x277)](_0x50699b=>_0x50699b[_0x205191(0x3ee)]===_0x464a2e));}[_0x2cc1b3(0x4e1)](){const _0x371c0d=_0x2cc1b3;this[_0x371c0d(0x46f)][_0x371c0d(0x25b)](o[_0x371c0d(0x271)][_0x371c0d(0x3a1)])[_0x371c0d(0x478)](v[_0x371c0d(0x1ef)](this[_0x371c0d(0x23e)]),C[_0x371c0d(0x33e)](0x10))[_0x371c0d(0x4c8)](async _0x2c7967=>{const _0x2e6f50=_0x371c0d,_0x5d2112=_0x2c7967[_0x2e6f50(0x15a)](),_0x42d65e=await this[_0x2e6f50(0x1dd)](_0x5d2112,j['UNIVER_SHEET']);this['_entities'][_0x2e6f50(0x1b8)](_0x5d2112,_0x42d65e);}),this['_univerInstanceService'][_0x371c0d(0x25b)](o[_0x371c0d(0x271)]['UNIVER_DOC'])[_0x371c0d(0x478)](v['takeUntil'](this['dispose$']),C['delay'](0x10))['pipe'](C[_0x371c0d(0x277)](_0x86b20c=>!_0x86b20c[_0x371c0d(0x15a)]()[_0x371c0d(0x521)]('__')))['subscribe'](async _0x25e4f5=>{const _0x300d61=_0x371c0d,_0x49c4b8=_0x25e4f5[_0x300d61(0x15a)](),_0x5e4a76=await this[_0x300d61(0x1dd)](_0x49c4b8,j[_0x300d61(0x40b)]);this['_entities'][_0x300d61(0x1b8)](_0x49c4b8,_0x5e4a76);}),v[_0x371c0d(0x3e0)](this[_0x371c0d(0x46f)][_0x371c0d(0x36a)](o[_0x371c0d(0x271)][_0x371c0d(0x3a1)]),this[_0x371c0d(0x46f)][_0x371c0d(0x36a)](o['UniverInstanceType'][_0x371c0d(0x40b)]))[_0x371c0d(0x478)](v[_0x371c0d(0x1ef)](this['dispose$']))['subscribe'](_0x28c899=>{const _0x4a4e72=_0x371c0d,_0x53f52a=_0x28c899[_0x4a4e72(0x15a)](),_0x2cc30d=this[_0x4a4e72(0x339)]['get'](_0x53f52a);_0x2cc30d&&(_0x2cc30d[_0x4a4e72(0x22c)](),this[_0x4a4e72(0x339)][_0x4a4e72(0x386)](_0x53f52a));});}async['_startCollaboration'](_0xae373a,_0x9e98e2){const _0x14c977=_0x2cc1b3,_0xc0a86a=await this[_0x14c977(0x1c7)][_0x14c977(0x33b)](_0xae373a),_0x10d882=this[_0x14c977(0x3fe)][_0x14c977(0x171)](this[_0x14c977(0x2b5)](_0x9e98e2),_0xae373a,_0x9e98e2,_0xc0a86a);return await _0x10d882['init'](),this['_entityInit$']['next'](_0x10d882),_0x10d882;}['_getCtorByUniverType'](_0xaa4f8d){const _0x5213f1=_0x2cc1b3;switch(_0xaa4f8d){case j[_0x5213f1(0x40b)]:return ye;case j['UNIVER_SHEET']:return exports[_0x5213f1(0x145)];default:throw new Error(_0x5213f1(0x4e0)+_0xaa4f8d);}}},exports['CollaborationController']=Ce([o[_0x2cc1b3(0x303)](o['LifecycleStages'][_0x2cc1b3(0x4b2)],exports['CollaborationController']),I(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),I(0x1,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x14e)])),I(0x2,o[_0x2cc1b3(0x298)])],exports[_0x2cc1b3(0x305)]);let fe=class extends o[_0x2cc1b3(0x516)]{constructor(_0x5adf97,_0x7c1107,_0x1462e4,_0x2f438b,_0x203c75,_0x415784,_0x52595a,_0x1a1141,_0x1a5d6c,_0x1e73ac,_0x452ce2,_0x20122e,_0x2bd2ca){const _0x456240=_0x2cc1b3;super(),u(this,_0x456240(0x393),new v[(_0x456240(0x445))](null)),u(this,'state$',this[_0x456240(0x393)]['asObservable']()),u(this,_0x456240(0x165)),u(this,_0x456240(0x30d),!0x1),u(this,_0x456240(0x4ff),this[_0x456240(0x344)]['pipe'](C['map'](_0x5bec3d=>_0x5bec3d?_0x5bec3d[_0x456240(0x4c5)]:D[_0x456240(0x38a)]),C[_0x456240(0x345)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x456240(0x2b1),[]),(this['unitID']=_0x5adf97,this[_0x456240(0x4d3)]=_0x7c1107,this[_0x456240(0x479)]=_0x1462e4,this['_injector']=_0x2f438b,this['_localCacheService']=_0x203c75,this[_0x456240(0x416)]=_0x415784,this[_0x456240(0x33c)]=_0x52595a,this[_0x456240(0x341)]=_0x1a1141,this['_logService']=_0x1a5d6c,this[_0x456240(0x466)]=_0x1e73ac,this[_0x456240(0x475)]=_0x452ce2,this['_permissionService']=_0x20122e,this[_0x456240(0x150)]=_0x2bd2ca);}get[_0x2cc1b3(0x2bb)](){const _0xf96e01=_0x2cc1b3;return this[_0xf96e01(0x165)];}async[_0x2cc1b3(0x3d0)](){const _0x514279=_0x2cc1b3;if(this[_0x514279(0x2bb)])throw new Error(_0x514279(0x23d));await this[_0x514279(0x4e1)]();}[_0x2cc1b3(0x287)](){const _0x14178c=_0x2cc1b3;return this[_0x14178c(0x30d)]=!0x0,o[_0x14178c(0x168)](()=>{const _0x2c9e30=_0x14178c;this[_0x2c9e30(0x30d)]=!0x1,this[_0x2c9e30(0x2ff)]();});}[_0x2cc1b3(0x4ae)](_0x33824a){const _0x1f7075=_0x2cc1b3;this[_0x1f7075(0x165)]=_0x33824a,this['_state$']['next'](_0x33824a);}async['_init'](){const _0x164f4f=_0x2cc1b3;var _0x235adc;return this[_0x164f4f(0x4ae)](await this[_0x164f4f(0x1c5)]()),this['_singleActiveUnitService']&&((_0x235adc=this['_singleActiveUnitService'])==null||_0x235adc[_0x164f4f(0x1ab)](this['unitID']),this[_0x164f4f(0x4be)](o['toDisposable'](this[_0x164f4f(0x150)][_0x164f4f(0x1fb)](this[_0x164f4f(0x3ee)])['subscribe'](_0xa9f70f=>{const _0x20eb2f=_0x164f4f;this[_0x20eb2f(0x402)]['debug'](_0x20eb2f(0x31e),_0x20eb2f(0x3cd),_0xa9f70f),_0xa9f70f===Ct[_0x20eb2f(0x194)]?(this[_0x20eb2f(0x475)]['show']({'content':this[_0x20eb2f(0x33c)]['t'](_0x20eb2f(0x3f6)),'type':Q['MessageType'][_0x20eb2f(0x3b1)]}),this['_permissionService'][_0x20eb2f(0x1e8)](new p[(_0x20eb2f(0x33a))](this[_0x20eb2f(0x3ee)])['id'],!0x1)):this[_0x20eb2f(0x1fd)][_0x20eb2f(0x1e8)](new p[(_0x20eb2f(0x33a))](this[_0x20eb2f(0x3ee)])['id'],!0x0);})))),this[_0x164f4f(0x4be)](o[_0x164f4f(0x168)](this[_0x164f4f(0x479)]['sessionStatus$']['subscribe'](_0x1966b5=>{const _0x4b65c6=_0x164f4f;_0x1966b5===G[_0x4b65c6(0x302)]?this[_0x4b65c6(0x51e)]():_0x1966b5===G[_0x4b65c6(0x38a)]&&this[_0x4b65c6(0x41f)]();}))),this['disposeWithMe'](o[_0x164f4f(0x168)](this[_0x164f4f(0x479)][_0x164f4f(0x4cf)]['subscribe'](_0x3b8231=>{const _0x471740=_0x164f4f;try{switch(_0x3b8231[_0x471740(0x266)]){case _[_0x471740(0x173)][_0x471740(0x353)]:{this['_onRemoteChangeset'](_[_0x471740(0x31b)](_0x3b8231[_0x471740(0x1c0)]));break;}case _[_0x471740(0x173)][_0x471740(0x4fe)]:{this[_0x471740(0x37a)](_0x3b8231[_0x471740(0x1c0)]);break;}case _[_0x471740(0x173)][_0x471740(0x2d4)]:{this[_0x471740(0x4e4)]();break;}case _[_0x471740(0x173)][_0x471740(0x2c4)]:{this['_onFetchMissResult'](_0x3b8231[_0x471740(0x1c0)][_0x471740(0x37d)]['map'](_0x56235b=>_[_0x471740(0x31b)](_0x56235b)));break;}case _[_0x471740(0x173)][_0x471740(0x172)]:this[_0x471740(0x4e4)]({'isPermissionRej':!0x0});}}catch(_0x1fe407){throw console[_0x471740(0x307)]('Error\x20on\x20receiving\x20event',_0x1fe407),_0x1fe407;}}))),this[_0x164f4f(0x165)];}[_0x2cc1b3(0x28f)](){const _0x2a1f12=_0x2cc1b3;this[_0x2a1f12(0x2c2)]=!0x1;}['_lockTransition'](){const _0x15d5e7=_0x2cc1b3;if(this[_0x15d5e7(0x2c2)])throw new Error(_0x15d5e7(0x20e));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x4ef072){const _0xdfe9c=_0x2cc1b3;this[_0xdfe9c(0x3d9)](),this[_0xdfe9c(0x4ae)](this['_state']['appendMutation'](_0x4ef072)),this[_0xdfe9c(0x28f)]();}[_0x2cc1b3(0x51c)](_0x1954d9){const _0x3db2e6=_0x2cc1b3;if(!(_0x1954d9['revision']<=this[_0x3db2e6(0x341)][_0x3db2e6(0x295)](this[_0x3db2e6(0x3ee)]))){if(this[_0x3db2e6(0x30d)]){this[_0x3db2e6(0x2b1)][_0x3db2e6(0x4bd)](_0x1954d9);return;}this[_0x3db2e6(0x2a5)](_0x1954d9);}}[_0x2cc1b3(0x2ff)](){const _0xcd7a5a=_0x2cc1b3;this[_0xcd7a5a(0x2b1)][_0xcd7a5a(0x34c)](_0x2aeff4=>this[_0xcd7a5a(0x2a5)](_0x2aeff4)),this[_0xcd7a5a(0x2b1)]=[];}[_0x2cc1b3(0x2a5)](_0x50365f){const _0xc9a63f=_0x2cc1b3,_0x341bd2=this[_0xc9a63f(0x416)][_0xc9a63f(0x158)]['fetchThroughInterceptors'](this['_compressMutationService'][_0xc9a63f(0x158)][_0xc9a63f(0x24f)]()[_0xc9a63f(0x284)])(_0x50365f['mutations'],null)||_0x50365f[_0xc9a63f(0x1d1)],_0x322f11={..._0x50365f,'mutations':_0x341bd2};this[_0xc9a63f(0x3d9)](),this['_updateState'](this[_0xc9a63f(0x165)]['onRemoteChangeset'](_0x322f11)),this[_0xc9a63f(0x28f)]();}[_0x2cc1b3(0x37a)](_0x9fd863){const _0x242ef7=_0x2cc1b3;this[_0x242ef7(0x3d9)](),this['_updateState'](this[_0x242ef7(0x165)][_0x242ef7(0x174)](_0x9fd863)),this[_0x242ef7(0x28f)]();}[_0x2cc1b3(0x4e4)](_0x96147f){const _0xadf614=_0x2cc1b3;this[_0xadf614(0x3d9)](),this['_updateState'](this[_0xadf614(0x165)][_0xadf614(0x320)](_0x96147f)),this[_0xadf614(0x28f)]();}['_onFetchMissResult'](_0x3cd078){const _0x3912a6=_0x2cc1b3;if(!(this[_0x3912a6(0x165)]instanceof H))throw new TypeError(_0x3912a6(0x2ca));const _0x286893=_0x3cd078[_0x3912a6(0x2a8)](_0x1d2e24=>{const _0x22faab=_0x3912a6,_0x16bff2=this[_0x22faab(0x416)][_0x22faab(0x158)][_0x22faab(0x49f)](this[_0x22faab(0x416)][_0x22faab(0x158)][_0x22faab(0x24f)]()[_0x22faab(0x284)])(_0x1d2e24[_0x22faab(0x1d1)],null)||_0x1d2e24[_0x22faab(0x1d1)];return{..._0x1d2e24,'mutations':_0x16bff2};});this[_0x3912a6(0x3d9)](),this[_0x3912a6(0x4ae)](this['_state']['onMissedChangesetFetched'](_0x286893)),this['_unlockTransition']();}['_toggleOffline'](){const _0x5df739=_0x2cc1b3;this['_lockTransition'](),this[_0x5df739(0x4ae)](this[_0x5df739(0x165)][_0x5df739(0x4f6)]()),this[_0x5df739(0x28f)]();}[_0x2cc1b3(0x51e)](){const _0x1efec3=_0x2cc1b3;this[_0x1efec3(0x3d9)](),this[_0x1efec3(0x4ae)](this[_0x1efec3(0x165)]['toggleOnline']()),this[_0x1efec3(0x28f)]();}async[_0x2cc1b3(0x1c5)](){return new Promise(_0x3f8d1d=>{const _0x2ed59c=_0x4b8d;this['_session'][_0x2ed59c(0x380)][_0x2ed59c(0x478)](C['take'](0x1))[_0x2ed59c(0x4c8)](async _0x300ad7=>{const _0x563471=_0x2ed59c;_0x3f8d1d(await this[_0x563471(0x472)](_0x300ad7===G[_0x563471(0x302)]));});});}['_createHandler'](){const _0x54b76c=this['unitID'];return{'onStateChange':(_0x133dbf,_0x196698)=>{const _0x2aa529=_0x4b8d;if(_0x133dbf!==this[_0x2aa529(0x165)])throw new Error(_0x2aa529(0x23a)+_0x133dbf[_0x2aa529(0x4c5)]+_0x2aa529(0x366)+_0x196698[_0x2aa529(0x4c5)]+_0x2aa529(0x361)+this[_0x2aa529(0x165)]['status']);this[_0x2aa529(0x4ae)](_0x196698);},'onSendChangeset':_0x3a5ee4=>{const _0x5c69b7=_0x4b8d,_0x502d11={'eventID':_['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x3a5ee4[_0x5c69b7(0x3ee)],'unitType':this[_0x5c69b7(0x4d3)],'changeset':_0x3a5ee4,'memberID':this[_0x5c69b7(0x479)][_0x5c69b7(0x3a8)]()}};this[_0x5c69b7(0x479)][_0x5c69b7(0x377)](_0x502d11,this[_0x5c69b7(0x3ee)]);},'onMissingChangesets':({from:_0x4f88fe,to:_0x5c4b55})=>{const _0x54c7bd=_0x4b8d;this[_0x54c7bd(0x402)]['debug'](_0x54c7bd(0x31e),_0x54c7bd(0x432)+_0x4f88fe+_0x54c7bd(0x335)+_0x5c4b55);const _0x34f4fd={'eventID':_[_0x54c7bd(0x173)][_0x54c7bd(0x4ed)],'data':{'unitID':_0x54b76c,'unitType':this[_0x54c7bd(0x4d3)],'from':_0x4f88fe,'to':_0x5c4b55}};this[_0x54c7bd(0x479)][_0x54c7bd(0x377)](_0x34f4fd,this[_0x54c7bd(0x3ee)]);}};}async[_0x2cc1b3(0x472)](_0x3dcf16){const _0x5a5c38=_0x2cc1b3;var _0x2697e6,_0x3d6060;const _0x46cb36=await this[_0x5a5c38(0x359)]['loadOfflineData'](this[_0x5a5c38(0x3ee)]),_0x31123e=(_0x2697e6=_0x46cb36==null?void 0x0:_0x46cb36[_0x5a5c38(0x1d1)])!=null?_0x2697e6:[],_0x19acb7=(_0x3d6060=_0x46cb36==null?void 0x0:_0x46cb36[_0x5a5c38(0x18f)])!=null?_0x3d6060:null,_0xdaed5c=this[_0x5a5c38(0x3ee)];try{this[_0x5a5c38(0x2d7)](_0x19acb7,_0x31123e);}catch(_0x2ad05e){this['_logService'][_0x5a5c38(0x307)](_0x2ad05e);}const _0x119bc0=this[_0x5a5c38(0x486)]();if(_0x3dcf16){const _0x9f36f6=bt(this[_0x5a5c38(0x3fe)],_0xdaed5c,this[_0x5a5c38(0x4d3)],_0x19acb7,_0x31123e,_0x119bc0);return _0x9f36f6 instanceof $?_0x9f36f6[_0x5a5c38(0x308)]():(_0x9f36f6 instanceof x||_0x9f36f6 instanceof k)&&_0x9f36f6[_0x5a5c38(0x28c)](),_0x9f36f6;}return this[_0x5a5c38(0x3fe)][_0x5a5c38(0x171)](F,_0xdaed5c,this[_0x5a5c38(0x4d3)],_0x19acb7,_0x31123e,_0x119bc0);}['_replayCachedMutations'](_0xe7121a,_0x4e71f8){const _0x287eec=_0x2cc1b3;var _0x58248b,_0x548ff6;const _0x1f5f55=this[_0x287eec(0x416)][_0x287eec(0x158)][_0x287eec(0x49f)](this[_0x287eec(0x416)][_0x287eec(0x158)][_0x287eec(0x24f)]()[_0x287eec(0x284)]);(_0x58248b=_0x1f5f55((_0xe7121a==null?void 0x0:_0xe7121a['mutations'])||[],null))==null||_0x58248b[_0x287eec(0x34c)](_0x48d45f=>this[_0x287eec(0x466)][_0x287eec(0x186)](_0x48d45f['id'],_0x48d45f[_0x287eec(0x19e)])),(_0x548ff6=_0x1f5f55(_0x4e71f8||[],null))==null||_0x548ff6['forEach'](_0x1f6c2b=>this[_0x287eec(0x466)]['executeCommand'](_0x1f6c2b['id'],_0x1f6c2b[_0x287eec(0x19e)]));}};fe=Ce([I(0x3,o['Inject'](o[_0x2cc1b3(0x2b3)])),I(0x4,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),I(0x5,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x425)])),I(0x6,o['Inject'](o[_0x2cc1b3(0x2f6)])),I(0x7,o['Inject'](_[_0x2cc1b3(0x4aa)])),I(0x8,o['ILogService']),I(0x9,o[_0x2cc1b3(0x1cf)]),I(0xa,L[_0x2cc1b3(0x280)]),I(0xb,o[_0x2cc1b3(0x42e)]),I(0xc,o[_0x2cc1b3(0x2c3)](pe))],fe);let ye=class extends fe{constructor(_0x19a5b3,_0x43a3c3,_0x8952cd,_0x40e31a,_0x35d220,_0x449dad,_0x5cd823,_0x3c96d6,_0x57d15c,_0x2e3581,_0x51780c,_0x16e55a,_0x48ca7f,_0x5b334a,_0x9d30f8,_0x22b4f1,_0x4daba7){const _0x429c9a=_0x2cc1b3;super(_0x19a5b3,_0x43a3c3,_0x8952cd,_0x40e31a,_0x35d220,_0x449dad,_0x5cd823,_0x3c96d6,_0x48ca7f,_0x5b334a,_0x9d30f8,_0x22b4f1,_0x4daba7),this[_0x429c9a(0x3ee)]=_0x19a5b3,this[_0x429c9a(0x3e9)]=_0x43a3c3,this['session']=_0x8952cd,this[_0x429c9a(0x2f3)]=_0x57d15c,this[_0x429c9a(0x356)]=_0x2e3581,this[_0x429c9a(0x3f3)]=_0x51780c,this[_0x429c9a(0x25e)]=_0x16e55a;}[_0x2cc1b3(0x486)](){const _0x511584=_0x2cc1b3,_0x4ad9ce=super[_0x511584(0x486)]();return _0x4ad9ce[_0x511584(0x4d0)]=_0x561714=>this['_docTransformIMECacheService'][_0x511584(0x327)](_0x561714),_0x4ad9ce[_0x511584(0x3d6)]=_0x49188d=>this[_0x511584(0x3f3)][_0x511584(0x2e8)](_0x49188d),_0x4ad9ce[_0x511584(0x314)]=_0x27458b=>this[_0x511584(0x25e)]['syncEditingCollabCursor'](_0x27458b),_0x4ad9ce[_0x511584(0x258)]=_0xf24265=>this[_0x511584(0x356)][_0x511584(0x457)](_0xf24265),_0x4ad9ce;}async[_0x2cc1b3(0x4e1)](){const _0x349bb4=_0x2cc1b3,_0x5da2cb=await super[_0x349bb4(0x4e1)]();return this[_0x349bb4(0x4be)](this[_0x349bb4(0x466)]['onCommandExecuted']((_0x300bcf,_0x36006d)=>{const _0x1a051b=_0x349bb4;if(_0x300bcf[_0x1a051b(0x3e9)]!==o[_0x1a051b(0x423)][_0x1a051b(0x438)]||_0x36006d!=null&&_0x36006d['fromCollab']||_0x36006d!=null&&_0x36006d[_0x1a051b(0x379)])return;const _0x1285f8=_0x300bcf[_0x1a051b(0x19e)];if((_0x1285f8==null?void 0x0:_0x1285f8[_0x1a051b(0x440)])!==this[_0x1a051b(0x3ee)])return;let _0x34b048=_0x300bcf;if(_0x34b048['id']===P[_0x1a051b(0x321)]['id']){const _0x5e2882=_0x34b048['params'];_0x34b048={'id':P['RichTextEditingMutation']['id'],'type':o[_0x1a051b(0x423)]['MUTATION'],'params':{'unitId':_0x5e2882['unitId'],'actions':_0x5e2882['actions'],'textRanges':null}};}const _0xcf4a8a=this[_0x1a051b(0x416)][_0x1a051b(0x158)][_0x1a051b(0x49f)](this['_compressMutationService'][_0x1a051b(0x158)][_0x1a051b(0x24f)]()[_0x1a051b(0x362)])([_0x34b048],null)||[_0x34b048];this[_0x1a051b(0x464)](_0xcf4a8a[0x0]);})),_0x5da2cb;}};ye=Ce([I(0x3,o['Inject'](o['Injector'])),I(0x4,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),I(0x5,o['Inject'](_[_0x2cc1b3(0x425)])),I(0x6,o['Inject'](o[_0x2cc1b3(0x2f6)])),I(0x7,o[_0x2cc1b3(0x333)](_['RevisionService'])),I(0x8,o[_0x2cc1b3(0x333)](P[_0x2cc1b3(0x451)])),I(0x9,o[_0x2cc1b3(0x333)](ve)),I(0xa,o['Inject'](me)),I(0xb,o['Inject'](Fe)),I(0xc,o[_0x2cc1b3(0x4ba)]),I(0xd,o[_0x2cc1b3(0x1cf)]),I(0xe,L[_0x2cc1b3(0x280)]),I(0xf,o[_0x2cc1b3(0x42e)]),I(0x10,o[_0x2cc1b3(0x2c3)](pe))],ye),exports[_0x2cc1b3(0x145)]=class extends fe{constructor(_0xfac06a,_0x173d25,_0x43a5c8,_0x1f19b6,_0x211cbb,_0x50274a,_0x1c4639,_0x4d0b5d,_0x1de710,_0x144573,_0x57580a,_0x2ceb18,_0x189f5c,_0x24c0d1){const _0x517590=_0x2cc1b3;super(_0xfac06a,_0x173d25,_0x43a5c8,_0x1f19b6,_0x211cbb,_0x50274a,_0x1c4639,_0x4d0b5d,_0x144573,_0x57580a,_0x2ceb18,_0x189f5c,_0x24c0d1),this[_0x517590(0x3ee)]=_0xfac06a,this[_0x517590(0x3e9)]=_0x173d25,this[_0x517590(0x301)]=_0x43a5c8,this['_sheetTransformSelectionsService']=_0x1de710;}[_0x2cc1b3(0x486)](){const _0x2958d7=_0x2cc1b3,_0x1e3b6c=super[_0x2958d7(0x486)]();return _0x1e3b6c[_0x2958d7(0x3d6)]=_0x2516f2=>this[_0x2958d7(0x3f0)][_0x2958d7(0x2e8)](_0x2516f2),_0x1e3b6c;}async['_init'](){const _0x22bf19=_0x2cc1b3,_0x3cfb27=await super['_init']();return this[_0x22bf19(0x4be)](this['_commandService']['onCommandExecuted']((_0x479202,_0x1acd17)=>{const _0x4594e3=_0x22bf19;if(_0x479202[_0x4594e3(0x3e9)]!==o[_0x4594e3(0x423)][_0x4594e3(0x438)]||_0x1acd17!=null&&_0x1acd17[_0x4594e3(0x4ee)]||_0x1acd17!=null&&_0x1acd17['onlyLocal'])return;const _0xf62b20=_0x479202[_0x4594e3(0x19e)];if((_0xf62b20==null?void 0x0:_0xf62b20[_0x4594e3(0x440)])!==this[_0x4594e3(0x3ee)])return;const _0xa7c4be=_0x479202,_0x208f43=this[_0x4594e3(0x416)][_0x4594e3(0x158)][_0x4594e3(0x49f)](this['_compressMutationService'][_0x4594e3(0x158)]['getInterceptPoints']()[_0x4594e3(0x362)])([_0xa7c4be],null)||[_0xa7c4be];this[_0x4594e3(0x464)](_0x208f43[0x0]);})),_0x3cfb27;}},exports[_0x2cc1b3(0x145)]=Ce([I(0x3,o[_0x2cc1b3(0x333)](o['Injector'])),I(0x4,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),I(0x5,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x425)])),I(0x6,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)])),I(0x7,o[_0x2cc1b3(0x333)](_['RevisionService'])),I(0x8,o[_0x2cc1b3(0x333)](ge)),I(0x9,o[_0x2cc1b3(0x4ba)]),I(0xa,o[_0x2cc1b3(0x1cf)]),I(0xb,L[_0x2cc1b3(0x280)]),I(0xc,o[_0x2cc1b3(0x42e)]),I(0xd,o[_0x2cc1b3(0x2c3)](pe))],exports[_0x2cc1b3(0x145)]);const tt=[_0x2cc1b3(0x3c6),_0x2cc1b3(0x1ee),_0x2cc1b3(0x46e),_0x2cc1b3(0x26c),'blue400',_0x2cc1b3(0x2a1)];class Ve extends o[_0x2cc1b3(0x460)]{constructor(){const _0x3799dd=_0x2cc1b3;super(...arguments),u(this,_0x3799dd(0x504),new Map()),u(this,_0x3799dd(0x17c),0x0);}['assignAColorForMemberID'](_0x85b00d){const _0x5336fc=_0x2cc1b3;if(this[_0x5336fc(0x504)]['has'](_0x85b00d))return this[_0x5336fc(0x504)]['get'](_0x85b00d);const _0x15a32e=tt[this[_0x5336fc(0x17c)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%tt[_0x5336fc(0x209)],this[_0x5336fc(0x504)][_0x5336fc(0x1b8)](_0x85b00d,_0x15a32e),_0x15a32e;}}var Ms=Object[_0x2cc1b3(0x1b2)],ws=Object['getOwnPropertyDescriptor'],ys=(_0x38f5df,_0x5fc4b6,_0xd0e2e4,_0x398501)=>{for(var _0x10da2a=_0x398501>0x1?void 0x0:_0x398501?ws(_0x5fc4b6,_0xd0e2e4):_0x5fc4b6,_0x10d4b9=_0x38f5df['length']-0x1,_0x5a4c11;_0x10d4b9>=0x0;_0x10d4b9--)(_0x5a4c11=_0x38f5df[_0x10d4b9])&&(_0x10da2a=(_0x398501?_0x5a4c11(_0x5fc4b6,_0xd0e2e4,_0x10da2a):_0x5a4c11(_0x10da2a))||_0x10da2a);return _0x398501&&_0x10da2a&&Ms(_0x5fc4b6,_0xd0e2e4,_0x10da2a),_0x10da2a;},q=(_0x38b6fd,_0x4c2547)=>(_0x3eade4,_0xd908e5)=>_0x4c2547(_0x3eade4,_0xd908e5,_0x38b6fd);const Ns=0x12c,Ls=0x64,As=()=>{let _0x5fc52f=[],_0x283a68=!0x1;return _0x2c8c8a=>{_0x5fc52f['push'](_0x2c8c8a),_0x283a68||(_0x283a68=!0x0,setTimeout(()=>{const _0xef2d03=_0x4b8d;_0x5fc52f[_0xef2d03(0x34c)](_0x12edda=>_0x12edda()),_0x5fc52f=[],_0x283a68=!0x1;}));};};let Ne=class extends o['RxDisposable']{constructor(_0x459907,_0xc1c5f0,_0x55412a,_0x5a6fea,_0x330d43,_0x4f68ae,_0x37538a,_0x3d836f){const _0x2b00bf=_0x2cc1b3;super(),u(this,'_online',!0x1),u(this,_0x2b00bf(0x4e1),!0x1),u(this,'_cursorInfo$',new v[(_0x2b00bf(0x445))](new Map())),u(this,_0x2b00bf(0x312),this[_0x2b00bf(0x267)][_0x2b00bf(0x368)]()),u(this,_0x2b00bf(0x3e7),new v[(_0x2b00bf(0x445))]([])),u(this,'roomMembers$',this[_0x2b00bf(0x3e7)][_0x2b00bf(0x478)](v[_0x2b00bf(0x2c6)](Ns))),u(this,_0x2b00bf(0x2a6),$e((_0x129479,_0x438c9a)=>{const _0x396db9=_0x2b00bf,_0x19af44={'eventID':_['CollaborationEvent'][_0x396db9(0x49a)],'data':{'unitID':this[_0x396db9(0x3ee)],'memberID':this['_session']['getMemberID'](),'selection':Ye['serializeRangeWithSheet'](_0x129479,_0x438c9a[_0x396db9(0x35a)])}};this[_0x396db9(0x479)][_0x396db9(0x377)](_0x19af44,this[_0x396db9(0x3ee)]);},Ls)),(this[_0x2b00bf(0x3ee)]=_0x459907,this[_0x2b00bf(0x479)]=_0xc1c5f0,this[_0x2b00bf(0x3fe)]=_0x55412a,this[_0x2b00bf(0x1ac)]=_0x5a6fea,this[_0x2b00bf(0x3ab)]=_0x330d43,this[_0x2b00bf(0x46f)]=_0x4f68ae,this[_0x2b00bf(0x466)]=_0x37538a,this[_0x2b00bf(0x406)]=_0x3d836f);}get[_0x2cc1b3(0x1f1)](){const _0xc2c069=_0x2cc1b3;return this['_cursorInfo$'][_0xc2c069(0x14c)]();}get['roomMembers'](){const _0x3d9474=_0x2cc1b3;return this[_0x3d9474(0x3e7)][_0x3d9474(0x14c)]();}[_0x2cc1b3(0x22c)](){const _0xbccdba=_0x2cc1b3;super['dispose'](),this[_0xbccdba(0x267)]['next'](new Map()),this['_cursorInfo$'][_0xbccdba(0x491)](),this[_0xbccdba(0x3e7)][_0xbccdba(0x1a2)]([]),this[_0xbccdba(0x3e7)][_0xbccdba(0x491)]();}['init'](){const _0x415c8e=_0x2cc1b3;this[_0x415c8e(0x4e1)]||(this[_0x415c8e(0x4e1)]=!0x0,this[_0x415c8e(0x479)][_0x415c8e(0x380)][_0x415c8e(0x478)](v['takeUntil'](this[_0x415c8e(0x23e)]))[_0x415c8e(0x4c8)](_0x3537a5=>{const _0x266b35=_0x415c8e;_0x3537a5===G['ONLINE']?this[_0x266b35(0x51e)]():this['_toggleOffline']();}),this['_session'][_0x415c8e(0x4cf)][_0x415c8e(0x478)](v['takeUntil'](this[_0x415c8e(0x23e)]))[_0x415c8e(0x4c8)](_0x2732f6=>{const _0x3e2794=_0x415c8e,_0x3584f5=_0x2732f6[_0x3e2794(0x266)];_0x3584f5===_[_0x3e2794(0x173)][_0x3e2794(0x49a)]&&this[_0x3e2794(0x1f5)](_0x2732f6),_0x3584f5===_['CollaborationEvent'][_0x3e2794(0x21e)]&&this[_0x3e2794(0x28d)](_0x2732f6);}),this[_0x415c8e(0x450)](),this[_0x415c8e(0x4be)](this[_0x415c8e(0x466)][_0x415c8e(0x490)](_0x2cf9fb=>{const _0x3f78cf=_0x415c8e;if(this[_0x3f78cf(0x45d)]&&_0x2cf9fb['id']===p[_0x3f78cf(0x326)]['id']&&_0x2cf9fb[_0x3f78cf(0x19e)][_0x3f78cf(0x440)]===this[_0x3f78cf(0x3ee)]){const _0x324884=_0x2cf9fb[_0x3f78cf(0x19e)];this[_0x3f78cf(0x2a6)](_0x324884[_0x3f78cf(0x2a9)],_0x324884[_0x3f78cf(0x4a3)][0x0]);}})));}[_0x2cc1b3(0x1f5)](_0x9e1c39){const _0x5dd9ab=_0x2cc1b3;var _0x566363,_0x110504;const {memberID:_0x3d2a0e,selection:_0x6048ef}=_0x9e1c39[_0x5dd9ab(0x1c0)],{sheetName:_0x2fab4b,range:_0x1d41fc}=Ye[_0x5dd9ab(0x2ac)](_0x6048ef),_0x5a0d63={'name':(_0x110504=(_0x566363=this[_0x5dd9ab(0x3ab)][_0x5dd9ab(0x523)](this['unitID'],_0x3d2a0e))==null?void 0x0:_0x566363['name'])!=null?_0x110504:_0x5dd9ab(0x193),'range':this['_getMergeRange'](_0x2fab4b,_0x1d41fc),'sheetID':_0x2fab4b,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x3d2a0e),'selection':_0x6048ef},_0x34d2ad=this[_0x5dd9ab(0x1f1)];_0x34d2ad['set'](_0x3d2a0e,_0x5a0d63),this[_0x5dd9ab(0x267)][_0x5dd9ab(0x1a2)](_0x34d2ad);}[_0x2cc1b3(0x28d)](_0x9b6c98){const _0x54f0c9=_0x2cc1b3,{memberID:_0x30f450}=_0x9b6c98[_0x54f0c9(0x1c0)],_0x1b60ab=this[_0x54f0c9(0x1f1)];_0x1b60ab['delete'](_0x30f450),this['_cursorInfo$'][_0x54f0c9(0x1a2)](_0x1b60ab);}[_0x2cc1b3(0x418)](_0x11be95,_0x1a1f18){const _0xcc79b2=_0x2cc1b3;var _0x2f2db6,_0x466bcf;const _0x54d887=(_0x466bcf=(_0x2f2db6=this[_0xcc79b2(0x46f)][_0xcc79b2(0x219)](this[_0xcc79b2(0x3ee)]))==null?void 0x0:_0x2f2db6[_0xcc79b2(0x4ce)](_0x11be95))==null?void 0x0:_0x466bcf['getMergeData']();return(_0x54d887==null?void 0x0:_0x54d887[_0xcc79b2(0x4da)](_0x1a7912=>o['Rectangle']['contains'](_0x1a7912,_0x1a1f18)))||_0x1a1f18;}[_0x2cc1b3(0x450)](){const _0x56bed2=_0x2cc1b3,_0x31adb3=new o['DisposableCollection'](),_0x2497bb=As(),_0xc34d3=()=>{const _0x1c356a=_0x4b8d;_0x31adb3['dispose']();const _0x33db6b=(_0x2675ac,_0x41e7ab,_0xc1e0ea,_0x4d7167)=>{const _0x4700ee=_0x4b8d;let _0x172289=[];switch(_0x2675ac['id']){case p['EffectRefRangId'][_0x4700ee(0x42b)]:{_0x172289=p[_0x4700ee(0x437)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x3c0)]:{_0x172289=p[_0x4700ee(0x1d7)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x227)]:{_0x172289=p[_0x4700ee(0x4e6)](_0x2675ac,_0x4d7167);break;}case p['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x172289=p[_0x4700ee(0x234)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x427)]:{_0x172289=p[_0x4700ee(0x175)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x505)]:{_0x172289=p[_0x4700ee(0x412)](_0x2675ac,_0x4d7167);break;}case p['EffectRefRangId'][_0x4700ee(0x203)]:{_0x172289=p['handleMoveRange'](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)]['RemoveColCommandId']:{_0x172289=p['handleIRemoveCol'](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x30e)]:{_0x172289=p[_0x4700ee(0x228)](_0x2675ac,_0x4d7167);break;}}const _0x599248=p[_0x4700ee(0x446)](_0x172289,_0x4d7167),_0x52b28d=this[_0x4700ee(0x1f1)]['get'](_0x41e7ab);if(_0x52b28d&&_0x599248){const _0x20e417={..._0x52b28d,'range':_0x599248};this[_0x4700ee(0x1f1)]['set'](_0x41e7ab,_0x20e417),_0x2497bb(()=>{const _0x2c01d9=_0x4700ee,_0x51cb5c=this[_0x2c01d9(0x406)]['registerRefRange'](_0x599248,_0x458ea8=>(_0x51cb5c[_0x2c01d9(0x22c)](),_0x33db6b(_0x458ea8,_0x41e7ab,_0xc1e0ea,_0x599248)));_0x31adb3['add'](_0x51cb5c);});}return{'redos':[],'undos':[]};};this[_0x1c356a(0x1f1)][_0x1c356a(0x34c)]((_0x52dfab,_0x43bd7f)=>{const _0x1155e7=_0x1c356a,{range:_0x17270f,sheetID:_0x3cb2eb}=_0x52dfab,_0x3dfdc2=this['_refRangeService']['registerRefRange'](_0x17270f,_0x5950d9=>(_0x3dfdc2[_0x1155e7(0x22c)](),_0x33db6b(_0x5950d9,_0x43bd7f,_0x3cb2eb,_0x17270f)));_0x31adb3[_0x1155e7(0x506)](_0x3dfdc2);});};this[_0x56bed2(0x4be)](o[_0x56bed2(0x168)](this['_cursorInfo$']['subscribe'](()=>{_0xc34d3();})));}[_0x2cc1b3(0x51e)](){const _0x2eb5c4=_0x2cc1b3;var _0x584ace,_0x1bf7f7;if(this[_0x2eb5c4(0x45d)]=!0x0,((_0x584ace=this[_0x2eb5c4(0x46f)][_0x2eb5c4(0x4cd)]())==null?void 0x0:_0x584ace[_0x2eb5c4(0x15a)]())!==this[_0x2eb5c4(0x3ee)])return;const _0x127275=(_0x1bf7f7=this[_0x2eb5c4(0x3fe)][_0x2eb5c4(0x3ba)](p[_0x2eb5c4(0x154)])[_0x2eb5c4(0x431)]())==null?void 0x0:_0x1bf7f7[0x0],_0x524fa1=this[_0x2eb5c4(0x46f)][_0x2eb5c4(0x244)](o[_0x2eb5c4(0x271)][_0x2eb5c4(0x3a1)])['getActiveSheet']();_0x127275&&_0x524fa1&&this[_0x2eb5c4(0x2a6)](_0x524fa1[_0x2eb5c4(0x1ba)](),_0x127275);}['_toggleOffline'](){const _0x184c1f=_0x2cc1b3;this[_0x184c1f(0x45d)]=!0x1;}};Ne=ys([q(0x2,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),q(0x3,o[_0x2cc1b3(0x333)](Ve)),q(0x4,o[_0x2cc1b3(0x333)](Y)),q(0x5,o['IUniverInstanceService']),q(0x6,o[_0x2cc1b3(0x1cf)]),q(0x7,o[_0x2cc1b3(0x333)](p[_0x2cc1b3(0x32f)]))],Ne);var js=Object[_0x2cc1b3(0x1b2)],$s=Object[_0x2cc1b3(0x47b)],xs=(_0x2383ec,_0x20c7af,_0x5abee9,_0x2651be)=>{const _0x2f9bb4=_0x2cc1b3;for(var _0x27e414=_0x2651be>0x1?void 0x0:_0x2651be?$s(_0x20c7af,_0x5abee9):_0x20c7af,_0x205ed0=_0x2383ec[_0x2f9bb4(0x209)]-0x1,_0x1e9cfc;_0x205ed0>=0x0;_0x205ed0--)(_0x1e9cfc=_0x2383ec[_0x205ed0])&&(_0x27e414=(_0x2651be?_0x1e9cfc(_0x20c7af,_0x5abee9,_0x27e414):_0x1e9cfc(_0x27e414))||_0x27e414);return _0x2651be&&_0x27e414&&js(_0x20c7af,_0x5abee9,_0x27e414),_0x27e414;},W=(_0x107f47,_0x57dd3c)=>(_0x33a4a6,_0x2f0997)=>_0x57dd3c(_0x33a4a6,_0x2f0997,_0x107f47);const Hs=0x12c,ks=0x64;let Le=class extends o[_0x2cc1b3(0x516)]{constructor(_0x39fa44,_0x2ceeb3,_0x37e82a,_0x240bd4,_0x41baa2,_0x2ae38f,_0x5edd6d,_0x475463,_0x5ac80d){const _0x1db231=_0x2cc1b3;super(),u(this,_0x1db231(0x45d),!0x1),u(this,_0x1db231(0x4e1),!0x1),u(this,_0x1db231(0x267),new v['BehaviorSubject'](new Map())),u(this,_0x1db231(0x312),this[_0x1db231(0x267)][_0x1db231(0x368)]()),u(this,_0x1db231(0x3e7),new v[(_0x1db231(0x445))]([])),u(this,_0x1db231(0x390),this[_0x1db231(0x3e7)][_0x1db231(0x478)](v[_0x1db231(0x2c6)](Hs))),u(this,_0x1db231(0x2a6),$e(_0x360b49=>{const _0x30d3c2=_0x1db231,_0x9c2a3a={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x30d3c2(0x3ee)],'memberID':this[_0x30d3c2(0x479)][_0x30d3c2(0x3a8)](),'selection':Et(_0x360b49)}};this[_0x30d3c2(0x479)][_0x30d3c2(0x377)](_0x9c2a3a,this['unitID']);},ks)),(this[_0x1db231(0x3ee)]=_0x39fa44,this['_session']=_0x2ceeb3,this[_0x1db231(0x3fe)]=_0x37e82a,this[_0x1db231(0x1ac)]=_0x240bd4,this[_0x1db231(0x3ab)]=_0x41baa2,this[_0x1db231(0x1a4)]=_0x2ae38f,this[_0x1db231(0x2ad)]=_0x5edd6d,this[_0x1db231(0x46f)]=_0x475463,this[_0x1db231(0x466)]=_0x5ac80d);}get[_0x2cc1b3(0x1f1)](){const _0x4e48a4=_0x2cc1b3;return this[_0x4e48a4(0x267)][_0x4e48a4(0x14c)]();}get[_0x2cc1b3(0x240)](){const _0x31c362=_0x2cc1b3;return this[_0x31c362(0x3e7)][_0x31c362(0x14c)]();}[_0x2cc1b3(0x22c)](){const _0x36b98d=_0x2cc1b3;super[_0x36b98d(0x22c)](),this['_cursorInfo$']['next'](new Map()),this[_0x36b98d(0x267)]['complete'](),this[_0x36b98d(0x3e7)][_0x36b98d(0x1a2)]([]),this['_roomMembers$'][_0x36b98d(0x491)]();}[_0x2cc1b3(0x3d0)](){const _0x33bf29=_0x2cc1b3;this[_0x33bf29(0x4e1)]||(this[_0x33bf29(0x4e1)]=!0x0,this[_0x33bf29(0x479)]['sessionStatus$'][_0x33bf29(0x478)](v[_0x33bf29(0x1ef)](this['dispose$']))[_0x33bf29(0x4c8)](_0x3ff799=>{const _0x5ec9d4=_0x33bf29;_0x3ff799===G['ONLINE']?this[_0x5ec9d4(0x51e)]():this[_0x5ec9d4(0x41f)]();}),this[_0x33bf29(0x479)][_0x33bf29(0x4cf)][_0x33bf29(0x478)](v[_0x33bf29(0x1ef)](this[_0x33bf29(0x23e)]))[_0x33bf29(0x4c8)](_0x29183c=>{const _0x24bc1d=_0x33bf29,_0x3d255b=_0x29183c[_0x24bc1d(0x266)];_0x3d255b===_[_0x24bc1d(0x173)]['UPDATE_CURSOR']&&this[_0x24bc1d(0x1f5)](_0x29183c),_0x3d255b===_['CollaborationEvent'][_0x24bc1d(0x21e)]&&this[_0x24bc1d(0x28d)](_0x29183c);}),this['disposeWithMe'](this['_commandService'][_0x33bf29(0x490)](_0x207cf9=>{const _0xd5a7c8=_0x33bf29,_0x322f59=_0x207cf9[_0xd5a7c8(0x19e)];_0x322f59!=null&&this['_online']&&_0x207cf9['id']===P['SetTextSelectionsOperation']['id']&&_0x322f59['unitId']===this['unitID']&&_0x322f59[_0xd5a7c8(0x323)]===!0x1&&this[_0xd5a7c8(0x2a6)](_0x322f59[_0xd5a7c8(0x39b)]);})),this[_0x33bf29(0x1a4)][_0x33bf29(0x43f)][_0x33bf29(0x478)](v[_0x33bf29(0x1ef)](this['dispose$']))['subscribe'](_0x248b24=>{const _0x5fa42a=_0x33bf29;if((_0x248b24==null?void 0x0:_0x248b24[_0x5fa42a(0x3ee)])!==this[_0x5fa42a(0x3ee)])return;const _0x1d567c={'eventID':_[_0x5fa42a(0x173)][_0x5fa42a(0x49a)],'data':_0x248b24};this['_onCursorUpdate'](_0x1d567c);}),this[_0x33bf29(0x4be)](this['_commandService'][_0x33bf29(0x490)](_0x9faf34=>{const _0x22f70e=_0x33bf29;if(_0x9faf34[_0x22f70e(0x19e)]==null)return;const _0x4410c3=_0x9faf34['params'];if(_0x9faf34['id']!==P[_0x22f70e(0x321)]['id']||_0x4410c3[_0x22f70e(0x440)]!==this[_0x22f70e(0x3ee)])return;const _0x5983c2={'id':_0x22f70e(0x3da),'params':_0x4410c3},_0x2347da=this[_0x22f70e(0x1f1)];for(const [_0x1d3127,_0x1283ea]of _0x2347da){const _0x3ab0c5={'id':_0x22f70e(0x3da),'params':{'unitId':this[_0x22f70e(0x3ee)],'actions':null,'textRanges':_0x1283ea[_0x22f70e(0x39b)]}},_0x5d7662=this['_transformService'][_0x22f70e(0x261)](_0x5983c2,_0x3ab0c5,!0x1);if(_[_0x22f70e(0x24a)](_0x5d7662))throw _0x5d7662[_0x22f70e(0x307)];_0x2347da[_0x22f70e(0x1b8)](_0x1d3127,{..._0x1283ea,'ranges':_0x5d7662[_0x22f70e(0x285)][_0x22f70e(0x19e)][_0x22f70e(0x1bf)]});}queueMicrotask(()=>{const _0x210e0f=_0x22f70e;this[_0x210e0f(0x267)][_0x210e0f(0x1a2)](_0x2347da);});})));}[_0x2cc1b3(0x1f5)](_0xd34a00){const _0x2ae1a9=_0x2cc1b3;var _0x56f14f,_0x2e99a1;const {memberID:_0x3d2cdf,selection:_0x5cbaa5}=_0xd34a00[_0x2ae1a9(0x1c0)],_0x498c5b=fs(_0x5cbaa5),_0x323428=(_0x2e99a1=(_0x56f14f=this['_memberService'][_0x2ae1a9(0x523)](this[_0x2ae1a9(0x3ee)],_0x3d2cdf))==null?void 0x0:_0x56f14f[_0x2ae1a9(0x2bc)])!=null?_0x2e99a1:_0x2ae1a9(0x193),_0x504161={'color':this[_0x2ae1a9(0x1ac)][_0x2ae1a9(0x211)](_0x3d2cdf),'name':_0x323428,'ranges':_0x498c5b},_0xde6fb1=this[_0x2ae1a9(0x1f1)];_0xde6fb1[_0x2ae1a9(0x1b8)](_0x3d2cdf,_0x504161),this[_0x2ae1a9(0x267)][_0x2ae1a9(0x1a2)](_0xde6fb1);}['_onCursorDelete'](_0x5ac66d){const _0x20e4e9=_0x2cc1b3,{memberID:_0x1fa8a4}=_0x5ac66d[_0x20e4e9(0x1c0)],_0x295ad8=this[_0x20e4e9(0x1f1)];_0x295ad8['delete'](_0x1fa8a4),this[_0x20e4e9(0x267)][_0x20e4e9(0x1a2)](_0x295ad8);}[_0x2cc1b3(0x51e)](){const _0x74c462=_0x2cc1b3;var _0x4f5458;if(this[_0x74c462(0x45d)]=!0x0,((_0x4f5458=this[_0x74c462(0x46f)][_0x74c462(0x4cd)]())==null?void 0x0:_0x4f5458['getUnitId']())!==this[_0x74c462(0x3ee)])return;const _0x1d8961=this[_0x74c462(0x3fe)][_0x74c462(0x3ba)](P['TextSelectionManagerService'])[_0x74c462(0x30f)](),_0x5aec7e=_0x1d8961==null?void 0x0:_0x1d8961[_0x74c462(0x2a8)](P[_0x74c462(0x19b)]);Array['isArray'](_0x5aec7e)&&_0x5aec7e[_0x74c462(0x209)]>0x0&&this[_0x74c462(0x2a6)](_0x5aec7e);}[_0x2cc1b3(0x41f)](){this['_online']=!0x1;}};Le=xs([W(0x2,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),W(0x3,o['Inject'](Ve)),W(0x4,o[_0x2cc1b3(0x333)](Y)),W(0x5,o['Inject'](Fe)),W(0x6,_[_0x2cc1b3(0x4ca)]),W(0x7,o[_0x2cc1b3(0x298)]),W(0x8,o[_0x2cc1b3(0x1cf)])],Le);var Bs=Object[_0x2cc1b3(0x1b2)],Fs=Object[_0x2cc1b3(0x47b)],Vs=(_0x574633,_0x7572ea,_0x361e9a,_0x3216cc)=>{for(var _0x5bf594=_0x3216cc>0x1?void 0x0:_0x3216cc?Fs(_0x7572ea,_0x361e9a):_0x7572ea,_0x30b4d8=_0x574633['length']-0x1,_0x5a33d2;_0x30b4d8>=0x0;_0x30b4d8--)(_0x5a33d2=_0x574633[_0x30b4d8])&&(_0x5bf594=(_0x3216cc?_0x5a33d2(_0x7572ea,_0x361e9a,_0x5bf594):_0x5a33d2(_0x5bf594))||_0x5bf594);return _0x3216cc&&_0x5bf594&&Bs(_0x7572ea,_0x361e9a,_0x5bf594),_0x5bf594;},Re=(_0x2d308a,_0x49dfdc)=>(_0x7f7309,_0x153fd1)=>_0x49dfdc(_0x7f7309,_0x153fd1,_0x2d308a);let Z=class extends o[_0x2cc1b3(0x516)]{constructor(_0xe2965e,_0xc72850,_0x22c144){const _0xee87e7=_0x2cc1b3;super(),u(this,_0xee87e7(0x339),new Map()),u(this,_0xee87e7(0x403),new v['Subject']()),(this['_univerInstanceService']=_0xe2965e,this[_0xee87e7(0x3fe)]=_0xc72850,this['_collabSessionService']=_0x22c144,this[_0xee87e7(0x4e1)]());}[_0x2cc1b3(0x22c)](){const _0x2009ff=_0x2cc1b3;super[_0x2009ff(0x22c)](),this[_0x2009ff(0x403)]['complete'](),this[_0x2009ff(0x339)][_0x2009ff(0x34c)](_0x5ad4a7=>_0x5ad4a7['dispose']());}[_0x2cc1b3(0x4a2)](_0x25712f){const _0x23e5dc=_0x2cc1b3;return this[_0x23e5dc(0x339)][_0x23e5dc(0x2ae)](_0x25712f)?this[_0x23e5dc(0x339)][_0x23e5dc(0x3ba)](_0x25712f)[_0x23e5dc(0x312)]:this[_0x23e5dc(0x403)][_0x23e5dc(0x478)](v['filter'](_0xb376df=>_0xb376df[_0x23e5dc(0x3ee)]===_0x25712f),v[_0x23e5dc(0x389)](_0x4c2f73=>_0x4c2f73['cursorInfo$']));}[_0x2cc1b3(0x4e1)](){const _0x10543b=_0x2cc1b3;this[_0x10543b(0x46f)][_0x10543b(0x25b)](o['UniverInstanceType'][_0x10543b(0x3a1)])[_0x10543b(0x478)](v[_0x10543b(0x1ef)](this[_0x10543b(0x23e)]))[_0x10543b(0x4c8)](async _0x1b313d=>{const _0x5a4366=_0x10543b,_0x164e6f=_0x1b313d[_0x5a4366(0x15a)](),_0x32aaa3=await this[_0x5a4366(0x24e)](_0x164e6f);this[_0x5a4366(0x403)][_0x5a4366(0x1a2)](_0x32aaa3),this[_0x5a4366(0x339)][_0x5a4366(0x1b8)](_0x164e6f,_0x32aaa3);}),this[_0x10543b(0x46f)][_0x10543b(0x25b)](o[_0x10543b(0x271)]['UNIVER_DOC'])[_0x10543b(0x478)](v['takeUntil'](this[_0x10543b(0x23e)]))[_0x10543b(0x478)](v[_0x10543b(0x277)](_0x1761d9=>!_0x1761d9['getUnitId']()[_0x10543b(0x521)]('__')))[_0x10543b(0x4c8)](async _0x9cc428=>{const _0x997915=_0x10543b,_0x51a65d=_0x9cc428[_0x997915(0x15a)](),_0x154501=await this[_0x997915(0x25d)](_0x51a65d);this[_0x997915(0x403)][_0x997915(0x1a2)](_0x154501),this[_0x997915(0x339)][_0x997915(0x1b8)](_0x51a65d,_0x154501);}),v[_0x10543b(0x3e0)](this[_0x10543b(0x46f)][_0x10543b(0x36a)](o[_0x10543b(0x271)][_0x10543b(0x40b)]),this[_0x10543b(0x46f)][_0x10543b(0x36a)](o['UniverInstanceType'][_0x10543b(0x3a1)]))[_0x10543b(0x478)](v[_0x10543b(0x1ef)](this[_0x10543b(0x23e)]))[_0x10543b(0x4c8)](_0x43d4b4=>{const _0xb7fd92=_0x10543b,_0x1d086f=_0x43d4b4[_0xb7fd92(0x15a)](),_0x15fe0a=this['_entities'][_0xb7fd92(0x3ba)](_0x1d086f);_0x15fe0a&&(_0x15fe0a[_0xb7fd92(0x22c)](),this[_0xb7fd92(0x339)]['delete'](_0x1d086f));});}async['_startSheetCollabCursor'](_0x29008){const _0x3dd2dc=_0x2cc1b3,_0x4732e6=await this[_0x3dd2dc(0x1c7)][_0x3dd2dc(0x33b)](_0x29008),_0x49ea7f=this[_0x3dd2dc(0x3fe)]['createInstance'](Ne,_0x29008,_0x4732e6);return _0x49ea7f[_0x3dd2dc(0x3d0)](),_0x49ea7f;}async[_0x2cc1b3(0x25d)](_0x347773){const _0x4a04dd=_0x2cc1b3,_0x1471e6=await this[_0x4a04dd(0x1c7)][_0x4a04dd(0x33b)](_0x347773),_0x5159c5=this[_0x4a04dd(0x3fe)][_0x4a04dd(0x171)](Le,_0x347773,_0x1471e6);return _0x5159c5['init'](),_0x5159c5;}};Z=Vs([o['OnLifecycle'](o[_0x2cc1b3(0x4d9)][_0x2cc1b3(0x4b2)],Z),Re(0x0,o[_0x2cc1b3(0x298)]),Re(0x1,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),Re(0x2,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x14e)]))],Z);const le=0x14,st=0xc8,Oe=0x4,Ws=0x5;function Gs(_0xbf6df2,_0x515a47){const _0x413f7c=_0x2cc1b3;let {radius:_0x44c78d,width:_0x902800,height:_0xdf057a}=_0x515a47;_0x44c78d=_0x44c78d!=null?_0x44c78d:0x0,_0x902800=_0x902800!=null?_0x902800:0x1e,_0xdf057a=_0xdf057a!=null?_0xdf057a:0x1e;let _0x491ede=0x0,_0x28a30a=0x0,_0x25d078=0x0;_0x491ede=_0x28a30a=_0x25d078=Math[_0x413f7c(0x2a7)](_0x44c78d,_0x902800/0x2,_0xdf057a/0x2),_0xbf6df2['beginPath'](),_0xbf6df2['moveTo'](_0x491ede,0x0),_0xbf6df2['lineTo'](_0x902800-_0x28a30a,0x0),_0xbf6df2[_0x413f7c(0x4b9)](_0x902800-_0x28a30a,_0x28a30a,_0x28a30a,Math['PI']*0x3/0x2,0x0,!0x1),_0xbf6df2[_0x413f7c(0x31d)](_0x902800,_0xdf057a-_0x25d078),_0xbf6df2[_0x413f7c(0x4b9)](_0x902800-_0x25d078,_0xdf057a-_0x25d078,_0x25d078,0x0,Math['PI']/0x2,!0x1),_0xbf6df2[_0x413f7c(0x31d)](0x0,_0xdf057a),_0xbf6df2[_0x413f7c(0x31d)](0x0,_0x491ede),_0xbf6df2[_0x413f7c(0x4b9)](_0x491ede,_0x491ede,_0x491ede,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xbf6df2[_0x413f7c(0x18d)](),_0x515a47[_0x413f7c(0x485)]&&(_0xbf6df2[_0x413f7c(0x2d2)](),_0xbf6df2['fillStyle']=_0x515a47[_0x413f7c(0x485)],_0x515a47[_0x413f7c(0x414)]===_0x413f7c(0x1bb)?_0xbf6df2['fill'](_0x413f7c(0x1bb)):_0xbf6df2[_0x413f7c(0x485)](),_0xbf6df2['restore']());}class Ee extends b['Shape']{constructor(_0x1eba88,_0x38456b){const _0x51957c=_0x2cc1b3;super(_0x1eba88,_0x38456b),u(this,'color'),u(this,'text'),(this['color']=_0x38456b==null?void 0x0:_0x38456b[_0x51957c(0x404)],this['text']=_0x38456b==null?void 0x0:_0x38456b['text']);}static[_0x2cc1b3(0x452)](_0x1225b5,_0x5ab6bf){const _0x398544=_0x2cc1b3,{text:_0x13bdbd,color:_0x207cd5}=_0x5ab6bf;_0x1225b5[_0x398544(0x2d2)](),_0x1225b5[_0x398544(0x40c)]=_0x398544(0x1a3);const _0x2aa998=_0x1225b5['measureText'](_0x13bdbd)[_0x398544(0x428)],_0x260094=Math[_0x398544(0x2a7)](_0x2aa998+0x2*Oe,st);Gs(_0x1225b5,{'height':le,'radius':0x4,'width':_0x260094,'fill':_0x207cd5,'evented':!0x1}),_0x1225b5[_0x398544(0x2d5)]=_0x398544(0x30c);const _0x3e78a1=Oe,_0x1519d6=le-Ws,_0x1bffe0=st-0x2*Oe;if(_0x2aa998>_0x1bffe0){let _0x5be3bf='',_0x1f1a8d=0x0;for(const _0x10ebd5 of _0x13bdbd){const _0x135d86=_0x1225b5['measureText'](_0x10ebd5)['width'];if(_0x1f1a8d+_0x135d86<=_0x1bffe0-_0x1225b5[_0x398544(0x319)](_0x398544(0x238))[_0x398544(0x428)])_0x5be3bf+=_0x10ebd5,_0x1f1a8d+=_0x135d86;else{_0x5be3bf+=_0x398544(0x238);break;}}_0x1225b5[_0x398544(0x4a0)](_0x5be3bf,_0x3e78a1,_0x1519d6);}else _0x1225b5[_0x398544(0x4a0)](_0x13bdbd,_0x3e78a1,_0x1519d6);_0x1225b5[_0x398544(0x2e3)]();}['_draw'](_0x13e3ab){const _0x3da461=_0x2cc1b3;Ee[_0x3da461(0x452)](_0x13e3ab,this);}}const Ys=0x1,Ks=1.5;class Tt extends b[_0x2cc1b3(0x232)]{constructor(_0x24517f,_0x4a9214){const _0x1ea31f=_0x2cc1b3;super(_0x24517f,_0x4a9214),u(this,_0x1ea31f(0x195)),u(this,_0x1ea31f(0x161),!0x1),u(this,_0x1ea31f(0x4b7)),u(this,_0x1ea31f(0x198),''),u(this,'_labelPosition',_0x1ea31f(0x1c6)),u(this,_0x1ea31f(0x433)),(_0x4a9214&&this['setShapeProps'](_0x4a9214),this['onPointerEnter$'][_0x1ea31f(0x155)](()=>this[_0x1ea31f(0x3a6)]({'hovered':!0x0})),this[_0x1ea31f(0x501)][_0x1ea31f(0x155)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2cc1b3(0x3a6)](_0x10c373){const _0x296407=_0x2cc1b3;var _0x34a6e6,_0x29c44c,_0x125afe,_0x1c0073,_0x4b9a57,_0x1b5e4a;this[_0x296407(0x195)]=(_0x34a6e6=_0x10c373[_0x296407(0x404)])!=null?_0x34a6e6:this['_color'],this[_0x296407(0x161)]=(_0x29c44c=_0x10c373[_0x296407(0x288)])!=null?_0x29c44c:this[_0x296407(0x161)],this[_0x296407(0x4b7)]=(_0x125afe=_0x10c373[_0x296407(0x35a)])!=null?_0x125afe:this['_range'],this[_0x296407(0x198)]=(_0x1c0073=_0x10c373[_0x296407(0x2bc)])!=null?_0x1c0073:this['_name'],this['_labelPosition']=(_0x4b9a57=_0x10c373['labelPosition'])!=null?_0x4b9a57:this[_0x296407(0x480)],this[_0x296407(0x433)]=(_0x1b5e4a=_0x10c373[_0x296407(0x328)])!=null?_0x1b5e4a:this[_0x296407(0x433)],this['transformByState']({'width':_0x10c373[_0x296407(0x428)],'height':_0x10c373[_0x296407(0x2df)]});}[_0x2cc1b3(0x2e4)](_0x4e0caf){const _0x433029=_0x2cc1b3,{row:_0x49d875,column:_0x186cbc}=_0x4e0caf;if(_0x49d875>=this['_range'][_0x433029(0x4f1)]&&_0x49d875<=this['_range'][_0x433029(0x3f2)]&&_0x186cbc>=this[_0x433029(0x4b7)][_0x433029(0x41b)]&&_0x186cbc<=this[_0x433029(0x4b7)]['endColumn']){this[_0x433029(0x3a6)]({'hovered':!0x0});return;}this[_0x433029(0x3a6)]({'hovered':!0x1});}[_0x2cc1b3(0x1e2)](_0xd00309){return!0x1;}['_draw'](_0x464f14){const _0x25412b=_0x2cc1b3;b[_0x25412b(0x2bd)][_0x25412b(0x452)](_0x464f14,{'width':this[_0x25412b(0x428)],'height':this[_0x25412b(0x2df)],'strokeWidth':Ks,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x25412b(0x433)]}),this['_hovered']&&(_0x464f14['save'](),_0x464f14[_0x25412b(0x3a3)](0x1,0x0,0x0,0x1,this[_0x25412b(0x428)],this[_0x25412b(0x480)]===_0x25412b(0x274)?0x0:-le),Ee[_0x25412b(0x452)](_0x464f14,{'text':this[_0x25412b(0x198)],'color':this[_0x25412b(0x195)]}),_0x464f14[_0x25412b(0x2e3)]());}}var Xs=Object[_0x2cc1b3(0x1b2)],qs=Object[_0x2cc1b3(0x47b)],zs=(_0x5158e1,_0x38f04d,_0x56850b,_0x7279c7)=>{const _0xbf5464=_0x2cc1b3;for(var _0x9e497=_0x7279c7>0x1?void 0x0:_0x7279c7?qs(_0x38f04d,_0x56850b):_0x38f04d,_0x428d9a=_0x5158e1[_0xbf5464(0x209)]-0x1,_0x4b4884;_0x428d9a>=0x0;_0x428d9a--)(_0x4b4884=_0x5158e1[_0x428d9a])&&(_0x9e497=(_0x7279c7?_0x4b4884(_0x38f04d,_0x56850b,_0x9e497):_0x4b4884(_0x9e497))||_0x9e497);return _0x7279c7&&_0x9e497&&Xs(_0x38f04d,_0x56850b,_0x9e497),_0x9e497;},De=(_0x47ddef,_0x59e8d7)=>(_0x46903f,_0x5957b7)=>_0x59e8d7(_0x46903f,_0x5957b7,_0x47ddef);const Js=0x1389;let Ae=class extends o[_0x2cc1b3(0x516)]{constructor(_0xff0ac,_0x482c63,_0x12f9f0,_0x28ac23){const _0x58f3db=_0x2cc1b3;super(),u(this,_0x58f3db(0x3ce),new Set()),u(this,_0x58f3db(0x443),null),(this[_0x58f3db(0x1c3)]=_0xff0ac,this['_sheetSkeletonManagerService']=_0x482c63,this['_collabCursorController']=_0x12f9f0,this[_0x58f3db(0x34d)]=_0x28ac23,this[_0x58f3db(0x4e1)]());}[_0x2cc1b3(0x4e1)](){const _0x3057bb=_0x2cc1b3;this[_0x3057bb(0x38e)]['currentSkeleton$'][_0x3057bb(0x478)](C[_0x3057bb(0x1ef)](this[_0x3057bb(0x23e)]),C[_0x3057bb(0x389)](_0x47f6d7=>{const _0x50e607=_0x3057bb;if(_0x47f6d7){const _0x54774=_0x47f6d7['sheetId'];return v['combineLatest'](this['_collabCursorController'][_0x50e607(0x4a2)](this[_0x50e607(0x1c3)][_0x50e607(0x440)]),this[_0x50e607(0x34d)][_0x50e607(0x1db)])['pipe'](C[_0x50e607(0x2a8)](([_0x1a2c6e,_0x51fe6f])=>{const _0xbc2da2=new Map();return _0x1a2c6e['forEach']((_0x28270e,_0x2d2b3b)=>{const _0x2c1fcf=_0x4b8d;if(_0x28270e['sheetID']===_0x54774){const _0x3a1e37={..._0x28270e};_0x3a1e37[_0x2c1fcf(0x404)]=_0x51fe6f[_0x28270e[_0x2c1fcf(0x404)]],_0xbc2da2['set'](_0x2d2b3b,_0x3a1e37);}}),{'skeleton':_0x47f6d7,'cursors':_0xbc2da2};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x3057bb(0x4c8)](({skeleton:_0x1d79f0,cursors:_0x4f596e})=>{const _0x515b60=_0x3057bb;this[_0x515b60(0x247)](),_0x1d79f0&&this[_0x515b60(0x33d)](_0x1d79f0,_0x4f596e);}),this[_0x3057bb(0x38e)][_0x3057bb(0x4c0)]['subscribe'](_0x50149f=>{const _0x30d657=_0x3057bb;if(_0x50149f==null)return;const {skeleton:_0x54fa58}=_0x50149f,{scene:_0x57efb2}=this[_0x30d657(0x1c3)];_0x57efb2[_0x30d657(0x1e4)][_0x30d657(0x155)]($e(_0xaab65e=>{const _0x4ef4f8=_0x30d657;var _0x4c641e,_0x5d4854;const {offsetX:_0x5bdcdb,offsetY:_0xc1eae}=_0xaab65e,{x:_0x32b0c1,y:_0x522f4d}=_0x57efb2[_0x4ef4f8(0x197)](b[_0x4ef4f8(0x316)][_0x4ef4f8(0x38d)]([_0x5bdcdb,_0xc1eae])),{scaleX:_0x2d9f2f,scaleY:_0x3dddaf}=_0x57efb2[_0x4ef4f8(0x263)](),_0x33cfb1=_0x57efb2['getViewport'](J[_0x4ef4f8(0x2e6)][_0x4ef4f8(0x35d)]),_0x4d9df8=_0x57efb2[_0x4ef4f8(0x22e)](b[_0x4ef4f8(0x316)]['FromArray']([_0x32b0c1,_0x522f4d]),_0x33cfb1),_0x21edde=_0x54fa58[_0x4ef4f8(0x31f)](_0x5bdcdb,_0xc1eae,_0x2d9f2f,_0x3dddaf,_0x4d9df8);((_0x4c641e=this[_0x4ef4f8(0x443)])==null?void 0x0:_0x4c641e['column'])===_0x21edde[_0x4ef4f8(0x31c)]&&((_0x5d4854=this[_0x4ef4f8(0x443)])==null?void 0x0:_0x5d4854[_0x4ef4f8(0x47a)])===_0x21edde[_0x4ef4f8(0x47a)]||this[_0x4ef4f8(0x3ce)][_0x4ef4f8(0x34c)](_0x439ada=>{const _0x1f46ea=_0x4ef4f8;_0x439ada[_0x1f46ea(0x2e4)](_0x21edde);});},0x64));});}['_updateCollabCursors'](_0x299070,_0x3a6d7b){const _0x3c41d9=_0x2cc1b3;var _0x52fe09;const _0x3aeecf=(_0x52fe09=this[_0x3c41d9(0x38e)][_0x3c41d9(0x206)]())==null?void 0x0:_0x52fe09[_0x3c41d9(0x41a)];if(!_0x3aeecf)return;const _0x5de10c=this['_getSheetObject']();if(!_0x5de10c)return;this[_0x3c41d9(0x3ce)][_0x3c41d9(0x34c)](_0xc85f7d=>{const _0x2c0864=_0x3c41d9;_0xc85f7d[_0x2c0864(0x3dc)]();});const {scene:_0x24761c}=_0x5de10c,_0x5d9167=Zs(Array[_0x3c41d9(0x346)](_0x3a6d7b['values']()))[_0x3c41d9(0x2a8)](_0x4f8424=>{const _0x12daa2=_0x3c41d9,{color:_0x511b73,range:_0xf33cae,name:_0x450567,selection:_0x318556,sheetID:_0x8d9753}=_0x4f8424,{startColumn:_0x2521ec,startRow:_0x2a94d1,endColumn:_0x1db40c,endRow:_0x10ce58}=_0xf33cae,_0x3f5420=J[_0x12daa2(0x20f)](_0x2a94d1,_0x2521ec,_0x24761c,_0x3aeecf),_0x1d2564=J['getCoordByCell'](_0x10ce58,_0x1db40c,_0x24761c,_0x3aeecf),{columnHeaderHeightAndMarginTop:_0x777bb7}=_0x3aeecf,{startX:_0xe5e59a,startY:_0x4da89c}=_0x3f5420,{endX:_0x553d6b,endY:_0x45557c}=_0x1d2564,_0x47ca24=_0x553d6b-_0xe5e59a,_0x17e9ff=_0x45557c-_0x4da89c,_0x53d2bc={'labelPosition':_0x4da89c-_0x777bb7>=le?_0x12daa2(0x1c6):_0x12daa2(0x274),'sheetID':_0x8d9753,'range':_0xf33cae,'color':_0x511b73,'name':_0x450567,'selection':_0x318556,'left':_0xe5e59a,'top':_0x4da89c,'width':_0x47ca24,'height':_0x17e9ff,'evented':!0x1,'zIndex':Js};return new Tt(_0x450567,_0x53d2bc);});_0x24761c['addObjects'](_0x5d9167,Ys),this[_0x3c41d9(0x3ce)]=new Set(_0x5d9167);}[_0x2cc1b3(0x247)](){const _0x4dc55a=_0x2cc1b3;var _0x5d2f29;(_0x5d2f29=this[_0x4dc55a(0x3ce)])==null||_0x5d2f29['forEach'](_0x135b1b=>_0x135b1b[_0x4dc55a(0x22c)]());}[_0x2cc1b3(0x47c)](){const _0x360c0c=_0x2cc1b3;return J[_0x360c0c(0x3bd)](this[_0x360c0c(0x1c3)][_0x360c0c(0x3f4)],this[_0x360c0c(0x1c3)]);}};Ae=zs([De(0x1,o['Inject'](J[_0x2cc1b3(0x454)])),De(0x2,o[_0x2cc1b3(0x333)](Z)),De(0x3,o[_0x2cc1b3(0x333)](o['ThemeService']))],Ae);function Zs(_0x2796ea){const _0x153673=_0x2cc1b3,_0x4eb5e1=new Map();return _0x2796ea[_0x153673(0x34c)](_0x47cfb4=>{const _0x26e9ed=_0x153673;if(_0x4eb5e1[_0x26e9ed(0x2ae)](_0x47cfb4[_0x26e9ed(0x17f)])){const _0x16675b=_0x4eb5e1[_0x26e9ed(0x3ba)](_0x47cfb4[_0x26e9ed(0x17f)]);_0x16675b[_0x26e9ed(0x2bc)]+=',\x20'+_0x47cfb4['name'];}else _0x4eb5e1['set'](_0x47cfb4['selection'],_0x47cfb4);}),Array[_0x153673(0x346)](_0x4eb5e1['values']());}var N=function(){const _0x54efcf=_0x2cc1b3;return N=Object[_0x54efcf(0x420)]||function(_0x35127c){const _0x193658=_0x54efcf;for(var _0x57b0de,_0x55bb82=0x1,_0x51f5f0=arguments[_0x193658(0x209)];_0x55bb82<_0x51f5f0;_0x55bb82++){_0x57b0de=arguments[_0x55bb82];for(var _0x1ef6f0 in _0x57b0de)Object[_0x193658(0x4c2)][_0x193658(0x35e)][_0x193658(0x181)](_0x57b0de,_0x1ef6f0)&&(_0x35127c[_0x1ef6f0]=_0x57b0de[_0x1ef6f0]);}return _0x35127c;},N['apply'](this,arguments);},Qs=function(_0xa510fc,_0x2b0251){const _0x20b6d=_0x2cc1b3;var _0x28b837={};for(var _0x322117 in _0xa510fc)Object[_0x20b6d(0x4c2)][_0x20b6d(0x35e)][_0x20b6d(0x181)](_0xa510fc,_0x322117)&&_0x2b0251['indexOf'](_0x322117)<0x0&&(_0x28b837[_0x322117]=_0xa510fc[_0x322117]);if(_0xa510fc!=null&&typeof Object[_0x20b6d(0x435)]==_0x20b6d(0x1b7)){for(var _0x3a257e=0x0,_0x322117=Object[_0x20b6d(0x435)](_0xa510fc);_0x3a257e<_0x322117['length'];_0x3a257e++)_0x2b0251[_0x20b6d(0x2ec)](_0x322117[_0x3a257e])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x20b6d(0x181)](_0xa510fc,_0x322117[_0x3a257e])&&(_0x28b837[_0x322117[_0x3a257e]]=_0xa510fc[_0x322117[_0x3a257e]]);}return _0x28b837;},We=y[_0x2cc1b3(0x401)](function(_0x3f6059,_0x2c8829){const _0x3097de=_0x2cc1b3;var _0x14bc51=_0x3f6059[_0x3097de(0x189)],_0x36b4f9=_0x3f6059['id'],_0x358b77=_0x3f6059[_0x3097de(0x253)],_0x52714a=_0x3f6059['extend'],_0x24de23=Qs(_0x3f6059,[_0x3097de(0x189),'id',_0x3097de(0x253),_0x3097de(0x4bb)]),_0x2d1a27=_0x3097de(0x1eb)[_0x3097de(0x32b)](_0x36b4f9,'\x20')[_0x3097de(0x32b)](_0x358b77||'')[_0x3097de(0x19c)](),_0x5117dd=y[_0x3097de(0x1d2)]('_'[_0x3097de(0x32b)](si()));return Rt(_0x14bc51,''[_0x3097de(0x32b)](_0x36b4f9),{'defIds':_0x14bc51[_0x3097de(0x2da)],'idSuffix':_0x5117dd['current']},N({'ref':_0x2c8829,'className':_0x2d1a27},_0x24de23),_0x52714a);});function Rt(_0x51431f,_0x36b0e6,_0x4a7edf,_0x119471,_0x198041){const _0x555edb=_0x2cc1b3;return y[_0x555edb(0x3cb)](_0x51431f[_0x555edb(0x200)],N(N({'key':_0x36b0e6},ei(_0x51431f,_0x4a7edf,_0x198041)),_0x119471),(ti(_0x51431f,_0x4a7edf)[_0x555edb(0x20c)]||[])[_0x555edb(0x2a8)](function(_0x3dd053,_0x2b9074){const _0x1f4b1e=_0x555edb;return Rt(_0x3dd053,''[_0x1f4b1e(0x32b)](_0x36b0e6,'-')['concat'](_0x51431f[_0x1f4b1e(0x200)],'-')['concat'](_0x2b9074),_0x4a7edf,void 0x0,_0x198041);}));}function ei(_0x3b9790,_0x2a1ff7,_0x291c02){const _0xad2476=_0x2cc1b3;var _0x32d71d=N({},_0x3b9790[_0xad2476(0x1a0)]);_0x291c02!=null&&_0x291c02[_0xad2476(0x330)]&&_0x32d71d[_0xad2476(0x485)]==='colorChannel1'&&(_0x32d71d['fill']=_0x291c02[_0xad2476(0x330)]);var _0x1cb8eb=_0x2a1ff7[_0xad2476(0x2da)];return!_0x1cb8eb||_0x1cb8eb[_0xad2476(0x209)]===0x0||(_0x3b9790[_0xad2476(0x200)]===_0xad2476(0x300)&&_0x32d71d[_0xad2476(0x411)]&&(_0x32d71d[_0xad2476(0x411)]=_0x32d71d[_0xad2476(0x411)]+_0x2a1ff7[_0xad2476(0x384)]),Object[_0xad2476(0x3bb)](_0x32d71d)[_0xad2476(0x34c)](function(_0x53d643){const _0x46dce6=_0xad2476;var _0x46062a=_0x53d643[0x0],_0x4ee6f2=_0x53d643[0x1];typeof _0x4ee6f2==_0x46dce6(0x26e)&&(_0x32d71d[_0x46062a]=_0x4ee6f2[_0x46dce6(0x34b)](/url\(#(.*)\)/,_0x46dce6(0x17a)[_0x46dce6(0x32b)](_0x2a1ff7[_0x46dce6(0x384)],')')));})),_0x32d71d;}function ti(_0x2a9154,_0x33f28f){const _0x4c88d9=_0x2cc1b3;var _0x3264ce,_0x4d98d5=_0x33f28f[_0x4c88d9(0x2da)];return!_0x4d98d5||_0x4d98d5[_0x4c88d9(0x209)]===0x0?_0x2a9154:_0x2a9154[_0x4c88d9(0x200)]===_0x4c88d9(0x29c)&&(!((_0x3264ce=_0x2a9154[_0x4c88d9(0x20c)])===null||_0x3264ce===void 0x0)&&_0x3264ce[_0x4c88d9(0x209)])?N(N({},_0x2a9154),{'children':_0x2a9154[_0x4c88d9(0x20c)][_0x4c88d9(0x2a8)](function(_0x798a9){const _0x4fa6c9=_0x4c88d9;return typeof _0x798a9[_0x4fa6c9(0x1a0)]['id']==_0x4fa6c9(0x26e)&&_0x4d98d5&&_0x4d98d5[_0x4fa6c9(0x2ec)](_0x798a9['attrs']['id'])>-0x1?N(N({},_0x798a9),{'attrs':N(N({},_0x798a9[_0x4fa6c9(0x1a0)]),{'id':_0x798a9[_0x4fa6c9(0x1a0)]['id']+_0x33f28f[_0x4fa6c9(0x384)]})}):_0x798a9;})}):_0x2a9154;}function si(){const _0x5dd9b5=_0x2cc1b3;return Math['random']()[_0x5dd9b5(0x28e)](0x24)[_0x5dd9b5(0x48a)](0x2,0x8);}We[_0x2cc1b3(0x18a)]='UniverIcon';var ii={'tag':'svg','attrs':{'fill':_0x2cc1b3(0x482),'viewBox':_0x2cc1b3(0x254),'width':_0x2cc1b3(0x509),'height':_0x2cc1b3(0x509)},'children':[{'tag':'g','attrs':{'clipPath':_0x2cc1b3(0x16f)},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'stroke':'currentColor','d':_0x2cc1b3(0x4d6),'strokeLinecap':'round','strokeLinejoin':_0x2cc1b3(0x4f4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'fill':_0x2cc1b3(0x2a4),'d':_0x2cc1b3(0x44e)}}]}]}],'defIds':[_0x2cc1b3(0x29f)]},Ot=y['forwardRef'](function(_0x1d8352,_0x4109e5){const _0x5d7735=_0x2cc1b3;return y[_0x5d7735(0x3cb)](We,Object[_0x5d7735(0x420)]({},_0x1d8352,{'id':_0x5d7735(0x223),'ref':_0x4109e5,'icon':ii}));});Ot[_0x2cc1b3(0x18a)]='OffLineSingle';var ni={'tag':_0x2cc1b3(0x15e),'attrs':{'fill':'none','viewBox':_0x2cc1b3(0x3e5),'width':_0x2cc1b3(0x509),'height':_0x2cc1b3(0x509)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'stroke':_0x2cc1b3(0x1c4),'d':_0x2cc1b3(0x230),'strokeLinecap':_0x2cc1b3(0x4f4),'strokeLinejoin':_0x2cc1b3(0x4f4),'strokeWidth':1.2}}]},{'tag':_0x2cc1b3(0x29c),'attrs':{},'children':[{'tag':_0x2cc1b3(0x1fa),'attrs':{'id':_0x2cc1b3(0x383)},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'fill':_0x2cc1b3(0x2a4),'d':_0x2cc1b3(0x44e),'transform':_0x2cc1b3(0x18c)}}]}]}],'defIds':[_0x2cc1b3(0x383)]},Dt=y[_0x2cc1b3(0x401)](function(_0x4a938e,_0x193b22){const _0x195fd1=_0x2cc1b3;return y['createElement'](We,Object[_0x195fd1(0x420)]({},_0x4a938e,{'id':_0x195fd1(0x170),'ref':_0x193b22,'icon':ni}));});Dt[_0x2cc1b3(0x18a)]=_0x2cc1b3(0x332);const ri='univer-online-status-icon',oi=_0x2cc1b3(0x2cc),ai='univer-online-status',ci='univer-online',li=_0x2cc1b3(0x424),ne={'onlineStatusIcon':ri,'onlineStatusTitle':oi,'onlineStatus':ai,'online':ci,'offline':li};function hi(_0x568615){const _0x9e5461=_0x2cc1b3;switch(_0x568615){case D[_0x9e5461(0x38a)]:return _0x9e5461(0x400);case D['CONFLICT']:return _0x9e5461(0x382);case D['FETCH_MISS']:return _0x9e5461(0x3f7);case D['NOT_COLLAB']:return _0x9e5461(0x269);case D['PENDING']:case D['AWAITING']:case D[_0x9e5461(0x297)]:return _0x9e5461(0x2a3);case D['SYNCED']:return _0x9e5461(0x23b);}}function Pt(_0x23aadc){const _0x2743fc=_0x2cc1b3,{status$:_0x318d10}=_0x23aadc,_0x5b8e5c=L[_0x2743fc(0x34f)](_0x318d10,D['NOT_COLLAB']),_0x252e33=o[_0x2743fc(0x510)](o[_0x2743fc(0x2f6)]),_0x1217cb=_0x5b8e5c!==D[_0x2743fc(0x38a)],_0x3728fe=_0x252e33['t'](hi(_0x5b8e5c)),_0x32309b=Ht(ne[_0x2743fc(0x313)],{[ne[_0x2743fc(0x369)]]:_0x1217cb,[ne[_0x2743fc(0x2d8)]]:!_0x1217cb}),_0x2835f4=_0x1217cb?y[_0x2743fc(0x3cb)](Dt,null):y[_0x2743fc(0x3cb)](Ot,null);return y[_0x2743fc(0x3cb)](_0x2743fc(0x527),{'className':_0x32309b},y[_0x2743fc(0x3cb)](_0x2743fc(0x527),{'className':ne[_0x2743fc(0x395)]},_0x2835f4),y[_0x2743fc(0x3cb)]('div',{'className':ne[_0x2743fc(0x2c7)]},_0x3728fe));}var _i=Object[_0x2cc1b3(0x1b2)],ui=Object[_0x2cc1b3(0x47b)],di=(_0x22e312,_0x24b6ee,_0x2d8f2b,_0x5e83a5)=>{const _0x546944=_0x2cc1b3;for(var _0x2da976=_0x5e83a5>0x1?void 0x0:_0x5e83a5?ui(_0x24b6ee,_0x2d8f2b):_0x24b6ee,_0x4fd182=_0x22e312[_0x546944(0x209)]-0x1,_0x38c536;_0x4fd182>=0x0;_0x4fd182--)(_0x38c536=_0x22e312[_0x4fd182])&&(_0x2da976=(_0x5e83a5?_0x38c536(_0x24b6ee,_0x2d8f2b,_0x2da976):_0x38c536(_0x2da976))||_0x2da976);return _0x5e83a5&&_0x2da976&&_i(_0x24b6ee,_0x2d8f2b,_0x2da976),_0x2da976;},he=(_0x2ecd28,_0x217ba8)=>(_0x382917,_0x5cd933)=>_0x217ba8(_0x382917,_0x5cd933,_0x2ecd28);exports[_0x2cc1b3(0x292)]=class extends o[_0x2cc1b3(0x460)]{constructor(_0x5159ee,_0x4ec262,_0x1a9c02,_0x1ee756){const _0x42088d=_0x2cc1b3;super(),u(this,_0x42088d(0x40f),new v[(_0x42088d(0x445))](D[_0x42088d(0x45a)])),(this['_univerInstanceService']=_0x5159ee,this[_0x42088d(0x476)]=_0x4ec262,this[_0x42088d(0x3fe)]=_0x1a9c02,this[_0x42088d(0x32d)]=_0x1ee756,this['_initStatusComponent'](),this[_0x42088d(0x3fa)]());}[_0x2cc1b3(0x331)](){const _0x311f35=_0x2cc1b3;this[_0x311f35(0x4be)](this[_0x311f35(0x476)]['registerComponent'](L['BuiltInUIPart'][_0x311f35(0x488)],()=>o[_0x311f35(0x262)](Si({'status$':this[_0x311f35(0x40f)][_0x311f35(0x368)]()}),this[_0x311f35(0x3fe)])));}[_0x2cc1b3(0x3fa)](){const _0x5f5d57=_0x2cc1b3;this['disposeWithMe'](o[_0x5f5d57(0x168)](this[_0x5f5d57(0x46f)][_0x5f5d57(0x1e6)][_0x5f5d57(0x478)](v['switchMap'](()=>{const _0x2d6e13=_0x5f5d57,_0x59bab7=this[_0x2d6e13(0x46f)][_0x2d6e13(0x4cd)]();return _0x59bab7?this[_0x2d6e13(0x32d)]['getCollabEntity$'](_0x59bab7[_0x2d6e13(0x15a)]()):v['of'](null);}),v[_0x5f5d57(0x389)](_0x472892=>_0x472892?_0x472892['status$']:v['of'](D[_0x5f5d57(0x45a)])))[_0x5f5d57(0x4c8)](_0x290596=>{const _0x25505e=_0x5f5d57;this['_status$'][_0x25505e(0x1a2)](_0x290596);})));}},exports[_0x2cc1b3(0x292)]=di([o[_0x2cc1b3(0x303)](o[_0x2cc1b3(0x4d9)][_0x2cc1b3(0x4b2)],exports['DesktopCollaborationStatusDisplayController']),he(0x0,o[_0x2cc1b3(0x298)]),he(0x1,L[_0x2cc1b3(0x2b9)]),he(0x2,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),he(0x3,o['Inject'](exports[_0x2cc1b3(0x305)]))],exports[_0x2cc1b3(0x292)]);function Si(_0x3ee421){const {status$:_0x321069}=_0x3ee421;return function(){return y['createElement'](Pt,{'status$':_0x321069});};}const Ge=o[_0x2cc1b3(0x364)](_0x2cc1b3(0x371));var vi=Object[_0x2cc1b3(0x1b2)],mi=Object['getOwnPropertyDescriptor'],gi=(_0x32c0d5,_0x6893f3,_0x1fda72,_0x4a05f2)=>{const _0x47eefb=_0x2cc1b3;for(var _0x2a169d=_0x4a05f2>0x1?void 0x0:_0x4a05f2?mi(_0x6893f3,_0x1fda72):_0x6893f3,_0x1abb83=_0x32c0d5[_0x47eefb(0x209)]-0x1,_0x19c796;_0x1abb83>=0x0;_0x1abb83--)(_0x19c796=_0x32c0d5[_0x1abb83])&&(_0x2a169d=(_0x4a05f2?_0x19c796(_0x6893f3,_0x1fda72,_0x2a169d):_0x19c796(_0x2a169d))||_0x2a169d);return _0x4a05f2&&_0x2a169d&&vi(_0x6893f3,_0x1fda72,_0x2a169d),_0x2a169d;},z=(_0x5139e3,_0x353cc3)=>(_0x5aa814,_0x240eef)=>_0x353cc3(_0x5aa814,_0x240eef,_0x5139e3);exports[_0x2cc1b3(0x20b)]=class extends o['RxDisposable']{constructor(_0x1b66b2,_0x3dae43,_0x1a56e6,_0x21ff76,_0x187cc8,_0x363ae2){const _0x52d5aa=_0x2cc1b3;super(),this['_urlService']=_0x1b66b2,this[_0x52d5aa(0x402)]=_0x3dae43,this[_0x52d5aa(0x466)]=_0x1a56e6,this[_0x52d5aa(0x359)]=_0x21ff76,this[_0x52d5aa(0x3c1)]=_0x187cc8,_0x363ae2?_0x363ae2==null||_0x363ae2['whenReady']()[_0x52d5aa(0x360)](()=>this[_0x52d5aa(0x4e1)]()):(this['_logService'][_0x52d5aa(0x1a1)](_0x52d5aa(0x51d),_0x52d5aa(0x2b2)),this[_0x52d5aa(0x4e1)]());}async[_0x2cc1b3(0x4e1)](){const _0x83b9ce=_0x2cc1b3,_0x315ffb=this[_0x83b9ce(0x419)][_0x83b9ce(0x348)](_0x83b9ce(0x3f4)),_0x25b475=this[_0x83b9ce(0x419)][_0x83b9ce(0x348)](_0x83b9ce(0x3e9));if(!_0x315ffb||!_0x25b475){this[_0x83b9ce(0x402)][_0x83b9ce(0x1a1)](_0x83b9ce(0x51d),_0x83b9ce(0x21d));return;}switch(Number(_0x25b475)){case j[_0x83b9ce(0x3a1)]:{const _0x60a73f=await this[_0x83b9ce(0x39e)](_0x315ffb);this[_0x83b9ce(0x2ef)](_0x60a73f);break;}case j[_0x83b9ce(0x40b)]:{await this['_loadDoc'](_0x315ffb);break;}default:{this[_0x83b9ce(0x402)][_0x83b9ce(0x307)]('[DataLoaderController]',_0x83b9ce(0x3d4));break;}}}async[_0x2cc1b3(0x2ef)](_0xa1260c){const _0x2f9dd5=_0x2cc1b3;await this['_updateSubUnitFromURLParams'](_0xa1260c),_0xa1260c['activeSheet$']['pipe'](v['takeUntil'](this['dispose$']))[_0x2f9dd5(0x4c8)](_0x141069=>{const _0x24a9dd=_0x2f9dd5;_0x141069&&this[_0x24a9dd(0x493)](_0x141069);}),this[_0x2f9dd5(0x419)]['urlChange$'][_0x2f9dd5(0x478)](v[_0x2f9dd5(0x1ef)](this['dispose$']))[_0x2f9dd5(0x4c8)](()=>this[_0x2f9dd5(0x2cb)](_0xa1260c));}[_0x2cc1b3(0x493)](_0x20bb9e,_0x2f7c7d=!0x1){const _0x5222ad=_0x2cc1b3,_0x577bca=this[_0x5222ad(0x419)][_0x5222ad(0x348)]('subunit');_0x20bb9e['getSheetId']()!==_0x577bca&&this[_0x5222ad(0x419)][_0x5222ad(0x190)]('subunit',_0x20bb9e[_0x5222ad(0x1ba)](),_0x2f7c7d);}async[_0x2cc1b3(0x2cb)](_0x1c61c1){const _0x470b11=_0x2cc1b3;var _0x493797;const _0x2f29a7=this[_0x470b11(0x419)]['getParam'](_0x470b11(0x36b));if(!_0x2f29a7||!_0x1c61c1[_0x470b11(0x4ce)](_0x2f29a7)){const _0x566e5b=_0x1c61c1[_0x470b11(0x442)]()[0x0],_0x13ba28=_0x1c61c1[_0x470b11(0x4ce)](_0x566e5b);if(!_0x13ba28)return;this[_0x470b11(0x493)](_0x13ba28,!0x0),await this[_0x470b11(0x466)]['executeCommand'](p[_0x470b11(0x1b4)]['id'],{'unitId':_0x1c61c1[_0x470b11(0x15a)](),'subUnitId':_0x566e5b});return;}((_0x493797=_0x1c61c1[_0x470b11(0x2de)]())==null?void 0x0:_0x493797[_0x470b11(0x1ba)]())!==_0x2f29a7&&await this[_0x470b11(0x466)][_0x470b11(0x186)](p[_0x470b11(0x1b4)]['id'],{'unitId':_0x1c61c1[_0x470b11(0x15a)](),'subUnitId':_0x2f29a7});}async['_loadSheet'](_0x150d4d){const _0x147889=_0x2cc1b3;let _0x36ee12=0x0;const _0x5cad5d=await this[_0x147889(0x359)][_0x147889(0x4a7)](_0x150d4d);return _0x5cad5d&&(_0x5cad5d['awaitingChangeset']||_0x5cad5d[_0x147889(0x1d1)][_0x147889(0x209)]!==0x0)&&(_0x36ee12=_0x5cad5d[_0x147889(0x373)]),_0x36ee12===0x0&&this['_logService']['debug'](_0x147889(0x51d),_0x147889(0x205)),this[_0x147889(0x3c1)][_0x147889(0x3df)](_0x150d4d,_0x36ee12);}async[_0x2cc1b3(0x38c)](_0xab1e2){const _0x43bd87=_0x2cc1b3;let _0x337850=0x0;const _0x3295c9=await this[_0x43bd87(0x359)][_0x43bd87(0x4a7)](_0xab1e2);return _0x3295c9&&(_0x3295c9['awaitingChangeset']||_0x3295c9['mutations'][_0x43bd87(0x209)]!==0x0)&&(_0x337850=_0x3295c9[_0x43bd87(0x373)]),_0x337850===0x0&&this['_logService']['debug'](_0x43bd87(0x51d),_0x43bd87(0x205)),this['_snapshotService']['loadDoc'](_0xab1e2,_0x337850);}},exports[_0x2cc1b3(0x20b)]=gi([o[_0x2cc1b3(0x303)](o['LifecycleStages'][_0x2cc1b3(0x4b2)],exports[_0x2cc1b3(0x20b)]),z(0x0,Ge),z(0x1,o[_0x2cc1b3(0x4ba)]),z(0x2,o[_0x2cc1b3(0x1cf)]),z(0x3,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),z(0x4,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x465)])),z(0x5,o['Optional'](kt[_0x2cc1b3(0x22f)]))],exports[_0x2cc1b3(0x20b)]);var fi=Object[_0x2cc1b3(0x1b2)],Ii=Object[_0x2cc1b3(0x47b)],pi=(_0x51bb3f,_0x450e3e,_0x2ff307,_0x4d8248)=>{const _0xc8bb24=_0x2cc1b3;for(var _0x273223=_0x4d8248>0x1?void 0x0:_0x4d8248?Ii(_0x450e3e,_0x2ff307):_0x450e3e,_0x227c76=_0x51bb3f[_0xc8bb24(0x209)]-0x1,_0x40f8cb;_0x227c76>=0x0;_0x227c76--)(_0x40f8cb=_0x51bb3f[_0x227c76])&&(_0x273223=(_0x4d8248?_0x40f8cb(_0x450e3e,_0x2ff307,_0x273223):_0x40f8cb(_0x273223))||_0x273223);return _0x4d8248&&_0x273223&&fi(_0x450e3e,_0x2ff307,_0x273223),_0x273223;},it=(_0x477a4b,_0x2e6872)=>(_0x38923e,_0x319028)=>_0x2e6872(_0x38923e,_0x319028,_0x477a4b);const Ci=_0x2cc1b3(0x4d4),Ei=_0x2cc1b3(0x3dd);let ue=class extends o['Disposable']{constructor(_0x9aa984,_0x59039b){const _0x4b0d74=_0x2cc1b3;super(),this[_0x4b0d74(0x46f)]=_0x9aa984,this[_0x4b0d74(0x3f8)]=_0x59039b,this[_0x4b0d74(0x4e1)]();}[_0x2cc1b3(0x4e1)](){const _0x1f7833=_0x2cc1b3;this['disposeWithMe'](o[_0x1f7833(0x168)](this[_0x1f7833(0x46f)][_0x1f7833(0x1e6)][_0x1f7833(0x4c8)](()=>{const _0x591ac4=_0x1f7833;var _0x4d422b;const _0x23dcc9=this[_0x591ac4(0x46f)][_0x591ac4(0x4cd)]();let _0xc18513=(_0x4d422b=this[_0x591ac4(0x3f8)][_0x591ac4(0x42f)](Ci))!=null?_0x4d422b:Ei;_0x23dcc9 instanceof o[_0x591ac4(0x461)]&&(_0xc18513=_0x23dcc9[_0x591ac4(0x2bc)]),document['title']=_0xc18513;})));}};ue=pi([o[_0x2cc1b3(0x303)](o[_0x2cc1b3(0x4d9)][_0x2cc1b3(0x2eb)],ue),it(0x0,o[_0x2cc1b3(0x298)]),it(0x1,o[_0x2cc1b3(0x149)])],ue);var bi=Object[_0x2cc1b3(0x1b2)],Ti=Object[_0x2cc1b3(0x47b)],Ri=(_0x36af33,_0x308810,_0xf955a2,_0x36020f)=>{const _0x3eeaf1=_0x2cc1b3;for(var _0x5172aa=_0x36020f>0x1?void 0x0:_0x36020f?Ti(_0x308810,_0xf955a2):_0x308810,_0x592d4b=_0x36af33[_0x3eeaf1(0x209)]-0x1,_0x7f11df;_0x592d4b>=0x0;_0x592d4b--)(_0x7f11df=_0x36af33[_0x592d4b])&&(_0x5172aa=(_0x36020f?_0x7f11df(_0x308810,_0xf955a2,_0x5172aa):_0x7f11df(_0x5172aa))||_0x5172aa);return _0x36020f&&_0x5172aa&&bi(_0x308810,_0xf955a2,_0x5172aa),_0x5172aa;},nt=(_0x114048,_0x2e15f3)=>(_0xc5ae2f,_0x254586)=>_0x2e15f3(_0xc5ae2f,_0x254586,_0x114048);exports[_0x2cc1b3(0x4b5)]=class{constructor(_0x37e2ee,_0x39f408){const _0x31d3d5=_0x2cc1b3;this[_0x31d3d5(0x3f8)]=_0x37e2ee,this['_httpService']=_0x39f408;}async[_0x2cc1b3(0x1d3)](_0x57d1cb,_0x56e558){const _0x4a9287=_0x2cc1b3;var _0x131d4c;const {unitID:_0x570ca3,type:_0x1a07c8,revision:_0x509203=0x0}=_0x56e558,_0x2d8195=this[_0x4a9287(0x1f2)]()+'/'+_0x1a07c8+_0x4a9287(0x1c8)+_0x570ca3+_0x4a9287(0x216)+_0x509203,_0x2cdd62=(await this[_0x4a9287(0x15c)][_0x4a9287(0x3ba)](_0x2d8195))[_0x4a9287(0x4f8)],_0x233b35=(_0x131d4c=_0x2cdd62[_0x4a9287(0x4b3)])==null?void 0x0:_0x131d4c[_0x4a9287(0x27a)];if(_0x233b35){const _0xeffb77=_0x233b35==null?void 0x0:_0x233b35[_0x4a9287(0x522)],_0x57d430=o[_0x4a9287(0x370)][_0x4a9287(0x459)](o[_0x4a9287(0x3c8)](_0xeffb77));_0x233b35[_0x4a9287(0x522)]=_0x57d430,Object['entries'](_0x233b35['sheets'])['forEach'](([,_0x31d23])=>{const _0x3ebcd9=_0x4a9287,_0x87a868=_0x31d23[_0x3ebcd9(0x522)],_0x1b26fb=o[_0x3ebcd9(0x370)][_0x3ebcd9(0x459)](o[_0x3ebcd9(0x3c8)](_0x87a868));_0x31d23[_0x3ebcd9(0x522)]=_0x1b26fb;});}return _0x2cdd62;}async[_0x2cc1b3(0x16b)](_0x21b618,_0x5a0b8d){const _0x43be7a=_0x2cc1b3,{unitID:_0x448869,type:_0x14bab0,blockID:_0x34535b}=_0x5a0b8d,_0x1b9139=this[_0x43be7a(0x4b1)]()+'/'+_0x14bab0+_0x43be7a(0x1c8)+_0x448869+_0x43be7a(0x33f)+_0x34535b;return(await this['_httpService'][_0x43be7a(0x3ba)](_0x1b9139))['body'];}async[_0x2cc1b3(0x259)](_0x360f17,_0x80a10){const _0x5063eb=_0x2cc1b3,{unitID:_0x4acc7d,type:_0x1a5b93,from:_0x62bc08,to:_0x7e7c0d}=_0x80a10,_0x1573cb=this['_getAPIPrefix']()+'/'+_0x1a5b93+_0x5063eb(0x1c8)+_0x4acc7d+_0x5063eb(0x1cd)+_0x62bc08+_0x5063eb(0x4a4)+_0x7e7c0d;return(await this[_0x5063eb(0x15c)][_0x5063eb(0x3ba)](_0x1573cb))[_0x5063eb(0x4f8)];}[_0x2cc1b3(0x1f2)](){const _0x1a4a9b=_0x2cc1b3;var _0x348fce;return(_0x348fce=this[_0x1a4a9b(0x3f8)][_0x1a4a9b(0x42f)](lt))!=null?_0x348fce:this[_0x1a4a9b(0x4b1)]();}['_getAPIPrefix'](){const _0x597570=_0x2cc1b3;var _0x2b14f2;return(_0x2b14f2=this[_0x597570(0x3f8)][_0x597570(0x42f)](ct))!=null?_0x2b14f2:Bt;}async['getResourcesRequest'](_0x1a952a,_0x4487e5){const _0x47d6a0=_0x2cc1b3,_0x2e1285=_0x47d6a0(0x2dc)+_0x4487e5[_0x47d6a0(0x3e9)]+_0x47d6a0(0x1c8)+_0x4487e5[_0x47d6a0(0x3ee)]+_0x47d6a0(0x2dd);return(await this['_httpService']['get'](_0x2e1285,{'params':{'resourceId':JSON['stringify'](_0x4487e5['resourceIDs'])}}))[_0x47d6a0(0x4f8)];}[_0x2cc1b3(0x1e7)](){const _0xf23c40=_0x2cc1b3;throw new Error(_0xf23c40(0x514));}[_0x2cc1b3(0x413)](){const _0xf6843=_0x2cc1b3;throw new Error(_0xf6843(0x514));}[_0x2cc1b3(0x29a)](){const _0x234b22=_0x2cc1b3;throw new Error(_0x234b22(0x514));}},exports[_0x2cc1b3(0x4b5)]=Ri([nt(0x0,o[_0x2cc1b3(0x149)]),nt(0x1,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1da)]))],exports[_0x2cc1b3(0x4b5)]);var Oi=Object[_0x2cc1b3(0x1b2)],Di=Object[_0x2cc1b3(0x47b)],Pi=(_0x2b3b7b,_0x2e77c4,_0x54865a,_0x2b29eb)=>{const _0x29586b=_0x2cc1b3;for(var _0x21170b=_0x2b29eb>0x1?void 0x0:_0x2b29eb?Di(_0x2e77c4,_0x54865a):_0x2e77c4,_0x3f4ef0=_0x2b3b7b[_0x29586b(0x209)]-0x1,_0x365ccb;_0x3f4ef0>=0x0;_0x3f4ef0--)(_0x365ccb=_0x2b3b7b[_0x3f4ef0])&&(_0x21170b=(_0x2b29eb?_0x365ccb(_0x2e77c4,_0x54865a,_0x21170b):_0x365ccb(_0x21170b))||_0x21170b);return _0x2b29eb&&_0x21170b&&Oi(_0x2e77c4,_0x54865a,_0x21170b),_0x21170b;},re=(_0x2d56b3,_0x3e29a1)=>(_0x44124b,_0xb2cd15)=>_0x3e29a1(_0x44124b,_0xb2cd15,_0x2d56b3);let je=class extends o[_0x2cc1b3(0x3e3)]{constructor(_0x31db25,_0x4ab10d,_0x361abd,_0x2d7eab,_0x58e576){const _0x2b7680=_0x2cc1b3;super(_0x31db25,_0x4ab10d,_0x361abd),this[_0x2b7680(0x2ad)]=_0x2d7eab,this[_0x2b7680(0x402)]=_0x58e576;}[_0x2cc1b3(0x3ff)](_0x3b47b8,_0x4eaa76){const _0x3d7ea3=_0x2cc1b3,_0x1c9d19=this[_0x3d7ea3(0x43d)](_0x3b47b8);if(_0x1c9d19)try{const _0x222d35=this['_transformStack'](_0x1c9d19,_0x4eaa76);this['_substituteUndoStack'](_0x3b47b8,_0x222d35);}catch(_0x14dbd9){this[_0x3d7ea3(0x402)][_0x3d7ea3(0x307)]('[CollaborationUndoRedoService]',_0x14dbd9),this[_0x3d7ea3(0x49e)](_0x3b47b8);}const _0x4eb5e5=this[_0x3d7ea3(0x405)](_0x3b47b8);if(_0x4eb5e5)try{const _0x5574fb=this[_0x3d7ea3(0x14a)](_0x4eb5e5,_0x4eaa76);this[_0x3d7ea3(0x217)](_0x3b47b8,_0x5574fb);}catch(_0x3b7c95){this[_0x3d7ea3(0x402)][_0x3d7ea3(0x307)](_0x3b7c95),this[_0x3d7ea3(0x43a)](_0x3b47b8);}}[_0x2cc1b3(0x49e)](_0xdcdfc9){const _0x361682=_0x2cc1b3,_0x3cda55=this[_0x361682(0x43d)](_0xdcdfc9);_0x3cda55&&(_0x3cda55[_0x361682(0x209)]=0x0,this[_0x361682(0x3ac)]());}[_0x2cc1b3(0x43a)](_0x292c6b){const _0x1694a2=_0x2cc1b3,_0x10fbfc=this[_0x1694a2(0x405)](_0x292c6b);_0x10fbfc&&(_0x10fbfc[_0x1694a2(0x209)]=0x0,this['_updateStatus']());}[_0x2cc1b3(0x394)](_0x27ebea,_0x294277){const _0xd7b125=_0x2cc1b3;this[_0xd7b125(0x2fb)][_0xd7b125(0x1b8)](_0x27ebea,_0x294277),this[_0xd7b125(0x3ac)]();}[_0x2cc1b3(0x217)](_0x2fcf0c,_0x235cbf){const _0x43fb93=_0x2cc1b3;this[_0x43fb93(0x37c)][_0x43fb93(0x1b8)](_0x2fcf0c,_0x235cbf),this[_0x43fb93(0x3ac)]();}[_0x2cc1b3(0x14a)](_0x460883,_0x1c085c){const _0x165559=_0x2cc1b3,_0x2394af=[];let _0x54e7b4=_0x1c085c,_0xa26f3c=_0x1c085c;for(let _0x2d109f=_0x460883[_0x165559(0x209)]-0x1;_0x2d109f>=0x0;_0x2d109f--){const {unitID:_0x223b8e,undoMutations:_0x3a9583,redoMutations:_0x4a973c}=_0x460883[_0x2d109f],_0x48a4b9=this[_0x165559(0x2ad)][_0x165559(0x525)](_0x54e7b4,_0x3a9583),_0x39fd18=this[_0x165559(0x2ad)][_0x165559(0x525)](_0xa26f3c,_0x4a973c);if(_['isTransformMutationsWithChangesetFailure'](_0x48a4b9)||_[_0x165559(0x187)](_0x39fd18)){this[_0x165559(0x402)][_0x165559(0x307)](_0x165559(0x26a),'transformStack\x20failed!',_0x48a4b9,_0x39fd18);break;}_0x54e7b4=_0x48a4b9[_0x165559(0x4fc)],_0xa26f3c=_0x39fd18[_0x165559(0x4fc)],_0x2394af[_0x165559(0x4bd)]({'unitID':_0x223b8e,'undoMutations':_0x48a4b9['m2Prime'],'redoMutations':_0x39fd18[_0x165559(0x285)]});}return _0x2394af[_0x165559(0x1b9)]();}};function _0x4b8d(_0x5240d0,_0x29a010){const _0x1e5415=_0x1e54();return _0x4b8d=function(_0x4b8d19,_0x47f08d){_0x4b8d19=_0x4b8d19-0x145;let _0xa5532e=_0x1e5415[_0x4b8d19];return _0xa5532e;},_0x4b8d(_0x5240d0,_0x29a010);}je=Pi([re(0x0,o[_0x2cc1b3(0x298)]),re(0x1,o[_0x2cc1b3(0x1cf)]),re(0x2,o[_0x2cc1b3(0x45e)]),re(0x3,_[_0x2cc1b3(0x4ca)]),re(0x4,o['ILogService'])],je);class Ut extends o[_0x2cc1b3(0x516)]{constructor(){const _0x331437=_0x2cc1b3;super(),u(this,_0x331437(0x417)),this[_0x331437(0x417)]=v['fromEvent'](window,_0x331437(0x2b8))['pipe'](v[_0x331437(0x1ef)](this[_0x331437(0x23e)]),v[_0x331437(0x345)](0x1),v['mapTo'](void 0x0));}[_0x2cc1b3(0x190)](_0x29362a,_0x5aa2d9,_0x271455=!0x1){const _0x1dfc68=_0x2cc1b3,_0x18a8f3=new URL(window[_0x1dfc68(0x2cf)][_0x1dfc68(0x44a)]);_0x18a8f3['searchParams'][_0x1dfc68(0x1b8)](_0x29362a,_0x5aa2d9),_0x271455?window[_0x1dfc68(0x515)][_0x1dfc68(0x1b5)]('','',_0x18a8f3[_0x1dfc68(0x28e)]()):window['history']['pushState']('','',_0x18a8f3[_0x1dfc68(0x28e)]());}[_0x2cc1b3(0x294)](_0x4f2b85,_0x4a3790=!0x1){const _0x472851=_0x2cc1b3,_0x3001e5=new URL(window[_0x472851(0x2cf)][_0x472851(0x44a)]);_0x3001e5[_0x472851(0x3aa)][_0x472851(0x386)](_0x4f2b85),_0x4a3790?window['history'][_0x472851(0x1b5)]('','',_0x3001e5['toString']()):window[_0x472851(0x515)][_0x472851(0x29b)]('','',_0x3001e5[_0x472851(0x28e)]());}[_0x2cc1b3(0x348)](_0x3ee6bf){const _0x5446aa=_0x2cc1b3;var _0x5639e6;return(_0x5639e6=new URL(window['location'][_0x5446aa(0x44a)])[_0x5446aa(0x3aa)]['get'](_0x3ee6bf))!=null?_0x5639e6:void 0x0;}}const Pe=_0x2cc1b3(0x159),Ui=_0x2cc1b3(0x20d),Mi=_0x2cc1b3(0x365),oe=0x6,wi=1.5,Ue=0x4,yi=1.5,Ni='rgba(255,\x20255,\x20255,\x200.01)';class rt{constructor(_0x191ec5,_0x4836a9,_0xd4886d,_0x42166d){const _0x19e3f8=_0x2cc1b3;u(this,'_shapes',[]),u(this,'_anchor',null),u(this,_0x19e3f8(0x221),null),u(this,_0x19e3f8(0x18b),null),u(this,'_hideTimer',null),u(this,_0x19e3f8(0x32c),null),(this[_0x19e3f8(0x214)]=_0x191ec5,this[_0x19e3f8(0x151)]=_0x4836a9,this[_0x19e3f8(0x3a7)]=_0xd4886d,this[_0x19e3f8(0x162)]=_0x42166d,this[_0x19e3f8(0x42a)]());}set[_0x2cc1b3(0x434)](_0x4f4311){const _0x55571b=_0x2cc1b3;_0x4f4311?(this[_0x55571b(0x18b)]&&this['_anchorDot'][_0x55571b(0x3bf)](),this[_0x55571b(0x221)]&&this[_0x55571b(0x221)][_0x55571b(0x4f2)]()):(this[_0x55571b(0x18b)]&&this[_0x55571b(0x18b)][_0x55571b(0x4f2)](),this[_0x55571b(0x221)]&&this[_0x55571b(0x221)][_0x55571b(0x3bf)]());}[_0x2cc1b3(0x22c)](){const _0x208924=_0x2cc1b3;for(const _0x8c10c7 of this[_0x208924(0x179)])_0x8c10c7[_0x208924(0x22c)]();this[_0x208924(0x221)]&&this[_0x208924(0x221)]['dispose'](),this[_0x208924(0x18b)]&&this[_0x208924(0x18b)][_0x208924(0x22c)](),this['_anchor']&&this['_anchor'][_0x208924(0x22c)](),this[_0x208924(0x32c)]&&this[_0x208924(0x32c)]();}[_0x2cc1b3(0x42a)](){const _0x390152=_0x2cc1b3;var _0x40aeb9;const {_docSkeleton:_0x2605db,_document:_0x53ba47}=this,{color:_0x2327ac,name:_0x9d4cc,ranges:_0x77e325}=this[_0x390152(0x214)],_0xe0e00a=_0x53ba47[_0x390152(0x153)](),{docsLeft:_0x308d2c,docsTop:_0x5323db}=_0xe0e00a,_0x33e81c=new b[(_0x390152(0x2c0))](_0xe0e00a,_0x2605db);for(const {startOffset:_0x21b9da,endOffset:_0x383657,collapsed:_0x1f0ddb,isActive:_0x3ce876}of _0x77e325){const _0x575012=_0x2605db[_0x390152(0x169)](_0x21b9da),_0x40faa4=_0x2605db['findNodePositionByCharIndex'](_0x383657);if(_0x3ce876){const {contentBoxPointGroup:_0x56b51f}=_0x33e81c[_0x390152(0x4ab)](_0x40faa4,_0x40faa4);if(_0x56b51f[_0x390152(0x209)]===0x0)continue;this['_drawAnchor'](_0x2327ac,_0x56b51f,_0x308d2c,_0x5323db,_0x9d4cc),this[_0x390152(0x32c)]=this[_0x390152(0x374)]();}if(!_0x1f0ddb&&_0x575012&&_0x40faa4){if(b['isValidRectRange'](_0x575012,_0x40faa4)){const _0x23e12c=new b[(_0x390152(0x246))](_0xe0e00a,_0x2605db),{pointGroup:_0x5cb889}=(_0x40aeb9=_0x23e12c[_0x390152(0x4ab)](_0x575012,_0x40faa4))!=null?_0x40aeb9:{};if(_0x5cb889==null||_0x5cb889['length']===0x0)continue;this['_drawRectRange'](_0x2327ac,_0x5cb889,_0x308d2c,_0x5323db);}else{const {contentBoxPointGroup:_0x246372}=_0x33e81c[_0x390152(0x4ab)](_0x575012,_0x40faa4);if(_0x246372[_0x390152(0x209)]===0x0)continue;this[_0x390152(0x146)](_0x2327ac,_0x246372,_0x308d2c,_0x5323db);}}}}['_drawAnchor'](_0x2a5870,_0x54bab8,_0x175bf5,_0x65b332,_0x2315c1){const _0x569023=_0x2cc1b3,_0x215046=this[_0x569023(0x1ce)](_0x54bab8),{left:_0x1dd34d,top:_0x26c3c0,height:_0x4aabf4}=_0x215046,_0x5a7018=this[_0x569023(0x17b)](),_0x5c525f=yi/_0x5a7018,_0xae793=new b[(_0x569023(0x2bd))](Pe+o[_0x569023(0x492)][_0x569023(0x39f)](oe),{'left':_0x1dd34d+_0x175bf5-_0x5c525f,'top':_0x26c3c0+_0x65b332,'height':_0x4aabf4,'width':wi,'fill':_0x2a5870||b[_0x569023(0x249)](o['COLORS'][_0x569023(0x242)],0x0),'strokeWidth':_0x5c525f,'stroke':Ni,'evented':!0x0});this[_0x569023(0x26d)]=_0xae793,this[_0x569023(0x151)][_0x569023(0x340)](_0xae793,b[_0x569023(0x25c)]);const _0x46f016=new b[(_0x569023(0x2bd))](Pe+o[_0x569023(0x492)]['generateRandomId'](oe),{'left':_0x1dd34d+_0x175bf5-_0x5c525f,'top':_0x26c3c0+_0x65b332-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x2a5870||b[_0x569023(0x249)](o[_0x569023(0x499)][_0x569023(0x242)],0x0),'strokeWidth':0x0,'stroke':_0x2a5870||b[_0x569023(0x249)](o[_0x569023(0x499)][_0x569023(0x242)],0x0),'evented':!0x1});this[_0x569023(0x18b)]=_0x46f016,this[_0x569023(0x151)][_0x569023(0x340)](_0x46f016,b[_0x569023(0x25c)]);const _0x5cf0bd=new Ee(Pe+o[_0x569023(0x492)]['generateRandomId'](oe),{'left':_0x1dd34d+_0x175bf5-_0x5c525f,'top':_0x26c3c0+_0x65b332-le,'text':_0x2315c1,'color':_0x2a5870});this[_0x569023(0x221)]=_0x5cf0bd,this[_0x569023(0x151)][_0x569023(0x340)](_0x5cf0bd,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x2cc1b3(0x374)](){const _0xf5ad7e=_0x2cc1b3,_0x358f61=this['_anchor'][_0xf5ad7e(0x4e3)][_0xf5ad7e(0x155)](()=>{const _0x2a1e39=_0xf5ad7e;this[_0x2a1e39(0x434)]=!0x0;}),_0x104151=this[_0xf5ad7e(0x26d)]['onPointerLeave$'][_0xf5ad7e(0x155)](()=>{const _0x596762=_0xf5ad7e;this[_0x596762(0x2f7)]&&clearTimeout(this[_0x596762(0x2f7)]),this[_0x596762(0x2f7)]=setTimeout(()=>{const _0x21daf3=_0x596762;this[_0x21daf3(0x434)]=!0x1;},0x7d0);});return()=>{const _0x185def=_0xf5ad7e;_0x358f61[_0x185def(0x265)](),_0x104151['unsubscribe']();};}[_0x2cc1b3(0x146)](_0x46623a,_0xcca4b,_0x1afa75,_0x1cc06f){const _0x3bcd8e=_0x2cc1b3,_0x3b39fb=new o[(_0x3bcd8e(0x409))](_0x46623a)[_0x3bcd8e(0x1e1)](0.2)[_0x3bcd8e(0x2d3)](),_0x41eae7=new b[(_0x3bcd8e(0x447))](Ui+o[_0x3bcd8e(0x492)]['generateRandomId'](oe),{'pointsGroup':_0xcca4b,'fill':_0x3b39fb||b[_0x3bcd8e(0x249)](o[_0x3bcd8e(0x499)]['black'],0.2),'left':_0x1afa75,'top':_0x1cc06f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3bcd8e(0x179)][_0x3bcd8e(0x4bd)](_0x41eae7),this[_0x3bcd8e(0x151)]['addObject'](_0x41eae7,b[_0x3bcd8e(0x25c)]);}['_drawRectRange'](_0x1e292d,_0x2a1e4b,_0x201d88,_0x2fa7ff){const _0x52ffc7=_0x2cc1b3,_0x164e9f=new o[(_0x52ffc7(0x409))](_0x1e292d)[_0x52ffc7(0x1e1)](0.2)['toRgbString'](),_0x10f1c0=new b['RegularPolygon'](Mi+o[_0x52ffc7(0x492)][_0x52ffc7(0x39f)](oe),{'pointsGroup':_0x2a1e4b,'fill':_0x164e9f||b[_0x52ffc7(0x249)](o[_0x52ffc7(0x499)][_0x52ffc7(0x242)],0.2),'left':_0x201d88,'top':_0x2fa7ff,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52ffc7(0x179)][_0x52ffc7(0x4bd)](_0x10f1c0),this[_0x52ffc7(0x151)][_0x52ffc7(0x340)](_0x10f1c0,b[_0x52ffc7(0x25c)]);}[_0x2cc1b3(0x1ce)](_0x1f229e){const _0x3f5f6e=_0x1f229e[0x0],_0x5a88d1=_0x3f5f6e[0x0],_0x9de6d5=_0x3f5f6e[0x2],{x:_0x3407f5,y:_0x548131}=_0x5a88d1,{x:_0x8605d9,y:_0x34e3c0}=_0x9de6d5;return{'left':_0x3407f5,'top':_0x548131,'width':_0x8605d9-_0x3407f5,'height':_0x34e3c0-_0x548131};}['_getScale'](){const _0x82eea3=_0x2cc1b3,{scaleX:_0x736d68,scaleY:_0x20a5df}=this[_0x82eea3(0x151)][_0x82eea3(0x263)]();return Math['max'](_0x736d68,_0x20a5df);}}var Li=Object[_0x2cc1b3(0x1b2)],Ai=Object[_0x2cc1b3(0x47b)],ji=(_0x3de6b3,_0x5c9004,_0x2db240,_0x367494)=>{const _0x54af20=_0x2cc1b3;for(var _0x936512=_0x367494>0x1?void 0x0:_0x367494?Ai(_0x5c9004,_0x2db240):_0x5c9004,_0x43da06=_0x3de6b3[_0x54af20(0x209)]-0x1,_0x27f796;_0x43da06>=0x0;_0x43da06--)(_0x27f796=_0x3de6b3[_0x43da06])&&(_0x936512=(_0x367494?_0x27f796(_0x5c9004,_0x2db240,_0x936512):_0x27f796(_0x936512))||_0x936512);return _0x367494&&_0x936512&&Li(_0x5c9004,_0x2db240,_0x936512),_0x936512;},_e=(_0x399fb6,_0xee071b)=>(_0x559243,_0x414367)=>_0xee071b(_0x559243,_0x414367,_0x399fb6);let de=class extends o[_0x2cc1b3(0x516)]{constructor(_0x42b3bf,_0x545718,_0x5e902e,_0x3f7f4e,_0x101c1b){const _0x39ea19=_0x2cc1b3;super(),u(this,_0x39ea19(0x24d),[]),u(this,_0x39ea19(0x3ce),[]),(this[_0x39ea19(0x1c3)]=_0x42b3bf,this[_0x39ea19(0x160)]=_0x545718,this['_collabCursorController']=_0x5e902e,this[_0x39ea19(0x466)]=_0x3f7f4e,this[_0x39ea19(0x34d)]=_0x101c1b,this[_0x39ea19(0x4e1)]());}[_0x2cc1b3(0x4e1)](){const _0x572d6e=_0x2cc1b3,_0x3f1607=this[_0x572d6e(0x1c3)][_0x572d6e(0x440)],_0x527ff2=this[_0x572d6e(0x160)];this[_0x572d6e(0x4be)](v[_0x572d6e(0x3f5)]([this[_0x572d6e(0x502)][_0x572d6e(0x4a2)](_0x3f1607),this[_0x572d6e(0x34d)][_0x572d6e(0x1db)]])[_0x572d6e(0x478)](C['map'](([_0x3f4dcc,_0x5c783d])=>({'skeleton':_0x527ff2['getSkeleton'](),'cursors':[..._0x3f4dcc[_0x572d6e(0x4d7)]()]['flatMap'](_0xad58a4=>({..._0xad58a4,'color':_0x5c783d[_0xad58a4[_0x572d6e(0x404)]]}))})))[_0x572d6e(0x4c8)](_0x593e52=>{const _0x1444fe=_0x572d6e;if(this[_0x1444fe(0x247)](),_0x593e52){const {skeleton:_0x2b13b9,cursors:_0x5293d5}=_0x593e52;this[_0x1444fe(0x33d)](_0x2b13b9,_0x5293d5);}})),this[_0x572d6e(0x2c1)](),this[_0x572d6e(0x3a0)]();}['_updateCollabCursors'](_0x5aff3c,_0x145b55){const _0x12d361=_0x2cc1b3,{scene:_0x413605,mainComponent:_0x1982eb}=this[_0x12d361(0x1c3)],_0x6c0ef=_0x145b55['map'](_0x286acd=>new rt(_0x286acd,_0x413605,_0x5aff3c,_0x1982eb));this[_0x12d361(0x24d)]=_0x6c0ef,this[_0x12d361(0x3ce)]=_0x145b55;}[_0x2cc1b3(0x2c8)](){const _0x1107b6=_0x2cc1b3;this[_0x1107b6(0x247)]();const {scene:_0x293fcc,mainComponent:_0x2d5c25}=this[_0x1107b6(0x1c3)],_0xe0c817=this[_0x1107b6(0x160)][_0x1107b6(0x513)](),_0x1814be=this[_0x1107b6(0x3ce)][_0x1107b6(0x2a8)](_0x51c690=>new rt(_0x51c690,_0x293fcc,_0xe0c817,_0x2d5c25));this[_0x1107b6(0x24d)]=_0x1814be;}[_0x2cc1b3(0x247)](){const _0xb102db=_0x2cc1b3;this[_0xb102db(0x24d)][_0xb102db(0x34c)](_0x34e5fa=>_0x34e5fa[_0xb102db(0x22c)]()),this[_0xb102db(0x24d)]=[];}['_initCommandExecutedListener'](){const _0xb06d85=_0x2cc1b3,_0x41e245=[P[_0xb06d85(0x3c2)]['id']];this[_0xb06d85(0x4be)](this[_0xb06d85(0x466)]['onCommandExecuted'](_0x2ee8bb=>{const _0x27e6dc=_0xb06d85;_0x41e245[_0x27e6dc(0x15d)](_0x2ee8bb['id'])&&_0x2ee8bb['params'][_0x27e6dc(0x440)]===this['_context'][_0x27e6dc(0x440)]&&this['_refreshCollabCursors']();}));}[_0x2cc1b3(0x2c1)](){const _0x3ba2e2=_0x2cc1b3;this[_0x3ba2e2(0x4be)](o[_0x3ba2e2(0x507)](this[_0x3ba2e2(0x1c3)]['engine']['onTransformChange$'])[_0x3ba2e2(0x478)](C[_0x3ba2e2(0x277)](_0x308dbe=>_0x308dbe[_0x3ba2e2(0x3e9)]===b[_0x3ba2e2(0x233)][_0x3ba2e2(0x36c)]),C[_0x3ba2e2(0x21f)](0x10))['subscribe'](()=>{const _0x57bebd=_0x3ba2e2;this[_0x57bebd(0x2c8)]();}));}};de=ji([o[_0x2cc1b3(0x303)](o['LifecycleStages'][_0x2cc1b3(0x387)],de),_e(0x1,o['Inject'](P[_0x2cc1b3(0x210)])),_e(0x2,o[_0x2cc1b3(0x333)](Z)),_e(0x3,o[_0x2cc1b3(0x1cf)]),_e(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x185)]))],de);function _0x1e54(){const _0x2665ba=['CommentService','makeDirty','Univer','COLLAB_SUBMIT_CHANGESET_URL','loadSheet','merge','_onConnectionFailed','APPLY_REVISION_CONFILICT','LocalUndoRedoService','SUCCUSS','0\x200\x2017\x2016','CollaborationSocketService','_roomMembers$','_handleJoinEvent','type','YUUMI_UNABLE_LOAD_URL','some','CONFLICT','onSendChangeset','unitID','ISnapshotServerService','_sheetTransformSelectionsService','liveShareNewHost','endRow','_docTransformSelectionsService','unit','combineLatest','collaboration.single-unit.warning','collabStatus.fetchMiss','_configService','slice','_initStatusListener','Subject','isPermissionRej','cmd','_injector','transformUndoRedo','collabStatus.offline','forwardRef','_logService','_entityInit$','color','_getRedoStack','_refRangeService','LICENSE_IMPORT_SIZE_EXCEEDED','_awaitingChangeset','ColorKit','setItem','UNIVER_DOC','font','resolve','PERMISSION_DENIED','_status$','closeSession','xlink:href','handleInsertRow','saveSheetBlock','fillRule','deleteCollaborator','_compressMutationService','urlChange$','_getMergeRange','_urlService','skeleton','startColumn','ws://127.0.0.1:8000/universer-api/comb/connect','_getCurrentRevision','setInterval','_toggleOffline','assign','isTransformMutationsWithChangesetSuccess','rxjs','CommandType','univer-offline','CompressMutationService','_executeRemoteChangeset','InsertRangeMoveRightCommandId','width','[SyncedState]:\x20received\x20acknowledgement.','_render','DeleteRangeMoveLeftCommandId','conflict.content','_onJoinRoomEvent','IPermissionService','getConfig','getImageSourceCache','getCurrentSelections','fetching\x20missing\x20changesets\x20from\x20','_backgroundColor','_hover','getOwnPropertySymbols','_socketService','handleDeleteRangeMoveLeft','MUTATION','/universer-api/oidc/authpage','_clearRedo','?size=','enableAuthServer','_getUndoStack','POST','collabCursorState$','unitId','_handleEvent','getUnhiddenWorksheets','_lastPointer','_cachedData','BehaviorSubject','runRefRangeMutations','RegularPolygon','fetch_missing','@univerjs/ui','href','_submitChangeset','putCollaborators','_decreaseWaiting','M0\x200H16V16H0z','_initModules','_onRefRangeChange','DocStateChangeManagerService','drawWith','_removeClearOtherTimer','SheetSkeletonManagerService','_socket','revision','transformRemoteChangeset','_showConflictNotification','encode','NOT_COLLAB','439839tOqTFk','[CollaborationState]:\x20apply\x20error!','_online','IContextService','_clearScheduledTask','Disposable','Workbook','_disableEditing','EffectRefRangId','_onLocalMutation','SnapshotService','_commandService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','isTransformChangesetsSuccess','30604keWKsK','_updateLocalCache','LOGIN_URL_KEY','_waitForHeartbeatResponse','getImage','verdancy600','_univerInstanceService','pending','error$','_createInitialStateImpl','routeKey','30Baqmes','_messageService','_uiPartsService','_sendHeartbeatTimer','pipe','_session','row','getOwnPropertyDescriptor','_getSheetObject','key','m1Prime','_queuedRemoteChangesets','_labelPosition','ALREADY_EXISTS','none','file','socket\x20close','fill','_createHandler','HEARTBEAT_INTERVAL_KEY','HEADER_MENU','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','substring','[CollaborationSessionService]','INTERNAL_ERROR','[CollaborationSessionService]:\x20socket\x20error','_incrementRevisionNumber','reject','onCommandExecuted','complete','Tools','_updateURLWithCurrentState','12655zaajgM','SheetPermissionInitController','ERROR_IMAGE_TYPE','reduce','APPLY_NON_SEQUENTIAL_REVISION','COLORS','UPDATE_CURSOR','sequenceExecute','/object/','objectID','_clearUndo','fetchThroughInterceptors','fillText','_sendingTimer','getCollabCursors$','selections','&to=','append','_clearHeartbeatTimer','loadOfflineData','IUndoRedoService','compose','RevisionService','getRangePointData','_transformUndoRedoStack','@univerjs/drawing','_updateState','/collaborator','_undoRedoService','_getAPIPrefix','Starting','snapshot','objectType','SnapshotServerOverHTTPService','LICENSE_MAX_UNITS_EXCEEDED','_range','UPDATE_PERMISSION_OBJ','arc','ILogService','extend','registerHTTPInterceptor','push','disposeWithMe','permission.title','currentSkeleton$','/-/object/list','prototype','_http','_userManagerService','status','_onUserLeave','change$','subscribe','max','ITransformService','_getSignURL','rxjs/operators','getFocusedUnit','getSheetBySheetId','event$','onTransformIME','open$','UNDEFINED','_type','DEFAULT_FILE_NAME','_getUploadFileURL','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','values','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','LifecycleStages','find','collaMsg','userID','csAckEvent','_clearCollaborationTimeoutTimer','IHTTPImplementation','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_init','UNIVER_PROJECT','onPointerEnter$','_onRemoteRejected','_renderManagerService','handleInsertCol','_registerRenderDependencies','_tryEnsureSocket','method','headers','image/png','?url=','FETCH_MISSING','fromCollab','socket\x20open.','_collaborationTimeoutTimer','startRow','show','UNIVER_COLLABORATION_CLIENT_PLUGIN','round','_getLoginPath','toggleOffline','mergeOverrideWithDependencies','body','_scheduleClearOtherTimer','_replaceFileID','joinRsp','c1Prime','_acknowledgedAwaitingChangeset','CHANGESET_ACK','status$','univer-pro.collaboration-client.single-active-unit-service','onPointerLeave$','_collabCursorController','_onConnectionOpen','_assignedColors','InsertRowCommandId','add','fromEventSubject','/-/object/-/batch_allowed','1em','mapDocumentTypeToUniverType','setCurrentUser','image/gif','INVALID_ARGUMENT','_notificationService','pluginName','useDependency','@univerjs/network','AuthzIoHttpService','getSkeleton','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','history','RxDisposable','csRejEvent','joinEvent','2922828YOMrfH','_config','@univerjs/sheets-ui','_onRemoteChangeset','[DataLoaderController]','_toggleOnline','deepClone','JOIN','startsWith','originalMeta','getMember','liveShareOperation','transformMutationsWithChangeset','\x20-\x20','div','UNAUTHENTICATED','SheetCollaborationEntity','_drawTextRange','lodash/debounce','_retryConnectingTimer','IConfigService','_transformStack','BASE64','getValue','WebURLService','CollaborationSessionService','INotificationService','_singleActiveUnitService','_scene','post','getOffsetConfig','SheetsSelectionsService','subscribeEvent','_sessions','CollaborationStatus','interceptor','collab-text-anchor-','getUnitId','38mBgtXa','_httpService','includes','svg','LocalCacheService','_docSkeletonManagerService','_hovered','_document','@univerjs/sheets','ACTIVE_UNIT_EVENT_CHANNEL','_state','_change$','_socketMessageSubscription','toDisposable','findNodePositionByCharIndex','all','getSheetBlock','[FetchMissState]','/universer-api/comb','COLLAB_SUBMIT_CHANGESET_URL_KEY','url(#off-line-single_clip0_910_343)','on-line-single','createInstance','PERMISSION_REJ','CollaborationEvent','onRemoteAck','handleInsertRangeMoveRight','[SyncedState]:\x20received\x20rejection.','7879wyVHlQ','responseType','_shapes','url(#$1','_getScale','_colorIndex','LIVESHARE_FETCH_OPERATIONS','session.will-retry','selection','updateMember','call','_clearOtherTimers','_setupBeforeClosingHandler','_clearTimeoutTimer','ThemeService','executeCommand','isTransformMutationsWithChangesetFailure','COMPLETION_FINISHED','icon','displayName','_anchorDot','translate(.97)','closePath','_collabCursorState$','awaitingChangeset','setParam','268cIvmuE','removeMember','Unknown\x20user','OTHER_CLIENTS_EDITING','_color','_scheduleTimestamp','getRelativeToViewportCoord','_name','unshift','replaceTextRanges','serializeDocRange','trim','HEARTBEAT_TIMEOUT_KEY','params','UNRECOGNIZED','attrs','debug','next','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_syncEditingCollabCursorService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity$','SessionStatus','isArray','/object','_timeoutTimer','editingUnit','_colorAssignService','c2Prime','IDLE','shouldCloseConn','/new_changes','_event$','defineProperty','WebSocketService','SetWorksheetActivateCommand','replaceState','IBeforeCloseService','function','set','reverse','getSheetId','evenodd','_transformUndoredo','SNAPSHOT_INVALID_SNAPSHOT','SEND_CHANGESET_TIMEOUT_KEY','textRanges','data','EXCHANGE_SIGN_URL_SERVER_URL_KEY','Module','_context','currentColor','_createInitialState','top','_collabSessionService','/unit/','\x20in\x20_schedule.','/allowed','_removeRoom','ERROR_IMAGE','/fetchmissing?from=','_getAnchorBounding','ICommandService','LIVESHARE_REQUEST_HOST','mutations','useRef','getUnitOnRev','conflict','_ws','[CollaborationSession]','handleDeleteRangeMoveUp','{fileID}','FETCH_MISS','HTTPService','currentTheme$','/universer-api/snapshot','_startCollaboration','_onConflict','encodeURIComponent','getUnitType','setAlpha','triggerDblclick','FileId','onPointerMove$','YUUMI_URL_COL_OUT_OF_RANGE','focused$','saveSnapshot','updatePermissionPoint','1953543yLTkap','clearTimeout','univerjs-icon\x20univerjs-icon-','baseRev','_collaborationSessionService','jiqing500','takeUntil','getCollabEntity','cursorInfo','_getSnapshotAPIPrefix','exhaustSavingTask','_ensureSubject','_onCursorUpdate','transformChangesets','_id','clear','_scheduleCollaborationTimeoutTimer','clipPath','getUnitStatus$','message$','_permissionService','failed\x20to\x20apply\x20missed\x20changesets!','localeService','tag','disposeUnit','path','MoveRangeCommandId','isActive','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getCurrent','parse','AUTHZ_URL_KEY','length','allowed','DataLoaderController','children','collab-text-range-','[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.','getCoordByCell','DocSkeletonManagerService','assignAColorForMemberID','json','getActiveRange','_cursor','getCurrentUser','/rev/','_substituteRedoStack','CHANGESET_REVISION_CONFILICT','getUniverSheetInstance','univer-pro.collaboration-client-socket-service','withCredentials','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','USERS_LEAVE','throttleTime','APPLY_PERMISSION_DENIED','_textBubble','LEAVE','off-line-single','_members','saveOfflineData','_unitID','InsertColCommandId','handleIRemoveRow','DependentOn','COLLAB_WEB_SOCKET_URL_KEY','initWorkbookPermissionChange','dispose','_sessionStatus$','getVpScrollXYInfoByPosToVp','IRemoteInstanceService','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','create','Shape','TRANSFORM_CHANGE_OBSERVABLE_TYPE','handleInsertRangeMoveDown','confirm','serializeCombRequest','UNIVER_SLIDE','...','_transformIMECache','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','collabStatus.synced','_transformRemoteChangesetByIMECache','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','dispose$','_roomMembers','roomMembers','readAsDataURL','black','getItem','getCurrentUnitForType','objectActions','NodePositionConvertToRectRange','_removeCollabCursors','_getSaveTimeout','getColor','isTransformMutationFailure','LICENSE_EXPORT_SIZE_EXCEEDED','react','_cursorShapes','_startSheetCollabCursor','getInterceptPoints','JSONX','_commentUpdate$','setTimeout','className','0\x200\x2016\x2016','AWAITING','UUID','UNKNOWN_CODE','onTransformRemoteChangesetByIMECache','fetchMissingChangesets','roles','getTypeOfUnitAdded$','TEXT_RANGE_LAYER_INDEX','_startDocCollabCursor','_docSyncEditingCollabCursorService','distinctUntilChanged','_sendHeartbeat','transformMutation','connectInjector','getAncestorScale','[OfflineState]:\x20received\x20changeset.','unsubscribe','eventID','_cursorInfo$','SNAPSHOT_SERVER_URL_KEY','collabStatus.notCollab','[CollaborationUndoRedoService]','_waitCount','red300','_anchor','string','_onCombEvent','_saveCache','UniverInstanceType','_socketReady','SNAPSHOT_URL_KEY','bottom','listCollaborators','COLLAB_WEB_SOCKET_URL','filter','onStateChange','[OfflineState]:\x20received\x20rejection.','workbook','appendMutation','_rescheduleHeartbeatEvent','requestParams','actions','_fetchMissChangesets','IMessageService','onStarting','not_collab','_handler','COMPRESS_MUTATION_APPLY','m2Prime','conflict.title','pauseCollaboration','hovered','DisposableCollection','_disabled','_createSocket','resend','_onCursorDelete','toString','_unlockTransition','_pendingMutations','_heartbeatTimer','DesktopCollaborationStatusDisplayController','_handleHeartbeatEvent','removeParam','getCurrentRevForDocument','getTime','AWAITING_WITH_PENDING','IUniverInstanceService','RETRY_CONNECTING_INTERVAL','saveChangeset','pushState','defs','url','IRenderManagerService','off-line-single_clip0_910_343','HELLO','gold400','put','collabStatus.syncing','#fff','_applyRemoteChangeset','_updateLocalCursor','min','map','subUnitId','session.connection-failed','CONNECTOR_DATA_TOO_LARGE','deserializeRangeWithSheet','_transformService','has','apply','commentUpdateEvent','_remoteChangesetQueue','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Injector','onRemoteChangeset','_getCtorByUniverType','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_retryCount','popstate','IUIPartsService','members','state','name','Rect','connection\x20error','_socket$','NodePositionConvertToCursor','_initResize','_transitionLocked','Optional','PSEUDO_FETCH_MISSING_RESULT','close','debounceTime','onlineStatusTitle','_refreshCollabCursors','/universer-api/stream/file/upload','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_updateSubUnitFromURLParams','univer-online-status-title','HEARTBEAT_INTERVAL','updateCursorEvent','location','code','clearInterval','save','toRgbString','CHANGESET_REJ','fillStyle','syncEditingCollabCursor','_replayCachedMutations','offline','EmptyMutation','defIds','awaiting','/universer-api/snapshot/','/resources','getActiveSheet','height','toggleOnline','ImageUploadStatusType','_HTTPService','restore','onMouseMove','onCommentUpdate','VIEWPORT_KEY','_initUnitPermissionChange','transformSelections','_snapshotServerService','symbol','Ready','indexOf','_selfUnitIDs','split','_setupSubUnitSync','NO_OTHER_CLIENTS_EDITING','LIVESHARE_TERMINATE','incrementRevForDocument','_docStateChangeManagerService','deserializeToCombResponse','unknown','LocaleService','_hideTimer','list','Error','image/bmp','_undoStacks','IMEInputManagerService','YUUMI_SUBSCRIPTION_NOT_FOUND','memberID','_exhaustRemoteChangesetQueue','use','session','ONLINE','OnLifecycle','setWaitCount','CollaborationController','SNAPSHOT_HAS_BEEN_REMOVED','error','_schedule','[PendingState]:\x20received\x20rejection.','image/jpg','auth.needGotoLoginAlert','#FFF','_collaborationPaused','RemoveRowCommandId','getDocRanges','newValue','_unitOnClients','cursorInfo$','onlineStatus','onSyncEditingCollabCursor','LICENSE_DISTRO_REJECTED','Vector2','awaiting_with_pending','UserManagerService','measureText','_transformPreviousActiveRange','parseProtocolChangeset','column','lineTo','[CollaborationEntity]','getCellPositionByOffset','onRemoteRej','RichTextEditingMutation','isInternalEditorID','isEditing','updateOfflineData','permissionRejEvent','SetSelectionsOperation','transformIMECache','backgroundColor','MessageType','close$','concat','_eventUnsubscribe','_collaborationController','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','RefRangeService','colorChannel1','_initStatusComponent','OnLineSingle','Inject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','\x20to\x20','JOINING','_send','CollaborationSession','_entities','WorkbookEditablePermission','requireSession','_localeService','_updateCollabCursors','delay','/block/','addObject','_revisionService','take','size','state$','shareReplay','from','objects','getParam','YUUMI_RATE_OVER_LIMIT','_initCloseConn','replace','forEach','_themeService','IAuthzIoService','useObservable','SUBMIT_CHANGESET','_initMergeInterceptor','session.room-full','NEW_CHANGESETS','@univerjs/docs','ImageIoService','_docTransformIMECacheService','LIVESHARE_OPERATION','_checkMissing','_localCacheService','range','TextSelectionManagerService','_scheduleReconnection','VIEW_MAIN','hasOwnProperty','UniverCollaborationClientPlugin','then','\x0aCurrent:\x20','COMPRESS_MUTATION_SEND','XHRHTTPImplementation','createIdentifier','collab-rect-range-','\x0aAfter:\x20','catch','asObservable','online','getTypeOfUnitDisposed$','subunit','resize','disableLocalCache','_saveTaskMap','@univerjs/engine-formula','textEncoder','uni.network.url-service','updatePermissionObjEvent','rev','_handleHover','save\x20fail\x20reason\x20is\x20','CollaborationStatusDisplay','send','ICollaborationSocketService','onlyLocal','_onRemoteACK','_beforeCloseService','_redoStacks','changesets','_scheduleSaving','fromEvent','sessionStatus$','getRoom','collabStatus.conflict','on-line-single_clip0_910_349','idSuffix','concatMap','delete','Steady','collaboration-client.offline-data-not-saved','switchMap','OFFLINE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_loadDoc','FromArray','_sheetSkeletonManagerService','_getAPIPrefixPath','roomMembers$','1339038iwAjGz','_onMessage','_state$','_substituteUndoStack','onlineStatusIcon','@univerjs/engine-render','RECV','HEARTBEAT','_transformSelections','action','ranges','304bRekfp','permission.content','_loadSheet','generateRandomId','_initCommandExecutedListener','UNIVER_SHEET','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','transform','UNIVER_UNKNOWN','stringify','setShapeProps','_docSkeleton','getMemberID','LIVESHARE_NEW_HOST','searchParams','_memberService','_updateStatus','TOO_MANY_REQUESTS','ImageSourceType','_scheduleHeartbeat','_onRecvEvent','Warning','USERS_ENTER','11rWlZVs','MSG_FOR_ERROR','collaborators','_joinRoom','setActiveRange','_syncEditingCollabCursor','INGEST','get','entries','every','getSheetObject','registerOnClose','hide','DeleteRangeMoveUpCommandId','_snapshotService','SetDocZoomRatioOperation','SHOULD_CLOSE_CONN','_localStorageService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','purple300','IURLService','b64DecodeUnicode','_onUserJoin','_commentService','createElement','FAIL','editing\x20status\x20changed\x20to','_cursors','createSocket','init','_registerDependencies','onMissedChangesetFetched','getUndoRedoMutationParamsCache','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNKNOWN_CMD','onTransformSelections','_getSendChangesetTimeout','override','_lockTransition','doc.mutation.rich-text-editing'];_0x1e54=function(){return _0x2665ba;};return _0x1e54();}var $i=Object[_0x2cc1b3(0x1b2)],xi=Object[_0x2cc1b3(0x47b)],Hi=(_0x138452,_0x10be1e,_0x3574f3,_0x24d921)=>{const _0x5702f4=_0x2cc1b3;for(var _0x22a59c=_0x24d921>0x1?void 0x0:_0x24d921?xi(_0x10be1e,_0x3574f3):_0x10be1e,_0x3fb14c=_0x138452[_0x5702f4(0x209)]-0x1,_0x4e9a1f;_0x3fb14c>=0x0;_0x3fb14c--)(_0x4e9a1f=_0x138452[_0x3fb14c])&&(_0x22a59c=(_0x24d921?_0x4e9a1f(_0x10be1e,_0x3574f3,_0x22a59c):_0x4e9a1f(_0x22a59c))||_0x22a59c);return _0x24d921&&_0x22a59c&&$i(_0x10be1e,_0x3574f3,_0x22a59c),_0x22a59c;},Me=(_0x33a6d0,_0x1d32d0)=>(_0x4fba67,_0x9ce281)=>_0x1d32d0(_0x4fba67,_0x9ce281,_0x33a6d0);let Ie=class{constructor(_0x1ceb4b,_0x42770b,_0x572aee){const _0x1c2bd5=_0x2cc1b3;this[_0x1c2bd5(0x3f8)]=_0x1ceb4b,this['_httpService']=_0x42770b,this[_0x1c2bd5(0x1ff)]=_0x572aee,this[_0x1c2bd5(0x3d0)]();}[_0x2cc1b3(0x3d0)](){const _0x58b0cf=_0x2cc1b3;this[_0x58b0cf(0x15c)][_0x58b0cf(0x4bc)]({'priority':0x1,'interceptor':(_0x1fd3b9,_0xc27f09)=>_0xc27f09(_0x1fd3b9)['pipe'](v[_0x58b0cf(0x385)](async _0x4c24da=>{const _0x3f494b=_0x58b0cf,_0x229e17=_0x4c24da;if(_0x229e17[_0x3f494b(0x4c5)]===0x191&&window[_0x3f494b(0x235)](this['localeService']['t'](_0x3f494b(0x30b)))){const _0x5c4318=window[_0x3f494b(0x1df)](window[_0x3f494b(0x2cf)][_0x3f494b(0x44a)]);window['location'][_0x3f494b(0x44a)]=this[_0x3f494b(0x4f5)]()+_0x3f494b(0x4ec)+_0x5c4318;}return _0x229e17;}))});}[_0x2cc1b3(0x4f5)](){const _0x3b7994=_0x2cc1b3;var _0x4f2333;return(_0x4f2333=this[_0x3b7994(0x3f8)][_0x3b7994(0x42f)](mt))!=null?_0x4f2333:Jt;}};Ie=Hi([Me(0x0,o[_0x2cc1b3(0x149)]),Me(0x1,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1da)])),Me(0x2,o[_0x2cc1b3(0x333)](o['LocaleService']))],Ie);var ki=Object[_0x2cc1b3(0x1b2)],Bi=Object[_0x2cc1b3(0x47b)],Fi=(_0x4ec7e5,_0x3909e2,_0x3498f5,_0x43149b)=>{const _0x5e9ac7=_0x2cc1b3;for(var _0x7043cf=_0x43149b>0x1?void 0x0:_0x43149b?Bi(_0x3909e2,_0x3498f5):_0x3909e2,_0x30b9ce=_0x4ec7e5[_0x5e9ac7(0x209)]-0x1,_0x322c80;_0x30b9ce>=0x0;_0x30b9ce--)(_0x322c80=_0x4ec7e5[_0x30b9ce])&&(_0x7043cf=(_0x43149b?_0x322c80(_0x3909e2,_0x3498f5,_0x7043cf):_0x322c80(_0x7043cf))||_0x7043cf);return _0x43149b&&_0x7043cf&&ki(_0x3909e2,_0x3498f5,_0x7043cf),_0x7043cf;},ot=(_0x8d98d,_0x30b962)=>(_0x5350d2,_0x52e7d0)=>_0x30b962(_0x5350d2,_0x52e7d0,_0x8d98d);const Mt='AUTHZ_URL_KEY',Vi='/universer-api/authz';exports['AuthzIoHttpService']=class extends o[_0x2cc1b3(0x460)]{constructor(_0x298eb4,_0xd09634){const _0x375fa1=_0x2cc1b3;super(),this[_0x375fa1(0x2e2)]=_0x298eb4,this[_0x375fa1(0x3f8)]=_0xd09634,this['_initMergeInterceptor']();}[_0x2cc1b3(0x351)](){const _0x32e3f2=_0x2cc1b3,_0x279a83=this;this[_0x32e3f2(0x4be)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':U['MergeInterceptorFactory']({'isMatch'(_0x1b9457){const _0x253f78=_0x32e3f2;var _0x1c46ef;if(_0x1b9457[_0x253f78(0x4e9)]===_0x253f78(0x43e)&&((_0x1c46ef=_0x1b9457[_0x253f78(0x27d)])!=null&&_0x1c46ef[_0x253f78(0x4f8)])){const {objectID:_0x3bdfdd,objectType:_0x19128e}=_0x1b9457['requestParams'][_0x253f78(0x4f8)]||{};if(!_0x3bdfdd||_0x19128e===void 0x0)return!0x1;const _0x225880=_0x279a83[_0x253f78(0x38f)]()+'/'+_0x19128e+_0x253f78(0x49c)+_0x3bdfdd+_0x253f78(0x1ca);if(_0x1b9457[_0x253f78(0x29d)]===_0x225880)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5bd419){const _0x2123cb=_0x32e3f2;var _0x5a3447;return(_0x5a3447=_0x5bd419[_0x2123cb(0x27d)])==null?void 0x0:_0x5a3447['body'];},'mergeParamsToRequest'(_0x1f5834,_0x2007fd){const _0x14da4c=_0x32e3f2,_0x18c104=_0x279a83[_0x14da4c(0x38f)]()+_0x14da4c(0x508),_0xcac93d=_0x1f5834[_0x14da4c(0x497)]((_0x43c279,_0x4c0b49)=>{const _0x50e638=_0x14da4c,{unitID:_0x384791,objectID:_0x495c47,objectType:_0x510c09,actions:_0x35af0d}=_0x4c0b49;return _0x43c279[_0x384791]||(_0x43c279[_0x384791]={}),_0x43c279[_0x384791][_0x495c47]||(_0x43c279[_0x384791][_0x495c47]={'objectID':_0x495c47,'objectType':_0x510c09,'actions':[]}),_0x43c279[_0x384791][_0x495c47][_0x50e638(0x27e)][_0x50e638(0x4bd)](..._0x35af0d),_0x43c279;},{}),_0x24a1a7=[];for(const _0x4185b4 in _0xcac93d)for(const _0x25e1b4 in _0xcac93d[_0x4185b4]){const {actions:_0x36b902,objectType:_0x503ca2}=_0xcac93d[_0x4185b4][_0x25e1b4],_0x10cd2d=[...new Set(_0x36b902)];_0x24a1a7['push']({'unitID':_0x4185b4,'objectID':_0x25e1b4,'objectType':_0x503ca2,'actions':_0x10cd2d});}return new U['HTTPRequest']('POST',_0x18c104,{'headers':_0x2007fd[_0x14da4c(0x4ea)],'withCredentials':_0x2007fd[_0x14da4c(0x21b)],'responseType':_0x2007fd[_0x14da4c(0x178)],'body':{'requests':_0x24a1a7}});}},{'distributeResult'(_0x373a90,_0x52bd12){const _0x3c6ac9=_0x32e3f2,{objectActions:_0x2b246e}=_0x373a90;return _0x52bd12[_0x3c6ac9(0x2a8)](_0x1c196d=>{const _0x5252ad=_0x3c6ac9,{unitID:_0x1f1be3,objectID:_0x8ff9a6,actions:_0x435a93}=_0x1c196d,_0x34cc53=_0x2b246e['find'](_0x5b5807=>_0x5b5807[_0x5252ad(0x3ee)]===_0x1f1be3&&_0x5b5807[_0x5252ad(0x49d)]===_0x8ff9a6),_0x5112c0=_0x435a93['map'](_0x552264=>_0x34cc53==null?void 0x0:_0x34cc53[_0x5252ad(0x27e)][_0x5252ad(0x4da)](_0x18b260=>_0x18b260[_0x5252ad(0x39a)]===_0x552264))['filter'](_0x2f4f33=>!!_0x2f4f33);return{'config':_0x1c196d,'result':{'actions':_0x5112c0,'error':_0x373a90[_0x5252ad(0x307)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3f6204=_0x2cc1b3;var _0x4a3c60;return(_0x4a3c60=this[_0x3f6204(0x3f8)][_0x3f6204(0x42f)](Mt))!=null?_0x4a3c60:Vi;}async[_0x2cc1b3(0x231)](_0x1758ca){const _0x2d37a2=_0x2cc1b3,_0x19a7fc=this[_0x2d37a2(0x38f)]()+'/'+_0x1758ca['objectType']+_0x2d37a2(0x1a9);return(await this[_0x2d37a2(0x2e2)][_0x2d37a2(0x152)](_0x19a7fc,{'body':_0x1758ca}))[_0x2d37a2(0x4f8)][_0x2d37a2(0x49d)]||'';}async[_0x2cc1b3(0x2f8)](_0x1c646b){const _0x508491=_0x2cc1b3,_0x4b5fbb=this[_0x508491(0x38f)]()+_0x508491(0x4c1);return(await this[_0x508491(0x2e2)][_0x508491(0x152)](_0x4b5fbb,{'body':_0x1c646b}))[_0x508491(0x4f8)][_0x508491(0x347)];}async['update'](_0x4d2e72){const _0x12e8d4=_0x2cc1b3,_0x26871f=this[_0x12e8d4(0x38f)]()+'/'+_0x4d2e72[_0x12e8d4(0x4b4)]+_0x12e8d4(0x49c)+_0x4d2e72['objectID'];await this[_0x12e8d4(0x2e2)][_0x12e8d4(0x2a2)](_0x26871f,{'body':_0x4d2e72});}async[_0x2cc1b3(0x20a)](_0x3ff5ee){const _0x23c297=_0x2cc1b3,_0x57de02=this[_0x23c297(0x38f)]()+'/'+_0x3ff5ee[_0x23c297(0x4b4)]+'/object/'+_0x3ff5ee[_0x23c297(0x49d)]+'/allowed';return(await this[_0x23c297(0x2e2)][_0x23c297(0x152)](_0x57de02,{'body':_0x3ff5ee}))['body'][_0x23c297(0x27e)];}async['batchAllowed'](_0x5e56ce){const _0x52f9e5=_0x2cc1b3,_0x296378=this[_0x52f9e5(0x38f)]()+_0x52f9e5(0x508);return(await this[_0x52f9e5(0x2e2)]['post'](_0x296378,{'body':{'requests':_0x5e56ce}}))['body'][_0x52f9e5(0x245)];}async['listRoles'](_0xe684dd){const _0x30d5fb=_0x2cc1b3,_0x482e78=this[_0x30d5fb(0x38f)]()+'/'+_0xe684dd['objectType']+'/role',_0x14badd=await this[_0x30d5fb(0x2e2)][_0x30d5fb(0x152)](_0x482e78,{'body':_0xe684dd});return{'roles':_0x14badd[_0x30d5fb(0x4f8)][_0x30d5fb(0x25a)],'actions':_0x14badd[_0x30d5fb(0x4f8)][_0x30d5fb(0x27e)]};}async[_0x2cc1b3(0x415)](_0x38ef34){const _0x29e1f2=_0x2cc1b3,_0x2ab1b5=this['_getAPIPrefixPath']()+_0x29e1f2(0x4af);await this[_0x29e1f2(0x2e2)][_0x29e1f2(0x386)](_0x2ab1b5,{'params':{'collaboratorID':_0x38ef34['collaboratorID'],'objectID':_0x38ef34[_0x29e1f2(0x49d)],'unitID':_0x38ef34['unitID']}});}async['updateCollaborator'](_0x6f7ce1){const _0x429344=_0x2cc1b3,_0x1b4db8=this['_getAPIPrefixPath']()+_0x429344(0x4af);await this[_0x429344(0x2e2)]['patch'](_0x1b4db8,{'body':_0x6f7ce1});}async['createCollaborator'](_0x5f2536){const _0x1895b0=_0x2cc1b3,_0x1af7b1=this[_0x1895b0(0x38f)]()+'/collaborator';await this[_0x1895b0(0x2e2)][_0x1895b0(0x152)](_0x1af7b1,{'body':_0x5f2536});}async[_0x2cc1b3(0x275)](_0x3df0c8){const _0x55cf48=_0x2cc1b3,_0x20ed0e=this[_0x55cf48(0x38f)]()+_0x55cf48(0x4af);return(await this[_0x55cf48(0x2e2)][_0x55cf48(0x3ba)](_0x20ed0e,{'params':{'objectID':_0x3df0c8[_0x55cf48(0x49d)],'unitID':_0x3df0c8[_0x55cf48(0x3ee)]}}))['body'][_0x55cf48(0x3b5)];}async[_0x2cc1b3(0x44c)](_0x3660ba){const _0x12b07a=_0x2cc1b3,_0x35fb5f=this[_0x12b07a(0x38f)]()+_0x12b07a(0x4af);await this[_0x12b07a(0x2e2)][_0x12b07a(0x2a2)](_0x35fb5f,{'body':_0x3660ba});}},exports[_0x2cc1b3(0x512)]=Fi([ot(0x0,o['Inject'](U[_0x2cc1b3(0x1da)])),ot(0x1,o['Inject'](o[_0x2cc1b3(0x149)]))],exports[_0x2cc1b3(0x512)]);var Wi=Object[_0x2cc1b3(0x1b2)],Gi=Object[_0x2cc1b3(0x47b)],Yi=(_0x438fa0,_0x4692b5,_0x18c873,_0x1f8dd1)=>{for(var _0x5a2a88=_0x1f8dd1>0x1?void 0x0:_0x1f8dd1?Gi(_0x4692b5,_0x18c873):_0x4692b5,_0x5bcae4=_0x438fa0['length']-0x1,_0x2a065e;_0x5bcae4>=0x0;_0x5bcae4--)(_0x2a065e=_0x438fa0[_0x5bcae4])&&(_0x5a2a88=(_0x1f8dd1?_0x2a065e(_0x4692b5,_0x18c873,_0x5a2a88):_0x2a065e(_0x5a2a88))||_0x5a2a88);return _0x1f8dd1&&_0x5a2a88&&Wi(_0x4692b5,_0x18c873,_0x5a2a88),_0x5a2a88;},at=(_0x327ce5,_0x49c9b1)=>(_0x1ddc26,_0x359163)=>_0x49c9b1(_0x1ddc26,_0x359163,_0x327ce5);const Ki=[_0x2cc1b3(0x4eb),'image/jpeg',_0x2cc1b3(0x30a),_0x2cc1b3(0x50c),_0x2cc1b3(0x2fa)],Xi=0x5*0x400*0x400,qi=_0x2cc1b3(0x3a2),zi=_0x2cc1b3(0x2c9),Ji=_0x2cc1b3(0x1c1),Zi='/universer-api/file/{fileID}/sign-url';exports[_0x2cc1b3(0x355)]=class{constructor(_0x3c607f,_0x32acf8){const _0x2684e1=_0x2cc1b3;u(this,'_waitCount',0x0),u(this,_0x2684e1(0x166),new v['Subject']()),u(this,_0x2684e1(0x4c7),this[_0x2684e1(0x166)]),u(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x3c607f,this[_0x2684e1(0x3f8)]=_0x32acf8);}[_0x2cc1b3(0x304)](_0x2a0eee){const _0x474783=_0x2cc1b3;this[_0x474783(0x26b)]=_0x2a0eee,this[_0x474783(0x166)][_0x474783(0x1a2)](_0x2a0eee);}[_0x2cc1b3(0x430)](_0x35b91b,_0xf6299){const _0x1e6313=_0x2cc1b3;if(_0xf6299===A['ImageSourceType'][_0x1e6313(0x14b)]){const _0x12fc4e=new Image();return _0x12fc4e['src']=_0x35b91b,_0x12fc4e;}return this['_imageSourceCache'][_0x1e6313(0x3ba)](_0x35b91b);}['addImageSourceCache'](_0x1276fa,_0x556bbc,_0x427a58){const _0x238d86=_0x2cc1b3;_0x556bbc===A[_0x238d86(0x3ae)][_0x238d86(0x14b)]||_0x427a58==null||this['_imageSourceCache'][_0x238d86(0x1b8)](_0x1276fa,_0x427a58);}async[_0x2cc1b3(0x46d)](_0x1f7ca9){const _0x4ad423=_0x2cc1b3;try{const _0x50ea5e=this[_0x4ad423(0x4fa)](this[_0x4ad423(0x4cb)](),''+_0x1f7ca9),_0x13f9fe=(await this[_0x4ad423(0x15c)]['get'](_0x50ea5e))[_0x4ad423(0x4f8)];return _0x13f9fe[_0x4ad423(0x307)]&&_0x13f9fe[_0x4ad423(0x307)][_0x4ad423(0x2d0)]===gt['OK']?Promise[_0x4ad423(0x40d)](_0x13f9fe[_0x4ad423(0x29d)]):Promise[_0x4ad423(0x48f)](_0x13f9fe[_0x4ad423(0x307)]);}catch(_0x476edc){return Promise[_0x4ad423(0x48f)](_0x476edc);}}async['saveImage'](_0x17d8bf){const _0x1fd876=_0x2cc1b3;let _0x28a755='';if(!Ki[_0x1fd876(0x15d)](_0x17d8bf[_0x1fd876(0x3e9)]))return this[_0x1fd876(0x44d)](),Promise[_0x1fd876(0x48f)](new Error(A[_0x1fd876(0x2e1)][_0x1fd876(0x496)]));if(_0x17d8bf[_0x1fd876(0x343)]>Xi)return this[_0x1fd876(0x44d)](),Promise['reject'](new Error(A[_0x1fd876(0x2e1)]['ERROR_EXCEED_SIZE']));try{const _0x36bdbe=new FormData();_0x36bdbe[_0x1fd876(0x4a5)](_0x1fd876(0x483),_0x17d8bf);const _0x2edabf=this[_0x1fd876(0x4d5)]()+_0x1fd876(0x43b)+_0x17d8bf[_0x1fd876(0x343)]['toString'](),_0x381220=await(await fetch(_0x2edabf,{'method':_0x1fd876(0x43e),'body':_0x36bdbe}))[_0x1fd876(0x212)]();if(typeof _0x381220['FileId']!=_0x1fd876(0x26e))return this[_0x1fd876(0x44d)](),Promise[_0x1fd876(0x48f)](new Error(A[_0x1fd876(0x2e1)][_0x1fd876(0x1cc)]));_0x28a755=_0x381220[_0x1fd876(0x1e3)];}catch{return this[_0x1fd876(0x44d)](),Promise[_0x1fd876(0x48f)](new Error(A['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x415928,_0x2d3d30)=>{const _0x123c85=_0x1fd876,_0x15e047=new FileReader();_0x15e047[_0x123c85(0x241)](_0x17d8bf),_0x15e047['onload']=_0x473849=>{const _0x139ff2=_0x123c85;var _0x941270;const _0x4ccb64=(_0x941270=_0x473849['target'])==null?void 0x0:_0x941270['result'];if(_0x4ccb64==null){this[_0x139ff2(0x44d)](),_0x2d3d30(new Error(A[_0x139ff2(0x2e1)][_0x139ff2(0x1cc)]));return;}const _0x39db10=o['Tools'][_0x139ff2(0x39f)](0x6);_0x415928({'imageId':_0x39db10,'imageSourceType':A['ImageSourceType'][_0x139ff2(0x256)],'source':_0x28a755,'base64Cache':_0x4ccb64,'status':A[_0x139ff2(0x2e1)][_0x139ff2(0x3e4)]}),this['_decreaseWaiting']();};});}[_0x2cc1b3(0x4d5)](){const _0xa7b944=_0x2cc1b3;var _0x4cd108;return(_0x4cd108=this[_0xa7b944(0x3f8)][_0xa7b944(0x42f)](qi))!=null?_0x4cd108:zi;}[_0x2cc1b3(0x4cb)](){const _0x533304=_0x2cc1b3;var _0x4716b0;return(_0x4716b0=this['_configService'][_0x533304(0x42f)](Ji))!=null?_0x4716b0:Zi;}[_0x2cc1b3(0x4fa)](_0x291f87,_0x23c4b8){const _0x400608=_0x2cc1b3;return _0x291f87[_0x400608(0x34b)](_0x400608(0x1d8),_0x23c4b8);}[_0x2cc1b3(0x44d)](){const _0x14d01f=_0x2cc1b3;this[_0x14d01f(0x26b)]-=0x1,this['_change$'][_0x14d01f(0x1a2)](this[_0x14d01f(0x26b)]);}},exports[_0x2cc1b3(0x355)]=Yi([at(0x0,o[_0x2cc1b3(0x333)](U['HTTPService'])),at(0x1,o['IConfigService'])],exports[_0x2cc1b3(0x355)]);var Qi=Object[_0x2cc1b3(0x1b2)],en=Object['getOwnPropertyDescriptor'],tn=(_0x29fbec,_0xad87af,_0x27e97b,_0x53d4b9)=>{const _0x9788cc=_0x2cc1b3;for(var _0x54b468=_0x53d4b9>0x1?void 0x0:_0x53d4b9?en(_0xad87af,_0x27e97b):_0xad87af,_0x169135=_0x29fbec[_0x9788cc(0x209)]-0x1,_0x177a31;_0x169135>=0x0;_0x169135--)(_0x177a31=_0x29fbec[_0x169135])&&(_0x54b468=(_0x53d4b9?_0x177a31(_0xad87af,_0x27e97b,_0x54b468):_0x177a31(_0x54b468))||_0x54b468);return _0x53d4b9&&_0x54b468&&Qi(_0xad87af,_0x27e97b,_0x54b468),_0x54b468;},ae=(_0x153306,_0x18a906)=>(_0x342c0a,_0x4bb392)=>_0x18a906(_0x342c0a,_0x4bb392,_0x153306);let Se=class extends o['RxDisposable']{constructor(_0x409471,_0x5e8aec,_0x3e8afb,_0x7f65f2,_0x131d95){const _0x5d29d8=_0x2cc1b3;super(),this[_0x5d29d8(0x3fe)]=_0x409471,this[_0x5d29d8(0x46f)]=_0x5e8aec,this['_permissionService']=_0x3e8afb,this[_0x5d29d8(0x1ed)]=_0x7f65f2,this[_0x5d29d8(0x33c)]=_0x131d95,this[_0x5d29d8(0x2e7)](),this[_0x5d29d8(0x34a)]();}[_0x2cc1b3(0x34a)](){const _0x4492b6=_0x2cc1b3,_0x52c181=async _0x304710=>{const _0x3403d1=_0x4b8d;(await this[_0x3403d1(0x1ed)][_0x3403d1(0x33b)](_0x304710))[_0x3403d1(0x4cf)][_0x3403d1(0x478)](C['filter'](_0x521eee=>_0x521eee[_0x3403d1(0x266)]===_['CollaborationEvent'][_0x3403d1(0x3c3)]),C[_0x3403d1(0x1ef)](this['dispose$']))[_0x3403d1(0x4c8)](_0xaa0463=>{const _0x211081=_0x3403d1,_0x5708cd=_0xaa0463,{reason:_0x178f50}=_0x5708cd[_0x211081(0x1c0)];this[_0x211081(0x3fe)][_0x211081(0x3ba)](L['IMessageService'])[_0x211081(0x4f2)]({'type':Q[_0x211081(0x329)][_0x211081(0x2f9)],'content':this[_0x211081(0x33c)]['t']('collaboration.closeRoom')+'('+_0x178f50+')'}),this[_0x211081(0x1fd)][_0x211081(0x1e8)](new p['WorkbookEditablePermission'](_0x304710)['id'],!0x1),this[_0x211081(0x1ed)][_0x211081(0x410)](_0x304710);});};v[_0x4492b6(0x3e0)](this[_0x4492b6(0x46f)][_0x4492b6(0x25b)](o[_0x4492b6(0x271)][_0x4492b6(0x3a1)]),this[_0x4492b6(0x46f)][_0x4492b6(0x25b)](o[_0x4492b6(0x271)][_0x4492b6(0x40b)]))[_0x4492b6(0x478)](C[_0x4492b6(0x2a8)](_0xfcb6cc=>_0xfcb6cc[_0x4492b6(0x15a)]()),C[_0x4492b6(0x277)](_0x3e2fd9=>!o['isInternalEditorID'](_0x3e2fd9)),C[_0x4492b6(0x1ef)](this[_0x4492b6(0x23e)]))[_0x4492b6(0x4c8)](_0x32558c=>{_0x52c181(_0x32558c);});}['_initUnitPermissionChange'](){const _0x190417=_0x2cc1b3,_0x52474f=async _0x377f9c=>{const _0x5b9682=_0x4b8d;(await this['_collaborationSessionService'][_0x5b9682(0x33b)](_0x377f9c))[_0x5b9682(0x4cf)][_0x5b9682(0x478)](C[_0x5b9682(0x277)](_0x4c6ea5=>_0x4c6ea5[_0x5b9682(0x266)]===_[_0x5b9682(0x173)][_0x5b9682(0x4b8)]),C[_0x5b9682(0x1ef)](this['dispose$']))[_0x5b9682(0x4c8)](_0x1e5897=>{const _0x451489=_0x5b9682,_0x49002e=_0x1e5897,{objectId:_0x224954}=_0x49002e[_0x451489(0x1c0)];_0x224954===_0x377f9c&&this['_injector'][_0x451489(0x3ba)](J[_0x451489(0x495)])[_0x451489(0x22b)](_0x377f9c);});};v['merge'](this['_univerInstanceService'][_0x190417(0x25b)](o['UniverInstanceType']['UNIVER_SHEET']),this[_0x190417(0x46f)]['getTypeOfUnitAdded$'](o[_0x190417(0x271)][_0x190417(0x40b)]))[_0x190417(0x478)](C[_0x190417(0x2a8)](_0x18ba68=>_0x18ba68[_0x190417(0x15a)]()),C[_0x190417(0x277)](_0x2dc22d=>!o[_0x190417(0x322)](_0x2dc22d)),C[_0x190417(0x1ef)](this['dispose$']))[_0x190417(0x4c8)](_0x40c657=>{_0x52474f(_0x40c657);});}};Se=tn([o[_0x2cc1b3(0x303)](o[_0x2cc1b3(0x4d9)]['Starting'],Se),ae(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),ae(0x1,o[_0x2cc1b3(0x298)]),ae(0x2,o[_0x2cc1b3(0x42e)]),ae(0x3,o['Inject'](exports[_0x2cc1b3(0x14e)])),ae(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)]))],Se);var wt=Object[_0x2cc1b3(0x1b2)],sn=Object['getOwnPropertyDescriptor'],nn=(_0x3d5987,_0x485303,_0x462dc5)=>_0x485303 in _0x3d5987?wt(_0x3d5987,_0x485303,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x462dc5}):_0x3d5987[_0x485303]=_0x462dc5,rn=(_0x574b38,_0x785499,_0x5c9a8a,_0x3b467f)=>{const _0x557e72=_0x2cc1b3;for(var _0x113b52=_0x3b467f>0x1?void 0x0:_0x3b467f?sn(_0x785499,_0x5c9a8a):_0x785499,_0xd3d262=_0x574b38[_0x557e72(0x209)]-0x1,_0x402b30;_0xd3d262>=0x0;_0xd3d262--)(_0x402b30=_0x574b38[_0xd3d262])&&(_0x113b52=(_0x3b467f?_0x402b30(_0x785499,_0x5c9a8a,_0x113b52):_0x402b30(_0x113b52))||_0x113b52);return _0x3b467f&&_0x113b52&&wt(_0x785499,_0x5c9a8a,_0x113b52),_0x113b52;},we=(_0x1ce412,_0x33fb0a)=>(_0x258ee9,_0x3cdb30)=>_0x33fb0a(_0x258ee9,_0x3cdb30,_0x1ce412),on=(_0x4ae002,_0x3f54bc,_0x2d6bb3)=>nn(_0x4ae002,_0x3f54bc+'',_0x2d6bb3);const an=_0x2cc1b3(0x4f3);exports[_0x2cc1b3(0x35f)]=class extends o['Plugin']{constructor(_0x5f1624,_0x13aa7e,_0xc04934,_0xed506f){const _0x2facf4=_0x2cc1b3;super(),this[_0x2facf4(0x51a)]=_0x5f1624,this[_0x2facf4(0x402)]=_0x13aa7e,this['_renderManagerService']=_0xc04934,this[_0x2facf4(0x3fe)]=_0xed506f;}[_0x2cc1b3(0x281)](_0x394022){const _0x553443=_0x2cc1b3;this[_0x553443(0x3d1)](_0x394022);}['onRendered'](){const _0x5bded4=_0x2cc1b3;this[_0x5bded4(0x4e7)]();}[_0x2cc1b3(0x3d1)](_0x33ab47){const _0x4c85e4=_0x2cc1b3;var _0x11f60e,_0x34cdd1,_0x48409f,_0x237452;_0x33ab47[_0x4c85e4(0x2ae)](o['IUndoRedoService'])&&this[_0x4c85e4(0x402)][_0x4c85e4(0x307)]('[UniverCollaborationClientPlugin]',_0x4c85e4(0x334));let _0x10825d=[[o[_0x4c85e4(0x4a8)],{'useClass':je}],[exports[_0x4c85e4(0x14e)]],[Ve],[U['HTTPService']],[Ge,{'useClass':Ut}],[Y],[exports[_0x4c85e4(0x15f)]],[U['WebSocketService']],[ge],[me],[ve],[Fe],[Ie],[Be],[Se],[ke,{'useClass':(_0x34cdd1=(_0x11f60e=this[_0x4c85e4(0x51a)])==null?void 0x0:_0x11f60e['socketService'])!=null?_0x34cdd1:exports['CollaborationSocketService']}],[U[_0x4c85e4(0x4df)],{'useClass':U[_0x4c85e4(0x363)]}],[o[_0x4c85e4(0x3ef)],{'useClass':exports[_0x4c85e4(0x4b5)]}],[o[_0x4c85e4(0x34e)],{'useClass':exports['AuthzIoHttpService']}],[A['IImageIoService'],{'useClass':exports[_0x4c85e4(0x355)]}],[exports[_0x4c85e4(0x305)]],[exports['DataLoaderController']],[exports['DesktopCollaborationStatusDisplayController']],[ue],[Z]];(_0x48409f=this[_0x4c85e4(0x51a)])!=null&&_0x48409f['enableSingleActiveInstanceLock']&&_0x10825d['push']([pe,{'useClass':_s}]),_0x10825d=o[_0x4c85e4(0x4f7)](_0x10825d,(_0x237452=this[_0x4c85e4(0x51a)])==null?void 0x0:_0x237452[_0x4c85e4(0x3d8)]),_0x10825d[_0x4c85e4(0x34c)](_0x3df8a7=>_0x33ab47[_0x4c85e4(0x506)](_0x3df8a7)),this['_initModules']();}[_0x2cc1b3(0x4e7)](){const _0x2dd4e0=_0x2cc1b3;this[_0x2dd4e0(0x4be)](this[_0x2dd4e0(0x4e5)]['registerRenderModule'](o[_0x2dd4e0(0x271)][_0x2dd4e0(0x40b)],[de])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](o['UniverInstanceType'][_0x2dd4e0(0x3a1)],[Ae]));}[_0x2cc1b3(0x44f)](){const _0x2fbf63=_0x2cc1b3;var _0x324d7d,_0x1a1093;this['_injector'][_0x2fbf63(0x3ba)](U[_0x2fbf63(0x1da)])[_0x2fbf63(0x4bc)]({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x324d7d=this['_config'])!=null&&_0x324d7d['enableOfflineEditing']||this[_0x2fbf63(0x3fe)]['get'](exports[_0x2fbf63(0x15f)])[_0x2fbf63(0x36d)](),(_0x1a1093=this[_0x2fbf63(0x51a)])!=null&&_0x1a1093[_0x2fbf63(0x43c)]&&this[_0x2fbf63(0x3fe)][_0x2fbf63(0x3ba)](Ie);}},on(exports[_0x2cc1b3(0x35f)],_0x2cc1b3(0x50f),an),exports[_0x2cc1b3(0x35f)]=rn([o[_0x2cc1b3(0x229)](_['UniverCollaborationPlugin']),we(0x1,o['ILogService']),we(0x2,b[_0x2cc1b3(0x29e)]),we(0x3,o[_0x2cc1b3(0x333)](o['Injector']))],exports[_0x2cc1b3(0x35f)]),exports[_0x2cc1b3(0x208)]=Mt,exports[_0x2cc1b3(0x16e)]=vt,exports[_0x2cc1b3(0x22a)]=_t,exports[_0x2cc1b3(0x157)]=D,exports[_0x2cc1b3(0x376)]=Pt,exports[_0x2cc1b3(0x3db)]=Be,exports[_0x2cc1b3(0x487)]=ut,exports[_0x2cc1b3(0x19d)]=xe,exports[_0x2cc1b3(0x378)]=ke,exports[_0x2cc1b3(0x3c7)]=Ge,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports[_0x2cc1b3(0x46b)]=mt,exports[_0x2cc1b3(0x1be)]=ht,exports['SNAPSHOT_SERVER_URL_KEY']=ct,exports['SNAPSHOT_URL_KEY']=lt,exports[_0x2cc1b3(0x1a7)]=G,exports['SheetCollabCursorShape']=Tt,exports[_0x2cc1b3(0x14d)]=Ut,exports[_0x2cc1b3(0x2f4)]=ft,exports[_0x2cc1b3(0x236)]=It;
1
+ 'use strict';const _0x30e940=_0x3b20;(function(_0xc279ef,_0x4d0c06){const _0xe7d95c=_0x3b20,_0x42af52=_0xc279ef();while(!![]){try{const _0x4731be=-parseInt(_0xe7d95c(0x228))/0x1+parseInt(_0xe7d95c(0x3f6))/0x2*(parseInt(_0xe7d95c(0x444))/0x3)+parseInt(_0xe7d95c(0x2cc))/0x4*(-parseInt(_0xe7d95c(0x45f))/0x5)+-parseInt(_0xe7d95c(0x2c7))/0x6+-parseInt(_0xe7d95c(0x339))/0x7*(-parseInt(_0xe7d95c(0x21a))/0x8)+parseInt(_0xe7d95c(0x3ec))/0x9+parseInt(_0xe7d95c(0x13d))/0xa;if(_0x4731be===_0x4d0c06)break;else _0x42af52['push'](_0x42af52['shift']());}catch(_0x2a7f76){_0x42af52['push'](_0x42af52['shift']());}}}(_0x59d8,0x87658));var xt=Object['defineProperty'],Ht=(_0x4535da,_0x2f299b,_0x257fbc)=>_0x2f299b in _0x4535da?xt(_0x4535da,_0x2f299b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x257fbc}):_0x4535da[_0x2f299b]=_0x257fbc,u=(_0xa08ffd,_0x42f1ac,_0x1c0eca)=>Ht(_0xa08ffd,typeof _0x42f1ac!=_0x30e940(0x3b6)?_0x42f1ac+'':_0x42f1ac,_0x1c0eca);Object[_0x30e940(0x36c)](exports,Symbol[_0x30e940(0x23e)],{'value':_0x30e940(0x210)});const o=require(_0x30e940(0x310)),p=require('@univerjs/sheets'),Q=require(_0x30e940(0x254)),L=require(_0x30e940(0x171)),_=require(_0x30e940(0x25b)),v=require(_0x30e940(0x3c4)),E=require(_0x30e940(0x42a)),P=require(_0x30e940(0x279)),U=require('@univerjs/network'),A=require(_0x30e940(0x1e2)),b=require(_0x30e940(0x86)),Ke=require('@univerjs/engine-formula'),xe=require(_0x30e940(0x40a)),J=require(_0x30e940(0x2ce)),y=require(_0x30e940(0x3bf)),kt=require(_0x30e940(0x192)),Bt=require(_0x30e940(0x3f9)),ct='SNAPSHOT_SERVER_URL_KEY',Vt=_0x30e940(0x41b),lt=_0x30e940(0x36e),ht='SEND_CHANGESET_TIMEOUT',Wt=0x7d0,_t='COLLAB_WEB_SOCKET_URL',Ft=_0x30e940(0x197),ut=_0x30e940(0x42e),Gt=0x7530,He=_0x30e940(0x371),dt=0x2710,Yt=_0x30e940(0x2fd),Kt=0x4e20,Xt=_0x30e940(0x305),qt=0x3,St=_0x30e940(0x2fa),zt=0x3e8,vt=_0x30e940(0x2df),Jt='/universer-api/comb',mt=_0x30e940(0x12c),Zt=_0x30e940(0xa8);var gt=(_0x15ad7a=>(_0x15ad7a[_0x15ad7a['UNDEFINED']=0x0]=_0x30e940(0x2ba),_0x15ad7a[_0x15ad7a['OK']=0x1]='OK',_0x15ad7a[_0x15ad7a[_0x30e940(0x136)]=0x2]=_0x30e940(0x136),_0x15ad7a[_0x15ad7a[_0x30e940(0x324)]=0x3]='PERMISSION_DENIED',_0x15ad7a[_0x15ad7a[_0x30e940(0x8a)]=0x4]='NOT_FOUND',_0x15ad7a[_0x15ad7a[_0x30e940(0x2fe)]=0x5]=_0x30e940(0x2fe),_0x15ad7a[_0x15ad7a[_0x30e940(0x3ef)]=0x6]=_0x30e940(0x3ef),_0x15ad7a[_0x15ad7a[_0x30e940(0x2bc)]=0x7]=_0x30e940(0x2bc),_0x15ad7a[_0x15ad7a[_0x30e940(0x91)]=0x8]=_0x30e940(0x91),_0x15ad7a[_0x15ad7a[_0x30e940(0x130)]=0x9]='COMPLETION_FINISHED',_0x15ad7a[_0x15ad7a['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x30e940(0x12b),_0x15ad7a[_0x15ad7a[_0x30e940(0x242)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x15ad7a[_0x15ad7a[_0x30e940(0x2d1)]=0x1772]=_0x30e940(0x2d1),_0x15ad7a[_0x15ad7a['APPLY_REJECT']=0x1b59]=_0x30e940(0x44a),_0x15ad7a[_0x15ad7a[_0x30e940(0x2b5)]=0x1b5a]=_0x30e940(0x2b5),_0x15ad7a[_0x15ad7a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x30e940(0x441),_0x15ad7a[_0x15ad7a[_0x30e940(0x103)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x15ad7a[_0x15ad7a[_0x30e940(0x1fc)]=0x1f41]=_0x30e940(0x1fc),_0x15ad7a[_0x15ad7a[_0x30e940(0x41e)]=0x2329]=_0x30e940(0x41e),_0x15ad7a[_0x15ad7a[_0x30e940(0x2ea)]=0x232a]=_0x30e940(0x2ea),_0x15ad7a[_0x15ad7a[_0x30e940(0x15b)]=0x232b]=_0x30e940(0x15b),_0x15ad7a[_0x15ad7a[_0x30e940(0x118)]=0x232c]=_0x30e940(0x118),_0x15ad7a[_0x15ad7a[_0x30e940(0xef)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x15ad7a[_0x15ad7a[_0x30e940(0x340)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x15ad7a[_0x15ad7a[_0x30e940(0x1a1)]=0x2712]=_0x30e940(0x1a1),_0x15ad7a[_0x15ad7a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x30e940(0x3cb),_0x15ad7a[_0x15ad7a[_0x30e940(0x28f)]=0x2714]=_0x30e940(0x28f),_0x15ad7a[_0x15ad7a[_0x30e940(0x3ed)]=-0x1]=_0x30e940(0x3ed),_0x15ad7a))(gt||{}),j=(_0x5d1b03=>(_0x5d1b03[_0x5d1b03[_0x30e940(0x294)]=0x0]=_0x30e940(0x294),_0x5d1b03[_0x5d1b03[_0x30e940(0x1f4)]=0x1]=_0x30e940(0x1f4),_0x5d1b03[_0x5d1b03['UNIVER_SHEET']=0x2]=_0x30e940(0x390),_0x5d1b03[_0x5d1b03[_0x30e940(0x2f2)]=0x3]=_0x30e940(0x2f2),_0x5d1b03[_0x5d1b03['UNIVER_PROJECT']=0x4]=_0x30e940(0x420),_0x5d1b03[_0x5d1b03['UNRECOGNIZED']=-0x1]=_0x30e940(0x3ed),_0x5d1b03))(j||{}),T=(_0x742740=>(_0x742740[_0x742740['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x742740[_0x742740[_0x30e940(0x229)]=0x1]=_0x30e940(0x229),_0x742740[_0x742740['JOIN']=0x2]='JOIN',_0x742740[_0x742740[_0x30e940(0x296)]=0x3]=_0x30e940(0x296),_0x742740[_0x742740['INGEST']=0x4]=_0x30e940(0x360),_0x742740[_0x742740['HEARTBEAT']=0x5]=_0x30e940(0x272),_0x742740[_0x742740[_0x30e940(0x2f6)]=0x6]=_0x30e940(0x2f6),_0x742740[_0x742740['UNRECOGNIZED']=-0x1]=_0x30e940(0x3ed),_0x742740))(T||{}),ke=(_0x4814f5=>(_0x4814f5[_0x4814f5['UNKNOWN_CODE']=0x0]=_0x30e940(0x17a),_0x4814f5[_0x4814f5['OK']=0x1]='OK',_0x4814f5[_0x4814f5[_0x30e940(0x1ee)]=0x2]=_0x30e940(0x1ee),_0x4814f5[_0x4814f5[_0x30e940(0x3ed)]=-0x1]=_0x30e940(0x3ed),_0x4814f5))(ke||{}),ft=(_0x36fa96=>(_0x36fa96[_0x36fa96[_0x30e940(0xaf)]=0x0]=_0x30e940(0xaf),_0x36fa96[_0x36fa96[_0x30e940(0x276)]=0x1]=_0x30e940(0x276),_0x36fa96[_0x36fa96['HttpExport']=0x2]=_0x30e940(0x2e0),_0x36fa96[_0x36fa96['UnitEmbedded']=0x3]=_0x30e940(0x2bf),_0x36fa96[_0x36fa96[_0x30e940(0x412)]=0x4]='UnitSnapshot',_0x36fa96[_0x36fa96[_0x30e940(0x3ed)]=-0x1]='UNRECOGNIZED',_0x36fa96))(ft||{}),Qt=Object[_0x30e940(0x36c)],es=Object[_0x30e940(0x1a2)],ts=(_0x6b706,_0x443da0,_0x107c85,_0x5f0911)=>{for(var _0x9c7833=_0x5f0911>0x1?void 0x0:_0x5f0911?es(_0x443da0,_0x107c85):_0x443da0,_0x46fbec=_0x6b706['length']-0x1,_0x1d0f1c;_0x46fbec>=0x0;_0x46fbec--)(_0x1d0f1c=_0x6b706[_0x46fbec])&&(_0x9c7833=(_0x5f0911?_0x1d0f1c(_0x443da0,_0x107c85,_0x9c7833):_0x1d0f1c(_0x9c7833))||_0x9c7833);return _0x5f0911&&_0x9c7833&&Qt(_0x443da0,_0x107c85,_0x9c7833),_0x9c7833;},Xe=(_0x43ef73,_0x183155)=>(_0x51a239,_0x4d35fe)=>_0x183155(_0x51a239,_0x4d35fe,_0x43ef73);let Y=class extends o['Disposable']{constructor(_0x555a85,_0x56eec4){const _0x29c0c9=_0x30e940;super(),u(this,_0x29c0c9(0xf8),new Map()),(this['_univerInstanceService']=_0x555a85,this[_0x29c0c9(0x413)]=_0x56eec4,this[_0x29c0c9(0x22c)](o[_0x29c0c9(0xa1)](v[_0x29c0c9(0xbd)](this[_0x29c0c9(0x43f)][_0x29c0c9(0x142)](o[_0x29c0c9(0x37c)]['UNIVER_SHEET'])['pipe'](E[_0x29c0c9(0x120)](_0x12e723=>_0x12e723['getUnitId']())),this[_0x29c0c9(0x43f)]['getTypeOfUnitDisposed$'](o[_0x29c0c9(0x37c)][_0x29c0c9(0x1f4)])[_0x29c0c9(0x2a9)](E['map'](_0x40dd7a=>_0x40dd7a[_0x29c0c9(0x280)]())),this[_0x29c0c9(0x43f)][_0x29c0c9(0x142)](o[_0x29c0c9(0x37c)]['UNIVER_SLIDE'])['pipe'](E[_0x29c0c9(0x120)](_0x113a04=>_0x113a04[_0x29c0c9(0x280)]())))['subscribe'](_0x17efbb=>this[_0x29c0c9(0x41d)](_0x17efbb)))));}[_0x30e940(0x173)](_0x322b27){const _0x56854a=_0x30e940;this[_0x56854a(0x413)][_0x56854a(0x173)](_0x322b27);}[_0x30e940(0x31c)](){const _0x3eeffe=_0x30e940;return this['_userManagerService'][_0x3eeffe(0x31c)]();}['updateMember'](_0x5dffd0,_0x51845f){const _0x45b130=_0x30e940;let _0x3a4ed5=this[_0x45b130(0xf8)]['get'](_0x5dffd0);_0x3a4ed5||(_0x3a4ed5=new ss(),this[_0x45b130(0xf8)]['set'](_0x5dffd0,_0x3a4ed5)),_0x3a4ed5['updateMember'](_0x51845f);}[_0x30e940(0x3e8)](_0x2f54bf,_0x266ed4){const _0x448e6f=_0x30e940,_0x5a555f=this[_0x448e6f(0xf8)][_0x448e6f(0x1f0)](_0x2f54bf);_0x5a555f&&_0x5a555f['removeMember'](_0x266ed4);}[_0x30e940(0x303)](_0x189565){const _0x4b5d90=_0x30e940;return this[_0x4b5d90(0xf8)][_0x4b5d90(0x1f0)](_0x189565);}[_0x30e940(0x275)](_0x334d51,_0x303f61){const _0x59a3c7=_0x30e940,_0x52a6e3=this[_0x59a3c7(0xf8)][_0x59a3c7(0x1f0)](_0x334d51);if(_0x52a6e3)return _0x52a6e3[_0x59a3c7(0x275)](_0x303f61);}[_0x30e940(0x41d)](_0x5a867f){const _0x315ab1=_0x30e940,_0x3f5193=this['_roomMembers'][_0x315ab1(0x1f0)](_0x5a867f);_0x3f5193&&(_0x3f5193[_0x315ab1(0xc6)](),this['_roomMembers'][_0x315ab1(0x244)](_0x5a867f));}[_0x30e940(0xc6)](){const _0x433461=_0x30e940;this[_0x433461(0xf8)][_0x433461(0x277)](_0x317df7=>_0x317df7['dispose']()),this[_0x433461(0xf8)]['clear']();}};Y=ts([Xe(0x0,o[_0x30e940(0x233)]),Xe(0x1,o['Inject'](o[_0x30e940(0x123)]))],Y);class ss extends o[_0x30e940(0x3c3)]{constructor(){const _0x208be4=_0x30e940;super(...arguments),u(this,_0x208be4(0x9a),new Map());}[_0x30e940(0xc6)](){const _0x5e0344=_0x30e940;this[_0x5e0344(0x9a)][_0x5e0344(0x9b)]();}['updateMember'](_0x3b2b80){const _0x31bd5d=_0x30e940;this[_0x31bd5d(0x9a)]['set'](_0x3b2b80['memberID'],_0x3b2b80);}[_0x30e940(0x3e8)](_0x381e28){const _0x106263=_0x30e940;this[_0x106263(0x9a)][_0x106263(0x244)](_0x381e28);}[_0x30e940(0x275)](_0x81f56c){const _0x1410c7=_0x30e940;return this['_members'][_0x1410c7(0x1f0)](_0x81f56c);}}function It(_0x219e18){const _0x48f260=_0x30e940;var _0x5b9cb9,_0x3469b7,_0x4817c2,_0x26f970;const _0x1e2700=_0x219e18['data'],_0x4e3776=JSON[_0x48f260(0x344)](_0x1e2700);switch(_0x4e3776[_0x48f260(0x322)]){case T[_0x48f260(0x272)]:case T[_0x48f260(0x229)]:{const _0x1a7fb9=_0x4e3776[_0x48f260(0x2d0)];return{..._0x4e3776,'data':_0x1a7fb9,'cmd':_0x4e3776[_0x48f260(0x322)]};}case T[_0x48f260(0x3fe)]:{const _0x47b4b3=_0x4e3776[_0x48f260(0x37b)];return{..._0x4e3776,'data':_0x47b4b3,'cmd':_0x4e3776[_0x48f260(0x322)]};}case T[_0x48f260(0x2f6)]:{const _0x4764f8=_0x4e3776['collaMsg'];switch(_0x4764f8['eventID']){case _[_0x48f260(0x284)][_0x48f260(0x327)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x5b9cb9=_0x4764f8[_0x48f260(0x35f)])==null?void 0x0:_0x5b9cb9['cs']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x30d)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x3469b7=_0x4764f8[_0x48f260(0x27b)])==null?void 0x0:_0x3469b7['cs']},'cmd':_0x4e3776['cmd']};case _[_0x48f260(0x284)][_0x48f260(0xa0)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x4817c2=_0x4764f8[_0x48f260(0x184)])==null?void 0x0:_0x4817c2['cs']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _['CollaborationEvent'][_0x48f260(0x2c6)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x26f970=_0x4764f8['csRejEvent'])==null?void 0x0:_0x26f970['cs']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x89)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0x3d4)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x473)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0xa9)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _['CollaborationEvent'][_0x48f260(0x1c4)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0x3cd)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x252)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['liveShareNewHost']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _['CollaborationEvent'][_0x48f260(0x21d)]:case _[_0x48f260(0x284)][_0x48f260(0x382)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0x145)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)]['LIVESHARE_TERMINATE']:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['liveShareNewHost']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x37d)]:return{..._0x4e3776,'data':_0x4764f8,'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x46c)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['commentUpdateEvent']},'cmd':_0x4e3776['cmd']};case _['CollaborationEvent'][_0x48f260(0x1a6)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0xf7)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0xd1)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['shouldCloseConn']},'cmd':_0x4e3776[_0x48f260(0x322)]};default:return _0x4e3776;}}default:return _0x4e3776;}}function pt(_0x51e98d){const _0x3dc209=_0x30e940;switch(_0x51e98d[_0x3dc209(0x322)]){case T['HEARTBEAT']:case T[_0x3dc209(0x229)]:return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d['cmd'],'routeKey':_0x51e98d[_0x3dc209(0x34b)]});case T[_0x3dc209(0x360)]:{let _0xb31a16;switch(_0x51e98d['data'][_0x3dc209(0x15d)]){case _[_0x3dc209(0x284)][_0x3dc209(0x89)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x89)],'updateCursorEvent':_0x51e98d['data'][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x1c4)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x1c4)],'leaveEvent':_0x51e98d[_0x3dc209(0x10a)][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x473)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x473)],'joinEvent':_0x51e98d[_0x3dc209(0x10a)][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x252)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x51e98d[_0x3dc209(0x10a)][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x382)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x382)],'liveShareOperation':_0x51e98d['data']['data']};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x3e5)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x3e5)],'liveShareTerminate':_0x51e98d['data'][_0x3dc209(0x10a)]};break;}case _['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x361)],'liveShareRequestHost':_0x51e98d['data'][_0x3dc209(0x10a)]};break;}case _['CollaborationEvent'][_0x3dc209(0x21d)]:{_0xb31a16={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0xb31a16={'eventID':_0x51e98d[_0x3dc209(0x10a)]['eventID']};}return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d[_0x3dc209(0x322)],'routeKey':_0x51e98d['routeKey'],'collaMsg':_0xb31a16});}case T['JOIN']:return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d[_0x3dc209(0x322)],'routeKey':_0x51e98d['routeKey'],'joinReq':_0x51e98d[_0x3dc209(0x10a)]});case T[_0x3dc209(0x296)]:return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d[_0x3dc209(0x322)],'routeKey':_0x51e98d[_0x3dc209(0x34b)],'leaveReq':_0x51e98d[_0x3dc209(0x10a)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var is=Object[_0x30e940(0x36c)],ns=Object[_0x30e940(0x1a2)],rs=(_0x4a0301,_0x66e14,_0x3f98a8,_0xf805c9)=>{for(var _0x25659f=_0xf805c9>0x1?void 0x0:_0xf805c9?ns(_0x66e14,_0x3f98a8):_0x66e14,_0x17d3ff=_0x4a0301['length']-0x1,_0x46c184;_0x17d3ff>=0x0;_0x17d3ff--)(_0x46c184=_0x4a0301[_0x17d3ff])&&(_0x25659f=(_0xf805c9?_0x46c184(_0x66e14,_0x3f98a8,_0x25659f):_0x46c184(_0x25659f))||_0x25659f);return _0xf805c9&&_0x25659f&&is(_0x66e14,_0x3f98a8,_0x25659f),_0x25659f;},se=(_0x4fdf8e,_0x25b022)=>(_0x4718c0,_0x8879c8)=>_0x25b022(_0x4718c0,_0x8879c8,_0x4fdf8e);const Be=o[_0x30e940(0x16b)]('univer-pro.collaboration-client-socket-service');function os(_0x4e0ba1,_0x22f0de,_0x2d3e9a){const _0x28782b=_0x30e940;return _0x4e0ba1+'/'+_0x22f0de+_0x28782b(0x1ae)+_0x2d3e9a+'/new_changes';}exports[_0x30e940(0x110)]=class{constructor(_0x448e3d,_0x352a10,_0x5d84d9,_0x41a7c1,_0x5a97e0){const _0x14c7ce=_0x30e940;this['_http']=_0x448e3d,this[_0x14c7ce(0x35a)]=_0x352a10,this[_0x14c7ce(0x160)]=_0x5d84d9,this[_0x14c7ce(0x198)]=_0x41a7c1,this[_0x14c7ce(0x31a)]=_0x5a97e0;}[_0x30e940(0x29f)](_0x379192){const _0x213a8c=_0x30e940,_0x4c3128=this[_0x213a8c(0x35a)][_0x213a8c(0x29f)](_0x379192);if(!_0x4c3128)throw new Error(_0x213a8c(0x3fc));const _0x37e96f=new o[(_0x213a8c(0x16f))](),_0x43fd46=new v['Subject']();_0x37e96f['add'](o[_0x213a8c(0xa1)](_0x4c3128[_0x213a8c(0x392)][_0x213a8c(0x196)](_0x4fb93d=>_0x43fd46[_0x213a8c(0x46e)](_0x4fb93d)))),_0x37e96f['add'](o[_0x213a8c(0xa1)](()=>_0x43fd46[_0x213a8c(0xb0)]()));const _0x1c1d87=new v[(_0x213a8c(0x457))]();_0x37e96f[_0x213a8c(0x418)](o[_0x213a8c(0xa1)](_0x4c3128['error$'][_0x213a8c(0x196)](_0x223733=>_0x1c1d87[_0x213a8c(0x46e)](_0x223733)))),_0x37e96f[_0x213a8c(0x418)](o[_0x213a8c(0xa1)](()=>_0x1c1d87[_0x213a8c(0xb0)]()));const _0x33fe44=new v[(_0x213a8c(0x457))]();_0x37e96f[_0x213a8c(0x418)](o['toDisposable'](_0x4c3128[_0x213a8c(0x3da)]['subscribe'](_0x47eef1=>{const _0x33ecb6=It(_0x47eef1);_0x33fe44['next'](_0x33ecb6);}))),_0x37e96f[_0x213a8c(0x418)](o[_0x213a8c(0xa1)](()=>_0x33fe44[_0x213a8c(0xb0)]()));const _0x3f0e7d=()=>{const _0xb2068=_0x213a8c;_0x1c1d87[_0xb2068(0x46e)](new Event('connection\x20error')),_0x43fd46[_0xb2068(0x46e)](new CloseEvent('connection\x20error')),_0x7eec1c['close']();},_0x7eec1c={'memberID':'','close$':_0x43fd46[_0x213a8c(0x16a)](),'error$':_0x1c1d87[_0x213a8c(0x16a)](),'open$':_0x4c3128[_0x213a8c(0x239)],'message$':_0x33fe44['asObservable'](),'send':_0x5328b6=>{const _0x1443e6=_0x213a8c;if(_0x5328b6[_0x1443e6(0x322)]===T[_0x1443e6(0x360)]){if(_0x5328b6[_0x1443e6(0x10a)][_0x1443e6(0x15d)]===_[_0x1443e6(0x284)][_0x1443e6(0x19c)]){this['_submitChangeset'](_0x7eec1c,_0x5328b6[_0x1443e6(0x10a)])[_0x1443e6(0x1a7)](_0x4246d4=>{const _0xdd18f1=_0x1443e6;this[_0xdd18f1(0x198)][_0xdd18f1(0xf0)](_0x4246d4),_0x3f0e7d();});return;}if(_0x5328b6[_0x1443e6(0x10a)]['eventID']===_['CollaborationEvent'][_0x1443e6(0x105)]){const _0x16fbfc=_0x5328b6[_0x1443e6(0x10a)];this[_0x1443e6(0x23d)](_0x16fbfc)[_0x1443e6(0x9d)](_0xb850f2=>{const _0x554698=_0x1443e6;_0x33fe44[_0x554698(0x46e)]({'cmd':T[_0x554698(0x2f6)],'code':ke['OK'],'routeKey':_0x16fbfc[_0x554698(0x10a)][_0x554698(0x1e6)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x554698(0x124)],'data':{'changesets':_0xb850f2}}});})[_0x1443e6(0x1a7)](_0x5d514b=>{const _0x176d2f=_0x1443e6;this[_0x176d2f(0x198)][_0x176d2f(0xf0)](_0x5d514b),_0x3f0e7d();});return;}}_0x4c3128[_0x1443e6(0x3e9)](pt(_0x5328b6));},'close':()=>{const _0x4179ec=_0x213a8c;_0x4c3128[_0x4179ec(0x21c)](),_0x37e96f['dispose']();}};return _0x7eec1c;}async[_0x30e940(0x2d6)](_0x48c1f1,_0x1c2cdb){const _0x4250da=_0x30e940;var _0x4859e9;const {unitType:_0x39e838,unitID:_0x1b5125,changeset:_0x20cec6}=_0x1c2cdb[_0x4250da(0x10a)],_0x53828f={'unitID':_0x1b5125,'memberID':_0x48c1f1['memberID'],'type':_0x39e838,'changeset':_['parseChangesetToProtocol'](_0x20cec6)},_0x418d9e=os((_0x4859e9=this[_0x4250da(0x160)][_0x4250da(0xfc)](vt))!=null?_0x4859e9:Jt,_0x39e838,_0x1b5125);try{await this[_0x4250da(0x34e)][_0x4250da(0x35c)](_0x418d9e,{'body':_0x53828f});}catch(_0xb09a8d){throw this['_logService']['error'](_0x4250da(0xb7),_0x4250da(0x248)),_0xb09a8d;}}async[_0x30e940(0x23d)](_0xc111cc){const _0x24d997=_0x30e940,{unitID:_0x12d7ca,from:_0x2af553,to:_0x523fce,unitType:_0x562813}=_0xc111cc[_0x24d997(0x10a)];return(await this[_0x24d997(0x31a)][_0x24d997(0x34c)]({'metadata':void 0x0},{'unitID':_0x12d7ca,'type':_0x562813,'from':_0x2af553,'to':_0x523fce}))['changesets'];}},exports[_0x30e940(0x110)]=rs([se(0x0,o[_0x30e940(0xdf)](U[_0x30e940(0x181)])),se(0x1,o[_0x30e940(0xdf)](U[_0x30e940(0x350)])),se(0x2,o[_0x30e940(0x306)]),se(0x3,o[_0x30e940(0x1e7)]),se(0x4,_['ISnapshotServerService'])],exports[_0x30e940(0x110)]);class Ve{constructor(){const _0x8f7403=_0x30e940;u(this,_0x8f7403(0x374),new v[(_0x8f7403(0x457))]()),u(this,'commentUpdate$',this[_0x8f7403(0x374)][_0x8f7403(0x16a)]());}[_0x30e940(0x134)](_0x5774ba){const _0x21256a=_0x30e940;this['_commentUpdate$'][_0x21256a(0x46e)](_0x5774ba);}}var as=Object[_0x30e940(0x36c)],cs=Object[_0x30e940(0x1a2)],Et=(_0x467865,_0x580393,_0x334e87,_0x3524ce)=>{const _0x8852a7=_0x30e940;for(var _0x21329a=_0x3524ce>0x1?void 0x0:_0x3524ce?cs(_0x580393,_0x334e87):_0x580393,_0x5cb679=_0x467865[_0x8852a7(0x3b8)]-0x1,_0x46a19d;_0x5cb679>=0x0;_0x5cb679--)(_0x46a19d=_0x467865[_0x5cb679])&&(_0x21329a=(_0x3524ce?_0x46a19d(_0x580393,_0x334e87,_0x21329a):_0x46a19d(_0x21329a))||_0x21329a);return _0x3524ce&&_0x21329a&&as(_0x580393,_0x334e87,_0x21329a),_0x21329a;},M=(_0x2dd0f3,_0x306cde)=>(_0x120162,_0x5486c9)=>_0x306cde(_0x120162,_0x5486c9,_0x2dd0f3),G=(_0x5c6d53=>(_0x5c6d53[_0x5c6d53[_0x30e940(0x2b8)]=0x0]=_0x30e940(0x2b8),_0x5c6d53[_0x5c6d53[_0x30e940(0x119)]=0x1]=_0x30e940(0x119),_0x5c6d53[_0x5c6d53[_0x30e940(0x32d)]=0x2]=_0x30e940(0x32d),_0x5c6d53[_0x5c6d53[_0x30e940(0x3aa)]=0x3]=_0x30e940(0x3aa),_0x5c6d53))(G||{});exports[_0x30e940(0x3ff)]=class extends o['RxDisposable']{constructor(_0x300d94,_0x50ee02,_0x6ccc52,_0x3b2199,_0x2ea6f0,_0x2f10cd,_0x217e89,_0x56eaf8,_0x1eadf6){const _0xf5555=_0x30e940;super(),u(this,_0xf5555(0x2d3),new v[(_0xf5555(0x2d8))](0x0)),u(this,'sessionStatus$',this[_0xf5555(0x2d3)][_0xf5555(0x16a)]()),u(this,_0xf5555(0x42b),new v[(_0xf5555(0x457))]()),u(this,_0xf5555(0x199),this[_0xf5555(0x42b)][_0xf5555(0x16a)]()),u(this,_0xf5555(0x431)),u(this,_0xf5555(0x287)),u(this,'_collaborationTimeoutTimer'),(this[_0xf5555(0x39b)]=_0x300d94,this[_0xf5555(0x198)]=_0x6ccc52,this[_0xf5555(0x400)]=_0x3b2199,this[_0xf5555(0x255)]=_0x2ea6f0,this[_0xf5555(0x160)]=_0x2f10cd,this['_localeService']=_0x217e89,this[_0xf5555(0x460)]=_0x56eaf8,this[_0xf5555(0x26c)]=_0x1eadf6,_0x50ee02[_0xf5555(0x2a9)](E[_0xf5555(0x3a8)](this[_0xf5555(0x2b1)]))[_0xf5555(0x196)](_0x2d2a9f=>{const _0x49f25b=_0xf5555;var _0x7ee5cb;typeof _0x2d2a9f>'u'||(this[_0x49f25b(0x431)]=_0x2d2a9f,_0x2d2a9f?(this[_0x49f25b(0x315)](_0x2d2a9f),this[_0x49f25b(0x287)]=this[_0x49f25b(0x431)][_0x49f25b(0x3da)]['subscribe'](_0x1e50df=>{const _0x599560=_0x49f25b;_0x1e50df[_0x599560(0x34b)]===this[_0x599560(0x39b)]&&this[_0x599560(0x18c)](_0x1e50df);})):(this['_sessionStatus$']['next'](0x2),(_0x7ee5cb=this[_0x49f25b(0x287)])==null||_0x7ee5cb[_0x49f25b(0xe4)](),this['_socketMessageSubscription']=null));}),this[_0xf5555(0x22c)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x22ab3f=_0xf5555;var _0x57406e;(_0x57406e=this[_0x22ab3f(0x431)])==null||_0x57406e['send']({'cmd':T[_0x22ab3f(0x296)],'data':{'roomID':this[_0x22ab3f(0x39b)]}});})));}get[_0x30e940(0x125)](){const _0x4e9fc8=_0x30e940;return this[_0x4e9fc8(0x2d3)][_0x4e9fc8(0xca)]();}[_0x30e940(0x266)](){const _0x58ca9c=_0x30e940;var _0x24b881,_0x315048;return(_0x315048=(_0x24b881=this[_0x58ca9c(0x431)])==null?void 0x0:_0x24b881[_0x58ca9c(0x1b2)])!=null?_0x315048:null;}[_0x30e940(0xc6)](){const _0x4c0868=_0x30e940;super[_0x4c0868(0xc6)](),this['dispose$']['next'](),this[_0x4c0868(0x2b1)][_0x4c0868(0xb0)]();}[_0x30e940(0x21c)](){const _0xeead4a=_0x30e940;var _0x497d77,_0x55731e;(_0x497d77=this[_0xeead4a(0x431)])==null||_0x497d77[_0xeead4a(0x3e9)]({'cmd':T[_0xeead4a(0x296)],'data':{'roomID':this[_0xeead4a(0x39b)]}}),this[_0xeead4a(0x42b)][_0xeead4a(0xb0)](),this[_0xeead4a(0x2d3)][_0xeead4a(0xb0)](),(_0x55731e=this[_0xeead4a(0x431)])==null||_0x55731e[_0xeead4a(0x21c)](),this[_0xeead4a(0xc6)]();}[_0x30e940(0x18c)](_0x3fe5d2){const _0x3409b4=_0x30e940;_0x3fe5d2[_0x3409b4(0x322)]===T[_0x3409b4(0x3fe)]?this[_0x3409b4(0x166)](_0x3fe5d2):_0x3fe5d2[_0x3409b4(0x322)]===T[_0x3409b4(0x2f6)]&&this[_0x3409b4(0x180)](_0x3fe5d2);}[_0x30e940(0x315)](_0x4e899f){const _0x3a00b9=_0x30e940;this['_sessionStatus$']['next'](0x1),_0x4e899f[_0x3a00b9(0x3e9)]({'cmd':T['JOIN'],'routeKey':this[_0x3a00b9(0x39b)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x30e940(0x166)](_0x3f5742){const _0x34aaea=_0x30e940;var _0x5e5f92;if(_0x3f5742['code']===ke[_0x34aaea(0x1ee)]){this['_messageService'][_0x34aaea(0x157)]({'type':Q['MessageType'][_0x34aaea(0x3d6)],'content':this[_0x34aaea(0x45b)]['t'](_0x34aaea(0x333))}),this['_sessionStatus$']['next'](0x2);return;}this[_0x34aaea(0x2d3)]['next'](0x3);const _0x39d4d4=(_0x5e5f92=_0x3f5742[_0x34aaea(0x10a)][_0x34aaea(0x25c)][this[_0x34aaea(0x39b)]])==null?void 0x0:_0x5e5f92[_0x34aaea(0x1c7)];_0x39d4d4&&_0x39d4d4[_0x34aaea(0x277)](_0xccd721=>this['_memberService'][_0x34aaea(0x12e)](this['_unitID'],_0xccd721));}[_0x30e940(0x180)](_0x5a5c0a){const _0x33a95f=_0x30e940;try{const _0x2d92ab=_0x5a5c0a[_0x33a95f(0x10a)];switch(_0x2d92ab[_0x33a95f(0x15d)]){case _[_0x33a95f(0x284)][_0x33a95f(0x473)]:this[_0x33a95f(0x100)](_0x2d92ab),this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);break;case _['CollaborationEvent']['USERS_LEAVE']:this['_onUserLeave'](_0x2d92ab),this[_0x33a95f(0x42b)]['next'](_0x2d92ab);break;case _['CollaborationEvent'][_0x33a95f(0x30d)]:this['_clearCollaborationTimeoutTimer'](),this[_0x33a95f(0x42b)]['next'](_0x2d92ab);break;case _[_0x33a95f(0x284)][_0x33a95f(0x37d)]:this[_0x33a95f(0x198)][_0x33a95f(0xf0)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x33a95f(0x1be)](_0x2d92ab)),this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);break;case _[_0x33a95f(0x284)][_0x33a95f(0x46c)]:this[_0x33a95f(0x26c)]['onCommentUpdate'](_0x2d92ab[_0x33a95f(0x10a)]),this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);break;default:this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);}}catch(_0x2302b2){this[_0x33a95f(0x198)]['error'](_0x2302b2,_0x5a5c0a);}}[_0x30e940(0x100)](_0x4ca66b){const _0x20ad5d=_0x30e940;this['_memberService'][_0x20ad5d(0x12e)](this[_0x20ad5d(0x39b)],_0x4ca66b[_0x20ad5d(0x10a)]);}['_onUserLeave'](_0x167bf9){const _0x18ba6b=_0x30e940;this[_0x18ba6b(0x460)][_0x18ba6b(0x3e8)](this['_unitID'],_0x167bf9[_0x18ba6b(0x10a)][_0x18ba6b(0x1b2)]);}async[_0x30e940(0x3e9)](_0x137d53,_0x396312){const _0x55a7e9=_0x30e940;if(this[_0x55a7e9(0x125)]!==0x3||!this[_0x55a7e9(0x431)])throw new Error(_0x55a7e9(0x2ae));try{_0x137d53['eventID']===_[_0x55a7e9(0x284)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x55a7e9(0x431)][_0x55a7e9(0x3e9)]({'cmd':T[_0x55a7e9(0x360)],'routeKey':_0x396312,'routeType':'','data':_0x137d53});}catch(_0x4b9062){this[_0x55a7e9(0x198)]['error'](_0x4b9062);}}[_0x30e940(0x336)](){var _0x58afdb;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x136bf8=_0x3b20;this['_collaborationTimeoutTimer']=null,this[_0x136bf8(0x255)][_0x136bf8(0x157)]({'type':Q[_0x136bf8(0x187)][_0x136bf8(0x447)],'content':this['_localeService']['t'](_0x136bf8(0x270))});},(_0x58afdb=this['_configService']['getConfig'](He))!=null?_0x58afdb:dt);}[_0x30e940(0x22f)](){const _0xa19d7d=_0x30e940;this[_0xa19d7d(0x258)]&&(clearTimeout(this[_0xa19d7d(0x258)]),this[_0xa19d7d(0x258)]=null);}},exports[_0x30e940(0x3ff)]=Et([M(0x2,o[_0x30e940(0x1e7)]),M(0x3,L['IBeforeCloseService']),M(0x4,L[_0x30e940(0x3d3)]),M(0x5,o['IConfigService']),M(0x6,o['Inject'](o[_0x30e940(0xfe)])),M(0x7,o[_0x30e940(0xdf)](Y)),M(0x8,o['Inject'](Ve))],exports[_0x30e940(0x3ff)]),exports[_0x30e940(0x373)]=class extends o[_0x30e940(0x3c3)]{constructor(_0x439a40,_0x38d578,_0x3038cf,_0x15c62c,_0x3f95b9,_0x324b55){const _0x319d52=_0x30e940;super(),u(this,_0x319d52(0x42c),new v[(_0x319d52(0x2d8))](void 0x0)),u(this,_0x319d52(0x1f9),new Map()),u(this,_0x319d52(0x3f0),new v['BehaviorSubject'](0x0)),u(this,_0x319d52(0x3e0),this[_0x319d52(0x3f0)][_0x319d52(0x16a)]()),u(this,_0x319d52(0x278),!0x1),u(this,_0x319d52(0x191)),u(this,_0x319d52(0x288)),u(this,_0x319d52(0x36a)),u(this,_0x319d52(0x364),0x0),(this['_injector']=_0x439a40,this[_0x319d52(0x45b)]=_0x38d578,this[_0x319d52(0x255)]=_0x3038cf,this['_logService']=_0x15c62c,this[_0x319d52(0x160)]=_0x3f95b9,this['_socketService']=_0x324b55);}get[_0x30e940(0x431)](){const _0x3a5b46=_0x30e940;return this[_0x3a5b46(0x42c)][_0x3a5b46(0xca)]();}[_0x30e940(0xc6)](){const _0x359d50=_0x30e940;super[_0x359d50(0xc6)](),this[_0x359d50(0x1f9)]['forEach'](_0x56b96d=>_0x56b96d[_0x359d50(0xc6)]()),this['_sessions']['clear'](),this[_0x359d50(0x3f0)][_0x359d50(0xb0)]();}async[_0x30e940(0x470)](_0x5103b2){const _0x36c549=_0x30e940;if(this[_0x36c549(0x1f9)][_0x36c549(0x45c)](_0x5103b2))return this[_0x36c549(0x1f9)][_0x36c549(0x1f0)](_0x5103b2);this['_tryEnsureSocket']();const _0x567680=this['_injector']['createInstance'](exports[_0x36c549(0x3ff)],_0x5103b2,this[_0x36c549(0x42c)][_0x36c549(0x16a)]());return this[_0x36c549(0x1f9)][_0x36c549(0x346)](_0x5103b2,_0x567680),_0x567680;}['closeSession'](_0x787b2){const _0x45ab41=_0x30e940;var _0x153b7e;const _0x4c377d=this[_0x45ab41(0x1f9)]['get'](_0x787b2);_0x4c377d&&(this[_0x45ab41(0x1f9)][_0x45ab41(0x244)](_0x787b2),_0x4c377d[_0x45ab41(0x21c)]()),this['_sessions'][_0x45ab41(0x2f3)]||(_0x153b7e=this[_0x45ab41(0x431)])==null||_0x153b7e['close']();}[_0x30e940(0x11a)](){const _0xdcc870=_0x30e940;var _0x4b148f;const _0x183bf8=(_0x4b148f=this[_0xdcc870(0x160)][_0xdcc870(0xfc)](_t))!=null?_0x4b148f:Ft;return this[_0xdcc870(0x21e)]['createSocket'](_0x183bf8);}[_0x30e940(0x218)](){const _0x2aa7ea=_0x30e940;try{const _0x283f6e=this['_createSocket']();if(_0x283f6e){const _0x1c00b8=_0x283f6e['send'];_0x283f6e[_0x2aa7ea(0x3e9)]=_0x589bca=>(this[_0x2aa7ea(0x3a2)](),_0x1c00b8[_0x2aa7ea(0x3cf)](_0x283f6e,[_0x589bca])),_0x283f6e[_0x2aa7ea(0x3da)][_0x2aa7ea(0x196)](_0x5cdbc1=>this[_0x2aa7ea(0x1c1)](_0x283f6e,_0x5cdbc1)),_0x283f6e[_0x2aa7ea(0x132)][_0x2aa7ea(0x2a9)](E[_0x2aa7ea(0x1f5)](0x1))[_0x2aa7ea(0x196)](_0x1bf513=>this[_0x2aa7ea(0x198)][_0x2aa7ea(0xf0)](_0x2aa7ea(0x375),_0x1bf513)),_0x283f6e[_0x2aa7ea(0x239)][_0x2aa7ea(0x2a9)](E[_0x2aa7ea(0x1f5)](0x1))[_0x2aa7ea(0x196)](()=>{const _0x19649d=_0x2aa7ea;this[_0x19649d(0x21b)](_0x283f6e);}),_0x283f6e['close$'][_0x2aa7ea(0x2a9)](E[_0x2aa7ea(0x1f5)](0x1))[_0x2aa7ea(0x196)](_0x26c59d=>{const _0x587f1e=_0x2aa7ea;this[_0x587f1e(0x198)][_0x587f1e(0x293)](_0x587f1e(0x147),_0x587f1e(0xcb),_0x26c59d),this[_0x587f1e(0x2c9)]();});}}catch(_0x26e338){this[_0x2aa7ea(0x198)]['error'](_0x26e338),this[_0x2aa7ea(0x2c9)]();}}[_0x30e940(0x21b)](_0x2de01a){const _0x43be7d=_0x30e940;this[_0x43be7d(0x198)][_0x43be7d(0x293)](_0x43be7d(0x147),_0x43be7d(0xd8)),_0x2de01a[_0x43be7d(0x3e9)]({'cmd':T[_0x43be7d(0x229)]}),this[_0x43be7d(0x3a2)]();}[_0x30e940(0x2c9)](){const _0x59d862=_0x30e940;var _0x5b569c;this[_0x59d862(0x3f0)]['next'](0x2),this['_socket$'][_0x59d862(0x46e)](null),this[_0x59d862(0x466)](),this[_0x59d862(0x313)](),this['_socketReady']=!0x1,this[_0x59d862(0x364)]<((_0x5b569c=this['_configService'][_0x59d862(0xfc)](Xt))!=null?_0x5b569c:qt)?(this[_0x59d862(0x351)](this[_0x59d862(0x364)]),this[_0x59d862(0x364)]+=0x1):this[_0x59d862(0x255)]['show']({'type':Q[_0x59d862(0x187)][_0x59d862(0x447)],'content':this[_0x59d862(0x45b)]['t'](_0x59d862(0x240))});}[_0x30e940(0x351)](_0x1fad80){const _0x22ed35=_0x30e940;var _0x58e66c;const _0x4f8329=((_0x58e66c=this[_0x22ed35(0x160)]['getConfig'](Yt))!=null?_0x58e66c:Kt)*0x2**_0x1fad80;this[_0x22ed35(0x255)][_0x22ed35(0x157)]({'type':Q['MessageType']['Warning'],'content':this[_0x22ed35(0x45b)]['t'](_0x22ed35(0x2af))}),this[_0x22ed35(0x36a)]=setTimeout(()=>{const _0x1eafb7=_0x22ed35;this[_0x1eafb7(0x218)](),clearTimeout(this[_0x1eafb7(0x36a)]),this['_retryConnectingTimer']=null;},_0x4f8329);}[_0x30e940(0x3a2)](){const _0x129c00=_0x30e940;var _0x52b461;this[_0x129c00(0x313)](),this[_0x129c00(0x191)]=setTimeout(()=>this[_0x129c00(0x30f)](),(_0x52b461=this[_0x129c00(0x160)][_0x129c00(0xfc)](ut))!=null?_0x52b461:Gt);}[_0x30e940(0x30f)](){const _0x6b6fb1=_0x30e940;this['_socket'][_0x6b6fb1(0x3e9)]({'cmd':T['HEARTBEAT']}),this[_0x6b6fb1(0x3d7)]();}[_0x30e940(0x3d7)](){const _0x1fb90c=_0x30e940;var _0x4a6318;this[_0x1fb90c(0x288)]=setTimeout(()=>this[_0x1fb90c(0x2c9)](),(_0x4a6318=this[_0x1fb90c(0x160)][_0x1fb90c(0xfc)](He))!=null?_0x4a6318:dt);}[_0x30e940(0x1c1)](_0x39541c,_0x35ec83){const _0x275828=_0x30e940,{cmd:_0x22cf3e}=_0x35ec83;_0x22cf3e===T[_0x275828(0x229)]&&!this[_0x275828(0x278)]&&(_0x39541c['memberID']=_0x35ec83[_0x275828(0x10a)][_0x275828(0x1b2)],this[_0x275828(0x42c)]['next'](_0x39541c),this[_0x275828(0x3f0)]['next'](0x3),this['_socketReady']=!0x0),_0x22cf3e===T['HEARTBEAT']&&this[_0x275828(0x466)](),this['_rescheduleHeartbeatEvent']();}['_clearHeartbeatTimer'](){const _0x307139=_0x30e940;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x307139(0x191)]),this[_0x307139(0x191)]=null);}[_0x30e940(0x466)](){const _0xce6e23=_0x30e940;this['_timeoutTimer']!=null&&(clearTimeout(this[_0xce6e23(0x288)]),this[_0xce6e23(0x288)]=null);}},exports[_0x30e940(0x373)]=Et([M(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),M(0x1,o[_0x30e940(0xdf)](o['LocaleService'])),M(0x2,L[_0x30e940(0x3d3)]),M(0x3,o[_0x30e940(0x1e7)]),M(0x4,o[_0x30e940(0x306)]),M(0x5,Be)],exports['CollaborationSessionService']);var ls=Object[_0x30e940(0x36c)],hs=Object[_0x30e940(0x1a2)],_s=(_0x51b844,_0x4cb1cb,_0x5819a8,_0x214bec)=>{const _0x17f290=_0x30e940;for(var _0x3997b9=_0x214bec>0x1?void 0x0:_0x214bec?hs(_0x4cb1cb,_0x5819a8):_0x4cb1cb,_0x11b77e=_0x51b844[_0x17f290(0x3b8)]-0x1,_0x16a9a5;_0x11b77e>=0x0;_0x11b77e--)(_0x16a9a5=_0x51b844[_0x11b77e])&&(_0x3997b9=(_0x214bec?_0x16a9a5(_0x4cb1cb,_0x5819a8,_0x3997b9):_0x16a9a5(_0x3997b9))||_0x3997b9);return _0x214bec&&_0x3997b9&&ls(_0x4cb1cb,_0x5819a8,_0x3997b9),_0x3997b9;},ie=(_0x304519,_0x138599)=>(_0x4ebd0e,_0x4e2fb6)=>_0x138599(_0x4ebd0e,_0x4e2fb6,_0x304519);exports[_0x30e940(0x227)]=class extends o[_0x30e940(0x3c3)]{constructor(_0xd4ea3,_0x3496ee,_0x31d792,_0x44ef3a,_0x253a23){const _0x366e62=_0x30e940;super(),u(this,_0x366e62(0x2f5),new Map()),u(this,_0x366e62(0x154),new Map()),u(this,_0x366e62(0x18a),!0x1),(this['_configService']=_0xd4ea3,this['_localStorageService']=_0x3496ee,this[_0x366e62(0x400)]=_0x31d792,this['_localeService']=_0x44ef3a,this[_0x366e62(0x2fb)]=_0x253a23,this['_setupBeforeClosingHandler']());}[_0x30e940(0x422)](){const _0x3f40cd=_0x30e940;this[_0x3f40cd(0x18a)]=!0x0;}[_0x30e940(0x185)](){this['_disabled']=!0x1;}[_0x30e940(0xc6)](){const _0x297a1d=_0x30e940;this[_0x297a1d(0x1b5)]()[_0x297a1d(0x9d)](()=>super[_0x297a1d(0xc6)]());}async[_0x30e940(0x341)](_0x46f6db){const _0x45ef9a=_0x30e940;return this['_disabled']?null:this[_0x45ef9a(0x217)][_0x45ef9a(0x2ca)](qe(_0x46f6db));}async[_0x30e940(0x1a8)](_0x99a4,_0x4533c5){const _0x5c7059=_0x30e940;return!!this[_0x5c7059(0x217)][_0x5c7059(0x471)](_0x99a4,_0x4533c5);}[_0x30e940(0x475)](_0x1d3cfa,_0xf7b71,_0x4e73e9,_0x363e30){const _0x3839a5=_0x30e940,_0x3f3e8d=this['_revisionService'][_0x3839a5(0x17e)](_0x1d3cfa);this[_0x3839a5(0x2f5)][_0x3839a5(0x346)](_0x1d3cfa,{'unitID':_0x1d3cfa,'type':_0xf7b71,'awaitingChangeset':_0x4e73e9,'mutations':_0x363e30,'rev':_0x3f3e8d}),this[_0x3839a5(0x154)][_0x3839a5(0x45c)](_0x1d3cfa)||this['_scheduleSaving'](_0x1d3cfa);}['_scheduleSaving'](_0x2fe35f){const _0x47136b=_0x30e940,_0x54b57a=this[_0x47136b(0x114)]();_0x54b57a===0x0?this[_0x47136b(0x31f)](_0x2fe35f):this['_saveTaskMap'][_0x47136b(0x346)](_0x2fe35f,setTimeout(()=>this[_0x47136b(0x31f)](_0x2fe35f),_0x54b57a));}['_getSaveTimeout'](){const _0x16679e=_0x30e940;var _0xb248de;return(_0xb248de=this[_0x16679e(0x160)][_0x16679e(0xfc)](St))!=null?_0xb248de:zt;}[_0x30e940(0x31f)](_0x28777d){const _0x354e15=_0x30e940,_0x4f7ad9=this['_saveTaskMap'][_0x354e15(0x1f0)](_0x28777d);return _0x4f7ad9!==void 0x0&&window[_0x354e15(0x87)](_0x4f7ad9),this[_0x354e15(0x217)][_0x354e15(0x471)](qe(_0x28777d),this[_0x354e15(0x2f5)]['get'](_0x28777d))[_0x354e15(0x9d)](()=>this[_0x354e15(0x154)]['delete'](_0x28777d));}async[_0x30e940(0x1b5)](){const _0x208e48=_0x30e940,_0x57206b=[];this[_0x208e48(0x154)][_0x208e48(0x277)]((_0x3faf24,_0x494bdb)=>{const _0x48ee75=_0x208e48;window[_0x48ee75(0x87)](_0x3faf24),_0x57206b[_0x48ee75(0x220)](this[_0x48ee75(0x31f)](_0x494bdb)[_0x48ee75(0x9d)](()=>{const _0x456677=_0x48ee75;this[_0x456677(0x154)]['delete'](_0x494bdb);}));}),await Promise[_0x208e48(0x189)](_0x57206b);}['_setupBeforeClosingHandler'](){const _0x377a99=_0x30e940;this[_0x377a99(0x22c)](this[_0x377a99(0x400)][_0x377a99(0x332)](()=>{const _0x3865ab=_0x377a99;if(this[_0x3865ab(0x154)][_0x3865ab(0x2f3)])return this[_0x3865ab(0x45b)]['t'](_0x3865ab(0x19e));}));}},exports[_0x30e940(0x227)]=_s([ie(0x0,o[_0x30e940(0x306)]),ie(0x1,o[_0x30e940(0x3d1)]),ie(0x2,L[_0x30e940(0x462)]),ie(0x3,o[_0x30e940(0xdf)](o['LocaleService'])),ie(0x4,o['Inject'](_[_0x30e940(0x1db)]))],exports[_0x30e940(0x227)]);function qe(_0x11d4fd){return'unit-cache-'+_0x11d4fd;}const pe=o[_0x30e940(0x16b)]('univer-pro.collaboration-client.single-active-unit-service');var Ct=(_0xe36cfc=>(_0xe36cfc[_0xe36cfc[_0x30e940(0x389)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0xe36cfc[_0xe36cfc[_0x30e940(0x140)]=0x1]='OTHER_CLIENTS_EDITING',_0xe36cfc))(Ct||{});const ze=0x7530,Je=_0x30e940(0x36d);class us extends o[_0x30e940(0x3c3)]{constructor(){const _0x5f51b3=_0x30e940;super(),u(this,_0x5f51b3(0x314),o['Tools'][_0x5f51b3(0x108)]()),u(this,_0x5f51b3(0x2e5),new Set()),u(this,_0x5f51b3(0x8d),new Map()),u(this,_0x5f51b3(0x35d),null),u(this,_0x5f51b3(0xe2),new Map()),u(this,'_unitStatus',new Map()),this[_0x5f51b3(0x2eb)]();}['dispose'](){const _0x4a54bc=_0x30e940;super[_0x4a54bc(0xc6)](),this['_clearOtherTimers'][_0x4a54bc(0x277)]((_0x4db719,_0x5ab513)=>this[_0x4a54bc(0x19f)](_0x5ab513)),this[_0x4a54bc(0x35d)]&&window['clearInterval'](this[_0x4a54bc(0x35d)]);}[_0x30e940(0x93)](_0x4010c1){const _0x13bf73=_0x30e940;return this[_0x13bf73(0x3e1)](_0x4010c1)[_0x13bf73(0x2a9)](v[_0x13bf73(0x34f)]());}[_0x30e940(0x23f)](_0x3838c6){const _0x1e594f=_0x30e940;this[_0x1e594f(0x2e5)][_0x1e594f(0x2f3)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1e594f(0x2e5)][_0x1e594f(0x418)](_0x3838c6),this[_0x1e594f(0x2a5)]({'type':0x0,'memberID':this[_0x1e594f(0x314)],'unitIDs':[_0x3838c6],'isForwarded':!0x1});}[_0x30e940(0x299)](_0x1be991){const _0x536e3a=_0x30e940;this[_0x536e3a(0x2e5)][_0x536e3a(0x244)](_0x1be991),this['_selfUnitIDs'][_0x536e3a(0x2f3)]===0x0&&this['_heartbeatTimer']&&window[_0x536e3a(0x25a)](this[_0x536e3a(0x35d)]);}[_0x30e940(0x2eb)](){const _0x2d0a9a=_0x30e940;this['disposeWithMe'](o['toDisposable'](v[_0x2d0a9a(0x30a)](window,'storage')['subscribe'](_0x533861=>{const _0x1cc5f2=_0x2d0a9a;if(_0x533861['key']!==Je||!_0x533861[_0x1cc5f2(0x1a4)])return;const _0x34af59=JSON[_0x1cc5f2(0x344)](_0x533861[_0x1cc5f2(0x1a4)]);this[_0x1cc5f2(0x2b0)](_0x34af59);}))),window[_0x2d0a9a(0x358)]('unload',()=>this[_0x2d0a9a(0x2a5)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2d0a9a(0x16d)](this[_0x2d0a9a(0x2e5)])}));}[_0x30e940(0x2b0)](_0x1cd3ee){const _0x550e3b=_0x30e940;switch(_0x1cd3ee[_0x550e3b(0x312)]){case 0x0:this[_0x550e3b(0x273)](_0x1cd3ee);break;case 0x1:this[_0x550e3b(0x3a4)](_0x1cd3ee);break;case 0x2:this['_handleHeartbeatEvent'](_0x1cd3ee);break;}}[_0x30e940(0x273)](_0x4aba2b){const _0x29cea6=_0x30e940,{unitIDs:_0x1f482f,memberID:_0x2e3765,isForwarded:_0x1527dd}=_0x4aba2b;_0x1f482f[_0x29cea6(0x277)](_0x3282af=>{const _0x7af561=_0x29cea6;if(!_0x1527dd&&this[_0x7af561(0x8d)][_0x7af561(0x45c)](_0x3282af)&&this[_0x7af561(0x3e1)](_0x3282af)[_0x7af561(0x46e)](0x1),!this[_0x7af561(0x8d)]['has'](_0x3282af)||!this['_unitOnClients'][_0x7af561(0x1f0)](_0x3282af)['has'](_0x2e3765)){const _0x1dd385=this['_unitOnClients'][_0x7af561(0x1f0)](_0x3282af)||new Set();_0x1dd385[_0x7af561(0x418)](_0x2e3765),this[_0x7af561(0x8d)][_0x7af561(0x346)](_0x3282af,_0x1dd385),this[_0x7af561(0x34a)](_0x2e3765);}}),_0x1527dd||this[_0x29cea6(0x2a5)]({'type':0x0,'memberID':this[_0x29cea6(0x314)],'unitIDs':[...this[_0x29cea6(0x2e5)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x10640b){const _0x560e1c=_0x30e940;this['_removeClearOtherTimer'](_0x10640b);const _0x2b2178=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x22a198=>{const _0x342856=_0x3b20;_0x22a198[_0x342856(0x244)](_0x10640b);});},ze*0x2);this[_0x560e1c(0xe2)][_0x560e1c(0x346)](_0x10640b,_0x2b2178);}[_0x30e940(0x19f)](_0x1c3208){const _0x17b243=_0x30e940;if(this['_clearOtherTimers'][_0x17b243(0x45c)](_0x1c3208)){const _0x399ffd=this[_0x17b243(0xe2)][_0x17b243(0x1f0)](_0x1c3208);_0x399ffd&&window[_0x17b243(0x87)](_0x399ffd),this[_0x17b243(0xe2)][_0x17b243(0x346)](_0x1c3208,null);}}[_0x30e940(0x3a4)](_0x214464){const _0x16b6d9=_0x30e940,{memberID:_0x1531a3,unitIDs:_0xf4f7a0}=_0x214464;_0xf4f7a0['forEach'](_0x1c9684=>{const _0x11b3c7=_0x3b20;var _0x31eee5;const _0x3d4bba=this[_0x11b3c7(0x8d)][_0x11b3c7(0x1f0)](_0x1c9684);_0x3d4bba&&(_0x3d4bba['delete'](_0x1531a3),(_0x31eee5=this['_ensureSubject'](_0x1c9684))==null||_0x31eee5['next'](_0x3d4bba['size']===0x0?0x0:0x1));}),this[_0x16b6d9(0x19f)](_0x1531a3);}[_0x30e940(0x348)](_0x29bf0d){const _0x3bbbef=_0x30e940;this[_0x3bbbef(0x34a)](_0x29bf0d[_0x3bbbef(0x1b2)]);}[_0x30e940(0x2a5)](_0x1be3f9){const _0x3f431c=_0x30e940;localStorage[_0x3f431c(0x471)](Je,JSON['stringify'](_0x1be3f9));}['_scheduleHeartbeat'](){const _0x38729a=_0x30e940;this[_0x38729a(0x35d)]=window[_0x38729a(0x27e)](()=>{const _0x4036cd=_0x38729a;this[_0x4036cd(0x2a5)]({'type':0x2,'memberID':this[_0x4036cd(0x314)]});},ze);}['_ensureSubject'](_0x1444a4){const _0x10434c=_0x30e940;return this[_0x10434c(0x3a3)][_0x10434c(0x45c)](_0x1444a4)||this[_0x10434c(0x3a3)][_0x10434c(0x346)](_0x1444a4,new v[(_0x10434c(0x2d8))](0x0)),this[_0x10434c(0x3a3)][_0x10434c(0x1f0)](_0x1444a4);}}var ds=Object[_0x30e940(0x36c)],Ss=Object[_0x30e940(0x1a2)],vs=(_0x1a156b,_0x3c3ed2,_0x72a32f,_0x5089c0)=>{const _0x3d68a1=_0x30e940;for(var _0x152f20=_0x5089c0>0x1?void 0x0:_0x5089c0?Ss(_0x3c3ed2,_0x72a32f):_0x3c3ed2,_0x5dd2e3=_0x1a156b[_0x3d68a1(0x3b8)]-0x1,_0xeb4c8c;_0x5dd2e3>=0x0;_0x5dd2e3--)(_0xeb4c8c=_0x1a156b[_0x5dd2e3])&&(_0x152f20=(_0x5089c0?_0xeb4c8c(_0x3c3ed2,_0x72a32f,_0x152f20):_0xeb4c8c(_0x152f20))||_0x152f20);return _0x5089c0&&_0x152f20&&ds(_0x3c3ed2,_0x72a32f,_0x152f20),_0x152f20;},Ze=(_0x25f545,_0x288411)=>(_0x131c1e,_0x267796)=>_0x288411(_0x131c1e,_0x267796,_0x25f545);let ve=class{constructor(_0x3f5875,_0x30b6e2){const _0x1da204=_0x30e940;this[_0x1da204(0x137)]=_0x3f5875,this[_0x1da204(0x3c0)]=_0x30b6e2;}['transformIMECache'](_0xc2d50d){const _0x23d719=_0x30e940;this['_transformUndoRedoStack'](_0xc2d50d),this[_0x23d719(0x2f1)](_0xc2d50d);}[_0x30e940(0x298)](_0x490a10){const _0x8da39f=_0x30e940,_0x2410da=this['_injector']['get'](P[_0x8da39f(0x46b)]),{redoCache:_0x477190}=_0x2410da['getUndoRedoMutationParamsCache']();if(_0x477190[_0x8da39f(0x3b8)]===0x0)return _0x490a10;let _0x504cda=o[_0x8da39f(0x235)]['deepClone'](_0x490a10[_0x8da39f(0x95)][0x0]);for(let _0x1c0ffc=0x0;_0x1c0ffc<_0x477190[_0x8da39f(0x3b8)];_0x1c0ffc++){const _0x461225={'id':_0x8da39f(0x1c9),'params':{..._0x477190[_0x1c0ffc]}},_0x2805be=this['_transformService'][_0x8da39f(0x1bf)](_0x504cda,_0x461225,!0x1);if(_[_0x8da39f(0x1fd)](_0x2805be))throw _0x2805be[_0x8da39f(0xf0)];_0x504cda=_0x2805be[_0x8da39f(0x205)];}return{...o[_0x8da39f(0x235)][_0x8da39f(0x102)](_0x490a10),'mutations':[_0x504cda]};}['_transformUndoRedoStack'](_0x42a1c0){const _0xc7bb4c=_0x30e940,_0x21539e=this[_0xc7bb4c(0x137)][_0xc7bb4c(0x1f0)](P[_0xc7bb4c(0x46b)]),{undoCache:_0x3853c1,redoCache:_0x524fa2}=_0x21539e['getUndoRedoMutationParamsCache']();if(_0x3853c1[_0xc7bb4c(0x3b8)]===0x0||_0x524fa2[_0xc7bb4c(0x3b8)]===0x0)return;const _0x1f6953=[],_0x1bd7a8=[];let _0x431dee=o[_0xc7bb4c(0x235)][_0xc7bb4c(0x102)](_0x42a1c0[_0xc7bb4c(0x95)][0x0]),_0x1761fa=o[_0xc7bb4c(0x235)][_0xc7bb4c(0x102)](_0x42a1c0[_0xc7bb4c(0x95)][0x0]);for(let _0x5981d8=_0x3853c1['length']-0x1;_0x5981d8>=0x0;_0x5981d8--){const _0x412311={'id':_0xc7bb4c(0x1c9),'params':{..._0x3853c1[_0x5981d8]}},_0x28c7b6={'id':_0xc7bb4c(0x1c9),'params':{..._0x524fa2[_0x5981d8]}},_0x5e6da1=this['_transformService'][_0xc7bb4c(0x1bf)](_0x431dee,_0x412311,!0x1),_0x5615a7=this[_0xc7bb4c(0x3c0)][_0xc7bb4c(0x1bf)](_0x1761fa,_0x28c7b6,!0x1);if(_[_0xc7bb4c(0x1fd)](_0x5e6da1))throw _0x5e6da1[_0xc7bb4c(0xf0)];if(_[_0xc7bb4c(0x1fd)](_0x5615a7))throw _0x5615a7[_0xc7bb4c(0xf0)];_0x1f6953[_0xc7bb4c(0x3f2)](_0x5e6da1['m2Prime'][_0xc7bb4c(0x20b)]),_0x1bd7a8[_0xc7bb4c(0x3f2)](_0x5615a7[_0xc7bb4c(0x163)][_0xc7bb4c(0x20b)]),_0x431dee=_0x5e6da1[_0xc7bb4c(0x205)],_0x1761fa=_0x5615a7[_0xc7bb4c(0x205)];}_0x21539e['setUndoRedoMutationParamsCache']({'undoCache':_0x1f6953,'redoCache':_0x1bd7a8});}[_0x30e940(0x2f1)](_0x2bfa5c){const _0x50d406=_0x30e940,_0x3b6640=this['_injector'][_0x50d406(0x1f0)](P[_0x50d406(0x46b)]),_0x59e5e5=_0x3b6640[_0x50d406(0x434)]();if(_0x59e5e5==null)return;const _0x21587f=[{'id':_0x50d406(0x1c9),'params':{'unitId':_0x2bfa5c[_0x50d406(0x1e6)],'actions':null,'textRanges':[_0x59e5e5]}}],_0x5bfe13=this['_transformService'][_0x50d406(0x1c3)](_0x2bfa5c,_0x21587f);if(!_['isTransformMutationsWithChangesetSuccess'](_0x5bfe13))throw _0x5bfe13['error'];const _0x2b35d3=_0x5bfe13[_0x50d406(0x163)][0x0][_0x50d406(0x20b)][_0x50d406(0x146)];Array[_0x50d406(0x281)](_0x2b35d3)&&_0x2b35d3['length']&&_0x3b6640[_0x50d406(0x1fb)](_0x2b35d3[0x0]);}};ve=vs([Ze(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),Ze(0x1,_[_0x30e940(0x2ab)])],ve);var ms=Object['defineProperty'],gs=Object[_0x30e940(0x1a2)],fs=(_0x4529b0,_0x368de4,_0x4b9d07,_0x1a0040)=>{const _0x56f1e2=_0x30e940;for(var _0x26dc60=_0x1a0040>0x1?void 0x0:_0x1a0040?gs(_0x368de4,_0x4b9d07):_0x368de4,_0x12b73f=_0x4529b0[_0x56f1e2(0x3b8)]-0x1,_0x451ecd;_0x12b73f>=0x0;_0x12b73f--)(_0x451ecd=_0x4529b0[_0x12b73f])&&(_0x26dc60=(_0x1a0040?_0x451ecd(_0x368de4,_0x4b9d07,_0x26dc60):_0x451ecd(_0x26dc60))||_0x26dc60);return _0x1a0040&&_0x26dc60&&ms(_0x368de4,_0x4b9d07,_0x26dc60),_0x26dc60;},Qe=(_0x453607,_0x53aa4f)=>(_0x2631dc,_0x41452c)=>_0x53aa4f(_0x2631dc,_0x41452c,_0x453607);let me=class{constructor(_0xd3ead2,_0x257972){const _0x159621=_0x30e940;this[_0x159621(0x137)]=_0xd3ead2,this['_transformService']=_0x257972;}['transformSelections'](_0x207c5d){const _0x3b2798=_0x30e940;var _0x48aced;const _0x92e03b=this[_0x3b2798(0x137)][_0x3b2798(0x1f0)](P[_0x3b2798(0x215)]),_0x328714=(_0x48aced=_0x92e03b['getDocRanges']())!=null?_0x48aced:[],_0x1865b9=_0x328714==null?void 0x0:_0x328714[_0x3b2798(0x120)](P[_0x3b2798(0x13c)]);if(_0x1865b9['length']===0x0)return;const _0x14efba=[{'id':_0x3b2798(0x1c9),'params':{'unitId':_0x207c5d[_0x3b2798(0x1e6)],'actions':null,'textRanges':_0x1865b9}}],_0x3a6863=this['_transformService'][_0x3b2798(0x1c3)](_0x207c5d,_0x14efba);if(!_['isTransformMutationsWithChangesetSuccess'](_0x3a6863))throw _0x3a6863[_0x3b2798(0xf0)];const _0x12108c=_0x3a6863[_0x3b2798(0x163)][0x0][_0x3b2798(0x20b)]['textRanges'];Array[_0x3b2798(0x281)](_0x12108c)&&_0x12108c[_0x3b2798(0x3b8)]&&_0x92e03b[_0x3b2798(0x11f)](_0x12108c,!0x1);}};me=fs([Qe(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),Qe(0x1,_[_0x30e940(0x2ab)])],me);function bt(_0x2e4605){let _0x24b9f9='';for(const _0x14af7b of _0x2e4605){const {startOffset:_0x22f60f,endOffset:_0x521097,isActive:_0x5c734c}=_0x14af7b;_0x24b9f9['length']&&(_0x24b9f9+=','),_0x24b9f9+=_0x22f60f+':'+_0x521097+':'+(_0x5c734c?'1':'0');}return _0x24b9f9;}function Is(_0x3d8fbd){const _0x12d460=_0x30e940,_0x412dc5=_0x3d8fbd[_0x12d460(0x297)](','),_0x4a041f=[];for(const _0x5ecd22 of _0x412dc5){const [_0x5661cf,_0x3d8b9f,_0xae7faf]=_0x5ecd22[_0x12d460(0x297)](':');_0x4a041f[_0x12d460(0x220)]({'startOffset':Number(_0x5661cf),'endOffset':Number(_0x3d8b9f),'collapsed':_0x5661cf===_0x3d8b9f,'isActive':_0xae7faf==='1'});}return _0x4a041f[_0x12d460(0x2f0)](_0x3443a1=>_0x3443a1[_0x12d460(0x2cf)])||(_0x4a041f[0x0][_0x12d460(0x2cf)]=!0x0),_0x4a041f;}class We extends o[_0x30e940(0x1cf)]{constructor(){const _0x205b1c=_0x30e940;super(...arguments),u(this,_0x205b1c(0x216),new v['BehaviorSubject'](null)),u(this,_0x205b1c(0x380),this[_0x205b1c(0x216)]['asObservable']());}[_0x30e940(0x274)](_0x246b05){const _0x35b327=_0x30e940,{unitID:_0x14a392,memberID:_0x397c1e,textRanges:_0x26ffc2}=_0x246b05,_0x298f78=bt(_0x26ffc2),_0x57e5e5={'unitID':_0x14a392,'memberID':_0x397c1e,'selection':_0x298f78};this['_collabCursorState$'][_0x35b327(0x46e)](_0x57e5e5);}}var ps=Object['defineProperty'],Es=Object[_0x30e940(0x1a2)],Cs=(_0x57985d,_0x1b4630,_0x2c5fab,_0x5c8c78)=>{const _0x4b6649=_0x30e940;for(var _0x3a3e38=_0x5c8c78>0x1?void 0x0:_0x5c8c78?Es(_0x1b4630,_0x2c5fab):_0x1b4630,_0x73f938=_0x57985d[_0x4b6649(0x3b8)]-0x1,_0x4c9273;_0x73f938>=0x0;_0x73f938--)(_0x4c9273=_0x57985d[_0x73f938])&&(_0x3a3e38=(_0x5c8c78?_0x4c9273(_0x1b4630,_0x2c5fab,_0x3a3e38):_0x4c9273(_0x3a3e38))||_0x3a3e38);return _0x5c8c78&&_0x3a3e38&&ps(_0x1b4630,_0x2c5fab,_0x3a3e38),_0x3a3e38;},et=(_0x4ef81c,_0x53fe5b)=>(_0x32a7b1,_0x700c47)=>_0x53fe5b(_0x32a7b1,_0x700c47,_0x4ef81c);function bs(_0x3c09da){const _0xedd2b7=_0x30e940,{unitID:_0x4dc41c,mutations:_0x286c90}=_0x3c09da;return{'unitId':_0x4dc41c,'subUnitId':_0x286c90[0x0][_0xedd2b7(0x20b)][_0xedd2b7(0x44c)]};}let ge=class{constructor(_0x7a2a23,_0x804259){const _0xca6554=_0x30e940;this[_0xca6554(0x137)]=_0x7a2a23,this['_transformService']=_0x804259;}[_0x30e940(0x156)](_0x2ed785){const _0x39da94=_0x30e940;var _0x15bf86,_0x16af86,_0x3f63e3;const _0x4e9125=this[_0x39da94(0x137)][_0x39da94(0x1f0)](p[_0x39da94(0x2ed)]),{unitId:_0x4dfd00,subUnitId:_0x4f7810}=bs(_0x2ed785),_0x41e68d=_0x4e9125['getWorkbookSelections'](_0x4dfd00)['getCurrentSelections']();if(_0x41e68d[_0x39da94(0x3b8)]===0x0||!_0x4dfd00||!_0x4f7810)return;const _0x1ae960=[{'id':p[_0x39da94(0x1e4)]['id'],'params':{'unitId':_0x4dfd00,'subUnitId':_0x4f7810,'selections':o['Tools'][_0x39da94(0x102)](_0x41e68d)}}],_0x495161=this[_0x39da94(0x3c0)][_0x39da94(0x1c3)](_0x2ed785,_0x1ae960);if(!_[_0x39da94(0x28a)](_0x495161))throw _0x495161[_0x39da94(0xf0)];const _0x1b7c00=(_0x3f63e3=(_0x16af86=(_0x15bf86=_0x495161[_0x39da94(0x163)][0x0])==null?void 0x0:_0x15bf86[_0x39da94(0x20b)])==null?void 0x0:_0x16af86[_0x39da94(0x2aa)])!=null?_0x3f63e3:_0x41e68d;Array[_0x39da94(0x281)](_0x1b7c00)&&_0x1b7c00[_0x39da94(0x3b8)]&&this[_0x39da94(0x137)][_0x39da94(0x1f0)](o[_0x39da94(0x1c8)])[_0x39da94(0x12d)](p[_0x39da94(0x1e4)]['id'],{'unitId':_0x4dfd00,'subUnitId':_0x4f7810,'selections':_0x1b7c00});}};ge=Cs([et(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),et(0x1,_[_0x30e940(0x2ab)])],ge);const Ts=new Set([p[_0x30e940(0x456)]['id']]);function tt(_0x30f244,_0x252371,_0x15931c,_0x4fca5e,_0x4f28f5){const _0x161859=_0x30e940;var _0x800f1e,_0x359d9a,_0x30a5cd,_0x64f047;const _0xf6f193=[];for(const _0x3d628b of _0x30f244)if(Ts['has'](_0x3d628b['id'])){if(_0xf6f193[_0x161859(0x3b8)]>0x0)break;_0xf6f193[_0x161859(0x220)](_0x3d628b);break;}else _0xf6f193['push'](_0x3d628b);const _0x23ce2d=(_0x359d9a=(_0x800f1e=_0x4f28f5[_0x161859(0x31c)]())==null?void 0x0:_0x800f1e[_0x161859(0x330)])!=null?_0x359d9a:_0x161859(0xa4),_0x2dca5b=(_0x64f047=(_0x30a5cd=_0x4f28f5['getCurrentUser']())==null?void 0x0:_0x30a5cd['memberID'])!=null?_0x64f047:'unknown';return{'changeset':{'unitID':_0x252371,'type':_[_0x161859(0x453)](_0x15931c[_0x161859(0x405)](_0x252371)),'baseRev':_0x4fca5e['getCurrentRevForDocument'](_0x252371),'revision':0x0,'userID':_0x23ce2d,'memberID':_0x2dca5b,'mutations':_0xf6f193},'pendingMutations':_0x30f244[_0x161859(0x2b7)](_0xf6f193['length'])};}function Rs(_0x47964,_0x2a2239,_0xc0024e,_0x364728,_0x166445){const _0x21e769=_0x30e940;var _0x43cf7c,_0x3058fd,_0xe3df41,_0x421d1a;const _0x30c356=[_0x47964['reduce']((_0x32d409,_0x38047d)=>{const _0x3a5d2=_0x3b20;var _0x1499a6;const {id:_0x3cf66a}=_0x32d409,{id:_0x280ad8,type:_0x3082d3}=_0x38047d,_0x1f5650=(_0x1499a6=_0x32d409[_0x3a5d2(0x20b)])!=null?_0x1499a6:{'actions':null},_0x1bd5ed=_0x38047d[_0x3a5d2(0x20b)];if(_0x3cf66a&&_0x3cf66a!==_0x280ad8)throw new Error(_0x3a5d2(0xe6)+_0x3cf66a+_0x3a5d2(0xc1)+_0x280ad8+'.');return{..._0x32d409,'id':_0x280ad8,'type':_0x3082d3,'params':{'unitId':_0x1bd5ed[_0x3a5d2(0x424)],'textRanges':_0x1bd5ed[_0x3a5d2(0x146)],'actions':o[_0x3a5d2(0x33e)][_0x3a5d2(0x35e)](_0x1f5650[_0x3a5d2(0x256)],_0x1bd5ed[_0x3a5d2(0x256)])}};},{})],_0x38ca85=(_0x3058fd=(_0x43cf7c=_0x166445[_0x21e769(0x31c)]())==null?void 0x0:_0x43cf7c[_0x21e769(0x330)])!=null?_0x3058fd:_0x21e769(0xa4),_0x4cd1db=(_0x421d1a=(_0xe3df41=_0x166445[_0x21e769(0x31c)]())==null?void 0x0:_0xe3df41[_0x21e769(0x1b2)])!=null?_0x421d1a:_0x21e769(0xa4);return{'changeset':{'unitID':_0x2a2239,'type':_[_0x21e769(0x453)](_0xc0024e[_0x21e769(0x405)](_0x2a2239)),'baseRev':_0x364728[_0x21e769(0x17e)](_0x2a2239),'revision':0x0,'userID':_0x38ca85,'memberID':_0x4cd1db,'mutations':_0x30c356},'pendingMutations':[]};}const Os={'id':p['EmptyMutation']['id'],'type':o[_0x30e940(0x99)][_0x30e940(0x438)],'params':{}};var Ds=Object[_0x30e940(0x36c)],Ps=Object['getOwnPropertyDescriptor'],K=(_0x59d6fc,_0x4ec3be,_0x365565,_0x411bef)=>{const _0x5d0743=_0x30e940;for(var _0x30f60f=_0x411bef>0x1?void 0x0:_0x411bef?Ps(_0x4ec3be,_0x365565):_0x4ec3be,_0xef27e0=_0x59d6fc[_0x5d0743(0x3b8)]-0x1,_0x5d2529;_0xef27e0>=0x0;_0xef27e0--)(_0x5d2529=_0x59d6fc[_0xef27e0])&&(_0x30f60f=(_0x411bef?_0x5d2529(_0x4ec3be,_0x365565,_0x30f60f):_0x5d2529(_0x30f60f))||_0x30f60f);return _0x411bef&&_0x30f60f&&Ds(_0x4ec3be,_0x365565,_0x30f60f),_0x30f60f;},m=(_0x57648d,_0x8bb7e8)=>(_0x109026,_0x27c021)=>_0x8bb7e8(_0x109026,_0x27c021,_0x57648d),D=(_0x5d12ac=>(_0x5d12ac[_0x30e940(0x25e)]=_0x30e940(0x1dd),_0x5d12ac[_0x30e940(0x9c)]=_0x30e940(0xc7),_0x5d12ac[_0x30e940(0x28e)]='pending',_0x5d12ac[_0x30e940(0x38c)]='awaiting',_0x5d12ac[_0x30e940(0x27c)]='awaiting_with_pending',_0x5d12ac[_0x30e940(0x33d)]=_0x30e940(0x3df),_0x5d12ac['CONFLICT']=_0x30e940(0x33b),_0x5d12ac[_0x30e940(0x32d)]=_0x30e940(0x1cd),_0x5d12ac))(D||{});class X{constructor(_0x1b5586,_0x38ed44,_0x251243,_0x5a5b25,_0x51b8aa,_0x11d82c,_0x2a1c1b,_0x139909,_0x1b8f82){const _0x143b41=_0x30e940;u(this,'_awaitingChangeset',null),u(this,_0x143b41(0x45a),[]),(this['unitID']=_0x1b5586,this[_0x143b41(0x312)]=_0x38ed44,this[_0x143b41(0x28c)]=_0x51b8aa,this[_0x143b41(0x176)]=_0x11d82c,this[_0x143b41(0x2c3)]=_0x2a1c1b,this[_0x143b41(0x2fb)]=_0x139909,this[_0x143b41(0x377)]=_0x1b8f82,this[_0x143b41(0x46d)]=_0x251243,this['_pendingMutations']=_0x5a5b25);}['_checkMissing'](_0x509d64){const _0x3bc6ab=_0x30e940,_0x20b892=this[_0x3bc6ab(0x2fb)][_0x3bc6ab(0x17e)](this[_0x3bc6ab(0x1e6)]);return _0x509d64[_0x3bc6ab(0x448)]>_0x20b892+0x1?(this[_0x3bc6ab(0x28c)][_0x3bc6ab(0x186)]({'from':_0x20b892,'to':_0x509d64[_0x3bc6ab(0x448)]-0x1}),!0x0):!0x1;}[_0x30e940(0xe1)](_0x3db9fa){const _0x4dda55=_0x30e940;this[_0x4dda55(0x2c3)][_0x4dda55(0xa6)](this['unitID'],_0x3db9fa);}[_0x30e940(0x2a0)](_0x123b93){const _0xa704f3=_0x30e940;var _0x3a252b,_0x5a84c2;(_0x5a84c2=(_0x3a252b=this[_0xa704f3(0x28c)])[_0xa704f3(0x29a)])==null||_0x5a84c2[_0xa704f3(0xe3)](_0x3a252b,_0x123b93);}[_0x30e940(0x311)](_0xc8b10a){const _0x3271aa=_0x30e940;var _0x221521,_0x238dfe;return(_0x238dfe=(_0x221521=this[_0x3271aa(0x28c)])['onTransformIME'])==null?void 0x0:_0x238dfe[_0x3271aa(0xe3)](_0x221521,_0xc8b10a);}[_0x30e940(0xc9)](_0x3a97a0){const _0x4bb60d=_0x30e940;var _0x40473b,_0x827f37,_0x5e2da4;return(_0x5e2da4=(_0x827f37=(_0x40473b=this['_handler'])[_0x4bb60d(0x8c)])==null?void 0x0:_0x827f37['call'](_0x40473b,_0x3a97a0))!=null?_0x5e2da4:_0x3a97a0;}[_0x30e940(0x36b)](_0x4db56a){const _0x50149d=_0x30e940;var _0x3b16d6,_0x11b92d;if(this[_0x50149d(0x312)]===j[_0x50149d(0x1f4)]){const {unitID:_0x4ed474,mutations:_0x1e8d49,memberID:_0x4e9ed1}=_0x4db56a,_0x27cbd2=_0x1e8d49[0x0][_0x50149d(0x20b)][_0x50149d(0x146)];Array['isArray'](_0x27cbd2)&&_0x27cbd2['length']>0x0&&((_0x11b92d=(_0x3b16d6=this[_0x50149d(0x28c)])[_0x50149d(0x11c)])==null||_0x11b92d['call'](_0x3b16d6,{'unitID':_0x4ed474,'memberID':_0x4e9ed1,'textRanges':_0x27cbd2}));}}[_0x30e940(0x1b7)](){const _0x2ab779=_0x30e940;this['_localCacheService'][_0x2ab779(0x475)](this[_0x2ab779(0x1e6)],this[_0x2ab779(0x312)],this[_0x2ab779(0x46d)],this[_0x2ab779(0x45a)]);}[_0x30e940(0x372)](){const _0x1071a2=_0x30e940;return this[_0x1071a2(0x2fb)][_0x1071a2(0x17e)](this[_0x1071a2(0x1e6)]);}[_0x30e940(0x204)](){const _0x3a697b=_0x30e940;this[_0x3a697b(0x2fb)]['incrementRevForDocument'](this[_0x3a697b(0x1e6)]);}['_executeRemoteChangeset'](_0x31d4b4){const _0x223f67=_0x30e940;var _0x8bb8c3;const _0xd51093=this[_0x223f67(0xc9)](_0x31d4b4),_0x51aad6=o[_0x223f67(0x26a)](_0xd51093['mutations'],this[_0x223f67(0x176)],{'fromCollab':!0x0});if(!_0x51aad6[_0x223f67(0x3ad)])throw _0x51aad6[_0x223f67(0xf0)]instanceof Error?_0x51aad6[_0x223f67(0xf0)]:new Error((_0x8bb8c3=_0x51aad6[_0x223f67(0xf0)])!=null?_0x8bb8c3:'[CollaborationState]:\x20apply\x20error!');this[_0x223f67(0x311)](_0xd51093),this[_0x223f67(0xe1)](_0x31d4b4),this['_transformSelections'](_0xd51093),this[_0x223f67(0x36b)](_0xd51093),this[_0x223f67(0x204)]();}}let ce=class extends X{constructor(_0x9f940,_0xbedb35,_0x1d06ba,_0x24abf1,_0x5bcdaa,_0x35e092,_0x4092d9,_0x5c4d7c,_0x4cc9c6,_0x51b4ec){const _0x1758a6=_0x30e940;super(_0x9f940,_0xbedb35,null,[],_0x1d06ba,_0x5c4d7c,_0x4092d9,_0x24abf1,_0x5bcdaa),u(this,_0x1758a6(0x1de),_0x1758a6(0xc7)),(this[_0x1758a6(0x137)]=_0x35e092,this[_0x1758a6(0x198)]=_0x4cc9c6,this[_0x1758a6(0x3c0)]=_0x51b4ec);}[_0x30e940(0x223)](_0x4fbe16){const _0x1379ea=_0x30e940,_0x257570=this[_0x1379ea(0x137)][_0x1379ea(0x1c0)]($,this[_0x1379ea(0x1e6)],this[_0x1379ea(0x312)],[_0x4fbe16],this[_0x1379ea(0x28c)]);return _0x257570[_0x1379ea(0x8f)](),_0x257570['_updateLocalCache'](),_0x257570;}['onRemoteChangeset'](_0x29532f){const _0x226e4d=_0x30e940;if(this[_0x226e4d(0x111)](_0x29532f))return this['_injector'][_0x226e4d(0x1c0)](H,this[_0x226e4d(0x1e6)],this[_0x226e4d(0x312)],null,[],null,[_0x29532f],this['_handler']);try{const _0x43a424=this['_transformService'][_0x226e4d(0x1c3)](_0x29532f,[Os]);if(_[_0x226e4d(0x28a)](_0x43a424)){const {c1Prime:_0x27d515}=_0x43a424;return this['_executeRemoteChangeset'](_0x27d515),this;}throw _0x43a424[_0x226e4d(0xf0)];}catch(_0x24b258){return this[_0x226e4d(0x198)][_0x226e4d(0xf0)](_0x24b258),this[_0x226e4d(0xc8)](!0x1);}}['_onConflict'](_0x272bf1){const _0x1db37f=_0x30e940;return this[_0x1db37f(0x137)][_0x1db37f(0x1c0)](B,this[_0x1db37f(0x1e6)],this[_0x1db37f(0x312)],null,[],this[_0x1db37f(0x28c)],_0x272bf1);}['onRemoteAck'](){const _0x8766a=_0x30e940;throw new Error(_0x8766a(0x42f));}[_0x30e940(0x13f)](){const _0x2a8df2=_0x30e940;throw new Error(_0x2a8df2(0x1ff));}[_0x30e940(0x3b2)](){const _0x27226a=_0x30e940;return this[_0x27226a(0x137)]['createInstance'](V,this[_0x27226a(0x1e6)],this['type'],null,[],this[_0x27226a(0x28c)]);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x5d251b=_0x30e940;throw new Error(_0x5d251b(0x3f7));}};ce=K([m(0x3,o[_0x30e940(0xdf)](_['RevisionService'])),m(0x4,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x5,o[_0x30e940(0xdf)](o['Injector'])),m(0x6,o[_0x30e940(0x17f)]),m(0x7,o[_0x30e940(0x1c8)]),m(0x8,o['ILogService']),m(0x9,_[_0x30e940(0x2ab)])],ce);let $=class extends X{constructor(_0xf32b7b,_0x492a18,_0x889235,_0x417e30,_0x13212a,_0x539a2a,_0x9b1768,_0x704c12,_0x19ce5d,_0x3ada1b,_0x4b31ae,_0x2c8393,_0x319af4,_0x4407e9){const _0x2f4b9b=_0x30e940;super(_0xf32b7b,_0x492a18,null,_0x889235,_0x417e30,_0x3ada1b,_0x4407e9,_0x539a2a,_0x9b1768),u(this,'status',_0x2f4b9b(0x112)),u(this,_0x2f4b9b(0x1fa),null),u(this,_0x2f4b9b(0x3dd),null),(this[_0x2f4b9b(0x137)]=_0x13212a,this[_0x2f4b9b(0x460)]=_0x704c12,this[_0x2f4b9b(0x198)]=_0x19ce5d,this[_0x2f4b9b(0x160)]=_0x4b31ae,this[_0x2f4b9b(0x3c0)]=_0x2c8393,this[_0x2f4b9b(0x43f)]=_0x319af4);}['appendMutation'](_0x38b0cb){const _0x2bade9=_0x30e940;return this['_pendingMutations'][_0x2bade9(0x220)](_0x38b0cb),this[_0x2bade9(0x1b7)](),this;}[_0x30e940(0x1c6)](_0x420ac1){const _0xfca586=_0x30e940;if(this[_0xfca586(0x111)](_0x420ac1))return this[_0xfca586(0x1f7)](),this[_0xfca586(0x137)][_0xfca586(0x1c0)](H,this[_0xfca586(0x1e6)],this[_0xfca586(0x312)],null,this[_0xfca586(0x45a)],null,[_0x420ac1],this[_0xfca586(0x28c)]);try{const _0x5592e6=this['_transformService']['transformMutationsWithChangeset'](_0x420ac1,this[_0xfca586(0x45a)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x5592e6)){const {c1Prime:_0x4dd3f3,m2Prime:_0x1609fc}=_0x5592e6;this[_0xfca586(0x369)](_0x4dd3f3);const _0xe0c686=this[_0xfca586(0x137)][_0xfca586(0x1c0)]($,this[_0xfca586(0x1e6)],this[_0xfca586(0x312)],_0x1609fc,this[_0xfca586(0x28c)]);return this[_0xfca586(0x1f7)](),_0xe0c686[_0xfca586(0x8f)](this['_scheduleTimestamp']?Math[_0xfca586(0x261)](0x0,new Date()[_0xfca586(0x23a)]()-this[_0xfca586(0x1fa)]):this['_getSendChangesetTimeout']()),_0xe0c686;}throw _0x5592e6[_0xfca586(0xf0)];}catch(_0x23a541){return this[_0xfca586(0x198)][_0xfca586(0xf0)](_0x23a541),this[_0xfca586(0xc8)](!0x1);}}[_0x30e940(0x32f)](){const _0x2479e3=_0x30e940;throw new Error(_0x2479e3(0x3f3));}[_0x30e940(0x13f)](){const _0x268e9c=_0x30e940;throw new Error(_0x268e9c(0x427));}['toggleOffline'](){const _0x164eeb=_0x30e940;return this[_0x164eeb(0x1f7)](),this[_0x164eeb(0x137)][_0x164eeb(0x1c0)](V,this[_0x164eeb(0x1e6)],this['type'],null,this[_0x164eeb(0x45a)],this[_0x164eeb(0x28c)]);}[_0x30e940(0x20e)](){return this;}['_schedule'](_0x117e62){const _0x5315fd=_0x30e940;_0x117e62=_0x117e62!=null?_0x117e62:this['_getSendChangesetTimeout'](),this[_0x5315fd(0x1fa)]=new Date()[_0x5315fd(0x23a)](),this['_sendingTimer']=setTimeout(()=>{const _0x5d5776=_0x5315fd;this[_0x5d5776(0x1f7)]();let _0x49c7f3=null;switch(this['type']){case j[_0x5d5776(0x390)]:{_0x49c7f3=tt(this[_0x5d5776(0x45a)],this['unitID'],this[_0x5d5776(0x43f)],this[_0x5d5776(0x2fb)],this[_0x5d5776(0x460)]);break;}case j[_0x5d5776(0x1f4)]:{this[_0x5d5776(0x45a)][_0x5d5776(0x435)](_0x3b3753=>_0x3b3753['id']===P[_0x5d5776(0x2ad)]['id'])?_0x49c7f3=Rs(this['_pendingMutations'],this['unitID'],this[_0x5d5776(0x43f)],this[_0x5d5776(0x2fb)],this[_0x5d5776(0x460)]):_0x49c7f3=tt(this[_0x5d5776(0x45a)],this[_0x5d5776(0x1e6)],this['_univerInstanceService'],this[_0x5d5776(0x2fb)],this[_0x5d5776(0x460)]);break;}default:throw new Error(_0x5d5776(0x328)+this[_0x5d5776(0x312)]+'\x20in\x20_schedule.');}const {changeset:_0xb25564,pendingMutations:_0x273ed9}=_0x49c7f3;this[_0x5d5776(0x28c)][_0x5d5776(0x2cb)](_0xb25564);const _0x5c6b54=_0x273ed9[_0x5d5776(0x3b8)]?this[_0x5d5776(0x137)][_0x5d5776(0x1c0)](x,this[_0x5d5776(0x1e6)],this[_0x5d5776(0x312)],_0xb25564,_0x273ed9,this[_0x5d5776(0x28c)]):this[_0x5d5776(0x137)][_0x5d5776(0x1c0)](k,this['unitID'],this[_0x5d5776(0x312)],_0xb25564,this[_0x5d5776(0x28c)]);_0x5c6b54[_0x5d5776(0x1b7)](),this[_0x5d5776(0x28c)][_0x5d5776(0x2d5)](this,_0x5c6b54);},_0x117e62);}[_0x30e940(0x2d2)](){const _0x1d80b0=_0x30e940;var _0x696a50;return(_0x696a50=this[_0x1d80b0(0x160)][_0x1d80b0(0xfc)](ht))!=null?_0x696a50:Wt;}[_0x30e940(0xdd)](){const _0x3e2ff4=_0x30e940;throw new Error(_0x3e2ff4(0x38d));}[_0x30e940(0x1f7)](){const _0x19fd96=_0x30e940;this[_0x19fd96(0x3dd)]!=null&&(clearTimeout(this[_0x19fd96(0x3dd)]),this['_sendingTimer']=null);}[_0x30e940(0xc8)](_0x46ffc5){const _0x268e8b=_0x30e940;return this['_clearScheduledTask'](),this[_0x268e8b(0x137)][_0x268e8b(0x1c0)](B,this[_0x268e8b(0x1e6)],this['type'],null,this['_pendingMutations'],this[_0x268e8b(0x28c)],_0x46ffc5);}};$=K([m(0x4,o[_0x30e940(0xdf)](o['Injector'])),m(0x5,o[_0x30e940(0xdf)](_['RevisionService'])),m(0x6,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x7,o['Inject'](Y)),m(0x8,o[_0x30e940(0x1e7)]),m(0x9,o[_0x30e940(0x1c8)]),m(0xa,o[_0x30e940(0x306)]),m(0xb,_[_0x30e940(0x2ab)]),m(0xc,o['IUniverInstanceService']),m(0xd,o[_0x30e940(0x17f)])],$);let k=class extends X{constructor(_0x45068a,_0x9f7ba5,_0x32a1b5,_0x27e9f6,_0x306e05,_0x327c16,_0x3f115d,_0x176b1c,_0x140bfe,_0x59d0ce,_0x3326f5){const _0x23db12=_0x30e940;super(_0x45068a,_0x9f7ba5,_0x32a1b5,[],_0x27e9f6,_0x176b1c,_0x3326f5,_0x327c16,_0x3f115d),u(this,_0x23db12(0x1de),_0x23db12(0x2e8)),(this[_0x23db12(0x137)]=_0x306e05,this[_0x23db12(0x198)]=_0x140bfe,this[_0x23db12(0x3c0)]=_0x59d0ce);}[_0x30e940(0x223)](_0x5095e4){const _0x598d3e=_0x30e940,_0x43fc08=this[_0x598d3e(0x137)][_0x598d3e(0x1c0)](x,this[_0x598d3e(0x1e6)],this[_0x598d3e(0x312)],this['_awaitingChangeset'],[_0x5095e4],this['_handler']);return _0x43fc08[_0x598d3e(0x1b7)](),_0x43fc08;}['onRemoteChangeset'](_0x2decc7){const _0x17a74a=_0x30e940;if(this['_checkMissing'](_0x2decc7))return this[_0x17a74a(0x137)][_0x17a74a(0x1c0)](H,this[_0x17a74a(0x1e6)],this[_0x17a74a(0x312)],this[_0x17a74a(0x46d)],[],null,[_0x2decc7],this[_0x17a74a(0x28c)]);try{const _0x185fc9=this[_0x17a74a(0x3c0)]['transformChangesets']([_0x2decc7],[this[_0x17a74a(0x46d)]],!0x1);if(_[_0x17a74a(0x38a)](_0x185fc9)){const {c1Prime:_0x1b8157,c2Prime:_0x2f3f44}=_0x185fc9;this['_executeRemoteChangeset'](_0x1b8157[0x0]),_0x2f3f44[0x0][_0x17a74a(0x209)]=this[_0x17a74a(0x372)]();const _0x46a715=this[_0x17a74a(0x137)]['createInstance'](k,this[_0x17a74a(0x1e6)],this[_0x17a74a(0x312)],_0x2f3f44[0x0],this['_handler']);return _0x46a715['_updateLocalCache'](),_0x46a715;}return this['_onConflict'](!0x1);}catch(_0xe1017d){return this[_0x17a74a(0x198)][_0x17a74a(0xf0)](_0xe1017d),this[_0x17a74a(0xc8)](!0x1);}}[_0x30e940(0x32f)](_0x471838){const _0x5b2090=_0x30e940,_0x1a5fd9=this['_revisionService']['getCurrentRevForDocument'](this[_0x5b2090(0x1e6)]);if(_0x471838[_0x5b2090(0x448)]<_0x1a5fd9-0x1)return this;if(this[_0x5b2090(0x111)](_0x471838))return this[_0x5b2090(0x137)][_0x5b2090(0x1c0)](H,this['unitID'],this[_0x5b2090(0x312)],null,[],this[_0x5b2090(0x46d)],[],this['_handler']);this[_0x5b2090(0x204)]();const _0x12a90b=this[_0x5b2090(0x137)]['createInstance'](ce,this[_0x5b2090(0x1e6)],this['type'],this['_handler']);return _0x12a90b[_0x5b2090(0x1b7)](),_0x12a90b;}[_0x30e940(0x13f)](_0x14e291){const _0x450d88=_0x30e940;return this[_0x450d88(0xc8)](!!(_0x14e291!=null&&_0x14e291[_0x450d88(0x463)]));}[_0x30e940(0x3b2)](){const _0x1972ba=_0x30e940;return this[_0x1972ba(0x137)][_0x1972ba(0x1c0)](V,this[_0x1972ba(0x1e6)],this[_0x1972ba(0x312)],this['_awaitingChangeset'],[],this[_0x1972ba(0x28c)]);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x1a99ad=_0x30e940;this['_handler'][_0x1a99ad(0x2cb)](this[_0x1a99ad(0x46d)]);}[_0x30e940(0xc8)](_0x1ed5e0){const _0x460598=_0x30e940;return this[_0x460598(0x137)][_0x460598(0x1c0)](B,this['unitID'],this['type'],this[_0x460598(0x46d)],[],this['_handler'],_0x1ed5e0);}};k=K([m(0x4,o['Inject'](o[_0x30e940(0xc4)])),m(0x5,o['Inject'](_[_0x30e940(0x1db)])),m(0x6,o[_0x30e940(0xdf)](exports['LocalCacheService'])),m(0x7,o[_0x30e940(0x1c8)]),m(0x8,o[_0x30e940(0x1e7)]),m(0x9,_[_0x30e940(0x2ab)]),m(0xa,o[_0x30e940(0x17f)])],k);let x=class extends X{constructor(_0x1243c3,_0xd06ed1,_0x14e029,_0x3cbf0c,_0xf73093,_0x595ea4,_0x54b60c,_0x55c00c,_0x405a05,_0x1a827c,_0x139509,_0x27a5ed){const _0x2c6b4b=_0x30e940;super(_0x1243c3,_0xd06ed1,_0x14e029,_0x3cbf0c,_0xf73093,_0x405a05,_0x27a5ed,_0x54b60c,_0x55c00c),u(this,_0x2c6b4b(0x1de),_0x2c6b4b(0x1d8)),(this[_0x2c6b4b(0x137)]=_0x595ea4,this[_0x2c6b4b(0x198)]=_0x1a827c,this[_0x2c6b4b(0x3c0)]=_0x139509);}[_0x30e940(0x223)](_0x4ba763){return this['_pendingMutations']['push'](_0x4ba763),this;}[_0x30e940(0x1c6)](_0x67b292){const _0x5b9931=_0x30e940;if(this[_0x5b9931(0x111)](_0x67b292))return this[_0x5b9931(0x137)][_0x5b9931(0x1c0)](H,this['unitID'],this[_0x5b9931(0x312)],this[_0x5b9931(0x46d)],this[_0x5b9931(0x45a)],null,[_0x67b292],this[_0x5b9931(0x28c)]);try{const _0x225459=this[_0x5b9931(0x3c0)]['transformChangesets']([_0x67b292],[this[_0x5b9931(0x46d)]],!0x1);if(_[_0x5b9931(0x38a)](_0x225459)){const {c1Prime:_0x538c4d,c2Prime:_0x3cbeb2}=_0x225459,_0x54dce2=this[_0x5b9931(0x3c0)][_0x5b9931(0x1c3)](_0x538c4d[0x0],this['_pendingMutations']);if(_[_0x5b9931(0x28a)](_0x54dce2)){const {c1Prime:_0x348e92,m2Prime:_0x21134c}=_0x54dce2;return this[_0x5b9931(0x369)](_0x348e92),_0x3cbeb2[0x0][_0x5b9931(0x209)]=this[_0x5b9931(0x372)](),this[_0x5b9931(0x137)]['createInstance'](x,this[_0x5b9931(0x1e6)],this[_0x5b9931(0x312)],_0x3cbeb2[0x0],_0x21134c,this[_0x5b9931(0x28c)]);}throw _0x54dce2[_0x5b9931(0xf0)];}throw _0x225459[_0x5b9931(0xf0)];}catch(_0x54c4d1){return this[_0x5b9931(0x198)][_0x5b9931(0xf0)](_0x54c4d1),this['_onConflict'](!0x1);}}[_0x30e940(0x32f)](_0xed51b0){const _0x21dbed=_0x30e940;if(this[_0x21dbed(0x111)](_0xed51b0))return this[_0x21dbed(0x137)][_0x21dbed(0x1c0)](H,this[_0x21dbed(0x1e6)],this[_0x21dbed(0x312)],null,this[_0x21dbed(0x45a)],this[_0x21dbed(0x46d)],[],this['_handler']);this[_0x21dbed(0x204)]();const _0x4aec91=this[_0x21dbed(0x137)][_0x21dbed(0x1c0)]($,this[_0x21dbed(0x1e6)],this['type'],this['_pendingMutations'],this[_0x21dbed(0x28c)]);return _0x4aec91[_0x21dbed(0x8f)](),_0x4aec91[_0x21dbed(0x1b7)](),_0x4aec91;}['onRemoteRej'](_0x17f8ef){const _0x586a19=_0x30e940;return this[_0x586a19(0xc8)](!!(_0x17f8ef!=null&&_0x17f8ef[_0x586a19(0x463)]));}[_0x30e940(0x3b2)](){const _0x468c81=_0x30e940;return this[_0x468c81(0x137)][_0x468c81(0x1c0)](V,this[_0x468c81(0x1e6)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x450c8c=_0x30e940;this[_0x450c8c(0x28c)][_0x450c8c(0x2cb)](this[_0x450c8c(0x46d)]);}[_0x30e940(0xc8)](_0x4b8369){const _0x10f2bc=_0x30e940;return this[_0x10f2bc(0x137)]['createInstance'](B,this[_0x10f2bc(0x1e6)],this[_0x10f2bc(0x312)],null,this[_0x10f2bc(0x45a)],this['_handler'],_0x4b8369);}};x=K([m(0x5,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),m(0x6,o['Inject'](_[_0x30e940(0x1db)])),m(0x7,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x8,o[_0x30e940(0x1c8)]),m(0x9,o[_0x30e940(0x1e7)]),m(0xa,_['ITransformService']),m(0xb,o[_0x30e940(0x17f)])],x);let B=class extends X{constructor(_0x3c6d33,_0xe0ef71,_0x2aa9d5,_0x9ef31d,_0x119961,_0x808bb0=!0x1,_0x3a5079,_0x550e0c,_0x10b72a,_0x2708ab,_0x1c38c9,_0x13b149,_0x145fc1){const _0x44d3ec=_0x30e940;super(_0x3c6d33,_0xe0ef71,_0x2aa9d5,_0x9ef31d,_0x119961,_0x550e0c,_0x10b72a,_0x1c38c9,_0x2708ab),u(this,_0x44d3ec(0x1de),'conflict'),(this[_0x44d3ec(0x121)]=_0x808bb0,this['_permissionService']=_0x3a5079,this[_0x44d3ec(0x45b)]=_0x13b149,this[_0x44d3ec(0xe8)]=_0x145fc1,this[_0x44d3ec(0xd5)](),this[_0x44d3ec(0x10c)](),this['_disableEditing']());}[_0x30e940(0x223)](){return this;}['onRemoteChangeset'](){return this;}[_0x30e940(0x32f)](){return this;}[_0x30e940(0x13f)](){return this;}[_0x30e940(0x3b2)](){return this;}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x247384=_0x30e940;throw new Error(_0x247384(0x411));}[_0x30e940(0x10c)](){const _0x5a437d=_0x30e940;this[_0x5a437d(0x377)]['updateOfflineData'](this['unitID'],this[_0x5a437d(0x312)],null,[]);}[_0x30e940(0xd5)](){const _0x383297=_0x30e940;this['_isPermissionRej']?this['_notificationService']['show']({'title':this[_0x383297(0x45b)]['t'](_0x383297(0x14f)),'content':this[_0x383297(0x45b)]['t'](_0x383297(0x343)),'type':_0x383297(0xf0),'duration':0x0}):this[_0x383297(0xe8)][_0x383297(0x157)]({'title':this['_localeService']['t'](_0x383297(0xf2)),'content':this['_localeService']['t']('conflict.content'),'type':'error','duration':0x0});}['_disableEditing'](){const _0x15268f=_0x30e940;this[_0x15268f(0x153)][_0x15268f(0x289)](new p[(_0x15268f(0x458))](this[_0x15268f(0x1e6)])['id'],!0x1);}};B=K([m(0x6,o[_0x30e940(0xdf)](o['IPermissionService'])),m(0x7,o[_0x30e940(0x1c8)]),m(0x8,o[_0x30e940(0x17f)]),m(0x9,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0xa,o['Inject'](_['RevisionService'])),m(0xb,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)])),m(0xc,L[_0x30e940(0x236)])],B);let V=class extends X{constructor(_0x4a1321,_0x4911d2,_0x193a76,_0xf94193,_0x438d93,_0x35bcb0,_0x2427d5,_0x344c88,_0x46066e,_0x96c9a7){const _0x2fde07=_0x30e940;super(_0x4a1321,_0x4911d2,_0x193a76,_0xf94193,_0x438d93,_0x46066e,_0x96c9a7,_0x2427d5,_0x344c88),u(this,'status',_0x2fde07(0x1cd)),this[_0x2fde07(0x137)]=_0x35bcb0;}[_0x30e940(0x223)](_0x4f0831){const _0x250f54=_0x30e940;return this['_pendingMutations'][_0x250f54(0x220)](_0x4f0831),this['_updateLocalCache'](),this;}[_0x30e940(0x1c6)](_0x1b1f95){const _0x25006d=_0x30e940;throw new Error(_0x25006d(0x357));}[_0x30e940(0x32f)](){const _0x374e1b=_0x30e940;throw new Error(_0x374e1b(0x14c));}[_0x30e940(0x13f)](){const _0x51fa87=_0x30e940;throw new Error(_0x51fa87(0x421));}[_0x30e940(0x3b2)](){return this;}[_0x30e940(0x20e)](){const _0xd10577=_0x30e940,{_injector:_0x535358,_pendingMutations:_0x409bf2,_awaitingChangeset:_0x275ee9,unitID:_0x521934,_handler:_0xa51aee,type:_0x27c45a}=this,_0x125746=Tt(_0x535358,_0x521934,_0x27c45a,_0x275ee9,_0x409bf2,_0xa51aee);return _0x125746 instanceof $?_0x125746[_0xd10577(0x8f)]():(_0x125746 instanceof x||_0x125746 instanceof k)&&_0x125746[_0xd10577(0xdd)](),_0x125746;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};V=K([m(0x5,o[_0x30e940(0xdf)](o['Injector'])),m(0x6,o[_0x30e940(0xdf)](_[_0x30e940(0x1db)])),m(0x7,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x8,o[_0x30e940(0x1c8)]),m(0x9,o[_0x30e940(0x17f)])],V);let H=class extends X{constructor(_0x22e12a,_0x48fd78,_0x3ebf68,_0x4fe439,_0x3792db,_0x105025,_0x294ae0,_0x12f6b3,_0x1800ee,_0xfa1220,_0x45d9da,_0x53d6ea,_0x4e89bf,_0x5de6d9){const _0x426fce=_0x30e940;super(_0x22e12a,_0x48fd78,_0x3ebf68,_0x4fe439,_0x294ae0,_0x53d6ea,_0x4e89bf,_0x1800ee,_0xfa1220),u(this,'status',_0x426fce(0x3df)),(this[_0x426fce(0xe5)]=_0x3792db,this[_0x426fce(0xff)]=_0x105025,this[_0x426fce(0x137)]=_0x12f6b3,this[_0x426fce(0x198)]=_0x45d9da,this[_0x426fce(0x3c0)]=_0x5de6d9);}[_0x30e940(0x44f)](_0x458b93){const _0xf4a71c=_0x30e940;try{const _0x7f410d=[..._0x458b93,...this[_0xf4a71c(0xff)]],_0x383ee3=[this[_0xf4a71c(0x46d)]||this['_acknowledgedAwaitingChangeset']][_0xf4a71c(0x20a)](_0x5c954a=>!!_0x5c954a);let _0x128f3b,_0x3d33a6;if(_0x383ee3[_0xf4a71c(0x3b8)]){const _0x51fb3d=this[_0xf4a71c(0x3c0)][_0xf4a71c(0x1ab)](_0x7f410d,_0x383ee3,!0x1);if(!_[_0xf4a71c(0x38a)](_0x51fb3d))throw _0x51fb3d[_0xf4a71c(0xf0)];_0x128f3b=_0x51fb3d[_0xf4a71c(0x1f6)],_0x3d33a6=_0x51fb3d[_0xf4a71c(0x409)];}else _0x128f3b=_0x7f410d,_0x3d33a6=[];let _0x36f645=this[_0xf4a71c(0x45a)];_0x128f3b[_0xf4a71c(0x277)](_0x5151a3=>{const _0x4dd1de=_0xf4a71c;let _0xdac9bd;if(_0x36f645[_0x4dd1de(0x3b8)]){const _0x53c787=this[_0x4dd1de(0x3c0)]['transformMutationsWithChangeset'](_0x5151a3,_0x36f645);if(!_[_0x4dd1de(0x28a)](_0x53c787))throw _0x53c787[_0x4dd1de(0xf0)];_0xdac9bd=_0x53c787[_0x4dd1de(0x1f6)],_0x36f645=_0x53c787[_0x4dd1de(0x163)];}else _0xdac9bd=_0x5151a3;this[_0x4dd1de(0x369)](_0xdac9bd);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0xf4a71c(0x46d)]&&_0x3d33a6[_0xf4a71c(0x3b8)]&&(_0x3d33a6[0x0]['baseRev']=this[_0xf4a71c(0x372)]());let _0x599923;if(this[_0xf4a71c(0x46d)]&&_0x36f645[_0xf4a71c(0x3b8)]!==0x0)_0x599923=this[_0xf4a71c(0x137)][_0xf4a71c(0x1c0)](x,this[_0xf4a71c(0x1e6)],this[_0xf4a71c(0x312)],_0x3d33a6[0x0],_0x36f645,this[_0xf4a71c(0x28c)]);else{if(this[_0xf4a71c(0x46d)]&&_0x36f645[_0xf4a71c(0x3b8)]===0x0)_0x3d33a6[0x0][_0xf4a71c(0x209)]=this[_0xf4a71c(0x372)](),_0x599923=this[_0xf4a71c(0x137)][_0xf4a71c(0x1c0)](k,this[_0xf4a71c(0x1e6)],this['type'],_0x3d33a6[0x0],this[_0xf4a71c(0x28c)]);else{if(_0x36f645[_0xf4a71c(0x3b8)]!==0x0){const _0x3b2491=this['_injector'][_0xf4a71c(0x1c0)]($,this[_0xf4a71c(0x1e6)],this['type'],_0x36f645,this[_0xf4a71c(0x28c)]);_0x3b2491[_0xf4a71c(0x8f)](),_0x599923=_0x3b2491;}else _0x599923=this[_0xf4a71c(0x137)][_0xf4a71c(0x1c0)](ce,this[_0xf4a71c(0x1e6)],this[_0xf4a71c(0x312)],this[_0xf4a71c(0x28c)]);}}return _0x599923['_updateLocalCache'](),_0x599923;}catch(_0x1af9fb){return this[_0xf4a71c(0x198)]['error']('[FetchMissState]',_0xf4a71c(0x3ab),_0x1af9fb),this['_injector'][_0xf4a71c(0x1c0)](B,this['unitID'],this[_0xf4a71c(0x312)],this['_awaitingChangeset'],this[_0xf4a71c(0x45a)],this[_0xf4a71c(0x28c)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x30e940(0x223)](_0xc793a3){const _0x91eeb8=_0x30e940;return this[_0x91eeb8(0x45a)]['push'](_0xc793a3),this;}[_0x30e940(0x1c6)](_0xa06a61){const _0x2baa25=_0x30e940;return this[_0x2baa25(0xff)][_0x2baa25(0x220)](_0xa06a61),this;}['onRemoteAck'](_0x51638a){const _0x347257=_0x30e940;if(this[_0x347257(0x46d)])return this[_0x347257(0xe5)]=this[_0x347257(0x46d)],this[_0x347257(0x46d)]=null,this;throw new Error(_0x347257(0x38e));}[_0x30e940(0x13f)](_0x2fec58){const _0x23b838=_0x30e940;return this[_0x23b838(0xc8)](!!(_0x2fec58!=null&&_0x2fec58[_0x23b838(0x463)]));}[_0x30e940(0x3b2)](){const _0x146e57=_0x30e940;return this[_0x146e57(0x137)][_0x146e57(0x1c0)](V,this['unitID'],this[_0x146e57(0x312)],this[_0x146e57(0x46d)],this[_0x146e57(0x45a)],this[_0x146e57(0x28c)]);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xc8)](_0x35c346){const _0xa40f55=_0x30e940;return this[_0xa40f55(0x137)]['createInstance'](B,this['unitID'],this[_0xa40f55(0x312)],this[_0xa40f55(0x46d)],this[_0xa40f55(0x45a)],this[_0xa40f55(0x28c)],_0x35c346);}};H=K([m(0x7,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),m(0x8,o[_0x30e940(0xdf)](_[_0x30e940(0x1db)])),m(0x9,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0xa,o[_0x30e940(0x1e7)]),m(0xb,o[_0x30e940(0x1c8)]),m(0xc,o[_0x30e940(0x17f)]),m(0xd,_[_0x30e940(0x2ab)])],H);function Tt(_0x1655ae,_0x58c98f,_0x834f25,_0x4e36a0,_0x4094b4,_0x56a169){const _0x2d3cb7=_0x30e940;return _0x4e36a0&&_0x4094b4[_0x2d3cb7(0x3b8)]?_0x1655ae['createInstance'](x,_0x58c98f,_0x834f25,_0x4e36a0,_0x4094b4,_0x56a169):_0x4e36a0?_0x1655ae[_0x2d3cb7(0x1c0)](k,_0x58c98f,_0x834f25,_0x4e36a0,_0x56a169):_0x4094b4[_0x2d3cb7(0x3b8)]?_0x1655ae[_0x2d3cb7(0x1c0)]($,_0x58c98f,_0x834f25,_0x4094b4,_0x56a169):_0x1655ae['createInstance'](ce,_0x58c98f,_0x834f25,_0x56a169);}function _0x59d8(){const _0x5bf993=['_waitForHeartbeatResponse','/universer-api/stream/file/upload','labelPosition','message$','body','_colorAssignService','_sendingTimer','location','fetch_missing','status$','_ensureSubject','selection','getParam','objectType','LIVESHARE_TERMINATE','Shape','_colorIndex','removeMember','send','_snapshotService','loadDoc','3595455GfHXBW','UNRECOGNIZED','image/jpg','ALREADY_EXISTS','_status$','getSheetBySheetId','unshift','[PendingState]:\x20received\x20acknowledgement.','defs','_shapes','143854AXbDxA','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursors','@univerjs/rpc','#fff','_initMergeInterceptor','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','sessionStatus$','JOIN','CollaborationSession','_beforeCloseService','IURLService','objects','SheetCollaborationEntity','lineTo','getUnitType','reject','handleInsertRangeMoveDown','HEARTBEAT_TIMEOUT_KEY','c2Prime','lodash/debounce','AuthzIoHttpService','isEditing','HTTPRequest','LifecycleStages','_docSkeletonManagerService','sheetId','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UnitSnapshot','_userManagerService','deserializeToCombResponse','_loadDoc','_onFetchMissResult','_setupSubUnitSync','add','handleIRemoveRow','_themeService','/universer-api/snapshot','SnapshotServerOverHTTPService','_removeRoom','LICENSE_MAX_UNITS_EXCEEDED','resize','UNIVER_PROJECT','[OfflineState]:\x20received\x20rejection.','disableLocalCache','closePath','unitId','_eventUnsubscribe','registerComponent','[PendingState]:\x20received\x20rejection.','_config','defIds','rxjs/operators','_event$','_socket$','_online','HEARTBEAT_INTERVAL','[SyncedState]:\x20received\x20acknowledgement.','[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.','_socket','searchParams','currentSkeleton$','getActiveRange','every','state$','originalMeta','MUTATION','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','measureText','entries','serializeRangeWithSheet','headers','/-/object/-/batch_allowed','_univerInstanceService','getRelativeToViewportCoord','APPLY_REVISION_CONFILICT','IUIPartsService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','12TWKLfz','_state$','svg','Error','revision','_hover','APPLY_REJECT','localeService','subUnitId','isValidRectRange','width','onMissedChangesetFetched','text','toString','url(#$1','mapDocumentTypeToUniverType','_backgroundColor','_assignedColors','InsertSheetMutation','Subject','WorkbookEditablePermission','colorChannel1','_pendingMutations','_localeService','has','readAsDataURL','toRgbString','5TkzGwq','_memberService','session','IBeforeCloseService','isPermissionRej','findNodePositionByCharIndex','collabStatus.notCollab','_clearTimeoutTimer','saveImage','collabStatus.synced','getFocusedUnit','UniverIcon','IMEInputManagerService','COMMENT_UPDATE','_awaitingChangeset','next','_collaborationController','requireSession','setItem','saveChangeset','USERS_ENTER','[CollaborationEntity]','updateOfflineData','@univerjs/engine-render','clearTimeout','Rect','UPDATE_CURSOR','NOT_FOUND','file','onTransformRemoteChangesetByIMECache','_unitOnClients','div','_schedule','ColorKit','TOO_MANY_REQUESTS','\x0aCurrent:\x20','getUnitStatus$','_getUndoStack','mutations','Optional','_drawRectRange','M0\x200H16V16H0z','CommandType','_members','clear','SYNCED','then','tag','_registerRenderDependencies','NEW_CHANGESETS','toDisposable','_waitCount','IAuthzIoService','unknown','_createHandler','transformUndoRedo','switchMap','/universer-api/oidc/authpage','joinEvent','debounceTime','create','handleMoveRange','image/png','startsWith','Undefined','complete','RefRangeService','url(#off-line-single_clip0_910_343)','_sheetSkeletonManagerService','socketService','resolve','\x0aAfter:\x20','[CollaborationSession]','href','purple300','_substituteRedoStack','_singleActiveUnitService','0\x200\x2016\x2016','merge','hide','_labelPosition','_imageSourceCache','\x20-\x20','state','_unlockTransition','Injector','getTypeOfUnitAdded$','dispose','synced','_onConflict','_transformRemoteChangesetByIMECache','getValue','socket\x20close','auth.needGotoLoginAlert','_collabCursorController','handleDeleteRangeMoveUp','useObservable','\x20to\x20','SHOULD_CLOSE_CONN','onCommandExecuted','assignAColorForMemberID','_transformStack','_showConflictNotification','UNIVER_COLLABORATION_CLIENT_PLUGIN','DocSkeletonManagerService','socket\x20open.','concatMap','XHRHTTPImplementation','_updateURLWithCurrentState','_anchorDot','resend','CollaborationController','Inject','encodeURIComponent','_transformUndoredo','_clearOtherTimers','call','unsubscribe','_acknowledgedAwaitingChangeset','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_range','_notificationService','_compressMutationService','_replayCachedMutations','icon','fill','forwardRef','&source=','LICENSE_DISTRO_REJECTED','error','_onCursorUpdate','conflict.title','ThemeService','image/gif','TEXT_RANGE_LAYER_INDEX','_toggleOnline','updatePermissionObjEvent','_roomMembers','awaitingChangeset','collabStatus.fetchMiss','attrs','getConfig','_cursorInfo$','LocaleService','_queuedRemoteChangesets','_onUserJoin','assign','deepClone','APPLY_PERMISSION_DENIED','onStarting','FETCH_MISSING','_onRemoteChangeset','HEARTBEAT_INTERVAL_KEY','generateRandomId','_getSignURL','data','isInternalEditorID','_clearLocalCache','_initModules','ERROR_EXCEED_SIZE','pluginName','CollaborationSocketService','_checkMissing','pending','VIEW_MAIN','_getSaveTimeout','_renderManagerService','batchAllowed','getCoordByCell','LICENSE_EXPORT_SIZE_EXCEEDED','JOINING','_createSocket','registerRefRange','onSyncEditingCollabCursor','_urlService','allowed','replaceTextRanges','map','_isPermissionRej','_HTTPService','UserManagerService','PSEUDO_FETCH_MISSING_RESULT','sessionStatus','save','override','EXCHANGE_SIGN_URL_SERVER_URL_KEY','interceptor','getUnhiddenWorksheets','CHANGESET_REVISION_CONFILICT','LOGIN_URL_KEY','executeCommand','updateMember','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','COMPLETION_FINISHED','FromArray','error$','pushState','onCommentUpdate','getCollabCursors$','INTERNAL_ERROR','_injector','univer-online-status-title','getCollabEntity','_docStateChangeManagerService','mergeOverrideWithDependencies','serializeDocRange','15747320nxLrzl','_transitionLocked','onRemoteRej','OTHER_CLIENTS_EDITING','0\x200\x2017\x2016','getTypeOfUnitDisposed$','_getMergeRange','univer-online-status-icon','liveShareOperation','textRanges','[CollaborationSessionService]','xlink:href','refreshPermission','Plugin','_undoStacks','[OfflineState]:\x20received\x20acknowledgement.','getColor','values','permission.title','objectID','_initStatusComponent','[CollaborationUndoRedoService]','_permissionService','_saveTaskMap','skeleton','transformSelections','show','_toggleOffline','flatMap','_anchor','LICENSE_IMPORT_SIZE_EXCEEDED','uni.network.url-service','eventID','_getSheetObject','target','_configService','code','SNAPSHOT_SERVER_URL_KEY','m2Prime','_startCollaboration','bottom','_onJoinRoomEvent','?url=','onTransformIME','url','asObservable','createIdentifier','SessionStatus','from','univer-online-status','DisposableCollection','_decreaseWaiting','@univerjs/ui','CommentService','setCurrentUser','drawWith','replaceState','_commandService','POST','ImageUploadStatusType','getSheetBlock','UNKNOWN_CODE','collaboratorID','withCredentials','_docTransformIMECacheService','getCurrentRevForDocument','IUndoRedoService','_onRecvEvent','HTTPService','b64DecodeUnicode','_getAPIPrefix','newCsEvent','enableLocalCache','onMissingChangesets','MessageType','_updateState','all','_disabled','DesktopCollaborationStatusDisplayController','_onCombEvent','ImageIoService','beginPath','getActiveSheet','loadSheet','_sendHeartbeatTimer','clsx','confirm','[DataLoaderController]','parseProtocolChangeset','subscribe','ws://127.0.0.1:8000/universer-api/comb/connect','_logService','event$','_httpService','getDocRanges','SUBMIT_CHANGESET','univerjs-icon\x20univerjs-icon-','collaboration-client.offline-data-not-saved','_removeClearOtherTimer','focused$','YUUMI_URL_COL_OUT_OF_RANGE','getOwnPropertyDescriptor','getOffsetConfig','newValue','saveSheetBlock','UPDATE_PERMISSION_OBJ','catch','saveOfflineData','enableOfflineEditing','_scene','transformChangesets','&assign=','EffectRefRangId','/unit/','collab-rect-range-','action','getSheetObject','memberID','_sheetTransformSelectionsService','onPointerLeave$','exhaustSavingTask','_cursorShapes','_updateLocalCache','1em','_change$','_initUnitPermissionChange','_replaceFileID','requestParams','/collaborator','stringify','transformMutation','createInstance','_onMessage','roomMembers','transformMutationsWithChangeset','USERS_LEAVE','ImageSourceType','onRemoteChangeset','members','ICommandService','doc.mutation.rich-text-editing','BASE64','patch','_handleHover','offline','_getAPIPrefixPath','RxDisposable','unit','getSkeleton','registerHTTPInterceptor','string','propertyIsEnumerable','?size=','_textBubble','_docTransformSelectionsService','awaiting_with_pending','SnapshotService','_refRangeService','RevisionService','onlyLocal','not_collab','status','InsertRangeMoveDownCommandId','popstate','collab-text-anchor-','@univerjs/drawing','MoveRangeCommandId','SetSelectionsOperation','includes','unitID','ILogService','OnLifecycle','COLORS','color','_render','list','InsertRowCommandId','FAIL','top','get','_drawAnchor','IRenderManagerService','transformIMECache','UNIVER_DOC','take','c1Prime','_clearScheduledTask','row','_sessions','_scheduleTimestamp','setActiveRange','CONNECTOR_DATA_TOO_LARGE','isTransformMutationFailure','Univer','[SyncedState]:\x20received\x20rejection.','_entities','/fetchmissing?from=','collab-text-range-','ICollaborationSocketService','_incrementRevisionNumber','m1Prime','image/jpeg','_collaborationPaused','indexOf','baseRev','filter','params','title','_collabSessionService','toggleOnline','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Module','fromCollab','COMPRESS_MUTATION_APPLY','setShapeProps','endRow','TextSelectionManagerService','_collabCursorState$','_localStorageService','_tryEnsureSocket','COLLAB_SUBMIT_CHANGESET_URL_KEY','32uGjmxu','_onConnectionOpen','close','LIVESHARE_FETCH_OPERATIONS','_socketService','_context','push','SheetPermissionInitController','hasOwnProperty','appendMutation','_lockTransition','displayName','/block/','LocalCacheService','1074894UxTZrU','HELLO','getCurrentUnitForType','SUCCUSS','disposeWithMe','_getCtorByUniverType','substring','_clearCollaborationTimeoutTimer','_entityInit$','getCollabEntity$','NodePositionConvertToRectRange','IUniverInstanceService','clipPath','Tools','INotificationService','ISnapshotServerService','backgroundColor','open$','getTime','LocalUndoRedoService','_onRefRangeChange','_fetchMissChangesets','toStringTag','editingUnit','session.connection-failed','_onRemoteRejected','SNAPSHOT_INVALID_SNAPSHOT','className','delete','Starting','subscribeEvent','_getLoginPath','submit\x20changeset\x20error!','encode','blue400','combineLatest','round','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ThresholdInterceptorFactory','whenReady','SheetCollabCursorShape','/object','LIVESHARE_NEW_HOST','off-line-single','@univerjs/design','_messageService','actions','onlineStatusIcon','_collaborationTimeoutTimer','append','clearInterval','@univerjs-pro/collaboration','roomInfos','DependentOn','NOT_COLLAB','collabStatus.syncing','_cursor','max','_onCursorDelete','history','addObjects','registerRenderModule','getMemberID','_getAnchorBounding','_updateStatus','_removeCollabCursors','sequenceExecute','gold400','_commentService','_applyRemoteChangeset','enableAuthServer','resourceIDs','session.collaboration-timeout','_document','HEARTBEAT','_handleJoinEvent','syncEditingCollabCursor','getMember','HttpImport','forEach','_socketReady','@univerjs/docs','SetDocZoomRatioOperation','csAckEvent','AWAITING_WITH_PENDING','...','setInterval','idSuffix','getUnitId','isArray','RegularPolygon','replace','CollaborationEvent','_name','delay','_socketMessageSubscription','_timeoutTimer','updatePermissionPoint','isTransformMutationsWithChangesetSuccess','textEncoder','_handler','getSheetId','PENDING','YUUMI_SUBSCRIPTION_NOT_FOUND','_substituteUndoStack','collabStatus.offline','getCellPositionByOffset','debug','UNIVER_UNKNOWN','restore','LEAVE','split','transformRemoteChangeset','disposeUnit','onTransformSelections','_hideTimer','getCurrent','reduce','getUniverSheetInstance','createSocket','_transformSelections','startRow','_createInitialStateImpl','SetWorksheetActivateCommand','_state','_send','_uiPartsService','getCurrentSelections','contains','pipe','selections','ITransformService','min','RichTextEditingMutation','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','session.will-retry','_handleEvent','dispose$','arc','_getScale','_onLocalMutation','APPLY_NON_SEQUENTIAL_REVISION','listRoles','slice','IDLE','roomMembers$','UNDEFINED','workbook','INVALID_ARGUMENT','InsertColCommandId','onPointerEnter$','UnitEmbedded','collabStatus.conflict','_startDocCollabCursor','_exhaustRemoteChangesetQueue','_undoRedoService','closeSession','endColumn','CHANGESET_REJ','3491616OoOpVa','update','_onConnectionFailed','getItem','onSendChangeset','3214964pBHFxg','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','@univerjs/sheets-ui','isActive','infoRsp','SNAPSHOT_HAS_BEEN_REMOVED','_getSendChangesetTimeout','_sessionStatus$','_initCloseConn','onStateChange','_submitChangeset','/universer-api/snapshot/','BehaviorSubject','_updateLocalCursor','IContextService','_hovered','fetchThroughInterceptors','red300','SEND_CHANGESET_TIMEOUT_KEY','COLLAB_SUBMIT_CHANGESET_URL','HttpExport','getUnitOnRev','updateCollaborator','urlChange$','NodePositionConvertToCursor','_selfUnitIDs','put','getImageSourceCache','awaiting','sheets','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_init','isTransformMutationsWithChangesetFailure','SheetsSelectionsService','Vector2','{fileID}','some','_transformPreviousActiveRange','UNIVER_SLIDE','size','_updateSubUnitFromURLParams','_cachedData','RECV','handleIRemoveCol','fillStyle','fromEventSubject','LOCAL_CACHE_INTERVAL','_revisionService','CollaborationStatusDisplay','RETRY_CONNECTING_INTERVAL','UNAUTHENTICATED','function','getVpScrollXYInfoByPosToVp','AUTHZ_URL_KEY','DocStateChangeManagerService','getRoom','online','RETRY_CONNECTING_MAX_COUNT','IConfigService','on-line-single','moveTo','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','fromEvent','_session','_loadSheet','CHANGESET_ACK','init','_sendHeartbeat','@univerjs/core','_transformIMECache','type','_clearHeartbeatTimer','_id','_joinRoom','currentColor','ranges','concat','rgba(255,\x20255,\x20255,\x200.01)','_snapshotServerService','COMPRESS_MUTATION_SEND','getCurrentUser','deserializeRangeWithSheet','deleteCollaborator','_saveCache','getAncestorScale','src','cmd','getOwnPropertySymbols','PERMISSION_DENIED','Unknown\x20user','collaboration.closeRoom','PERMISSION_REJ','[PendingState]:\x20unhandled\x20univer\x20type:\x20','onPointerMove$','serializeCombRequest','saveSnapshot','on-line-single_clip0_910_349','OFFLINE','find','onRemoteAck','userID','RemoveRowCommandId','registerBeforeClose','session.room-full','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','children','_scheduleCollaborationTimeoutTimer','prototype','_refreshCollabCursors','1318135OvAzKc','Ready','conflict','_getUploadFileURL','FETCH_MISS','JSONX','addObject','YUUMI_UNABLE_LOAD_URL','loadOfflineData','WebURLService','permission.content','parse','column','set','_onRemoteACK','_handleHeartbeatEvent','objectActions','_scheduleClearOtherTimer','routeKey','fetchMissingChangesets','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_http','distinctUntilChanged','WebSocketService','_scheduleReconnection','enableSingleActiveInstanceLock','_startSheetCollabCursor','json','runRefRangeMutations','_syncEditingCollabCursorService','[OfflineState]:\x20received\x20changeset.','addEventListener','_getSnapshotAPIPrefix','_ws','ERROR_IMAGE','post','_heartbeatTimer','compose','permissionRejEvent','INGEST','LIVESHARE_REQUEST_HOST','CompressMutationService','/object/','_retryCount','translate(.97)','editing\x20status\x20changed\x20to','_clearUndo','getImage','_executeRemoteChangeset','_retryConnectingTimer','_syncEditingCollabCursor','defineProperty','ACTIVE_UNIT_EVENT_CHANNEL','SNAPSHOT_URL_KEY','subunit','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','HEARTBEAT_TIMEOUT','_getCurrentRevision','CollaborationSessionService','_commentUpdate$','[CollaborationSessionService]:\x20socket\x20error','onRendered','_localCacheService','#FFF','_remoteChangesetQueue','&to=','joinRsp','UniverInstanceType','MSG_FOR_ERROR','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_updateCollabCursors','collabCursorState$','handleDeleteRangeMoveLeft','LIVESHARE_OPERATION','setParam','_initStatusListener','DataLoaderController','CollaborationStatus','_color','/resources','NO_OTHER_CLIENTS_EDITING','isTransformChangesetsSuccess','change$','AWAITING','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','ERROR_IMAGE_TYPE','UNIVER_SHEET','hovered','close$','_collaborationSessionService','_registerDependencies','path','RemoveColCommandId','/-/object/list','DeleteRangeMoveLeftCommandId','_getRedoStack','cursorInfo','_unitID','setAlpha','image/bmp','_lastPointer','mapTo','startColumn','responseType','_rescheduleHeartbeatEvent','_unitStatus','_handleLeaveEvent','createElement','cursorInfo$','name','takeUntil','range','ONLINE','failed\x20to\x20apply\x20missed\x20changesets!','activeSheet$','result','_roomMembers$','getInterceptPoints','fillText','black','toggleOffline','font','onMouseMove','IImageIoService','symbol','IPermissionService','length','COLLAB_WEB_SOCKET_URL_KEY','throttleTime','method','_docSyncEditingCollabCursorService','height','getRangePointData','react','_transformService','_clearRedo','DeleteRangeMoveUpCommandId','Disposable','rxjs','shareReplay','UniverCollaborationClientPlugin','_initCommandExecutedListener','_type','[UniverCollaborationClientPlugin]','random','YUUMI_RATE_OVER_LIMIT','addImageSourceCache','leaveEvent','_draw','apply','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','ILocalStorageService','Rectangle','IMessageService','updateCursorEvent','collaborators','Warning'];_0x59d8=function(){return _0x5bf993;};return _0x59d8();}var Us=Object[_0x30e940(0x36c)],ws=Object[_0x30e940(0x1a2)],Ee=(_0x479ee1,_0x45abfd,_0x5ee37e,_0x237b2)=>{const _0x2c4960=_0x30e940;for(var _0x420cbd=_0x237b2>0x1?void 0x0:_0x237b2?ws(_0x45abfd,_0x5ee37e):_0x45abfd,_0x1009e0=_0x479ee1[_0x2c4960(0x3b8)]-0x1,_0x59a225;_0x1009e0>=0x0;_0x1009e0--)(_0x59a225=_0x479ee1[_0x1009e0])&&(_0x420cbd=(_0x237b2?_0x59a225(_0x45abfd,_0x5ee37e,_0x420cbd):_0x59a225(_0x420cbd))||_0x420cbd);return _0x237b2&&_0x420cbd&&Us(_0x45abfd,_0x5ee37e,_0x420cbd),_0x420cbd;},I=(_0x20d495,_0x553fce)=>(_0x34a07d,_0x4bbbe4)=>_0x553fce(_0x34a07d,_0x4bbbe4,_0x20d495);exports[_0x30e940(0xde)]=class extends o[_0x30e940(0x1cf)]{constructor(_0x256f41,_0x121c69,_0xe67439){const _0x505cb2=_0x30e940;super(),u(this,_0x505cb2(0x200),new Map()),u(this,_0x505cb2(0x230),new v[(_0x505cb2(0x457))]()),(this['_injector']=_0x256f41,this[_0x505cb2(0x20d)]=_0x121c69,this[_0x505cb2(0x43f)]=_0xe67439,this[_0x505cb2(0x2eb)]());}[_0x30e940(0xc6)](){const _0x243f59=_0x30e940;super[_0x243f59(0xc6)](),this[_0x243f59(0x200)][_0x243f59(0x277)](_0x1b7cf6=>_0x1b7cf6['dispose']()),this[_0x243f59(0x200)][_0x243f59(0x9b)]();}['getCollabEntity'](_0x58b489){const _0x593298=_0x30e940;var _0x38a6cd;return(_0x38a6cd=this[_0x593298(0x200)]['get'](_0x58b489))!=null?_0x38a6cd:null;}[_0x30e940(0x231)](_0x47caea){const _0x60a616=_0x30e940,_0x21627f=this[_0x60a616(0x139)](_0x47caea);return _0x21627f?v['of'](_0x21627f):this[_0x60a616(0x230)][_0x60a616(0x2a9)](E[_0x60a616(0x20a)](_0x135299=>_0x135299['unitID']===_0x47caea));}[_0x30e940(0x2eb)](){const _0x5c83f6=_0x30e940;this['_univerInstanceService'][_0x5c83f6(0xc5)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x5c83f6(0x2a9)](v[_0x5c83f6(0x3a8)](this[_0x5c83f6(0x2b1)]),E['delay'](0x10))['subscribe'](async _0x34c350=>{const _0x1f681e=_0x5c83f6,_0x2f5e01=_0x34c350['getUnitId'](),_0x1ff63a=await this['_startCollaboration'](_0x2f5e01,j[_0x1f681e(0x390)]);this[_0x1f681e(0x200)][_0x1f681e(0x346)](_0x2f5e01,_0x1ff63a);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x5c83f6(0x37c)][_0x5c83f6(0x1f4)])[_0x5c83f6(0x2a9)](v[_0x5c83f6(0x3a8)](this['dispose$']),E[_0x5c83f6(0x286)](0x10))['pipe'](E[_0x5c83f6(0x20a)](_0x5613d9=>!_0x5613d9[_0x5c83f6(0x280)]()[_0x5c83f6(0xae)]('__')))[_0x5c83f6(0x196)](async _0x393cd6=>{const _0x5cc02f=_0x5c83f6,_0x10af0d=_0x393cd6[_0x5cc02f(0x280)](),_0x28aad2=await this['_startCollaboration'](_0x10af0d,j[_0x5cc02f(0x1f4)]);this[_0x5cc02f(0x200)]['set'](_0x10af0d,_0x28aad2);}),v[_0x5c83f6(0xbd)](this[_0x5c83f6(0x43f)][_0x5c83f6(0x142)](o[_0x5c83f6(0x37c)]['UNIVER_SHEET']),this[_0x5c83f6(0x43f)][_0x5c83f6(0x142)](o[_0x5c83f6(0x37c)]['UNIVER_DOC']))['pipe'](v[_0x5c83f6(0x3a8)](this[_0x5c83f6(0x2b1)]))[_0x5c83f6(0x196)](_0x56b52d=>{const _0x3c823d=_0x5c83f6,_0x1ee68f=_0x56b52d[_0x3c823d(0x280)](),_0x4f9e6c=this[_0x3c823d(0x200)][_0x3c823d(0x1f0)](_0x1ee68f);_0x4f9e6c&&(_0x4f9e6c[_0x3c823d(0xc6)](),this[_0x3c823d(0x200)][_0x3c823d(0x244)](_0x1ee68f));});}async[_0x30e940(0x164)](_0x31d678,_0x506882){const _0x52d492=_0x30e940,_0x5791bb=await this[_0x52d492(0x20d)][_0x52d492(0x470)](_0x31d678),_0x551407=this[_0x52d492(0x137)][_0x52d492(0x1c0)](this[_0x52d492(0x22d)](_0x506882),_0x31d678,_0x506882,_0x5791bb);return await _0x551407[_0x52d492(0x30e)](),this[_0x52d492(0x230)][_0x52d492(0x46e)](_0x551407),_0x551407;}[_0x30e940(0x22d)](_0xc2b729){const _0x4b92c9=_0x30e940;switch(_0xc2b729){case j[_0x4b92c9(0x1f4)]:return Ne;case j['UNIVER_SHEET']:return exports[_0x4b92c9(0x403)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0xc2b729);}}},exports[_0x30e940(0xde)]=Ee([o[_0x30e940(0x1e8)](o['LifecycleStages'][_0x30e940(0x245)],exports[_0x30e940(0xde)]),I(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),I(0x1,o[_0x30e940(0xdf)](exports[_0x30e940(0x373)])),I(0x2,o['IUniverInstanceService'])],exports[_0x30e940(0xde)]);let fe=class extends o[_0x30e940(0x1cf)]{constructor(_0x429955,_0x11b556,_0x1eadfb,_0x158d29,_0x52a377,_0x27141a,_0x1734d7,_0x2e2995,_0x137529,_0x66bf4a,_0x21f9ca,_0x1cc66d,_0x3c1180){const _0x3be185=_0x30e940;super(),u(this,_0x3be185(0x445),new v[(_0x3be185(0x2d8))](null)),u(this,_0x3be185(0x436),this['_state$'][_0x3be185(0x16a)]()),u(this,'_state'),u(this,_0x3be185(0x207),!0x1),u(this,_0x3be185(0x3e0),this[_0x3be185(0x436)]['pipe'](E[_0x3be185(0x120)](_0x5e7106=>_0x5e7106?_0x5e7106['status']:D['OFFLINE']),E[_0x3be185(0x3c5)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x3be185(0x379),[]),(this['unitID']=_0x429955,this[_0x3be185(0x3c8)]=_0x11b556,this[_0x3be185(0x30b)]=_0x1eadfb,this[_0x3be185(0x137)]=_0x158d29,this[_0x3be185(0x377)]=_0x52a377,this[_0x3be185(0xe9)]=_0x27141a,this[_0x3be185(0x45b)]=_0x1734d7,this['_revisionService']=_0x2e2995,this['_logService']=_0x137529,this[_0x3be185(0x176)]=_0x66bf4a,this['_messageService']=_0x21f9ca,this[_0x3be185(0x153)]=_0x1cc66d,this['_singleActiveUnitService']=_0x3c1180);}get[_0x30e940(0xc2)](){const _0x511b84=_0x30e940;return this[_0x511b84(0x2a4)];}async[_0x30e940(0x30e)](){const _0x3ca085=_0x30e940;if(this[_0x3ca085(0xc2)])throw new Error(_0x3ca085(0x443));await this[_0x3ca085(0x2eb)]();}['pauseCollaboration'](){const _0x1d2099=_0x30e940;return this[_0x1d2099(0x207)]=!0x0,o[_0x1d2099(0xa1)](()=>{const _0xd0ffe8=_0x1d2099;this['_collaborationPaused']=!0x1,this[_0xd0ffe8(0x2c2)]();});}[_0x30e940(0x188)](_0x1f0baf){const _0x5c9690=_0x30e940;this[_0x5c9690(0x2a4)]=_0x1f0baf,this[_0x5c9690(0x445)]['next'](_0x1f0baf);}async['_init'](){const _0x197eba=_0x30e940;var _0x54fb58;return this['_updateState'](await this['_createInitialState']()),this[_0x197eba(0xbb)]&&((_0x54fb58=this[_0x197eba(0xbb)])==null||_0x54fb58[_0x197eba(0x23f)](this['unitID']),this[_0x197eba(0x22c)](o[_0x197eba(0xa1)](this['_singleActiveUnitService'][_0x197eba(0x93)](this[_0x197eba(0x1e6)])[_0x197eba(0x196)](_0x17170f=>{const _0x14890f=_0x197eba;this[_0x14890f(0x198)][_0x14890f(0x293)](_0x14890f(0x474),_0x14890f(0x366),_0x17170f),_0x17170f===Ct['OTHER_CLIENTS_EDITING']?(this[_0x14890f(0x255)][_0x14890f(0x157)]({'content':this[_0x14890f(0x45b)]['t']('collaboration.single-unit.warning'),'type':Q[_0x14890f(0x187)][_0x14890f(0x3d6)]}),this[_0x14890f(0x153)][_0x14890f(0x289)](new p['WorkbookEditablePermission'](this[_0x14890f(0x1e6)])['id'],!0x1)):this[_0x14890f(0x153)]['updatePermissionPoint'](new p[(_0x14890f(0x458))](this[_0x14890f(0x1e6)])['id'],!0x0);})))),this[_0x197eba(0x22c)](o[_0x197eba(0xa1)](this[_0x197eba(0x30b)][_0x197eba(0x3fd)][_0x197eba(0x196)](_0x575b0e=>{const _0x52798f=_0x197eba;_0x575b0e===G[_0x52798f(0x3aa)]?this[_0x52798f(0xf6)]():_0x575b0e===G[_0x52798f(0x32d)]&&this[_0x52798f(0x158)]();}))),this[_0x197eba(0x22c)](o[_0x197eba(0xa1)](this[_0x197eba(0x30b)][_0x197eba(0x199)]['subscribe'](_0x37a5c5=>{const _0x16a37c=_0x197eba;try{switch(_0x37a5c5['eventID']){case _[_0x16a37c(0x284)][_0x16a37c(0xa0)]:{this[_0x16a37c(0x106)](_[_0x16a37c(0x195)](_0x37a5c5[_0x16a37c(0x10a)]));break;}case _[_0x16a37c(0x284)][_0x16a37c(0x30d)]:{this[_0x16a37c(0x347)](_0x37a5c5[_0x16a37c(0x10a)]);break;}case _[_0x16a37c(0x284)][_0x16a37c(0x2c6)]:{this[_0x16a37c(0x241)]();break;}case _[_0x16a37c(0x284)][_0x16a37c(0x124)]:{this[_0x16a37c(0x416)](_0x37a5c5[_0x16a37c(0x10a)]['changesets'][_0x16a37c(0x120)](_0x4bb8c4=>_[_0x16a37c(0x195)](_0x4bb8c4)));break;}case _[_0x16a37c(0x284)]['PERMISSION_REJ']:this[_0x16a37c(0x241)]({'isPermissionRej':!0x0});}}catch(_0x28bbd5){throw console['error']('Error\x20on\x20receiving\x20event',_0x28bbd5),_0x28bbd5;}}))),this[_0x197eba(0x2a4)];}[_0x30e940(0xc3)](){const _0x138174=_0x30e940;this[_0x138174(0x13e)]=!0x1;}[_0x30e940(0x224)](){const _0x4f031a=_0x30e940;if(this[_0x4f031a(0x13e)])throw new Error(_0x4f031a(0x430));this[_0x4f031a(0x13e)]=!0x0;}['_onLocalMutation'](_0x20ccdd){const _0x5866b7=_0x30e940;this[_0x5866b7(0x224)](),this[_0x5866b7(0x188)](this[_0x5866b7(0x2a4)][_0x5866b7(0x223)](_0x20ccdd)),this['_unlockTransition']();}[_0x30e940(0x106)](_0x8849d){const _0x169dbc=_0x30e940;if(!(_0x8849d[_0x169dbc(0x448)]<=this[_0x169dbc(0x2fb)][_0x169dbc(0x17e)](this[_0x169dbc(0x1e6)]))){if(this[_0x169dbc(0x207)]){this[_0x169dbc(0x379)][_0x169dbc(0x220)](_0x8849d);return;}this[_0x169dbc(0x26d)](_0x8849d);}}[_0x30e940(0x2c2)](){const _0x27ae31=_0x30e940;this[_0x27ae31(0x379)][_0x27ae31(0x277)](_0x371363=>this[_0x27ae31(0x26d)](_0x371363)),this[_0x27ae31(0x379)]=[];}[_0x30e940(0x26d)](_0xa0dc84){const _0xcad71e=_0x30e940,_0x5a4ead=this[_0xcad71e(0xe9)][_0xcad71e(0x129)][_0xcad71e(0x2dc)](this[_0xcad71e(0xe9)]['interceptor'][_0xcad71e(0x3af)]()[_0xcad71e(0x212)])(_0xa0dc84[_0xcad71e(0x95)],null)||_0xa0dc84[_0xcad71e(0x95)],_0x4ff644={..._0xa0dc84,'mutations':_0x5a4ead};this['_lockTransition'](),this['_updateState'](this['_state'][_0xcad71e(0x1c6)](_0x4ff644)),this[_0xcad71e(0xc3)]();}[_0x30e940(0x347)](_0x1bb438){const _0x8e6825=_0x30e940;this[_0x8e6825(0x224)](),this[_0x8e6825(0x188)](this[_0x8e6825(0x2a4)]['onRemoteAck'](_0x1bb438)),this[_0x8e6825(0xc3)]();}[_0x30e940(0x241)](_0x54a733){const _0x503f19=_0x30e940;this[_0x503f19(0x224)](),this[_0x503f19(0x188)](this[_0x503f19(0x2a4)][_0x503f19(0x13f)](_0x54a733)),this['_unlockTransition']();}['_onFetchMissResult'](_0x38b7d2){const _0x280533=_0x30e940;if(!(this['_state']instanceof H))throw new TypeError(_0x280533(0x34d));const _0x2c1d85=_0x38b7d2[_0x280533(0x120)](_0x1ff325=>{const _0x4f801e=_0x280533,_0x39b182=this[_0x4f801e(0xe9)][_0x4f801e(0x129)][_0x4f801e(0x2dc)](this['_compressMutationService']['interceptor'][_0x4f801e(0x3af)]()[_0x4f801e(0x212)])(_0x1ff325[_0x4f801e(0x95)],null)||_0x1ff325[_0x4f801e(0x95)];return{..._0x1ff325,'mutations':_0x39b182};});this[_0x280533(0x224)](),this[_0x280533(0x188)](this[_0x280533(0x2a4)][_0x280533(0x44f)](_0x2c1d85)),this[_0x280533(0xc3)]();}['_toggleOffline'](){const _0x2f9f06=_0x30e940;this[_0x2f9f06(0x224)](),this['_updateState'](this[_0x2f9f06(0x2a4)][_0x2f9f06(0x3b2)]()),this[_0x2f9f06(0xc3)]();}[_0x30e940(0xf6)](){const _0x37f02c=_0x30e940;this['_lockTransition'](),this[_0x37f02c(0x188)](this['_state'][_0x37f02c(0x20e)]()),this[_0x37f02c(0xc3)]();}async['_createInitialState'](){return new Promise(_0x157ab6=>{const _0x443dd5=_0x3b20;this[_0x443dd5(0x30b)][_0x443dd5(0x3fd)][_0x443dd5(0x2a9)](E[_0x443dd5(0x1f5)](0x1))[_0x443dd5(0x196)](async _0x2b29e6=>{const _0x44e61a=_0x443dd5;_0x157ab6(await this[_0x44e61a(0x2a2)](_0x2b29e6===G[_0x44e61a(0x3aa)]));});});}[_0x30e940(0xa5)](){const _0x4f75a7=_0x30e940,_0x3aa8bd=this[_0x4f75a7(0x1e6)];return{'onStateChange':(_0x54ca3a,_0x27bd8f)=>{const _0x4755bc=_0x4f75a7;if(_0x54ca3a!==this[_0x4755bc(0x2a4)])throw new Error(_0x4755bc(0x3d0)+_0x54ca3a['status']+_0x4755bc(0xb6)+_0x27bd8f['status']+_0x4755bc(0x92)+this[_0x4755bc(0x2a4)][_0x4755bc(0x1de)]);this[_0x4755bc(0x188)](_0x27bd8f);},'onSendChangeset':_0x552517=>{const _0xb8bf6c=_0x4f75a7,_0x36c136={'eventID':_[_0xb8bf6c(0x284)][_0xb8bf6c(0x19c)],'data':{'unitID':_0x552517[_0xb8bf6c(0x1e6)],'unitType':this['_type'],'changeset':_0x552517,'memberID':this[_0xb8bf6c(0x30b)][_0xb8bf6c(0x266)]()}};this['_session'][_0xb8bf6c(0x3e9)](_0x36c136,this[_0xb8bf6c(0x1e6)]);},'onMissingChangesets':({from:_0x5e8f93,to:_0x27af4d})=>{const _0x265955=_0x4f75a7;this[_0x265955(0x198)][_0x265955(0x293)](_0x265955(0x474),'fetching\x20missing\x20changesets\x20from\x20'+_0x5e8f93+_0x265955(0xd0)+_0x27af4d);const _0x36334f={'eventID':_['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x3aa8bd,'unitType':this[_0x265955(0x3c8)],'from':_0x5e8f93,'to':_0x27af4d}};this['_session'][_0x265955(0x3e9)](_0x36334f,this[_0x265955(0x1e6)]);}};}async[_0x30e940(0x2a2)](_0x1bfd89){const _0x28a728=_0x30e940;var _0x25b7a2,_0x1ce944;const _0xd8469b=await this[_0x28a728(0x377)][_0x28a728(0x341)](this[_0x28a728(0x1e6)]),_0xdb9f9f=(_0x25b7a2=_0xd8469b==null?void 0x0:_0xd8469b[_0x28a728(0x95)])!=null?_0x25b7a2:[],_0x1a9436=(_0x1ce944=_0xd8469b==null?void 0x0:_0xd8469b[_0x28a728(0xf9)])!=null?_0x1ce944:null,_0x261670=this[_0x28a728(0x1e6)];try{this[_0x28a728(0xea)](_0x1a9436,_0xdb9f9f);}catch(_0x38627b){this[_0x28a728(0x198)][_0x28a728(0xf0)](_0x38627b);}const _0x54e36b=this['_createHandler']();if(_0x1bfd89){const _0x59e747=Tt(this['_injector'],_0x261670,this[_0x28a728(0x3c8)],_0x1a9436,_0xdb9f9f,_0x54e36b);return _0x59e747 instanceof $?_0x59e747[_0x28a728(0x8f)]():(_0x59e747 instanceof x||_0x59e747 instanceof k)&&_0x59e747[_0x28a728(0xdd)](),_0x59e747;}return this[_0x28a728(0x137)][_0x28a728(0x1c0)](V,_0x261670,this[_0x28a728(0x3c8)],_0x1a9436,_0xdb9f9f,_0x54e36b);}[_0x30e940(0xea)](_0x3d87f5,_0x5294d8){const _0x32333f=_0x30e940;var _0x3a4c6e,_0x572c13;const _0x46748d=this[_0x32333f(0xe9)][_0x32333f(0x129)]['fetchThroughInterceptors'](this[_0x32333f(0xe9)]['interceptor'][_0x32333f(0x3af)]()[_0x32333f(0x212)]);(_0x3a4c6e=_0x46748d((_0x3d87f5==null?void 0x0:_0x3d87f5[_0x32333f(0x95)])||[],null))==null||_0x3a4c6e[_0x32333f(0x277)](_0x368d19=>this[_0x32333f(0x176)][_0x32333f(0x12d)](_0x368d19['id'],_0x368d19['params'])),(_0x572c13=_0x46748d(_0x5294d8||[],null))==null||_0x572c13[_0x32333f(0x277)](_0x5ed0e1=>this[_0x32333f(0x176)][_0x32333f(0x12d)](_0x5ed0e1['id'],_0x5ed0e1[_0x32333f(0x20b)]));}};fe=Ee([I(0x3,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),I(0x4,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),I(0x5,o[_0x30e940(0xdf)](_[_0x30e940(0x362)])),I(0x6,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)])),I(0x7,o['Inject'](_[_0x30e940(0x1db)])),I(0x8,o[_0x30e940(0x1e7)]),I(0x9,o[_0x30e940(0x1c8)]),I(0xa,L[_0x30e940(0x3d3)]),I(0xb,o[_0x30e940(0x3b7)]),I(0xc,o[_0x30e940(0x96)](pe))],fe);let Ne=class extends fe{constructor(_0xfda237,_0x47fcb6,_0x355d0f,_0x230c07,_0x23bcf3,_0x75e652,_0x58ef48,_0x5f1e3b,_0x324083,_0x3cba07,_0x24c3a8,_0x236446,_0xfc4a69,_0x3e3394,_0x5a121f,_0x188cf9,_0x5f38a3){const _0x23b17b=_0x30e940;super(_0xfda237,_0x47fcb6,_0x355d0f,_0x230c07,_0x23bcf3,_0x75e652,_0x58ef48,_0x5f1e3b,_0xfc4a69,_0x3e3394,_0x5a121f,_0x188cf9,_0x5f38a3),this[_0x23b17b(0x1e6)]=_0xfda237,this[_0x23b17b(0x312)]=_0x47fcb6,this[_0x23b17b(0x461)]=_0x355d0f,this[_0x23b17b(0x13a)]=_0x324083,this[_0x23b17b(0x17d)]=_0x3cba07,this[_0x23b17b(0x1d7)]=_0x24c3a8,this['_docSyncEditingCollabCursorService']=_0x236446;}[_0x30e940(0xa5)](){const _0x4ece8e=_0x30e940,_0x390f79=super[_0x4ece8e(0xa5)]();return _0x390f79[_0x4ece8e(0x168)]=_0x5c46c2=>this[_0x4ece8e(0x17d)][_0x4ece8e(0x1f3)](_0x5c46c2),_0x390f79[_0x4ece8e(0x29a)]=_0x38d6a7=>this['_docTransformSelectionsService'][_0x4ece8e(0x156)](_0x38d6a7),_0x390f79[_0x4ece8e(0x11c)]=_0x3bae6b=>this[_0x4ece8e(0x3bc)][_0x4ece8e(0x274)](_0x3bae6b),_0x390f79[_0x4ece8e(0x8c)]=_0x32444d=>this[_0x4ece8e(0x17d)][_0x4ece8e(0x298)](_0x32444d),_0x390f79;}async[_0x30e940(0x2eb)](){const _0xb4f0c1=_0x30e940,_0x2f86ab=await super[_0xb4f0c1(0x2eb)]();return this[_0xb4f0c1(0x22c)](this[_0xb4f0c1(0x176)][_0xb4f0c1(0xd2)]((_0x1415d6,_0x395762)=>{const _0x2b5e1a=_0xb4f0c1;if(_0x1415d6[_0x2b5e1a(0x312)]!==o[_0x2b5e1a(0x99)][_0x2b5e1a(0x438)]||_0x395762!=null&&_0x395762[_0x2b5e1a(0x211)]||_0x395762!=null&&_0x395762[_0x2b5e1a(0x1dc)])return;const _0x33fae2=_0x1415d6[_0x2b5e1a(0x20b)];if((_0x33fae2==null?void 0x0:_0x33fae2['unitId'])!==this['unitID'])return;let _0x4fa127=_0x1415d6;if(_0x4fa127['id']===P[_0x2b5e1a(0x2ad)]['id']){const _0x27699d=_0x4fa127[_0x2b5e1a(0x20b)];_0x4fa127={'id':P[_0x2b5e1a(0x2ad)]['id'],'type':o[_0x2b5e1a(0x99)]['MUTATION'],'params':{'unitId':_0x27699d[_0x2b5e1a(0x424)],'actions':_0x27699d['actions'],'textRanges':null}};}const _0x5ec491=this[_0x2b5e1a(0xe9)][_0x2b5e1a(0x129)][_0x2b5e1a(0x2dc)](this[_0x2b5e1a(0xe9)][_0x2b5e1a(0x129)][_0x2b5e1a(0x3af)]()[_0x2b5e1a(0x31b)])([_0x4fa127],null)||[_0x4fa127];this['_onLocalMutation'](_0x5ec491[0x0]);})),_0x2f86ab;}};Ne=Ee([I(0x3,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),I(0x4,o['Inject'](exports[_0x30e940(0x227)])),I(0x5,o[_0x30e940(0xdf)](_[_0x30e940(0x362)])),I(0x6,o[_0x30e940(0xdf)](o['LocaleService'])),I(0x7,o['Inject'](_[_0x30e940(0x1db)])),I(0x8,o[_0x30e940(0xdf)](P[_0x30e940(0x302)])),I(0x9,o[_0x30e940(0xdf)](ve)),I(0xa,o['Inject'](me)),I(0xb,o[_0x30e940(0xdf)](We)),I(0xc,o[_0x30e940(0x1e7)]),I(0xd,o['ICommandService']),I(0xe,L['IMessageService']),I(0xf,o[_0x30e940(0x3b7)]),I(0x10,o['Optional'](pe))],Ne),exports['SheetCollaborationEntity']=class extends fe{constructor(_0x4f4c6e,_0x9bdab2,_0x25ad1c,_0x50ade7,_0x4c1846,_0x16f1a9,_0xc03157,_0x5bd14f,_0x564565,_0x1ee0c6,_0x8a5bae,_0x4d4473,_0x26ad80,_0x4f3a0a){const _0x51ec72=_0x30e940;super(_0x4f4c6e,_0x9bdab2,_0x25ad1c,_0x50ade7,_0x4c1846,_0x16f1a9,_0xc03157,_0x5bd14f,_0x1ee0c6,_0x8a5bae,_0x4d4473,_0x26ad80,_0x4f3a0a),this['unitID']=_0x4f4c6e,this['type']=_0x9bdab2,this[_0x51ec72(0x461)]=_0x25ad1c,this[_0x51ec72(0x1b3)]=_0x564565;}['_createHandler'](){const _0x1297b8=_0x30e940,_0x4239f0=super[_0x1297b8(0xa5)]();return _0x4239f0[_0x1297b8(0x29a)]=_0x17edda=>this['_sheetTransformSelectionsService'][_0x1297b8(0x156)](_0x17edda),_0x4239f0;}async['_init'](){const _0x577219=_0x30e940,_0x3e30bb=await super[_0x577219(0x2eb)]();return this['disposeWithMe'](this[_0x577219(0x176)]['onCommandExecuted']((_0x2fe9d2,_0xecad20)=>{const _0x1a5982=_0x577219;if(_0x2fe9d2[_0x1a5982(0x312)]!==o[_0x1a5982(0x99)][_0x1a5982(0x438)]||_0xecad20!=null&&_0xecad20[_0x1a5982(0x211)]||_0xecad20!=null&&_0xecad20[_0x1a5982(0x1dc)])return;const _0x4ea78d=_0x2fe9d2['params'];if((_0x4ea78d==null?void 0x0:_0x4ea78d[_0x1a5982(0x424)])!==this['unitID'])return;const _0x30cbea=_0x2fe9d2,_0x6cd0cb=this['_compressMutationService'][_0x1a5982(0x129)]['fetchThroughInterceptors'](this[_0x1a5982(0xe9)][_0x1a5982(0x129)][_0x1a5982(0x3af)]()[_0x1a5982(0x31b)])([_0x30cbea],null)||[_0x30cbea];this[_0x1a5982(0x2b4)](_0x6cd0cb[0x0]);})),_0x3e30bb;}},exports[_0x30e940(0x403)]=Ee([I(0x3,o['Inject'](o[_0x30e940(0xc4)])),I(0x4,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),I(0x5,o[_0x30e940(0xdf)](_[_0x30e940(0x362)])),I(0x6,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)])),I(0x7,o['Inject'](_[_0x30e940(0x1db)])),I(0x8,o[_0x30e940(0xdf)](ge)),I(0x9,o[_0x30e940(0x1e7)]),I(0xa,o[_0x30e940(0x1c8)]),I(0xb,L[_0x30e940(0x3d3)]),I(0xc,o[_0x30e940(0x3b7)]),I(0xd,o[_0x30e940(0x96)](pe))],exports[_0x30e940(0x403)]);const st=[_0x30e940(0xb9),'jiqing500','verdancy600',_0x30e940(0x2dd),_0x30e940(0x24a),_0x30e940(0x26b)];function _0x3b20(_0xcd3ab1,_0x2466f9){const _0x59d87c=_0x59d8();return _0x3b20=function(_0x3b2091,_0x36dc77){_0x3b2091=_0x3b2091-0x86;let _0x1dadd8=_0x59d87c[_0x3b2091];return _0x1dadd8;},_0x3b20(_0xcd3ab1,_0x2466f9);}class Fe extends o[_0x30e940(0x3c3)]{constructor(){const _0x5eb775=_0x30e940;super(...arguments),u(this,'_assignedColors',new Map()),u(this,_0x5eb775(0x3e7),0x0);}[_0x30e940(0xd3)](_0x17fbc8){const _0xae9622=_0x30e940;if(this[_0xae9622(0x455)]['has'](_0x17fbc8))return this[_0xae9622(0x455)][_0xae9622(0x1f0)](_0x17fbc8);const _0x314f98=st[this[_0xae9622(0x3e7)]];return this['_colorIndex']=(this[_0xae9622(0x3e7)]+0x1)%st[_0xae9622(0x3b8)],this[_0xae9622(0x455)][_0xae9622(0x346)](_0x17fbc8,_0x314f98),_0x314f98;}}var Ms=Object[_0x30e940(0x36c)],ys=Object[_0x30e940(0x1a2)],Ns=(_0x5ef2aa,_0x21eb5d,_0x58320f,_0x5357af)=>{for(var _0x5f5214=_0x5357af>0x1?void 0x0:_0x5357af?ys(_0x21eb5d,_0x58320f):_0x21eb5d,_0xef3dd3=_0x5ef2aa['length']-0x1,_0x3a5c11;_0xef3dd3>=0x0;_0xef3dd3--)(_0x3a5c11=_0x5ef2aa[_0xef3dd3])&&(_0x5f5214=(_0x5357af?_0x3a5c11(_0x21eb5d,_0x58320f,_0x5f5214):_0x3a5c11(_0x5f5214))||_0x5f5214);return _0x5357af&&_0x5f5214&&Ms(_0x21eb5d,_0x58320f,_0x5f5214),_0x5f5214;},q=(_0x336e8c,_0xaf8ff8)=>(_0x381bcc,_0x53fcd7)=>_0xaf8ff8(_0x381bcc,_0x53fcd7,_0x336e8c);const Ls=0x12c,As=0x64,js=()=>{let _0x5d774f=[],_0x2b4380=!0x1;return _0x5ef214=>{const _0x507a88=_0x3b20;_0x5d774f[_0x507a88(0x220)](_0x5ef214),_0x2b4380||(_0x2b4380=!0x0,setTimeout(()=>{const _0x5b8eb1=_0x507a88;_0x5d774f[_0x5b8eb1(0x277)](_0x4d348c=>_0x4d348c()),_0x5d774f=[],_0x2b4380=!0x1;}));};};let Le=class extends o[_0x30e940(0x1cf)]{constructor(_0x56d214,_0x528102,_0x2c8cee,_0x296538,_0x133b17,_0x33856d,_0x4262e2,_0x13ff6e){const _0x3a2e1e=_0x30e940;super(),u(this,_0x3a2e1e(0x42d),!0x1),u(this,_0x3a2e1e(0x2eb),!0x1),u(this,'_cursorInfo$',new v[(_0x3a2e1e(0x2d8))](new Map())),u(this,_0x3a2e1e(0x3a6),this[_0x3a2e1e(0xfd)][_0x3a2e1e(0x16a)]()),u(this,_0x3a2e1e(0x3ae),new v[(_0x3a2e1e(0x2d8))]([])),u(this,_0x3a2e1e(0x2b9),this[_0x3a2e1e(0x3ae)][_0x3a2e1e(0x2a9)](v[_0x3a2e1e(0xaa)](Ls))),u(this,_0x3a2e1e(0x2d9),xe((_0x3e0ef2,_0x12ed99)=>{const _0x5859cb=_0x3a2e1e,_0x26ae5e={'eventID':_[_0x5859cb(0x284)][_0x5859cb(0x89)],'data':{'unitID':this[_0x5859cb(0x1e6)],'memberID':this['_session'][_0x5859cb(0x266)](),'selection':Ke[_0x5859cb(0x43c)](_0x3e0ef2,_0x12ed99[_0x5859cb(0x3a9)])}};this[_0x5859cb(0x30b)][_0x5859cb(0x3e9)](_0x26ae5e,this[_0x5859cb(0x1e6)]);},As)),(this['unitID']=_0x56d214,this[_0x3a2e1e(0x30b)]=_0x528102,this[_0x3a2e1e(0x137)]=_0x2c8cee,this[_0x3a2e1e(0x3dc)]=_0x296538,this['_memberService']=_0x133b17,this[_0x3a2e1e(0x43f)]=_0x33856d,this[_0x3a2e1e(0x176)]=_0x4262e2,this[_0x3a2e1e(0x1da)]=_0x13ff6e);}get[_0x30e940(0x39a)](){const _0x2687c5=_0x30e940;return this[_0x2687c5(0xfd)][_0x2687c5(0xca)]();}get[_0x30e940(0x1c2)](){const _0x246a09=_0x30e940;return this['_roomMembers$'][_0x246a09(0xca)]();}['dispose'](){const _0x3c9d7e=_0x30e940;super[_0x3c9d7e(0xc6)](),this['_cursorInfo$']['next'](new Map()),this[_0x3c9d7e(0xfd)][_0x3c9d7e(0xb0)](),this[_0x3c9d7e(0x3ae)][_0x3c9d7e(0x46e)]([]),this[_0x3c9d7e(0x3ae)]['complete']();}['init'](){const _0x29d373=_0x30e940;this['_init']||(this['_init']=!0x0,this[_0x29d373(0x30b)][_0x29d373(0x3fd)]['pipe'](v['takeUntil'](this['dispose$']))[_0x29d373(0x196)](_0x204092=>{const _0xc6fe3e=_0x29d373;_0x204092===G[_0xc6fe3e(0x3aa)]?this[_0xc6fe3e(0xf6)]():this[_0xc6fe3e(0x158)]();}),this['_session'][_0x29d373(0x199)]['pipe'](v[_0x29d373(0x3a8)](this['dispose$']))[_0x29d373(0x196)](_0x4c50b4=>{const _0x27fac7=_0x29d373,_0x5b3e6b=_0x4c50b4['eventID'];_0x5b3e6b===_[_0x27fac7(0x284)][_0x27fac7(0x89)]&&this[_0x27fac7(0xf1)](_0x4c50b4),_0x5b3e6b===_[_0x27fac7(0x284)][_0x27fac7(0x1c4)]&&this[_0x27fac7(0x262)](_0x4c50b4);}),this['_onRefRangeChange'](),this[_0x29d373(0x22c)](this[_0x29d373(0x176)][_0x29d373(0xd2)](_0x340017=>{const _0x1e56d9=_0x29d373;if(this[_0x1e56d9(0x42d)]&&_0x340017['id']===p[_0x1e56d9(0x1e4)]['id']&&_0x340017['params'][_0x1e56d9(0x424)]===this[_0x1e56d9(0x1e6)]){const _0x3819f6=_0x340017[_0x1e56d9(0x20b)];this[_0x1e56d9(0x2d9)](_0x3819f6['subUnitId'],_0x3819f6['selections'][0x0]);}})));}[_0x30e940(0xf1)](_0x1fa5a5){const _0x1dc8a3=_0x30e940;var _0x166f9f,_0x4d845e;const {memberID:_0x43fd4f,selection:_0x15dc45}=_0x1fa5a5[_0x1dc8a3(0x10a)],{sheetName:_0x145171,range:_0x396e99}=Ke[_0x1dc8a3(0x31d)](_0x15dc45),_0x5de6fc={'name':(_0x4d845e=(_0x166f9f=this['_memberService'][_0x1dc8a3(0x275)](this[_0x1dc8a3(0x1e6)],_0x43fd4f))==null?void 0x0:_0x166f9f[_0x1dc8a3(0x3a7)])!=null?_0x4d845e:_0x1dc8a3(0x325),'range':this['_getMergeRange'](_0x145171,_0x396e99),'sheetID':_0x145171,'color':this[_0x1dc8a3(0x3dc)]['assignAColorForMemberID'](_0x43fd4f),'selection':_0x15dc45},_0x56bc88=this[_0x1dc8a3(0x39a)];_0x56bc88[_0x1dc8a3(0x346)](_0x43fd4f,_0x5de6fc),this['_cursorInfo$'][_0x1dc8a3(0x46e)](_0x56bc88);}[_0x30e940(0x262)](_0x38ad03){const _0x6e0898=_0x30e940,{memberID:_0x11c949}=_0x38ad03[_0x6e0898(0x10a)],_0x46c471=this[_0x6e0898(0x39a)];_0x46c471[_0x6e0898(0x244)](_0x11c949),this['_cursorInfo$'][_0x6e0898(0x46e)](_0x46c471);}[_0x30e940(0x143)](_0x27a523,_0x175a59){const _0x496998=_0x30e940;var _0x3abd2e,_0x45d5a8;const _0x157cc6=(_0x45d5a8=(_0x3abd2e=this[_0x496998(0x43f)][_0x496998(0x29e)](this[_0x496998(0x1e6)]))==null?void 0x0:_0x3abd2e['getSheetBySheetId'](_0x27a523))==null?void 0x0:_0x45d5a8['getMergeData']();return(_0x157cc6==null?void 0x0:_0x157cc6[_0x496998(0x32e)](_0x59c9d9=>o[_0x496998(0x3d2)][_0x496998(0x2a8)](_0x59c9d9,_0x175a59)))||_0x175a59;}[_0x30e940(0x23c)](){const _0x5e39b8=_0x30e940,_0x1ab8eb=new o[(_0x5e39b8(0x16f))](),_0x4a303e=js(),_0x6a600e=()=>{const _0x11428d=_0x5e39b8;_0x1ab8eb[_0x11428d(0xc6)]();const _0x1809c3=(_0x361ebb,_0x5a6aee,_0x1f74d3,_0x2c431c)=>{const _0x525963=_0x11428d;let _0x3fa50b=[];switch(_0x361ebb['id']){case p[_0x525963(0x1ad)][_0x525963(0x398)]:{_0x3fa50b=p[_0x525963(0x381)](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x3c2)]:{_0x3fa50b=p[_0x525963(0xce)](_0x361ebb,_0x2c431c);break;}case p['EffectRefRangId'][_0x525963(0x2bd)]:{_0x3fa50b=p['handleInsertCol'](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x1df)]:{_0x3fa50b=p[_0x525963(0x407)](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)]['InsertRangeMoveRightCommandId']:{_0x3fa50b=p['handleInsertRangeMoveRight'](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x1ed)]:{_0x3fa50b=p['handleInsertRow'](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x1e3)]:{_0x3fa50b=p[_0x525963(0xac)](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x396)]:{_0x3fa50b=p[_0x525963(0x2f7)](_0x361ebb,_0x2c431c);break;}case p['EffectRefRangId'][_0x525963(0x331)]:{_0x3fa50b=p[_0x525963(0x419)](_0x361ebb,_0x2c431c);break;}}const _0x3c1f32=p[_0x525963(0x355)](_0x3fa50b,_0x2c431c),_0x2758d1=this[_0x525963(0x39a)][_0x525963(0x1f0)](_0x5a6aee);if(_0x2758d1&&_0x3c1f32){const _0x28d485={..._0x2758d1,'range':_0x3c1f32};this[_0x525963(0x39a)][_0x525963(0x346)](_0x5a6aee,_0x28d485),_0x4a303e(()=>{const _0x50deae=_0x525963,_0x42c69a=this[_0x50deae(0x1da)][_0x50deae(0x11b)](_0x3c1f32,_0x3b3c84=>(_0x42c69a['dispose'](),_0x1809c3(_0x3b3c84,_0x5a6aee,_0x1f74d3,_0x3c1f32)));_0x1ab8eb[_0x50deae(0x418)](_0x42c69a);});}return{'redos':[],'undos':[]};};this[_0x11428d(0x39a)][_0x11428d(0x277)]((_0x1c20f7,_0xd41eab)=>{const _0x1f9c0f=_0x11428d,{range:_0x51974d,sheetID:_0x38963a}=_0x1c20f7,_0x57b9eb=this[_0x1f9c0f(0x1da)][_0x1f9c0f(0x11b)](_0x51974d,_0x2cfd02=>(_0x57b9eb[_0x1f9c0f(0xc6)](),_0x1809c3(_0x2cfd02,_0xd41eab,_0x38963a,_0x51974d)));_0x1ab8eb[_0x1f9c0f(0x418)](_0x57b9eb);});};this[_0x5e39b8(0x22c)](o[_0x5e39b8(0xa1)](this[_0x5e39b8(0xfd)]['subscribe'](()=>{_0x6a600e();})));}['_toggleOnline'](){const _0x20cc0e=_0x30e940;var _0x1aa511,_0x294de2;if(this[_0x20cc0e(0x42d)]=!0x0,((_0x1aa511=this['_univerInstanceService'][_0x20cc0e(0x469)]())==null?void 0x0:_0x1aa511[_0x20cc0e(0x280)]())!==this[_0x20cc0e(0x1e6)])return;const _0x2fbe1a=(_0x294de2=this[_0x20cc0e(0x137)][_0x20cc0e(0x1f0)](p[_0x20cc0e(0x2ed)])[_0x20cc0e(0x2a7)]())==null?void 0x0:_0x294de2[0x0],_0xad5206=this[_0x20cc0e(0x43f)][_0x20cc0e(0x22a)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x20cc0e(0x18f)]();_0x2fbe1a&&_0xad5206&&this['_updateLocalCursor'](_0xad5206[_0x20cc0e(0x28d)](),_0x2fbe1a);}[_0x30e940(0x158)](){this['_online']=!0x1;}};Le=Ns([q(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),q(0x3,o[_0x30e940(0xdf)](Fe)),q(0x4,o[_0x30e940(0xdf)](Y)),q(0x5,o[_0x30e940(0x233)]),q(0x6,o['ICommandService']),q(0x7,o[_0x30e940(0xdf)](p[_0x30e940(0xb1)]))],Le);var $s=Object['defineProperty'],xs=Object[_0x30e940(0x1a2)],Hs=(_0x792beb,_0x5ebafe,_0x40c732,_0x2abfe3)=>{const _0x1e8f21=_0x30e940;for(var _0x19bd6c=_0x2abfe3>0x1?void 0x0:_0x2abfe3?xs(_0x5ebafe,_0x40c732):_0x5ebafe,_0x37375a=_0x792beb[_0x1e8f21(0x3b8)]-0x1,_0x239543;_0x37375a>=0x0;_0x37375a--)(_0x239543=_0x792beb[_0x37375a])&&(_0x19bd6c=(_0x2abfe3?_0x239543(_0x5ebafe,_0x40c732,_0x19bd6c):_0x239543(_0x19bd6c))||_0x19bd6c);return _0x2abfe3&&_0x19bd6c&&$s(_0x5ebafe,_0x40c732,_0x19bd6c),_0x19bd6c;},F=(_0x369b82,_0x177188)=>(_0x4c2739,_0x2e9754)=>_0x177188(_0x4c2739,_0x2e9754,_0x369b82);const ks=0x12c,Bs=0x64;let Ae=class extends o[_0x30e940(0x1cf)]{constructor(_0x56d93f,_0x24e408,_0x12b06d,_0x17a778,_0x5b76e6,_0x1fee4e,_0x554d63,_0x456e81,_0x287d92){const _0x4e898a=_0x30e940;super(),u(this,_0x4e898a(0x42d),!0x1),u(this,_0x4e898a(0x2eb),!0x1),u(this,_0x4e898a(0xfd),new v[(_0x4e898a(0x2d8))](new Map())),u(this,_0x4e898a(0x3a6),this[_0x4e898a(0xfd)][_0x4e898a(0x16a)]()),u(this,_0x4e898a(0x3ae),new v[(_0x4e898a(0x2d8))]([])),u(this,'roomMembers$',this[_0x4e898a(0x3ae)][_0x4e898a(0x2a9)](v[_0x4e898a(0xaa)](ks))),u(this,_0x4e898a(0x2d9),xe(_0x57f0a6=>{const _0x189852=_0x4e898a,_0x5bc359={'eventID':_['CollaborationEvent'][_0x189852(0x89)],'data':{'unitID':this[_0x189852(0x1e6)],'memberID':this[_0x189852(0x30b)][_0x189852(0x266)](),'selection':bt(_0x57f0a6)}};this[_0x189852(0x30b)][_0x189852(0x3e9)](_0x5bc359,this['unitID']);},Bs)),(this[_0x4e898a(0x1e6)]=_0x56d93f,this['_session']=_0x24e408,this[_0x4e898a(0x137)]=_0x12b06d,this[_0x4e898a(0x3dc)]=_0x17a778,this[_0x4e898a(0x460)]=_0x5b76e6,this[_0x4e898a(0x356)]=_0x1fee4e,this[_0x4e898a(0x3c0)]=_0x554d63,this['_univerInstanceService']=_0x456e81,this[_0x4e898a(0x176)]=_0x287d92);}get[_0x30e940(0x39a)](){const _0x254252=_0x30e940;return this[_0x254252(0xfd)][_0x254252(0xca)]();}get['roomMembers'](){const _0x17e0be=_0x30e940;return this[_0x17e0be(0x3ae)][_0x17e0be(0xca)]();}[_0x30e940(0xc6)](){const _0x55a2d3=_0x30e940;super[_0x55a2d3(0xc6)](),this[_0x55a2d3(0xfd)]['next'](new Map()),this[_0x55a2d3(0xfd)][_0x55a2d3(0xb0)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x55a2d3(0xb0)]();}[_0x30e940(0x30e)](){const _0x3628d8=_0x30e940;this[_0x3628d8(0x2eb)]||(this['_init']=!0x0,this[_0x3628d8(0x30b)][_0x3628d8(0x3fd)][_0x3628d8(0x2a9)](v[_0x3628d8(0x3a8)](this['dispose$']))[_0x3628d8(0x196)](_0x469aa4=>{const _0x19b38c=_0x3628d8;_0x469aa4===G[_0x19b38c(0x3aa)]?this[_0x19b38c(0xf6)]():this['_toggleOffline']();}),this[_0x3628d8(0x30b)][_0x3628d8(0x199)][_0x3628d8(0x2a9)](v['takeUntil'](this['dispose$']))[_0x3628d8(0x196)](_0x172121=>{const _0x1350d3=_0x3628d8,_0x56e857=_0x172121[_0x1350d3(0x15d)];_0x56e857===_[_0x1350d3(0x284)][_0x1350d3(0x89)]&&this[_0x1350d3(0xf1)](_0x172121),_0x56e857===_[_0x1350d3(0x284)]['USERS_LEAVE']&&this[_0x1350d3(0x262)](_0x172121);}),this[_0x3628d8(0x22c)](this['_commandService'][_0x3628d8(0xd2)](_0x1e8f80=>{const _0x3057ed=_0x3628d8,_0x42f892=_0x1e8f80[_0x3057ed(0x20b)];_0x42f892!=null&&this['_online']&&_0x1e8f80['id']===P['SetTextSelectionsOperation']['id']&&_0x42f892['unitId']===this[_0x3057ed(0x1e6)]&&_0x42f892[_0x3057ed(0x40c)]===!0x1&&this[_0x3057ed(0x2d9)](_0x42f892[_0x3057ed(0x317)]);})),this[_0x3628d8(0x356)]['collabCursorState$'][_0x3628d8(0x2a9)](v[_0x3628d8(0x3a8)](this[_0x3628d8(0x2b1)]))[_0x3628d8(0x196)](_0x2d3449=>{const _0x17e602=_0x3628d8;if((_0x2d3449==null?void 0x0:_0x2d3449[_0x17e602(0x1e6)])!==this[_0x17e602(0x1e6)])return;const _0x55c63e={'eventID':_[_0x17e602(0x284)][_0x17e602(0x89)],'data':_0x2d3449};this['_onCursorUpdate'](_0x55c63e);}),this[_0x3628d8(0x22c)](this['_commandService'][_0x3628d8(0xd2)](_0x5d22c7=>{const _0x14b674=_0x3628d8;if(_0x5d22c7[_0x14b674(0x20b)]==null)return;const _0x5884c8=_0x5d22c7['params'];if(_0x5d22c7['id']!==P[_0x14b674(0x2ad)]['id']||_0x5884c8[_0x14b674(0x424)]!==this[_0x14b674(0x1e6)])return;const _0x385a4b={'id':_0x14b674(0x1c9),'params':_0x5884c8},_0x206d0a=this[_0x14b674(0x39a)];for(const [_0x42d4eb,_0x51129d]of _0x206d0a){const _0x468d60={'id':_0x14b674(0x1c9),'params':{'unitId':this[_0x14b674(0x1e6)],'actions':null,'textRanges':_0x51129d[_0x14b674(0x317)]}},_0x2fea6=this[_0x14b674(0x3c0)][_0x14b674(0x1bf)](_0x385a4b,_0x468d60,!0x1);if(_[_0x14b674(0x1fd)](_0x2fea6))throw _0x2fea6[_0x14b674(0xf0)];_0x206d0a['set'](_0x42d4eb,{..._0x51129d,'ranges':_0x2fea6[_0x14b674(0x163)][_0x14b674(0x20b)][_0x14b674(0x146)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x206d0a);});})));}[_0x30e940(0xf1)](_0x3ea244){const _0x374a42=_0x30e940;var _0x4df903,_0xf76d94;const {memberID:_0x5eb251,selection:_0x21d0cb}=_0x3ea244[_0x374a42(0x10a)],_0x490140=Is(_0x21d0cb),_0x1dcb63=(_0xf76d94=(_0x4df903=this['_memberService']['getMember'](this[_0x374a42(0x1e6)],_0x5eb251))==null?void 0x0:_0x4df903[_0x374a42(0x3a7)])!=null?_0xf76d94:_0x374a42(0x325),_0x2fd049={'color':this['_colorAssignService'][_0x374a42(0xd3)](_0x5eb251),'name':_0x1dcb63,'ranges':_0x490140},_0xafe988=this[_0x374a42(0x39a)];_0xafe988[_0x374a42(0x346)](_0x5eb251,_0x2fd049),this[_0x374a42(0xfd)][_0x374a42(0x46e)](_0xafe988);}[_0x30e940(0x262)](_0x4fe954){const _0x1444d4=_0x30e940,{memberID:_0xc2fae3}=_0x4fe954[_0x1444d4(0x10a)],_0x1e5a27=this[_0x1444d4(0x39a)];_0x1e5a27['delete'](_0xc2fae3),this[_0x1444d4(0xfd)][_0x1444d4(0x46e)](_0x1e5a27);}[_0x30e940(0xf6)](){const _0x2976e2=_0x30e940;var _0xe2f44e;if(this['_online']=!0x0,((_0xe2f44e=this['_univerInstanceService'][_0x2976e2(0x469)]())==null?void 0x0:_0xe2f44e[_0x2976e2(0x280)]())!==this[_0x2976e2(0x1e6)])return;const _0x90aa37=this['_injector'][_0x2976e2(0x1f0)](P[_0x2976e2(0x215)])[_0x2976e2(0x19b)](),_0x5b77d6=_0x90aa37==null?void 0x0:_0x90aa37[_0x2976e2(0x120)](P[_0x2976e2(0x13c)]);Array[_0x2976e2(0x281)](_0x5b77d6)&&_0x5b77d6[_0x2976e2(0x3b8)]>0x0&&this[_0x2976e2(0x2d9)](_0x5b77d6);}[_0x30e940(0x158)](){const _0xc63cb2=_0x30e940;this[_0xc63cb2(0x42d)]=!0x1;}};Ae=Hs([F(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),F(0x3,o[_0x30e940(0xdf)](Fe)),F(0x4,o[_0x30e940(0xdf)](Y)),F(0x5,o[_0x30e940(0xdf)](We)),F(0x6,_[_0x30e940(0x2ab)]),F(0x7,o[_0x30e940(0x233)]),F(0x8,o[_0x30e940(0x1c8)])],Ae);var Vs=Object[_0x30e940(0x36c)],Ws=Object[_0x30e940(0x1a2)],Fs=(_0x25663d,_0x1ffdaa,_0x578105,_0x46ecb8)=>{const _0x2a941d=_0x30e940;for(var _0x3de539=_0x46ecb8>0x1?void 0x0:_0x46ecb8?Ws(_0x1ffdaa,_0x578105):_0x1ffdaa,_0x405934=_0x25663d[_0x2a941d(0x3b8)]-0x1,_0x191241;_0x405934>=0x0;_0x405934--)(_0x191241=_0x25663d[_0x405934])&&(_0x3de539=(_0x46ecb8?_0x191241(_0x1ffdaa,_0x578105,_0x3de539):_0x191241(_0x3de539))||_0x3de539);return _0x46ecb8&&_0x3de539&&Vs(_0x1ffdaa,_0x578105,_0x3de539),_0x3de539;},Re=(_0x3deabc,_0xc2b4ce)=>(_0x35d6be,_0x44a767)=>_0xc2b4ce(_0x35d6be,_0x44a767,_0x3deabc);let Z=class extends o[_0x30e940(0x1cf)]{constructor(_0x1f6152,_0x332ad9,_0x1c52ab){const _0x257f01=_0x30e940;super(),u(this,'_entities',new Map()),u(this,_0x257f01(0x230),new v['Subject']()),(this[_0x257f01(0x43f)]=_0x1f6152,this[_0x257f01(0x137)]=_0x332ad9,this[_0x257f01(0x20d)]=_0x1c52ab,this[_0x257f01(0x2eb)]());}[_0x30e940(0xc6)](){const _0x1f07f1=_0x30e940;super['dispose'](),this['_entityInit$']['complete'](),this[_0x1f07f1(0x200)][_0x1f07f1(0x277)](_0x314e2d=>_0x314e2d['dispose']());}[_0x30e940(0x135)](_0xa4a087){const _0x4e93f9=_0x30e940;return this['_entities'][_0x4e93f9(0x45c)](_0xa4a087)?this['_entities'][_0x4e93f9(0x1f0)](_0xa4a087)[_0x4e93f9(0x3a6)]:this[_0x4e93f9(0x230)]['pipe'](v[_0x4e93f9(0x20a)](_0x50d507=>_0x50d507[_0x4e93f9(0x1e6)]===_0xa4a087),v[_0x4e93f9(0xa7)](_0x2da2ff=>_0x2da2ff['cursorInfo$']));}[_0x30e940(0x2eb)](){const _0x1839f8=_0x30e940;this[_0x1839f8(0x43f)][_0x1839f8(0xc5)](o[_0x1839f8(0x37c)][_0x1839f8(0x390)])[_0x1839f8(0x2a9)](v['takeUntil'](this[_0x1839f8(0x2b1)]))[_0x1839f8(0x196)](async _0x3420a9=>{const _0x33db02=_0x1839f8,_0x5ed01e=_0x3420a9['getUnitId'](),_0x493db9=await this[_0x33db02(0x353)](_0x5ed01e);this[_0x33db02(0x230)][_0x33db02(0x46e)](_0x493db9),this[_0x33db02(0x200)][_0x33db02(0x346)](_0x5ed01e,_0x493db9);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x1839f8(0x37c)][_0x1839f8(0x1f4)])[_0x1839f8(0x2a9)](v['takeUntil'](this[_0x1839f8(0x2b1)]))['pipe'](v['filter'](_0x479a6d=>!_0x479a6d[_0x1839f8(0x280)]()[_0x1839f8(0xae)]('__')))[_0x1839f8(0x196)](async _0x46ffed=>{const _0x2d17bf=_0x1839f8,_0x362873=_0x46ffed['getUnitId'](),_0xbff54c=await this[_0x2d17bf(0x2c1)](_0x362873);this['_entityInit$'][_0x2d17bf(0x46e)](_0xbff54c),this[_0x2d17bf(0x200)]['set'](_0x362873,_0xbff54c);}),v[_0x1839f8(0xbd)](this[_0x1839f8(0x43f)][_0x1839f8(0x142)](o[_0x1839f8(0x37c)][_0x1839f8(0x1f4)]),this[_0x1839f8(0x43f)][_0x1839f8(0x142)](o[_0x1839f8(0x37c)][_0x1839f8(0x390)]))['pipe'](v[_0x1839f8(0x3a8)](this[_0x1839f8(0x2b1)]))[_0x1839f8(0x196)](_0x5b2300=>{const _0x4247bf=_0x1839f8,_0x48d43f=_0x5b2300[_0x4247bf(0x280)](),_0x47b8dc=this['_entities']['get'](_0x48d43f);_0x47b8dc&&(_0x47b8dc[_0x4247bf(0xc6)](),this[_0x4247bf(0x200)]['delete'](_0x48d43f));});}async[_0x30e940(0x353)](_0x5e28ad){const _0x4cfb03=_0x30e940,_0x54e858=await this[_0x4cfb03(0x20d)]['requireSession'](_0x5e28ad),_0x2e765b=this[_0x4cfb03(0x137)][_0x4cfb03(0x1c0)](Le,_0x5e28ad,_0x54e858);return _0x2e765b[_0x4cfb03(0x30e)](),_0x2e765b;}async[_0x30e940(0x2c1)](_0x5c1726){const _0x203cb8=_0x30e940,_0x22eddf=await this[_0x203cb8(0x20d)][_0x203cb8(0x470)](_0x5c1726),_0x49672b=this[_0x203cb8(0x137)]['createInstance'](Ae,_0x5c1726,_0x22eddf);return _0x49672b['init'](),_0x49672b;}};Z=Fs([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],Z),Re(0x0,o[_0x30e940(0x233)]),Re(0x1,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),Re(0x2,o[_0x30e940(0xdf)](exports['CollaborationSessionService']))],Z);const le=0x14,it=0xc8,Oe=0x4,Gs=0x5;function Ys(_0x40a9c3,_0x110002){const _0x561ef1=_0x30e940;let {radius:_0x4f75f1,width:_0x1251f8,height:_0x3a3be6}=_0x110002;_0x4f75f1=_0x4f75f1!=null?_0x4f75f1:0x0,_0x1251f8=_0x1251f8!=null?_0x1251f8:0x1e,_0x3a3be6=_0x3a3be6!=null?_0x3a3be6:0x1e;let _0x1283b8=0x0,_0x480311=0x0,_0x101367=0x0;_0x1283b8=_0x480311=_0x101367=Math[_0x561ef1(0x2ac)](_0x4f75f1,_0x1251f8/0x2,_0x3a3be6/0x2),_0x40a9c3[_0x561ef1(0x18e)](),_0x40a9c3[_0x561ef1(0x308)](_0x1283b8,0x0),_0x40a9c3[_0x561ef1(0x404)](_0x1251f8-_0x480311,0x0),_0x40a9c3[_0x561ef1(0x2b2)](_0x1251f8-_0x480311,_0x480311,_0x480311,Math['PI']*0x3/0x2,0x0,!0x1),_0x40a9c3[_0x561ef1(0x404)](_0x1251f8,_0x3a3be6-_0x101367),_0x40a9c3[_0x561ef1(0x2b2)](_0x1251f8-_0x101367,_0x3a3be6-_0x101367,_0x101367,0x0,Math['PI']/0x2,!0x1),_0x40a9c3[_0x561ef1(0x404)](0x0,_0x3a3be6),_0x40a9c3[_0x561ef1(0x404)](0x0,_0x1283b8),_0x40a9c3[_0x561ef1(0x2b2)](_0x1283b8,_0x1283b8,_0x1283b8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x40a9c3[_0x561ef1(0x423)](),_0x110002[_0x561ef1(0xec)]&&(_0x40a9c3[_0x561ef1(0x126)](),_0x40a9c3[_0x561ef1(0x2f8)]=_0x110002['fill'],_0x110002['fillRule']==='evenodd'?_0x40a9c3['fill']('evenodd'):_0x40a9c3[_0x561ef1(0xec)](),_0x40a9c3[_0x561ef1(0x295)]());}class Ce extends b['Shape']{constructor(_0x446aee,_0x4ea86e){const _0x47a779=_0x30e940;super(_0x446aee,_0x4ea86e),u(this,_0x47a779(0x1ea)),u(this,_0x47a779(0x450)),(this[_0x47a779(0x1ea)]=_0x4ea86e==null?void 0x0:_0x4ea86e[_0x47a779(0x1ea)],this['text']=_0x4ea86e==null?void 0x0:_0x4ea86e[_0x47a779(0x450)]);}static['drawWith'](_0x3e1423,_0xc07273){const _0x5d41df=_0x30e940,{text:_0x141fb6,color:_0x443a88}=_0xc07273;_0x3e1423['save'](),_0x3e1423[_0x5d41df(0x3b3)]=_0x5d41df(0x37e);const _0x2c0816=_0x3e1423['measureText'](_0x141fb6)[_0x5d41df(0x44e)],_0x58d718=Math[_0x5d41df(0x2ac)](_0x2c0816+0x2*Oe,it);Ys(_0x3e1423,{'height':le,'radius':0x4,'width':_0x58d718,'fill':_0x443a88,'evented':!0x1}),_0x3e1423[_0x5d41df(0x2f8)]=_0x5d41df(0x378);const _0x2f9b02=Oe,_0x44f2a7=le-Gs,_0x343ae5=it-0x2*Oe;if(_0x2c0816>_0x343ae5){let _0x59322e='',_0x2dd9c6=0x0;for(const _0x474a87 of _0x141fb6){const _0x2d4bc4=_0x3e1423[_0x5d41df(0x43a)](_0x474a87)[_0x5d41df(0x44e)];if(_0x2dd9c6+_0x2d4bc4<=_0x343ae5-_0x3e1423[_0x5d41df(0x43a)](_0x5d41df(0x27d))[_0x5d41df(0x44e)])_0x59322e+=_0x474a87,_0x2dd9c6+=_0x2d4bc4;else{_0x59322e+=_0x5d41df(0x27d);break;}}_0x3e1423[_0x5d41df(0x3b0)](_0x59322e,_0x2f9b02,_0x44f2a7);}else _0x3e1423['fillText'](_0x141fb6,_0x2f9b02,_0x44f2a7);_0x3e1423['restore']();}['_draw'](_0x4ef81e){const _0x3222d7=_0x30e940;Ce[_0x3222d7(0x174)](_0x4ef81e,this);}}const Ks=0x1,Xs=1.5;class Rt extends b[_0x30e940(0x3e6)]{constructor(_0x417306,_0x464f12){const _0x166a97=_0x30e940;super(_0x417306,_0x464f12),u(this,_0x166a97(0x387)),u(this,'_hovered',!0x1),u(this,'_range'),u(this,'_name',''),u(this,_0x166a97(0xbf),_0x166a97(0x1ef)),u(this,'_backgroundColor'),(_0x464f12&&this['setShapeProps'](_0x464f12),this[_0x166a97(0x2be)][_0x166a97(0x246)](()=>this[_0x166a97(0x213)]({'hovered':!0x0})),this['onPointerLeave$'][_0x166a97(0x246)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x30e940(0x213)](_0x25c9c6){const _0xa8d06e=_0x30e940;var _0x4940e4,_0x506ac5,_0x46cc83,_0xca70d8,_0x22f61d,_0x10233e;this[_0xa8d06e(0x387)]=(_0x4940e4=_0x25c9c6[_0xa8d06e(0x1ea)])!=null?_0x4940e4:this['_color'],this['_hovered']=(_0x506ac5=_0x25c9c6[_0xa8d06e(0x391)])!=null?_0x506ac5:this[_0xa8d06e(0x2db)],this[_0xa8d06e(0xe7)]=(_0x46cc83=_0x25c9c6[_0xa8d06e(0x3a9)])!=null?_0x46cc83:this[_0xa8d06e(0xe7)],this[_0xa8d06e(0x285)]=(_0xca70d8=_0x25c9c6[_0xa8d06e(0x3a7)])!=null?_0xca70d8:this[_0xa8d06e(0x285)],this[_0xa8d06e(0xbf)]=(_0x22f61d=_0x25c9c6[_0xa8d06e(0x3d9)])!=null?_0x22f61d:this[_0xa8d06e(0xbf)],this[_0xa8d06e(0x454)]=(_0x10233e=_0x25c9c6[_0xa8d06e(0x238)])!=null?_0x10233e:this[_0xa8d06e(0x454)],this['transformByState']({'width':_0x25c9c6['width'],'height':_0x25c9c6[_0xa8d06e(0x3bd)]});}[_0x30e940(0x3b4)](_0x2954ff){const _0x214ed9=_0x30e940,{row:_0x527bd3,column:_0x494879}=_0x2954ff;if(_0x527bd3>=this[_0x214ed9(0xe7)][_0x214ed9(0x2a1)]&&_0x527bd3<=this['_range'][_0x214ed9(0x214)]&&_0x494879>=this[_0x214ed9(0xe7)][_0x214ed9(0x3a0)]&&_0x494879<=this['_range'][_0x214ed9(0x2c5)]){this[_0x214ed9(0x213)]({'hovered':!0x0});return;}this[_0x214ed9(0x213)]({'hovered':!0x1});}['triggerDblclick'](_0x3758cc){return!0x1;}[_0x30e940(0x3ce)](_0x8af641){const _0x44f621=_0x30e940;b[_0x44f621(0x88)][_0x44f621(0x174)](_0x8af641,{'width':this[_0x44f621(0x44e)],'height':this[_0x44f621(0x3bd)],'strokeWidth':Xs,'stroke':this[_0x44f621(0x387)],'evented':!0x1,'fill':this[_0x44f621(0x454)]}),this['_hovered']&&(_0x8af641[_0x44f621(0x126)](),_0x8af641['transform'](0x1,0x0,0x0,0x1,this[_0x44f621(0x44e)],this[_0x44f621(0xbf)]===_0x44f621(0x165)?0x0:-le),Ce[_0x44f621(0x174)](_0x8af641,{'text':this[_0x44f621(0x285)],'color':this[_0x44f621(0x387)]}),_0x8af641[_0x44f621(0x295)]());}}var qs=Object['defineProperty'],zs=Object[_0x30e940(0x1a2)],Js=(_0x3c7f6f,_0x176b26,_0x26ee22,_0x490a97)=>{for(var _0x64c173=_0x490a97>0x1?void 0x0:_0x490a97?zs(_0x176b26,_0x26ee22):_0x176b26,_0x401149=_0x3c7f6f['length']-0x1,_0x318ba7;_0x401149>=0x0;_0x401149--)(_0x318ba7=_0x3c7f6f[_0x401149])&&(_0x64c173=(_0x490a97?_0x318ba7(_0x176b26,_0x26ee22,_0x64c173):_0x318ba7(_0x64c173))||_0x64c173);return _0x490a97&&_0x64c173&&qs(_0x176b26,_0x26ee22,_0x64c173),_0x64c173;},De=(_0x49dcbd,_0x31f842)=>(_0x53cf5e,_0x48b22)=>_0x31f842(_0x53cf5e,_0x48b22,_0x49dcbd);const Zs=0x1389;let je=class extends o[_0x30e940(0x1cf)]{constructor(_0x1f02d7,_0x8a073,_0x1870cf,_0xf17ea0){const _0x58b7b1=_0x30e940;super(),u(this,_0x58b7b1(0x3f8),new Set()),u(this,'_lastPointer',null),(this[_0x58b7b1(0x21f)]=_0x1f02d7,this[_0x58b7b1(0xb3)]=_0x8a073,this['_collabCursorController']=_0x1870cf,this['_themeService']=_0xf17ea0,this[_0x58b7b1(0x2eb)]());}[_0x30e940(0x2eb)](){const _0x440416=_0x30e940;this['_sheetSkeletonManagerService'][_0x440416(0x433)][_0x440416(0x2a9)](E['takeUntil'](this['dispose$']),E[_0x440416(0xa7)](_0x378d19=>{const _0x21f6fb=_0x440416;if(_0x378d19){const _0x160cba=_0x378d19[_0x21f6fb(0x410)];return v[_0x21f6fb(0x24b)](this[_0x21f6fb(0xcd)][_0x21f6fb(0x135)](this['_context'][_0x21f6fb(0x424)]),this['_themeService']['currentTheme$'])[_0x21f6fb(0x2a9)](E[_0x21f6fb(0x120)](([_0x50e0d3,_0x44a4a3])=>{const _0x259915=new Map();return _0x50e0d3['forEach']((_0x26b0da,_0x3763c4)=>{const _0x3995cc=_0x3b20;if(_0x26b0da['sheetID']===_0x160cba){const _0xbacbe2={..._0x26b0da};_0xbacbe2[_0x3995cc(0x1ea)]=_0x44a4a3[_0x26b0da['color']],_0x259915['set'](_0x3763c4,_0xbacbe2);}}),{'skeleton':_0x378d19,'cursors':_0x259915};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x440416(0x196)](({skeleton:_0x4fb68e,cursors:_0x59be96})=>{const _0x4285e1=_0x440416;this[_0x4285e1(0x269)](),_0x4fb68e&&this[_0x4285e1(0x37f)](_0x4fb68e,_0x59be96);}),this[_0x440416(0xb3)]['currentSkeleton$'][_0x440416(0x196)](_0x5749e4=>{const _0x365e8d=_0x440416;if(_0x5749e4==null)return;const {skeleton:_0x45ae1e}=_0x5749e4,{scene:_0x220579}=this['_context'];_0x220579[_0x365e8d(0x329)][_0x365e8d(0x246)](xe(_0x325444=>{const _0x5fe68=_0x365e8d;var _0x19ab26,_0x31439d;const {offsetX:_0x11036a,offsetY:_0x3002d0}=_0x325444,{x:_0x5a17a6,y:_0x49e168}=_0x220579[_0x5fe68(0x440)](b[_0x5fe68(0x2ee)]['FromArray']([_0x11036a,_0x3002d0])),{scaleX:_0xd56d85,scaleY:_0xc84e8b}=_0x220579[_0x5fe68(0x320)](),_0x15f587=_0x220579['getViewport'](J['VIEWPORT_KEY'][_0x5fe68(0x113)]),_0x1bd287=_0x220579[_0x5fe68(0x300)](b['Vector2'][_0x5fe68(0x131)]([_0x5a17a6,_0x49e168]),_0x15f587),_0x2f0616=_0x45ae1e[_0x5fe68(0x292)](_0x11036a,_0x3002d0,_0xd56d85,_0xc84e8b,_0x1bd287);((_0x19ab26=this[_0x5fe68(0x39e)])==null?void 0x0:_0x19ab26['column'])===_0x2f0616[_0x5fe68(0x345)]&&((_0x31439d=this['_lastPointer'])==null?void 0x0:_0x31439d[_0x5fe68(0x1f8)])===_0x2f0616[_0x5fe68(0x1f8)]||this[_0x5fe68(0x3f8)]['forEach'](_0x4f6127=>{const _0x32b837=_0x5fe68;_0x4f6127[_0x32b837(0x3b4)](_0x2f0616);});},0x64));});}[_0x30e940(0x37f)](_0x412a6e,_0x2b9acf){const _0x1bd90b=_0x30e940;var _0x19c515;const _0x48c30a=(_0x19c515=this[_0x1bd90b(0xb3)][_0x1bd90b(0x29c)]())==null?void 0x0:_0x19c515[_0x1bd90b(0x155)];if(!_0x48c30a)return;const _0x109912=this['_getSheetObject']();if(!_0x109912)return;this[_0x1bd90b(0x3f8)]['forEach'](_0x8720a6=>{_0x8720a6['makeDirty']();});const {scene:_0x16202b}=_0x109912,_0x8ed0d2=Qs(Array[_0x1bd90b(0x16d)](_0x2b9acf[_0x1bd90b(0x14e)]()))[_0x1bd90b(0x120)](_0x3fa39a=>{const _0x597d04=_0x1bd90b,{color:_0x49c12f,range:_0x56fa46,name:_0x47576c,selection:_0x247800,sheetID:_0x20a148}=_0x3fa39a,{startColumn:_0x400bf7,startRow:_0x136d71,endColumn:_0x57f79f,endRow:_0x589ceb}=_0x56fa46,_0x1f90e8=J[_0x597d04(0x117)](_0x136d71,_0x400bf7,_0x16202b,_0x48c30a),_0x414752=J[_0x597d04(0x117)](_0x589ceb,_0x57f79f,_0x16202b,_0x48c30a),{columnHeaderHeightAndMarginTop:_0x4a2620}=_0x48c30a,{startX:_0x5264c8,startY:_0x33ddcb}=_0x1f90e8,{endX:_0x519330,endY:_0x945a8d}=_0x414752,_0x569b47=_0x519330-_0x5264c8,_0x271e34=_0x945a8d-_0x33ddcb,_0x18295e={'labelPosition':_0x33ddcb-_0x4a2620>=le?_0x597d04(0x1ef):'bottom','sheetID':_0x20a148,'range':_0x56fa46,'color':_0x49c12f,'name':_0x47576c,'selection':_0x247800,'left':_0x5264c8,'top':_0x33ddcb,'width':_0x569b47,'height':_0x271e34,'evented':!0x1,'zIndex':Zs};return new Rt(_0x47576c,_0x18295e);});_0x16202b[_0x1bd90b(0x264)](_0x8ed0d2,Ks),this['_cursors']=new Set(_0x8ed0d2);}[_0x30e940(0x269)](){const _0x1b7ebd=_0x30e940;var _0x5bf668;(_0x5bf668=this['_cursors'])==null||_0x5bf668[_0x1b7ebd(0x277)](_0x2efdaa=>_0x2efdaa[_0x1b7ebd(0xc6)]());}[_0x30e940(0x15e)](){const _0x59a3c5=_0x30e940;return J[_0x59a3c5(0x1b1)](this[_0x59a3c5(0x21f)][_0x59a3c5(0x1d0)],this[_0x59a3c5(0x21f)]);}};je=Js([De(0x1,o[_0x30e940(0xdf)](J['SheetSkeletonManagerService'])),De(0x2,o[_0x30e940(0xdf)](Z)),De(0x3,o[_0x30e940(0xdf)](o['ThemeService']))],je);function Qs(_0xbcbbdb){const _0x2ab0aa=_0x30e940,_0x5e375e=new Map();return _0xbcbbdb[_0x2ab0aa(0x277)](_0x44733a=>{const _0x461aae=_0x2ab0aa;if(_0x5e375e[_0x461aae(0x45c)](_0x44733a['selection'])){const _0x2a2b51=_0x5e375e['get'](_0x44733a[_0x461aae(0x3e2)]);_0x2a2b51[_0x461aae(0x3a7)]+=',\x20'+_0x44733a['name'];}else _0x5e375e[_0x461aae(0x346)](_0x44733a[_0x461aae(0x3e2)],_0x44733a);}),Array['from'](_0x5e375e['values']());}var N=function(){const _0x46e080=_0x30e940;return N=Object[_0x46e080(0x101)]||function(_0x280bf8){const _0x3142bd=_0x46e080;for(var _0x2c4073,_0x2e2cb2=0x1,_0x34ff9a=arguments['length'];_0x2e2cb2<_0x34ff9a;_0x2e2cb2++){_0x2c4073=arguments[_0x2e2cb2];for(var _0x4d3cc6 in _0x2c4073)Object[_0x3142bd(0x337)]['hasOwnProperty'][_0x3142bd(0xe3)](_0x2c4073,_0x4d3cc6)&&(_0x280bf8[_0x4d3cc6]=_0x2c4073[_0x4d3cc6]);}return _0x280bf8;},N[_0x46e080(0x3cf)](this,arguments);},ei=function(_0x56b742,_0x53c4a4){const _0x4b61fd=_0x30e940;var _0x588625={};for(var _0x26a9fa in _0x56b742)Object['prototype'][_0x4b61fd(0x222)][_0x4b61fd(0xe3)](_0x56b742,_0x26a9fa)&&_0x53c4a4['indexOf'](_0x26a9fa)<0x0&&(_0x588625[_0x26a9fa]=_0x56b742[_0x26a9fa]);if(_0x56b742!=null&&typeof Object[_0x4b61fd(0x323)]==_0x4b61fd(0x2ff)){for(var _0x522bb8=0x0,_0x26a9fa=Object[_0x4b61fd(0x323)](_0x56b742);_0x522bb8<_0x26a9fa[_0x4b61fd(0x3b8)];_0x522bb8++)_0x53c4a4[_0x4b61fd(0x208)](_0x26a9fa[_0x522bb8])<0x0&&Object[_0x4b61fd(0x337)][_0x4b61fd(0x1d4)][_0x4b61fd(0xe3)](_0x56b742,_0x26a9fa[_0x522bb8])&&(_0x588625[_0x26a9fa[_0x522bb8]]=_0x56b742[_0x26a9fa[_0x522bb8]]);}return _0x588625;},Ge=y['forwardRef'](function(_0x2259bb,_0x5ce95a){const _0x4cbb13=_0x30e940;var _0x8f7778=_0x2259bb['icon'],_0x1aa675=_0x2259bb['id'],_0x194840=_0x2259bb[_0x4cbb13(0x243)],_0x7671e8=_0x2259bb['extend'],_0x16760d=ei(_0x2259bb,[_0x4cbb13(0xeb),'id','className','extend']),_0x50cc1b=_0x4cbb13(0x19d)[_0x4cbb13(0x318)](_0x1aa675,'\x20')[_0x4cbb13(0x318)](_0x194840||'')['trim'](),_0x33cc4d=y['useRef']('_'[_0x4cbb13(0x318)](ii()));return Ot(_0x8f7778,''[_0x4cbb13(0x318)](_0x1aa675),{'defIds':_0x8f7778[_0x4cbb13(0x429)],'idSuffix':_0x33cc4d['current']},N({'ref':_0x5ce95a,'className':_0x50cc1b},_0x16760d),_0x7671e8);});function Ot(_0x953fd2,_0x5672a5,_0x562709,_0x1252a0,_0x3b26ba){const _0x5d5279=_0x30e940;return y[_0x5d5279(0x3a5)](_0x953fd2[_0x5d5279(0x9e)],N(N({'key':_0x5672a5},ti(_0x953fd2,_0x562709,_0x3b26ba)),_0x1252a0),(si(_0x953fd2,_0x562709)[_0x5d5279(0x335)]||[])[_0x5d5279(0x120)](function(_0x12e5e2,_0x30bbf1){const _0x3889ee=_0x5d5279;return Ot(_0x12e5e2,''[_0x3889ee(0x318)](_0x5672a5,'-')[_0x3889ee(0x318)](_0x953fd2[_0x3889ee(0x9e)],'-')[_0x3889ee(0x318)](_0x30bbf1),_0x562709,void 0x0,_0x3b26ba);}));}function ti(_0x17b0b5,_0x5632c6,_0x12095e){const _0x358818=_0x30e940;var _0x41353c=N({},_0x17b0b5['attrs']);_0x12095e!=null&&_0x12095e[_0x358818(0x459)]&&_0x41353c['fill']===_0x358818(0x459)&&(_0x41353c[_0x358818(0xec)]=_0x12095e[_0x358818(0x459)]);var _0x41400b=_0x5632c6[_0x358818(0x429)];return!_0x41400b||_0x41400b[_0x358818(0x3b8)]===0x0||(_0x17b0b5[_0x358818(0x9e)]==='use'&&_0x41353c['xlink:href']&&(_0x41353c['xlink:href']=_0x41353c[_0x358818(0x148)]+_0x5632c6[_0x358818(0x27f)]),Object[_0x358818(0x43b)](_0x41353c)[_0x358818(0x277)](function(_0x3b8b2c){const _0x53f3c4=_0x358818;var _0x2ab1fa=_0x3b8b2c[0x0],_0x27dcf3=_0x3b8b2c[0x1];typeof _0x27dcf3==_0x53f3c4(0x1d3)&&(_0x41353c[_0x2ab1fa]=_0x27dcf3[_0x53f3c4(0x283)](/url\(#(.*)\)/,_0x53f3c4(0x452)[_0x53f3c4(0x318)](_0x5632c6[_0x53f3c4(0x27f)],')')));})),_0x41353c;}function si(_0x4aebfc,_0x5dc4d8){const _0x5283cb=_0x30e940;var _0x41ee60,_0x23cb73=_0x5dc4d8[_0x5283cb(0x429)];return!_0x23cb73||_0x23cb73[_0x5283cb(0x3b8)]===0x0?_0x4aebfc:_0x4aebfc[_0x5283cb(0x9e)]==='defs'&&(!((_0x41ee60=_0x4aebfc[_0x5283cb(0x335)])===null||_0x41ee60===void 0x0)&&_0x41ee60[_0x5283cb(0x3b8)])?N(N({},_0x4aebfc),{'children':_0x4aebfc[_0x5283cb(0x335)][_0x5283cb(0x120)](function(_0x24fcbf){const _0x5265f1=_0x5283cb;return typeof _0x24fcbf[_0x5265f1(0xfb)]['id']==_0x5265f1(0x1d3)&&_0x23cb73&&_0x23cb73[_0x5265f1(0x208)](_0x24fcbf[_0x5265f1(0xfb)]['id'])>-0x1?N(N({},_0x24fcbf),{'attrs':N(N({},_0x24fcbf[_0x5265f1(0xfb)]),{'id':_0x24fcbf[_0x5265f1(0xfb)]['id']+_0x5dc4d8[_0x5265f1(0x27f)]})}):_0x24fcbf;})}):_0x4aebfc;}function ii(){const _0x38afa5=_0x30e940;return Math[_0x38afa5(0x3ca)]()[_0x38afa5(0x451)](0x24)[_0x38afa5(0x22e)](0x2,0x8);}Ge[_0x30e940(0x225)]=_0x30e940(0x46a);var ni={'tag':'svg','attrs':{'fill':'none','viewBox':_0x30e940(0xbc),'width':_0x30e940(0x1b8),'height':_0x30e940(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x30e940(0xb2)},'children':[{'tag':_0x30e940(0x395),'attrs':{'stroke':_0x30e940(0x316),'d':_0x30e940(0x309),'strokeLinecap':_0x30e940(0x24c),'strokeLinejoin':_0x30e940(0x24c),'strokeWidth':1.2}}]},{'tag':_0x30e940(0x3f4),'attrs':{},'children':[{'tag':_0x30e940(0x234),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x30e940(0x3fa),'d':_0x30e940(0x98)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Dt=y[_0x30e940(0xed)](function(_0x76ee13,_0x2139d3){const _0x536884=_0x30e940;return y[_0x536884(0x3a5)](Ge,Object[_0x536884(0x101)]({},_0x76ee13,{'id':_0x536884(0x253),'ref':_0x2139d3,'icon':ni}));});Dt['displayName']='OffLineSingle';var ri={'tag':_0x30e940(0x446),'attrs':{'fill':'none','viewBox':_0x30e940(0x141),'width':'1em','height':_0x30e940(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x30e940(0x395),'attrs':{'stroke':_0x30e940(0x316),'d':_0x30e940(0x439),'strokeLinecap':_0x30e940(0x24c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x30e940(0x234),'attrs':{'id':_0x30e940(0x32c)},'children':[{'tag':'path','attrs':{'fill':_0x30e940(0x3fa),'d':'M0\x200H16V16H0z','transform':_0x30e940(0x365)}}]}]}],'defIds':[_0x30e940(0x32c)]},Pt=y[_0x30e940(0xed)](function(_0x23ff96,_0x14282e){const _0x5d6085=_0x30e940;return y['createElement'](Ge,Object[_0x5d6085(0x101)]({},_0x23ff96,{'id':_0x5d6085(0x307),'ref':_0x14282e,'icon':ri}));});Pt['displayName']='OnLineSingle';const oi=_0x30e940(0x144),ai=_0x30e940(0x138),ci=_0x30e940(0x16e),li='univer-online',hi='univer-offline',ne={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x49908b){const _0x21105f=_0x30e940;switch(_0x49908b){case D[_0x21105f(0x32d)]:return _0x21105f(0x291);case D['CONFLICT']:return _0x21105f(0x2c0);case D[_0x21105f(0x33d)]:return _0x21105f(0xfa);case D[_0x21105f(0x25e)]:return _0x21105f(0x465);case D[_0x21105f(0x28e)]:case D[_0x21105f(0x38c)]:case D[_0x21105f(0x27c)]:return _0x21105f(0x25f);case D[_0x21105f(0x9c)]:return _0x21105f(0x468);}}function Ut(_0x463763){const _0x1b860a=_0x30e940,{status$:_0x1b4434}=_0x463763,_0x2f605b=L[_0x1b860a(0xcf)](_0x1b4434,D[_0x1b860a(0x25e)]),_0x4155db=o['useDependency'](o[_0x1b860a(0xfe)]),_0x162d24=_0x2f605b!==D['OFFLINE'],_0x2d22ff=_0x4155db['t'](_i(_0x2f605b)),_0x38d544=kt(ne['onlineStatus'],{[ne[_0x1b860a(0x304)]]:_0x162d24,[ne[_0x1b860a(0x1cd)]]:!_0x162d24}),_0x178d1a=_0x162d24?y[_0x1b860a(0x3a5)](Pt,null):y[_0x1b860a(0x3a5)](Dt,null);return y[_0x1b860a(0x3a5)](_0x1b860a(0x8e),{'className':_0x38d544},y[_0x1b860a(0x3a5)](_0x1b860a(0x8e),{'className':ne[_0x1b860a(0x257)]},_0x178d1a),y[_0x1b860a(0x3a5)](_0x1b860a(0x8e),{'className':ne['onlineStatusTitle']},_0x2d22ff));}var ui=Object[_0x30e940(0x36c)],di=Object['getOwnPropertyDescriptor'],Si=(_0x57c8f4,_0x19867f,_0x154633,_0x4d8a9d)=>{for(var _0x498f30=_0x4d8a9d>0x1?void 0x0:_0x4d8a9d?di(_0x19867f,_0x154633):_0x19867f,_0x59e3b8=_0x57c8f4['length']-0x1,_0x486784;_0x59e3b8>=0x0;_0x59e3b8--)(_0x486784=_0x57c8f4[_0x59e3b8])&&(_0x498f30=(_0x4d8a9d?_0x486784(_0x19867f,_0x154633,_0x498f30):_0x486784(_0x498f30))||_0x498f30);return _0x4d8a9d&&_0x498f30&&ui(_0x19867f,_0x154633,_0x498f30),_0x498f30;},he=(_0x333a5a,_0x4f3f6e)=>(_0x302a4b,_0xad9344)=>_0x4f3f6e(_0x302a4b,_0xad9344,_0x333a5a);exports[_0x30e940(0x18b)]=class extends o[_0x30e940(0x3c3)]{constructor(_0x13aeff,_0x2e58cc,_0x49cc61,_0x42926c){const _0x562077=_0x30e940;super(),u(this,_0x562077(0x3f0),new v['BehaviorSubject'](D['NOT_COLLAB'])),(this[_0x562077(0x43f)]=_0x13aeff,this[_0x562077(0x2a6)]=_0x2e58cc,this[_0x562077(0x137)]=_0x49cc61,this[_0x562077(0x46f)]=_0x42926c,this[_0x562077(0x151)](),this[_0x562077(0x384)]());}[_0x30e940(0x151)](){const _0x5fcd82=_0x30e940;this[_0x5fcd82(0x22c)](this[_0x5fcd82(0x2a6)][_0x5fcd82(0x426)](L['BuiltInUIPart']['HEADER_MENU'],()=>o['connectInjector'](vi({'status$':this[_0x5fcd82(0x3f0)][_0x5fcd82(0x16a)]()}),this[_0x5fcd82(0x137)])));}[_0x30e940(0x384)](){const _0x285828=_0x30e940;this[_0x285828(0x22c)](o[_0x285828(0xa1)](this['_univerInstanceService'][_0x285828(0x1a0)]['pipe'](v['switchMap'](()=>{const _0xe3b247=_0x285828,_0x239e40=this[_0xe3b247(0x43f)][_0xe3b247(0x469)]();return _0x239e40?this[_0xe3b247(0x46f)][_0xe3b247(0x231)](_0x239e40[_0xe3b247(0x280)]()):v['of'](null);}),v['switchMap'](_0x22e9c4=>_0x22e9c4?_0x22e9c4[_0x285828(0x3e0)]:v['of'](D[_0x285828(0x25e)])))[_0x285828(0x196)](_0xbb120=>{const _0x33fe2b=_0x285828;this[_0x33fe2b(0x3f0)][_0x33fe2b(0x46e)](_0xbb120);})));}},exports[_0x30e940(0x18b)]=Si([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],exports[_0x30e940(0x18b)]),he(0x0,o[_0x30e940(0x233)]),he(0x1,L[_0x30e940(0x442)]),he(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),he(0x3,o['Inject'](exports[_0x30e940(0xde)]))],exports[_0x30e940(0x18b)]);function vi(_0x17bbe0){const {status$:_0x40dfe1}=_0x17bbe0;return function(){const _0x8d4aee=_0x3b20;return y[_0x8d4aee(0x3a5)](Ut,{'status$':_0x40dfe1});};}const Ye=o[_0x30e940(0x16b)](_0x30e940(0x15c));var mi=Object[_0x30e940(0x36c)],gi=Object['getOwnPropertyDescriptor'],fi=(_0x7231db,_0x173302,_0x2321ef,_0x5e3401)=>{const _0x249da8=_0x30e940;for(var _0x52d690=_0x5e3401>0x1?void 0x0:_0x5e3401?gi(_0x173302,_0x2321ef):_0x173302,_0x295453=_0x7231db[_0x249da8(0x3b8)]-0x1,_0x200fc1;_0x295453>=0x0;_0x295453--)(_0x200fc1=_0x7231db[_0x295453])&&(_0x52d690=(_0x5e3401?_0x200fc1(_0x173302,_0x2321ef,_0x52d690):_0x200fc1(_0x52d690))||_0x52d690);return _0x5e3401&&_0x52d690&&mi(_0x173302,_0x2321ef,_0x52d690),_0x52d690;},z=(_0x4beccb,_0x4f2c02)=>(_0xbddb59,_0x2397e9)=>_0x4f2c02(_0xbddb59,_0x2397e9,_0x4beccb);exports[_0x30e940(0x385)]=class extends o['RxDisposable']{constructor(_0x3f4a49,_0x3c01fe,_0x3960d0,_0x1aba87,_0x2f4500,_0x221f72){const _0x471ea9=_0x30e940;super(),this[_0x471ea9(0x11d)]=_0x3f4a49,this[_0x471ea9(0x198)]=_0x3c01fe,this[_0x471ea9(0x176)]=_0x3960d0,this[_0x471ea9(0x377)]=_0x1aba87,this[_0x471ea9(0x3ea)]=_0x2f4500,_0x221f72?_0x221f72==null||_0x221f72[_0x471ea9(0x24f)]()[_0x471ea9(0x9d)](()=>this[_0x471ea9(0x2eb)]()):(this['_logService'][_0x471ea9(0x293)](_0x471ea9(0x194),_0x471ea9(0x24d)),this[_0x471ea9(0x2eb)]());}async['_init'](){const _0x6f1d18=_0x30e940,_0x59868e=this[_0x6f1d18(0x11d)]['getParam'](_0x6f1d18(0x1d0)),_0x328923=this[_0x6f1d18(0x11d)]['getParam'](_0x6f1d18(0x312));if(!_0x59868e||!_0x328923){this[_0x6f1d18(0x198)][_0x6f1d18(0x293)](_0x6f1d18(0x194),_0x6f1d18(0x334));return;}switch(Number(_0x328923)){case j[_0x6f1d18(0x390)]:{const _0x58f91c=await this[_0x6f1d18(0x30c)](_0x59868e);this[_0x6f1d18(0x417)](_0x58f91c);break;}case j[_0x6f1d18(0x1f4)]:{await this[_0x6f1d18(0x415)](_0x59868e);break;}default:{this[_0x6f1d18(0x198)][_0x6f1d18(0xf0)](_0x6f1d18(0x194),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x30e940(0x417)](_0x2adfd9){const _0x94f32b=_0x30e940;await this[_0x94f32b(0x2f4)](_0x2adfd9),_0x2adfd9[_0x94f32b(0x3ac)][_0x94f32b(0x2a9)](v[_0x94f32b(0x3a8)](this[_0x94f32b(0x2b1)]))[_0x94f32b(0x196)](_0x37724a=>{const _0x4e3d0c=_0x94f32b;_0x37724a&&this[_0x4e3d0c(0xdb)](_0x37724a);}),this[_0x94f32b(0x11d)][_0x94f32b(0x2e3)][_0x94f32b(0x2a9)](v['takeUntil'](this[_0x94f32b(0x2b1)]))[_0x94f32b(0x196)](()=>this[_0x94f32b(0x2f4)](_0x2adfd9));}[_0x30e940(0xdb)](_0x440330,_0x32abdc=!0x1){const _0x276899=_0x30e940,_0x4b7d04=this[_0x276899(0x11d)][_0x276899(0x3e3)](_0x276899(0x36f));_0x440330[_0x276899(0x28d)]()!==_0x4b7d04&&this[_0x276899(0x11d)][_0x276899(0x383)](_0x276899(0x36f),_0x440330[_0x276899(0x28d)](),_0x32abdc);}async[_0x30e940(0x2f4)](_0xf22cc9){const _0x4469cd=_0x30e940;var _0x4dbfb2;const _0x1688ba=this[_0x4469cd(0x11d)]['getParam'](_0x4469cd(0x36f));if(!_0x1688ba||!_0xf22cc9[_0x4469cd(0x3f1)](_0x1688ba)){const _0x5c211c=_0xf22cc9[_0x4469cd(0x12a)]()[0x0],_0x124521=_0xf22cc9['getSheetBySheetId'](_0x5c211c);if(!_0x124521)return;this[_0x4469cd(0xdb)](_0x124521,!0x0),await this[_0x4469cd(0x176)]['executeCommand'](p[_0x4469cd(0x2a3)]['id'],{'unitId':_0xf22cc9[_0x4469cd(0x280)](),'subUnitId':_0x5c211c});return;}((_0x4dbfb2=_0xf22cc9[_0x4469cd(0x18f)]())==null?void 0x0:_0x4dbfb2['getSheetId']())!==_0x1688ba&&await this[_0x4469cd(0x176)][_0x4469cd(0x12d)](p[_0x4469cd(0x2a3)]['id'],{'unitId':_0xf22cc9[_0x4469cd(0x280)](),'subUnitId':_0x1688ba});}async[_0x30e940(0x30c)](_0x120cf3){const _0x1f7c70=_0x30e940;let _0x40bcc4=0x0;const _0x45b315=await this['_localCacheService'][_0x1f7c70(0x341)](_0x120cf3);return _0x45b315&&(_0x45b315[_0x1f7c70(0xf9)]||_0x45b315['mutations'][_0x1f7c70(0x3b8)]!==0x0)&&(_0x40bcc4=_0x45b315['rev']),_0x40bcc4===0x0&&this['_logService'][_0x1f7c70(0x293)](_0x1f7c70(0x194),_0x1f7c70(0x370)),this[_0x1f7c70(0x3ea)][_0x1f7c70(0x190)](_0x120cf3,_0x40bcc4);}async[_0x30e940(0x415)](_0x373c23){const _0x4ab854=_0x30e940;let _0x5392bc=0x0;const _0x2430bc=await this[_0x4ab854(0x377)]['loadOfflineData'](_0x373c23);return _0x2430bc&&(_0x2430bc[_0x4ab854(0xf9)]||_0x2430bc[_0x4ab854(0x95)][_0x4ab854(0x3b8)]!==0x0)&&(_0x5392bc=_0x2430bc['rev']),_0x5392bc===0x0&&this[_0x4ab854(0x198)][_0x4ab854(0x293)](_0x4ab854(0x194),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4ab854(0x3ea)][_0x4ab854(0x3eb)](_0x373c23,_0x5392bc);}},exports[_0x30e940(0x385)]=fi([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],exports[_0x30e940(0x385)]),z(0x0,Ye),z(0x1,o[_0x30e940(0x1e7)]),z(0x2,o[_0x30e940(0x1c8)]),z(0x3,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),z(0x4,o[_0x30e940(0xdf)](_[_0x30e940(0x1d9)])),z(0x5,o[_0x30e940(0x96)](Bt['IRemoteInstanceService']))],exports[_0x30e940(0x385)]);var Ii=Object[_0x30e940(0x36c)],pi=Object[_0x30e940(0x1a2)],Ei=(_0x367f24,_0x317026,_0x595c86,_0x4ee402)=>{const _0x8f7e2a=_0x30e940;for(var _0xa2e6ad=_0x4ee402>0x1?void 0x0:_0x4ee402?pi(_0x317026,_0x595c86):_0x317026,_0x17970e=_0x367f24[_0x8f7e2a(0x3b8)]-0x1,_0xe84ec2;_0x17970e>=0x0;_0x17970e--)(_0xe84ec2=_0x367f24[_0x17970e])&&(_0xa2e6ad=(_0x4ee402?_0xe84ec2(_0x317026,_0x595c86,_0xa2e6ad):_0xe84ec2(_0xa2e6ad))||_0xa2e6ad);return _0x4ee402&&_0xa2e6ad&&Ii(_0x317026,_0x595c86,_0xa2e6ad),_0xa2e6ad;},nt=(_0x1ce933,_0x157c4d)=>(_0x20028d,_0xff16ca)=>_0x157c4d(_0x20028d,_0xff16ca,_0x1ce933);const Ci='DEFAULT_FILE_NAME',bi=_0x30e940(0x1fe);let ue=class extends o[_0x30e940(0x3c3)]{constructor(_0x495c91,_0x1a538d){const _0x247ca5=_0x30e940;super(),this[_0x247ca5(0x43f)]=_0x495c91,this['_configService']=_0x1a538d,this[_0x247ca5(0x2eb)]();}[_0x30e940(0x2eb)](){const _0xa97b83=_0x30e940;this[_0xa97b83(0x22c)](o['toDisposable'](this[_0xa97b83(0x43f)]['focused$'][_0xa97b83(0x196)](()=>{const _0x35622c=_0xa97b83;var _0x4f492e;const _0xea2b11=this[_0x35622c(0x43f)][_0x35622c(0x469)]();let _0x2a6b0b=(_0x4f492e=this[_0x35622c(0x160)][_0x35622c(0xfc)](Ci))!=null?_0x4f492e:bi;_0xea2b11 instanceof o['Workbook']&&(_0x2a6b0b=_0xea2b11[_0x35622c(0x3a7)]),document[_0x35622c(0x20c)]=_0x2a6b0b;})));}};ue=Ei([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x33a)],ue),nt(0x0,o[_0x30e940(0x233)]),nt(0x1,o[_0x30e940(0x306)])],ue);var Ti=Object['defineProperty'],Ri=Object['getOwnPropertyDescriptor'],Oi=(_0x39ed07,_0x3adcbd,_0x975798,_0x4f0c07)=>{const _0x4a4d99=_0x30e940;for(var _0x14f859=_0x4f0c07>0x1?void 0x0:_0x4f0c07?Ri(_0x3adcbd,_0x975798):_0x3adcbd,_0x137a24=_0x39ed07[_0x4a4d99(0x3b8)]-0x1,_0x388cd3;_0x137a24>=0x0;_0x137a24--)(_0x388cd3=_0x39ed07[_0x137a24])&&(_0x14f859=(_0x4f0c07?_0x388cd3(_0x3adcbd,_0x975798,_0x14f859):_0x388cd3(_0x14f859))||_0x14f859);return _0x4f0c07&&_0x14f859&&Ti(_0x3adcbd,_0x975798,_0x14f859),_0x14f859;},rt=(_0x3ef988,_0x2176e5)=>(_0x4b2d50,_0x1e41ee)=>_0x2176e5(_0x4b2d50,_0x1e41ee,_0x3ef988);exports['SnapshotServerOverHTTPService']=class{constructor(_0x222d25,_0x1fa9af){this['_configService']=_0x222d25,this['_httpService']=_0x1fa9af;}async[_0x30e940(0x2e1)](_0x372d75,_0x1640f3){const _0x225fdc=_0x30e940;var _0x1fa254;const {unitID:_0x2363db,type:_0xde2f0f,revision:_0x1fa69a=0x0}=_0x1640f3,_0x2f286e=this[_0x225fdc(0x359)]()+'/'+_0xde2f0f+_0x225fdc(0x1ae)+_0x2363db+'/rev/'+_0x1fa69a,_0x24e121=(await this[_0x225fdc(0x19a)]['get'](_0x2f286e))[_0x225fdc(0x3db)],_0x597456=(_0x1fa254=_0x24e121['snapshot'])==null?void 0x0:_0x1fa254[_0x225fdc(0x2bb)];if(_0x597456){const _0x3de214=_0x597456==null?void 0x0:_0x597456['originalMeta'],_0xf607ab=_[_0x225fdc(0x28b)][_0x225fdc(0x249)](_[_0x225fdc(0x182)](_0x3de214));_0x597456[_0x225fdc(0x437)]=_0xf607ab,Object[_0x225fdc(0x43b)](_0x597456[_0x225fdc(0x2e9)])[_0x225fdc(0x277)](([,_0xdfea08])=>{const _0x41141a=_0x225fdc,_0x2d2584=_0xdfea08[_0x41141a(0x437)],_0xcaae5d=_[_0x41141a(0x28b)]['encode'](_['b64DecodeUnicode'](_0x2d2584));_0xdfea08[_0x41141a(0x437)]=_0xcaae5d;});}return _0x24e121;}async[_0x30e940(0x179)](_0x1cc65f,_0x311279){const _0x18d8c0=_0x30e940,{unitID:_0x181185,type:_0x883bc2,blockID:_0x13814e}=_0x311279,_0x4d869c=this['_getAPIPrefix']()+'/'+_0x883bc2+_0x18d8c0(0x1ae)+_0x181185+_0x18d8c0(0x226)+_0x13814e;return(await this[_0x18d8c0(0x19a)][_0x18d8c0(0x1f0)](_0x4d869c))[_0x18d8c0(0x3db)];}async[_0x30e940(0x34c)](_0x167528,_0x5c55ba){const _0xabc892=_0x30e940,{unitID:_0x5f4b19,type:_0x81b20f,from:_0x5a4f7f,to:_0xdd42c9}=_0x5c55ba,_0x4c1db1=this['_getAPIPrefix']()+'/'+_0x81b20f+'/unit/'+_0x5f4b19+_0xabc892(0x201)+_0x5a4f7f+_0xabc892(0x37a)+_0xdd42c9;return(await this[_0xabc892(0x19a)][_0xabc892(0x1f0)](_0x4c1db1))[_0xabc892(0x3db)];}[_0x30e940(0x359)](){const _0x21ad7a=_0x30e940;var _0x4339b7;return(_0x4339b7=this[_0x21ad7a(0x160)]['getConfig'](lt))!=null?_0x4339b7:this['_getAPIPrefix']();}[_0x30e940(0x183)](){const _0x3e0ca5=_0x30e940;var _0x3949fe;return(_0x3949fe=this[_0x3e0ca5(0x160)][_0x3e0ca5(0xfc)](ct))!=null?_0x3949fe:Vt;}async['getResourcesRequest'](_0x1ae43f,_0x3d3144){const _0x3ab54c=_0x30e940,_0x463feb=_0x3ab54c(0x2d7)+_0x3d3144['type']+_0x3ab54c(0x1ae)+_0x3d3144[_0x3ab54c(0x1e6)]+_0x3ab54c(0x388);return(await this[_0x3ab54c(0x19a)][_0x3ab54c(0x1f0)](_0x463feb,{'params':{'resourceId':JSON[_0x3ab54c(0x1be)](_0x3d3144[_0x3ab54c(0x26f)])}}))[_0x3ab54c(0x3db)];}[_0x30e940(0x32b)](){const _0x4f4fdd=_0x30e940;throw new Error(_0x4f4fdd(0x12f));}[_0x30e940(0x1a5)](){const _0x1db1e0=_0x30e940;throw new Error(_0x1db1e0(0x12f));}[_0x30e940(0x472)](){const _0x42459c=_0x30e940;throw new Error(_0x42459c(0x12f));}},exports[_0x30e940(0x41c)]=Oi([rt(0x0,o[_0x30e940(0x306)]),rt(0x1,o[_0x30e940(0xdf)](U[_0x30e940(0x181)]))],exports['SnapshotServerOverHTTPService']);var Di=Object[_0x30e940(0x36c)],Pi=Object[_0x30e940(0x1a2)],Ui=(_0x4706b2,_0x595ac1,_0x1fccd0,_0x1b5387)=>{for(var _0x1144b0=_0x1b5387>0x1?void 0x0:_0x1b5387?Pi(_0x595ac1,_0x1fccd0):_0x595ac1,_0x52ef84=_0x4706b2['length']-0x1,_0x41dd71;_0x52ef84>=0x0;_0x52ef84--)(_0x41dd71=_0x4706b2[_0x52ef84])&&(_0x1144b0=(_0x1b5387?_0x41dd71(_0x595ac1,_0x1fccd0,_0x1144b0):_0x41dd71(_0x1144b0))||_0x1144b0);return _0x1b5387&&_0x1144b0&&Di(_0x595ac1,_0x1fccd0,_0x1144b0),_0x1144b0;},re=(_0x214b89,_0x3aef2c)=>(_0x1ce841,_0x3f9a45)=>_0x3aef2c(_0x1ce841,_0x3f9a45,_0x214b89);let $e=class extends o[_0x30e940(0x23b)]{constructor(_0x5bb06e,_0x31d801,_0x1967b9,_0x3a4dd2,_0x26ab61){const _0xf15f7a=_0x30e940;super(_0x5bb06e,_0x31d801,_0x1967b9),this['_transformService']=_0x3a4dd2,this[_0xf15f7a(0x198)]=_0x26ab61;}[_0x30e940(0xa6)](_0x290c88,_0x40e1f1){const _0xba57a4=_0x30e940,_0x22c2a6=this[_0xba57a4(0x94)](_0x290c88);if(_0x22c2a6)try{const _0x369bb2=this[_0xba57a4(0xd4)](_0x22c2a6,_0x40e1f1);this['_substituteUndoStack'](_0x290c88,_0x369bb2);}catch(_0x2b5296){this[_0xba57a4(0x198)][_0xba57a4(0xf0)](_0xba57a4(0x152),_0x2b5296),this[_0xba57a4(0x367)](_0x290c88);}const _0x40685d=this[_0xba57a4(0x399)](_0x290c88);if(_0x40685d)try{const _0x1fa0b6=this[_0xba57a4(0xd4)](_0x40685d,_0x40e1f1);this[_0xba57a4(0xba)](_0x290c88,_0x1fa0b6);}catch(_0x2d07ae){this[_0xba57a4(0x198)][_0xba57a4(0xf0)](_0x2d07ae),this[_0xba57a4(0x3c1)](_0x290c88);}}['_clearUndo'](_0x1ac210){const _0x322718=_0x30e940,_0x3784f5=this['_getUndoStack'](_0x1ac210);_0x3784f5&&(_0x3784f5[_0x322718(0x3b8)]=0x0,this[_0x322718(0x268)]());}['_clearRedo'](_0x3b8679){const _0x4def6b=_0x30e940,_0x3b8d50=this[_0x4def6b(0x399)](_0x3b8679);_0x3b8d50&&(_0x3b8d50[_0x4def6b(0x3b8)]=0x0,this[_0x4def6b(0x268)]());}[_0x30e940(0x290)](_0x2c354e,_0xf3497b){const _0x4f0697=_0x30e940;this[_0x4f0697(0x14b)][_0x4f0697(0x346)](_0x2c354e,_0xf3497b),this[_0x4f0697(0x268)]();}['_substituteRedoStack'](_0xd6523e,_0x5433b0){const _0xa0746f=_0x30e940;this['_redoStacks'][_0xa0746f(0x346)](_0xd6523e,_0x5433b0),this['_updateStatus']();}[_0x30e940(0xd4)](_0x51e614,_0x103b21){const _0x1b5d68=_0x30e940,_0x1c8399=[];let _0x2bb1ff=_0x103b21,_0x11234a=_0x103b21;for(let _0x1f8d96=_0x51e614[_0x1b5d68(0x3b8)]-0x1;_0x1f8d96>=0x0;_0x1f8d96--){const {unitID:_0xf2277a,undoMutations:_0x5b6ceb,redoMutations:_0x1d8799}=_0x51e614[_0x1f8d96],_0x10859f=this[_0x1b5d68(0x3c0)]['transformMutationsWithChangeset'](_0x2bb1ff,_0x5b6ceb),_0x19e569=this[_0x1b5d68(0x3c0)][_0x1b5d68(0x1c3)](_0x11234a,_0x1d8799);if(_['isTransformMutationsWithChangesetFailure'](_0x10859f)||_[_0x1b5d68(0x2ec)](_0x19e569)){this[_0x1b5d68(0x198)][_0x1b5d68(0xf0)](_0x1b5d68(0x152),'transformStack\x20failed!',_0x10859f,_0x19e569);break;}_0x2bb1ff=_0x10859f[_0x1b5d68(0x1f6)],_0x11234a=_0x19e569[_0x1b5d68(0x1f6)],_0x1c8399[_0x1b5d68(0x220)]({'unitID':_0xf2277a,'undoMutations':_0x10859f[_0x1b5d68(0x163)],'redoMutations':_0x19e569[_0x1b5d68(0x163)]});}return _0x1c8399['reverse']();}};$e=Ui([re(0x0,o[_0x30e940(0x233)]),re(0x1,o['ICommandService']),re(0x2,o[_0x30e940(0x2da)]),re(0x3,_[_0x30e940(0x2ab)]),re(0x4,o['ILogService'])],$e);class wt extends o['RxDisposable']{constructor(){const _0x53e2c1=_0x30e940;super(),u(this,_0x53e2c1(0x2e3)),this[_0x53e2c1(0x2e3)]=v['fromEvent'](window,_0x53e2c1(0x1e0))['pipe'](v[_0x53e2c1(0x3a8)](this[_0x53e2c1(0x2b1)]),v[_0x53e2c1(0x3c5)](0x1),v[_0x53e2c1(0x39f)](void 0x0));}[_0x30e940(0x383)](_0x196461,_0x5c24ac,_0x5101c7=!0x1){const _0x3425ea=_0x30e940,_0x36b4ce=new URL(window[_0x3425ea(0x3de)][_0x3425ea(0xb8)]);_0x36b4ce[_0x3425ea(0x432)]['set'](_0x196461,_0x5c24ac),_0x5101c7?window['history'][_0x3425ea(0x175)]('','',_0x36b4ce[_0x3425ea(0x451)]()):window[_0x3425ea(0x263)][_0x3425ea(0x133)]('','',_0x36b4ce[_0x3425ea(0x451)]());}['removeParam'](_0x660f3e,_0x509a12=!0x1){const _0x10080e=_0x30e940,_0x18cd9e=new URL(window[_0x10080e(0x3de)][_0x10080e(0xb8)]);_0x18cd9e['searchParams'][_0x10080e(0x244)](_0x660f3e),_0x509a12?window[_0x10080e(0x263)][_0x10080e(0x175)]('','',_0x18cd9e['toString']()):window[_0x10080e(0x263)][_0x10080e(0x133)]('','',_0x18cd9e[_0x10080e(0x451)]());}[_0x30e940(0x3e3)](_0x34a851){const _0x15e0f2=_0x30e940;var _0x108d31;return(_0x108d31=new URL(window[_0x15e0f2(0x3de)][_0x15e0f2(0xb8)])[_0x15e0f2(0x432)][_0x15e0f2(0x1f0)](_0x34a851))!=null?_0x108d31:void 0x0;}}const Pe=_0x30e940(0x1e1),wi=_0x30e940(0x202),Mi=_0x30e940(0x1af),oe=0x6,yi=1.5,Ue=0x4,Ni=1.5,Li=_0x30e940(0x319);class ot{constructor(_0x404492,_0x3eec4f,_0x2fb599,_0x382c08){const _0x2c3c55=_0x30e940;u(this,'_shapes',[]),u(this,_0x2c3c55(0x15a),null),u(this,_0x2c3c55(0x1d6),null),u(this,_0x2c3c55(0xdc),null),u(this,_0x2c3c55(0x29b),null),u(this,_0x2c3c55(0x425),null),(this[_0x2c3c55(0x260)]=_0x404492,this[_0x2c3c55(0x1aa)]=_0x3eec4f,this['_docSkeleton']=_0x2fb599,this[_0x2c3c55(0x271)]=_0x382c08,this[_0x2c3c55(0x1eb)]());}set[_0x30e940(0x449)](_0x1b8b40){const _0x17be04=_0x30e940;_0x1b8b40?(this[_0x17be04(0xdc)]&&this[_0x17be04(0xdc)]['hide'](),this[_0x17be04(0x1d6)]&&this[_0x17be04(0x1d6)][_0x17be04(0x157)]()):(this[_0x17be04(0xdc)]&&this[_0x17be04(0xdc)][_0x17be04(0x157)](),this[_0x17be04(0x1d6)]&&this[_0x17be04(0x1d6)][_0x17be04(0xbe)]());}[_0x30e940(0xc6)](){const _0x580f56=_0x30e940;for(const _0x539016 of this[_0x580f56(0x3f5)])_0x539016[_0x580f56(0xc6)]();this['_textBubble']&&this['_textBubble'][_0x580f56(0xc6)](),this[_0x580f56(0xdc)]&&this['_anchorDot'][_0x580f56(0xc6)](),this['_anchor']&&this['_anchor'][_0x580f56(0xc6)](),this[_0x580f56(0x425)]&&this[_0x580f56(0x425)]();}[_0x30e940(0x1eb)](){const _0x591b04=_0x30e940;var _0x4c30d1;const {_docSkeleton:_0x34bd9d,_document:_0x2e9856}=this,{color:_0x3b8912,name:_0x19100f,ranges:_0x4b310c}=this[_0x591b04(0x260)],_0x39e92d=_0x2e9856[_0x591b04(0x1a3)](),{docsLeft:_0x3aff84,docsTop:_0x51096f}=_0x39e92d,_0x56d369=new b[(_0x591b04(0x2e4))](_0x39e92d,_0x34bd9d);for(const {startOffset:_0x4ff51f,endOffset:_0xe4780a,collapsed:_0x25eb3f,isActive:_0x44aa8a}of _0x4b310c){const _0x5236b2=_0x34bd9d['findNodePositionByCharIndex'](_0x4ff51f),_0x1398e8=_0x34bd9d[_0x591b04(0x464)](_0xe4780a);if(_0x44aa8a){const {contentBoxPointGroup:_0x91f45e}=_0x56d369[_0x591b04(0x3be)](_0x1398e8,_0x1398e8);if(_0x91f45e[_0x591b04(0x3b8)]===0x0)continue;this['_drawAnchor'](_0x3b8912,_0x91f45e,_0x3aff84,_0x51096f,_0x19100f),this[_0x591b04(0x425)]=this[_0x591b04(0x1cc)]();}if(!_0x25eb3f&&_0x5236b2&&_0x1398e8){if(b[_0x591b04(0x44d)](_0x5236b2,_0x1398e8)){const _0x4737a1=new b[(_0x591b04(0x232))](_0x39e92d,_0x34bd9d),{pointGroup:_0xc3db9c}=(_0x4c30d1=_0x4737a1['getRangePointData'](_0x5236b2,_0x1398e8))!=null?_0x4c30d1:{};if(_0xc3db9c==null||_0xc3db9c[_0x591b04(0x3b8)]===0x0)continue;this[_0x591b04(0x97)](_0x3b8912,_0xc3db9c,_0x3aff84,_0x51096f);}else{const {contentBoxPointGroup:_0x4bb93d}=_0x56d369[_0x591b04(0x3be)](_0x5236b2,_0x1398e8);if(_0x4bb93d[_0x591b04(0x3b8)]===0x0)continue;this['_drawTextRange'](_0x3b8912,_0x4bb93d,_0x3aff84,_0x51096f);}}}}[_0x30e940(0x1f1)](_0xabf337,_0xe3739c,_0x57dedf,_0x64aa3f,_0x1d1ca8){const _0x59b4d9=_0x30e940,_0x56093b=this[_0x59b4d9(0x267)](_0xe3739c),{left:_0x217da7,top:_0x4ce852,height:_0x20ca89}=_0x56093b,_0x3532a1=this[_0x59b4d9(0x2b3)](),_0x21a47b=Ni/_0x3532a1,_0x3c5c27=new b['Rect'](Pe+o[_0x59b4d9(0x235)][_0x59b4d9(0x108)](oe),{'left':_0x217da7+_0x57dedf-_0x21a47b,'top':_0x4ce852+_0x64aa3f,'height':_0x20ca89,'width':yi,'fill':_0xabf337||b[_0x59b4d9(0x14d)](o[_0x59b4d9(0x1e9)]['black'],0x0),'strokeWidth':_0x21a47b,'stroke':Li,'evented':!0x0});this[_0x59b4d9(0x15a)]=_0x3c5c27,this[_0x59b4d9(0x1aa)][_0x59b4d9(0x33f)](_0x3c5c27,b[_0x59b4d9(0xf5)]);const _0x13cb84=new b[(_0x59b4d9(0x88))](Pe+o[_0x59b4d9(0x235)][_0x59b4d9(0x108)](oe),{'left':_0x217da7+_0x57dedf-_0x21a47b,'top':_0x4ce852+_0x64aa3f-Ue/0x2,'height':Ue,'width':Ue,'fill':_0xabf337||b['getColor'](o[_0x59b4d9(0x1e9)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xabf337||b[_0x59b4d9(0x14d)](o[_0x59b4d9(0x1e9)]['black'],0x0),'evented':!0x1});this[_0x59b4d9(0xdc)]=_0x13cb84,this[_0x59b4d9(0x1aa)][_0x59b4d9(0x33f)](_0x13cb84,b[_0x59b4d9(0xf5)]);const _0x3fa108=new Ce(Pe+o[_0x59b4d9(0x235)][_0x59b4d9(0x108)](oe),{'left':_0x217da7+_0x57dedf-_0x21a47b,'top':_0x4ce852+_0x64aa3f-le,'text':_0x1d1ca8,'color':_0xabf337});this[_0x59b4d9(0x1d6)]=_0x3fa108,this[_0x59b4d9(0x1aa)][_0x59b4d9(0x33f)](_0x3fa108,b[_0x59b4d9(0xf5)]),this['_hover']=!0x1;}[_0x30e940(0x1cc)](){const _0x5afb35=_0x30e940,_0x4ff50b=this[_0x5afb35(0x15a)][_0x5afb35(0x2be)][_0x5afb35(0x246)](()=>{const _0x3534dd=_0x5afb35;this[_0x3534dd(0x449)]=!0x0;}),_0x4032d5=this[_0x5afb35(0x15a)][_0x5afb35(0x1b4)][_0x5afb35(0x246)](()=>{const _0x4d48b9=_0x5afb35;this['_hideTimer']&&clearTimeout(this[_0x4d48b9(0x29b)]),this['_hideTimer']=setTimeout(()=>{const _0x46e2f8=_0x4d48b9;this[_0x46e2f8(0x449)]=!0x1;},0x7d0);});return()=>{const _0x1fc95e=_0x5afb35;_0x4ff50b['unsubscribe'](),_0x4032d5[_0x1fc95e(0xe4)]();};}['_drawTextRange'](_0x2dffb8,_0x8eeb19,_0x1d5bb3,_0x2b05a0){const _0x20e1d9=_0x30e940,_0x1ce886=new o[(_0x20e1d9(0x90))](_0x2dffb8)[_0x20e1d9(0x39c)](0.2)[_0x20e1d9(0x45e)](),_0x57d6b0=new b[(_0x20e1d9(0x282))](wi+o['Tools']['generateRandomId'](oe),{'pointsGroup':_0x8eeb19,'fill':_0x1ce886||b[_0x20e1d9(0x14d)](o['COLORS'][_0x20e1d9(0x3b1)],0.2),'left':_0x1d5bb3,'top':_0x2b05a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20e1d9(0x3f5)]['push'](_0x57d6b0),this['_scene'][_0x20e1d9(0x33f)](_0x57d6b0,b['TEXT_RANGE_LAYER_INDEX']);}[_0x30e940(0x97)](_0x4d21b0,_0x434d3b,_0x19be6f,_0x1f55f9){const _0x393b7e=_0x30e940,_0x531be9=new o[(_0x393b7e(0x90))](_0x4d21b0)[_0x393b7e(0x39c)](0.2)[_0x393b7e(0x45e)](),_0x2ba23e=new b[(_0x393b7e(0x282))](Mi+o[_0x393b7e(0x235)][_0x393b7e(0x108)](oe),{'pointsGroup':_0x434d3b,'fill':_0x531be9||b[_0x393b7e(0x14d)](o[_0x393b7e(0x1e9)][_0x393b7e(0x3b1)],0.2),'left':_0x19be6f,'top':_0x1f55f9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x393b7e(0x3f5)][_0x393b7e(0x220)](_0x2ba23e),this[_0x393b7e(0x1aa)][_0x393b7e(0x33f)](_0x2ba23e,b[_0x393b7e(0xf5)]);}[_0x30e940(0x267)](_0x4922d4){const _0x557d7a=_0x4922d4[0x0],_0x186813=_0x557d7a[0x0],_0x4f17cb=_0x557d7a[0x2],{x:_0x2f6ce7,y:_0xe66c11}=_0x186813,{x:_0x3b825e,y:_0xb978e6}=_0x4f17cb;return{'left':_0x2f6ce7,'top':_0xe66c11,'width':_0x3b825e-_0x2f6ce7,'height':_0xb978e6-_0xe66c11};}[_0x30e940(0x2b3)](){const _0x232179=_0x30e940,{scaleX:_0xdb81b1,scaleY:_0x33fb88}=this[_0x232179(0x1aa)][_0x232179(0x320)]();return Math['max'](_0xdb81b1,_0x33fb88);}}var Ai=Object[_0x30e940(0x36c)],ji=Object[_0x30e940(0x1a2)],$i=(_0x28bdff,_0x2b829a,_0xbb1698,_0x261613)=>{const _0x316461=_0x30e940;for(var _0x2f54e4=_0x261613>0x1?void 0x0:_0x261613?ji(_0x2b829a,_0xbb1698):_0x2b829a,_0x558600=_0x28bdff[_0x316461(0x3b8)]-0x1,_0x185ef3;_0x558600>=0x0;_0x558600--)(_0x185ef3=_0x28bdff[_0x558600])&&(_0x2f54e4=(_0x261613?_0x185ef3(_0x2b829a,_0xbb1698,_0x2f54e4):_0x185ef3(_0x2f54e4))||_0x2f54e4);return _0x261613&&_0x2f54e4&&Ai(_0x2b829a,_0xbb1698,_0x2f54e4),_0x2f54e4;},_e=(_0x50fcb4,_0x22c560)=>(_0x2f836c,_0x1c556a)=>_0x22c560(_0x2f836c,_0x1c556a,_0x50fcb4);let de=class extends o[_0x30e940(0x1cf)]{constructor(_0x32f699,_0x2def5a,_0x5ecb12,_0x28eda2,_0xf3cb15){const _0x388a0e=_0x30e940;super(),u(this,_0x388a0e(0x1b6),[]),u(this,'_cursors',[]),(this[_0x388a0e(0x21f)]=_0x32f699,this[_0x388a0e(0x40f)]=_0x2def5a,this['_collabCursorController']=_0x5ecb12,this[_0x388a0e(0x176)]=_0x28eda2,this['_themeService']=_0xf3cb15,this[_0x388a0e(0x2eb)]());}[_0x30e940(0x2eb)](){const _0x21dc06=_0x30e940,_0x5424d8=this[_0x21dc06(0x21f)][_0x21dc06(0x424)],_0x5e6c0e=this[_0x21dc06(0x40f)];this[_0x21dc06(0x22c)](v[_0x21dc06(0x24b)]([this['_collabCursorController']['getCollabCursors$'](_0x5424d8),this[_0x21dc06(0x41a)]['currentTheme$']])['pipe'](E[_0x21dc06(0x120)](([_0x48d6c1,_0x194b34])=>({'skeleton':_0x5e6c0e[_0x21dc06(0x1d1)](),'cursors':[..._0x48d6c1[_0x21dc06(0x14e)]()][_0x21dc06(0x159)](_0xc51a40=>({..._0xc51a40,'color':_0x194b34[_0xc51a40[_0x21dc06(0x1ea)]]}))})))['subscribe'](_0x1daa32=>{const _0x4e6dac=_0x21dc06;if(this[_0x4e6dac(0x269)](),_0x1daa32){const {skeleton:_0x26712d,cursors:_0xadb778}=_0x1daa32;this['_updateCollabCursors'](_0x26712d,_0xadb778);}})),this['_initResize'](),this[_0x21dc06(0x3c7)]();}['_updateCollabCursors'](_0xa5c7a3,_0x2b4233){const _0x5e0b0d=_0x30e940,{scene:_0x4b58b5,mainComponent:_0x1791b7}=this['_context'],_0x23df7d=_0x2b4233[_0x5e0b0d(0x120)](_0x391dbe=>new ot(_0x391dbe,_0x4b58b5,_0xa5c7a3,_0x1791b7));this[_0x5e0b0d(0x1b6)]=_0x23df7d,this[_0x5e0b0d(0x3f8)]=_0x2b4233;}[_0x30e940(0x338)](){const _0xb74949=_0x30e940;this[_0xb74949(0x269)]();const {scene:_0x1a617a,mainComponent:_0x4ddaee}=this[_0xb74949(0x21f)],_0x3976d4=this[_0xb74949(0x40f)][_0xb74949(0x1d1)](),_0x5a3f0d=this[_0xb74949(0x3f8)][_0xb74949(0x120)](_0x8bea7e=>new ot(_0x8bea7e,_0x1a617a,_0x3976d4,_0x4ddaee));this['_cursorShapes']=_0x5a3f0d;}[_0x30e940(0x269)](){const _0x56f66b=_0x30e940;this[_0x56f66b(0x1b6)][_0x56f66b(0x277)](_0x404843=>_0x404843[_0x56f66b(0xc6)]()),this[_0x56f66b(0x1b6)]=[];}['_initCommandExecutedListener'](){const _0x3fcdc8=_0x30e940,_0x34fdab=[P[_0x3fcdc8(0x27a)]['id']];this[_0x3fcdc8(0x22c)](this[_0x3fcdc8(0x176)][_0x3fcdc8(0xd2)](_0x418f8c=>{const _0x29dba2=_0x3fcdc8;_0x34fdab[_0x29dba2(0x1e5)](_0x418f8c['id'])&&_0x418f8c[_0x29dba2(0x20b)][_0x29dba2(0x424)]===this[_0x29dba2(0x21f)][_0x29dba2(0x424)]&&this[_0x29dba2(0x338)]();}));}['_initResize'](){const _0x2fc3de=_0x30e940;this['disposeWithMe'](o[_0x2fc3de(0x2f9)](this['_context']['engine']['onTransformChange$'])[_0x2fc3de(0x2a9)](E[_0x2fc3de(0x20a)](_0x55c69d=>_0x55c69d[_0x2fc3de(0x312)]===b[_0x2fc3de(0x20f)][_0x2fc3de(0x41f)]),E[_0x2fc3de(0x3ba)](0x10))[_0x2fc3de(0x196)](()=>{const _0x4faa7e=_0x2fc3de;this[_0x4faa7e(0x338)]();}));}};de=$i([o['OnLifecycle'](o[_0x30e940(0x40e)]['Steady'],de),_e(0x1,o[_0x30e940(0xdf)](P[_0x30e940(0xd7)])),_e(0x2,o[_0x30e940(0xdf)](Z)),_e(0x3,o[_0x30e940(0x1c8)]),_e(0x4,o[_0x30e940(0xdf)](o[_0x30e940(0xf3)]))],de);var xi=Object[_0x30e940(0x36c)],Hi=Object[_0x30e940(0x1a2)],ki=(_0x579e87,_0xbe6e9a,_0x5cdc85,_0x3a441a)=>{const _0xeda87b=_0x30e940;for(var _0x1643dd=_0x3a441a>0x1?void 0x0:_0x3a441a?Hi(_0xbe6e9a,_0x5cdc85):_0xbe6e9a,_0x25f4d0=_0x579e87[_0xeda87b(0x3b8)]-0x1,_0x309089;_0x25f4d0>=0x0;_0x25f4d0--)(_0x309089=_0x579e87[_0x25f4d0])&&(_0x1643dd=(_0x3a441a?_0x309089(_0xbe6e9a,_0x5cdc85,_0x1643dd):_0x309089(_0x1643dd))||_0x1643dd);return _0x3a441a&&_0x1643dd&&xi(_0xbe6e9a,_0x5cdc85,_0x1643dd),_0x1643dd;},we=(_0x38ea33,_0x43831c)=>(_0x59e2af,_0x47013b)=>_0x43831c(_0x59e2af,_0x47013b,_0x38ea33);let Ie=class{constructor(_0x2b6874,_0x3d421f,_0xbec2b){const _0x1a1f12=_0x30e940;this[_0x1a1f12(0x160)]=_0x2b6874,this[_0x1a1f12(0x19a)]=_0x3d421f,this[_0x1a1f12(0x44b)]=_0xbec2b,this[_0x1a1f12(0x30e)]();}[_0x30e940(0x30e)](){const _0x359960=_0x30e940;this[_0x359960(0x19a)][_0x359960(0x1d2)]({'priority':0x1,'interceptor':(_0x50d65d,_0x1b1b50)=>_0x1b1b50(_0x50d65d)[_0x359960(0x2a9)](v[_0x359960(0xd9)](async _0x277973=>{const _0x6f3359=_0x359960,_0x267c2e=_0x277973;if(_0x267c2e[_0x6f3359(0x1de)]===0x191&&window[_0x6f3359(0x193)](this[_0x6f3359(0x44b)]['t'](_0x6f3359(0xcc)))){const _0x24ed0f=window[_0x6f3359(0xe0)](window[_0x6f3359(0x3de)][_0x6f3359(0xb8)]);window[_0x6f3359(0x3de)][_0x6f3359(0xb8)]=this[_0x6f3359(0x247)]()+_0x6f3359(0x167)+_0x24ed0f;}return _0x267c2e;}))});}[_0x30e940(0x247)](){const _0x5f4db0=_0x30e940;var _0x3f9635;return(_0x3f9635=this[_0x5f4db0(0x160)][_0x5f4db0(0xfc)](mt))!=null?_0x3f9635:Zt;}};Ie=ki([we(0x0,o[_0x30e940(0x306)]),we(0x1,o[_0x30e940(0xdf)](U['HTTPService'])),we(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)]))],Ie);var Bi=Object[_0x30e940(0x36c)],Vi=Object[_0x30e940(0x1a2)],Wi=(_0x26ce9d,_0x1773ce,_0x5de267,_0x4b986b)=>{const _0x3bf628=_0x30e940;for(var _0x2c1b32=_0x4b986b>0x1?void 0x0:_0x4b986b?Vi(_0x1773ce,_0x5de267):_0x1773ce,_0x3c680a=_0x26ce9d[_0x3bf628(0x3b8)]-0x1,_0x1cff10;_0x3c680a>=0x0;_0x3c680a--)(_0x1cff10=_0x26ce9d[_0x3c680a])&&(_0x2c1b32=(_0x4b986b?_0x1cff10(_0x1773ce,_0x5de267,_0x2c1b32):_0x1cff10(_0x2c1b32))||_0x2c1b32);return _0x4b986b&&_0x2c1b32&&Bi(_0x1773ce,_0x5de267,_0x2c1b32),_0x2c1b32;},at=(_0x31d631,_0x12b22b)=>(_0x915da4,_0x731cfc)=>_0x12b22b(_0x915da4,_0x731cfc,_0x31d631);const Mt=_0x30e940(0x301),Fi='/universer-api/authz';exports[_0x30e940(0x40b)]=class extends o[_0x30e940(0x3c3)]{constructor(_0x4bf0ab,_0x515cd0){const _0x220e29=_0x30e940;super(),this['_HTTPService']=_0x4bf0ab,this['_configService']=_0x515cd0,this[_0x220e29(0x3fb)]();}[_0x30e940(0x3fb)](){const _0x33ca5d=_0x30e940,_0x158903=this;this[_0x33ca5d(0x22c)](this['_HTTPService'][_0x33ca5d(0x1d2)]({'priority':0x3e7,'interceptor':U['MergeInterceptorFactory']({'isMatch'(_0x817a88){const _0x256525=_0x33ca5d;var _0x8501f0;if(_0x817a88[_0x256525(0x3bb)]==='POST'&&((_0x8501f0=_0x817a88[_0x256525(0x1bc)])!=null&&_0x8501f0['body'])){const {objectID:_0x247dbd,objectType:_0x31b752}=_0x817a88[_0x256525(0x1bc)][_0x256525(0x3db)]||{};if(!_0x247dbd||_0x31b752===void 0x0)return!0x1;const _0x3a5ff4=_0x158903[_0x256525(0x1ce)]()+'/'+_0x31b752+_0x256525(0x363)+_0x247dbd+'/allowed';if(_0x817a88[_0x256525(0x169)]===_0x3a5ff4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4d8052){const _0x57e71f=_0x33ca5d;var _0x5918c4;return(_0x5918c4=_0x4d8052[_0x57e71f(0x1bc)])==null?void 0x0:_0x5918c4[_0x57e71f(0x3db)];},'mergeParamsToRequest'(_0x5f10f9,_0x2ca4bb){const _0x303bec=_0x33ca5d,_0x53c7f4=_0x158903[_0x303bec(0x1ce)]()+_0x303bec(0x43e),_0x3d7e0d=_0x5f10f9[_0x303bec(0x29d)]((_0x38a3a7,_0x26314e)=>{const {unitID:_0x1595ce,objectID:_0x307676,objectType:_0x35dc5c,actions:_0xd97638}=_0x26314e;return _0x38a3a7[_0x1595ce]||(_0x38a3a7[_0x1595ce]={}),_0x38a3a7[_0x1595ce][_0x307676]||(_0x38a3a7[_0x1595ce][_0x307676]={'objectID':_0x307676,'objectType':_0x35dc5c,'actions':[]}),_0x38a3a7[_0x1595ce][_0x307676]['actions']['push'](..._0xd97638),_0x38a3a7;},{}),_0x31a79c=[];for(const _0x2dde98 in _0x3d7e0d)for(const _0x323f76 in _0x3d7e0d[_0x2dde98]){const {actions:_0x486327,objectType:_0x4f99e9}=_0x3d7e0d[_0x2dde98][_0x323f76],_0x34423a=[...new Set(_0x486327)];_0x31a79c[_0x303bec(0x220)]({'unitID':_0x2dde98,'objectID':_0x323f76,'objectType':_0x4f99e9,'actions':_0x34423a});}return new U[(_0x303bec(0x40d))](_0x303bec(0x177),_0x53c7f4,{'headers':_0x2ca4bb[_0x303bec(0x43d)],'withCredentials':_0x2ca4bb[_0x303bec(0x17c)],'responseType':_0x2ca4bb[_0x303bec(0x3a1)],'body':{'requests':_0x31a79c}});}},{'distributeResult'(_0x4b37bf,_0x525878){const _0x365952=_0x33ca5d,{objectActions:_0x3b140b}=_0x4b37bf;return _0x525878[_0x365952(0x120)](_0x384086=>{const _0x1c93d6=_0x365952,{unitID:_0x240c9a,objectID:_0x3a488a,actions:_0x55f8c3}=_0x384086,_0x10eb60=_0x3b140b[_0x1c93d6(0x32e)](_0x530c27=>_0x530c27[_0x1c93d6(0x1e6)]===_0x240c9a&&_0x530c27[_0x1c93d6(0x150)]===_0x3a488a),_0x5b4802=_0x55f8c3[_0x1c93d6(0x120)](_0x1a9e96=>_0x10eb60==null?void 0x0:_0x10eb60[_0x1c93d6(0x256)][_0x1c93d6(0x32e)](_0x33f0ee=>_0x33f0ee[_0x1c93d6(0x1b0)]===_0x1a9e96))['filter'](_0x263d3e=>!!_0x263d3e);return{'config':_0x384086,'result':{'actions':_0x5b4802,'error':_0x4b37bf['error']}};});}})}));}[_0x30e940(0x1ce)](){const _0x109b33=_0x30e940;var _0x4c32f4;return(_0x4c32f4=this[_0x109b33(0x160)][_0x109b33(0xfc)](Mt))!=null?_0x4c32f4:Fi;}async[_0x30e940(0xab)](_0x49426d){const _0x5f343b=_0x30e940,_0x314803=this[_0x5f343b(0x1ce)]()+'/'+_0x49426d[_0x5f343b(0x3e4)]+_0x5f343b(0x251);return(await this[_0x5f343b(0x122)][_0x5f343b(0x35c)](_0x314803,{'body':_0x49426d}))[_0x5f343b(0x3db)][_0x5f343b(0x150)]||'';}async[_0x30e940(0x1ec)](_0x45d607){const _0x58cc5a=_0x30e940,_0x48a32e=this[_0x58cc5a(0x1ce)]()+_0x58cc5a(0x397);return(await this[_0x58cc5a(0x122)][_0x58cc5a(0x35c)](_0x48a32e,{'body':_0x45d607}))[_0x58cc5a(0x3db)][_0x58cc5a(0x402)];}async[_0x30e940(0x2c8)](_0x59012e){const _0x20d856=_0x30e940,_0xd477ca=this[_0x20d856(0x1ce)]()+'/'+_0x59012e['objectType']+'/object/'+_0x59012e[_0x20d856(0x150)];await this[_0x20d856(0x122)]['put'](_0xd477ca,{'body':_0x59012e});}async[_0x30e940(0x11e)](_0x26cfb9){const _0x419856=_0x30e940,_0x2a9443=this[_0x419856(0x1ce)]()+'/'+_0x26cfb9['objectType']+_0x419856(0x363)+_0x26cfb9[_0x419856(0x150)]+'/allowed';return(await this[_0x419856(0x122)][_0x419856(0x35c)](_0x2a9443,{'body':_0x26cfb9}))['body'][_0x419856(0x256)];}async[_0x30e940(0x116)](_0x19924e){const _0x47e16c=_0x30e940,_0x372ec0=this[_0x47e16c(0x1ce)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService']['post'](_0x372ec0,{'body':{'requests':_0x19924e}}))[_0x47e16c(0x3db)][_0x47e16c(0x349)];}async[_0x30e940(0x2b6)](_0x377a05){const _0x5c5a92=_0x30e940,_0x10b1e7=this[_0x5c5a92(0x1ce)]()+'/'+_0x377a05[_0x5c5a92(0x3e4)]+'/role',_0x229b96=await this[_0x5c5a92(0x122)]['post'](_0x10b1e7,{'body':_0x377a05});return{'roles':_0x229b96[_0x5c5a92(0x3db)]['roles'],'actions':_0x229b96[_0x5c5a92(0x3db)]['actions']};}async[_0x30e940(0x31e)](_0x49cf5b){const _0x535a6c=_0x30e940,_0x36cea1=this[_0x535a6c(0x1ce)]()+_0x535a6c(0x1bd);await this['_HTTPService'][_0x535a6c(0x244)](_0x36cea1,{'params':{'collaboratorID':_0x49cf5b[_0x535a6c(0x17b)],'objectID':_0x49cf5b[_0x535a6c(0x150)],'unitID':_0x49cf5b['unitID']}});}async[_0x30e940(0x2e2)](_0x4f78bf){const _0x48c196=_0x30e940,_0x6b2c65=this[_0x48c196(0x1ce)]()+_0x48c196(0x1bd);await this[_0x48c196(0x122)][_0x48c196(0x1cb)](_0x6b2c65,{'body':_0x4f78bf});}async['createCollaborator'](_0x14ef2b){const _0x5ee571=_0x30e940,_0x77c52b=this['_getAPIPrefixPath']()+_0x5ee571(0x1bd);await this[_0x5ee571(0x122)]['post'](_0x77c52b,{'body':_0x14ef2b});}async['listCollaborators'](_0x3bd1da){const _0x499fd=_0x30e940,_0x3b49ec=this[_0x499fd(0x1ce)]()+_0x499fd(0x1bd);return(await this[_0x499fd(0x122)][_0x499fd(0x1f0)](_0x3b49ec,{'params':{'objectID':_0x3bd1da[_0x499fd(0x150)],'unitID':_0x3bd1da['unitID']}}))[_0x499fd(0x3db)][_0x499fd(0x3d5)];}async['putCollaborators'](_0x3f3802){const _0x53411c=_0x30e940,_0x2f4ec1=this['_getAPIPrefixPath']()+_0x53411c(0x1bd);await this['_HTTPService'][_0x53411c(0x2e6)](_0x2f4ec1,{'body':_0x3f3802});}},exports[_0x30e940(0x40b)]=Wi([at(0x0,o[_0x30e940(0xdf)](U[_0x30e940(0x181)])),at(0x1,o[_0x30e940(0xdf)](o[_0x30e940(0x306)]))],exports[_0x30e940(0x40b)]);var Gi=Object[_0x30e940(0x36c)],Yi=Object[_0x30e940(0x1a2)],Ki=(_0x439cd4,_0x4770b0,_0x537016,_0x16ff2f)=>{const _0x12ccc0=_0x30e940;for(var _0x41b9c8=_0x16ff2f>0x1?void 0x0:_0x16ff2f?Yi(_0x4770b0,_0x537016):_0x4770b0,_0x3b65fc=_0x439cd4[_0x12ccc0(0x3b8)]-0x1,_0x10a2be;_0x3b65fc>=0x0;_0x3b65fc--)(_0x10a2be=_0x439cd4[_0x3b65fc])&&(_0x41b9c8=(_0x16ff2f?_0x10a2be(_0x4770b0,_0x537016,_0x41b9c8):_0x10a2be(_0x41b9c8))||_0x41b9c8);return _0x16ff2f&&_0x41b9c8&&Gi(_0x4770b0,_0x537016,_0x41b9c8),_0x41b9c8;},Me=(_0x5efd63,_0x28148e)=>(_0x2fb968,_0x1fa9ea)=>_0x28148e(_0x2fb968,_0x1fa9ea,_0x5efd63);const Xi=[_0x30e940(0xad),_0x30e940(0x206),_0x30e940(0x3ee),_0x30e940(0xf4),_0x30e940(0x39d)],qi=0x5*0x400*0x400,zi=_0x30e940(0x2cd),Ji=_0x30e940(0x3d8),Zi=_0x30e940(0x128),Qi='/universer-api/file/{fileID}/sign-url';exports['ImageIoService']=class{constructor(_0x515f89,_0x4041d7,_0xdcddc8){const _0x4e0ea8=_0x30e940;u(this,_0x4e0ea8(0xa2),0x0),u(this,_0x4e0ea8(0x1b9),new v[(_0x4e0ea8(0x457))]()),u(this,_0x4e0ea8(0x38b),this[_0x4e0ea8(0x1b9)]),u(this,_0x4e0ea8(0xc0),new Map()),(this[_0x4e0ea8(0x19a)]=_0x515f89,this[_0x4e0ea8(0x160)]=_0x4041d7,this['_univerInstanceService']=_0xdcddc8);}['setWaitCount'](_0x54366c){const _0x2cd80a=_0x30e940;this[_0x2cd80a(0xa2)]=_0x54366c,this['_change$'][_0x2cd80a(0x46e)](_0x54366c);}[_0x30e940(0x2e7)](_0x193c5c,_0x1e3714){const _0x53c098=_0x30e940;if(_0x1e3714===A[_0x53c098(0x1c5)][_0x53c098(0x1ca)]){const _0x198f94=new Image();return _0x198f94[_0x53c098(0x321)]=_0x193c5c,_0x198f94;}return this[_0x53c098(0xc0)][_0x53c098(0x1f0)](_0x193c5c);}[_0x30e940(0x3cc)](_0x2a5944,_0x161982,_0xc4bd49){const _0x45b334=_0x30e940;_0x161982===A[_0x45b334(0x1c5)][_0x45b334(0x1ca)]||_0xc4bd49==null||this['_imageSourceCache'][_0x45b334(0x346)](_0x2a5944,_0xc4bd49);}async[_0x30e940(0x368)](_0x2e057b){const _0x1d1515=_0x30e940;try{const _0x586d03=this[_0x1d1515(0x1bb)](this[_0x1d1515(0x109)](),''+_0x2e057b),_0x451578=(await this[_0x1d1515(0x19a)][_0x1d1515(0x1f0)](_0x586d03))[_0x1d1515(0x3db)];return _0x451578[_0x1d1515(0xf0)]&&_0x451578[_0x1d1515(0xf0)][_0x1d1515(0x161)]===gt['OK']?Promise[_0x1d1515(0xb5)](_0x451578['url']):Promise[_0x1d1515(0x406)](_0x451578[_0x1d1515(0xf0)]);}catch(_0x1684f7){return Promise[_0x1d1515(0x406)](_0x1684f7);}}async[_0x30e940(0x467)](_0x31f061){const _0x5f540f=_0x30e940;let _0xbb56c='';if(!Xi[_0x5f540f(0x1e5)](_0x31f061[_0x5f540f(0x312)]))return this[_0x5f540f(0x170)](),Promise[_0x5f540f(0x406)](new Error(A['ImageUploadStatusType'][_0x5f540f(0x38f)]));if(_0x31f061[_0x5f540f(0x2f3)]>qi)return this[_0x5f540f(0x170)](),Promise['reject'](new Error(A[_0x5f540f(0x178)][_0x5f540f(0x10e)]));try{const _0x337a38=new FormData();_0x337a38[_0x5f540f(0x259)](_0x5f540f(0x8b),_0x31f061);const _0x33063b=this[_0x5f540f(0x43f)][_0x5f540f(0x469)](),_0x381e77=_0x33063b==null?void 0x0:_0x33063b[_0x5f540f(0x280)]();if(!_0x381e77)throw new Error('unitId\x20is\x20not\x20found');const _0x130797=this['_getUploadFileURL']()+_0x5f540f(0x1d5)+_0x31f061['size'][_0x5f540f(0x451)]()+_0x5f540f(0xee)+ft[_0x5f540f(0x2bf)]+_0x5f540f(0x1ac)+encodeURIComponent(_0x381e77),_0x1f47d2=await(await fetch(_0x130797,{'method':_0x5f540f(0x177),'body':_0x337a38}))[_0x5f540f(0x354)]();if(typeof _0x1f47d2['FileId']!=_0x5f540f(0x1d3))return this[_0x5f540f(0x170)](),Promise[_0x5f540f(0x406)](new Error(A[_0x5f540f(0x178)][_0x5f540f(0x35b)]));_0xbb56c=_0x1f47d2['FileId'];}catch{return this[_0x5f540f(0x170)](),Promise['reject'](new Error(A['ImageUploadStatusType'][_0x5f540f(0x35b)]));}return new Promise((_0xc0e88b,_0x2b93ca)=>{const _0x5672f1=_0x5f540f,_0x7ff4da=new FileReader();_0x7ff4da[_0x5672f1(0x45d)](_0x31f061),_0x7ff4da['onload']=_0x55bf13=>{const _0x4f1bee=_0x5672f1;var _0x5f9122;const _0x412d4c=(_0x5f9122=_0x55bf13[_0x4f1bee(0x15f)])==null?void 0x0:_0x5f9122['result'];if(_0x412d4c==null){this[_0x4f1bee(0x170)](),_0x2b93ca(new Error(A['ImageUploadStatusType']['ERROR_IMAGE']));return;}const _0x58a808=o[_0x4f1bee(0x235)][_0x4f1bee(0x108)](0x6);_0xc0e88b({'imageId':_0x58a808,'imageSourceType':A[_0x4f1bee(0x1c5)]['UUID'],'source':_0xbb56c,'base64Cache':_0x412d4c,'status':A['ImageUploadStatusType'][_0x4f1bee(0x22b)]}),this[_0x4f1bee(0x170)]();};});}[_0x30e940(0x33c)](){const _0x1ef51a=_0x30e940;var _0x43c45b;return(_0x43c45b=this['_configService'][_0x1ef51a(0xfc)](zi))!=null?_0x43c45b:Ji;}[_0x30e940(0x109)](){const _0x371a6f=_0x30e940;var _0x40f3dc;return(_0x40f3dc=this[_0x371a6f(0x160)][_0x371a6f(0xfc)](Zi))!=null?_0x40f3dc:Qi;}['_replaceFileID'](_0x5f0c93,_0x3f69a7){const _0x3b449e=_0x30e940;return _0x5f0c93['replace'](_0x3b449e(0x2ef),_0x3f69a7);}[_0x30e940(0x170)](){const _0x3f2868=_0x30e940;this[_0x3f2868(0xa2)]-=0x1,this[_0x3f2868(0x1b9)][_0x3f2868(0x46e)](this[_0x3f2868(0xa2)]);}},exports[_0x30e940(0x18d)]=Ki([Me(0x0,o[_0x30e940(0xdf)](U['HTTPService'])),Me(0x1,o['IConfigService']),Me(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0x233)]))],exports[_0x30e940(0x18d)]);var en=Object[_0x30e940(0x36c)],tn=Object[_0x30e940(0x1a2)],sn=(_0x34e902,_0x2b15ba,_0x4cd29d,_0xcf9fd6)=>{for(var _0x9a6bf4=_0xcf9fd6>0x1?void 0x0:_0xcf9fd6?tn(_0x2b15ba,_0x4cd29d):_0x2b15ba,_0x526820=_0x34e902['length']-0x1,_0x592ec2;_0x526820>=0x0;_0x526820--)(_0x592ec2=_0x34e902[_0x526820])&&(_0x9a6bf4=(_0xcf9fd6?_0x592ec2(_0x2b15ba,_0x4cd29d,_0x9a6bf4):_0x592ec2(_0x9a6bf4))||_0x9a6bf4);return _0xcf9fd6&&_0x9a6bf4&&en(_0x2b15ba,_0x4cd29d,_0x9a6bf4),_0x9a6bf4;},ae=(_0x2bc5c8,_0x267ee3)=>(_0x4e1950,_0x5cd71a)=>_0x267ee3(_0x4e1950,_0x5cd71a,_0x2bc5c8);let Se=class extends o[_0x30e940(0x1cf)]{constructor(_0x8f3b4f,_0x435828,_0x26464d,_0x24b30e,_0x4d607b){const _0x1f18e0=_0x30e940;super(),this[_0x1f18e0(0x137)]=_0x8f3b4f,this[_0x1f18e0(0x43f)]=_0x435828,this[_0x1f18e0(0x153)]=_0x26464d,this[_0x1f18e0(0x393)]=_0x24b30e,this[_0x1f18e0(0x45b)]=_0x4d607b,this[_0x1f18e0(0x1ba)](),this[_0x1f18e0(0x2d4)]();}[_0x30e940(0x2d4)](){const _0x258e75=_0x30e940,_0x42b58d=async _0x56137e=>{const _0x4e04fd=_0x3b20;(await this[_0x4e04fd(0x393)][_0x4e04fd(0x470)](_0x56137e))[_0x4e04fd(0x199)][_0x4e04fd(0x2a9)](E['filter'](_0xd176df=>_0xd176df[_0x4e04fd(0x15d)]===_['CollaborationEvent'][_0x4e04fd(0xd1)]),E[_0x4e04fd(0x3a8)](this[_0x4e04fd(0x2b1)]))[_0x4e04fd(0x196)](_0x384b05=>{const _0x1a711c=_0x4e04fd,_0x2094a8=_0x384b05,{reason:_0x58f6d4}=_0x2094a8[_0x1a711c(0x10a)];this[_0x1a711c(0x137)][_0x1a711c(0x1f0)](L[_0x1a711c(0x3d3)])[_0x1a711c(0x157)]({'type':Q[_0x1a711c(0x187)]['Error'],'content':this[_0x1a711c(0x45b)]['t'](_0x1a711c(0x326))+'('+_0x58f6d4+')'}),this[_0x1a711c(0x153)][_0x1a711c(0x289)](new p[(_0x1a711c(0x458))](_0x56137e)['id'],!0x1),this[_0x1a711c(0x393)][_0x1a711c(0x2c4)](_0x56137e);});};v[_0x258e75(0xbd)](this[_0x258e75(0x43f)][_0x258e75(0xc5)](o['UniverInstanceType'][_0x258e75(0x390)]),this[_0x258e75(0x43f)]['getTypeOfUnitAdded$'](o[_0x258e75(0x37c)]['UNIVER_DOC']))[_0x258e75(0x2a9)](E[_0x258e75(0x120)](_0xce947e=>_0xce947e[_0x258e75(0x280)]()),E['filter'](_0x79e230=>!o['isInternalEditorID'](_0x79e230)),E[_0x258e75(0x3a8)](this[_0x258e75(0x2b1)]))[_0x258e75(0x196)](_0xd68bd1=>{_0x42b58d(_0xd68bd1);});}[_0x30e940(0x1ba)](){const _0x3ead4a=_0x30e940,_0x35048e=async _0x46b175=>{const _0xe8a9ee=_0x3b20;(await this[_0xe8a9ee(0x393)]['requireSession'](_0x46b175))[_0xe8a9ee(0x199)][_0xe8a9ee(0x2a9)](E[_0xe8a9ee(0x20a)](_0x27f0fa=>_0x27f0fa['eventID']===_['CollaborationEvent'][_0xe8a9ee(0x1a6)]),E[_0xe8a9ee(0x3a8)](this[_0xe8a9ee(0x2b1)]))[_0xe8a9ee(0x196)](_0x3b90c6=>{const _0xdf8bbb=_0xe8a9ee,_0x268f35=_0x3b90c6,{objectId:_0x5b1198}=_0x268f35[_0xdf8bbb(0x10a)],_0x47d307=this['_injector'][_0xdf8bbb(0x1f0)](J[_0xdf8bbb(0x221)]);_0x5b1198===_0x46b175?_0x47d307['initWorkbookPermissionChange'](_0x46b175):_0x47d307[_0xdf8bbb(0x149)](_0x46b175,_0x5b1198);});};v['merge'](this[_0x3ead4a(0x43f)][_0x3ead4a(0xc5)](o[_0x3ead4a(0x37c)]['UNIVER_SHEET']),this[_0x3ead4a(0x43f)][_0x3ead4a(0xc5)](o['UniverInstanceType']['UNIVER_DOC']))['pipe'](E[_0x3ead4a(0x120)](_0x21274b=>_0x21274b['getUnitId']()),E[_0x3ead4a(0x20a)](_0xe96b4d=>!o[_0x3ead4a(0x10b)](_0xe96b4d)),E['takeUntil'](this[_0x3ead4a(0x2b1)]))[_0x3ead4a(0x196)](_0x2755c9=>{_0x35048e(_0x2755c9);});}};Se=sn([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],Se),ae(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),ae(0x1,o[_0x30e940(0x233)]),ae(0x2,o[_0x30e940(0x3b7)]),ae(0x3,o['Inject'](exports[_0x30e940(0x373)])),ae(0x4,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)]))],Se);var yt=Object[_0x30e940(0x36c)],nn=Object[_0x30e940(0x1a2)],rn=(_0x3864ca,_0x57d579,_0x57ff29)=>_0x57d579 in _0x3864ca?yt(_0x3864ca,_0x57d579,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57ff29}):_0x3864ca[_0x57d579]=_0x57ff29,on=(_0x3b4f17,_0x25353f,_0x4f51c7,_0x295861)=>{const _0x565c77=_0x30e940;for(var _0xe1f273=_0x295861>0x1?void 0x0:_0x295861?nn(_0x25353f,_0x4f51c7):_0x25353f,_0x41601c=_0x3b4f17[_0x565c77(0x3b8)]-0x1,_0x29a4f2;_0x41601c>=0x0;_0x41601c--)(_0x29a4f2=_0x3b4f17[_0x41601c])&&(_0xe1f273=(_0x295861?_0x29a4f2(_0x25353f,_0x4f51c7,_0xe1f273):_0x29a4f2(_0xe1f273))||_0xe1f273);return _0x295861&&_0xe1f273&&yt(_0x25353f,_0x4f51c7,_0xe1f273),_0xe1f273;},ye=(_0x37fbb5,_0x126231)=>(_0x282a38,_0x34fa29)=>_0x126231(_0x282a38,_0x34fa29,_0x37fbb5),an=(_0x435b9e,_0x22e60b,_0x2e0123)=>rn(_0x435b9e,_0x22e60b+'',_0x2e0123);const cn=_0x30e940(0xd6);exports[_0x30e940(0x3c6)]=class extends o[_0x30e940(0x14a)]{constructor(_0x433a8e,_0x4d48b1,_0x23f97b,_0x458fcb){const _0x3685ae=_0x30e940;super(),this[_0x3685ae(0x428)]=_0x433a8e,this['_logService']=_0x4d48b1,this['_renderManagerService']=_0x23f97b,this['_injector']=_0x458fcb;}[_0x30e940(0x104)](){const _0x5b9390=_0x30e940;this[_0x5b9390(0x394)]();}[_0x30e940(0x376)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x10f36f=_0x30e940;var _0x279a06,_0x3c44ee,_0x4a5768,_0x45fc7f;this[_0x10f36f(0x137)][_0x10f36f(0x45c)](o[_0x10f36f(0x17f)])&&this['_logService'][_0x10f36f(0xf0)](_0x10f36f(0x3c9),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0xc2e3fa=[[o[_0x10f36f(0x17f)],{'useClass':$e}],[exports[_0x10f36f(0x373)]],[Fe],[U['HTTPService']],[Ye,{'useClass':wt}],[Y],[exports[_0x10f36f(0x227)]],[U[_0x10f36f(0x350)]],[ge],[me],[ve],[We],[Ie],[Ve],[Se],[Be,{'useClass':(_0x3c44ee=(_0x279a06=this['_config'])==null?void 0x0:_0x279a06[_0x10f36f(0xb4)])!=null?_0x3c44ee:exports['CollaborationSocketService']}],[U['IHTTPImplementation'],{'useClass':U[_0x10f36f(0xda)]}],[_[_0x10f36f(0x237)],{'useClass':exports[_0x10f36f(0x41c)]}],[o[_0x10f36f(0xa3)],{'useClass':exports[_0x10f36f(0x40b)]}],[A[_0x10f36f(0x3b5)],{'useClass':exports[_0x10f36f(0x18d)]}],[exports['CollaborationController']],[exports[_0x10f36f(0x385)]],[exports[_0x10f36f(0x18b)]],[ue],[Z]];(_0x4a5768=this[_0x10f36f(0x428)])!=null&&_0x4a5768[_0x10f36f(0x352)]&&_0xc2e3fa[_0x10f36f(0x220)]([pe,{'useClass':us}]),_0xc2e3fa=o[_0x10f36f(0x13b)](_0xc2e3fa,(_0x45fc7f=this[_0x10f36f(0x428)])==null?void 0x0:_0x45fc7f[_0x10f36f(0x127)]),_0xc2e3fa[_0x10f36f(0x277)](_0x5660db=>this[_0x10f36f(0x137)]['add'](_0x5660db)),this[_0x10f36f(0x10d)]();}[_0x30e940(0x9f)](){const _0x4e1384=_0x30e940;this[_0x4e1384(0x22c)](this[_0x4e1384(0x115)][_0x4e1384(0x265)](o['UniverInstanceType'][_0x4e1384(0x1f4)],[de])),this[_0x4e1384(0x22c)](this[_0x4e1384(0x115)][_0x4e1384(0x265)](o[_0x4e1384(0x37c)][_0x4e1384(0x390)],[je]));}['_initModules'](){const _0x131102=_0x30e940;var _0x28554b,_0x35f55c;this['_injector']['get'](U[_0x131102(0x181)])[_0x131102(0x1d2)]({'priority':0x14,'interceptor':U[_0x131102(0x24e)]({'maxParallel':0x6})}),(_0x28554b=this[_0x131102(0x428)])!=null&&_0x28554b[_0x131102(0x1a9)]||this['_injector'][_0x131102(0x1f0)](exports[_0x131102(0x227)])[_0x131102(0x422)](),(_0x35f55c=this[_0x131102(0x428)])!=null&&_0x35f55c[_0x131102(0x26e)]&&this[_0x131102(0x137)][_0x131102(0x1f0)](Ie);}},an(exports[_0x30e940(0x3c6)],_0x30e940(0x10f),cn),exports['UniverCollaborationClientPlugin']=on([o[_0x30e940(0x25d)](_['UniverCollaborationPlugin']),ye(0x1,o[_0x30e940(0x1e7)]),ye(0x2,b[_0x30e940(0x1f2)]),ye(0x3,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)]))],exports[_0x30e940(0x3c6)]),exports[_0x30e940(0x301)]=Mt,exports[_0x30e940(0x219)]=vt,exports[_0x30e940(0x3b9)]=_t,exports[_0x30e940(0x386)]=D,exports[_0x30e940(0x2fc)]=Ut,exports[_0x30e940(0x172)]=Ve,exports[_0x30e940(0x107)]=ut,exports[_0x30e940(0x408)]=He,exports[_0x30e940(0x203)]=Be,exports[_0x30e940(0x401)]=Ye,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports['LOGIN_URL_KEY']=mt,exports[_0x30e940(0x2de)]=ht,exports[_0x30e940(0x162)]=ct,exports[_0x30e940(0x36e)]=lt,exports[_0x30e940(0x16c)]=G,exports[_0x30e940(0x250)]=Rt,exports[_0x30e940(0x342)]=wt,exports[_0x30e940(0x414)]=It,exports[_0x30e940(0x32a)]=pt;