@univerjs-pro/collaboration-client 0.2.11 → 0.2.13

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.
Files changed (29) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/locale/en-US.json +5 -0
  4. package/lib/locale/ru-RU.json +5 -0
  5. package/lib/locale/vi-VN.json +5 -0
  6. package/lib/locale/zh-CN.json +11 -6
  7. package/lib/locale/zh-TW.json +5 -0
  8. package/lib/types/config/config.d.ts +1 -1
  9. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -1
  10. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +1 -1
  11. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +1 -1
  12. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -9
  13. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +87 -0
  14. package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -2
  15. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +4 -88
  16. package/lib/types/controllers/config.schema.d.ts +5 -0
  17. package/lib/types/controllers/telemetry.d.ts +11 -0
  18. package/lib/types/index.d.ts +4 -3
  19. package/lib/types/locale/zh-CN.d.ts +5 -0
  20. package/lib/types/plugin.d.ts +3 -2
  21. package/lib/types/services/collaboration-session/collaboration-session.d.ts +59 -0
  22. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +16 -58
  23. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +3 -1
  24. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +3 -2
  25. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +1 -1
  26. package/lib/types/services/socket/collaboration-socket.service.d.ts +5 -5
  27. package/lib/types/services/url/url.service.d.ts +1 -1
  28. package/lib/umd/index.js +1 -1
  29. package/package.json +36 -31
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5e318a=_0x337d;(function(_0x4854bc,_0x5669f9){const _0x2a1683=_0x337d,_0x5f3084=_0x4854bc();while(!![]){try{const _0x203d20=parseInt(_0x2a1683(0x2ba))/0x1*(parseInt(_0x2a1683(0xe8))/0x2)+-parseInt(_0x2a1683(0x35a))/0x3+parseInt(_0x2a1683(0x38c))/0x4*(-parseInt(_0x2a1683(0x37b))/0x5)+-parseInt(_0x2a1683(0x1e2))/0x6+-parseInt(_0x2a1683(0x444))/0x7+-parseInt(_0x2a1683(0x39d))/0x8+parseInt(_0x2a1683(0x252))/0x9*(parseInt(_0x2a1683(0x209))/0xa);if(_0x203d20===_0x5669f9)break;else _0x5f3084['push'](_0x5f3084['shift']());}catch(_0x27d1f1){_0x5f3084['push'](_0x5f3084['shift']());}}}(_0x2a9a,0x897b7));var xt=Object[_0x5e318a(0x33d)],Ht=(_0x494874,_0x4d812e,_0x8ac7ac)=>_0x4d812e in _0x494874?xt(_0x494874,_0x4d812e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8ac7ac}):_0x494874[_0x4d812e]=_0x8ac7ac,u=(_0xc63e0b,_0x228556,_0x27803d)=>Ht(_0xc63e0b,typeof _0x228556!=_0x5e318a(0x2e8)?_0x228556+'':_0x228556,_0x27803d);Object[_0x5e318a(0x33d)](exports,Symbol[_0x5e318a(0x26c)],{'value':_0x5e318a(0x1be)});const o=require(_0x5e318a(0x264)),p=require('@univerjs/sheets'),Q=require(_0x5e318a(0x383)),L=require('@univerjs/ui'),_=require(_0x5e318a(0x2f8)),v=require('rxjs'),E=require(_0x5e318a(0x316)),P=require(_0x5e318a(0x3b8)),U=require('@univerjs/network'),A=require(_0x5e318a(0x440)),b=require(_0x5e318a(0x1ea)),Ke=require(_0x5e318a(0x274)),xe=require('lodash/debounce'),J=require('@univerjs/sheets-ui'),y=require(_0x5e318a(0xf6)),kt=require('clsx'),Bt=require(_0x5e318a(0x11b)),ct=_0x5e318a(0x244),Vt=_0x5e318a(0x3cb),lt=_0x5e318a(0xd8),ht=_0x5e318a(0x30b),Wt=0x7d0,_t='COLLAB_WEB_SOCKET_URL',Ft=_0x5e318a(0x413),ut='HEARTBEAT_INTERVAL',Gt=0x7530,He=_0x5e318a(0x2fa),dt=0x2710,Yt=_0x5e318a(0x26a),Kt=0x4e20,Xt='RETRY_CONNECTING_MAX_COUNT',qt=0x3,St=_0x5e318a(0x3e6),zt=0x3e8,vt=_0x5e318a(0xce),Jt=_0x5e318a(0x138),mt=_0x5e318a(0x11e),Zt='/universer-api/oidc/authpage';function _0x337d(_0x379633,_0x6e49e2){const _0x2a9a47=_0x2a9a();return _0x337d=function(_0x337d3f,_0x50fc58){_0x337d3f=_0x337d3f-0x93;let _0x1633eb=_0x2a9a47[_0x337d3f];return _0x1633eb;},_0x337d(_0x379633,_0x6e49e2);}var gt=(_0x5a7862=>(_0x5a7862[_0x5a7862[_0x5e318a(0xc1)]=0x0]=_0x5e318a(0xc1),_0x5a7862[_0x5a7862['OK']=0x1]='OK',_0x5a7862[_0x5a7862[_0x5e318a(0x1a2)]=0x2]=_0x5e318a(0x1a2),_0x5a7862[_0x5a7862[_0x5e318a(0x28e)]=0x3]=_0x5e318a(0x28e),_0x5a7862[_0x5a7862['NOT_FOUND']=0x4]=_0x5e318a(0x3c7),_0x5a7862[_0x5a7862[_0x5e318a(0xda)]=0x5]=_0x5e318a(0xda),_0x5a7862[_0x5a7862[_0x5e318a(0x35c)]=0x6]='ALREADY_EXISTS',_0x5a7862[_0x5a7862[_0x5e318a(0x25a)]=0x7]=_0x5e318a(0x25a),_0x5a7862[_0x5a7862[_0x5e318a(0x2a6)]=0x8]='TOO_MANY_REQUESTS',_0x5a7862[_0x5a7862[_0x5e318a(0x3af)]=0x9]='COMPLETION_FINISHED',_0x5a7862[_0x5a7862['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5a7862[_0x5a7862[_0x5e318a(0x1cb)]=0x1771]=_0x5e318a(0x1cb),_0x5a7862[_0x5a7862['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x5e318a(0x3c2),_0x5a7862[_0x5a7862[_0x5e318a(0x44b)]=0x1b59]='APPLY_REJECT',_0x5a7862[_0x5a7862[_0x5e318a(0x3c0)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5a7862[_0x5a7862[_0x5e318a(0xba)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5a7862[_0x5a7862[_0x5e318a(0x41f)]=0x1b5c]=_0x5e318a(0x41f),_0x5a7862[_0x5a7862['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x5e318a(0x3fe),_0x5a7862[_0x5a7862[_0x5e318a(0x10a)]=0x2329]=_0x5e318a(0x10a),_0x5a7862[_0x5a7862['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5e318a(0x3f8),_0x5a7862[_0x5a7862['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5a7862[_0x5a7862[_0x5e318a(0x100)]=0x232c]=_0x5e318a(0x100),_0x5a7862[_0x5a7862[_0x5e318a(0x403)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5a7862[_0x5a7862[_0x5e318a(0x391)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5a7862[_0x5a7862[_0x5e318a(0x1ee)]=0x2712]=_0x5e318a(0x1ee),_0x5a7862[_0x5a7862['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5e318a(0x237),_0x5a7862[_0x5a7862[_0x5e318a(0x99)]=0x2714]=_0x5e318a(0x99),_0x5a7862[_0x5a7862[_0x5e318a(0x3d9)]=-0x1]=_0x5e318a(0x3d9),_0x5a7862))(gt||{}),j=(_0x10d1f7=>(_0x10d1f7[_0x10d1f7[_0x5e318a(0x208)]=0x0]='UNIVER_UNKNOWN',_0x10d1f7[_0x10d1f7[_0x5e318a(0x41b)]=0x1]=_0x5e318a(0x41b),_0x10d1f7[_0x10d1f7[_0x5e318a(0x1dd)]=0x2]=_0x5e318a(0x1dd),_0x10d1f7[_0x10d1f7[_0x5e318a(0x1b4)]=0x3]=_0x5e318a(0x1b4),_0x10d1f7[_0x10d1f7['UNIVER_PROJECT']=0x4]=_0x5e318a(0xac),_0x10d1f7[_0x10d1f7[_0x5e318a(0x3d9)]=-0x1]='UNRECOGNIZED',_0x10d1f7))(j||{}),T=(_0x26337f=>(_0x26337f[_0x26337f[_0x5e318a(0x1d9)]=0x0]=_0x5e318a(0x1d9),_0x26337f[_0x26337f[_0x5e318a(0x38b)]=0x1]=_0x5e318a(0x38b),_0x26337f[_0x26337f[_0x5e318a(0x37e)]=0x2]=_0x5e318a(0x37e),_0x26337f[_0x26337f[_0x5e318a(0x263)]=0x3]='LEAVE',_0x26337f[_0x26337f['INGEST']=0x4]=_0x5e318a(0xd6),_0x26337f[_0x26337f['HEARTBEAT']=0x5]=_0x5e318a(0xa2),_0x26337f[_0x26337f[_0x5e318a(0x358)]=0x6]=_0x5e318a(0x358),_0x26337f[_0x26337f[_0x5e318a(0x3d9)]=-0x1]=_0x5e318a(0x3d9),_0x26337f))(T||{}),ke=(_0x2622c0=>(_0x2622c0[_0x2622c0[_0x5e318a(0xb9)]=0x0]='UNKNOWN_CODE',_0x2622c0[_0x2622c0['OK']=0x1]='OK',_0x2622c0[_0x2622c0[_0x5e318a(0x19b)]=0x2]=_0x5e318a(0x19b),_0x2622c0[_0x2622c0['UNRECOGNIZED']=-0x1]=_0x5e318a(0x3d9),_0x2622c0))(ke||{}),ft=(_0x42a5ac=>(_0x42a5ac[_0x42a5ac[_0x5e318a(0x303)]=0x0]=_0x5e318a(0x303),_0x42a5ac[_0x42a5ac['HttpImport']=0x1]=_0x5e318a(0x2ec),_0x42a5ac[_0x42a5ac[_0x5e318a(0x118)]=0x2]='HttpExport',_0x42a5ac[_0x42a5ac['UnitEmbedded']=0x3]=_0x5e318a(0x3de),_0x42a5ac[_0x42a5ac[_0x5e318a(0xf2)]=0x4]=_0x5e318a(0xf2),_0x42a5ac[_0x42a5ac['UNRECOGNIZED']=-0x1]=_0x5e318a(0x3d9),_0x42a5ac))(ft||{}),Qt=Object[_0x5e318a(0x33d)],es=Object[_0x5e318a(0x225)],ts=(_0x265bbb,_0x55d822,_0x43f071,_0x4f9b56)=>{const _0x2ccc9=_0x5e318a;for(var _0x195372=_0x4f9b56>0x1?void 0x0:_0x4f9b56?es(_0x55d822,_0x43f071):_0x55d822,_0x39d9ca=_0x265bbb[_0x2ccc9(0x181)]-0x1,_0x31dacb;_0x39d9ca>=0x0;_0x39d9ca--)(_0x31dacb=_0x265bbb[_0x39d9ca])&&(_0x195372=(_0x4f9b56?_0x31dacb(_0x55d822,_0x43f071,_0x195372):_0x31dacb(_0x195372))||_0x195372);return _0x4f9b56&&_0x195372&&Qt(_0x55d822,_0x43f071,_0x195372),_0x195372;},Xe=(_0x37d661,_0x2f9d9b)=>(_0x4d13a2,_0x4743a1)=>_0x2f9d9b(_0x4d13a2,_0x4743a1,_0x37d661);let Y=class extends o[_0x5e318a(0x3cf)]{constructor(_0x59faa9,_0x37533e){const _0x30d51e=_0x5e318a;super(),u(this,_0x30d51e(0x21c),new Map()),(this['_univerInstanceService']=_0x59faa9,this[_0x30d51e(0x465)]=_0x37533e,this['disposeWithMe'](o[_0x30d51e(0x414)](v[_0x30d51e(0x269)](this[_0x30d51e(0x1fd)][_0x30d51e(0x2f6)](o[_0x30d51e(0xbb)]['UNIVER_SHEET'])[_0x30d51e(0x133)](E[_0x30d51e(0x3b9)](_0x2c47ed=>_0x2c47ed[_0x30d51e(0x40b)]())),this['_univerInstanceService'][_0x30d51e(0x2f6)](o[_0x30d51e(0xbb)][_0x30d51e(0x41b)])[_0x30d51e(0x133)](E[_0x30d51e(0x3b9)](_0x20f33d=>_0x20f33d[_0x30d51e(0x40b)]())),this[_0x30d51e(0x1fd)][_0x30d51e(0x2f6)](o[_0x30d51e(0xbb)][_0x30d51e(0x1b4)])['pipe'](E[_0x30d51e(0x3b9)](_0x55dc22=>_0x55dc22[_0x30d51e(0x40b)]())))[_0x30d51e(0x315)](_0x52a4f0=>this[_0x30d51e(0x1ba)](_0x52a4f0)))));}[_0x5e318a(0x2e5)](_0x2c5fbd){const _0x26ce6e=_0x5e318a;this[_0x26ce6e(0x465)][_0x26ce6e(0x2e5)](_0x2c5fbd);}[_0x5e318a(0x3a7)](){const _0x157e1e=_0x5e318a;return this['_userManagerService'][_0x157e1e(0x3a7)]();}[_0x5e318a(0x1ce)](_0x310eb9,_0x2ef6d5){const _0x1bb817=_0x5e318a;let _0x56f74b=this['_roomMembers'][_0x1bb817(0x236)](_0x310eb9);_0x56f74b||(_0x56f74b=new ss(),this[_0x1bb817(0x21c)][_0x1bb817(0x2e6)](_0x310eb9,_0x56f74b)),_0x56f74b[_0x1bb817(0x1ce)](_0x2ef6d5);}['removeMember'](_0x92c5d3,_0x1b00a1){const _0x1e9e81=_0x5e318a,_0x1b6594=this[_0x1e9e81(0x21c)][_0x1e9e81(0x236)](_0x92c5d3);_0x1b6594&&_0x1b6594[_0x1e9e81(0x372)](_0x1b00a1);}[_0x5e318a(0x456)](_0x4b98b5){const _0x5b51a1=_0x5e318a;return this[_0x5b51a1(0x21c)]['get'](_0x4b98b5);}[_0x5e318a(0x341)](_0x1ba7a3,_0x59a804){const _0xd0dbd1=_0x5e318a,_0x44c9a4=this[_0xd0dbd1(0x21c)][_0xd0dbd1(0x236)](_0x1ba7a3);if(_0x44c9a4)return _0x44c9a4['getMember'](_0x59a804);}[_0x5e318a(0x1ba)](_0x56b59d){const _0x2eae3d=_0x5e318a,_0x5a8bc5=this[_0x2eae3d(0x21c)][_0x2eae3d(0x236)](_0x56b59d);_0x5a8bc5&&(_0x5a8bc5[_0x2eae3d(0x17d)](),this[_0x2eae3d(0x21c)]['delete'](_0x56b59d));}['dispose'](){const _0x4b109e=_0x5e318a;this[_0x4b109e(0x21c)]['forEach'](_0x26b422=>_0x26b422['dispose']()),this['_roomMembers'][_0x4b109e(0x388)]();}};Y=ts([Xe(0x0,o['IUniverInstanceService']),Xe(0x1,o['Inject'](o[_0x5e318a(0x232)]))],Y);class ss extends o['Disposable']{constructor(){super(...arguments),u(this,'_members',new Map());}[_0x5e318a(0x17d)](){const _0x33d04f=_0x5e318a;this[_0x33d04f(0x3b0)][_0x33d04f(0x388)]();}['updateMember'](_0x4e390c){const _0x2ca402=_0x5e318a;this['_members'][_0x2ca402(0x2e6)](_0x4e390c[_0x2ca402(0x328)],_0x4e390c);}[_0x5e318a(0x372)](_0x2db9c6){const _0x538336=_0x5e318a;this[_0x538336(0x3b0)][_0x538336(0x33f)](_0x2db9c6);}[_0x5e318a(0x341)](_0x1a888c){const _0x4eeea0=_0x5e318a;return this[_0x4eeea0(0x3b0)][_0x4eeea0(0x236)](_0x1a888c);}}function It(_0x5dbd66){const _0x8262dc=_0x5e318a;var _0x53ecf0,_0xcd5658,_0x8f0859,_0x559a12;const _0x576e92=_0x5dbd66[_0x8262dc(0x42c)],_0x2fc159=JSON['parse'](_0x576e92);switch(_0x2fc159['cmd']){case T[_0x8262dc(0xa2)]:case T[_0x8262dc(0x38b)]:{const _0x431cd4=_0x2fc159['infoRsp'];return{..._0x2fc159,'data':_0x431cd4,'cmd':_0x2fc159[_0x8262dc(0x288)]};}case T['JOIN']:{const _0x28f048=_0x2fc159['joinRsp'];return{..._0x2fc159,'data':_0x28f048,'cmd':_0x2fc159[_0x8262dc(0x288)]};}case T[_0x8262dc(0x358)]:{const _0x186311=_0x2fc159[_0x8262dc(0x2b8)];switch(_0x186311[_0x8262dc(0x198)]){case _[_0x8262dc(0x1c7)][_0x8262dc(0xe0)]:return{..._0x2fc159,'data':{..._0x186311,'data':(_0x53ecf0=_0x186311[_0x8262dc(0x2fc)])==null?void 0x0:_0x53ecf0['cs']},'cmd':_0x2fc159['cmd']};case _[_0x8262dc(0x1c7)][_0x8262dc(0x203)]:return{..._0x2fc159,'data':{..._0x186311,'data':(_0xcd5658=_0x186311[_0x8262dc(0x302)])==null?void 0x0:_0xcd5658['cs']},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)]['NEW_CHANGESETS']:return{..._0x2fc159,'data':{..._0x186311,'data':(_0x8f0859=_0x186311[_0x8262dc(0x307)])==null?void 0x0:_0x8f0859['cs']},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _['CollaborationEvent'][_0x8262dc(0x1b3)]:return{..._0x2fc159,'data':{..._0x186311,'data':(_0x559a12=_0x186311['csRejEvent'])==null?void 0x0:_0x559a12['cs']},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)]['UPDATE_CURSOR']:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x3e2)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)][_0x8262dc(0x350)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0xa5)]},'cmd':_0x2fc159['cmd']};case _[_0x8262dc(0x1c7)][_0x8262dc(0x3ee)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x26f)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)][_0x8262dc(0xed)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311['liveShareNewHost']},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x8262dc(0x1c7)][_0x8262dc(0x1bd)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x2cb)]},'cmd':_0x2fc159['cmd']};case _[_0x8262dc(0x1c7)][_0x8262dc(0x241)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x267)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)]['MSG_FOR_ERROR']:return{..._0x2fc159,'data':_0x186311,'cmd':_0x2fc159['cmd']};case _[_0x8262dc(0x1c7)]['COMMENT_UPDATE']:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x207)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)][_0x8262dc(0x95)]:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x36a)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};case _[_0x8262dc(0x1c7)]['SHOULD_CLOSE_CONN']:return{..._0x2fc159,'data':{..._0x186311,'data':_0x186311[_0x8262dc(0x32d)]},'cmd':_0x2fc159[_0x8262dc(0x288)]};default:return _0x2fc159;}}default:return _0x2fc159;}}function pt(_0x597400){const _0x4d0089=_0x5e318a;switch(_0x597400[_0x4d0089(0x288)]){case T[_0x4d0089(0xa2)]:case T[_0x4d0089(0x38b)]:return JSON[_0x4d0089(0x210)]({'cmd':_0x597400[_0x4d0089(0x288)],'routeKey':_0x597400[_0x4d0089(0x117)]});case T[_0x4d0089(0xd6)]:{let _0x5d50d2;switch(_0x597400[_0x4d0089(0x42c)]['eventID']){case _[_0x4d0089(0x1c7)][_0x4d0089(0x28c)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)][_0x4d0089(0x28c)],'updateCursorEvent':_0x597400[_0x4d0089(0x42c)]['data']};break;}case _[_0x4d0089(0x1c7)][_0x4d0089(0x3ee)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)][_0x4d0089(0x3ee)],'leaveEvent':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x42c)]};break;}case _[_0x4d0089(0x1c7)][_0x4d0089(0x350)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)]['USERS_ENTER'],'joinEvent':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x42c)]};break;}case _[_0x4d0089(0x1c7)]['LIVESHARE_NEW_HOST']:{_0x5d50d2={'eventID':_['CollaborationEvent'][_0x4d0089(0xed)],'liveShareNewHost':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x42c)]};break;}case _['CollaborationEvent'][_0x4d0089(0x1bd)]:{_0x5d50d2={'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x597400['data']['data']};break;}case _[_0x4d0089(0x1c7)][_0x4d0089(0x241)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)][_0x4d0089(0x241)],'liveShareTerminate':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x42c)]};break;}case _[_0x4d0089(0x1c7)][_0x4d0089(0x359)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)][_0x4d0089(0x359)],'liveShareRequestHost':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x42c)]};break;}case _[_0x4d0089(0x1c7)][_0x4d0089(0xdb)]:{_0x5d50d2={'eventID':_[_0x4d0089(0x1c7)][_0x4d0089(0xdb)]};break;}default:_0x5d50d2={'eventID':_0x597400[_0x4d0089(0x42c)][_0x4d0089(0x198)]};}return JSON[_0x4d0089(0x210)]({'cmd':_0x597400[_0x4d0089(0x288)],'routeKey':_0x597400[_0x4d0089(0x117)],'collaMsg':_0x5d50d2});}case T[_0x4d0089(0x37e)]:return JSON[_0x4d0089(0x210)]({'cmd':_0x597400[_0x4d0089(0x288)],'routeKey':_0x597400[_0x4d0089(0x117)],'joinReq':_0x597400[_0x4d0089(0x42c)]});case T[_0x4d0089(0x263)]:return JSON[_0x4d0089(0x210)]({'cmd':_0x597400[_0x4d0089(0x288)],'routeKey':_0x597400[_0x4d0089(0x117)],'leaveReq':_0x597400['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var is=Object[_0x5e318a(0x33d)],ns=Object[_0x5e318a(0x225)],rs=(_0x506870,_0x58d74c,_0x397c74,_0x4c4b80)=>{const _0x432537=_0x5e318a;for(var _0x53fab8=_0x4c4b80>0x1?void 0x0:_0x4c4b80?ns(_0x58d74c,_0x397c74):_0x58d74c,_0xbbfe9b=_0x506870[_0x432537(0x181)]-0x1,_0x2d3a5d;_0xbbfe9b>=0x0;_0xbbfe9b--)(_0x2d3a5d=_0x506870[_0xbbfe9b])&&(_0x53fab8=(_0x4c4b80?_0x2d3a5d(_0x58d74c,_0x397c74,_0x53fab8):_0x2d3a5d(_0x53fab8))||_0x53fab8);return _0x4c4b80&&_0x53fab8&&is(_0x58d74c,_0x397c74,_0x53fab8),_0x53fab8;},se=(_0x5d15b4,_0x20a219)=>(_0x1e0178,_0x1c966b)=>_0x20a219(_0x1e0178,_0x1c966b,_0x5d15b4);const Be=o[_0x5e318a(0x3a2)]('univer-pro.collaboration-client-socket-service');function os(_0x10204e,_0xe420e8,_0xa122a5){const _0x4c4720=_0x5e318a;return _0x10204e+'/'+_0xe420e8+_0x4c4720(0xcf)+_0xa122a5+'/new_changes';}exports['CollaborationSocketService']=class{constructor(_0x3a5cf0,_0xe12442,_0x50cdb9,_0x31786d,_0x21e3e1){const _0x29c0bc=_0x5e318a;this[_0x29c0bc(0x3ad)]=_0x3a5cf0,this[_0x29c0bc(0x110)]=_0xe12442,this[_0x29c0bc(0xc3)]=_0x50cdb9,this[_0x29c0bc(0x141)]=_0x31786d,this[_0x29c0bc(0x1c6)]=_0x21e3e1;}['createSocket'](_0x18543f){const _0x4e6bd7=_0x5e318a,_0xec90ce=this[_0x4e6bd7(0x110)]['createSocket'](_0x18543f);if(!_0xec90ce)throw new Error(_0x4e6bd7(0x3f2));const _0x324d57=new o[(_0x4e6bd7(0x23b))](),_0x4cf260=new v[(_0x4e6bd7(0x45c))]();_0x324d57['add'](o['toDisposable'](_0xec90ce['close$'][_0x4e6bd7(0x315)](_0x240805=>_0x4cf260['next'](_0x240805)))),_0x324d57[_0x4e6bd7(0x40f)](o[_0x4e6bd7(0x414)](()=>_0x4cf260['complete']()));const _0x3f93bb=new v[(_0x4e6bd7(0x45c))]();_0x324d57[_0x4e6bd7(0x40f)](o[_0x4e6bd7(0x414)](_0xec90ce[_0x4e6bd7(0x14b)][_0x4e6bd7(0x315)](_0x246a1b=>_0x3f93bb[_0x4e6bd7(0x318)](_0x246a1b)))),_0x324d57[_0x4e6bd7(0x40f)](o[_0x4e6bd7(0x414)](()=>_0x3f93bb[_0x4e6bd7(0x270)]()));const _0x2cc106=new v[(_0x4e6bd7(0x45c))]();_0x324d57['add'](o['toDisposable'](_0xec90ce[_0x4e6bd7(0x336)]['subscribe'](_0x3e3648=>{const _0x337486=_0x4e6bd7,_0x290bf8=It(_0x3e3648);_0x2cc106[_0x337486(0x318)](_0x290bf8);}))),_0x324d57[_0x4e6bd7(0x40f)](o[_0x4e6bd7(0x414)](()=>_0x2cc106['complete']()));const _0xce2606=()=>{const _0x13baec=_0x4e6bd7;_0x3f93bb[_0x13baec(0x318)](new Event(_0x13baec(0x416))),_0x4cf260['next'](new CloseEvent(_0x13baec(0x416))),_0x38b7ee[_0x13baec(0x3d0)]();},_0x38b7ee={'memberID':'','close$':_0x4cf260[_0x4e6bd7(0x468)](),'error$':_0x3f93bb[_0x4e6bd7(0x468)](),'open$':_0xec90ce[_0x4e6bd7(0x1ff)],'message$':_0x2cc106[_0x4e6bd7(0x468)](),'send':_0x491b1b=>{const _0x273e0c=_0x4e6bd7;if(_0x491b1b['cmd']===T[_0x273e0c(0xd6)]){if(_0x491b1b[_0x273e0c(0x42c)][_0x273e0c(0x198)]===_['CollaborationEvent'][_0x273e0c(0x46b)]){this[_0x273e0c(0x385)](_0x38b7ee,_0x491b1b[_0x273e0c(0x42c)])[_0x273e0c(0x1e0)](_0x5be111=>{const _0x59bee6=_0x273e0c;this[_0x59bee6(0x141)][_0x59bee6(0x45d)](_0x5be111),_0xce2606();});return;}if(_0x491b1b['data']['eventID']===_[_0x273e0c(0x1c7)][_0x273e0c(0x200)]){const _0x38bcc3=_0x491b1b[_0x273e0c(0x42c)];this['_fetchMissChangesets'](_0x38bcc3)['then'](_0x268943=>{const _0x4b3e8a=_0x273e0c;_0x2cc106[_0x4b3e8a(0x318)]({'cmd':T[_0x4b3e8a(0x358)],'code':ke['OK'],'routeKey':_0x38bcc3['data'][_0x4b3e8a(0x312)],'routeType':'','data':{'eventID':_[_0x4b3e8a(0x1c7)][_0x4b3e8a(0x3b7)],'data':{'changesets':_0x268943}}});})['catch'](_0x124a7c=>{const _0xb144e6=_0x273e0c;this[_0xb144e6(0x141)][_0xb144e6(0x45d)](_0x124a7c),_0xce2606();});return;}}_0xec90ce['send'](pt(_0x491b1b));},'close':()=>{const _0x226d01=_0x4e6bd7;_0xec90ce[_0x226d01(0x3d0)](),_0x324d57[_0x226d01(0x17d)]();}};return _0x38b7ee;}async[_0x5e318a(0x385)](_0x3a3c03,_0x5cb7a3){const _0x1b6285=_0x5e318a;var _0x13bcc9;const {unitType:_0x2cf27a,unitID:_0x3e6026,changeset:_0x305a09}=_0x5cb7a3[_0x1b6285(0x42c)],_0x5b0016={'unitID':_0x3e6026,'memberID':_0x3a3c03[_0x1b6285(0x328)],'type':_0x2cf27a,'changeset':_[_0x1b6285(0x33a)](_0x305a09)},_0x2b6226=os((_0x13bcc9=this[_0x1b6285(0xc3)][_0x1b6285(0x299)](vt))!=null?_0x13bcc9:Jt,_0x2cf27a,_0x3e6026);try{await this['_http'][_0x1b6285(0x22a)](_0x2b6226,{'body':_0x5b0016});}catch(_0x177f5d){throw this[_0x1b6285(0x141)][_0x1b6285(0x45d)]('[CollaborationSession]',_0x1b6285(0x342)),_0x177f5d;}}async['_fetchMissChangesets'](_0x3575f2){const _0x3ae0ea=_0x5e318a,{unitID:_0x464852,from:_0x5745e0,to:_0x1a268f,unitType:_0x5a8220}=_0x3575f2[_0x3ae0ea(0x42c)];return(await this[_0x3ae0ea(0x1c6)][_0x3ae0ea(0x1f8)]({'metadata':void 0x0},{'unitID':_0x464852,'type':_0x5a8220,'from':_0x5745e0,'to':_0x1a268f}))[_0x3ae0ea(0x43b)];}},exports['CollaborationSocketService']=rs([se(0x0,o[_0x5e318a(0x23f)](U[_0x5e318a(0x2a1)])),se(0x1,o[_0x5e318a(0x23f)](U[_0x5e318a(0xc9)])),se(0x2,o[_0x5e318a(0x2aa)]),se(0x3,o[_0x5e318a(0xfb)]),se(0x4,_['ISnapshotServerService'])],exports['CollaborationSocketService']);class Ve{constructor(){const _0x45c88f=_0x5e318a;u(this,_0x45c88f(0x362),new v[(_0x45c88f(0x45c))]()),u(this,'commentUpdate$',this[_0x45c88f(0x362)]['asObservable']());}[_0x5e318a(0x235)](_0xcbcaf7){const _0x23055c=_0x5e318a;this[_0x23055c(0x362)][_0x23055c(0x318)](_0xcbcaf7);}}var as=Object[_0x5e318a(0x33d)],cs=Object[_0x5e318a(0x225)],Et=(_0x4aa03f,_0x5d2cc1,_0x257e23,_0x54cd9f)=>{const _0x41fbee=_0x5e318a;for(var _0x30e366=_0x54cd9f>0x1?void 0x0:_0x54cd9f?cs(_0x5d2cc1,_0x257e23):_0x5d2cc1,_0x582081=_0x4aa03f[_0x41fbee(0x181)]-0x1,_0x37b07a;_0x582081>=0x0;_0x582081--)(_0x37b07a=_0x4aa03f[_0x582081])&&(_0x30e366=(_0x54cd9f?_0x37b07a(_0x5d2cc1,_0x257e23,_0x30e366):_0x37b07a(_0x30e366))||_0x30e366);return _0x54cd9f&&_0x30e366&&as(_0x5d2cc1,_0x257e23,_0x30e366),_0x30e366;},M=(_0x1f0904,_0x123375)=>(_0x443b74,_0x41153b)=>_0x123375(_0x443b74,_0x41153b,_0x1f0904),G=(_0xfacbcf=>(_0xfacbcf[_0xfacbcf[_0x5e318a(0x1ef)]=0x0]='IDLE',_0xfacbcf[_0xfacbcf[_0x5e318a(0x2f0)]=0x1]=_0x5e318a(0x2f0),_0xfacbcf[_0xfacbcf[_0x5e318a(0x396)]=0x2]=_0x5e318a(0x396),_0xfacbcf[_0xfacbcf[_0x5e318a(0x16c)]=0x3]=_0x5e318a(0x16c),_0xfacbcf))(G||{});exports[_0x5e318a(0x20d)]=class extends o[_0x5e318a(0xd1)]{constructor(_0x1011f7,_0xe67a85,_0x3782d7,_0x42faf6,_0x2b4c7e,_0x4b7e81,_0x50564a,_0x13edcd,_0x2e8f2c){const _0x434927=_0x5e318a;super(),u(this,_0x434927(0x14d),new v[(_0x434927(0x18a))](0x0)),u(this,_0x434927(0x1ed),this[_0x434927(0x14d)]['asObservable']()),u(this,_0x434927(0x401),new v[(_0x434927(0x45c))]()),u(this,_0x434927(0x109),this['_event$']['asObservable']()),u(this,_0x434927(0xe3)),u(this,_0x434927(0x13e)),u(this,_0x434927(0xee)),(this[_0x434927(0x16d)]=_0x1011f7,this['_logService']=_0x3782d7,this[_0x434927(0x353)]=_0x42faf6,this[_0x434927(0x1b9)]=_0x2b4c7e,this[_0x434927(0xc3)]=_0x4b7e81,this[_0x434927(0x2a5)]=_0x50564a,this[_0x434927(0x3d5)]=_0x13edcd,this[_0x434927(0x3e0)]=_0x2e8f2c,_0xe67a85['pipe'](E[_0x434927(0x36b)](this[_0x434927(0xc8)]))['subscribe'](_0x15634f=>{const _0x290578=_0x434927;var _0x11ba13;typeof _0x15634f>'u'||(this[_0x290578(0xe3)]=_0x15634f,_0x15634f?(this['_joinRoom'](_0x15634f),this['_socketMessageSubscription']=this[_0x290578(0xe3)]['message$']['subscribe'](_0x2684ab=>{const _0x234417=_0x290578;_0x2684ab[_0x234417(0x117)]===this[_0x234417(0x16d)]&&this['_onCombEvent'](_0x2684ab);})):(this[_0x290578(0x14d)][_0x290578(0x318)](0x2),(_0x11ba13=this[_0x290578(0x13e)])==null||_0x11ba13[_0x290578(0x195)](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0x434927(0x353)]['registerOnClose'](()=>{const _0x102346=_0x434927;var _0x47089e;(_0x47089e=this['_socket'])==null||_0x47089e[_0x102346(0x144)]({'cmd':T[_0x102346(0x263)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x30c873=_0x5e318a;return this[_0x30c873(0x14d)][_0x30c873(0x34b)]();}[_0x5e318a(0x330)](){const _0x174b35=_0x5e318a;var _0xa74b40,_0x43daaa;return(_0x43daaa=(_0xa74b40=this[_0x174b35(0xe3)])==null?void 0x0:_0xa74b40[_0x174b35(0x328)])!=null?_0x43daaa:null;}[_0x5e318a(0x17d)](){const _0x946bb3=_0x5e318a;super[_0x946bb3(0x17d)](),this[_0x946bb3(0xc8)][_0x946bb3(0x318)](),this[_0x946bb3(0xc8)]['complete']();}[_0x5e318a(0x3d0)](){const _0x53dc9a=_0x5e318a;var _0x4c58c8,_0x29d7e0;(_0x4c58c8=this['_socket'])==null||_0x4c58c8[_0x53dc9a(0x144)]({'cmd':T[_0x53dc9a(0x263)],'data':{'roomID':this[_0x53dc9a(0x16d)]}}),this['_event$'][_0x53dc9a(0x270)](),this[_0x53dc9a(0x14d)][_0x53dc9a(0x270)](),(_0x29d7e0=this[_0x53dc9a(0xe3)])==null||_0x29d7e0[_0x53dc9a(0x3d0)](),this[_0x53dc9a(0x17d)]();}[_0x5e318a(0x154)](_0x169fd6){const _0x550e48=_0x5e318a;_0x169fd6['cmd']===T[_0x550e48(0x37e)]?this[_0x550e48(0x1e8)](_0x169fd6):_0x169fd6[_0x550e48(0x288)]===T['RECV']&&this[_0x550e48(0x176)](_0x169fd6);}[_0x5e318a(0x3ae)](_0x2fc212){const _0x543387=_0x5e318a;this['_sessionStatus$']['next'](0x1),_0x2fc212[_0x543387(0x144)]({'cmd':T[_0x543387(0x37e)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x543387(0x16d)]}]}});}[_0x5e318a(0x1e8)](_0x35321e){const _0x2cbe99=_0x5e318a;var _0x5ea329;if(_0x35321e['code']===ke['FAIL']){this[_0x2cbe99(0x1b9)][_0x2cbe99(0x2eb)]({'type':Q[_0x2cbe99(0x2f4)]['Warning'],'content':this[_0x2cbe99(0x2a5)]['t'](_0x2cbe99(0x2a7))}),this[_0x2cbe99(0x14d)][_0x2cbe99(0x318)](0x2);return;}this[_0x2cbe99(0x14d)][_0x2cbe99(0x318)](0x3);const _0x363ed4=(_0x5ea329=_0x35321e[_0x2cbe99(0x42c)][_0x2cbe99(0x36f)][this[_0x2cbe99(0x16d)]])==null?void 0x0:_0x5ea329[_0x2cbe99(0x2e2)];_0x363ed4&&_0x363ed4[_0x2cbe99(0x183)](_0x192fc1=>this[_0x2cbe99(0x3d5)][_0x2cbe99(0x1ce)](this['_unitID'],_0x192fc1));}['_onRecvEvent'](_0x593f68){const _0x194ed0=_0x5e318a;try{const _0x4a2fbc=_0x593f68[_0x194ed0(0x42c)];switch(_0x4a2fbc[_0x194ed0(0x198)]){case _[_0x194ed0(0x1c7)][_0x194ed0(0x350)]:this[_0x194ed0(0x1d8)](_0x4a2fbc),this[_0x194ed0(0x401)][_0x194ed0(0x318)](_0x4a2fbc);break;case _[_0x194ed0(0x1c7)]['USERS_LEAVE']:this[_0x194ed0(0x337)](_0x4a2fbc),this['_event$']['next'](_0x4a2fbc);break;case _[_0x194ed0(0x1c7)][_0x194ed0(0x203)]:this[_0x194ed0(0x45b)](),this['_event$']['next'](_0x4a2fbc);break;case _[_0x194ed0(0x1c7)][_0x194ed0(0x3c6)]:this[_0x194ed0(0x141)]['error'](_0x194ed0(0x2fb)+JSON[_0x194ed0(0x210)](_0x4a2fbc)),this[_0x194ed0(0x401)][_0x194ed0(0x318)](_0x4a2fbc);break;case _[_0x194ed0(0x1c7)][_0x194ed0(0x322)]:this['_commentService'][_0x194ed0(0x235)](_0x4a2fbc[_0x194ed0(0x42c)]),this[_0x194ed0(0x401)][_0x194ed0(0x318)](_0x4a2fbc);break;default:this[_0x194ed0(0x401)][_0x194ed0(0x318)](_0x4a2fbc);}}catch(_0x5a2a09){this[_0x194ed0(0x141)][_0x194ed0(0x45d)](_0x5a2a09,_0x593f68);}}['_onUserJoin'](_0x4e268f){const _0x52ca96=_0x5e318a;this[_0x52ca96(0x3d5)]['updateMember'](this[_0x52ca96(0x16d)],_0x4e268f[_0x52ca96(0x42c)]);}[_0x5e318a(0x337)](_0x51c055){const _0x51a2a7=_0x5e318a;this[_0x51a2a7(0x3d5)]['removeMember'](this[_0x51a2a7(0x16d)],_0x51c055[_0x51a2a7(0x42c)]['memberID']);}async[_0x5e318a(0x144)](_0x18fbd3,_0x45a73c){const _0x171b7d=_0x5e318a;if(this[_0x171b7d(0x1a8)]!==0x3||!this[_0x171b7d(0xe3)])throw new Error(_0x171b7d(0x17f));try{_0x18fbd3[_0x171b7d(0x198)]===_[_0x171b7d(0x1c7)]['NEW_CHANGESETS']&&this[_0x171b7d(0x430)](),this[_0x171b7d(0xe3)][_0x171b7d(0x144)]({'cmd':T[_0x171b7d(0xd6)],'routeKey':_0x45a73c,'routeType':'','data':_0x18fbd3});}catch(_0x442da4){this['_logService'][_0x171b7d(0x45d)](_0x442da4);}}[_0x5e318a(0x430)](){const _0x53f35a=_0x5e318a;var _0xf631b8;this[_0x53f35a(0xee)]=window[_0x53f35a(0x3c9)](()=>{const _0x57e4e3=_0x53f35a;this[_0x57e4e3(0xee)]=null,this['_messageService'][_0x57e4e3(0x2eb)]({'type':Q[_0x57e4e3(0x2f4)]['Error'],'content':this[_0x57e4e3(0x2a5)]['t'](_0x57e4e3(0x20a))});},(_0xf631b8=this[_0x53f35a(0xc3)][_0x53f35a(0x299)](He))!=null?_0xf631b8:dt);}[_0x5e318a(0x45b)](){const _0x50d096=_0x5e318a;this[_0x50d096(0xee)]&&(clearTimeout(this[_0x50d096(0xee)]),this[_0x50d096(0xee)]=null);}},exports[_0x5e318a(0x20d)]=Et([M(0x2,o[_0x5e318a(0xfb)]),M(0x3,L['IBeforeCloseService']),M(0x4,L['IMessageService']),M(0x5,o[_0x5e318a(0x2aa)]),M(0x6,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)])),M(0x7,o[_0x5e318a(0x23f)](Y)),M(0x8,o['Inject'](Ve))],exports[_0x5e318a(0x20d)]),exports['CollaborationSessionService']=class extends o[_0x5e318a(0x3cf)]{constructor(_0x271de9,_0x825f12,_0x412fc5,_0x1dd714,_0x127363,_0x590e68){const _0x364d66=_0x5e318a;super(),u(this,_0x364d66(0x26e),new v[(_0x364d66(0x18a))](void 0x0)),u(this,_0x364d66(0x211),new Map()),u(this,_0x364d66(0x44e),new v['BehaviorSubject'](0x0)),u(this,_0x364d66(0x105),this['_status$']['asObservable']()),u(this,_0x364d66(0xa1),!0x1),u(this,_0x364d66(0x25e)),u(this,_0x364d66(0x451)),u(this,_0x364d66(0x3fc)),u(this,'_retryCount',0x0),(this[_0x364d66(0xa4)]=_0x271de9,this[_0x364d66(0x2a5)]=_0x825f12,this['_messageService']=_0x412fc5,this[_0x364d66(0x141)]=_0x1dd714,this[_0x364d66(0xc3)]=_0x127363,this[_0x364d66(0x377)]=_0x590e68);}get[_0x5e318a(0xe3)](){return this['_socket$']['getValue']();}[_0x5e318a(0x17d)](){const _0x23f278=_0x5e318a;super['dispose'](),this['_sessions'][_0x23f278(0x183)](_0x1ece4f=>_0x1ece4f['dispose']()),this['_sessions'][_0x23f278(0x388)](),this[_0x23f278(0x44e)][_0x23f278(0x270)]();}async[_0x5e318a(0x1b1)](_0x2d6531){const _0xaa69f1=_0x5e318a;if(this[_0xaa69f1(0x211)][_0xaa69f1(0x21e)](_0x2d6531))return this[_0xaa69f1(0x211)][_0xaa69f1(0x236)](_0x2d6531);this[_0xaa69f1(0x10d)]();const _0x2f288d=this[_0xaa69f1(0xa4)][_0xaa69f1(0x376)](exports[_0xaa69f1(0x20d)],_0x2d6531,this['_socket$'][_0xaa69f1(0x468)]());return this[_0xaa69f1(0x211)][_0xaa69f1(0x2e6)](_0x2d6531,_0x2f288d),_0x2f288d;}[_0x5e318a(0x290)](_0x23b7d1){const _0x1dfb31=_0x5e318a;var _0x2152a5;const _0x4019c2=this[_0x1dfb31(0x211)][_0x1dfb31(0x236)](_0x23b7d1);_0x4019c2&&(this['_sessions']['delete'](_0x23b7d1),_0x4019c2[_0x1dfb31(0x3d0)]()),this[_0x1dfb31(0x211)][_0x1dfb31(0x147)]||(_0x2152a5=this[_0x1dfb31(0xe3)])==null||_0x2152a5[_0x1dfb31(0x3d0)]();}[_0x5e318a(0x184)](){const _0x3ae055=_0x5e318a;var _0xa748ef;const _0x22f5f6=(_0xa748ef=this[_0x3ae055(0xc3)][_0x3ae055(0x299)](_t))!=null?_0xa748ef:Ft;return this[_0x3ae055(0x377)]['createSocket'](_0x22f5f6);}['_tryEnsureSocket'](){const _0x4393c1=_0x5e318a;try{const _0xb60a52=this[_0x4393c1(0x184)]();if(_0xb60a52){const _0x29d0c3=_0xb60a52[_0x4393c1(0x144)];_0xb60a52['send']=_0x862650=>(this['_rescheduleHeartbeatEvent'](),_0x29d0c3['apply'](_0xb60a52,[_0x862650])),_0xb60a52[_0x4393c1(0x336)]['subscribe'](_0x3b33a2=>this['_onMessage'](_0xb60a52,_0x3b33a2)),_0xb60a52[_0x4393c1(0x14b)]['pipe'](E['take'](0x1))[_0x4393c1(0x315)](_0x128d61=>this[_0x4393c1(0x141)][_0x4393c1(0x45d)]('[CollaborationSessionService]:\x20socket\x20error',_0x128d61)),_0xb60a52[_0x4393c1(0x1ff)][_0x4393c1(0x133)](E[_0x4393c1(0x240)](0x1))[_0x4393c1(0x315)](()=>{const _0x3f30e5=_0x4393c1;this[_0x3f30e5(0x41d)](_0xb60a52);}),_0xb60a52['close$'][_0x4393c1(0x133)](E['take'](0x1))[_0x4393c1(0x315)](_0x23a07d=>{const _0x3d03b5=_0x4393c1;this[_0x3d03b5(0x141)][_0x3d03b5(0x1b0)](_0x3d03b5(0x462),_0x3d03b5(0x1c9),_0x23a07d),this['_onConnectionFailed']();});}}catch(_0x3f3aeb){this[_0x4393c1(0x141)][_0x4393c1(0x45d)](_0x3f3aeb),this[_0x4393c1(0x35e)]();}}[_0x5e318a(0x41d)](_0x3c5de5){const _0x5c98b2=_0x5e318a;this['_logService']['debug'](_0x5c98b2(0x462),_0x5c98b2(0x16f)),_0x3c5de5[_0x5c98b2(0x144)]({'cmd':T['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x5e318a(0x35e)](){const _0x29c4c6=_0x5e318a;var _0x8db0e5;this[_0x29c4c6(0x44e)][_0x29c4c6(0x318)](0x2),this[_0x29c4c6(0x26e)][_0x29c4c6(0x318)](null),this[_0x29c4c6(0x458)](),this[_0x29c4c6(0x13f)](),this[_0x29c4c6(0xa1)]=!0x1,this[_0x29c4c6(0x452)]<((_0x8db0e5=this['_configService'][_0x29c4c6(0x299)](Xt))!=null?_0x8db0e5:qt)?(this[_0x29c4c6(0x314)](this[_0x29c4c6(0x452)]),this[_0x29c4c6(0x452)]+=0x1):this[_0x29c4c6(0x1b9)][_0x29c4c6(0x2eb)]({'type':Q[_0x29c4c6(0x2f4)][_0x29c4c6(0x3b2)],'content':this['_localeService']['t'](_0x29c4c6(0x3a5))});}[_0x5e318a(0x314)](_0x2b3b2b){const _0x23984e=_0x5e318a;var _0x58a1c9;const _0x52057f=((_0x58a1c9=this[_0x23984e(0xc3)][_0x23984e(0x299)](Yt))!=null?_0x58a1c9:Kt)*0x2**_0x2b3b2b;this[_0x23984e(0x1b9)][_0x23984e(0x2eb)]({'type':Q[_0x23984e(0x2f4)][_0x23984e(0x34c)],'content':this[_0x23984e(0x2a5)]['t'](_0x23984e(0x19a))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x2559a0=_0x23984e;this[_0x2559a0(0x10d)](),clearTimeout(this['_retryConnectingTimer']),this[_0x2559a0(0x3fc)]=null;},_0x52057f);}[_0x5e318a(0x36c)](){const _0x5797d4=_0x5e318a;var _0x34851f;this[_0x5797d4(0x13f)](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x34851f=this['_configService']['getConfig'](ut))!=null?_0x34851f:Gt);}[_0x5e318a(0xb1)](){const _0x24cf46=_0x5e318a;this[_0x24cf46(0xe3)]['send']({'cmd':T[_0x24cf46(0xa2)]}),this[_0x24cf46(0x204)]();}[_0x5e318a(0x204)](){const _0x42d297=_0x5e318a;var _0x1b9409;this[_0x42d297(0x451)]=setTimeout(()=>this[_0x42d297(0x35e)](),(_0x1b9409=this[_0x42d297(0xc3)]['getConfig'](He))!=null?_0x1b9409:dt);}[_0x5e318a(0x289)](_0x451449,_0x38dbe4){const _0x1f3773=_0x5e318a,{cmd:_0x1c663c}=_0x38dbe4;_0x1c663c===T['HELLO']&&!this['_socketReady']&&(_0x451449[_0x1f3773(0x328)]=_0x38dbe4[_0x1f3773(0x42c)][_0x1f3773(0x328)],this[_0x1f3773(0x26e)][_0x1f3773(0x318)](_0x451449),this[_0x1f3773(0x44e)][_0x1f3773(0x318)](0x3),this[_0x1f3773(0xa1)]=!0x0),_0x1c663c===T['HEARTBEAT']&&this[_0x1f3773(0x458)](),this[_0x1f3773(0x36c)]();}[_0x5e318a(0x13f)](){const _0x437d50=_0x5e318a;this[_0x437d50(0x25e)]!=null&&(clearTimeout(this[_0x437d50(0x25e)]),this[_0x437d50(0x25e)]=null);}['_clearTimeoutTimer'](){const _0x364420=_0x5e318a;this[_0x364420(0x451)]!=null&&(clearTimeout(this[_0x364420(0x451)]),this[_0x364420(0x451)]=null);}},exports[_0x5e318a(0x2f9)]=Et([M(0x0,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),M(0x1,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)])),M(0x2,L['IMessageService']),M(0x3,o['ILogService']),M(0x4,o[_0x5e318a(0x2aa)]),M(0x5,Be)],exports[_0x5e318a(0x2f9)]);var ls=Object[_0x5e318a(0x33d)],hs=Object[_0x5e318a(0x225)],_s=(_0x9ebf84,_0x1c5c0f,_0x1f3960,_0x29b1d6)=>{const _0x1d3588=_0x5e318a;for(var _0x10639e=_0x29b1d6>0x1?void 0x0:_0x29b1d6?hs(_0x1c5c0f,_0x1f3960):_0x1c5c0f,_0x4e5126=_0x9ebf84[_0x1d3588(0x181)]-0x1,_0x85580;_0x4e5126>=0x0;_0x4e5126--)(_0x85580=_0x9ebf84[_0x4e5126])&&(_0x10639e=(_0x29b1d6?_0x85580(_0x1c5c0f,_0x1f3960,_0x10639e):_0x85580(_0x10639e))||_0x10639e);return _0x29b1d6&&_0x10639e&&ls(_0x1c5c0f,_0x1f3960,_0x10639e),_0x10639e;},ie=(_0x344e18,_0x516645)=>(_0x32e327,_0x4c4b38)=>_0x516645(_0x32e327,_0x4c4b38,_0x344e18);exports['LocalCacheService']=class extends o[_0x5e318a(0x3cf)]{constructor(_0x4c15bd,_0x3e0f3b,_0x250f39,_0x16b2aa,_0xa558a5){const _0x383b12=_0x5e318a;super(),u(this,'_cachedData',new Map()),u(this,_0x383b12(0x30a),new Map()),u(this,_0x383b12(0x3db),!0x1),(this[_0x383b12(0xc3)]=_0x4c15bd,this['_localStorageService']=_0x3e0f3b,this[_0x383b12(0x353)]=_0x250f39,this[_0x383b12(0x2a5)]=_0x16b2aa,this[_0x383b12(0x30c)]=_0xa558a5,this[_0x383b12(0x2c4)]());}[_0x5e318a(0x41c)](){const _0x29e81b=_0x5e318a;this[_0x29e81b(0x3db)]=!0x0;}[_0x5e318a(0x34a)](){const _0x43965f=_0x5e318a;this[_0x43965f(0x3db)]=!0x1;}[_0x5e318a(0x17d)](){const _0x2cb7d9=_0x5e318a;this['exhaustSavingTask']()[_0x2cb7d9(0x102)](()=>super['dispose']());}async[_0x5e318a(0x2e3)](_0x5f00be){const _0x36659b=_0x5e318a;return this['_disabled']?null:this[_0x36659b(0x2cf)][_0x36659b(0xfc)](qe(_0x5f00be));}async[_0x5e318a(0x420)](_0xa3b7c4,_0x25fcea){const _0x22b596=_0x5e318a;return!!this[_0x22b596(0x2cf)][_0x22b596(0x43d)](_0xa3b7c4,_0x25fcea);}[_0x5e318a(0x443)](_0x50f6af,_0x1984f4,_0x4f9557,_0x4c31fb){const _0x5d695c=_0x5e318a,_0x5c6625=this[_0x5d695c(0x30c)][_0x5d695c(0x1fa)](_0x50f6af);this['_cachedData'][_0x5d695c(0x2e6)](_0x50f6af,{'unitID':_0x50f6af,'type':_0x1984f4,'awaitingChangeset':_0x4f9557,'mutations':_0x4c31fb,'rev':_0x5c6625}),this[_0x5d695c(0x30a)][_0x5d695c(0x21e)](_0x50f6af)||this['_scheduleSaving'](_0x50f6af);}['_scheduleSaving'](_0x277887){const _0x35d331=_0x5e318a,_0x10ba26=this[_0x35d331(0x14c)]();_0x10ba26===0x0?this[_0x35d331(0xa7)](_0x277887):this['_saveTaskMap'][_0x35d331(0x2e6)](_0x277887,setTimeout(()=>this[_0x35d331(0xa7)](_0x277887),_0x10ba26));}[_0x5e318a(0x14c)](){const _0x5505b6=_0x5e318a;var _0x25bce2;return(_0x25bce2=this[_0x5505b6(0xc3)][_0x5505b6(0x299)](St))!=null?_0x25bce2:zt;}['_saveCache'](_0x29429e){const _0x287242=_0x5e318a,_0x556810=this[_0x287242(0x30a)][_0x287242(0x236)](_0x29429e);return _0x556810!==void 0x0&&window[_0x287242(0x29d)](_0x556810),this[_0x287242(0x2cf)][_0x287242(0x43d)](qe(_0x29429e),this[_0x287242(0x108)][_0x287242(0x236)](_0x29429e))[_0x287242(0x102)](()=>this[_0x287242(0x30a)][_0x287242(0x33f)](_0x29429e));}async[_0x5e318a(0x174)](){const _0x4583e9=_0x5e318a,_0x19b2be=[];this['_saveTaskMap'][_0x4583e9(0x183)]((_0x1768af,_0x3eaffb)=>{const _0x56acf0=_0x4583e9;window['clearTimeout'](_0x1768af),_0x19b2be['push'](this[_0x56acf0(0xa7)](_0x3eaffb)['then'](()=>{const _0xbbfdd4=_0x56acf0;this[_0xbbfdd4(0x30a)][_0xbbfdd4(0x33f)](_0x3eaffb);}));}),await Promise[_0x4583e9(0x423)](_0x19b2be);}['_setupBeforeClosingHandler'](){const _0x2e8a25=_0x5e318a;this[_0x2e8a25(0x16e)](this[_0x2e8a25(0x353)][_0x2e8a25(0x1f4)](()=>{const _0x1119e7=_0x2e8a25;if(this[_0x1119e7(0x30a)]['size'])return this[_0x1119e7(0x2a5)]['t']('collaboration-client.offline-data-not-saved');}));}},exports['LocalCacheService']=_s([ie(0x0,o[_0x5e318a(0x2aa)]),ie(0x1,o[_0x5e318a(0xe6)]),ie(0x2,L[_0x5e318a(0x3e5)]),ie(0x3,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)])),ie(0x4,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)]))],exports[_0x5e318a(0x199)]);function qe(_0x7faa7d){const _0x27287b=_0x5e318a;return _0x27287b(0x46e)+_0x7faa7d;}const pe=o[_0x5e318a(0x3a2)](_0x5e318a(0x159));var Ct=(_0x3028dc=>(_0x3028dc[_0x3028dc['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x5e318a(0x3d8),_0x3028dc[_0x3028dc['OTHER_CLIENTS_EDITING']=0x1]=_0x5e318a(0x248),_0x3028dc))(Ct||{});const ze=0x7530,Je=_0x5e318a(0x3e4);class us extends o[_0x5e318a(0x3cf)]{constructor(){const _0x38cad4=_0x5e318a;super(),u(this,_0x38cad4(0x21d),o[_0x38cad4(0x3fb)]['generateRandomId']()),u(this,_0x38cad4(0x1b5),new Set()),u(this,'_unitOnClients',new Map()),u(this,'_heartbeatTimer',null),u(this,_0x38cad4(0x406),new Map()),u(this,_0x38cad4(0x415),new Map()),this['_init']();}['dispose'](){const _0x52dd6b=_0x5e318a;super[_0x52dd6b(0x17d)](),this[_0x52dd6b(0x406)]['forEach']((_0x3fa572,_0x18f141)=>this[_0x52dd6b(0x38a)](_0x18f141)),this[_0x52dd6b(0x158)]&&window[_0x52dd6b(0x101)](this[_0x52dd6b(0x158)]);}[_0x5e318a(0x1a1)](_0xd41cf4){const _0x1a4a1b=_0x5e318a;return this[_0x1a4a1b(0x24c)](_0xd41cf4)[_0x1a4a1b(0x133)](v[_0x1a4a1b(0x17b)]());}[_0x5e318a(0x3b5)](_0x42ac32){const _0xda1da2=_0x5e318a;this[_0xda1da2(0x1b5)][_0xda1da2(0x147)]===0x0&&this[_0xda1da2(0x308)](),this['_selfUnitIDs'][_0xda1da2(0x40f)](_0x42ac32),this[_0xda1da2(0x2c1)]({'type':0x0,'memberID':this[_0xda1da2(0x21d)],'unitIDs':[_0x42ac32],'isForwarded':!0x1});}['disposeUnit'](_0x13b940){const _0x23d158=_0x5e318a;this['_selfUnitIDs'][_0x23d158(0x33f)](_0x13b940),this['_selfUnitIDs'][_0x23d158(0x147)]===0x0&&this[_0x23d158(0x158)]&&window[_0x23d158(0x101)](this[_0x23d158(0x158)]);}[_0x5e318a(0x24b)](){const _0x45c684=_0x5e318a;this[_0x45c684(0x16e)](o[_0x45c684(0x414)](v[_0x45c684(0x375)](window,_0x45c684(0x2a8))[_0x45c684(0x315)](_0x1ab9bb=>{const _0x1e1e9e=_0x45c684;if(_0x1ab9bb[_0x1e1e9e(0xe1)]!==Je||!_0x1ab9bb[_0x1e1e9e(0x1b2)])return;const _0x43dacb=JSON[_0x1e1e9e(0x429)](_0x1ab9bb[_0x1e1e9e(0x1b2)]);this[_0x1e1e9e(0x114)](_0x43dacb);}))),window[_0x45c684(0x20c)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x45c684(0x21d)],'unitIDs':Array[_0x45c684(0x165)](this[_0x45c684(0x1b5)])}));}[_0x5e318a(0x114)](_0x491180){const _0x2f5d8f=_0x5e318a;switch(_0x491180[_0x2f5d8f(0x1c1)]){case 0x0:this[_0x2f5d8f(0x31c)](_0x491180);break;case 0x1:this[_0x2f5d8f(0x348)](_0x491180);break;case 0x2:this[_0x2f5d8f(0x470)](_0x491180);break;}}['_handleJoinEvent'](_0x3950fd){const _0x2ef6ce=_0x5e318a,{unitIDs:_0x140af4,memberID:_0x2c73a2,isForwarded:_0x3ab097}=_0x3950fd;_0x140af4[_0x2ef6ce(0x183)](_0x23cd89=>{const _0x1e2b13=_0x2ef6ce;if(!_0x3ab097&&this[_0x1e2b13(0x16a)][_0x1e2b13(0x21e)](_0x23cd89)&&this[_0x1e2b13(0x24c)](_0x23cd89)[_0x1e2b13(0x318)](0x1),!this['_unitOnClients'][_0x1e2b13(0x21e)](_0x23cd89)||!this[_0x1e2b13(0x16a)][_0x1e2b13(0x236)](_0x23cd89)[_0x1e2b13(0x21e)](_0x2c73a2)){const _0x575433=this[_0x1e2b13(0x16a)][_0x1e2b13(0x236)](_0x23cd89)||new Set();_0x575433[_0x1e2b13(0x40f)](_0x2c73a2),this['_unitOnClients'][_0x1e2b13(0x2e6)](_0x23cd89,_0x575433),this[_0x1e2b13(0x1df)](_0x2c73a2);}}),_0x3ab097||this[_0x2ef6ce(0x2c1)]({'type':0x0,'memberID':this[_0x2ef6ce(0x21d)],'unitIDs':[...this[_0x2ef6ce(0x1b5)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x1d4ffc){const _0x1e547b=_0x5e318a;this['_removeClearOtherTimer'](_0x1d4ffc);const _0x4f73c6=window['setTimeout'](()=>{const _0x294130=_0x337d;this[_0x294130(0x16a)]['forEach'](_0x20cf72=>{const _0x54f85b=_0x294130;_0x20cf72[_0x54f85b(0x33f)](_0x1d4ffc);});},ze*0x2);this[_0x1e547b(0x406)][_0x1e547b(0x2e6)](_0x1d4ffc,_0x4f73c6);}[_0x5e318a(0x38a)](_0x304e9d){const _0x3c97ab=_0x5e318a;if(this[_0x3c97ab(0x406)]['has'](_0x304e9d)){const _0xbbdb15=this[_0x3c97ab(0x406)][_0x3c97ab(0x236)](_0x304e9d);_0xbbdb15&&window['clearTimeout'](_0xbbdb15),this['_clearOtherTimers']['set'](_0x304e9d,null);}}[_0x5e318a(0x348)](_0x5d19d3){const _0x1f3944=_0x5e318a,{memberID:_0x15bbdb,unitIDs:_0x2f3a98}=_0x5d19d3;_0x2f3a98[_0x1f3944(0x183)](_0x1c59c9=>{const _0x2288ea=_0x1f3944;var _0x544269;const _0x480b4f=this[_0x2288ea(0x16a)][_0x2288ea(0x236)](_0x1c59c9);_0x480b4f&&(_0x480b4f[_0x2288ea(0x33f)](_0x15bbdb),(_0x544269=this[_0x2288ea(0x24c)](_0x1c59c9))==null||_0x544269[_0x2288ea(0x318)](_0x480b4f[_0x2288ea(0x147)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x15bbdb);}['_handleHeartbeatEvent'](_0x2f7825){const _0x480767=_0x5e318a;this['_scheduleClearOtherTimer'](_0x2f7825[_0x480767(0x328)]);}[_0x5e318a(0x2c1)](_0x357d97){const _0x25faa0=_0x5e318a;localStorage[_0x25faa0(0x43d)](Je,JSON[_0x25faa0(0x210)](_0x357d97));}['_scheduleHeartbeat'](){const _0x384c77=_0x5e318a;this['_heartbeatTimer']=window[_0x384c77(0x3cd)](()=>{const _0xc83229=_0x384c77;this[_0xc83229(0x2c1)]({'type':0x2,'memberID':this['_id']});},ze);}['_ensureSubject'](_0x15a6a0){const _0x37b0a0=_0x5e318a;return this[_0x37b0a0(0x415)][_0x37b0a0(0x21e)](_0x15a6a0)||this['_unitStatus'][_0x37b0a0(0x2e6)](_0x15a6a0,new v[(_0x37b0a0(0x18a))](0x0)),this[_0x37b0a0(0x415)][_0x37b0a0(0x236)](_0x15a6a0);}}var ds=Object[_0x5e318a(0x33d)],Ss=Object[_0x5e318a(0x225)],vs=(_0x282eeb,_0x279f37,_0x45d0c7,_0x69c2a4)=>{const _0x3d12f7=_0x5e318a;for(var _0x10a2a1=_0x69c2a4>0x1?void 0x0:_0x69c2a4?Ss(_0x279f37,_0x45d0c7):_0x279f37,_0x292f28=_0x282eeb[_0x3d12f7(0x181)]-0x1,_0x3bb352;_0x292f28>=0x0;_0x292f28--)(_0x3bb352=_0x282eeb[_0x292f28])&&(_0x10a2a1=(_0x69c2a4?_0x3bb352(_0x279f37,_0x45d0c7,_0x10a2a1):_0x3bb352(_0x10a2a1))||_0x10a2a1);return _0x69c2a4&&_0x10a2a1&&ds(_0x279f37,_0x45d0c7,_0x10a2a1),_0x10a2a1;},Ze=(_0x2a831f,_0x4d4dd8)=>(_0x12ee93,_0x11738c)=>_0x4d4dd8(_0x12ee93,_0x11738c,_0x2a831f);let ve=class{constructor(_0x402a5e,_0x19f5a0){const _0x184b61=_0x5e318a;this[_0x184b61(0xa4)]=_0x402a5e,this['_transformService']=_0x19f5a0;}[_0x5e318a(0x149)](_0x570b8c){const _0x48c113=_0x5e318a;this[_0x48c113(0x38f)](_0x570b8c),this[_0x48c113(0x1a3)](_0x570b8c);}[_0x5e318a(0x39e)](_0x1f9af7){const _0x2fcc20=_0x5e318a,_0x53c22d=this[_0x2fcc20(0xa4)]['get'](P[_0x2fcc20(0x202)]),{redoCache:_0x56f98f}=_0x53c22d['getUndoRedoMutationParamsCache']();if(_0x56f98f[_0x2fcc20(0x181)]===0x0)return _0x1f9af7;let _0x3dde92=o[_0x2fcc20(0x3fb)][_0x2fcc20(0x442)](_0x1f9af7[_0x2fcc20(0x31a)][0x0]);for(let _0x3482ca=0x0;_0x3482ca<_0x56f98f[_0x2fcc20(0x181)];_0x3482ca++){const _0xb8dae4={'id':'doc.mutation.rich-text-editing','params':{..._0x56f98f[_0x3482ca]}},_0x3f9825=this['_transformService']['transformMutation'](_0x3dde92,_0xb8dae4,!0x1);if(_['isTransformMutationFailure'](_0x3f9825))throw _0x3f9825[_0x2fcc20(0x45d)];_0x3dde92=_0x3f9825[_0x2fcc20(0x2ae)];}return{...o[_0x2fcc20(0x3fb)]['deepClone'](_0x1f9af7),'mutations':[_0x3dde92]};}[_0x5e318a(0x38f)](_0x45614c){const _0x519504=_0x5e318a,_0x42e942=this['_injector'][_0x519504(0x236)](P[_0x519504(0x202)]),{undoCache:_0x1a1c75,redoCache:_0x1f7c5c}=_0x42e942[_0x519504(0x2c2)]();if(_0x1a1c75[_0x519504(0x181)]===0x0||_0x1f7c5c[_0x519504(0x181)]===0x0)return;const _0x1f1e18=[],_0x94da29=[];let _0x51deb2=o['Tools'][_0x519504(0x442)](_0x45614c[_0x519504(0x31a)][0x0]),_0x113a9f=o[_0x519504(0x3fb)][_0x519504(0x442)](_0x45614c['mutations'][0x0]);for(let _0x1b06aa=_0x1a1c75[_0x519504(0x181)]-0x1;_0x1b06aa>=0x0;_0x1b06aa--){const _0x47933c={'id':'doc.mutation.rich-text-editing','params':{..._0x1a1c75[_0x1b06aa]}},_0x1f400c={'id':_0x519504(0x1ec),'params':{..._0x1f7c5c[_0x1b06aa]}},_0x3faecd=this[_0x519504(0xca)][_0x519504(0x3d2)](_0x51deb2,_0x47933c,!0x1),_0x3c179b=this[_0x519504(0xca)][_0x519504(0x3d2)](_0x113a9f,_0x1f400c,!0x1);if(_[_0x519504(0x281)](_0x3faecd))throw _0x3faecd[_0x519504(0x45d)];if(_[_0x519504(0x281)](_0x3c179b))throw _0x3c179b[_0x519504(0x45d)];_0x1f1e18[_0x519504(0x9a)](_0x3faecd[_0x519504(0xfe)][_0x519504(0x119)]),_0x94da29[_0x519504(0x9a)](_0x3c179b[_0x519504(0xfe)][_0x519504(0x119)]),_0x51deb2=_0x3faecd[_0x519504(0x2ae)],_0x113a9f=_0x3c179b[_0x519504(0x2ae)];}_0x42e942[_0x519504(0x340)]({'undoCache':_0x1f1e18,'redoCache':_0x94da29});}[_0x5e318a(0x1a3)](_0x2b25de){const _0xfcbe71=_0x5e318a,_0xc9f14c=this[_0xfcbe71(0xa4)][_0xfcbe71(0x236)](P[_0xfcbe71(0x202)]),_0xb86074=_0xc9f14c[_0xfcbe71(0x43c)]();if(_0xb86074==null)return;const _0x384148=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b25de[_0xfcbe71(0x312)],'actions':null,'textRanges':[_0xb86074]}}],_0x31b0cc=this[_0xfcbe71(0xca)][_0xfcbe71(0x319)](_0x2b25de,_0x384148);if(!_[_0xfcbe71(0x438)](_0x31b0cc))throw _0x31b0cc[_0xfcbe71(0x45d)];const _0x503cce=_0x31b0cc[_0xfcbe71(0xfe)][0x0][_0xfcbe71(0x119)][_0xfcbe71(0x386)];Array['isArray'](_0x503cce)&&_0x503cce[_0xfcbe71(0x181)]&&_0xc9f14c['setActiveRange'](_0x503cce[0x0]);}};ve=vs([Ze(0x0,o[_0x5e318a(0x23f)](o['Injector'])),Ze(0x1,_[_0x5e318a(0xa0)])],ve);var ms=Object[_0x5e318a(0x33d)],gs=Object[_0x5e318a(0x225)],fs=(_0x5e72cd,_0x547036,_0x5cdcc0,_0x24ff1a)=>{for(var _0x32ed23=_0x24ff1a>0x1?void 0x0:_0x24ff1a?gs(_0x547036,_0x5cdcc0):_0x547036,_0x22691e=_0x5e72cd['length']-0x1,_0x54e8ef;_0x22691e>=0x0;_0x22691e--)(_0x54e8ef=_0x5e72cd[_0x22691e])&&(_0x32ed23=(_0x24ff1a?_0x54e8ef(_0x547036,_0x5cdcc0,_0x32ed23):_0x54e8ef(_0x32ed23))||_0x32ed23);return _0x24ff1a&&_0x32ed23&&ms(_0x547036,_0x5cdcc0,_0x32ed23),_0x32ed23;},Qe=(_0x5eecd0,_0x3e9989)=>(_0x36032d,_0xacb6d8)=>_0x3e9989(_0x36032d,_0xacb6d8,_0x5eecd0);let me=class{constructor(_0x5240fe,_0x43c796){const _0xf19e2d=_0x5e318a;this[_0xf19e2d(0xa4)]=_0x5240fe,this[_0xf19e2d(0xca)]=_0x43c796;}[_0x5e318a(0x436)](_0x31ac9f){const _0x2e674d=_0x5e318a;var _0x48d773;const _0x51d8fa=this[_0x2e674d(0xa4)][_0x2e674d(0x236)](P[_0x2e674d(0x238)]),_0x47c460=(_0x48d773=_0x51d8fa[_0x2e674d(0x20e)]())!=null?_0x48d773:[],_0xbe7708=_0x47c460==null?void 0x0:_0x47c460['map'](P['serializeDocRange']);if(_0xbe7708['length']===0x0)return;const _0x8517f4=[{'id':_0x2e674d(0x1ec),'params':{'unitId':_0x31ac9f['unitID'],'actions':null,'textRanges':_0xbe7708}}],_0x41e04e=this['_transformService']['transformMutationsWithChangeset'](_0x31ac9f,_0x8517f4);if(!_[_0x2e674d(0x438)](_0x41e04e))throw _0x41e04e['error'];const _0x35ee99=_0x41e04e[_0x2e674d(0xfe)][0x0][_0x2e674d(0x119)][_0x2e674d(0x386)];Array['isArray'](_0x35ee99)&&_0x35ee99[_0x2e674d(0x181)]&&_0x51d8fa[_0x2e674d(0x3f0)](_0x35ee99,!0x1);}};me=fs([Qe(0x0,o[_0x5e318a(0x23f)](o['Injector'])),Qe(0x1,_['ITransformService'])],me);function bt(_0x253ee5){const _0xb0ecf1=_0x5e318a;let _0x1d7292='';for(const _0x5333a4 of _0x253ee5){const {startOffset:_0x5dcb90,endOffset:_0x1c6f11,isActive:_0x50a0bf}=_0x5333a4;_0x1d7292[_0xb0ecf1(0x181)]&&(_0x1d7292+=','),_0x1d7292+=_0x5dcb90+':'+_0x1c6f11+':'+(_0x50a0bf?'1':'0');}return _0x1d7292;}function Is(_0x419fd9){const _0x121d92=_0x5e318a,_0x55319e=_0x419fd9[_0x121d92(0x13a)](','),_0x4ea2f5=[];for(const _0x4454ed of _0x55319e){const [_0x197a74,_0x43b1fa,_0x5709f5]=_0x4454ed['split'](':');_0x4ea2f5[_0x121d92(0x276)]({'startOffset':Number(_0x197a74),'endOffset':Number(_0x43b1fa),'collapsed':_0x197a74===_0x43b1fa,'isActive':_0x5709f5==='1'});}return _0x4ea2f5['some'](_0x3409a6=>_0x3409a6[_0x121d92(0x166)])||(_0x4ea2f5[0x0][_0x121d92(0x166)]=!0x0),_0x4ea2f5;}class We extends o['RxDisposable']{constructor(){const _0x811390=_0x5e318a;super(...arguments),u(this,'_collabCursorState$',new v[(_0x811390(0x18a))](null)),u(this,_0x811390(0x34d),this['_collabCursorState$'][_0x811390(0x468)]());}[_0x5e318a(0x27a)](_0x142f6e){const _0x396a4a=_0x5e318a,{unitID:_0x513cb1,memberID:_0x4f67fa,textRanges:_0x59acbd}=_0x142f6e,_0x24e49c=bt(_0x59acbd),_0x3a09af={'unitID':_0x513cb1,'memberID':_0x4f67fa,'selection':_0x24e49c};this[_0x396a4a(0x277)][_0x396a4a(0x318)](_0x3a09af);}}var ps=Object[_0x5e318a(0x33d)],Es=Object[_0x5e318a(0x225)],Cs=(_0x7dc8ed,_0x380e61,_0x9a1eb6,_0x263b08)=>{const _0x3aa220=_0x5e318a;for(var _0x1147cf=_0x263b08>0x1?void 0x0:_0x263b08?Es(_0x380e61,_0x9a1eb6):_0x380e61,_0x1097aa=_0x7dc8ed[_0x3aa220(0x181)]-0x1,_0x10414e;_0x1097aa>=0x0;_0x1097aa--)(_0x10414e=_0x7dc8ed[_0x1097aa])&&(_0x1147cf=(_0x263b08?_0x10414e(_0x380e61,_0x9a1eb6,_0x1147cf):_0x10414e(_0x1147cf))||_0x1147cf);return _0x263b08&&_0x1147cf&&ps(_0x380e61,_0x9a1eb6,_0x1147cf),_0x1147cf;},et=(_0x46f9de,_0x17662d)=>(_0x52abda,_0x25b2a1)=>_0x17662d(_0x52abda,_0x25b2a1,_0x46f9de);function bs(_0xa8c543){const _0xed13be=_0x5e318a,{unitID:_0x31dff9,mutations:_0x14c364}=_0xa8c543;return{'unitId':_0x31dff9,'subUnitId':_0x14c364[0x0][_0xed13be(0x119)]['subUnitId']};}let ge=class{constructor(_0x191c2c,_0x1bed23){const _0x3203b9=_0x5e318a;this[_0x3203b9(0xa4)]=_0x191c2c,this[_0x3203b9(0xca)]=_0x1bed23;}[_0x5e318a(0x436)](_0x53204c){const _0x124e05=_0x5e318a;var _0x124fe9,_0x4ccc42,_0x2849c8;const _0xf79324=this[_0x124e05(0xa4)]['get'](p[_0x124e05(0xde)]),{unitId:_0x14d135,subUnitId:_0x193f28}=bs(_0x53204c),_0x551ad3=_0xf79324[_0x124e05(0x310)](_0x14d135)[_0x124e05(0x448)]();if(_0x551ad3['length']===0x0||!_0x14d135||!_0x193f28)return;const _0x5c474e=[{'id':p[_0x124e05(0x2ac)]['id'],'params':{'unitId':_0x14d135,'subUnitId':_0x193f28,'selections':o[_0x124e05(0x3fb)][_0x124e05(0x442)](_0x551ad3)}}],_0x27604c=this[_0x124e05(0xca)]['transformMutationsWithChangeset'](_0x53204c,_0x5c474e);if(!_['isTransformMutationsWithChangesetSuccess'](_0x27604c))throw _0x27604c[_0x124e05(0x45d)];const _0x2473b8=(_0x2849c8=(_0x4ccc42=(_0x124fe9=_0x27604c['m2Prime'][0x0])==null?void 0x0:_0x124fe9[_0x124e05(0x119)])==null?void 0x0:_0x4ccc42[_0x124e05(0x432)])!=null?_0x2849c8:_0x551ad3;Array[_0x124e05(0x379)](_0x2473b8)&&_0x2473b8['length']&&this[_0x124e05(0xa4)][_0x124e05(0x236)](o[_0x124e05(0x247)])[_0x124e05(0x2c7)](p[_0x124e05(0x2ac)]['id'],{'unitId':_0x14d135,'subUnitId':_0x193f28,'selections':_0x2473b8});}};ge=Cs([et(0x0,o[_0x5e318a(0x23f)](o['Injector'])),et(0x1,_['ITransformService'])],ge);const Ts=new Set([p[_0x5e318a(0xe7)]['id']]);function tt(_0x4b6208,_0x4ff59b,_0x56aaf0,_0x221e11,_0x1609ff){const _0x271f0=_0x5e318a;var _0x3efaf0,_0x17286b,_0x31c02e,_0xbd9f30;const _0x24d2b4=[];for(const _0x27130b of _0x4b6208)if(Ts[_0x271f0(0x21e)](_0x27130b['id'])){if(_0x24d2b4[_0x271f0(0x181)]>0x0)break;_0x24d2b4[_0x271f0(0x276)](_0x27130b);break;}else _0x24d2b4[_0x271f0(0x276)](_0x27130b);const _0x5f58fb=(_0x17286b=(_0x3efaf0=_0x1609ff['getCurrentUser']())==null?void 0x0:_0x3efaf0['userID'])!=null?_0x17286b:_0x271f0(0x107),_0x47f1fe=(_0xbd9f30=(_0x31c02e=_0x1609ff[_0x271f0(0x3a7)]())==null?void 0x0:_0x31c02e[_0x271f0(0x328)])!=null?_0xbd9f30:_0x271f0(0x107);return{'changeset':{'unitID':_0x4ff59b,'type':_[_0x271f0(0x478)](_0x56aaf0[_0x271f0(0x121)](_0x4ff59b)),'baseRev':_0x221e11[_0x271f0(0x1fa)](_0x4ff59b),'revision':0x0,'userID':_0x5f58fb,'memberID':_0x47f1fe,'mutations':_0x24d2b4},'pendingMutations':_0x4b6208[_0x271f0(0x321)](_0x24d2b4[_0x271f0(0x181)])};}function Rs(_0x3f35b1,_0x420571,_0x3c7028,_0x5e489c,_0x422b6c){const _0x2e7868=_0x5e318a;var _0x52eda6,_0x215af6,_0xf72c25,_0x54ea38;const _0x4d7081=[_0x3f35b1[_0x2e7868(0x2bc)]((_0x39d4c9,_0x3614ee)=>{const _0x41dc89=_0x2e7868;var _0x1fdbf1;const {id:_0x58c4db}=_0x39d4c9,{id:_0x419aeb,type:_0x276570}=_0x3614ee,_0x227766=(_0x1fdbf1=_0x39d4c9['params'])!=null?_0x1fdbf1:{'actions':null},_0x8471b=_0x3614ee[_0x41dc89(0x119)];if(_0x58c4db&&_0x58c4db!==_0x419aeb)throw new Error(_0x41dc89(0x3d4)+_0x58c4db+_0x41dc89(0x30f)+_0x419aeb+'.');return{..._0x39d4c9,'id':_0x419aeb,'type':_0x276570,'params':{'unitId':_0x8471b[_0x41dc89(0x10e)],'textRanges':_0x8471b[_0x41dc89(0x386)],'actions':o[_0x41dc89(0x3f9)]['compose'](_0x227766[_0x41dc89(0x1d2)],_0x8471b['actions'])}};},{})],_0x4f9fc0=(_0x215af6=(_0x52eda6=_0x422b6c[_0x2e7868(0x3a7)]())==null?void 0x0:_0x52eda6[_0x2e7868(0x1c0)])!=null?_0x215af6:_0x2e7868(0x107),_0x16df37=(_0x54ea38=(_0xf72c25=_0x422b6c[_0x2e7868(0x3a7)]())==null?void 0x0:_0xf72c25['memberID'])!=null?_0x54ea38:_0x2e7868(0x107);return{'changeset':{'unitID':_0x420571,'type':_['mapDocumentTypeToUniverType'](_0x3c7028[_0x2e7868(0x121)](_0x420571)),'baseRev':_0x5e489c[_0x2e7868(0x1fa)](_0x420571),'revision':0x0,'userID':_0x4f9fc0,'memberID':_0x16df37,'mutations':_0x4d7081},'pendingMutations':[]};}const Os={'id':p[_0x5e318a(0x12b)]['id'],'type':o['CommandType'][_0x5e318a(0x427)],'params':{}};var Ds=Object['defineProperty'],Ps=Object['getOwnPropertyDescriptor'],K=(_0x52ab7d,_0x4971be,_0x20a509,_0x4f4510)=>{const _0x429eca=_0x5e318a;for(var _0x9c44ed=_0x4f4510>0x1?void 0x0:_0x4f4510?Ps(_0x4971be,_0x20a509):_0x4971be,_0x5c887a=_0x52ab7d[_0x429eca(0x181)]-0x1,_0x8168d;_0x5c887a>=0x0;_0x5c887a--)(_0x8168d=_0x52ab7d[_0x5c887a])&&(_0x9c44ed=(_0x4f4510?_0x8168d(_0x4971be,_0x20a509,_0x9c44ed):_0x8168d(_0x9c44ed))||_0x9c44ed);return _0x4f4510&&_0x9c44ed&&Ds(_0x4971be,_0x20a509,_0x9c44ed),_0x9c44ed;},m=(_0x5c2df2,_0x37d6d4)=>(_0x685e73,_0x4159a2)=>_0x37d6d4(_0x685e73,_0x4159a2,_0x5c2df2),D=(_0x514b8b=>(_0x514b8b[_0x5e318a(0x146)]=_0x5e318a(0x19d),_0x514b8b['SYNCED']=_0x5e318a(0x365),_0x514b8b[_0x5e318a(0x157)]=_0x5e318a(0x29c),_0x514b8b[_0x5e318a(0x12f)]='awaiting',_0x514b8b[_0x5e318a(0x3da)]=_0x5e318a(0xb7),_0x514b8b[_0x5e318a(0x1c5)]=_0x5e318a(0x113),_0x514b8b['CONFLICT']=_0x5e318a(0xb6),_0x514b8b[_0x5e318a(0x396)]=_0x5e318a(0x40c),_0x514b8b))(D||{});class X{constructor(_0x2e0c1b,_0x5beb98,_0x35c99a,_0x2a7e6d,_0x2dcc4e,_0x150589,_0xe1d567,_0x9fe5c9,_0x3ce2e3){const _0x1f7a1c=_0x5e318a;u(this,_0x1f7a1c(0x112),null),u(this,_0x1f7a1c(0xd7),[]),(this[_0x1f7a1c(0x312)]=_0x2e0c1b,this[_0x1f7a1c(0x1c1)]=_0x5beb98,this['_handler']=_0x2dcc4e,this['_commandService']=_0x150589,this[_0x1f7a1c(0x2b2)]=_0xe1d567,this[_0x1f7a1c(0x30c)]=_0x9fe5c9,this[_0x1f7a1c(0x11f)]=_0x3ce2e3,this['_awaitingChangeset']=_0x35c99a,this[_0x1f7a1c(0xd7)]=_0x2a7e6d);}[_0x5e318a(0x161)](_0x388200){const _0x4691ab=_0x5e318a,_0x4f94b8=this['_revisionService'][_0x4691ab(0x1fa)](this[_0x4691ab(0x312)]);return _0x388200[_0x4691ab(0x2c0)]>_0x4f94b8+0x1?(this['_handler'][_0x4691ab(0x1f2)]({'from':_0x4f94b8,'to':_0x388200[_0x4691ab(0x2c0)]-0x1}),!0x0):!0x1;}[_0x5e318a(0x457)](_0xe11edf){const _0x3ad155=_0x5e318a;this[_0x3ad155(0x2b2)][_0x3ad155(0x447)](this[_0x3ad155(0x312)],_0xe11edf);}[_0x5e318a(0x1bf)](_0x31d21d){const _0x5c3178=_0x5e318a;var _0x59f25a,_0x382a68;(_0x382a68=(_0x59f25a=this['_handler'])[_0x5c3178(0x44d)])==null||_0x382a68[_0x5c3178(0x3a8)](_0x59f25a,_0x31d21d);}['_transformIMECache'](_0x2ca350){const _0x4b5ff7=_0x5e318a;var _0x2b425a,_0x1350e1;return(_0x1350e1=(_0x2b425a=this[_0x4b5ff7(0x1b7)])['onTransformIME'])==null?void 0x0:_0x1350e1['call'](_0x2b425a,_0x2ca350);}[_0x5e318a(0x3bb)](_0x44489e){const _0x3fc235=_0x5e318a;var _0x1c601e,_0x41f8d1,_0x372068;return(_0x372068=(_0x41f8d1=(_0x1c601e=this[_0x3fc235(0x1b7)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x41f8d1['call'](_0x1c601e,_0x44489e))!=null?_0x372068:_0x44489e;}['_syncEditingCollabCursor'](_0xa35e9){const _0x378c7a=_0x5e318a;var _0x38c359,_0x393f36;if(this[_0x378c7a(0x1c1)]===j[_0x378c7a(0x41b)]){const {unitID:_0x207d8b,mutations:_0x45bc49,memberID:_0x4efa45}=_0xa35e9,_0x1cec00=_0x45bc49[0x0][_0x378c7a(0x119)][_0x378c7a(0x386)];Array['isArray'](_0x1cec00)&&_0x1cec00[_0x378c7a(0x181)]>0x0&&((_0x393f36=(_0x38c359=this[_0x378c7a(0x1b7)])['onSyncEditingCollabCursor'])==null||_0x393f36[_0x378c7a(0x3a8)](_0x38c359,{'unitID':_0x207d8b,'memberID':_0x4efa45,'textRanges':_0x1cec00}));}}['_updateLocalCache'](){const _0x4b27f9=_0x5e318a;this['_localCacheService'][_0x4b27f9(0x443)](this[_0x4b27f9(0x312)],this[_0x4b27f9(0x1c1)],this[_0x4b27f9(0x112)],this['_pendingMutations']);}[_0x5e318a(0x40a)](){const _0x3822b8=_0x5e318a;return this[_0x3822b8(0x30c)][_0x3822b8(0x1fa)](this['unitID']);}[_0x5e318a(0x366)](){const _0x3df3cf=_0x5e318a;this[_0x3df3cf(0x30c)]['incrementRevForDocument'](this[_0x3df3cf(0x312)]);}[_0x5e318a(0x223)](_0x17b391){const _0xeac4e7=_0x5e318a;var _0x3880e0;const _0x2d912a=this['_transformRemoteChangesetByIMECache'](_0x17b391),_0x5d92a0=o[_0xeac4e7(0x3c1)](_0x2d912a[_0xeac4e7(0x31a)],this[_0xeac4e7(0x10f)],{'fromCollab':!0x0});if(!_0x5d92a0[_0xeac4e7(0x27f)])throw _0x5d92a0[_0xeac4e7(0x45d)]instanceof Error?_0x5d92a0[_0xeac4e7(0x45d)]:new Error((_0x3880e0=_0x5d92a0[_0xeac4e7(0x45d)])!=null?_0x3880e0:_0xeac4e7(0x339));this[_0xeac4e7(0x234)](_0x2d912a),this[_0xeac4e7(0x457)](_0x17b391),this['_transformSelections'](_0x2d912a),this[_0xeac4e7(0x182)](_0x2d912a),this[_0xeac4e7(0x366)]();}}let ce=class extends X{constructor(_0x3a5a35,_0x385796,_0x563542,_0x217aff,_0x164368,_0x35dea3,_0x5296cc,_0x24a30a,_0x72a247,_0x3faa1e){const _0x116f80=_0x5e318a;super(_0x3a5a35,_0x385796,null,[],_0x563542,_0x24a30a,_0x5296cc,_0x217aff,_0x164368),u(this,_0x116f80(0x170),_0x116f80(0x365)),(this['_injector']=_0x35dea3,this['_logService']=_0x72a247,this[_0x116f80(0xca)]=_0x3faa1e);}['appendMutation'](_0x58ecd8){const _0x384917=_0x5e318a,_0x251127=this[_0x384917(0xa4)][_0x384917(0x376)]($,this[_0x384917(0x312)],this[_0x384917(0x1c1)],[_0x58ecd8],this[_0x384917(0x1b7)]);return _0x251127[_0x384917(0xec)](),_0x251127[_0x384917(0x11d)](),_0x251127;}['onRemoteChangeset'](_0x1d5950){const _0x49d9d4=_0x5e318a;if(this[_0x49d9d4(0x161)](_0x1d5950))return this[_0x49d9d4(0xa4)]['createInstance'](H,this['unitID'],this[_0x49d9d4(0x1c1)],null,[],null,[_0x1d5950],this[_0x49d9d4(0x1b7)]);try{const _0x406db3=this['_transformService']['transformMutationsWithChangeset'](_0x1d5950,[Os]);if(_[_0x49d9d4(0x438)](_0x406db3)){const {c1Prime:_0x393cf6}=_0x406db3;return this[_0x49d9d4(0x223)](_0x393cf6),this;}throw _0x406db3['error'];}catch(_0x1d7940){return this['_logService']['error'](_0x1d7940),this['_onConflict'](!0x1);}}[_0x5e318a(0x1e1)](_0x6abebc){const _0x4ee51d=_0x5e318a;return this[_0x4ee51d(0xa4)]['createInstance'](B,this[_0x4ee51d(0x312)],this[_0x4ee51d(0x1c1)],null,[],this[_0x4ee51d(0x1b7)],_0x6abebc);}[_0x5e318a(0x363)](){const _0x557f3d=_0x5e318a;throw new Error(_0x557f3d(0x461));}[_0x5e318a(0x1a7)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x5e318a(0x160)](){const _0x17e90e=_0x5e318a;return this[_0x17e90e(0xa4)][_0x17e90e(0x376)](V,this['unitID'],this[_0x17e90e(0x1c1)],null,[],this[_0x17e90e(0x1b7)]);}[_0x5e318a(0xa8)](){return this;}[_0x5e318a(0x94)](){const _0x104073=_0x5e318a;throw new Error(_0x104073(0x168));}};ce=K([m(0x3,o['Inject'](_[_0x5e318a(0x2bd)])),m(0x4,o['Inject'](exports['LocalCacheService'])),m(0x5,o['Inject'](o[_0x5e318a(0x35b)])),m(0x6,o[_0x5e318a(0x36d)]),m(0x7,o[_0x5e318a(0x247)]),m(0x8,o[_0x5e318a(0xfb)]),m(0x9,_[_0x5e318a(0xa0)])],ce);let $=class extends X{constructor(_0x146b25,_0x5a9c3b,_0x5039f5,_0x3b4bda,_0xb55c31,_0x304837,_0x481f43,_0x40fc07,_0x39deb3,_0x59a0ef,_0xd935d0,_0xcdc9a8,_0x57305c,_0x259f7e){const _0x1168fa=_0x5e318a;super(_0x146b25,_0x5a9c3b,null,_0x5039f5,_0x3b4bda,_0x59a0ef,_0x259f7e,_0x304837,_0x481f43),u(this,_0x1168fa(0x170),_0x1168fa(0x29c)),u(this,'_scheduleTimestamp',null),u(this,_0x1168fa(0x441),null),(this[_0x1168fa(0xa4)]=_0xb55c31,this['_memberService']=_0x40fc07,this[_0x1168fa(0x141)]=_0x39deb3,this[_0x1168fa(0xc3)]=_0xd935d0,this[_0x1168fa(0xca)]=_0xcdc9a8,this[_0x1168fa(0x1fd)]=_0x57305c);}[_0x5e318a(0xcd)](_0x332adc){const _0x12de2c=_0x5e318a;return this[_0x12de2c(0xd7)][_0x12de2c(0x276)](_0x332adc),this['_updateLocalCache'](),this;}[_0x5e318a(0x3be)](_0x433662){const _0x1768aa=_0x5e318a;if(this[_0x1768aa(0x161)](_0x433662))return this['_clearScheduledTask'](),this[_0x1768aa(0xa4)][_0x1768aa(0x376)](H,this[_0x1768aa(0x312)],this[_0x1768aa(0x1c1)],null,this[_0x1768aa(0xd7)],null,[_0x433662],this[_0x1768aa(0x1b7)]);try{const _0x414447=this[_0x1768aa(0xca)][_0x1768aa(0x319)](_0x433662,this[_0x1768aa(0xd7)]);if(_[_0x1768aa(0x438)](_0x414447)){const {c1Prime:_0x5a2495,m2Prime:_0x269bbc}=_0x414447;this['_executeRemoteChangeset'](_0x5a2495);const _0x2d5c7e=this[_0x1768aa(0xa4)][_0x1768aa(0x376)]($,this[_0x1768aa(0x312)],this[_0x1768aa(0x1c1)],_0x269bbc,this[_0x1768aa(0x1b7)]);return this['_clearScheduledTask'](),_0x2d5c7e[_0x1768aa(0xec)](this[_0x1768aa(0x279)]?Math[_0x1768aa(0xae)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x1768aa(0x16b)]()),_0x2d5c7e;}throw _0x414447['error'];}catch(_0x262373){return this['_logService'][_0x1768aa(0x45d)](_0x262373),this[_0x1768aa(0x1e1)](!0x1);}}[_0x5e318a(0x363)](){const _0x553ef2=_0x5e318a;throw new Error(_0x553ef2(0x284));}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x5e318a(0x160)](){const _0x582e06=_0x5e318a;return this[_0x582e06(0x30d)](),this[_0x582e06(0xa4)][_0x582e06(0x376)](V,this[_0x582e06(0x312)],this['type'],null,this['_pendingMutations'],this[_0x582e06(0x1b7)]);}[_0x5e318a(0xa8)](){return this;}['_schedule'](_0x550e73){const _0x2931f7=_0x5e318a;_0x550e73=_0x550e73!=null?_0x550e73:this['_getSendChangesetTimeout'](),this[_0x2931f7(0x279)]=new Date()['getTime'](),this['_sendingTimer']=setTimeout(()=>{const _0x428acb=_0x2931f7;this[_0x428acb(0x30d)]();let _0x94b9be=null;switch(this['type']){case j[_0x428acb(0x1dd)]:{_0x94b9be=tt(this['_pendingMutations'],this[_0x428acb(0x312)],this[_0x428acb(0x1fd)],this[_0x428acb(0x30c)],this['_memberService']);break;}case j[_0x428acb(0x41b)]:{this[_0x428acb(0xd7)][_0x428acb(0x446)](_0x2330a7=>_0x2330a7['id']===P[_0x428acb(0x305)]['id'])?_0x94b9be=Rs(this['_pendingMutations'],this[_0x428acb(0x312)],this[_0x428acb(0x1fd)],this[_0x428acb(0x30c)],this['_memberService']):_0x94b9be=tt(this[_0x428acb(0xd7)],this['unitID'],this[_0x428acb(0x1fd)],this[_0x428acb(0x30c)],this[_0x428acb(0x3d5)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x428acb(0x1c1)]+_0x428acb(0x15d));}const {changeset:_0x4b0e44,pendingMutations:_0x339649}=_0x94b9be;this[_0x428acb(0x1b7)][_0x428acb(0x31b)](_0x4b0e44);const _0x3aed62=_0x339649[_0x428acb(0x181)]?this[_0x428acb(0xa4)][_0x428acb(0x376)](x,this[_0x428acb(0x312)],this[_0x428acb(0x1c1)],_0x4b0e44,_0x339649,this[_0x428acb(0x1b7)]):this[_0x428acb(0xa4)]['createInstance'](k,this['unitID'],this[_0x428acb(0x1c1)],_0x4b0e44,this[_0x428acb(0x1b7)]);_0x3aed62[_0x428acb(0x11d)](),this['_handler'][_0x428acb(0x115)](this,_0x3aed62);},_0x550e73);}[_0x5e318a(0x16b)](){const _0x32b8f3=_0x5e318a;var _0x169dfc;return(_0x169dfc=this[_0x32b8f3(0xc3)][_0x32b8f3(0x299)](ht))!=null?_0x169dfc:Wt;}[_0x5e318a(0x94)](){const _0x5b9603=_0x5e318a;throw new Error(_0x5b9603(0x2dc));}[_0x5e318a(0x30d)](){const _0x3e0a79=_0x5e318a;this[_0x3e0a79(0x441)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}['_onConflict'](_0x2d9490){const _0x4cb518=_0x5e318a;return this[_0x4cb518(0x30d)](),this[_0x4cb518(0xa4)]['createInstance'](B,this[_0x4cb518(0x312)],this['type'],null,this['_pendingMutations'],this[_0x4cb518(0x1b7)],_0x2d9490);}};$=K([m(0x4,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),m(0x5,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),m(0x6,o['Inject'](exports[_0x5e318a(0x199)])),m(0x7,o[_0x5e318a(0x23f)](Y)),m(0x8,o[_0x5e318a(0xfb)]),m(0x9,o[_0x5e318a(0x247)]),m(0xa,o['IConfigService']),m(0xb,_['ITransformService']),m(0xc,o[_0x5e318a(0x1da)]),m(0xd,o[_0x5e318a(0x36d)])],$);let k=class extends X{constructor(_0x12c52c,_0x27dcff,_0x492d94,_0x38a85e,_0x1526df,_0x57d11a,_0x37598a,_0x52e98f,_0x2144b8,_0x321af8,_0x2da8df){const _0x1e71b7=_0x5e318a;super(_0x12c52c,_0x27dcff,_0x492d94,[],_0x38a85e,_0x52e98f,_0x2da8df,_0x57d11a,_0x37598a),u(this,_0x1e71b7(0x170),_0x1e71b7(0x2f2)),(this['_injector']=_0x1526df,this['_logService']=_0x2144b8,this['_transformService']=_0x321af8);}[_0x5e318a(0xcd)](_0x45f90f){const _0x1e7a7f=_0x5e318a,_0x30794a=this[_0x1e7a7f(0xa4)][_0x1e7a7f(0x376)](x,this[_0x1e7a7f(0x312)],this['type'],this[_0x1e7a7f(0x112)],[_0x45f90f],this[_0x1e7a7f(0x1b7)]);return _0x30794a[_0x1e7a7f(0x11d)](),_0x30794a;}['onRemoteChangeset'](_0x4763a9){const _0x3027a1=_0x5e318a;if(this[_0x3027a1(0x161)](_0x4763a9))return this[_0x3027a1(0xa4)][_0x3027a1(0x376)](H,this[_0x3027a1(0x312)],this['type'],this['_awaitingChangeset'],[],null,[_0x4763a9],this['_handler']);try{const _0x2834f1=this[_0x3027a1(0xca)][_0x3027a1(0x2d1)]([_0x4763a9],[this['_awaitingChangeset']],!0x1);if(_[_0x3027a1(0x3f5)](_0x2834f1)){const {c1Prime:_0x13c9b2,c2Prime:_0x58fd76}=_0x2834f1;this[_0x3027a1(0x223)](_0x13c9b2[0x0]),_0x58fd76[0x0]['baseRev']=this[_0x3027a1(0x40a)]();const _0x1d8da7=this['_injector'][_0x3027a1(0x376)](k,this[_0x3027a1(0x312)],this[_0x3027a1(0x1c1)],_0x58fd76[0x0],this[_0x3027a1(0x1b7)]);return _0x1d8da7[_0x3027a1(0x11d)](),_0x1d8da7;}return this['_onConflict'](!0x1);}catch(_0x366fdb){return this[_0x3027a1(0x141)][_0x3027a1(0x45d)](_0x366fdb),this[_0x3027a1(0x1e1)](!0x1);}}[_0x5e318a(0x363)](_0x203d48){const _0x54d067=_0x5e318a,_0x357ef5=this[_0x54d067(0x30c)][_0x54d067(0x1fa)](this[_0x54d067(0x312)]);if(_0x203d48['revision']<_0x357ef5-0x1)return this;if(this[_0x54d067(0x161)](_0x203d48))return this[_0x54d067(0xa4)][_0x54d067(0x376)](H,this[_0x54d067(0x312)],this[_0x54d067(0x1c1)],null,[],this['_awaitingChangeset'],[],this[_0x54d067(0x1b7)]);this['_incrementRevisionNumber']();const _0x39d294=this[_0x54d067(0xa4)][_0x54d067(0x376)](ce,this['unitID'],this[_0x54d067(0x1c1)],this[_0x54d067(0x1b7)]);return _0x39d294['_updateLocalCache'](),_0x39d294;}['onRemoteRej'](_0x374d34){const _0x370d51=_0x5e318a;return this['_onConflict'](!!(_0x374d34!=null&&_0x374d34[_0x370d51(0x128)]));}['toggleOffline'](){const _0x5bb5df=_0x5e318a;return this[_0x5bb5df(0xa4)][_0x5bb5df(0x376)](V,this[_0x5bb5df(0x312)],this[_0x5bb5df(0x1c1)],this[_0x5bb5df(0x112)],[],this[_0x5bb5df(0x1b7)]);}[_0x5e318a(0xa8)](){return this;}[_0x5e318a(0x94)](){const _0x261574=_0x5e318a;this[_0x261574(0x1b7)][_0x261574(0x31b)](this[_0x261574(0x112)]);}[_0x5e318a(0x1e1)](_0x34885f){const _0x3fd036=_0x5e318a;return this[_0x3fd036(0xa4)][_0x3fd036(0x376)](B,this[_0x3fd036(0x312)],this[_0x3fd036(0x1c1)],this[_0x3fd036(0x112)],[],this[_0x3fd036(0x1b7)],_0x34885f);}};k=K([m(0x4,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),m(0x5,o[_0x5e318a(0x23f)](_['RevisionService'])),m(0x6,o['Inject'](exports[_0x5e318a(0x199)])),m(0x7,o['ICommandService']),m(0x8,o[_0x5e318a(0xfb)]),m(0x9,_['ITransformService']),m(0xa,o[_0x5e318a(0x36d)])],k);let x=class extends X{constructor(_0x24f490,_0x352361,_0x4722f6,_0x34d3b4,_0x46f20e,_0x5db5ed,_0x2f0e39,_0x44b957,_0x276060,_0x5741f3,_0x13b61a,_0x1f7e54){const _0x1b139f=_0x5e318a;super(_0x24f490,_0x352361,_0x4722f6,_0x34d3b4,_0x46f20e,_0x276060,_0x1f7e54,_0x2f0e39,_0x44b957),u(this,_0x1b139f(0x170),_0x1b139f(0xb7)),(this[_0x1b139f(0xa4)]=_0x5db5ed,this[_0x1b139f(0x141)]=_0x5741f3,this['_transformService']=_0x13b61a);}['appendMutation'](_0x355a9f){const _0x547af6=_0x5e318a;return this[_0x547af6(0xd7)][_0x547af6(0x276)](_0x355a9f),this;}[_0x5e318a(0x3be)](_0x50aab9){const _0x3f129e=_0x5e318a;if(this[_0x3f129e(0x161)](_0x50aab9))return this[_0x3f129e(0xa4)][_0x3f129e(0x376)](H,this[_0x3f129e(0x312)],this[_0x3f129e(0x1c1)],this[_0x3f129e(0x112)],this[_0x3f129e(0xd7)],null,[_0x50aab9],this[_0x3f129e(0x1b7)]);try{const _0x51e065=this[_0x3f129e(0xca)]['transformChangesets']([_0x50aab9],[this[_0x3f129e(0x112)]],!0x1);if(_[_0x3f129e(0x3f5)](_0x51e065)){const {c1Prime:_0x2e5d3b,c2Prime:_0x4ed320}=_0x51e065,_0x353aad=this[_0x3f129e(0xca)][_0x3f129e(0x319)](_0x2e5d3b[0x0],this['_pendingMutations']);if(_[_0x3f129e(0x438)](_0x353aad)){const {c1Prime:_0x149eff,m2Prime:_0xbc8f24}=_0x353aad;return this[_0x3f129e(0x223)](_0x149eff),_0x4ed320[0x0]['baseRev']=this[_0x3f129e(0x40a)](),this['_injector'][_0x3f129e(0x376)](x,this[_0x3f129e(0x312)],this[_0x3f129e(0x1c1)],_0x4ed320[0x0],_0xbc8f24,this['_handler']);}throw _0x353aad[_0x3f129e(0x45d)];}throw _0x51e065[_0x3f129e(0x45d)];}catch(_0x2886b1){return this[_0x3f129e(0x141)][_0x3f129e(0x45d)](_0x2886b1),this[_0x3f129e(0x1e1)](!0x1);}}['onRemoteAck'](_0x1254be){const _0x52b3ec=_0x5e318a;if(this[_0x52b3ec(0x161)](_0x1254be))return this[_0x52b3ec(0xa4)][_0x52b3ec(0x376)](H,this[_0x52b3ec(0x312)],this[_0x52b3ec(0x1c1)],null,this['_pendingMutations'],this[_0x52b3ec(0x112)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x2bb813=this[_0x52b3ec(0xa4)][_0x52b3ec(0x376)]($,this['unitID'],this[_0x52b3ec(0x1c1)],this[_0x52b3ec(0xd7)],this[_0x52b3ec(0x1b7)]);return _0x2bb813['_schedule'](),_0x2bb813['_updateLocalCache'](),_0x2bb813;}['onRemoteRej'](_0xfc434){const _0x35b675=_0x5e318a;return this[_0x35b675(0x1e1)](!!(_0xfc434!=null&&_0xfc434['isPermissionRej']));}['toggleOffline'](){const _0x6966e3=_0x5e318a;return this['_injector'][_0x6966e3(0x376)](V,this[_0x6966e3(0x312)],this[_0x6966e3(0x1c1)],this[_0x6966e3(0x112)],this[_0x6966e3(0xd7)],this[_0x6966e3(0x1b7)]);}[_0x5e318a(0xa8)](){return this;}[_0x5e318a(0x94)](){const _0x11ffbb=_0x5e318a;this[_0x11ffbb(0x1b7)][_0x11ffbb(0x31b)](this['_awaitingChangeset']);}[_0x5e318a(0x1e1)](_0x5763e9){const _0x1e9b19=_0x5e318a;return this[_0x1e9b19(0xa4)][_0x1e9b19(0x376)](B,this[_0x1e9b19(0x312)],this['type'],null,this[_0x1e9b19(0xd7)],this[_0x1e9b19(0x1b7)],_0x5763e9);}};x=K([m(0x5,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),m(0x6,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),m(0x7,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x199)])),m(0x8,o[_0x5e318a(0x247)]),m(0x9,o[_0x5e318a(0xfb)]),m(0xa,_[_0x5e318a(0xa0)]),m(0xb,o[_0x5e318a(0x36d)])],x);let B=class extends X{constructor(_0x479569,_0x2d2181,_0x5c091c,_0x24b96e,_0x18688a,_0x568b5d=!0x1,_0xbdc5,_0x173027,_0x597dd0,_0x4df33f,_0x32045d,_0x46e73c,_0x5d5d1b){const _0x2e0296=_0x5e318a;super(_0x479569,_0x2d2181,_0x5c091c,_0x24b96e,_0x18688a,_0x173027,_0x597dd0,_0x32045d,_0x4df33f),u(this,_0x2e0296(0x170),_0x2e0296(0xb6)),(this[_0x2e0296(0x3f6)]=_0x568b5d,this[_0x2e0296(0x434)]=_0xbdc5,this[_0x2e0296(0x2a5)]=_0x46e73c,this['_notificationService']=_0x5d5d1b,this[_0x2e0296(0x410)](),this[_0x2e0296(0x1c8)](),this[_0x2e0296(0x164)]());}['appendMutation'](){return this;}[_0x5e318a(0x3be)](){return this;}[_0x5e318a(0x363)](){return this;}[_0x5e318a(0x1a7)](){return this;}[_0x5e318a(0x160)](){return this;}[_0x5e318a(0xa8)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x4e0ef5=_0x5e318a;this[_0x4e0ef5(0x11f)][_0x4e0ef5(0x443)](this[_0x4e0ef5(0x312)],this[_0x4e0ef5(0x1c1)],null,[]);}[_0x5e318a(0x410)](){const _0x353b56=_0x5e318a;this['_isPermissionRej']?this[_0x353b56(0xf3)][_0x353b56(0x2eb)]({'title':this[_0x353b56(0x2a5)]['t'](_0x353b56(0x1d5)),'content':this[_0x353b56(0x2a5)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x353b56(0xf3)]['show']({'title':this[_0x353b56(0x2a5)]['t'](_0x353b56(0x367)),'content':this[_0x353b56(0x2a5)]['t'](_0x353b56(0x345)),'type':'error','duration':0x0});}[_0x5e318a(0x164)](){const _0x319a9f=_0x5e318a;this[_0x319a9f(0x434)][_0x319a9f(0x2e4)](new p[(_0x319a9f(0xd9))](this[_0x319a9f(0x312)])['id'],!0x1);}};B=K([m(0x6,o['Inject'](o[_0x5e318a(0x260)])),m(0x7,o['ICommandService']),m(0x8,o[_0x5e318a(0x36d)]),m(0x9,o[_0x5e318a(0x23f)](exports['LocalCacheService'])),m(0xa,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),m(0xb,o[_0x5e318a(0x23f)](o['LocaleService'])),m(0xc,L[_0x5e318a(0x40d)])],B);let V=class extends X{constructor(_0x3b1fe8,_0x55fe29,_0x3a0865,_0x1ca539,_0x2501cb,_0x20346a,_0x36ba26,_0x38ba84,_0x46ea75,_0x385b4f){const _0x20af16=_0x5e318a;super(_0x3b1fe8,_0x55fe29,_0x3a0865,_0x1ca539,_0x2501cb,_0x46ea75,_0x385b4f,_0x36ba26,_0x38ba84),u(this,_0x20af16(0x170),'offline'),this[_0x20af16(0xa4)]=_0x20346a;}[_0x5e318a(0xcd)](_0xdf0a2){const _0x28d66c=_0x5e318a;return this[_0x28d66c(0xd7)][_0x28d66c(0x276)](_0xdf0a2),this[_0x28d66c(0x11d)](),this;}[_0x5e318a(0x3be)](_0x28fba8){const _0x1b41dc=_0x5e318a;throw new Error(_0x1b41dc(0x1e9));}['onRemoteAck'](){const _0x360468=_0x5e318a;throw new Error(_0x360468(0x309));}[_0x5e318a(0x1a7)](){const _0x99468e=_0x5e318a;throw new Error(_0x99468e(0x445));}[_0x5e318a(0x160)](){return this;}[_0x5e318a(0xa8)](){const _0x4f442b=_0x5e318a,{_injector:_0x4b2a67,_pendingMutations:_0x3de113,_awaitingChangeset:_0x566348,unitID:_0x12f070,_handler:_0x75678,type:_0x313bae}=this,_0xca3d27=Tt(_0x4b2a67,_0x12f070,_0x313bae,_0x566348,_0x3de113,_0x75678);return _0xca3d27 instanceof $?_0xca3d27[_0x4f442b(0xec)]():(_0xca3d27 instanceof x||_0xca3d27 instanceof k)&&_0xca3d27[_0x4f442b(0x94)](),_0xca3d27;}[_0x5e318a(0x94)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};V=K([m(0x5,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),m(0x6,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),m(0x7,o[_0x5e318a(0x23f)](exports['LocalCacheService'])),m(0x8,o[_0x5e318a(0x247)]),m(0x9,o['IUndoRedoService'])],V);let H=class extends X{constructor(_0x56a36d,_0x30aafa,_0x5dd418,_0x7428e1,_0x3d0455,_0x34830d,_0x46cbc4,_0x39288c,_0x42e7b8,_0x311265,_0x15beef,_0x55fd36,_0x117a44,_0x2fc277){const _0x277b81=_0x5e318a;super(_0x56a36d,_0x30aafa,_0x5dd418,_0x7428e1,_0x46cbc4,_0x55fd36,_0x117a44,_0x42e7b8,_0x311265),u(this,_0x277b81(0x170),_0x277b81(0x113)),(this[_0x277b81(0x2fd)]=_0x3d0455,this[_0x277b81(0x15c)]=_0x34830d,this[_0x277b81(0xa4)]=_0x39288c,this[_0x277b81(0x141)]=_0x15beef,this[_0x277b81(0xca)]=_0x2fc277);}['onMissedChangesetFetched'](_0x558547){const _0x2e5bd6=_0x5e318a;try{const _0xfbea7=[..._0x558547,...this[_0x2e5bd6(0x15c)]],_0x120047=[this[_0x2e5bd6(0x112)]||this[_0x2e5bd6(0x2fd)]][_0x2e5bd6(0x218)](_0x527ba5=>!!_0x527ba5);let _0x5d97f5,_0x295ae8;if(_0x120047[_0x2e5bd6(0x181)]){const _0x38361a=this[_0x2e5bd6(0xca)]['transformChangesets'](_0xfbea7,_0x120047,!0x1);if(!_[_0x2e5bd6(0x3f5)](_0x38361a))throw _0x38361a[_0x2e5bd6(0x45d)];_0x5d97f5=_0x38361a['c1Prime'],_0x295ae8=_0x38361a[_0x2e5bd6(0x477)];}else _0x5d97f5=_0xfbea7,_0x295ae8=[];let _0x290399=this['_pendingMutations'];_0x5d97f5[_0x2e5bd6(0x183)](_0x4ae80c=>{const _0x3d9013=_0x2e5bd6;let _0x21881a;if(_0x290399[_0x3d9013(0x181)]){const _0xb4ef9b=this[_0x3d9013(0xca)]['transformMutationsWithChangeset'](_0x4ae80c,_0x290399);if(!_['isTransformMutationsWithChangesetSuccess'](_0xb4ef9b))throw _0xb4ef9b[_0x3d9013(0x45d)];_0x21881a=_0xb4ef9b['c1Prime'],_0x290399=_0xb4ef9b[_0x3d9013(0xfe)];}else _0x21881a=_0x4ae80c;this['_executeRemoteChangeset'](_0x21881a);}),this[_0x2e5bd6(0x2fd)]&&this[_0x2e5bd6(0x366)](),this[_0x2e5bd6(0x112)]&&_0x295ae8['length']&&(_0x295ae8[0x0]['baseRev']=this['_getCurrentRevision']());let _0x2766a8;if(this[_0x2e5bd6(0x112)]&&_0x290399['length']!==0x0)_0x2766a8=this[_0x2e5bd6(0xa4)][_0x2e5bd6(0x376)](x,this[_0x2e5bd6(0x312)],this[_0x2e5bd6(0x1c1)],_0x295ae8[0x0],_0x290399,this[_0x2e5bd6(0x1b7)]);else{if(this[_0x2e5bd6(0x112)]&&_0x290399[_0x2e5bd6(0x181)]===0x0)_0x295ae8[0x0]['baseRev']=this['_getCurrentRevision'](),_0x2766a8=this[_0x2e5bd6(0xa4)][_0x2e5bd6(0x376)](k,this[_0x2e5bd6(0x312)],this[_0x2e5bd6(0x1c1)],_0x295ae8[0x0],this['_handler']);else{if(_0x290399[_0x2e5bd6(0x181)]!==0x0){const _0x518f73=this[_0x2e5bd6(0xa4)][_0x2e5bd6(0x376)]($,this['unitID'],this['type'],_0x290399,this['_handler']);_0x518f73[_0x2e5bd6(0xec)](),_0x2766a8=_0x518f73;}else _0x2766a8=this['_injector'][_0x2e5bd6(0x376)](ce,this[_0x2e5bd6(0x312)],this[_0x2e5bd6(0x1c1)],this['_handler']);}}return _0x2766a8['_updateLocalCache'](),_0x2766a8;}catch(_0x51df1e){return this[_0x2e5bd6(0x141)][_0x2e5bd6(0x45d)](_0x2e5bd6(0x46d),'failed\x20to\x20apply\x20missed\x20changesets!',_0x51df1e),this['_injector'][_0x2e5bd6(0x376)](B,this[_0x2e5bd6(0x312)],this[_0x2e5bd6(0x1c1)],this['_awaitingChangeset'],this[_0x2e5bd6(0xd7)],this['_handler'],!0x1);}}[_0x5e318a(0x94)](){const _0x1e44d9=_0x5e318a;throw new Error(_0x1e44d9(0x3ec));}[_0x5e318a(0xcd)](_0x458513){return this['_pendingMutations']['push'](_0x458513),this;}[_0x5e318a(0x3be)](_0x106530){const _0x29771c=_0x5e318a;return this[_0x29771c(0x15c)][_0x29771c(0x276)](_0x106530),this;}[_0x5e318a(0x363)](_0x9a7240){const _0x53cbbb=_0x5e318a;if(this[_0x53cbbb(0x112)])return this['_acknowledgedAwaitingChangeset']=this[_0x53cbbb(0x112)],this[_0x53cbbb(0x112)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x5e318a(0x1a7)](_0x49d5c1){const _0x5ea828=_0x5e318a;return this[_0x5ea828(0x1e1)](!!(_0x49d5c1!=null&&_0x49d5c1[_0x5ea828(0x128)]));}[_0x5e318a(0x160)](){const _0x1cd5c0=_0x5e318a;return this[_0x1cd5c0(0xa4)][_0x1cd5c0(0x376)](V,this[_0x1cd5c0(0x312)],this['type'],this[_0x1cd5c0(0x112)],this[_0x1cd5c0(0xd7)],this['_handler']);}[_0x5e318a(0xa8)](){return this;}[_0x5e318a(0x1e1)](_0x27472b){const _0x401fb5=_0x5e318a;return this[_0x401fb5(0xa4)][_0x401fb5(0x376)](B,this[_0x401fb5(0x312)],this['type'],this['_awaitingChangeset'],this[_0x401fb5(0xd7)],this['_handler'],_0x27472b);}};H=K([m(0x7,o['Inject'](o[_0x5e318a(0x35b)])),m(0x8,o['Inject'](_['RevisionService'])),m(0x9,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x199)])),m(0xa,o[_0x5e318a(0xfb)]),m(0xb,o[_0x5e318a(0x247)]),m(0xc,o[_0x5e318a(0x36d)]),m(0xd,_[_0x5e318a(0xa0)])],H);function Tt(_0x6a4f1a,_0x24a8c4,_0x18ca35,_0x265649,_0x2688c8,_0x4a8185){const _0x8ebef4=_0x5e318a;return _0x265649&&_0x2688c8[_0x8ebef4(0x181)]?_0x6a4f1a[_0x8ebef4(0x376)](x,_0x24a8c4,_0x18ca35,_0x265649,_0x2688c8,_0x4a8185):_0x265649?_0x6a4f1a[_0x8ebef4(0x376)](k,_0x24a8c4,_0x18ca35,_0x265649,_0x4a8185):_0x2688c8[_0x8ebef4(0x181)]?_0x6a4f1a[_0x8ebef4(0x376)]($,_0x24a8c4,_0x18ca35,_0x2688c8,_0x4a8185):_0x6a4f1a[_0x8ebef4(0x376)](ce,_0x24a8c4,_0x18ca35,_0x4a8185);}var Us=Object[_0x5e318a(0x33d)],ws=Object['getOwnPropertyDescriptor'],Ee=(_0x3fe192,_0x4c7392,_0x4590d5,_0x557344)=>{const _0x48e85f=_0x5e318a;for(var _0x4405d3=_0x557344>0x1?void 0x0:_0x557344?ws(_0x4c7392,_0x4590d5):_0x4c7392,_0x5045d6=_0x3fe192[_0x48e85f(0x181)]-0x1,_0x1e457d;_0x5045d6>=0x0;_0x5045d6--)(_0x1e457d=_0x3fe192[_0x5045d6])&&(_0x4405d3=(_0x557344?_0x1e457d(_0x4c7392,_0x4590d5,_0x4405d3):_0x1e457d(_0x4405d3))||_0x4405d3);return _0x557344&&_0x4405d3&&Us(_0x4c7392,_0x4590d5,_0x4405d3),_0x4405d3;},I=(_0x3663e0,_0x1d18f2)=>(_0x27b1d2,_0x234fc5)=>_0x1d18f2(_0x27b1d2,_0x234fc5,_0x3663e0);exports[_0x5e318a(0x185)]=class extends o[_0x5e318a(0xd1)]{constructor(_0x49dd1a,_0x21c70f,_0x560aae){const _0x1280ad=_0x5e318a;super(),u(this,_0x1280ad(0x12e),new Map()),u(this,_0x1280ad(0x224),new v[(_0x1280ad(0x45c))]()),(this[_0x1280ad(0xa4)]=_0x49dd1a,this['_collabSessionService']=_0x21c70f,this[_0x1280ad(0x1fd)]=_0x560aae,this['_init']());}['dispose'](){const _0x4f57e3=_0x5e318a;super['dispose'](),this['_entities'][_0x4f57e3(0x183)](_0x41a2db=>_0x41a2db[_0x4f57e3(0x17d)]()),this[_0x4f57e3(0x12e)]['clear']();}['getCollabEntity'](_0x235acc){const _0xc51407=_0x5e318a;var _0x5225f2;return(_0x5225f2=this[_0xc51407(0x12e)][_0xc51407(0x236)](_0x235acc))!=null?_0x5225f2:null;}[_0x5e318a(0x1ac)](_0x43bbb7){const _0x279579=_0x5e318a,_0xc7400=this[_0x279579(0x3e3)](_0x43bbb7);return _0xc7400?v['of'](_0xc7400):this[_0x279579(0x224)][_0x279579(0x133)](E[_0x279579(0x218)](_0x423c6f=>_0x423c6f['unitID']===_0x43bbb7));}[_0x5e318a(0x24b)](){const _0xfca2cc=_0x5e318a;this[_0xfca2cc(0x1fd)][_0xfca2cc(0x332)](o['UniverInstanceType']['UNIVER_SHEET'])['pipe'](v[_0xfca2cc(0x36b)](this['dispose$']),E[_0xfca2cc(0xf5)](0x10))[_0xfca2cc(0x315)](async _0x530513=>{const _0x5cc9e1=_0xfca2cc,_0x4e1ddf=_0x530513[_0x5cc9e1(0x40b)](),_0x3ecece=await this[_0x5cc9e1(0x169)](_0x4e1ddf,j[_0x5cc9e1(0x1dd)]);this[_0x5cc9e1(0x12e)][_0x5cc9e1(0x2e6)](_0x4e1ddf,_0x3ecece);}),this[_0xfca2cc(0x1fd)][_0xfca2cc(0x332)](o[_0xfca2cc(0xbb)][_0xfca2cc(0x41b)])['pipe'](v[_0xfca2cc(0x36b)](this[_0xfca2cc(0xc8)]),E[_0xfca2cc(0xf5)](0x10))[_0xfca2cc(0x133)](E[_0xfca2cc(0x218)](_0x18e400=>!_0x18e400[_0xfca2cc(0x40b)]()[_0xfca2cc(0x188)]('__')))[_0xfca2cc(0x315)](async _0x3480c9=>{const _0x38ae19=_0xfca2cc,_0x3696e2=_0x3480c9[_0x38ae19(0x40b)](),_0x197772=await this['_startCollaboration'](_0x3696e2,j['UNIVER_DOC']);this[_0x38ae19(0x12e)]['set'](_0x3696e2,_0x197772);}),v[_0xfca2cc(0x269)](this[_0xfca2cc(0x1fd)][_0xfca2cc(0x2f6)](o['UniverInstanceType'][_0xfca2cc(0x1dd)]),this[_0xfca2cc(0x1fd)][_0xfca2cc(0x2f6)](o[_0xfca2cc(0xbb)][_0xfca2cc(0x41b)]))[_0xfca2cc(0x133)](v[_0xfca2cc(0x36b)](this[_0xfca2cc(0xc8)]))[_0xfca2cc(0x315)](_0x50fcee=>{const _0xa1f536=_0xfca2cc,_0x1383aa=_0x50fcee[_0xa1f536(0x40b)](),_0x3d0fdd=this[_0xa1f536(0x12e)][_0xa1f536(0x236)](_0x1383aa);_0x3d0fdd&&(_0x3d0fdd[_0xa1f536(0x17d)](),this[_0xa1f536(0x12e)][_0xa1f536(0x33f)](_0x1383aa));});}async[_0x5e318a(0x169)](_0x1183e,_0x5788af){const _0x168f34=_0x5e318a,_0x3dd012=await this[_0x168f34(0x25f)][_0x168f34(0x1b1)](_0x1183e),_0x2bdb9c=this[_0x168f34(0xa4)][_0x168f34(0x376)](this['_getCtorByUniverType'](_0x5788af),_0x1183e,_0x5788af,_0x3dd012);return await _0x2bdb9c[_0x168f34(0x3cc)](),this[_0x168f34(0x224)][_0x168f34(0x318)](_0x2bdb9c),_0x2bdb9c;}[_0x5e318a(0x3a1)](_0x47e006){const _0x370aaa=_0x5e318a;switch(_0x47e006){case j['UNIVER_DOC']:return Ne;case j[_0x370aaa(0x1dd)]:return exports[_0x370aaa(0x476)];default:throw new Error(_0x370aaa(0x39a)+_0x47e006);}}},exports['CollaborationController']=Ee([o[_0x5e318a(0x222)](o['LifecycleStages']['Starting'],exports[_0x5e318a(0x185)]),I(0x0,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),I(0x1,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x2f9)])),I(0x2,o[_0x5e318a(0x1da)])],exports[_0x5e318a(0x185)]);let fe=class extends o[_0x5e318a(0xd1)]{constructor(_0x49aa5c,_0x5add9a,_0x20789c,_0xabb9d7,_0x1a0ebf,_0x4a19ec,_0x3b60da,_0x22b1f1,_0xaa2af7,_0x4cafe3,_0x546217,_0x43e107,_0x4063be){const _0x4ae67f=_0x5e318a;super(),u(this,'_state$',new v[(_0x4ae67f(0x18a))](null)),u(this,_0x4ae67f(0x148),this['_state$'][_0x4ae67f(0x468)]()),u(this,_0x4ae67f(0x397)),u(this,_0x4ae67f(0x12c),!0x1),u(this,_0x4ae67f(0x105),this[_0x4ae67f(0x148)][_0x4ae67f(0x133)](E[_0x4ae67f(0x3b9)](_0x51546d=>_0x51546d?_0x51546d[_0x4ae67f(0x170)]:D[_0x4ae67f(0x396)]),E[_0x4ae67f(0x474)](0x1))),u(this,_0x4ae67f(0x454),!0x1),u(this,_0x4ae67f(0x106),[]),(this[_0x4ae67f(0x312)]=_0x49aa5c,this['_type']=_0x5add9a,this[_0x4ae67f(0xd5)]=_0x20789c,this[_0x4ae67f(0xa4)]=_0xabb9d7,this['_localCacheService']=_0x1a0ebf,this[_0x4ae67f(0x407)]=_0x4a19ec,this[_0x4ae67f(0x2a5)]=_0x3b60da,this['_revisionService']=_0x22b1f1,this[_0x4ae67f(0x141)]=_0xaa2af7,this[_0x4ae67f(0x10f)]=_0x4cafe3,this[_0x4ae67f(0x1b9)]=_0x546217,this['_permissionService']=_0x43e107,this[_0x4ae67f(0x44c)]=_0x4063be);}get['state'](){const _0x442d6b=_0x5e318a;return this[_0x442d6b(0x397)];}async[_0x5e318a(0x3cc)](){const _0x352912=_0x5e318a;if(this['state'])throw new Error(_0x352912(0x1cc));await this[_0x352912(0x24b)]();}['pauseCollaboration'](){const _0x3fd422=_0x5e318a;return this[_0x3fd422(0x12c)]=!0x0,o[_0x3fd422(0x414)](()=>{const _0x38266e=_0x3fd422;this[_0x38266e(0x12c)]=!0x1,this[_0x38266e(0x1ca)]();});}[_0x5e318a(0x295)](_0x1edbf2){const _0x464141=_0x5e318a;this[_0x464141(0x397)]=_0x1edbf2,this[_0x464141(0x32f)][_0x464141(0x318)](_0x1edbf2);}async[_0x5e318a(0x24b)](){const _0x4d1118=_0x5e318a;var _0x37b918;return this[_0x4d1118(0x295)](await this['_createInitialState']()),this[_0x4d1118(0x44c)]&&((_0x37b918=this['_singleActiveUnitService'])==null||_0x37b918[_0x4d1118(0x3b5)](this[_0x4d1118(0x312)]),this[_0x4d1118(0x16e)](o[_0x4d1118(0x414)](this[_0x4d1118(0x44c)][_0x4d1118(0x1a1)](this[_0x4d1118(0x312)])[_0x4d1118(0x315)](_0x46ecb5=>{const _0x49d07c=_0x4d1118;this[_0x49d07c(0x141)][_0x49d07c(0x1b0)](_0x49d07c(0x1af),_0x49d07c(0x1b6),_0x46ecb5),_0x46ecb5===Ct[_0x49d07c(0x248)]?(this[_0x49d07c(0x1b9)]['show']({'content':this[_0x49d07c(0x2a5)]['t'](_0x49d07c(0x327)),'type':Q[_0x49d07c(0x2f4)][_0x49d07c(0x34c)]}),this['_permissionService'][_0x49d07c(0x2e4)](new p['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this[_0x49d07c(0x434)][_0x49d07c(0x2e4)](new p[(_0x49d07c(0xd9))](this['unitID'])['id'],!0x0);})))),this[_0x4d1118(0x16e)](o[_0x4d1118(0x414)](this[_0x4d1118(0xd5)][_0x4d1118(0x1ed)][_0x4d1118(0x315)](_0x4f1e1f=>{const _0x28283a=_0x4d1118;_0x4f1e1f===G['ONLINE']?this[_0x28283a(0x47a)]():_0x4f1e1f===G[_0x28283a(0x396)]&&this['_toggleOffline']();}))),this[_0x4d1118(0x16e)](o[_0x4d1118(0x414)](this[_0x4d1118(0xd5)][_0x4d1118(0x109)][_0x4d1118(0x315)](_0x48f8f9=>{const _0x37a916=_0x4d1118;try{switch(_0x48f8f9[_0x37a916(0x198)]){case _[_0x37a916(0x1c7)][_0x37a916(0x1a0)]:{this[_0x37a916(0x313)](_[_0x37a916(0x177)](_0x48f8f9[_0x37a916(0x42c)]));break;}case _[_0x37a916(0x1c7)][_0x37a916(0x203)]:{this[_0x37a916(0x9b)](_0x48f8f9[_0x37a916(0x42c)]);break;}case _['CollaborationEvent'][_0x37a916(0x1b3)]:{this['_onRemoteRejected']();break;}case _[_0x37a916(0x1c7)][_0x37a916(0x3b7)]:{this[_0x37a916(0x1d7)](_0x48f8f9[_0x37a916(0x42c)][_0x37a916(0x43b)][_0x37a916(0x3b9)](_0x18217b=>_[_0x37a916(0x177)](_0x18217b)));break;}case _['CollaborationEvent'][_0x37a916(0xe0)]:this[_0x37a916(0x226)]({'isPermissionRej':!0x0});}}catch(_0x1db26e){throw console[_0x37a916(0x45d)](_0x37a916(0x256),_0x1db26e),_0x1db26e;}}))),this[_0x4d1118(0x397)];}[_0x5e318a(0x45e)](){this['_transitionLocked']=!0x1;}[_0x5e318a(0x275)](){const _0x5d2bdc=_0x5e318a;if(this[_0x5d2bdc(0x454)])throw new Error(_0x5d2bdc(0x278));this['_transitionLocked']=!0x0;}[_0x5e318a(0x475)](_0x323e40){const _0x35f458=_0x5e318a;this[_0x35f458(0x275)](),this[_0x35f458(0x295)](this[_0x35f458(0x397)][_0x35f458(0xcd)](_0x323e40)),this[_0x35f458(0x45e)]();}[_0x5e318a(0x313)](_0x1a5edc){const _0x260abc=_0x5e318a;if(!(_0x1a5edc[_0x260abc(0x2c0)]<=this[_0x260abc(0x30c)][_0x260abc(0x1fa)](this[_0x260abc(0x312)]))){if(this['_collaborationPaused']){this[_0x260abc(0x106)]['push'](_0x1a5edc);return;}this[_0x260abc(0x398)](_0x1a5edc);}}[_0x5e318a(0x1ca)](){const _0x5bcb53=_0x5e318a;this[_0x5bcb53(0x106)][_0x5bcb53(0x183)](_0x5642e3=>this['_applyRemoteChangeset'](_0x5642e3)),this[_0x5bcb53(0x106)]=[];}[_0x5e318a(0x398)](_0x544476){const _0x4bdcd3=_0x5e318a,_0x4c119c=this[_0x4bdcd3(0x407)][_0x4bdcd3(0xc0)][_0x4bdcd3(0x1f3)](this[_0x4bdcd3(0x407)][_0x4bdcd3(0xc0)][_0x4bdcd3(0x1f1)]()['COMPRESS_MUTATION_APPLY'])(_0x544476[_0x4bdcd3(0x31a)],null)||_0x544476[_0x4bdcd3(0x31a)],_0x4c9eb9={..._0x544476,'mutations':_0x4c119c};this['_lockTransition'](),this[_0x4bdcd3(0x295)](this[_0x4bdcd3(0x397)][_0x4bdcd3(0x3be)](_0x4c9eb9)),this['_unlockTransition']();}[_0x5e318a(0x9b)](_0x3679ac){const _0x306286=_0x5e318a;this[_0x306286(0x275)](),this[_0x306286(0x295)](this['_state'][_0x306286(0x363)](_0x3679ac)),this[_0x306286(0x45e)]();}[_0x5e318a(0x226)](_0x448a75){const _0x51852b=_0x5e318a;this['_lockTransition'](),this['_updateState'](this[_0x51852b(0x397)][_0x51852b(0x1a7)](_0x448a75)),this['_unlockTransition']();}[_0x5e318a(0x1d7)](_0x219db5){const _0x5a9a12=_0x5e318a;if(!(this['_state']instanceof H))throw new TypeError(_0x5a9a12(0x3df));const _0x2d7784=_0x219db5['map'](_0x3254aa=>{const _0x23607f=_0x5a9a12,_0x2db37=this[_0x23607f(0x407)]['interceptor'][_0x23607f(0x1f3)](this[_0x23607f(0x407)][_0x23607f(0xc0)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x3254aa[_0x23607f(0x31a)],null)||_0x3254aa[_0x23607f(0x31a)];return{..._0x3254aa,'mutations':_0x2db37};});this[_0x5a9a12(0x275)](),this[_0x5a9a12(0x295)](this[_0x5a9a12(0x397)][_0x5a9a12(0x1a4)](_0x2d7784)),this[_0x5a9a12(0x45e)]();}[_0x5e318a(0x215)](){const _0x1d196f=_0x5e318a;this[_0x1d196f(0x275)](),this[_0x1d196f(0x295)](this[_0x1d196f(0x397)][_0x1d196f(0x160)]()),this[_0x1d196f(0x45e)]();}[_0x5e318a(0x47a)](){const _0x554659=_0x5e318a;this['_lockTransition'](),this[_0x554659(0x295)](this['_state'][_0x554659(0xa8)]()),this[_0x554659(0x45e)]();}async['_createInitialState'](){return new Promise(_0xbe7a72=>{const _0x1c5412=_0x337d;this[_0x1c5412(0xd5)][_0x1c5412(0x1ed)][_0x1c5412(0x133)](E[_0x1c5412(0x240)](0x1))[_0x1c5412(0x315)](async _0x22950a=>{const _0x517ab3=_0x1c5412;_0xbe7a72(await this[_0x517ab3(0x249)](_0x22950a===G[_0x517ab3(0x16c)]));});});}[_0x5e318a(0x389)](){const _0x256fb6=_0x5e318a,_0x3b3e15=this[_0x256fb6(0x312)];return{'onStateChange':(_0x793b9e,_0x2959d4)=>{const _0x49ca3f=_0x256fb6;if(_0x793b9e!==this[_0x49ca3f(0x397)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x793b9e[_0x49ca3f(0x170)]+'\x0aAfter:\x20'+_0x2959d4[_0x49ca3f(0x170)]+'\x0aCurrent:\x20'+this['_state'][_0x49ca3f(0x170)]);this[_0x49ca3f(0x295)](_0x2959d4);},'onSendChangeset':_0x10fe8e=>{const _0x1c2b0f=_0x256fb6,_0x363a77={'eventID':_[_0x1c2b0f(0x1c7)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x10fe8e['unitID'],'unitType':this[_0x1c2b0f(0x28b)],'changeset':_0x10fe8e,'memberID':this[_0x1c2b0f(0xd5)][_0x1c2b0f(0x330)]()}};this[_0x1c2b0f(0xd5)]['send'](_0x363a77,this[_0x1c2b0f(0x312)]);},'onMissingChangesets':({from:_0x3d1f20,to:_0x409433})=>{const _0x4166ab=_0x256fb6;this[_0x4166ab(0x141)][_0x4166ab(0x1b0)](_0x4166ab(0x1af),'fetching\x20missing\x20changesets\x20from\x20'+_0x3d1f20+_0x4166ab(0xfd)+_0x409433);const _0x545a8d={'eventID':_['CollaborationEvent'][_0x4166ab(0x200)],'data':{'unitID':_0x3b3e15,'unitType':this[_0x4166ab(0x28b)],'from':_0x3d1f20,'to':_0x409433}};this['_session'][_0x4166ab(0x144)](_0x545a8d,this[_0x4166ab(0x312)]);}};}async[_0x5e318a(0x249)](_0x1b2c14){const _0x407103=_0x5e318a;var _0x57737b,_0x731d17;const _0x399fcf=await this['_localCacheService'][_0x407103(0x2e3)](this[_0x407103(0x312)]),_0xeff351=(_0x57737b=_0x399fcf==null?void 0x0:_0x399fcf[_0x407103(0x31a)])!=null?_0x57737b:[],_0x8e440=(_0x731d17=_0x399fcf==null?void 0x0:_0x399fcf[_0x407103(0x1fc)])!=null?_0x731d17:null,_0x1cb1e2=this['unitID'];try{this[_0x407103(0x2df)](_0x8e440,_0xeff351);}catch(_0x10fdbc){this[_0x407103(0x141)][_0x407103(0x45d)](_0x10fdbc);}const _0x43487a=this[_0x407103(0x389)]();if(_0x1b2c14){const _0x212de0=Tt(this[_0x407103(0xa4)],_0x1cb1e2,this[_0x407103(0x28b)],_0x8e440,_0xeff351,_0x43487a);return _0x212de0 instanceof $?_0x212de0[_0x407103(0xec)]():(_0x212de0 instanceof x||_0x212de0 instanceof k)&&_0x212de0[_0x407103(0x94)](),_0x212de0;}return this[_0x407103(0xa4)][_0x407103(0x376)](V,_0x1cb1e2,this[_0x407103(0x28b)],_0x8e440,_0xeff351,_0x43487a);}[_0x5e318a(0x2df)](_0x3f5813,_0x1e7014){const _0x4fd4b6=_0x5e318a;var _0x5b0090,_0x1dd200;const _0x7c6d70=this[_0x4fd4b6(0x407)]['interceptor'][_0x4fd4b6(0x1f3)](this[_0x4fd4b6(0x407)][_0x4fd4b6(0xc0)][_0x4fd4b6(0x1f1)]()[_0x4fd4b6(0x323)]);(_0x5b0090=_0x7c6d70((_0x3f5813==null?void 0x0:_0x3f5813[_0x4fd4b6(0x31a)])||[],null))==null||_0x5b0090['forEach'](_0x2eeec6=>this[_0x4fd4b6(0x10f)][_0x4fd4b6(0x2c7)](_0x2eeec6['id'],_0x2eeec6[_0x4fd4b6(0x119)])),(_0x1dd200=_0x7c6d70(_0x1e7014||[],null))==null||_0x1dd200[_0x4fd4b6(0x183)](_0x36afca=>this[_0x4fd4b6(0x10f)][_0x4fd4b6(0x2c7)](_0x36afca['id'],_0x36afca['params']));}};fe=Ee([I(0x3,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),I(0x4,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x199)])),I(0x5,o[_0x5e318a(0x23f)](_[_0x5e318a(0xb4)])),I(0x6,o['Inject'](o[_0x5e318a(0x3b1)])),I(0x7,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),I(0x8,o['ILogService']),I(0x9,o['ICommandService']),I(0xa,L[_0x5e318a(0x22b)]),I(0xb,o[_0x5e318a(0x260)]),I(0xc,o[_0x5e318a(0x15e)](pe))],fe);let Ne=class extends fe{constructor(_0x160873,_0x30bfad,_0x25a31e,_0x2d8137,_0x38f2c0,_0x57ac20,_0x3a40cb,_0x4640b3,_0x4efdb9,_0x93f8f8,_0x3bc249,_0x19f908,_0x3647bb,_0x4841f0,_0x2d7185,_0x35fad5,_0x5cdf8c){const _0x2dbe89=_0x5e318a;super(_0x160873,_0x30bfad,_0x25a31e,_0x2d8137,_0x38f2c0,_0x57ac20,_0x3a40cb,_0x4640b3,_0x3647bb,_0x4841f0,_0x2d7185,_0x35fad5,_0x5cdf8c),this[_0x2dbe89(0x312)]=_0x160873,this[_0x2dbe89(0x1c1)]=_0x30bfad,this[_0x2dbe89(0x228)]=_0x25a31e,this[_0x2dbe89(0x435)]=_0x4efdb9,this[_0x2dbe89(0x3c5)]=_0x93f8f8,this['_docTransformSelectionsService']=_0x3bc249,this[_0x2dbe89(0x2f5)]=_0x19f908;}['_createHandler'](){const _0x24ebe7=_0x5e318a,_0x5cad7e=super[_0x24ebe7(0x389)]();return _0x5cad7e[_0x24ebe7(0x371)]=_0x5cc696=>this[_0x24ebe7(0x3c5)][_0x24ebe7(0x149)](_0x5cc696),_0x5cad7e[_0x24ebe7(0x44d)]=_0x2065d9=>this[_0x24ebe7(0x34f)][_0x24ebe7(0x436)](_0x2065d9),_0x5cad7e[_0x24ebe7(0x9d)]=_0x16a768=>this[_0x24ebe7(0x2f5)]['syncEditingCollabCursor'](_0x16a768),_0x5cad7e[_0x24ebe7(0x22f)]=_0x31516f=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x31516f),_0x5cad7e;}async[_0x5e318a(0x24b)](){const _0xa23918=_0x5e318a,_0x35f2fe=await super[_0xa23918(0x24b)]();return this['disposeWithMe'](this[_0xa23918(0x10f)][_0xa23918(0x3ff)]((_0x24c0f8,_0x6b78c1)=>{const _0x5e3304=_0xa23918;if(_0x24c0f8['type']!==o[_0x5e3304(0x38e)][_0x5e3304(0x427)]||_0x6b78c1!=null&&_0x6b78c1[_0x5e3304(0x3ca)]||_0x6b78c1!=null&&_0x6b78c1['onlyLocal'])return;const _0x422626=_0x24c0f8[_0x5e3304(0x119)];if((_0x422626==null?void 0x0:_0x422626[_0x5e3304(0x10e)])!==this[_0x5e3304(0x312)])return;let _0x333ddb=_0x24c0f8;if(_0x333ddb['id']===P[_0x5e3304(0x305)]['id']){const _0x2242d8=_0x333ddb['params'];_0x333ddb={'id':P['RichTextEditingMutation']['id'],'type':o[_0x5e3304(0x38e)][_0x5e3304(0x427)],'params':{'unitId':_0x2242d8[_0x5e3304(0x10e)],'actions':_0x2242d8['actions'],'textRanges':null}};}const _0x5ab358=this['_compressMutationService'][_0x5e3304(0xc0)][_0x5e3304(0x1f3)](this[_0x5e3304(0x407)]['interceptor'][_0x5e3304(0x1f1)]()[_0x5e3304(0x2b6)])([_0x333ddb],null)||[_0x333ddb];this[_0x5e3304(0x475)](_0x5ab358[0x0]);})),_0x35f2fe;}};Ne=Ee([I(0x3,o['Inject'](o[_0x5e318a(0x35b)])),I(0x4,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x199)])),I(0x5,o[_0x5e318a(0x23f)](_[_0x5e318a(0xb4)])),I(0x6,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)])),I(0x7,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),I(0x8,o[_0x5e318a(0x23f)](P[_0x5e318a(0x1ad)])),I(0x9,o[_0x5e318a(0x23f)](ve)),I(0xa,o[_0x5e318a(0x23f)](me)),I(0xb,o['Inject'](We)),I(0xc,o[_0x5e318a(0xfb)]),I(0xd,o[_0x5e318a(0x247)]),I(0xe,L['IMessageService']),I(0xf,o[_0x5e318a(0x260)]),I(0x10,o[_0x5e318a(0x15e)](pe))],Ne),exports[_0x5e318a(0x476)]=class extends fe{constructor(_0x2d0606,_0x98687e,_0x4b6ae7,_0x15b66e,_0x496128,_0x41f56a,_0x28d31c,_0x409957,_0x572828,_0x4c4a1e,_0x1d99d1,_0x1b68bb,_0x497612,_0x58f83b){const _0x1eac17=_0x5e318a;super(_0x2d0606,_0x98687e,_0x4b6ae7,_0x15b66e,_0x496128,_0x41f56a,_0x28d31c,_0x409957,_0x4c4a1e,_0x1d99d1,_0x1b68bb,_0x497612,_0x58f83b),this[_0x1eac17(0x312)]=_0x2d0606,this['type']=_0x98687e,this[_0x1eac17(0x228)]=_0x4b6ae7,this[_0x1eac17(0x360)]=_0x572828;}['_createHandler'](){const _0x3c0bd0=_0x5e318a,_0x316cfe=super[_0x3c0bd0(0x389)]();return _0x316cfe['onTransformSelections']=_0x25dec9=>this[_0x3c0bd0(0x360)][_0x3c0bd0(0x436)](_0x25dec9),_0x316cfe;}async[_0x5e318a(0x24b)](){const _0x4b7c4e=_0x5e318a,_0x368f4b=await super[_0x4b7c4e(0x24b)]();return this[_0x4b7c4e(0x16e)](this[_0x4b7c4e(0x10f)][_0x4b7c4e(0x3ff)]((_0x325bfa,_0x2ddcbc)=>{const _0x2d94bc=_0x4b7c4e;if(_0x325bfa[_0x2d94bc(0x1c1)]!==o[_0x2d94bc(0x38e)]['MUTATION']||_0x2ddcbc!=null&&_0x2ddcbc[_0x2d94bc(0x3ca)]||_0x2ddcbc!=null&&_0x2ddcbc[_0x2d94bc(0x29e)])return;const _0x2ca386=_0x325bfa[_0x2d94bc(0x119)];if((_0x2ca386==null?void 0x0:_0x2ca386['unitId'])!==this[_0x2d94bc(0x312)])return;const _0x27a4b2=_0x325bfa,_0x2dc2a6=this[_0x2d94bc(0x407)][_0x2d94bc(0xc0)][_0x2d94bc(0x1f3)](this[_0x2d94bc(0x407)][_0x2d94bc(0xc0)]['getInterceptPoints']()[_0x2d94bc(0x2b6)])([_0x27a4b2],null)||[_0x27a4b2];this[_0x2d94bc(0x475)](_0x2dc2a6[0x0]);})),_0x368f4b;}},exports[_0x5e318a(0x476)]=Ee([I(0x3,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),I(0x4,o['Inject'](exports[_0x5e318a(0x199)])),I(0x5,o[_0x5e318a(0x23f)](_[_0x5e318a(0xb4)])),I(0x6,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)])),I(0x7,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2bd)])),I(0x8,o['Inject'](ge)),I(0x9,o[_0x5e318a(0xfb)]),I(0xa,o['ICommandService']),I(0xb,L['IMessageService']),I(0xc,o[_0x5e318a(0x260)]),I(0xd,o[_0x5e318a(0x15e)](pe))],exports[_0x5e318a(0x476)]);const st=[_0x5e318a(0x3c8),'jiqing500',_0x5e318a(0x11a),_0x5e318a(0x139),_0x5e318a(0x3c4),_0x5e318a(0x230)];class Fe extends o[_0x5e318a(0x3cf)]{constructor(){const _0x3f87cb=_0x5e318a;super(...arguments),u(this,'_assignedColors',new Map()),u(this,_0x3f87cb(0x193),0x0);}[_0x5e318a(0x3fd)](_0x18bc9b){const _0x56969c=_0x5e318a;if(this[_0x56969c(0x24f)][_0x56969c(0x21e)](_0x18bc9b))return this['_assignedColors'][_0x56969c(0x236)](_0x18bc9b);const _0x45e1ed=st[this[_0x56969c(0x193)]];return this[_0x56969c(0x193)]=(this[_0x56969c(0x193)]+0x1)%st[_0x56969c(0x181)],this['_assignedColors'][_0x56969c(0x2e6)](_0x18bc9b,_0x45e1ed),_0x45e1ed;}}var Ms=Object[_0x5e318a(0x33d)],ys=Object[_0x5e318a(0x225)],Ns=(_0x3938ed,_0x7d088d,_0x318810,_0x57bd81)=>{const _0x27c916=_0x5e318a;for(var _0x4d7453=_0x57bd81>0x1?void 0x0:_0x57bd81?ys(_0x7d088d,_0x318810):_0x7d088d,_0x191d57=_0x3938ed[_0x27c916(0x181)]-0x1,_0x5a806a;_0x191d57>=0x0;_0x191d57--)(_0x5a806a=_0x3938ed[_0x191d57])&&(_0x4d7453=(_0x57bd81?_0x5a806a(_0x7d088d,_0x318810,_0x4d7453):_0x5a806a(_0x4d7453))||_0x4d7453);return _0x57bd81&&_0x4d7453&&Ms(_0x7d088d,_0x318810,_0x4d7453),_0x4d7453;},q=(_0x51e7c7,_0x38ccb7)=>(_0x5c0aac,_0x298c26)=>_0x38ccb7(_0x5c0aac,_0x298c26,_0x51e7c7);const Ls=0x12c,As=0x64,js=()=>{let _0xda0dba=[],_0x3293c1=!0x1;return _0x217f97=>{const _0x544c07=_0x337d;_0xda0dba[_0x544c07(0x276)](_0x217f97),_0x3293c1||(_0x3293c1=!0x0,setTimeout(()=>{_0xda0dba['forEach'](_0x15eeca=>_0x15eeca()),_0xda0dba=[],_0x3293c1=!0x1;}));};};let Le=class extends o[_0x5e318a(0xd1)]{constructor(_0x4ce853,_0x3c4ae6,_0x2f7df2,_0x116528,_0x597c5a,_0x52a162,_0x298d9d,_0xa90221){const _0x95c4f9=_0x5e318a;super(),u(this,_0x95c4f9(0x28d),!0x1),u(this,'_init',!0x1),u(this,_0x95c4f9(0x150),new v[(_0x95c4f9(0x18a))](new Map())),u(this,_0x95c4f9(0x34e),this[_0x95c4f9(0x150)][_0x95c4f9(0x468)]()),u(this,_0x95c4f9(0x45f),new v['BehaviorSubject']([])),u(this,_0x95c4f9(0xe5),this['_roomMembers$'][_0x95c4f9(0x133)](v[_0x95c4f9(0x2ad)](Ls))),u(this,_0x95c4f9(0x44a),xe((_0x5baca0,_0xa6fda1)=>{const _0x1ac482=_0x95c4f9,_0x31375e={'eventID':_[_0x1ac482(0x1c7)][_0x1ac482(0x28c)],'data':{'unitID':this[_0x1ac482(0x312)],'memberID':this[_0x1ac482(0xd5)]['getMemberID'](),'selection':Ke['serializeRangeWithSheet'](_0x5baca0,_0xa6fda1[_0x1ac482(0x361)])}};this['_session'][_0x1ac482(0x144)](_0x31375e,this[_0x1ac482(0x312)]);},As)),(this[_0x95c4f9(0x312)]=_0x4ce853,this['_session']=_0x3c4ae6,this[_0x95c4f9(0xa4)]=_0x2f7df2,this['_colorAssignService']=_0x116528,this[_0x95c4f9(0x3d5)]=_0x597c5a,this['_univerInstanceService']=_0x52a162,this[_0x95c4f9(0x10f)]=_0x298d9d,this[_0x95c4f9(0x2ca)]=_0xa90221);}get[_0x5e318a(0xdd)](){const _0x325921=_0x5e318a;return this[_0x325921(0x150)]['getValue']();}get[_0x5e318a(0x3eb)](){const _0x334ce0=_0x5e318a;return this[_0x334ce0(0x45f)][_0x334ce0(0x34b)]();}['dispose'](){const _0x40360b=_0x5e318a;super[_0x40360b(0x17d)](),this[_0x40360b(0x150)][_0x40360b(0x318)](new Map()),this[_0x40360b(0x150)][_0x40360b(0x270)](),this[_0x40360b(0x45f)][_0x40360b(0x318)]([]),this[_0x40360b(0x45f)][_0x40360b(0x270)]();}[_0x5e318a(0x3cc)](){const _0x5671d9=_0x5e318a;this[_0x5671d9(0x24b)]||(this[_0x5671d9(0x24b)]=!0x0,this[_0x5671d9(0xd5)][_0x5671d9(0x1ed)][_0x5671d9(0x133)](v[_0x5671d9(0x36b)](this[_0x5671d9(0xc8)]))[_0x5671d9(0x315)](_0xe1101f=>{const _0x53fc86=_0x5671d9;_0xe1101f===G[_0x53fc86(0x16c)]?this[_0x53fc86(0x47a)]():this[_0x53fc86(0x215)]();}),this[_0x5671d9(0xd5)][_0x5671d9(0x109)][_0x5671d9(0x133)](v[_0x5671d9(0x36b)](this[_0x5671d9(0xc8)]))[_0x5671d9(0x315)](_0x5906e0=>{const _0x1e4dc5=_0x5671d9,_0xe97241=_0x5906e0[_0x1e4dc5(0x198)];_0xe97241===_['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5906e0),_0xe97241===_[_0x1e4dc5(0x1c7)][_0x1e4dc5(0x3ee)]&&this[_0x1e4dc5(0x2de)](_0x5906e0);}),this[_0x5671d9(0x42a)](),this[_0x5671d9(0x16e)](this[_0x5671d9(0x10f)]['onCommandExecuted'](_0x1b366b=>{const _0x3bad8b=_0x5671d9;if(this[_0x3bad8b(0x28d)]&&_0x1b366b['id']===p['SetSelectionsOperation']['id']&&_0x1b366b[_0x3bad8b(0x119)][_0x3bad8b(0x10e)]===this[_0x3bad8b(0x312)]){const _0xfeeb96=_0x1b366b[_0x3bad8b(0x119)];this[_0x3bad8b(0x44a)](_0xfeeb96[_0x3bad8b(0x439)],_0xfeeb96['selections'][0x0]);}})));}[_0x5e318a(0x1d6)](_0x1f985a){const _0x89d2c6=_0x5e318a;var _0x5e8507,_0x462fc5;const {memberID:_0x543907,selection:_0x465ac3}=_0x1f985a['data'],{sheetName:_0x2a2eb6,range:_0x3711ca}=Ke[_0x89d2c6(0x253)](_0x465ac3),_0x60d43c={'name':(_0x462fc5=(_0x5e8507=this[_0x89d2c6(0x3d5)][_0x89d2c6(0x341)](this[_0x89d2c6(0x312)],_0x543907))==null?void 0x0:_0x5e8507[_0x89d2c6(0x111)])!=null?_0x462fc5:_0x89d2c6(0x300),'range':this[_0x89d2c6(0x467)](_0x2a2eb6,_0x3711ca),'sheetID':_0x2a2eb6,'color':this[_0x89d2c6(0x266)]['assignAColorForMemberID'](_0x543907),'selection':_0x465ac3},_0x107c5c=this[_0x89d2c6(0xdd)];_0x107c5c[_0x89d2c6(0x2e6)](_0x543907,_0x60d43c),this[_0x89d2c6(0x150)][_0x89d2c6(0x318)](_0x107c5c);}[_0x5e318a(0x2de)](_0x95a360){const _0x25338d=_0x5e318a,{memberID:_0x1c827a}=_0x95a360[_0x25338d(0x42c)],_0x378d4b=this[_0x25338d(0xdd)];_0x378d4b[_0x25338d(0x33f)](_0x1c827a),this[_0x25338d(0x150)][_0x25338d(0x318)](_0x378d4b);}['_getMergeRange'](_0x5bb7ec,_0x35e67e){const _0x1d083a=_0x5e318a;var _0x75c35c,_0x2f69aa;const _0x20c729=(_0x2f69aa=(_0x75c35c=this[_0x1d083a(0x1fd)]['getUniverSheetInstance'](this[_0x1d083a(0x312)]))==null?void 0x0:_0x75c35c[_0x1d083a(0x136)](_0x5bb7ec))==null?void 0x0:_0x2f69aa[_0x1d083a(0xe9)]();return(_0x20c729==null?void 0x0:_0x20c729[_0x1d083a(0x2e9)](_0x3e8f29=>o[_0x1d083a(0x2b0)][_0x1d083a(0x15a)](_0x3e8f29,_0x35e67e)))||_0x35e67e;}[_0x5e318a(0x42a)](){const _0x59d277=_0x5e318a,_0x5cc1c5=new o['DisposableCollection'](),_0x20cebe=js(),_0x5d4113=()=>{const _0x4c194b=_0x337d;_0x5cc1c5['dispose']();const _0x341a9a=(_0x12a8e6,_0x20a2c8,_0x3947fb,_0xde6134)=>{const _0x30cd50=_0x337d;let _0x4b93aa=[];switch(_0x12a8e6['id']){case p[_0x30cd50(0x245)][_0x30cd50(0x2db)]:{_0x4b93aa=p['handleDeleteRangeMoveLeft'](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x45a)]:{_0x4b93aa=p[_0x30cd50(0x175)](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x338)]:{_0x4b93aa=p['handleInsertCol'](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x24e)]:{_0x4b93aa=p[_0x30cd50(0x405)](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x2a4)]:{_0x4b93aa=p[_0x30cd50(0x180)](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0xc5)]:{_0x4b93aa=p[_0x30cd50(0x3b6)](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x374)]:{_0x4b93aa=p['handleMoveRange'](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x3a9)]:{_0x4b93aa=p['handleIRemoveCol'](_0x12a8e6,_0xde6134);break;}case p[_0x30cd50(0x245)][_0x30cd50(0x298)]:{_0x4b93aa=p[_0x30cd50(0x2e0)](_0x12a8e6,_0xde6134);break;}}const _0x58b33e=p[_0x30cd50(0x479)](_0x4b93aa,_0xde6134),_0x160e72=this['cursorInfo'][_0x30cd50(0x236)](_0x20a2c8);if(_0x160e72&&_0x58b33e){const _0x2b49a0={..._0x160e72,'range':_0x58b33e};this[_0x30cd50(0xdd)][_0x30cd50(0x2e6)](_0x20a2c8,_0x2b49a0),_0x20cebe(()=>{const _0x84c410=_0x30cd50,_0x476608=this[_0x84c410(0x2ca)][_0x84c410(0x132)](_0x58b33e,_0x453689=>(_0x476608['dispose'](),_0x341a9a(_0x453689,_0x20a2c8,_0x3947fb,_0x58b33e)));_0x5cc1c5[_0x84c410(0x40f)](_0x476608);});}return{'redos':[],'undos':[]};};this[_0x4c194b(0xdd)][_0x4c194b(0x183)]((_0x5e684a,_0x5188d5)=>{const _0x3951b5=_0x4c194b,{range:_0x4c9817,sheetID:_0x154379}=_0x5e684a,_0x56f958=this[_0x3951b5(0x2ca)][_0x3951b5(0x132)](_0x4c9817,_0x243f76=>(_0x56f958[_0x3951b5(0x17d)](),_0x341a9a(_0x243f76,_0x5188d5,_0x154379,_0x4c9817)));_0x5cc1c5['add'](_0x56f958);});};this[_0x59d277(0x16e)](o[_0x59d277(0x414)](this[_0x59d277(0x150)][_0x59d277(0x315)](()=>{_0x5d4113();})));}[_0x5e318a(0x47a)](){const _0x34e637=_0x5e318a;var _0x474a42,_0x2ed7f8;if(this[_0x34e637(0x28d)]=!0x0,((_0x474a42=this[_0x34e637(0x1fd)]['getFocusedUnit']())==null?void 0x0:_0x474a42['getUnitId']())!==this[_0x34e637(0x312)])return;const _0x5a40f5=(_0x2ed7f8=this['_injector'][_0x34e637(0x236)](p[_0x34e637(0xde)])[_0x34e637(0x448)]())==null?void 0x0:_0x2ed7f8[0x0],_0x2bbce3=this[_0x34e637(0x1fd)][_0x34e637(0x3ab)](o['UniverInstanceType']['UNIVER_SHEET'])['getActiveSheet']();_0x5a40f5&&_0x2bbce3&&this['_updateLocalCursor'](_0x2bbce3[_0x34e637(0x347)](),_0x5a40f5);}[_0x5e318a(0x215)](){const _0x30ebc9=_0x5e318a;this[_0x30ebc9(0x28d)]=!0x1;}};Le=Ns([q(0x2,o['Inject'](o['Injector'])),q(0x3,o[_0x5e318a(0x23f)](Fe)),q(0x4,o[_0x5e318a(0x23f)](Y)),q(0x5,o[_0x5e318a(0x1da)]),q(0x6,o['ICommandService']),q(0x7,o[_0x5e318a(0x23f)](p[_0x5e318a(0xe2)]))],Le);var $s=Object[_0x5e318a(0x33d)],xs=Object[_0x5e318a(0x225)],Hs=(_0x489c8b,_0x4840ac,_0x34dbfe,_0x5b4901)=>{const _0x1ef21e=_0x5e318a;for(var _0x566d46=_0x5b4901>0x1?void 0x0:_0x5b4901?xs(_0x4840ac,_0x34dbfe):_0x4840ac,_0x4b4f6b=_0x489c8b[_0x1ef21e(0x181)]-0x1,_0x2d96ae;_0x4b4f6b>=0x0;_0x4b4f6b--)(_0x2d96ae=_0x489c8b[_0x4b4f6b])&&(_0x566d46=(_0x5b4901?_0x2d96ae(_0x4840ac,_0x34dbfe,_0x566d46):_0x2d96ae(_0x566d46))||_0x566d46);return _0x5b4901&&_0x566d46&&$s(_0x4840ac,_0x34dbfe,_0x566d46),_0x566d46;},F=(_0x4845f5,_0x4d00e6)=>(_0x18db4b,_0x279e4a)=>_0x4d00e6(_0x18db4b,_0x279e4a,_0x4845f5);const ks=0x12c,Bs=0x64;let Ae=class extends o['RxDisposable']{constructor(_0x5084cc,_0xed2c78,_0x4c7277,_0x2108e1,_0x37080e,_0x46d0c8,_0xc64334,_0x46d37e,_0x2805c4){const _0x559f2e=_0x5e318a;super(),u(this,'_online',!0x1),u(this,_0x559f2e(0x24b),!0x1),u(this,_0x559f2e(0x150),new v[(_0x559f2e(0x18a))](new Map())),u(this,_0x559f2e(0x34e),this['_cursorInfo$'][_0x559f2e(0x468)]()),u(this,'_roomMembers$',new v[(_0x559f2e(0x18a))]([])),u(this,'roomMembers$',this[_0x559f2e(0x45f)]['pipe'](v['debounceTime'](ks))),u(this,'_updateLocalCursor',xe(_0x3d2917=>{const _0x54576e=_0x559f2e,_0x55e640={'eventID':_[_0x54576e(0x1c7)][_0x54576e(0x28c)],'data':{'unitID':this[_0x54576e(0x312)],'memberID':this[_0x54576e(0xd5)][_0x54576e(0x330)](),'selection':bt(_0x3d2917)}};this[_0x54576e(0xd5)]['send'](_0x55e640,this['unitID']);},Bs)),(this[_0x559f2e(0x312)]=_0x5084cc,this[_0x559f2e(0xd5)]=_0xed2c78,this[_0x559f2e(0xa4)]=_0x4c7277,this[_0x559f2e(0x266)]=_0x2108e1,this[_0x559f2e(0x3d5)]=_0x37080e,this[_0x559f2e(0x1c4)]=_0x46d0c8,this[_0x559f2e(0xca)]=_0xc64334,this[_0x559f2e(0x1fd)]=_0x46d37e,this[_0x559f2e(0x10f)]=_0x2805c4);}get[_0x5e318a(0xdd)](){const _0x30f561=_0x5e318a;return this['_cursorInfo$'][_0x30f561(0x34b)]();}get['roomMembers'](){const _0x1adf07=_0x5e318a;return this['_roomMembers$'][_0x1adf07(0x34b)]();}[_0x5e318a(0x17d)](){const _0x242668=_0x5e318a;super[_0x242668(0x17d)](),this[_0x242668(0x150)][_0x242668(0x318)](new Map()),this[_0x242668(0x150)][_0x242668(0x270)](),this[_0x242668(0x45f)][_0x242668(0x318)]([]),this['_roomMembers$'][_0x242668(0x270)]();}['init'](){const _0x4cce0b=_0x5e318a;this[_0x4cce0b(0x24b)]||(this[_0x4cce0b(0x24b)]=!0x0,this[_0x4cce0b(0xd5)]['sessionStatus$']['pipe'](v[_0x4cce0b(0x36b)](this[_0x4cce0b(0xc8)]))['subscribe'](_0x25964e=>{const _0x47f602=_0x4cce0b;_0x25964e===G[_0x47f602(0x16c)]?this[_0x47f602(0x47a)]():this[_0x47f602(0x215)]();}),this[_0x4cce0b(0xd5)]['event$']['pipe'](v['takeUntil'](this[_0x4cce0b(0xc8)]))[_0x4cce0b(0x315)](_0xf493b4=>{const _0x555b2=_0x4cce0b,_0x15e0ba=_0xf493b4[_0x555b2(0x198)];_0x15e0ba===_[_0x555b2(0x1c7)]['UPDATE_CURSOR']&&this[_0x555b2(0x1d6)](_0xf493b4),_0x15e0ba===_[_0x555b2(0x1c7)][_0x555b2(0x3ee)]&&this['_onCursorDelete'](_0xf493b4);}),this['disposeWithMe'](this[_0x4cce0b(0x10f)][_0x4cce0b(0x3ff)](_0x5222df=>{const _0x4d906d=_0x4cce0b,_0x229f18=_0x5222df[_0x4d906d(0x119)];_0x229f18!=null&&this['_online']&&_0x5222df['id']===P['SetTextSelectionsOperation']['id']&&_0x229f18[_0x4d906d(0x10e)]===this['unitID']&&_0x229f18[_0x4d906d(0x3a6)]===!0x1&&this[_0x4d906d(0x44a)](_0x229f18[_0x4d906d(0x37c)]);})),this[_0x4cce0b(0x1c4)][_0x4cce0b(0x34d)][_0x4cce0b(0x133)](v[_0x4cce0b(0x36b)](this[_0x4cce0b(0xc8)]))[_0x4cce0b(0x315)](_0x27988c=>{const _0x5d335f=_0x4cce0b;if((_0x27988c==null?void 0x0:_0x27988c[_0x5d335f(0x312)])!==this[_0x5d335f(0x312)])return;const _0x5cd84a={'eventID':_[_0x5d335f(0x1c7)][_0x5d335f(0x28c)],'data':_0x27988c};this[_0x5d335f(0x1d6)](_0x5cd84a);}),this[_0x4cce0b(0x16e)](this[_0x4cce0b(0x10f)][_0x4cce0b(0x3ff)](_0x4cf1b6=>{const _0x571621=_0x4cce0b;if(_0x4cf1b6['params']==null)return;const _0x5ba655=_0x4cf1b6[_0x571621(0x119)];if(_0x4cf1b6['id']!==P[_0x571621(0x305)]['id']||_0x5ba655['unitId']!==this[_0x571621(0x312)])return;const _0x56e563={'id':'doc.mutation.rich-text-editing','params':_0x5ba655},_0x4be739=this[_0x571621(0xdd)];for(const [_0x3a85ec,_0x533e0b]of _0x4be739){const _0x339f87={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x533e0b[_0x571621(0x37c)]}},_0x201898=this[_0x571621(0xca)]['transformMutation'](_0x56e563,_0x339f87,!0x1);if(_['isTransformMutationFailure'](_0x201898))throw _0x201898[_0x571621(0x45d)];_0x4be739['set'](_0x3a85ec,{..._0x533e0b,'ranges':_0x201898[_0x571621(0xfe)][_0x571621(0x119)]['textRanges']});}queueMicrotask(()=>{const _0x381ef6=_0x571621;this[_0x381ef6(0x150)]['next'](_0x4be739);});})));}[_0x5e318a(0x1d6)](_0x491d1e){const _0x4a6e66=_0x5e318a;var _0xfdc37d,_0x3e8e1d;const {memberID:_0x461436,selection:_0x3e17f1}=_0x491d1e[_0x4a6e66(0x42c)],_0x18fb4c=Is(_0x3e17f1),_0x5a1bf8=(_0x3e8e1d=(_0xfdc37d=this[_0x4a6e66(0x3d5)][_0x4a6e66(0x341)](this[_0x4a6e66(0x312)],_0x461436))==null?void 0x0:_0xfdc37d['name'])!=null?_0x3e8e1d:_0x4a6e66(0x300),_0x35e36c={'color':this[_0x4a6e66(0x266)][_0x4a6e66(0x3fd)](_0x461436),'name':_0x5a1bf8,'ranges':_0x18fb4c},_0x3d849f=this[_0x4a6e66(0xdd)];_0x3d849f[_0x4a6e66(0x2e6)](_0x461436,_0x35e36c),this[_0x4a6e66(0x150)]['next'](_0x3d849f);}['_onCursorDelete'](_0x207b65){const _0x883401=_0x5e318a,{memberID:_0x23f989}=_0x207b65['data'],_0x2896f1=this[_0x883401(0xdd)];_0x2896f1['delete'](_0x23f989),this[_0x883401(0x150)][_0x883401(0x318)](_0x2896f1);}['_toggleOnline'](){const _0x8bbbb=_0x5e318a;var _0x4da86c;if(this[_0x8bbbb(0x28d)]=!0x0,((_0x4da86c=this[_0x8bbbb(0x1fd)][_0x8bbbb(0x2d5)]())==null?void 0x0:_0x4da86c[_0x8bbbb(0x40b)]())!==this[_0x8bbbb(0x312)])return;const _0x47bb92=this[_0x8bbbb(0xa4)][_0x8bbbb(0x236)](P['TextSelectionManagerService'])[_0x8bbbb(0x20e)](),_0x2e266b=_0x47bb92==null?void 0x0:_0x47bb92[_0x8bbbb(0x3b9)](P['serializeDocRange']);Array[_0x8bbbb(0x379)](_0x2e266b)&&_0x2e266b[_0x8bbbb(0x181)]>0x0&&this[_0x8bbbb(0x44a)](_0x2e266b);}[_0x5e318a(0x215)](){const _0x37df67=_0x5e318a;this[_0x37df67(0x28d)]=!0x1;}};Ae=Hs([F(0x2,o[_0x5e318a(0x23f)](o['Injector'])),F(0x3,o[_0x5e318a(0x23f)](Fe)),F(0x4,o[_0x5e318a(0x23f)](Y)),F(0x5,o[_0x5e318a(0x23f)](We)),F(0x6,_[_0x5e318a(0xa0)]),F(0x7,o[_0x5e318a(0x1da)]),F(0x8,o['ICommandService'])],Ae);var Vs=Object[_0x5e318a(0x33d)],Ws=Object[_0x5e318a(0x225)],Fs=(_0xde087d,_0x5b5dda,_0x36744a,_0x5a06b0)=>{const _0x24244b=_0x5e318a;for(var _0x45e6f5=_0x5a06b0>0x1?void 0x0:_0x5a06b0?Ws(_0x5b5dda,_0x36744a):_0x5b5dda,_0x5765bb=_0xde087d[_0x24244b(0x181)]-0x1,_0x392ed0;_0x5765bb>=0x0;_0x5765bb--)(_0x392ed0=_0xde087d[_0x5765bb])&&(_0x45e6f5=(_0x5a06b0?_0x392ed0(_0x5b5dda,_0x36744a,_0x45e6f5):_0x392ed0(_0x45e6f5))||_0x45e6f5);return _0x5a06b0&&_0x45e6f5&&Vs(_0x5b5dda,_0x36744a,_0x45e6f5),_0x45e6f5;},Re=(_0x53621b,_0x4af144)=>(_0x5714e3,_0x520a97)=>_0x4af144(_0x5714e3,_0x520a97,_0x53621b);let Z=class extends o['RxDisposable']{constructor(_0x386e25,_0x2facf8,_0x530815){const _0x3a677e=_0x5e318a;super(),u(this,_0x3a677e(0x12e),new Map()),u(this,_0x3a677e(0x224),new v[(_0x3a677e(0x45c))]()),(this[_0x3a677e(0x1fd)]=_0x386e25,this['_injector']=_0x2facf8,this[_0x3a677e(0x25f)]=_0x530815,this['_init']());}['dispose'](){const _0x2deb6e=_0x5e318a;super['dispose'](),this[_0x2deb6e(0x224)][_0x2deb6e(0x270)](),this[_0x2deb6e(0x12e)][_0x2deb6e(0x183)](_0x307fdc=>_0x307fdc[_0x2deb6e(0x17d)]());}['getCollabCursors$'](_0x403159){const _0x5a537b=_0x5e318a;return this[_0x5a537b(0x12e)][_0x5a537b(0x21e)](_0x403159)?this['_entities'][_0x5a537b(0x236)](_0x403159)[_0x5a537b(0x34e)]:this[_0x5a537b(0x224)]['pipe'](v[_0x5a537b(0x218)](_0x4fa4a3=>_0x4fa4a3[_0x5a537b(0x312)]===_0x403159),v[_0x5a537b(0x1e6)](_0x297d37=>_0x297d37[_0x5a537b(0x34e)]));}[_0x5e318a(0x24b)](){const _0x5a7369=_0x5e318a;this[_0x5a7369(0x1fd)][_0x5a7369(0x332)](o[_0x5a7369(0xbb)][_0x5a7369(0x1dd)])['pipe'](v['takeUntil'](this['dispose$']))['subscribe'](async _0xad9711=>{const _0x308122=_0x5a7369,_0x1f9089=_0xad9711[_0x308122(0x40b)](),_0x4c8972=await this[_0x308122(0x329)](_0x1f9089);this['_entityInit$']['next'](_0x4c8972),this['_entities'][_0x308122(0x2e6)](_0x1f9089,_0x4c8972);}),this[_0x5a7369(0x1fd)][_0x5a7369(0x332)](o[_0x5a7369(0xbb)][_0x5a7369(0x41b)])['pipe'](v[_0x5a7369(0x36b)](this['dispose$']))[_0x5a7369(0x133)](v[_0x5a7369(0x218)](_0x4cea5b=>!_0x4cea5b[_0x5a7369(0x40b)]()[_0x5a7369(0x188)]('__')))[_0x5a7369(0x315)](async _0x291795=>{const _0x3ef9a4=_0x5a7369,_0x2cb328=_0x291795['getUnitId'](),_0x27ff3b=await this[_0x3ef9a4(0x1bc)](_0x2cb328);this[_0x3ef9a4(0x224)][_0x3ef9a4(0x318)](_0x27ff3b),this['_entities'][_0x3ef9a4(0x2e6)](_0x2cb328,_0x27ff3b);}),v[_0x5a7369(0x269)](this[_0x5a7369(0x1fd)][_0x5a7369(0x2f6)](o[_0x5a7369(0xbb)][_0x5a7369(0x41b)]),this[_0x5a7369(0x1fd)][_0x5a7369(0x2f6)](o[_0x5a7369(0xbb)][_0x5a7369(0x1dd)]))['pipe'](v['takeUntil'](this[_0x5a7369(0xc8)]))['subscribe'](_0x1468a9=>{const _0x22a476=_0x5a7369,_0x5a8aa0=_0x1468a9[_0x22a476(0x40b)](),_0x5cdbd5=this[_0x22a476(0x12e)][_0x22a476(0x236)](_0x5a8aa0);_0x5cdbd5&&(_0x5cdbd5[_0x22a476(0x17d)](),this[_0x22a476(0x12e)][_0x22a476(0x33f)](_0x5a8aa0));});}async[_0x5e318a(0x329)](_0x49788d){const _0x5b8dfe=_0x5e318a,_0x3b7f60=await this[_0x5b8dfe(0x25f)]['requireSession'](_0x49788d),_0xe31309=this[_0x5b8dfe(0xa4)][_0x5b8dfe(0x376)](Le,_0x49788d,_0x3b7f60);return _0xe31309['init'](),_0xe31309;}async[_0x5e318a(0x1bc)](_0x122e0d){const _0x1b181d=_0x5e318a,_0x248785=await this[_0x1b181d(0x25f)][_0x1b181d(0x1b1)](_0x122e0d),_0x25fae1=this[_0x1b181d(0xa4)][_0x1b181d(0x376)](Ae,_0x122e0d,_0x248785);return _0x25fae1[_0x1b181d(0x3cc)](),_0x25fae1;}};function _0x2a9a(){const _0x456353=['_scheduleReconnection','subscribe','rxjs/operators','attrs','next','transformMutationsWithChangeset','mutations','onSendChangeset','_handleJoinEvent','IURLService','_getAPIPrefixPath','prototype','ThemeService','slice','COMMENT_UPDATE','COMPRESS_MUTATION_APPLY','_getRedoStack','image/jpg','#fff','collaboration.single-unit.warning','memberID','_startSheetCollabCursor','url(#off-line-single_clip0_910_343)','batchAllowed','selection','shouldCloseConn','tag','_state$','getMemberID','ImageIoService','getTypeOfUnitAdded$','findNodePositionByCharIndex','Workbook','change$','message$','_onUserLeave','InsertColCommandId','[CollaborationState]:\x20apply\x20error!','parseChangesetToProtocol','endColumn','FromArray','defineProperty','evenodd','delete','setUndoRedoMutationParamsCache','getMember','submit\x20changeset\x20error!','_docSkeleton','IUIPartsService','conflict.content','BuiltInUIPart','getSheetId','_handleLeaveEvent','/role','enableLocalCache','getValue','Warning','collabCursorState$','cursorInfo$','_docTransformSelectionsService','USERS_ENTER','OffLineSingle','deleteCollaborator','_beforeCloseService','&assign=','ERROR_IMAGE_TYPE','HEADER_MENU','/allowed','RECV','LIVESHARE_REQUEST_HOST','37653SNdPuW','Injector','ALREADY_EXISTS','save','_onConnectionFailed','_updateURLWithCurrentState','_sheetTransformSelectionsService','range','_commentUpdate$','onRemoteAck','Ready','synced','_incrementRevisionNumber','conflict.title','_collaborationSessionService','activeSheet$','updatePermissionObjEvent','takeUntil','_rescheduleHeartbeatEvent','IUndoRedoService','[CollaborationUndoRedoService]','roomInfos','readAsDataURL','onTransformIME','removeMember','setShapeProps','MoveRangeCommandId','fromEvent','createInstance','_socketService','concat','isArray','getSheetObject','55jGOBRI','ranges','/universer-api/authz','JOIN','#FFF','removeParam','_getSheetObject','getOwnPropertySymbols','@univerjs/design','_loadSheet','_submitChangeset','textRanges','_color','clear','_createHandler','_removeClearOtherTimer','HELLO','99180vloaWm','_substituteUndoStack','CommandType','_transformUndoRedoStack','_waitCount','YUUMI_UNABLE_LOAD_URL','onMouseMove','collaboratorID','TEXT_RANGE_LAYER_INDEX','bottom','OFFLINE','_state','_applyRemoteChangeset','random','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','POST','_eventUnsubscribe','910184RhWhDD','transformRemoteChangeset','loadSheet','currentColor','_getCtorByUniverType','createIdentifier','_collabCursorController','_refreshCollabCursors','session.connection-failed','isEditing','getCurrentUser','call','RemoveColCommandId','values','getCurrentUnitForType','c1Prime','_http','_joinRoom','COMPLETION_FINISHED','_members','LocaleService','Error','pushState','url','editingUnit','handleInsertRow','PSEUDO_FETCH_MISSING_RESULT','@univerjs/docs','map','_range','_transformRemoteChangesetByIMECache','_getSignURL','_getUploadFileURL','onRemoteChangeset','getCoordByCell','APPLY_NON_SEQUENTIAL_REVISION','sequenceExecute','SNAPSHOT_HAS_BEEN_REMOVED','urlChange$','blue400','_docTransformIMECacheService','MSG_FOR_ERROR','NOT_FOUND','purple300','setTimeout','fromCollab','/universer-api/snapshot','init','setInterval','generateRandomId','Disposable','close','textEncoder','transformMutation','_change$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_memberService','useDependency','_themeService','NO_OTHER_CLIENTS_EDITING','UNRECOGNIZED','AWAITING_WITH_PENDING','_disabled','collaborators','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UnitEmbedded','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_commentService','ERROR_IMAGE','updateCursorEvent','getCollabEntity','ACTIVE_UNIT_EVENT_CHANNEL','IBeforeCloseService','LOCAL_CACHE_INTERVAL','onlineStatusIcon','off-line-single','fillStyle','_replaceFileID','roomMembers','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','focused$','USERS_LEAVE','withCredentials','replaceTextRanges','objectID','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_cursors','onPointerEnter$','isTransformChangesetsSuccess','_isPermissionRej','useRef','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','JSONX','_getSnapshotAPIPrefix','Tools','_retryConnectingTimer','assignAColorForMemberID','CONNECTOR_DATA_TOO_LARGE','onCommandExecuted','getSheetBlock','_event$','row','LICENSE_DISTRO_REJECTED','IRenderManagerService','handleInsertRangeMoveDown','_clearOtherTimers','_compressMutationService','sheetID','getImageSourceCache','_getCurrentRevision','getUnitId','offline','INotificationService','children','add','_showConflictNotification','TRANSFORM_CHANGE_OBSERVABLE_TYPE','beginPath','ws://127.0.0.1:8000/universer-api/comb/connect','toDisposable','_unitStatus','connection\x20error','univerjs-icon\x20univerjs-icon-','UniverCollaborationClientPlugin','Shape','closePath','UNIVER_DOC','disableLocalCache','_onConnectionOpen','_transformStack','APPLY_PERMISSION_DENIED','saveOfflineData','_HTTPService','ImageUploadStatusType','all','addObject','...','width','MUTATION','_scene','parse','_onRefRangeChange','_initResize','data','text','/rev/','onload','_scheduleCollaborationTimeoutTimer','round','selections','workbook','_permissionService','_docStateChangeManagerService','transformSelections','useObservable','isTransformMutationsWithChangesetSuccess','subUnitId','ISnapshotServerService','changesets','getActiveRange','setItem','currentTheme$','setWaitCount','@univerjs/drawing','_sendingTimer','deepClone','updateOfflineData','4307149oEPXBW','[OfflineState]:\x20received\x20rejection.','every','transformUndoRedo','getCurrentSelections','getColor','_updateLocalCursor','APPLY_REJECT','_singleActiveUnitService','onTransformSelections','_status$','?size=','uni.network.url-service','_timeoutTimer','_retryCount','reject','_transitionLocked','getAncestorScale','getRoom','_transformUndoredo','_clearTimeoutTimer','_hovered','DeleteRangeMoveUpCommandId','_clearCollaborationTimeoutTimer','Subject','error','_unlockTransition','_roomMembers$','SYNCED','[SyncedState]:\x20received\x20acknowledgement.','[CollaborationSessionService]','fill','trim','_userManagerService','combineLatest','_getMergeRange','asObservable','color','code','SUBMIT_CHANGESET','CollaborationSocketService','[FetchMissState]','unit-cache-','_setupSubUnitSync','_handleHeartbeatEvent','transformStack\x20failed!','IAuthzIoService','univer-online-status','shareReplay','_onLocalMutation','SheetCollaborationEntity','c2Prime','mapDocumentTypeToUniverType','runRefRangeMutations','_toggleOnline','_hover','resend','UPDATE_PERMISSION_OBJ','_getScale','_decreaseWaiting','propertyIsEnumerable','YUUMI_SUBSCRIPTION_NOT_FOUND','unshift','_onRemoteACK','_anchor','onSyncEditingCollabCursor','initWorkbookPermissionChange','substring','ITransformService','_socketReady','HEARTBEAT','SessionStatus','_injector','joinEvent','AuthzIoHttpService','_saveCache','toggleOnline','defs','_initUnitPermissionChange','replaceState','UNIVER_PROJECT','COLLAB_SUBMIT_CHANGESET_URL_KEY','max','WebURLService','collab-text-range-','_sendHeartbeat','M0\x200H16V16H0z','clipPath','CompressMutationService','isValidRectRange','conflict','awaiting_with_pending','extend','UNKNOWN_CODE','APPLY_REVISION_CONFILICT','UniverInstanceType','onPointerMove$','href','_updateStatus','saveChangeset','interceptor','UNDEFINED','objectActions','_configService','AUTHZ_URL_KEY','InsertRowCommandId','XHRHTTPImplementation','on-line-single_clip0_910_349','dispose$','WebSocketService','_transformService','LocalUndoRedoService','_drawAnchor','appendMutation','COLLAB_SUBMIT_CHANGESET_URL','/unit/','skeleton','RxDisposable','VIEW_MAIN','off-line-single_clip0_910_343','deserializeToCombResponse','_session','INGEST','_pendingMutations','SNAPSHOT_URL_KEY','WorkbookEditablePermission','UNAUTHENTICATED','LIVESHARE_FETCH_OPERATIONS','sheets','cursorInfo','SheetsSelectionsService','collabStatus.synced','PERMISSION_REJ','key','RefRangeService','_socket','MergeInterceptorFactory','roomMembers$','ILocalStorageService','InsertSheetMutation','866igtJTg','getMergeData','_render','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_schedule','LIVESHARE_NEW_HOST','_collaborationTimeoutTimer','measureText','path','CollaborationStatusDisplay','UnitSnapshot','_notificationService','hasOwnProperty','delay','react','?url=','_config','triggerDblclick','_initCommandExecutedListener','ILogService','getItem','\x20to\x20','m2Prime','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','LICENSE_EXPORT_SIZE_EXCEEDED','clearInterval','then','registerHTTPInterceptor','getCurrent','status$','_remoteChangesetQueue','unknown','_cachedData','event$','LICENSE_MAX_UNITS_EXCEEDED','transformByState','entries','_tryEnsureSocket','unitId','_commandService','_ws','name','_awaitingChangeset','fetch_missing','_handleEvent','onStateChange','_updateCollabCursors','routeKey','HttpExport','params','verdancy600','@univerjs/rpc','DataLoaderController','_updateLocalCache','LOGIN_URL_KEY','_localCacheService','DocSkeletonManagerService','getUnitType','drawWith','hide','saveImage','collabStatus.notCollab','SnapshotServerOverHTTPService','enableAuthServer','isPermissionRej','mergeOverrideWithDependencies','subunit','EmptyMutation','_collaborationPaused','ERROR_EXCEED_SIZE','_entities','AWAITING','getCellPositionByOffset','div','registerRefRange','pipe','UniverIcon','UUID','getSheetBySheetId','/-/object/-/batch_allowed','/universer-api/comb','red300','split','_hideTimer','reverse','_initCloseConn','_socketMessageSubscription','_clearHeartbeatTimer','unit','_logService','SetWorksheetActivateCommand','location','send','defIds','NOT_COLLAB','size','state$','transformIMECache','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','error$','_getSaveTimeout','_sessionStatus$','transform','_labelPosition','_cursorInfo$','univer-online-status-icon','IHTTPImplementation','ColorKit','_onCombEvent','_handleHover','saveSnapshot','PENDING','_heartbeatTimer','univer-pro.collaboration-client.single-active-unit-service','contains','subscribeEvent','_queuedRemoteChangesets','\x20in\x20_schedule.','Optional','setAlpha','toggleOffline','_checkMissing','_backgroundColor','hovered','_disableEditing','from','isActive','UniverCollaborationPlugin','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_startCollaboration','_unitOnClients','_getSendChangesetTimeout','ONLINE','_unitID','disposeWithMe','socket\x20open.','status','_name','whenReady','/universer-api/stream/file/upload','exhaustSavingTask','handleDeleteRangeMoveUp','_onRecvEvent','parseProtocolChangeset','onTransformChange$','method','createElement','distinctUntilChanged','{fileID}','dispose','LOCAL_CACHE_INTERVAL_KEY','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','handleInsertRangeMoveRight','length','_syncEditingCollabCursor','forEach','_createSocket','CollaborationController','restore','title','startsWith','startColumn','BehaviorSubject','_docSkeletonManagerService','b64DecodeUnicode','_initStatusComponent','_initMergeInterceptor','icon','json','assign','forwardRef','_colorIndex','onRendered','unsubscribe','snapshot','min','eventID','LocalCacheService','session.will-retry','FAIL','lineTo','not_collab','ImageSourceType','top','NEW_CHANGESETS','getUnitStatus$','INTERNAL_ERROR','_transformPreviousActiveRange','onMissedChangesetFetched','/-/object/list','HEARTBEAT_TIMEOUT_KEY','onRemoteRej','sessionStatus','1em','isInternalEditorID','image/png','getCollabEntity$','DocStateChangeManagerService','COLORS','[CollaborationEntity]','debug','requireSession','newValue','CHANGESET_REJ','UNIVER_SLIDE','_selfUnitIDs','editing\x20status\x20changed\x20to','_handler','currentSkeleton$','_messageService','_removeRoom','includes','_startDocCollabCursor','LIVESHARE_OPERATION','Module','_transformSelections','userID','type','/collaborator','getRangePointData','_syncEditingCollabCursorService','FETCH_MISS','_snapshotServerService','CollaborationEvent','_clearLocalCache','socket\x20close','_exhaustRemoteChangesetQueue','SNAPSHOT_INVALID_SNAPSHOT','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','action','updateMember','univer-online-status-title','_anchorDot','registerRenderModule','actions','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_uiPartsService','permission.title','_onCursorUpdate','_onFetchMissResult','_onUserJoin','UNKNOWN_CMD','IUniverInstanceService','Starting','Vector2','UNIVER_SHEET','SEND_CHANGESET_TIMEOUT_KEY','_scheduleClearOtherTimer','catch','_onConflict','2690082ZbvRDP','NodePositionConvertToRectRange','backgroundColor','apply','switchMap','xlink:href','_onJoinRoomEvent','[OfflineState]:\x20received\x20changeset.','@univerjs/engine-render','HTTPRequest','doc.mutation.rich-text-editing','sessionStatus$','YUUMI_URL_COL_OUT_OF_RANGE','IDLE','/object/','getInterceptPoints','onMissingChangesets','fetchThroughInterceptors','registerBeforeClose','rev','fromEventSubject','_lastPointer','fetchMissingChangesets','_collaborationController','getCurrentRevForDocument','className','awaitingChangeset','_univerInstanceService','fillText','open$','FETCH_MISSING','auth.needGotoLoginAlert','IMEInputManagerService','CHANGESET_ACK','_waitForHeartbeatResponse','_substituteRedoStack','_updateSubUnitFromURLParams','commentUpdateEvent','UNIVER_UNKNOWN','10LGGeqF','session.collaboration-timeout','IImageIoService','addEventListener','CollaborationSession','getDocRanges','_cursor','stringify','_sessions','getCollabCursors$','EXCHANGE_SIGN_URL_SERVER_URL_KEY','height','_toggleOffline','_textBubble','searchParams','filter','_cursorShapes','concatMap','updateCollaborator','_roomMembers','_id','has','DesktopCollaborationStatusDisplayController','headers','socketService','OnLifecycle','_executeRemoteChangeset','_entityInit$','getOwnPropertyDescriptor','_onRemoteRejected','image/gif','session','current','post','IMessageService','column','&source=','objectType','onTransformRemoteChangesetByIMECache','gold400','image/jpeg','UserManagerService','font','_transformIMECache','onCommentUpdate','get','YUUMI_RATE_OVER_LIMIT','TextSelectionManagerService','makeDirty','registerComponent','DisposableCollection','_getAPIPrefix','displayName','_loadDoc','Inject','take','LIVESHARE_TERMINATE','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/fetchmissing?from=','SNAPSHOT_SERVER_URL_KEY','EffectRefRangId','getActiveSheet','ICommandService','OTHER_CLIENTS_EDITING','_createInitialStateImpl','UNIVER_COLLABORATION_CLIENT_PLUGIN','_init','_ensureSubject','_getLoginPath','InsertRangeMoveDownCommandId','_assignedColors','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_shapes','14799393XXcSXg','deserializeRangeWithSheet','addImageSourceCache','Rect','Error\x20on\x20receiving\x20event','none','_renderManagerService','getViewport','INVALID_ARGUMENT','objects','CollaborationStatus','encode','_sendHeartbeatTimer','_collabSessionService','IPermissionService','_drawRectRange','SheetCollabCursorShape','LEAVE','@univerjs/core','_draw','_colorAssignService','liveShareNewHost','endRow','merge','RETRY_CONNECTING_INTERVAL','SHOULD_CLOSE_CONN','toStringTag','append','_socket$','leaveEvent','complete','ICollaborationSocketService','resourceIDs','getUnitOnRev','@univerjs/engine-formula','_lockTransition','push','_collabCursorState$','[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.','_scheduleTimestamp','syncEditingCollabCursor','pluginName','flatMap','image/bmp','target','result','/universer-api/file/{fileID}/sign-url','isTransformMutationFailure','on-line-single','localeService','[PendingState]:\x20received\x20acknowledgement.','function','onlineStatusTitle','createCollaborator','cmd','_onMessage','requestParams','_type','UPDATE_CURSOR','_online','PERMISSION_DENIED','_removeCollabCursors','closeSession','univer-offline','put','indexOf','_sheetSkeletonManagerService','_updateState','[UniverCollaborationClientPlugin]','collaboration.closeRoom','RemoveRowCommandId','getConfig','_httpService','getParam','pending','clearTimeout','onlyLocal','collabStatus.offline','arc','HTTPService','addObjects','listCollaborators','InsertRangeMoveRightCommandId','_localeService','TOO_MANY_REQUESTS','session.room-full','storage','DependentOn','IConfigService','setParam','SetSelectionsOperation','debounceTime','m1Prime','collabStatus.conflict','Rectangle','_registerDependencies','_undoRedoService','_undoStacks','body','roles','COMPRESS_MUTATION_SEND','SnapshotService','collaMsg','[DataLoaderController]','881XywJbk','_registerRenderDependencies','reduce','RevisionService','toRgbString','0\x200\x2016\x2016','revision','_send','getUndoRedoMutationParamsCache','COLLAB_WEB_SOCKET_URL_KEY','_setupBeforeClosingHandler','history','OnLineSingle','executeCommand','getUnhiddenWorksheets','putCollaborators','_refRangeService','liveShareOperation','getImage','FileId','_snapshotService','_localStorageService','Steady','transformChangesets','_clearRedo','_clearUndo','engine','getFocusedUnit','refreshPermission','RegularPolygon','collabStatus.syncing','idSuffix','connectInjector','DeleteRangeMoveLeftCommandId','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_getUndoStack','_onCursorDelete','_replayCachedMutations','handleIRemoveRow','/resources','members','loadOfflineData','updatePermissionPoint','setCurrentUser','set','black','symbol','find','HEARTBEAT_INTERVAL_KEY','show','HttpImport','_context','_urlService','_imageSourceCache','JOINING','translate(.97)','awaiting','SetDocZoomRatioOperation','MessageType','_docSyncEditingCollabCursorService','getTypeOfUnitDisposed$','toString','@univerjs-pro/collaboration','CollaborationSessionService','HEARTBEAT_TIMEOUT','save\x20fail\x20reason\x20is\x20','permissionRejEvent','_acknowledgedAwaitingChangeset','CommentService','_drawTextRange','Unknown\x20user','LifecycleStages','csAckEvent','Undefined','enableOfflineEditing','RichTextEditingMutation','string','newCsEvent','_scheduleHeartbeat','[OfflineState]:\x20received\x20acknowledgement.','_saveTaskMap','SEND_CHANGESET_TIMEOUT','_revisionService','_clearScheduledTask','colorChannel1','\x20-\x20','getWorkbookSelections','replace','unitID','_onRemoteChangeset'];_0x2a9a=function(){return _0x456353;};return _0x2a9a();}Z=Fs([o[_0x5e318a(0x222)](o[_0x5e318a(0x301)][_0x5e318a(0x1db)],Z),Re(0x0,o[_0x5e318a(0x1da)]),Re(0x1,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),Re(0x2,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x2f9)]))],Z);const le=0x14,it=0xc8,Oe=0x4,Gs=0x5;function Ys(_0x414624,_0x603a86){const _0x550712=_0x5e318a;let {radius:_0x1b4334,width:_0x1d5e85,height:_0x32bead}=_0x603a86;_0x1b4334=_0x1b4334!=null?_0x1b4334:0x0,_0x1d5e85=_0x1d5e85!=null?_0x1d5e85:0x1e,_0x32bead=_0x32bead!=null?_0x32bead:0x1e;let _0x1e9212=0x0,_0x3cca3e=0x0,_0x27836c=0x0;_0x1e9212=_0x3cca3e=_0x27836c=Math[_0x550712(0x197)](_0x1b4334,_0x1d5e85/0x2,_0x32bead/0x2),_0x414624[_0x550712(0x412)](),_0x414624['moveTo'](_0x1e9212,0x0),_0x414624['lineTo'](_0x1d5e85-_0x3cca3e,0x0),_0x414624[_0x550712(0x2a0)](_0x1d5e85-_0x3cca3e,_0x3cca3e,_0x3cca3e,Math['PI']*0x3/0x2,0x0,!0x1),_0x414624[_0x550712(0x19c)](_0x1d5e85,_0x32bead-_0x27836c),_0x414624['arc'](_0x1d5e85-_0x27836c,_0x32bead-_0x27836c,_0x27836c,0x0,Math['PI']/0x2,!0x1),_0x414624[_0x550712(0x19c)](0x0,_0x32bead),_0x414624['lineTo'](0x0,_0x1e9212),_0x414624['arc'](_0x1e9212,_0x1e9212,_0x1e9212,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x414624[_0x550712(0x41a)](),_0x603a86[_0x550712(0x463)]&&(_0x414624[_0x550712(0x35d)](),_0x414624['fillStyle']=_0x603a86[_0x550712(0x463)],_0x603a86['fillRule']===_0x550712(0x33e)?_0x414624[_0x550712(0x463)](_0x550712(0x33e)):_0x414624[_0x550712(0x463)](),_0x414624[_0x550712(0x186)]());}class Ce extends b[_0x5e318a(0x419)]{constructor(_0x98c1fd,_0x437510){const _0x3e5cec=_0x5e318a;super(_0x98c1fd,_0x437510),u(this,'color'),u(this,'text'),(this[_0x3e5cec(0x469)]=_0x437510==null?void 0x0:_0x437510[_0x3e5cec(0x469)],this['text']=_0x437510==null?void 0x0:_0x437510[_0x3e5cec(0x42d)]);}static[_0x5e318a(0x122)](_0x49fb10,_0x2adb71){const _0x50eea7=_0x5e318a,{text:_0x17d9b0,color:_0x3dbac8}=_0x2adb71;_0x49fb10[_0x50eea7(0x35d)](),_0x49fb10[_0x50eea7(0x233)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x154e69=_0x49fb10['measureText'](_0x17d9b0)[_0x50eea7(0x426)],_0x3595ff=Math[_0x50eea7(0x197)](_0x154e69+0x2*Oe,it);Ys(_0x49fb10,{'height':le,'radius':0x4,'width':_0x3595ff,'fill':_0x3dbac8,'evented':!0x1}),_0x49fb10[_0x50eea7(0x3e9)]=_0x50eea7(0x37f);const _0x41c549=Oe,_0x36a6a3=le-Gs,_0x541652=it-0x2*Oe;if(_0x154e69>_0x541652){let _0x1819df='',_0x327c1e=0x0;for(const _0x3f888e of _0x17d9b0){const _0x2e4558=_0x49fb10[_0x50eea7(0xef)](_0x3f888e)[_0x50eea7(0x426)];if(_0x327c1e+_0x2e4558<=_0x541652-_0x49fb10[_0x50eea7(0xef)](_0x50eea7(0x425))['width'])_0x1819df+=_0x3f888e,_0x327c1e+=_0x2e4558;else{_0x1819df+='...';break;}}_0x49fb10['fillText'](_0x1819df,_0x41c549,_0x36a6a3);}else _0x49fb10[_0x50eea7(0x1fe)](_0x17d9b0,_0x41c549,_0x36a6a3);_0x49fb10[_0x50eea7(0x186)]();}[_0x5e318a(0x265)](_0x17c291){const _0x2e15f4=_0x5e318a;Ce[_0x2e15f4(0x122)](_0x17c291,this);}}const Ks=0x1,Xs=1.5;class Rt extends b[_0x5e318a(0x419)]{constructor(_0x5e1a37,_0x416f14){const _0xbc35f3=_0x5e318a;super(_0x5e1a37,_0x416f14),u(this,_0xbc35f3(0x387)),u(this,_0xbc35f3(0x459),!0x1),u(this,_0xbc35f3(0x3ba)),u(this,_0xbc35f3(0x171),''),u(this,_0xbc35f3(0x14f),_0xbc35f3(0x19f)),u(this,_0xbc35f3(0x162)),(_0x416f14&&this[_0xbc35f3(0x373)](_0x416f14),this['onPointerEnter$']['subscribeEvent'](()=>this[_0xbc35f3(0x373)]({'hovered':!0x0})),this['onPointerLeave$'][_0xbc35f3(0x15b)](()=>this[_0xbc35f3(0x373)]({'hovered':!0x1})));}[_0x5e318a(0x373)](_0x5d00dd){const _0xf6bdaa=_0x5e318a;var _0x53fd1f,_0xb3d58e,_0x12d6f5,_0x1fd1ad,_0x2fb337,_0xed9848;this['_color']=(_0x53fd1f=_0x5d00dd[_0xf6bdaa(0x469)])!=null?_0x53fd1f:this[_0xf6bdaa(0x387)],this['_hovered']=(_0xb3d58e=_0x5d00dd[_0xf6bdaa(0x163)])!=null?_0xb3d58e:this['_hovered'],this[_0xf6bdaa(0x3ba)]=(_0x12d6f5=_0x5d00dd[_0xf6bdaa(0x361)])!=null?_0x12d6f5:this['_range'],this[_0xf6bdaa(0x171)]=(_0x1fd1ad=_0x5d00dd[_0xf6bdaa(0x111)])!=null?_0x1fd1ad:this[_0xf6bdaa(0x171)],this[_0xf6bdaa(0x14f)]=(_0x2fb337=_0x5d00dd['labelPosition'])!=null?_0x2fb337:this[_0xf6bdaa(0x14f)],this[_0xf6bdaa(0x162)]=(_0xed9848=_0x5d00dd[_0xf6bdaa(0x1e4)])!=null?_0xed9848:this[_0xf6bdaa(0x162)],this[_0xf6bdaa(0x10b)]({'width':_0x5d00dd[_0xf6bdaa(0x426)],'height':_0x5d00dd[_0xf6bdaa(0x214)]});}[_0x5e318a(0x392)](_0x149a85){const _0x477945=_0x5e318a,{row:_0x186119,column:_0x51f54f}=_0x149a85;if(_0x186119>=this['_range']['startRow']&&_0x186119<=this[_0x477945(0x3ba)][_0x477945(0x268)]&&_0x51f54f>=this['_range'][_0x477945(0x189)]&&_0x51f54f<=this[_0x477945(0x3ba)][_0x477945(0x33b)]){this[_0x477945(0x373)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5e318a(0xf9)](_0x2b0d9c){return!0x1;}['_draw'](_0x828067){const _0x3d7663=_0x5e318a;b[_0x3d7663(0x255)][_0x3d7663(0x122)](_0x828067,{'width':this[_0x3d7663(0x426)],'height':this[_0x3d7663(0x214)],'strokeWidth':Xs,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3d7663(0x459)]&&(_0x828067[_0x3d7663(0x35d)](),_0x828067[_0x3d7663(0x14e)](0x1,0x0,0x0,0x1,this['width'],this[_0x3d7663(0x14f)]===_0x3d7663(0x395)?0x0:-le),Ce[_0x3d7663(0x122)](_0x828067,{'text':this['_name'],'color':this[_0x3d7663(0x387)]}),_0x828067[_0x3d7663(0x186)]());}}var qs=Object[_0x5e318a(0x33d)],zs=Object[_0x5e318a(0x225)],Js=(_0xb2f387,_0x504b6a,_0xfdae6b,_0x127e9f)=>{for(var _0x12890e=_0x127e9f>0x1?void 0x0:_0x127e9f?zs(_0x504b6a,_0xfdae6b):_0x504b6a,_0x11bbba=_0xb2f387['length']-0x1,_0x4f4a07;_0x11bbba>=0x0;_0x11bbba--)(_0x4f4a07=_0xb2f387[_0x11bbba])&&(_0x12890e=(_0x127e9f?_0x4f4a07(_0x504b6a,_0xfdae6b,_0x12890e):_0x4f4a07(_0x12890e))||_0x12890e);return _0x127e9f&&_0x12890e&&qs(_0x504b6a,_0xfdae6b,_0x12890e),_0x12890e;},De=(_0xa26a1c,_0x18dd27)=>(_0x4a3a56,_0x37b7e0)=>_0x18dd27(_0x4a3a56,_0x37b7e0,_0xa26a1c);const Zs=0x1389;let je=class extends o[_0x5e318a(0xd1)]{constructor(_0x1a5e4e,_0x3630fd,_0x370824,_0x3b0517){const _0x5969c6=_0x5e318a;super(),u(this,_0x5969c6(0x3f3),new Set()),u(this,'_lastPointer',null),(this[_0x5969c6(0x2ed)]=_0x1a5e4e,this[_0x5969c6(0x294)]=_0x3630fd,this[_0x5969c6(0x3a3)]=_0x370824,this[_0x5969c6(0x3d7)]=_0x3b0517,this[_0x5969c6(0x24b)]());}[_0x5e318a(0x24b)](){const _0x5d9289=_0x5e318a;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x5d9289(0x133)](E[_0x5d9289(0x36b)](this['dispose$']),E['switchMap'](_0x4e96c2=>{const _0x547177=_0x5d9289;if(_0x4e96c2){const _0x59962a=_0x4e96c2['sheetId'];return v[_0x547177(0x466)](this[_0x547177(0x3a3)]['getCollabCursors$'](this[_0x547177(0x2ed)][_0x547177(0x10e)]),this[_0x547177(0x3d7)][_0x547177(0x43e)])[_0x547177(0x133)](E['map'](([_0x597a51,_0x3b7013])=>{const _0x113e3d=_0x547177,_0x36ed39=new Map();return _0x597a51[_0x113e3d(0x183)]((_0x2cefe2,_0x5e62f3)=>{const _0x5b7d56=_0x113e3d;if(_0x2cefe2[_0x5b7d56(0x408)]===_0x59962a){const _0x3d3f7b={..._0x2cefe2};_0x3d3f7b[_0x5b7d56(0x469)]=_0x3b7013[_0x2cefe2[_0x5b7d56(0x469)]],_0x36ed39['set'](_0x5e62f3,_0x3d3f7b);}}),{'skeleton':_0x4e96c2,'cursors':_0x36ed39};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x5d9289(0x315)](({skeleton:_0x5f5861,cursors:_0x564190})=>{const _0x15f9d0=_0x5d9289;this[_0x15f9d0(0x28f)](),_0x5f5861&&this['_updateCollabCursors'](_0x5f5861,_0x564190);}),this[_0x5d9289(0x294)][_0x5d9289(0x1b8)][_0x5d9289(0x315)](_0x2d42f8=>{const _0x16cd8a=_0x5d9289;if(_0x2d42f8==null)return;const {skeleton:_0x5e1e52}=_0x2d42f8,{scene:_0x2a84a8}=this[_0x16cd8a(0x2ed)];_0x2a84a8[_0x16cd8a(0xbc)][_0x16cd8a(0x15b)](xe(_0x101980=>{const _0xea1535=_0x16cd8a;var _0x2a9e8c,_0x3e7d13;const {offsetX:_0x717ba2,offsetY:_0xb6c647}=_0x101980,{x:_0x1820a7,y:_0x4bc51d}=_0x2a84a8['getRelativeToViewportCoord'](b['Vector2']['FromArray']([_0x717ba2,_0xb6c647])),{scaleX:_0x294451,scaleY:_0x40ab86}=_0x2a84a8['getAncestorScale'](),_0x157981=_0x2a84a8[_0xea1535(0x259)](J['VIEWPORT_KEY'][_0xea1535(0xd2)]),_0x467eb9=_0x2a84a8['getVpScrollXYInfoByPosToVp'](b[_0xea1535(0x1dc)][_0xea1535(0x33c)]([_0x1820a7,_0x4bc51d]),_0x157981),_0x2ce234=_0x5e1e52[_0xea1535(0x130)](_0x717ba2,_0xb6c647,_0x294451,_0x40ab86,_0x467eb9);((_0x2a9e8c=this['_lastPointer'])==null?void 0x0:_0x2a9e8c['column'])===_0x2ce234[_0xea1535(0x22c)]&&((_0x3e7d13=this[_0xea1535(0x1f7)])==null?void 0x0:_0x3e7d13[_0xea1535(0x402)])===_0x2ce234[_0xea1535(0x402)]||this[_0xea1535(0x3f3)]['forEach'](_0x49a3c2=>{const _0x3db870=_0xea1535;_0x49a3c2[_0x3db870(0x392)](_0x2ce234);});},0x64));});}['_updateCollabCursors'](_0x2ad90a,_0x51bf29){const _0x507bcb=_0x5e318a;var _0x89d6be;const _0xbad78=(_0x89d6be=this[_0x507bcb(0x294)][_0x507bcb(0x104)]())==null?void 0x0:_0x89d6be[_0x507bcb(0xd0)];if(!_0xbad78)return;const _0x5e512e=this[_0x507bcb(0x381)]();if(!_0x5e512e)return;this[_0x507bcb(0x3f3)][_0x507bcb(0x183)](_0x3fbff8=>{const _0x35a919=_0x507bcb;_0x3fbff8[_0x35a919(0x239)]();});const {scene:_0x1a063c}=_0x5e512e,_0xfbeae2=Qs(Array['from'](_0x51bf29[_0x507bcb(0x3aa)]()))[_0x507bcb(0x3b9)](_0x574352=>{const _0x59412c=_0x507bcb,{color:_0x3ec4de,range:_0x4aa90f,name:_0x401771,selection:_0x436ed0,sheetID:_0x32d405}=_0x574352,{startColumn:_0x4e1d30,startRow:_0x295ab9,endColumn:_0x4f96be,endRow:_0x34f2dd}=_0x4aa90f,_0xf5f72f=J['getCoordByCell'](_0x295ab9,_0x4e1d30,_0x1a063c,_0xbad78),_0x38d9a5=J[_0x59412c(0x3bf)](_0x34f2dd,_0x4f96be,_0x1a063c,_0xbad78),{columnHeaderHeightAndMarginTop:_0x1b7bcf}=_0xbad78,{startX:_0x2f22eb,startY:_0x3c1a2f}=_0xf5f72f,{endX:_0x52c009,endY:_0x2398c2}=_0x38d9a5,_0x5032ab=_0x52c009-_0x2f22eb,_0x39cb64=_0x2398c2-_0x3c1a2f,_0x1e5053={'labelPosition':_0x3c1a2f-_0x1b7bcf>=le?'top':'bottom','sheetID':_0x32d405,'range':_0x4aa90f,'color':_0x3ec4de,'name':_0x401771,'selection':_0x436ed0,'left':_0x2f22eb,'top':_0x3c1a2f,'width':_0x5032ab,'height':_0x39cb64,'evented':!0x1,'zIndex':Zs};return new Rt(_0x401771,_0x1e5053);});_0x1a063c[_0x507bcb(0x2a2)](_0xfbeae2,Ks),this[_0x507bcb(0x3f3)]=new Set(_0xfbeae2);}[_0x5e318a(0x28f)](){const _0x121050=_0x5e318a;var _0x3dd099;(_0x3dd099=this[_0x121050(0x3f3)])==null||_0x3dd099[_0x121050(0x183)](_0x4863d9=>_0x4863d9['dispose']());}['_getSheetObject'](){const _0x5bb200=_0x5e318a;return J[_0x5bb200(0x37a)](this[_0x5bb200(0x2ed)][_0x5bb200(0x140)],this[_0x5bb200(0x2ed)]);}};je=Js([De(0x1,o['Inject'](J['SheetSkeletonManagerService'])),De(0x2,o[_0x5e318a(0x23f)](Z)),De(0x3,o['Inject'](o['ThemeService']))],je);function Qs(_0xef6364){const _0x4396a2=_0x5e318a,_0x2bc986=new Map();return _0xef6364[_0x4396a2(0x183)](_0x2884c2=>{const _0x5099a0=_0x4396a2;if(_0x2bc986['has'](_0x2884c2['selection'])){const _0x165daa=_0x2bc986['get'](_0x2884c2[_0x5099a0(0x32c)]);_0x165daa[_0x5099a0(0x111)]+=',\x20'+_0x2884c2['name'];}else _0x2bc986[_0x5099a0(0x2e6)](_0x2884c2['selection'],_0x2884c2);}),Array['from'](_0x2bc986[_0x4396a2(0x3aa)]());}var N=function(){const _0x4552ea=_0x5e318a;return N=Object[_0x4552ea(0x191)]||function(_0x70eaaa){for(var _0x52a831,_0x15d0e7=0x1,_0x10d517=arguments['length'];_0x15d0e7<_0x10d517;_0x15d0e7++){_0x52a831=arguments[_0x15d0e7];for(var _0x15a129 in _0x52a831)Object['prototype']['hasOwnProperty']['call'](_0x52a831,_0x15a129)&&(_0x70eaaa[_0x15a129]=_0x52a831[_0x15a129]);}return _0x70eaaa;},N[_0x4552ea(0x1e5)](this,arguments);},ei=function(_0x2457c1,_0x1ec7de){const _0x584e5c=_0x5e318a;var _0x4b34e8={};for(var _0x3e5184 in _0x2457c1)Object[_0x584e5c(0x31f)][_0x584e5c(0xf4)][_0x584e5c(0x3a8)](_0x2457c1,_0x3e5184)&&_0x1ec7de[_0x584e5c(0x293)](_0x3e5184)<0x0&&(_0x4b34e8[_0x3e5184]=_0x2457c1[_0x3e5184]);if(_0x2457c1!=null&&typeof Object['getOwnPropertySymbols']==_0x584e5c(0x285)){for(var _0x42b126=0x0,_0x3e5184=Object[_0x584e5c(0x382)](_0x2457c1);_0x42b126<_0x3e5184[_0x584e5c(0x181)];_0x42b126++)_0x1ec7de['indexOf'](_0x3e5184[_0x42b126])<0x0&&Object[_0x584e5c(0x31f)][_0x584e5c(0x98)][_0x584e5c(0x3a8)](_0x2457c1,_0x3e5184[_0x42b126])&&(_0x4b34e8[_0x3e5184[_0x42b126]]=_0x2457c1[_0x3e5184[_0x42b126]]);}return _0x4b34e8;},Ge=y['forwardRef'](function(_0x1755b2,_0x42c961){const _0x296db3=_0x5e318a;var _0x327d2b=_0x1755b2['icon'],_0x4a549e=_0x1755b2['id'],_0x392246=_0x1755b2[_0x296db3(0x1fb)],_0x4311ea=_0x1755b2[_0x296db3(0xb8)],_0x3e89f8=ei(_0x1755b2,[_0x296db3(0x18f),'id',_0x296db3(0x1fb),_0x296db3(0xb8)]),_0x5340ac=_0x296db3(0x417)['concat'](_0x4a549e,'\x20')[_0x296db3(0x378)](_0x392246||'')[_0x296db3(0x464)](),_0x493591=y[_0x296db3(0x3f7)]('_'[_0x296db3(0x378)](ii()));return Ot(_0x327d2b,''[_0x296db3(0x378)](_0x4a549e),{'defIds':_0x327d2b[_0x296db3(0x145)],'idSuffix':_0x493591[_0x296db3(0x229)]},N({'ref':_0x42c961,'className':_0x5340ac},_0x3e89f8),_0x4311ea);});function Ot(_0x21fb90,_0x204b41,_0x9375dd,_0x53051d,_0x124a0a){const _0x2ce004=_0x5e318a;return y[_0x2ce004(0x17a)](_0x21fb90[_0x2ce004(0x32e)],N(N({'key':_0x204b41},ti(_0x21fb90,_0x9375dd,_0x124a0a)),_0x53051d),(si(_0x21fb90,_0x9375dd)[_0x2ce004(0x40e)]||[])[_0x2ce004(0x3b9)](function(_0x1a94be,_0x545a58){const _0x11610b=_0x2ce004;return Ot(_0x1a94be,''['concat'](_0x204b41,'-')[_0x11610b(0x378)](_0x21fb90['tag'],'-')[_0x11610b(0x378)](_0x545a58),_0x9375dd,void 0x0,_0x124a0a);}));}function ti(_0x2f20e2,_0x4cacd7,_0x28cf68){const _0x5d9813=_0x5e318a;var _0x319280=N({},_0x2f20e2[_0x5d9813(0x317)]);_0x28cf68!=null&&_0x28cf68[_0x5d9813(0x30e)]&&_0x319280[_0x5d9813(0x463)]===_0x5d9813(0x30e)&&(_0x319280[_0x5d9813(0x463)]=_0x28cf68['colorChannel1']);var _0x59dd27=_0x4cacd7[_0x5d9813(0x145)];return!_0x59dd27||_0x59dd27[_0x5d9813(0x181)]===0x0||(_0x2f20e2[_0x5d9813(0x32e)]==='use'&&_0x319280[_0x5d9813(0x1e7)]&&(_0x319280[_0x5d9813(0x1e7)]=_0x319280[_0x5d9813(0x1e7)]+_0x4cacd7[_0x5d9813(0x2d9)]),Object[_0x5d9813(0x10c)](_0x319280)['forEach'](function(_0x32d517){const _0x4bd1f9=_0x5d9813;var _0x2c7934=_0x32d517[0x0],_0x5c8121=_0x32d517[0x1];typeof _0x5c8121=='string'&&(_0x319280[_0x2c7934]=_0x5c8121[_0x4bd1f9(0x311)](/url\(#(.*)\)/,'url(#$1'[_0x4bd1f9(0x378)](_0x4cacd7['idSuffix'],')')));})),_0x319280;}function si(_0x4b306a,_0x59b1c5){const _0x393d4f=_0x5e318a;var _0xea95d3,_0x23e04b=_0x59b1c5[_0x393d4f(0x145)];return!_0x23e04b||_0x23e04b[_0x393d4f(0x181)]===0x0?_0x4b306a:_0x4b306a[_0x393d4f(0x32e)]==='defs'&&(!((_0xea95d3=_0x4b306a[_0x393d4f(0x40e)])===null||_0xea95d3===void 0x0)&&_0xea95d3[_0x393d4f(0x181)])?N(N({},_0x4b306a),{'children':_0x4b306a[_0x393d4f(0x40e)][_0x393d4f(0x3b9)](function(_0x56bf43){const _0xbfdbd7=_0x393d4f;return typeof _0x56bf43[_0xbfdbd7(0x317)]['id']==_0xbfdbd7(0x306)&&_0x23e04b&&_0x23e04b[_0xbfdbd7(0x293)](_0x56bf43[_0xbfdbd7(0x317)]['id'])>-0x1?N(N({},_0x56bf43),{'attrs':N(N({},_0x56bf43[_0xbfdbd7(0x317)]),{'id':_0x56bf43[_0xbfdbd7(0x317)]['id']+_0x59b1c5[_0xbfdbd7(0x2d9)]})}):_0x56bf43;})}):_0x4b306a;}function ii(){const _0x4b8a08=_0x5e318a;return Math[_0x4b8a08(0x399)]()[_0x4b8a08(0x2f7)](0x24)[_0x4b8a08(0x9f)](0x2,0x8);}Ge[_0x5e318a(0x23d)]=_0x5e318a(0x134);var ni={'tag':'svg','attrs':{'fill':_0x5e318a(0x257),'viewBox':_0x5e318a(0x2bf),'width':_0x5e318a(0x1a9),'height':_0x5e318a(0x1a9)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e318a(0x32a)},'children':[{'tag':_0x5e318a(0xf0),'attrs':{'stroke':_0x5e318a(0x3a0),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x5e318a(0x431),'strokeLinejoin':_0x5e318a(0x431),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5e318a(0xb3),'attrs':{'id':_0x5e318a(0xd3)},'children':[{'tag':_0x5e318a(0xf0),'attrs':{'fill':_0x5e318a(0x326),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5e318a(0xd3)]},Dt=y[_0x5e318a(0x192)](function(_0x4a7cc2,_0x30d2c5){const _0x483abe=_0x5e318a;return y[_0x483abe(0x17a)](Ge,Object['assign']({},_0x4a7cc2,{'id':_0x483abe(0x3e8),'ref':_0x30d2c5,'icon':ni}));});Dt[_0x5e318a(0x23d)]=_0x5e318a(0x351);var ri={'tag':'svg','attrs':{'fill':_0x5e318a(0x257),'viewBox':'0\x200\x2017\x2016','width':_0x5e318a(0x1a9),'height':_0x5e318a(0x1a9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x5e318a(0xf0),'attrs':{'stroke':_0x5e318a(0x3a0),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x5e318a(0x431),'strokeLinejoin':_0x5e318a(0x431),'strokeWidth':1.2}}]},{'tag':_0x5e318a(0xa9),'attrs':{},'children':[{'tag':_0x5e318a(0xb3),'attrs':{'id':_0x5e318a(0xc7)},'children':[{'tag':_0x5e318a(0xf0),'attrs':{'fill':'#fff','d':_0x5e318a(0xb2),'transform':_0x5e318a(0x2f1)}}]}]}],'defIds':[_0x5e318a(0xc7)]},Pt=y[_0x5e318a(0x192)](function(_0x1f18a6,_0x29fd6a){const _0x4a3b50=_0x5e318a;return y['createElement'](Ge,Object['assign']({},_0x1f18a6,{'id':_0x4a3b50(0x282),'ref':_0x29fd6a,'icon':ri}));});Pt['displayName']=_0x5e318a(0x2c6);const oi=_0x5e318a(0x151),ai=_0x5e318a(0x1cf),ci=_0x5e318a(0x473),li='univer-online',hi=_0x5e318a(0x291),ne={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x413954){const _0x2b4a12=_0x5e318a;switch(_0x413954){case D[_0x2b4a12(0x396)]:return _0x2b4a12(0x29f);case D['CONFLICT']:return _0x2b4a12(0x2af);case D[_0x2b4a12(0x1c5)]:return'collabStatus.fetchMiss';case D[_0x2b4a12(0x146)]:return _0x2b4a12(0x125);case D[_0x2b4a12(0x157)]:case D[_0x2b4a12(0x12f)]:case D[_0x2b4a12(0x3da)]:return _0x2b4a12(0x2d8);case D[_0x2b4a12(0x460)]:return _0x2b4a12(0xdf);}}function Ut(_0x349c71){const _0xd04e1f=_0x5e318a,{status$:_0x1795d4}=_0x349c71,_0xd7de53=L[_0xd04e1f(0x437)](_0x1795d4,D[_0xd04e1f(0x146)]),_0x37c14b=o[_0xd04e1f(0x3d6)](o[_0xd04e1f(0x3b1)]),_0x230a5a=_0xd7de53!==D[_0xd04e1f(0x396)],_0x12cbd2=_0x37c14b['t'](_i(_0xd7de53)),_0xe7ad4e=kt(ne['onlineStatus'],{[ne['online']]:_0x230a5a,[ne[_0xd04e1f(0x40c)]]:!_0x230a5a}),_0x2c24a2=_0x230a5a?y['createElement'](Pt,null):y[_0xd04e1f(0x17a)](Dt,null);return y[_0xd04e1f(0x17a)]('div',{'className':_0xe7ad4e},y[_0xd04e1f(0x17a)]('div',{'className':ne[_0xd04e1f(0x3e7)]},_0x2c24a2),y[_0xd04e1f(0x17a)](_0xd04e1f(0x131),{'className':ne[_0xd04e1f(0x286)]},_0x12cbd2));}var ui=Object[_0x5e318a(0x33d)],di=Object['getOwnPropertyDescriptor'],Si=(_0x4158b9,_0x454185,_0x1570a4,_0x411262)=>{const _0x8b752f=_0x5e318a;for(var _0x53d05f=_0x411262>0x1?void 0x0:_0x411262?di(_0x454185,_0x1570a4):_0x454185,_0x5f0744=_0x4158b9[_0x8b752f(0x181)]-0x1,_0x446e2a;_0x5f0744>=0x0;_0x5f0744--)(_0x446e2a=_0x4158b9[_0x5f0744])&&(_0x53d05f=(_0x411262?_0x446e2a(_0x454185,_0x1570a4,_0x53d05f):_0x446e2a(_0x53d05f))||_0x53d05f);return _0x411262&&_0x53d05f&&ui(_0x454185,_0x1570a4,_0x53d05f),_0x53d05f;},he=(_0x318285,_0x31ea30)=>(_0x918e1,_0x645c64)=>_0x31ea30(_0x918e1,_0x645c64,_0x318285);exports[_0x5e318a(0x21f)]=class extends o[_0x5e318a(0x3cf)]{constructor(_0x3d0879,_0x325e60,_0xdbe8d8,_0x31a18b){const _0x57bc22=_0x5e318a;super(),u(this,_0x57bc22(0x44e),new v[(_0x57bc22(0x18a))](D[_0x57bc22(0x146)])),(this['_univerInstanceService']=_0x3d0879,this[_0x57bc22(0x1d4)]=_0x325e60,this[_0x57bc22(0xa4)]=_0xdbe8d8,this['_collaborationController']=_0x31a18b,this[_0x57bc22(0x18d)](),this['_initStatusListener']());}[_0x5e318a(0x18d)](){const _0x20b91e=_0x5e318a;this[_0x20b91e(0x16e)](this[_0x20b91e(0x1d4)][_0x20b91e(0x23a)](L[_0x20b91e(0x346)][_0x20b91e(0x356)],()=>o[_0x20b91e(0x2da)](vi({'status$':this[_0x20b91e(0x44e)][_0x20b91e(0x468)]()}),this[_0x20b91e(0xa4)])));}['_initStatusListener'](){const _0x4708d5=_0x5e318a;this[_0x4708d5(0x16e)](o['toDisposable'](this[_0x4708d5(0x1fd)][_0x4708d5(0x3ed)]['pipe'](v[_0x4708d5(0x1e6)](()=>{const _0x5bb187=_0x4708d5,_0x2226ed=this[_0x5bb187(0x1fd)][_0x5bb187(0x2d5)]();return _0x2226ed?this[_0x5bb187(0x1f9)][_0x5bb187(0x1ac)](_0x2226ed['getUnitId']()):v['of'](null);}),v[_0x4708d5(0x1e6)](_0x230061=>_0x230061?_0x230061[_0x4708d5(0x105)]:v['of'](D[_0x4708d5(0x146)])))[_0x4708d5(0x315)](_0x3bb6f9=>{const _0x4ab1a9=_0x4708d5;this['_status$'][_0x4ab1a9(0x318)](_0x3bb6f9);})));}},exports['DesktopCollaborationStatusDisplayController']=Si([o['OnLifecycle'](o['LifecycleStages'][_0x5e318a(0x1db)],exports[_0x5e318a(0x21f)]),he(0x0,o[_0x5e318a(0x1da)]),he(0x1,L[_0x5e318a(0x344)]),he(0x2,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),he(0x3,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x185)]))],exports['DesktopCollaborationStatusDisplayController']);function vi(_0x2b0536){const {status$:_0x52628b}=_0x2b0536;return function(){const _0x3f9cc4=_0x337d;return y[_0x3f9cc4(0x17a)](Ut,{'status$':_0x52628b});};}const Ye=o[_0x5e318a(0x3a2)](_0x5e318a(0x450));var mi=Object['defineProperty'],gi=Object['getOwnPropertyDescriptor'],fi=(_0x53679e,_0x14f30e,_0xda91c,_0x5ebbd7)=>{const _0xd995ec=_0x5e318a;for(var _0x57ceed=_0x5ebbd7>0x1?void 0x0:_0x5ebbd7?gi(_0x14f30e,_0xda91c):_0x14f30e,_0xdc55cc=_0x53679e[_0xd995ec(0x181)]-0x1,_0x206aa7;_0xdc55cc>=0x0;_0xdc55cc--)(_0x206aa7=_0x53679e[_0xdc55cc])&&(_0x57ceed=(_0x5ebbd7?_0x206aa7(_0x14f30e,_0xda91c,_0x57ceed):_0x206aa7(_0x57ceed))||_0x57ceed);return _0x5ebbd7&&_0x57ceed&&mi(_0x14f30e,_0xda91c,_0x57ceed),_0x57ceed;},z=(_0x461aee,_0x281530)=>(_0x2efac3,_0xb55c2d)=>_0x281530(_0x2efac3,_0xb55c2d,_0x461aee);exports[_0x5e318a(0x11c)]=class extends o[_0x5e318a(0xd1)]{constructor(_0x1c84ed,_0x2473a6,_0x211649,_0x5a10d1,_0x5e43a1,_0x120730){const _0x4243f9=_0x5e318a;super(),this[_0x4243f9(0x2ee)]=_0x1c84ed,this[_0x4243f9(0x141)]=_0x2473a6,this[_0x4243f9(0x10f)]=_0x211649,this[_0x4243f9(0x11f)]=_0x5a10d1,this['_snapshotService']=_0x5e43a1,_0x120730?_0x120730==null||_0x120730[_0x4243f9(0x172)]()[_0x4243f9(0x102)](()=>this[_0x4243f9(0x24b)]()):(this[_0x4243f9(0x141)][_0x4243f9(0x1b0)]('[DataLoaderController]',_0x4243f9(0x3dd)),this[_0x4243f9(0x24b)]());}async[_0x5e318a(0x24b)](){const _0x2e3e69=_0x5e318a,_0x5eb519=this['_urlService']['getParam']('unit'),_0x4154e6=this[_0x2e3e69(0x2ee)]['getParam'](_0x2e3e69(0x1c1));if(!_0x5eb519||!_0x4154e6){this['_logService']['debug']('[DataLoaderController]',_0x2e3e69(0x242));return;}switch(Number(_0x4154e6)){case j[_0x2e3e69(0x1dd)]:{const _0x191ee1=await this[_0x2e3e69(0x384)](_0x5eb519);this[_0x2e3e69(0x46f)](_0x191ee1);break;}case j[_0x2e3e69(0x41b)]:{await this[_0x2e3e69(0x23e)](_0x5eb519);break;}default:{this[_0x2e3e69(0x141)][_0x2e3e69(0x45d)]('[DataLoaderController]',_0x2e3e69(0x14a));break;}}}async[_0x5e318a(0x46f)](_0x5f5cd9){const _0x18bcb2=_0x5e318a;await this[_0x18bcb2(0x206)](_0x5f5cd9),_0x5f5cd9[_0x18bcb2(0x369)][_0x18bcb2(0x133)](v[_0x18bcb2(0x36b)](this[_0x18bcb2(0xc8)]))['subscribe'](_0x3dacf7=>{const _0x280e47=_0x18bcb2;_0x3dacf7&&this[_0x280e47(0x35f)](_0x3dacf7);}),this['_urlService'][_0x18bcb2(0x3c3)][_0x18bcb2(0x133)](v[_0x18bcb2(0x36b)](this[_0x18bcb2(0xc8)]))[_0x18bcb2(0x315)](()=>this[_0x18bcb2(0x206)](_0x5f5cd9));}[_0x5e318a(0x35f)](_0x18501b,_0x79d096=!0x1){const _0x2616e6=_0x5e318a,_0xddc4d7=this[_0x2616e6(0x2ee)][_0x2616e6(0x29b)]('subunit');_0x18501b[_0x2616e6(0x347)]()!==_0xddc4d7&&this[_0x2616e6(0x2ee)][_0x2616e6(0x2ab)](_0x2616e6(0x12a),_0x18501b[_0x2616e6(0x347)](),_0x79d096);}async[_0x5e318a(0x206)](_0x472e96){const _0x5f1111=_0x5e318a;var _0xf179d;const _0x22d692=this[_0x5f1111(0x2ee)]['getParam'](_0x5f1111(0x12a));if(!_0x22d692||!_0x472e96[_0x5f1111(0x136)](_0x22d692)){const _0x2b2f87=_0x472e96[_0x5f1111(0x2c8)]()[0x0],_0x11a993=_0x472e96[_0x5f1111(0x136)](_0x2b2f87);if(!_0x11a993)return;this[_0x5f1111(0x35f)](_0x11a993,!0x0),await this['_commandService']['executeCommand'](p[_0x5f1111(0x142)]['id'],{'unitId':_0x472e96['getUnitId'](),'subUnitId':_0x2b2f87});return;}((_0xf179d=_0x472e96[_0x5f1111(0x246)]())==null?void 0x0:_0xf179d['getSheetId']())!==_0x22d692&&await this[_0x5f1111(0x10f)]['executeCommand'](p[_0x5f1111(0x142)]['id'],{'unitId':_0x472e96[_0x5f1111(0x40b)](),'subUnitId':_0x22d692});}async[_0x5e318a(0x384)](_0x13b238){const _0x272b99=_0x5e318a;let _0x387472=0x0;const _0x3abbdd=await this[_0x272b99(0x11f)][_0x272b99(0x2e3)](_0x13b238);return _0x3abbdd&&(_0x3abbdd[_0x272b99(0x1fc)]||_0x3abbdd[_0x272b99(0x31a)][_0x272b99(0x181)]!==0x0)&&(_0x387472=_0x3abbdd['rev']),_0x387472===0x0&&this[_0x272b99(0x141)]['debug']('[DataLoaderController]',_0x272b99(0x1d3)),this['_snapshotService'][_0x272b99(0x39f)](_0x13b238,_0x387472);}async[_0x5e318a(0x23e)](_0x3c3b00){const _0xec5a69=_0x5e318a;let _0x562080=0x0;const _0x2d09d8=await this['_localCacheService'][_0xec5a69(0x2e3)](_0x3c3b00);return _0x2d09d8&&(_0x2d09d8[_0xec5a69(0x1fc)]||_0x2d09d8['mutations'][_0xec5a69(0x181)]!==0x0)&&(_0x562080=_0x2d09d8[_0xec5a69(0x1f5)]),_0x562080===0x0&&this['_logService'][_0xec5a69(0x1b0)](_0xec5a69(0x2b9),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xec5a69(0x2ce)]['loadDoc'](_0x3c3b00,_0x562080);}},exports[_0x5e318a(0x11c)]=fi([o[_0x5e318a(0x222)](o['LifecycleStages']['Starting'],exports[_0x5e318a(0x11c)]),z(0x0,Ye),z(0x1,o[_0x5e318a(0xfb)]),z(0x2,o[_0x5e318a(0x247)]),z(0x3,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x199)])),z(0x4,o[_0x5e318a(0x23f)](_[_0x5e318a(0x2b7)])),z(0x5,o[_0x5e318a(0x15e)](Bt['IRemoteInstanceService']))],exports[_0x5e318a(0x11c)]);var Ii=Object[_0x5e318a(0x33d)],pi=Object[_0x5e318a(0x225)],Ei=(_0x17fcad,_0x3dadfb,_0x42cc72,_0x35fd7b)=>{const _0x10cc76=_0x5e318a;for(var _0x450bf3=_0x35fd7b>0x1?void 0x0:_0x35fd7b?pi(_0x3dadfb,_0x42cc72):_0x3dadfb,_0x16746b=_0x17fcad[_0x10cc76(0x181)]-0x1,_0x4f4612;_0x16746b>=0x0;_0x16746b--)(_0x4f4612=_0x17fcad[_0x16746b])&&(_0x450bf3=(_0x35fd7b?_0x4f4612(_0x3dadfb,_0x42cc72,_0x450bf3):_0x4f4612(_0x450bf3))||_0x450bf3);return _0x35fd7b&&_0x450bf3&&Ii(_0x3dadfb,_0x42cc72,_0x450bf3),_0x450bf3;},nt=(_0x1cbf32,_0xd71179)=>(_0x34a4b6,_0xbab09b)=>_0xd71179(_0x34a4b6,_0xbab09b,_0x1cbf32);const Ci='DEFAULT_FILE_NAME',bi='Univer';let ue=class extends o[_0x5e318a(0x3cf)]{constructor(_0x27ad69,_0x1a23c9){const _0x4a91dd=_0x5e318a;super(),this[_0x4a91dd(0x1fd)]=_0x27ad69,this[_0x4a91dd(0xc3)]=_0x1a23c9,this['_init']();}[_0x5e318a(0x24b)](){const _0x354040=_0x5e318a;this['disposeWithMe'](o[_0x354040(0x414)](this[_0x354040(0x1fd)][_0x354040(0x3ed)][_0x354040(0x315)](()=>{const _0x275bf0=_0x354040;var _0x27f4f5;const _0x3cec1b=this[_0x275bf0(0x1fd)][_0x275bf0(0x2d5)]();let _0x587650=(_0x27f4f5=this['_configService'][_0x275bf0(0x299)](Ci))!=null?_0x27f4f5:bi;_0x3cec1b instanceof o[_0x275bf0(0x334)]&&(_0x587650=_0x3cec1b[_0x275bf0(0x111)]),document[_0x275bf0(0x187)]=_0x587650;})));}};ue=Ei([o[_0x5e318a(0x222)](o[_0x5e318a(0x301)][_0x5e318a(0x364)],ue),nt(0x0,o[_0x5e318a(0x1da)]),nt(0x1,o[_0x5e318a(0x2aa)])],ue);var Ti=Object[_0x5e318a(0x33d)],Ri=Object[_0x5e318a(0x225)],Oi=(_0x248f18,_0x160c22,_0x2b5405,_0x566b7f)=>{const _0x1f9987=_0x5e318a;for(var _0x347cd8=_0x566b7f>0x1?void 0x0:_0x566b7f?Ri(_0x160c22,_0x2b5405):_0x160c22,_0x50bfe6=_0x248f18[_0x1f9987(0x181)]-0x1,_0x2c310f;_0x50bfe6>=0x0;_0x50bfe6--)(_0x2c310f=_0x248f18[_0x50bfe6])&&(_0x347cd8=(_0x566b7f?_0x2c310f(_0x160c22,_0x2b5405,_0x347cd8):_0x2c310f(_0x347cd8))||_0x347cd8);return _0x566b7f&&_0x347cd8&&Ti(_0x160c22,_0x2b5405,_0x347cd8),_0x347cd8;},rt=(_0x257c55,_0x392d22)=>(_0x4e09a5,_0x3a3569)=>_0x392d22(_0x4e09a5,_0x3a3569,_0x257c55);exports[_0x5e318a(0x126)]=class{constructor(_0x54f22c,_0x473eac){this['_configService']=_0x54f22c,this['_httpService']=_0x473eac;}async[_0x5e318a(0x273)](_0x57aa85,_0x37ef01){const _0x3371a5=_0x5e318a;var _0x5ea460;const {unitID:_0x5c6141,type:_0x23b5ef,revision:_0x119582=0x0}=_0x37ef01,_0x4ad394=this[_0x3371a5(0x3fa)]()+'/'+_0x23b5ef+'/unit/'+_0x5c6141+_0x3371a5(0x42e)+_0x119582,_0x3b1691=(await this[_0x3371a5(0x29a)][_0x3371a5(0x236)](_0x4ad394))[_0x3371a5(0x2b4)],_0x429b1c=(_0x5ea460=_0x3b1691[_0x3371a5(0x196)])==null?void 0x0:_0x5ea460[_0x3371a5(0x433)];if(_0x429b1c){const _0xb1972e=_0x429b1c==null?void 0x0:_0x429b1c['originalMeta'],_0x262b29=_[_0x3371a5(0x3d1)]['encode'](_[_0x3371a5(0x18c)](_0xb1972e));_0x429b1c['originalMeta']=_0x262b29,Object[_0x3371a5(0x10c)](_0x429b1c[_0x3371a5(0xdc)])[_0x3371a5(0x183)](([,_0x3d5bc9])=>{const _0x24d6cf=_0x3371a5,_0x136e12=_0x3d5bc9['originalMeta'],_0x4ee903=_['textEncoder'][_0x24d6cf(0x25d)](_[_0x24d6cf(0x18c)](_0x136e12));_0x3d5bc9['originalMeta']=_0x4ee903;});}return _0x3b1691;}async[_0x5e318a(0x400)](_0x5ee4f2,_0x1d0107){const _0x4e39d8=_0x5e318a,{unitID:_0x47dfcf,type:_0x51ed1b,blockID:_0x56369b}=_0x1d0107,_0x2191bc=this[_0x4e39d8(0x23c)]()+'/'+_0x51ed1b+_0x4e39d8(0xcf)+_0x47dfcf+'/block/'+_0x56369b;return(await this[_0x4e39d8(0x29a)]['get'](_0x2191bc))[_0x4e39d8(0x2b4)];}async[_0x5e318a(0x1f8)](_0xf0b466,_0x27b510){const _0x331dde=_0x5e318a,{unitID:_0x933c05,type:_0x521e92,from:_0x5c9f63,to:_0x3f8ccc}=_0x27b510,_0x2d62cd=this[_0x331dde(0x23c)]()+'/'+_0x521e92+_0x331dde(0xcf)+_0x933c05+_0x331dde(0x243)+_0x5c9f63+'&to='+_0x3f8ccc;return(await this['_httpService'][_0x331dde(0x236)](_0x2d62cd))[_0x331dde(0x2b4)];}[_0x5e318a(0x3fa)](){const _0x2c35b7=_0x5e318a;var _0x1d4280;return(_0x1d4280=this[_0x2c35b7(0xc3)][_0x2c35b7(0x299)](lt))!=null?_0x1d4280:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x4c884c=_0x5e318a;var _0x2e2e5b;return(_0x2e2e5b=this[_0x4c884c(0xc3)][_0x4c884c(0x299)](ct))!=null?_0x2e2e5b:Vt;}async['getResourcesRequest'](_0x5b6c83,_0x109b49){const _0x2b1123=_0x5e318a,_0x3f01b5='/universer-api/snapshot/'+_0x109b49[_0x2b1123(0x1c1)]+_0x2b1123(0xcf)+_0x109b49['unitID']+_0x2b1123(0x2e1);return(await this['_httpService'][_0x2b1123(0x236)](_0x3f01b5,{'params':{'resourceId':JSON['stringify'](_0x109b49[_0x2b1123(0x272)])}}))[_0x2b1123(0x2b4)];}[_0x5e318a(0x156)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x5e4d2e=_0x5e318a;throw new Error(_0x5e4d2e(0xff));}[_0x5e318a(0xbf)](){const _0x690eab=_0x5e318a;throw new Error(_0x690eab(0xff));}},exports[_0x5e318a(0x126)]=Oi([rt(0x0,o[_0x5e318a(0x2aa)]),rt(0x1,o['Inject'](U[_0x5e318a(0x2a1)]))],exports[_0x5e318a(0x126)]);var Di=Object[_0x5e318a(0x33d)],Pi=Object[_0x5e318a(0x225)],Ui=(_0x374184,_0x415c47,_0x58695b,_0x24d0c5)=>{const _0x43412c=_0x5e318a;for(var _0xcbe80=_0x24d0c5>0x1?void 0x0:_0x24d0c5?Pi(_0x415c47,_0x58695b):_0x415c47,_0xa10a6=_0x374184[_0x43412c(0x181)]-0x1,_0x18fc98;_0xa10a6>=0x0;_0xa10a6--)(_0x18fc98=_0x374184[_0xa10a6])&&(_0xcbe80=(_0x24d0c5?_0x18fc98(_0x415c47,_0x58695b,_0xcbe80):_0x18fc98(_0xcbe80))||_0xcbe80);return _0x24d0c5&&_0xcbe80&&Di(_0x415c47,_0x58695b,_0xcbe80),_0xcbe80;},re=(_0x18535c,_0x550df4)=>(_0x486939,_0x15c4cb)=>_0x550df4(_0x486939,_0x15c4cb,_0x18535c);let $e=class extends o[_0x5e318a(0xcb)]{constructor(_0x5cb39a,_0x5c14d5,_0x366995,_0x92180d,_0x348294){super(_0x5cb39a,_0x5c14d5,_0x366995),this['_transformService']=_0x92180d,this['_logService']=_0x348294;}[_0x5e318a(0x447)](_0x46d2f1,_0x459a5d){const _0x3676bf=_0x5e318a,_0x248aa0=this[_0x3676bf(0x2dd)](_0x46d2f1);if(_0x248aa0)try{const _0x3b8a2d=this[_0x3676bf(0x41e)](_0x248aa0,_0x459a5d);this['_substituteUndoStack'](_0x46d2f1,_0x3b8a2d);}catch(_0x3f2a74){this[_0x3676bf(0x141)]['error'](_0x3676bf(0x36e),_0x3f2a74),this['_clearUndo'](_0x46d2f1);}const _0x3e926d=this[_0x3676bf(0x324)](_0x46d2f1);if(_0x3e926d)try{const _0x1daaf9=this[_0x3676bf(0x41e)](_0x3e926d,_0x459a5d);this[_0x3676bf(0x205)](_0x46d2f1,_0x1daaf9);}catch(_0x5204a7){this[_0x3676bf(0x141)][_0x3676bf(0x45d)](_0x5204a7),this['_clearRedo'](_0x46d2f1);}}[_0x5e318a(0x2d3)](_0x4dec5f){const _0x2e3945=_0x5e318a,_0x7ef763=this[_0x2e3945(0x2dd)](_0x4dec5f);_0x7ef763&&(_0x7ef763[_0x2e3945(0x181)]=0x0,this[_0x2e3945(0xbe)]());}[_0x5e318a(0x2d2)](_0x166d6b){const _0x1d7759=_0x5e318a,_0x30beec=this[_0x1d7759(0x324)](_0x166d6b);_0x30beec&&(_0x30beec[_0x1d7759(0x181)]=0x0,this[_0x1d7759(0xbe)]());}[_0x5e318a(0x38d)](_0x2218e0,_0x3c9735){const _0x3d5c68=_0x5e318a;this[_0x3d5c68(0x2b3)][_0x3d5c68(0x2e6)](_0x2218e0,_0x3c9735),this['_updateStatus']();}[_0x5e318a(0x205)](_0x2dccf1,_0x13219f){const _0x33d987=_0x5e318a;this['_redoStacks'][_0x33d987(0x2e6)](_0x2dccf1,_0x13219f),this[_0x33d987(0xbe)]();}['_transformStack'](_0x80477a,_0x484641){const _0x10b8ca=_0x5e318a,_0xabef4d=[];let _0x90e96f=_0x484641,_0x53666b=_0x484641;for(let _0x4750ce=_0x80477a[_0x10b8ca(0x181)]-0x1;_0x4750ce>=0x0;_0x4750ce--){const {unitID:_0x468c5a,undoMutations:_0x46f413,redoMutations:_0x2d8a1c}=_0x80477a[_0x4750ce],_0x1a6414=this[_0x10b8ca(0xca)][_0x10b8ca(0x319)](_0x90e96f,_0x46f413),_0x46a34c=this[_0x10b8ca(0xca)][_0x10b8ca(0x319)](_0x53666b,_0x2d8a1c);if(_['isTransformMutationsWithChangesetFailure'](_0x1a6414)||_['isTransformMutationsWithChangesetFailure'](_0x46a34c)){this[_0x10b8ca(0x141)][_0x10b8ca(0x45d)](_0x10b8ca(0x36e),_0x10b8ca(0x471),_0x1a6414,_0x46a34c);break;}_0x90e96f=_0x1a6414[_0x10b8ca(0x3ac)],_0x53666b=_0x46a34c[_0x10b8ca(0x3ac)],_0xabef4d[_0x10b8ca(0x276)]({'unitID':_0x468c5a,'undoMutations':_0x1a6414[_0x10b8ca(0xfe)],'redoMutations':_0x46a34c['m2Prime']});}return _0xabef4d[_0x10b8ca(0x13c)]();}};$e=Ui([re(0x0,o['IUniverInstanceService']),re(0x1,o[_0x5e318a(0x247)]),re(0x2,o['IContextService']),re(0x3,_[_0x5e318a(0xa0)]),re(0x4,o['ILogService'])],$e);class wt extends o[_0x5e318a(0xd1)]{constructor(){const _0x1abf0e=_0x5e318a;super(),u(this,_0x1abf0e(0x3c3)),this['urlChange$']=v[_0x1abf0e(0x375)](window,'popstate')[_0x1abf0e(0x133)](v[_0x1abf0e(0x36b)](this[_0x1abf0e(0xc8)]),v[_0x1abf0e(0x474)](0x1),v['mapTo'](void 0x0));}[_0x5e318a(0x2ab)](_0x4adf4f,_0x20e3eb,_0x585680=!0x1){const _0xf369e5=_0x5e318a,_0x248a15=new URL(window[_0xf369e5(0x143)]['href']);_0x248a15[_0xf369e5(0x217)][_0xf369e5(0x2e6)](_0x4adf4f,_0x20e3eb),_0x585680?window[_0xf369e5(0x2c5)]['replaceState']('','',_0x248a15[_0xf369e5(0x2f7)]()):window[_0xf369e5(0x2c5)][_0xf369e5(0x3b3)]('','',_0x248a15[_0xf369e5(0x2f7)]());}[_0x5e318a(0x380)](_0x158604,_0xef3db9=!0x1){const _0x2d8bdb=_0x5e318a,_0x250925=new URL(window[_0x2d8bdb(0x143)][_0x2d8bdb(0xbd)]);_0x250925[_0x2d8bdb(0x217)]['delete'](_0x158604),_0xef3db9?window[_0x2d8bdb(0x2c5)][_0x2d8bdb(0xab)]('','',_0x250925['toString']()):window[_0x2d8bdb(0x2c5)][_0x2d8bdb(0x3b3)]('','',_0x250925['toString']());}['getParam'](_0x1c9d05){const _0x3b2dcb=_0x5e318a;var _0x28888f;return(_0x28888f=new URL(window['location']['href'])[_0x3b2dcb(0x217)][_0x3b2dcb(0x236)](_0x1c9d05))!=null?_0x28888f:void 0x0;}}const Pe='collab-text-anchor-',wi=_0x5e318a(0xb0),Mi='collab-rect-range-',oe=0x6,yi=1.5,Ue=0x4,Ni=1.5,Li='rgba(255,\x20255,\x20255,\x200.01)';class ot{constructor(_0x56d392,_0x3cecf0,_0x58358e,_0xb4fe7f){const _0x53ea36=_0x5e318a;u(this,_0x53ea36(0x251),[]),u(this,_0x53ea36(0x9c),null),u(this,_0x53ea36(0x216),null),u(this,_0x53ea36(0x1d0),null),u(this,_0x53ea36(0x13b),null),u(this,_0x53ea36(0x39c),null),(this[_0x53ea36(0x20f)]=_0x56d392,this[_0x53ea36(0x428)]=_0x3cecf0,this[_0x53ea36(0x343)]=_0x58358e,this['_document']=_0xb4fe7f,this[_0x53ea36(0xea)]());}set['_hover'](_0x231827){const _0x108495=_0x5e318a;_0x231827?(this[_0x108495(0x1d0)]&&this[_0x108495(0x1d0)][_0x108495(0x123)](),this[_0x108495(0x216)]&&this['_textBubble'][_0x108495(0x2eb)]()):(this[_0x108495(0x1d0)]&&this[_0x108495(0x1d0)][_0x108495(0x2eb)](),this[_0x108495(0x216)]&&this[_0x108495(0x216)][_0x108495(0x123)]());}[_0x5e318a(0x17d)](){const _0x1192e4=_0x5e318a;for(const _0x3091e6 of this[_0x1192e4(0x251)])_0x3091e6[_0x1192e4(0x17d)]();this['_textBubble']&&this[_0x1192e4(0x216)][_0x1192e4(0x17d)](),this[_0x1192e4(0x1d0)]&&this[_0x1192e4(0x1d0)]['dispose'](),this[_0x1192e4(0x9c)]&&this[_0x1192e4(0x9c)][_0x1192e4(0x17d)](),this['_eventUnsubscribe']&&this[_0x1192e4(0x39c)]();}['_render'](){const _0x2e6f3e=_0x5e318a;var _0x257b1b;const {_docSkeleton:_0x3f204b,_document:_0x5abeff}=this,{color:_0x3fc901,name:_0x419f22,ranges:_0xdceff6}=this[_0x2e6f3e(0x20f)],_0x1dfec4=_0x5abeff['getOffsetConfig'](),{docsLeft:_0x52c08a,docsTop:_0x489297}=_0x1dfec4,_0xe96550=new b['NodePositionConvertToCursor'](_0x1dfec4,_0x3f204b);for(const {startOffset:_0xfadb5a,endOffset:_0x2832ee,collapsed:_0x53f322,isActive:_0x10d57e}of _0xdceff6){const _0x1a4383=_0x3f204b['findNodePositionByCharIndex'](_0xfadb5a),_0x3b4e56=_0x3f204b[_0x2e6f3e(0x333)](_0x2832ee);if(_0x10d57e){const {contentBoxPointGroup:_0x5df0d7}=_0xe96550['getRangePointData'](_0x3b4e56,_0x3b4e56);if(_0x5df0d7[_0x2e6f3e(0x181)]===0x0)continue;this[_0x2e6f3e(0xcc)](_0x3fc901,_0x5df0d7,_0x52c08a,_0x489297,_0x419f22),this[_0x2e6f3e(0x39c)]=this[_0x2e6f3e(0x155)]();}if(!_0x53f322&&_0x1a4383&&_0x3b4e56){if(b[_0x2e6f3e(0xb5)](_0x1a4383,_0x3b4e56)){const _0x3c0618=new b[(_0x2e6f3e(0x1e3))](_0x1dfec4,_0x3f204b),{pointGroup:_0x3d8f90}=(_0x257b1b=_0x3c0618[_0x2e6f3e(0x1c3)](_0x1a4383,_0x3b4e56))!=null?_0x257b1b:{};if(_0x3d8f90==null||_0x3d8f90[_0x2e6f3e(0x181)]===0x0)continue;this[_0x2e6f3e(0x261)](_0x3fc901,_0x3d8f90,_0x52c08a,_0x489297);}else{const {contentBoxPointGroup:_0x362239}=_0xe96550[_0x2e6f3e(0x1c3)](_0x1a4383,_0x3b4e56);if(_0x362239[_0x2e6f3e(0x181)]===0x0)continue;this[_0x2e6f3e(0x2ff)](_0x3fc901,_0x362239,_0x52c08a,_0x489297);}}}}[_0x5e318a(0xcc)](_0x2a95fa,_0x54660f,_0x575b0d,_0x2a6b3b,_0x25cbdf){const _0x389086=_0x5e318a,_0x31bce2=this['_getAnchorBounding'](_0x54660f),{left:_0x35ae8d,top:_0x19061d,height:_0x4708b4}=_0x31bce2,_0x18d1a7=this[_0x389086(0x96)](),_0x1e87d2=Ni/_0x18d1a7,_0x33380d=new b[(_0x389086(0x255))](Pe+o['Tools']['generateRandomId'](oe),{'left':_0x35ae8d+_0x575b0d-_0x1e87d2,'top':_0x19061d+_0x2a6b3b,'height':_0x4708b4,'width':yi,'fill':_0x2a95fa||b['getColor'](o[_0x389086(0x1ae)][_0x389086(0x2e7)],0x0),'strokeWidth':_0x1e87d2,'stroke':Li,'evented':!0x0});this['_anchor']=_0x33380d,this['_scene']['addObject'](_0x33380d,b[_0x389086(0x394)]);const _0x27025a=new b[(_0x389086(0x255))](Pe+o[_0x389086(0x3fb)]['generateRandomId'](oe),{'left':_0x35ae8d+_0x575b0d-_0x1e87d2,'top':_0x19061d+_0x2a6b3b-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x2a95fa||b[_0x389086(0x449)](o['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x2a95fa||b[_0x389086(0x449)](o[_0x389086(0x1ae)][_0x389086(0x2e7)],0x0),'evented':!0x1});this[_0x389086(0x1d0)]=_0x27025a,this[_0x389086(0x428)][_0x389086(0x424)](_0x27025a,b[_0x389086(0x394)]);const _0x5b69f6=new Ce(Pe+o[_0x389086(0x3fb)][_0x389086(0x3ce)](oe),{'left':_0x35ae8d+_0x575b0d-_0x1e87d2,'top':_0x19061d+_0x2a6b3b-le,'text':_0x25cbdf,'color':_0x2a95fa});this['_textBubble']=_0x5b69f6,this[_0x389086(0x428)][_0x389086(0x424)](_0x5b69f6,b[_0x389086(0x394)]),this[_0x389086(0x93)]=!0x1;}[_0x5e318a(0x155)](){const _0x2c3689=_0x5e318a,_0x58eb4a=this[_0x2c3689(0x9c)][_0x2c3689(0x3f4)][_0x2c3689(0x15b)](()=>{this['_hover']=!0x0;}),_0x1a0164=this[_0x2c3689(0x9c)]['onPointerLeave$'][_0x2c3689(0x15b)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x3eeafe=_0x337d;this[_0x3eeafe(0x93)]=!0x1;},0x7d0);});return()=>{const _0x489434=_0x2c3689;_0x58eb4a[_0x489434(0x195)](),_0x1a0164[_0x489434(0x195)]();};}[_0x5e318a(0x2ff)](_0xf98add,_0x202d80,_0x522f43,_0x266de6){const _0x557a99=_0x5e318a,_0x216a3e=new o[(_0x557a99(0x153))](_0xf98add)[_0x557a99(0x15f)](0.2)[_0x557a99(0x2be)](),_0x2a9ba3=new b['RegularPolygon'](wi+o[_0x557a99(0x3fb)][_0x557a99(0x3ce)](oe),{'pointsGroup':_0x202d80,'fill':_0x216a3e||b[_0x557a99(0x449)](o[_0x557a99(0x1ae)]['black'],0.2),'left':_0x522f43,'top':_0x266de6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x557a99(0x251)][_0x557a99(0x276)](_0x2a9ba3),this[_0x557a99(0x428)][_0x557a99(0x424)](_0x2a9ba3,b[_0x557a99(0x394)]);}['_drawRectRange'](_0x172271,_0x118a66,_0x2a1fc7,_0x48288b){const _0x35cf48=_0x5e318a,_0x3e0935=new o[(_0x35cf48(0x153))](_0x172271)['setAlpha'](0.2)['toRgbString'](),_0x6f3d6b=new b[(_0x35cf48(0x2d7))](Mi+o[_0x35cf48(0x3fb)][_0x35cf48(0x3ce)](oe),{'pointsGroup':_0x118a66,'fill':_0x3e0935||b['getColor'](o[_0x35cf48(0x1ae)][_0x35cf48(0x2e7)],0.2),'left':_0x2a1fc7,'top':_0x48288b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x6f3d6b),this[_0x35cf48(0x428)][_0x35cf48(0x424)](_0x6f3d6b,b[_0x35cf48(0x394)]);}['_getAnchorBounding'](_0x1f0dfc){const _0x1e4165=_0x1f0dfc[0x0],_0x51d0fa=_0x1e4165[0x0],_0x1f2cb5=_0x1e4165[0x2],{x:_0x18e9d7,y:_0x5ecd33}=_0x51d0fa,{x:_0x4148b6,y:_0x58d8a1}=_0x1f2cb5;return{'left':_0x18e9d7,'top':_0x5ecd33,'width':_0x4148b6-_0x18e9d7,'height':_0x58d8a1-_0x5ecd33};}[_0x5e318a(0x96)](){const _0x1932ee=_0x5e318a,{scaleX:_0xfa334a,scaleY:_0x47a1e0}=this[_0x1932ee(0x428)][_0x1932ee(0x455)]();return Math[_0x1932ee(0xae)](_0xfa334a,_0x47a1e0);}}var Ai=Object[_0x5e318a(0x33d)],ji=Object[_0x5e318a(0x225)],$i=(_0x773e98,_0x39bab,_0xb9239b,_0x541072)=>{for(var _0x896e02=_0x541072>0x1?void 0x0:_0x541072?ji(_0x39bab,_0xb9239b):_0x39bab,_0x446f1f=_0x773e98['length']-0x1,_0x3c07cf;_0x446f1f>=0x0;_0x446f1f--)(_0x3c07cf=_0x773e98[_0x446f1f])&&(_0x896e02=(_0x541072?_0x3c07cf(_0x39bab,_0xb9239b,_0x896e02):_0x3c07cf(_0x896e02))||_0x896e02);return _0x541072&&_0x896e02&&Ai(_0x39bab,_0xb9239b,_0x896e02),_0x896e02;},_e=(_0x3ba4b9,_0x1ee289)=>(_0x445593,_0xf8d273)=>_0x1ee289(_0x445593,_0xf8d273,_0x3ba4b9);let de=class extends o[_0x5e318a(0xd1)]{constructor(_0x15e109,_0x5a0bb8,_0x498e94,_0x25a607,_0x2e6b98){const _0x240d97=_0x5e318a;super(),u(this,_0x240d97(0x219),[]),u(this,_0x240d97(0x3f3),[]),(this[_0x240d97(0x2ed)]=_0x15e109,this[_0x240d97(0x18b)]=_0x5a0bb8,this[_0x240d97(0x3a3)]=_0x498e94,this[_0x240d97(0x10f)]=_0x25a607,this[_0x240d97(0x3d7)]=_0x2e6b98,this[_0x240d97(0x24b)]());}[_0x5e318a(0x24b)](){const _0x4ad7dc=_0x5e318a,_0x330c75=this[_0x4ad7dc(0x2ed)]['unitId'],_0xe44cbd=this[_0x4ad7dc(0x18b)];this[_0x4ad7dc(0x16e)](v[_0x4ad7dc(0x466)]([this[_0x4ad7dc(0x3a3)][_0x4ad7dc(0x212)](_0x330c75),this[_0x4ad7dc(0x3d7)][_0x4ad7dc(0x43e)]])[_0x4ad7dc(0x133)](E[_0x4ad7dc(0x3b9)](([_0x368988,_0x37dddd])=>({'skeleton':_0xe44cbd['getSkeleton'](),'cursors':[..._0x368988['values']()][_0x4ad7dc(0x27c)](_0x457816=>({..._0x457816,'color':_0x37dddd[_0x457816[_0x4ad7dc(0x469)]]}))})))[_0x4ad7dc(0x315)](_0x3baf82=>{const _0x1bb147=_0x4ad7dc;if(this[_0x1bb147(0x28f)](),_0x3baf82){const {skeleton:_0x8aa436,cursors:_0x20545a}=_0x3baf82;this[_0x1bb147(0x116)](_0x8aa436,_0x20545a);}})),this['_initResize'](),this[_0x4ad7dc(0xfa)]();}[_0x5e318a(0x116)](_0x1ce4f9,_0x2380b1){const _0x4d6602=_0x5e318a,{scene:_0x5a1cb0,mainComponent:_0x14685c}=this[_0x4d6602(0x2ed)],_0x550791=_0x2380b1['map'](_0x2c8e5c=>new ot(_0x2c8e5c,_0x5a1cb0,_0x1ce4f9,_0x14685c));this[_0x4d6602(0x219)]=_0x550791,this['_cursors']=_0x2380b1;}['_refreshCollabCursors'](){const _0x4f1f79=_0x5e318a;this[_0x4f1f79(0x28f)]();const {scene:_0x1910ee,mainComponent:_0x273402}=this[_0x4f1f79(0x2ed)],_0x568b59=this['_docSkeletonManagerService']['getSkeleton'](),_0x43a8af=this[_0x4f1f79(0x3f3)]['map'](_0x18efca=>new ot(_0x18efca,_0x1910ee,_0x568b59,_0x273402));this[_0x4f1f79(0x219)]=_0x43a8af;}[_0x5e318a(0x28f)](){const _0x5bd845=_0x5e318a;this['_cursorShapes'][_0x5bd845(0x183)](_0x41dae0=>_0x41dae0['dispose']()),this['_cursorShapes']=[];}[_0x5e318a(0xfa)](){const _0x2b980b=_0x5e318a,_0x4380ab=[P[_0x2b980b(0x2f3)]['id']];this[_0x2b980b(0x16e)](this[_0x2b980b(0x10f)][_0x2b980b(0x3ff)](_0x3a4458=>{const _0x4d121c=_0x2b980b;_0x4380ab['includes'](_0x3a4458['id'])&&_0x3a4458[_0x4d121c(0x119)]['unitId']===this[_0x4d121c(0x2ed)]['unitId']&&this[_0x4d121c(0x3a4)]();}));}[_0x5e318a(0x42b)](){const _0x501e53=_0x5e318a;this[_0x501e53(0x16e)](o[_0x501e53(0x1f6)](this['_context'][_0x501e53(0x2d4)][_0x501e53(0x178)])[_0x501e53(0x133)](E['filter'](_0x5c00b9=>_0x5c00b9[_0x501e53(0x1c1)]===b[_0x501e53(0x411)]['resize']),E['throttleTime'](0x10))[_0x501e53(0x315)](()=>{const _0x1a5d69=_0x501e53;this[_0x1a5d69(0x3a4)]();}));}};de=$i([o[_0x5e318a(0x222)](o[_0x5e318a(0x301)][_0x5e318a(0x2d0)],de),_e(0x1,o[_0x5e318a(0x23f)](P[_0x5e318a(0x120)])),_e(0x2,o['Inject'](Z)),_e(0x3,o[_0x5e318a(0x247)]),_e(0x4,o[_0x5e318a(0x23f)](o[_0x5e318a(0x320)]))],de);var xi=Object[_0x5e318a(0x33d)],Hi=Object[_0x5e318a(0x225)],ki=(_0x44bd08,_0x422b0e,_0x551822,_0xdfee37)=>{const _0x2772ff=_0x5e318a;for(var _0xb4cdd7=_0xdfee37>0x1?void 0x0:_0xdfee37?Hi(_0x422b0e,_0x551822):_0x422b0e,_0x197a26=_0x44bd08[_0x2772ff(0x181)]-0x1,_0x51fe8d;_0x197a26>=0x0;_0x197a26--)(_0x51fe8d=_0x44bd08[_0x197a26])&&(_0xb4cdd7=(_0xdfee37?_0x51fe8d(_0x422b0e,_0x551822,_0xb4cdd7):_0x51fe8d(_0xb4cdd7))||_0xb4cdd7);return _0xdfee37&&_0xb4cdd7&&xi(_0x422b0e,_0x551822,_0xb4cdd7),_0xb4cdd7;},we=(_0x13899c,_0x37a557)=>(_0xb3926,_0x22f27d)=>_0x37a557(_0xb3926,_0x22f27d,_0x13899c);let Ie=class{constructor(_0x32b68f,_0x5d4933,_0x21bcdf){const _0x40d3f9=_0x5e318a;this[_0x40d3f9(0xc3)]=_0x32b68f,this[_0x40d3f9(0x29a)]=_0x5d4933,this[_0x40d3f9(0x283)]=_0x21bcdf,this[_0x40d3f9(0x3cc)]();}[_0x5e318a(0x3cc)](){const _0x26f5f2=_0x5e318a;this[_0x26f5f2(0x29a)][_0x26f5f2(0x103)]({'priority':0x1,'interceptor':(_0x3797c8,_0x41ef80)=>_0x41ef80(_0x3797c8)[_0x26f5f2(0x133)](v[_0x26f5f2(0x21a)](async _0x372f51=>{const _0x991782=_0x26f5f2,_0x3d193f=_0x372f51;if(_0x3d193f[_0x991782(0x170)]===0x191&&window['confirm'](this[_0x991782(0x283)]['t'](_0x991782(0x201)))){const _0x548821=window['encodeURIComponent'](window[_0x991782(0x143)][_0x991782(0xbd)]);window['location'][_0x991782(0xbd)]=this[_0x991782(0x24d)]()+_0x991782(0xf7)+_0x548821;}return _0x3d193f;}))});}[_0x5e318a(0x24d)](){const _0x49294b=_0x5e318a;var _0x22f13d;return(_0x22f13d=this[_0x49294b(0xc3)][_0x49294b(0x299)](mt))!=null?_0x22f13d:Zt;}};Ie=ki([we(0x0,o[_0x5e318a(0x2aa)]),we(0x1,o[_0x5e318a(0x23f)](U['HTTPService'])),we(0x2,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)]))],Ie);var Bi=Object[_0x5e318a(0x33d)],Vi=Object[_0x5e318a(0x225)],Wi=(_0x3212a1,_0x3438f9,_0x573d3a,_0xde2077)=>{const _0xd91f56=_0x5e318a;for(var _0x1643d6=_0xde2077>0x1?void 0x0:_0xde2077?Vi(_0x3438f9,_0x573d3a):_0x3438f9,_0x17c376=_0x3212a1[_0xd91f56(0x181)]-0x1,_0xacbf9e;_0x17c376>=0x0;_0x17c376--)(_0xacbf9e=_0x3212a1[_0x17c376])&&(_0x1643d6=(_0xde2077?_0xacbf9e(_0x3438f9,_0x573d3a,_0x1643d6):_0xacbf9e(_0x1643d6))||_0x1643d6);return _0xde2077&&_0x1643d6&&Bi(_0x3438f9,_0x573d3a,_0x1643d6),_0x1643d6;},at=(_0x369c5f,_0x2f25ce)=>(_0x26f084,_0x2f3540)=>_0x2f25ce(_0x26f084,_0x2f3540,_0x369c5f);const Mt=_0x5e318a(0xc4),Fi=_0x5e318a(0x37d);exports[_0x5e318a(0xa6)]=class extends o[_0x5e318a(0x3cf)]{constructor(_0x34d0ee,_0x3fe745){const _0x23474c=_0x5e318a;super(),this[_0x23474c(0x421)]=_0x34d0ee,this[_0x23474c(0xc3)]=_0x3fe745,this['_initMergeInterceptor']();}[_0x5e318a(0x18e)](){const _0x28859f=_0x5e318a,_0xb1a96b=this;this[_0x28859f(0x16e)](this[_0x28859f(0x421)][_0x28859f(0x103)]({'priority':0x3e7,'interceptor':U[_0x28859f(0xe4)]({'isMatch'(_0x2fb0f9){const _0xb8249=_0x28859f;var _0x4a8cf0;if(_0x2fb0f9[_0xb8249(0x179)]===_0xb8249(0x39b)&&((_0x4a8cf0=_0x2fb0f9[_0xb8249(0x28a)])!=null&&_0x4a8cf0['body'])){const {objectID:_0x5c3321,objectType:_0x3eecc0}=_0x2fb0f9[_0xb8249(0x28a)][_0xb8249(0x2b4)]||{};if(!_0x5c3321||_0x3eecc0===void 0x0)return!0x1;const _0x48f735=_0xb1a96b['_getAPIPrefixPath']()+'/'+_0x3eecc0+_0xb8249(0x1f0)+_0x5c3321+_0xb8249(0x357);if(_0x2fb0f9['url']===_0x48f735)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3a08df){const _0x31acfe=_0x28859f;var _0x3458b5;return(_0x3458b5=_0x3a08df[_0x31acfe(0x28a)])==null?void 0x0:_0x3458b5[_0x31acfe(0x2b4)];},'mergeParamsToRequest'(_0xfc6027,_0x5800fe){const _0x41bb81=_0x28859f,_0x27679b=_0xb1a96b[_0x41bb81(0x31e)]()+_0x41bb81(0x137),_0x2585f8=_0xfc6027[_0x41bb81(0x2bc)]((_0x440db7,_0x1f2a2a)=>{const _0x25b603=_0x41bb81,{unitID:_0x2ec0e6,objectID:_0x26453c,objectType:_0x19ee27,actions:_0x2e179f}=_0x1f2a2a;return _0x440db7[_0x2ec0e6]||(_0x440db7[_0x2ec0e6]={}),_0x440db7[_0x2ec0e6][_0x26453c]||(_0x440db7[_0x2ec0e6][_0x26453c]={'objectID':_0x26453c,'objectType':_0x19ee27,'actions':[]}),_0x440db7[_0x2ec0e6][_0x26453c][_0x25b603(0x1d2)][_0x25b603(0x276)](..._0x2e179f),_0x440db7;},{}),_0x20a89f=[];for(const _0xf1dfb0 in _0x2585f8)for(const _0x5788fc in _0x2585f8[_0xf1dfb0]){const {actions:_0x11f3e9,objectType:_0x4a6d88}=_0x2585f8[_0xf1dfb0][_0x5788fc],_0x269901=[...new Set(_0x11f3e9)];_0x20a89f[_0x41bb81(0x276)]({'unitID':_0xf1dfb0,'objectID':_0x5788fc,'objectType':_0x4a6d88,'actions':_0x269901});}return new U[(_0x41bb81(0x1eb))](_0x41bb81(0x39b),_0x27679b,{'headers':_0x5800fe[_0x41bb81(0x220)],'withCredentials':_0x5800fe[_0x41bb81(0x3ef)],'responseType':_0x5800fe['responseType'],'body':{'requests':_0x20a89f}});}},{'distributeResult'(_0x3014ce,_0x3e47d3){const _0x3189ff=_0x28859f,{objectActions:_0x576f9a}=_0x3014ce;return _0x3e47d3[_0x3189ff(0x3b9)](_0x3db5c7=>{const _0x272c84=_0x3189ff,{unitID:_0x531ed1,objectID:_0xc2410e,actions:_0x575cb6}=_0x3db5c7,_0x9d1422=_0x576f9a[_0x272c84(0x2e9)](_0x4a9bd8=>_0x4a9bd8[_0x272c84(0x312)]===_0x531ed1&&_0x4a9bd8[_0x272c84(0x3f1)]===_0xc2410e),_0x2f778e=_0x575cb6[_0x272c84(0x3b9)](_0x2722f0=>_0x9d1422==null?void 0x0:_0x9d1422[_0x272c84(0x1d2)]['find'](_0x496842=>_0x496842[_0x272c84(0x1cd)]===_0x2722f0))['filter'](_0x1e1f7e=>!!_0x1e1f7e);return{'config':_0x3db5c7,'result':{'actions':_0x2f778e,'error':_0x3014ce[_0x272c84(0x45d)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4a4cce=_0x5e318a;var _0x2e0437;return(_0x2e0437=this[_0x4a4cce(0xc3)][_0x4a4cce(0x299)](Mt))!=null?_0x2e0437:Fi;}async['create'](_0x3a2a5c){const _0x28cc68=_0x5e318a,_0x4c8d6f=this[_0x28cc68(0x31e)]()+'/'+_0x3a2a5c['objectType']+'/object';return(await this[_0x28cc68(0x421)][_0x28cc68(0x22a)](_0x4c8d6f,{'body':_0x3a2a5c}))[_0x28cc68(0x2b4)]['objectID']||'';}async['list'](_0x4e22e9){const _0x4c1e33=_0x5e318a,_0x12ed51=this[_0x4c1e33(0x31e)]()+_0x4c1e33(0x1a5);return(await this[_0x4c1e33(0x421)]['post'](_0x12ed51,{'body':_0x4e22e9}))['body'][_0x4c1e33(0x25b)];}async['update'](_0x4b893b){const _0x4f5d09=_0x5e318a,_0x23c2d8=this['_getAPIPrefixPath']()+'/'+_0x4b893b[_0x4f5d09(0x22e)]+_0x4f5d09(0x1f0)+_0x4b893b[_0x4f5d09(0x3f1)];await this['_HTTPService']['put'](_0x23c2d8,{'body':_0x4b893b});}async['allowed'](_0x3a51a2){const _0x3dc01a=_0x5e318a,_0x55e8f5=this[_0x3dc01a(0x31e)]()+'/'+_0x3a51a2[_0x3dc01a(0x22e)]+_0x3dc01a(0x1f0)+_0x3a51a2['objectID']+_0x3dc01a(0x357);return(await this[_0x3dc01a(0x421)][_0x3dc01a(0x22a)](_0x55e8f5,{'body':_0x3a51a2}))[_0x3dc01a(0x2b4)]['actions'];}async[_0x5e318a(0x32b)](_0x113b0b){const _0x2485ec=_0x5e318a,_0x13d700=this[_0x2485ec(0x31e)]()+_0x2485ec(0x137);return(await this[_0x2485ec(0x421)][_0x2485ec(0x22a)](_0x13d700,{'body':{'requests':_0x113b0b}}))[_0x2485ec(0x2b4)][_0x2485ec(0xc2)];}async['listRoles'](_0x128fba){const _0x554e9e=_0x5e318a,_0x4a42af=this[_0x554e9e(0x31e)]()+'/'+_0x128fba[_0x554e9e(0x22e)]+_0x554e9e(0x349),_0x30b72e=await this[_0x554e9e(0x421)]['post'](_0x4a42af,{'body':_0x128fba});return{'roles':_0x30b72e[_0x554e9e(0x2b4)][_0x554e9e(0x2b5)],'actions':_0x30b72e[_0x554e9e(0x2b4)][_0x554e9e(0x1d2)]};}async[_0x5e318a(0x352)](_0x416d9f){const _0x15a9eb=_0x5e318a,_0x31a636=this[_0x15a9eb(0x31e)]()+_0x15a9eb(0x1c2);await this[_0x15a9eb(0x421)][_0x15a9eb(0x33f)](_0x31a636,{'params':{'collaboratorID':_0x416d9f[_0x15a9eb(0x393)],'objectID':_0x416d9f[_0x15a9eb(0x3f1)],'unitID':_0x416d9f[_0x15a9eb(0x312)]}});}async[_0x5e318a(0x21b)](_0x5e51eb){const _0x469495=_0x5e318a,_0x54670d=this[_0x469495(0x31e)]()+_0x469495(0x1c2);await this[_0x469495(0x421)]['patch'](_0x54670d,{'body':_0x5e51eb});}async[_0x5e318a(0x287)](_0x7a3055){const _0x37494f=_0x5e318a,_0xa5e626=this['_getAPIPrefixPath']()+_0x37494f(0x1c2);await this[_0x37494f(0x421)][_0x37494f(0x22a)](_0xa5e626,{'body':_0x7a3055});}async[_0x5e318a(0x2a3)](_0x1beb9e){const _0x38e9f3=_0x5e318a,_0x4ae337=this[_0x38e9f3(0x31e)]()+_0x38e9f3(0x1c2);return(await this[_0x38e9f3(0x421)][_0x38e9f3(0x236)](_0x4ae337,{'params':{'objectID':_0x1beb9e['objectID'],'unitID':_0x1beb9e['unitID']}}))[_0x38e9f3(0x2b4)][_0x38e9f3(0x3dc)];}async[_0x5e318a(0x2c9)](_0x165818){const _0xd37d06=_0x5e318a,_0x482805=this[_0xd37d06(0x31e)]()+_0xd37d06(0x1c2);await this[_0xd37d06(0x421)][_0xd37d06(0x292)](_0x482805,{'body':_0x165818});}},exports[_0x5e318a(0xa6)]=Wi([at(0x0,o['Inject'](U[_0x5e318a(0x2a1)])),at(0x1,o['Inject'](o[_0x5e318a(0x2aa)]))],exports[_0x5e318a(0xa6)]);var Gi=Object[_0x5e318a(0x33d)],Yi=Object['getOwnPropertyDescriptor'],Ki=(_0x14d879,_0xebaff7,_0x16d4d4,_0x5bf764)=>{const _0x5944bf=_0x5e318a;for(var _0x440447=_0x5bf764>0x1?void 0x0:_0x5bf764?Yi(_0xebaff7,_0x16d4d4):_0xebaff7,_0x204c77=_0x14d879[_0x5944bf(0x181)]-0x1,_0x5297c8;_0x204c77>=0x0;_0x204c77--)(_0x5297c8=_0x14d879[_0x204c77])&&(_0x440447=(_0x5bf764?_0x5297c8(_0xebaff7,_0x16d4d4,_0x440447):_0x5297c8(_0x440447))||_0x440447);return _0x5bf764&&_0x440447&&Gi(_0xebaff7,_0x16d4d4,_0x440447),_0x440447;},Me=(_0x2941f7,_0x31af42)=>(_0xd9be74,_0x3193dc)=>_0x31af42(_0xd9be74,_0x3193dc,_0x2941f7);const Xi=[_0x5e318a(0x1ab),_0x5e318a(0x231),_0x5e318a(0x325),_0x5e318a(0x227),_0x5e318a(0x27d)],qi=0x5*0x400*0x400,zi=_0x5e318a(0x250),Ji=_0x5e318a(0x173),Zi=_0x5e318a(0x213),Qi=_0x5e318a(0x280);exports[_0x5e318a(0x331)]=class{constructor(_0xfc7e57,_0x35a663,_0x5059f8){const _0x116b64=_0x5e318a;u(this,_0x116b64(0x390),0x0),u(this,_0x116b64(0x3d3),new v['Subject']()),u(this,_0x116b64(0x335),this[_0x116b64(0x3d3)]),u(this,'_imageSourceCache',new Map()),(this[_0x116b64(0x29a)]=_0xfc7e57,this[_0x116b64(0xc3)]=_0x35a663,this[_0x116b64(0x1fd)]=_0x5059f8);}[_0x5e318a(0x43f)](_0x3642d9){const _0x2e91f6=_0x5e318a;this[_0x2e91f6(0x390)]=_0x3642d9,this[_0x2e91f6(0x3d3)][_0x2e91f6(0x318)](_0x3642d9);}[_0x5e318a(0x409)](_0x1b0732,_0xd9f52a){const _0x4564a1=_0x5e318a;if(_0xd9f52a===A[_0x4564a1(0x19e)]['BASE64']){const _0x2c3e2b=new Image();return _0x2c3e2b['src']=_0x1b0732,_0x2c3e2b;}return this['_imageSourceCache']['get'](_0x1b0732);}[_0x5e318a(0x254)](_0x2a517d,_0x480629,_0x10a2b3){const _0x5efc6c=_0x5e318a;_0x480629===A[_0x5efc6c(0x19e)]['BASE64']||_0x10a2b3==null||this[_0x5efc6c(0x2ef)][_0x5efc6c(0x2e6)](_0x2a517d,_0x10a2b3);}async[_0x5e318a(0x2cc)](_0xf57000){const _0xc3a0a8=_0x5e318a;try{const _0x550d19=this['_replaceFileID'](this['_getSignURL'](),''+_0xf57000),_0x193a41=(await this['_httpService']['get'](_0x550d19))[_0xc3a0a8(0x2b4)];return _0x193a41[_0xc3a0a8(0x45d)]&&_0x193a41[_0xc3a0a8(0x45d)][_0xc3a0a8(0x46a)]===gt['OK']?Promise['resolve'](_0x193a41[_0xc3a0a8(0x3b4)]):Promise[_0xc3a0a8(0x453)](_0x193a41[_0xc3a0a8(0x45d)]);}catch(_0x56ca8e){return Promise[_0xc3a0a8(0x453)](_0x56ca8e);}}async[_0x5e318a(0x124)](_0x4755d0){const _0x3b6c75=_0x5e318a;let _0x47451f='';if(!Xi[_0x3b6c75(0x1bb)](_0x4755d0[_0x3b6c75(0x1c1)]))return this['_decreaseWaiting'](),Promise[_0x3b6c75(0x453)](new Error(A['ImageUploadStatusType'][_0x3b6c75(0x355)]));if(_0x4755d0['size']>qi)return this[_0x3b6c75(0x97)](),Promise[_0x3b6c75(0x453)](new Error(A[_0x3b6c75(0x422)][_0x3b6c75(0x12d)]));try{const _0xf0ba0c=new FormData();_0xf0ba0c[_0x3b6c75(0x26d)]('file',_0x4755d0);const _0x282d4e=this['_univerInstanceService']['getFocusedUnit'](),_0x6031e=_0x282d4e==null?void 0x0:_0x282d4e[_0x3b6c75(0x40b)]();if(!_0x6031e)throw new Error('unitId\x20is\x20not\x20found');const _0x5ef636=this[_0x3b6c75(0x3bd)]()+_0x3b6c75(0x44f)+_0x4755d0['size']['toString']()+_0x3b6c75(0x22d)+ft[_0x3b6c75(0x3de)]+_0x3b6c75(0x354)+encodeURIComponent(_0x6031e),_0x1e3537=await(await fetch(_0x5ef636,{'method':_0x3b6c75(0x39b),'body':_0xf0ba0c}))[_0x3b6c75(0x190)]();if(typeof _0x1e3537[_0x3b6c75(0x2cd)]!=_0x3b6c75(0x306))return this['_decreaseWaiting'](),Promise[_0x3b6c75(0x453)](new Error(A[_0x3b6c75(0x422)]['ERROR_IMAGE']));_0x47451f=_0x1e3537[_0x3b6c75(0x2cd)];}catch{return this['_decreaseWaiting'](),Promise[_0x3b6c75(0x453)](new Error(A[_0x3b6c75(0x422)][_0x3b6c75(0x3e1)]));}return new Promise((_0x23f60f,_0x18f0fe)=>{const _0x144337=_0x3b6c75,_0x4aaf80=new FileReader();_0x4aaf80[_0x144337(0x370)](_0x4755d0),_0x4aaf80[_0x144337(0x42f)]=_0x341fde=>{const _0x13774f=_0x144337;var _0x467d41;const _0x5756d8=(_0x467d41=_0x341fde[_0x13774f(0x27e)])==null?void 0x0:_0x467d41[_0x13774f(0x27f)];if(_0x5756d8==null){this[_0x13774f(0x97)](),_0x18f0fe(new Error(A[_0x13774f(0x422)][_0x13774f(0x3e1)]));return;}const _0x5737ea=o[_0x13774f(0x3fb)]['generateRandomId'](0x6);_0x23f60f({'imageId':_0x5737ea,'imageSourceType':A[_0x13774f(0x19e)][_0x13774f(0x135)],'source':_0x47451f,'base64Cache':_0x5756d8,'status':A[_0x13774f(0x422)]['SUCCUSS']}),this[_0x13774f(0x97)]();};});}[_0x5e318a(0x3bd)](){var _0xa41a56;return(_0xa41a56=this['_configService']['getConfig'](zi))!=null?_0xa41a56:Ji;}[_0x5e318a(0x3bc)](){const _0x3b7946=_0x5e318a;var _0x5cd63c;return(_0x5cd63c=this['_configService'][_0x3b7946(0x299)](Zi))!=null?_0x5cd63c:Qi;}[_0x5e318a(0x3ea)](_0x566bab,_0x55737b){const _0x178fa9=_0x5e318a;return _0x566bab['replace'](_0x178fa9(0x17c),_0x55737b);}['_decreaseWaiting'](){const _0x53ab40=_0x5e318a;this[_0x53ab40(0x390)]-=0x1,this[_0x53ab40(0x3d3)][_0x53ab40(0x318)](this[_0x53ab40(0x390)]);}},exports[_0x5e318a(0x331)]=Ki([Me(0x0,o['Inject'](U[_0x5e318a(0x2a1)])),Me(0x1,o['IConfigService']),Me(0x2,o[_0x5e318a(0x23f)](o[_0x5e318a(0x1da)]))],exports[_0x5e318a(0x331)]);var en=Object[_0x5e318a(0x33d)],tn=Object[_0x5e318a(0x225)],sn=(_0x554e85,_0x498ae7,_0xf67974,_0x41e901)=>{const _0x3b88ad=_0x5e318a;for(var _0x487020=_0x41e901>0x1?void 0x0:_0x41e901?tn(_0x498ae7,_0xf67974):_0x498ae7,_0x759e08=_0x554e85[_0x3b88ad(0x181)]-0x1,_0x16e188;_0x759e08>=0x0;_0x759e08--)(_0x16e188=_0x554e85[_0x759e08])&&(_0x487020=(_0x41e901?_0x16e188(_0x498ae7,_0xf67974,_0x487020):_0x16e188(_0x487020))||_0x487020);return _0x41e901&&_0x487020&&en(_0x498ae7,_0xf67974,_0x487020),_0x487020;},ae=(_0x287854,_0x315a9d)=>(_0x1e2bdf,_0x568a3e)=>_0x315a9d(_0x1e2bdf,_0x568a3e,_0x287854);let Se=class extends o[_0x5e318a(0xd1)]{constructor(_0x2fec2b,_0x1f56cc,_0x38d13c,_0x351bb4,_0x5b86b2){const _0x258d3b=_0x5e318a;super(),this[_0x258d3b(0xa4)]=_0x2fec2b,this[_0x258d3b(0x1fd)]=_0x1f56cc,this[_0x258d3b(0x434)]=_0x38d13c,this['_collaborationSessionService']=_0x351bb4,this['_localeService']=_0x5b86b2,this[_0x258d3b(0xaa)](),this['_initCloseConn']();}[_0x5e318a(0x13d)](){const _0x8ec3df=_0x5e318a,_0x331003=async _0x19104c=>{const _0x3e7849=_0x337d;(await this[_0x3e7849(0x368)][_0x3e7849(0x1b1)](_0x19104c))['event$'][_0x3e7849(0x133)](E[_0x3e7849(0x218)](_0x24af69=>_0x24af69[_0x3e7849(0x198)]===_[_0x3e7849(0x1c7)][_0x3e7849(0x26b)]),E[_0x3e7849(0x36b)](this[_0x3e7849(0xc8)]))['subscribe'](_0xb0bb89=>{const _0x554484=_0x3e7849,_0x2c0be2=_0xb0bb89,{reason:_0x275dd5}=_0x2c0be2[_0x554484(0x42c)];this[_0x554484(0xa4)][_0x554484(0x236)](L[_0x554484(0x22b)])[_0x554484(0x2eb)]({'type':Q[_0x554484(0x2f4)][_0x554484(0x3b2)],'content':this[_0x554484(0x2a5)]['t'](_0x554484(0x297))+'('+_0x275dd5+')'}),this[_0x554484(0x434)][_0x554484(0x2e4)](new p['WorkbookEditablePermission'](_0x19104c)['id'],!0x1),this[_0x554484(0x368)][_0x554484(0x290)](_0x19104c);});};v[_0x8ec3df(0x269)](this[_0x8ec3df(0x1fd)]['getTypeOfUnitAdded$'](o['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService'][_0x8ec3df(0x332)](o['UniverInstanceType']['UNIVER_DOC']))['pipe'](E[_0x8ec3df(0x3b9)](_0x3eecb8=>_0x3eecb8[_0x8ec3df(0x40b)]()),E[_0x8ec3df(0x218)](_0x194e19=>!o[_0x8ec3df(0x1aa)](_0x194e19)),E[_0x8ec3df(0x36b)](this[_0x8ec3df(0xc8)]))['subscribe'](_0x5cab0c=>{_0x331003(_0x5cab0c);});}[_0x5e318a(0xaa)](){const _0x484d0b=_0x5e318a,_0x3ff8ae=async _0x2ca484=>{const _0x18c664=_0x337d;(await this[_0x18c664(0x368)][_0x18c664(0x1b1)](_0x2ca484))[_0x18c664(0x109)]['pipe'](E[_0x18c664(0x218)](_0x3d2a59=>_0x3d2a59[_0x18c664(0x198)]===_['CollaborationEvent'][_0x18c664(0x95)]),E['takeUntil'](this[_0x18c664(0xc8)]))['subscribe'](_0x566e99=>{const _0x3d5dec=_0x18c664,_0x2479bf=_0x566e99,{objectId:_0x5a69c6}=_0x2479bf[_0x3d5dec(0x42c)],_0x1c35f6=this[_0x3d5dec(0xa4)][_0x3d5dec(0x236)](J['SheetPermissionInitController']);_0x5a69c6===_0x2ca484?_0x1c35f6[_0x3d5dec(0x9e)](_0x2ca484):_0x1c35f6[_0x3d5dec(0x2d6)](_0x2ca484,_0x5a69c6);});};v['merge'](this[_0x484d0b(0x1fd)][_0x484d0b(0x332)](o[_0x484d0b(0xbb)]['UNIVER_SHEET']),this[_0x484d0b(0x1fd)][_0x484d0b(0x332)](o[_0x484d0b(0xbb)][_0x484d0b(0x41b)]))[_0x484d0b(0x133)](E[_0x484d0b(0x3b9)](_0x3f1e4e=>_0x3f1e4e[_0x484d0b(0x40b)]()),E['filter'](_0x557199=>!o['isInternalEditorID'](_0x557199)),E[_0x484d0b(0x36b)](this[_0x484d0b(0xc8)]))[_0x484d0b(0x315)](_0x6dfbf=>{_0x3ff8ae(_0x6dfbf);});}};Se=sn([o[_0x5e318a(0x222)](o['LifecycleStages'][_0x5e318a(0x1db)],Se),ae(0x0,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)])),ae(0x1,o[_0x5e318a(0x1da)]),ae(0x2,o['IPermissionService']),ae(0x3,o[_0x5e318a(0x23f)](exports[_0x5e318a(0x2f9)])),ae(0x4,o[_0x5e318a(0x23f)](o[_0x5e318a(0x3b1)]))],Se);var yt=Object[_0x5e318a(0x33d)],nn=Object[_0x5e318a(0x225)],rn=(_0x5df55e,_0x5eb302,_0x423d7e)=>_0x5eb302 in _0x5df55e?yt(_0x5df55e,_0x5eb302,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x423d7e}):_0x5df55e[_0x5eb302]=_0x423d7e,on=(_0x34b8bd,_0x4674c8,_0x48262c,_0x1f6b67)=>{const _0x2c8db5=_0x5e318a;for(var _0x182209=_0x1f6b67>0x1?void 0x0:_0x1f6b67?nn(_0x4674c8,_0x48262c):_0x4674c8,_0x2fc495=_0x34b8bd[_0x2c8db5(0x181)]-0x1,_0x3ffedb;_0x2fc495>=0x0;_0x2fc495--)(_0x3ffedb=_0x34b8bd[_0x2fc495])&&(_0x182209=(_0x1f6b67?_0x3ffedb(_0x4674c8,_0x48262c,_0x182209):_0x3ffedb(_0x182209))||_0x182209);return _0x1f6b67&&_0x182209&&yt(_0x4674c8,_0x48262c,_0x182209),_0x182209;},ye=(_0x442d71,_0x47fa8c)=>(_0x1b0dd8,_0x28c84c)=>_0x47fa8c(_0x1b0dd8,_0x28c84c,_0x442d71),an=(_0x3fb64a,_0x186cc4,_0x10275a)=>rn(_0x3fb64a,_0x186cc4+'',_0x10275a);const cn=_0x5e318a(0x24a);exports['UniverCollaborationClientPlugin']=class extends o['Plugin']{constructor(_0x5e6d34,_0x2e4928,_0x2f15ce,_0x55beec){const _0x195aa0=_0x5e318a;super(),this[_0x195aa0(0xf8)]=_0x5e6d34,this['_logService']=_0x2e4928,this[_0x195aa0(0x258)]=_0x2f15ce,this[_0x195aa0(0xa4)]=_0x55beec;}['onStarting'](){const _0x5177e4=_0x5e318a;this[_0x5177e4(0x2b1)]();}[_0x5e318a(0x194)](){const _0x5b1d30=_0x5e318a;this[_0x5b1d30(0x2bb)]();}[_0x5e318a(0x2b1)](){const _0xd0da26=_0x5e318a;var _0x2128ad,_0x1cc046,_0x5300f5,_0x7c19f6;this[_0xd0da26(0xa4)][_0xd0da26(0x21e)](o[_0xd0da26(0x36d)])&&this['_logService']['error'](_0xd0da26(0x296),_0xd0da26(0xeb));let _0x526a19=[[o[_0xd0da26(0x36d)],{'useClass':$e}],[exports[_0xd0da26(0x2f9)]],[Fe],[U[_0xd0da26(0x2a1)]],[Ye,{'useClass':wt}],[Y],[exports[_0xd0da26(0x199)]],[U[_0xd0da26(0xc9)]],[ge],[me],[ve],[We],[Ie],[Ve],[Se],[Be,{'useClass':(_0x1cc046=(_0x2128ad=this['_config'])==null?void 0x0:_0x2128ad[_0xd0da26(0x221)])!=null?_0x1cc046:exports[_0xd0da26(0x46c)]}],[U[_0xd0da26(0x152)],{'useClass':U[_0xd0da26(0xc6)]}],[_[_0xd0da26(0x43a)],{'useClass':exports[_0xd0da26(0x126)]}],[o[_0xd0da26(0x472)],{'useClass':exports[_0xd0da26(0xa6)]}],[A[_0xd0da26(0x20b)],{'useClass':exports[_0xd0da26(0x331)]}],[exports[_0xd0da26(0x185)]],[exports[_0xd0da26(0x11c)]],[exports[_0xd0da26(0x21f)]],[ue],[Z]];(_0x5300f5=this['_config'])!=null&&_0x5300f5['enableSingleActiveInstanceLock']&&_0x526a19[_0xd0da26(0x276)]([pe,{'useClass':us}]),_0x526a19=o[_0xd0da26(0x129)](_0x526a19,(_0x7c19f6=this[_0xd0da26(0xf8)])==null?void 0x0:_0x7c19f6['override']),_0x526a19[_0xd0da26(0x183)](_0x4faccf=>this[_0xd0da26(0xa4)]['add'](_0x4faccf)),this['_initModules']();}[_0x5e318a(0x2bb)](){const _0x19c850=_0x5e318a;this['disposeWithMe'](this[_0x19c850(0x258)][_0x19c850(0x1d1)](o[_0x19c850(0xbb)]['UNIVER_DOC'],[de])),this[_0x19c850(0x16e)](this[_0x19c850(0x258)][_0x19c850(0x1d1)](o[_0x19c850(0xbb)][_0x19c850(0x1dd)],[je]));}['_initModules'](){const _0x54b6ea=_0x5e318a;var _0x1de8ff,_0x4f6ee1;this[_0x54b6ea(0xa4)]['get'](U[_0x54b6ea(0x2a1)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x1de8ff=this[_0x54b6ea(0xf8)])!=null&&_0x1de8ff[_0x54b6ea(0x304)]||this[_0x54b6ea(0xa4)]['get'](exports[_0x54b6ea(0x199)])[_0x54b6ea(0x41c)](),(_0x4f6ee1=this[_0x54b6ea(0xf8)])!=null&&_0x4f6ee1[_0x54b6ea(0x127)]&&this['_injector']['get'](Ie);}},an(exports[_0x5e318a(0x418)],_0x5e318a(0x27b),cn),exports[_0x5e318a(0x418)]=on([o[_0x5e318a(0x2a9)](_[_0x5e318a(0x167)]),ye(0x1,o['ILogService']),ye(0x2,b[_0x5e318a(0x404)]),ye(0x3,o[_0x5e318a(0x23f)](o[_0x5e318a(0x35b)]))],exports[_0x5e318a(0x418)]),exports['AUTHZ_URL_KEY']=Mt,exports[_0x5e318a(0xad)]=vt,exports[_0x5e318a(0x2c3)]=_t,exports[_0x5e318a(0x25c)]=D,exports[_0x5e318a(0xf1)]=Ut,exports[_0x5e318a(0x2fe)]=Ve,exports[_0x5e318a(0x2ea)]=ut,exports[_0x5e318a(0x1a6)]=He,exports[_0x5e318a(0x271)]=Be,exports[_0x5e318a(0x31d)]=Ye,exports[_0x5e318a(0x17e)]=St,exports[_0x5e318a(0x11e)]=mt,exports[_0x5e318a(0x1de)]=ht,exports[_0x5e318a(0x244)]=ct,exports[_0x5e318a(0xd8)]=lt,exports[_0x5e318a(0xa3)]=G,exports[_0x5e318a(0x262)]=Rt,exports[_0x5e318a(0xaf)]=wt,exports[_0x5e318a(0xd4)]=It,exports['serializeCombRequest']=pt;
1
+ 'use strict';const _0x44ec13=_0x2929;(function(_0x2c8532,_0x34b510){const _0x570d64=_0x2929,_0x5023f0=_0x2c8532();while(!![]){try{const _0x1ae7b4=parseInt(_0x570d64(0x222))/0x1*(-parseInt(_0x570d64(0x232))/0x2)+parseInt(_0x570d64(0x1fc))/0x3*(parseInt(_0x570d64(0x1c8))/0x4)+-parseInt(_0x570d64(0x50c))/0x5+-parseInt(_0x570d64(0x50e))/0x6+-parseInt(_0x570d64(0x42b))/0x7+parseInt(_0x570d64(0x47f))/0x8*(parseInt(_0x570d64(0x310))/0x9)+parseInt(_0x570d64(0x427))/0xa;if(_0x1ae7b4===_0x34b510)break;else _0x5023f0['push'](_0x5023f0['shift']());}catch(_0x30e063){_0x5023f0['push'](_0x5023f0['shift']());}}}(_0xff45,0xe68d7));var kt=Object[_0x44ec13(0x2ec)],Bt=(_0x2f2a37,_0x399e7a,_0xa21bb0)=>_0x399e7a in _0x2f2a37?kt(_0x2f2a37,_0x399e7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa21bb0}):_0x2f2a37[_0x399e7a]=_0xa21bb0,d=(_0x8ad88,_0x3a052f,_0x154fef)=>Bt(_0x8ad88,typeof _0x3a052f!=_0x44ec13(0x199)?_0x3a052f+'':_0x3a052f,_0x154fef);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x44ec13(0x38f)});const a=require(_0x44ec13(0x438)),v=require('rxjs'),E=require(_0x44ec13(0x1e8)),K=require(_0x44ec13(0x150)),M=require(_0x44ec13(0x452)),w=require(_0x44ec13(0x436)),_=require(_0x44ec13(0x419)),Vt=require(_0x44ec13(0x381)),B=require(_0x44ec13(0x2e3)),C=require(_0x44ec13(0x43a)),U=require(_0x44ec13(0x414)),R=require(_0x44ec13(0x142)),L=require(_0x44ec13(0x469)),Je=require(_0x44ec13(0x4ca)),ke=require(_0x44ec13(0x4d2)),ee=require(_0x44ec13(0x30c)),P=require(_0x44ec13(0x346)),Ft=require('clsx'),Wt=require(_0x44ec13(0x3ef)),lt='SNAPSHOT_SERVER_URL_KEY',Gt='/universer-api/snapshot',ht=_0x44ec13(0x2dc),_t=_0x44ec13(0x293),Yt=0x7d0,ut='COLLAB_WEB_SOCKET_URL',Kt=_0x44ec13(0x2fb),dt=_0x44ec13(0x2e5),Xt=0x7530,Be=_0x44ec13(0x46d),St=0x4e20,vt='RETRY_CONNECTING_INTERVAL',qt=0x4e20,mt=_0x44ec13(0x29a),Jt=0x3,ft=_0x44ec13(0x1ed),zt=0x3e8,gt=_0x44ec13(0x390),Zt=_0x44ec13(0x27a),It=_0x44ec13(0x361),Qt=_0x44ec13(0x1f7);var pt=(_0x199755=>(_0x199755[_0x199755['UNDEFINED']=0x0]=_0x44ec13(0x1f9),_0x199755[_0x199755['OK']=0x1]='OK',_0x199755[_0x199755['INTERNAL_ERROR']=0x2]=_0x44ec13(0x4c9),_0x199755[_0x199755[_0x44ec13(0x525)]=0x3]='PERMISSION_DENIED',_0x199755[_0x199755[_0x44ec13(0x198)]=0x4]=_0x44ec13(0x198),_0x199755[_0x199755['UNAUTHENTICATED']=0x5]=_0x44ec13(0x39d),_0x199755[_0x199755[_0x44ec13(0x1b3)]=0x6]=_0x44ec13(0x1b3),_0x199755[_0x199755[_0x44ec13(0x4a5)]=0x7]='INVALID_ARGUMENT',_0x199755[_0x199755['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x199755[_0x199755['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x199755[_0x199755[_0x44ec13(0x3f5)]=0x1389]=_0x44ec13(0x3f5),_0x199755[_0x199755[_0x44ec13(0x2e8)]=0x1771]=_0x44ec13(0x2e8),_0x199755[_0x199755[_0x44ec13(0x241)]=0x1772]=_0x44ec13(0x241),_0x199755[_0x199755['APPLY_REJECT']=0x1b59]=_0x44ec13(0x34f),_0x199755[_0x199755[_0x44ec13(0x2dd)]=0x1b5a]=_0x44ec13(0x2dd),_0x199755[_0x199755['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x44ec13(0x143),_0x199755[_0x199755[_0x44ec13(0x431)]=0x1b5c]=_0x44ec13(0x431),_0x199755[_0x199755['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x44ec13(0x3ab),_0x199755[_0x199755[_0x44ec13(0x3eb)]=0x2329]=_0x44ec13(0x3eb),_0x199755[_0x199755['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x44ec13(0x2a7),_0x199755[_0x199755[_0x44ec13(0x29f)]=0x232b]=_0x44ec13(0x29f),_0x199755[_0x199755[_0x44ec13(0x2a5)]=0x232c]=_0x44ec13(0x2a5),_0x199755[_0x199755[_0x44ec13(0x255)]=0x232d]=_0x44ec13(0x255),_0x199755[_0x199755[_0x44ec13(0x40d)]=0x2711]=_0x44ec13(0x40d),_0x199755[_0x199755[_0x44ec13(0x2ab)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x199755[_0x199755['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x44ec13(0x18f),_0x199755[_0x199755[_0x44ec13(0x3ac)]=0x2714]=_0x44ec13(0x3ac),_0x199755[_0x199755[_0x44ec13(0x356)]=-0x1]='UNRECOGNIZED',_0x199755))(pt||{}),A=(_0x18dff2=>(_0x18dff2[_0x18dff2['UNIVER_UNKNOWN']=0x0]=_0x44ec13(0x31f),_0x18dff2[_0x18dff2['UNIVER_DOC']=0x1]=_0x44ec13(0x344),_0x18dff2[_0x18dff2['UNIVER_SHEET']=0x2]=_0x44ec13(0x420),_0x18dff2[_0x18dff2['UNIVER_SLIDE']=0x3]=_0x44ec13(0x2e4),_0x18dff2[_0x18dff2[_0x44ec13(0x154)]=0x4]='UNIVER_PROJECT',_0x18dff2[_0x18dff2[_0x44ec13(0x356)]=-0x1]=_0x44ec13(0x356),_0x18dff2))(A||{}),b=(_0x4d01a5=>(_0x4d01a5[_0x4d01a5[_0x44ec13(0x156)]=0x0]=_0x44ec13(0x156),_0x4d01a5[_0x4d01a5[_0x44ec13(0x542)]=0x1]='HELLO',_0x4d01a5[_0x4d01a5['JOIN']=0x2]='JOIN',_0x4d01a5[_0x4d01a5[_0x44ec13(0x411)]=0x3]='LEAVE',_0x4d01a5[_0x4d01a5[_0x44ec13(0x45e)]=0x4]=_0x44ec13(0x45e),_0x4d01a5[_0x4d01a5[_0x44ec13(0x261)]=0x5]=_0x44ec13(0x261),_0x4d01a5[_0x4d01a5[_0x44ec13(0x1ba)]=0x6]=_0x44ec13(0x1ba),_0x4d01a5[_0x4d01a5[_0x44ec13(0x356)]=-0x1]=_0x44ec13(0x356),_0x4d01a5))(b||{}),Ve=(_0x4f035a=>(_0x4f035a[_0x4f035a[_0x44ec13(0x364)]=0x0]='UNKNOWN_CODE',_0x4f035a[_0x4f035a['OK']=0x1]='OK',_0x4f035a[_0x4f035a[_0x44ec13(0x4b2)]=0x2]=_0x44ec13(0x4b2),_0x4f035a[_0x4f035a[_0x44ec13(0x356)]=-0x1]='UNRECOGNIZED',_0x4f035a))(Ve||{}),Ct=(_0x1e8ec2=>(_0x1e8ec2[_0x1e8ec2[_0x44ec13(0x4ba)]=0x0]=_0x44ec13(0x4ba),_0x1e8ec2[_0x1e8ec2['HttpImport']=0x1]=_0x44ec13(0x268),_0x1e8ec2[_0x1e8ec2['HttpExport']=0x2]='HttpExport',_0x1e8ec2[_0x1e8ec2[_0x44ec13(0x263)]=0x3]=_0x44ec13(0x263),_0x1e8ec2[_0x1e8ec2[_0x44ec13(0x511)]=0x4]=_0x44ec13(0x511),_0x1e8ec2[_0x1e8ec2[_0x44ec13(0x356)]=-0x1]='UNRECOGNIZED',_0x1e8ec2))(Ct||{});function Et(_0x1df1f7){const _0x31e5a1=_0x44ec13;var _0x1fa1fd,_0x3ebe92,_0x25d990,_0x42830c;const _0x270083=_0x1df1f7[_0x31e5a1(0x387)],_0xb8217=JSON[_0x31e5a1(0x18a)](_0x270083);switch(_0xb8217['cmd']){case b['HEARTBEAT']:case b[_0x31e5a1(0x542)]:{const _0x197f61=_0xb8217['infoRsp'];return{..._0xb8217,'data':_0x197f61,'cmd':_0xb8217[_0x31e5a1(0x279)]};}case b[_0x31e5a1(0x13e)]:{const _0x5da68d=_0xb8217[_0x31e5a1(0x367)];return{..._0xb8217,'data':_0x5da68d,'cmd':_0xb8217['cmd']};}case b[_0x31e5a1(0x1ba)]:{const _0x4ad0fc=_0xb8217[_0x31e5a1(0x26b)];switch(_0x4ad0fc[_0x31e5a1(0x348)]){case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x4dc)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':(_0x1fa1fd=_0x4ad0fc[_0x31e5a1(0x1d9)])==null?void 0x0:_0x1fa1fd['cs']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x1a5)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':(_0x3ebe92=_0x4ad0fc[_0x31e5a1(0x4e5)])==null?void 0x0:_0x3ebe92['cs']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x281)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':(_0x25d990=_0x4ad0fc['newCsEvent'])==null?void 0x0:_0x25d990['cs']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _['CollaborationEvent'][_0x31e5a1(0x195)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':(_0x42830c=_0x4ad0fc['csRejEvent'])==null?void 0x0:_0x42830c['cs']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _['CollaborationEvent'][_0x31e5a1(0x253)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x14d)]},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x489)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc['joinEvent']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x523)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc['leaveEvent']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)]['LIVESHARE_NEW_HOST']:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x421)]},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _['CollaborationEvent'][_0x31e5a1(0x409)]:case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x2d6)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x4da)]},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x3f4)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x421)]},'cmd':_0xb8217['cmd']};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x26a)]:return{..._0xb8217,'data':_0x4ad0fc,'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x187)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x329)]},'cmd':_0xb8217['cmd']};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x351)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x36a)]},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x172)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x3b0)]},'cmd':_0xb8217[_0x31e5a1(0x279)]};default:return _0xb8217;}}default:return _0xb8217;}}function bt(_0x9a3330){const _0x53301b=_0x44ec13;switch(_0x9a3330[_0x53301b(0x279)]){case b[_0x53301b(0x261)]:case b['HELLO']:return JSON[_0x53301b(0x2b5)]({'cmd':_0x9a3330['cmd'],'routeKey':_0x9a3330[_0x53301b(0x2fd)]});case b[_0x53301b(0x45e)]:{let _0x37fb7;switch(_0x9a3330[_0x53301b(0x387)][_0x53301b(0x348)]){case _[_0x53301b(0x4f2)][_0x53301b(0x253)]:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)][_0x53301b(0x253)],'updateCursorEvent':_0x9a3330['data'][_0x53301b(0x387)]};break;}case _['CollaborationEvent'][_0x53301b(0x523)]:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)][_0x53301b(0x523)],'leaveEvent':_0x9a3330[_0x53301b(0x387)]['data']};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)]['USERS_ENTER'],'joinEvent':_0x9a3330[_0x53301b(0x387)][_0x53301b(0x387)]};break;}case _[_0x53301b(0x4f2)]['LIVESHARE_NEW_HOST']:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)][_0x53301b(0x313)],'liveShareNewHost':_0x9a3330[_0x53301b(0x387)][_0x53301b(0x387)]};break;}case _[_0x53301b(0x4f2)][_0x53301b(0x2d6)]:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)][_0x53301b(0x2d6)],'liveShareOperation':_0x9a3330[_0x53301b(0x387)][_0x53301b(0x387)]};break;}case _['CollaborationEvent'][_0x53301b(0x3f4)]:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x9a3330['data']['data']};break;}case _[_0x53301b(0x4f2)][_0x53301b(0x3f8)]:{_0x37fb7={'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x9a3330['data'][_0x53301b(0x387)]};break;}case _[_0x53301b(0x4f2)][_0x53301b(0x409)]:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x37fb7={'eventID':_0x9a3330[_0x53301b(0x387)][_0x53301b(0x348)]};}return JSON['stringify']({'cmd':_0x9a3330[_0x53301b(0x279)],'routeKey':_0x9a3330[_0x53301b(0x2fd)],'collaMsg':_0x37fb7});}case b['JOIN']:return JSON[_0x53301b(0x2b5)]({'cmd':_0x9a3330[_0x53301b(0x279)],'routeKey':_0x9a3330['routeKey'],'joinReq':_0x9a3330['data']});case b[_0x53301b(0x411)]:return JSON[_0x53301b(0x2b5)]({'cmd':_0x9a3330[_0x53301b(0x279)],'routeKey':_0x9a3330[_0x53301b(0x2fd)],'leaveReq':_0x9a3330[_0x53301b(0x387)]});default:throw new Error(_0x53301b(0x352));}}var es=Object[_0x44ec13(0x2ec)],ts=Object[_0x44ec13(0x2e1)],ss=(_0x5e714e,_0x471b25,_0x3572fb,_0x127edd)=>{const _0x179e05=_0x44ec13;for(var _0x668eda=_0x127edd>0x1?void 0x0:_0x127edd?ts(_0x471b25,_0x3572fb):_0x471b25,_0x26c197=_0x5e714e[_0x179e05(0x3b4)]-0x1,_0x23f04f;_0x26c197>=0x0;_0x26c197--)(_0x23f04f=_0x5e714e[_0x26c197])&&(_0x668eda=(_0x127edd?_0x23f04f(_0x471b25,_0x3572fb,_0x668eda):_0x23f04f(_0x668eda))||_0x668eda);return _0x127edd&&_0x668eda&&es(_0x471b25,_0x3572fb,_0x668eda),_0x668eda;},re=(_0x4b9a3d,_0x17715c)=>(_0x51aa63,_0x4cc888)=>_0x17715c(_0x51aa63,_0x4cc888,_0x4b9a3d);const Fe=a['createIdentifier'](_0x44ec13(0x185));function is(_0x172d6b,_0x2eaf60,_0x2359f4){const _0x61fa5=_0x44ec13;return _0x172d6b+'/'+_0x2eaf60+'/unit/'+_0x2359f4+_0x61fa5(0x49c);}exports[_0x44ec13(0x4bf)]=class extends a[_0x44ec13(0x209)]{constructor(_0x456c7a,_0x146f03,_0x8a9a08,_0x551b94,_0x368edb){const _0x265a7d=_0x44ec13;super(),this[_0x265a7d(0x224)]=_0x456c7a,this[_0x265a7d(0x456)]=_0x146f03,this['_configService']=_0x8a9a08,this[_0x265a7d(0x49d)]=_0x551b94,this[_0x265a7d(0x508)]=_0x368edb;}[_0x44ec13(0x262)](_0xe39eda){const _0x1d6948=_0x44ec13,_0x4646fb=this[_0x1d6948(0x456)]['createSocket'](_0xe39eda);if(!_0x4646fb)throw new Error(_0x1d6948(0x386));const _0x57c6e2=new a['DisposableCollection'](),_0x4fa4a0=new v['Subject']();_0x57c6e2[_0x1d6948(0x37a)](_0x4646fb[_0x1d6948(0x2d4)]['subscribe'](_0x904548=>_0x4fa4a0[_0x1d6948(0x4a4)](_0x904548))),_0x57c6e2[_0x1d6948(0x37a)](a['toDisposable'](()=>_0x4fa4a0[_0x1d6948(0x159)]()));const _0x1cb3e0=new v[(_0x1d6948(0x3da))]();_0x57c6e2[_0x1d6948(0x37a)](_0x4646fb[_0x1d6948(0x49b)][_0x1d6948(0x1d4)](_0x5aa36f=>_0x1cb3e0[_0x1d6948(0x4a4)](_0x5aa36f))),_0x57c6e2[_0x1d6948(0x37a)](a['toDisposable'](()=>_0x1cb3e0[_0x1d6948(0x159)]()));const _0x44e265=new v[(_0x1d6948(0x3da))]();_0x57c6e2[_0x1d6948(0x37a)](_0x4646fb[_0x1d6948(0x303)][_0x1d6948(0x1d4)](_0x1249a5=>{const _0x3567be=_0x1d6948,_0x3c4440=Et(_0x1249a5);_0x44e265[_0x3567be(0x4a4)](_0x3c4440);})),_0x57c6e2[_0x1d6948(0x37a)](a[_0x1d6948(0x1ef)](()=>_0x44e265[_0x1d6948(0x159)]()));let _0x467da5;const _0x4bba9d=()=>{const _0x3b57e5=_0x1d6948;_0x1cb3e0[_0x3b57e5(0x4a4)](new Event(_0x3b57e5(0x3aa))),_0x4fa4a0['next'](new CloseEvent(_0x3b57e5(0x3aa))),_0x467da5[_0x3b57e5(0x17e)]();};return _0x467da5={'memberID':'','close$':_0x4fa4a0[_0x1d6948(0x439)](),'error$':_0x1cb3e0['asObservable'](),'open$':_0x4646fb[_0x1d6948(0x328)],'message$':_0x44e265[_0x1d6948(0x439)](),'send':_0x1a43a2=>{const _0x4b9179=_0x1d6948;if(_0x1a43a2['cmd']===b[_0x4b9179(0x45e)]){if(_0x1a43a2[_0x4b9179(0x387)]['eventID']===_['CollaborationEvent'][_0x4b9179(0x1f2)]){this[_0x4b9179(0x342)](_0x467da5,_0x1a43a2[_0x4b9179(0x387)])[_0x4b9179(0x284)](_0x1a93a5=>{const _0x51c720=_0x4b9179;this[_0x51c720(0x49d)]['error'](_0x1a93a5),_0x4bba9d();});return;}if(_0x1a43a2[_0x4b9179(0x387)][_0x4b9179(0x348)]===_['CollaborationEvent'][_0x4b9179(0x3dd)]){const _0x1891f0=_0x1a43a2[_0x4b9179(0x387)];this[_0x4b9179(0x1eb)](_0x1891f0)['then'](_0x518c84=>{const _0x4baf0d=_0x4b9179;_0x44e265[_0x4baf0d(0x4a4)]({'cmd':b[_0x4baf0d(0x1ba)],'code':Ve['OK'],'routeKey':_0x1891f0[_0x4baf0d(0x387)][_0x4baf0d(0x426)],'routeType':'','data':{'eventID':_[_0x4baf0d(0x4f2)][_0x4baf0d(0x522)],'data':{'changesets':_0x518c84}}});})[_0x4b9179(0x284)](_0x32ea55=>{const _0x257b30=_0x4b9179;this[_0x257b30(0x49d)]['error'](_0x32ea55),_0x4bba9d();});return;}}_0x4646fb['send'](bt(_0x1a43a2));},'close':()=>{const _0x51dd9c=_0x1d6948;_0x4646fb[_0x51dd9c(0x17e)](),_0x57c6e2[_0x51dd9c(0x184)]();}},_0x467da5;}async[_0x44ec13(0x342)](_0xfa1bc7,_0x59d54d){const _0x1cf988=_0x44ec13;var _0x322029;const {unitType:_0x29d3c7,unitID:_0x6028f0,changeset:_0x973e2e}=_0x59d54d[_0x1cf988(0x387)],_0x3285ed={'unitID':_0x6028f0,'memberID':_0xfa1bc7[_0x1cf988(0x539)],'type':_0x29d3c7,'changeset':_[_0x1cf988(0x1d5)](_0x973e2e)},_0x32c6c1=is((_0x322029=this['_configService']['getConfig'](gt))!=null?_0x322029:Zt,_0x29d3c7,_0x6028f0);try{await this['_http'][_0x1cf988(0x4ee)](_0x32c6c1,{'body':_0x3285ed});}catch(_0x18cf44){throw this['_logService'][_0x1cf988(0x182)]('[CollaborationSession]',_0x1cf988(0x405)),_0x18cf44;}}async[_0x44ec13(0x1eb)](_0x35e620){const _0x20184b=_0x44ec13,{unitID:_0x3eb111,from:_0x450bd3,to:_0x4eee5d,unitType:_0x514079}=_0x35e620[_0x20184b(0x387)];return(await this[_0x20184b(0x508)][_0x20184b(0x384)]({'metadata':void 0x0},{'unitID':_0x3eb111,'type':_0x514079,'from':_0x450bd3,'to':_0x4eee5d}))['changesets'];}},exports['CollaborationSocketService']=ss([re(0x0,a['Inject'](w[_0x44ec13(0x4e4)])),re(0x1,a[_0x44ec13(0x3ed)](w[_0x44ec13(0x158)])),re(0x2,a[_0x44ec13(0x259)]),re(0x3,a[_0x44ec13(0x2d1)]),re(0x4,_[_0x44ec13(0x43b)])],exports['CollaborationSocketService']);const ns=_0x44ec13(0x44b);function rs(_0x16be1b){const _0x177ebd=_0x44ec13;return JSON[_0x177ebd(0x2b5)](_0x16be1b)[_0x177ebd(0x3b4)];}class We{constructor(){const _0x20acb4=_0x44ec13;d(this,'_commentUpdate$',new v[(_0x20acb4(0x3da))]()),d(this,_0x20acb4(0x35d),this['_commentUpdate$']['asObservable']());}[_0x44ec13(0x3fa)](_0x43fc18){const _0x33d00a=_0x44ec13;this[_0x33d00a(0x389)][_0x33d00a(0x4a4)](_0x43fc18);}}var os=Object[_0x44ec13(0x2ec)],as=Object[_0x44ec13(0x2e1)],cs=(_0x66aee4,_0x27aeff,_0x3c3471,_0x329f87)=>{const _0x35a24b=_0x44ec13;for(var _0x5608a0=_0x329f87>0x1?void 0x0:_0x329f87?as(_0x27aeff,_0x3c3471):_0x27aeff,_0x49699c=_0x66aee4[_0x35a24b(0x3b4)]-0x1,_0x443b1b;_0x49699c>=0x0;_0x49699c--)(_0x443b1b=_0x66aee4[_0x49699c])&&(_0x5608a0=(_0x329f87?_0x443b1b(_0x27aeff,_0x3c3471,_0x5608a0):_0x443b1b(_0x5608a0))||_0x5608a0);return _0x329f87&&_0x5608a0&&os(_0x27aeff,_0x3c3471,_0x5608a0),_0x5608a0;},ze=(_0x3eef7d,_0x1793df)=>(_0x54b57b,_0x16687f)=>_0x1793df(_0x54b57b,_0x16687f,_0x3eef7d);let X=class extends a['Disposable']{constructor(_0x1e21e4,_0x479ea2){const _0x1ab767=_0x44ec13;super(),d(this,'_roomMembers',new Map()),(this[_0x1ab767(0x2b9)]=_0x1e21e4,this[_0x1ab767(0x234)]=_0x479ea2,this[_0x1ab767(0x399)](a[_0x1ab767(0x1ef)](v[_0x1ab767(0x3c1)](this[_0x1ab767(0x2b9)][_0x1ab767(0x1cf)](a[_0x1ab767(0x1c1)][_0x1ab767(0x420)])[_0x1ab767(0x2d5)](E[_0x1ab767(0x341)](_0x47ab4f=>_0x47ab4f['getUnitId']())),this[_0x1ab767(0x2b9)][_0x1ab767(0x1cf)](a[_0x1ab767(0x1c1)][_0x1ab767(0x344)])['pipe'](E[_0x1ab767(0x341)](_0x307698=>_0x307698[_0x1ab767(0x4be)]())),this[_0x1ab767(0x2b9)][_0x1ab767(0x1cf)](a[_0x1ab767(0x1c1)][_0x1ab767(0x2e4)])[_0x1ab767(0x2d5)](E[_0x1ab767(0x341)](_0x2801a6=>_0x2801a6[_0x1ab767(0x4be)]())))[_0x1ab767(0x1d4)](_0x195549=>this['_removeRoom'](_0x195549)))));}['setCurrentUser'](_0x50a76d){this['_userManagerService']['setCurrentUser'](_0x50a76d);}[_0x44ec13(0x4db)](){const _0x19ad83=_0x44ec13;return this[_0x19ad83(0x234)][_0x19ad83(0x4db)]();}[_0x44ec13(0x270)](_0x3c8adf,_0x2a1b3d){const _0x1c592f=_0x44ec13;let _0x5d348b=this[_0x1c592f(0x513)][_0x1c592f(0x48d)](_0x3c8adf);_0x5d348b||(_0x5d348b=new ls(),this[_0x1c592f(0x513)][_0x1c592f(0x47a)](_0x3c8adf,_0x5d348b)),_0x5d348b[_0x1c592f(0x270)](_0x2a1b3d);}['removeMember'](_0x404a25,_0x51e496){const _0x42903f=_0x44ec13,_0x22fe1f=this[_0x42903f(0x513)][_0x42903f(0x48d)](_0x404a25);_0x22fe1f&&_0x22fe1f[_0x42903f(0x393)](_0x51e496);}[_0x44ec13(0x29e)](_0x281ba5){const _0x1b1221=_0x44ec13;return this[_0x1b1221(0x513)]['get'](_0x281ba5);}['getMember'](_0x1d91b1,_0x4ce342){const _0x1c5e30=_0x44ec13,_0x80eb5e=this['_roomMembers'][_0x1c5e30(0x48d)](_0x1d91b1);if(_0x80eb5e)return _0x80eb5e[_0x1c5e30(0x1fe)](_0x4ce342);}[_0x44ec13(0x31b)](_0x5783bb){const _0xbedcac=_0x44ec13,_0x5987fe=this[_0xbedcac(0x513)][_0xbedcac(0x48d)](_0x5783bb);_0x5987fe&&(_0x5987fe[_0xbedcac(0x184)](),this['_roomMembers'][_0xbedcac(0x20e)](_0x5783bb));}['dispose'](){const _0x5bd400=_0x44ec13;this[_0x5bd400(0x513)][_0x5bd400(0x39a)](_0x54a14f=>_0x54a14f[_0x5bd400(0x184)]()),this[_0x5bd400(0x513)][_0x5bd400(0x3e1)]();}};X=cs([ze(0x0,a[_0x44ec13(0x4e2)]),ze(0x1,a['Inject'](a['UserManagerService']))],X);class ls extends a['Disposable']{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x44ec13(0x184)](){const _0x55f730=_0x44ec13;this[_0x55f730(0x239)][_0x55f730(0x3e1)]();}[_0x44ec13(0x270)](_0x5bd3e1){const _0x189d45=_0x44ec13;this[_0x189d45(0x239)]['set'](_0x5bd3e1[_0x189d45(0x539)],_0x5bd3e1);}['removeMember'](_0x38af73){const _0x13f576=_0x44ec13;this[_0x13f576(0x239)][_0x13f576(0x20e)](_0x38af73);}['getMember'](_0x580798){return this['_members']['get'](_0x580798);}}var hs=Object[_0x44ec13(0x2ec)],_s=Object[_0x44ec13(0x2e1)],us=(_0x27eea4,_0xec80aa,_0x2a456a,_0x589df9)=>{const _0x3c81da=_0x44ec13;for(var _0x47da38=_0x589df9>0x1?void 0x0:_0x589df9?_s(_0xec80aa,_0x2a456a):_0xec80aa,_0x4139a0=_0x27eea4[_0x3c81da(0x3b4)]-0x1,_0x57fc86;_0x4139a0>=0x0;_0x4139a0--)(_0x57fc86=_0x27eea4[_0x4139a0])&&(_0x47da38=(_0x589df9?_0x57fc86(_0xec80aa,_0x2a456a,_0x47da38):_0x57fc86(_0x47da38))||_0x47da38);return _0x589df9&&_0x47da38&&hs(_0xec80aa,_0x2a456a,_0x47da38),_0x47da38;},k=(_0x4d0735,_0x48ff06)=>(_0x3ae22b,_0x6c1ec2)=>_0x48ff06(_0x3ae22b,_0x6c1ec2,_0x4d0735),j=(_0x3af45b=>(_0x3af45b[_0x3af45b[_0x44ec13(0x1fd)]=0x0]=_0x44ec13(0x1fd),_0x3af45b[_0x3af45b[_0x44ec13(0x52d)]=0x1]=_0x44ec13(0x52d),_0x3af45b[_0x3af45b[_0x44ec13(0x3a7)]=0x2]=_0x44ec13(0x3a7),_0x3af45b[_0x3af45b[_0x44ec13(0x4f0)]=0x3]=_0x44ec13(0x4f0),_0x3af45b))(j||{});exports['CollaborationSession']=class extends a[_0x44ec13(0x4c6)]{constructor(_0x268bf3,_0x31e899,_0x5bf0ce,_0x28efc2,_0x2d1bfa,_0x2844a6,_0x2087c9,_0x1719e7,_0x52063d,_0x1522c9){const _0x5d88e3=_0x44ec13;super(),d(this,_0x5d88e3(0x2a1),new v[(_0x5d88e3(0x362))](0x0)),d(this,'sessionStatus$',this['_sessionStatus$'][_0x5d88e3(0x439)]()),d(this,_0x5d88e3(0x2db),new v[(_0x5d88e3(0x3da))]()),d(this,_0x5d88e3(0x15d),this[_0x5d88e3(0x2db)]['asObservable']()),d(this,'_socket'),d(this,_0x5d88e3(0x16e)),d(this,'_collaborationTimeoutTimer'),d(this,_0x5d88e3(0x1d8),!0x1),d(this,'_telemetryInfo',null),(this[_0x5d88e3(0x16c)]=_0x268bf3,this['_logService']=_0x5bf0ce,this[_0x5d88e3(0x170)]=_0x28efc2,this[_0x5d88e3(0x153)]=_0x2d1bfa,this[_0x5d88e3(0x148)]=_0x2844a6,this[_0x5d88e3(0x330)]=_0x2087c9,this[_0x5d88e3(0x2bd)]=_0x1719e7,this[_0x5d88e3(0x18b)]=_0x52063d,this['_telemetryService']=_0x1522c9,this[_0x5d88e3(0x1d8)]=!!this['_telemetryService'],_0x31e899[_0x5d88e3(0x2d5)](v[_0x5d88e3(0x441)](this[_0x5d88e3(0x350)]))['subscribe'](_0x44ea4e=>{const _0xd72a07=_0x5d88e3;var _0x42fa98;typeof _0x44ea4e>'u'||(this[_0xd72a07(0x3c7)]=_0x44ea4e,_0x44ea4e?(this['_joinRoom'](_0x44ea4e),this[_0xd72a07(0x16e)]=_0x44ea4e['message$'][_0xd72a07(0x1d4)](_0x5d0387=>{const _0x56144e=_0xd72a07;_0x5d0387[_0x56144e(0x2fd)]===this[_0x56144e(0x16c)]&&this['_onCombEvent'](_0x5d0387);})):(this[_0xd72a07(0x2b3)](),this[_0xd72a07(0x2a1)][_0xd72a07(0x4a4)](0x2),(_0x42fa98=this[_0xd72a07(0x16e)])==null||_0x42fa98[_0xd72a07(0x3f2)](),this[_0xd72a07(0x16e)]=null));}),this[_0x5d88e3(0x399)](this[_0x5d88e3(0x170)][_0x5d88e3(0x368)](()=>{const _0x18a794=_0x5d88e3;var _0x4ea441;(_0x4ea441=this[_0x18a794(0x3c7)])==null||_0x4ea441['send']({'cmd':b[_0x18a794(0x411)],'data':{'roomID':this[_0x18a794(0x16c)]}});})));}get[_0x44ec13(0x236)](){const _0x2b1d62=_0x44ec13;return this[_0x2b1d62(0x2a1)]['getValue']();}[_0x44ec13(0x4cd)](){const _0x57d1e1=_0x44ec13;var _0x473077,_0x57a796;return(_0x57a796=(_0x473077=this[_0x57d1e1(0x3c7)])==null?void 0x0:_0x473077['memberID'])!=null?_0x57a796:null;}[_0x44ec13(0x184)](){const _0x281f06=_0x44ec13;super['dispose'](),this[_0x281f06(0x350)][_0x281f06(0x4a4)](),this[_0x281f06(0x350)][_0x281f06(0x159)]();}['close'](){const _0xd4b412=_0x44ec13;var _0x519447,_0xc0f4c8;this[_0xd4b412(0x2b3)](),(_0x519447=this['_socket'])==null||_0x519447[_0xd4b412(0x1ec)]({'cmd':b[_0xd4b412(0x411)],'data':{'roomID':this[_0xd4b412(0x16c)]}}),(_0xc0f4c8=this[_0xd4b412(0x3c7)])==null||_0xc0f4c8[_0xd4b412(0x17e)](),this[_0xd4b412(0x2db)][_0xd4b412(0x159)](),this[_0xd4b412(0x2a1)][_0xd4b412(0x159)](),this[_0xd4b412(0x184)]();}[_0x44ec13(0x1b2)](_0x5efe29){const _0x2e9de0=_0x44ec13;_0x5efe29[_0x2e9de0(0x279)]===b[_0x2e9de0(0x13e)]?this[_0x2e9de0(0x51d)](_0x5efe29):_0x5efe29[_0x2e9de0(0x279)]===b[_0x2e9de0(0x1ba)]&&this[_0x2e9de0(0x3bc)](_0x5efe29);}[_0x44ec13(0x447)](_0x1b2e04){const _0x2ec629=_0x44ec13;this[_0x2ec629(0x2a1)][_0x2ec629(0x4a4)](0x1),_0x1b2e04[_0x2ec629(0x1ec)]({'cmd':b[_0x2ec629(0x13e)],'routeKey':this[_0x2ec629(0x16c)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2ec629(0x16c)]}]}});}[_0x44ec13(0x51d)](_0x460988){const _0x2c05e0=_0x44ec13;var _0x2c9f14;if(_0x460988['code']===Ve[_0x2c05e0(0x4b2)]){this[_0x2c05e0(0x153)][_0x2c05e0(0x37b)]({'type':K[_0x2c05e0(0x28f)][_0x2c05e0(0x482)],'content':this[_0x2c05e0(0x330)]['t'](_0x2c05e0(0x4e9))}),this[_0x2c05e0(0x2a1)]['next'](0x2);return;}this[_0x2c05e0(0x2a1)][_0x2c05e0(0x4a4)](0x3);const _0x1c3e81=(_0x2c9f14=_0x460988['data'][_0x2c05e0(0x2b8)][this[_0x2c05e0(0x16c)]])==null?void 0x0:_0x2c9f14[_0x2c05e0(0x22a)];_0x1c3e81&&_0x1c3e81[_0x2c05e0(0x39a)](_0x25dc18=>this[_0x2c05e0(0x2bd)][_0x2c05e0(0x270)](this[_0x2c05e0(0x16c)],_0x25dc18));}['_onRecvEvent'](_0xc1037){const _0x3951e5=_0x44ec13;try{const _0x48c646=_0xc1037[_0x3951e5(0x387)];switch(_0x48c646['eventID']){case _['CollaborationEvent'][_0x3951e5(0x489)]:this[_0x3951e5(0x260)](_0x48c646),this[_0x3951e5(0x2db)]['next'](_0x48c646);break;case _['CollaborationEvent'][_0x3951e5(0x523)]:this[_0x3951e5(0x47c)](_0x48c646),this[_0x3951e5(0x2db)]['next'](_0x48c646);break;case _[_0x3951e5(0x4f2)][_0x3951e5(0x1a5)]:this[_0x3951e5(0x233)](),this[_0x3951e5(0x30f)](),this[_0x3951e5(0x2db)]['next'](_0x48c646);break;case _[_0x3951e5(0x4f2)][_0x3951e5(0x26a)]:this[_0x3951e5(0x49d)]['error']('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x48c646)),this[_0x3951e5(0x2db)][_0x3951e5(0x4a4)](_0x48c646);break;case _['CollaborationEvent'][_0x3951e5(0x187)]:this[_0x3951e5(0x18b)][_0x3951e5(0x3fa)](_0x48c646[_0x3951e5(0x387)]),this[_0x3951e5(0x2db)][_0x3951e5(0x4a4)](_0x48c646);break;default:this[_0x3951e5(0x2db)][_0x3951e5(0x4a4)](_0x48c646);}}catch(_0x137f34){this[_0x3951e5(0x49d)][_0x3951e5(0x182)](_0x137f34,_0xc1037);}}[_0x44ec13(0x260)](_0x41732f){const _0x1ff698=_0x44ec13;this[_0x1ff698(0x2bd)][_0x1ff698(0x270)](this[_0x1ff698(0x16c)],_0x41732f['data']);}['_onUserLeave'](_0x4935db){const _0xb89a04=_0x44ec13;this[_0xb89a04(0x2bd)][_0xb89a04(0x393)](this['_unitID'],_0x4935db['data'][_0xb89a04(0x539)]);}async['send'](_0x65f457,_0x1b12df){const _0x4d8641=_0x44ec13;if(this['sessionStatus']!==0x3||!this[_0x4d8641(0x3c7)])throw new Error(_0x4d8641(0x4c4));try{_0x65f457[_0x4d8641(0x348)]===_['CollaborationEvent']['SUBMIT_CHANGESET']&&(this[_0x4d8641(0x4b7)](),this[_0x4d8641(0x258)](_0x65f457)),this[_0x4d8641(0x3c7)][_0x4d8641(0x1ec)]({'cmd':b[_0x4d8641(0x45e)],'routeKey':_0x1b12df,'routeType':'','data':_0x65f457});}catch(_0x3e4c6f){this[_0x4d8641(0x49d)][_0x4d8641(0x182)](_0x3e4c6f);}}[_0x44ec13(0x4b7)](){const _0x5c72f1=_0x44ec13;var _0x197d9b;this['_collaborationTimeoutTimer']=window[_0x5c72f1(0x17a)](()=>{const _0x346823=_0x5c72f1;this[_0x346823(0x23c)]=null,this['_messageService']['show']({'type':K[_0x346823(0x28f)][_0x346823(0x16d)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x197d9b=this[_0x5c72f1(0x148)][_0x5c72f1(0x227)](Be))!=null?_0x197d9b:St);}[_0x44ec13(0x30f)](){const _0x322312=_0x44ec13;this[_0x322312(0x23c)]&&(clearTimeout(this[_0x322312(0x23c)]),this[_0x322312(0x23c)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x56dff0){const _0x48101d=_0x44ec13;if(!this[_0x48101d(0x1d8)])return;const {data:_0x564dc7}=_0x56dff0,{unitID:_0x369318,changeset:_0x43e414}=_0x564dc7,{mutations:_0x4ccad2,type:_0x186265}=_0x43e414;this[_0x48101d(0x336)]={'unitId':_0x369318,'type':_0x186265,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':rs(_0x4ccad2)};}[_0x44ec13(0x233)](){const _0x564e88=_0x44ec13;if(this[_0x564e88(0x1d8)]){if(!this['_telemetryInfo']){this['_logService']['error'](_0x564e88(0x18d),_0x564e88(0x25e));return;}this['_telemetryInfo'][_0x564e88(0x476)]=performance['now'](),this[_0x564e88(0x336)][_0x564e88(0x415)]=this['_telemetryInfo'][_0x564e88(0x476)]-this[_0x564e88(0x336)][_0x564e88(0x388)],this[_0x564e88(0x4fc)][_0x564e88(0x4c3)](ns,this[_0x564e88(0x336)]),this[_0x564e88(0x336)]=null;}}[_0x44ec13(0x2b3)](){const _0xf3b468=_0x44ec13;this[_0xf3b468(0x336)]=null;}},exports['CollaborationSession']=us([k(0x2,a[_0x44ec13(0x2d1)]),k(0x3,M[_0x44ec13(0x1a9)]),k(0x4,M[_0x44ec13(0x3c2)]),k(0x5,a[_0x44ec13(0x259)]),k(0x6,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)])),k(0x7,a[_0x44ec13(0x3ed)](X)),k(0x8,a['Inject'](We)),k(0x9,a[_0x44ec13(0x1e9)](Vt[_0x44ec13(0x21a)]))],exports[_0x44ec13(0x397)]);var ds=Object[_0x44ec13(0x2ec)],Ss=Object['getOwnPropertyDescriptor'],vs=(_0x14fe70,_0x569d6f,_0x5a0e5f,_0x49d491)=>{const _0x4e1f96=_0x44ec13;for(var _0x9ff080=_0x49d491>0x1?void 0x0:_0x49d491?Ss(_0x569d6f,_0x5a0e5f):_0x569d6f,_0xc1d487=_0x14fe70[_0x4e1f96(0x3b4)]-0x1,_0x5b651e;_0xc1d487>=0x0;_0xc1d487--)(_0x5b651e=_0x14fe70[_0xc1d487])&&(_0x9ff080=(_0x49d491?_0x5b651e(_0x569d6f,_0x5a0e5f,_0x9ff080):_0x5b651e(_0x9ff080))||_0x9ff080);return _0x49d491&&_0x9ff080&&ds(_0x569d6f,_0x5a0e5f,_0x9ff080),_0x9ff080;},z=(_0x497537,_0x188f4d)=>(_0x58cdcc,_0x18b884)=>_0x188f4d(_0x58cdcc,_0x18b884,_0x497537);exports[_0x44ec13(0x4e1)]=class extends a[_0x44ec13(0x209)]{constructor(_0x6cd9d7,_0x345148,_0x1c4699,_0x3a2dd5,_0xed2f3a,_0x57eb0c){const _0x18164e=_0x44ec13;super(),d(this,_0x18164e(0x2e2),new v[(_0x18164e(0x362))](void 0x0)),d(this,_0x18164e(0x1bf),this[_0x18164e(0x2e2)][_0x18164e(0x439)]()),d(this,_0x18164e(0x3f6),null),d(this,_0x18164e(0x276),new Map()),d(this,_0x18164e(0x22e),new v[(_0x18164e(0x362))](j[_0x18164e(0x1fd)])),d(this,_0x18164e(0x44c),this['_status$'][_0x18164e(0x439)]()),d(this,_0x18164e(0x3de),!0x1),d(this,_0x18164e(0x28d)),d(this,_0x18164e(0x51e),0x0),d(this,'_sendHeartbeatTimer'),d(this,_0x18164e(0x15f)),(this['_injector']=_0x6cd9d7,this[_0x18164e(0x330)]=_0x345148,this[_0x18164e(0x153)]=_0x1c4699,this['_logService']=_0x3a2dd5,this['_configService']=_0xed2f3a,this['_socketService']=_0x57eb0c);}get[_0x44ec13(0x3c7)](){const _0x530ced=_0x44ec13;return this[_0x530ced(0x2e2)][_0x530ced(0x2ba)]();}[_0x44ec13(0x184)](){const _0x58eb38=_0x44ec13;super[_0x58eb38(0x184)](),this[_0x58eb38(0x276)][_0x58eb38(0x39a)](_0x3ca3f4=>_0x3ca3f4[_0x58eb38(0x184)]()),this[_0x58eb38(0x276)]['clear'](),this[_0x58eb38(0x22e)]['complete']();}async[_0x44ec13(0x245)](_0x127765){const _0x1b90d2=_0x44ec13;if(this['_sessions'][_0x1b90d2(0x163)](_0x127765))return this[_0x1b90d2(0x276)][_0x1b90d2(0x48d)](_0x127765);this[_0x1b90d2(0x4df)]();const _0x511bcc=this[_0x1b90d2(0x360)][_0x1b90d2(0x3be)](exports[_0x1b90d2(0x397)],_0x127765,this[_0x1b90d2(0x2e2)][_0x1b90d2(0x439)]());return this[_0x1b90d2(0x276)][_0x1b90d2(0x47a)](_0x127765,_0x511bcc),_0x511bcc;}[_0x44ec13(0x2c3)](_0xb0ddbf){const _0x3551b8=_0x44ec13;var _0x26186d;const _0x27a6a2=this[_0x3551b8(0x276)][_0x3551b8(0x48d)](_0xb0ddbf);_0x27a6a2&&(this[_0x3551b8(0x276)][_0x3551b8(0x20e)](_0xb0ddbf),_0x27a6a2['close']()),this[_0x3551b8(0x276)]['size']||(_0x26186d=this[_0x3551b8(0x3c7)])==null||_0x26186d['close']();}['reconnect'](){const _0x4e93eb=_0x44ec13;this['_retryCount']=0x0,this[_0x4e93eb(0x28d)]!=null&&(clearTimeout(this[_0x4e93eb(0x28d)]),this[_0x4e93eb(0x28d)]=null),this[_0x4e93eb(0x460)]();}['_createSocket'](){const _0x2018d4=_0x44ec13;var _0x1ceeb8;const _0x40ab49=(_0x1ceeb8=this['_configService'][_0x2018d4(0x227)](ut))!=null?_0x1ceeb8:Kt,_0x453f0d=this['_socketService'][_0x2018d4(0x262)](_0x40ab49);return this[_0x2018d4(0x3f6)]=_0x453f0d,_0x453f0d;}[_0x44ec13(0x4df)](){const _0x3fef=_0x44ec13;var _0x45dd1b,_0x206a0e;try{const _0x58744c=(_0x206a0e=(_0x45dd1b=this[_0x3fef(0x3c7)])!=null?_0x45dd1b:this['_candidateSocket'])!=null?_0x206a0e:this[_0x3fef(0x500)]();if(_0x58744c){const _0x513caf=_0x58744c['send'];_0x58744c[_0x3fef(0x1ec)]=_0x36a166=>(this[_0x3fef(0x254)](),_0x513caf[_0x3fef(0x540)](_0x58744c,[_0x36a166])),_0x58744c[_0x3fef(0x303)][_0x3fef(0x1d4)](_0x3d9c0f=>this[_0x3fef(0x4f7)](_0x58744c,_0x3d9c0f)),_0x58744c['error$']['pipe'](E[_0x3fef(0x3ff)](0x1))[_0x3fef(0x1d4)](_0x357072=>this[_0x3fef(0x49d)][_0x3fef(0x182)](_0x3fef(0x1cc),_0x357072)),_0x58744c[_0x3fef(0x328)][_0x3fef(0x2d5)](E['take'](0x1))[_0x3fef(0x1d4)](()=>{const _0x2eafad=_0x3fef;this[_0x2eafad(0x3ad)](_0x58744c);}),_0x58744c[_0x3fef(0x2d4)][_0x3fef(0x2d5)](E['take'](0x1))[_0x3fef(0x1d4)](_0x354572=>{const _0x3c30d2=_0x3fef;this[_0x3c30d2(0x49d)][_0x3c30d2(0x1bb)](_0x3c30d2(0x176),_0x3c30d2(0x2a2),_0x354572),this[_0x3c30d2(0x160)]();});}}catch(_0x4dfd94){this[_0x3fef(0x49d)][_0x3fef(0x182)](_0x4dfd94),this[_0x3fef(0x160)]();}}[_0x44ec13(0x3ad)](_0x1e95e6){const _0x442d16=_0x44ec13;this[_0x442d16(0x49d)][_0x442d16(0x1bb)]('[CollaborationSessionService]',_0x442d16(0x30d)),_0x1e95e6[_0x442d16(0x1ec)]({'cmd':b['HELLO']}),this[_0x442d16(0x254)](),this[_0x442d16(0x3e0)]();}[_0x44ec13(0x3e0)](){const _0x4731a1=()=>{const _0x4c0f15=_0x2929;this[_0x4c0f15(0x2c6)](),this['_listenToOnlineEvent'](),window[_0x4c0f15(0x28b)](_0x4c0f15(0x19e),_0x4731a1);};window['addEventListener']('offline',_0x4731a1);}['_onOffline'](){const _0x2b1c8f=_0x44ec13;this[_0x2b1c8f(0x3de)]=!0x1,this[_0x2b1c8f(0x22e)][_0x2b1c8f(0x4a4)](j[_0x2b1c8f(0x3a7)]),this[_0x2b1c8f(0x2e2)][_0x2b1c8f(0x4a4)](null),this[_0x2b1c8f(0x180)](),this['_clearHeartbeatTimer']();}[_0x44ec13(0x160)](){const _0x3aa660=_0x44ec13;var _0x14723b;this['_onOffline'](),this[_0x3aa660(0x51e)]<((_0x14723b=this['_configService']['getConfig'](mt))!=null?_0x14723b:Jt)?(this[_0x3aa660(0x153)][_0x3aa660(0x37b)]({'key':_0x3aa660(0x1df),'type':K[_0x3aa660(0x28f)][_0x3aa660(0x482)],'content':this[_0x3aa660(0x330)]['t']('session.will-retry')}),this[_0x3aa660(0x460)]()):(this[_0x3aa660(0x153)][_0x3aa660(0x37b)]({'key':'collaboration-session-retry','type':K[_0x3aa660(0x28f)]['Error'],'content':this['_localeService']['t'](_0x3aa660(0x280))}),this[_0x3aa660(0x4f9)]());}[_0x44ec13(0x4f9)](){const _0x2a4ea4=_0x44ec13,_0x17a078=()=>{const _0x3e9ea4=_0x2929;this['reconnect'](),window[_0x3e9ea4(0x28b)](_0x3e9ea4(0x324),_0x17a078);};window['addEventListener']('online',_0x17a078),this['_socket$']['pipe'](E[_0x2a4ea4(0x1ee)](_0xd0c59b=>!!_0xd0c59b),E['take'](0x1))[_0x2a4ea4(0x1d4)](()=>{const _0x2c2da6=_0x2a4ea4;window[_0x2c2da6(0x28b)]('online',_0x17a078);});}['_tryReconnect'](){const _0x2e1e9f=_0x44ec13;var _0x37e98c;const _0x27164f=this[_0x2e1e9f(0x51e)],_0x46671b=_0x27164f===0x0?0x0:((_0x37e98c=this[_0x2e1e9f(0x148)][_0x2e1e9f(0x227)](vt))!=null?_0x37e98c:qt)*0x2**_0x27164f;this[_0x2e1e9f(0x28d)]=window['setTimeout'](()=>{const _0x34f0b5=_0x2e1e9f;clearTimeout(this[_0x34f0b5(0x28d)]),this[_0x34f0b5(0x28d)]=null,this[_0x34f0b5(0x4df)]();},_0x46671b),this[_0x2e1e9f(0x51e)]+=0x1;}[_0x44ec13(0x4f7)](_0x5bc8a3,_0x3b9a0e){const _0x4824ab=_0x44ec13,{cmd:_0x4ab8a5}=_0x3b9a0e;_0x4ab8a5===b['HELLO']&&!this[_0x4824ab(0x3de)]&&(_0x5bc8a3[_0x4824ab(0x539)]=_0x3b9a0e[_0x4824ab(0x387)]['memberID'],this[_0x4824ab(0x2e2)]['next'](_0x5bc8a3),this[_0x4824ab(0x22e)]['next'](j['ONLINE']),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x4ab8a5===b[_0x4824ab(0x261)]&&this['_clearTimeoutTimer'](),this[_0x4824ab(0x254)]();}[_0x44ec13(0x254)](){const _0x1565bc=_0x44ec13;var _0x4fe885;this['_clearHeartbeatTimer'](),this[_0x1565bc(0x33a)]=window[_0x1565bc(0x17a)](()=>this[_0x1565bc(0x1d2)](),(_0x4fe885=this[_0x1565bc(0x148)][_0x1565bc(0x227)](dt))!=null?_0x4fe885:Xt);}[_0x44ec13(0x1d2)](){const _0x392c32=_0x44ec13;this[_0x392c32(0x3c7)]['send']({'cmd':b[_0x392c32(0x261)]}),this['_waitForHeartbeatResponse']();}[_0x44ec13(0x4b4)](){const _0xd7bc7b=_0x44ec13;var _0x58502f;this[_0xd7bc7b(0x15f)]=window['setTimeout'](()=>this[_0xd7bc7b(0x160)](),(_0x58502f=this['_configService'][_0xd7bc7b(0x227)](Be))!=null?_0x58502f:St);}[_0x44ec13(0x20c)](){const _0x5c3d1a=_0x44ec13;this[_0x5c3d1a(0x33a)]!=null&&(clearTimeout(this[_0x5c3d1a(0x33a)]),this[_0x5c3d1a(0x33a)]=null);}[_0x44ec13(0x180)](){const _0x2b2371=_0x44ec13;this[_0x2b2371(0x15f)]!=null&&(clearTimeout(this[_0x2b2371(0x15f)]),this['_timeoutTimer']=null);}},exports['CollaborationSessionService']=vs([z(0x0,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),z(0x1,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)])),z(0x2,M[_0x44ec13(0x3c2)]),z(0x3,a[_0x44ec13(0x2d1)]),z(0x4,a[_0x44ec13(0x259)]),z(0x5,Fe)],exports[_0x44ec13(0x4e1)]);var ms=Object[_0x44ec13(0x2ec)],fs=Object[_0x44ec13(0x2e1)],gs=(_0x5a81cb,_0x170912,_0x2e11ae,_0x4eec75)=>{const _0x199fd9=_0x44ec13;for(var _0x29e6ef=_0x4eec75>0x1?void 0x0:_0x4eec75?fs(_0x170912,_0x2e11ae):_0x170912,_0x212720=_0x5a81cb[_0x199fd9(0x3b4)]-0x1,_0x3c492f;_0x212720>=0x0;_0x212720--)(_0x3c492f=_0x5a81cb[_0x212720])&&(_0x29e6ef=(_0x4eec75?_0x3c492f(_0x170912,_0x2e11ae,_0x29e6ef):_0x3c492f(_0x29e6ef))||_0x29e6ef);return _0x4eec75&&_0x29e6ef&&ms(_0x170912,_0x2e11ae,_0x29e6ef),_0x29e6ef;},Oe=(_0x47e078,_0x2cb2a5)=>(_0x2aa000,_0x2ffab1)=>_0x2cb2a5(_0x2aa000,_0x2ffab1,_0x47e078);let ge=class{constructor(_0xaf885c,_0x62b5ad,_0x40f1f5){const _0x27d118=_0x44ec13;this[_0x27d118(0x360)]=_0xaf885c,this[_0x27d118(0x4cc)]=_0x62b5ad,this[_0x27d118(0x2d3)]=_0x40f1f5;}[_0x44ec13(0x22f)](_0x5725d9){const _0x39ce13=_0x44ec13;this['_transformUndoRedoStack'](_0x5725d9),this[_0x39ce13(0x34b)](_0x5725d9);}[_0x44ec13(0x345)](_0x524a5f){const _0x14bd20=_0x44ec13,{unitID:_0x1ec63a}=_0x524a5f,_0xb554e2=this[_0x14bd20(0x2d3)]['getRenderById'](_0x1ec63a)[_0x14bd20(0x2cc)](U[_0x14bd20(0x3cc)]),{redoCache:_0x5575c0}=_0xb554e2[_0x14bd20(0x25d)]();if(_0x5575c0['length']===0x0)return _0x524a5f;let _0x3a9f58=a[_0x14bd20(0x3ce)]['deepClone'](_0x524a5f[_0x14bd20(0x1cb)][0x0]);for(let _0x3d7992=0x0;_0x3d7992<_0x5575c0[_0x14bd20(0x3b4)];_0x3d7992++){const _0x29818b={'id':_0x14bd20(0x215),'params':{..._0x5575c0[_0x3d7992]}},_0x2a25c7=this[_0x14bd20(0x4cc)][_0x14bd20(0x19a)](_0x3a9f58,_0x29818b,!0x1);if(_[_0x14bd20(0x41a)](_0x2a25c7))throw _0x2a25c7[_0x14bd20(0x182)];_0x3a9f58=_0x2a25c7[_0x14bd20(0x4b8)];}return{...a[_0x14bd20(0x3ce)]['deepClone'](_0x524a5f),'mutations':[_0x3a9f58]};}[_0x44ec13(0x398)](_0xa80888){const _0x7b7a6c=_0x44ec13,{unitID:_0x109737}=_0xa80888,_0x2cd77e=this[_0x7b7a6c(0x2d3)][_0x7b7a6c(0x3b9)](_0x109737)[_0x7b7a6c(0x2cc)](U[_0x7b7a6c(0x3cc)]),{undoCache:_0x304201,redoCache:_0x13cf1d}=_0x2cd77e[_0x7b7a6c(0x25d)]();if(_0x304201[_0x7b7a6c(0x3b4)]===0x0||_0x13cf1d[_0x7b7a6c(0x3b4)]===0x0)return;const _0x51db42=[],_0x4c0331=[];let _0x4d9d2a=a[_0x7b7a6c(0x3ce)][_0x7b7a6c(0x147)](_0xa80888[_0x7b7a6c(0x1cb)][0x0]),_0x401772=a[_0x7b7a6c(0x3ce)][_0x7b7a6c(0x147)](_0xa80888[_0x7b7a6c(0x1cb)][0x0]);for(let _0x5614a1=_0x304201['length']-0x1;_0x5614a1>=0x0;_0x5614a1--){const _0x5914b1={'id':_0x7b7a6c(0x215),'params':{..._0x304201[_0x5614a1]}},_0x876a6b={'id':'doc.mutation.rich-text-editing','params':{..._0x13cf1d[_0x5614a1]}},_0x5b3e9a=this[_0x7b7a6c(0x4cc)]['transformMutation'](_0x4d9d2a,_0x5914b1,!0x1),_0x4df12c=this[_0x7b7a6c(0x4cc)][_0x7b7a6c(0x19a)](_0x401772,_0x876a6b,!0x1);if(_[_0x7b7a6c(0x41a)](_0x5b3e9a))throw _0x5b3e9a[_0x7b7a6c(0x182)];if(_[_0x7b7a6c(0x41a)](_0x4df12c))throw _0x4df12c[_0x7b7a6c(0x182)];_0x51db42[_0x7b7a6c(0x4e3)](_0x5b3e9a['m2Prime'][_0x7b7a6c(0x2eb)]),_0x4c0331[_0x7b7a6c(0x4e3)](_0x4df12c[_0x7b7a6c(0x2f1)][_0x7b7a6c(0x2eb)]),_0x4d9d2a=_0x5b3e9a['m1Prime'],_0x401772=_0x4df12c['m1Prime'];}_0x2cd77e[_0x7b7a6c(0x269)]({'undoCache':_0x51db42,'redoCache':_0x4c0331});}[_0x44ec13(0x34b)](_0x3f9030){const _0x339517=_0x44ec13,{unitID:_0x206ac5}=_0x3f9030,_0x465c59=this[_0x339517(0x2d3)]['getRenderById'](_0x206ac5)['with'](U['DocIMEInputManagerService']),_0x14172d=_0x465c59[_0x339517(0x486)]();if(_0x14172d==null)return;const _0x3cb637=[{'id':_0x339517(0x215),'params':{'unitId':_0x3f9030['unitID'],'actions':null,'textRanges':[_0x14172d]}}],_0xaaae6=this['_transformService']['transformMutationsWithChangeset'](_0x3f9030,_0x3cb637);if(!_['isTransformMutationsWithChangesetSuccess'](_0xaaae6))throw _0xaaae6['error'];const _0x140cb0=_0xaaae6[_0x339517(0x2f1)][0x0][_0x339517(0x2eb)]['textRanges'];Array[_0x339517(0x369)](_0x140cb0)&&_0x140cb0[_0x339517(0x3b4)]&&_0x465c59[_0x339517(0x3dc)](_0x140cb0[0x0]);}};ge=gs([Oe(0x0,a[_0x44ec13(0x3ed)](a['Injector'])),Oe(0x1,_[_0x44ec13(0x275)]),Oe(0x2,R[_0x44ec13(0x226)])],ge);var Is=Object[_0x44ec13(0x2ec)],ps=Object[_0x44ec13(0x2e1)],Cs=(_0x422ad6,_0x2cb736,_0x4c2497,_0x3a5fea)=>{const _0x316104=_0x44ec13;for(var _0x5e0f89=_0x3a5fea>0x1?void 0x0:_0x3a5fea?ps(_0x2cb736,_0x4c2497):_0x2cb736,_0x3386f5=_0x422ad6[_0x316104(0x3b4)]-0x1,_0x28743d;_0x3386f5>=0x0;_0x3386f5--)(_0x28743d=_0x422ad6[_0x3386f5])&&(_0x5e0f89=(_0x3a5fea?_0x28743d(_0x2cb736,_0x4c2497,_0x5e0f89):_0x28743d(_0x5e0f89))||_0x5e0f89);return _0x3a5fea&&_0x5e0f89&&Is(_0x2cb736,_0x4c2497,_0x5e0f89),_0x5e0f89;},oe=(_0x2d565d,_0x778bc1)=>(_0x4e2cfb,_0x68fbf6)=>_0x778bc1(_0x4e2cfb,_0x68fbf6,_0x2d565d);exports[_0x44ec13(0x494)]=class extends a[_0x44ec13(0x209)]{constructor(_0xebc7a7,_0x228bb2,_0x1357ce,_0x2d4a0c,_0x10d4e1){const _0x112d45=_0x44ec13;super(),d(this,'_cachedData',new Map()),d(this,_0x112d45(0x1d3),new Map()),d(this,'_disabled',!0x1),(this[_0x112d45(0x148)]=_0xebc7a7,this[_0x112d45(0x35e)]=_0x228bb2,this[_0x112d45(0x170)]=_0x1357ce,this['_localeService']=_0x2d4a0c,this[_0x112d45(0x2d9)]=_0x10d4e1,this[_0x112d45(0x43f)]());}[_0x44ec13(0x197)](){const _0x2ecf9d=_0x44ec13;this[_0x2ecf9d(0x1fb)]=!0x0;}[_0x44ec13(0x297)](){const _0x562e03=_0x44ec13;this[_0x562e03(0x1fb)]=!0x1;}['dispose'](){const _0x3fbdb5=_0x44ec13;this[_0x3fbdb5(0x249)]()[_0x3fbdb5(0x517)](()=>super[_0x3fbdb5(0x184)]());}async[_0x44ec13(0x50f)](_0x1629c8){const _0x4406d0=_0x44ec13;return this[_0x4406d0(0x1fb)]?null:this[_0x4406d0(0x35e)][_0x4406d0(0x4fb)](Ze(_0x1629c8));}async['saveOfflineData'](_0x4e6e0f,_0x5b77d1){return!!this['_localStorageService']['setItem'](_0x4e6e0f,_0x5b77d1);}['updateOfflineData'](_0x521868,_0x589609,_0x2939c1,_0x506831){const _0x27c421=_0x44ec13,_0x536baf=this[_0x27c421(0x2d9)][_0x27c421(0x188)](_0x521868);this[_0x27c421(0x4cb)][_0x27c421(0x47a)](_0x521868,{'unitID':_0x521868,'type':_0x589609,'awaitingChangeset':_0x2939c1,'mutations':_0x506831,'rev':_0x536baf}),this[_0x27c421(0x1d3)][_0x27c421(0x163)](_0x521868)||this[_0x27c421(0x4ec)](_0x521868);}['_scheduleSaving'](_0x19f07b){const _0x1994fc=_0x44ec13,_0x9a4662=this[_0x1994fc(0x308)]();_0x9a4662===0x0?this['_saveCache'](_0x19f07b):this[_0x1994fc(0x1d3)][_0x1994fc(0x47a)](_0x19f07b,setTimeout(()=>this['_saveCache'](_0x19f07b),_0x9a4662));}[_0x44ec13(0x308)](){const _0x256722=_0x44ec13;var _0x11bdd1;return(_0x11bdd1=this['_configService'][_0x256722(0x227)](ft))!=null?_0x11bdd1:zt;}[_0x44ec13(0x45c)](_0xfa4346){const _0x5a0b93=_0x44ec13,_0x1e2744=this[_0x5a0b93(0x1d3)][_0x5a0b93(0x48d)](_0xfa4346);return _0x1e2744!==void 0x0&&window[_0x5a0b93(0x507)](_0x1e2744),this['_localStorageService'][_0x5a0b93(0x327)](Ze(_0xfa4346),this[_0x5a0b93(0x4cb)][_0x5a0b93(0x48d)](_0xfa4346))[_0x5a0b93(0x517)](()=>this[_0x5a0b93(0x1d3)]['delete'](_0xfa4346));}async[_0x44ec13(0x249)](){const _0x425a81=_0x44ec13,_0x175f16=[];this['_saveTaskMap'][_0x425a81(0x39a)]((_0x3fc105,_0x38afae)=>{const _0x5cb744=_0x425a81;window['clearTimeout'](_0x3fc105),_0x175f16[_0x5cb744(0x3a3)](this['_saveCache'](_0x38afae)[_0x5cb744(0x517)](()=>{const _0x311a7c=_0x5cb744;this[_0x311a7c(0x1d3)]['delete'](_0x38afae);}));}),await Promise['all'](_0x175f16);}[_0x44ec13(0x43f)](){const _0x1b79cd=_0x44ec13;this[_0x1b79cd(0x399)](this[_0x1b79cd(0x170)][_0x1b79cd(0x425)](()=>{const _0x3b4224=_0x1b79cd;if(this[_0x3b4224(0x1d3)]['size'])return this[_0x3b4224(0x330)]['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x44ec13(0x494)]=Cs([oe(0x0,a[_0x44ec13(0x259)]),oe(0x1,a[_0x44ec13(0x3b1)]),oe(0x2,M[_0x44ec13(0x1a9)]),oe(0x3,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)])),oe(0x4,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x1a7)]))],exports[_0x44ec13(0x494)]);function Ze(_0x10afba){const _0x1b3ec2=_0x44ec13;return _0x1b3ec2(0x3e5)+_0x10afba;}var Es=Object[_0x44ec13(0x2ec)],bs=Object[_0x44ec13(0x2e1)],Ts=(_0x5e1df5,_0x5d1005,_0x1ccd42,_0x169cd9)=>{const _0x362918=_0x44ec13;for(var _0x158e4c=_0x169cd9>0x1?void 0x0:_0x169cd9?bs(_0x5d1005,_0x1ccd42):_0x5d1005,_0xcf7bf0=_0x5e1df5[_0x362918(0x3b4)]-0x1,_0x1aeb2b;_0xcf7bf0>=0x0;_0xcf7bf0--)(_0x1aeb2b=_0x5e1df5[_0xcf7bf0])&&(_0x158e4c=(_0x169cd9?_0x1aeb2b(_0x5d1005,_0x1ccd42,_0x158e4c):_0x1aeb2b(_0x158e4c))||_0x158e4c);return _0x169cd9&&_0x158e4c&&Es(_0x5d1005,_0x1ccd42,_0x158e4c),_0x158e4c;},De=(_0x304b7d,_0x42303f)=>(_0x11e453,_0x5b7049)=>_0x42303f(_0x11e453,_0x5b7049,_0x304b7d);function Rs(_0x41e5b1){const _0x5eee35=_0x44ec13,{unitID:_0x38bb6e,mutations:_0x4e5e21}=_0x41e5b1;return{'unitId':_0x38bb6e,'subUnitId':_0x4e5e21[0x0][_0x5eee35(0x2eb)][_0x5eee35(0x27e)]};}let Ie=class{constructor(_0x1fb782,_0x3dcc1d,_0x4033d7){const _0x57b592=_0x44ec13;this[_0x57b592(0x360)]=_0x1fb782,this['_transformService']=_0x3dcc1d,this[_0x57b592(0x28a)]=_0x4033d7;}[_0x44ec13(0x28c)](_0x4fbab8){const _0xfea75a=_0x44ec13;var _0x5b9be0,_0x150a52,_0x5e4d9d,_0x417f83,_0x100da7;const _0x406d84=this['_injector']['get'](C[_0xfea75a(0x41b)]),{unitId:_0x166075,subUnitId:_0xba4a57}=Rs(_0x4fbab8),_0x11d3fb=_0x406d84[_0xfea75a(0x325)](_0x166075)['getCurrentSelections'](),_0x511301=(_0x150a52=(_0x5b9be0=this[_0xfea75a(0x28a)]['getUnit'](_0x166075))==null?void 0x0:_0x5b9be0[_0xfea75a(0x219)]())==null?void 0x0:_0x150a52[_0xfea75a(0x1b6)]();if(_0x11d3fb[_0xfea75a(0x3b4)]===0x0||!_0x166075||!_0xba4a57)return;const _0x3b9c50=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x166075,'subUnitId':_0x511301,'selections':a['Tools'][_0xfea75a(0x147)](_0x11d3fb)}}],_0x5d9f59=this['_transformService']['transformMutationsWithChangeset'](_0x4fbab8,_0x3b9c50);if(!_['isTransformMutationsWithChangesetSuccess'](_0x5d9f59))throw _0x5d9f59[_0xfea75a(0x182)];const _0x1686dc=(_0x100da7=(_0x417f83=(_0x5e4d9d=_0x5d9f59['m2Prime'][0x0])==null?void 0x0:_0x5e4d9d[_0xfea75a(0x2eb)])==null?void 0x0:_0x417f83['selections'])!=null?_0x100da7:_0x11d3fb;Array[_0xfea75a(0x369)](_0x1686dc)&&_0x1686dc['length']&&this['_injector'][_0xfea75a(0x48d)](a[_0xfea75a(0x359)])[_0xfea75a(0x3e6)](C[_0xfea75a(0x3d6)]['id'],{'unitId':_0x166075,'subUnitId':_0xba4a57,'selections':_0x1686dc});}};Ie=Ts([De(0x0,a['Inject'](a[_0x44ec13(0x4cf)])),De(0x1,_['ITransformService']),De(0x2,a['IUniverInstanceService'])],Ie);const Ee=a['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var Tt=(_0x3d7e1f=>(_0x3d7e1f[_0x3d7e1f[_0x44ec13(0x1b1)]=0x0]=_0x44ec13(0x1b1),_0x3d7e1f[_0x3d7e1f[_0x44ec13(0x42a)]=0x1]='OTHER_CLIENTS_EDITING',_0x3d7e1f))(Tt||{});const Qe=0x7530,et='ACTIVE_UNIT_EVENT_CHANNEL';class Os extends a[_0x44ec13(0x209)]{constructor(){const _0x403d02=_0x44ec13;super(),d(this,_0x403d02(0x285),a[_0x403d02(0x3ce)][_0x403d02(0x22b)]()),d(this,_0x403d02(0x347),new Set()),d(this,_0x403d02(0x3e9),new Map()),d(this,_0x403d02(0x2fc),null),d(this,'_clearOtherTimers',new Map()),d(this,_0x403d02(0x272),new Map()),this[_0x403d02(0x2d0)]();}[_0x44ec13(0x184)](){const _0x473b96=_0x44ec13;super[_0x473b96(0x184)](),this[_0x473b96(0x395)][_0x473b96(0x39a)]((_0x396dd6,_0x468617)=>this[_0x473b96(0x16a)](_0x468617)),this[_0x473b96(0x2fc)]&&window['clearInterval'](this[_0x473b96(0x2fc)]);}['getUnitStatus$'](_0x1c741e){const _0x5b68c9=_0x44ec13;return this[_0x5b68c9(0x2cf)](_0x1c741e)[_0x5b68c9(0x2d5)](v['distinctUntilChanged']());}['editingUnit'](_0x1e1726){const _0x528d12=_0x44ec13;this[_0x528d12(0x347)]['size']===0x0&&this[_0x528d12(0x1ff)](),this['_selfUnitIDs'][_0x528d12(0x37a)](_0x1e1726),this[_0x528d12(0x488)]({'type':0x0,'memberID':this[_0x528d12(0x285)],'unitIDs':[_0x1e1726],'isForwarded':!0x1});}[_0x44ec13(0x483)](_0x3b67c9){const _0x3e4853=_0x44ec13;this[_0x3e4853(0x347)]['delete'](_0x3b67c9),this['_selfUnitIDs'][_0x3e4853(0x366)]===0x0&&this[_0x3e4853(0x2fc)]&&window[_0x3e4853(0x1f1)](this[_0x3e4853(0x2fc)]);}[_0x44ec13(0x2d0)](){const _0xc16b07=_0x44ec13;this['disposeWithMe'](a[_0xc16b07(0x1ef)](v[_0xc16b07(0x32d)](window,'storage')['subscribe'](_0xdbf0be=>{const _0x4b7380=_0xc16b07;if(_0xdbf0be[_0x4b7380(0x43e)]!==et||!_0xdbf0be[_0x4b7380(0x1f5)])return;const _0x56dde6=JSON['parse'](_0xdbf0be['newValue']);this['_handleEvent'](_0x56dde6);}))),window[_0xc16b07(0x3e3)](_0xc16b07(0x2df),()=>this[_0xc16b07(0x488)]({'type':0x1,'memberID':this[_0xc16b07(0x285)],'unitIDs':Array[_0xc16b07(0x25c)](this[_0xc16b07(0x347)])}));}[_0x44ec13(0x4e7)](_0x521adb){const _0x2eb3f5=_0x44ec13;switch(_0x521adb[_0x2eb3f5(0x2ed)]){case 0x0:this['_handleJoinEvent'](_0x521adb);break;case 0x1:this[_0x2eb3f5(0x166)](_0x521adb);break;case 0x2:this[_0x2eb3f5(0x533)](_0x521adb);break;}}[_0x44ec13(0x200)](_0x17cd6c){const _0x29f14f=_0x44ec13,{unitIDs:_0x2310b9,memberID:_0x4a4654,isForwarded:_0x25d584}=_0x17cd6c;_0x2310b9['forEach'](_0x32e7d9=>{const _0x4d2672=_0x2929;if(!_0x25d584&&this[_0x4d2672(0x3e9)][_0x4d2672(0x163)](_0x32e7d9)&&this[_0x4d2672(0x2cf)](_0x32e7d9)[_0x4d2672(0x4a4)](0x1),!this[_0x4d2672(0x3e9)][_0x4d2672(0x163)](_0x32e7d9)||!this['_unitOnClients'][_0x4d2672(0x48d)](_0x32e7d9)[_0x4d2672(0x163)](_0x4a4654)){const _0x215c3e=this['_unitOnClients'][_0x4d2672(0x48d)](_0x32e7d9)||new Set();_0x215c3e[_0x4d2672(0x37a)](_0x4a4654),this[_0x4d2672(0x3e9)]['set'](_0x32e7d9,_0x215c3e),this[_0x4d2672(0x3f3)](_0x4a4654);}}),_0x25d584||this[_0x29f14f(0x488)]({'type':0x0,'memberID':this[_0x29f14f(0x285)],'unitIDs':[...this[_0x29f14f(0x347)]],'isForwarded':!0x0});}[_0x44ec13(0x3f3)](_0x354115){const _0x3abe58=_0x44ec13;this[_0x3abe58(0x16a)](_0x354115);const _0x51e38d=window[_0x3abe58(0x17a)](()=>{const _0x10609f=_0x3abe58;this[_0x10609f(0x3e9)][_0x10609f(0x39a)](_0x44dbda=>{const _0xa612c6=_0x10609f;_0x44dbda[_0xa612c6(0x20e)](_0x354115);});},Qe*0x2);this['_clearOtherTimers'][_0x3abe58(0x47a)](_0x354115,_0x51e38d);}['_removeClearOtherTimer'](_0x2a0f74){const _0x33d715=_0x44ec13;if(this[_0x33d715(0x395)][_0x33d715(0x163)](_0x2a0f74)){const _0x52fa48=this[_0x33d715(0x395)]['get'](_0x2a0f74);_0x52fa48&&window[_0x33d715(0x507)](_0x52fa48),this[_0x33d715(0x395)][_0x33d715(0x47a)](_0x2a0f74,null);}}[_0x44ec13(0x166)](_0x425929){const {memberID:_0x29f239,unitIDs:_0x394771}=_0x425929;_0x394771['forEach'](_0x4df885=>{const _0x1edbb6=_0x2929;var _0x4f0749;const _0x3ff406=this['_unitOnClients'][_0x1edbb6(0x48d)](_0x4df885);_0x3ff406&&(_0x3ff406['delete'](_0x29f239),(_0x4f0749=this['_ensureSubject'](_0x4df885))==null||_0x4f0749[_0x1edbb6(0x4a4)](_0x3ff406[_0x1edbb6(0x366)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x29f239);}['_handleHeartbeatEvent'](_0x5080e8){const _0x1d512b=_0x44ec13;this[_0x1d512b(0x3f3)](_0x5080e8[_0x1d512b(0x539)]);}['_send'](_0x3d2a8d){const _0x3d1e9=_0x44ec13;localStorage[_0x3d1e9(0x327)](et,JSON[_0x3d1e9(0x2b5)](_0x3d2a8d));}[_0x44ec13(0x1ff)](){const _0x3a5299=_0x44ec13;this['_heartbeatTimer']=window[_0x3a5299(0x49e)](()=>{const _0x1f1841=_0x3a5299;this[_0x1f1841(0x488)]({'type':0x2,'memberID':this[_0x1f1841(0x285)]});},Qe);}[_0x44ec13(0x2cf)](_0x4c5e2b){const _0x1cf0a4=_0x44ec13;return this[_0x1cf0a4(0x272)][_0x1cf0a4(0x163)](_0x4c5e2b)||this[_0x1cf0a4(0x272)]['set'](_0x4c5e2b,new v[(_0x1cf0a4(0x362))](0x0)),this[_0x1cf0a4(0x272)][_0x1cf0a4(0x48d)](_0x4c5e2b);}}function Rt(_0x5adcc8){const _0x421a71=_0x44ec13;let _0x4bec13='';for(const _0x3ee24a of _0x5adcc8){const {startOffset:_0x3dd1d6,endOffset:_0x47a22c,isActive:_0x46bf70}=_0x3ee24a;_0x4bec13[_0x421a71(0x3b4)]&&(_0x4bec13+=','),_0x4bec13+=_0x3dd1d6+':'+_0x47a22c+':'+(_0x46bf70?'1':'0');}return _0x4bec13;}function Ds(_0x34216e){const _0x2c2eae=_0x44ec13,_0x585023=_0x34216e['split'](','),_0x5828e7=[];for(const _0x1010bf of _0x585023){const [_0x4426df,_0x17d40e,_0x47aba4]=_0x1010bf[_0x2c2eae(0x504)](':');_0x5828e7[_0x2c2eae(0x3a3)]({'startOffset':Number(_0x4426df),'endOffset':Number(_0x17d40e),'collapsed':_0x4426df===_0x17d40e,'isActive':_0x47aba4==='1'});}return _0x5828e7['some'](_0x265738=>_0x265738['isActive'])||(_0x5828e7[0x0][_0x2c2eae(0x13d)]=!0x0),_0x5828e7;}class Ge extends a[_0x44ec13(0x4c6)]{constructor(){const _0x2b644e=_0x44ec13;super(...arguments),d(this,_0x2b644e(0x24a),new v[(_0x2b644e(0x362))](null)),d(this,'collabCursorState$',this[_0x2b644e(0x24a)][_0x2b644e(0x439)]());}[_0x44ec13(0x42d)](_0x28b9d8){const _0x5af23a=_0x44ec13,{unitID:_0xc76e22,memberID:_0x13adb1,textRanges:_0x12763d}=_0x28b9d8,_0x15c95e=Rt(_0x12763d),_0x3222bc={'unitID':_0xc76e22,'memberID':_0x13adb1,'selection':_0x15c95e};this[_0x5af23a(0x24a)]['next'](_0x3222bc);}}var ys=Object[_0x44ec13(0x2ec)],Ps=Object[_0x44ec13(0x2e1)],ws=(_0x241198,_0x52f0f5,_0x4ca862,_0x2dffe4)=>{const _0x25cd1e=_0x44ec13;for(var _0x42abc3=_0x2dffe4>0x1?void 0x0:_0x2dffe4?Ps(_0x52f0f5,_0x4ca862):_0x52f0f5,_0x2bc771=_0x241198[_0x25cd1e(0x3b4)]-0x1,_0x3a982c;_0x2bc771>=0x0;_0x2bc771--)(_0x3a982c=_0x241198[_0x2bc771])&&(_0x42abc3=(_0x2dffe4?_0x3a982c(_0x52f0f5,_0x4ca862,_0x42abc3):_0x3a982c(_0x42abc3))||_0x42abc3);return _0x2dffe4&&_0x42abc3&&ys(_0x52f0f5,_0x4ca862,_0x42abc3),_0x42abc3;},tt=(_0x1787ac,_0x206342)=>(_0x5a2757,_0x540bf0)=>_0x206342(_0x5a2757,_0x540bf0,_0x1787ac);let pe=class{constructor(_0x3fdec5,_0x4854e7){const _0x1f841d=_0x44ec13;this[_0x1f841d(0x360)]=_0x3fdec5,this[_0x1f841d(0x4cc)]=_0x4854e7;}[_0x44ec13(0x28c)](_0x148fb5){const _0xd35b2c=_0x44ec13;var _0x5eb518;const _0x31039a=this[_0xd35b2c(0x360)][_0xd35b2c(0x48d)](B['DocSelectionManagerService']),_0xcfdaab=(_0x5eb518=_0x31039a[_0xd35b2c(0x322)]())!=null?_0x5eb518:[];if(_0xcfdaab[_0xd35b2c(0x3b4)]===0x0)return;const _0x43299a=[{'id':_0xd35b2c(0x215),'params':{'unitId':_0x148fb5['unitID'],'actions':null,'textRanges':_0xcfdaab}}],_0x62bcfe=this[_0xd35b2c(0x4cc)][_0xd35b2c(0x304)](_0x148fb5,_0x43299a);if(!_['isTransformMutationsWithChangesetSuccess'](_0x62bcfe))throw _0x62bcfe[_0xd35b2c(0x182)];const _0x25a859=_0x62bcfe['m2Prime'][0x0][_0xd35b2c(0x2eb)][_0xd35b2c(0x442)];Array[_0xd35b2c(0x369)](_0x25a859)&&_0x25a859[_0xd35b2c(0x3b4)]&&_0x31039a[_0xd35b2c(0x38d)](_0x25a859,!0x1);}};pe=ws([tt(0x0,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),tt(0x1,_['ITransformService'])],pe);const Us=new Set([C['InsertSheetMutation']['id']]);function st(_0x583cb3,_0x253394,_0x1adafe,_0x4cc509,_0x2d75e8){const _0x4aa5f3=_0x44ec13;var _0x542be8,_0x5b22ba,_0x32d116,_0x5cb34b;const _0x45c662=[];for(const _0x110ba3 of _0x583cb3)if(Us['has'](_0x110ba3['id'])){if(_0x45c662[_0x4aa5f3(0x3b4)]>0x0)break;_0x45c662['push'](_0x110ba3);break;}else _0x45c662[_0x4aa5f3(0x3a3)](_0x110ba3);const _0x50c680=(_0x5b22ba=(_0x542be8=_0x2d75e8['getCurrentUser']())==null?void 0x0:_0x542be8['userID'])!=null?_0x5b22ba:'unknown',_0x109e4d=(_0x5cb34b=(_0x32d116=_0x2d75e8[_0x4aa5f3(0x4db)]())==null?void 0x0:_0x32d116[_0x4aa5f3(0x539)])!=null?_0x5cb34b:'unknown';return{'changeset':{'unitID':_0x253394,'type':_['mapDocumentTypeToUniverType'](_0x1adafe[_0x4aa5f3(0x16f)](_0x253394)),'baseRev':_0x4cc509[_0x4aa5f3(0x188)](_0x253394),'revision':0x0,'userID':_0x50c680,'memberID':_0x109e4d,'mutations':_0x45c662},'pendingMutations':_0x583cb3[_0x4aa5f3(0x2ef)](_0x45c662['length'])};}function Ns(_0x3cad24,_0x5b0327,_0x699b15,_0x4b54f7,_0xa09c45){const _0x1c03ea=_0x44ec13;var _0x118f6b,_0x484146,_0x1ceb23,_0x1b2a0e;const _0x43b2cd=[_0x3cad24[_0x1c03ea(0x25b)]((_0x4275c8,_0x578762)=>{const _0x357a92=_0x1c03ea;var _0x597fe6;const {id:_0x1efa40}=_0x4275c8,{id:_0x15a654,type:_0x112cdc}=_0x578762,_0x3cea22=(_0x597fe6=_0x4275c8[_0x357a92(0x2eb)])!=null?_0x597fe6:{'actions':null},_0x119968=_0x578762[_0x357a92(0x2eb)];if(_0x1efa40&&_0x1efa40!==_0x15a654)throw new Error(_0x357a92(0x40e)+_0x1efa40+'\x20-\x20'+_0x15a654+'.');return{..._0x4275c8,'id':_0x15a654,'type':_0x112cdc,'params':{'unitId':_0x119968[_0x357a92(0x1c9)],'textRanges':_0x119968[_0x357a92(0x442)],'actions':a[_0x357a92(0x50a)][_0x357a92(0x534)](_0x3cea22[_0x357a92(0x4ab)],_0x119968[_0x357a92(0x4ab)])}};},{})],_0x1d7eb5=(_0x484146=(_0x118f6b=_0xa09c45['getCurrentUser']())==null?void 0x0:_0x118f6b[_0x1c03ea(0x499)])!=null?_0x484146:'unknown',_0x543815=(_0x1b2a0e=(_0x1ceb23=_0xa09c45[_0x1c03ea(0x4db)]())==null?void 0x0:_0x1ceb23['memberID'])!=null?_0x1b2a0e:_0x1c03ea(0x3b2);return{'changeset':{'unitID':_0x5b0327,'type':_[_0x1c03ea(0x401)](_0x699b15[_0x1c03ea(0x16f)](_0x5b0327)),'baseRev':_0x4b54f7['getCurrentRevForDocument'](_0x5b0327),'revision':0x0,'userID':_0x1d7eb5,'memberID':_0x543815,'mutations':_0x43b2cd},'pendingMutations':[]};}const Ms={'id':C[_0x44ec13(0x39b)]['id'],'type':a[_0x44ec13(0x37e)][_0x44ec13(0x4d5)],'params':{}};var Ls=Object[_0x44ec13(0x2ec)],As=Object['getOwnPropertyDescriptor'],q=(_0x12ee59,_0x53b73b,_0x2759df,_0x102af9)=>{const _0x3b0b6a=_0x44ec13;for(var _0x5a2608=_0x102af9>0x1?void 0x0:_0x102af9?As(_0x53b73b,_0x2759df):_0x53b73b,_0x445f06=_0x12ee59[_0x3b0b6a(0x3b4)]-0x1,_0x1e4106;_0x445f06>=0x0;_0x445f06--)(_0x1e4106=_0x12ee59[_0x445f06])&&(_0x5a2608=(_0x102af9?_0x1e4106(_0x53b73b,_0x2759df,_0x5a2608):_0x1e4106(_0x5a2608))||_0x5a2608);return _0x102af9&&_0x5a2608&&Ls(_0x53b73b,_0x2759df,_0x5a2608),_0x5a2608;},f=(_0x26217a,_0x1b1c7d)=>(_0x4a7699,_0x3554a7)=>_0x1b1c7d(_0x4a7699,_0x3554a7,_0x26217a),y=(_0x4378c4=>(_0x4378c4[_0x44ec13(0x2f7)]=_0x44ec13(0x453),_0x4378c4[_0x44ec13(0x530)]=_0x44ec13(0x194),_0x4378c4['PENDING']=_0x44ec13(0x2ee),_0x4378c4[_0x44ec13(0x444)]=_0x44ec13(0x248),_0x4378c4[_0x44ec13(0x320)]='awaiting_with_pending',_0x4378c4[_0x44ec13(0x15b)]=_0x44ec13(0x240),_0x4378c4[_0x44ec13(0x3db)]=_0x44ec13(0x1e5),_0x4378c4[_0x44ec13(0x3a7)]=_0x44ec13(0x19e),_0x4378c4))(y||{});class J{constructor(_0x57f501,_0x2d572e,_0x422f14,_0x209814,_0x52b33b,_0x13235c,_0xf8cecf,_0x3ed576,_0x3e30a9){const _0x284381=_0x44ec13;d(this,_0x284381(0x4bc),null),d(this,'_pendingMutations',[]),(this[_0x284381(0x426)]=_0x57f501,this[_0x284381(0x2ed)]=_0x2d572e,this[_0x284381(0x4e6)]=_0x52b33b,this[_0x284381(0x30e)]=_0x13235c,this[_0x284381(0x428)]=_0xf8cecf,this[_0x284381(0x2d9)]=_0x3ed576,this[_0x284381(0x473)]=_0x3e30a9,this[_0x284381(0x4bc)]=_0x422f14,this[_0x284381(0x2e6)]=_0x209814);}['_checkMissing'](_0x56fd5a){const _0x523e98=_0x44ec13,_0x1dca61=this[_0x523e98(0x2d9)]['getCurrentRevForDocument'](this[_0x523e98(0x426)]);return _0x56fd5a[_0x523e98(0x1b5)]>_0x1dca61+0x1?(this[_0x523e98(0x4e6)][_0x523e98(0x407)]({'from':_0x1dca61,'to':_0x56fd5a[_0x523e98(0x1b5)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x27813e){const _0x59522e=_0x44ec13;this[_0x59522e(0x428)][_0x59522e(0x1ac)](this[_0x59522e(0x426)],_0x27813e);}[_0x44ec13(0x19f)](_0x20faea){const _0x19f34e=_0x44ec13;var _0x2d02c4,_0x3a62da;(_0x3a62da=(_0x2d02c4=this[_0x19f34e(0x4e6)])['onTransformSelections'])==null||_0x3a62da[_0x19f34e(0x286)](_0x2d02c4,_0x20faea);}['_transformIMECache'](_0x1b9a2e){const _0x329502=_0x44ec13;var _0x3f40b4,_0x68e34e;return(_0x68e34e=(_0x3f40b4=this[_0x329502(0x4e6)])[_0x329502(0x177)])==null?void 0x0:_0x68e34e[_0x329502(0x286)](_0x3f40b4,_0x1b9a2e);}[_0x44ec13(0x242)](_0x37c598){const _0x3ac699=_0x44ec13;var _0x2060e6,_0x1c2fdb,_0x4d8c58;return(_0x4d8c58=(_0x1c2fdb=(_0x2060e6=this[_0x3ac699(0x4e6)])[_0x3ac699(0x2a8)])==null?void 0x0:_0x1c2fdb['call'](_0x2060e6,_0x37c598))!=null?_0x4d8c58:_0x37c598;}[_0x44ec13(0x25a)](_0x5a0bab){const _0x5a3e00=_0x44ec13;var _0x5759b6,_0x5c16ed;if(this[_0x5a3e00(0x2ed)]===A[_0x5a3e00(0x344)]){const {unitID:_0x2b3e0f,mutations:_0x6165ae,memberID:_0x4bce87}=_0x5a0bab,_0x2f561e=_0x6165ae[0x0][_0x5a3e00(0x2eb)][_0x5a3e00(0x442)];Array[_0x5a3e00(0x369)](_0x2f561e)&&_0x2f561e[_0x5a3e00(0x3b4)]>0x0&&((_0x5c16ed=(_0x5759b6=this[_0x5a3e00(0x4e6)])['onSyncEditingCollabCursor'])==null||_0x5c16ed[_0x5a3e00(0x286)](_0x5759b6,{'unitID':_0x2b3e0f,'memberID':_0x4bce87,'textRanges':_0x2f561e}));}}[_0x44ec13(0x36b)](){const _0x3e8b57=_0x44ec13;this[_0x3e8b57(0x473)][_0x3e8b57(0x4b3)](this[_0x3e8b57(0x426)],this[_0x3e8b57(0x2ed)],this['_awaitingChangeset'],this[_0x3e8b57(0x2e6)]);}['_getCurrentRevision'](){const _0xebb7de=_0x44ec13;return this['_revisionService']['getCurrentRevForDocument'](this[_0xebb7de(0x426)]);}[_0x44ec13(0x358)](){const _0x17c0e8=_0x44ec13;this['_revisionService'][_0x17c0e8(0x410)](this[_0x17c0e8(0x426)]);}[_0x44ec13(0x3cb)](_0x5b0fec){const _0xba0f82=_0x44ec13;var _0x22581c;const _0x541584=this[_0xba0f82(0x242)](_0x5b0fec),_0x28009a=a[_0xba0f82(0x1b8)](_0x541584[_0xba0f82(0x1cb)],this['_commandService'],{'fromCollab':!0x0});if(!_0x28009a['result'])throw _0x28009a[_0xba0f82(0x182)]instanceof Error?_0x28009a[_0xba0f82(0x182)]:new Error((_0x22581c=_0x28009a[_0xba0f82(0x182)])!=null?_0x22581c:_0xba0f82(0x216));this['_transformIMECache'](_0x541584),this['_transformUndoredo'](_0x5b0fec),this['_transformSelections'](_0x541584),this['_syncEditingCollabCursor'](_0x541584),this[_0xba0f82(0x358)]();}}let se=class extends J{constructor(_0x4bdf3a,_0x212b86,_0x40bdc0,_0x167b64,_0x1db4e3,_0x336789,_0x476004,_0x5a1b44,_0x142f56,_0x4917de){const _0x161ddd=_0x44ec13;super(_0x4bdf3a,_0x212b86,null,[],_0x40bdc0,_0x5a1b44,_0x476004,_0x167b64,_0x1db4e3),d(this,_0x161ddd(0x4fe),_0x161ddd(0x194)),(this[_0x161ddd(0x360)]=_0x336789,this[_0x161ddd(0x49d)]=_0x142f56,this['_transformService']=_0x4917de);}[_0x44ec13(0x443)](_0x34d1e3){const _0x4318a2=_0x44ec13,_0x2dbaca=this[_0x4318a2(0x360)]['createInstance'](H,this[_0x4318a2(0x426)],this['type'],[_0x34d1e3],this['_handler']);return _0x2dbaca['_schedule'](),_0x2dbaca[_0x4318a2(0x36b)](),_0x2dbaca;}[_0x44ec13(0x37d)](_0xe00474){const _0x25c32f=_0x44ec13;if(this['_checkMissing'](_0xe00474))return this[_0x25c32f(0x360)]['createInstance']($,this[_0x25c32f(0x426)],this[_0x25c32f(0x2ed)],null,[],null,[_0xe00474],this[_0x25c32f(0x4e6)]);try{const _0x4afbe4=this[_0x25c32f(0x4cc)][_0x25c32f(0x304)](_0xe00474,[Ms]);if(_[_0x25c32f(0x502)](_0x4afbe4)){const {c1Prime:_0x51d93d}=_0x4afbe4;return this[_0x25c32f(0x3cb)](_0x51d93d),this;}throw _0x4afbe4['error'];}catch(_0x21a2e5){return this[_0x25c32f(0x49d)]['error'](_0x21a2e5),this['_onConflict'](!0x1);}}[_0x44ec13(0x4b9)](_0x428631){const _0x3bcf42=_0x44ec13;return this['_injector'][_0x3bcf42(0x3be)](F,this['unitID'],this[_0x3bcf42(0x2ed)],null,[],this[_0x3bcf42(0x4e6)],_0x428631);}[_0x44ec13(0x1de)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x44ec13(0x218)](){const _0x3df2c6=_0x44ec13;return this[_0x3df2c6(0x360)][_0x3df2c6(0x3be)](W,this[_0x3df2c6(0x426)],this[_0x3df2c6(0x2ed)],null,[],this[_0x3df2c6(0x4e6)]);}[_0x44ec13(0x2c2)](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x439f4a=_0x44ec13,_0x1f830d=this['_revisionService'][_0x439f4a(0x188)](this[_0x439f4a(0x426)]);return this[_0x439f4a(0x4e6)][_0x439f4a(0x407)]({'from':_0x1f830d,'to':0x0}),this[_0x439f4a(0x360)][_0x439f4a(0x3be)]($,this['unitID'],this[_0x439f4a(0x2ed)],null,[],null,[],this[_0x439f4a(0x4e6)]);}};se=q([f(0x3,a[_0x44ec13(0x3ed)](_['RevisionService'])),f(0x4,a[_0x44ec13(0x3ed)](exports['LocalCacheService'])),f(0x5,a['Inject'](a[_0x44ec13(0x4cf)])),f(0x6,a['IUndoRedoService']),f(0x7,a[_0x44ec13(0x359)]),f(0x8,a[_0x44ec13(0x2d1)]),f(0x9,_[_0x44ec13(0x275)])],se);let H=class extends J{constructor(_0x4d7649,_0x40bacf,_0x46b5b6,_0x326b23,_0xed50f1,_0x5c2985,_0x304233,_0x4a1d81,_0x2c4a06,_0x51b055,_0x5d8673,_0x4f4027,_0x2cf807,_0x24b4a9){const _0x749e19=_0x44ec13;super(_0x4d7649,_0x40bacf,null,_0x46b5b6,_0x326b23,_0x51b055,_0x24b4a9,_0x5c2985,_0x304233),d(this,'status','pending'),d(this,_0x749e19(0x3cf),null),d(this,_0x749e19(0x3ae),null),(this[_0x749e19(0x360)]=_0xed50f1,this[_0x749e19(0x2bd)]=_0x4a1d81,this[_0x749e19(0x49d)]=_0x2c4a06,this[_0x749e19(0x148)]=_0x5d8673,this[_0x749e19(0x4cc)]=_0x4f4027,this[_0x749e19(0x2b9)]=_0x2cf807);}[_0x44ec13(0x443)](_0x182a4c){const _0x5c1ca2=_0x44ec13;return this[_0x5c1ca2(0x2e6)][_0x5c1ca2(0x3a3)](_0x182a4c),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x5c8bf7){const _0x41b517=_0x44ec13;if(this[_0x41b517(0x50d)](_0x5c8bf7))return this[_0x41b517(0x416)](),this[_0x41b517(0x360)][_0x41b517(0x3be)]($,this['unitID'],this['type'],null,this[_0x41b517(0x2e6)],null,[_0x5c8bf7],this[_0x41b517(0x4e6)]);try{const _0x284ad1=this['_transformService']['transformMutationsWithChangeset'](_0x5c8bf7,this[_0x41b517(0x2e6)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x284ad1)){const {c1Prime:_0x1d01ea,m2Prime:_0x3b6e7d}=_0x284ad1;this[_0x41b517(0x3cb)](_0x1d01ea);const _0x40d7cc=this['_injector'][_0x41b517(0x3be)](H,this[_0x41b517(0x426)],this['type'],_0x3b6e7d,this[_0x41b517(0x4e6)]);return this['_clearScheduledTask'](),_0x40d7cc['_schedule'](this[_0x41b517(0x3cf)]?Math['max'](0x0,new Date()[_0x41b517(0x229)]()-this['_scheduleTimestamp']):this[_0x41b517(0x338)]()),_0x40d7cc;}throw _0x284ad1[_0x41b517(0x182)];}catch(_0x53b24a){return this['_logService'][_0x41b517(0x182)](_0x53b24a),this[_0x41b517(0x4b9)](!0x1);}}[_0x44ec13(0x1de)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x44ec13(0x454)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x44ec13(0x218)](){const _0x4a0e68=_0x44ec13;return this[_0x4a0e68(0x416)](),this['_injector'][_0x4a0e68(0x3be)](W,this[_0x4a0e68(0x426)],this[_0x4a0e68(0x2ed)],null,this['_pendingMutations'],this[_0x4a0e68(0x4e6)]);}[_0x44ec13(0x2c2)](){return this;}[_0x44ec13(0x505)](_0x40bdf3){const _0x396987=_0x44ec13,_0x40b2d7=_0x40bdf3!=null?_0x40bdf3:this[_0x396987(0x338)]();this[_0x396987(0x3cf)]=new Date()[_0x396987(0x229)](),this[_0x396987(0x3ae)]=window['setTimeout'](()=>{const _0x1dff88=_0x396987;this[_0x1dff88(0x416)]();let _0x5a2bed=null;switch(this[_0x1dff88(0x2ed)]){case A['UNIVER_SHEET']:{_0x5a2bed=st(this[_0x1dff88(0x2e6)],this[_0x1dff88(0x426)],this['_univerInstanceService'],this[_0x1dff88(0x2d9)],this[_0x1dff88(0x2bd)]);break;}case A[_0x1dff88(0x344)]:{this['_pendingMutations'][_0x1dff88(0x479)](_0x3f1c15=>_0x3f1c15['id']===B[_0x1dff88(0x3b3)]['id'])?_0x5a2bed=Ns(this[_0x1dff88(0x2e6)],this[_0x1dff88(0x426)],this[_0x1dff88(0x2b9)],this[_0x1dff88(0x2d9)],this[_0x1dff88(0x2bd)]):_0x5a2bed=st(this['_pendingMutations'],this[_0x1dff88(0x426)],this[_0x1dff88(0x2b9)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x1dff88(0x1f0)+this[_0x1dff88(0x2ed)]+_0x1dff88(0x1b4));}const {changeset:_0x43546f,pendingMutations:_0x37c491}=_0x5a2bed;this['_handler'][_0x1dff88(0x3d0)](_0x43546f);const _0x45078c=_0x37c491[_0x1dff88(0x3b4)]?this[_0x1dff88(0x360)]['createInstance'](x,this['unitID'],this[_0x1dff88(0x2ed)],_0x43546f,_0x37c491,this[_0x1dff88(0x4e6)]):this['_injector']['createInstance'](V,this[_0x1dff88(0x426)],this[_0x1dff88(0x2ed)],_0x43546f,this[_0x1dff88(0x4e6)]);_0x45078c[_0x1dff88(0x36b)](),this[_0x1dff88(0x4e6)][_0x1dff88(0x3b5)](this,_0x45078c);},_0x40b2d7);}['_getSendChangesetTimeout'](){const _0x381b7b=_0x44ec13;var _0x18be91;return(_0x18be91=this[_0x381b7b(0x148)]['getConfig'](_t))!=null?_0x18be91:Yt;}[_0x44ec13(0x277)](){const _0x4a3c7d=_0x44ec13;throw new Error(_0x4a3c7d(0x3ca));}[_0x44ec13(0x416)](){const _0x2701bd=_0x44ec13;this[_0x2701bd(0x3ae)]!=null&&(clearTimeout(this[_0x2701bd(0x3ae)]),this[_0x2701bd(0x3ae)]=null);}[_0x44ec13(0x4b9)](_0x10f273){const _0x5645e1=_0x44ec13;return this[_0x5645e1(0x416)](),this[_0x5645e1(0x360)]['createInstance'](F,this[_0x5645e1(0x426)],this[_0x5645e1(0x2ed)],null,this[_0x5645e1(0x2e6)],this['_handler'],_0x10f273);}};H=q([f(0x4,a['Inject'](a[_0x44ec13(0x4cf)])),f(0x5,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x1a7)])),f(0x6,a[_0x44ec13(0x3ed)](exports['LocalCacheService'])),f(0x7,a[_0x44ec13(0x3ed)](X)),f(0x8,a[_0x44ec13(0x2d1)]),f(0x9,a[_0x44ec13(0x359)]),f(0xa,a[_0x44ec13(0x259)]),f(0xb,_[_0x44ec13(0x275)]),f(0xc,a[_0x44ec13(0x4e2)]),f(0xd,a[_0x44ec13(0x4f5)])],H);let V=class extends J{constructor(_0x38b331,_0x138034,_0x3b6559,_0x2a4ec3,_0x32aad5,_0x440f14,_0x49c61e,_0xb02807,_0x35799a,_0x1c9a6c,_0x320bf1){const _0x28b792=_0x44ec13;super(_0x38b331,_0x138034,_0x3b6559,[],_0x2a4ec3,_0xb02807,_0x320bf1,_0x440f14,_0x49c61e),d(this,_0x28b792(0x4fe),_0x28b792(0x248)),(this[_0x28b792(0x360)]=_0x32aad5,this[_0x28b792(0x49d)]=_0x35799a,this[_0x28b792(0x4cc)]=_0x1c9a6c);}[_0x44ec13(0x443)](_0x324be6){const _0x3b6aab=_0x44ec13,_0x54376a=this['_injector'][_0x3b6aab(0x3be)](x,this['unitID'],this[_0x3b6aab(0x2ed)],this[_0x3b6aab(0x4bc)],[_0x324be6],this[_0x3b6aab(0x4e6)]);return _0x54376a['_updateLocalCache'](),_0x54376a;}[_0x44ec13(0x37d)](_0x7aec44){const _0x1a40b2=_0x44ec13;if(this[_0x1a40b2(0x50d)](_0x7aec44))return this[_0x1a40b2(0x360)][_0x1a40b2(0x3be)]($,this[_0x1a40b2(0x426)],this['type'],this['_awaitingChangeset'],[],null,[_0x7aec44],this[_0x1a40b2(0x4e6)]);try{const _0xa3f8b8=this[_0x1a40b2(0x4cc)][_0x1a40b2(0x311)]([_0x7aec44],[this['_awaitingChangeset']],!0x1);if(_[_0x1a40b2(0x1c6)](_0xa3f8b8)){const {c1Prime:_0x2d26b5,c2Prime:_0x32cfb8}=_0xa3f8b8;this[_0x1a40b2(0x3cb)](_0x2d26b5[0x0]),_0x32cfb8[0x0][_0x1a40b2(0x46f)]=this[_0x1a40b2(0x23b)]();const _0x439841=this[_0x1a40b2(0x360)][_0x1a40b2(0x3be)](V,this[_0x1a40b2(0x426)],this['type'],_0x32cfb8[0x0],this[_0x1a40b2(0x4e6)]);return _0x439841['_updateLocalCache'](),_0x439841;}return this[_0x1a40b2(0x4b9)](!0x1);}catch(_0x497dd0){return this['_logService'][_0x1a40b2(0x182)](_0x497dd0),this[_0x1a40b2(0x4b9)](!0x1);}}[_0x44ec13(0x1de)](_0x1263cf){const _0x14083f=_0x44ec13,_0x4aa376=this[_0x14083f(0x2d9)][_0x14083f(0x188)](this['unitID']);if(_0x1263cf[_0x14083f(0x1b5)]<_0x4aa376-0x1)return this;if(this[_0x14083f(0x50d)](_0x1263cf))return this['_injector'][_0x14083f(0x3be)]($,this[_0x14083f(0x426)],this[_0x14083f(0x2ed)],null,[],this['_awaitingChangeset'],[],this[_0x14083f(0x4e6)]);this[_0x14083f(0x358)]();const _0x46720c=this[_0x14083f(0x360)][_0x14083f(0x3be)](se,this[_0x14083f(0x426)],this[_0x14083f(0x2ed)],this[_0x14083f(0x4e6)]);return _0x46720c[_0x14083f(0x36b)](),_0x46720c;}['onRemoteRej'](_0x2e82d9){const _0x2438d6=_0x44ec13;return this[_0x2438d6(0x4b9)](!!(_0x2e82d9!=null&&_0x2e82d9['isPermissionRej']));}[_0x44ec13(0x218)](){const _0x67acfa=_0x44ec13;return this[_0x67acfa(0x360)]['createInstance'](W,this[_0x67acfa(0x426)],this[_0x67acfa(0x2ed)],this['_awaitingChangeset'],[],this[_0x67acfa(0x4e6)]);}[_0x44ec13(0x2c2)](){return this;}[_0x44ec13(0x277)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}[_0x44ec13(0x4b9)](_0x3fcaa5){const _0xb48d97=_0x44ec13;return this[_0xb48d97(0x360)][_0xb48d97(0x3be)](F,this[_0xb48d97(0x426)],this[_0xb48d97(0x2ed)],this['_awaitingChangeset'],[],this['_handler'],_0x3fcaa5);}};V=q([f(0x4,a[_0x44ec13(0x3ed)](a['Injector'])),f(0x5,a[_0x44ec13(0x3ed)](_['RevisionService'])),f(0x6,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),f(0x7,a[_0x44ec13(0x359)]),f(0x8,a[_0x44ec13(0x2d1)]),f(0x9,_[_0x44ec13(0x275)]),f(0xa,a[_0x44ec13(0x4f5)])],V);let x=class extends J{constructor(_0x53198b,_0x243ede,_0x18b770,_0x2b57aa,_0x153930,_0x1c5884,_0xb2af7f,_0x25a872,_0x88d314,_0x1105ec,_0x1f5be1,_0x7bb3b7){const _0x4d8a53=_0x44ec13;super(_0x53198b,_0x243ede,_0x18b770,_0x2b57aa,_0x153930,_0x88d314,_0x7bb3b7,_0xb2af7f,_0x25a872),d(this,_0x4d8a53(0x4fe),_0x4d8a53(0x24d)),(this[_0x4d8a53(0x360)]=_0x1c5884,this['_logService']=_0x1105ec,this[_0x4d8a53(0x4cc)]=_0x1f5be1);}[_0x44ec13(0x443)](_0x548f0a){const _0x3c5e16=_0x44ec13;return this[_0x3c5e16(0x2e6)][_0x3c5e16(0x3a3)](_0x548f0a),this;}[_0x44ec13(0x37d)](_0x533fc3){const _0x4dea89=_0x44ec13;if(this[_0x4dea89(0x50d)](_0x533fc3))return this[_0x4dea89(0x360)][_0x4dea89(0x3be)]($,this[_0x4dea89(0x426)],this[_0x4dea89(0x2ed)],this[_0x4dea89(0x4bc)],this[_0x4dea89(0x2e6)],null,[_0x533fc3],this['_handler']);try{const _0x35ac0c=this['_transformService'][_0x4dea89(0x311)]([_0x533fc3],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x35ac0c)){const {c1Prime:_0x43c999,c2Prime:_0x49ad6e}=_0x35ac0c,_0x2775ff=this['_transformService'][_0x4dea89(0x304)](_0x43c999[0x0],this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x2775ff)){const {c1Prime:_0x442b4e,m2Prime:_0x1841dd}=_0x2775ff;return this['_executeRemoteChangeset'](_0x442b4e),_0x49ad6e[0x0]['baseRev']=this[_0x4dea89(0x23b)](),this['_injector'][_0x4dea89(0x3be)](x,this['unitID'],this[_0x4dea89(0x2ed)],_0x49ad6e[0x0],_0x1841dd,this[_0x4dea89(0x4e6)]);}throw _0x2775ff[_0x4dea89(0x182)];}throw _0x35ac0c[_0x4dea89(0x182)];}catch(_0x538057){return this['_logService'][_0x4dea89(0x182)](_0x538057),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x2ed99b){const _0x26f8ef=_0x44ec13;if(this[_0x26f8ef(0x50d)](_0x2ed99b))return this[_0x26f8ef(0x360)][_0x26f8ef(0x3be)]($,this[_0x26f8ef(0x426)],this[_0x26f8ef(0x2ed)],null,this[_0x26f8ef(0x2e6)],this[_0x26f8ef(0x4bc)],[],this[_0x26f8ef(0x4e6)]);this[_0x26f8ef(0x358)]();const _0x3cf45a=this[_0x26f8ef(0x360)]['createInstance'](H,this['unitID'],this['type'],this[_0x26f8ef(0x2e6)],this[_0x26f8ef(0x4e6)]);return _0x3cf45a[_0x26f8ef(0x505)](),_0x3cf45a[_0x26f8ef(0x36b)](),_0x3cf45a;}[_0x44ec13(0x454)](_0x52516a){const _0x5c4983=_0x44ec13;return this[_0x5c4983(0x4b9)](!!(_0x52516a!=null&&_0x52516a['isPermissionRej']));}[_0x44ec13(0x218)](){const _0x3fa654=_0x44ec13;return this['_injector'][_0x3fa654(0x3be)](W,this[_0x3fa654(0x426)],this['type'],this[_0x3fa654(0x4bc)],this['_pendingMutations'],this[_0x3fa654(0x4e6)]);}[_0x44ec13(0x2c2)](){return this;}['resend'](){const _0x467c93=_0x44ec13;this[_0x467c93(0x4e6)][_0x467c93(0x3d0)](this[_0x467c93(0x4bc)]);}[_0x44ec13(0x4b9)](_0x5891fc){const _0x444e40=_0x44ec13;return this['_injector'][_0x444e40(0x3be)](F,this[_0x444e40(0x426)],this[_0x444e40(0x2ed)],null,this[_0x444e40(0x2e6)],this[_0x444e40(0x4e6)],_0x5891fc);}};x=q([f(0x5,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),f(0x6,a['Inject'](_[_0x44ec13(0x1a7)])),f(0x7,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),f(0x8,a[_0x44ec13(0x359)]),f(0x9,a[_0x44ec13(0x2d1)]),f(0xa,_[_0x44ec13(0x275)]),f(0xb,a[_0x44ec13(0x4f5)])],x);let F=class extends J{constructor(_0x83efec,_0x3d47fa,_0x467a8c,_0x298710,_0xc17912,_0xd205cd=!0x1,_0x144025,_0x1685e5,_0xbb1ef9,_0x169307,_0x35eed8,_0x513ccb,_0x1db5fb){const _0x473744=_0x44ec13;super(_0x83efec,_0x3d47fa,_0x467a8c,_0x298710,_0xc17912,_0x1685e5,_0xbb1ef9,_0x35eed8,_0x169307),d(this,'status',_0x473744(0x1e5)),(this['_isPermissionRej']=_0xd205cd,this[_0x473744(0x3fc)]=_0x144025,this['_localeService']=_0x513ccb,this['_notificationService']=_0x1db5fb,this[_0x473744(0x4aa)](),this[_0x473744(0x2cb)](),this[_0x473744(0x31a)]());}[_0x44ec13(0x443)](){return this;}[_0x44ec13(0x37d)](){return this;}[_0x44ec13(0x1de)](){return this;}[_0x44ec13(0x454)](){return this;}['toggleOffline'](){return this;}[_0x44ec13(0x2c2)](){return this;}[_0x44ec13(0x277)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x44ec13(0x2cb)](){const _0x22559f=_0x44ec13;this[_0x22559f(0x473)][_0x22559f(0x4b3)](this['unitID'],this['type'],null,[]);}[_0x44ec13(0x4aa)](){const _0x49d2d8=_0x44ec13;this[_0x49d2d8(0x309)]?this[_0x49d2d8(0x294)][_0x49d2d8(0x37b)]({'title':this[_0x49d2d8(0x330)]['t']('permission.title'),'content':this[_0x49d2d8(0x330)]['t'](_0x49d2d8(0x339)),'type':'error','duration':0x0}):this[_0x49d2d8(0x294)][_0x49d2d8(0x37b)]({'title':this[_0x49d2d8(0x330)]['t'](_0x49d2d8(0x237)),'content':this[_0x49d2d8(0x330)]['t'](_0x49d2d8(0x1a0)),'type':_0x49d2d8(0x182),'duration':0x0});}['_disableEditing'](){const _0x5f0a76=_0x44ec13;this[_0x5f0a76(0x3fc)][_0x5f0a76(0x202)](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};F=q([f(0x6,a['Inject'](a['IPermissionService'])),f(0x7,a[_0x44ec13(0x359)]),f(0x8,a[_0x44ec13(0x4f5)]),f(0x9,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),f(0xa,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x1a7)])),f(0xb,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)])),f(0xc,M['INotificationService'])],F);let W=class extends J{constructor(_0xeb54b6,_0x2a07ba,_0x2092df,_0x1f3e6f,_0x406797,_0x6c6baf,_0x1bdeb9,_0x143168,_0x384e25,_0x51a678){const _0x3008c5=_0x44ec13;super(_0xeb54b6,_0x2a07ba,_0x2092df,_0x1f3e6f,_0x406797,_0x384e25,_0x51a678,_0x1bdeb9,_0x143168),d(this,_0x3008c5(0x4fe),_0x3008c5(0x19e)),this['_injector']=_0x6c6baf;}[_0x44ec13(0x443)](_0x24a1f0){const _0xe114d8=_0x44ec13;return this[_0xe114d8(0x2e6)][_0xe114d8(0x3a3)](_0x24a1f0),this[_0xe114d8(0x36b)](),this;}[_0x44ec13(0x37d)](_0xc343af){const _0x32339d=_0x44ec13;throw new Error(_0x32339d(0x357));}[_0x44ec13(0x1de)](){const _0x33bb13=_0x44ec13;throw new Error(_0x33bb13(0x4c5));}[_0x44ec13(0x454)](){const _0x46575e=_0x44ec13;throw new Error(_0x46575e(0x535));}[_0x44ec13(0x218)](){return this;}[_0x44ec13(0x2c2)](){const _0x39841b=_0x44ec13,{_injector:_0x355e8d,_pendingMutations:_0x12f524,_awaitingChangeset:_0x3407fe,unitID:_0x55ed3b,_handler:_0x17c881,type:_0x3d0ffc}=this,_0x5937bb=Ot(_0x355e8d,_0x55ed3b,_0x3d0ffc,_0x3407fe,_0x12f524,_0x17c881);return _0x5937bb instanceof H?_0x5937bb['_schedule']():(_0x5937bb instanceof x||_0x5937bb instanceof V)&&_0x5937bb[_0x39841b(0x277)](),_0x5937bb;}[_0x44ec13(0x277)](){const _0x5ebc8e=_0x44ec13;throw new Error(_0x5ebc8e(0x406));}};W=q([f(0x5,a['Inject'](a[_0x44ec13(0x4cf)])),f(0x6,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x1a7)])),f(0x7,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),f(0x8,a[_0x44ec13(0x359)]),f(0x9,a[_0x44ec13(0x4f5)])],W);let $=class extends J{constructor(_0x5b17b,_0xa4483,_0x21c1d5,_0x5a77a0,_0x257b70,_0x20898b,_0x4d5f00,_0x3ec6ac,_0x1bb5d5,_0x8ba88a,_0x38924a,_0x15fc8d,_0x2b23eb,_0x34e240){const _0x3fe587=_0x44ec13;super(_0x5b17b,_0xa4483,_0x21c1d5,_0x5a77a0,_0x4d5f00,_0x15fc8d,_0x2b23eb,_0x1bb5d5,_0x8ba88a),d(this,_0x3fe587(0x4fe),'fetch_missing'),(this[_0x3fe587(0x22d)]=_0x257b70,this[_0x3fe587(0x38c)]=_0x20898b,this[_0x3fe587(0x360)]=_0x3ec6ac,this['_logService']=_0x38924a,this[_0x3fe587(0x4cc)]=_0x34e240);}[_0x44ec13(0x21f)](_0x5cb5c3){const _0x4bf381=_0x44ec13;try{const _0x266a45=[..._0x5cb5c3,...this[_0x4bf381(0x38c)]],_0x232864=[this[_0x4bf381(0x4bc)]||this[_0x4bf381(0x22d)]][_0x4bf381(0x1ee)](_0x3ad38c=>!!_0x3ad38c);let _0x405374,_0x225b4f;if(_0x232864['length']){const _0x16a3a5=this[_0x4bf381(0x4cc)]['transformChangesets'](_0x266a45,_0x232864,!0x1);if(!_[_0x4bf381(0x1c6)](_0x16a3a5))throw _0x16a3a5[_0x4bf381(0x182)];_0x405374=_0x16a3a5[_0x4bf381(0x24f)],_0x225b4f=_0x16a3a5[_0x4bf381(0x4ed)];}else _0x405374=_0x266a45,_0x225b4f=[];let _0x23c276=this[_0x4bf381(0x2e6)];_0x405374[_0x4bf381(0x39a)](_0xb71346=>{const _0x5492f1=_0x4bf381;let _0x32b9cd;if(_0x23c276['length']){const _0x14e713=this[_0x5492f1(0x4cc)][_0x5492f1(0x304)](_0xb71346,_0x23c276);if(!_['isTransformMutationsWithChangesetSuccess'](_0x14e713))throw _0x14e713['error'];_0x32b9cd=_0x14e713['c1Prime'],_0x23c276=_0x14e713[_0x5492f1(0x2f1)];}else _0x32b9cd=_0xb71346;this[_0x5492f1(0x3cb)](_0x32b9cd);}),this[_0x4bf381(0x22d)]&&this[_0x4bf381(0x358)](),this[_0x4bf381(0x4bc)]&&_0x225b4f[_0x4bf381(0x3b4)]&&(_0x225b4f[0x0][_0x4bf381(0x46f)]=this[_0x4bf381(0x23b)]());let _0x2f8afc;if(this[_0x4bf381(0x4bc)]&&_0x23c276[_0x4bf381(0x3b4)]!==0x0)_0x2f8afc=this[_0x4bf381(0x360)][_0x4bf381(0x3be)](x,this[_0x4bf381(0x426)],this['type'],_0x225b4f[0x0],_0x23c276,this[_0x4bf381(0x4e6)]);else{if(this['_awaitingChangeset']&&_0x23c276['length']===0x0)_0x225b4f[0x0][_0x4bf381(0x46f)]=this[_0x4bf381(0x23b)](),_0x2f8afc=this[_0x4bf381(0x360)][_0x4bf381(0x3be)](V,this['unitID'],this[_0x4bf381(0x2ed)],_0x225b4f[0x0],this[_0x4bf381(0x4e6)]);else{if(_0x23c276['length']!==0x0){const _0x41d6c2=this[_0x4bf381(0x360)][_0x4bf381(0x3be)](H,this[_0x4bf381(0x426)],this[_0x4bf381(0x2ed)],_0x23c276,this[_0x4bf381(0x4e6)]);_0x41d6c2['_schedule'](),_0x2f8afc=_0x41d6c2;}else _0x2f8afc=this[_0x4bf381(0x360)]['createInstance'](se,this[_0x4bf381(0x426)],this['type'],this[_0x4bf381(0x4e6)]);}}return _0x2f8afc[_0x4bf381(0x36b)](),_0x2f8afc;}catch(_0xb16bf7){return this[_0x4bf381(0x49d)][_0x4bf381(0x182)]('[FetchMissState]',_0x4bf381(0x49a),_0xb16bf7),this['_injector'][_0x4bf381(0x3be)](F,this[_0x4bf381(0x426)],this[_0x4bf381(0x2ed)],this['_awaitingChangeset'],this[_0x4bf381(0x2e6)],this['_handler'],!0x1);}}[_0x44ec13(0x277)](){const _0x245cbb=_0x44ec13;throw new Error(_0x245cbb(0x47d));}[_0x44ec13(0x443)](_0x37e51e){const _0x1d4788=_0x44ec13;return this['_pendingMutations'][_0x1d4788(0x3a3)](_0x37e51e),this;}['onRemoteChangeset'](_0x528586){const _0x2e5514=_0x44ec13;return this[_0x2e5514(0x38c)][_0x2e5514(0x3a3)](_0x528586),this;}[_0x44ec13(0x1de)](_0x2a2962){const _0x4a9bf5=_0x44ec13;if(this[_0x4a9bf5(0x4bc)])return this[_0x4a9bf5(0x22d)]=this[_0x4a9bf5(0x4bc)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x44ec13(0x454)](_0x434a63){const _0x1a2d1e=_0x44ec13;return this[_0x1a2d1e(0x4b9)](!!(_0x434a63!=null&&_0x434a63[_0x1a2d1e(0x53b)]));}[_0x44ec13(0x218)](){const _0x47f333=_0x44ec13;return this[_0x47f333(0x360)][_0x47f333(0x3be)](W,this[_0x47f333(0x426)],this[_0x47f333(0x2ed)],this[_0x47f333(0x4bc)],this[_0x47f333(0x2e6)],this[_0x47f333(0x4e6)]);}[_0x44ec13(0x2c2)](){return this;}['_onConflict'](_0x19962e){const _0x5880de=_0x44ec13;return this[_0x5880de(0x360)][_0x5880de(0x3be)](F,this[_0x5880de(0x426)],this['type'],this[_0x5880de(0x4bc)],this[_0x5880de(0x2e6)],this['_handler'],_0x19962e);}};$=q([f(0x7,a['Inject'](a['Injector'])),f(0x8,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x1a7)])),f(0x9,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),f(0xa,a[_0x44ec13(0x2d1)]),f(0xb,a['ICommandService']),f(0xc,a[_0x44ec13(0x4f5)]),f(0xd,_[_0x44ec13(0x275)])],$);function Ot(_0x32f81b,_0x22bf34,_0x11364a,_0x1b7289,_0x12cab2,_0x2e65fe){const _0x3740d5=_0x44ec13;return _0x1b7289&&_0x12cab2['length']?_0x32f81b[_0x3740d5(0x3be)](x,_0x22bf34,_0x11364a,_0x1b7289,_0x12cab2,_0x2e65fe):_0x1b7289?_0x32f81b[_0x3740d5(0x3be)](V,_0x22bf34,_0x11364a,_0x1b7289,_0x2e65fe):_0x12cab2[_0x3740d5(0x3b4)]?_0x32f81b['createInstance'](H,_0x22bf34,_0x11364a,_0x12cab2,_0x2e65fe):_0x32f81b[_0x3740d5(0x3be)](se,_0x22bf34,_0x11364a,_0x2e65fe);}var js=Object[_0x44ec13(0x2ec)],$s=Object[_0x44ec13(0x2e1)],Ye=(_0x172e94,_0x57ee04,_0x24c913,_0x432488)=>{const _0x7843a0=_0x44ec13;for(var _0x187988=_0x432488>0x1?void 0x0:_0x432488?$s(_0x57ee04,_0x24c913):_0x57ee04,_0x5e25c6=_0x172e94[_0x7843a0(0x3b4)]-0x1,_0x276080;_0x5e25c6>=0x0;_0x5e25c6--)(_0x276080=_0x172e94[_0x5e25c6])&&(_0x187988=(_0x432488?_0x276080(_0x57ee04,_0x24c913,_0x187988):_0x276080(_0x187988))||_0x187988);return _0x432488&&_0x187988&&js(_0x57ee04,_0x24c913,_0x187988),_0x187988;},p=(_0xb3e3ed,_0x99b8ed)=>(_0x35ba02,_0x1287d3)=>_0x99b8ed(_0x35ba02,_0x1287d3,_0xb3e3ed);exports[_0x44ec13(0x273)]=class extends a['RxDisposable']{constructor(_0x4e63c0,_0x21fb6c,_0x516405,_0x580d75,_0x337d43,_0x5c7c1f,_0xfb6417,_0x4156f9,_0x5bdef1,_0x4494fa,_0x524b6a,_0x4b3081,_0x21f524){const _0x100635=_0x44ec13;super(),d(this,_0x100635(0x2bc),new v[(_0x100635(0x362))](null)),d(this,_0x100635(0x52b),this[_0x100635(0x2bc)][_0x100635(0x439)]()),d(this,_0x100635(0x353)),d(this,_0x100635(0x48c),!0x1),d(this,_0x100635(0x44c),this[_0x100635(0x52b)][_0x100635(0x2d5)](v['map'](_0x47d49f=>_0x47d49f?_0x47d49f['status']:y[_0x100635(0x3a7)]),v[_0x100635(0x446)](0x1))),d(this,_0x100635(0x1c0),!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0x100635(0x426)]=_0x4e63c0,this[_0x100635(0x36d)]=_0x21fb6c,this['_type']=_0x516405,this['_injector']=_0x580d75,this[_0x100635(0x473)]=_0x337d43,this[_0x100635(0x312)]=_0x5c7c1f,this[_0x100635(0x330)]=_0xfb6417,this[_0x100635(0x2d9)]=_0x4156f9,this['_logService']=_0x5bdef1,this[_0x100635(0x30e)]=_0x4494fa,this['_messageService']=_0x524b6a,this[_0x100635(0x3fc)]=_0x4b3081,this[_0x100635(0x4a2)]=_0x21f524);}get[_0x44ec13(0x302)](){const _0x4efc5e=_0x44ec13;return this[_0x4efc5e(0x353)];}async['init'](){const _0xeb2b82=_0x44ec13;if(this[_0xeb2b82(0x302)])throw new Error(_0xeb2b82(0x323));await this[_0xeb2b82(0x2d0)]();}['pauseCollaboration'](){const _0x4f4b88=_0x44ec13;return this[_0x4f4b88(0x48c)]=!0x0,a[_0x4f4b88(0x1ef)](()=>{const _0x2f5199=_0x4f4b88;this[_0x2f5199(0x48c)]=!0x1,this[_0x2f5199(0x14f)]();});}[_0x44ec13(0x41c)](_0xe7fa5b){const _0x30eff=_0x44ec13;this[_0x30eff(0x353)]=_0xe7fa5b,this[_0x30eff(0x2bc)][_0x30eff(0x4a4)](_0xe7fa5b);}async['_init'](){const _0x4c4417=_0x44ec13;var _0x5ada43;this[_0x4c4417(0x41c)](await this[_0x4c4417(0x305)]()),this[_0x4c4417(0x4a2)]&&((_0x5ada43=this[_0x4c4417(0x4a2)])==null||_0x5ada43['editingUnit'](this['unitID']),this[_0x4c4417(0x399)](this[_0x4c4417(0x4a2)][_0x4c4417(0x527)](this[_0x4c4417(0x426)])[_0x4c4417(0x1d4)](_0x256e59=>{const _0x4c5faa=_0x4c4417;this[_0x4c5faa(0x49d)][_0x4c5faa(0x1bb)](_0x4c5faa(0x46a),'editing\x20status\x20changed\x20to',_0x256e59),_0x256e59===Tt[_0x4c5faa(0x42a)]?(this['_messageService'][_0x4c5faa(0x37b)]({'content':this[_0x4c5faa(0x330)]['t'](_0x4c5faa(0x2c1)),'type':K[_0x4c5faa(0x28f)][_0x4c5faa(0x482)]}),this['_permissionService']['updatePermissionPoint'](new C[(_0x4c5faa(0x4a0))](this['unitID'])['id'],!0x1)):this[_0x4c5faa(0x3fc)][_0x4c5faa(0x202)](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x0);})));let _0x1d7f46=!0x1;return this['disposeWithMe'](this[_0x4c4417(0x36d)][_0x4c4417(0x2b2)][_0x4c4417(0x1d4)](_0x20515e=>{const _0x3a6a70=_0x4c4417;_0x20515e===j[_0x3a6a70(0x4f0)]?this[_0x3a6a70(0x32f)](_0x1d7f46):_0x20515e===j[_0x3a6a70(0x3a7)]&&(_0x1d7f46=!0x0,this[_0x3a6a70(0x424)]());})),this[_0x4c4417(0x399)](this[_0x4c4417(0x36d)][_0x4c4417(0x15d)][_0x4c4417(0x1d4)](_0x4a2892=>{const _0x58b8d9=_0x4c4417;try{switch(_0x4a2892[_0x58b8d9(0x348)]){case _['CollaborationEvent']['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_['parseProtocolChangeset'](_0x4a2892[_0x58b8d9(0x387)]));break;}case _[_0x58b8d9(0x4f2)][_0x58b8d9(0x1a5)]:{this[_0x58b8d9(0x510)](_0x4a2892[_0x58b8d9(0x387)]);break;}case _['CollaborationEvent'][_0x58b8d9(0x195)]:{this[_0x58b8d9(0x43d)]();break;}case _[_0x58b8d9(0x4f2)][_0x58b8d9(0x522)]:{this[_0x58b8d9(0x191)](_0x4a2892[_0x58b8d9(0x387)][_0x58b8d9(0x2a6)][_0x58b8d9(0x341)](_0x8f9d9f=>_[_0x58b8d9(0x34e)](_0x8f9d9f)));break;}case _[_0x58b8d9(0x4f2)][_0x58b8d9(0x4dc)]:this[_0x58b8d9(0x43d)]({'isPermissionRej':!0x0});}}catch(_0xde1d6b){throw console[_0x58b8d9(0x182)]('Error\x20on\x20receiving\x20event',_0xde1d6b),_0xde1d6b;}})),this['_state'];}[_0x44ec13(0x296)](){const _0x5aac7f=_0x44ec13;this[_0x5aac7f(0x1c0)]=!0x1;}[_0x44ec13(0x282)](){const _0x5331b9=_0x44ec13;if(this[_0x5331b9(0x1c0)])throw new Error(_0x5331b9(0x394));this[_0x5331b9(0x1c0)]=!0x0;}[_0x44ec13(0x192)](_0x247b0e){const _0x449af9=_0x44ec13;this[_0x449af9(0x282)](),this['_updateState'](this[_0x449af9(0x353)]['appendMutation'](_0x247b0e)),this[_0x449af9(0x296)]();}[_0x44ec13(0x169)](_0x52b3fd){const _0x901576=_0x44ec13;if(!(_0x52b3fd[_0x901576(0x1b5)]<=this[_0x901576(0x2d9)][_0x901576(0x188)](this['unitID']))){if(this[_0x901576(0x48c)]){this['_remoteChangesetQueue']['push'](_0x52b3fd);return;}this[_0x901576(0x451)](_0x52b3fd);}}[_0x44ec13(0x14f)](){const _0x1fa5c4=_0x44ec13;this[_0x1fa5c4(0x4af)]['forEach'](_0x123f6d=>this[_0x1fa5c4(0x451)](_0x123f6d)),this[_0x1fa5c4(0x4af)]=[];}['_applyRemoteChangeset'](_0x203ff7){const _0x5976b1=_0x44ec13,_0x5c64a8=this[_0x5976b1(0x312)][_0x5976b1(0x3ec)][_0x5976b1(0x217)](this[_0x5976b1(0x312)][_0x5976b1(0x3ec)][_0x5976b1(0x44d)]()[_0x5976b1(0x2be)])(_0x203ff7[_0x5976b1(0x1cb)],null)||_0x203ff7[_0x5976b1(0x1cb)],_0x4be954={..._0x203ff7,'mutations':_0x5c64a8};this[_0x5976b1(0x282)](),this[_0x5976b1(0x41c)](this['_state']['onRemoteChangeset'](_0x4be954)),this[_0x5976b1(0x296)]();}[_0x44ec13(0x510)](_0x37ebc6){const _0x26f476=_0x44ec13;this[_0x26f476(0x282)](),this[_0x26f476(0x41c)](this[_0x26f476(0x353)]['onRemoteAck'](_0x37ebc6)),this[_0x26f476(0x296)]();}[_0x44ec13(0x43d)](_0x5962bb){const _0x327b8f=_0x44ec13;this[_0x327b8f(0x282)](),this[_0x327b8f(0x41c)](this['_state'][_0x327b8f(0x454)](_0x5962bb)),this[_0x327b8f(0x296)]();}['_onFetchMissResult'](_0x29b27f){const _0x7d311a=_0x44ec13;if(!(this['_state']instanceof $))throw new TypeError(_0x7d311a(0x3e7));const _0x21423c=_0x29b27f[_0x7d311a(0x341)](_0x3cd049=>{const _0x2bb008=_0x7d311a,_0x4dc40d=this['_compressMutationService']['interceptor'][_0x2bb008(0x217)](this[_0x2bb008(0x312)][_0x2bb008(0x3ec)][_0x2bb008(0x44d)]()['COMPRESS_MUTATION_APPLY'])(_0x3cd049[_0x2bb008(0x1cb)],null)||_0x3cd049['mutations'];return{..._0x3cd049,'mutations':_0x4dc40d};});this[_0x7d311a(0x282)](),this[_0x7d311a(0x41c)](this['_state'][_0x7d311a(0x21f)](_0x21423c)),this[_0x7d311a(0x296)]();}[_0x44ec13(0x424)](){const _0x230e55=_0x44ec13;this[_0x230e55(0x282)](),this[_0x230e55(0x41c)](this[_0x230e55(0x353)][_0x230e55(0x218)]()),this[_0x230e55(0x296)]();}[_0x44ec13(0x32f)](_0x27e136=!0x1){const _0x4af5f3=_0x44ec13;this['_lockTransition'](),this[_0x4af5f3(0x41c)](this['_state'][_0x4af5f3(0x2c2)]()),this['_unlockTransition']();const _0x55bba2=this[_0x4af5f3(0x353)];_0x27e136&&_0x55bba2 instanceof se&&(this[_0x4af5f3(0x282)](),this[_0x4af5f3(0x41c)](_0x55bba2[_0x4af5f3(0x53c)]()),this[_0x4af5f3(0x296)]());}async[_0x44ec13(0x305)](){return new Promise(_0x218e23=>{const _0x440a2d=_0x2929;this[_0x440a2d(0x36d)][_0x440a2d(0x2b2)][_0x440a2d(0x2d5)](v['take'](0x1))[_0x440a2d(0x1d4)](async _0x5511ba=>{const _0x21d12=_0x440a2d;_0x218e23(await this[_0x21d12(0x178)](_0x5511ba===j[_0x21d12(0x4f0)]));});});}['_createHandler'](){const _0x159237=_0x44ec13,_0x332df1=this[_0x159237(0x426)];return{'onStateChange':(_0x28899b,_0x705fd6)=>{const _0xa2543=_0x159237;if(_0x28899b!==this[_0xa2543(0x353)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x28899b[_0xa2543(0x4fe)]+'\x0aAfter:\x20'+_0x705fd6['status']+_0xa2543(0x2ac)+this[_0xa2543(0x353)][_0xa2543(0x4fe)]);this[_0xa2543(0x41c)](_0x705fd6);},'onSendChangeset':_0x1fd454=>{const _0x496525=_0x159237,_0x2227e0={'eventID':_[_0x496525(0x4f2)][_0x496525(0x1f2)],'data':{'unitID':_0x1fd454[_0x496525(0x426)],'unitType':this['_type'],'changeset':_0x1fd454,'memberID':this[_0x496525(0x36d)][_0x496525(0x4cd)]()}};this['session'][_0x496525(0x1ec)](_0x2227e0,this[_0x496525(0x426)]);},'onMissingChangesets':({from:_0x18ebba,to:_0x2c13dc})=>{const _0x5e14b6=_0x159237;this[_0x5e14b6(0x49d)][_0x5e14b6(0x1bb)]('[CollaborationEntity]',_0x5e14b6(0x2f5)+_0x18ebba+'\x20to\x20'+_0x2c13dc);const _0x39e1c8={'eventID':_[_0x5e14b6(0x4f2)][_0x5e14b6(0x3dd)],'data':{'unitID':_0x332df1,'unitType':this[_0x5e14b6(0x4d7)],'from':_0x18ebba,'to':_0x2c13dc}};this[_0x5e14b6(0x36d)]['send'](_0x39e1c8,this['unitID']);}};}async[_0x44ec13(0x178)](_0x4037f1){const _0x522065=_0x44ec13;var _0x1b651a,_0x5f25bf;const _0x4498f7=await this[_0x522065(0x473)][_0x522065(0x50f)](this[_0x522065(0x426)]),_0x3785ab=(_0x1b651a=_0x4498f7==null?void 0x0:_0x4498f7['mutations'])!=null?_0x1b651a:[],_0x3c3412=(_0x5f25bf=_0x4498f7==null?void 0x0:_0x4498f7['awaitingChangeset'])!=null?_0x5f25bf:null,_0x3e75f1=this['unitID'];try{this[_0x522065(0x208)](_0x3c3412,_0x3785ab);}catch(_0x3df661){this[_0x522065(0x49d)][_0x522065(0x182)](_0x3df661);}const _0xf936ad=this[_0x522065(0x343)]();if(_0x4037f1){const _0x144fdc=Ot(this[_0x522065(0x360)],_0x3e75f1,this[_0x522065(0x4d7)],_0x3c3412,_0x3785ab,_0xf936ad);return _0x144fdc instanceof H?_0x144fdc[_0x522065(0x505)]():(_0x144fdc instanceof x||_0x144fdc instanceof V)&&_0x144fdc['resend'](),_0x144fdc;}return this[_0x522065(0x360)][_0x522065(0x3be)](W,_0x3e75f1,this[_0x522065(0x4d7)],_0x3c3412,_0x3785ab,_0xf936ad);}[_0x44ec13(0x208)](_0x497286,_0x57c7c8){const _0x2ab999=_0x44ec13;var _0x21b142,_0x2c89e2;const _0x561b5f=this[_0x2ab999(0x312)][_0x2ab999(0x3ec)][_0x2ab999(0x217)](this['_compressMutationService'][_0x2ab999(0x3ec)]['getInterceptPoints']()[_0x2ab999(0x2be)]);(_0x21b142=_0x561b5f((_0x497286==null?void 0x0:_0x497286[_0x2ab999(0x1cb)])||[],null))==null||_0x21b142[_0x2ab999(0x39a)](_0x4b38a7=>this['_commandService'][_0x2ab999(0x3e6)](_0x4b38a7['id'],_0x4b38a7[_0x2ab999(0x2eb)])),(_0x2c89e2=_0x561b5f(_0x57c7c8||[],null))==null||_0x2c89e2[_0x2ab999(0x39a)](_0x2c0605=>this[_0x2ab999(0x30e)][_0x2ab999(0x3e6)](_0x2c0605['id'],_0x2c0605[_0x2ab999(0x2eb)]));}},exports[_0x44ec13(0x273)]=Ye([p(0x3,a['Inject'](a[_0x44ec13(0x4cf)])),p(0x4,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),p(0x5,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x38a)])),p(0x6,a[_0x44ec13(0x3ed)](a['LocaleService'])),p(0x7,a['Inject'](_[_0x44ec13(0x1a7)])),p(0x8,a['ILogService']),p(0x9,a[_0x44ec13(0x359)]),p(0xa,M[_0x44ec13(0x3c2)]),p(0xb,a[_0x44ec13(0x317)]),p(0xc,a['Optional'](Ee))],exports['CollaborationEntity']),exports[_0x44ec13(0x459)]=class extends exports[_0x44ec13(0x273)]{constructor(_0x5a8416,_0xce41f2,_0x49cf97,_0x5d387a,_0x43e00c,_0x481585,_0x476fb5,_0x20fd79,_0x1095d4,_0x3cd671,_0x250e9,_0x38d4af,_0x1b6265,_0x5eff2a,_0xfd8876,_0x5b357e,_0x5db6e5){const _0x4cfb84=_0x44ec13;super(_0x5a8416,_0x49cf97,_0xce41f2,_0x5d387a,_0x43e00c,_0x481585,_0x476fb5,_0x20fd79,_0x1b6265,_0x5eff2a,_0xfd8876,_0x5b357e,_0x5db6e5),this[_0x4cfb84(0x426)]=_0x5a8416,this[_0x4cfb84(0x2ed)]=_0xce41f2,this[_0x4cfb84(0x4f4)]=_0x1095d4,this[_0x4cfb84(0x34c)]=_0x3cd671,this[_0x4cfb84(0x211)]=_0x250e9,this[_0x4cfb84(0x471)]=_0x38d4af;}[_0x44ec13(0x343)](){const _0x326d87=_0x44ec13,_0x1b770d=super[_0x326d87(0x343)]();return _0x1b770d[_0x326d87(0x177)]=_0x20563e=>this['_docTransformIMECacheService']['transformIMECache'](_0x20563e),_0x1b770d[_0x326d87(0x243)]=_0x51f80b=>this[_0x326d87(0x211)][_0x326d87(0x28c)](_0x51f80b),_0x1b770d[_0x326d87(0x4b5)]=_0x4db9dd=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x4db9dd),_0x1b770d[_0x326d87(0x2a8)]=_0x2646d5=>this[_0x326d87(0x34c)][_0x326d87(0x345)](_0x2646d5),_0x1b770d;}async['_init'](){const _0x3c32c1=_0x44ec13,_0x38fa63=await super[_0x3c32c1(0x2d0)]();return this[_0x3c32c1(0x399)](this[_0x3c32c1(0x30e)][_0x3c32c1(0x526)]((_0x3b1a8a,_0x13daae)=>{const _0x29a8ac=_0x3c32c1;if(_0x3b1a8a[_0x29a8ac(0x2ed)]!==a[_0x29a8ac(0x37e)][_0x29a8ac(0x4d5)]||_0x13daae!=null&&_0x13daae[_0x29a8ac(0x267)]||_0x13daae!=null&&_0x13daae[_0x29a8ac(0x4dd)])return;const _0x4141e0=_0x3b1a8a[_0x29a8ac(0x2eb)];if((_0x4141e0==null?void 0x0:_0x4141e0['unitId'])!==this[_0x29a8ac(0x426)])return;let _0x239ab6=_0x3b1a8a;if(_0x239ab6['id']===B[_0x29a8ac(0x3b3)]['id']){const _0x4a3232=_0x239ab6[_0x29a8ac(0x2eb)];_0x239ab6={'id':B['RichTextEditingMutation']['id'],'type':a[_0x29a8ac(0x37e)]['MUTATION'],'params':{'unitId':_0x4a3232[_0x29a8ac(0x1c9)],'actions':_0x4a3232[_0x29a8ac(0x4ab)],'textRanges':null}};}const _0x2a619f=this[_0x29a8ac(0x312)][_0x29a8ac(0x3ec)]['fetchThroughInterceptors'](this[_0x29a8ac(0x312)][_0x29a8ac(0x3ec)]['getInterceptPoints']()[_0x29a8ac(0x17d)])([_0x239ab6],null)||[_0x239ab6];this[_0x29a8ac(0x192)](_0x2a619f[0x0]);})),_0x38fa63;}},exports[_0x44ec13(0x459)]=Ye([p(0x3,a['Inject'](a[_0x44ec13(0x4cf)])),p(0x4,a[_0x44ec13(0x3ed)](exports['LocalCacheService'])),p(0x5,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x38a)])),p(0x6,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)])),p(0x7,a['Inject'](_[_0x44ec13(0x1a7)])),p(0x8,a['Inject'](U['DocStateChangeManagerService'])),p(0x9,a[_0x44ec13(0x3ed)](ge)),p(0xa,a['Inject'](pe)),p(0xb,a[_0x44ec13(0x3ed)](Ge)),p(0xc,a[_0x44ec13(0x2d1)]),p(0xd,a[_0x44ec13(0x359)]),p(0xe,M['IMessageService']),p(0xf,a[_0x44ec13(0x317)]),p(0x10,a[_0x44ec13(0x1e9)](Ee))],exports['DocCollaborationEntity']),exports[_0x44ec13(0x3a0)]=class extends exports[_0x44ec13(0x273)]{constructor(_0x9ae191,_0x26b624,_0x207cc4,_0x2a45e5,_0x435306,_0x3f7c61,_0x4f5234,_0x1b4fd3,_0x4569f7,_0x4ce300,_0x564d1e,_0x2bb43d,_0x4cdd35,_0x3f03cb){const _0x1383fa=_0x44ec13;super(_0x9ae191,_0x207cc4,_0x26b624,_0x2a45e5,_0x435306,_0x3f7c61,_0x4f5234,_0x1b4fd3,_0x4ce300,_0x564d1e,_0x2bb43d,_0x4cdd35,_0x3f03cb),this[_0x1383fa(0x426)]=_0x9ae191,this[_0x1383fa(0x2ed)]=_0x26b624,this[_0x1383fa(0x2e0)]=_0x4569f7;}[_0x44ec13(0x343)](){const _0xa00a13=_0x44ec13,_0x4f68d6=super['_createHandler']();return _0x4f68d6['onTransformSelections']=_0x2e09c2=>this['_sheetTransformSelectionsService'][_0xa00a13(0x28c)](_0x2e09c2),_0x4f68d6;}async[_0x44ec13(0x2d0)](){const _0xfc4efa=_0x44ec13,_0x19ff19=await super[_0xfc4efa(0x2d0)]();return this[_0xfc4efa(0x399)](this[_0xfc4efa(0x30e)][_0xfc4efa(0x526)]((_0x5da122,_0x1d7c24)=>{const _0x3da005=_0xfc4efa;if(_0x5da122[_0x3da005(0x2ed)]!==a[_0x3da005(0x37e)][_0x3da005(0x4d5)]||_0x1d7c24!=null&&_0x1d7c24[_0x3da005(0x267)]||_0x1d7c24!=null&&_0x1d7c24[_0x3da005(0x4dd)])return;const _0x5214f4=_0x5da122[_0x3da005(0x2eb)];if((_0x5214f4==null?void 0x0:_0x5214f4[_0x3da005(0x1c9)])!==this['unitID'])return;const _0x1fb014=_0x5da122,_0x292a33=this[_0x3da005(0x312)][_0x3da005(0x3ec)][_0x3da005(0x217)](this['_compressMutationService'][_0x3da005(0x3ec)][_0x3da005(0x44d)]()[_0x3da005(0x17d)])([_0x1fb014],null)||[_0x1fb014];this[_0x3da005(0x192)](_0x292a33[0x0]);})),_0x19ff19;}},exports[_0x44ec13(0x3a0)]=Ye([p(0x3,a['Inject'](a['Injector'])),p(0x4,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),p(0x5,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x38a)])),p(0x6,a[_0x44ec13(0x3ed)](a['LocaleService'])),p(0x7,a['Inject'](_[_0x44ec13(0x1a7)])),p(0x8,a['Inject'](Ie)),p(0x9,a[_0x44ec13(0x2d1)]),p(0xa,a[_0x44ec13(0x359)]),p(0xb,M[_0x44ec13(0x3c2)]),p(0xc,a['IPermissionService']),p(0xd,a['Optional'](Ee))],exports[_0x44ec13(0x3a0)]);var Hs=Object['defineProperty'],xs=Object[_0x44ec13(0x2e1)],ks=(_0x53c9ba,_0x359557,_0x253f12,_0x2fa4dc)=>{const _0x196fc6=_0x44ec13;for(var _0x464f5d=_0x2fa4dc>0x1?void 0x0:_0x2fa4dc?xs(_0x359557,_0x253f12):_0x359557,_0x3da847=_0x53c9ba[_0x196fc6(0x3b4)]-0x1,_0x17dfc7;_0x3da847>=0x0;_0x3da847--)(_0x17dfc7=_0x53c9ba[_0x3da847])&&(_0x464f5d=(_0x2fa4dc?_0x17dfc7(_0x359557,_0x253f12,_0x464f5d):_0x17dfc7(_0x464f5d))||_0x464f5d);return _0x2fa4dc&&_0x464f5d&&Hs(_0x359557,_0x253f12,_0x464f5d),_0x464f5d;},ye=(_0x1bfd23,_0xc41d34)=>(_0x3f7ad7,_0x269534)=>_0xc41d34(_0x3f7ad7,_0x269534,_0x1bfd23);exports[_0x44ec13(0x27c)]=class extends a['RxDisposable']{constructor(_0x4a9eba,_0x79f3a9,_0x2ca2e0){const _0x512e00=_0x44ec13;super(),d(this,'_entities',new Map()),d(this,_0x512e00(0x3e2),new v['Subject']()),(this['_injector']=_0x4a9eba,this[_0x512e00(0x33d)]=_0x79f3a9,this[_0x512e00(0x2b9)]=_0x2ca2e0,this[_0x512e00(0x2d0)]());}['dispose'](){const _0x1431e5=_0x44ec13;super[_0x1431e5(0x184)](),this[_0x1431e5(0x164)][_0x1431e5(0x39a)](_0x555631=>_0x555631[_0x1431e5(0x184)]()),this['_entities'][_0x1431e5(0x3e1)]();}[_0x44ec13(0x53a)](_0x469630){const _0x22c86a=_0x44ec13;var _0x19c8d1;return(_0x19c8d1=this[_0x22c86a(0x164)][_0x22c86a(0x48d)](_0x469630))!=null?_0x19c8d1:null;}[_0x44ec13(0x1d7)](_0x118eab){const _0x537431=_0x44ec13,_0x2ea96d=this[_0x537431(0x53a)](_0x118eab);return _0x2ea96d?v['of'](_0x2ea96d):this[_0x537431(0x3e2)][_0x537431(0x2d5)](E[_0x537431(0x1ee)](_0x46f3fe=>_0x46f3fe[_0x537431(0x426)]===_0x118eab));}[_0x44ec13(0x2d0)](){const _0x3ccb9c=_0x44ec13;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x3ccb9c(0x1c1)][_0x3ccb9c(0x420)])['pipe'](v[_0x3ccb9c(0x441)](this[_0x3ccb9c(0x350)]),E[_0x3ccb9c(0x230)](0x10))[_0x3ccb9c(0x1d4)](async _0x197e56=>{const _0x440faf=_0x3ccb9c,_0x477bf4=_0x197e56[_0x440faf(0x4be)](),_0x9de57=await this[_0x440faf(0x35a)](_0x477bf4,A[_0x440faf(0x420)]);this['_entities'][_0x440faf(0x47a)](_0x477bf4,_0x9de57);}),this['_univerInstanceService'][_0x3ccb9c(0x455)](a[_0x3ccb9c(0x1c1)][_0x3ccb9c(0x344)])[_0x3ccb9c(0x2d5)](v[_0x3ccb9c(0x441)](this['dispose$']),E[_0x3ccb9c(0x230)](0x10))['pipe'](E[_0x3ccb9c(0x1ee)](_0x35e28b=>!_0x35e28b[_0x3ccb9c(0x4be)]()['startsWith']('__')))[_0x3ccb9c(0x1d4)](async _0x2f1493=>{const _0x304036=_0x3ccb9c,_0x300b01=_0x2f1493[_0x304036(0x4be)](),_0x4ab77b=await this[_0x304036(0x35a)](_0x300b01,A[_0x304036(0x344)]);this[_0x304036(0x164)][_0x304036(0x47a)](_0x300b01,_0x4ab77b);}),v[_0x3ccb9c(0x3c1)](this['_univerInstanceService'][_0x3ccb9c(0x1cf)](a[_0x3ccb9c(0x1c1)][_0x3ccb9c(0x420)]),this[_0x3ccb9c(0x2b9)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](v[_0x3ccb9c(0x441)](this[_0x3ccb9c(0x350)]))['subscribe'](_0x5a3d39=>{const _0x26e225=_0x3ccb9c,_0x4e2afb=_0x5a3d39[_0x26e225(0x4be)](),_0x1103b1=this[_0x26e225(0x164)][_0x26e225(0x48d)](_0x4e2afb);_0x1103b1&&(_0x1103b1[_0x26e225(0x184)](),this[_0x26e225(0x164)][_0x26e225(0x20e)](_0x4e2afb));});}async[_0x44ec13(0x35a)](_0x274a91,_0x24ab58){const _0x1f2291=_0x44ec13,_0x327907=await this[_0x1f2291(0x33d)][_0x1f2291(0x245)](_0x274a91),_0x14f3a5=this[_0x1f2291(0x360)]['createInstance'](this[_0x1f2291(0x149)](_0x24ab58),_0x274a91,_0x24ab58,_0x327907);return await _0x14f3a5[_0x1f2291(0x144)](),this[_0x1f2291(0x3e2)][_0x1f2291(0x4a4)](_0x14f3a5),_0x14f3a5;}[_0x44ec13(0x149)](_0x54d062){const _0x5f24a9=_0x44ec13;switch(_0x54d062){case A['UNIVER_DOC']:return exports['DocCollaborationEntity'];case A[_0x5f24a9(0x420)]:return exports[_0x5f24a9(0x3a0)];default:throw new Error(_0x5f24a9(0x52c)+_0x54d062);}}},exports[_0x44ec13(0x27c)]=ks([ye(0x0,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),ye(0x1,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x4e1)])),ye(0x2,a['IUniverInstanceService'])],exports[_0x44ec13(0x27c)]);const it=[_0x44ec13(0x247),_0x44ec13(0x13f),_0x44ec13(0x430),_0x44ec13(0x450),_0x44ec13(0x2bf),'gold400'];class Ke extends a[_0x44ec13(0x209)]{constructor(){const _0x4e53e2=_0x44ec13;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x4e53e2(0x487),0x0);}[_0x44ec13(0x3a2)](_0x10d3c5){const _0xb1400e=_0x44ec13;if(this[_0xb1400e(0x4ae)][_0xb1400e(0x163)](_0x10d3c5))return this['_assignedColors']['get'](_0x10d3c5);const _0x24823d=it[this[_0xb1400e(0x487)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%it[_0xb1400e(0x3b4)],this[_0xb1400e(0x4ae)][_0xb1400e(0x47a)](_0x10d3c5,_0x24823d),_0x24823d;}}var Bs=Object[_0x44ec13(0x2ec)],Vs=Object['getOwnPropertyDescriptor'],Fs=(_0x26dbda,_0x5c2cd3,_0xa03b2f,_0x583a7d)=>{const _0x4e0ab3=_0x44ec13;for(var _0x31c9e3=_0x583a7d>0x1?void 0x0:_0x583a7d?Vs(_0x5c2cd3,_0xa03b2f):_0x5c2cd3,_0x2e5bf0=_0x26dbda[_0x4e0ab3(0x3b4)]-0x1,_0x17a893;_0x2e5bf0>=0x0;_0x2e5bf0--)(_0x17a893=_0x26dbda[_0x2e5bf0])&&(_0x31c9e3=(_0x583a7d?_0x17a893(_0x5c2cd3,_0xa03b2f,_0x31c9e3):_0x17a893(_0x31c9e3))||_0x31c9e3);return _0x583a7d&&_0x31c9e3&&Bs(_0x5c2cd3,_0xa03b2f,_0x31c9e3),_0x31c9e3;},Z=(_0x357cd1,_0x21413a)=>(_0x26bde3,_0x58bd94)=>_0x21413a(_0x26bde3,_0x58bd94,_0x357cd1);const Ws=0x12c,Gs=0x64,Ys=()=>{let _0x496e5a=[],_0x115173=!0x1;return _0x4cd2f9=>{_0x496e5a['push'](_0x4cd2f9),_0x115173||(_0x115173=!0x0,setTimeout(()=>{const _0x11c178=_0x2929;_0x496e5a[_0x11c178(0x39a)](_0x21238f=>_0x21238f()),_0x496e5a=[],_0x115173=!0x1;}));};};let je=class extends a[_0x44ec13(0x4c6)]{constructor(_0x25b521,_0x5208fb,_0x316629,_0x7bdf31,_0x182358,_0x372286,_0xd48772,_0x33e5cd){const _0x481de7=_0x44ec13;super(),d(this,_0x481de7(0x2ad),!0x1),d(this,_0x481de7(0x2d0),!0x1),d(this,_0x481de7(0x480),new v[(_0x481de7(0x362))](new Map())),d(this,'cursorInfo$',this[_0x481de7(0x480)][_0x481de7(0x439)]()),d(this,_0x481de7(0x1a3),new v[(_0x481de7(0x362))]([])),d(this,_0x481de7(0x515),this['_roomMembers$'][_0x481de7(0x2d5)](v[_0x481de7(0x33f)](Ws))),d(this,_0x481de7(0x1c5),ke((_0x2561e4,_0x41cbb5)=>{const _0x1af15a=_0x481de7,_0x2cd2dc={'eventID':_[_0x1af15a(0x4f2)][_0x1af15a(0x253)],'data':{'unitID':this[_0x1af15a(0x426)],'memberID':this['_session'][_0x1af15a(0x4cd)](),'selection':Je['serializeRangeWithSheet'](_0x2561e4,_0x41cbb5[_0x1af15a(0x301)])}};this[_0x1af15a(0x21e)][_0x1af15a(0x1ec)](_0x2cd2dc,this[_0x1af15a(0x426)]);},Gs)),(this[_0x481de7(0x426)]=_0x25b521,this[_0x481de7(0x21e)]=_0x5208fb,this['_injector']=_0x316629,this[_0x481de7(0x49f)]=_0x7bdf31,this['_memberService']=_0x182358,this[_0x481de7(0x2b9)]=_0x372286,this['_commandService']=_0xd48772,this[_0x481de7(0x292)]=_0x33e5cd);}get[_0x44ec13(0x464)](){const _0x47f09d=_0x44ec13;return this[_0x47f09d(0x480)][_0x47f09d(0x2ba)]();}get[_0x44ec13(0x24c)](){const _0x4e9fb6=_0x44ec13;return this[_0x4e9fb6(0x1a3)][_0x4e9fb6(0x2ba)]();}[_0x44ec13(0x184)](){const _0x9c6bf5=_0x44ec13;super['dispose'](),this[_0x9c6bf5(0x480)]['next'](new Map()),this[_0x9c6bf5(0x480)]['complete'](),this['_roomMembers$'][_0x9c6bf5(0x4a4)]([]),this[_0x9c6bf5(0x1a3)][_0x9c6bf5(0x159)]();}[_0x44ec13(0x144)](){const _0xea6746=_0x44ec13;this[_0xea6746(0x2d0)]||(this[_0xea6746(0x2d0)]=!0x0,this[_0xea6746(0x21e)][_0xea6746(0x2b2)][_0xea6746(0x2d5)](v[_0xea6746(0x441)](this[_0xea6746(0x350)]))[_0xea6746(0x1d4)](_0x2fefdd=>{const _0x4aacca=_0xea6746;_0x2fefdd===j[_0x4aacca(0x4f0)]?this[_0x4aacca(0x32f)]():this[_0x4aacca(0x424)]();}),this[_0xea6746(0x21e)][_0xea6746(0x15d)][_0xea6746(0x2d5)](v['takeUntil'](this['dispose$']))[_0xea6746(0x1d4)](_0x33a6e9=>{const _0x8dd94c=_0xea6746,_0x148ce6=_0x33a6e9[_0x8dd94c(0x348)];_0x148ce6===_[_0x8dd94c(0x4f2)][_0x8dd94c(0x253)]&&this[_0x8dd94c(0x140)](_0x33a6e9),_0x148ce6===_[_0x8dd94c(0x4f2)][_0x8dd94c(0x523)]&&this[_0x8dd94c(0x32e)](_0x33a6e9);}),this[_0xea6746(0x175)](),this['disposeWithMe'](this[_0xea6746(0x30e)][_0xea6746(0x526)](_0x564cce=>{const _0x15575=_0xea6746;if(this[_0x15575(0x2ad)]&&_0x564cce['id']===C[_0x15575(0x3d6)]['id']&&_0x564cce[_0x15575(0x2eb)][_0x15575(0x1c9)]===this[_0x15575(0x426)]){const _0x5304f5=_0x564cce[_0x15575(0x2eb)];this[_0x15575(0x1c5)](_0x5304f5[_0x15575(0x27e)],_0x5304f5[_0x15575(0x22c)][0x0]);}})));}[_0x44ec13(0x140)](_0x57c4db){const _0xc0f323=_0x44ec13;var _0x1118b9,_0x5d910e;const {memberID:_0x8f0012,selection:_0x412ea5}=_0x57c4db[_0xc0f323(0x387)],{sheetName:_0x5d0e82,range:_0x542c9b}=Je[_0xc0f323(0x4a8)](_0x412ea5),_0x5c1d09={'name':(_0x5d910e=(_0x1118b9=this[_0xc0f323(0x2bd)][_0xc0f323(0x1fe)](this[_0xc0f323(0x426)],_0x8f0012))==null?void 0x0:_0x1118b9[_0xc0f323(0x48e)])!=null?_0x5d910e:_0xc0f323(0x37c),'range':this[_0xc0f323(0x257)](_0x5d0e82,_0x542c9b),'sheetID':_0x5d0e82,'color':this[_0xc0f323(0x49f)][_0xc0f323(0x3a2)](_0x8f0012),'selection':_0x412ea5},_0x2340aa=this[_0xc0f323(0x464)];_0x2340aa[_0xc0f323(0x47a)](_0x8f0012,_0x5c1d09),this[_0xc0f323(0x480)][_0xc0f323(0x4a4)](_0x2340aa);}[_0x44ec13(0x32e)](_0x48b632){const _0x34016a=_0x44ec13,{memberID:_0x4860ea}=_0x48b632[_0x34016a(0x387)],_0x17d93d=this[_0x34016a(0x464)];_0x17d93d[_0x34016a(0x20e)](_0x4860ea),this[_0x34016a(0x480)]['next'](_0x17d93d);}[_0x44ec13(0x257)](_0x4e39b2,_0x17d259){const _0x544160=_0x44ec13;var _0x101f8f,_0x535296;const _0x42d531=(_0x535296=(_0x101f8f=this[_0x544160(0x2b9)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x101f8f[_0x544160(0x235)](_0x4e39b2))==null?void 0x0:_0x535296[_0x544160(0x2a3)]();return(_0x42d531==null?void 0x0:_0x42d531[_0x544160(0x512)](_0x28cf9=>a[_0x544160(0x1e6)][_0x544160(0x3bf)](_0x28cf9,_0x17d259)))||_0x17d259;}[_0x44ec13(0x175)](){const _0x280ac9=_0x44ec13,_0x52ccd2=new a[(_0x280ac9(0x402))](),_0x1d491e=Ys(),_0x242baf=()=>{const _0x4544f1=_0x280ac9;_0x52ccd2[_0x4544f1(0x184)]();const _0x2b611f=(_0x12efd5,_0xff48bd,_0x4b5b74,_0x25693c)=>{const _0x348cbe=_0x4544f1;let _0x29baf6=[];switch(_0x12efd5['id']){case C[_0x348cbe(0x2c5)]['DeleteRangeMoveLeftCommandId']:{_0x29baf6=C[_0x348cbe(0x283)](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)]['DeleteRangeMoveUpCommandId']:{_0x29baf6=C[_0x348cbe(0x433)](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)][_0x348cbe(0x2f2)]:{_0x29baf6=C[_0x348cbe(0x36e)](_0x12efd5,_0x25693c);break;}case C['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x29baf6=C[_0x348cbe(0x295)](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)][_0x348cbe(0x174)]:{_0x29baf6=C['handleInsertRangeMoveRight'](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)][_0x348cbe(0x2f0)]:{_0x29baf6=C[_0x348cbe(0x372)](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)][_0x348cbe(0x231)]:{_0x29baf6=C[_0x348cbe(0x17f)](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)]['RemoveColCommandId']:{_0x29baf6=C[_0x348cbe(0x21b)](_0x12efd5,_0x25693c);break;}case C['EffectRefRangId'][_0x348cbe(0x165)]:{_0x29baf6=C[_0x348cbe(0x3f7)](_0x12efd5,_0x25693c);break;}}const _0xd58645=C['runRefRangeMutations'](_0x29baf6,_0x25693c),_0x5618c5=this[_0x348cbe(0x464)]['get'](_0xff48bd);if(_0x5618c5&&_0xd58645){const _0x383149={..._0x5618c5,'range':_0xd58645};this[_0x348cbe(0x464)][_0x348cbe(0x47a)](_0xff48bd,_0x383149),_0x1d491e(()=>{const _0x23c2e9=_0x348cbe,_0x3891af=this[_0x23c2e9(0x292)][_0x23c2e9(0x23d)](_0xd58645,_0x2c0eb9=>(_0x3891af[_0x23c2e9(0x184)](),_0x2b611f(_0x2c0eb9,_0xff48bd,_0x4b5b74,_0xd58645)));_0x52ccd2[_0x23c2e9(0x37a)](_0x3891af);});}return{'redos':[],'undos':[]};};this[_0x4544f1(0x464)][_0x4544f1(0x39a)]((_0x137fb4,_0x4a479d)=>{const _0x1f8000=_0x4544f1,{range:_0x2f0438,sheetID:_0x5ca502}=_0x137fb4,_0x2b316f=this[_0x1f8000(0x292)][_0x1f8000(0x23d)](_0x2f0438,_0x490fae=>(_0x2b316f['dispose'](),_0x2b611f(_0x490fae,_0x4a479d,_0x5ca502,_0x2f0438)));_0x52ccd2[_0x1f8000(0x37a)](_0x2b316f);});};this[_0x280ac9(0x399)](a[_0x280ac9(0x1ef)](this[_0x280ac9(0x480)][_0x280ac9(0x1d4)](()=>{_0x242baf();})));}[_0x44ec13(0x32f)](){const _0x248aa5=_0x44ec13;var _0x5b327a,_0x3148f6;if(this[_0x248aa5(0x2ad)]=!0x0,((_0x5b327a=this['_univerInstanceService'][_0x248aa5(0x2fa)]())==null?void 0x0:_0x5b327a['getUnitId']())!==this[_0x248aa5(0x426)])return;const _0x552cd8=(_0x3148f6=this[_0x248aa5(0x360)][_0x248aa5(0x48d)](C[_0x248aa5(0x41b)])['getCurrentSelections']())==null?void 0x0:_0x3148f6[0x0],_0x58816b=this[_0x248aa5(0x2b9)][_0x248aa5(0x396)](a['UniverInstanceType'][_0x248aa5(0x420)])[_0x248aa5(0x219)]();_0x552cd8&&_0x58816b&&this['_updateLocalCursor'](_0x58816b[_0x248aa5(0x1b6)](),_0x552cd8);}[_0x44ec13(0x424)](){this['_online']=!0x1;}};je=Fs([Z(0x2,a[_0x44ec13(0x3ed)](a['Injector'])),Z(0x3,a[_0x44ec13(0x3ed)](Ke)),Z(0x4,a[_0x44ec13(0x3ed)](X)),Z(0x5,a['IUniverInstanceService']),Z(0x6,a[_0x44ec13(0x359)]),Z(0x7,a[_0x44ec13(0x3ed)](C[_0x44ec13(0x1d6)]))],je);var Ks=Object[_0x44ec13(0x2ec)],Xs=Object[_0x44ec13(0x2e1)],qs=(_0x5df898,_0x5c5793,_0x3844ae,_0x1513a7)=>{const _0x358c7d=_0x44ec13;for(var _0x395908=_0x1513a7>0x1?void 0x0:_0x1513a7?Xs(_0x5c5793,_0x3844ae):_0x5c5793,_0x45c0a4=_0x5df898[_0x358c7d(0x3b4)]-0x1,_0x5c823b;_0x45c0a4>=0x0;_0x45c0a4--)(_0x5c823b=_0x5df898[_0x45c0a4])&&(_0x395908=(_0x1513a7?_0x5c823b(_0x5c5793,_0x3844ae,_0x395908):_0x5c823b(_0x395908))||_0x395908);return _0x1513a7&&_0x395908&&Ks(_0x5c5793,_0x3844ae,_0x395908),_0x395908;},Y=(_0x48a258,_0x40c63f)=>(_0x369c63,_0x5ad00b)=>_0x40c63f(_0x369c63,_0x5ad00b,_0x48a258);const Js=0x12c,zs=0x64;let $e=class extends a['RxDisposable']{constructor(_0x48c4ec,_0x437457,_0x2c444a,_0x34665e,_0x59e132,_0x1d496b,_0x42c952,_0x215211,_0x182682){const _0x52df2a=_0x44ec13;super(),d(this,_0x52df2a(0x2ad),!0x1),d(this,_0x52df2a(0x2d0),!0x1),d(this,'_cursorInfo$',new v['BehaviorSubject'](new Map())),d(this,'cursorInfo$',this[_0x52df2a(0x480)][_0x52df2a(0x439)]()),d(this,_0x52df2a(0x1a3),new v[(_0x52df2a(0x362))]([])),d(this,'roomMembers$',this[_0x52df2a(0x1a3)][_0x52df2a(0x2d5)](v['debounceTime'](Js))),d(this,_0x52df2a(0x1c5),ke(_0x3e5ece=>{const _0x482489=_0x52df2a,_0x3a75d2={'eventID':_[_0x482489(0x4f2)][_0x482489(0x253)],'data':{'unitID':this[_0x482489(0x426)],'memberID':this[_0x482489(0x21e)][_0x482489(0x4cd)](),'selection':Rt(_0x3e5ece)}};this['_session']['send'](_0x3a75d2,this[_0x482489(0x426)]);},zs)),(this[_0x52df2a(0x426)]=_0x48c4ec,this[_0x52df2a(0x21e)]=_0x437457,this['_injector']=_0x2c444a,this[_0x52df2a(0x49f)]=_0x34665e,this[_0x52df2a(0x2bd)]=_0x59e132,this[_0x52df2a(0x492)]=_0x1d496b,this[_0x52df2a(0x4cc)]=_0x42c952,this[_0x52df2a(0x2b9)]=_0x215211,this[_0x52df2a(0x30e)]=_0x182682);}get['cursorInfo'](){const _0x45142a=_0x44ec13;return this[_0x45142a(0x480)][_0x45142a(0x2ba)]();}get[_0x44ec13(0x24c)](){const _0xfac99e=_0x44ec13;return this[_0xfac99e(0x1a3)][_0xfac99e(0x2ba)]();}['dispose'](){const _0xcaf2b1=_0x44ec13;super['dispose'](),this[_0xcaf2b1(0x480)][_0xcaf2b1(0x4a4)](new Map()),this['_cursorInfo$'][_0xcaf2b1(0x159)](),this[_0xcaf2b1(0x1a3)][_0xcaf2b1(0x4a4)]([]),this[_0xcaf2b1(0x1a3)]['complete']();}[_0x44ec13(0x144)](){const _0x55d934=_0x44ec13;this[_0x55d934(0x2d0)]||(this['_init']=!0x0,this['_session'][_0x55d934(0x2b2)][_0x55d934(0x2d5)](v['takeUntil'](this[_0x55d934(0x350)]))['subscribe'](_0x3549b2=>{const _0x182565=_0x55d934;_0x3549b2===j[_0x182565(0x4f0)]?this['_toggleOnline']():this[_0x182565(0x424)]();}),this[_0x55d934(0x21e)][_0x55d934(0x15d)][_0x55d934(0x2d5)](v[_0x55d934(0x441)](this[_0x55d934(0x350)]))[_0x55d934(0x1d4)](_0x38305a=>{const _0x39ba22=_0x55d934,_0x5d03ef=_0x38305a['eventID'];_0x5d03ef===_['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x38305a),_0x5d03ef===_['CollaborationEvent'][_0x39ba22(0x523)]&&this[_0x39ba22(0x32e)](_0x38305a);}),this[_0x55d934(0x399)](this['_commandService'][_0x55d934(0x526)](_0xc9d7a7=>{const _0xeeb6bc=_0x55d934,_0x37d7e8=_0xc9d7a7['params'];_0x37d7e8!=null&&this[_0xeeb6bc(0x2ad)]&&_0xc9d7a7['id']===B[_0xeeb6bc(0x506)]['id']&&_0x37d7e8[_0xeeb6bc(0x1c9)]===this[_0xeeb6bc(0x426)]&&_0x37d7e8[_0xeeb6bc(0x468)]===!0x1&&this[_0xeeb6bc(0x1c5)](_0x37d7e8[_0xeeb6bc(0x1dc)]);})),this[_0x55d934(0x492)]['collabCursorState$']['pipe'](v[_0x55d934(0x441)](this[_0x55d934(0x350)]))[_0x55d934(0x1d4)](_0xc1328f=>{const _0x25d950=_0x55d934;if((_0xc1328f==null?void 0x0:_0xc1328f[_0x25d950(0x426)])!==this[_0x25d950(0x426)])return;const _0x375111={'eventID':_[_0x25d950(0x4f2)][_0x25d950(0x253)],'data':_0xc1328f};this[_0x25d950(0x140)](_0x375111);}),this[_0x55d934(0x399)](this[_0x55d934(0x30e)][_0x55d934(0x526)](_0x333eee=>{const _0x418da4=_0x55d934;if(_0x333eee[_0x418da4(0x2eb)]==null)return;const _0x394830=_0x333eee[_0x418da4(0x2eb)];if(_0x333eee['id']!==B[_0x418da4(0x3b3)]['id']||_0x394830[_0x418da4(0x1c9)]!==this[_0x418da4(0x426)])return;const _0x599eb0={'id':_0x418da4(0x215),'params':_0x394830},_0x1bd8df=this[_0x418da4(0x464)];for(const [_0x227aff,_0x26c00c]of _0x1bd8df){const _0x1c6050={'id':_0x418da4(0x215),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x26c00c['ranges']}},_0x584805=this[_0x418da4(0x4cc)][_0x418da4(0x19a)](_0x599eb0,_0x1c6050,!0x1);if(_[_0x418da4(0x41a)](_0x584805))throw _0x584805['error'];_0x1bd8df[_0x418da4(0x47a)](_0x227aff,{..._0x26c00c,'ranges':_0x584805[_0x418da4(0x2f1)][_0x418da4(0x2eb)][_0x418da4(0x442)]});}queueMicrotask(()=>{const _0x614053=_0x418da4;this[_0x614053(0x480)]['next'](_0x1bd8df);});})));}[_0x44ec13(0x140)](_0x5b350b){const _0xee3e39=_0x44ec13;var _0x410c91,_0x159b7c;const {memberID:_0x5a8ea7,selection:_0x49867a}=_0x5b350b[_0xee3e39(0x387)],_0x1473b4=Ds(_0x49867a),_0x3ea828=(_0x159b7c=(_0x410c91=this[_0xee3e39(0x2bd)][_0xee3e39(0x1fe)](this[_0xee3e39(0x426)],_0x5a8ea7))==null?void 0x0:_0x410c91[_0xee3e39(0x48e)])!=null?_0x159b7c:_0xee3e39(0x37c),_0x222ec4={'color':this[_0xee3e39(0x49f)][_0xee3e39(0x3a2)](_0x5a8ea7),'name':_0x3ea828,'ranges':_0x1473b4},_0x4013fc=this['cursorInfo'];_0x4013fc[_0xee3e39(0x47a)](_0x5a8ea7,_0x222ec4),this[_0xee3e39(0x480)][_0xee3e39(0x4a4)](_0x4013fc);}[_0x44ec13(0x32e)](_0x636220){const _0x4249c2=_0x44ec13,{memberID:_0x15fe46}=_0x636220[_0x4249c2(0x387)],_0x434238=this['cursorInfo'];_0x434238[_0x4249c2(0x20e)](_0x15fe46),this['_cursorInfo$'][_0x4249c2(0x4a4)](_0x434238);}['_toggleOnline'](){const _0x2b0f0f=_0x44ec13;var _0x5ce8cb;if(this['_online']=!0x0,((_0x5ce8cb=this['_univerInstanceService'][_0x2b0f0f(0x2fa)]())==null?void 0x0:_0x5ce8cb[_0x2b0f0f(0x4be)]())!==this[_0x2b0f0f(0x426)])return;const _0x2e95f6=this[_0x2b0f0f(0x360)][_0x2b0f0f(0x48d)](B['DocSelectionManagerService'])[_0x2b0f0f(0x322)]();Array[_0x2b0f0f(0x369)](_0x2e95f6)&&_0x2e95f6['length']>0x0&&this[_0x2b0f0f(0x1c5)](_0x2e95f6);}[_0x44ec13(0x424)](){const _0x198e9d=_0x44ec13;this[_0x198e9d(0x2ad)]=!0x1;}};$e=qs([Y(0x2,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),Y(0x3,a[_0x44ec13(0x3ed)](Ke)),Y(0x4,a[_0x44ec13(0x3ed)](X)),Y(0x5,a['Inject'](Ge)),Y(0x6,_[_0x44ec13(0x275)]),Y(0x7,a[_0x44ec13(0x4e2)]),Y(0x8,a[_0x44ec13(0x359)])],$e);var Zs=Object[_0x44ec13(0x2ec)],Qs=Object[_0x44ec13(0x2e1)],ei=(_0x4d1ed3,_0x1a19bb,_0x2b4029,_0x3e0f12)=>{const _0x5baac6=_0x44ec13;for(var _0x13cb29=_0x3e0f12>0x1?void 0x0:_0x3e0f12?Qs(_0x1a19bb,_0x2b4029):_0x1a19bb,_0x1e04f0=_0x4d1ed3[_0x5baac6(0x3b4)]-0x1,_0x11b84d;_0x1e04f0>=0x0;_0x1e04f0--)(_0x11b84d=_0x4d1ed3[_0x1e04f0])&&(_0x13cb29=(_0x3e0f12?_0x11b84d(_0x1a19bb,_0x2b4029,_0x13cb29):_0x11b84d(_0x13cb29))||_0x13cb29);return _0x3e0f12&&_0x13cb29&&Zs(_0x1a19bb,_0x2b4029,_0x13cb29),_0x13cb29;},Pe=(_0x2aad36,_0x17c7c7)=>(_0x2a0e4c,_0x514915)=>_0x17c7c7(_0x2a0e4c,_0x514915,_0x2aad36);let te=class extends a[_0x44ec13(0x4c6)]{constructor(_0x4d4233,_0x1b8eb4,_0x9d369){const _0x1103f4=_0x44ec13;super(),d(this,_0x1103f4(0x164),new Map()),d(this,'_entityInit$',new v[(_0x1103f4(0x3da))]()),(this[_0x1103f4(0x2b9)]=_0x4d4233,this['_injector']=_0x1b8eb4,this[_0x1103f4(0x33d)]=_0x9d369,this[_0x1103f4(0x2d0)]());}[_0x44ec13(0x184)](){const _0x79cc53=_0x44ec13;super[_0x79cc53(0x184)](),this[_0x79cc53(0x3e2)][_0x79cc53(0x159)](),this['_entities']['forEach'](_0x3cd567=>_0x3cd567[_0x79cc53(0x184)]());}[_0x44ec13(0x51a)](_0x2de0a8){const _0x154b6d=_0x44ec13;return this[_0x154b6d(0x164)][_0x154b6d(0x163)](_0x2de0a8)?this[_0x154b6d(0x164)]['get'](_0x2de0a8)[_0x154b6d(0x20b)]:this[_0x154b6d(0x3e2)]['pipe'](v[_0x154b6d(0x1ee)](_0x4479f0=>_0x4479f0[_0x154b6d(0x426)]===_0x2de0a8),v[_0x154b6d(0x335)](_0xba1884=>_0xba1884[_0x154b6d(0x20b)]));}[_0x44ec13(0x2d0)](){const _0x15cfe8=_0x44ec13;this[_0x15cfe8(0x2b9)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x15cfe8(0x420)])[_0x15cfe8(0x2d5)](v['takeUntil'](this[_0x15cfe8(0x350)]))[_0x15cfe8(0x1d4)](async _0x3ab8e5=>{const _0x531621=_0x15cfe8,_0x809c1b=_0x3ab8e5['getUnitId'](),_0x4bbd0c=await this[_0x531621(0x1f4)](_0x809c1b);this['_entityInit$'][_0x531621(0x4a4)](_0x4bbd0c),this[_0x531621(0x164)][_0x531621(0x47a)](_0x809c1b,_0x4bbd0c);}),this[_0x15cfe8(0x2b9)][_0x15cfe8(0x455)](a[_0x15cfe8(0x1c1)]['UNIVER_DOC'])['pipe'](v[_0x15cfe8(0x441)](this[_0x15cfe8(0x350)]))['pipe'](v[_0x15cfe8(0x1ee)](_0x5878a3=>!_0x5878a3[_0x15cfe8(0x4be)]()[_0x15cfe8(0x391)]('__')))['subscribe'](async _0x596a94=>{const _0x51cbd3=_0x15cfe8,_0x171677=_0x596a94[_0x51cbd3(0x4be)](),_0x457917=await this[_0x51cbd3(0x2d7)](_0x171677);this['_entityInit$'][_0x51cbd3(0x4a4)](_0x457917),this[_0x51cbd3(0x164)][_0x51cbd3(0x47a)](_0x171677,_0x457917);}),v['merge'](this['_univerInstanceService'][_0x15cfe8(0x1cf)](a[_0x15cfe8(0x1c1)][_0x15cfe8(0x344)]),this[_0x15cfe8(0x2b9)][_0x15cfe8(0x1cf)](a['UniverInstanceType'][_0x15cfe8(0x420)]))[_0x15cfe8(0x2d5)](v[_0x15cfe8(0x441)](this[_0x15cfe8(0x350)]))[_0x15cfe8(0x1d4)](_0x200683=>{const _0x3b613d=_0x15cfe8,_0x32e385=_0x200683['getUnitId'](),_0x53527f=this[_0x3b613d(0x164)][_0x3b613d(0x48d)](_0x32e385);_0x53527f&&(_0x53527f['dispose'](),this[_0x3b613d(0x164)][_0x3b613d(0x20e)](_0x32e385));});}async[_0x44ec13(0x1f4)](_0x49df43){const _0x3d7a54=_0x44ec13,_0xeb743a=await this[_0x3d7a54(0x33d)][_0x3d7a54(0x245)](_0x49df43),_0x38cb57=this['_injector'][_0x3d7a54(0x3be)](je,_0x49df43,_0xeb743a);return _0x38cb57[_0x3d7a54(0x144)](),_0x38cb57;}async['_startDocCollabCursor'](_0x55987c){const _0x5451cf=_0x44ec13,_0x361e84=await this['_collabSessionService'][_0x5451cf(0x245)](_0x55987c),_0x21736a=this[_0x5451cf(0x360)][_0x5451cf(0x3be)]($e,_0x55987c,_0x361e84);return _0x21736a[_0x5451cf(0x144)](),_0x21736a;}};te=ei([a[_0x44ec13(0x463)](a[_0x44ec13(0x30b)]['Starting'],te),Pe(0x0,a[_0x44ec13(0x4e2)]),Pe(0x1,a['Inject'](a[_0x44ec13(0x4cf)])),Pe(0x2,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x4e1)]))],te);const _e=0x14,nt=0xc8,we=0x4,ti=0x5;function si(_0x8b3e18,_0x2a2ad1){const _0x16b66d=_0x44ec13;let {radius:_0x38c0d6,width:_0x142683,height:_0x4fbe4e}=_0x2a2ad1;_0x38c0d6=_0x38c0d6!=null?_0x38c0d6:0x0,_0x142683=_0x142683!=null?_0x142683:0x1e,_0x4fbe4e=_0x4fbe4e!=null?_0x4fbe4e:0x1e;let _0x4d0942=0x0,_0x31ddd3=0x0,_0x16e8ac=0x0;_0x4d0942=_0x31ddd3=_0x16e8ac=Math[_0x16b66d(0x181)](_0x38c0d6,_0x142683/0x2,_0x4fbe4e/0x2),_0x8b3e18[_0x16b66d(0x1ea)](),_0x8b3e18[_0x16b66d(0x32c)](_0x4d0942,0x0),_0x8b3e18['lineTo'](_0x142683-_0x31ddd3,0x0),_0x8b3e18[_0x16b66d(0x1ae)](_0x142683-_0x31ddd3,_0x31ddd3,_0x31ddd3,Math['PI']*0x3/0x2,0x0,!0x1),_0x8b3e18[_0x16b66d(0x1cd)](_0x142683,_0x4fbe4e-_0x16e8ac),_0x8b3e18[_0x16b66d(0x1ae)](_0x142683-_0x16e8ac,_0x4fbe4e-_0x16e8ac,_0x16e8ac,0x0,Math['PI']/0x2,!0x1),_0x8b3e18['lineTo'](0x0,_0x4fbe4e),_0x8b3e18[_0x16b66d(0x1cd)](0x0,_0x4d0942),_0x8b3e18[_0x16b66d(0x1ae)](_0x4d0942,_0x4d0942,_0x4d0942,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x8b3e18['closePath'](),_0x2a2ad1[_0x16b66d(0x3d8)]&&(_0x8b3e18[_0x16b66d(0x332)](),_0x8b3e18[_0x16b66d(0x4f8)]=_0x2a2ad1[_0x16b66d(0x3d8)],_0x2a2ad1[_0x16b66d(0x2c7)]===_0x16b66d(0x1b7)?_0x8b3e18['fill']('evenodd'):_0x8b3e18[_0x16b66d(0x3d8)](),_0x8b3e18[_0x16b66d(0x307)]());}class be extends R[_0x44ec13(0x385)]{constructor(_0x4f1846,_0xa1b988){const _0xb67c1e=_0x44ec13;super(_0x4f1846,_0xa1b988),d(this,_0xb67c1e(0x493)),d(this,'text'),(this['color']=_0xa1b988==null?void 0x0:_0xa1b988[_0xb67c1e(0x493)],this[_0xb67c1e(0x4b6)]=_0xa1b988==null?void 0x0:_0xa1b988[_0xb67c1e(0x4b6)]);}static[_0x44ec13(0x265)](_0x580e6d,_0x5d2199){const _0xe5d431=_0x44ec13,{text:_0x1716c4,color:_0xb2863d}=_0x5d2199;_0x580e6d['save'](),_0x580e6d['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x437e61=_0x580e6d[_0xe5d431(0x51c)](_0x1716c4)[_0xe5d431(0x1f3)],_0x481296=Math['min'](_0x437e61+0x2*we,nt);si(_0x580e6d,{'height':_e,'radius':0x4,'width':_0x481296,'fill':_0xb2863d,'evented':!0x1}),_0x580e6d[_0xe5d431(0x4f8)]=_0xe5d431(0x24b);const _0x185ef5=we,_0x5d2427=_e-ti,_0x4424c1=nt-0x2*we;if(_0x437e61>_0x4424c1){let _0x47db85='',_0x45eedd=0x0;for(const _0x35f92c of _0x1716c4){const _0x5e015d=_0x580e6d[_0xe5d431(0x51c)](_0x35f92c)['width'];if(_0x45eedd+_0x5e015d<=_0x4424c1-_0x580e6d['measureText']('...')['width'])_0x47db85+=_0x35f92c,_0x45eedd+=_0x5e015d;else{_0x47db85+=_0xe5d431(0x4a7);break;}}_0x580e6d['fillText'](_0x47db85,_0x185ef5,_0x5d2427);}else _0x580e6d['fillText'](_0x1716c4,_0x185ef5,_0x5d2427);_0x580e6d[_0xe5d431(0x307)]();}['_draw'](_0x5daba9){const _0x56c1ca=_0x44ec13;be[_0x56c1ca(0x265)](_0x5daba9,this);}}const ii=0x1,ni=1.5;class Dt extends R[_0x44ec13(0x385)]{constructor(_0x46479b,_0xfdb565){const _0x3be506=_0x44ec13;super(_0x46479b,_0xfdb565),d(this,_0x3be506(0x1f8)),d(this,_0x3be506(0x39f),!0x1),d(this,_0x3be506(0x334)),d(this,'_name',''),d(this,'_labelPosition',_0x3be506(0x2af)),d(this,'_backgroundColor'),(_0xfdb565&&this[_0x3be506(0x210)](_0xfdb565),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x3be506(0x210)]({'hovered':!0x0})),this[_0x3be506(0x376)][_0x3be506(0x238)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x44ec13(0x210)](_0x58134c){const _0x846b6=_0x44ec13;var _0x2f98f7,_0x48a2e1,_0x1a4968,_0x2582f1,_0x4067c0,_0x10d540;this[_0x846b6(0x1f8)]=(_0x2f98f7=_0x58134c['color'])!=null?_0x2f98f7:this['_color'],this[_0x846b6(0x39f)]=(_0x48a2e1=_0x58134c[_0x846b6(0x299)])!=null?_0x48a2e1:this['_hovered'],this[_0x846b6(0x334)]=(_0x1a4968=_0x58134c[_0x846b6(0x301)])!=null?_0x1a4968:this[_0x846b6(0x334)],this['_name']=(_0x2582f1=_0x58134c['name'])!=null?_0x2582f1:this[_0x846b6(0x3fb)],this[_0x846b6(0x31d)]=(_0x4067c0=_0x58134c['labelPosition'])!=null?_0x4067c0:this[_0x846b6(0x31d)],this[_0x846b6(0x423)]=(_0x10d540=_0x58134c[_0x846b6(0x220)])!=null?_0x10d540:this[_0x846b6(0x423)],this['transformByState']({'width':_0x58134c['width'],'height':_0x58134c[_0x846b6(0x47e)]});}[_0x44ec13(0x50b)](_0x14a36c){const _0x25ec9d=_0x44ec13,{row:_0x537153,column:_0x11a39b}=_0x14a36c;if(_0x537153>=this[_0x25ec9d(0x334)]['startRow']&&_0x537153<=this[_0x25ec9d(0x334)][_0x25ec9d(0x491)]&&_0x11a39b>=this[_0x25ec9d(0x334)]['startColumn']&&_0x11a39b<=this[_0x25ec9d(0x334)][_0x25ec9d(0x3b6)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x25ec9d(0x210)]({'hovered':!0x1});}[_0x44ec13(0x250)](_0xd7be91){return!0x1;}[_0x44ec13(0x1d1)](_0x17edf6){const _0x2a0fcd=_0x44ec13;R[_0x2a0fcd(0x318)][_0x2a0fcd(0x265)](_0x17edf6,{'width':this['width'],'height':this[_0x2a0fcd(0x47e)],'strokeWidth':ni,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2a0fcd(0x423)]}),this[_0x2a0fcd(0x39f)]&&(_0x17edf6[_0x2a0fcd(0x332)](),_0x17edf6[_0x2a0fcd(0x1dd)](0x1,0x0,0x0,0x1,this[_0x2a0fcd(0x1f3)],this['_labelPosition']===_0x2a0fcd(0x3a4)?0x0:-_e),be[_0x2a0fcd(0x265)](_0x17edf6,{'text':this['_name'],'color':this[_0x2a0fcd(0x1f8)]}),_0x17edf6[_0x2a0fcd(0x307)]());}}var ri=Object['defineProperty'],oi=Object[_0x44ec13(0x2e1)],ai=(_0x5e4359,_0x3e37b2,_0x52ec8d,_0x5485b6)=>{const _0xc4a49=_0x44ec13;for(var _0x4492f2=_0x5485b6>0x1?void 0x0:_0x5485b6?oi(_0x3e37b2,_0x52ec8d):_0x3e37b2,_0x2ed13c=_0x5e4359[_0xc4a49(0x3b4)]-0x1,_0x5dc38f;_0x2ed13c>=0x0;_0x2ed13c--)(_0x5dc38f=_0x5e4359[_0x2ed13c])&&(_0x4492f2=(_0x5485b6?_0x5dc38f(_0x3e37b2,_0x52ec8d,_0x4492f2):_0x5dc38f(_0x4492f2))||_0x4492f2);return _0x5485b6&&_0x4492f2&&ri(_0x3e37b2,_0x52ec8d,_0x4492f2),_0x4492f2;},Ue=(_0x4587c4,_0xfd9368)=>(_0xd0e674,_0x39227c)=>_0xfd9368(_0xd0e674,_0x39227c,_0x4587c4);const ci=0x1389;let He=class extends a['RxDisposable']{constructor(_0x1bc374,_0x1e2184,_0x2b158b,_0x1c25b5){const _0x47c054=_0x44ec13;super(),d(this,_0x47c054(0x193),new Set()),d(this,'_lastPointer',null),(this[_0x47c054(0x2a0)]=_0x1bc374,this['_sheetSkeletonManagerService']=_0x1e2184,this['_collabCursorController']=_0x2b158b,this[_0x47c054(0x3a5)]=_0x1c25b5,this['_init']());}[_0x44ec13(0x2d0)](){const _0x3cdb5e=_0x44ec13;this[_0x3cdb5e(0x1e2)][_0x3cdb5e(0x28e)][_0x3cdb5e(0x2d5)](E[_0x3cdb5e(0x441)](this[_0x3cdb5e(0x350)]),E['switchMap'](_0x17008a=>{const _0x4b6af8=_0x3cdb5e;if(_0x17008a){const _0x33a77a=_0x17008a[_0x4b6af8(0x30a)];return v[_0x4b6af8(0x2f3)](this[_0x4b6af8(0x3fd)]['getCollabCursors$'](this['_context'][_0x4b6af8(0x1c9)]),this['_themeService'][_0x4b6af8(0x214)])['pipe'](E['map'](([_0x28692d,_0x2bbd15])=>{const _0x4bb7b3=_0x4b6af8,_0xb93d72=new Map();return _0x28692d[_0x4bb7b3(0x39a)]((_0x2ce37d,_0x5a251e)=>{const _0x2c67e0=_0x4bb7b3;if(_0x2ce37d[_0x2c67e0(0x289)]===_0x33a77a){const _0x2137e5={..._0x2ce37d};_0x2137e5[_0x2c67e0(0x493)]=_0x2bbd15[_0x2ce37d[_0x2c67e0(0x493)]],_0xb93d72[_0x2c67e0(0x47a)](_0x5a251e,_0x2137e5);}}),{'skeleton':_0x17008a,'cursors':_0xb93d72};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x3cdb5e(0x1d4)](({skeleton:_0x1987c4,cursors:_0x15b42e})=>{const _0x4025c5=_0x3cdb5e;this['_removeCollabCursors'](),_0x1987c4&&this[_0x4025c5(0x51b)](_0x1987c4,_0x15b42e);}),this[_0x3cdb5e(0x1e2)][_0x3cdb5e(0x28e)][_0x3cdb5e(0x1d4)](_0x5602bb=>{const _0x4bb977=_0x3cdb5e;if(_0x5602bb==null)return;const {skeleton:_0x434c8f}=_0x5602bb,{scene:_0x4c67af}=this['_context'];_0x4c67af[_0x4bb977(0x4e0)][_0x4bb977(0x238)](ke(_0x4d9723=>{const _0x582a59=_0x4bb977;var _0x316871,_0x25d280;const {offsetX:_0x3d399c,offsetY:_0x213a5e}=_0x4d9723,{x:_0x81ee59,y:_0x10ecc3}=_0x4c67af['getRelativeToViewportCoord'](R['Vector2']['FromArray']([_0x3d399c,_0x213a5e])),{scaleX:_0x1fc303,scaleY:_0x4912cf}=_0x4c67af[_0x582a59(0x465)](),_0x3a0cab=_0x4c67af['getViewport'](ee[_0x582a59(0x45f)]['VIEW_MAIN']),_0x552e5b=_0x4c67af[_0x582a59(0x27d)](R[_0x582a59(0x46c)][_0x582a59(0x14e)]([_0x81ee59,_0x10ecc3]),_0x3a0cab),_0x254477=_0x434c8f[_0x582a59(0x25f)](_0x3d399c,_0x213a5e,_0x1fc303,_0x4912cf,_0x552e5b);((_0x316871=this[_0x582a59(0x196)])==null?void 0x0:_0x316871[_0x582a59(0x1f6)])===_0x254477[_0x582a59(0x1f6)]&&((_0x25d280=this[_0x582a59(0x196)])==null?void 0x0:_0x25d280[_0x582a59(0x445)])===_0x254477[_0x582a59(0x445)]||this[_0x582a59(0x193)][_0x582a59(0x39a)](_0x3b112a=>{const _0xf35f74=_0x582a59;_0x3b112a[_0xf35f74(0x50b)](_0x254477);});},0x64));});}[_0x44ec13(0x51b)](_0x124834,_0x34e6b9){const _0x51fc09=_0x44ec13;var _0x345079;const _0xc336b7=(_0x345079=this[_0x51fc09(0x1e2)][_0x51fc09(0x44f)]())==null?void 0x0:_0x345079[_0x51fc09(0x4a6)];if(!_0xc336b7)return;const _0xb68697=this[_0x51fc09(0x4eb)]();if(!_0xb68697)return;this[_0x51fc09(0x193)][_0x51fc09(0x39a)](_0x363d7b=>{const _0x85084f=_0x51fc09;_0x363d7b[_0x85084f(0x4ac)]();});const {scene:_0x497fa6}=_0xb68697,_0x3a0aa4=li(Array[_0x51fc09(0x25c)](_0x34e6b9[_0x51fc09(0x541)]()))[_0x51fc09(0x341)](_0x5abcbf=>{const _0x74cd11=_0x51fc09,{color:_0x1549b5,range:_0x2b3a6b,name:_0x19f09e,selection:_0x21cfcc,sheetID:_0x52ffd4}=_0x5abcbf,{startColumn:_0x80e587,startRow:_0x517167,endColumn:_0x426fda,endRow:_0x675d16}=_0x2b3a6b,_0x232978=ee[_0x74cd11(0x4d8)](_0x517167,_0x80e587,_0x497fa6,_0xc336b7),_0xbfdfb2=ee[_0x74cd11(0x4d8)](_0x675d16,_0x426fda,_0x497fa6,_0xc336b7),{columnHeaderHeightAndMarginTop:_0x5027c3}=_0xc336b7,{startX:_0xf723a7,startY:_0x159024}=_0x232978,{endX:_0x1ff76d,endY:_0x31a0d4}=_0xbfdfb2,_0x37432c=_0x1ff76d-_0xf723a7,_0x11e8e9=_0x31a0d4-_0x159024,_0x1b89c9={'labelPosition':_0x159024-_0x5027c3>=_e?_0x74cd11(0x2af):'bottom','sheetID':_0x52ffd4,'range':_0x2b3a6b,'color':_0x1549b5,'name':_0x19f09e,'selection':_0x21cfcc,'left':_0xf723a7,'top':_0x159024,'width':_0x37432c,'height':_0x11e8e9,'evented':!0x1,'zIndex':ci};return new Dt(_0x19f09e,_0x1b89c9);});_0x497fa6[_0x51fc09(0x179)](_0x3a0aa4,ii),this[_0x51fc09(0x193)]=new Set(_0x3a0aa4);}[_0x44ec13(0x15e)](){const _0x4addc6=_0x44ec13;var _0x3f0cdd;(_0x3f0cdd=this['_cursors'])==null||_0x3f0cdd[_0x4addc6(0x39a)](_0x4e5682=>_0x4e5682[_0x4addc6(0x184)]());}[_0x44ec13(0x4eb)](){const _0x27a9d0=_0x44ec13;return ee[_0x27a9d0(0x46e)](this[_0x27a9d0(0x2a0)][_0x27a9d0(0x1c2)],this['_context']);}};He=ai([Ue(0x1,a[_0x44ec13(0x3ed)](ee[_0x44ec13(0x278)])),Ue(0x2,a[_0x44ec13(0x3ed)](te)),Ue(0x3,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4b1)]))],He);function li(_0x226ced){const _0x74e935=_0x44ec13,_0x15bc9d=new Map();return _0x226ced[_0x74e935(0x39a)](_0x1a4ebe=>{const _0x1f7aa1=_0x74e935;if(_0x15bc9d[_0x1f7aa1(0x163)](_0x1a4ebe['selection'])){const _0x295ee2=_0x15bc9d[_0x1f7aa1(0x48d)](_0x1a4ebe[_0x1f7aa1(0x378)]);_0x295ee2[_0x1f7aa1(0x48e)]+=',\x20'+_0x1a4ebe[_0x1f7aa1(0x48e)];}else _0x15bc9d['set'](_0x1a4ebe[_0x1f7aa1(0x378)],_0x1a4ebe);}),Array['from'](_0x15bc9d[_0x74e935(0x541)]());}var N=function(){const _0xb686fb=_0x44ec13;return N=Object[_0xb686fb(0x2ea)]||function(_0x80b7c6){const _0x2975ec=_0xb686fb;for(var _0x3a8f24,_0xaaa42a=0x1,_0x13e979=arguments['length'];_0xaaa42a<_0x13e979;_0xaaa42a++){_0x3a8f24=arguments[_0xaaa42a];for(var _0x453fba in _0x3a8f24)Object[_0x2975ec(0x39e)][_0x2975ec(0x266)][_0x2975ec(0x286)](_0x3a8f24,_0x453fba)&&(_0x80b7c6[_0x453fba]=_0x3a8f24[_0x453fba]);}return _0x80b7c6;},N[_0xb686fb(0x540)](this,arguments);},hi=function(_0x502db4,_0x261d2b){const _0x33570a=_0x44ec13;var _0x3f67c7={};for(var _0x3b9181 in _0x502db4)Object[_0x33570a(0x39e)][_0x33570a(0x266)][_0x33570a(0x286)](_0x502db4,_0x3b9181)&&_0x261d2b[_0x33570a(0x3c8)](_0x3b9181)<0x0&&(_0x3f67c7[_0x3b9181]=_0x502db4[_0x3b9181]);if(_0x502db4!=null&&typeof Object[_0x33570a(0x212)]==_0x33570a(0x51f)){for(var _0x12ec3c=0x0,_0x3b9181=Object['getOwnPropertySymbols'](_0x502db4);_0x12ec3c<_0x3b9181['length'];_0x12ec3c++)_0x261d2b['indexOf'](_0x3b9181[_0x12ec3c])<0x0&&Object[_0x33570a(0x39e)][_0x33570a(0x2f8)][_0x33570a(0x286)](_0x502db4,_0x3b9181[_0x12ec3c])&&(_0x3f67c7[_0x3b9181[_0x12ec3c]]=_0x502db4[_0x3b9181[_0x12ec3c]]);}return _0x3f67c7;},Xe=P[_0x44ec13(0x371)](function(_0x3194be,_0x5f0e2d){const _0x391192=_0x44ec13;var _0x18d1b0=_0x3194be[_0x391192(0x52a)],_0x1c712c=_0x3194be['id'],_0x1342ac=_0x3194be[_0x391192(0x46b)],_0x10256d=_0x3194be[_0x391192(0x2e9)],_0x4bec8f=hi(_0x3194be,[_0x391192(0x52a),'id',_0x391192(0x46b),_0x391192(0x2e9)]),_0x47d32f=_0x391192(0x2ca)['concat'](_0x1c712c,'\x20')['concat'](_0x1342ac||'')[_0x391192(0x34d)](),_0x1d124d=P[_0x391192(0x32b)]('_'[_0x391192(0x2c8)](di()));return yt(_0x18d1b0,''[_0x391192(0x2c8)](_0x1c712c),{'defIds':_0x18d1b0[_0x391192(0x326)],'idSuffix':_0x1d124d[_0x391192(0x42c)]},N({'ref':_0x5f0e2d,'className':_0x47d32f},_0x4bec8f),_0x10256d);});function yt(_0x5ab1cc,_0x437fca,_0x3e2415,_0xd2ac3,_0xd6108a){const _0x14e788=_0x44ec13;return P[_0x14e788(0x53f)](_0x5ab1cc[_0x14e788(0x1af)],N(N({'key':_0x437fca},_i(_0x5ab1cc,_0x3e2415,_0xd6108a)),_0xd2ac3),(ui(_0x5ab1cc,_0x3e2415)[_0x14e788(0x35f)]||[])['map'](function(_0x4719fd,_0x2aea30){const _0x4558bf=_0x14e788;return yt(_0x4719fd,''[_0x4558bf(0x2c8)](_0x437fca,'-')[_0x4558bf(0x2c8)](_0x5ab1cc[_0x4558bf(0x1af)],'-')[_0x4558bf(0x2c8)](_0x2aea30),_0x3e2415,void 0x0,_0xd6108a);}));}function _i(_0x349317,_0x2cf77a,_0x495daf){const _0x22bf8b=_0x44ec13;var _0x45c1b9=N({},_0x349317[_0x22bf8b(0x31e)]);_0x495daf!=null&&_0x495daf['colorChannel1']&&_0x45c1b9[_0x22bf8b(0x3d8)]===_0x22bf8b(0x29d)&&(_0x45c1b9[_0x22bf8b(0x3d8)]=_0x495daf[_0x22bf8b(0x29d)]);var _0x18fa01=_0x2cf77a[_0x22bf8b(0x326)];return!_0x18fa01||_0x18fa01[_0x22bf8b(0x3b4)]===0x0||(_0x349317['tag']==='use'&&_0x45c1b9[_0x22bf8b(0x4d4)]&&(_0x45c1b9[_0x22bf8b(0x4d4)]=_0x45c1b9[_0x22bf8b(0x4d4)]+_0x2cf77a[_0x22bf8b(0x2c9)]),Object[_0x22bf8b(0x161)](_0x45c1b9)[_0x22bf8b(0x39a)](function(_0x348a58){const _0x30a8ca=_0x22bf8b;var _0x349862=_0x348a58[0x0],_0x1b18b2=_0x348a58[0x1];typeof _0x1b18b2==_0x30a8ca(0x167)&&(_0x45c1b9[_0x349862]=_0x1b18b2[_0x30a8ca(0x264)](/url\(#(.*)\)/,_0x30a8ca(0x43c)[_0x30a8ca(0x2c8)](_0x2cf77a[_0x30a8ca(0x2c9)],')')));})),_0x45c1b9;}function ui(_0x9f39a3,_0xb9a709){const _0x350a9d=_0x44ec13;var _0x65c248,_0x206564=_0xb9a709['defIds'];return!_0x206564||_0x206564[_0x350a9d(0x3b4)]===0x0?_0x9f39a3:_0x9f39a3[_0x350a9d(0x1af)]===_0x350a9d(0x1c3)&&(!((_0x65c248=_0x9f39a3[_0x350a9d(0x35f)])===null||_0x65c248===void 0x0)&&_0x65c248[_0x350a9d(0x3b4)])?N(N({},_0x9f39a3),{'children':_0x9f39a3[_0x350a9d(0x35f)][_0x350a9d(0x341)](function(_0xa8a68c){const _0x50fdc6=_0x350a9d;return typeof _0xa8a68c[_0x50fdc6(0x31e)]['id']=='string'&&_0x206564&&_0x206564['indexOf'](_0xa8a68c[_0x50fdc6(0x31e)]['id'])>-0x1?N(N({},_0xa8a68c),{'attrs':N(N({},_0xa8a68c[_0x50fdc6(0x31e)]),{'id':_0xa8a68c[_0x50fdc6(0x31e)]['id']+_0xb9a709['idSuffix']})}):_0xa8a68c;})}):_0x9f39a3;}function di(){const _0x3c1124=_0x44ec13;return Math['random']()[_0x3c1124(0x503)](0x24)[_0x3c1124(0x380)](0x2,0x8);}Xe[_0x44ec13(0x422)]=_0x44ec13(0x1d0);var Si={'tag':_0x44ec13(0x151),'attrs':{'fill':'none','viewBox':_0x44ec13(0x1ca),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x44ec13(0x183)},'children':[{'tag':'path','attrs':{'stroke':_0x44ec13(0x41f),'d':_0x44ec13(0x495),'strokeLinecap':_0x44ec13(0x4bd),'strokeLinejoin':_0x44ec13(0x4bd),'strokeWidth':1.2}}]},{'tag':_0x44ec13(0x1c3),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x44ec13(0x15a),'attrs':{'fill':_0x44ec13(0x162),'d':_0x44ec13(0x4f6)}}]}]}],'defIds':[_0x44ec13(0x2ae)]},Pt=P[_0x44ec13(0x371)](function(_0x53284c,_0x1e1396){const _0x16e8c1=_0x44ec13;return P['createElement'](Xe,Object['assign']({},_0x53284c,{'id':_0x16e8c1(0x40b),'ref':_0x1e1396,'icon':Si}));});Pt[_0x44ec13(0x422)]='OffLineSingle';var vi={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x44ec13(0x458),'height':_0x44ec13(0x458)},'children':[{'tag':'g','attrs':{'clipPath':_0x44ec13(0x509)},'children':[{'tag':_0x44ec13(0x15a),'attrs':{'stroke':_0x44ec13(0x41f),'d':_0x44ec13(0x4ce),'strokeLinecap':'round','strokeLinejoin':_0x44ec13(0x4bd),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x44ec13(0x3c6),'attrs':{'id':_0x44ec13(0x477)},'children':[{'tag':'path','attrs':{'fill':_0x44ec13(0x162),'d':_0x44ec13(0x4f6),'transform':_0x44ec13(0x4bb)}}]}]}],'defIds':[_0x44ec13(0x477)]},wt=P['forwardRef'](function(_0x4da577,_0x2dd4c8){const _0x371b02=_0x44ec13;return P[_0x371b02(0x53f)](Xe,Object['assign']({},_0x4da577,{'id':_0x371b02(0x19b),'ref':_0x2dd4c8,'icon':vi}));});wt[_0x44ec13(0x422)]=_0x44ec13(0x315);const mi='univer-online-status-icon',fi=_0x44ec13(0x528),gi=_0x44ec13(0x20d),Ii=_0x44ec13(0x3bd),pi='univer-offline',ae={'onlineStatusIcon':mi,'onlineStatusTitle':fi,'onlineStatus':gi,'online':Ii,'offline':pi};function _0xff45(){const _0x41bd9f=['create','_registerDependencies','OnLifecycle','cursorInfo','getAncestorScale','div','serializeCombRequest','isEditing','@univerjs/drawing','[CollaborationEntity]','className','Vector2','HEARTBEAT_TIMEOUT','getSheetObject','baseRev','HEARTBEAT_INTERVAL_KEY','_docSyncEditingCollabCursorService','encodeURIComponent','_localCacheService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','?size=','stopTime','on-line-single_clip0_910_349','/resources','every','set','_anchor','_onUserLeave','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','height','3459640ractJo','_cursorInfo$','_imageSourceCache','Warning','disposeUnit','_getAPIPrefixPath','AUTHZ_URL_KEY','getActiveRange','_colorIndex','_send','USERS_ENTER','TRANSFORM_CHANGE_OBSERVABLE_TYPE','/role','_collaborationPaused','get','name','reverse','_updateStatus','endRow','_syncEditingCollabCursorService','color','LocalCacheService','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','localeService','concatMap','getSkeleton','userID','failed\x20to\x20apply\x20missed\x20changesets!','error$','/new_changes','_logService','setInterval','_colorAssignService','WorkbookEditablePermission','SNAPSHOT_SERVER_URL_KEY','_singleActiveUnitService','_registerRenderDependencies','next','INVALID_ARGUMENT','skeleton','...','deserializeRangeWithSheet','_refreshCollabCursors','_showConflictNotification','actions','makeDirty','subunit','_assignedColors','_remoteChangesetQueue','_updateURLWithCurrentState','ThemeService','FAIL','updateOfflineData','_waitForHeartbeatResponse','onSyncEditingCollabCursor','text','_scheduleCollaborationTimeoutTimer','m1Prime','_onConflict','Undefined','translate(.97)','_awaitingChangeset','round','getUnitId','CollaborationSocketService','saveImage','enableSingleActiveInstanceLock','textEncoder','capture','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','[OfflineState]:\x20received\x20acknowledgement.','RxDisposable','/rev/','loadSheet','INTERNAL_ERROR','@univerjs/engine-formula','_cachedData','_transformService','getMemberID','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','Injector','collab-text-anchor-','getParam','lodash/debounce','/object/','xlink:href','MUTATION','ERROR_IMAGE','_type','getCoordByCell','encode','liveShareOperation','getCurrentUser','PERMISSION_REJ','onlyLocal','_anchorDot','_tryEnsureSocket','onPointerMove$','CollaborationSessionService','IUniverInstanceService','unshift','HTTPService','csAckEvent','_handler','_handleEvent','auth.needGotoLoginAlert','session.room-full','confirm','_getSheetObject','_scheduleSaving','c2Prime','post','SetWorksheetActivateCommand','ONLINE','isInternalEditorID','CollaborationEvent','/object','_docStateChangeManagerService','IUndoRedoService','M0\x200H16V16H0z','_onMessage','fillStyle','_listenToOnlineEvent','ThresholdInterceptorFactory','getItem','_telemetryService','resolve','status','UUID','_createSocket','HEADER_MENU','isTransformMutationsWithChangesetSuccess','toString','split','_schedule','SetTextSelectionsOperation','clearTimeout','_snapshotServerService','url(#on-line-single_clip0_910_349)','JSONX','onMouseMove','5990650DuIIVV','_checkMissing','4468620ayQBNP','loadOfflineData','_onRemoteACK','UnitSnapshot','find','_roomMembers','_undoStacks','roomMembers$','LocaleService','then','DesktopCollaborationStatusDisplayController','whenReady','getCollabCursors$','_updateCollabCursors','measureText','_onJoinRoomEvent','_retryCount','function','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','resize','PSEUDO_FETCH_MISSING_RESULT','USERS_LEAVE','_hover','PERMISSION_DENIED','onCommandExecuted','getUnitStatus$','univer-online-status-title','BASE64','icon','state$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','JOINING','TEXT_RANGE_LAYER_INDEX','urlChange$','SYNCED','reject','deserializeToCombResponse','_handleHeartbeatEvent','compose','[OfflineState]:\x20received\x20rejection.','LocalUndoRedoService','action','getUnitOnRev','memberID','getCollabEntity','isPermissionRej','fetchMiss','_scene','DocSkeletonManagerService','createElement','apply','values','HELLO','_drawRectRange','/allowed','isActive','JOIN','jiqing500','_onCursorUpdate','put','@univerjs/engine-render','APPLY_REVISION_CONFILICT','init','hide','ImageSourceType','deepClone','_configService','_getCtorByUniverType','_shapes','roles','_loadSheet','updateCursorEvent','FromArray','_exhaustRemoteChangesetQueue','@univerjs/design','svg','_transformStack','_messageService','UNIVER_PROJECT','_clearRedo','UNKNOWN_CMD','getSheetBlock','WebSocketService','complete','path','FETCH_MISS','addImageSourceCache','event$','_removeCollabCursors','_timeoutTimer','_onConnectionFailed','entries','#fff','has','_entities','RemoveRowCommandId','_handleLeaveEvent','string','NodePositionConvertToCursor','_onRemoteChangeset','_removeClearOtherTimer','_getAPIPrefix','_unitID','Error','_socketMessageSubscription','getUnitType','_beforeCloseService','collabStatus.syncing','SHOULD_CLOSE_CONN','setAlpha','InsertRangeMoveRightCommandId','_onRefRangeChange','[CollaborationSessionService]','onTransformIME','_createInitialStateImpl','addObjects','setTimeout','listRoles','getColor','COMPRESS_MUTATION_SEND','close','handleMoveRange','_clearTimeoutTimer','min','error','url(#off-line-single_clip0_910_343)','dispose','univer-pro.collaboration-client-socket-service','RegularPolygon','COMMENT_UPDATE','getCurrentRevForDocument','headers','parse','_commentService','requestParams','[CollaborationSession]','fromEventSubject','YUUMI_RATE_OVER_LIMIT','result','_onFetchMissResult','_onLocalMutation','_cursors','synced','CHANGESET_REJ','_lastPointer','disableLocalCache','NOT_FOUND','symbol','transformMutation','on-line-single','_getUndoStack','_initStatusListener','offline','_transformSelections','conflict.content','/fetchmissing?from=','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_roomMembers$','IImageIoService','CHANGESET_ACK','Ready','RevisionService','socketService','IBeforeCloseService','useDependency','SnapshotServerOverHTTPService','transformUndoRedo','Starting','arc','tag','reconnect','NO_OTHER_CLIENTS_EDITING','_onCombEvent','ALREADY_EXISTS','\x20in\x20_schedule.','revision','getSheetId','evenodd','sequenceExecute','refreshPermission','RECV','debug','b64DecodeUnicode','useCallback','onload','socket$','_transitionLocked','UniverInstanceType','unit','defs','_docSkeletonManagerService','_updateLocalCursor','isTransformChangesetsSuccess','collabStatus.synced','1288KqRXzr','unitId','0\x200\x2016\x2016','mutations','[CollaborationSessionService]:\x20socket\x20error','lineTo','engine','getTypeOfUnitDisposed$','UniverIcon','_draw','_sendHeartbeat','_saveTaskMap','subscribe','parseChangesetToProtocol','RefRangeService','getCollabEntity$','_shouldReportTelemetry','permissionRejEvent','includes','/collaborator','ranges','transform','onRemoteAck','collaboration-session-retry','_docSkeleton','_getAnchorBounding','_sheetSkeletonManagerService','onTransformChange$','change$','conflict','Rectangle','DEFAULT_FILE_NAME','rxjs/operators','Optional','beginPath','_fetchMissChangesets','send','LOCAL_CACHE_INTERVAL','filter','toDisposable','[PendingState]:\x20unhandled\x20univer\x20type:\x20','clearInterval','SUBMIT_CHANGESET','width','_startSheetCollabCursor','newValue','column','/universer-api/oidc/authpage','_color','UNDEFINED','image/jpeg','_disabled','8247NkaaRs','IDLE','getMember','_scheduleHeartbeat','_handleJoinEvent','_clearUndo','updatePermissionPoint','IURLService','?url=','setConfig','_initResize','withCredentials','_replayCachedMutations','Disposable','findNodePositionByCharIndex','cursorInfo$','_clearHeartbeatTimer','univer-online-status','delete','sheets','setShapeProps','_docTransformSelectionsService','getOwnPropertySymbols','image/gif','currentTheme$','doc.mutation.rich-text-editing','[CollaborationState]:\x20apply\x20error!','fetchThroughInterceptors','toggleOffline','getActiveSheet','ITelemetryService','handleIRemoveCol','putCollaborators','FileId','_session','onMissedChangesetFetched','backgroundColor','IContextService','1qkdDBV','_httpService','_http','method','IRenderManagerService','getConfig','PENDING','getTime','members','generateRandomId','selections','_acknowledgedAwaitingChangeset','_status$','transformIMECache','delay','MoveRangeCommandId','2906672KBAuYb','_stopTelemetryCollaborationNewChangeset','_userManagerService','getSheetBySheetId','sessionStatus','conflict.title','subscribeEvent','_members','searchParams','_getCurrentRevision','_collaborationTimeoutTimer','registerRefRange','XHRHTTPImplementation','ImageIoService','fetch_missing','SNAPSHOT_HAS_BEEN_REMOVED','_transformRemoteChangesetByIMECache','onTransformSelections','getResourcesRequest','requireSession','saveSnapshot','purple300','awaiting','exhaustSavingTask','_collabCursorState$','#FFF','roomMembers','awaiting_with_pending','_getScale','c1Prime','triggerDblclick','objectActions','_setupSubUnitSync','UPDATE_CURSOR','_rescheduleHeartbeat','LICENSE_DISTRO_REJECTED','setParam','_getMergeRange','_startTelemetryCollaborationNewChangeset','IConfigService','_syncEditingCollabCursor','reduce','from','getUndoRedoMutationParamsCache','telemetry\x20info\x20is\x20not\x20initialized','getCellPositionByOffset','_onUserJoin','HEARTBEAT','createSocket','UnitEmbedded','replace','drawWith','hasOwnProperty','fromCollab','HttpImport','setUndoRedoMutationParamsCache','MSG_FOR_ERROR','collaMsg','removeParam','onPointerEnter$','collabStatus.conflict','collaboratorID','updateMember','_updateSubUnitFromURLParams','_unitStatus','CollaborationEntity','_urlService','ITransformService','_sessions','resend','SheetSkeletonManagerService','cmd','/universer-api/comb','image/jpg','CollaborationController','getVpScrollXYInfoByPosToVp','subUnitId','awaitingChangeset','session.connection-failed','NEW_CHANGESETS','_lockTransition','handleDeleteRangeMoveLeft','catch','_id','call','Steady','POST','sheetID','_instanceService','removeEventListener','transformSelections','_retryConnectingTimer','currentSkeleton$','MessageType','_substituteRedoStack','[CollaborationUndoRedoService]','_refRangeService','SEND_CHANGESET_TIMEOUT','_notificationService','handleInsertRangeMoveDown','_unlockTransition','enableLocalCache','_getUploadFileURL','hovered','RETRY_CONNECTING_MAX_COUNT','ColorKit','updateCollaborator','colorChannel1','getRoom','LICENSE_IMPORT_SIZE_EXCEEDED','_context','_sessionStatus$','socket\x20close','getMergeData','getOffsetConfig','LICENSE_EXPORT_SIZE_EXCEEDED','changesets','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onTransformRemoteChangesetByIMECache','href','Plugin','YUUMI_URL_COL_OUT_OF_RANGE','\x0aCurrent:\x20','_online','off-line-single_clip0_910_343','top','getImage','registerComponent','sessionStatus$','_throwTelemetryCollaborationNewChangeset','_handleHover','stringify','setWaitCount','DataLoaderController','roomInfos','_univerInstanceService','getValue','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_state$','_memberService','COMPRESS_MUTATION_APPLY','blue400','uni.network.url-service','collaboration.single-unit.warning','toggleOnline','closeSession','getUnhiddenWorksheets','EffectRefRangId','_onOffline','fillRule','concat','idSuffix','univerjs-icon\x20univerjs-icon-','_clearLocalCache','with','COLLAB_WEB_SOCKET_URL_KEY','workbook','_ensureSubject','_init','ILogService','focused$','_renderManagerService','close$','pipe','LIVESHARE_OPERATION','_startDocCollabCursor','{fileID}','_revisionService','IUIPartsService','_event$','SNAPSHOT_URL_KEY','APPLY_NON_SEQUENTIAL_REVISION','_drawTextRange','unload','_sheetTransformSelectionsService','getOwnPropertyDescriptor','_socket$','@univerjs/docs','UNIVER_SLIDE','HEARTBEAT_INTERVAL','_pendingMutations','loadDoc','SNAPSHOT_INVALID_SNAPSHOT','extend','assign','params','defineProperty','type','pending','slice','InsertRowCommandId','m2Prime','InsertColCommandId','combineLatest','/-/object/-/batch_allowed','fetching\x20missing\x20changesets\x20from\x20','/universer-api/file/{fileID}/sign-url','NOT_COLLAB','propertyIsEnumerable','collab-text-range-','getFocusedUnit','ws://127.0.0.1:8000/universer-api/comb/connect','_heartbeatTimer','routeKey','ERROR_IMAGE_TYPE','_getSnapshotAPIPrefix','_getSignURL','range','state','message$','transformMutationsWithChangeset','_createInitialState','pluginName','restore','_getSaveTimeout','_isPermissionRej','sheetId','LifecycleStages','@univerjs/sheets-ui','socket\x20open.','_commandService','_clearCollaborationTimeoutTimer','9sLkatP','transformChangesets','_compressMutationService','LIVESHARE_NEW_HOST','DependentOn','OnLineSingle','_change$','IPermissionService','Rect','_config','_disableEditing','_removeRoom','update','_labelPosition','attrs','UNIVER_UNKNOWN','AWAITING_WITH_PENDING','NodePositionConvertToRectRange','getDocRanges','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','online','getWorkbookSelections','defIds','setItem','open$','commentUpdateEvent','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','useRef','moveTo','fromEvent','_onCursorDelete','_toggleOnline','_localeService','/universer-api/snapshot/','save','SetDocZoomRatioOperation','_range','switchMap','_telemetryInfo','collaborators','_getSendChangesetTimeout','permission.content','_sendHeartbeatTimer','_substituteUndoStack','_replaceFileID','_collabSessionService','UNIVER_COLLABORATION_CLIENT_PLUGIN','debounceTime','black','map','_submitChangeset','_createHandler','UNIVER_DOC','transformRemoteChangeset','react','_selfUnitIDs','eventID','collaboration.closeRoom','COLORS','_transformPreviousActiveRange','_docTransformIMECacheService','trim','parseProtocolChangeset','APPLY_REJECT','dispose$','UPDATE_PERMISSION_OBJ','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_state','location','SEND_CHANGESET_TIMEOUT_KEY','UNRECOGNIZED','[OfflineState]:\x20received\x20changeset.','_incrementRevisionNumber','ICommandService','_startCollaboration','registerRenderModule','_initUnitPermissionChange','commentUpdate$','_localStorageService','children','_injector','LOGIN_URL_KEY','BehaviorSubject','LOCAL_CACHE_INTERVAL_KEY','UNKNOWN_CODE','_waitCount','size','joinRsp','registerOnClose','isArray','updatePermissionObjEvent','_updateLocalCache','onRendered','session','handleInsertCol','title','code','forwardRef','handleInsertRow','batchAllowed','IHTTPImplementation','collabStatus.fetchMiss','onPointerLeave$','_initStatusComponent','selection','_cursor','add','show','Unknown\x20user','onRemoteChangeset','CommandType','_collaborationSessionService','substring','@univerjs/telemetry','image/png','SnapshotService','fetchMissingChangesets','Shape','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','data','startTime','_commentUpdate$','CompressMutationService','&to=','_queuedRemoteChangesets','replaceTextRanges','createIdentifier','Module','COLLAB_SUBMIT_CHANGESET_URL','startsWith','saveChangeset','removeMember','[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.','_clearOtherTimers','getCurrentUnitForType','CollaborationSession','_transformUndoRedoStack','disposeWithMe','forEach','EmptyMutation','_loadDoc','UNAUTHENTICATED','prototype','_hovered','SheetCollaborationEntity','/unit/','assignAColorForMemberID','push','bottom','_themeService','saveSheetBlock','OFFLINE','_render','COLLAB_SUBMIT_CHANGESET_URL_KEY','connection\x20error','CONNECTOR_DATA_TOO_LARGE','YUUMI_SUBSCRIPTION_NOT_FOUND','_onConnectionOpen','_sendingTimer','responseType','shouldCloseConn','ILocalStorageService','unknown','RichTextEditingMutation','length','onStateChange','endColumn','pushState','url','getRenderById','_cursorShapes','Tooltip','_onRecvEvent','univer-online','createInstance','contains','CollaborationStatus','merge','IMessageService','snapshot','body','_HTTPService','clipPath','_socket','indexOf','_uiPartsService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_executeRemoteChangeset','DocIMEInputManagerService','history','Tools','_scheduleTimestamp','onSendChangeset','patch','objectType','SUCCUSS','collab-client.tooltip.reconnect','_hideTimer','SetSelectionsOperation','toRgbString','fill','ImageUploadStatusType','Subject','CONFLICT','setActiveRange','FETCH_MISSING','_socketReady','_snapshotService','_listenToOfflineEvent','clear','_entityInit$','addEventListener','mapTo','unit-cache-','executeCommand','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','UniverCollaborationPlugin','_unitOnClients','AuthzIoHttpService','LICENSE_MAX_UNITS_EXCEEDED','interceptor','Inject','Univer','@univerjs/rpc','throttleTime','BuiltInUIPart','unsubscribe','_scheduleClearOtherTimer','LIVESHARE_TERMINATE','CHANGESET_REVISION_CONFILICT','_candidateSocket','handleIRemoveRow','LIVESHARE_REQUEST_HOST','originalMeta','onCommentUpdate','_name','_permissionService','_collabCursorController','_document','take','list','mapDocumentTypeToUniverType','DisposableCollection','[DataLoaderController]','UniverCollaborationClientPlugin','submit\x20changeset\x20error!','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onMissingChangesets','isValidRectRange','LIVESHARE_FETCH_OPERATIONS','objectID','off-line-single','createCollaborator','YUUMI_UNABLE_LOAD_URL','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','registerHTTPInterceptor','incrementRevForDocument','LEAVE','_initMergeInterceptor','initWorkbookPermissionChange','@univerjs/docs-ui','duration','_clearScheduledTask','onlineStatus','override','@univerjs-pro/collaboration','isTransformMutationFailure','SheetsSelectionsService','_updateState','max','RETRY_CONNECTING_INTERVAL_KEY','currentColor','UNIVER_SHEET','liveShareNewHost','displayName','_backgroundColor','_toggleOffline','registerBeforeClose','unitID','42927660OwQTjO','_undoRedoService','_getRedoStack','OTHER_CLIENTS_EDITING','8888740mrfOoB','current','syncEditingCollabCursor','getImageSourceCache','unitId\x20is\x20not\x20found','verdancy600','APPLY_PERMISSION_DENIED','onlineStatusIcon','handleDeleteRangeMoveUp','enableOfflineEditing','addObject','@univerjs/network','resourceIDs','@univerjs/core','asObservable','@univerjs/sheets','ISnapshotServerService','url(#$1','_onRemoteRejected','key','_setupBeforeClosingHandler','_decreaseWaiting','takeUntil','textRanges','appendMutation','AWAITING','row','shareReplay','_joinRoom','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_eventUnsubscribe','getRangePointData','collaboration_new_changeset','status$','getInterceptPoints','json','getCurrent','red300','_applyRemoteChangeset','@univerjs/ui','not_collab','onRemoteRej','getTypeOfUnitAdded$','_ws','rev','1em','DocCollaborationEntity','_getLoginPath','popstate','_saveCache','_textBubble','INGEST','VIEWPORT_KEY','_tryReconnect'];_0xff45=function(){return _0x41bd9f;};return _0xff45();}function _0x2929(_0xe71841,_0x5e86e9){const _0xff45d5=_0xff45();return _0x2929=function(_0x292945,_0x21db0b){_0x292945=_0x292945-0x13d;let _0x4110a2=_0xff45d5[_0x292945];return _0x4110a2;},_0x2929(_0xe71841,_0x5e86e9);}function Ci(_0x1a2339){const _0x5d3644=_0x44ec13;switch(_0x1a2339){case y[_0x5d3644(0x3a7)]:return'collabStatus.offline';case y['CONFLICT']:return _0x5d3644(0x26e);case y[_0x5d3644(0x15b)]:return _0x5d3644(0x375);case y[_0x5d3644(0x2f7)]:return'collabStatus.notCollab';case y[_0x5d3644(0x228)]:case y[_0x5d3644(0x444)]:case y[_0x5d3644(0x320)]:return _0x5d3644(0x171);case y[_0x5d3644(0x530)]:return _0x5d3644(0x1c7);}}function Ut(_0x3313a3){const _0x52e16f=_0x44ec13,{status$:_0x1d26a0}=_0x3313a3,_0x143e80=M['useObservable'](_0x1d26a0,y[_0x52e16f(0x2f7)]),_0x2f4d58=a[_0x52e16f(0x1aa)](a[_0x52e16f(0x516)]),_0x3c1161=a[_0x52e16f(0x1aa)](exports[_0x52e16f(0x4e1)]),_0x235e1f=_0x143e80!==y['OFFLINE'],_0x530a5c=_0x2f4d58['t'](Ci(_0x143e80)),_0x3306f9=Ft(ae[_0x52e16f(0x417)],{[ae['online']]:_0x235e1f,[ae[_0x52e16f(0x19e)]]:!_0x235e1f}),_0x59f728=_0x235e1f?P[_0x52e16f(0x53f)](wt,null):P[_0x52e16f(0x53f)](Pt,null),_0x2cf24e=P[_0x52e16f(0x1bd)](()=>{const _0x259029=_0x52e16f;_0x235e1f||_0x3c1161[_0x259029(0x1b0)]();},[_0x235e1f,_0x3c1161]);function _0x28fa32(){const _0x3adbe5=_0x52e16f;return P['createElement'](_0x3adbe5(0x466),{'className':_0x3306f9,'onClick':_0x2cf24e},P[_0x3adbe5(0x53f)]('div',{'className':ae[_0x3adbe5(0x432)]},_0x59f728),P[_0x3adbe5(0x53f)](_0x3adbe5(0x466),{'className':ae['onlineStatusTitle']},_0x530a5c));}return _0x235e1f?_0x28fa32():P[_0x52e16f(0x53f)](K[_0x52e16f(0x3bb)],{'title':_0x2f4d58['t'](_0x52e16f(0x3d4))},_0x28fa32());}var Ei=Object[_0x44ec13(0x2ec)],bi=Object[_0x44ec13(0x2e1)],Ti=(_0x3222c3,_0x44ff18,_0x1f4891,_0x9680a6)=>{const _0x2fc4de=_0x44ec13;for(var _0x5598bf=_0x9680a6>0x1?void 0x0:_0x9680a6?bi(_0x44ff18,_0x1f4891):_0x44ff18,_0x3360e7=_0x3222c3[_0x2fc4de(0x3b4)]-0x1,_0x144fd7;_0x3360e7>=0x0;_0x3360e7--)(_0x144fd7=_0x3222c3[_0x3360e7])&&(_0x5598bf=(_0x9680a6?_0x144fd7(_0x44ff18,_0x1f4891,_0x5598bf):_0x144fd7(_0x5598bf))||_0x5598bf);return _0x9680a6&&_0x5598bf&&Ei(_0x44ff18,_0x1f4891,_0x5598bf),_0x5598bf;},ue=(_0x3dce7a,_0x1c4386)=>(_0x357154,_0x555188)=>_0x1c4386(_0x357154,_0x555188,_0x3dce7a);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x4c93ac,_0x4ee229,_0x2db918,_0x22d3a2){const _0xd4b2d0=_0x44ec13;super(),d(this,'_status$',new v[(_0xd4b2d0(0x362))](y['NOT_COLLAB'])),(this[_0xd4b2d0(0x2b9)]=_0x4c93ac,this['_uiPartsService']=_0x4ee229,this[_0xd4b2d0(0x360)]=_0x2db918,this['_collaborationController']=_0x22d3a2,this[_0xd4b2d0(0x377)](),this[_0xd4b2d0(0x19d)]());}[_0x44ec13(0x19d)](){const _0x5c60dc=_0x44ec13;this[_0x5c60dc(0x399)](this['_univerInstanceService'][_0x5c60dc(0x2d2)][_0x5c60dc(0x2d5)](v[_0x5c60dc(0x335)](()=>{const _0x5093ad=_0x5c60dc,_0x159b9e=this['_univerInstanceService'][_0x5093ad(0x2fa)]();return _0x159b9e?this['_collaborationController'][_0x5093ad(0x1d7)](_0x159b9e[_0x5093ad(0x4be)]()):v['of'](null);}),v['switchMap'](_0x194c86=>_0x194c86?_0x194c86['status$']:v['of'](y[_0x5c60dc(0x2f7)])))[_0x5c60dc(0x1d4)](_0x4c85aa=>{const _0x3bfbf0=_0x5c60dc;this[_0x3bfbf0(0x22e)][_0x3bfbf0(0x4a4)](_0x4c85aa);}));}['_initStatusComponent'](){const _0x355174=_0x44ec13;this[_0x355174(0x399)](this[_0x355174(0x3c9)][_0x355174(0x2b1)](M[_0x355174(0x3f1)][_0x355174(0x501)],()=>a['connectInjector'](Ri({'status$':this[_0x355174(0x22e)][_0x355174(0x439)]()}),this[_0x355174(0x360)])));}},exports[_0x44ec13(0x518)]=Ti([ue(0x0,a[_0x44ec13(0x4e2)]),ue(0x1,M[_0x44ec13(0x2da)]),ue(0x2,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),ue(0x3,a['Inject'](exports[_0x44ec13(0x27c)]))],exports['DesktopCollaborationStatusDisplayController']);function Ri(_0x4131b0){const {status$:_0x2ce6f1}=_0x4131b0;return function(){const _0x9997e=_0x2929;return P[_0x9997e(0x53f)](Ut,{'status$':_0x2ce6f1});};}const qe=a[_0x44ec13(0x38e)](_0x44ec13(0x2c0));var Oi=Object[_0x44ec13(0x2ec)],Di=Object[_0x44ec13(0x2e1)],yi=(_0x238201,_0x4fb393,_0x2fe7d5,_0x28d143)=>{const _0x2b2789=_0x44ec13;for(var _0x1b9f3a=_0x28d143>0x1?void 0x0:_0x28d143?Di(_0x4fb393,_0x2fe7d5):_0x4fb393,_0x14d5e9=_0x238201[_0x2b2789(0x3b4)]-0x1,_0x4a1df9;_0x14d5e9>=0x0;_0x14d5e9--)(_0x4a1df9=_0x238201[_0x14d5e9])&&(_0x1b9f3a=(_0x28d143?_0x4a1df9(_0x4fb393,_0x2fe7d5,_0x1b9f3a):_0x4a1df9(_0x1b9f3a))||_0x1b9f3a);return _0x28d143&&_0x1b9f3a&&Oi(_0x4fb393,_0x2fe7d5,_0x1b9f3a),_0x1b9f3a;},Q=(_0x86c1a,_0x4cc497)=>(_0x90da61,_0x2f783a)=>_0x4cc497(_0x90da61,_0x2f783a,_0x86c1a);exports[_0x44ec13(0x2b7)]=class extends a[_0x44ec13(0x4c6)]{constructor(_0x17c00f,_0x242b2b,_0x599e90,_0x3e5bbc,_0xdafc0d,_0x37e11e){const _0x53dd4a=_0x44ec13;super(),this[_0x53dd4a(0x274)]=_0x17c00f,this[_0x53dd4a(0x49d)]=_0x242b2b,this[_0x53dd4a(0x30e)]=_0x599e90,this[_0x53dd4a(0x473)]=_0x3e5bbc,this[_0x53dd4a(0x3df)]=_0xdafc0d,_0x37e11e?_0x37e11e==null||_0x37e11e[_0x53dd4a(0x519)]()[_0x53dd4a(0x517)](()=>this[_0x53dd4a(0x2d0)]()):(this[_0x53dd4a(0x49d)][_0x53dd4a(0x1bb)](_0x53dd4a(0x403),_0x53dd4a(0x520)),this[_0x53dd4a(0x2d0)]());}async[_0x44ec13(0x2d0)](){const _0x2c6e5b=_0x44ec13,_0x3f3a9b=this[_0x2c6e5b(0x274)]['getParam'](_0x2c6e5b(0x1c2)),_0x126f9b=this[_0x2c6e5b(0x274)][_0x2c6e5b(0x4d1)](_0x2c6e5b(0x2ed));if(!_0x3f3a9b||!_0x126f9b){this[_0x2c6e5b(0x49d)][_0x2c6e5b(0x1bb)](_0x2c6e5b(0x403),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x126f9b)){case A['UNIVER_SHEET']:{const _0x55a0fd=await this[_0x2c6e5b(0x14c)](_0x3f3a9b);this[_0x2c6e5b(0x252)](_0x55a0fd);break;}case A[_0x2c6e5b(0x344)]:{await this[_0x2c6e5b(0x39c)](_0x3f3a9b);break;}default:{this[_0x2c6e5b(0x49d)][_0x2c6e5b(0x182)](_0x2c6e5b(0x403),_0x2c6e5b(0x2bb));break;}}}async[_0x44ec13(0x252)](_0x21bcd2){const _0x2353c3=_0x44ec13;await this[_0x2353c3(0x271)](_0x21bcd2),_0x21bcd2['activeSheet$'][_0x2353c3(0x2d5)](v[_0x2353c3(0x441)](this[_0x2353c3(0x350)]))['subscribe'](_0x412c14=>{const _0x13892f=_0x2353c3;_0x412c14&&this[_0x13892f(0x4b0)](_0x412c14);}),this[_0x2353c3(0x274)][_0x2353c3(0x52f)][_0x2353c3(0x2d5)](v[_0x2353c3(0x441)](this[_0x2353c3(0x350)]))[_0x2353c3(0x1d4)](()=>this[_0x2353c3(0x271)](_0x21bcd2));}['_updateURLWithCurrentState'](_0xf39e02,_0x4f384f=!0x1){const _0x209229=_0x44ec13,_0x17c846=this['_urlService']['getParam'](_0x209229(0x4ad));_0xf39e02[_0x209229(0x1b6)]()!==_0x17c846&&this['_urlService'][_0x209229(0x256)](_0x209229(0x4ad),_0xf39e02['getSheetId'](),_0x4f384f);}async['_updateSubUnitFromURLParams'](_0x67ebbd){const _0x43ad8e=_0x44ec13;var _0x2f0d05;const _0x224292=this['_urlService']['getParam'](_0x43ad8e(0x4ad));if(!_0x224292||!_0x67ebbd[_0x43ad8e(0x235)](_0x224292)){const _0x51303a=_0x67ebbd[_0x43ad8e(0x2c4)]()[0x0],_0x419199=_0x67ebbd[_0x43ad8e(0x235)](_0x51303a);if(!_0x419199)return;this[_0x43ad8e(0x4b0)](_0x419199,!0x0),await this[_0x43ad8e(0x30e)][_0x43ad8e(0x3e6)](C[_0x43ad8e(0x4ef)]['id'],{'unitId':_0x67ebbd[_0x43ad8e(0x4be)](),'subUnitId':_0x51303a});return;}((_0x2f0d05=_0x67ebbd[_0x43ad8e(0x219)]())==null?void 0x0:_0x2f0d05[_0x43ad8e(0x1b6)]())!==_0x224292&&await this[_0x43ad8e(0x30e)][_0x43ad8e(0x3e6)](C[_0x43ad8e(0x4ef)]['id'],{'unitId':_0x67ebbd[_0x43ad8e(0x4be)](),'subUnitId':_0x224292});}async['_loadSheet'](_0x23e67c){const _0x3c79e8=_0x44ec13;let _0x43398c=0x0;const _0x5724ec=await this[_0x3c79e8(0x473)][_0x3c79e8(0x50f)](_0x23e67c);return _0x5724ec&&(_0x5724ec[_0x3c79e8(0x27f)]||_0x5724ec['mutations'][_0x3c79e8(0x3b4)]!==0x0)&&(_0x43398c=_0x5724ec[_0x3c79e8(0x457)]),_0x43398c===0x0&&this[_0x3c79e8(0x49d)][_0x3c79e8(0x1bb)](_0x3c79e8(0x403),_0x3c79e8(0x1a2)),this[_0x3c79e8(0x3df)][_0x3c79e8(0x4c8)](_0x23e67c,_0x43398c);}async[_0x44ec13(0x39c)](_0x3534a1){const _0x1c242f=_0x44ec13;let _0xf4e212=0x0;const _0x465c44=await this[_0x1c242f(0x473)]['loadOfflineData'](_0x3534a1);return _0x465c44&&(_0x465c44[_0x1c242f(0x27f)]||_0x465c44[_0x1c242f(0x1cb)][_0x1c242f(0x3b4)]!==0x0)&&(_0xf4e212=_0x465c44[_0x1c242f(0x457)]),_0xf4e212===0x0&&this[_0x1c242f(0x49d)][_0x1c242f(0x1bb)](_0x1c242f(0x403),_0x1c242f(0x1a2)),this[_0x1c242f(0x3df)][_0x1c242f(0x2e7)](_0x3534a1,_0xf4e212);}},exports[_0x44ec13(0x2b7)]=yi([a[_0x44ec13(0x463)](a[_0x44ec13(0x30b)][_0x44ec13(0x1ad)],exports[_0x44ec13(0x2b7)]),Q(0x0,qe),Q(0x1,a[_0x44ec13(0x2d1)]),Q(0x2,a[_0x44ec13(0x359)]),Q(0x3,a['Inject'](exports['LocalCacheService'])),Q(0x4,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x383)])),Q(0x5,a[_0x44ec13(0x1e9)](Wt['IRemoteInstanceService']))],exports[_0x44ec13(0x2b7)]);var Pi=Object[_0x44ec13(0x2ec)],wi=Object[_0x44ec13(0x2e1)],Ui=(_0xc315f6,_0x57fa50,_0x1ab8ca,_0x1db5be)=>{const _0x48b55d=_0x44ec13;for(var _0x5526f2=_0x1db5be>0x1?void 0x0:_0x1db5be?wi(_0x57fa50,_0x1ab8ca):_0x57fa50,_0x2e8cfe=_0xc315f6[_0x48b55d(0x3b4)]-0x1,_0x17bb08;_0x2e8cfe>=0x0;_0x2e8cfe--)(_0x17bb08=_0xc315f6[_0x2e8cfe])&&(_0x5526f2=(_0x1db5be?_0x17bb08(_0x57fa50,_0x1ab8ca,_0x5526f2):_0x17bb08(_0x5526f2))||_0x5526f2);return _0x1db5be&&_0x5526f2&&Pi(_0x57fa50,_0x1ab8ca,_0x5526f2),_0x5526f2;},rt=(_0x4e1301,_0x24750f)=>(_0x429dbc,_0x1073db)=>_0x24750f(_0x429dbc,_0x1073db,_0x4e1301);const Ni=_0x44ec13(0x1e7),Mi=_0x44ec13(0x3ee);let ve=class extends a[_0x44ec13(0x209)]{constructor(_0x2759c2,_0x452cef){const _0x4aec5e=_0x44ec13;super(),this[_0x4aec5e(0x2b9)]=_0x2759c2,this[_0x4aec5e(0x148)]=_0x452cef,this[_0x4aec5e(0x2d0)]();}[_0x44ec13(0x2d0)](){const _0x11daaa=_0x44ec13;this[_0x11daaa(0x399)](a[_0x11daaa(0x1ef)](this[_0x11daaa(0x2b9)][_0x11daaa(0x2d2)]['subscribe'](()=>{const _0x51297e=_0x11daaa;var _0x22409c;const _0x935f47=this[_0x51297e(0x2b9)][_0x51297e(0x2fa)]();let _0x589749=(_0x22409c=this[_0x51297e(0x148)][_0x51297e(0x227)](Ni))!=null?_0x22409c:Mi;_0x935f47 instanceof a['Workbook']&&(_0x589749=_0x935f47['name']),document[_0x51297e(0x36f)]=_0x589749;})));}};ve=Ui([a['OnLifecycle'](a[_0x44ec13(0x30b)][_0x44ec13(0x1a6)],ve),rt(0x0,a[_0x44ec13(0x4e2)]),rt(0x1,a[_0x44ec13(0x259)])],ve);var Li=Object[_0x44ec13(0x2ec)],Ai=Object['getOwnPropertyDescriptor'],ji=(_0x518b89,_0x2b67d8,_0x52f261,_0x5a8c01)=>{const _0x58256f=_0x44ec13;for(var _0x3f835e=_0x5a8c01>0x1?void 0x0:_0x5a8c01?Ai(_0x2b67d8,_0x52f261):_0x2b67d8,_0x4f3a6b=_0x518b89[_0x58256f(0x3b4)]-0x1,_0x5763db;_0x4f3a6b>=0x0;_0x4f3a6b--)(_0x5763db=_0x518b89[_0x4f3a6b])&&(_0x3f835e=(_0x5a8c01?_0x5763db(_0x2b67d8,_0x52f261,_0x3f835e):_0x5763db(_0x3f835e))||_0x3f835e);return _0x5a8c01&&_0x3f835e&&Li(_0x2b67d8,_0x52f261,_0x3f835e),_0x3f835e;},ot=(_0x1c2fe3,_0x29f4cd)=>(_0x4083b9,_0x2fce8d)=>_0x29f4cd(_0x4083b9,_0x2fce8d,_0x1c2fe3);exports['SnapshotServerOverHTTPService']=class{constructor(_0x34be56,_0x4a786f){const _0xcb315d=_0x44ec13;this[_0xcb315d(0x148)]=_0x34be56,this[_0xcb315d(0x223)]=_0x4a786f;}async[_0x44ec13(0x538)](_0x2549c5,_0x3017ce){const _0x3c0230=_0x44ec13;var _0x384ec3;const {unitID:_0x331520,type:_0x3ea7eb,revision:_0x4c2789=0x0}=_0x3017ce,_0x1dcfd6=this[_0x3c0230(0x2ff)]()+'/'+_0x3ea7eb+_0x3c0230(0x3a1)+_0x331520+_0x3c0230(0x4c7)+_0x4c2789,_0x288327=(await this[_0x3c0230(0x223)][_0x3c0230(0x48d)](_0x1dcfd6))[_0x3c0230(0x3c4)],_0x46b6c3=(_0x384ec3=_0x288327[_0x3c0230(0x3c3)])==null?void 0x0:_0x384ec3[_0x3c0230(0x2ce)];if(_0x46b6c3){const _0x5546e2=_0x46b6c3==null?void 0x0:_0x46b6c3[_0x3c0230(0x3f9)],_0x44a21d=_[_0x3c0230(0x4c2)]['encode'](_[_0x3c0230(0x1bc)](_0x5546e2));_0x46b6c3[_0x3c0230(0x3f9)]=_0x44a21d,Object[_0x3c0230(0x161)](_0x46b6c3[_0x3c0230(0x20f)])['forEach'](([,_0x265306])=>{const _0x4c65b4=_0x3c0230,_0x4d27b0=_0x265306[_0x4c65b4(0x3f9)],_0x1f696c=_[_0x4c65b4(0x4c2)][_0x4c65b4(0x4d9)](_[_0x4c65b4(0x1bc)](_0x4d27b0));_0x265306['originalMeta']=_0x1f696c;});}return _0x288327;}async[_0x44ec13(0x157)](_0x160f66,_0x7a1ecf){const _0x33fe76=_0x44ec13,{unitID:_0x22c51b,type:_0x3e44c4,blockID:_0x5dcca3}=_0x7a1ecf,_0x1ed848=this[_0x33fe76(0x16b)]()+'/'+_0x3e44c4+'/unit/'+_0x22c51b+'/block/'+_0x5dcca3;return(await this['_httpService'][_0x33fe76(0x48d)](_0x1ed848))[_0x33fe76(0x3c4)];}async['fetchMissingChangesets'](_0x40887a,_0x954cc6){const _0x21d775=_0x44ec13,{unitID:_0x3e252a,type:_0x12d57e,from:_0x8e7e10,to:_0x57bb1d}=_0x954cc6,_0x39e524=this['_getAPIPrefix']()+'/'+_0x12d57e+_0x21d775(0x3a1)+_0x3e252a+_0x21d775(0x1a1)+_0x8e7e10+_0x21d775(0x38b)+_0x57bb1d;return(await this[_0x21d775(0x223)][_0x21d775(0x48d)](_0x39e524))[_0x21d775(0x3c4)];}[_0x44ec13(0x2ff)](){const _0x30f344=_0x44ec13;var _0x5f226f;return(_0x5f226f=this[_0x30f344(0x148)]['getConfig'](ht))!=null?_0x5f226f:this[_0x30f344(0x16b)]();}[_0x44ec13(0x16b)](){const _0x264d98=_0x44ec13;var _0x325b16;return(_0x325b16=this[_0x264d98(0x148)][_0x264d98(0x227)](lt))!=null?_0x325b16:Gt;}async[_0x44ec13(0x244)](_0x548850,_0x2b622b){const _0x2ec80b=_0x44ec13,_0xa90f7=_0x2ec80b(0x331)+_0x2b622b[_0x2ec80b(0x2ed)]+_0x2ec80b(0x3a1)+_0x2b622b[_0x2ec80b(0x426)]+_0x2ec80b(0x478);return(await this['_httpService'][_0x2ec80b(0x48d)](_0xa90f7,{'params':{'resourceId':JSON['stringify'](_0x2b622b[_0x2ec80b(0x437)])}}))[_0x2ec80b(0x3c4)];}[_0x44ec13(0x246)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x44ec13(0x3a6)](){const _0x2b6c21=_0x44ec13;throw new Error(_0x2b6c21(0x474));}[_0x44ec13(0x392)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x44ec13(0x1ab)]=ji([ot(0x0,a[_0x44ec13(0x259)]),ot(0x1,a[_0x44ec13(0x3ed)](w['HTTPService']))],exports[_0x44ec13(0x1ab)]);var $i=Object[_0x44ec13(0x2ec)],Hi=Object[_0x44ec13(0x2e1)],xi=(_0x30e031,_0xff835d,_0x4855ca,_0x28ca06)=>{const _0x587fa4=_0x44ec13;for(var _0x564a27=_0x28ca06>0x1?void 0x0:_0x28ca06?Hi(_0xff835d,_0x4855ca):_0xff835d,_0x42e98c=_0x30e031[_0x587fa4(0x3b4)]-0x1,_0x2a0d0c;_0x42e98c>=0x0;_0x42e98c--)(_0x2a0d0c=_0x30e031[_0x42e98c])&&(_0x564a27=(_0x28ca06?_0x2a0d0c(_0xff835d,_0x4855ca,_0x564a27):_0x2a0d0c(_0x564a27))||_0x564a27);return _0x28ca06&&_0x564a27&&$i(_0xff835d,_0x4855ca,_0x564a27),_0x564a27;},ce=(_0x297332,_0x1c1008)=>(_0x271430,_0x22e985)=>_0x1c1008(_0x271430,_0x22e985,_0x297332);let xe=class extends a[_0x44ec13(0x536)]{constructor(_0x4fd9b2,_0x57f108,_0x33c6d4,_0x4ce0bf,_0x2756bf){const _0x5dcdc8=_0x44ec13;super(_0x4fd9b2,_0x57f108,_0x33c6d4),this[_0x5dcdc8(0x4cc)]=_0x4ce0bf,this[_0x5dcdc8(0x49d)]=_0x2756bf;}[_0x44ec13(0x1ac)](_0x36c086,_0x44b694){const _0x5974b8=_0x44ec13,_0x51cbc0=this[_0x5974b8(0x19c)](_0x36c086);if(_0x51cbc0)try{const _0x180408=this['_transformStack'](_0x51cbc0,_0x44b694);this['_substituteUndoStack'](_0x36c086,_0x180408);}catch(_0x23ac57){this[_0x5974b8(0x49d)][_0x5974b8(0x182)]('[CollaborationUndoRedoService]',_0x23ac57),this[_0x5974b8(0x201)](_0x36c086);}const _0x189eb7=this[_0x5974b8(0x429)](_0x36c086);if(_0x189eb7)try{const _0x3c421a=this[_0x5974b8(0x152)](_0x189eb7,_0x44b694);this[_0x5974b8(0x290)](_0x36c086,_0x3c421a);}catch(_0x2c5d08){this[_0x5974b8(0x49d)][_0x5974b8(0x182)](_0x2c5d08),this['_clearRedo'](_0x36c086);}}['_clearUndo'](_0x499096){const _0x1bffc0=_0x44ec13,_0x26306e=this['_getUndoStack'](_0x499096);_0x26306e&&(_0x26306e[_0x1bffc0(0x3b4)]=0x0,this['_updateStatus']());}[_0x44ec13(0x155)](_0x3a6e1f){const _0x6591dd=_0x44ec13,_0x1fd4ec=this['_getRedoStack'](_0x3a6e1f);_0x1fd4ec&&(_0x1fd4ec[_0x6591dd(0x3b4)]=0x0,this['_updateStatus']());}[_0x44ec13(0x33b)](_0x58c4ae,_0x1ef3f0){const _0x59dcc3=_0x44ec13;this[_0x59dcc3(0x514)][_0x59dcc3(0x47a)](_0x58c4ae,_0x1ef3f0),this['_updateStatus']();}[_0x44ec13(0x290)](_0x35b7b0,_0x15dc7e){const _0x2f653e=_0x44ec13;this['_redoStacks'][_0x2f653e(0x47a)](_0x35b7b0,_0x15dc7e),this[_0x2f653e(0x490)]();}[_0x44ec13(0x152)](_0x787558,_0x51dcf9){const _0x219f7d=_0x44ec13,_0x54cddc=[];let _0x575214=_0x51dcf9,_0x5e8208=_0x51dcf9;for(let _0x58c7dc=_0x787558[_0x219f7d(0x3b4)]-0x1;_0x58c7dc>=0x0;_0x58c7dc--){const {unitID:_0x2a2e2b,undoMutations:_0x5acb05,redoMutations:_0x3ed1f2}=_0x787558[_0x58c7dc],_0x43ac88=this[_0x219f7d(0x4cc)]['transformMutationsWithChangeset'](_0x575214,_0x5acb05),_0x3f1597=this[_0x219f7d(0x4cc)][_0x219f7d(0x304)](_0x5e8208,_0x3ed1f2);if(_['isTransformMutationsWithChangesetFailure'](_0x43ac88)||_['isTransformMutationsWithChangesetFailure'](_0x3f1597)){this[_0x219f7d(0x49d)][_0x219f7d(0x182)](_0x219f7d(0x291),'transformStack\x20failed!',_0x43ac88,_0x3f1597);break;}_0x575214=_0x43ac88[_0x219f7d(0x24f)],_0x5e8208=_0x3f1597[_0x219f7d(0x24f)],_0x54cddc[_0x219f7d(0x3a3)]({'unitID':_0x2a2e2b,'undoMutations':_0x43ac88['m2Prime'],'redoMutations':_0x3f1597[_0x219f7d(0x2f1)]});}return _0x54cddc[_0x219f7d(0x48f)]();}};xe=xi([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x44ec13(0x359)]),ce(0x2,a[_0x44ec13(0x221)]),ce(0x3,_[_0x44ec13(0x275)]),ce(0x4,a['ILogService'])],xe);class Nt extends a[_0x44ec13(0x4c6)]{constructor(){const _0x4c6b6f=_0x44ec13;super(),d(this,_0x4c6b6f(0x52f)),this['urlChange$']=v[_0x4c6b6f(0x32d)](window,_0x4c6b6f(0x45b))[_0x4c6b6f(0x2d5)](v[_0x4c6b6f(0x441)](this['dispose$']),v['shareReplay'](0x1),v[_0x4c6b6f(0x3e4)](void 0x0));}[_0x44ec13(0x256)](_0xad7431,_0x1bd8cb,_0x22d2c2=!0x1){const _0x20d34b=_0x44ec13,_0x4ed583=new URL(window['location'][_0x20d34b(0x2a9)]);_0x4ed583[_0x20d34b(0x23a)][_0x20d34b(0x47a)](_0xad7431,_0x1bd8cb),_0x22d2c2?window[_0x20d34b(0x3cd)]['replaceState']('','',_0x4ed583['toString']()):window[_0x20d34b(0x3cd)][_0x20d34b(0x3b7)]('','',_0x4ed583[_0x20d34b(0x503)]());}[_0x44ec13(0x26c)](_0x57cd05,_0x44496a=!0x1){const _0x3df439=_0x44ec13,_0x394327=new URL(window[_0x3df439(0x354)][_0x3df439(0x2a9)]);_0x394327[_0x3df439(0x23a)][_0x3df439(0x20e)](_0x57cd05),_0x44496a?window[_0x3df439(0x3cd)]['replaceState']('','',_0x394327[_0x3df439(0x503)]()):window[_0x3df439(0x3cd)]['pushState']('','',_0x394327[_0x3df439(0x503)]());}['getParam'](_0xcf05c7){const _0x357e0a=_0x44ec13;var _0x179d55;return(_0x179d55=new URL(window[_0x357e0a(0x354)][_0x357e0a(0x2a9)])[_0x357e0a(0x23a)]['get'](_0xcf05c7))!=null?_0x179d55:void 0x0;}}const Ne=_0x44ec13(0x4d0),ki=_0x44ec13(0x2f9),Bi='collab-rect-range-',le=0x6,Vi=1.5,Me=0x4,Fi=1.5,Wi='rgba(255,\x20255,\x20255,\x200.01)';class at{constructor(_0x595f4b,_0x2ca643,_0x1605ff,_0x457dac){const _0x17ea49=_0x44ec13;d(this,_0x17ea49(0x14a),[]),d(this,_0x17ea49(0x47b),null),d(this,_0x17ea49(0x45d),null),d(this,_0x17ea49(0x4de),null),d(this,_0x17ea49(0x3d5),null),d(this,_0x17ea49(0x449),null),(this[_0x17ea49(0x379)]=_0x595f4b,this['_scene']=_0x2ca643,this[_0x17ea49(0x1e0)]=_0x1605ff,this[_0x17ea49(0x3fe)]=_0x457dac,this['_render']());}set[_0x44ec13(0x524)](_0x1d67f9){const _0x42ebfa=_0x44ec13;_0x1d67f9?(this[_0x42ebfa(0x4de)]&&this['_anchorDot'][_0x42ebfa(0x145)](),this[_0x42ebfa(0x45d)]&&this[_0x42ebfa(0x45d)]['show']()):(this[_0x42ebfa(0x4de)]&&this[_0x42ebfa(0x4de)]['show'](),this[_0x42ebfa(0x45d)]&&this[_0x42ebfa(0x45d)][_0x42ebfa(0x145)]());}[_0x44ec13(0x184)](){const _0x22437b=_0x44ec13;for(const _0x77b437 of this[_0x22437b(0x14a)])_0x77b437['dispose']();this[_0x22437b(0x45d)]&&this[_0x22437b(0x45d)]['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x22437b(0x184)](),this[_0x22437b(0x47b)]&&this[_0x22437b(0x47b)][_0x22437b(0x184)](),this[_0x22437b(0x449)]&&this[_0x22437b(0x449)]();}[_0x44ec13(0x3a8)](){const _0x30bf28=_0x44ec13;var _0x5799fe;const {_docSkeleton:_0x137ad8,_document:_0x504406}=this,{color:_0x71bdb8,name:_0x50a5d0,ranges:_0x418741}=this['_cursor'],_0x5d022e=_0x504406[_0x30bf28(0x2a4)](),{docsLeft:_0x2e5c49,docsTop:_0x194c94}=_0x5d022e,_0x51dcfd=new U[(_0x30bf28(0x168))](_0x5d022e,_0x137ad8);for(const {startOffset:_0x21015d,endOffset:_0x2c3089,collapsed:_0x116680,isActive:_0x27d6f7}of _0x418741){const _0xf69362=_0x137ad8['findNodePositionByCharIndex'](_0x21015d),_0x29fbc8=_0x137ad8[_0x30bf28(0x20a)](_0x2c3089);if(_0x27d6f7){const {contentBoxPointGroup:_0x36637c}=_0x51dcfd[_0x30bf28(0x44a)](_0x29fbc8,_0x29fbc8);if(_0x36637c[_0x30bf28(0x3b4)]===0x0)continue;this['_drawAnchor'](_0x71bdb8,_0x36637c,_0x2e5c49,_0x194c94,_0x50a5d0),this['_eventUnsubscribe']=this[_0x30bf28(0x2b4)]();}if(!_0x116680&&_0xf69362&&_0x29fbc8){if(U[_0x30bf28(0x408)](_0xf69362,_0x29fbc8)){const _0x350a73=new U[(_0x30bf28(0x321))](_0x5d022e,_0x137ad8),{pointGroup:_0x5acf15}=(_0x5799fe=_0x350a73[_0x30bf28(0x44a)](_0xf69362,_0x29fbc8))!=null?_0x5799fe:{};if(_0x5acf15==null||_0x5acf15['length']===0x0)continue;this[_0x30bf28(0x543)](_0x71bdb8,_0x5acf15,_0x2e5c49,_0x194c94);}else{const {contentBoxPointGroup:_0x1de9b5}=_0x51dcfd[_0x30bf28(0x44a)](_0xf69362,_0x29fbc8);if(_0x1de9b5[_0x30bf28(0x3b4)]===0x0)continue;this[_0x30bf28(0x2de)](_0x71bdb8,_0x1de9b5,_0x2e5c49,_0x194c94);}}}}['_drawAnchor'](_0x1ff7d0,_0x1fbf99,_0x10e0c8,_0xbae128,_0x67e256){const _0x5a6493=_0x44ec13,_0x241757=this[_0x5a6493(0x1e1)](_0x1fbf99),{left:_0x38a990,top:_0x40dda3,height:_0xbcc00f}=_0x241757,_0x301ff0=this[_0x5a6493(0x24e)](),_0x4c9355=Fi/_0x301ff0,_0x2d1a9a=new R[(_0x5a6493(0x318))](Ne+a[_0x5a6493(0x3ce)]['generateRandomId'](le),{'left':_0x38a990+_0x10e0c8-_0x4c9355,'top':_0x40dda3+_0xbae128,'height':_0xbcc00f,'width':Vi,'fill':_0x1ff7d0||R[_0x5a6493(0x17c)](a['COLORS'][_0x5a6493(0x340)],0x0),'strokeWidth':_0x4c9355,'stroke':Wi,'evented':!0x0});this['_anchor']=_0x2d1a9a,this['_scene'][_0x5a6493(0x435)](_0x2d1a9a,U[_0x5a6493(0x52e)]);const _0x3a1088=new R['Rect'](Ne+a['Tools'][_0x5a6493(0x22b)](le),{'left':_0x38a990+_0x10e0c8-_0x4c9355,'top':_0x40dda3+_0xbae128-Me/0x2,'height':Me,'width':Me,'fill':_0x1ff7d0||R['getColor'](a[_0x5a6493(0x34a)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x1ff7d0||R[_0x5a6493(0x17c)](a[_0x5a6493(0x34a)][_0x5a6493(0x340)],0x0),'evented':!0x1});this[_0x5a6493(0x4de)]=_0x3a1088,this[_0x5a6493(0x53d)]['addObject'](_0x3a1088,U['TEXT_RANGE_LAYER_INDEX']);const _0x642bd5=new be(Ne+a[_0x5a6493(0x3ce)][_0x5a6493(0x22b)](le),{'left':_0x38a990+_0x10e0c8-_0x4c9355,'top':_0x40dda3+_0xbae128-_e,'text':_0x67e256,'color':_0x1ff7d0});this[_0x5a6493(0x45d)]=_0x642bd5,this[_0x5a6493(0x53d)][_0x5a6493(0x435)](_0x642bd5,U[_0x5a6493(0x52e)]),this[_0x5a6493(0x524)]=!0x1;}[_0x44ec13(0x2b4)](){const _0x1d58d2=_0x44ec13,_0x33d171=this[_0x1d58d2(0x47b)][_0x1d58d2(0x26d)]['subscribeEvent'](()=>{const _0x3269b6=_0x1d58d2;this[_0x3269b6(0x524)]=!0x0;}),_0x1caf67=this['_anchor'][_0x1d58d2(0x376)][_0x1d58d2(0x238)](()=>{const _0x4e6b47=_0x1d58d2;this['_hideTimer']&&clearTimeout(this[_0x4e6b47(0x3d5)]),this[_0x4e6b47(0x3d5)]=setTimeout(()=>{const _0xd730f4=_0x4e6b47;this[_0xd730f4(0x524)]=!0x1;},0x7d0);});return()=>{_0x33d171['unsubscribe'](),_0x1caf67['unsubscribe']();};}[_0x44ec13(0x2de)](_0x160b72,_0x210ccc,_0x2ec22c,_0x3f06a1){const _0x1ed40e=_0x44ec13,_0x444f19=new a[(_0x1ed40e(0x29b))](_0x160b72)[_0x1ed40e(0x173)](0.2)[_0x1ed40e(0x3d7)](),_0x967bc8=new R[(_0x1ed40e(0x186))](ki+a[_0x1ed40e(0x3ce)][_0x1ed40e(0x22b)](le),{'pointsGroup':_0x210ccc,'fill':_0x444f19||R['getColor'](a['COLORS'][_0x1ed40e(0x340)],0.2),'left':_0x2ec22c,'top':_0x3f06a1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ed40e(0x14a)][_0x1ed40e(0x3a3)](_0x967bc8),this[_0x1ed40e(0x53d)]['addObject'](_0x967bc8,U[_0x1ed40e(0x52e)]);}[_0x44ec13(0x543)](_0x2a1655,_0x7ca041,_0x4a22d4,_0x4533a7){const _0x8f9d35=_0x44ec13,_0x5dbe70=new a[(_0x8f9d35(0x29b))](_0x2a1655)[_0x8f9d35(0x173)](0.2)[_0x8f9d35(0x3d7)](),_0x3dc2a5=new R[(_0x8f9d35(0x186))](Bi+a[_0x8f9d35(0x3ce)][_0x8f9d35(0x22b)](le),{'pointsGroup':_0x7ca041,'fill':_0x5dbe70||R[_0x8f9d35(0x17c)](a['COLORS'][_0x8f9d35(0x340)],0.2),'left':_0x4a22d4,'top':_0x4533a7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x8f9d35(0x14a)][_0x8f9d35(0x3a3)](_0x3dc2a5),this[_0x8f9d35(0x53d)]['addObject'](_0x3dc2a5,U['TEXT_RANGE_LAYER_INDEX']);}[_0x44ec13(0x1e1)](_0x41cfd5){const _0x2ba978=_0x41cfd5[0x0],_0x347d40=_0x2ba978[0x0],_0x4abad5=_0x2ba978[0x2],{x:_0x2603b5,y:_0x585220}=_0x347d40,{x:_0x1d1cfb,y:_0xc975fc}=_0x4abad5;return{'left':_0x2603b5,'top':_0x585220,'width':_0x1d1cfb-_0x2603b5,'height':_0xc975fc-_0x585220};}['_getScale'](){const _0x5279b3=_0x44ec13,{scaleX:_0x58b83d,scaleY:_0x2fb45c}=this[_0x5279b3(0x53d)][_0x5279b3(0x465)]();return Math[_0x5279b3(0x41d)](_0x58b83d,_0x2fb45c);}}var Gi=Object[_0x44ec13(0x2ec)],Yi=Object[_0x44ec13(0x2e1)],Ki=(_0x2f90ba,_0x229b1b,_0x523b8a,_0x4753e3)=>{const _0x3a2515=_0x44ec13;for(var _0x1f9e95=_0x4753e3>0x1?void 0x0:_0x4753e3?Yi(_0x229b1b,_0x523b8a):_0x229b1b,_0xd7a43c=_0x2f90ba[_0x3a2515(0x3b4)]-0x1,_0x38641c;_0xd7a43c>=0x0;_0xd7a43c--)(_0x38641c=_0x2f90ba[_0xd7a43c])&&(_0x1f9e95=(_0x4753e3?_0x38641c(_0x229b1b,_0x523b8a,_0x1f9e95):_0x38641c(_0x1f9e95))||_0x1f9e95);return _0x4753e3&&_0x1f9e95&&Gi(_0x229b1b,_0x523b8a,_0x1f9e95),_0x1f9e95;},de=(_0x16d02a,_0x3419d5)=>(_0x5ee4ad,_0x4469ce)=>_0x3419d5(_0x5ee4ad,_0x4469ce,_0x16d02a);let me=class extends a[_0x44ec13(0x4c6)]{constructor(_0x689df,_0x4559e8,_0x5df2bb,_0x9a2024,_0x40a2a4){const _0x4bc8bc=_0x44ec13;super(),d(this,_0x4bc8bc(0x3ba),[]),d(this,_0x4bc8bc(0x193),[]),(this[_0x4bc8bc(0x2a0)]=_0x689df,this[_0x4bc8bc(0x1c4)]=_0x4559e8,this[_0x4bc8bc(0x3fd)]=_0x5df2bb,this[_0x4bc8bc(0x30e)]=_0x9a2024,this[_0x4bc8bc(0x3a5)]=_0x40a2a4,this[_0x4bc8bc(0x2d0)]());}['_init'](){const _0x273dee=_0x44ec13,_0x576efb=this['_context'][_0x273dee(0x1c9)],_0x4ed919=this[_0x273dee(0x1c4)];this[_0x273dee(0x399)](v['combineLatest']([this[_0x273dee(0x3fd)][_0x273dee(0x51a)](_0x576efb),this[_0x273dee(0x3a5)][_0x273dee(0x214)]])['pipe'](E['map'](([_0x1be1b7,_0x3d05f2])=>({'skeleton':_0x4ed919['getSkeleton'](),'cursors':[..._0x1be1b7[_0x273dee(0x541)]()]['flatMap'](_0x1e81ad=>({..._0x1e81ad,'color':_0x3d05f2[_0x1e81ad[_0x273dee(0x493)]]}))})))[_0x273dee(0x1d4)](_0x410701=>{const _0x1f8c41=_0x273dee;if(this[_0x1f8c41(0x15e)](),_0x410701){const {skeleton:_0x30589b,cursors:_0x5476ea}=_0x410701;this['_updateCollabCursors'](_0x30589b,_0x5476ea);}})),this[_0x273dee(0x206)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x2e32bd,_0x241beb){const _0x47cf30=_0x44ec13,{scene:_0x54526a,mainComponent:_0x3706df}=this[_0x47cf30(0x2a0)],_0xd62c3b=_0x241beb[_0x47cf30(0x341)](_0x515a97=>new at(_0x515a97,_0x54526a,_0x2e32bd,_0x3706df));this[_0x47cf30(0x3ba)]=_0xd62c3b,this['_cursors']=_0x241beb;}[_0x44ec13(0x4a9)](){const _0x103b8d=_0x44ec13;this[_0x103b8d(0x15e)]();const {scene:_0x30c695,mainComponent:_0x191082}=this['_context'],_0x1fa151=this[_0x103b8d(0x1c4)][_0x103b8d(0x498)](),_0x4ae463=this[_0x103b8d(0x193)]['map'](_0x17b60c=>new at(_0x17b60c,_0x30c695,_0x1fa151,_0x191082));this['_cursorShapes']=_0x4ae463;}['_removeCollabCursors'](){const _0x7cbdbb=_0x44ec13;this[_0x7cbdbb(0x3ba)][_0x7cbdbb(0x39a)](_0x3aa43f=>_0x3aa43f[_0x7cbdbb(0x184)]()),this[_0x7cbdbb(0x3ba)]=[];}['_initCommandExecutedListener'](){const _0x36c0bd=_0x44ec13,_0x182014=[U[_0x36c0bd(0x333)]['id']];this['disposeWithMe'](this[_0x36c0bd(0x30e)][_0x36c0bd(0x526)](_0x4139da=>{const _0x5272b3=_0x36c0bd;_0x182014[_0x5272b3(0x1da)](_0x4139da['id'])&&_0x4139da[_0x5272b3(0x2eb)]['unitId']===this[_0x5272b3(0x2a0)][_0x5272b3(0x1c9)]&&this[_0x5272b3(0x4a9)]();}));}['_initResize'](){const _0x26a273=_0x44ec13;this[_0x26a273(0x399)](a[_0x26a273(0x18e)](this[_0x26a273(0x2a0)][_0x26a273(0x1ce)][_0x26a273(0x1e3)])[_0x26a273(0x2d5)](E[_0x26a273(0x1ee)](_0x15aa06=>_0x15aa06[_0x26a273(0x2ed)]===R[_0x26a273(0x48a)][_0x26a273(0x521)]),E[_0x26a273(0x3f0)](0x10))[_0x26a273(0x1d4)](()=>{const _0x498545=_0x26a273;this[_0x498545(0x4a9)]();}));}};me=Ki([a['OnLifecycle'](a[_0x44ec13(0x30b)][_0x44ec13(0x287)],me),de(0x1,a['Inject'](B[_0x44ec13(0x53e)])),de(0x2,a[_0x44ec13(0x3ed)](te)),de(0x3,a[_0x44ec13(0x359)]),de(0x4,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4b1)]))],me);var Xi=Object[_0x44ec13(0x2ec)],qi=Object[_0x44ec13(0x2e1)],Ji=(_0x4f1cf5,_0x42b0e3,_0x4322d7,_0x2fe00e)=>{const _0x2b2236=_0x44ec13;for(var _0x42ed90=_0x2fe00e>0x1?void 0x0:_0x2fe00e?qi(_0x42b0e3,_0x4322d7):_0x42b0e3,_0x36e3aa=_0x4f1cf5[_0x2b2236(0x3b4)]-0x1,_0x58cc98;_0x36e3aa>=0x0;_0x36e3aa--)(_0x58cc98=_0x4f1cf5[_0x36e3aa])&&(_0x42ed90=(_0x2fe00e?_0x58cc98(_0x42b0e3,_0x4322d7,_0x42ed90):_0x58cc98(_0x42ed90))||_0x42ed90);return _0x2fe00e&&_0x42ed90&&Xi(_0x42b0e3,_0x4322d7,_0x42ed90),_0x42ed90;},Le=(_0x570641,_0x29e3c7)=>(_0x1be9f7,_0x1259b6)=>_0x29e3c7(_0x1be9f7,_0x1259b6,_0x570641);let Ce=class{constructor(_0x116b46,_0x49cc9f,_0xbf4ec0){const _0x5a58f3=_0x44ec13;this[_0x5a58f3(0x148)]=_0x116b46,this[_0x5a58f3(0x223)]=_0x49cc9f,this[_0x5a58f3(0x496)]=_0xbf4ec0,this[_0x5a58f3(0x144)]();}['init'](){const _0x24792=_0x44ec13;this[_0x24792(0x223)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3248c3,_0x6306c8)=>_0x6306c8(_0x3248c3)[_0x24792(0x2d5)](v[_0x24792(0x497)](async _0x37af7c=>{const _0x536356=_0x24792,_0x118f3c=_0x37af7c;if(_0x118f3c[_0x536356(0x4fe)]===0x191&&window[_0x536356(0x4ea)](this[_0x536356(0x496)]['t'](_0x536356(0x4e8)))){const _0x187837=window[_0x536356(0x472)](window['location']['href']);window[_0x536356(0x354)]['href']=this[_0x536356(0x45a)]()+_0x536356(0x204)+_0x187837;}return _0x118f3c;}))});}[_0x44ec13(0x45a)](){const _0x38bd27=_0x44ec13;var _0x3fadf6;return(_0x3fadf6=this[_0x38bd27(0x148)]['getConfig'](It))!=null?_0x3fadf6:Qt;}};Ce=Ji([Le(0x0,a['IConfigService']),Le(0x1,a[_0x44ec13(0x3ed)](w['HTTPService'])),Le(0x2,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)]))],Ce);var zi=Object['defineProperty'],Zi=Object[_0x44ec13(0x2e1)],Qi=(_0x36505a,_0x3c3ccd,_0x3dbcd3,_0x15d60e)=>{for(var _0x8e56a6=_0x15d60e>0x1?void 0x0:_0x15d60e?Zi(_0x3c3ccd,_0x3dbcd3):_0x3c3ccd,_0x7824f5=_0x36505a['length']-0x1,_0x5f4d82;_0x7824f5>=0x0;_0x7824f5--)(_0x5f4d82=_0x36505a[_0x7824f5])&&(_0x8e56a6=(_0x15d60e?_0x5f4d82(_0x3c3ccd,_0x3dbcd3,_0x8e56a6):_0x5f4d82(_0x8e56a6))||_0x8e56a6);return _0x15d60e&&_0x8e56a6&&zi(_0x3c3ccd,_0x3dbcd3,_0x8e56a6),_0x8e56a6;},ct=(_0x437474,_0x3a4bb0)=>(_0x4eebda,_0x1c0c38)=>_0x3a4bb0(_0x4eebda,_0x1c0c38,_0x437474);const Mt=_0x44ec13(0x485),en='/universer-api/authz';exports['AuthzIoHttpService']=class extends a[_0x44ec13(0x209)]{constructor(_0x4f76a5,_0x468183){const _0x2710b8=_0x44ec13;super(),this[_0x2710b8(0x3c5)]=_0x4f76a5,this[_0x2710b8(0x148)]=_0x468183,this[_0x2710b8(0x412)]();}[_0x44ec13(0x412)](){const _0x196205=_0x44ec13,_0x2b9737=this;this[_0x196205(0x399)](this[_0x196205(0x3c5)][_0x196205(0x40f)]({'priority':0x3e7,'interceptor':w['MergeInterceptorFactory']({'isMatch'(_0x3c2e0c){const _0x2d6409=_0x196205;var _0x5bf2b2;if(_0x3c2e0c[_0x2d6409(0x225)]===_0x2d6409(0x288)&&((_0x5bf2b2=_0x3c2e0c[_0x2d6409(0x18c)])!=null&&_0x5bf2b2['body'])){const {objectID:_0x1b9f3b,objectType:_0x30247e}=_0x3c2e0c['requestParams'][_0x2d6409(0x3c4)]||{};if(!_0x1b9f3b||_0x30247e===void 0x0)return!0x1;const _0x283e26=_0x2b9737['_getAPIPrefixPath']()+'/'+_0x30247e+'/object/'+_0x1b9f3b+_0x2d6409(0x544);if(_0x3c2e0c[_0x2d6409(0x3b8)]===_0x283e26)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x56a4f9){const _0x1d5676=_0x196205;var _0x1091d0;return(_0x1091d0=_0x56a4f9[_0x1d5676(0x18c)])==null?void 0x0:_0x1091d0[_0x1d5676(0x3c4)];},'mergeParamsToRequest'(_0x59036a,_0x318c47){const _0x419b9c=_0x196205,_0x47d8ef=_0x2b9737[_0x419b9c(0x484)]()+_0x419b9c(0x2f4),_0x1eeda6=_0x59036a[_0x419b9c(0x25b)]((_0x5de17f,_0x13ad20)=>{const _0x5a653f=_0x419b9c,{unitID:_0x51fc28,objectID:_0x5bf0eb,objectType:_0x4fc764,actions:_0x5a9385}=_0x13ad20;return _0x5de17f[_0x51fc28]||(_0x5de17f[_0x51fc28]={}),_0x5de17f[_0x51fc28][_0x5bf0eb]||(_0x5de17f[_0x51fc28][_0x5bf0eb]={'objectID':_0x5bf0eb,'objectType':_0x4fc764,'actions':[]}),_0x5de17f[_0x51fc28][_0x5bf0eb]['actions'][_0x5a653f(0x3a3)](..._0x5a9385),_0x5de17f;},{}),_0x5dfb48=[];for(const _0xed49ba in _0x1eeda6)for(const _0x177d6c in _0x1eeda6[_0xed49ba]){const {actions:_0x1fa867,objectType:_0x395dae}=_0x1eeda6[_0xed49ba][_0x177d6c],_0xc60472=[...new Set(_0x1fa867)];_0x5dfb48['push']({'unitID':_0xed49ba,'objectID':_0x177d6c,'objectType':_0x395dae,'actions':_0xc60472});}return new w['HTTPRequest'](_0x419b9c(0x288),_0x47d8ef,{'headers':_0x318c47[_0x419b9c(0x189)],'withCredentials':_0x318c47[_0x419b9c(0x207)],'responseType':_0x318c47[_0x419b9c(0x3af)],'body':{'requests':_0x5dfb48}});}},{'distributeResult'(_0x815186,_0x121024){const _0xf85c08=_0x196205,{objectActions:_0x623383}=_0x815186;return _0x121024[_0xf85c08(0x341)](_0x2d02bf=>{const _0x23241e=_0xf85c08,{unitID:_0x1cd462,objectID:_0x3ef187,actions:_0x203208}=_0x2d02bf,_0x10c32e=_0x623383[_0x23241e(0x512)](_0x4b6510=>_0x4b6510[_0x23241e(0x426)]===_0x1cd462&&_0x4b6510[_0x23241e(0x40a)]===_0x3ef187),_0xc7730b=_0x203208['map'](_0x5a07f8=>_0x10c32e==null?void 0x0:_0x10c32e[_0x23241e(0x4ab)][_0x23241e(0x512)](_0x4a5e13=>_0x4a5e13[_0x23241e(0x537)]===_0x5a07f8))[_0x23241e(0x1ee)](_0x4111e3=>!!_0x4111e3);return{'config':_0x2d02bf,'result':{'actions':_0xc7730b,'error':_0x815186[_0x23241e(0x182)]}};});}})}));}[_0x44ec13(0x484)](){const _0x2cab0f=_0x44ec13;var _0x3bdc7e;return(_0x3bdc7e=this[_0x2cab0f(0x148)][_0x2cab0f(0x227)](Mt))!=null?_0x3bdc7e:en;}async[_0x44ec13(0x461)](_0x42e1f6){const _0x1383e7=_0x44ec13,_0x35581c=this['_getAPIPrefixPath']()+'/'+_0x42e1f6[_0x1383e7(0x3d2)]+_0x1383e7(0x4f3);return(await this['_HTTPService'][_0x1383e7(0x4ee)](_0x35581c,{'body':_0x42e1f6}))['body'][_0x1383e7(0x40a)]||'';}async[_0x44ec13(0x400)](_0x17e02f){const _0x31ae97=_0x44ec13,_0x44663f=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x31ae97(0x3c5)][_0x31ae97(0x4ee)](_0x44663f,{'body':_0x17e02f}))[_0x31ae97(0x3c4)]['objects'];}async[_0x44ec13(0x31c)](_0x257472){const _0x2ccc11=_0x44ec13,_0x4751a1=this['_getAPIPrefixPath']()+'/'+_0x257472[_0x2ccc11(0x3d2)]+_0x2ccc11(0x4d3)+_0x257472[_0x2ccc11(0x40a)];await this[_0x2ccc11(0x3c5)][_0x2ccc11(0x141)](_0x4751a1,{'body':_0x257472});}async['allowed'](_0x58b6f4){const _0x4fe5a9=_0x44ec13,_0x263261=this[_0x4fe5a9(0x484)]()+'/'+_0x58b6f4[_0x4fe5a9(0x3d2)]+'/object/'+_0x58b6f4[_0x4fe5a9(0x40a)]+'/allowed';return(await this[_0x4fe5a9(0x3c5)][_0x4fe5a9(0x4ee)](_0x263261,{'body':_0x58b6f4}))[_0x4fe5a9(0x3c4)][_0x4fe5a9(0x4ab)];}async[_0x44ec13(0x373)](_0x4e6dc7){const _0x33b50d=_0x44ec13,_0x2c436a=this[_0x33b50d(0x484)]()+_0x33b50d(0x2f4);return(await this[_0x33b50d(0x3c5)][_0x33b50d(0x4ee)](_0x2c436a,{'body':{'requests':_0x4e6dc7}}))[_0x33b50d(0x3c4)][_0x33b50d(0x251)];}async[_0x44ec13(0x17b)](_0x45f121){const _0x31c478=_0x44ec13,_0x580a4a=this['_getAPIPrefixPath']()+'/'+_0x45f121[_0x31c478(0x3d2)]+_0x31c478(0x48b),_0x2c4f23=await this[_0x31c478(0x3c5)][_0x31c478(0x4ee)](_0x580a4a,{'body':_0x45f121});return{'roles':_0x2c4f23['body'][_0x31c478(0x14b)],'actions':_0x2c4f23[_0x31c478(0x3c4)][_0x31c478(0x4ab)]};}async['deleteCollaborator'](_0x10b65e){const _0x5cc3cc=_0x44ec13,_0x28e9cf=this[_0x5cc3cc(0x484)]()+_0x5cc3cc(0x1db);await this['_HTTPService']['delete'](_0x28e9cf,{'params':{'collaboratorID':_0x10b65e[_0x5cc3cc(0x26f)],'objectID':_0x10b65e[_0x5cc3cc(0x40a)],'unitID':_0x10b65e[_0x5cc3cc(0x426)]}});}async[_0x44ec13(0x29c)](_0x585b15){const _0x421f5d=_0x44ec13,_0x58cd41=this[_0x421f5d(0x484)]()+_0x421f5d(0x1db);await this[_0x421f5d(0x3c5)][_0x421f5d(0x3d1)](_0x58cd41,{'body':_0x585b15});}async[_0x44ec13(0x40c)](_0x847322){const _0xc3b6a2=_0x44ec13,_0xae68df=this[_0xc3b6a2(0x484)]()+_0xc3b6a2(0x1db);await this[_0xc3b6a2(0x3c5)][_0xc3b6a2(0x4ee)](_0xae68df,{'body':_0x847322});}async['listCollaborators'](_0x1ad4dc){const _0x1d4342=_0x44ec13,_0x447835=this['_getAPIPrefixPath']()+_0x1d4342(0x1db);return(await this[_0x1d4342(0x3c5)][_0x1d4342(0x48d)](_0x447835,{'params':{'objectID':_0x1ad4dc['objectID'],'unitID':_0x1ad4dc[_0x1d4342(0x426)]}}))['body'][_0x1d4342(0x337)];}async[_0x44ec13(0x21c)](_0x5d3e7d){const _0x186ceb=_0x44ec13,_0x2e50b5=this[_0x186ceb(0x484)]()+'/collaborator';await this[_0x186ceb(0x3c5)][_0x186ceb(0x141)](_0x2e50b5,{'body':_0x5d3e7d});}},exports[_0x44ec13(0x3ea)]=Qi([ct(0x0,a[_0x44ec13(0x3ed)](w['HTTPService'])),ct(0x1,a['Inject'](a['IConfigService']))],exports['AuthzIoHttpService']);var tn=Object[_0x44ec13(0x2ec)],sn=Object[_0x44ec13(0x2e1)],nn=(_0x53e64e,_0x178487,_0x2cadbc,_0x11e5bb)=>{const _0x11c502=_0x44ec13;for(var _0x609ee6=_0x11e5bb>0x1?void 0x0:_0x11e5bb?sn(_0x178487,_0x2cadbc):_0x178487,_0x76669d=_0x53e64e[_0x11c502(0x3b4)]-0x1,_0x41c1d6;_0x76669d>=0x0;_0x76669d--)(_0x41c1d6=_0x53e64e[_0x76669d])&&(_0x609ee6=(_0x11e5bb?_0x41c1d6(_0x178487,_0x2cadbc,_0x609ee6):_0x41c1d6(_0x609ee6))||_0x609ee6);return _0x11e5bb&&_0x609ee6&&tn(_0x178487,_0x2cadbc,_0x609ee6),_0x609ee6;},Ae=(_0x8c97f5,_0x587ee7)=>(_0x34e8b0,_0x436791)=>_0x587ee7(_0x34e8b0,_0x436791,_0x8c97f5);const rn=[_0x44ec13(0x382),_0x44ec13(0x1fa),_0x44ec13(0x27b),_0x44ec13(0x213),'image/bmp'],on=0x5*0x400*0x400,an=_0x44ec13(0x448),cn='/universer-api/stream/file/upload',ln='EXCHANGE_SIGN_URL_SERVER_URL_KEY',hn=_0x44ec13(0x2f6);exports[_0x44ec13(0x23f)]=class{constructor(_0x312419,_0x3b4ffe,_0x47ddcb){const _0x2853c7=_0x44ec13;d(this,'_waitCount',0x0),d(this,_0x2853c7(0x316),new v['Subject']()),d(this,_0x2853c7(0x1e4),this[_0x2853c7(0x316)]),d(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x312419,this['_configService']=_0x3b4ffe,this[_0x2853c7(0x2b9)]=_0x47ddcb);}[_0x44ec13(0x2b6)](_0x543561){this['_waitCount']=_0x543561,this['_change$']['next'](_0x543561);}[_0x44ec13(0x42e)](_0xb0de73,_0x497b5e){const _0x41ff21=_0x44ec13;if(_0x497b5e===L['ImageSourceType'][_0x41ff21(0x529)]){const _0x28a90d=new Image();return _0x28a90d['src']=_0xb0de73,_0x28a90d;}return this[_0x41ff21(0x481)][_0x41ff21(0x48d)](_0xb0de73);}[_0x44ec13(0x15c)](_0x31b446,_0x5ad475,_0x2ff719){const _0x476050=_0x44ec13;_0x5ad475===L[_0x476050(0x146)][_0x476050(0x529)]||_0x2ff719==null||this[_0x476050(0x481)][_0x476050(0x47a)](_0x31b446,_0x2ff719);}async[_0x44ec13(0x2b0)](_0x45f9b7){const _0x227d87=_0x44ec13;try{const _0x3ff66e=this[_0x227d87(0x33c)](this[_0x227d87(0x300)](),''+_0x45f9b7),_0x56b53f=(await this[_0x227d87(0x223)][_0x227d87(0x48d)](_0x3ff66e))[_0x227d87(0x3c4)];return _0x56b53f[_0x227d87(0x182)]&&_0x56b53f[_0x227d87(0x182)][_0x227d87(0x370)]===pt['OK']?Promise[_0x227d87(0x4fd)](_0x56b53f[_0x227d87(0x3b8)]):Promise[_0x227d87(0x531)](_0x56b53f['error']);}catch(_0x30d29d){return Promise[_0x227d87(0x531)](_0x30d29d);}}async[_0x44ec13(0x4c0)](_0x575901){const _0x1c0ed3=_0x44ec13;let _0x46ab20='';if(!rn[_0x1c0ed3(0x1da)](_0x575901['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x1c0ed3(0x3d9)][_0x1c0ed3(0x2fe)]));if(_0x575901[_0x1c0ed3(0x366)]>on)return this[_0x1c0ed3(0x440)](),Promise['reject'](new Error(L[_0x1c0ed3(0x3d9)]['ERROR_EXCEED_SIZE']));try{const _0x50c435=new FormData();_0x50c435['append']('file',_0x575901);const _0x3e34c9=this['_univerInstanceService'][_0x1c0ed3(0x2fa)](),_0x42546b=_0x3e34c9==null?void 0x0:_0x3e34c9[_0x1c0ed3(0x4be)]();if(!_0x42546b)throw new Error(_0x1c0ed3(0x42f));const _0x54e97f=this[_0x1c0ed3(0x298)]()+_0x1c0ed3(0x475)+_0x575901['size'][_0x1c0ed3(0x503)]()+'&source='+Ct[_0x1c0ed3(0x263)]+'&assign='+encodeURIComponent(_0x42546b),_0x2f1548=await(await fetch(_0x54e97f,{'method':_0x1c0ed3(0x288),'body':_0x50c435}))[_0x1c0ed3(0x44e)]();if(typeof _0x2f1548[_0x1c0ed3(0x21d)]!=_0x1c0ed3(0x167))return this[_0x1c0ed3(0x440)](),Promise[_0x1c0ed3(0x531)](new Error(L[_0x1c0ed3(0x3d9)][_0x1c0ed3(0x4d6)]));_0x46ab20=_0x2f1548['FileId'];}catch{return this[_0x1c0ed3(0x440)](),Promise['reject'](new Error(L[_0x1c0ed3(0x3d9)]['ERROR_IMAGE']));}return new Promise((_0x180717,_0x1d4644)=>{const _0x532094=_0x1c0ed3,_0x42d923=new FileReader();_0x42d923['readAsDataURL'](_0x575901),_0x42d923[_0x532094(0x1be)]=_0x29b4b9=>{const _0x12de87=_0x532094;var _0x327331;const _0xe0436c=(_0x327331=_0x29b4b9['target'])==null?void 0x0:_0x327331[_0x12de87(0x190)];if(_0xe0436c==null){this[_0x12de87(0x440)](),_0x1d4644(new Error(L[_0x12de87(0x3d9)][_0x12de87(0x4d6)]));return;}const _0x5443d1=a['Tools'][_0x12de87(0x22b)](0x6);_0x180717({'imageId':_0x5443d1,'imageSourceType':L['ImageSourceType'][_0x12de87(0x4ff)],'source':_0x46ab20,'base64Cache':_0xe0436c,'status':L[_0x12de87(0x3d9)][_0x12de87(0x3d3)]}),this[_0x12de87(0x440)]();};});}['_getUploadFileURL'](){const _0x1c06f1=_0x44ec13;var _0x4c298c;return(_0x4c298c=this[_0x1c06f1(0x148)][_0x1c06f1(0x227)](an))!=null?_0x4c298c:cn;}[_0x44ec13(0x300)](){const _0x3db6b3=_0x44ec13;var _0x50f439;return(_0x50f439=this[_0x3db6b3(0x148)][_0x3db6b3(0x227)](ln))!=null?_0x50f439:hn;}['_replaceFileID'](_0x24f9fc,_0x555646){const _0x2ded42=_0x44ec13;return _0x24f9fc[_0x2ded42(0x264)](_0x2ded42(0x2d8),_0x555646);}[_0x44ec13(0x440)](){const _0x2c75e6=_0x44ec13;this[_0x2c75e6(0x365)]-=0x1,this[_0x2c75e6(0x316)][_0x2c75e6(0x4a4)](this[_0x2c75e6(0x365)]);}},exports[_0x44ec13(0x23f)]=nn([Ae(0x0,a[_0x44ec13(0x3ed)](w[_0x44ec13(0x4e4)])),Ae(0x1,a['IConfigService']),Ae(0x2,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4e2)]))],exports[_0x44ec13(0x23f)]);var _n=Object[_0x44ec13(0x2ec)],un=Object[_0x44ec13(0x2e1)],dn=(_0x4fec87,_0x3bd9c3,_0x329498,_0x4866fa)=>{for(var _0x2e43e0=_0x4866fa>0x1?void 0x0:_0x4866fa?un(_0x3bd9c3,_0x329498):_0x3bd9c3,_0x2e2644=_0x4fec87['length']-0x1,_0x23927f;_0x2e2644>=0x0;_0x2e2644--)(_0x23927f=_0x4fec87[_0x2e2644])&&(_0x2e43e0=(_0x4866fa?_0x23927f(_0x3bd9c3,_0x329498,_0x2e43e0):_0x23927f(_0x2e43e0))||_0x2e43e0);return _0x4866fa&&_0x2e43e0&&_n(_0x3bd9c3,_0x329498,_0x2e43e0),_0x2e43e0;},he=(_0x2e0553,_0x439f03)=>(_0x28a5b6,_0x429c5c)=>_0x439f03(_0x28a5b6,_0x429c5c,_0x2e0553);let fe=class extends a[_0x44ec13(0x4c6)]{constructor(_0x218c3b,_0x423dbd,_0x26474e,_0x3a4e94,_0x18219b){const _0x21d2b3=_0x44ec13;super(),this[_0x21d2b3(0x360)]=_0x218c3b,this[_0x21d2b3(0x2b9)]=_0x423dbd,this['_permissionService']=_0x26474e,this[_0x21d2b3(0x37f)]=_0x3a4e94,this[_0x21d2b3(0x330)]=_0x18219b,this[_0x21d2b3(0x35c)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x2a3f22=_0x44ec13,_0x422dc0=async _0xffa53e=>{const _0x469dab=_0x2929;(await this[_0x469dab(0x37f)][_0x469dab(0x245)](_0xffa53e))[_0x469dab(0x15d)][_0x469dab(0x2d5)](E['filter'](_0x344c91=>_0x344c91[_0x469dab(0x348)]===_['CollaborationEvent']['SHOULD_CLOSE_CONN']),E[_0x469dab(0x441)](this['dispose$']))[_0x469dab(0x1d4)](_0x2842b0=>{const _0x14b8af=_0x469dab,_0x370df8=_0x2842b0,{reason:_0x1fa03e}=_0x370df8[_0x14b8af(0x387)];this['_injector'][_0x14b8af(0x48d)](M['IMessageService'])[_0x14b8af(0x37b)]({'type':K[_0x14b8af(0x28f)][_0x14b8af(0x16d)],'content':this[_0x14b8af(0x330)]['t'](_0x14b8af(0x349))+'('+_0x1fa03e+')'}),this['_permissionService'][_0x14b8af(0x202)](new C['WorkbookEditablePermission'](_0xffa53e)['id'],!0x1),this[_0x14b8af(0x37f)][_0x14b8af(0x2c3)](_0xffa53e);});};v[_0x2a3f22(0x3c1)](this[_0x2a3f22(0x2b9)]['getTypeOfUnitAdded$'](a[_0x2a3f22(0x1c1)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x2a3f22(0x1c1)][_0x2a3f22(0x344)]))[_0x2a3f22(0x2d5)](E['map'](_0x460fba=>_0x460fba[_0x2a3f22(0x4be)]()),E['filter'](_0x3114d3=>!a[_0x2a3f22(0x4f1)](_0x3114d3)),E[_0x2a3f22(0x441)](this[_0x2a3f22(0x350)]))['subscribe'](_0x3282d2=>{_0x422dc0(_0x3282d2);});}[_0x44ec13(0x35c)](){const _0xf2144=_0x44ec13,_0x357619=async _0xc1d8fa=>{const _0x3a6b84=_0x2929;(await this[_0x3a6b84(0x37f)][_0x3a6b84(0x245)](_0xc1d8fa))[_0x3a6b84(0x15d)][_0x3a6b84(0x2d5)](E[_0x3a6b84(0x1ee)](_0x1cac9f=>_0x1cac9f[_0x3a6b84(0x348)]===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E[_0x3a6b84(0x441)](this[_0x3a6b84(0x350)]))[_0x3a6b84(0x1d4)](_0xa95852=>{const _0x378407=_0x3a6b84,_0x5cd688=_0xa95852,{objectId:_0x1148f6}=_0x5cd688[_0x378407(0x387)],_0x5ab206=this[_0x378407(0x360)][_0x378407(0x48d)](ee['SheetPermissionInitController']);_0x1148f6===_0xc1d8fa?_0x5ab206[_0x378407(0x413)](_0xc1d8fa):_0x5ab206[_0x378407(0x1b9)](_0xc1d8fa,_0x1148f6);});};v[_0xf2144(0x3c1)](this[_0xf2144(0x2b9)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0xf2144(0x420)]),this[_0xf2144(0x2b9)][_0xf2144(0x455)](a[_0xf2144(0x1c1)][_0xf2144(0x344)]))[_0xf2144(0x2d5)](E[_0xf2144(0x341)](_0x4edb71=>_0x4edb71[_0xf2144(0x4be)]()),E[_0xf2144(0x1ee)](_0x38e9d2=>!a[_0xf2144(0x4f1)](_0x38e9d2)),E[_0xf2144(0x441)](this['dispose$']))[_0xf2144(0x1d4)](_0x518279=>{_0x357619(_0x518279);});}};fe=dn([a['OnLifecycle'](a[_0x44ec13(0x30b)][_0x44ec13(0x1ad)],fe),he(0x0,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),he(0x1,a['IUniverInstanceService']),he(0x2,a['IPermissionService']),he(0x3,a[_0x44ec13(0x3ed)](exports['CollaborationSessionService'])),he(0x4,a[_0x44ec13(0x3ed)](a['LocaleService']))],fe);const Sn='collaboration-client.config';var Lt=Object[_0x44ec13(0x2ec)],vn=Object[_0x44ec13(0x2e1)],mn=(_0x1b0226,_0x5cec50,_0x1e3593)=>_0x5cec50 in _0x1b0226?Lt(_0x1b0226,_0x5cec50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e3593}):_0x1b0226[_0x5cec50]=_0x1e3593,fn=(_0x4af96f,_0x107b2d,_0x67d096,_0x8a9ef0)=>{const _0x1930d7=_0x44ec13;for(var _0x532b44=_0x8a9ef0>0x1?void 0x0:_0x8a9ef0?vn(_0x107b2d,_0x67d096):_0x107b2d,_0xced690=_0x4af96f[_0x1930d7(0x3b4)]-0x1,_0x4aa507;_0xced690>=0x0;_0xced690--)(_0x4aa507=_0x4af96f[_0xced690])&&(_0x532b44=(_0x8a9ef0?_0x4aa507(_0x107b2d,_0x67d096,_0x532b44):_0x4aa507(_0x532b44))||_0x532b44);return _0x8a9ef0&&_0x532b44&&Lt(_0x107b2d,_0x67d096,_0x532b44),_0x532b44;},Se=(_0x36f308,_0x19ec74)=>(_0x4f4c46,_0x59e564)=>_0x19ec74(_0x4f4c46,_0x59e564,_0x36f308),gn=(_0x389a2b,_0x2cb1ae,_0x168d5e)=>mn(_0x389a2b,_0x2cb1ae+'',_0x168d5e);const In=_0x44ec13(0x33e);exports[_0x44ec13(0x404)]=class extends a[_0x44ec13(0x2aa)]{constructor(_0x411c29={},_0x1d3c61,_0x4565e4,_0x4ce6e4,_0x576a60){const _0x372c0c=_0x44ec13;super(),this['_config']=_0x411c29,this['_logService']=_0x1d3c61,this[_0x372c0c(0x2d3)]=_0x4565e4,this[_0x372c0c(0x360)]=_0x4ce6e4,this['_configService']=_0x576a60;const {..._0x28dafd}=this[_0x372c0c(0x319)];this[_0x372c0c(0x148)][_0x372c0c(0x205)](Sn,_0x28dafd);}['onStarting'](){const _0x440763=_0x44ec13;this[_0x440763(0x462)]();}[_0x44ec13(0x36c)](){const _0x5046d4=_0x44ec13;this[_0x5046d4(0x4a3)]();}['_registerDependencies'](){const _0x1e2470=_0x44ec13;var _0x70c682,_0x2cda93,_0x436f5c,_0x705f75;this['_injector'][_0x1e2470(0x163)](a[_0x1e2470(0x4f5)])&&this[_0x1e2470(0x49d)]['error']('[UniverCollaborationClientPlugin]',_0x1e2470(0x32a));let _0xd7a91=[[a['IUndoRedoService'],{'useClass':xe}],[exports[_0x1e2470(0x4e1)]],[Ke],[w[_0x1e2470(0x4e4)]],[qe,{'useClass':Nt}],[X],[exports[_0x1e2470(0x494)]],[w['WebSocketService']],[Ie],[pe],[ge],[Ge],[Ce],[We],[fe],[Fe,{'useClass':(_0x2cda93=(_0x70c682=this[_0x1e2470(0x319)])==null?void 0x0:_0x70c682[_0x1e2470(0x1a8)])!=null?_0x2cda93:exports[_0x1e2470(0x4bf)]}],[w[_0x1e2470(0x374)],{'useClass':w[_0x1e2470(0x23e)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x1e2470(0x1ab)]}],[a['IAuthzIoService'],{'useClass':exports[_0x1e2470(0x3ea)]}],[L[_0x1e2470(0x1a4)],{'useClass':exports[_0x1e2470(0x23f)]}],[exports['CollaborationController']],[exports['DataLoaderController']],[exports[_0x1e2470(0x518)]],[ve],[te]];(_0x436f5c=this[_0x1e2470(0x319)])!=null&&_0x436f5c[_0x1e2470(0x4c1)]&&_0xd7a91[_0x1e2470(0x3a3)]([Ee,{'useClass':Os}]),_0xd7a91=a['mergeOverrideWithDependencies'](_0xd7a91,(_0x705f75=this[_0x1e2470(0x319)])==null?void 0x0:_0x705f75[_0x1e2470(0x418)]),_0xd7a91[_0x1e2470(0x39a)](_0x31e7dd=>this[_0x1e2470(0x360)][_0x1e2470(0x37a)](_0x31e7dd)),this['_initModules']();}['_registerRenderDependencies'](){const _0x1ded15=_0x44ec13;this['disposeWithMe'](this[_0x1ded15(0x2d3)][_0x1ded15(0x35b)](a[_0x1ded15(0x1c1)][_0x1ded15(0x344)],[me])),this[_0x1ded15(0x399)](this[_0x1ded15(0x2d3)][_0x1ded15(0x35b)](a['UniverInstanceType'][_0x1ded15(0x420)],[He]));}['_initModules'](){const _0x1ed9c6=_0x44ec13;var _0x4f6dec,_0x5185e5;this[_0x1ed9c6(0x360)][_0x1ed9c6(0x48d)](w[_0x1ed9c6(0x4e4)])[_0x1ed9c6(0x40f)]({'priority':0x14,'interceptor':w[_0x1ed9c6(0x4fa)]({'maxParallel':0x6})}),(_0x4f6dec=this[_0x1ed9c6(0x319)])!=null&&_0x4f6dec[_0x1ed9c6(0x434)]||this['_injector'][_0x1ed9c6(0x48d)](exports['LocalCacheService'])[_0x1ed9c6(0x197)](),(_0x5185e5=this['_config'])!=null&&_0x5185e5['enableAuthServer']&&this[_0x1ed9c6(0x360)][_0x1ed9c6(0x48d)](Ce),this[_0x1ed9c6(0x360)][_0x1ed9c6(0x48d)](exports[_0x1ed9c6(0x27c)]),this['_injector'][_0x1ed9c6(0x163)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x1ed9c6(0x360)][_0x1ed9c6(0x48d)](exports[_0x1ed9c6(0x518)]);}},gn(exports[_0x44ec13(0x404)],_0x44ec13(0x306),In),exports['UniverCollaborationClientPlugin']=fn([a[_0x44ec13(0x314)](_[_0x44ec13(0x3e8)]),Se(0x1,a['ILogService']),Se(0x2,R[_0x44ec13(0x226)]),Se(0x3,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),Se(0x4,a[_0x44ec13(0x259)])],exports[_0x44ec13(0x404)]),exports[_0x44ec13(0x485)]=Mt,exports[_0x44ec13(0x3a9)]=gt,exports[_0x44ec13(0x2cd)]=ut,exports[_0x44ec13(0x3c0)]=y,exports['CollaborationStatusDisplay']=Ut,exports['CommentService']=We,exports[_0x44ec13(0x470)]=dt,exports['HEARTBEAT_TIMEOUT_KEY']=Be,exports['ICollaborationSocketService']=Fe,exports[_0x44ec13(0x203)]=qe,exports[_0x44ec13(0x363)]=ft,exports[_0x44ec13(0x361)]=It,exports[_0x44ec13(0x41e)]=vt,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=mt,exports[_0x44ec13(0x355)]=_t,exports[_0x44ec13(0x4a1)]=lt,exports[_0x44ec13(0x2dc)]=ht,exports['SessionStatus']=j,exports['SheetCollabCursorShape']=Dt,exports['WebURLService']=Nt,exports[_0x44ec13(0x532)]=Et,exports[_0x44ec13(0x467)]=bt;