@univerjs-pro/collaboration-client 0.2.2 → 0.2.4-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/locale/en-US.json +2 -1
- package/lib/locale/ru-RU.json +2 -1
- package/lib/locale/vi-VN.json +33 -0
- package/lib/locale/zh-CN.json +2 -1
- package/lib/locale/zh-TW.json +33 -0
- package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +1 -2
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +1 -2
- package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +1 -1
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +2 -2
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +1 -2
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -2
- package/lib/types/locale/vi-VN.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/locale/zh-TW.d.ts +4 -0
- package/lib/types/plugin.d.ts +1 -2
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +3 -2
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -2
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
- package/lib/types/services/permission/permission.service.d.ts +13 -0
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +5 -1
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +1 -1
- package/lib/types/services/socket/collaboration-socket.service.d.ts +1 -1
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
- package/lib/types/services/url/url.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +33 -35
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x29b95d=_0x3518;(function(_0x4cd708,_0xcfb0c8){const _0x46bed4=_0x3518,_0x3fcc44=_0x4cd708();while(!![]){try{const _0x7ccba8=parseInt(_0x46bed4(0x435))/0x1*(-parseInt(_0x46bed4(0x526))/0x2)+-parseInt(_0x46bed4(0x412))/0x3*(parseInt(_0x46bed4(0x1ef))/0x4)+parseInt(_0x46bed4(0x3c2))/0x5+parseInt(_0x46bed4(0x1c7))/0x6*(parseInt(_0x46bed4(0x370))/0x7)+-parseInt(_0x46bed4(0x1cc))/0x8*(parseInt(_0x46bed4(0x296))/0x9)+parseInt(_0x46bed4(0x29f))/0xa+parseInt(_0x46bed4(0x4bf))/0xb*(parseInt(_0x46bed4(0x364))/0xc);if(_0x7ccba8===_0xcfb0c8)break;else _0x3fcc44['push'](_0x3fcc44['shift']());}catch(_0x1c0dcc){_0x3fcc44['push'](_0x3fcc44['shift']());}}}(_0x371b,0xbb1b3));var $t=Object[_0x29b95d(0x2f8)],Ht=(_0x351fbb,_0x2d5b97,_0x27ce9f)=>_0x2d5b97 in _0x351fbb?$t(_0x351fbb,_0x2d5b97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27ce9f}):_0x351fbb[_0x2d5b97]=_0x27ce9f,d=(_0x300720,_0x4dae1a,_0x18b209)=>Ht(_0x300720,typeof _0x4dae1a!=_0x29b95d(0x3f9)?_0x4dae1a+'':_0x4dae1a,_0x18b209);Object['defineProperty'](exports,Symbol[_0x29b95d(0x35f)],{'value':'Module'});const a=require(_0x29b95d(0x1d1)),E=require(_0x29b95d(0x52f)),oe=require(_0x29b95d(0x410)),N=require(_0x29b95d(0x379)),u=require('@univerjs-pro/collaboration'),h=require('@wendellhu/redi'),g=require(_0x29b95d(0x3b5)),T=require(_0x29b95d(0x1e2)),y=require(_0x29b95d(0x23a)),P=require(_0x29b95d(0x475)),A=require(_0x29b95d(0x554)),Ke=require(_0x29b95d(0x2c6)),He=require(_0x29b95d(0x3e4)),R=require(_0x29b95d(0x447)),ee=require(_0x29b95d(0x536)),ct=require(_0x29b95d(0x52e)),L=require(_0x29b95d(0x206)),xt=require(_0x29b95d(0x262)),kt=require(_0x29b95d(0x2d8)),lt=_0x29b95d(0x40b),Bt=_0x29b95d(0x26c),ht='SNAPSHOT_URL_KEY',_t='SEND_CHANGESET_TIMEOUT',Ft=0x7d0,ut=_0x29b95d(0x43a),Vt=_0x29b95d(0x394),dt=_0x29b95d(0x355),Wt=0x7530,xe='HEARTBEAT_TIMEOUT',St=0x2710,Gt=_0x29b95d(0x559),Yt=0x4e20,Kt=_0x29b95d(0x2fb),Xt=0x3,vt=_0x29b95d(0x3e5),qt=0x3e8,gt='COLLAB_SUBMIT_CHANGESET_URL',zt=_0x29b95d(0x24e),ft=_0x29b95d(0x452),Jt='/universer-api/oidc/authpage';var mt=(_0x5304bd=>(_0x5304bd[_0x5304bd['UNDEFINED']=0x0]=_0x29b95d(0x453),_0x5304bd[_0x5304bd['OK']=0x1]='OK',_0x5304bd[_0x5304bd[_0x29b95d(0x368)]=0x2]='INTERNAL_ERROR',_0x5304bd[_0x5304bd['PERMISSION_DENIED']=0x3]=_0x29b95d(0x349),_0x5304bd[_0x5304bd['NOT_FOUND']=0x4]=_0x29b95d(0x398),_0x5304bd[_0x5304bd[_0x29b95d(0x30e)]=0x5]=_0x29b95d(0x30e),_0x5304bd[_0x5304bd['ALREADY_EXISTS']=0x6]=_0x29b95d(0x3ab),_0x5304bd[_0x5304bd[_0x29b95d(0x4c2)]=0x7]=_0x29b95d(0x4c2),_0x5304bd[_0x5304bd[_0x29b95d(0x4b9)]=0x8]='TOO_MANY_REQUESTS',_0x5304bd[_0x5304bd[_0x29b95d(0x425)]=0x9]=_0x29b95d(0x425),_0x5304bd[_0x5304bd[_0x29b95d(0x2c2)]=0x1389]=_0x29b95d(0x2c2),_0x5304bd[_0x5304bd[_0x29b95d(0x1d0)]=0x1771]=_0x29b95d(0x1d0),_0x5304bd[_0x5304bd[_0x29b95d(0x4a6)]=0x1772]=_0x29b95d(0x4a6),_0x5304bd[_0x5304bd[_0x29b95d(0x491)]=0x1b59]='APPLY_REJECT',_0x5304bd[_0x5304bd['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5304bd[_0x5304bd[_0x29b95d(0x54b)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5304bd[_0x5304bd['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x29b95d(0x3e0),_0x5304bd[_0x5304bd[_0x29b95d(0x4c4)]=0x1f41]=_0x29b95d(0x4c4),_0x5304bd[_0x5304bd['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5304bd[_0x5304bd[_0x29b95d(0x2f3)]=0x232a]=_0x29b95d(0x2f3),_0x5304bd[_0x5304bd['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x29b95d(0x2f4),_0x5304bd[_0x5304bd[_0x29b95d(0x343)]=0x232c]=_0x29b95d(0x343),_0x5304bd[_0x5304bd[_0x29b95d(0x2e7)]=0x232d]=_0x29b95d(0x2e7),_0x5304bd[_0x5304bd[_0x29b95d(0x381)]=0x2711]=_0x29b95d(0x381),_0x5304bd[_0x5304bd[_0x29b95d(0x39c)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5304bd[_0x5304bd[_0x29b95d(0x3c4)]=-0x1]='UNRECOGNIZED',_0x5304bd))(mt||{}),j=(_0x1b8dc0=>(_0x1b8dc0[_0x1b8dc0[_0x29b95d(0x212)]=0x0]='UNIVER_UNKNOWN',_0x1b8dc0[_0x1b8dc0['UNIVER_DOC']=0x1]=_0x29b95d(0x2a2),_0x1b8dc0[_0x1b8dc0[_0x29b95d(0x272)]=0x2]=_0x29b95d(0x272),_0x1b8dc0[_0x1b8dc0[_0x29b95d(0x257)]=0x3]='UNIVER_SLIDE',_0x1b8dc0[_0x1b8dc0[_0x29b95d(0x3c4)]=-0x1]=_0x29b95d(0x3c4),_0x1b8dc0))(j||{}),b=(_0x1a2084=>(_0x1a2084[_0x1a2084[_0x29b95d(0x2fc)]=0x0]=_0x29b95d(0x2fc),_0x1a2084[_0x1a2084[_0x29b95d(0x3f6)]=0x1]=_0x29b95d(0x3f6),_0x1a2084[_0x1a2084[_0x29b95d(0x3eb)]=0x2]=_0x29b95d(0x3eb),_0x1a2084[_0x1a2084['LEAVE']=0x3]=_0x29b95d(0x34b),_0x1a2084[_0x1a2084[_0x29b95d(0x567)]=0x4]=_0x29b95d(0x567),_0x1a2084[_0x1a2084['HEARTBEAT']=0x5]=_0x29b95d(0x223),_0x1a2084[_0x1a2084['RECV']=0x6]='RECV',_0x1a2084[_0x1a2084[_0x29b95d(0x3c4)]=-0x1]=_0x29b95d(0x3c4),_0x1a2084))(b||{}),ke=(_0x570054=>(_0x570054[_0x570054['UNKNOWN_CODE']=0x0]=_0x29b95d(0x3b4),_0x570054[_0x570054['OK']=0x1]='OK',_0x570054[_0x570054[_0x29b95d(0x22d)]=0x2]='FAIL',_0x570054[_0x570054[_0x29b95d(0x3c4)]=-0x1]=_0x29b95d(0x3c4),_0x570054))(ke||{}),Zt=Object[_0x29b95d(0x2f8)],Qt=Object[_0x29b95d(0x516)],es=(_0x425a4f,_0x242794,_0x18697a,_0x31b72c)=>{for(var _0x2e2b8a=_0x31b72c>0x1?void 0x0:_0x31b72c?Qt(_0x242794,_0x18697a):_0x242794,_0x4581ec=_0x425a4f['length']-0x1,_0x374d8d;_0x4581ec>=0x0;_0x4581ec--)(_0x374d8d=_0x425a4f[_0x4581ec])&&(_0x2e2b8a=(_0x31b72c?_0x374d8d(_0x242794,_0x18697a,_0x2e2b8a):_0x374d8d(_0x2e2b8a))||_0x2e2b8a);return _0x31b72c&&_0x2e2b8a&&Zt(_0x242794,_0x18697a,_0x2e2b8a),_0x2e2b8a;},Xe=(_0x4b6c7c,_0x293332)=>(_0x2dcc08,_0x3a866f)=>_0x293332(_0x2dcc08,_0x3a866f,_0x4b6c7c);let G=class extends a[_0x29b95d(0x1dd)]{constructor(_0x24f359,_0x57fb0c){const _0x2851e3=_0x29b95d;super(),d(this,_0x2851e3(0x431),new Map()),(this[_0x2851e3(0x50a)]=_0x24f359,this[_0x2851e3(0x249)]=_0x57fb0c,this['disposeWithMe'](a[_0x2851e3(0x273)](g[_0x2851e3(0x22e)](this[_0x2851e3(0x50a)][_0x2851e3(0x4a3)](a[_0x2851e3(0x30a)][_0x2851e3(0x272)])[_0x2851e3(0x1e4)](T[_0x2851e3(0x2a0)](_0x25fb79=>_0x25fb79[_0x2851e3(0x25b)]())),this[_0x2851e3(0x50a)][_0x2851e3(0x4a3)](a['UniverInstanceType'][_0x2851e3(0x2a2)])[_0x2851e3(0x1e4)](T['map'](_0x32ef1f=>_0x32ef1f[_0x2851e3(0x25b)]())),this['_univerInstanceService'][_0x2851e3(0x4a3)](a[_0x2851e3(0x30a)][_0x2851e3(0x257)])[_0x2851e3(0x1e4)](T[_0x2851e3(0x2a0)](_0x3cbe4d=>_0x3cbe4d[_0x2851e3(0x25b)]())))[_0x2851e3(0x1e8)](_0x328a2b=>this[_0x2851e3(0x238)](_0x328a2b)))));}[_0x29b95d(0x308)](_0x2a5cfe){const _0x49f2e1=_0x29b95d;this[_0x49f2e1(0x249)][_0x49f2e1(0x308)](_0x2a5cfe);}[_0x29b95d(0x521)](){const _0x20396f=_0x29b95d;return this[_0x20396f(0x249)][_0x20396f(0x521)]();}[_0x29b95d(0x266)](_0x36aeaa,_0x4548ca){const _0x181f66=_0x29b95d;let _0x155af9=this[_0x181f66(0x431)][_0x181f66(0x2d3)](_0x36aeaa);_0x155af9||(_0x155af9=new ts(),this[_0x181f66(0x431)]['set'](_0x36aeaa,_0x155af9)),_0x155af9[_0x181f66(0x266)](_0x4548ca);}['removeMember'](_0x33269b,_0x3f4b32){const _0x38287e=_0x29b95d,_0x2b2ea5=this[_0x38287e(0x431)][_0x38287e(0x2d3)](_0x33269b);_0x2b2ea5&&_0x2b2ea5[_0x38287e(0x375)](_0x3f4b32);}['getRoom'](_0x51d315){const _0x50a6d2=_0x29b95d;return this[_0x50a6d2(0x431)][_0x50a6d2(0x2d3)](_0x51d315);}[_0x29b95d(0x43b)](_0xaeb618,_0x3d6a19){const _0x36164b=_0x29b95d,_0x35eb9f=this['_roomMembers'][_0x36164b(0x2d3)](_0xaeb618);if(_0x35eb9f)return _0x35eb9f[_0x36164b(0x43b)](_0x3d6a19);}[_0x29b95d(0x238)](_0x4a741b){const _0x29af1d=_0x29b95d,_0xc19e9=this[_0x29af1d(0x431)][_0x29af1d(0x2d3)](_0x4a741b);_0xc19e9&&(_0xc19e9[_0x29af1d(0x545)](),this[_0x29af1d(0x431)][_0x29af1d(0x485)](_0x4a741b));}[_0x29b95d(0x545)](){const _0x1bd62c=_0x29b95d;this[_0x1bd62c(0x431)][_0x1bd62c(0x3b0)](_0x2e0deb=>_0x2e0deb[_0x1bd62c(0x545)]()),this[_0x1bd62c(0x431)][_0x1bd62c(0x2a7)]();}};G=es([Xe(0x0,a[_0x29b95d(0x2e6)]),Xe(0x1,h[_0x29b95d(0x563)](a['UserManagerService']))],G);class ts extends a[_0x29b95d(0x1dd)]{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x29b95d(0x545)](){const _0x1da2e0=_0x29b95d;this['_members'][_0x1da2e0(0x2a7)]();}[_0x29b95d(0x266)](_0x2c646b){const _0x477ccf=_0x29b95d;this[_0x477ccf(0x472)][_0x477ccf(0x470)](_0x2c646b[_0x477ccf(0x228)],_0x2c646b);}[_0x29b95d(0x375)](_0x2da9b7){const _0x5a8a00=_0x29b95d;this['_members'][_0x5a8a00(0x485)](_0x2da9b7);}[_0x29b95d(0x43b)](_0x270f1c){const _0x34ca2b=_0x29b95d;return this[_0x34ca2b(0x472)][_0x34ca2b(0x2d3)](_0x270f1c);}}function It(_0x160ecc){const _0x4cda82=_0x29b95d;var _0x342305,_0x570021,_0x24b118,_0x578b4f;const _0x2a2e8f=_0x160ecc[_0x4cda82(0x2eb)],_0x5b0cb1=JSON[_0x4cda82(0x457)](_0x2a2e8f);switch(_0x5b0cb1[_0x4cda82(0x36d)]){case b[_0x4cda82(0x223)]:case b[_0x4cda82(0x3f6)]:{const _0x51bd5c=_0x5b0cb1[_0x4cda82(0x1eb)];return{..._0x5b0cb1,'data':_0x51bd5c,'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};}case b[_0x4cda82(0x3eb)]:{const _0x56d1e5=_0x5b0cb1[_0x4cda82(0x21b)];return{..._0x5b0cb1,'data':_0x56d1e5,'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};}case b[_0x4cda82(0x426)]:{const _0xd7a10a=_0x5b0cb1['collaMsg'];switch(_0xd7a10a[_0x4cda82(0x3e1)]){case u[_0x4cda82(0x45f)][_0x4cda82(0x28a)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':(_0x342305=_0xd7a10a[_0x4cda82(0x41d)])==null?void 0x0:_0x342305['cs']},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x45e)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':(_0x570021=_0xd7a10a[_0x4cda82(0x4a4)])==null?void 0x0:_0x570021['cs']},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x354)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':(_0x24b118=_0xd7a10a[_0x4cda82(0x4a5)])==null?void 0x0:_0x24b118['cs']},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x2c7)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':(_0x578b4f=_0xd7a10a[_0x4cda82(0x2b6)])==null?void 0x0:_0x578b4f['cs']},'cmd':_0x5b0cb1['cmd']};case u[_0x4cda82(0x45f)][_0x4cda82(0x30b)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x50b)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x200)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a['joinEvent']},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u['CollaborationEvent']['USERS_LEAVE']:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x48e)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x4ee)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x1f5)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u['CollaborationEvent'][_0x4cda82(0x361)]:case u[_0x4cda82(0x45f)][_0x4cda82(0x395)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x1d7)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)]['LIVESHARE_TERMINATE']:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x1f5)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x4f9)]:return{..._0x5b0cb1,'data':_0xd7a10a,'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x44b)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x2cd)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};default:return _0x5b0cb1;}}default:return _0x5b0cb1;}}function pt(_0xb6ba28){const _0x4733e3=_0x29b95d;switch(_0xb6ba28['cmd']){case b[_0x4733e3(0x223)]:case b[_0x4733e3(0x3f6)]:return JSON[_0x4733e3(0x1e7)]({'cmd':_0xb6ba28[_0x4733e3(0x36d)],'routeKey':_0xb6ba28['routeKey']});case b[_0x4733e3(0x567)]:{let _0x5515cb;switch(_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x3e1)]){case u[_0x4733e3(0x45f)][_0x4733e3(0x30b)]:{_0x5515cb={'eventID':u['CollaborationEvent'][_0x4733e3(0x30b)],'updateCursorEvent':_0xb6ba28[_0x4733e3(0x2eb)]['data']};break;}case u[_0x4733e3(0x45f)]['USERS_LEAVE']:{_0x5515cb={'eventID':u[_0x4733e3(0x45f)]['USERS_LEAVE'],'leaveEvent':_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x2eb)]};break;}case u[_0x4733e3(0x45f)][_0x4733e3(0x200)]:{_0x5515cb={'eventID':u['CollaborationEvent'][_0x4733e3(0x200)],'joinEvent':_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x2eb)]};break;}case u[_0x4733e3(0x45f)][_0x4733e3(0x4ee)]:{_0x5515cb={'eventID':u[_0x4733e3(0x45f)][_0x4733e3(0x4ee)],'liveShareNewHost':_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x2eb)]};break;}case u['CollaborationEvent'][_0x4733e3(0x395)]:{_0x5515cb={'eventID':u['CollaborationEvent'][_0x4733e3(0x395)],'liveShareOperation':_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x2eb)]};break;}case u['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x5515cb={'eventID':u['CollaborationEvent'][_0x4733e3(0x4c8)],'liveShareTerminate':_0xb6ba28[_0x4733e3(0x2eb)]['data']};break;}case u['CollaborationEvent'][_0x4733e3(0x482)]:{_0x5515cb={'eventID':u[_0x4733e3(0x45f)][_0x4733e3(0x482)],'liveShareRequestHost':_0xb6ba28[_0x4733e3(0x2eb)]['data']};break;}case u[_0x4733e3(0x45f)][_0x4733e3(0x361)]:{_0x5515cb={'eventID':u['CollaborationEvent'][_0x4733e3(0x361)]};break;}default:_0x5515cb={'eventID':_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x3e1)]};}return JSON[_0x4733e3(0x1e7)]({'cmd':_0xb6ba28[_0x4733e3(0x36d)],'routeKey':_0xb6ba28[_0x4733e3(0x3fe)],'collaMsg':_0x5515cb});}case b[_0x4733e3(0x3eb)]:return JSON[_0x4733e3(0x1e7)]({'cmd':_0xb6ba28['cmd'],'routeKey':_0xb6ba28['routeKey'],'joinReq':_0xb6ba28[_0x4733e3(0x2eb)]});case b['LEAVE']:return JSON[_0x4733e3(0x1e7)]({'cmd':_0xb6ba28[_0x4733e3(0x36d)],'routeKey':_0xb6ba28['routeKey'],'leaveReq':_0xb6ba28['data']});default:throw new Error(_0x4733e3(0x32e));}}var ss=Object[_0x29b95d(0x2f8)],is=Object[_0x29b95d(0x516)],ns=(_0x56ab78,_0x50b3f2,_0x392779,_0x2c26d3)=>{const _0x14fe6a=_0x29b95d;for(var _0x253291=_0x2c26d3>0x1?void 0x0:_0x2c26d3?is(_0x50b3f2,_0x392779):_0x50b3f2,_0x442460=_0x56ab78[_0x14fe6a(0x49e)]-0x1,_0x23e653;_0x442460>=0x0;_0x442460--)(_0x23e653=_0x56ab78[_0x442460])&&(_0x253291=(_0x2c26d3?_0x23e653(_0x50b3f2,_0x392779,_0x253291):_0x23e653(_0x253291))||_0x253291);return _0x2c26d3&&_0x253291&&ss(_0x50b3f2,_0x392779,_0x253291),_0x253291;},te=(_0x4b96b6,_0x2bf114)=>(_0x528678,_0x22be93)=>_0x2bf114(_0x528678,_0x22be93,_0x4b96b6);const Be=h[_0x29b95d(0x250)](_0x29b95d(0x268));function rs(_0x18d005,_0x52b391,_0x5edd94){const _0x5a898a=_0x29b95d;return _0x18d005+'/'+_0x52b391+_0x5a898a(0x2b9)+_0x5edd94+_0x5a898a(0x4d9);}exports[_0x29b95d(0x44c)]=class{constructor(_0x5acf1e,_0x213416,_0x3b0780,_0x31291e,_0x3382b6){const _0x347e8e=_0x29b95d;this['_http']=_0x5acf1e,this[_0x347e8e(0x44e)]=_0x213416,this[_0x347e8e(0x552)]=_0x3b0780,this[_0x347e8e(0x3cb)]=_0x31291e,this[_0x347e8e(0x4f8)]=_0x3382b6;}[_0x29b95d(0x402)](_0x885db2){const _0x271389=_0x29b95d,_0x3c575e=this[_0x271389(0x44e)][_0x271389(0x402)](_0x885db2);if(!_0x3c575e)throw new Error(_0x271389(0x28c));const _0x1ae259=new a[(_0x271389(0x3a4))](),_0x3f0bcd=new g[(_0x271389(0x1c9))]();_0x1ae259['add'](a[_0x271389(0x273)](_0x3c575e[_0x271389(0x55e)][_0x271389(0x1e8)](_0x37418c=>_0x3f0bcd['next'](_0x37418c)))),_0x1ae259[_0x271389(0x3af)](a[_0x271389(0x273)](()=>_0x3f0bcd[_0x271389(0x388)]()));const _0x21f4a5=new g[(_0x271389(0x1c9))]();_0x1ae259['add'](a[_0x271389(0x273)](_0x3c575e['error$'][_0x271389(0x1e8)](_0x2152e8=>_0x21f4a5[_0x271389(0x4e8)](_0x2152e8)))),_0x1ae259[_0x271389(0x3af)](a[_0x271389(0x273)](()=>_0x21f4a5['complete']()));const _0x20305a=new g[(_0x271389(0x1c9))]();_0x1ae259[_0x271389(0x3af)](a[_0x271389(0x273)](_0x3c575e['message$'][_0x271389(0x1e8)](_0x2bfc0d=>{const _0x485b66=_0x271389,_0x2967f5=It(_0x2bfc0d);_0x20305a[_0x485b66(0x4e8)](_0x2967f5);}))),_0x1ae259[_0x271389(0x3af)](a[_0x271389(0x273)](()=>_0x20305a[_0x271389(0x388)]()));const _0x32c741=()=>{const _0x6b7d9c=_0x271389;_0x21f4a5[_0x6b7d9c(0x4e8)](new Event('connection\x20error')),_0x3f0bcd[_0x6b7d9c(0x4e8)](new CloseEvent(_0x6b7d9c(0x539))),_0x1cfc30[_0x6b7d9c(0x2bb)]();},_0x1cfc30={'memberID':'','close$':_0x3f0bcd[_0x271389(0x56a)](),'error$':_0x21f4a5[_0x271389(0x56a)](),'open$':_0x3c575e['open$'],'message$':_0x20305a['asObservable'](),'send':_0xcdd65e=>{const _0x189a9e=_0x271389;if(_0xcdd65e[_0x189a9e(0x36d)]===b[_0x189a9e(0x567)]){if(_0xcdd65e[_0x189a9e(0x2eb)][_0x189a9e(0x3e1)]===u['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x189a9e(0x22f)](_0x1cfc30,_0xcdd65e['data'])[_0x189a9e(0x247)](_0x39d278=>{const _0x47a618=_0x189a9e;this[_0x47a618(0x3cb)][_0x47a618(0x383)](_0x39d278),_0x32c741();});return;}if(_0xcdd65e['data'][_0x189a9e(0x3e1)]===u[_0x189a9e(0x45f)][_0x189a9e(0x47c)]){const _0x557bd1=_0xcdd65e[_0x189a9e(0x2eb)];this[_0x189a9e(0x2c0)](_0x557bd1)[_0x189a9e(0x27d)](_0x39c83e=>{const _0x1bce20=_0x189a9e;_0x20305a['next']({'cmd':b[_0x1bce20(0x426)],'code':ke['OK'],'routeKey':_0x557bd1['data'][_0x1bce20(0x1c8)],'routeType':'','data':{'eventID':u[_0x1bce20(0x45f)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x39c83e}}});})[_0x189a9e(0x247)](_0x360e82=>{const _0x1eb95e=_0x189a9e;this[_0x1eb95e(0x3cb)][_0x1eb95e(0x383)](_0x360e82),_0x32c741();});return;}}_0x3c575e[_0x189a9e(0x434)](pt(_0xcdd65e));},'close':()=>{_0x3c575e['close'](),_0x1ae259['dispose']();}};return _0x1cfc30;}async[_0x29b95d(0x22f)](_0x5e9965,_0x36c071){const _0x240302=_0x29b95d;var _0x31c20f;const {unitType:_0x347c4b,unitID:_0x23eb85,changeset:_0x13adfe}=_0x36c071['data'],_0x54a575={'unitID':_0x23eb85,'memberID':_0x5e9965[_0x240302(0x228)],'type':_0x347c4b,'changeset':u[_0x240302(0x287)](_0x13adfe)},_0x11da27=rs((_0x31c20f=this['_configService'][_0x240302(0x2bf)](gt))!=null?_0x31c20f:zt,_0x347c4b,_0x23eb85);try{await this['_http']['post'](_0x11da27,{'body':_0x54a575});}catch(_0xf2fbff){throw this[_0x240302(0x3cb)]['error'](_0x240302(0x374),_0x240302(0x4fd)),_0xf2fbff;}}async['_fetchMissChangesets'](_0x416788){const _0x10568c=_0x29b95d,{unitID:_0x196fb,from:_0x4291f3,to:_0x21ee59,unitType:_0x2d7c40}=_0x416788['data'];return(await this[_0x10568c(0x4f8)][_0x10568c(0x29c)]({'metadata':void 0x0},{'unitID':_0x196fb,'type':_0x2d7c40,'from':_0x4291f3,'to':_0x21ee59}))[_0x10568c(0x46d)];}},exports[_0x29b95d(0x44c)]=ns([te(0x0,h['Inject'](P[_0x29b95d(0x42e)])),te(0x1,h[_0x29b95d(0x563)](P['WebSocketService'])),te(0x2,a[_0x29b95d(0x271)]),te(0x3,a[_0x29b95d(0x50d)]),te(0x4,a[_0x29b95d(0x55c)])],exports[_0x29b95d(0x44c)]);class Fe{constructor(){const _0x2a2d57=_0x29b95d;d(this,_0x2a2d57(0x217),new g[(_0x2a2d57(0x1c9))]()),d(this,_0x2a2d57(0x4a7),this[_0x2a2d57(0x217)][_0x2a2d57(0x56a)]());}[_0x29b95d(0x39b)](_0x1a2729){const _0x48d7a6=_0x29b95d;this[_0x48d7a6(0x217)][_0x48d7a6(0x4e8)](_0x1a2729);}}var os=Object[_0x29b95d(0x2f8)],as=Object[_0x29b95d(0x516)],Et=(_0x4ffce4,_0x148346,_0x470337,_0x9450e6)=>{for(var _0x2f1a6a=_0x9450e6>0x1?void 0x0:_0x9450e6?as(_0x148346,_0x470337):_0x148346,_0x37a8a2=_0x4ffce4['length']-0x1,_0x55f26a;_0x37a8a2>=0x0;_0x37a8a2--)(_0x55f26a=_0x4ffce4[_0x37a8a2])&&(_0x2f1a6a=(_0x9450e6?_0x55f26a(_0x148346,_0x470337,_0x2f1a6a):_0x55f26a(_0x2f1a6a))||_0x2f1a6a);return _0x9450e6&&_0x2f1a6a&&os(_0x148346,_0x470337,_0x2f1a6a),_0x2f1a6a;},w=(_0x76b61d,_0x58a33a)=>(_0x3a4526,_0x327013)=>_0x58a33a(_0x3a4526,_0x327013,_0x76b61d),W=(_0x27951c=>(_0x27951c[_0x27951c['IDLE']=0x0]='IDLE',_0x27951c[_0x27951c['JOINING']=0x1]=_0x29b95d(0x542),_0x27951c[_0x27951c['OFFLINE']=0x2]=_0x29b95d(0x234),_0x27951c[_0x27951c[_0x29b95d(0x391)]=0x3]='ONLINE',_0x27951c))(W||{});exports[_0x29b95d(0x25c)]=class extends a['RxDisposable']{constructor(_0x10373f,_0x36d364,_0x276cbd,_0x161da8,_0x35d03a,_0x77a504,_0x45da80,_0x3c231b,_0x522465){const _0x567561=_0x29b95d;super(),d(this,_0x567561(0x386),new g[(_0x567561(0x3cd))](0x0)),d(this,_0x567561(0x42c),this['_sessionStatus$'][_0x567561(0x56a)]()),d(this,_0x567561(0x480),new g['Subject']()),d(this,_0x567561(0x264),this['_event$'][_0x567561(0x56a)]()),d(this,_0x567561(0x442)),d(this,_0x567561(0x36f)),d(this,_0x567561(0x4c6)),(this[_0x567561(0x487)]=_0x10373f,this[_0x567561(0x3cb)]=_0x276cbd,this['_beforeCloseService']=_0x161da8,this[_0x567561(0x533)]=_0x35d03a,this['_configService']=_0x77a504,this[_0x567561(0x2df)]=_0x45da80,this['_memberService']=_0x3c231b,this[_0x567561(0x2dd)]=_0x522465,_0x36d364[_0x567561(0x1e4)](T[_0x567561(0x4d2)](this[_0x567561(0x2e1)]))[_0x567561(0x1e8)](_0x4c8e3c=>{const _0x169a43=_0x567561;var _0x48e91c;typeof _0x4c8e3c>'u'||(this[_0x169a43(0x442)]=_0x4c8e3c,_0x4c8e3c?(this[_0x169a43(0x514)](_0x4c8e3c),this['_socketMessageSubscription']=this[_0x169a43(0x442)][_0x169a43(0x40a)][_0x169a43(0x1e8)](_0x4f022e=>{const _0x4eca00=_0x169a43;_0x4f022e[_0x4eca00(0x3fe)]===this[_0x4eca00(0x487)]&&this[_0x4eca00(0x285)](_0x4f022e);})):(this['_sessionStatus$'][_0x169a43(0x4e8)](0x2),(_0x48e91c=this[_0x169a43(0x36f)])==null||_0x48e91c[_0x169a43(0x231)](),this[_0x169a43(0x36f)]=null));}),this[_0x567561(0x2f6)](this['_beforeCloseService'][_0x567561(0x492)](()=>{const _0x42ea4a=_0x567561;var _0x123a31;(_0x123a31=this[_0x42ea4a(0x442)])==null||_0x123a31[_0x42ea4a(0x434)]({'cmd':b[_0x42ea4a(0x34b)],'data':{'roomID':this[_0x42ea4a(0x487)]}});})));}get[_0x29b95d(0x36b)](){const _0x34d972=_0x29b95d;return this['_sessionStatus$'][_0x34d972(0x2e8)]();}[_0x29b95d(0x429)](){const _0x233796=_0x29b95d;var _0x2dc1f0,_0x287ead;return(_0x287ead=(_0x2dc1f0=this['_socket'])==null?void 0x0:_0x2dc1f0[_0x233796(0x228)])!=null?_0x287ead:null;}[_0x29b95d(0x545)](){const _0x294bce=_0x29b95d;super[_0x294bce(0x545)](),this['dispose$']['next'](),this[_0x294bce(0x2e1)][_0x294bce(0x388)]();}['_onCombEvent'](_0x120f71){const _0x1807fd=_0x29b95d;_0x120f71['cmd']===b[_0x1807fd(0x3eb)]?this[_0x1807fd(0x4ad)](_0x120f71):_0x120f71[_0x1807fd(0x36d)]===b[_0x1807fd(0x426)]&&this[_0x1807fd(0x279)](_0x120f71);}['_joinRoom'](_0x5401d0){const _0x11cf1a=_0x29b95d;this['_sessionStatus$']['next'](0x1),_0x5401d0[_0x11cf1a(0x434)]({'cmd':b[_0x11cf1a(0x3eb)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x29b95d(0x4ad)](_0x513a24){const _0x35bbdf=_0x29b95d;var _0x45d3bd;if(_0x513a24[_0x35bbdf(0x405)]===ke['FAIL']){this['_messageService'][_0x35bbdf(0x4a2)]({'type':oe['MessageType'][_0x35bbdf(0x306)],'content':this['_localeService']['t'](_0x35bbdf(0x3ed))}),this[_0x35bbdf(0x386)]['next'](0x2);return;}this[_0x35bbdf(0x386)][_0x35bbdf(0x4e8)](0x3);const _0x83acb1=(_0x45d3bd=_0x513a24[_0x35bbdf(0x2eb)][_0x35bbdf(0x32d)][this[_0x35bbdf(0x487)]])==null?void 0x0:_0x45d3bd['members'];_0x83acb1&&_0x83acb1[_0x35bbdf(0x3b0)](_0x582f97=>this[_0x35bbdf(0x258)][_0x35bbdf(0x266)](this[_0x35bbdf(0x487)],_0x582f97));}[_0x29b95d(0x279)](_0x2ddaf0){const _0x216426=_0x29b95d;try{const _0x46b5ed=_0x2ddaf0[_0x216426(0x2eb)];switch(_0x46b5ed['eventID']){case u[_0x216426(0x45f)][_0x216426(0x200)]:this[_0x216426(0x3d2)](_0x46b5ed),this[_0x216426(0x480)][_0x216426(0x4e8)](_0x46b5ed);break;case u[_0x216426(0x45f)][_0x216426(0x274)]:this[_0x216426(0x543)](_0x46b5ed),this[_0x216426(0x480)][_0x216426(0x4e8)](_0x46b5ed);break;case u[_0x216426(0x45f)][_0x216426(0x45e)]:this[_0x216426(0x265)](),this[_0x216426(0x480)][_0x216426(0x4e8)](_0x46b5ed);break;case u[_0x216426(0x45f)][_0x216426(0x4f9)]:this[_0x216426(0x3cb)][_0x216426(0x383)](_0x216426(0x384)+JSON[_0x216426(0x1e7)](_0x46b5ed)),this[_0x216426(0x480)]['next'](_0x46b5ed);break;case u[_0x216426(0x45f)][_0x216426(0x44b)]:this[_0x216426(0x2dd)][_0x216426(0x39b)](_0x46b5ed['data']),this['_event$'][_0x216426(0x4e8)](_0x46b5ed);break;default:this[_0x216426(0x480)][_0x216426(0x4e8)](_0x46b5ed);}}catch(_0x10353e){this[_0x216426(0x3cb)][_0x216426(0x383)](_0x10353e,_0x2ddaf0);}}[_0x29b95d(0x3d2)](_0x106a35){const _0x41bdd5=_0x29b95d;this[_0x41bdd5(0x258)][_0x41bdd5(0x266)](this[_0x41bdd5(0x487)],_0x106a35[_0x41bdd5(0x2eb)]);}[_0x29b95d(0x543)](_0x48f572){const _0x3392ba=_0x29b95d;this[_0x3392ba(0x258)][_0x3392ba(0x375)](this[_0x3392ba(0x487)],_0x48f572[_0x3392ba(0x2eb)][_0x3392ba(0x228)]);}async[_0x29b95d(0x434)](_0x4b3b32,_0x4bb1fb){const _0x4bfdfa=_0x29b95d;if(this['sessionStatus']!==0x3||!this[_0x4bfdfa(0x442)])throw new Error(_0x4bfdfa(0x51a));try{_0x4b3b32[_0x4bfdfa(0x3e1)]===u[_0x4bfdfa(0x45f)][_0x4bfdfa(0x354)]&&this[_0x4bfdfa(0x251)](),this[_0x4bfdfa(0x442)][_0x4bfdfa(0x434)]({'cmd':b[_0x4bfdfa(0x567)],'routeKey':_0x4bb1fb,'routeType':'','data':_0x4b3b32});}catch(_0xa3413f){this[_0x4bfdfa(0x3cb)][_0x4bfdfa(0x383)](_0xa3413f);}}[_0x29b95d(0x251)](){const _0x5be98c=_0x29b95d;var _0x1a63ce;this[_0x5be98c(0x4c6)]=window[_0x5be98c(0x52d)](()=>{const _0xa61725=_0x5be98c;this[_0xa61725(0x4c6)]=null,this[_0xa61725(0x533)]['show']({'type':oe[_0xa61725(0x4e9)][_0xa61725(0x399)],'content':this[_0xa61725(0x2df)]['t']('session.collaboration-timeout')});},(_0x1a63ce=this[_0x5be98c(0x552)]['getConfig'](xe))!=null?_0x1a63ce:St);}[_0x29b95d(0x265)](){const _0x3fa60c=_0x29b95d;this[_0x3fa60c(0x4c6)]&&(clearTimeout(this[_0x3fa60c(0x4c6)]),this[_0x3fa60c(0x4c6)]=null);}},exports[_0x29b95d(0x25c)]=Et([w(0x2,a['ILogService']),w(0x3,N[_0x29b95d(0x31c)]),w(0x4,N[_0x29b95d(0x3e3)]),w(0x5,a[_0x29b95d(0x271)]),w(0x6,h['Inject'](a['LocaleService'])),w(0x7,h[_0x29b95d(0x563)](G)),w(0x8,h[_0x29b95d(0x563)](Fe))],exports[_0x29b95d(0x25c)]),exports['CollaborationSessionService']=class extends a['Disposable']{constructor(_0x298fa8,_0x3727f7,_0xaf261c,_0x18f4db,_0x1df169,_0x328763){const _0x653d39=_0x29b95d;super(),d(this,_0x653d39(0x488),new g[(_0x653d39(0x3cd))](void 0x0)),d(this,_0x653d39(0x3dc),new Map()),d(this,'_status$',new g['BehaviorSubject'](0x0)),d(this,_0x653d39(0x1f7),this['_status$'][_0x653d39(0x56a)]()),d(this,_0x653d39(0x25d),!0x1),d(this,'_sendHeartbeatTimer'),d(this,_0x653d39(0x1ff)),d(this,_0x653d39(0x276)),d(this,'_retryCount',0x0),(this[_0x653d39(0x42b)]=_0x298fa8,this[_0x653d39(0x2df)]=_0x3727f7,this[_0x653d39(0x533)]=_0xaf261c,this[_0x653d39(0x3cb)]=_0x18f4db,this[_0x653d39(0x552)]=_0x1df169,this[_0x653d39(0x517)]=_0x328763);}get[_0x29b95d(0x442)](){const _0x384a48=_0x29b95d;return this['_socket$'][_0x384a48(0x2e8)]();}[_0x29b95d(0x545)](){const _0x4da4d3=_0x29b95d;super[_0x4da4d3(0x545)](),this['_sessions']['forEach'](_0x3af01f=>_0x3af01f[_0x4da4d3(0x545)]()),this[_0x4da4d3(0x3dc)]['clear'](),this[_0x4da4d3(0x322)][_0x4da4d3(0x388)]();}async[_0x29b95d(0x393)](_0x39764d){const _0x5158ea=_0x29b95d;if(this[_0x5158ea(0x3dc)][_0x5158ea(0x237)](_0x39764d))return this[_0x5158ea(0x3dc)][_0x5158ea(0x2d3)](_0x39764d);this['_tryEnsureSocket']();const _0x497a09=this['_injector']['createInstance'](exports[_0x5158ea(0x25c)],_0x39764d,this['_socket$'][_0x5158ea(0x56a)]());return this[_0x5158ea(0x3dc)]['set'](_0x39764d,_0x497a09),_0x497a09;}[_0x29b95d(0x571)](){const _0x208511=_0x29b95d;var _0x237a54;const _0x18a096=(_0x237a54=this[_0x208511(0x552)][_0x208511(0x2bf)](ut))!=null?_0x237a54:Vt;return this[_0x208511(0x517)]['createSocket'](_0x18a096);}['_tryEnsureSocket'](){const _0x34fd21=_0x29b95d;try{const _0x31e3cf=this[_0x34fd21(0x571)]();if(_0x31e3cf){const _0x1f8d06=_0x31e3cf['send'];_0x31e3cf['send']=_0x33c955=>(this[_0x34fd21(0x33f)](),_0x1f8d06['apply'](_0x31e3cf,[_0x33c955])),_0x31e3cf[_0x34fd21(0x40a)][_0x34fd21(0x1e8)](_0x2c3b93=>this['_onMessage'](_0x31e3cf,_0x2c3b93)),_0x31e3cf[_0x34fd21(0x37a)][_0x34fd21(0x1e4)](T['take'](0x1))[_0x34fd21(0x1e8)](_0x2cdcdd=>this['_logService'][_0x34fd21(0x383)]('[CollaborationSessionService]:\x20socket\x20error',_0x2cdcdd)),_0x31e3cf[_0x34fd21(0x1dc)]['pipe'](T[_0x34fd21(0x4f7)](0x1))[_0x34fd21(0x1e8)](()=>{const _0x215ddd=_0x34fd21;this[_0x215ddd(0x23b)](_0x31e3cf);}),_0x31e3cf[_0x34fd21(0x55e)][_0x34fd21(0x1e4)](T[_0x34fd21(0x4f7)](0x1))[_0x34fd21(0x1e8)](_0x3a27fd=>{const _0x16c911=_0x34fd21;this[_0x16c911(0x3cb)][_0x16c911(0x270)]('[CollaborationSessionService]',_0x16c911(0x4e5),_0x3a27fd),this['_onConnectionFailed']();});}}catch(_0x281a5c){this['_logService'][_0x34fd21(0x383)](_0x281a5c),this['_onConnectionFailed']();}}[_0x29b95d(0x23b)](_0x451cb5){const _0x415835=_0x29b95d;this[_0x415835(0x3cb)]['debug'](_0x415835(0x282),_0x415835(0x560)),_0x451cb5['send']({'cmd':b['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x29b95d(0x389)](){const _0x25549c=_0x29b95d;var _0x2c582a;this['_status$'][_0x25549c(0x4e8)](0x2),this['_socket$'][_0x25549c(0x4e8)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this[_0x25549c(0x25d)]=!0x1,this[_0x25549c(0x2a8)]<((_0x2c582a=this[_0x25549c(0x552)]['getConfig'](Kt))!=null?_0x2c582a:Xt)?(this[_0x25549c(0x4a8)](this['_retryCount']),this['_retryCount']+=0x1):this[_0x25549c(0x533)][_0x25549c(0x4a2)]({'type':oe[_0x25549c(0x4e9)]['Error'],'content':this[_0x25549c(0x2df)]['t'](_0x25549c(0x481))});}[_0x29b95d(0x4a8)](_0x13902a){const _0x16ae9c=_0x29b95d;var _0x2670a5;const _0x5a0d3c=((_0x2670a5=this[_0x16ae9c(0x552)]['getConfig'](Gt))!=null?_0x2670a5:Yt)*0x2**_0x13902a;this[_0x16ae9c(0x533)][_0x16ae9c(0x4a2)]({'type':oe['MessageType']['Warning'],'content':this[_0x16ae9c(0x2df)]['t'](_0x16ae9c(0x4d3))}),this[_0x16ae9c(0x276)]=setTimeout(()=>{const _0x307244=_0x16ae9c;this[_0x307244(0x3d6)](),clearTimeout(this[_0x307244(0x276)]),this[_0x307244(0x276)]=null;},_0x5a0d3c);}[_0x29b95d(0x33f)](){const _0x44aad6=_0x29b95d;var _0x4b719c;this[_0x44aad6(0x344)](),this[_0x44aad6(0x37e)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x4b719c=this[_0x44aad6(0x552)]['getConfig'](dt))!=null?_0x4b719c:Wt);}[_0x29b95d(0x320)](){const _0x5d4d35=_0x29b95d;this[_0x5d4d35(0x442)]['send']({'cmd':b[_0x5d4d35(0x223)]}),this['_waitForHeartbeatResponse']();}[_0x29b95d(0x4a1)](){const _0x412d3b=_0x29b95d;var _0x56b650;this['_timeoutTimer']=setTimeout(()=>this[_0x412d3b(0x389)](),(_0x56b650=this['_configService'][_0x412d3b(0x2bf)](xe))!=null?_0x56b650:St);}[_0x29b95d(0x39f)](_0x56c2db,_0x5d51ec){const _0x134310=_0x29b95d,{cmd:_0x42f8fd}=_0x5d51ec;_0x42f8fd===b[_0x134310(0x3f6)]&&!this['_socketReady']&&(_0x56c2db[_0x134310(0x228)]=_0x5d51ec[_0x134310(0x2eb)][_0x134310(0x228)],this[_0x134310(0x488)][_0x134310(0x4e8)](_0x56c2db),this[_0x134310(0x322)]['next'](0x3),this[_0x134310(0x25d)]=!0x0),_0x42f8fd===b[_0x134310(0x223)]&&this[_0x134310(0x1f9)](),this[_0x134310(0x33f)]();}[_0x29b95d(0x344)](){const _0x360497=_0x29b95d;this[_0x360497(0x37e)]!=null&&(clearTimeout(this[_0x360497(0x37e)]),this[_0x360497(0x37e)]=null);}[_0x29b95d(0x1f9)](){const _0x60f6ac=_0x29b95d;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x60f6ac(0x1ff)]=null);}},exports[_0x29b95d(0x2cf)]=Et([w(0x0,h[_0x29b95d(0x563)](h['Injector'])),w(0x1,h[_0x29b95d(0x563)](a[_0x29b95d(0x3c8)])),w(0x2,N[_0x29b95d(0x3e3)]),w(0x3,a[_0x29b95d(0x50d)]),w(0x4,a[_0x29b95d(0x271)]),w(0x5,Be)],exports[_0x29b95d(0x2cf)]);var cs=Object[_0x29b95d(0x2f8)],ls=Object[_0x29b95d(0x516)],hs=(_0x5e363d,_0x2f137b,_0x195d48,_0x2605c9)=>{for(var _0x107685=_0x2605c9>0x1?void 0x0:_0x2605c9?ls(_0x2f137b,_0x195d48):_0x2f137b,_0x1d6886=_0x5e363d['length']-0x1,_0xf45118;_0x1d6886>=0x0;_0x1d6886--)(_0xf45118=_0x5e363d[_0x1d6886])&&(_0x107685=(_0x2605c9?_0xf45118(_0x2f137b,_0x195d48,_0x107685):_0xf45118(_0x107685))||_0x107685);return _0x2605c9&&_0x107685&&cs(_0x2f137b,_0x195d48,_0x107685),_0x107685;},se=(_0x40243a,_0x317642)=>(_0x1a20da,_0x472c98)=>_0x317642(_0x1a20da,_0x472c98,_0x40243a);exports[_0x29b95d(0x45c)]=class extends a[_0x29b95d(0x1dd)]{constructor(_0x2a9354,_0x1b1c47,_0x550043,_0x1ce1ea,_0x281d4b){const _0x5d204a=_0x29b95d;super(),d(this,'_cachedData',new Map()),d(this,_0x5d204a(0x4e4),new Map()),d(this,'_disabled',!0x1),(this[_0x5d204a(0x552)]=_0x2a9354,this[_0x5d204a(0x1ee)]=_0x1b1c47,this[_0x5d204a(0x315)]=_0x550043,this[_0x5d204a(0x2df)]=_0x1ce1ea,this['_revisionService']=_0x281d4b,this[_0x5d204a(0x37f)]());}[_0x29b95d(0x4d4)](){this['_disabled']=!0x0;}[_0x29b95d(0x310)](){const _0x37955f=_0x29b95d;this[_0x37955f(0x261)]=!0x1;}['dispose'](){const _0xab281f=_0x29b95d;this['_exhaustSavingTask']()[_0xab281f(0x27d)](()=>super['dispose']());}async['loadOfflineData'](_0x484240){const _0x296b61=_0x29b95d;return this[_0x296b61(0x261)]?null:this[_0x296b61(0x1ee)]['getItem'](qe(_0x484240));}async[_0x29b95d(0x259)](_0x102e72,_0x14058d){const _0x382f8a=_0x29b95d;return!!this[_0x382f8a(0x1ee)][_0x382f8a(0x46b)](_0x102e72,_0x14058d);}['updateOfflineData'](_0x39bae4,_0x226aba,_0x39464b,_0x659f5e){const _0x5d34d0=_0x29b95d,_0x2a5067=this[_0x5d34d0(0x2e2)][_0x5d34d0(0x372)](_0x39bae4);this[_0x5d34d0(0x31e)][_0x5d34d0(0x470)](_0x39bae4,{'unitID':_0x39bae4,'type':_0x226aba,'awaitingChangeset':_0x39464b,'mutations':_0x659f5e,'rev':_0x2a5067}),this[_0x5d34d0(0x4e4)][_0x5d34d0(0x237)](_0x39bae4)||this[_0x5d34d0(0x22a)](_0x39bae4);}[_0x29b95d(0x22a)](_0x21dd3c){const _0xb280e6=_0x29b95d,_0x50f9e9=this[_0xb280e6(0x1f1)]();_0x50f9e9===0x0?this[_0xb280e6(0x2be)](_0x21dd3c):this[_0xb280e6(0x4e4)][_0xb280e6(0x470)](_0x21dd3c,setTimeout(()=>this[_0xb280e6(0x2be)](_0x21dd3c),_0x50f9e9));}['_getSaveTimeout'](){const _0x3e044a=_0x29b95d;var _0x223566;return(_0x223566=this[_0x3e044a(0x552)][_0x3e044a(0x2bf)](vt))!=null?_0x223566:qt;}[_0x29b95d(0x2be)](_0x2af077){const _0x118d63=_0x29b95d,_0x53854b=this[_0x118d63(0x4e4)][_0x118d63(0x2d3)](_0x2af077);return _0x53854b!==void 0x0&&window[_0x118d63(0x553)](_0x53854b),this[_0x118d63(0x1ee)]['setItem'](qe(_0x2af077),this['_cachedData']['get'](_0x2af077))[_0x118d63(0x27d)](()=>this[_0x118d63(0x4e4)]['delete'](_0x2af077));}async['_exhaustSavingTask'](){const _0x23a3cb=_0x29b95d,_0x365dbb=[];this[_0x23a3cb(0x4e4)]['forEach']((_0x5230ec,_0x3e63d0)=>{const _0x3a963b=_0x23a3cb;window[_0x3a963b(0x553)](_0x5230ec),_0x365dbb[_0x3a963b(0x346)](this[_0x3a963b(0x2be)](_0x3e63d0)['then'](()=>{const _0x574d85=_0x3a963b;this[_0x574d85(0x4e4)]['delete'](_0x3e63d0);}));}),await Promise[_0x23a3cb(0x548)](_0x365dbb);}[_0x29b95d(0x37f)](){const _0x14183c=_0x29b95d;this[_0x14183c(0x2f6)](this[_0x14183c(0x315)][_0x14183c(0x3ea)](()=>{const _0x4f02a6=_0x14183c;if(this[_0x4f02a6(0x4e4)]['size'])return this[_0x4f02a6(0x2df)]['t'](_0x4f02a6(0x22c));}));}},exports['LocalCacheService']=hs([se(0x0,a['IConfigService']),se(0x1,a[_0x29b95d(0x2d7)]),se(0x2,N[_0x29b95d(0x31c)]),se(0x3,h[_0x29b95d(0x563)](a['LocaleService'])),se(0x4,h['Inject'](u['RevisionService']))],exports['LocalCacheService']);function qe(_0x541e70){const _0x2377a2=_0x29b95d;return _0x2377a2(0x1f2)+_0x541e70;}const pe=h[_0x29b95d(0x250)](_0x29b95d(0x2ce));var Ct=(_0x326b4b=>(_0x326b4b[_0x326b4b[_0x29b95d(0x1e5)]=0x0]=_0x29b95d(0x1e5),_0x326b4b[_0x326b4b[_0x29b95d(0x210)]=0x1]=_0x29b95d(0x210),_0x326b4b))(Ct||{});const ze=0x7530,Je=_0x29b95d(0x549);class _s extends a['Disposable']{constructor(){const _0x4eaf3c=_0x29b95d;super(),d(this,_0x4eaf3c(0x27c),a[_0x4eaf3c(0x4b1)]['generateRandomId']()),d(this,_0x4eaf3c(0x479),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x4eaf3c(0x256),null),d(this,_0x4eaf3c(0x360),new Map()),d(this,'_unitStatus',new Map()),this[_0x4eaf3c(0x2ec)]();}[_0x29b95d(0x545)](){const _0xe3d761=_0x29b95d;super[_0xe3d761(0x545)](),this[_0xe3d761(0x360)]['forEach']((_0x3cb87b,_0x197b2a)=>this[_0xe3d761(0x56c)](_0x197b2a)),this[_0xe3d761(0x256)]&&window['clearInterval'](this[_0xe3d761(0x256)]);}[_0x29b95d(0x340)](_0x2bbcfb){return this['_ensureSubject'](_0x2bbcfb)['pipe'](g['distinctUntilChanged']());}[_0x29b95d(0x2ee)](_0x16aefb){const _0x29fe06=_0x29b95d;this['_selfUnitIDs'][_0x29fe06(0x509)]===0x0&&this[_0x29fe06(0x420)](),this[_0x29fe06(0x479)]['add'](_0x16aefb),this[_0x29fe06(0x541)]({'type':0x0,'memberID':this[_0x29fe06(0x27c)],'unitIDs':[_0x16aefb],'isForwarded':!0x1});}[_0x29b95d(0x321)](_0xd53d68){const _0x4140f1=_0x29b95d;this[_0x4140f1(0x479)][_0x4140f1(0x485)](_0xd53d68),this[_0x4140f1(0x479)][_0x4140f1(0x509)]===0x0&&this[_0x4140f1(0x256)]&&window[_0x4140f1(0x445)](this['_heartbeatTimer']);}[_0x29b95d(0x2ec)](){const _0xfe1b15=_0x29b95d;this[_0xfe1b15(0x2f6)](a[_0xfe1b15(0x273)](g[_0xfe1b15(0x520)](window,_0xfe1b15(0x2bd))[_0xfe1b15(0x1e8)](_0x320706=>{const _0x37c440=_0xfe1b15;if(_0x320706[_0x37c440(0x530)]!==Je||!_0x320706[_0x37c440(0x2b2)])return;const _0x5bee98=JSON[_0x37c440(0x457)](_0x320706[_0x37c440(0x2b2)]);this[_0x37c440(0x2b0)](_0x5bee98);}))),window[_0xfe1b15(0x209)](_0xfe1b15(0x240),()=>this[_0xfe1b15(0x541)]({'type':0x1,'memberID':this[_0xfe1b15(0x27c)],'unitIDs':Array[_0xfe1b15(0x39a)](this[_0xfe1b15(0x479)])}));}[_0x29b95d(0x2b0)](_0x230967){const _0x5e8e4a=_0x29b95d;switch(_0x230967[_0x5e8e4a(0x46c)]){case 0x0:this[_0x5e8e4a(0x3a7)](_0x230967);break;case 0x1:this['_handleLeaveEvent'](_0x230967);break;case 0x2:this[_0x5e8e4a(0x3c9)](_0x230967);break;}}[_0x29b95d(0x3a7)](_0x345dfa){const _0x4c1d19=_0x29b95d,{unitIDs:_0x23e5ee,memberID:_0x26e620,isForwarded:_0x4ac7ef}=_0x345dfa;_0x23e5ee[_0x4c1d19(0x3b0)](_0x4359ef=>{const _0x2adaa8=_0x4c1d19;if(!_0x4ac7ef&&this[_0x2adaa8(0x4fa)]['has'](_0x4359ef)&&this[_0x2adaa8(0x1d3)](_0x4359ef)[_0x2adaa8(0x4e8)](0x1),!this['_unitOnClients']['has'](_0x4359ef)||!this[_0x2adaa8(0x4fa)][_0x2adaa8(0x2d3)](_0x4359ef)[_0x2adaa8(0x237)](_0x26e620)){const _0x343b6d=this['_unitOnClients'][_0x2adaa8(0x2d3)](_0x4359ef)||new Set();_0x343b6d['add'](_0x26e620),this['_unitOnClients']['set'](_0x4359ef,_0x343b6d),this['_scheduleClearOtherTimer'](_0x26e620);}}),_0x4ac7ef||this['_send']({'type':0x0,'memberID':this[_0x4c1d19(0x27c)],'unitIDs':[...this[_0x4c1d19(0x479)]],'isForwarded':!0x0});}[_0x29b95d(0x21a)](_0xe493d2){const _0x9f7971=_0x29b95d;this[_0x9f7971(0x56c)](_0xe493d2);const _0x23728c=window[_0x9f7971(0x52d)](()=>{const _0x454869=_0x9f7971;this[_0x454869(0x4fa)][_0x454869(0x3b0)](_0x8e1b8f=>{const _0x4acd83=_0x454869;_0x8e1b8f[_0x4acd83(0x485)](_0xe493d2);});},ze*0x2);this[_0x9f7971(0x360)][_0x9f7971(0x470)](_0xe493d2,_0x23728c);}['_removeClearOtherTimer'](_0x17a5ac){const _0x1929a1=_0x29b95d;if(this[_0x1929a1(0x360)][_0x1929a1(0x237)](_0x17a5ac)){const _0xa1bb15=this[_0x1929a1(0x360)]['get'](_0x17a5ac);_0xa1bb15&&window[_0x1929a1(0x553)](_0xa1bb15),this[_0x1929a1(0x360)][_0x1929a1(0x470)](_0x17a5ac,null);}}[_0x29b95d(0x2cb)](_0x404e47){const _0x235745=_0x29b95d,{memberID:_0xef3d52,unitIDs:_0x1c3f61}=_0x404e47;_0x1c3f61[_0x235745(0x3b0)](_0x5570b0=>{const _0x511e18=_0x235745;var _0x409393;const _0x25d0b2=this[_0x511e18(0x4fa)][_0x511e18(0x2d3)](_0x5570b0);_0x25d0b2&&(_0x25d0b2['delete'](_0xef3d52),(_0x409393=this[_0x511e18(0x1d3)](_0x5570b0))==null||_0x409393[_0x511e18(0x4e8)](_0x25d0b2[_0x511e18(0x509)]===0x0?0x0:0x1));}),this[_0x235745(0x56c)](_0xef3d52);}[_0x29b95d(0x3c9)](_0x5e52a5){const _0x4572bb=_0x29b95d;this[_0x4572bb(0x21a)](_0x5e52a5[_0x4572bb(0x228)]);}[_0x29b95d(0x541)](_0x5be49b){const _0xde0cdf=_0x29b95d;localStorage['setItem'](Je,JSON[_0xde0cdf(0x1e7)](_0x5be49b));}['_scheduleHeartbeat'](){const _0x1c0929=_0x29b95d;this[_0x1c0929(0x256)]=window[_0x1c0929(0x255)](()=>{const _0x4f3c08=_0x1c0929;this[_0x4f3c08(0x541)]({'type':0x2,'memberID':this['_id']});},ze);}[_0x29b95d(0x1d3)](_0x5b1b16){const _0x10f306=_0x29b95d;return this[_0x10f306(0x2d0)]['has'](_0x5b1b16)||this[_0x10f306(0x2d0)][_0x10f306(0x470)](_0x5b1b16,new g['BehaviorSubject'](0x0)),this[_0x10f306(0x2d0)][_0x10f306(0x2d3)](_0x5b1b16);}}var us=Object[_0x29b95d(0x2f8)],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x49a350,_0x67c34b,_0x525bda,_0x55bca3)=>{const _0x55dbd0=_0x29b95d;for(var _0x520f0b=_0x55bca3>0x1?void 0x0:_0x55bca3?ds(_0x67c34b,_0x525bda):_0x67c34b,_0x303f81=_0x49a350[_0x55dbd0(0x49e)]-0x1,_0x4b478a;_0x303f81>=0x0;_0x303f81--)(_0x4b478a=_0x49a350[_0x303f81])&&(_0x520f0b=(_0x55bca3?_0x4b478a(_0x67c34b,_0x525bda,_0x520f0b):_0x4b478a(_0x520f0b))||_0x520f0b);return _0x55bca3&&_0x520f0b&&us(_0x67c34b,_0x525bda,_0x520f0b),_0x520f0b;},Ze=(_0x5ae60a,_0x2d7e3e)=>(_0x167a3c,_0xc315f7)=>_0x2d7e3e(_0x167a3c,_0xc315f7,_0x5ae60a);let ve=class{constructor(_0x4c6165,_0xee9a96){const _0x5d9837=_0x29b95d;this[_0x5d9837(0x42b)]=_0x4c6165,this[_0x5d9837(0x4ed)]=_0xee9a96;}[_0x29b95d(0x473)](_0x5191ef){const _0x176dec=_0x29b95d;this[_0x176dec(0x4db)](_0x5191ef),this[_0x176dec(0x51e)](_0x5191ef);}['transformRemoteChangeset'](_0x5255a3){const _0x20693f=_0x29b95d,_0x1113eb=this['_injector'][_0x20693f(0x2d3)](y[_0x20693f(0x558)]),{redoCache:_0x1faea8}=_0x1113eb[_0x20693f(0x461)]();if(_0x1faea8[_0x20693f(0x49e)]===0x0)return _0x5255a3;let _0x51b696=a[_0x20693f(0x4b1)]['deepClone'](_0x5255a3[_0x20693f(0x34c)][0x0]);for(let _0x1caf80=0x0;_0x1caf80<_0x1faea8[_0x20693f(0x49e)];_0x1caf80++){const _0xc3c2c5={'id':_0x20693f(0x400),'params':{..._0x1faea8[_0x1caf80]}},_0x51216d=this[_0x20693f(0x4ed)]['transformMutation'](_0x51b696,_0xc3c2c5,!0x1);if(u['isTransformMutationFailure'](_0x51216d))throw _0x51216d[_0x20693f(0x383)];_0x51b696=_0x51216d['m1Prime'];}return{...a[_0x20693f(0x4b1)]['deepClone'](_0x5255a3),'mutations':[_0x51b696]};}[_0x29b95d(0x4db)](_0x23120a){const _0x1b127c=_0x29b95d,_0x5a8283=this[_0x1b127c(0x42b)][_0x1b127c(0x2d3)](y[_0x1b127c(0x558)]),{undoCache:_0x152cb4,redoCache:_0x2a85c1}=_0x5a8283[_0x1b127c(0x461)]();if(_0x152cb4['length']===0x0||_0x2a85c1[_0x1b127c(0x49e)]===0x0)return;const _0x43050d=[],_0xd38b26=[];let _0x2aaae0=a[_0x1b127c(0x4b1)][_0x1b127c(0x419)](_0x23120a[_0x1b127c(0x34c)][0x0]),_0x12c1dd=a[_0x1b127c(0x4b1)][_0x1b127c(0x419)](_0x23120a[_0x1b127c(0x34c)][0x0]);for(let _0x27ed19=_0x152cb4[_0x1b127c(0x49e)]-0x1;_0x27ed19>=0x0;_0x27ed19--){const _0x5de519={'id':_0x1b127c(0x400),'params':{..._0x152cb4[_0x27ed19]}},_0x5dd9af={'id':_0x1b127c(0x400),'params':{..._0x2a85c1[_0x27ed19]}},_0x2a89ed=this['_transformService'][_0x1b127c(0x219)](_0x2aaae0,_0x5de519,!0x1),_0x3dc624=this[_0x1b127c(0x4ed)][_0x1b127c(0x219)](_0x12c1dd,_0x5dd9af,!0x1);if(u[_0x1b127c(0x566)](_0x2a89ed))throw _0x2a89ed['error'];if(u['isTransformMutationFailure'](_0x3dc624))throw _0x3dc624['error'];_0x43050d[_0x1b127c(0x4b5)](_0x2a89ed[_0x1b127c(0x297)][_0x1b127c(0x29d)]),_0xd38b26['unshift'](_0x3dc624[_0x1b127c(0x297)][_0x1b127c(0x29d)]),_0x2aaae0=_0x2a89ed['m1Prime'],_0x12c1dd=_0x3dc624[_0x1b127c(0x4f4)];}_0x5a8283[_0x1b127c(0x2b3)]({'undoCache':_0x43050d,'redoCache':_0xd38b26});}[_0x29b95d(0x51e)](_0x214612){const _0x1e588b=_0x29b95d,_0x4c8d2c=this[_0x1e588b(0x42b)][_0x1e588b(0x2d3)](y['IMEInputManagerService']),_0x585037=_0x4c8d2c[_0x1e588b(0x39e)]();if(_0x585037==null)return;const _0x351672=[{'id':_0x1e588b(0x400),'params':{'unitId':_0x214612['unitID'],'actions':null,'textRanges':[_0x585037]}}],_0x35630e=this[_0x1e588b(0x4ed)][_0x1e588b(0x378)](_0x214612,_0x351672);if(!u[_0x1e588b(0x35c)](_0x35630e))throw _0x35630e[_0x1e588b(0x383)];const _0x5ad740=_0x35630e[_0x1e588b(0x297)][0x0][_0x1e588b(0x29d)]['textRanges'];Array[_0x1e588b(0x4dd)](_0x5ad740)&&_0x5ad740[_0x1e588b(0x49e)]&&_0x4c8d2c[_0x1e588b(0x41c)](_0x5ad740[0x0]);}};ve=Ss([Ze(0x0,h['Inject'](h['Injector'])),Ze(0x1,u[_0x29b95d(0x551)])],ve);var vs=Object['defineProperty'],gs=Object[_0x29b95d(0x516)],fs=(_0x116e59,_0x31016e,_0x2b52b3,_0x52814a)=>{const _0x3335d8=_0x29b95d;for(var _0x41de54=_0x52814a>0x1?void 0x0:_0x52814a?gs(_0x31016e,_0x2b52b3):_0x31016e,_0x158723=_0x116e59[_0x3335d8(0x49e)]-0x1,_0x3da73c;_0x158723>=0x0;_0x158723--)(_0x3da73c=_0x116e59[_0x158723])&&(_0x41de54=(_0x52814a?_0x3da73c(_0x31016e,_0x2b52b3,_0x41de54):_0x3da73c(_0x41de54))||_0x41de54);return _0x52814a&&_0x41de54&&vs(_0x31016e,_0x2b52b3,_0x41de54),_0x41de54;},Qe=(_0x3881f8,_0x588288)=>(_0x34176b,_0x2c07f8)=>_0x588288(_0x34176b,_0x2c07f8,_0x3881f8);let ge=class{constructor(_0x31ec4e,_0x2d9eb8){this['_injector']=_0x31ec4e,this['_transformService']=_0x2d9eb8;}['transformSelections'](_0x1dfe98){const _0x41f43d=_0x29b95d;var _0x131241;const _0x1a78af=this[_0x41f43d(0x42b)][_0x41f43d(0x2d3)](y[_0x41f43d(0x2a9)]),_0x286e7f=(_0x131241=_0x1a78af[_0x41f43d(0x3e6)]())!=null?_0x131241:[],_0x3bc322=_0x286e7f==null?void 0x0:_0x286e7f[_0x41f43d(0x2a0)](y['serializeTextRange']);if(_0x3bc322[_0x41f43d(0x49e)]===0x0)return;const _0x48c432=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1dfe98[_0x41f43d(0x1c8)],'actions':null,'textRanges':_0x3bc322}}],_0x251f1e=this['_transformService'][_0x41f43d(0x378)](_0x1dfe98,_0x48c432);if(!u[_0x41f43d(0x35c)](_0x251f1e))throw _0x251f1e[_0x41f43d(0x383)];const _0x150ef1=_0x251f1e[_0x41f43d(0x297)][0x0]['params'][_0x41f43d(0x382)];Array[_0x41f43d(0x4dd)](_0x150ef1)&&_0x150ef1['length']&&_0x1a78af[_0x41f43d(0x501)](_0x150ef1,!0x1);}};ge=fs([Qe(0x0,h['Inject'](h['Injector'])),Qe(0x1,u['ITransformService'])],ge);function bt(_0x3cc960){const _0x3e0f59=_0x29b95d;let _0x29a1ee='';for(const _0x4f50a0 of _0x3cc960){const {startOffset:_0x5cd6e8,endOffset:_0x4cf604,isActive:_0x53c7ab}=_0x4f50a0;_0x29a1ee[_0x3e0f59(0x49e)]&&(_0x29a1ee+=','),_0x29a1ee+=_0x5cd6e8+':'+_0x4cf604+':'+(_0x53c7ab?'1':'0');}return _0x29a1ee;}function ms(_0x5ccf9f){const _0x3eaf22=_0x29b95d,_0x4f94c8=_0x5ccf9f[_0x3eaf22(0x291)](','),_0x2cc7db=[];for(const _0x13c22a of _0x4f94c8){const [_0x3765ad,_0x3d77d9,_0x53a77e]=_0x13c22a[_0x3eaf22(0x291)](':');_0x2cc7db['push']({'startOffset':Number(_0x3765ad),'endOffset':Number(_0x3d77d9),'collapsed':_0x3765ad===_0x3d77d9,'isActive':_0x53a77e==='1'});}return _0x2cc7db[_0x3eaf22(0x2d5)](_0x37647c=>_0x37647c['isActive'])||(_0x2cc7db[0x0][_0x3eaf22(0x351)]=!0x0),_0x2cc7db;}class Ve extends a['RxDisposable']{constructor(){const _0x5c2b3e=_0x29b95d;super(...arguments),d(this,_0x5c2b3e(0x30f),new g[(_0x5c2b3e(0x3cd))](null)),d(this,_0x5c2b3e(0x221),this['_collabCursorState$'][_0x5c2b3e(0x56a)]());}[_0x29b95d(0x338)](_0x43eb19){const _0x21d2ae=_0x29b95d,{unitID:_0x41c9ac,memberID:_0x5c0a96,textRanges:_0x3e2ae0}=_0x43eb19,_0x39a40a=bt(_0x3e2ae0),_0x47aa2a={'unitID':_0x41c9ac,'memberID':_0x5c0a96,'selection':_0x39a40a};this['_collabCursorState$'][_0x21d2ae(0x4e8)](_0x47aa2a);}}var Is=Object[_0x29b95d(0x2f8)],ps=Object[_0x29b95d(0x516)],Es=(_0x33a453,_0x558fac,_0x5465a8,_0x4c9ab6)=>{const _0x3b3100=_0x29b95d;for(var _0x2f5f09=_0x4c9ab6>0x1?void 0x0:_0x4c9ab6?ps(_0x558fac,_0x5465a8):_0x558fac,_0x388fc7=_0x33a453[_0x3b3100(0x49e)]-0x1,_0x371dda;_0x388fc7>=0x0;_0x388fc7--)(_0x371dda=_0x33a453[_0x388fc7])&&(_0x2f5f09=(_0x4c9ab6?_0x371dda(_0x558fac,_0x5465a8,_0x2f5f09):_0x371dda(_0x2f5f09))||_0x2f5f09);return _0x4c9ab6&&_0x2f5f09&&Is(_0x558fac,_0x5465a8,_0x2f5f09),_0x2f5f09;},et=(_0x5e656d,_0x377577)=>(_0x157708,_0x3d3585)=>_0x377577(_0x157708,_0x3d3585,_0x5e656d);let fe=class{constructor(_0x5ce773,_0x1ed0fd){const _0x5760b7=_0x29b95d;this[_0x5760b7(0x42b)]=_0x5ce773,this['_transformService']=_0x1ed0fd;}[_0x29b95d(0x515)](_0xdda16c){const _0x1bfda1=_0x29b95d;var _0x219409,_0x5bbc22,_0xd6803a,_0x587ccf;const _0x4ae892=this[_0x1bfda1(0x42b)][_0x1bfda1(0x2d3)](E[_0x1bfda1(0x52c)]),{pluginName:_0x1ac285,unitId:_0x1fd071,sheetId:_0x29dc5b}=_0x4ae892[_0x1bfda1(0x2f2)]()||{},_0x387b9c=(_0x219409=_0x4ae892['getSelections']())!=null?_0x219409:[];if(_0x387b9c[_0x1bfda1(0x49e)]===0x0||!_0x1ac285||!_0x1fd071||!_0x29dc5b)return;const _0x5b0afd=[{'id':E[_0x1bfda1(0x35b)]['id'],'params':{'unitId':_0x1fd071,'subUnitId':_0x29dc5b,'pluginName':_0x1ac285,'selections':a['Tools']['deepClone'](_0x387b9c)}}],_0x1413cb=this[_0x1bfda1(0x4ed)][_0x1bfda1(0x378)](_0xdda16c,_0x5b0afd);if(!u[_0x1bfda1(0x35c)](_0x1413cb))throw _0x1413cb[_0x1bfda1(0x383)];const _0x3f6a62=(_0x587ccf=(_0xd6803a=(_0x5bbc22=_0x1413cb[_0x1bfda1(0x297)][0x0])==null?void 0x0:_0x5bbc22['params'])==null?void 0x0:_0xd6803a['selections'])!=null?_0x587ccf:_0x387b9c;Array[_0x1bfda1(0x4dd)](_0x3f6a62)&&_0x3f6a62[_0x1bfda1(0x49e)]&&this[_0x1bfda1(0x42b)]['get'](a['ICommandService'])['executeCommand'](E[_0x1bfda1(0x35b)]['id'],{'unitId':_0x1fd071,'subUnitId':_0x29dc5b,'pluginName':_0x1ac285,'selections':_0x3f6a62});}};fe=Es([et(0x0,h['Inject'](h[_0x29b95d(0x380)])),et(0x1,u[_0x29b95d(0x551)])],fe);const Cs=new Set([E[_0x29b95d(0x3aa)]['id']]);function bs(_0x4fd3c3,_0x1c09f5,_0x35e2d1,_0x47ee51,_0x264c38){const _0x2c529f=_0x29b95d;var _0x3c17ef,_0xec3fc6,_0x5b2bd7,_0x5328ec;const _0x2c99af=[];for(const _0x492af4 of _0x4fd3c3)if(Cs[_0x2c529f(0x237)](_0x492af4['id'])){if(_0x2c99af[_0x2c529f(0x49e)]>0x0)break;_0x2c99af[_0x2c529f(0x346)](_0x492af4);break;}else _0x2c99af[_0x2c529f(0x346)](_0x492af4);const _0x1c5a14=(_0xec3fc6=(_0x3c17ef=_0x264c38['getCurrentUser']())==null?void 0x0:_0x3c17ef[_0x2c529f(0x512)])!=null?_0xec3fc6:_0x2c529f(0x1d4),_0x260dd5=(_0x5328ec=(_0x5b2bd7=_0x264c38[_0x2c529f(0x521)]())==null?void 0x0:_0x5b2bd7[_0x2c529f(0x228)])!=null?_0x5328ec:_0x2c529f(0x1d4);return{'changeset':{'unitID':_0x1c09f5,'type':u['mapDocumentTypeToUniverType'](_0x35e2d1['getUnitType'](_0x1c09f5)),'baseRev':_0x47ee51[_0x2c529f(0x372)](_0x1c09f5),'revision':0x0,'userID':_0x1c5a14,'memberID':_0x260dd5,'mutations':_0x2c99af},'pendingMutations':_0x4fd3c3[_0x2c529f(0x489)](_0x2c99af[_0x2c529f(0x49e)])};}function Ts(_0x461395,_0x3bf4d4,_0xfd5214,_0x59c1fc,_0x350f31){const _0x283b6e=_0x29b95d;var _0x9fcfd4,_0x39daa2,_0x2e26fd,_0x8056ca;const _0x3ced45=[_0x461395[_0x283b6e(0x2de)]((_0x5572f1,_0x1e55de)=>{const _0x211370=_0x283b6e;var _0x1a7cb2;const {id:_0x2a6214}=_0x5572f1,{id:_0x31bab0,type:_0x2467a5}=_0x1e55de,_0x18b205=(_0x1a7cb2=_0x5572f1[_0x211370(0x29d)])!=null?_0x1a7cb2:{'actions':null},_0x464009=_0x1e55de[_0x211370(0x29d)];if(_0x2a6214&&_0x2a6214!==_0x31bab0)throw new Error(_0x211370(0x227)+_0x2a6214+_0x211370(0x534)+_0x31bab0+'.');return{..._0x5572f1,'id':_0x31bab0,'type':_0x2467a5,'params':{'unitId':_0x464009[_0x211370(0x3f4)],'textRanges':_0x464009[_0x211370(0x382)],'actions':a['JSONX'][_0x211370(0x396)](_0x18b205[_0x211370(0x324)],_0x464009['actions'])}};},{})],_0x2fa915=(_0x39daa2=(_0x9fcfd4=_0x350f31[_0x283b6e(0x521)]())==null?void 0x0:_0x9fcfd4[_0x283b6e(0x512)])!=null?_0x39daa2:_0x283b6e(0x1d4),_0x38293d=(_0x8056ca=(_0x2e26fd=_0x350f31[_0x283b6e(0x521)]())==null?void 0x0:_0x2e26fd[_0x283b6e(0x228)])!=null?_0x8056ca:_0x283b6e(0x1d4);return{'changeset':{'unitID':_0x3bf4d4,'type':u[_0x283b6e(0x4bd)](_0xfd5214[_0x283b6e(0x236)](_0x3bf4d4)),'baseRev':_0x59c1fc[_0x283b6e(0x372)](_0x3bf4d4),'revision':0x0,'userID':_0x2fa915,'memberID':_0x38293d,'mutations':_0x3ced45},'pendingMutations':[]};}var Rs=Object['defineProperty'],Os=Object[_0x29b95d(0x516)],K=(_0x338633,_0x1bf5a1,_0x1af9a1,_0x12512f)=>{const _0x36abba=_0x29b95d;for(var _0xbc592e=_0x12512f>0x1?void 0x0:_0x12512f?Os(_0x1bf5a1,_0x1af9a1):_0x1bf5a1,_0x5392a8=_0x338633[_0x36abba(0x49e)]-0x1,_0x39b5ae;_0x5392a8>=0x0;_0x5392a8--)(_0x39b5ae=_0x338633[_0x5392a8])&&(_0xbc592e=(_0x12512f?_0x39b5ae(_0x1bf5a1,_0x1af9a1,_0xbc592e):_0x39b5ae(_0xbc592e))||_0xbc592e);return _0x12512f&&_0xbc592e&&Rs(_0x1bf5a1,_0x1af9a1,_0xbc592e),_0xbc592e;},f=(_0xcf84b8,_0xaf77d)=>(_0x49ef44,_0x54e8f8)=>_0xaf77d(_0x49ef44,_0x54e8f8,_0xcf84b8),U=(_0x1a5aa9=>(_0x1a5aa9[_0x29b95d(0x415)]=_0x29b95d(0x46e),_0x1a5aa9['SYNCED']=_0x29b95d(0x357),_0x1a5aa9[_0x29b95d(0x2fd)]=_0x29b95d(0x468),_0x1a5aa9[_0x29b95d(0x3d0)]=_0x29b95d(0x241),_0x1a5aa9['AWAITING_WITH_PENDING']=_0x29b95d(0x215),_0x1a5aa9['FETCH_MISS']=_0x29b95d(0x3e7),_0x1a5aa9[_0x29b95d(0x38c)]='conflict',_0x1a5aa9[_0x29b95d(0x234)]=_0x29b95d(0x35d),_0x1a5aa9))(U||{});class X{constructor(_0x4b1126,_0x1e29fc,_0xda17fa,_0x259200,_0x3409e5,_0x2e3862,_0x35f330,_0x32790c,_0x24da03){const _0xab7c38=_0x29b95d;d(this,'_awaitingChangeset',null),d(this,_0xab7c38(0x3b8),[]),(this['unitID']=_0x4b1126,this[_0xab7c38(0x46c)]=_0x1e29fc,this[_0xab7c38(0x28e)]=_0x3409e5,this[_0xab7c38(0x4c9)]=_0x2e3862,this[_0xab7c38(0x562)]=_0x35f330,this[_0xab7c38(0x2e2)]=_0x32790c,this[_0xab7c38(0x3bf)]=_0x24da03,this[_0xab7c38(0x53b)]=_0xda17fa,this[_0xab7c38(0x3b8)]=_0x259200);}['_checkMissing'](_0x11220d){const _0x4e1b3d=_0x29b95d,_0x13625e=this[_0x4e1b3d(0x2e2)]['getCurrentRevForDocument'](this['unitID']);return _0x11220d[_0x4e1b3d(0x2ef)]>_0x13625e+0x1?(this[_0x4e1b3d(0x28e)][_0x4e1b3d(0x33b)]({'from':_0x13625e,'to':_0x11220d[_0x4e1b3d(0x2ef)]-0x1}),!0x0):!0x1;}[_0x29b95d(0x20f)](_0x3ebba4){const _0x38fc79=_0x29b95d;this[_0x38fc79(0x562)][_0x38fc79(0x226)](this[_0x38fc79(0x1c8)],_0x3ebba4);}[_0x29b95d(0x527)](_0x510a80){const _0x145754=_0x29b95d;var _0x196ce8,_0x24c4e5;(_0x24c4e5=(_0x196ce8=this[_0x145754(0x28e)])[_0x145754(0x540)])==null||_0x24c4e5[_0x145754(0x3a1)](_0x196ce8,_0x510a80);}[_0x29b95d(0x211)](_0x1da076){const _0x35a3c3=_0x29b95d;var _0x2ee0e6,_0x34c98d;return(_0x34c98d=(_0x2ee0e6=this[_0x35a3c3(0x28e)])[_0x35a3c3(0x43f)])==null?void 0x0:_0x34c98d[_0x35a3c3(0x3a1)](_0x2ee0e6,_0x1da076);}[_0x29b95d(0x33a)](_0x356495){const _0x569476=_0x29b95d;var _0x584a6c,_0x2e4908,_0x3bbe46;return(_0x3bbe46=(_0x2e4908=(_0x584a6c=this[_0x569476(0x28e)])[_0x569476(0x397)])==null?void 0x0:_0x2e4908[_0x569476(0x3a1)](_0x584a6c,_0x356495))!=null?_0x3bbe46:_0x356495;}['_syncEditingCollabCursor'](_0x4c7130){const _0xd01233=_0x29b95d;var _0x4e12a5,_0x5ba6ca;if(this[_0xd01233(0x46c)]===j[_0xd01233(0x2a2)]){const {unitID:_0x3b6304,mutations:_0x37a452,memberID:_0x17effc}=_0x4c7130,_0x4ce45b=_0x37a452[0x0][_0xd01233(0x29d)][_0xd01233(0x382)];Array[_0xd01233(0x4dd)](_0x4ce45b)&&_0x4ce45b['length']>0x0&&((_0x5ba6ca=(_0x4e12a5=this[_0xd01233(0x28e)])[_0xd01233(0x377)])==null||_0x5ba6ca[_0xd01233(0x3a1)](_0x4e12a5,{'unitID':_0x3b6304,'memberID':_0x17effc,'textRanges':_0x4ce45b}));}}[_0x29b95d(0x2a4)](){const _0x52fddc=_0x29b95d;this[_0x52fddc(0x3bf)][_0x52fddc(0x483)](this[_0x52fddc(0x1c8)],this[_0x52fddc(0x46c)],this[_0x52fddc(0x53b)],this['_pendingMutations']);}[_0x29b95d(0x510)](){const _0x2f0f07=_0x29b95d;return this[_0x2f0f07(0x2e2)][_0x2f0f07(0x372)](this[_0x2f0f07(0x1c8)]);}[_0x29b95d(0x1e3)](){const _0x21f990=_0x29b95d;this[_0x21f990(0x2e2)]['incrementRevForDocument'](this[_0x21f990(0x1c8)]);}['_executeRemoteChangeset'](_0x34c1eb){const _0x1d9624=_0x29b95d;var _0x5c5d0d;const _0x3ec606=this[_0x1d9624(0x33a)](_0x34c1eb),_0x33e2a3=a[_0x1d9624(0x460)](_0x3ec606['mutations'],this[_0x1d9624(0x4c9)],{'fromCollab':!0x0});if(!_0x33e2a3[_0x1d9624(0x2c8)])throw _0x33e2a3[_0x1d9624(0x383)]instanceof Error?_0x33e2a3[_0x1d9624(0x383)]:new Error((_0x5c5d0d=_0x33e2a3[_0x1d9624(0x383)])!=null?_0x5c5d0d:_0x1d9624(0x2c4));this[_0x1d9624(0x211)](_0x3ec606),this['_transformUndoredo'](_0x34c1eb),this[_0x1d9624(0x527)](_0x3ec606),this[_0x1d9624(0x2c1)](_0x3ec606),this['_incrementRevisionNumber']();}}let ae=class extends X{constructor(_0x12b038,_0x41cca9,_0x3a1b3b,_0x151485,_0x424b83,_0x340b3e,_0x42f376,_0x563e73,_0x8ea4c5){const _0x50dc81=_0x29b95d;super(_0x12b038,_0x41cca9,null,[],_0x3a1b3b,_0x563e73,_0x42f376,_0x151485,_0x424b83),d(this,_0x50dc81(0x341),'synced'),(this[_0x50dc81(0x42b)]=_0x340b3e,this[_0x50dc81(0x3cb)]=_0x8ea4c5);}['appendMutation'](_0x2a30c7){const _0x444363=_0x29b95d,_0x1e1c36=this[_0x444363(0x42b)][_0x444363(0x1db)]($,this[_0x444363(0x1c8)],this[_0x444363(0x46c)],[_0x2a30c7],this[_0x444363(0x28e)]);return _0x1e1c36['_schedule'](),_0x1e1c36[_0x444363(0x2a4)](),_0x1e1c36;}[_0x29b95d(0x438)](_0x1e4beb){const _0x506763=_0x29b95d;if(this['_checkMissing'](_0x1e4beb))return this[_0x506763(0x42b)]['createInstance'](x,this[_0x506763(0x1c8)],this[_0x506763(0x46c)],null,[],null,[_0x1e4beb],this[_0x506763(0x28e)]);try{return this[_0x506763(0x1ce)](_0x1e4beb),this;}catch(_0x293e11){return this[_0x506763(0x3cb)][_0x506763(0x383)]('[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.',_0x293e11),this;}}[_0x29b95d(0x54a)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x29b95d(0x532)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x29b95d(0x416)](){const _0x5afec4=_0x29b95d;return this['_injector']['createInstance'](B,this[_0x5afec4(0x1c8)],this['type'],null,[],this[_0x5afec4(0x28e)]);}[_0x29b95d(0x38a)](){return this;}[_0x29b95d(0x446)](){const _0x1c0cbf=_0x29b95d;throw new Error(_0x1c0cbf(0x24a));}};ae=K([f(0x3,h['Inject'](u[_0x29b95d(0x4c3)])),f(0x4,h[_0x29b95d(0x563)](exports[_0x29b95d(0x45c)])),f(0x5,h[_0x29b95d(0x563)](h['Injector'])),f(0x6,a['IUndoRedoService']),f(0x7,a['ICommandService']),f(0x8,a[_0x29b95d(0x50d)])],ae);let $=class extends X{constructor(_0x2cbc46,_0x450285,_0x1d4cbb,_0x1107d2,_0xc06d10,_0x5d0376,_0x5dffc1,_0x342625,_0x57e48c,_0x24c6d1,_0x1d1adb,_0x2e8e16,_0x133b7f,_0x4f0488){const _0x152fdb=_0x29b95d;super(_0x2cbc46,_0x450285,null,_0x1d4cbb,_0x1107d2,_0x24c6d1,_0x4f0488,_0x5d0376,_0x5dffc1),d(this,_0x152fdb(0x341),_0x152fdb(0x468)),d(this,_0x152fdb(0x2ac),null),d(this,_0x152fdb(0x1f8),null),(this['_injector']=_0xc06d10,this[_0x152fdb(0x258)]=_0x342625,this[_0x152fdb(0x3cb)]=_0x57e48c,this['_configService']=_0x1d1adb,this[_0x152fdb(0x4ed)]=_0x2e8e16,this[_0x152fdb(0x50a)]=_0x133b7f);}[_0x29b95d(0x2ed)](_0x20c478){const _0x2297cb=_0x29b95d;return this[_0x2297cb(0x3b8)][_0x2297cb(0x346)](_0x20c478),this[_0x2297cb(0x2a4)](),this;}['onRemoteChangeset'](_0x37361b){const _0x27fac=_0x29b95d;if(this[_0x27fac(0x495)](_0x37361b))return this['_clearScheduledTask'](),this[_0x27fac(0x42b)]['createInstance'](x,this[_0x27fac(0x1c8)],this[_0x27fac(0x46c)],null,this[_0x27fac(0x3b8)],null,[_0x37361b],this[_0x27fac(0x28e)]);try{const _0x1725e6=this[_0x27fac(0x4ed)][_0x27fac(0x378)](_0x37361b,this[_0x27fac(0x3b8)]);if(u[_0x27fac(0x35c)](_0x1725e6)){const {c1Prime:_0xc51367,m2Prime:_0x2eda7}=_0x1725e6;this[_0x27fac(0x1ce)](_0xc51367);const _0x41a563=this[_0x27fac(0x42b)][_0x27fac(0x1db)]($,this[_0x27fac(0x1c8)],this[_0x27fac(0x46c)],_0x2eda7,this[_0x27fac(0x28e)]);return this[_0x27fac(0x31d)](),_0x41a563['_schedule'](this[_0x27fac(0x2ac)]?Math[_0x27fac(0x459)](0x0,new Date()['getTime']()-this[_0x27fac(0x2ac)]):this[_0x27fac(0x23c)]()),_0x41a563;}throw _0x1725e6[_0x27fac(0x383)];}catch(_0x35bbe9){return this['_logService']['error'](_0x35bbe9),this[_0x27fac(0x524)](!0x1);}}[_0x29b95d(0x54a)](){const _0x11a2ed=_0x29b95d;throw new Error(_0x11a2ed(0x1d9));}[_0x29b95d(0x532)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x29b95d(0x416)](){const _0x20eef0=_0x29b95d;return this[_0x20eef0(0x31d)](),this[_0x20eef0(0x42b)][_0x20eef0(0x1db)](B,this[_0x20eef0(0x1c8)],this[_0x20eef0(0x46c)],null,this[_0x20eef0(0x3b8)],this['_handler']);}[_0x29b95d(0x38a)](){return this;}[_0x29b95d(0x519)](_0x340be0){const _0x3bb283=_0x29b95d;_0x340be0=_0x340be0!=null?_0x340be0:this['_getSendChangesetTimeout'](),this[_0x3bb283(0x2ac)]=new Date()[_0x3bb283(0x4f3)](),this[_0x3bb283(0x1f8)]=setTimeout(()=>{const _0x1a1fd4=_0x3bb283;this[_0x1a1fd4(0x31d)]();let _0x40a3f4=null;switch(this[_0x1a1fd4(0x46c)]){case j[_0x1a1fd4(0x272)]:{_0x40a3f4=bs(this['_pendingMutations'],this[_0x1a1fd4(0x1c8)],this[_0x1a1fd4(0x50a)],this['_revisionService'],this[_0x1a1fd4(0x258)]);break;}case j[_0x1a1fd4(0x2a2)]:{_0x40a3f4=Ts(this[_0x1a1fd4(0x3b8)],this[_0x1a1fd4(0x1c8)],this[_0x1a1fd4(0x50a)],this['_revisionService'],this[_0x1a1fd4(0x258)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x1a1fd4(0x46c)]+_0x1a1fd4(0x498));}const {changeset:_0x236bdb,pendingMutations:_0x3ec258}=_0x40a3f4;this['_handler'][_0x1a1fd4(0x450)](_0x236bdb);const _0x4789df=_0x3ec258[_0x1a1fd4(0x49e)]?this['_injector'][_0x1a1fd4(0x1db)](H,this[_0x1a1fd4(0x1c8)],this[_0x1a1fd4(0x46c)],_0x236bdb,_0x3ec258,this[_0x1a1fd4(0x28e)]):this[_0x1a1fd4(0x42b)][_0x1a1fd4(0x1db)](k,this['unitID'],this[_0x1a1fd4(0x46c)],_0x236bdb,this[_0x1a1fd4(0x28e)]);_0x4789df[_0x1a1fd4(0x2a4)](),this['_handler'][_0x1a1fd4(0x4d0)](this,_0x4789df);},_0x340be0);}['_getSendChangesetTimeout'](){const _0x26fcd7=_0x29b95d;var _0x2ef2ab;return(_0x2ef2ab=this[_0x26fcd7(0x552)]['getConfig'](_t))!=null?_0x2ef2ab:Ft;}[_0x29b95d(0x446)](){const _0x5efc59=_0x29b95d;throw new Error(_0x5efc59(0x20c));}['_clearScheduledTask'](){const _0x4e8de4=_0x29b95d;this[_0x4e8de4(0x1f8)]!=null&&(clearTimeout(this[_0x4e8de4(0x1f8)]),this['_sendingTimer']=null);}[_0x29b95d(0x524)](_0x1e99cb){const _0x18edd3=_0x29b95d;return this[_0x18edd3(0x31d)](),this[_0x18edd3(0x42b)]['createInstance'](Y,this['unitID'],this[_0x18edd3(0x46c)],null,this[_0x18edd3(0x3b8)],this[_0x18edd3(0x28e)],_0x1e99cb);}};$=K([f(0x4,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),f(0x5,h['Inject'](u[_0x29b95d(0x4c3)])),f(0x6,h[_0x29b95d(0x563)](exports[_0x29b95d(0x45c)])),f(0x7,h['Inject'](G)),f(0x8,a[_0x29b95d(0x50d)]),f(0x9,a[_0x29b95d(0x471)]),f(0xa,a[_0x29b95d(0x271)]),f(0xb,u[_0x29b95d(0x551)]),f(0xc,a[_0x29b95d(0x2e6)]),f(0xd,a[_0x29b95d(0x525)])],$);function _0x371b(){const _0x5019e3=['clearInterval','resend','@univerjs/engine-render','activeSheet$','off-line-single_clip0_910_343','colorChannel1','COMMENT_UPDATE','CollaborationSocketService','onPointerMove$','_ws','_onCursorDelete','onSendChangeset','lineTo','LOGIN_URL_KEY','UNDEFINED','findNodePositionByCharIndex','svg','getImageSourceCache','parse','awaitingChangeset','max','_singleActiveUnitService','_getCtorByUniverType','LocalCacheService','children','CHANGESET_ACK','CollaborationEvent','sequenceExecute','getUndoRedoMutationParamsCache','_getAPIPrefixPath','className','SetTextSelectionsOperation','div','transformChangesets','round','pending','_createInitialStateImpl','updateCollaborator','setItem','type','changesets','not_collab','batchAllowed','set','ICommandService','_members','transformIMECache','currentTheme$','@univerjs/network','COLORS','ERROR_IMAGE_TYPE','/object/','_selfUnitIDs','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/universer-api/file/{fileID}/sign-url','FETCH_MISSING','_uiPartsService','getFocusedUnit','COMPRESS_MUTATION_APPLY','_event$','session.connection-failed','LIVESHARE_REQUEST_HOST','updateOfflineData','_exhaustRemoteChangesetQueue','delete','[FetchMissState]','_unitID','_socket$','slice','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_unitId','_disableEditing','CommentService','leaveEvent','conflict.content','collaboratorID','APPLY_REJECT','registerOnClose','column','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_checkMissing','measureText','originalMeta','\x20in\x20_schedule.','defIds','getUnhiddenWorksheets','location','_urlService','extend','length','_getAPIPrefix','_syncEditingCollabCursorService','_waitForHeartbeatResponse','show','getTypeOfUnitDisposed$','csAckEvent','newCsEvent','SNAPSHOT_HAS_BEEN_REMOVED','commentUpdate$','_scheduleReconnection','string','NodePositionConvertToCursor','COLLAB_SUBMIT_CHANGESET_URL_KEY','delay','_onJoinRoomEvent','AWAITING_WITH_PENDING','HEARTBEAT_INTERVAL_KEY','_transitionLocked','Tools','CommandType','_getUploadFileURL','_getDocObject','unshift','session','EXCHANGE_SIGN_URL_SERVER_URL_KEY','endRow','TOO_MANY_REQUESTS','Steady','collabStatus.synced','IContextService','mapDocumentTypeToUniverType','_sheetTransformSelectionsService','22VWHDtU','_type','_entityInit$','INVALID_ARGUMENT','RevisionService','CONNECTOR_DATA_TOO_LARGE','onStarting','_collaborationTimeoutTimer','filter','LIVESHARE_TERMINATE','_commandService','[CollaborationUndoRedoService]','_onCursorUpdate','image/gif','CollaborationController','name','_draw','onStateChange','_remoteChangesetQueue','takeUntil','session.will-retry','disableLocalCache','_collaborationPaused','post','_lockTransition','INotificationService','/new_changes','M0\x200H16V16H0z','_transformUndoRedoStack','isTransformChangesetsSuccess','isArray','_toggleOffline','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','DependentOn','DeleteRangeMoveLeftCommandId','getCellPositionByOffset','_saveTaskMap','socket\x20close','prototype','_lastPointer','next','MessageType','_snapshotService','handleInsertRangeMoveDown','setShapeProps','_transformService','LIVESHARE_NEW_HOST','_range','state$','_isPermissionRej','CollaborationStatusDisplay','getTime','m1Prime','_getAnchorBounding','getSheetBlock','take','_snapshotServerService','MSG_FOR_ERROR','_unitOnClients','Shape','function','submit\x20changeset\x20error!','onlyLocal','onCommandExecuted','createCollaborator','replaceTextRanges','onMissedChangesetFetched','WorkbookEditablePermission','SUCCUSS','IAuthzIoService','getCoordByCell','_scene','_docSkeleton','size','_univerInstanceService','updateCursorEvent','_loadSheet','ILogService','_createInitialState','handleMoveRange','_getCurrentRevision','RemoveColCommandId','userID','online','_joinRoom','transformSelections','getOwnPropertyDescriptor','_socketService','_onRemoteACK','_schedule','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','replace','LifecycleStages','getCollabCursors$','_transformPreviousActiveRange','OnLineSingle','fromEvent','getCurrentUser','generateRandomId','cursorInfo$','_onConflict','IUndoRedoService','24uXGcFX','_transformSelections','ICollaborationSocketService','DesktopCollaborationStatusDisplayController','/-/object/-/batch_allowed','height','SelectionManagerService','setTimeout','@wendellhu/redi/react-bindings','@univerjs/sheets','key','objectID','onRemoteRej','_messageService','\x20-\x20','/universer-api/stream/file/upload','@univerjs/sheets-ui','InsertRangeMoveRightCommandId','pauseCollaboration','connection\x20error','target','_awaitingChangeset','create','top','auth.needGotoLoginAlert','resourceIDs','onTransformSelections','_send','JOINING','_onUserLeave','toString','dispose','displayName','permission.content','all','ACTIVE_UNIT_EVENT_CHANNEL','onRemoteAck','APPLY_REVISION_CONFILICT','cursorInfo','collabStatus.notCollab','_state','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','reject','ITransformService','_configService','clearTimeout','@univerjs/drawing','_initStatusComponent','SNAPSHOT_URL_KEY','_docStateChangeManagerService','IMEInputManagerService','RETRY_CONNECTING_INTERVAL','collab-text-range-','_httpService','ISnapshotServerService','_notificationService','close$','debounceTime','socket\x20open.','getImage','_undoRedoService','Inject','_drawRange','fillText','isTransformMutationFailure','INGEST','onPointerLeave$','createElement','asObservable','Unknown\x20user','_removeClearOtherTimer','serializeCombRequest','_updateURLWithCurrentState','saveSheetBlock','onlineStatusTitle','_createSocket','sheetId','startRow','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','805098oSxNiX','unitID','Subject','DataLoaderController','SEND_CHANGESET_TIMEOUT_KEY','864wxnBGl','DocStateChangeManagerService','_executeRemoteChangeset','registerRefRange','SNAPSHOT_INVALID_SNAPSHOT','@univerjs/core','enableSingleActiveInstanceLock','_ensureSubject','unknown','_hovered','ImageUploadStatusType','liveShareOperation','on-line-single','[PendingState]:\x20received\x20acknowledgement.','_cursorInfo$','createInstance','open$','Disposable','color','switchMap','/universer-api/authz','transformRemoteChangeset','rxjs/operators','_incrementRevisionNumber','pipe','NO_OTHER_CLIENTS_EDITING','useDependency','stringify','subscribe','_applyRemoteChangeset','forwardRef','infoRsp','getSheetObject','serializeRangeWithSheet','_localStorageService','52276orTyYc','OffLineSingle','_getSaveTimeout','unit-cache-','row','c1Prime','liveShareNewHost','_onRemoteRejected','status$','_sendingTimer','_clearTimeoutTimer','loadSheet','history','red300','deleteCollaborator','getUniverSheetInstance','_timeoutTimer','USERS_ENTER','permission.title','...','propertyIsEnumerable','[UniverCollaborationClientPlugin]','/fetchmissing?from=','react','_themeService','fillRule','addEventListener','popstate','onPointerEnter$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','flatMap','listCollaborators','_transformUndoredo','OTHER_CLIENTS_EDITING','_transformIMECache','UNIVER_UNKNOWN','/resources','xlink:href','awaiting_with_pending','listRoles','_commentUpdate$','subUnitId','transformMutation','_scheduleClearOtherTimer','joinRsp','textEncoder','getCurrentUnitForType','_hideTimer','IRenderManagerService','collabStatus.offline','collabCursorState$','removeParam','HEARTBEAT','mergeOverrideWithDependencies','FromArray','transformUndoRedo','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','memberID','/universer-api/snapshot/','_scheduleSaving','icon','collaboration-client.offline-data-not-saved','FAIL','merge','_submitChangeset','HEADER_MENU','unsubscribe','interceptor','SnapshotService','OFFLINE','univerjs-icon\x20univerjs-icon-','getUnitType','has','_removeRoom','tag','@univerjs/docs','_onConnectionOpen','_getSendChangesetTimeout','_onLocalMutation','_docTransformSelectionsService','POST','unload','awaiting','_getRedoStack','1em','UniverCollaborationPlugin','path','InsertColCommandId','catch','min','_userManagerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_waitCount','_sheetSkeletonManagerService','fetching\x20missing\x20changesets\x20from\x20','/universer-api/comb','AuthzIoHttpService','createIdentifier','_scheduleCollaborationTimeoutTimer','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','_renderManagerService','SYNCED','setInterval','_heartbeatTimer','UNIVER_SLIDE','_memberService','saveOfflineData','/-/object/list','getUnitId','CollaborationSession','_socketReady','c2Prime','_updateState','TEXT_RANGE_LAYER_INDEX','_disabled','clsx','_clearUndo','event$','_clearCollaborationTimeoutTimer','updateMember','_showConflictNotification','univer-pro.collaboration-client-socket-service','_anchorDot','UniverCollaborationClientPlugin','_config','/universer-api/snapshot','_HTTPService','blue400','IPermissionService','debug','IConfigService','UNIVER_SHEET','toDisposable','USERS_LEAVE','RxDisposable','_retryConnectingTimer','_roomMembers$','SessionStatus','_onRecvEvent','_clearLocalCache','_createHandler','_id','then','bottom','isEditing','ERROR_EXCEED_SIZE','_getLoginPath','[CollaborationSessionService]','_getSnapshotAPIPrefix','readAsDataURL','_onCombEvent','image/png','parseChangesetToProtocol','transformStack\x20failed!','handleIRemoveRow','PERMISSION_REJ','[DataLoaderController]','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','transform','_handler','registerHTTPInterceptor','updatePermissionPoint','split','_render','isPermissionRej','IHTTPImplementation','onlineStatus','54JFVTWx','m2Prime','onload','purple300','BuiltInUIPart','registerComponent','fetchMissingChangesets','params','useRef','6096040RYxBRT','map','apply','UNIVER_DOC','LOCAL_CACHE_INTERVAL_KEY','_updateLocalCache','_handleHover','VIEWPORT_KEY','clear','_retryCount','TextSelectionManagerService','getColor','getParam','_scheduleTimestamp','encode','fill','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_handleEvent','assign','newValue','setUndoRedoMutationParamsCache','\x0aAfter:\x20','addObject','csRejEvent','contains','_anchor','/unit/','[CollaborationEntity]','close','_replayCachedMutations','storage','_saveCache','getConfig','_fetchMissChangesets','_syncEditingCollabCursor','CHANGESET_REVISION_CONFILICT','_color','[CollaborationState]:\x20apply\x20error!','includes','@univerjs/engine-formula','CHANGESET_REJ','result','addImageSourceCache','random','_handleLeaveEvent','mapTo','commentUpdateEvent','univer-pro.collaboration-client.single-active-unit-service','CollaborationSessionService','_unitStatus','EffectRefRangId','allowed','get','#fff','some','_drawAnchor','ILocalStorageService','@univerjs/rpc','_collaborationController','ImageSourceType','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','selections','_commentService','reduce','_localeService','_labelPosition','dispose$','_revisionService','FETCH_MISS','unit','pushState','IUniverInstanceService','LICENSE_DISTRO_REJECTED','getValue','parseProtocolChangeset','handleIRemoveCol','data','_init','appendMutation','editingUnit','revision','ERROR_IMAGE','addObjects','getCurrent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','urlChange$','disposeWithMe','getCollabEntity','defineProperty','startsWith','getDocObject','RETRY_CONNECTING_MAX_COUNT','UNKNOWN_CMD','PENDING','sheets','selection','getResourcesRequest','[OfflineState]:\x20received\x20rejection.','_updateStatus','CompressMutationService','_textBubble','_startDocCollabCursor','Warning','idSuffix','setCurrentUser','labelPosition','UniverInstanceType','UPDATE_CURSOR','toRgbString','_cursor','UNAUTHENTICATED','_collabCursorState$','enableLocalCache','_shapes','src','concat','getTypeOfUnitAdded$','_beforeCloseService','none','loadOfflineData','_cursors','defs','_getScale','_document','IBeforeCloseService','_clearScheduledTask','_cachedData','objectType','_sendHeartbeat','disposeUnit','_status$','_updateCollabCursors','actions','UNIVER_COLLABORATION_CLIENT_PLUGIN','attrs','getInterceptPoints','setWaitCount','_session','snapshot','init','_loadDoc','roomInfos','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_startSheetCollabCursor','body','beginPath','href','_compressMutationService','getRenderById','Optional','ThemeService','pluginName','syncEditingCollabCursor','_decreaseWaiting','_transformRemoteChangesetByIMECache','onMissingChangesets','fillStyle','_docSyncEditingCollabCursorService','transformByState','_rescheduleHeartbeatEvent','getUnitStatus$','status','&to=','LICENSE_EXPORT_SIZE_EXCEEDED','_clearHeartbeatTimer','rgba(255,\x20255,\x20255,\x200.01)','push','SetWorksheetActivateCommand','_onRefRangeChange','PERMISSION_DENIED','clipPath','LEAVE','mutations','#FFF','/allowed','subscribeEvent','_removeCollabCursors','isActive','isTransformMutationsWithChangesetFailure','RemoveRowCommandId','NEW_CHANGESETS','HEARTBEAT_INTERVAL','_substituteRedoStack','synced','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_eventUnsubscribe','deserializeToCombResponse','SetSelectionsOperation','isTransformMutationsWithChangesetSuccess','offline','getUnitOnRev','toStringTag','_clearOtherTimers','LIVESHARE_FETCH_OPERATIONS','_name','_onFetchMissResult','5267244XYWuDB','IRemoteInstanceService','_updateSubUnitFromURLParams','evenodd','INTERNAL_ERROR','executeCommand','fetchThroughInterceptors','sessionStatus','change$','cmd','_imageSourceCache','_socketMessageSubscription','70lIUhrV','DocSkeletonManagerService','getCurrentRevForDocument','_assignedColors','[CollaborationSession]','removeMember','Starting','onSyncEditingCollabCursor','transformMutationsWithChangeset','@univerjs/ui','error$','WebURLService','_permissionService','univer-online-status-title','_sendHeartbeatTimer','_setupBeforeClosingHandler','Injector','YUUMI_UNABLE_LOAD_URL','textRanges','error','save\x20fail\x20reason\x20is\x20','Rect','_sessionStatus$','OnLifecycle','complete','_onConnectionFailed','toggleOnline','baseRev','CONFLICT','COLLAB_WEB_SOCKET_URL_KEY','handleDeleteRangeMoveLeft','searchParams','save','ONLINE','verdancy600','requireSession','ws://127.0.0.1:8000/universer-api/comb/connect','LIVESHARE_OPERATION','compose','onTransformRemoteChangesetByIMECache','NOT_FOUND','Error','from','onCommentUpdate','YUUMI_URL_COL_OUT_OF_RANGE','moveTo','getActiveRange','_onMessage','/rev/','call','list','_acknowledgedAwaitingChangeset','DisposableCollection','getSheetId','_collabSessionService','_handleJoinEvent','startColumn','_getUndoStack','InsertSheetMutation','ALREADY_EXISTS','Univer','ranges','Plugin','add','forEach','_colorAssignService','_setupSubUnitSync','_change$','UNKNOWN_CODE','rxjs','_getSheetObject','url(#on-line-single_clip0_910_349)','_pendingMutations','?url=','socketService','?size=','restore','put','roomMembers$','_localCacheService','drawWith','arc','209085mSygaU','_queuedRemoteChangesets','UNRECOGNIZED','rev','_state$','collabStatus.syncing','LocaleService','_handleHeartbeatEvent','setParam','_logService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','BehaviorSubject','collab-text-anchor-','text','AWAITING','_online','_onUserJoin','_replaceFileID','_refRangeService','getActiveSheet','_tryEnsureSocket','COMPRESS_MUTATION_SEND','substring','PSEUDO_FETCH_MISSING_RESULT','width','_entities','_sessions','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','BASE64','assignAColorForMemberID','APPLY_PERMISSION_DENIED','eventID','getRelativeCoord','IMessageService','lodash/debounce','LOCAL_CACHE_INTERVAL','getSelections','fetch_missing','hasOwnProperty','currentSkeleton$','registerBeforeClose','JOIN','CollaborationStatus','session.room-full','Vector2','hide','HEARTBEAT_TIMEOUT_KEY','_clearRedo','_unlockTransition','patch','unitId','getSheetBySheetId','HELLO','subunit','_substituteUndoStack','symbol','_transformStack','_colorIndex','univer-online-status','_initModules','routeKey','_collabCursorController','doc.mutation.rich-text-editing','objects','createSocket','getAncestorScale','closePath','code','failed\x20to\x20apply\x20missed\x20changesets!','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','collaborators','XHRHTTPImplementation','message$','SNAPSHOT_SERVER_URL_KEY','/role','black','focused$','values','@univerjs/design','connectInjector','174yyRSoz','putCollaborators','localeService','NOT_COLLAB','toggleOffline','state','getOffsetConfig','deepClone','update','image/jpeg','setActiveRange','permissionRejEvent','_startCollaboration','_docSkeletonManagerService','_scheduleHeartbeat','UUID','serializeTextRange','/collaborator','indexOf','COMPLETION_FINISHED','RECV','_toggleOnline','ThresholdInterceptorFactory','getMemberID','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_injector','sessionStatus$','Error\x20on\x20receiving\x20event','HTTPService','entries','font','_roomMembers','fromCollab','shareReplay','send','112174PIuegN','_updateLocalCursor','_onRemoteChangeset','onRemoteChangeset','url(#$1','COLLAB_WEB_SOCKET_URL','getMember','_docTransformIMECacheService','runRefRangeMutations','jiqing500','onTransformIME','onMouseMove','collaborationUniverTypes','_socket','getDataModel','_hover'];_0x371b=function(){return _0x5019e3;};return _0x371b();}let k=class extends X{constructor(_0x264a50,_0x2bfff7,_0x1f13e9,_0x53af32,_0x1a8f48,_0x55e9f5,_0x5c947a,_0xa7df8b,_0x4ae076,_0x54301b,_0x10d674){const _0x379db3=_0x29b95d;super(_0x264a50,_0x2bfff7,_0x1f13e9,[],_0x53af32,_0xa7df8b,_0x10d674,_0x55e9f5,_0x5c947a),d(this,_0x379db3(0x341),_0x379db3(0x241)),(this['_injector']=_0x1a8f48,this[_0x379db3(0x3cb)]=_0x4ae076,this[_0x379db3(0x4ed)]=_0x54301b);}[_0x29b95d(0x2ed)](_0x1d01a0){const _0x522df6=_0x29b95d,_0x4576cf=this['_injector']['createInstance'](H,this[_0x522df6(0x1c8)],this[_0x522df6(0x46c)],this['_awaitingChangeset'],[_0x1d01a0],this[_0x522df6(0x28e)]);return _0x4576cf[_0x522df6(0x2a4)](),_0x4576cf;}[_0x29b95d(0x438)](_0x61315b){const _0x4ec742=_0x29b95d;if(this[_0x4ec742(0x495)](_0x61315b))return this[_0x4ec742(0x42b)]['createInstance'](x,this[_0x4ec742(0x1c8)],this['type'],this[_0x4ec742(0x53b)],[],null,[_0x61315b],this[_0x4ec742(0x28e)]);try{const _0x4e745b=this[_0x4ec742(0x4ed)][_0x4ec742(0x466)]([_0x61315b],[this[_0x4ec742(0x53b)]],!0x1);if(u[_0x4ec742(0x4dc)](_0x4e745b)){const {c1Prime:_0xe4de0e,c2Prime:_0x243f2e}=_0x4e745b;this[_0x4ec742(0x1ce)](_0xe4de0e[0x0]),_0x243f2e[0x0][_0x4ec742(0x38b)]=this['_getCurrentRevision']();const _0x1d54cd=this['_injector'][_0x4ec742(0x1db)](k,this[_0x4ec742(0x1c8)],this['type'],_0x243f2e[0x0],this['_handler']);return _0x1d54cd[_0x4ec742(0x2a4)](),_0x1d54cd;}return this[_0x4ec742(0x524)](!0x1);}catch(_0x1c4be5){return this[_0x4ec742(0x3cb)][_0x4ec742(0x383)](_0x1c4be5),this[_0x4ec742(0x524)](!0x1);}}['onRemoteAck'](_0x1ee18c){const _0x6d918e=_0x29b95d,_0x4df2a0=this['_revisionService'][_0x6d918e(0x372)](this[_0x6d918e(0x1c8)]);if(_0x1ee18c['revision']<_0x4df2a0-0x1)return this;if(this['_checkMissing'](_0x1ee18c))return this[_0x6d918e(0x42b)][_0x6d918e(0x1db)](x,this[_0x6d918e(0x1c8)],this[_0x6d918e(0x46c)],null,[],this[_0x6d918e(0x53b)],[],this[_0x6d918e(0x28e)]);this[_0x6d918e(0x1e3)]();const _0x95676b=this['_injector'][_0x6d918e(0x1db)](ae,this[_0x6d918e(0x1c8)],this[_0x6d918e(0x46c)],this['_handler']);return _0x95676b['_updateLocalCache'](),_0x95676b;}[_0x29b95d(0x532)](_0x3ec172){const _0x5c3151=_0x29b95d;return this['_onConflict'](!!(_0x3ec172!=null&&_0x3ec172[_0x5c3151(0x293)]));}[_0x29b95d(0x416)](){const _0x40eb6d=_0x29b95d;return this[_0x40eb6d(0x42b)]['createInstance'](B,this[_0x40eb6d(0x1c8)],this[_0x40eb6d(0x46c)],this[_0x40eb6d(0x53b)],[],this[_0x40eb6d(0x28e)]);}[_0x29b95d(0x38a)](){return this;}[_0x29b95d(0x446)](){const _0x257152=_0x29b95d;this[_0x257152(0x28e)]['onSendChangeset'](this[_0x257152(0x53b)]);}[_0x29b95d(0x524)](_0x4b47a6){const _0x363561=_0x29b95d;return this['_injector'][_0x363561(0x1db)](Y,this[_0x363561(0x1c8)],this['type'],this['_awaitingChangeset'],[],this[_0x363561(0x28e)],_0x4b47a6);}};k=K([f(0x4,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),f(0x5,h['Inject'](u[_0x29b95d(0x4c3)])),f(0x6,h[_0x29b95d(0x563)](exports[_0x29b95d(0x45c)])),f(0x7,a[_0x29b95d(0x471)]),f(0x8,a['ILogService']),f(0x9,u[_0x29b95d(0x551)]),f(0xa,a[_0x29b95d(0x525)])],k);let H=class extends X{constructor(_0x421411,_0x86a323,_0x56e472,_0x581f8d,_0x272478,_0x3ab8b4,_0x30a6a9,_0x4b5077,_0x93f789,_0xb908ca,_0x5756a3,_0x41748d){const _0x28bbb1=_0x29b95d;super(_0x421411,_0x86a323,_0x56e472,_0x581f8d,_0x272478,_0x93f789,_0x41748d,_0x30a6a9,_0x4b5077),d(this,_0x28bbb1(0x341),_0x28bbb1(0x215)),(this[_0x28bbb1(0x42b)]=_0x3ab8b4,this[_0x28bbb1(0x3cb)]=_0xb908ca,this[_0x28bbb1(0x4ed)]=_0x5756a3);}[_0x29b95d(0x2ed)](_0x2e8ec6){const _0x445cf4=_0x29b95d;return this[_0x445cf4(0x3b8)][_0x445cf4(0x346)](_0x2e8ec6),this;}[_0x29b95d(0x438)](_0x42a7df){const _0xfb5783=_0x29b95d;if(this[_0xfb5783(0x495)](_0x42a7df))return this[_0xfb5783(0x42b)][_0xfb5783(0x1db)](x,this[_0xfb5783(0x1c8)],this['type'],this[_0xfb5783(0x53b)],this[_0xfb5783(0x3b8)],null,[_0x42a7df],this['_handler']);try{const _0x1d047c=this['_transformService']['transformChangesets']([_0x42a7df],[this['_awaitingChangeset']],!0x1);if(u[_0xfb5783(0x4dc)](_0x1d047c)){const {c1Prime:_0xa8163e,c2Prime:_0x4517c8}=_0x1d047c,_0x13eb1b=this[_0xfb5783(0x4ed)]['transformMutationsWithChangeset'](_0xa8163e[0x0],this['_pendingMutations']);if(u[_0xfb5783(0x35c)](_0x13eb1b)){const {c1Prime:_0x356cdb,m2Prime:_0x1d64be}=_0x13eb1b;return this[_0xfb5783(0x1ce)](_0x356cdb),_0x4517c8[0x0][_0xfb5783(0x38b)]=this[_0xfb5783(0x510)](),this[_0xfb5783(0x42b)][_0xfb5783(0x1db)](H,this[_0xfb5783(0x1c8)],this[_0xfb5783(0x46c)],_0x4517c8[0x0],_0x1d64be,this[_0xfb5783(0x28e)]);}throw _0x13eb1b['error'];}throw _0x1d047c[_0xfb5783(0x383)];}catch(_0x4c63f1){return this['_logService'][_0xfb5783(0x383)](_0x4c63f1),this['_onConflict'](!0x1);}}[_0x29b95d(0x54a)](_0x4e3eb8){const _0x3c72b0=_0x29b95d;if(this[_0x3c72b0(0x495)](_0x4e3eb8))return this[_0x3c72b0(0x42b)][_0x3c72b0(0x1db)](x,this[_0x3c72b0(0x1c8)],this[_0x3c72b0(0x46c)],null,this['_pendingMutations'],this[_0x3c72b0(0x53b)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x2b6be1=this[_0x3c72b0(0x42b)]['createInstance']($,this['unitID'],this[_0x3c72b0(0x46c)],this['_pendingMutations'],this[_0x3c72b0(0x28e)]);return _0x2b6be1[_0x3c72b0(0x519)](),_0x2b6be1[_0x3c72b0(0x2a4)](),_0x2b6be1;}['onRemoteRej'](_0x5e0710){const _0x1e816d=_0x29b95d;return this[_0x1e816d(0x524)](!!(_0x5e0710!=null&&_0x5e0710[_0x1e816d(0x293)]));}[_0x29b95d(0x416)](){const _0x255cb4=_0x29b95d;return this[_0x255cb4(0x42b)][_0x255cb4(0x1db)](B,this[_0x255cb4(0x1c8)],this[_0x255cb4(0x46c)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x29b95d(0x38a)](){return this;}[_0x29b95d(0x446)](){const _0x722f56=_0x29b95d;this[_0x722f56(0x28e)]['onSendChangeset'](this[_0x722f56(0x53b)]);}[_0x29b95d(0x524)](_0x23680c){const _0x74d83f=_0x29b95d;return this[_0x74d83f(0x42b)][_0x74d83f(0x1db)](Y,this[_0x74d83f(0x1c8)],this[_0x74d83f(0x46c)],null,this[_0x74d83f(0x3b8)],this['_handler'],_0x23680c);}};H=K([f(0x5,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),f(0x6,h[_0x29b95d(0x563)](u['RevisionService'])),f(0x7,h[_0x29b95d(0x563)](exports['LocalCacheService'])),f(0x8,a[_0x29b95d(0x471)]),f(0x9,a[_0x29b95d(0x50d)]),f(0xa,u['ITransformService']),f(0xb,a['IUndoRedoService'])],H);let Y=class extends X{constructor(_0x32f0e7,_0xe6e625,_0x285bef,_0x2c188f,_0x28ab06,_0x2ea55a=!0x1,_0xbc9c91,_0x35b369,_0xbcdae0,_0xf0d3dd,_0x1d56d8,_0x5a4fd3,_0x2cdd48){const _0x2a0ce3=_0x29b95d;super(_0x32f0e7,_0xe6e625,_0x285bef,_0x2c188f,_0x28ab06,_0x35b369,_0xbcdae0,_0x1d56d8,_0xf0d3dd),d(this,_0x2a0ce3(0x341),'conflict'),(this[_0x2a0ce3(0x4f1)]=_0x2ea55a,this[_0x2a0ce3(0x37c)]=_0xbc9c91,this[_0x2a0ce3(0x2df)]=_0x5a4fd3,this[_0x2a0ce3(0x55d)]=_0x2cdd48,this[_0x2a0ce3(0x267)](),this[_0x2a0ce3(0x27a)](),this[_0x2a0ce3(0x48c)]());}[_0x29b95d(0x2ed)](){return this;}[_0x29b95d(0x438)](){return this;}[_0x29b95d(0x54a)](){return this;}[_0x29b95d(0x532)](){return this;}[_0x29b95d(0x416)](){return this;}[_0x29b95d(0x38a)](){return this;}[_0x29b95d(0x446)](){const _0x2ad9ec=_0x29b95d;throw new Error(_0x2ad9ec(0x2db));}[_0x29b95d(0x27a)](){const _0xe95603=_0x29b95d;this[_0xe95603(0x3bf)]['updateOfflineData'](this[_0xe95603(0x1c8)],this[_0xe95603(0x46c)],null,[]);}[_0x29b95d(0x267)](){const _0x5ce9d2=_0x29b95d;this[_0x5ce9d2(0x4f1)]?this[_0x5ce9d2(0x55d)][_0x5ce9d2(0x4a2)]({'title':this[_0x5ce9d2(0x2df)]['t'](_0x5ce9d2(0x201)),'content':this[_0x5ce9d2(0x2df)]['t'](_0x5ce9d2(0x547)),'type':_0x5ce9d2(0x383),'duration':0x0}):this[_0x5ce9d2(0x55d)]['show']({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x5ce9d2(0x2df)]['t'](_0x5ce9d2(0x48f)),'type':_0x5ce9d2(0x383),'duration':0x0});}[_0x29b95d(0x48c)](){const _0x3d462c=_0x29b95d;this[_0x3d462c(0x37c)][_0x3d462c(0x290)](new E[(_0x3d462c(0x503))](this[_0x3d462c(0x1c8)])['id'],!0x1);}};Y=K([f(0x6,h['Inject'](a[_0x29b95d(0x26f)])),f(0x7,a[_0x29b95d(0x471)]),f(0x8,a['IUndoRedoService']),f(0x9,h[_0x29b95d(0x563)](exports['LocalCacheService'])),f(0xa,h[_0x29b95d(0x563)](u[_0x29b95d(0x4c3)])),f(0xb,h[_0x29b95d(0x563)](a[_0x29b95d(0x3c8)])),f(0xc,N[_0x29b95d(0x4d8)])],Y);let B=class extends X{constructor(_0x2cac12,_0x9e0872,_0x5ab987,_0x47e901,_0x154d78,_0x4feb16,_0x11b4ab,_0x57d365,_0x32ed37,_0x33ded2){const _0x1bbb8a=_0x29b95d;super(_0x2cac12,_0x9e0872,_0x5ab987,_0x47e901,_0x154d78,_0x32ed37,_0x33ded2,_0x11b4ab,_0x57d365),d(this,_0x1bbb8a(0x341),_0x1bbb8a(0x35d)),this[_0x1bbb8a(0x42b)]=_0x4feb16;}[_0x29b95d(0x2ed)](_0x1ed1e8){const _0x1af814=_0x29b95d;return this[_0x1af814(0x3b8)][_0x1af814(0x346)](_0x1ed1e8),this['_updateLocalCache'](),this;}[_0x29b95d(0x438)](_0x243248){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x29b95d(0x54a)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x29b95d(0x532)](){const _0x411db5=_0x29b95d;throw new Error(_0x411db5(0x301));}['toggleOffline'](){return this;}[_0x29b95d(0x38a)](){const _0x54bb2a=_0x29b95d,{_injector:_0x1d30c9,_pendingMutations:_0x7d03d9,_awaitingChangeset:_0x3b6da7,unitID:_0xc88814,_handler:_0x2a7ba7,type:_0x13ffed}=this,_0x1d48fe=Tt(_0x1d30c9,_0xc88814,_0x13ffed,_0x3b6da7,_0x7d03d9,_0x2a7ba7);return _0x1d48fe instanceof $?_0x1d48fe[_0x54bb2a(0x519)]():(_0x1d48fe instanceof H||_0x1d48fe instanceof k)&&_0x1d48fe[_0x54bb2a(0x446)](),_0x1d48fe;}[_0x29b95d(0x446)](){const _0x2c8b91=_0x29b95d;throw new Error(_0x2c8b91(0x42a));}};B=K([f(0x5,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),f(0x6,h[_0x29b95d(0x563)](u[_0x29b95d(0x4c3)])),f(0x7,h[_0x29b95d(0x563)](exports[_0x29b95d(0x45c)])),f(0x8,a[_0x29b95d(0x471)]),f(0x9,a[_0x29b95d(0x525)])],B);let x=class extends X{constructor(_0x270aa3,_0x5cebb5,_0xfe5c,_0x36144f,_0x2fcda5,_0x287a55,_0x3a280d,_0x1128e6,_0xb2f4a1,_0x2bf82a,_0x29c6b3,_0x27f90a,_0x3af1e2,_0xc105ed){const _0x2dfad1=_0x29b95d;super(_0x270aa3,_0x5cebb5,_0xfe5c,_0x36144f,_0x3a280d,_0x27f90a,_0x3af1e2,_0xb2f4a1,_0x2bf82a),d(this,_0x2dfad1(0x341),_0x2dfad1(0x3e7)),(this[_0x2dfad1(0x3a3)]=_0x2fcda5,this[_0x2dfad1(0x3c3)]=_0x287a55,this[_0x2dfad1(0x42b)]=_0x1128e6,this[_0x2dfad1(0x3cb)]=_0x29c6b3,this[_0x2dfad1(0x4ed)]=_0xc105ed);}['onMissedChangesetFetched'](_0x4745c8){const _0x54a8fb=_0x29b95d;try{const _0x178ae4=[..._0x4745c8,...this[_0x54a8fb(0x3c3)]],_0x25f700=[this[_0x54a8fb(0x53b)]||this['_acknowledgedAwaitingChangeset']][_0x54a8fb(0x4c7)](_0x191514=>!!_0x191514);let _0x24601b,_0x264c50;if(_0x25f700['length']){const _0x55ae3b=this[_0x54a8fb(0x4ed)][_0x54a8fb(0x466)](_0x178ae4,_0x25f700,!0x1);if(!u[_0x54a8fb(0x4dc)](_0x55ae3b))throw _0x55ae3b[_0x54a8fb(0x383)];_0x24601b=_0x55ae3b[_0x54a8fb(0x1f4)],_0x264c50=_0x55ae3b[_0x54a8fb(0x25e)];}else _0x24601b=_0x178ae4,_0x264c50=[];let _0x236257=this['_pendingMutations'];_0x24601b[_0x54a8fb(0x3b0)](_0xf0eb1c=>{const _0x295517=_0x54a8fb;let _0x31c5fb;if(_0x236257[_0x295517(0x49e)]){const _0x5b2d52=this[_0x295517(0x4ed)][_0x295517(0x378)](_0xf0eb1c,_0x236257);if(!u[_0x295517(0x35c)](_0x5b2d52))throw _0x5b2d52['error'];_0x31c5fb=_0x5b2d52[_0x295517(0x1f4)],_0x236257=_0x5b2d52[_0x295517(0x297)];}else _0x31c5fb=_0xf0eb1c;this[_0x295517(0x1ce)](_0x31c5fb);}),this[_0x54a8fb(0x3a3)]&&this[_0x54a8fb(0x1e3)](),this[_0x54a8fb(0x53b)]&&_0x264c50['length']&&(_0x264c50[0x0][_0x54a8fb(0x38b)]=this[_0x54a8fb(0x510)]());let _0x4eb16c;if(this['_awaitingChangeset']&&_0x236257[_0x54a8fb(0x49e)]!==0x0)_0x4eb16c=this[_0x54a8fb(0x42b)][_0x54a8fb(0x1db)](H,this[_0x54a8fb(0x1c8)],this[_0x54a8fb(0x46c)],_0x264c50[0x0],_0x236257,this[_0x54a8fb(0x28e)]);else{if(this[_0x54a8fb(0x53b)]&&_0x236257['length']===0x0)_0x264c50[0x0][_0x54a8fb(0x38b)]=this[_0x54a8fb(0x510)](),_0x4eb16c=this[_0x54a8fb(0x42b)]['createInstance'](k,this[_0x54a8fb(0x1c8)],this[_0x54a8fb(0x46c)],_0x264c50[0x0],this[_0x54a8fb(0x28e)]);else{if(_0x236257[_0x54a8fb(0x49e)]!==0x0){const _0x3f2ff6=this['_injector'][_0x54a8fb(0x1db)]($,this[_0x54a8fb(0x1c8)],this[_0x54a8fb(0x46c)],_0x236257,this[_0x54a8fb(0x28e)]);_0x3f2ff6[_0x54a8fb(0x519)](),_0x4eb16c=_0x3f2ff6;}else _0x4eb16c=this[_0x54a8fb(0x42b)]['createInstance'](ae,this[_0x54a8fb(0x1c8)],this['type'],this[_0x54a8fb(0x28e)]);}}return _0x4eb16c[_0x54a8fb(0x2a4)](),_0x4eb16c;}catch(_0x114529){return this[_0x54a8fb(0x3cb)][_0x54a8fb(0x383)](_0x54a8fb(0x486),_0x54a8fb(0x406),_0x114529),this[_0x54a8fb(0x42b)][_0x54a8fb(0x1db)](Y,this[_0x54a8fb(0x1c8)],this[_0x54a8fb(0x46c)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],!0x1);}}[_0x29b95d(0x446)](){const _0x3e3d10=_0x29b95d;throw new Error(_0x3e3d10(0x3cc));}['appendMutation'](_0x3c2093){const _0x2b1629=_0x29b95d;return this[_0x2b1629(0x3b8)][_0x2b1629(0x346)](_0x3c2093),this;}[_0x29b95d(0x438)](_0x7c0e2){const _0x4505a9=_0x29b95d;return this['_queuedRemoteChangesets'][_0x4505a9(0x346)](_0x7c0e2),this;}[_0x29b95d(0x54a)](_0x169c97){const _0x13f75b=_0x29b95d;if(this['_awaitingChangeset'])return this[_0x13f75b(0x3a3)]=this[_0x13f75b(0x53b)],this[_0x13f75b(0x53b)]=null,this;throw new Error(_0x13f75b(0x2af));}[_0x29b95d(0x532)](_0xef1de7){const _0x43359b=_0x29b95d;return this['_onConflict'](!!(_0xef1de7!=null&&_0xef1de7[_0x43359b(0x293)]));}['toggleOffline'](){const _0x5cadad=_0x29b95d;return this['_injector']['createInstance'](B,this[_0x5cadad(0x1c8)],this[_0x5cadad(0x46c)],this[_0x5cadad(0x53b)],this[_0x5cadad(0x3b8)],this[_0x5cadad(0x28e)]);}['toggleOnline'](){return this;}['_onConflict'](_0x411c8f){const _0xd5ea4f=_0x29b95d;return this[_0xd5ea4f(0x42b)][_0xd5ea4f(0x1db)](Y,this[_0xd5ea4f(0x1c8)],this[_0xd5ea4f(0x46c)],this['_awaitingChangeset'],this[_0xd5ea4f(0x3b8)],this[_0xd5ea4f(0x28e)],_0x411c8f);}};x=K([f(0x7,h[_0x29b95d(0x563)](h['Injector'])),f(0x8,h[_0x29b95d(0x563)](u[_0x29b95d(0x4c3)])),f(0x9,h[_0x29b95d(0x563)](exports['LocalCacheService'])),f(0xa,a[_0x29b95d(0x50d)]),f(0xb,a['ICommandService']),f(0xc,a[_0x29b95d(0x525)]),f(0xd,u[_0x29b95d(0x551)])],x);function Tt(_0x5c96f2,_0x26da7b,_0xd8569b,_0x48aa34,_0xab80d1,_0x1b204b){const _0x50ddf3=_0x29b95d;return _0x48aa34&&_0xab80d1['length']?_0x5c96f2[_0x50ddf3(0x1db)](H,_0x26da7b,_0xd8569b,_0x48aa34,_0xab80d1,_0x1b204b):_0x48aa34?_0x5c96f2['createInstance'](k,_0x26da7b,_0xd8569b,_0x48aa34,_0x1b204b):_0xab80d1[_0x50ddf3(0x49e)]?_0x5c96f2[_0x50ddf3(0x1db)]($,_0x26da7b,_0xd8569b,_0xab80d1,_0x1b204b):_0x5c96f2['createInstance'](ae,_0x26da7b,_0xd8569b,_0x1b204b);}var Ds=Object[_0x29b95d(0x2f8)],Us=Object['getOwnPropertyDescriptor'],Ee=(_0x14e650,_0x50627c,_0x20050b,_0x5dd9d4)=>{const _0x1a2909=_0x29b95d;for(var _0x12526a=_0x5dd9d4>0x1?void 0x0:_0x5dd9d4?Us(_0x50627c,_0x20050b):_0x50627c,_0x25b588=_0x14e650[_0x1a2909(0x49e)]-0x1,_0x2e666e;_0x25b588>=0x0;_0x25b588--)(_0x2e666e=_0x14e650[_0x25b588])&&(_0x12526a=(_0x5dd9d4?_0x2e666e(_0x50627c,_0x20050b,_0x12526a):_0x2e666e(_0x12526a))||_0x12526a);return _0x5dd9d4&&_0x12526a&&Ds(_0x50627c,_0x20050b,_0x12526a),_0x12526a;},p=(_0x17e147,_0x18f9e5)=>(_0x2211ee,_0x139624)=>_0x18f9e5(_0x2211ee,_0x139624,_0x17e147);exports['CollaborationController']=class extends a[_0x29b95d(0x275)]{constructor(_0x1095c0,_0x1dfb4c,_0x3cefc1){const _0x2947e2=_0x29b95d;super(),d(this,_0x2947e2(0x3db),new Map()),d(this,_0x2947e2(0x4c1),new g['Subject']()),(this['_injector']=_0x1095c0,this['_collabSessionService']=_0x1dfb4c,this['_univerInstanceService']=_0x3cefc1,this[_0x2947e2(0x2ec)]());}[_0x29b95d(0x545)](){const _0x1154f6=_0x29b95d;super[_0x1154f6(0x545)](),this['_entities'][_0x1154f6(0x3b0)](_0x28559d=>_0x28559d[_0x1154f6(0x545)]()),this['_entities'][_0x1154f6(0x2a7)]();}[_0x29b95d(0x2f7)](_0x1d7e3d){const _0x3f45dc=_0x29b95d;var _0x2c0914;return(_0x2c0914=this[_0x3f45dc(0x3db)][_0x3f45dc(0x2d3)](_0x1d7e3d))!=null?_0x2c0914:null;}['getCollabEntity$'](_0x223577){const _0x4d5cff=_0x29b95d,_0x5769ac=this[_0x4d5cff(0x2f7)](_0x223577);return _0x5769ac?g['of'](_0x5769ac):this[_0x4d5cff(0x4c1)][_0x4d5cff(0x1e4)](T[_0x4d5cff(0x4c7)](_0x87e8bf=>_0x87e8bf[_0x4d5cff(0x1c8)]===_0x223577));}['_init'](){const _0x1be40b=_0x29b95d;this['_univerInstanceService'][_0x1be40b(0x314)](a[_0x1be40b(0x30a)][_0x1be40b(0x272)])[_0x1be40b(0x1e4)](g['takeUntil'](this[_0x1be40b(0x2e1)]),T['delay'](0x10))[_0x1be40b(0x1e8)](async _0x2b4d11=>{const _0x3a185b=_0x1be40b,_0x25845d=_0x2b4d11[_0x3a185b(0x25b)](),_0x2cd1c5=await this[_0x3a185b(0x41e)](_0x25845d,j[_0x3a185b(0x272)]);this[_0x3a185b(0x3db)][_0x3a185b(0x470)](_0x25845d,_0x2cd1c5);}),this[_0x1be40b(0x50a)][_0x1be40b(0x314)](a[_0x1be40b(0x30a)][_0x1be40b(0x2a2)])[_0x1be40b(0x1e4)](g['takeUntil'](this[_0x1be40b(0x2e1)]),T[_0x1be40b(0x4ac)](0x10))[_0x1be40b(0x1e4)](T[_0x1be40b(0x4c7)](_0x3cd9ea=>!_0x3cd9ea[_0x1be40b(0x25b)]()[_0x1be40b(0x2f9)]('__')))['subscribe'](async _0x1e2d41=>{const _0x3245b2=_0x1be40b,_0x43d234=_0x1e2d41[_0x3245b2(0x25b)](),_0x56cb02=await this['_startCollaboration'](_0x43d234,j[_0x3245b2(0x2a2)]);this[_0x3245b2(0x3db)][_0x3245b2(0x470)](_0x43d234,_0x56cb02);}),g[_0x1be40b(0x22e)](this['_univerInstanceService'][_0x1be40b(0x4a3)](a[_0x1be40b(0x30a)]['UNIVER_SHEET']),this[_0x1be40b(0x50a)]['getTypeOfUnitDisposed$'](a[_0x1be40b(0x30a)][_0x1be40b(0x2a2)]))[_0x1be40b(0x1e4)](g[_0x1be40b(0x4d2)](this['dispose$']))[_0x1be40b(0x1e8)](_0x4f71e5=>{const _0x53a9f5=_0x1be40b,_0x3d8209=_0x4f71e5[_0x53a9f5(0x25b)](),_0x1ca30e=this[_0x53a9f5(0x3db)][_0x53a9f5(0x2d3)](_0x3d8209);_0x1ca30e&&(_0x1ca30e[_0x53a9f5(0x545)](),this[_0x53a9f5(0x3db)][_0x53a9f5(0x485)](_0x3d8209));});}async['_startCollaboration'](_0xdd11f7,_0x3e4253){const _0x2caa67=_0x29b95d,_0x8c6cdb=await this[_0x2caa67(0x3a6)][_0x2caa67(0x393)](_0xdd11f7),_0xb12771=this[_0x2caa67(0x42b)][_0x2caa67(0x1db)](this['_getCtorByUniverType'](_0x3e4253),_0xdd11f7,_0x3e4253,_0x8c6cdb);return await _0xb12771[_0x2caa67(0x32b)](),this[_0x2caa67(0x4c1)]['next'](_0xb12771),_0xb12771;}[_0x29b95d(0x45b)](_0x13837c){const _0xf317c4=_0x29b95d;switch(_0x13837c){case j[_0xf317c4(0x2a2)]:return Pe;case j[_0xf317c4(0x272)]:return Me;default:throw new Error(_0xf317c4(0x4e0)+_0x13837c);}}},exports['CollaborationController']=Ee([a[_0x29b95d(0x387)](a[_0x29b95d(0x51c)][_0x29b95d(0x376)],exports[_0x29b95d(0x4cd)]),p(0x0,h[_0x29b95d(0x563)](h['Injector'])),p(0x1,h[_0x29b95d(0x563)](exports[_0x29b95d(0x2cf)])),p(0x2,a[_0x29b95d(0x2e6)])],exports[_0x29b95d(0x4cd)]);let me=class extends a[_0x29b95d(0x275)]{constructor(_0x3722c5,_0x495a32,_0x42a7b9,_0x47b428,_0x2141c7,_0x225c89,_0x3ee353,_0x127b44,_0x5eea69,_0x2ee825,_0x2561ad,_0x1f14ee,_0x18113a){const _0x2c07ba=_0x29b95d;super(),d(this,_0x2c07ba(0x3c6),new g['BehaviorSubject'](null)),d(this,_0x2c07ba(0x4f0),this[_0x2c07ba(0x3c6)][_0x2c07ba(0x56a)]()),d(this,_0x2c07ba(0x54e)),d(this,_0x2c07ba(0x4d5),!0x1),d(this,_0x2c07ba(0x1f7),this['state$'][_0x2c07ba(0x1e4)](T[_0x2c07ba(0x2a0)](_0x35d0ea=>_0x35d0ea?_0x35d0ea['status']:U['OFFLINE']),T[_0x2c07ba(0x433)](0x1))),d(this,_0x2c07ba(0x4b0),!0x1),d(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x3722c5,this['_type']=_0x495a32,this[_0x2c07ba(0x329)]=_0x42a7b9,this[_0x2c07ba(0x42b)]=_0x47b428,this[_0x2c07ba(0x3bf)]=_0x2141c7,this['_compressMutationService']=_0x225c89,this[_0x2c07ba(0x2df)]=_0x3ee353,this[_0x2c07ba(0x2e2)]=_0x127b44,this[_0x2c07ba(0x3cb)]=_0x5eea69,this['_commandService']=_0x2ee825,this[_0x2c07ba(0x533)]=_0x2561ad,this[_0x2c07ba(0x37c)]=_0x1f14ee,this[_0x2c07ba(0x45a)]=_0x18113a);}get[_0x29b95d(0x417)](){return this['_state'];}async[_0x29b95d(0x32b)](){const _0x2ea3d7=_0x29b95d;if(this[_0x2ea3d7(0x417)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x2ea3d7(0x2ec)]();}[_0x29b95d(0x538)](){const _0x58dff0=_0x29b95d;return this[_0x58dff0(0x4d5)]=!0x0,a['toDisposable'](()=>{const _0x3fa1ff=_0x58dff0;this[_0x3fa1ff(0x4d5)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x29b95d(0x25f)](_0x2b8099){const _0x14f9a0=_0x29b95d;this[_0x14f9a0(0x54e)]=_0x2b8099,this[_0x14f9a0(0x3c6)]['next'](_0x2b8099);}async[_0x29b95d(0x2ec)](){const _0x986be4=_0x29b95d;var _0x2c3ebe;return this['_updateState'](await this[_0x986be4(0x50e)]()),this[_0x986be4(0x45a)]&&((_0x2c3ebe=this[_0x986be4(0x45a)])==null||_0x2c3ebe['editingUnit'](this[_0x986be4(0x1c8)]),this[_0x986be4(0x2f6)](a[_0x986be4(0x273)](this['_singleActiveUnitService'][_0x986be4(0x340)](this[_0x986be4(0x1c8)])['subscribe'](_0x5dfff2=>{const _0x43d79b=_0x986be4;this[_0x43d79b(0x3cb)][_0x43d79b(0x270)](_0x43d79b(0x2ba),'editing\x20status\x20changed\x20to',_0x5dfff2),_0x5dfff2===Ct[_0x43d79b(0x210)]?(this[_0x43d79b(0x533)][_0x43d79b(0x4a2)]({'content':this[_0x43d79b(0x2df)]['t']('collaboration.single-unit.warning'),'type':oe['MessageType'][_0x43d79b(0x306)]}),this[_0x43d79b(0x37c)]['updatePermissionPoint'](new E[(_0x43d79b(0x503))](this[_0x43d79b(0x1c8)])['id'],!0x1)):this[_0x43d79b(0x37c)]['updatePermissionPoint'](new E[(_0x43d79b(0x503))](this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](a['toDisposable'](this['_session'][_0x986be4(0x42c)][_0x986be4(0x1e8)](_0x49d0af=>{const _0x3e5b55=_0x986be4;_0x49d0af===W[_0x3e5b55(0x391)]?this['_toggleOnline']():_0x49d0af===W[_0x3e5b55(0x234)]&&this[_0x3e5b55(0x4de)]();}))),this[_0x986be4(0x2f6)](a[_0x986be4(0x273)](this[_0x986be4(0x329)]['event$']['subscribe'](_0x5c654a=>{const _0x5a4fc4=_0x986be4;try{switch(_0x5c654a[_0x5a4fc4(0x3e1)]){case u[_0x5a4fc4(0x45f)][_0x5a4fc4(0x354)]:{this[_0x5a4fc4(0x437)](u[_0x5a4fc4(0x2e9)](_0x5c654a[_0x5a4fc4(0x2eb)]));break;}case u[_0x5a4fc4(0x45f)][_0x5a4fc4(0x45e)]:{this[_0x5a4fc4(0x518)](_0x5c654a[_0x5a4fc4(0x2eb)]);break;}case u[_0x5a4fc4(0x45f)][_0x5a4fc4(0x2c7)]:{this[_0x5a4fc4(0x1f6)]();break;}case u['CollaborationEvent'][_0x5a4fc4(0x3d9)]:{this[_0x5a4fc4(0x363)](_0x5c654a[_0x5a4fc4(0x2eb)][_0x5a4fc4(0x46d)][_0x5a4fc4(0x2a0)](_0x2e2009=>u[_0x5a4fc4(0x2e9)](_0x2e2009)));break;}case u['CollaborationEvent'][_0x5a4fc4(0x28a)]:this[_0x5a4fc4(0x1f6)]({'isPermissionRej':!0x0});}}catch(_0x1dfec5){throw console[_0x5a4fc4(0x383)](_0x5a4fc4(0x42d),_0x1dfec5),_0x1dfec5;}}))),this[_0x986be4(0x54e)];}[_0x29b95d(0x3f2)](){const _0x1a3bde=_0x29b95d;this[_0x1a3bde(0x4b0)]=!0x1;}[_0x29b95d(0x4d7)](){const _0x2383e0=_0x29b95d;if(this[_0x2383e0(0x4b0)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x2383e0(0x4b0)]=!0x0;}[_0x29b95d(0x23d)](_0x5b0a8a){const _0x2c7360=_0x29b95d;this[_0x2c7360(0x4d7)](),this['_updateState'](this[_0x2c7360(0x54e)]['appendMutation'](_0x5b0a8a)),this[_0x2c7360(0x3f2)]();}[_0x29b95d(0x437)](_0x241945){const _0x1875ba=_0x29b95d;if(!(_0x241945[_0x1875ba(0x2ef)]<=this[_0x1875ba(0x2e2)][_0x1875ba(0x372)](this['unitID']))){if(this[_0x1875ba(0x4d5)]){this[_0x1875ba(0x4d1)]['push'](_0x241945);return;}this[_0x1875ba(0x1e9)](_0x241945);}}[_0x29b95d(0x484)](){const _0x16b248=_0x29b95d;this[_0x16b248(0x4d1)][_0x16b248(0x3b0)](_0x302007=>this['_applyRemoteChangeset'](_0x302007)),this['_remoteChangesetQueue']=[];}[_0x29b95d(0x1e9)](_0x4ed708){const _0x26ce8e=_0x29b95d,_0x3aa312=this[_0x26ce8e(0x333)][_0x26ce8e(0x232)][_0x26ce8e(0x36a)](this[_0x26ce8e(0x333)][_0x26ce8e(0x232)]['getInterceptPoints']()[_0x26ce8e(0x47f)])(_0x4ed708[_0x26ce8e(0x34c)],null)||_0x4ed708[_0x26ce8e(0x34c)],_0x144b29={..._0x4ed708,'mutations':_0x3aa312};this[_0x26ce8e(0x4d7)](),this['_updateState'](this[_0x26ce8e(0x54e)]['onRemoteChangeset'](_0x144b29)),this[_0x26ce8e(0x3f2)]();}['_onRemoteACK'](_0x36d4e1){const _0xe8ee5b=_0x29b95d;this[_0xe8ee5b(0x4d7)](),this['_updateState'](this[_0xe8ee5b(0x54e)][_0xe8ee5b(0x54a)](_0x36d4e1)),this['_unlockTransition']();}[_0x29b95d(0x1f6)](_0x273658){const _0x563d5f=_0x29b95d;this[_0x563d5f(0x4d7)](),this['_updateState'](this[_0x563d5f(0x54e)][_0x563d5f(0x532)](_0x273658)),this[_0x563d5f(0x3f2)]();}[_0x29b95d(0x363)](_0x44dbaf){const _0x33485d=_0x29b95d;if(!(this[_0x33485d(0x54e)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x1a7f79=_0x44dbaf[_0x33485d(0x2a0)](_0x3e3f4a=>{const _0x53f379=_0x33485d,_0x2e2747=this['_compressMutationService'][_0x53f379(0x232)][_0x53f379(0x36a)](this[_0x53f379(0x333)]['interceptor'][_0x53f379(0x327)]()['COMPRESS_MUTATION_APPLY'])(_0x3e3f4a['mutations'],null)||_0x3e3f4a[_0x53f379(0x34c)];return{..._0x3e3f4a,'mutations':_0x2e2747};});this[_0x33485d(0x4d7)](),this[_0x33485d(0x25f)](this[_0x33485d(0x54e)][_0x33485d(0x502)](_0x1a7f79)),this[_0x33485d(0x3f2)]();}['_toggleOffline'](){const _0x32e30a=_0x29b95d;this[_0x32e30a(0x4d7)](),this[_0x32e30a(0x25f)](this['_state'][_0x32e30a(0x416)]()),this[_0x32e30a(0x3f2)]();}[_0x29b95d(0x427)](){const _0x38f2eb=_0x29b95d;this['_lockTransition'](),this[_0x38f2eb(0x25f)](this[_0x38f2eb(0x54e)][_0x38f2eb(0x38a)]()),this['_unlockTransition']();}async[_0x29b95d(0x50e)](){return new Promise(_0xf8c254=>{const _0x59d8e7=_0x3518;this[_0x59d8e7(0x329)][_0x59d8e7(0x42c)][_0x59d8e7(0x1e4)](T[_0x59d8e7(0x4f7)](0x1))['subscribe'](async _0x4c6be8=>{const _0x55a37f=_0x59d8e7;_0xf8c254(await this[_0x55a37f(0x469)](_0x4c6be8===W[_0x55a37f(0x391)]));});});}[_0x29b95d(0x27b)](){const _0x3e396b=_0x29b95d,_0xf103bf=this[_0x3e396b(0x1c8)];return{'onStateChange':(_0x2df0a3,_0x3337ac)=>{const _0x20433b=_0x3e396b;if(_0x2df0a3!==this['_state'])throw new Error(_0x20433b(0x3dd)+_0x2df0a3[_0x20433b(0x341)]+_0x20433b(0x2b4)+_0x3337ac['status']+'\x0aCurrent:\x20'+this['_state'][_0x20433b(0x341)]);this[_0x20433b(0x25f)](_0x3337ac);},'onSendChangeset':_0x39f53b=>{const _0x2c0e91=_0x3e396b,_0x1ef216={'eventID':u['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x39f53b[_0x2c0e91(0x1c8)],'unitType':this['_type'],'changeset':_0x39f53b,'memberID':this[_0x2c0e91(0x329)][_0x2c0e91(0x429)]()}};this[_0x2c0e91(0x329)]['send'](_0x1ef216,this['unitID']);},'onMissingChangesets':({from:_0x1c83b9,to:_0x5efc92})=>{const _0x5622ed=_0x3e396b;this[_0x5622ed(0x3cb)]['debug']('[CollaborationEntity]',_0x5622ed(0x24d)+_0x1c83b9+'\x20to\x20'+_0x5efc92);const _0x2a815c={'eventID':u[_0x5622ed(0x45f)][_0x5622ed(0x47c)],'data':{'unitID':_0xf103bf,'unitType':this[_0x5622ed(0x4c0)],'from':_0x1c83b9,'to':_0x5efc92}};this[_0x5622ed(0x329)]['send'](_0x2a815c,this['unitID']);}};}async[_0x29b95d(0x469)](_0x1bce87){const _0xa09244=_0x29b95d;var _0x431614,_0x68024f;const _0x14a3b6=await this[_0xa09244(0x3bf)][_0xa09244(0x317)](this[_0xa09244(0x1c8)]),_0x4cba8e=(_0x431614=_0x14a3b6==null?void 0x0:_0x14a3b6[_0xa09244(0x34c)])!=null?_0x431614:[],_0x1ac73e=(_0x68024f=_0x14a3b6==null?void 0x0:_0x14a3b6[_0xa09244(0x458)])!=null?_0x68024f:null,_0x443cdb=this['unitID'];try{this[_0xa09244(0x2bc)](_0x1ac73e,_0x4cba8e);}catch(_0x5521d3){this[_0xa09244(0x3cb)][_0xa09244(0x383)](_0x5521d3);}const _0x1185e2=this[_0xa09244(0x27b)]();if(_0x1bce87){const _0x161146=Tt(this[_0xa09244(0x42b)],_0x443cdb,this[_0xa09244(0x4c0)],_0x1ac73e,_0x4cba8e,_0x1185e2);return _0x161146 instanceof $?_0x161146[_0xa09244(0x519)]():(_0x161146 instanceof H||_0x161146 instanceof k)&&_0x161146['resend'](),_0x161146;}return this[_0xa09244(0x42b)][_0xa09244(0x1db)](B,_0x443cdb,this[_0xa09244(0x4c0)],_0x1ac73e,_0x4cba8e,_0x1185e2);}[_0x29b95d(0x2bc)](_0x4b7d5c,_0x3dd8f9){const _0x38d528=_0x29b95d;var _0x155585,_0x5c6eb5;const _0x4d51d1=this['_compressMutationService'][_0x38d528(0x232)]['fetchThroughInterceptors'](this[_0x38d528(0x333)][_0x38d528(0x232)][_0x38d528(0x327)]()['COMPRESS_MUTATION_APPLY']);(_0x155585=_0x4d51d1((_0x4b7d5c==null?void 0x0:_0x4b7d5c['mutations'])||[],null))==null||_0x155585[_0x38d528(0x3b0)](_0x21430f=>this['_commandService']['executeCommand'](_0x21430f['id'],_0x21430f[_0x38d528(0x29d)])),(_0x5c6eb5=_0x4d51d1(_0x3dd8f9||[],null))==null||_0x5c6eb5['forEach'](_0x107731=>this[_0x38d528(0x4c9)]['executeCommand'](_0x107731['id'],_0x107731[_0x38d528(0x29d)]));}};me=Ee([p(0x3,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),p(0x4,h['Inject'](exports[_0x29b95d(0x45c)])),p(0x5,h[_0x29b95d(0x563)](u['CompressMutationService'])),p(0x6,h['Inject'](a['LocaleService'])),p(0x7,h[_0x29b95d(0x563)](u['RevisionService'])),p(0x8,a[_0x29b95d(0x50d)]),p(0x9,a[_0x29b95d(0x471)]),p(0xa,N[_0x29b95d(0x3e3)]),p(0xb,a[_0x29b95d(0x26f)]),p(0xc,h['Optional'](pe))],me);let Pe=class extends me{constructor(_0x405b94,_0x1c2f81,_0x2b1ded,_0x172788,_0x1712ab,_0x465b89,_0x2390ab,_0x3391f4,_0x428ff2,_0x2c116d,_0x4f2924,_0x3df7ba,_0x50b760,_0x199b98,_0x1b05c6,_0x5a643a,_0x13cafd){const _0x2db3db=_0x29b95d;super(_0x405b94,_0x1c2f81,_0x2b1ded,_0x172788,_0x1712ab,_0x465b89,_0x2390ab,_0x3391f4,_0x50b760,_0x199b98,_0x1b05c6,_0x5a643a,_0x13cafd),this[_0x2db3db(0x1c8)]=_0x405b94,this[_0x2db3db(0x46c)]=_0x1c2f81,this[_0x2db3db(0x4b6)]=_0x2b1ded,this[_0x2db3db(0x557)]=_0x428ff2,this[_0x2db3db(0x43c)]=_0x2c116d,this['_docTransformSelectionsService']=_0x4f2924,this[_0x2db3db(0x33d)]=_0x3df7ba;}[_0x29b95d(0x27b)](){const _0x39d364=_0x29b95d,_0x294c0e=super[_0x39d364(0x27b)]();return _0x294c0e[_0x39d364(0x43f)]=_0x1d3fc8=>this[_0x39d364(0x43c)][_0x39d364(0x473)](_0x1d3fc8),_0x294c0e[_0x39d364(0x540)]=_0x1bcd7e=>this[_0x39d364(0x23e)][_0x39d364(0x515)](_0x1bcd7e),_0x294c0e[_0x39d364(0x377)]=_0x539235=>this[_0x39d364(0x33d)][_0x39d364(0x338)](_0x539235),_0x294c0e[_0x39d364(0x397)]=_0x2d47b1=>this[_0x39d364(0x43c)][_0x39d364(0x1e1)](_0x2d47b1),_0x294c0e;}async[_0x29b95d(0x2ec)](){const _0x365bd7=_0x29b95d,_0x4eb1c0=await super['_init']();return this['_docStateChangeManagerService']['docStateChange$']['pipe'](g[_0x365bd7(0x4d2)](this[_0x365bd7(0x2e1)]))[_0x365bd7(0x1e8)](_0x35c47f=>{const _0x275259=_0x365bd7;if(_0x35c47f==null)return;const {unitId:_0x3630c9,redoState:_0x231c8b,commandId:_0x48a5cc}=_0x35c47f;if(_0x3630c9!==this[_0x275259(0x1c8)])return;const _0x33ea4a={'id':_0x48a5cc,'type':a[_0x275259(0x4b2)]['MUTATION'],'params':{'unitId':_0x3630c9,'actions':_0x231c8b[_0x275259(0x324)],'textRanges':null}};this[_0x275259(0x23d)](_0x33ea4a);}),_0x4eb1c0;}};Pe=Ee([p(0x3,h[_0x29b95d(0x563)](h['Injector'])),p(0x4,h[_0x29b95d(0x563)](exports['LocalCacheService'])),p(0x5,h[_0x29b95d(0x563)](u[_0x29b95d(0x303)])),p(0x6,h[_0x29b95d(0x563)](a[_0x29b95d(0x3c8)])),p(0x7,h[_0x29b95d(0x563)](u[_0x29b95d(0x4c3)])),p(0x8,h[_0x29b95d(0x563)](y[_0x29b95d(0x1cd)])),p(0x9,h[_0x29b95d(0x563)](ve)),p(0xa,h[_0x29b95d(0x563)](ge)),p(0xb,h['Inject'](Ve)),p(0xc,a[_0x29b95d(0x50d)]),p(0xd,a['ICommandService']),p(0xe,N[_0x29b95d(0x3e3)]),p(0xf,a[_0x29b95d(0x26f)]),p(0x10,h[_0x29b95d(0x335)](pe))],Pe);let Me=class extends me{constructor(_0x264247,_0x4d72c2,_0x51b9e4,_0x2a75f1,_0x419d3a,_0x3dd3d3,_0x153c24,_0x300039,_0x36c0fa,_0x21340d,_0x5c4124,_0x10b36f,_0x4376eb,_0x4f5e67){const _0x136dba=_0x29b95d;super(_0x264247,_0x4d72c2,_0x51b9e4,_0x2a75f1,_0x419d3a,_0x3dd3d3,_0x153c24,_0x300039,_0x21340d,_0x5c4124,_0x10b36f,_0x4376eb,_0x4f5e67),this[_0x136dba(0x1c8)]=_0x264247,this[_0x136dba(0x46c)]=_0x4d72c2,this[_0x136dba(0x4b6)]=_0x51b9e4,this[_0x136dba(0x4be)]=_0x36c0fa;}[_0x29b95d(0x27b)](){const _0x5ccb20=_0x29b95d,_0x6d111c=super[_0x5ccb20(0x27b)]();return _0x6d111c[_0x5ccb20(0x540)]=_0x352591=>this['_sheetTransformSelectionsService']['transformSelections'](_0x352591),_0x6d111c;}async[_0x29b95d(0x2ec)](){const _0x18f9d0=_0x29b95d,_0x278701=await super[_0x18f9d0(0x2ec)]();return this[_0x18f9d0(0x2f6)](this[_0x18f9d0(0x4c9)][_0x18f9d0(0x4ff)]((_0x3c1344,_0x366863)=>{const _0x140b9e=_0x18f9d0;if(_0x3c1344[_0x140b9e(0x46c)]!==a['CommandType']['MUTATION']||_0x366863!=null&&_0x366863[_0x140b9e(0x432)]||_0x366863!=null&&_0x366863[_0x140b9e(0x4fe)])return;const _0x40ff4a=_0x3c1344[_0x140b9e(0x29d)];if((_0x40ff4a==null?void 0x0:_0x40ff4a[_0x140b9e(0x3f4)])!==this['unitID'])return;const _0x412649=_0x3c1344,_0x425bcb=this[_0x140b9e(0x333)][_0x140b9e(0x232)][_0x140b9e(0x36a)](this['_compressMutationService'][_0x140b9e(0x232)]['getInterceptPoints']()[_0x140b9e(0x3d7)])([_0x412649],null)||[_0x412649];this[_0x140b9e(0x23d)](_0x425bcb[0x0]);})),_0x278701;}};Me=Ee([p(0x3,h['Inject'](h[_0x29b95d(0x380)])),p(0x4,h['Inject'](exports[_0x29b95d(0x45c)])),p(0x5,h[_0x29b95d(0x563)](u['CompressMutationService'])),p(0x6,h[_0x29b95d(0x563)](a[_0x29b95d(0x3c8)])),p(0x7,h[_0x29b95d(0x563)](u[_0x29b95d(0x4c3)])),p(0x8,h['Inject'](fe)),p(0x9,a[_0x29b95d(0x50d)]),p(0xa,a['ICommandService']),p(0xb,N['IMessageService']),p(0xc,a[_0x29b95d(0x26f)]),p(0xd,h[_0x29b95d(0x335)](pe))],Me);const tt=[_0x29b95d(0x299),_0x29b95d(0x43e),_0x29b95d(0x392),_0x29b95d(0x1fc),_0x29b95d(0x26e),'gold400'];class We extends a[_0x29b95d(0x1dd)]{constructor(){const _0x398fe2=_0x29b95d;super(...arguments),d(this,_0x398fe2(0x373),new Map()),d(this,_0x398fe2(0x3fb),0x0);}[_0x29b95d(0x3df)](_0x4a9293){const _0x4182d8=_0x29b95d;if(this['_assignedColors'][_0x4182d8(0x237)](_0x4a9293))return this['_assignedColors']['get'](_0x4a9293);const _0x334511=tt[this['_colorIndex']];return this['_colorIndex']=(this[_0x4182d8(0x3fb)]+0x1)%tt['length'],this[_0x4182d8(0x373)][_0x4182d8(0x470)](_0x4a9293,_0x334511),_0x334511;}}var ws=Object[_0x29b95d(0x2f8)],Ls=Object[_0x29b95d(0x516)],Ps=(_0x58de98,_0x31a58b,_0x4a4b4c,_0x344bb3)=>{const _0x54453a=_0x29b95d;for(var _0x168ed9=_0x344bb3>0x1?void 0x0:_0x344bb3?Ls(_0x31a58b,_0x4a4b4c):_0x31a58b,_0x408121=_0x58de98[_0x54453a(0x49e)]-0x1,_0x57f8ff;_0x408121>=0x0;_0x408121--)(_0x57f8ff=_0x58de98[_0x408121])&&(_0x168ed9=(_0x344bb3?_0x57f8ff(_0x31a58b,_0x4a4b4c,_0x168ed9):_0x57f8ff(_0x168ed9))||_0x168ed9);return _0x344bb3&&_0x168ed9&&ws(_0x31a58b,_0x4a4b4c,_0x168ed9),_0x168ed9;},q=(_0xc8e14a,_0x125c07)=>(_0x224880,_0x518292)=>_0x125c07(_0x224880,_0x518292,_0xc8e14a);const Ms=0x12c,ys=0x64,Ns=()=>{let _0x48dae1=[],_0x4c07b3=!0x1;return _0xd04c0=>{_0x48dae1['push'](_0xd04c0),_0x4c07b3||(_0x4c07b3=!0x0,setTimeout(()=>{const _0x34e0b7=_0x3518;_0x48dae1[_0x34e0b7(0x3b0)](_0x5683b3=>_0x5683b3()),_0x48dae1=[],_0x4c07b3=!0x1;}));};};let ye=class extends a[_0x29b95d(0x275)]{constructor(_0x498ce9,_0x52c09c,_0x75c064,_0x1ea2a9,_0x54dc1d,_0x3f7023,_0x181e4b,_0x1b6a94){const _0x40b049=_0x29b95d;super(),d(this,_0x40b049(0x3d1),!0x1),d(this,_0x40b049(0x2ec),!0x1),d(this,'_cursorInfo$',new g[(_0x40b049(0x3cd))](new Map())),d(this,'cursorInfo$',this[_0x40b049(0x1da)][_0x40b049(0x56a)]()),d(this,'_roomMembers$',new g[(_0x40b049(0x3cd))]([])),d(this,'roomMembers$',this[_0x40b049(0x277)][_0x40b049(0x1e4)](g[_0x40b049(0x55f)](Ms))),d(this,'_updateLocalCursor',He((_0x41046b,_0x4328e5)=>{const _0x12f0f1=_0x40b049,_0xba49e0={'eventID':u[_0x12f0f1(0x45f)][_0x12f0f1(0x30b)],'data':{'unitID':this[_0x12f0f1(0x1c8)],'memberID':this['_session'][_0x12f0f1(0x429)](),'selection':Ke[_0x12f0f1(0x1ed)](_0x41046b,_0x4328e5['range'])}};this[_0x12f0f1(0x329)][_0x12f0f1(0x434)](_0xba49e0,this[_0x12f0f1(0x1c8)]);},ys)),(this[_0x40b049(0x1c8)]=_0x498ce9,this[_0x40b049(0x329)]=_0x52c09c,this[_0x40b049(0x42b)]=_0x75c064,this['_colorAssignService']=_0x1ea2a9,this[_0x40b049(0x258)]=_0x54dc1d,this['_univerInstanceService']=_0x3f7023,this[_0x40b049(0x4c9)]=_0x181e4b,this[_0x40b049(0x3d4)]=_0x1b6a94);}get[_0x29b95d(0x54c)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x4dc989=_0x29b95d;return this[_0x4dc989(0x277)][_0x4dc989(0x2e8)]();}['dispose'](){const _0xe3a1b5=_0x29b95d;super[_0xe3a1b5(0x545)](),this['_cursorInfo$'][_0xe3a1b5(0x4e8)](new Map()),this[_0xe3a1b5(0x1da)][_0xe3a1b5(0x388)](),this[_0xe3a1b5(0x277)][_0xe3a1b5(0x4e8)]([]),this[_0xe3a1b5(0x277)][_0xe3a1b5(0x388)]();}[_0x29b95d(0x32b)](){const _0x50da2d=_0x29b95d;this['_init']||(this[_0x50da2d(0x2ec)]=!0x0,this['_session'][_0x50da2d(0x42c)][_0x50da2d(0x1e4)](g[_0x50da2d(0x4d2)](this[_0x50da2d(0x2e1)]))[_0x50da2d(0x1e8)](_0x3fc3a1=>{const _0x591123=_0x50da2d;_0x3fc3a1===W[_0x591123(0x391)]?this[_0x591123(0x427)]():this[_0x591123(0x4de)]();}),this[_0x50da2d(0x329)][_0x50da2d(0x264)][_0x50da2d(0x1e4)](g[_0x50da2d(0x4d2)](this[_0x50da2d(0x2e1)]))[_0x50da2d(0x1e8)](_0x173af1=>{const _0x130392=_0x50da2d,_0x381ac9=_0x173af1[_0x130392(0x3e1)];_0x381ac9===u[_0x130392(0x45f)][_0x130392(0x30b)]&&this[_0x130392(0x4cb)](_0x173af1),_0x381ac9===u['CollaborationEvent'][_0x130392(0x274)]&&this[_0x130392(0x44f)](_0x173af1);}),this[_0x50da2d(0x348)](),this[_0x50da2d(0x2f6)](this['_commandService']['onCommandExecuted'](_0x4b3fa6=>{const _0x56331f=_0x50da2d;if(this[_0x56331f(0x3d1)]&&_0x4b3fa6['id']===E[_0x56331f(0x35b)]['id']&&_0x4b3fa6[_0x56331f(0x29d)][_0x56331f(0x3f4)]===this[_0x56331f(0x1c8)]){const _0xfff25b=_0x4b3fa6[_0x56331f(0x29d)];this[_0x56331f(0x436)](_0xfff25b[_0x56331f(0x218)],_0xfff25b[_0x56331f(0x2dc)][0x0]);}})));}[_0x29b95d(0x4cb)](_0xd561f3){const _0x594419=_0x29b95d;var _0x4e211c,_0xe44f24;const {memberID:_0x2fc875,selection:_0x269ff7}=_0xd561f3[_0x594419(0x2eb)],{sheetName:_0x3e47ec,range:_0x13f549}=Ke['deserializeRangeWithSheet'](_0x269ff7),_0x60552b={'name':(_0xe44f24=(_0x4e211c=this[_0x594419(0x258)]['getMember'](this[_0x594419(0x1c8)],_0x2fc875))==null?void 0x0:_0x4e211c[_0x594419(0x4ce)])!=null?_0xe44f24:_0x594419(0x56b),'range':this['_getMergeRange'](_0x3e47ec,_0x13f549),'sheetID':_0x3e47ec,'color':this[_0x594419(0x3b1)][_0x594419(0x3df)](_0x2fc875),'selection':_0x269ff7},_0x232b86=this[_0x594419(0x54c)];_0x232b86[_0x594419(0x470)](_0x2fc875,_0x60552b),this[_0x594419(0x1da)][_0x594419(0x4e8)](_0x232b86);}[_0x29b95d(0x44f)](_0x56f46a){const _0x50f208=_0x29b95d,{memberID:_0x8794e9}=_0x56f46a['data'],_0x1d2b9f=this[_0x50f208(0x54c)];_0x1d2b9f['delete'](_0x8794e9),this[_0x50f208(0x1da)]['next'](_0x1d2b9f);}['_getMergeRange'](_0x52bfcb,_0x44b023){const _0x3a9806=_0x29b95d;var _0x392297,_0x2045b5;const _0x27592d=(_0x2045b5=(_0x392297=this['_univerInstanceService'][_0x3a9806(0x1fe)](this['unitID']))==null?void 0x0:_0x392297['getSheetBySheetId'](_0x52bfcb))==null?void 0x0:_0x2045b5['getMergeData']();return(_0x27592d==null?void 0x0:_0x27592d['find'](_0x51f1b0=>a['Rectangle'][_0x3a9806(0x2b7)](_0x51f1b0,_0x44b023)))||_0x44b023;}[_0x29b95d(0x348)](){const _0x19da4a=_0x29b95d,_0x9e7c8b=new a[(_0x19da4a(0x3a4))](),_0x43bdf7=Ns(),_0x51b94b=()=>{const _0x5df1b=_0x19da4a;_0x9e7c8b[_0x5df1b(0x545)]();const _0x5e164f=(_0x4fc945,_0x56613d,_0x255996,_0x3333b7)=>{const _0x1755ef=_0x5df1b;let _0x35e8bd=[];switch(_0x4fc945['id']){case E[_0x1755ef(0x2d1)][_0x1755ef(0x4e2)]:{_0x35e8bd=E[_0x1755ef(0x38e)](_0x4fc945,_0x3333b7);break;}case E[_0x1755ef(0x2d1)]['DeleteRangeMoveUpCommandId']:{_0x35e8bd=E['handleDeleteRangeMoveUp'](_0x4fc945,_0x3333b7);break;}case E[_0x1755ef(0x2d1)][_0x1755ef(0x246)]:{_0x35e8bd=E['handleInsertCol'](_0x4fc945,_0x3333b7);break;}case E['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x35e8bd=E[_0x1755ef(0x4eb)](_0x4fc945,_0x3333b7);break;}case E[_0x1755ef(0x2d1)][_0x1755ef(0x537)]:{_0x35e8bd=E['handleInsertRangeMoveRight'](_0x4fc945,_0x3333b7);break;}case E[_0x1755ef(0x2d1)]['InsertRowCommandId']:{_0x35e8bd=E['handleInsertRow'](_0x4fc945,_0x3333b7);break;}case E['EffectRefRangId']['MoveRangeCommandId']:{_0x35e8bd=E[_0x1755ef(0x50f)](_0x4fc945,_0x3333b7);break;}case E['EffectRefRangId'][_0x1755ef(0x511)]:{_0x35e8bd=E[_0x1755ef(0x2ea)](_0x4fc945,_0x3333b7);break;}case E['EffectRefRangId'][_0x1755ef(0x353)]:{_0x35e8bd=E[_0x1755ef(0x289)](_0x4fc945,_0x3333b7);break;}}const _0x2ee369=E[_0x1755ef(0x43d)](_0x35e8bd,_0x3333b7),_0x1e2358=this[_0x1755ef(0x54c)][_0x1755ef(0x2d3)](_0x56613d);if(_0x1e2358&&_0x2ee369){const _0x4f587c={..._0x1e2358,'range':_0x2ee369};this['cursorInfo'][_0x1755ef(0x470)](_0x56613d,_0x4f587c),_0x43bdf7(()=>{const _0x4c70af=_0x1755ef,_0x86a47=this[_0x4c70af(0x3d4)][_0x4c70af(0x1cf)](_0x2ee369,_0x1215ae=>(_0x86a47[_0x4c70af(0x545)](),_0x5e164f(_0x1215ae,_0x56613d,_0x255996,_0x2ee369)));_0x9e7c8b[_0x4c70af(0x3af)](_0x86a47);});}return{'redos':[],'undos':[]};};this[_0x5df1b(0x54c)][_0x5df1b(0x3b0)]((_0x34b3e7,_0x328db1)=>{const _0x26f0cf=_0x5df1b,{range:_0x3c7b85,sheetID:_0x28cd54}=_0x34b3e7,_0x3f4b2a=this[_0x26f0cf(0x3d4)][_0x26f0cf(0x1cf)](_0x3c7b85,_0x351f1c=>(_0x3f4b2a[_0x26f0cf(0x545)](),_0x5e164f(_0x351f1c,_0x328db1,_0x28cd54,_0x3c7b85)));_0x9e7c8b[_0x26f0cf(0x3af)](_0x3f4b2a);});};this[_0x19da4a(0x2f6)](a[_0x19da4a(0x273)](this[_0x19da4a(0x1da)][_0x19da4a(0x1e8)](()=>{_0x51b94b();})));}[_0x29b95d(0x427)](){const _0x5c56c0=_0x29b95d;var _0xaaeb1c,_0x3f8191;if(this[_0x5c56c0(0x3d1)]=!0x0,((_0xaaeb1c=this['_univerInstanceService'][_0x5c56c0(0x47e)]())==null?void 0x0:_0xaaeb1c[_0x5c56c0(0x25b)]())!==this[_0x5c56c0(0x1c8)])return;const _0x1790c4=(_0x3f8191=this['_injector'][_0x5c56c0(0x2d3)](E[_0x5c56c0(0x52c)])[_0x5c56c0(0x3e6)]())==null?void 0x0:_0x3f8191[0x0],_0x35bc0e=this[_0x5c56c0(0x50a)][_0x5c56c0(0x21d)](a[_0x5c56c0(0x30a)]['UNIVER_SHEET'])[_0x5c56c0(0x3d5)]();_0x1790c4&&_0x35bc0e&&this[_0x5c56c0(0x436)](_0x35bc0e[_0x5c56c0(0x3a5)](),_0x1790c4);}[_0x29b95d(0x4de)](){const _0x324f04=_0x29b95d;this[_0x324f04(0x3d1)]=!0x1;}};ye=Ps([q(0x2,h[_0x29b95d(0x563)](h['Injector'])),q(0x3,h[_0x29b95d(0x563)](We)),q(0x4,h['Inject'](G)),q(0x5,a[_0x29b95d(0x2e6)]),q(0x6,a[_0x29b95d(0x471)]),q(0x7,h['Inject'](E['RefRangeService']))],ye);function _0x3518(_0x5bb343,_0x20f4f7){const _0x371b59=_0x371b();return _0x3518=function(_0x3518c4,_0x1ae3fb){_0x3518c4=_0x3518c4-0x1c5;let _0x2e4d39=_0x371b59[_0x3518c4];return _0x2e4d39;},_0x3518(_0x5bb343,_0x20f4f7);}var As=Object[_0x29b95d(0x2f8)],js=Object[_0x29b95d(0x516)],$s=(_0x572e60,_0x62a02f,_0x2f79f5,_0x1fed18)=>{const _0x2fc68e=_0x29b95d;for(var _0x491dce=_0x1fed18>0x1?void 0x0:_0x1fed18?js(_0x62a02f,_0x2f79f5):_0x62a02f,_0xb9d949=_0x572e60[_0x2fc68e(0x49e)]-0x1,_0x4ee01a;_0xb9d949>=0x0;_0xb9d949--)(_0x4ee01a=_0x572e60[_0xb9d949])&&(_0x491dce=(_0x1fed18?_0x4ee01a(_0x62a02f,_0x2f79f5,_0x491dce):_0x4ee01a(_0x491dce))||_0x491dce);return _0x1fed18&&_0x491dce&&As(_0x62a02f,_0x2f79f5,_0x491dce),_0x491dce;},V=(_0x2654da,_0x17a2a4)=>(_0x317042,_0x2a3397)=>_0x17a2a4(_0x317042,_0x2a3397,_0x2654da);const Hs=0x12c,xs=0x64;let Ne=class extends a[_0x29b95d(0x275)]{constructor(_0x5bb009,_0x4dbcaf,_0x40e758,_0x1b17bd,_0xf226d4,_0x2d717e,_0x950c53,_0x1fe7e2,_0x593644){const _0xdd046e=_0x29b95d;super(),d(this,_0xdd046e(0x3d1),!0x1),d(this,_0xdd046e(0x2ec),!0x1),d(this,'_cursorInfo$',new g[(_0xdd046e(0x3cd))](new Map())),d(this,_0xdd046e(0x523),this[_0xdd046e(0x1da)][_0xdd046e(0x56a)]()),d(this,_0xdd046e(0x277),new g['BehaviorSubject']([])),d(this,_0xdd046e(0x3be),this[_0xdd046e(0x277)]['pipe'](g[_0xdd046e(0x55f)](Hs))),d(this,_0xdd046e(0x436),He(_0x397e9d=>{const _0x27690e=_0xdd046e,_0x449c1c={'eventID':u['CollaborationEvent'][_0x27690e(0x30b)],'data':{'unitID':this[_0x27690e(0x1c8)],'memberID':this[_0x27690e(0x329)][_0x27690e(0x429)](),'selection':bt(_0x397e9d)}};this[_0x27690e(0x329)][_0x27690e(0x434)](_0x449c1c,this[_0x27690e(0x1c8)]);},xs)),(this[_0xdd046e(0x1c8)]=_0x5bb009,this[_0xdd046e(0x329)]=_0x4dbcaf,this[_0xdd046e(0x42b)]=_0x40e758,this['_colorAssignService']=_0x1b17bd,this[_0xdd046e(0x258)]=_0xf226d4,this[_0xdd046e(0x4a0)]=_0x2d717e,this['_transformService']=_0x950c53,this[_0xdd046e(0x50a)]=_0x1fe7e2,this[_0xdd046e(0x4c9)]=_0x593644);}get['cursorInfo'](){const _0x7618f8=_0x29b95d;return this[_0x7618f8(0x1da)]['getValue']();}get['roomMembers'](){const _0x584297=_0x29b95d;return this[_0x584297(0x277)][_0x584297(0x2e8)]();}[_0x29b95d(0x545)](){const _0x4b1a76=_0x29b95d;super['dispose'](),this[_0x4b1a76(0x1da)][_0x4b1a76(0x4e8)](new Map()),this[_0x4b1a76(0x1da)][_0x4b1a76(0x388)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x4b1a76(0x388)]();}[_0x29b95d(0x32b)](){const _0x59eabd=_0x29b95d;this[_0x59eabd(0x2ec)]||(this[_0x59eabd(0x2ec)]=!0x0,this[_0x59eabd(0x329)][_0x59eabd(0x42c)][_0x59eabd(0x1e4)](g[_0x59eabd(0x4d2)](this[_0x59eabd(0x2e1)]))[_0x59eabd(0x1e8)](_0x1a9963=>{const _0x37acf4=_0x59eabd;_0x1a9963===W['ONLINE']?this[_0x37acf4(0x427)]():this[_0x37acf4(0x4de)]();}),this[_0x59eabd(0x329)]['event$']['pipe'](g[_0x59eabd(0x4d2)](this['dispose$']))['subscribe'](_0x3586cb=>{const _0x1d4b6b=_0x59eabd,_0x40b94a=_0x3586cb[_0x1d4b6b(0x3e1)];_0x40b94a===u[_0x1d4b6b(0x45f)][_0x1d4b6b(0x30b)]&&this[_0x1d4b6b(0x4cb)](_0x3586cb),_0x40b94a===u['CollaborationEvent'][_0x1d4b6b(0x274)]&&this[_0x1d4b6b(0x44f)](_0x3586cb);}),this[_0x59eabd(0x2f6)](this[_0x59eabd(0x4c9)][_0x59eabd(0x4ff)](_0x50b545=>{const _0x3d8030=_0x59eabd,_0x216c44=_0x50b545['params'];_0x216c44!=null&&this[_0x3d8030(0x3d1)]&&_0x50b545['id']===y[_0x3d8030(0x464)]['id']&&_0x216c44[_0x3d8030(0x3f4)]===this[_0x3d8030(0x1c8)]&&_0x216c44[_0x3d8030(0x27f)]===!0x1&&this[_0x3d8030(0x436)](_0x216c44[_0x3d8030(0x3ad)]);})),this[_0x59eabd(0x4a0)][_0x59eabd(0x221)][_0x59eabd(0x1e4)](g[_0x59eabd(0x4d2)](this[_0x59eabd(0x2e1)]))['subscribe'](_0x50728b=>{const _0x260a67=_0x59eabd;if((_0x50728b==null?void 0x0:_0x50728b[_0x260a67(0x1c8)])!==this[_0x260a67(0x1c8)])return;const _0x570fa0={'eventID':u['CollaborationEvent'][_0x260a67(0x30b)],'data':_0x50728b};this['_onCursorUpdate'](_0x570fa0);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x4b5601=>{const _0x40cdab=_0x59eabd;if(_0x4b5601[_0x40cdab(0x29d)]==null)return;const _0x30a916=_0x4b5601['params'];if(_0x4b5601['id']!==y['RichTextEditingMutation']['id']||_0x30a916[_0x40cdab(0x3f4)]!==this[_0x40cdab(0x1c8)])return;const _0x3f0c03={'id':_0x40cdab(0x400),'params':_0x30a916},_0x3f7d40=this[_0x40cdab(0x54c)];for(const [_0x8b9528,_0x101cf3]of _0x3f7d40){const _0x27dd28={'id':_0x40cdab(0x400),'params':{'unitId':this[_0x40cdab(0x1c8)],'actions':null,'textRanges':_0x101cf3[_0x40cdab(0x3ad)]}},_0x59aa9f=this['_transformService'][_0x40cdab(0x219)](_0x3f0c03,_0x27dd28,!0x1);if(u[_0x40cdab(0x566)](_0x59aa9f))throw _0x59aa9f['error'];_0x3f7d40[_0x40cdab(0x470)](_0x8b9528,{..._0x101cf3,'ranges':_0x59aa9f['m2Prime'][_0x40cdab(0x29d)][_0x40cdab(0x382)]});}queueMicrotask(()=>{const _0x5a4a9e=_0x40cdab;this['_cursorInfo$'][_0x5a4a9e(0x4e8)](_0x3f7d40);});})));}['_onCursorUpdate'](_0x546f76){const _0x4d1e88=_0x29b95d;var _0x4f95a5,_0x28101e;const {memberID:_0xaadd5e,selection:_0xa8d149}=_0x546f76[_0x4d1e88(0x2eb)],_0x179619=ms(_0xa8d149),_0xbd50a=(_0x28101e=(_0x4f95a5=this['_memberService']['getMember'](this[_0x4d1e88(0x1c8)],_0xaadd5e))==null?void 0x0:_0x4f95a5[_0x4d1e88(0x4ce)])!=null?_0x28101e:'Unknown\x20user',_0x5efd1f={'color':this[_0x4d1e88(0x3b1)][_0x4d1e88(0x3df)](_0xaadd5e),'name':_0xbd50a,'ranges':_0x179619},_0x357094=this[_0x4d1e88(0x54c)];_0x357094[_0x4d1e88(0x470)](_0xaadd5e,_0x5efd1f),this[_0x4d1e88(0x1da)][_0x4d1e88(0x4e8)](_0x357094);}['_onCursorDelete'](_0x2e8608){const _0x466950=_0x29b95d,{memberID:_0x2aed2c}=_0x2e8608[_0x466950(0x2eb)],_0x5ba81b=this[_0x466950(0x54c)];_0x5ba81b[_0x466950(0x485)](_0x2aed2c),this['_cursorInfo$']['next'](_0x5ba81b);}[_0x29b95d(0x427)](){const _0x1ba83c=_0x29b95d;var _0x9a1eaa;if(this[_0x1ba83c(0x3d1)]=!0x0,((_0x9a1eaa=this['_univerInstanceService'][_0x1ba83c(0x47e)]())==null?void 0x0:_0x9a1eaa[_0x1ba83c(0x25b)]())!==this[_0x1ba83c(0x1c8)])return;const _0x3fe44e=this[_0x1ba83c(0x42b)]['get'](y['TextSelectionManagerService'])[_0x1ba83c(0x3e6)](),_0x52db87=_0x3fe44e==null?void 0x0:_0x3fe44e[_0x1ba83c(0x2a0)](y[_0x1ba83c(0x422)]);Array[_0x1ba83c(0x4dd)](_0x52db87)&&_0x52db87[_0x1ba83c(0x49e)]>0x0&&this['_updateLocalCursor'](_0x52db87);}[_0x29b95d(0x4de)](){const _0x4f8324=_0x29b95d;this[_0x4f8324(0x3d1)]=!0x1;}};Ne=$s([V(0x2,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),V(0x3,h[_0x29b95d(0x563)](We)),V(0x4,h['Inject'](G)),V(0x5,h['Inject'](Ve)),V(0x6,u['ITransformService']),V(0x7,a[_0x29b95d(0x2e6)]),V(0x8,a[_0x29b95d(0x471)])],Ne);var ks=Object['defineProperty'],Bs=Object[_0x29b95d(0x516)],Fs=(_0x19000b,_0x573017,_0xae8264,_0x1323ba)=>{const _0x17e374=_0x29b95d;for(var _0x580e34=_0x1323ba>0x1?void 0x0:_0x1323ba?Bs(_0x573017,_0xae8264):_0x573017,_0x5a7144=_0x19000b[_0x17e374(0x49e)]-0x1,_0x4093d5;_0x5a7144>=0x0;_0x5a7144--)(_0x4093d5=_0x19000b[_0x5a7144])&&(_0x580e34=(_0x1323ba?_0x4093d5(_0x573017,_0xae8264,_0x580e34):_0x4093d5(_0x580e34))||_0x580e34);return _0x1323ba&&_0x580e34&&ks(_0x573017,_0xae8264,_0x580e34),_0x580e34;},Oe=(_0x3bb930,_0x5e82a9)=>(_0x40a08c,_0x3546c2)=>_0x5e82a9(_0x40a08c,_0x3546c2,_0x3bb930);let J=class extends a[_0x29b95d(0x275)]{constructor(_0x2e6e61,_0x44610a,_0x1205f3){const _0x5c6344=_0x29b95d;super(),d(this,_0x5c6344(0x3db),new Map()),d(this,'_entityInit$',new g[(_0x5c6344(0x1c9))]()),(this[_0x5c6344(0x50a)]=_0x2e6e61,this[_0x5c6344(0x42b)]=_0x44610a,this[_0x5c6344(0x3a6)]=_0x1205f3,this[_0x5c6344(0x2ec)]());}[_0x29b95d(0x545)](){const _0x139137=_0x29b95d;super[_0x139137(0x545)](),this[_0x139137(0x4c1)]['complete'](),this[_0x139137(0x3db)][_0x139137(0x3b0)](_0x14c31b=>_0x14c31b[_0x139137(0x545)]());}['getCollabCursors$'](_0x5a2a90){const _0x185f99=_0x29b95d;return this[_0x185f99(0x3db)][_0x185f99(0x237)](_0x5a2a90)?this['_entities'][_0x185f99(0x2d3)](_0x5a2a90)['cursorInfo$']:this[_0x185f99(0x4c1)][_0x185f99(0x1e4)](g[_0x185f99(0x4c7)](_0x11dc36=>_0x11dc36[_0x185f99(0x1c8)]===_0x5a2a90),g[_0x185f99(0x1df)](_0x43a734=>_0x43a734[_0x185f99(0x523)]));}[_0x29b95d(0x2ec)](){const _0x5649d5=_0x29b95d;this['_univerInstanceService'][_0x5649d5(0x314)](a[_0x5649d5(0x30a)][_0x5649d5(0x272)])['pipe'](g['takeUntil'](this[_0x5649d5(0x2e1)]))[_0x5649d5(0x1e8)](async _0x1974c0=>{const _0x4c1471=_0x5649d5,_0x10a659=_0x1974c0[_0x4c1471(0x25b)](),_0x33cba1=await this[_0x4c1471(0x32f)](_0x10a659);this[_0x4c1471(0x4c1)][_0x4c1471(0x4e8)](_0x33cba1),this['_entities']['set'](_0x10a659,_0x33cba1);}),this[_0x5649d5(0x50a)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x5649d5(0x2a2)])[_0x5649d5(0x1e4)](g[_0x5649d5(0x4d2)](this[_0x5649d5(0x2e1)]))['pipe'](g[_0x5649d5(0x4c7)](_0x53e627=>!_0x53e627['getUnitId']()[_0x5649d5(0x2f9)]('__')))[_0x5649d5(0x1e8)](async _0x1dcf37=>{const _0x22e861=_0x5649d5,_0x2d73a3=_0x1dcf37['getUnitId'](),_0x4d073d=await this[_0x22e861(0x305)](_0x2d73a3);this['_entityInit$']['next'](_0x4d073d),this[_0x22e861(0x3db)][_0x22e861(0x470)](_0x2d73a3,_0x4d073d);}),g[_0x5649d5(0x22e)](this[_0x5649d5(0x50a)]['getTypeOfUnitDisposed$'](a[_0x5649d5(0x30a)]['UNIVER_DOC']),this[_0x5649d5(0x50a)][_0x5649d5(0x4a3)](a[_0x5649d5(0x30a)][_0x5649d5(0x272)]))[_0x5649d5(0x1e4)](g['takeUntil'](this[_0x5649d5(0x2e1)]))[_0x5649d5(0x1e8)](_0x15e5bd=>{const _0xddcf4d=_0x5649d5,_0x4d805b=_0x15e5bd[_0xddcf4d(0x25b)](),_0x2fabf4=this['_entities'][_0xddcf4d(0x2d3)](_0x4d805b);_0x2fabf4&&(_0x2fabf4[_0xddcf4d(0x545)](),this['_entities'][_0xddcf4d(0x485)](_0x4d805b));});}async[_0x29b95d(0x32f)](_0x4044b4){const _0x53ccf8=_0x29b95d,_0x25a366=await this[_0x53ccf8(0x3a6)][_0x53ccf8(0x393)](_0x4044b4),_0x4beb95=this[_0x53ccf8(0x42b)][_0x53ccf8(0x1db)](ye,_0x4044b4,_0x25a366);return _0x4beb95[_0x53ccf8(0x32b)](),_0x4beb95;}async[_0x29b95d(0x305)](_0x25f1f0){const _0x4d4d50=_0x29b95d,_0x3169bb=await this[_0x4d4d50(0x3a6)][_0x4d4d50(0x393)](_0x25f1f0),_0xad179b=this[_0x4d4d50(0x42b)]['createInstance'](Ne,_0x25f1f0,_0x3169bb);return _0xad179b['init'](),_0xad179b;}};J=Fs([a['OnLifecycle'](a[_0x29b95d(0x51c)]['Starting'],J),Oe(0x0,a['IUniverInstanceService']),Oe(0x1,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),Oe(0x2,h[_0x29b95d(0x563)](exports['CollaborationSessionService']))],J);const ce=0x14,st=0xc8,De=0x4,Vs=0x5;function Ws(_0x4c659a,_0x493dce){const _0x301d30=_0x29b95d;let {radius:_0x3f0920,width:_0x3a695f,height:_0x244193}=_0x493dce;_0x3f0920=_0x3f0920!=null?_0x3f0920:0x0,_0x3a695f=_0x3a695f!=null?_0x3a695f:0x1e,_0x244193=_0x244193!=null?_0x244193:0x1e;let _0x55285f=0x0,_0x2a552c=0x0,_0x1a311a=0x0;_0x55285f=_0x2a552c=_0x1a311a=Math[_0x301d30(0x248)](_0x3f0920,_0x3a695f/0x2,_0x244193/0x2),_0x4c659a[_0x301d30(0x331)](),_0x4c659a[_0x301d30(0x39d)](_0x55285f,0x0),_0x4c659a[_0x301d30(0x451)](_0x3a695f-_0x2a552c,0x0),_0x4c659a[_0x301d30(0x3c1)](_0x3a695f-_0x2a552c,_0x2a552c,_0x2a552c,Math['PI']*0x3/0x2,0x0,!0x1),_0x4c659a[_0x301d30(0x451)](_0x3a695f,_0x244193-_0x1a311a),_0x4c659a['arc'](_0x3a695f-_0x1a311a,_0x244193-_0x1a311a,_0x1a311a,0x0,Math['PI']/0x2,!0x1),_0x4c659a[_0x301d30(0x451)](0x0,_0x244193),_0x4c659a[_0x301d30(0x451)](0x0,_0x55285f),_0x4c659a[_0x301d30(0x3c1)](_0x55285f,_0x55285f,_0x55285f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4c659a[_0x301d30(0x404)](),_0x493dce[_0x301d30(0x2ae)]&&(_0x4c659a['save'](),_0x4c659a[_0x301d30(0x33c)]=_0x493dce[_0x301d30(0x2ae)],_0x493dce[_0x301d30(0x208)]===_0x301d30(0x367)?_0x4c659a[_0x301d30(0x2ae)](_0x301d30(0x367)):_0x4c659a[_0x301d30(0x2ae)](),_0x4c659a[_0x301d30(0x3bc)]());}class Ce extends R['Shape']{constructor(_0x384f2e,_0x355f45){const _0x56c55c=_0x29b95d;super(_0x384f2e,_0x355f45),d(this,_0x56c55c(0x1de)),d(this,_0x56c55c(0x3cf)),(this['color']=_0x355f45==null?void 0x0:_0x355f45['color'],this[_0x56c55c(0x3cf)]=_0x355f45==null?void 0x0:_0x355f45[_0x56c55c(0x3cf)]);}static[_0x29b95d(0x3c0)](_0x5577ab,_0x409354){const _0x2e3dc3=_0x29b95d,{text:_0x2d0ac8,color:_0x22cd71}=_0x409354;_0x5577ab[_0x2e3dc3(0x390)](),_0x5577ab[_0x2e3dc3(0x430)]=_0x2e3dc3(0x494);const _0x322eab=_0x5577ab[_0x2e3dc3(0x496)](_0x2d0ac8)[_0x2e3dc3(0x3da)],_0x2f73b2=Math['min'](_0x322eab+0x2*De,st);Ws(_0x5577ab,{'height':ce,'radius':0x4,'width':_0x2f73b2,'fill':_0x22cd71,'evented':!0x1}),_0x5577ab[_0x2e3dc3(0x33c)]=_0x2e3dc3(0x34d);const _0x59437f=De,_0x41badd=ce-Vs,_0x27089b=st-0x2*De;if(_0x322eab>_0x27089b){let _0x124903='',_0x4bec74=0x0;for(const _0x30b15e of _0x2d0ac8){const _0x2d8130=_0x5577ab[_0x2e3dc3(0x496)](_0x30b15e)[_0x2e3dc3(0x3da)];if(_0x4bec74+_0x2d8130<=_0x27089b-_0x5577ab['measureText'](_0x2e3dc3(0x202))[_0x2e3dc3(0x3da)])_0x124903+=_0x30b15e,_0x4bec74+=_0x2d8130;else{_0x124903+=_0x2e3dc3(0x202);break;}}_0x5577ab['fillText'](_0x124903,_0x59437f,_0x41badd);}else _0x5577ab[_0x2e3dc3(0x565)](_0x2d0ac8,_0x59437f,_0x41badd);_0x5577ab['restore']();}['_draw'](_0x487948){const _0x154868=_0x29b95d;Ce[_0x154868(0x3c0)](_0x487948,this);}}const Gs=0x1,Ys=1.5;class Ks extends R[_0x29b95d(0x4fb)]{constructor(_0x143649,_0x2a8505){const _0x3bd0f6=_0x29b95d;super(_0x143649,_0x2a8505),d(this,_0x3bd0f6(0x2c3)),d(this,_0x3bd0f6(0x1d5),!0x1),d(this,_0x3bd0f6(0x4ef)),d(this,_0x3bd0f6(0x362),''),d(this,_0x3bd0f6(0x2e0),_0x3bd0f6(0x53d)),(_0x2a8505&&this[_0x3bd0f6(0x4ec)](_0x2a8505),this[_0x3bd0f6(0x20b)]['subscribeEvent'](()=>this[_0x3bd0f6(0x4ec)]({'hovered':!0x0})),this[_0x3bd0f6(0x568)][_0x3bd0f6(0x34f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x29b95d(0x4ec)](_0x4b1e36){const _0x5c9634=_0x29b95d;var _0x58a489,_0x2aac6b,_0x1f9b28,_0x3d87db,_0x2d54af;this[_0x5c9634(0x2c3)]=(_0x58a489=_0x4b1e36['color'])!=null?_0x58a489:this[_0x5c9634(0x2c3)],this[_0x5c9634(0x1d5)]=(_0x2aac6b=_0x4b1e36['hovered'])!=null?_0x2aac6b:this['_hovered'],this[_0x5c9634(0x4ef)]=(_0x1f9b28=_0x4b1e36['range'])!=null?_0x1f9b28:this[_0x5c9634(0x4ef)],this['_name']=(_0x3d87db=_0x4b1e36[_0x5c9634(0x4ce)])!=null?_0x3d87db:this[_0x5c9634(0x362)],this[_0x5c9634(0x2e0)]=(_0x2d54af=_0x4b1e36[_0x5c9634(0x309)])!=null?_0x2d54af:this[_0x5c9634(0x2e0)],this[_0x5c9634(0x33e)]({'width':_0x4b1e36[_0x5c9634(0x3da)],'height':_0x4b1e36[_0x5c9634(0x52b)]});}['onMouseMove'](_0x3e7401){const _0x25facc=_0x29b95d,{row:_0x1f5532,column:_0x1a8511}=_0x3e7401;if(_0x1f5532>=this[_0x25facc(0x4ef)][_0x25facc(0x1c5)]&&_0x1f5532<=this[_0x25facc(0x4ef)][_0x25facc(0x4b8)]&&_0x1a8511>=this[_0x25facc(0x4ef)][_0x25facc(0x3a8)]&&_0x1a8511<=this[_0x25facc(0x4ef)]['endColumn']){this[_0x25facc(0x4ec)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x285fe5){return!0x1;}[_0x29b95d(0x4cf)](_0x43a833){const _0x230c00=_0x29b95d;R['Rect'][_0x230c00(0x3c0)](_0x43a833,{'width':this[_0x230c00(0x3da)],'height':this['height'],'strokeWidth':Ys,'stroke':this['_color'],'evented':!0x1}),this['_hovered']&&(_0x43a833[_0x230c00(0x390)](),_0x43a833[_0x230c00(0x28d)](0x1,0x0,0x0,0x1,this[_0x230c00(0x3da)],this[_0x230c00(0x2e0)]==='bottom'?0x0:-ce),Ce[_0x230c00(0x3c0)](_0x43a833,{'text':this['_name'],'color':this['_color']}),_0x43a833[_0x230c00(0x3bc)]());}}var Xs=Object[_0x29b95d(0x2f8)],qs=Object['getOwnPropertyDescriptor'],zs=(_0x5359d3,_0x5af6b8,_0x2a8141,_0x4b5105)=>{const _0x505a4f=_0x29b95d;for(var _0x36e855=_0x4b5105>0x1?void 0x0:_0x4b5105?qs(_0x5af6b8,_0x2a8141):_0x5af6b8,_0x3d2f1e=_0x5359d3[_0x505a4f(0x49e)]-0x1,_0x1f4a15;_0x3d2f1e>=0x0;_0x3d2f1e--)(_0x1f4a15=_0x5359d3[_0x3d2f1e])&&(_0x36e855=(_0x4b5105?_0x1f4a15(_0x5af6b8,_0x2a8141,_0x36e855):_0x1f4a15(_0x36e855))||_0x36e855);return _0x4b5105&&_0x36e855&&Xs(_0x5af6b8,_0x2a8141,_0x36e855),_0x36e855;},le=(_0x4a809e,_0x395078)=>(_0x3ced77,_0x233c2f)=>_0x395078(_0x3ced77,_0x233c2f,_0x4a809e);const Js=0x1389;let ue=class extends a['RxDisposable']{constructor(_0x3d5636,_0x11c043,_0x25f230,_0x36c754){const _0x307b40=_0x29b95d;super(),d(this,_0x307b40(0x318),new Set()),d(this,_0x307b40(0x4e7),null),(this['_collabCursorController']=_0x3d5636,this[_0x307b40(0x50a)]=_0x11c043,this[_0x307b40(0x253)]=_0x25f230,this[_0x307b40(0x207)]=_0x36c754,this[_0x307b40(0x2ec)]());}get[_0x29b95d(0x24c)](){const _0x4f3ca8=_0x29b95d;return this[_0x4f3ca8(0x253)]['getRenderById'](this['_univerInstanceService']['getCurrentUnitForType'](a[_0x4f3ca8(0x30a)][_0x4f3ca8(0x272)])['getUnitId']())['with'](ee['SheetSkeletonManagerService']);}get[_0x29b95d(0x48b)](){const _0x58e3c6=_0x29b95d;return this[_0x58e3c6(0x50a)][_0x58e3c6(0x21d)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x58e3c6(0x25b)]();}[_0x29b95d(0x2ec)](){const _0x1d81c9=_0x29b95d;this[_0x1d81c9(0x24c)][_0x1d81c9(0x3e9)][_0x1d81c9(0x1e4)](T[_0x1d81c9(0x4d2)](this[_0x1d81c9(0x2e1)]),T[_0x1d81c9(0x1df)](_0x42e49a=>{const _0x5abea1=_0x1d81c9;if(_0x42e49a){const _0x59adf8=_0x42e49a[_0x5abea1(0x572)];return g['combineLatest'](this[_0x5abea1(0x3ff)][_0x5abea1(0x51d)](this[_0x5abea1(0x48b)]),this[_0x5abea1(0x207)][_0x5abea1(0x474)])[_0x5abea1(0x1e4)](T[_0x5abea1(0x2a0)](([_0x304ce9,_0xe794e9])=>{const _0x26e70f=_0x5abea1,_0x1dda1e=new Map();return _0x304ce9[_0x26e70f(0x3b0)]((_0x2440da,_0x426eb3)=>{const _0x1d1235=_0x26e70f;if(_0x2440da['sheetID']===_0x59adf8){const _0x499746={..._0x2440da};_0x499746[_0x1d1235(0x1de)]=_0xe794e9[_0x2440da['color']],_0x1dda1e['set'](_0x426eb3,_0x499746);}}),{'skeleton':_0x42e49a,'cursors':_0x1dda1e};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xaed3c9,cursors:_0x25e2db})=>{const _0x63e4b7=_0x1d81c9;this['_removeCollabCursors'](),_0xaed3c9&&this[_0x63e4b7(0x323)](_0xaed3c9,_0x25e2db);}),this['_sheetSkeletonManagerService'][_0x1d81c9(0x3e9)][_0x1d81c9(0x1e8)](_0x340b05=>{const _0x3e9993=_0x1d81c9;if(_0x340b05==null)return;const {skeleton:_0x50d443}=_0x340b05,_0x35d48d=this[_0x3e9993(0x253)][_0x3e9993(0x334)](this[_0x3e9993(0x48b)]),{scene:_0x4b318e}=_0x35d48d;_0x4b318e[_0x3e9993(0x44d)]['subscribeEvent'](He(_0x5b1217=>{const _0x1b711d=_0x3e9993;var _0x4c04d8,_0x121054;const {offsetX:_0x2280e3,offsetY:_0x418b1c}=_0x5b1217,{x:_0x3382c9,y:_0x1797e4}=_0x4b318e[_0x1b711d(0x3e2)](R['Vector2'][_0x1b711d(0x225)]([_0x2280e3,_0x418b1c])),{scaleX:_0x4d02f0,scaleY:_0x223a21}=_0x4b318e['getAncestorScale'](),_0x45d337=_0x4b318e['getViewport'](ee[_0x1b711d(0x2a6)]['VIEW_MAIN']),_0x307afd=_0x4b318e['getScrollXYByRelativeCoords'](R[_0x1b711d(0x3ee)][_0x1b711d(0x225)]([_0x3382c9,_0x1797e4]),_0x45d337),_0x443258=_0x50d443[_0x1b711d(0x4e3)](_0x2280e3,_0x418b1c,_0x4d02f0,_0x223a21,_0x307afd);((_0x4c04d8=this[_0x1b711d(0x4e7)])==null?void 0x0:_0x4c04d8['column'])===_0x443258[_0x1b711d(0x493)]&&((_0x121054=this[_0x1b711d(0x4e7)])==null?void 0x0:_0x121054['row'])===_0x443258[_0x1b711d(0x1f3)]||this['_cursors']['forEach'](_0x5b8e0d=>{const _0x594bfb=_0x1b711d;_0x5b8e0d[_0x594bfb(0x440)](_0x443258);});},0x64));});}[_0x29b95d(0x323)](_0x184208,_0x28a40e){const _0x1b77a4=_0x29b95d;var _0x5335a1;const _0x133473=(_0x5335a1=this[_0x1b77a4(0x24c)][_0x1b77a4(0x2f2)]())==null?void 0x0:_0x5335a1['skeleton'];if(!_0x133473)return;const _0x6d9e8c=this[_0x1b77a4(0x3b6)]();if(!_0x6d9e8c)return;this[_0x1b77a4(0x318)][_0x1b77a4(0x3b0)](_0x57464f=>{_0x57464f['makeDirty']();});const {scene:_0x4febc6}=_0x6d9e8c,_0x576dff=Zs(Array['from'](_0x28a40e[_0x1b77a4(0x40f)]()))[_0x1b77a4(0x2a0)](_0x2ffb7d=>{const _0x600ffe=_0x1b77a4,{color:_0x465e9a,range:_0x1f5ede,name:_0x1e7639,selection:_0xc2b809,sheetID:_0x2e9348}=_0x2ffb7d,{startColumn:_0x44a89f,startRow:_0x3dd5aa,endColumn:_0x7e1069,endRow:_0x356b16}=_0x1f5ede,_0x48a7f1=ee[_0x600ffe(0x506)](_0x3dd5aa,_0x44a89f,_0x4febc6,_0x133473),_0x5d6676=ee[_0x600ffe(0x506)](_0x356b16,_0x7e1069,_0x4febc6,_0x133473),{columnHeaderHeightAndMarginTop:_0x37eb47}=_0x133473,{startX:_0x1cb213,startY:_0x228c79}=_0x48a7f1,{endX:_0xf62c51,endY:_0x14c7ef}=_0x5d6676,_0x430e54=_0xf62c51-_0x1cb213,_0x14d3a1=_0x14c7ef-_0x228c79,_0x50140d={'labelPosition':_0x228c79-_0x37eb47>=ce?'top':_0x600ffe(0x27e),'sheetID':_0x2e9348,'range':_0x1f5ede,'color':_0x465e9a,'name':_0x1e7639,'selection':_0xc2b809,'left':_0x1cb213,'top':_0x228c79,'width':_0x430e54,'height':_0x14d3a1,'evented':!0x1,'zIndex':Js};return new Ks(_0x1e7639,_0x50140d);});_0x4febc6[_0x1b77a4(0x2f1)](_0x576dff,Gs),this['_cursors']=new Set(_0x576dff);}[_0x29b95d(0x350)](){const _0x525332=_0x29b95d;var _0xbb02df;(_0xbb02df=this[_0x525332(0x318)])==null||_0xbb02df[_0x525332(0x3b0)](_0x4ae4c4=>_0x4ae4c4[_0x525332(0x545)]());}[_0x29b95d(0x3b6)](){const _0x20cd48=_0x29b95d;return ee[_0x20cd48(0x1ec)](this[_0x20cd48(0x50a)],this[_0x20cd48(0x253)]);}};ue=zs([a['OnLifecycle'](a[_0x29b95d(0x51c)][_0x29b95d(0x4ba)],ue),le(0x0,h['Inject'](J)),le(0x1,a[_0x29b95d(0x2e6)]),le(0x2,R[_0x29b95d(0x21f)]),le(0x3,h[_0x29b95d(0x563)](a[_0x29b95d(0x336)]))],ue);function Zs(_0x51e332){const _0x445f45=_0x29b95d,_0x1b0255=new Map();return _0x51e332[_0x445f45(0x3b0)](_0x871232=>{const _0x13fd4d=_0x445f45;if(_0x1b0255[_0x13fd4d(0x237)](_0x871232[_0x13fd4d(0x2ff)])){const _0x503d4a=_0x1b0255[_0x13fd4d(0x2d3)](_0x871232['selection']);_0x503d4a[_0x13fd4d(0x4ce)]+=',\x20'+_0x871232[_0x13fd4d(0x4ce)];}else _0x1b0255[_0x13fd4d(0x470)](_0x871232[_0x13fd4d(0x2ff)],_0x871232);}),Array[_0x445f45(0x39a)](_0x1b0255[_0x445f45(0x40f)]());}var M=function(){const _0x44d148=_0x29b95d;return M=Object[_0x44d148(0x2b1)]||function(_0x292b09){const _0x783bf7=_0x44d148;for(var _0x5330b9,_0x90e94f=0x1,_0x396c59=arguments['length'];_0x90e94f<_0x396c59;_0x90e94f++){_0x5330b9=arguments[_0x90e94f];for(var _0x39cbe8 in _0x5330b9)Object[_0x783bf7(0x4e6)][_0x783bf7(0x3e8)][_0x783bf7(0x3a1)](_0x5330b9,_0x39cbe8)&&(_0x292b09[_0x39cbe8]=_0x5330b9[_0x39cbe8]);}return _0x292b09;},M[_0x44d148(0x2a1)](this,arguments);},Qs=function(_0x3bab3e,_0x2051dd){const _0x3e9953=_0x29b95d;var _0xb6798d={};for(var _0x17ac77 in _0x3bab3e)Object[_0x3e9953(0x4e6)]['hasOwnProperty'][_0x3e9953(0x3a1)](_0x3bab3e,_0x17ac77)&&_0x2051dd[_0x3e9953(0x424)](_0x17ac77)<0x0&&(_0xb6798d[_0x17ac77]=_0x3bab3e[_0x17ac77]);if(_0x3bab3e!=null&&typeof Object['getOwnPropertySymbols']==_0x3e9953(0x4fc)){for(var _0x553c57=0x0,_0x17ac77=Object['getOwnPropertySymbols'](_0x3bab3e);_0x553c57<_0x17ac77[_0x3e9953(0x49e)];_0x553c57++)_0x2051dd[_0x3e9953(0x424)](_0x17ac77[_0x553c57])<0x0&&Object['prototype'][_0x3e9953(0x203)][_0x3e9953(0x3a1)](_0x3bab3e,_0x17ac77[_0x553c57])&&(_0xb6798d[_0x17ac77[_0x553c57]]=_0x3bab3e[_0x17ac77[_0x553c57]]);}return _0xb6798d;},Ge=L['forwardRef'](function(_0xe3934b,_0x26252d){const _0x22349e=_0x29b95d;var _0x3196cd=_0xe3934b[_0x22349e(0x22b)],_0x13a18e=_0xe3934b['id'],_0x250c6b=_0xe3934b[_0x22349e(0x463)],_0x17e64f=_0xe3934b[_0x22349e(0x49d)],_0x17e185=Qs(_0xe3934b,['icon','id',_0x22349e(0x463),_0x22349e(0x49d)]),_0x49bb76=_0x22349e(0x235)['concat'](_0x13a18e,'\x20')[_0x22349e(0x313)](_0x250c6b||'')['trim'](),_0x390b76=L[_0x22349e(0x29e)]('_'[_0x22349e(0x313)](si()));return Rt(_0x3196cd,''[_0x22349e(0x313)](_0x13a18e),{'defIds':_0x3196cd[_0x22349e(0x499)],'idSuffix':_0x390b76['current']},M({'ref':_0x26252d,'className':_0x49bb76},_0x17e185),_0x17e64f);});function Rt(_0x32be78,_0x4401dc,_0x415b88,_0x501b0b,_0x56717b){const _0x300c1c=_0x29b95d;return L[_0x300c1c(0x569)](_0x32be78[_0x300c1c(0x239)],M(M({'key':_0x4401dc},ei(_0x32be78,_0x415b88,_0x56717b)),_0x501b0b),(ti(_0x32be78,_0x415b88)[_0x300c1c(0x45d)]||[])[_0x300c1c(0x2a0)](function(_0x23247b,_0x2d5ccb){const _0x2e932f=_0x300c1c;return Rt(_0x23247b,''[_0x2e932f(0x313)](_0x4401dc,'-')[_0x2e932f(0x313)](_0x32be78[_0x2e932f(0x239)],'-')[_0x2e932f(0x313)](_0x2d5ccb),_0x415b88,void 0x0,_0x56717b);}));}function ei(_0x2c3a20,_0x24b1c8,_0x487329){const _0x1e39c1=_0x29b95d;var _0x2854ab=M({},_0x2c3a20[_0x1e39c1(0x326)]);_0x487329!=null&&_0x487329[_0x1e39c1(0x44a)]&&_0x2854ab[_0x1e39c1(0x2ae)]===_0x1e39c1(0x44a)&&(_0x2854ab['fill']=_0x487329['colorChannel1']);var _0x5a96a5=_0x24b1c8[_0x1e39c1(0x499)];return!_0x5a96a5||_0x5a96a5['length']===0x0||(_0x2c3a20['tag']==='use'&&_0x2854ab['xlink:href']&&(_0x2854ab[_0x1e39c1(0x214)]=_0x2854ab[_0x1e39c1(0x214)]+_0x24b1c8[_0x1e39c1(0x307)]),Object[_0x1e39c1(0x42f)](_0x2854ab)[_0x1e39c1(0x3b0)](function(_0x3c0253){const _0x627c40=_0x1e39c1;var _0x1de044=_0x3c0253[0x0],_0x2b8f29=_0x3c0253[0x1];typeof _0x2b8f29==_0x627c40(0x4a9)&&(_0x2854ab[_0x1de044]=_0x2b8f29[_0x627c40(0x51b)](/url\(#(.*)\)/,_0x627c40(0x439)[_0x627c40(0x313)](_0x24b1c8[_0x627c40(0x307)],')')));})),_0x2854ab;}function ti(_0x3f731f,_0x4facb0){const _0x337d79=_0x29b95d;var _0x4c00f9,_0x59152c=_0x4facb0[_0x337d79(0x499)];return!_0x59152c||_0x59152c[_0x337d79(0x49e)]===0x0?_0x3f731f:_0x3f731f[_0x337d79(0x239)]===_0x337d79(0x319)&&(!((_0x4c00f9=_0x3f731f['children'])===null||_0x4c00f9===void 0x0)&&_0x4c00f9['length'])?M(M({},_0x3f731f),{'children':_0x3f731f[_0x337d79(0x45d)][_0x337d79(0x2a0)](function(_0x5c4168){const _0x477195=_0x337d79;return typeof _0x5c4168[_0x477195(0x326)]['id']==_0x477195(0x4a9)&&_0x59152c&&_0x59152c[_0x477195(0x424)](_0x5c4168[_0x477195(0x326)]['id'])>-0x1?M(M({},_0x5c4168),{'attrs':M(M({},_0x5c4168[_0x477195(0x326)]),{'id':_0x5c4168[_0x477195(0x326)]['id']+_0x4facb0[_0x477195(0x307)]})}):_0x5c4168;})}):_0x3f731f;}function si(){const _0x4ae144=_0x29b95d;return Math[_0x4ae144(0x2ca)]()[_0x4ae144(0x544)](0x24)[_0x4ae144(0x3d8)](0x2,0x8);}Ge[_0x29b95d(0x546)]='UniverIcon';var ii={'tag':'svg','attrs':{'fill':_0x29b95d(0x316),'viewBox':'0\x200\x2016\x2016','width':_0x29b95d(0x243),'height':_0x29b95d(0x243)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x29b95d(0x54f),'strokeLinecap':'round','strokeLinejoin':_0x29b95d(0x467),'strokeWidth':1.2}}]},{'tag':_0x29b95d(0x319),'attrs':{},'children':[{'tag':_0x29b95d(0x34a),'attrs':{'id':_0x29b95d(0x449)},'children':[{'tag':_0x29b95d(0x245),'attrs':{'fill':_0x29b95d(0x2d4),'d':_0x29b95d(0x4da)}}]}]}],'defIds':[_0x29b95d(0x449)]},Ot=L['forwardRef'](function(_0x4b186b,_0x17f674){const _0x3488c8=_0x29b95d;return L[_0x3488c8(0x569)](Ge,Object['assign']({},_0x4b186b,{'id':'off-line-single','ref':_0x17f674,'icon':ii}));});Ot[_0x29b95d(0x546)]=_0x29b95d(0x1f0);var ni={'tag':_0x29b95d(0x455),'attrs':{'fill':_0x29b95d(0x316),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x29b95d(0x243)},'children':[{'tag':'g','attrs':{'clipPath':_0x29b95d(0x3b7)},'children':[{'tag':_0x29b95d(0x245),'attrs':{'stroke':'currentColor','d':_0x29b95d(0x252),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x29b95d(0x319),'attrs':{},'children':[{'tag':_0x29b95d(0x34a),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x29b95d(0x245),'attrs':{'fill':'#fff','d':_0x29b95d(0x4da),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Dt=L[_0x29b95d(0x1ea)](function(_0x1147f5,_0x2306b7){const _0x1ce8e9=_0x29b95d;return L[_0x1ce8e9(0x569)](Ge,Object['assign']({},_0x1147f5,{'id':_0x1ce8e9(0x1d8),'ref':_0x2306b7,'icon':ni}));});Dt[_0x29b95d(0x546)]=_0x29b95d(0x51f);const ri='univer-online-status-icon',oi=_0x29b95d(0x37d),ai=_0x29b95d(0x3fc),ci='univer-online',li='univer-offline',ie={'onlineStatusIcon':ri,'onlineStatusTitle':oi,'onlineStatus':ai,'online':ci,'offline':li};function hi(_0x8772b8){const _0x437cc8=_0x29b95d;switch(_0x8772b8){case U[_0x437cc8(0x234)]:return _0x437cc8(0x220);case U[_0x437cc8(0x38c)]:return'collabStatus.conflict';case U[_0x437cc8(0x2e3)]:return'collabStatus.fetchMiss';case U[_0x437cc8(0x415)]:return _0x437cc8(0x54d);case U['PENDING']:case U['AWAITING']:case U[_0x437cc8(0x4ae)]:return _0x437cc8(0x3c7);case U[_0x437cc8(0x254)]:return _0x437cc8(0x4bb);}}function Ut(_0x416522){const _0x2a5fea=_0x29b95d,{status$:_0x1eddb6}=_0x416522,_0x4bd887=N['useObservable'](_0x1eddb6,U[_0x2a5fea(0x415)]),_0x17d5dd=ct[_0x2a5fea(0x1e6)](a[_0x2a5fea(0x3c8)]),_0x59292d=_0x4bd887!==U[_0x2a5fea(0x234)],_0x4d4f4f=_0x17d5dd['t'](hi(_0x4bd887)),_0x52ee9d=xt(ie[_0x2a5fea(0x295)],{[ie[_0x2a5fea(0x513)]]:_0x59292d,[ie[_0x2a5fea(0x35d)]]:!_0x59292d}),_0x17f022=_0x59292d?L[_0x2a5fea(0x569)](Dt,null):L[_0x2a5fea(0x569)](Ot,null);return L[_0x2a5fea(0x569)]('div',{'className':_0x52ee9d},L['createElement'](_0x2a5fea(0x465),{'className':ie['onlineStatusIcon']},_0x17f022),L[_0x2a5fea(0x569)](_0x2a5fea(0x465),{'className':ie[_0x2a5fea(0x570)]},_0x4d4f4f));}var _i=Object[_0x29b95d(0x2f8)],ui=Object[_0x29b95d(0x516)],di=(_0x366acf,_0x54ca92,_0x5cfc46,_0x2adaf4)=>{const _0x475e6e=_0x29b95d;for(var _0xd62b76=_0x2adaf4>0x1?void 0x0:_0x2adaf4?ui(_0x54ca92,_0x5cfc46):_0x54ca92,_0x4d8a69=_0x366acf[_0x475e6e(0x49e)]-0x1,_0x33f4e0;_0x4d8a69>=0x0;_0x4d8a69--)(_0x33f4e0=_0x366acf[_0x4d8a69])&&(_0xd62b76=(_0x2adaf4?_0x33f4e0(_0x54ca92,_0x5cfc46,_0xd62b76):_0x33f4e0(_0xd62b76))||_0xd62b76);return _0x2adaf4&&_0xd62b76&&_i(_0x54ca92,_0x5cfc46,_0xd62b76),_0xd62b76;},he=(_0x5d7af8,_0x372d3c)=>(_0x15e628,_0x49ce91)=>_0x372d3c(_0x15e628,_0x49ce91,_0x5d7af8);exports[_0x29b95d(0x529)]=class extends a[_0x29b95d(0x1dd)]{constructor(_0x5837e1,_0x494ad5,_0x5018b8,_0x18dc84){const _0xf335a8=_0x29b95d;super(),d(this,_0xf335a8(0x322),new g[(_0xf335a8(0x3cd))](U[_0xf335a8(0x415)])),(this['_univerInstanceService']=_0x5837e1,this[_0xf335a8(0x47d)]=_0x494ad5,this[_0xf335a8(0x42b)]=_0x5018b8,this[_0xf335a8(0x2d9)]=_0x18dc84,this[_0xf335a8(0x555)](),this['_initStatusListener']());}[_0x29b95d(0x555)](){const _0x10799f=_0x29b95d;this[_0x10799f(0x2f6)](this[_0x10799f(0x47d)][_0x10799f(0x29b)](N[_0x10799f(0x29a)][_0x10799f(0x230)],()=>ct[_0x10799f(0x411)](Si({'status$':this[_0x10799f(0x322)][_0x10799f(0x56a)]()}),this[_0x10799f(0x42b)])));}['_initStatusListener'](){const _0x3d1d1a=_0x29b95d;this[_0x3d1d1a(0x2f6)](a[_0x3d1d1a(0x273)](this[_0x3d1d1a(0x50a)]['focused$'][_0x3d1d1a(0x1e4)](g['switchMap'](()=>{const _0x20cea9=_0x3d1d1a,_0x2937cd=this[_0x20cea9(0x50a)]['getFocusedUnit']();return _0x2937cd?this['_collaborationController']['getCollabEntity$'](_0x2937cd[_0x20cea9(0x25b)]()):g['of'](null);}),g['switchMap'](_0x13129e=>_0x13129e?_0x13129e['status$']:g['of'](U[_0x3d1d1a(0x415)])))['subscribe'](_0x56f69e=>{const _0x16a8d9=_0x3d1d1a;this['_status$'][_0x16a8d9(0x4e8)](_0x56f69e);})));}},exports[_0x29b95d(0x529)]=di([a[_0x29b95d(0x387)](a[_0x29b95d(0x51c)]['Starting'],exports['DesktopCollaborationStatusDisplayController']),he(0x0,a[_0x29b95d(0x2e6)]),he(0x1,N['IUIPartsService']),he(0x2,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),he(0x3,h[_0x29b95d(0x563)](exports[_0x29b95d(0x4cd)]))],exports[_0x29b95d(0x529)]);function Si(_0x7529d9){const {status$:_0x3365c8}=_0x7529d9;return function(){return L['createElement'](Ut,{'status$':_0x3365c8});};}const Ye=h[_0x29b95d(0x250)]('uni.network.url-service');var vi=Object[_0x29b95d(0x2f8)],gi=Object[_0x29b95d(0x516)],fi=(_0x24112d,_0x48f14c,_0x2a6bfa,_0x5e4cd3)=>{const _0x50edf5=_0x29b95d;for(var _0x4c1843=_0x5e4cd3>0x1?void 0x0:_0x5e4cd3?gi(_0x48f14c,_0x2a6bfa):_0x48f14c,_0x5e3270=_0x24112d[_0x50edf5(0x49e)]-0x1,_0x389c97;_0x5e3270>=0x0;_0x5e3270--)(_0x389c97=_0x24112d[_0x5e3270])&&(_0x4c1843=(_0x5e4cd3?_0x389c97(_0x48f14c,_0x2a6bfa,_0x4c1843):_0x389c97(_0x4c1843))||_0x4c1843);return _0x5e4cd3&&_0x4c1843&&vi(_0x48f14c,_0x2a6bfa,_0x4c1843),_0x4c1843;},z=(_0x3b4adc,_0xee2a35)=>(_0x58b843,_0x172611)=>_0xee2a35(_0x58b843,_0x172611,_0x3b4adc);exports[_0x29b95d(0x1ca)]=class extends a[_0x29b95d(0x275)]{constructor(_0x5dfe07,_0x5e5c23,_0x220a7d,_0x5640d0,_0x5331d4,_0x71a71e){const _0x32e834=_0x29b95d;super(),this[_0x32e834(0x49c)]=_0x5dfe07,this[_0x32e834(0x3cb)]=_0x5e5c23,this[_0x32e834(0x4c9)]=_0x220a7d,this[_0x32e834(0x3bf)]=_0x5640d0,this['_snapshotService']=_0x5331d4,_0x71a71e?_0x71a71e==null||_0x71a71e['whenReady']()['then'](()=>this[_0x32e834(0x2ec)]()):(this[_0x32e834(0x3cb)]['debug'](_0x32e834(0x28b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x32e834(0x2ec)]());}async[_0x29b95d(0x2ec)](){const _0x43d6b5=_0x29b95d,_0x4ed25b=this[_0x43d6b5(0x49c)][_0x43d6b5(0x2ab)](_0x43d6b5(0x2e4)),_0x5ce5b4=this[_0x43d6b5(0x49c)][_0x43d6b5(0x2ab)](_0x43d6b5(0x46c));if(!_0x4ed25b||!_0x5ce5b4){this['_logService']['debug'](_0x43d6b5(0x28b),_0x43d6b5(0x47a));return;}switch(Number(_0x5ce5b4)){case j[_0x43d6b5(0x272)]:{const _0x52bee4=await this[_0x43d6b5(0x50c)](_0x4ed25b);this['_setupSubUnitSync'](_0x52bee4);break;}case j[_0x43d6b5(0x2a2)]:{await this[_0x43d6b5(0x32c)](_0x4ed25b);break;}default:{this['_logService']['error'](_0x43d6b5(0x28b),_0x43d6b5(0x48a));break;}}}async[_0x29b95d(0x3b2)](_0x26003c){const _0x5813c0=_0x29b95d;await this['_updateSubUnitFromURLParams'](_0x26003c),_0x26003c[_0x5813c0(0x448)][_0x5813c0(0x1e4)](g['takeUntil'](this[_0x5813c0(0x2e1)]))['subscribe'](_0x5f0bcc=>{const _0x53bd7e=_0x5813c0;_0x5f0bcc&&this[_0x53bd7e(0x56e)](_0x5f0bcc);}),this[_0x5813c0(0x49c)][_0x5813c0(0x2f5)][_0x5813c0(0x1e4)](g['takeUntil'](this[_0x5813c0(0x2e1)]))[_0x5813c0(0x1e8)](()=>this['_updateSubUnitFromURLParams'](_0x26003c));}[_0x29b95d(0x56e)](_0x347391,_0x53dbc4=!0x1){const _0x15db79=_0x29b95d,_0xddd787=this['_urlService'][_0x15db79(0x2ab)](_0x15db79(0x3f7));_0x347391[_0x15db79(0x3a5)]()!==_0xddd787&&this[_0x15db79(0x49c)][_0x15db79(0x3ca)](_0x15db79(0x3f7),_0x347391['getSheetId'](),_0x53dbc4);}async[_0x29b95d(0x366)](_0x5970a2){const _0x4cd995=_0x29b95d;var _0x51b454;const _0x3e284a=this[_0x4cd995(0x49c)]['getParam'](_0x4cd995(0x3f7));if(!_0x3e284a||!_0x5970a2[_0x4cd995(0x3f5)](_0x3e284a)){const _0xa54230=_0x5970a2[_0x4cd995(0x49a)]()[0x0],_0x2c4ef8=_0x5970a2[_0x4cd995(0x3f5)](_0xa54230);if(!_0x2c4ef8)return;this['_updateURLWithCurrentState'](_0x2c4ef8,!0x0),await this[_0x4cd995(0x4c9)]['executeCommand'](E[_0x4cd995(0x347)]['id'],{'unitId':_0x5970a2[_0x4cd995(0x25b)](),'subUnitId':_0xa54230});return;}((_0x51b454=_0x5970a2[_0x4cd995(0x3d5)]())==null?void 0x0:_0x51b454['getSheetId']())!==_0x3e284a&&await this[_0x4cd995(0x4c9)][_0x4cd995(0x369)](E['SetWorksheetActivateCommand']['id'],{'unitId':_0x5970a2['getUnitId'](),'subUnitId':_0x3e284a});}async[_0x29b95d(0x50c)](_0x51f289){const _0x1b4d2c=_0x29b95d;let _0x3b5988=0x0;const _0x5593d2=await this['_localCacheService'][_0x1b4d2c(0x317)](_0x51f289);return _0x5593d2&&(_0x5593d2[_0x1b4d2c(0x458)]||_0x5593d2[_0x1b4d2c(0x34c)]['length']!==0x0)&&(_0x3b5988=_0x5593d2['rev']),_0x3b5988===0x0&&this[_0x1b4d2c(0x3cb)][_0x1b4d2c(0x270)](_0x1b4d2c(0x28b),_0x1b4d2c(0x1c6)),this[_0x1b4d2c(0x4ea)][_0x1b4d2c(0x1fa)](_0x51f289,_0x3b5988);}async[_0x29b95d(0x32c)](_0x507896){const _0xabb057=_0x29b95d;let _0x14d74c=0x0;const _0x557bfe=await this[_0xabb057(0x3bf)][_0xabb057(0x317)](_0x507896);return _0x557bfe&&(_0x557bfe['awaitingChangeset']||_0x557bfe['mutations'][_0xabb057(0x49e)]!==0x0)&&(_0x14d74c=_0x557bfe[_0xabb057(0x3c5)]),_0x14d74c===0x0&&this[_0xabb057(0x3cb)][_0xabb057(0x270)](_0xabb057(0x28b),_0xabb057(0x1c6)),this[_0xabb057(0x4ea)]['loadDoc'](_0x507896,_0x14d74c);}},exports[_0x29b95d(0x1ca)]=fi([a[_0x29b95d(0x387)](a[_0x29b95d(0x51c)][_0x29b95d(0x376)],exports[_0x29b95d(0x1ca)]),z(0x0,Ye),z(0x1,a['ILogService']),z(0x2,a[_0x29b95d(0x471)]),z(0x3,h[_0x29b95d(0x563)](exports['LocalCacheService'])),z(0x4,h[_0x29b95d(0x563)](u[_0x29b95d(0x233)])),z(0x5,h['Optional'](kt[_0x29b95d(0x365)]))],exports[_0x29b95d(0x1ca)]);var mi=Object[_0x29b95d(0x2f8)],Ii=Object[_0x29b95d(0x516)],pi=(_0x58ad05,_0x5201d0,_0x1e0e88,_0x4d0840)=>{const _0x36ecf3=_0x29b95d;for(var _0xe72c56=_0x4d0840>0x1?void 0x0:_0x4d0840?Ii(_0x5201d0,_0x1e0e88):_0x5201d0,_0x13ad7b=_0x58ad05[_0x36ecf3(0x49e)]-0x1,_0x7d0a93;_0x13ad7b>=0x0;_0x13ad7b--)(_0x7d0a93=_0x58ad05[_0x13ad7b])&&(_0xe72c56=(_0x4d0840?_0x7d0a93(_0x5201d0,_0x1e0e88,_0xe72c56):_0x7d0a93(_0xe72c56))||_0xe72c56);return _0x4d0840&&_0xe72c56&&mi(_0x5201d0,_0x1e0e88,_0xe72c56),_0xe72c56;},it=(_0x16bd1b,_0x429045)=>(_0x446e44,_0x54b223)=>_0x429045(_0x446e44,_0x54b223,_0x16bd1b);const Ei='DEFAULT_FILE_NAME',Ci=_0x29b95d(0x3ac);let de=class extends a['Disposable']{constructor(_0x2411c4,_0x5aa308){const _0x2d1623=_0x29b95d;super(),this[_0x2d1623(0x50a)]=_0x2411c4,this[_0x2d1623(0x552)]=_0x5aa308,this[_0x2d1623(0x2ec)]();}[_0x29b95d(0x2ec)](){const _0x176b35=_0x29b95d;this['disposeWithMe'](a[_0x176b35(0x273)](this[_0x176b35(0x50a)][_0x176b35(0x40e)]['subscribe'](()=>{const _0x590b80=_0x176b35;var _0x47d2e8;const _0x5521ca=this[_0x590b80(0x50a)][_0x590b80(0x47e)]();let _0x5a033b=(_0x47d2e8=this[_0x590b80(0x552)][_0x590b80(0x2bf)](Ei))!=null?_0x47d2e8:Ci;_0x5521ca instanceof a['Workbook']&&(_0x5a033b=_0x5521ca[_0x590b80(0x4ce)]),document['title']=_0x5a033b;})));}};de=pi([a[_0x29b95d(0x387)](a[_0x29b95d(0x51c)]['Ready'],de),it(0x0,a['IUniverInstanceService']),it(0x1,a['IConfigService'])],de);var bi=Object[_0x29b95d(0x2f8)],Ti=Object[_0x29b95d(0x516)],Ri=(_0x34bd01,_0x296dfe,_0x23c224,_0x1a29ef)=>{const _0x485f12=_0x29b95d;for(var _0x39c193=_0x1a29ef>0x1?void 0x0:_0x1a29ef?Ti(_0x296dfe,_0x23c224):_0x296dfe,_0x3b6635=_0x34bd01[_0x485f12(0x49e)]-0x1,_0x1cc3d4;_0x3b6635>=0x0;_0x3b6635--)(_0x1cc3d4=_0x34bd01[_0x3b6635])&&(_0x39c193=(_0x1a29ef?_0x1cc3d4(_0x296dfe,_0x23c224,_0x39c193):_0x1cc3d4(_0x39c193))||_0x39c193);return _0x1a29ef&&_0x39c193&&bi(_0x296dfe,_0x23c224,_0x39c193),_0x39c193;},nt=(_0x1c0dda,_0x3f476a)=>(_0x5594f0,_0x44ef1f)=>_0x3f476a(_0x5594f0,_0x44ef1f,_0x1c0dda);let Ae=class{constructor(_0x2762a7,_0x3125a1){const _0xdb3da8=_0x29b95d;this['_configService']=_0x2762a7,this[_0xdb3da8(0x55b)]=_0x3125a1;}async[_0x29b95d(0x35e)](_0xba8081,_0x2f18ef){const _0x3308ae=_0x29b95d;var _0x1fe9db;const {unitID:_0x2bc403,type:_0x5f5cd8,revision:_0x330d2f=0x0}=_0x2f18ef,_0x45e5dc=this[_0x3308ae(0x283)]()+'/'+_0x5f5cd8+_0x3308ae(0x2b9)+_0x2bc403+_0x3308ae(0x3a0)+(_0x330d2f===0x1?0x0:_0x330d2f),_0x109b11=(await this[_0x3308ae(0x55b)]['get'](_0x45e5dc))['body'],_0x3dbaa4=(_0x1fe9db=_0x109b11[_0x3308ae(0x32a)])==null?void 0x0:_0x1fe9db['workbook'];if(_0x3dbaa4){const _0x3f0d09=_0x3dbaa4==null?void 0x0:_0x3dbaa4[_0x3308ae(0x497)],_0x1a07ea=a[_0x3308ae(0x21c)][_0x3308ae(0x2ad)](a['b64DecodeUnicode'](_0x3f0d09));_0x3dbaa4[_0x3308ae(0x497)]=_0x1a07ea,Object[_0x3308ae(0x42f)](_0x3dbaa4[_0x3308ae(0x2fe)])[_0x3308ae(0x3b0)](([,_0x590ad5])=>{const _0x324d20=_0x3308ae,_0x1371d9=_0x590ad5['originalMeta'],_0x19c6b5=a[_0x324d20(0x21c)][_0x324d20(0x2ad)](a['b64DecodeUnicode'](_0x1371d9));_0x590ad5[_0x324d20(0x497)]=_0x19c6b5;});}return _0x109b11;}async[_0x29b95d(0x4f6)](_0x2e1a08,_0x15d424){const _0x302989=_0x29b95d,{unitID:_0x476b51,type:_0x140285,blockID:_0x4b8fe0}=_0x15d424,_0x3802a4=this[_0x302989(0x49f)]()+'/'+_0x140285+'/unit/'+_0x476b51+'/block/'+_0x4b8fe0;return(await this[_0x302989(0x55b)]['get'](_0x3802a4))[_0x302989(0x330)];}async['fetchMissingChangesets'](_0x560748,_0x25ba18){const _0xa11e21=_0x29b95d,{unitID:_0x371355,type:_0x306e23,from:_0x71778a,to:_0x2f1bb9}=_0x25ba18,_0x2b4ea1=this[_0xa11e21(0x49f)]()+'/'+_0x306e23+'/unit/'+_0x371355+_0xa11e21(0x205)+_0x71778a+_0xa11e21(0x342)+_0x2f1bb9;return(await this[_0xa11e21(0x55b)]['get'](_0x2b4ea1))[_0xa11e21(0x330)];}[_0x29b95d(0x283)](){const _0x5e0de1=_0x29b95d;var _0xa0e749;return(_0xa0e749=this['_configService'][_0x5e0de1(0x2bf)](ht))!=null?_0xa0e749:this[_0x5e0de1(0x49f)]();}[_0x29b95d(0x49f)](){const _0x48feea=_0x29b95d;var _0x179bd7;return(_0x179bd7=this[_0x48feea(0x552)][_0x48feea(0x2bf)](lt))!=null?_0x179bd7:Bt;}async[_0x29b95d(0x300)](_0x3528cd,_0x5ec90b){const _0x44cd1a=_0x29b95d,_0x4555ae=_0x44cd1a(0x229)+_0x5ec90b[_0x44cd1a(0x46c)]+_0x44cd1a(0x2b9)+_0x5ec90b[_0x44cd1a(0x1c8)]+_0x44cd1a(0x213);return(await this['_httpService'][_0x44cd1a(0x2d3)](_0x4555ae,{'params':{'resourceId':JSON['stringify'](_0x5ec90b[_0x44cd1a(0x53f)])}}))[_0x44cd1a(0x330)];}['saveSnapshot'](){const _0x1b4d99=_0x29b95d;throw new Error(_0x1b4d99(0x4df));}[_0x29b95d(0x56f)](){const _0x256201=_0x29b95d;throw new Error(_0x256201(0x4df));}['saveChangeset'](){const _0x44d77f=_0x29b95d;throw new Error(_0x44d77f(0x4df));}};Ae=Ri([nt(0x0,a['IConfigService']),nt(0x1,h[_0x29b95d(0x563)](P[_0x29b95d(0x42e)]))],Ae);var Oi=Object[_0x29b95d(0x2f8)],Di=Object[_0x29b95d(0x516)],Ui=(_0x576326,_0x673272,_0x1f2a3c,_0x56b4e2)=>{const _0x5dcf00=_0x29b95d;for(var _0x35dc3b=_0x56b4e2>0x1?void 0x0:_0x56b4e2?Di(_0x673272,_0x1f2a3c):_0x673272,_0x83e5f0=_0x576326[_0x5dcf00(0x49e)]-0x1,_0xf30c44;_0x83e5f0>=0x0;_0x83e5f0--)(_0xf30c44=_0x576326[_0x83e5f0])&&(_0x35dc3b=(_0x56b4e2?_0xf30c44(_0x673272,_0x1f2a3c,_0x35dc3b):_0xf30c44(_0x35dc3b))||_0x35dc3b);return _0x56b4e2&&_0x35dc3b&&Oi(_0x673272,_0x1f2a3c,_0x35dc3b),_0x35dc3b;},ne=(_0x1a9602,_0x888867)=>(_0xe692fa,_0x44b186)=>_0x888867(_0xe692fa,_0x44b186,_0x1a9602);let je=class extends a['LocalUndoRedoService']{constructor(_0x36c576,_0x4c6a4f,_0x10c75f,_0x331002,_0x3d347a){const _0x2b97c8=_0x29b95d;super(_0x36c576,_0x4c6a4f,_0x10c75f),this[_0x2b97c8(0x4ed)]=_0x331002,this[_0x2b97c8(0x3cb)]=_0x3d347a;}['transformUndoRedo'](_0x292933,_0x337a45){const _0x17edfe=_0x29b95d,_0x171b47=this[_0x17edfe(0x3a9)](_0x292933);if(_0x171b47)try{const _0x355a38=this[_0x17edfe(0x3fa)](_0x171b47,_0x337a45);this[_0x17edfe(0x3f8)](_0x292933,_0x355a38);}catch(_0x5e5412){this['_logService'][_0x17edfe(0x383)]('[CollaborationUndoRedoService]',_0x5e5412),this[_0x17edfe(0x263)](_0x292933);}const _0x364ba0=this[_0x17edfe(0x242)](_0x292933);if(_0x364ba0)try{const _0x37d3d5=this[_0x17edfe(0x3fa)](_0x364ba0,_0x337a45);this[_0x17edfe(0x356)](_0x292933,_0x37d3d5);}catch(_0x288afa){this[_0x17edfe(0x3cb)][_0x17edfe(0x383)](_0x288afa),this[_0x17edfe(0x3f1)](_0x292933);}}[_0x29b95d(0x263)](_0x27c870){const _0x351e38=_0x29b95d,_0x51ac86=this[_0x351e38(0x3a9)](_0x27c870);_0x51ac86&&(_0x51ac86[_0x351e38(0x49e)]=0x0,this[_0x351e38(0x302)]());}[_0x29b95d(0x3f1)](_0x616df9){const _0x20f06f=_0x29b95d,_0xe4a376=this['_getRedoStack'](_0x616df9);_0xe4a376&&(_0xe4a376[_0x20f06f(0x49e)]=0x0,this[_0x20f06f(0x302)]());}[_0x29b95d(0x3f8)](_0x107561,_0x475086){const _0x482a3f=_0x29b95d;this['_undoStacks'][_0x482a3f(0x470)](_0x107561,_0x475086),this[_0x482a3f(0x302)]();}[_0x29b95d(0x356)](_0x3f956f,_0x26b648){const _0x5003d7=_0x29b95d;this['_redoStacks']['set'](_0x3f956f,_0x26b648),this[_0x5003d7(0x302)]();}[_0x29b95d(0x3fa)](_0x1bee8c,_0x39253e){const _0x409545=_0x29b95d,_0x5eba5d=[];let _0x323785=_0x39253e,_0xa4e7c1=_0x39253e;for(let _0x3e6eb=_0x1bee8c[_0x409545(0x49e)]-0x1;_0x3e6eb>=0x0;_0x3e6eb--){const {unitID:_0x32cc73,undoMutations:_0x18694b,redoMutations:_0x28107b}=_0x1bee8c[_0x3e6eb],_0x15896b=this[_0x409545(0x4ed)][_0x409545(0x378)](_0x323785,_0x18694b),_0x4989aa=this['_transformService'][_0x409545(0x378)](_0xa4e7c1,_0x28107b);if(u[_0x409545(0x352)](_0x15896b)||u[_0x409545(0x352)](_0x4989aa)){this[_0x409545(0x3cb)][_0x409545(0x383)](_0x409545(0x4ca),_0x409545(0x288),_0x15896b,_0x4989aa);break;}_0x323785=_0x15896b[_0x409545(0x1f4)],_0xa4e7c1=_0x4989aa[_0x409545(0x1f4)],_0x5eba5d[_0x409545(0x346)]({'unitID':_0x32cc73,'undoMutations':_0x15896b[_0x409545(0x297)],'redoMutations':_0x4989aa[_0x409545(0x297)]});}return _0x5eba5d['reverse']();}};je=Ui([ne(0x0,a['IUniverInstanceService']),ne(0x1,a[_0x29b95d(0x471)]),ne(0x2,a[_0x29b95d(0x4bc)]),ne(0x3,u[_0x29b95d(0x551)]),ne(0x4,a['ILogService'])],je);class wt extends a[_0x29b95d(0x275)]{constructor(){const _0x63402d=_0x29b95d;super(),d(this,'urlChange$'),this[_0x63402d(0x2f5)]=g['fromEvent'](window,_0x63402d(0x20a))[_0x63402d(0x1e4)](g['takeUntil'](this[_0x63402d(0x2e1)]),g[_0x63402d(0x433)](0x1),g[_0x63402d(0x2cc)](void 0x0));}[_0x29b95d(0x3ca)](_0x838382,_0x4dddf3,_0x2dd7f=!0x1){const _0x593ad1=_0x29b95d,_0x506e11=new URL(window['location'][_0x593ad1(0x332)]);_0x506e11['searchParams']['set'](_0x838382,_0x4dddf3),_0x2dd7f?window[_0x593ad1(0x1fb)]['replaceState']('','',_0x506e11['toString']()):window[_0x593ad1(0x1fb)][_0x593ad1(0x2e5)]('','',_0x506e11['toString']());}[_0x29b95d(0x222)](_0x4fccd5,_0x9f4fbf=!0x1){const _0x33d772=_0x29b95d,_0x188626=new URL(window[_0x33d772(0x49b)]['href']);_0x188626[_0x33d772(0x38f)]['delete'](_0x4fccd5),_0x9f4fbf?window[_0x33d772(0x1fb)]['replaceState']('','',_0x188626[_0x33d772(0x544)]()):window['history']['pushState']('','',_0x188626[_0x33d772(0x544)]());}[_0x29b95d(0x2ab)](_0xddb44e){const _0x3bc818=_0x29b95d;var _0x570668;return(_0x570668=new URL(window[_0x3bc818(0x49b)]['href'])['searchParams'][_0x3bc818(0x2d3)](_0xddb44e))!=null?_0x570668:void 0x0;}}const Ue=_0x29b95d(0x3ce),wi=_0x29b95d(0x55a),_e=0x6,Li=1.5,we=0x4,Pi=1.5,Mi=_0x29b95d(0x345);class yi{constructor(_0x3193f2,_0x258595,_0x10ceab,_0x57744d){const _0x3536db=_0x29b95d;d(this,_0x3536db(0x311),[]),d(this,_0x3536db(0x2b8),null),d(this,_0x3536db(0x304),null),d(this,_0x3536db(0x269),null),d(this,_0x3536db(0x21e),null),d(this,'_eventUnsubscribe',null),(this[_0x3536db(0x30d)]=_0x3193f2,this['_scene']=_0x258595,this[_0x3536db(0x508)]=_0x10ceab,this[_0x3536db(0x31b)]=_0x57744d,this['_render']());}set[_0x29b95d(0x444)](_0x12ec3a){const _0x15dfdb=_0x29b95d;_0x12ec3a?(this[_0x15dfdb(0x269)]&&this['_anchorDot'][_0x15dfdb(0x3ef)](),this[_0x15dfdb(0x304)]&&this['_textBubble'][_0x15dfdb(0x4a2)]()):(this['_anchorDot']&&this[_0x15dfdb(0x269)][_0x15dfdb(0x4a2)](),this[_0x15dfdb(0x304)]&&this[_0x15dfdb(0x304)]['hide']());}[_0x29b95d(0x545)](){const _0x437baf=_0x29b95d;for(const _0x1cf2cd of this[_0x437baf(0x311)])_0x1cf2cd[_0x437baf(0x545)]();this[_0x437baf(0x304)]&&this[_0x437baf(0x304)][_0x437baf(0x545)](),this['_anchorDot']&&this[_0x437baf(0x269)]['dispose'](),this[_0x437baf(0x2b8)]&&this[_0x437baf(0x2b8)][_0x437baf(0x545)](),this['_eventUnsubscribe']&&this[_0x437baf(0x359)]();}[_0x29b95d(0x292)](){const _0x52c961=_0x29b95d,{_docSkeleton:_0x3bc32e,_document:_0x5e6266}=this,{color:_0x40852b,name:_0x5a9dc6,ranges:_0xc39442}=this['_cursor'],_0x3aa77d=_0x5e6266[_0x52c961(0x418)](),{docsLeft:_0x599a87,docsTop:_0x55549c}=_0x3aa77d,_0x265d8a=new R[(_0x52c961(0x4aa))](_0x3aa77d,_0x3bc32e);for(const {startOffset:_0x1b6bcb,endOffset:_0x213167,collapsed:_0x497ecc,isActive:_0x457096}of _0xc39442){const _0x391b5c=_0x3bc32e[_0x52c961(0x454)](_0x1b6bcb),_0x4d9ebd=_0x3bc32e[_0x52c961(0x454)](_0x213167);if(_0x457096){const {contentBoxPointGroup:_0x58571d}=_0x265d8a['getRangePointData'](_0x4d9ebd,_0x4d9ebd);if(_0x58571d['length']===0x0)continue;this['_drawAnchor'](_0x40852b,_0x58571d,_0x599a87,_0x55549c,_0x5a9dc6),this['_eventUnsubscribe']=this[_0x52c961(0x2a5)]();}if(!_0x497ecc){const {contentBoxPointGroup:_0x560be2}=_0x265d8a['getRangePointData'](_0x391b5c,_0x4d9ebd);if(_0x560be2['length']===0x0)continue;this[_0x52c961(0x564)](_0x40852b,_0x560be2,_0x599a87,_0x55549c);}}}[_0x29b95d(0x2d6)](_0x566611,_0x3d736a,_0x1df1d0,_0x442b2f,_0x462312){const _0x2bff74=_0x29b95d,_0x120071=this['_getAnchorBounding'](_0x3d736a),{left:_0x3fa46e,top:_0x40a633,height:_0x521cfa}=_0x120071,_0x3bd32e=this[_0x2bff74(0x31a)](),_0x1ffda0=Pi/_0x3bd32e,_0x467a32=new R[(_0x2bff74(0x385))](Ue+a[_0x2bff74(0x4b1)][_0x2bff74(0x522)](_e),{'left':_0x3fa46e+_0x1df1d0-_0x1ffda0,'top':_0x40a633+_0x442b2f,'height':_0x521cfa,'width':Li,'fill':_0x566611||R[_0x2bff74(0x2aa)](a[_0x2bff74(0x476)]['black'],0x0),'strokeWidth':_0x1ffda0,'stroke':Mi,'evented':!0x0});this[_0x2bff74(0x2b8)]=_0x467a32,this[_0x2bff74(0x507)][_0x2bff74(0x2b5)](_0x467a32,R['TEXT_RANGE_LAYER_INDEX']);const _0x153da1=new R[(_0x2bff74(0x385))](Ue+a[_0x2bff74(0x4b1)][_0x2bff74(0x522)](_e),{'left':_0x3fa46e+_0x1df1d0-_0x1ffda0,'top':_0x40a633+_0x442b2f-we/0x2,'height':we,'width':we,'fill':_0x566611||R[_0x2bff74(0x2aa)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x566611||R['getColor'](a[_0x2bff74(0x476)][_0x2bff74(0x40d)],0x0),'evented':!0x1});this[_0x2bff74(0x269)]=_0x153da1,this[_0x2bff74(0x507)][_0x2bff74(0x2b5)](_0x153da1,R[_0x2bff74(0x260)]);const _0x470e47=new Ce(Ue+a[_0x2bff74(0x4b1)][_0x2bff74(0x522)](_e),{'left':_0x3fa46e+_0x1df1d0-_0x1ffda0,'top':_0x40a633+_0x442b2f-ce,'text':_0x462312,'color':_0x566611});this[_0x2bff74(0x304)]=_0x470e47,this[_0x2bff74(0x507)]['addObject'](_0x470e47,R[_0x2bff74(0x260)]),this[_0x2bff74(0x444)]=!0x1;}[_0x29b95d(0x2a5)](){const _0x24f574=_0x29b95d,_0x3dda11=this['_anchor'][_0x24f574(0x20b)][_0x24f574(0x34f)](()=>{const _0x103f1c=_0x24f574;this[_0x103f1c(0x444)]=!0x0;}),_0x49f54f=this[_0x24f574(0x2b8)]['onPointerLeave$'][_0x24f574(0x34f)](()=>{const _0x3a5c6c=_0x24f574;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x3a5c6c(0x21e)]=setTimeout(()=>{const _0x499556=_0x3a5c6c;this[_0x499556(0x444)]=!0x1;},0x7d0);});return()=>{const _0x2e4398=_0x24f574;_0x3dda11[_0x2e4398(0x231)](),_0x49f54f['unsubscribe']();};}[_0x29b95d(0x564)](_0x1fea64,_0xc988d0,_0xd83b74,_0x258373){const _0x2f0f6b=_0x29b95d,_0x1dd59e=new a['ColorKit'](_0x1fea64)['setAlpha'](0.2)[_0x2f0f6b(0x30c)](),_0x33315a=new R['RegularPolygon'](wi+a[_0x2f0f6b(0x4b1)][_0x2f0f6b(0x522)](_e),{'pointsGroup':_0xc988d0,'fill':_0x1dd59e||R[_0x2f0f6b(0x2aa)](a[_0x2f0f6b(0x476)][_0x2f0f6b(0x40d)],0.2),'left':_0xd83b74,'top':_0x258373,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2f0f6b(0x311)][_0x2f0f6b(0x346)](_0x33315a),this[_0x2f0f6b(0x507)][_0x2f0f6b(0x2b5)](_0x33315a,R[_0x2f0f6b(0x260)]);}[_0x29b95d(0x4f5)](_0x394096){const _0x557731=_0x394096[0x0],_0x324771=_0x557731[0x0],_0x5209fb=_0x557731[0x2],{x:_0x48a450,y:_0x21439f}=_0x324771,{x:_0x168819,y:_0x361746}=_0x5209fb;return{'left':_0x48a450,'top':_0x21439f,'width':_0x168819-_0x48a450,'height':_0x361746-_0x21439f};}[_0x29b95d(0x31a)](){const _0x53f216=_0x29b95d,{scaleX:_0x595669,scaleY:_0x55593b}=this[_0x53f216(0x507)][_0x53f216(0x403)]();return Math['max'](_0x595669,_0x55593b);}}var Ni=Object['defineProperty'],Ai=Object[_0x29b95d(0x516)],ji=(_0x5266e9,_0x3a0308,_0x47b00b,_0x2b9e90)=>{const _0x1bcca3=_0x29b95d;for(var _0x42bc53=_0x2b9e90>0x1?void 0x0:_0x2b9e90?Ai(_0x3a0308,_0x47b00b):_0x3a0308,_0x1469bc=_0x5266e9[_0x1bcca3(0x49e)]-0x1,_0x522535;_0x1469bc>=0x0;_0x1469bc--)(_0x522535=_0x5266e9[_0x1469bc])&&(_0x42bc53=(_0x2b9e90?_0x522535(_0x3a0308,_0x47b00b,_0x42bc53):_0x522535(_0x42bc53))||_0x42bc53);return _0x2b9e90&&_0x42bc53&&Ni(_0x3a0308,_0x47b00b,_0x42bc53),_0x42bc53;},re=(_0x447293,_0x35191)=>(_0x543be9,_0x4e2d74)=>_0x35191(_0x543be9,_0x4e2d74,_0x447293);let Se=class extends a[_0x29b95d(0x275)]{constructor(_0x280dc6,_0x2a380d,_0x32ea24,_0xad6c48,_0xe9b945){const _0xc36cc4=_0x29b95d;super(),d(this,_0xc36cc4(0x318),[]),(this[_0xc36cc4(0x3ff)]=_0x280dc6,this[_0xc36cc4(0x50a)]=_0x2a380d,this[_0xc36cc4(0x253)]=_0x32ea24,this[_0xc36cc4(0x41f)]=_0xad6c48,this[_0xc36cc4(0x207)]=_0xe9b945,this[_0xc36cc4(0x2ec)]());}[_0x29b95d(0x2ec)](){const _0x5dca16=_0x29b95d;this['_docSkeletonManagerService'][_0x5dca16(0x3e9)][_0x5dca16(0x1e4)](T['takeUntil'](this[_0x5dca16(0x2e1)]),T[_0x5dca16(0x1df)](_0x2ed7ea=>{const _0x2c39d1=_0x5dca16;if(_0x2ed7ea){const _0x2e8134=_0x2ed7ea['getViewModel']()[_0x2c39d1(0x443)]()['getUnitId']();return g['combineLatest'](this[_0x2c39d1(0x3ff)][_0x2c39d1(0x51d)](_0x2e8134),this[_0x2c39d1(0x207)]['currentTheme$'])[_0x2c39d1(0x1e4)](T[_0x2c39d1(0x2a0)](([_0x36b03d,_0x7ba128])=>({'skeleton':_0x2ed7ea,'cursors':[..._0x36b03d[_0x2c39d1(0x40f)]()][_0x2c39d1(0x20d)](_0x3fd4cb=>({..._0x3fd4cb,'color':_0x7ba128[_0x3fd4cb['color']]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))[_0x5dca16(0x1e8)](({skeleton:_0x180a78,cursors:_0xd79c9e})=>{this['_removeCollabCursors'](),_0x180a78&&this['_updateCollabCursors'](_0x180a78,_0xd79c9e);});}[_0x29b95d(0x323)](_0x42da22,_0xc7ca){const _0x43bce1=_0x29b95d,_0x17245b=this['_getDocObject']();if(_0x17245b==null)return;const {scene:_0x4f0fb8,document:_0x5ebb86}=_0x17245b,_0x2cf915=_0xc7ca[_0x43bce1(0x2a0)](_0x1640f6=>new yi(_0x1640f6,_0x4f0fb8,_0x42da22,_0x5ebb86));this[_0x43bce1(0x318)]=_0x2cf915;}[_0x29b95d(0x350)](){const _0x628400=_0x29b95d;this[_0x628400(0x318)][_0x628400(0x3b0)](_0x51b2c8=>_0x51b2c8[_0x628400(0x545)]()),this[_0x628400(0x318)]=[];}[_0x29b95d(0x4b4)](){const _0x2f81a1=_0x29b95d;return y[_0x2f81a1(0x2fa)](this[_0x2f81a1(0x50a)],this[_0x2f81a1(0x253)]);}};Se=ji([a[_0x29b95d(0x387)](a['LifecycleStages'][_0x29b95d(0x4ba)],Se),re(0x0,h[_0x29b95d(0x563)](J)),re(0x1,a[_0x29b95d(0x2e6)]),re(0x2,R['IRenderManagerService']),re(0x3,h[_0x29b95d(0x563)](y[_0x29b95d(0x371)])),re(0x4,h['Inject'](a[_0x29b95d(0x336)]))],Se);var $i=Object[_0x29b95d(0x2f8)],Hi=Object[_0x29b95d(0x516)],xi=(_0x5c5195,_0x15058b,_0x24179e,_0x2f3ba4)=>{const _0x5d3003=_0x29b95d;for(var _0x2e383e=_0x2f3ba4>0x1?void 0x0:_0x2f3ba4?Hi(_0x15058b,_0x24179e):_0x15058b,_0x159a79=_0x5c5195[_0x5d3003(0x49e)]-0x1,_0x279df9;_0x159a79>=0x0;_0x159a79--)(_0x279df9=_0x5c5195[_0x159a79])&&(_0x2e383e=(_0x2f3ba4?_0x279df9(_0x15058b,_0x24179e,_0x2e383e):_0x279df9(_0x2e383e))||_0x2e383e);return _0x2f3ba4&&_0x2e383e&&$i(_0x15058b,_0x24179e,_0x2e383e),_0x2e383e;},Le=(_0x5e8e53,_0x5238ef)=>(_0x394ce1,_0x51f6a8)=>_0x5238ef(_0x394ce1,_0x51f6a8,_0x5e8e53);let Ie=class{constructor(_0xe237bc,_0x284790,_0x4ebcde){const _0x4078a2=_0x29b95d;this['_configService']=_0xe237bc,this[_0x4078a2(0x55b)]=_0x284790,this[_0x4078a2(0x414)]=_0x4ebcde,this[_0x4078a2(0x32b)]();}['init'](){const _0x388000=_0x29b95d;this[_0x388000(0x55b)][_0x388000(0x28f)]({'priority':0x1,'interceptor':(_0x4d6f4d,_0x4d92ca)=>_0x4d92ca(_0x4d6f4d)['pipe'](g['concatMap'](async _0x462e3b=>{const _0x7bf68b=_0x388000,_0x6625b5=_0x462e3b;if(_0x6625b5[_0x7bf68b(0x341)]===0x191&&window['confirm'](this['localeService']['t'](_0x7bf68b(0x53e)))){const _0x57a6e3=window['encodeURIComponent'](window[_0x7bf68b(0x49b)][_0x7bf68b(0x332)]);window[_0x7bf68b(0x49b)][_0x7bf68b(0x332)]=this[_0x7bf68b(0x281)]()+_0x7bf68b(0x3b9)+_0x57a6e3;}return _0x6625b5;}))});}[_0x29b95d(0x281)](){const _0x5533db=_0x29b95d;var _0x566eae;return(_0x566eae=this[_0x5533db(0x552)][_0x5533db(0x2bf)](ft))!=null?_0x566eae:Jt;}};Ie=xi([Le(0x0,a[_0x29b95d(0x271)]),Le(0x1,h['Inject'](P[_0x29b95d(0x42e)])),Le(0x2,h['Inject'](a[_0x29b95d(0x3c8)]))],Ie);var ki=Object['defineProperty'],Bi=Object['getOwnPropertyDescriptor'],Fi=(_0x35d86b,_0x4f0e3d,_0x544bae,_0x3e5c9b)=>{const _0x4b4206=_0x29b95d;for(var _0x465303=_0x3e5c9b>0x1?void 0x0:_0x3e5c9b?Bi(_0x4f0e3d,_0x544bae):_0x4f0e3d,_0x1d927b=_0x35d86b[_0x4b4206(0x49e)]-0x1,_0xc61c63;_0x1d927b>=0x0;_0x1d927b--)(_0xc61c63=_0x35d86b[_0x1d927b])&&(_0x465303=(_0x3e5c9b?_0xc61c63(_0x4f0e3d,_0x544bae,_0x465303):_0xc61c63(_0x465303))||_0x465303);return _0x3e5c9b&&_0x465303&&ki(_0x4f0e3d,_0x544bae,_0x465303),_0x465303;},rt=(_0x1e3cd4,_0x7dd1a0)=>(_0xa10233,_0x33eb67)=>_0x7dd1a0(_0xa10233,_0x33eb67,_0x1e3cd4);const Lt='AUTHZ_URL_KEY',Vi=_0x29b95d(0x1e0);exports[_0x29b95d(0x24f)]=class{constructor(_0x33df7e,_0x775a34){const _0x4b5de2=_0x29b95d;this[_0x4b5de2(0x26d)]=_0x33df7e,this['_configService']=_0x775a34;}[_0x29b95d(0x462)](){const _0x85812f=_0x29b95d;var _0x33addf;return(_0x33addf=this['_configService'][_0x85812f(0x2bf)](Lt))!=null?_0x33addf:Vi;}async[_0x29b95d(0x53c)](_0x389b62){const _0x3a2ab5=_0x29b95d,_0x24ac4e=this[_0x3a2ab5(0x462)]()+'/'+_0x389b62[_0x3a2ab5(0x31f)]+'/object';return(await this[_0x3a2ab5(0x26d)][_0x3a2ab5(0x4d6)](_0x24ac4e,{'body':_0x389b62}))[_0x3a2ab5(0x330)]['objectID']||'';}async[_0x29b95d(0x3a2)](_0x3cdf8a){const _0x3e82f6=_0x29b95d,_0xcf5d53=this[_0x3e82f6(0x462)]()+_0x3e82f6(0x25a);return(await this[_0x3e82f6(0x26d)]['post'](_0xcf5d53,{'body':_0x3cdf8a}))[_0x3e82f6(0x330)][_0x3e82f6(0x401)];}async[_0x29b95d(0x41a)](_0x21aa23){const _0x126fef=_0x29b95d,_0x416909=this[_0x126fef(0x462)]()+'/'+_0x21aa23[_0x126fef(0x31f)]+_0x126fef(0x478)+_0x21aa23[_0x126fef(0x531)];await this[_0x126fef(0x26d)][_0x126fef(0x3bd)](_0x416909,{'body':_0x21aa23});}async[_0x29b95d(0x2d2)](_0x2e62aa){const _0x4de40f=_0x29b95d,_0x1e16a2=this[_0x4de40f(0x462)]()+'/'+_0x2e62aa[_0x4de40f(0x31f)]+_0x4de40f(0x478)+_0x2e62aa[_0x4de40f(0x531)]+_0x4de40f(0x34e);return(await this[_0x4de40f(0x26d)]['post'](_0x1e16a2,{'body':_0x2e62aa}))[_0x4de40f(0x330)]['actions'];}async[_0x29b95d(0x46f)](_0x50f08c){const _0x13b29a=_0x29b95d,_0x409458=this['_getAPIPrefixPath']()+_0x13b29a(0x52a);return(await this[_0x13b29a(0x26d)][_0x13b29a(0x4d6)](_0x409458,{'body':{'requests':_0x50f08c}}))['body']['objectActions'];}async[_0x29b95d(0x216)](_0x37f0c8){const _0x127807=_0x29b95d,_0x5f33c0=this[_0x127807(0x462)]()+'/'+_0x37f0c8[_0x127807(0x31f)]+_0x127807(0x40c),_0x12ac3e=await this[_0x127807(0x26d)][_0x127807(0x4d6)](_0x5f33c0,{'body':_0x37f0c8});return{'roles':_0x12ac3e['body']['roles'],'actions':_0x12ac3e['body'][_0x127807(0x324)]};}async[_0x29b95d(0x1fd)](_0x497ba1){const _0x5c0a7a=_0x29b95d,_0x4540f8=this[_0x5c0a7a(0x462)]()+_0x5c0a7a(0x423);await this[_0x5c0a7a(0x26d)][_0x5c0a7a(0x485)](_0x4540f8,{'params':{'collaboratorID':_0x497ba1[_0x5c0a7a(0x490)],'objectID':_0x497ba1[_0x5c0a7a(0x531)],'unitID':_0x497ba1[_0x5c0a7a(0x1c8)]}});}async[_0x29b95d(0x46a)](_0x5d2706){const _0x397340=_0x29b95d,_0x3cf816=this[_0x397340(0x462)]()+_0x397340(0x423);await this['_HTTPService'][_0x397340(0x3f3)](_0x3cf816,{'body':_0x5d2706});}async[_0x29b95d(0x500)](_0x2bea7c){const _0x1053b4=_0x29b95d,_0x1910df=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1053b4(0x26d)]['post'](_0x1910df,{'body':_0x2bea7c});}async[_0x29b95d(0x20e)](_0xa55df2){const _0x53eb98=_0x29b95d,_0x54fab3=this[_0x53eb98(0x462)]()+_0x53eb98(0x423);return(await this[_0x53eb98(0x26d)][_0x53eb98(0x2d3)](_0x54fab3,{'params':{'objectID':_0xa55df2[_0x53eb98(0x531)],'unitID':_0xa55df2[_0x53eb98(0x1c8)]}}))['body'][_0x53eb98(0x408)];}async[_0x29b95d(0x413)](_0x2d3519){const _0x45a96b=_0x29b95d,_0x434428=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x45a96b(0x26d)][_0x45a96b(0x3bd)](_0x434428,{'body':_0x2d3519});}},exports[_0x29b95d(0x24f)]=Fi([rt(0x0,h['Inject'](P['HTTPService'])),rt(0x1,h[_0x29b95d(0x563)](a['IConfigService']))],exports['AuthzIoHttpService']);var Wi=Object[_0x29b95d(0x2f8)],Gi=Object[_0x29b95d(0x516)],Yi=(_0x42256c,_0x567d71,_0x158c00,_0x38bfd2)=>{const _0x84241c=_0x29b95d;for(var _0x57a20d=_0x38bfd2>0x1?void 0x0:_0x38bfd2?Gi(_0x567d71,_0x158c00):_0x567d71,_0x13d141=_0x42256c[_0x84241c(0x49e)]-0x1,_0x3593ad;_0x13d141>=0x0;_0x13d141--)(_0x3593ad=_0x42256c[_0x13d141])&&(_0x57a20d=(_0x38bfd2?_0x3593ad(_0x567d71,_0x158c00,_0x57a20d):_0x3593ad(_0x57a20d))||_0x57a20d);return _0x38bfd2&&_0x57a20d&&Wi(_0x567d71,_0x158c00,_0x57a20d),_0x57a20d;},ot=(_0x322170,_0x52b16a)=>(_0x59cdf8,_0x260129)=>_0x52b16a(_0x59cdf8,_0x260129,_0x322170);const Ki=[_0x29b95d(0x286),_0x29b95d(0x41b),'image/jpg',_0x29b95d(0x4cc),'image/bmp'],Xi=0x5*0x400*0x400,qi=_0x29b95d(0x407),zi=_0x29b95d(0x535),Ji=_0x29b95d(0x4b7),Zi=_0x29b95d(0x47b);let $e=class{constructor(_0x5c7ffe,_0x3d3ae1){const _0x32d512=_0x29b95d;d(this,_0x32d512(0x24b),0x0),d(this,_0x32d512(0x3b3),new g[(_0x32d512(0x1c9))]()),d(this,_0x32d512(0x36c),this[_0x32d512(0x3b3)]),d(this,_0x32d512(0x36e),new Map()),(this[_0x32d512(0x55b)]=_0x5c7ffe,this['_configService']=_0x3d3ae1);}[_0x29b95d(0x328)](_0x207e91){const _0x38c76d=_0x29b95d;this['_waitCount']=_0x207e91,this[_0x38c76d(0x3b3)][_0x38c76d(0x4e8)](_0x207e91);}[_0x29b95d(0x456)](_0x21c504,_0x567b28){const _0x45e27d=_0x29b95d;if(_0x567b28===A['ImageSourceType']['BASE64']){const _0x1e3c15=new Image();return _0x1e3c15[_0x45e27d(0x312)]=_0x21c504,_0x1e3c15;}return this[_0x45e27d(0x36e)][_0x45e27d(0x2d3)](_0x21c504);}[_0x29b95d(0x2c9)](_0x178fb1,_0x2043c6,_0x12b0e0){const _0x3ca2dc=_0x29b95d;_0x2043c6===A[_0x3ca2dc(0x2da)][_0x3ca2dc(0x3de)]||_0x12b0e0==null||this[_0x3ca2dc(0x36e)]['set'](_0x178fb1,_0x12b0e0);}async[_0x29b95d(0x561)](_0x33acb5){const _0xec684a=_0x29b95d;try{const _0x499023=this[_0xec684a(0x3d3)](this['_getSignURL'](),''+_0x33acb5),_0x363aaf=(await this[_0xec684a(0x55b)][_0xec684a(0x2d3)](_0x499023))[_0xec684a(0x330)];return _0x363aaf[_0xec684a(0x383)]&&_0x363aaf['error']['code']===mt['OK']?Promise['resolve'](_0x363aaf['url']):Promise['reject'](_0x363aaf[_0xec684a(0x383)]);}catch(_0x1b8d86){return Promise[_0xec684a(0x550)](_0x1b8d86);}}async['saveImage'](_0x77a334){const _0x135329=_0x29b95d;let _0x2634ee='';if(!Ki[_0x135329(0x2c5)](_0x77a334['type']))return this[_0x135329(0x339)](),Promise[_0x135329(0x550)](new Error(A[_0x135329(0x1d6)][_0x135329(0x477)]));if(_0x77a334[_0x135329(0x509)]>Xi)return this[_0x135329(0x339)](),Promise[_0x135329(0x550)](new Error(A[_0x135329(0x1d6)][_0x135329(0x280)]));try{const _0x4d3c5c=new FormData();_0x4d3c5c['append']('file',_0x77a334);const _0x512f1e=this[_0x135329(0x4b3)]()+_0x135329(0x3bb)+_0x77a334[_0x135329(0x509)][_0x135329(0x544)](),_0x8eced8=await(await fetch(_0x512f1e,{'method':_0x135329(0x23f),'body':_0x4d3c5c}))['json']();if(typeof _0x8eced8['FileId']!=_0x135329(0x4a9))return this['_decreaseWaiting'](),Promise[_0x135329(0x550)](new Error(A[_0x135329(0x1d6)][_0x135329(0x2f0)]));_0x2634ee=_0x8eced8['FileId'];}catch{return this[_0x135329(0x339)](),Promise[_0x135329(0x550)](new Error(A[_0x135329(0x1d6)][_0x135329(0x2f0)]));}return new Promise((_0x569917,_0x46a954)=>{const _0x13fd9e=_0x135329,_0x515757=new FileReader();_0x515757[_0x13fd9e(0x284)](_0x77a334),_0x515757[_0x13fd9e(0x298)]=_0x5b4c8b=>{const _0x49105e=_0x13fd9e;var _0x136a3a;const _0x1f5b9f=(_0x136a3a=_0x5b4c8b[_0x49105e(0x53a)])==null?void 0x0:_0x136a3a['result'];if(_0x1f5b9f==null){this[_0x49105e(0x339)](),_0x46a954(new Error(A[_0x49105e(0x1d6)]['ERROR_IMAGE']));return;}const _0x427bee=a['Tools']['generateRandomId'](0x6);_0x569917({'imageId':_0x427bee,'imageSourceType':A[_0x49105e(0x2da)][_0x49105e(0x421)],'source':_0x2634ee,'base64Cache':_0x1f5b9f,'status':A[_0x49105e(0x1d6)][_0x49105e(0x504)]}),this['_decreaseWaiting']();};});}[_0x29b95d(0x4b3)](){const _0x5424cf=_0x29b95d;var _0x319d82;return(_0x319d82=this[_0x5424cf(0x552)][_0x5424cf(0x2bf)](qi))!=null?_0x319d82:zi;}['_getSignURL'](){const _0x4b51f7=_0x29b95d;var _0x110b1f;return(_0x110b1f=this[_0x4b51f7(0x552)][_0x4b51f7(0x2bf)](Ji))!=null?_0x110b1f:Zi;}[_0x29b95d(0x3d3)](_0x244057,_0x3a928f){const _0x1054de=_0x29b95d;return _0x244057[_0x1054de(0x51b)]('{fileID}',_0x3a928f);}[_0x29b95d(0x339)](){const _0x3b6fd9=_0x29b95d;this['_waitCount']-=0x1,this[_0x3b6fd9(0x3b3)]['next'](this[_0x3b6fd9(0x24b)]);}};$e=Yi([ot(0x0,h[_0x29b95d(0x563)](P[_0x29b95d(0x42e)])),ot(0x1,a[_0x29b95d(0x271)])],$e);var Pt=Object[_0x29b95d(0x2f8)],Qi=Object[_0x29b95d(0x516)],en=(_0x41a899,_0x14902b,_0x1cc6e5)=>_0x14902b in _0x41a899?Pt(_0x41a899,_0x14902b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cc6e5}):_0x41a899[_0x14902b]=_0x1cc6e5,tn=(_0x3cbc3e,_0x462b30,_0x1ec5f3,_0xea8f26)=>{const _0x5f2802=_0x29b95d;for(var _0x2ff108=_0xea8f26>0x1?void 0x0:_0xea8f26?Qi(_0x462b30,_0x1ec5f3):_0x462b30,_0x28f97b=_0x3cbc3e[_0x5f2802(0x49e)]-0x1,_0x50f9d1;_0x28f97b>=0x0;_0x28f97b--)(_0x50f9d1=_0x3cbc3e[_0x28f97b])&&(_0x2ff108=(_0xea8f26?_0x50f9d1(_0x462b30,_0x1ec5f3,_0x2ff108):_0x50f9d1(_0x2ff108))||_0x2ff108);return _0xea8f26&&_0x2ff108&&Pt(_0x462b30,_0x1ec5f3,_0x2ff108),_0x2ff108;},at=(_0x329067,_0x53f084)=>(_0x964d01,_0x48e71a)=>_0x53f084(_0x964d01,_0x48e71a,_0x329067),sn=(_0x41e251,_0x4b2070,_0x2344c8)=>en(_0x41e251,_0x4b2070+'',_0x2344c8);const nn=_0x29b95d(0x325);exports['UniverCollaborationClientPlugin']=class extends a[_0x29b95d(0x3ae)]{constructor(_0x1491f3,_0x540d71,_0x44af6a){const _0x201dd4=_0x29b95d;super(),this[_0x201dd4(0x26b)]=_0x1491f3,this[_0x201dd4(0x3cb)]=_0x540d71,this['_injector']=_0x44af6a;}[_0x29b95d(0x4c5)](_0x446cd2){const _0x5732a9=_0x29b95d;var _0x31d2ca,_0x483a28,_0x3127f9,_0x49db3d,_0x1b3b33;_0x446cd2['has'](a[_0x5732a9(0x525)])&&this['_logService'][_0x5732a9(0x383)](_0x5732a9(0x204),_0x5732a9(0x358));let _0x177dd6=[[a[_0x5732a9(0x525)],{'useClass':je}],[exports[_0x5732a9(0x2cf)]],[We],[P[_0x5732a9(0x42e)]],[Ye,{'useClass':wt}],[G],[exports[_0x5732a9(0x45c)]],[P['WebSocketService']],[fe],[ge],[ve],[Ve],[Ie],[Fe],[Be,{'useClass':(_0x483a28=(_0x31d2ca=this[_0x5732a9(0x26b)])==null?void 0x0:_0x31d2ca[_0x5732a9(0x3ba)])!=null?_0x483a28:exports[_0x5732a9(0x44c)]}],[P[_0x5732a9(0x294)],{'useClass':P[_0x5732a9(0x409)]}],[a[_0x5732a9(0x55c)],{'useClass':Ae}],[a[_0x5732a9(0x505)],{'useClass':exports['AuthzIoHttpService']}],[A['IImageIoService'],{'useClass':$e}],[exports[_0x5732a9(0x4cd)]],[exports[_0x5732a9(0x1ca)]],[exports[_0x5732a9(0x529)]],[de],[J]];(_0x3127f9=this['_config'])!=null&&_0x3127f9[_0x5732a9(0x1d2)]&&_0x177dd6['push']([pe,{'useClass':_s}]),((_0x49db3d=this[_0x5732a9(0x26b)])==null?void 0x0:_0x49db3d[_0x5732a9(0x441)])==null||this['_config'][_0x5732a9(0x441)][_0x5732a9(0x2c5)](a[_0x5732a9(0x30a)][_0x5732a9(0x272)])?_0x177dd6[_0x5732a9(0x346)]([ue]):this[_0x5732a9(0x26b)][_0x5732a9(0x441)]['includes'](a[_0x5732a9(0x30a)][_0x5732a9(0x2a2)])&&_0x177dd6[_0x5732a9(0x346)]([Se]),_0x177dd6=a[_0x5732a9(0x224)](_0x177dd6,(_0x1b3b33=this[_0x5732a9(0x26b)])==null?void 0x0:_0x1b3b33['override']),_0x177dd6[_0x5732a9(0x3b0)](_0x47f8d5=>_0x446cd2[_0x5732a9(0x3af)](_0x47f8d5)),_0x446cd2[_0x5732a9(0x2d3)](P[_0x5732a9(0x42e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':P[_0x5732a9(0x428)]({'maxParallel':0x6})}),this[_0x5732a9(0x3fd)]();}[_0x29b95d(0x3fd)](){const _0x552048=_0x29b95d;var _0x838504,_0x544ddf;(_0x838504=this[_0x552048(0x26b)])!=null&&_0x838504['enableOfflineEditing']||this[_0x552048(0x42b)][_0x552048(0x2d3)](exports[_0x552048(0x45c)])[_0x552048(0x4d4)](),(_0x544ddf=this[_0x552048(0x26b)])!=null&&_0x544ddf['enableAuthServer']&&this[_0x552048(0x42b)][_0x552048(0x2d3)](Ie);}},sn(exports[_0x29b95d(0x26a)],_0x29b95d(0x337),nn),exports['UniverCollaborationClientPlugin']=tn([a[_0x29b95d(0x4e1)](u[_0x29b95d(0x244)]),at(0x1,a[_0x29b95d(0x50d)]),at(0x2,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)]))],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=Lt,exports[_0x29b95d(0x4ab)]=gt,exports[_0x29b95d(0x38d)]=ut,exports[_0x29b95d(0x3ec)]=U,exports[_0x29b95d(0x4f2)]=Ut,exports[_0x29b95d(0x48d)]=Fe,exports[_0x29b95d(0x4af)]=dt,exports[_0x29b95d(0x3f0)]=xe,exports[_0x29b95d(0x528)]=Be,exports['IURLService']=Ye,exports[_0x29b95d(0x2a3)]=vt,exports[_0x29b95d(0x452)]=ft,exports[_0x29b95d(0x1cb)]=_t,exports[_0x29b95d(0x40b)]=lt,exports[_0x29b95d(0x556)]=ht,exports[_0x29b95d(0x278)]=W,exports[_0x29b95d(0x37b)]=wt,exports[_0x29b95d(0x35a)]=It,exports[_0x29b95d(0x56d)]=pt;
|
1
|
+
'use strict';const _0x2ad778=_0x379e;(function(_0x2478a6,_0x25ffb4){const _0x2090af=_0x379e,_0x2428b4=_0x2478a6();while(!![]){try{const _0x2a7b1b=parseInt(_0x2090af(0x3cf))/0x1*(-parseInt(_0x2090af(0x16a))/0x2)+-parseInt(_0x2090af(0x1c0))/0x3+parseInt(_0x2090af(0x175))/0x4*(parseInt(_0x2090af(0x4a1))/0x5)+-parseInt(_0x2090af(0x4ed))/0x6+parseInt(_0x2090af(0x2ee))/0x7+-parseInt(_0x2090af(0x4d5))/0x8*(-parseInt(_0x2090af(0x4b2))/0x9)+parseInt(_0x2090af(0x1a4))/0xa;if(_0x2a7b1b===_0x25ffb4)break;else _0x2428b4['push'](_0x2428b4['shift']());}catch(_0x47c476){_0x2428b4['push'](_0x2428b4['shift']());}}}(_0x315b,0x61473));var $t=Object[_0x2ad778(0x4be)],Ht=(_0x15e76a,_0xba4299,_0x65b8a4)=>_0xba4299 in _0x15e76a?$t(_0x15e76a,_0xba4299,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x65b8a4}):_0x15e76a[_0xba4299]=_0x65b8a4,u=(_0x3caee5,_0x1c11e2,_0x17b501)=>Ht(_0x3caee5,typeof _0x1c11e2!=_0x2ad778(0x2dc)?_0x1c11e2+'':_0x1c11e2,_0x17b501);Object['defineProperty'](exports,Symbol[_0x2ad778(0x1ad)],{'value':_0x2ad778(0x479)});const o=require(_0x2ad778(0x312)),p=require(_0x2ad778(0x260)),Z=require(_0x2ad778(0x18c)),M=require('@univerjs/ui'),_=require(_0x2ad778(0x2d2)),v=require(_0x2ad778(0x381)),E=require(_0x2ad778(0x4e5)),L=require('@univerjs/docs'),U=require(_0x2ad778(0x32f)),N=require(_0x2ad778(0x3f8)),Xe=require('@univerjs/engine-formula'),xe=require(_0x2ad778(0x393)),T=require('@univerjs/engine-render'),J=require(_0x2ad778(0x3ed)),w=require(_0x2ad778(0x3ab)),xt=require('clsx'),kt=require(_0x2ad778(0x238)),lt=_0x2ad778(0x4b8),Bt=_0x2ad778(0x4c2),ht=_0x2ad778(0x1a2),_t=_0x2ad778(0x288),Ft=0x7d0,ut=_0x2ad778(0x3fe),Vt=_0x2ad778(0x47d),dt=_0x2ad778(0x265),Wt=0x7530,ke='HEARTBEAT_TIMEOUT',St=0x2710,Gt=_0x2ad778(0x3a6),Yt=0x4e20,Kt='RETRY_CONNECTING_MAX_COUNT',Xt=0x3,vt=_0x2ad778(0x2f2),qt=0x3e8,gt=_0x2ad778(0x3fb),Jt=_0x2ad778(0x398),ft=_0x2ad778(0x2ea),zt=_0x2ad778(0x37d);var mt=(_0x44b9a0=>(_0x44b9a0[_0x44b9a0['UNDEFINED']=0x0]=_0x2ad778(0x4e0),_0x44b9a0[_0x44b9a0['OK']=0x1]='OK',_0x44b9a0[_0x44b9a0[_0x2ad778(0x33b)]=0x2]=_0x2ad778(0x33b),_0x44b9a0[_0x44b9a0['PERMISSION_DENIED']=0x3]=_0x2ad778(0x460),_0x44b9a0[_0x44b9a0['NOT_FOUND']=0x4]=_0x2ad778(0x4c6),_0x44b9a0[_0x44b9a0['UNAUTHENTICATED']=0x5]=_0x2ad778(0x21d),_0x44b9a0[_0x44b9a0[_0x2ad778(0x48d)]=0x6]=_0x2ad778(0x48d),_0x44b9a0[_0x44b9a0[_0x2ad778(0x2a3)]=0x7]=_0x2ad778(0x2a3),_0x44b9a0[_0x44b9a0[_0x2ad778(0x22c)]=0x8]=_0x2ad778(0x22c),_0x44b9a0[_0x44b9a0[_0x2ad778(0x168)]=0x9]=_0x2ad778(0x168),_0x44b9a0[_0x44b9a0[_0x2ad778(0x2b0)]=0x1389]=_0x2ad778(0x2b0),_0x44b9a0[_0x44b9a0['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x44b9a0[_0x44b9a0[_0x2ad778(0x20a)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x44b9a0[_0x44b9a0[_0x2ad778(0x4cc)]=0x1b59]=_0x2ad778(0x4cc),_0x44b9a0[_0x44b9a0[_0x2ad778(0x374)]=0x1b5a]=_0x2ad778(0x374),_0x44b9a0[_0x44b9a0[_0x2ad778(0x315)]=0x1b5b]=_0x2ad778(0x315),_0x44b9a0[_0x44b9a0['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x2ad778(0x1e2),_0x44b9a0[_0x44b9a0[_0x2ad778(0x1f3)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x44b9a0[_0x44b9a0[_0x2ad778(0x3a2)]=0x2329]=_0x2ad778(0x3a2),_0x44b9a0[_0x44b9a0[_0x2ad778(0x400)]=0x232a]=_0x2ad778(0x400),_0x44b9a0[_0x44b9a0[_0x2ad778(0x1aa)]=0x232b]=_0x2ad778(0x1aa),_0x44b9a0[_0x44b9a0[_0x2ad778(0x2f0)]=0x232c]=_0x2ad778(0x2f0),_0x44b9a0[_0x44b9a0[_0x2ad778(0x42e)]=0x232d]=_0x2ad778(0x42e),_0x44b9a0[_0x44b9a0[_0x2ad778(0x161)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x44b9a0[_0x44b9a0['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2ad778(0x386),_0x44b9a0[_0x44b9a0['UNRECOGNIZED']=-0x1]=_0x2ad778(0x1a1),_0x44b9a0))(mt||{}),A=(_0x1f11d0=>(_0x1f11d0[_0x1f11d0['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x1f11d0[_0x1f11d0['UNIVER_DOC']=0x1]=_0x2ad778(0x257),_0x1f11d0[_0x1f11d0[_0x2ad778(0x421)]=0x2]=_0x2ad778(0x421),_0x1f11d0[_0x1f11d0[_0x2ad778(0x25f)]=0x3]=_0x2ad778(0x25f),_0x1f11d0[_0x1f11d0[_0x2ad778(0x1a1)]=-0x1]=_0x2ad778(0x1a1),_0x1f11d0))(A||{}),b=(_0x5b132a=>(_0x5b132a[_0x5b132a[_0x2ad778(0x220)]=0x0]=_0x2ad778(0x220),_0x5b132a[_0x5b132a[_0x2ad778(0x3e9)]=0x1]=_0x2ad778(0x3e9),_0x5b132a[_0x5b132a[_0x2ad778(0x20b)]=0x2]=_0x2ad778(0x20b),_0x5b132a[_0x5b132a['LEAVE']=0x3]=_0x2ad778(0x3b2),_0x5b132a[_0x5b132a[_0x2ad778(0x285)]=0x4]=_0x2ad778(0x285),_0x5b132a[_0x5b132a[_0x2ad778(0x185)]=0x5]='HEARTBEAT',_0x5b132a[_0x5b132a[_0x2ad778(0x3b5)]=0x6]='RECV',_0x5b132a[_0x5b132a[_0x2ad778(0x1a1)]=-0x1]='UNRECOGNIZED',_0x5b132a))(b||{}),Be=(_0x3846e3=>(_0x3846e3[_0x3846e3[_0x2ad778(0x47f)]=0x0]=_0x2ad778(0x47f),_0x3846e3[_0x3846e3['OK']=0x1]='OK',_0x3846e3[_0x3846e3[_0x2ad778(0x342)]=0x2]=_0x2ad778(0x342),_0x3846e3[_0x3846e3[_0x2ad778(0x1a1)]=-0x1]=_0x2ad778(0x1a1),_0x3846e3))(Be||{}),Zt=Object[_0x2ad778(0x4be)],Qt=Object[_0x2ad778(0x16e)],es=(_0x1151c5,_0x52df1c,_0x1c9cfd,_0x418c27)=>{const _0x1e68a8=_0x2ad778;for(var _0x54a34a=_0x418c27>0x1?void 0x0:_0x418c27?Qt(_0x52df1c,_0x1c9cfd):_0x52df1c,_0x3b954a=_0x1151c5[_0x1e68a8(0x32e)]-0x1,_0x1a17e4;_0x3b954a>=0x0;_0x3b954a--)(_0x1a17e4=_0x1151c5[_0x3b954a])&&(_0x54a34a=(_0x418c27?_0x1a17e4(_0x52df1c,_0x1c9cfd,_0x54a34a):_0x1a17e4(_0x54a34a))||_0x54a34a);return _0x418c27&&_0x54a34a&&Zt(_0x52df1c,_0x1c9cfd,_0x54a34a),_0x54a34a;},qe=(_0x4a1485,_0x29f8d5)=>(_0x42930e,_0x56882c)=>_0x29f8d5(_0x42930e,_0x56882c,_0x4a1485);let W=class extends o[_0x2ad778(0x299)]{constructor(_0x13a60c,_0xfbd708){const _0x4ef539=_0x2ad778;super(),u(this,_0x4ef539(0x23d),new Map()),(this['_univerInstanceService']=_0x13a60c,this[_0x4ef539(0x268)]=_0xfbd708,this[_0x4ef539(0x233)](o[_0x4ef539(0x1e7)](v[_0x4ef539(0x443)](this['_univerInstanceService'][_0x4ef539(0x1e8)](o[_0x4ef539(0x3c7)]['UNIVER_SHEET'])[_0x4ef539(0x502)](E[_0x4ef539(0x2c7)](_0x49591d=>_0x49591d[_0x4ef539(0x340)]())),this[_0x4ef539(0x2ec)][_0x4ef539(0x1e8)](o[_0x4ef539(0x3c7)]['UNIVER_DOC'])[_0x4ef539(0x502)](E[_0x4ef539(0x2c7)](_0x1f3b4a=>_0x1f3b4a[_0x4ef539(0x340)]())),this['_univerInstanceService'][_0x4ef539(0x1e8)](o[_0x4ef539(0x3c7)][_0x4ef539(0x25f)])['pipe'](E[_0x4ef539(0x2c7)](_0x5b3acf=>_0x5b3acf[_0x4ef539(0x340)]())))['subscribe'](_0x1d25db=>this['_removeRoom'](_0x1d25db)))));}[_0x2ad778(0x465)](_0x39ceb1){const _0x33ba59=_0x2ad778;this[_0x33ba59(0x268)][_0x33ba59(0x465)](_0x39ceb1);}['getCurrentUser'](){const _0x609057=_0x2ad778;return this[_0x609057(0x268)][_0x609057(0x433)]();}[_0x2ad778(0x4c7)](_0x428b1c,_0x1ca112){const _0x4ffd6d=_0x2ad778;let _0x5df6e1=this[_0x4ffd6d(0x23d)][_0x4ffd6d(0x49d)](_0x428b1c);_0x5df6e1||(_0x5df6e1=new ts(),this[_0x4ffd6d(0x23d)]['set'](_0x428b1c,_0x5df6e1)),_0x5df6e1[_0x4ffd6d(0x4c7)](_0x1ca112);}[_0x2ad778(0x262)](_0x56b086,_0x47f9fe){const _0x4a1f99=_0x2ad778,_0x23b261=this[_0x4a1f99(0x23d)]['get'](_0x56b086);_0x23b261&&_0x23b261[_0x4a1f99(0x262)](_0x47f9fe);}['getRoom'](_0x544f3d){const _0x382ea8=_0x2ad778;return this['_roomMembers'][_0x382ea8(0x49d)](_0x544f3d);}[_0x2ad778(0x4ec)](_0x304121,_0x1b7a69){const _0x289549=_0x2ad778,_0x2e82c4=this[_0x289549(0x23d)][_0x289549(0x49d)](_0x304121);if(_0x2e82c4)return _0x2e82c4[_0x289549(0x4ec)](_0x1b7a69);}[_0x2ad778(0x434)](_0x8ef46c){const _0x5f9ca4=_0x2ad778,_0x1b469c=this[_0x5f9ca4(0x23d)][_0x5f9ca4(0x49d)](_0x8ef46c);_0x1b469c&&(_0x1b469c[_0x5f9ca4(0x194)](),this['_roomMembers']['delete'](_0x8ef46c));}['dispose'](){const _0x2ea4a0=_0x2ad778;this[_0x2ea4a0(0x23d)][_0x2ea4a0(0x169)](_0xc81da2=>_0xc81da2[_0x2ea4a0(0x194)]()),this[_0x2ea4a0(0x23d)][_0x2ea4a0(0x200)]();}};W=es([qe(0x0,o[_0x2ad778(0x1ed)]),qe(0x1,o[_0x2ad778(0x143)](o[_0x2ad778(0x201)]))],W);class ts extends o[_0x2ad778(0x299)]{constructor(){super(...arguments),u(this,'_members',new Map());}[_0x2ad778(0x194)](){const _0x3a5070=_0x2ad778;this[_0x3a5070(0x3b3)][_0x3a5070(0x200)]();}[_0x2ad778(0x4c7)](_0x3f54b3){const _0x5b20d3=_0x2ad778;this[_0x5b20d3(0x3b3)][_0x5b20d3(0x20c)](_0x3f54b3[_0x5b20d3(0x1a9)],_0x3f54b3);}[_0x2ad778(0x262)](_0x443581){const _0x29053a=_0x2ad778;this['_members'][_0x29053a(0x40a)](_0x443581);}[_0x2ad778(0x4ec)](_0x1720c1){const _0x5a6a10=_0x2ad778;return this[_0x5a6a10(0x3b3)][_0x5a6a10(0x49d)](_0x1720c1);}}function It(_0x16a6cc){const _0x35527a=_0x2ad778;var _0x96ed37,_0xf8d4d5,_0x54459b,_0x439961;const _0x111ce7=_0x16a6cc[_0x35527a(0x2f7)],_0x4877af=JSON[_0x35527a(0x34f)](_0x111ce7);switch(_0x4877af['cmd']){case b[_0x35527a(0x185)]:case b[_0x35527a(0x3e9)]:{const _0x554f4e=_0x4877af['infoRsp'];return{..._0x4877af,'data':_0x554f4e,'cmd':_0x4877af[_0x35527a(0x36f)]};}case b[_0x35527a(0x20b)]:{const _0xe7f2af=_0x4877af[_0x35527a(0x316)];return{..._0x4877af,'data':_0xe7f2af,'cmd':_0x4877af[_0x35527a(0x36f)]};}case b['RECV']:{const _0x4ca481=_0x4877af[_0x35527a(0x1d4)];switch(_0x4ca481[_0x35527a(0x318)]){case _[_0x35527a(0x4b9)][_0x35527a(0x396)]:return{..._0x4877af,'data':{..._0x4ca481,'data':(_0x96ed37=_0x4ca481['permissionRejEvent'])==null?void 0x0:_0x96ed37['cs']},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent'][_0x35527a(0x4dc)]:return{..._0x4877af,'data':{..._0x4ca481,'data':(_0xf8d4d5=_0x4ca481[_0x35527a(0x206)])==null?void 0x0:_0xf8d4d5['cs']},'cmd':_0x4877af[_0x35527a(0x36f)]};case _[_0x35527a(0x4b9)][_0x35527a(0x3f4)]:return{..._0x4877af,'data':{..._0x4ca481,'data':(_0x54459b=_0x4ca481['newCsEvent'])==null?void 0x0:_0x54459b['cs']},'cmd':_0x4877af['cmd']};case _[_0x35527a(0x4b9)][_0x35527a(0x1ce)]:return{..._0x4877af,'data':{..._0x4ca481,'data':(_0x439961=_0x4ca481[_0x35527a(0x426)])==null?void 0x0:_0x439961['cs']},'cmd':_0x4877af['cmd']};case _['CollaborationEvent'][_0x35527a(0x1be)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x480)]},'cmd':_0x4877af[_0x35527a(0x36f)]};case _[_0x35527a(0x4b9)][_0x35527a(0x237)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x235)]},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent']['USERS_LEAVE']:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x226)]},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x466)]},'cmd':_0x4877af[_0x35527a(0x36f)]};case _[_0x35527a(0x4b9)][_0x35527a(0x39f)]:case _[_0x35527a(0x4b9)][_0x35527a(0x409)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x1d8)]},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent'][_0x35527a(0x4b4)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481['liveShareNewHost']},'cmd':_0x4877af[_0x35527a(0x36f)]};case _[_0x35527a(0x4b9)][_0x35527a(0x420)]:return{..._0x4877af,'data':_0x4ca481,'cmd':_0x4877af[_0x35527a(0x36f)]};case _[_0x35527a(0x4b9)][_0x35527a(0x3eb)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481['commentUpdateEvent']},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481['updatePermissionObjEvent']},'cmd':_0x4877af[_0x35527a(0x36f)]};case _['CollaborationEvent'][_0x35527a(0x1fe)]:return{..._0x4877af,'data':{..._0x4ca481,'data':_0x4ca481[_0x35527a(0x467)]},'cmd':_0x4877af[_0x35527a(0x36f)]};default:return _0x4877af;}}default:return _0x4877af;}}function pt(_0x559507){const _0x50c9b0=_0x2ad778;switch(_0x559507[_0x50c9b0(0x36f)]){case b[_0x50c9b0(0x185)]:case b['HELLO']:return JSON[_0x50c9b0(0x146)]({'cmd':_0x559507[_0x50c9b0(0x36f)],'routeKey':_0x559507['routeKey']});case b[_0x50c9b0(0x285)]:{let _0x576d0c;switch(_0x559507[_0x50c9b0(0x2f7)][_0x50c9b0(0x318)]){case _[_0x50c9b0(0x4b9)][_0x50c9b0(0x1be)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x1be)],'updateCursorEvent':_0x559507['data'][_0x50c9b0(0x2f7)]};break;}case _[_0x50c9b0(0x4b9)][_0x50c9b0(0x16d)]:{_0x576d0c={'eventID':_['CollaborationEvent'][_0x50c9b0(0x16d)],'leaveEvent':_0x559507['data'][_0x50c9b0(0x2f7)]};break;}case _['CollaborationEvent'][_0x50c9b0(0x237)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x237)],'joinEvent':_0x559507[_0x50c9b0(0x2f7)]['data']};break;}case _[_0x50c9b0(0x4b9)]['LIVESHARE_NEW_HOST']:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x28f)],'liveShareNewHost':_0x559507['data'][_0x50c9b0(0x2f7)]};break;}case _[_0x50c9b0(0x4b9)][_0x50c9b0(0x409)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x409)],'liveShareOperation':_0x559507[_0x50c9b0(0x2f7)][_0x50c9b0(0x2f7)]};break;}case _[_0x50c9b0(0x4b9)][_0x50c9b0(0x4b4)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x4b4)],'liveShareTerminate':_0x559507[_0x50c9b0(0x2f7)][_0x50c9b0(0x2f7)]};break;}case _[_0x50c9b0(0x4b9)][_0x50c9b0(0x3d6)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x3d6)],'liveShareRequestHost':_0x559507['data']['data']};break;}case _['CollaborationEvent'][_0x50c9b0(0x39f)]:{_0x576d0c={'eventID':_[_0x50c9b0(0x4b9)][_0x50c9b0(0x39f)]};break;}default:_0x576d0c={'eventID':_0x559507[_0x50c9b0(0x2f7)][_0x50c9b0(0x318)]};}return JSON[_0x50c9b0(0x146)]({'cmd':_0x559507['cmd'],'routeKey':_0x559507[_0x50c9b0(0x4c1)],'collaMsg':_0x576d0c});}case b[_0x50c9b0(0x20b)]:return JSON['stringify']({'cmd':_0x559507[_0x50c9b0(0x36f)],'routeKey':_0x559507[_0x50c9b0(0x4c1)],'joinReq':_0x559507[_0x50c9b0(0x2f7)]});case b[_0x50c9b0(0x3b2)]:return JSON['stringify']({'cmd':_0x559507[_0x50c9b0(0x36f)],'routeKey':_0x559507[_0x50c9b0(0x4c1)],'leaveReq':_0x559507['data']});default:throw new Error(_0x50c9b0(0x455));}}var ss=Object[_0x2ad778(0x4be)],is=Object[_0x2ad778(0x16e)],ns=(_0x189b3e,_0x363823,_0x5ec100,_0x186661)=>{const _0xc85808=_0x2ad778;for(var _0x394e43=_0x186661>0x1?void 0x0:_0x186661?is(_0x363823,_0x5ec100):_0x363823,_0x5c4f3a=_0x189b3e[_0xc85808(0x32e)]-0x1,_0x55ee0a;_0x5c4f3a>=0x0;_0x5c4f3a--)(_0x55ee0a=_0x189b3e[_0x5c4f3a])&&(_0x394e43=(_0x186661?_0x55ee0a(_0x363823,_0x5ec100,_0x394e43):_0x55ee0a(_0x394e43))||_0x394e43);return _0x186661&&_0x394e43&&ss(_0x363823,_0x5ec100,_0x394e43),_0x394e43;},te=(_0x2599d5,_0xb23176)=>(_0x602be3,_0x5929b1)=>_0xb23176(_0x602be3,_0x5929b1,_0x2599d5);const Fe=o[_0x2ad778(0x241)](_0x2ad778(0x2e4));function rs(_0x16022d,_0x3d63f5,_0x37a721){const _0x252008=_0x2ad778;return _0x16022d+'/'+_0x3d63f5+_0x252008(0x3fd)+_0x37a721+_0x252008(0x48e);}exports[_0x2ad778(0x389)]=class{constructor(_0x5a9a85,_0x32cc42,_0x59e920,_0x5bf12d,_0x3f2b1d){const _0x204dc0=_0x2ad778;this[_0x204dc0(0x451)]=_0x5a9a85,this[_0x204dc0(0x2fe)]=_0x32cc42,this[_0x204dc0(0x508)]=_0x59e920,this[_0x204dc0(0x46f)]=_0x5bf12d,this[_0x204dc0(0x155)]=_0x3f2b1d;}['createSocket'](_0x21b7f4){const _0x3697d9=_0x2ad778,_0x5a84db=this['_ws'][_0x3697d9(0x31f)](_0x21b7f4);if(!_0x5a84db)throw new Error(_0x3697d9(0x4ca));const _0x34d242=new o['DisposableCollection'](),_0x5363a4=new v[(_0x3697d9(0x2c6))]();_0x34d242['add'](o[_0x3697d9(0x1e7)](_0x5a84db['close$'][_0x3697d9(0x27c)](_0x3c20d8=>_0x5363a4['next'](_0x3c20d8)))),_0x34d242[_0x3697d9(0x459)](o[_0x3697d9(0x1e7)](()=>_0x5363a4['complete']()));const _0x17c0e3=new v['Subject']();_0x34d242[_0x3697d9(0x459)](o['toDisposable'](_0x5a84db['error$'][_0x3697d9(0x27c)](_0x505a72=>_0x17c0e3[_0x3697d9(0x368)](_0x505a72)))),_0x34d242[_0x3697d9(0x459)](o[_0x3697d9(0x1e7)](()=>_0x17c0e3['complete']()));const _0x2e3830=new v[(_0x3697d9(0x2c6))]();_0x34d242['add'](o[_0x3697d9(0x1e7)](_0x5a84db['message$'][_0x3697d9(0x27c)](_0x1bf6b3=>{const _0x5e6420=_0x3697d9,_0x34e6ec=It(_0x1bf6b3);_0x2e3830[_0x5e6420(0x368)](_0x34e6ec);}))),_0x34d242[_0x3697d9(0x459)](o['toDisposable'](()=>_0x2e3830[_0x3697d9(0x1df)]()));const _0x12b041=()=>{const _0x125e0d=_0x3697d9;_0x17c0e3[_0x125e0d(0x368)](new Event('connection\x20error')),_0x5363a4[_0x125e0d(0x368)](new CloseEvent(_0x125e0d(0x2dd))),_0xa3c625['close']();},_0xa3c625={'memberID':'','close$':_0x5363a4[_0x3697d9(0x1bd)](),'error$':_0x17c0e3[_0x3697d9(0x1bd)](),'open$':_0x5a84db[_0x3697d9(0x319)],'message$':_0x2e3830[_0x3697d9(0x1bd)](),'send':_0x2bf3ac=>{const _0x478ced=_0x3697d9;if(_0x2bf3ac['cmd']===b[_0x478ced(0x285)]){if(_0x2bf3ac[_0x478ced(0x2f7)][_0x478ced(0x318)]===_[_0x478ced(0x4b9)][_0x478ced(0x246)]){this['_submitChangeset'](_0xa3c625,_0x2bf3ac[_0x478ced(0x2f7)])[_0x478ced(0x1cf)](_0x53a305=>{const _0x3c77ae=_0x478ced;this[_0x3c77ae(0x46f)][_0x3c77ae(0x191)](_0x53a305),_0x12b041();});return;}if(_0x2bf3ac[_0x478ced(0x2f7)][_0x478ced(0x318)]===_[_0x478ced(0x4b9)]['FETCH_MISSING']){const _0x1d3107=_0x2bf3ac[_0x478ced(0x2f7)];this[_0x478ced(0x4f1)](_0x1d3107)[_0x478ced(0x22e)](_0x5c84d5=>{const _0x495bf2=_0x478ced;_0x2e3830[_0x495bf2(0x368)]({'cmd':b[_0x495bf2(0x3b5)],'code':Be['OK'],'routeKey':_0x1d3107['data']['unitID'],'routeType':'','data':{'eventID':_[_0x495bf2(0x4b9)][_0x495bf2(0x281)],'data':{'changesets':_0x5c84d5}}});})[_0x478ced(0x1cf)](_0x11d23e=>{const _0x53f416=_0x478ced;this[_0x53f416(0x46f)][_0x53f416(0x191)](_0x11d23e),_0x12b041();});return;}}_0x5a84db['send'](pt(_0x2bf3ac));},'close':()=>{const _0x102f2f=_0x3697d9;_0x5a84db['close'](),_0x34d242[_0x102f2f(0x194)]();}};return _0xa3c625;}async[_0x2ad778(0x293)](_0xf8d935,_0x1eee59){const _0x1e4517=_0x2ad778;var _0x284e10;const {unitType:_0x1bea97,unitID:_0x230551,changeset:_0x1a6056}=_0x1eee59[_0x1e4517(0x2f7)],_0x2ed714={'unitID':_0x230551,'memberID':_0xf8d935[_0x1e4517(0x1a9)],'type':_0x1bea97,'changeset':_[_0x1e4517(0x423)](_0x1a6056)},_0x480bc5=rs((_0x284e10=this[_0x1e4517(0x508)][_0x1e4517(0x39e)](gt))!=null?_0x284e10:Jt,_0x1bea97,_0x230551);try{await this[_0x1e4517(0x451)]['post'](_0x480bc5,{'body':_0x2ed714});}catch(_0xa1dd96){throw this['_logService'][_0x1e4517(0x191)](_0x1e4517(0x3e5),'submit\x20changeset\x20error!'),_0xa1dd96;}}async[_0x2ad778(0x4f1)](_0x262a13){const _0x28c737=_0x2ad778,{unitID:_0x5e2237,from:_0x1ef503,to:_0x3e25f9,unitType:_0x398c73}=_0x262a13[_0x28c737(0x2f7)];return(await this[_0x28c737(0x155)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5e2237,'type':_0x398c73,'from':_0x1ef503,'to':_0x3e25f9}))[_0x28c737(0x388)];}},exports[_0x2ad778(0x389)]=ns([te(0x0,o['Inject'](U[_0x2ad778(0x2cf)])),te(0x1,o[_0x2ad778(0x143)](U[_0x2ad778(0x1b1)])),te(0x2,o[_0x2ad778(0x4aa)]),te(0x3,o[_0x2ad778(0x2ac)]),te(0x4,o['ISnapshotServerService'])],exports[_0x2ad778(0x389)]);class Ve{constructor(){const _0x31f403=_0x2ad778;u(this,_0x31f403(0x407),new v[(_0x31f403(0x2c6))]()),u(this,_0x31f403(0x38e),this[_0x31f403(0x407)][_0x31f403(0x1bd)]());}[_0x2ad778(0x2df)](_0x4e4d91){const _0x3708ea=_0x2ad778;this[_0x3708ea(0x407)]['next'](_0x4e4d91);}}var os=Object[_0x2ad778(0x4be)],as=Object[_0x2ad778(0x16e)],Et=(_0xc2cbd4,_0x30a9a5,_0x172a0,_0x11ae4e)=>{const _0x446997=_0x2ad778;for(var _0x409fd3=_0x11ae4e>0x1?void 0x0:_0x11ae4e?as(_0x30a9a5,_0x172a0):_0x30a9a5,_0x4ba095=_0xc2cbd4[_0x446997(0x32e)]-0x1,_0x17e51d;_0x4ba095>=0x0;_0x4ba095--)(_0x17e51d=_0xc2cbd4[_0x4ba095])&&(_0x409fd3=(_0x11ae4e?_0x17e51d(_0x30a9a5,_0x172a0,_0x409fd3):_0x17e51d(_0x409fd3))||_0x409fd3);return _0x11ae4e&&_0x409fd3&&os(_0x30a9a5,_0x172a0,_0x409fd3),_0x409fd3;},P=(_0x3a29f4,_0x23a979)=>(_0x4ca73d,_0x510c21)=>_0x23a979(_0x4ca73d,_0x510c21,_0x3a29f4),V=(_0x1d7fce=>(_0x1d7fce[_0x1d7fce[_0x2ad778(0x1db)]=0x0]='IDLE',_0x1d7fce[_0x1d7fce[_0x2ad778(0x48a)]=0x1]=_0x2ad778(0x48a),_0x1d7fce[_0x1d7fce[_0x2ad778(0x2fc)]=0x2]=_0x2ad778(0x2fc),_0x1d7fce[_0x1d7fce[_0x2ad778(0x21e)]=0x3]=_0x2ad778(0x21e),_0x1d7fce))(V||{});exports[_0x2ad778(0x228)]=class extends o[_0x2ad778(0x30e)]{constructor(_0x26eaa3,_0x3481f9,_0xa98b77,_0x41500e,_0x60addd,_0x4643d0,_0x1a33bf,_0x30a0e4,_0x20f570){const _0x1dd490=_0x2ad778;super(),u(this,_0x1dd490(0x3a7),new v[(_0x1dd490(0x31c))](0x0)),u(this,'sessionStatus$',this[_0x1dd490(0x3a7)][_0x1dd490(0x1bd)]()),u(this,'_event$',new v[(_0x1dd490(0x2c6))]()),u(this,'event$',this[_0x1dd490(0x444)][_0x1dd490(0x1bd)]()),u(this,_0x1dd490(0x1b2)),u(this,_0x1dd490(0x341)),u(this,_0x1dd490(0x154)),(this['_unitID']=_0x26eaa3,this[_0x1dd490(0x46f)]=_0xa98b77,this[_0x1dd490(0x372)]=_0x41500e,this['_messageService']=_0x60addd,this[_0x1dd490(0x508)]=_0x4643d0,this['_localeService']=_0x1a33bf,this[_0x1dd490(0x278)]=_0x30a0e4,this['_commentService']=_0x20f570,_0x3481f9[_0x1dd490(0x502)](E[_0x1dd490(0x306)](this['dispose$']))[_0x1dd490(0x27c)](_0x894bc0=>{const _0x1fd920=_0x1dd490;var _0x571b20;typeof _0x894bc0>'u'||(this[_0x1fd920(0x1b2)]=_0x894bc0,_0x894bc0?(this[_0x1fd920(0x19d)](_0x894bc0),this['_socketMessageSubscription']=this[_0x1fd920(0x1b2)][_0x1fd920(0x230)][_0x1fd920(0x27c)](_0x42c7d2=>{const _0x39838c=_0x1fd920;_0x42c7d2[_0x39838c(0x4c1)]===this['_unitID']&&this[_0x39838c(0x452)](_0x42c7d2);})):(this['_sessionStatus$'][_0x1fd920(0x368)](0x2),(_0x571b20=this[_0x1fd920(0x341)])==null||_0x571b20[_0x1fd920(0x3ae)](),this[_0x1fd920(0x341)]=null));}),this[_0x1dd490(0x233)](this['_beforeCloseService'][_0x1dd490(0x416)](()=>{const _0x308b8b=_0x1dd490;var _0x18b57f;(_0x18b57f=this[_0x308b8b(0x1b2)])==null||_0x18b57f[_0x308b8b(0x424)]({'cmd':b[_0x308b8b(0x3b2)],'data':{'roomID':this[_0x308b8b(0x2bd)]}});})));}get[_0x2ad778(0x360)](){const _0x43f35c=_0x2ad778;return this[_0x43f35c(0x3a7)][_0x43f35c(0x261)]();}[_0x2ad778(0x505)](){var _0x4d7793,_0x4edf76;return(_0x4edf76=(_0x4d7793=this['_socket'])==null?void 0x0:_0x4d7793['memberID'])!=null?_0x4edf76:null;}[_0x2ad778(0x194)](){const _0x1a0a07=_0x2ad778;super['dispose'](),this['dispose$']['next'](),this[_0x1a0a07(0x46a)][_0x1a0a07(0x1df)]();}[_0x2ad778(0x4d6)](){const _0x16acc4=_0x2ad778;var _0x1b4cbd,_0x4b401e;(_0x1b4cbd=this[_0x16acc4(0x1b2)])==null||_0x1b4cbd[_0x16acc4(0x424)]({'cmd':b[_0x16acc4(0x3b2)],'data':{'roomID':this[_0x16acc4(0x2bd)]}}),this[_0x16acc4(0x444)]['complete'](),this['_sessionStatus$'][_0x16acc4(0x1df)](),(_0x4b401e=this[_0x16acc4(0x1b2)])==null||_0x4b401e[_0x16acc4(0x4d6)](),this['dispose']();}['_onCombEvent'](_0x482a84){const _0x2eb1d9=_0x2ad778;_0x482a84[_0x2eb1d9(0x36f)]===b[_0x2eb1d9(0x20b)]?this[_0x2eb1d9(0x147)](_0x482a84):_0x482a84[_0x2eb1d9(0x36f)]===b[_0x2eb1d9(0x3b5)]&&this[_0x2eb1d9(0x1ff)](_0x482a84);}[_0x2ad778(0x19d)](_0x1f7868){const _0x4fec67=_0x2ad778;this[_0x4fec67(0x3a7)][_0x4fec67(0x368)](0x1),_0x1f7868[_0x4fec67(0x424)]({'cmd':b['JOIN'],'routeKey':this[_0x4fec67(0x2bd)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4fec67(0x2bd)]}]}});}[_0x2ad778(0x147)](_0x12f5ed){const _0x5ba120=_0x2ad778;var _0x4ca32d;if(_0x12f5ed['code']===Be[_0x5ba120(0x342)]){this[_0x5ba120(0x1d0)][_0x5ba120(0x1c6)]({'type':Z[_0x5ba120(0x310)]['Warning'],'content':this['_localeService']['t'](_0x5ba120(0x428))}),this[_0x5ba120(0x3a7)]['next'](0x2);return;}this[_0x5ba120(0x3a7)][_0x5ba120(0x368)](0x3);const _0xdd3c55=(_0x4ca32d=_0x12f5ed[_0x5ba120(0x2f7)][_0x5ba120(0x142)][this[_0x5ba120(0x2bd)]])==null?void 0x0:_0x4ca32d[_0x5ba120(0x295)];_0xdd3c55&&_0xdd3c55['forEach'](_0x5d4f60=>this[_0x5ba120(0x278)][_0x5ba120(0x4c7)](this[_0x5ba120(0x2bd)],_0x5d4f60));}['_onRecvEvent'](_0x2d5ce9){const _0x159ffc=_0x2ad778;try{const _0xe6e983=_0x2d5ce9[_0x159ffc(0x2f7)];switch(_0xe6e983[_0x159ffc(0x318)]){case _['CollaborationEvent'][_0x159ffc(0x237)]:this[_0x159ffc(0x38a)](_0xe6e983),this[_0x159ffc(0x444)][_0x159ffc(0x368)](_0xe6e983);break;case _[_0x159ffc(0x4b9)]['USERS_LEAVE']:this[_0x159ffc(0x29f)](_0xe6e983),this[_0x159ffc(0x444)][_0x159ffc(0x368)](_0xe6e983);break;case _[_0x159ffc(0x4b9)]['CHANGESET_ACK']:this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x159ffc(0x368)](_0xe6e983);break;case _[_0x159ffc(0x4b9)]['MSG_FOR_ERROR']:this[_0x159ffc(0x46f)][_0x159ffc(0x191)](_0x159ffc(0x2f9)+JSON[_0x159ffc(0x146)](_0xe6e983)),this[_0x159ffc(0x444)][_0x159ffc(0x368)](_0xe6e983);break;case _[_0x159ffc(0x4b9)][_0x159ffc(0x3eb)]:this[_0x159ffc(0x462)][_0x159ffc(0x2df)](_0xe6e983[_0x159ffc(0x2f7)]),this[_0x159ffc(0x444)][_0x159ffc(0x368)](_0xe6e983);break;default:this[_0x159ffc(0x444)][_0x159ffc(0x368)](_0xe6e983);}}catch(_0x544e2f){this['_logService']['error'](_0x544e2f,_0x2d5ce9);}}['_onUserJoin'](_0x304095){const _0x166098=_0x2ad778;this[_0x166098(0x278)][_0x166098(0x4c7)](this[_0x166098(0x2bd)],_0x304095['data']);}[_0x2ad778(0x29f)](_0x4a52c9){const _0x2cefc4=_0x2ad778;this[_0x2cefc4(0x278)][_0x2cefc4(0x262)](this[_0x2cefc4(0x2bd)],_0x4a52c9[_0x2cefc4(0x2f7)][_0x2cefc4(0x1a9)]);}async[_0x2ad778(0x424)](_0x38d585,_0x30ffd3){const _0x4bcc41=_0x2ad778;if(this[_0x4bcc41(0x360)]!==0x3||!this['_socket'])throw new Error(_0x4bcc41(0x20e));try{_0x38d585['eventID']===_[_0x4bcc41(0x4b9)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x4bcc41(0x1b2)]['send']({'cmd':b['INGEST'],'routeKey':_0x30ffd3,'routeType':'','data':_0x38d585});}catch(_0x500dc8){this[_0x4bcc41(0x46f)][_0x4bcc41(0x191)](_0x500dc8);}}[_0x2ad778(0x23a)](){const _0x1ff1ac=_0x2ad778;var _0x3642b3;this[_0x1ff1ac(0x154)]=window[_0x1ff1ac(0x33a)](()=>{const _0x3a2244=_0x1ff1ac;this[_0x3a2244(0x154)]=null,this[_0x3a2244(0x1d0)][_0x3a2244(0x1c6)]({'type':Z[_0x3a2244(0x310)][_0x3a2244(0x4e8)],'content':this['_localeService']['t'](_0x3a2244(0x331))});},(_0x3642b3=this[_0x1ff1ac(0x508)]['getConfig'](ke))!=null?_0x3642b3:St);}[_0x2ad778(0x3ef)](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}},exports['CollaborationSession']=Et([P(0x2,o[_0x2ad778(0x2ac)]),P(0x3,M[_0x2ad778(0x4ac)]),P(0x4,M[_0x2ad778(0x253)]),P(0x5,o[_0x2ad778(0x4aa)]),P(0x6,o[_0x2ad778(0x143)](o[_0x2ad778(0x384)])),P(0x7,o[_0x2ad778(0x143)](W)),P(0x8,o[_0x2ad778(0x143)](Ve))],exports[_0x2ad778(0x228)]),exports[_0x2ad778(0x277)]=class extends o[_0x2ad778(0x299)]{constructor(_0x57762b,_0x5afd9f,_0x442bae,_0x522385,_0x5ae952,_0x5b0f40){const _0x54aaf9=_0x2ad778;super(),u(this,'_socket$',new v[(_0x54aaf9(0x31c))](void 0x0)),u(this,_0x54aaf9(0x23c),new Map()),u(this,_0x54aaf9(0x2d7),new v[(_0x54aaf9(0x31c))](0x0)),u(this,'status$',this[_0x54aaf9(0x2d7)][_0x54aaf9(0x1bd)]()),u(this,'_socketReady',!0x1),u(this,_0x54aaf9(0x20f)),u(this,'_timeoutTimer'),u(this,'_retryConnectingTimer'),u(this,'_retryCount',0x0),(this[_0x54aaf9(0x31d)]=_0x57762b,this[_0x54aaf9(0x4fd)]=_0x5afd9f,this[_0x54aaf9(0x1d0)]=_0x442bae,this[_0x54aaf9(0x46f)]=_0x522385,this[_0x54aaf9(0x508)]=_0x5ae952,this['_socketService']=_0x5b0f40);}get[_0x2ad778(0x1b2)](){const _0x38299e=_0x2ad778;return this[_0x38299e(0x1a0)][_0x38299e(0x261)]();}[_0x2ad778(0x194)](){const _0x1488be=_0x2ad778;super[_0x1488be(0x194)](),this[_0x1488be(0x23c)]['forEach'](_0x399b8e=>_0x399b8e[_0x1488be(0x194)]()),this[_0x1488be(0x23c)][_0x1488be(0x200)](),this['_status$'][_0x1488be(0x1df)]();}async[_0x2ad778(0x34a)](_0x5e9c7d){const _0xa3c976=_0x2ad778;if(this[_0xa3c976(0x23c)][_0xa3c976(0x44d)](_0x5e9c7d))return this[_0xa3c976(0x23c)][_0xa3c976(0x49d)](_0x5e9c7d);this[_0xa3c976(0x1f6)]();const _0x1c4af4=this[_0xa3c976(0x31d)][_0xa3c976(0x3b9)](exports['CollaborationSession'],_0x5e9c7d,this[_0xa3c976(0x1a0)][_0xa3c976(0x1bd)]());return this[_0xa3c976(0x23c)][_0xa3c976(0x20c)](_0x5e9c7d,_0x1c4af4),_0x1c4af4;}['closeSession'](_0x2c9406){const _0x5770e9=_0x2ad778;var _0x38169b;const _0xceb3f9=this[_0x5770e9(0x23c)][_0x5770e9(0x49d)](_0x2c9406);_0xceb3f9&&(this[_0x5770e9(0x23c)]['delete'](_0x2c9406),_0xceb3f9[_0x5770e9(0x4d6)]()),this[_0x5770e9(0x23c)][_0x5770e9(0x441)]||(_0x38169b=this[_0x5770e9(0x1b2)])==null||_0x38169b[_0x5770e9(0x4d6)]();}[_0x2ad778(0x4f5)](){const _0xb65a23=_0x2ad778;var _0x40c472;const _0x3c08e3=(_0x40c472=this[_0xb65a23(0x508)][_0xb65a23(0x39e)](ut))!=null?_0x40c472:Vt;return this[_0xb65a23(0x1d9)][_0xb65a23(0x31f)](_0x3c08e3);}['_tryEnsureSocket'](){const _0x457fea=_0x2ad778;try{const _0x54915d=this['_createSocket']();if(_0x54915d){const _0x4950bb=_0x54915d[_0x457fea(0x424)];_0x54915d[_0x457fea(0x424)]=_0x560c7a=>(this[_0x457fea(0x476)](),_0x4950bb['apply'](_0x54915d,[_0x560c7a])),_0x54915d['message$'][_0x457fea(0x27c)](_0x131e91=>this[_0x457fea(0x2b1)](_0x54915d,_0x131e91)),_0x54915d[_0x457fea(0x27d)]['pipe'](E[_0x457fea(0x3df)](0x1))['subscribe'](_0x1d30af=>this[_0x457fea(0x46f)][_0x457fea(0x191)](_0x457fea(0x3a5),_0x1d30af)),_0x54915d['open$']['pipe'](E[_0x457fea(0x3df)](0x1))[_0x457fea(0x27c)](()=>{const _0x3729d5=_0x457fea;this[_0x3729d5(0x203)](_0x54915d);}),_0x54915d[_0x457fea(0x252)]['pipe'](E[_0x457fea(0x3df)](0x1))[_0x457fea(0x27c)](_0x1446ab=>{const _0x575147=_0x457fea;this[_0x575147(0x46f)][_0x575147(0x484)](_0x575147(0x152),'socket\x20close',_0x1446ab),this['_onConnectionFailed']();});}}catch(_0x160b72){this[_0x457fea(0x46f)]['error'](_0x160b72),this['_onConnectionFailed']();}}[_0x2ad778(0x203)](_0x55402f){const _0x7465e6=_0x2ad778;this[_0x7465e6(0x46f)][_0x7465e6(0x484)](_0x7465e6(0x152),_0x7465e6(0x42d)),_0x55402f['send']({'cmd':b[_0x7465e6(0x3e9)]}),this[_0x7465e6(0x476)]();}[_0x2ad778(0x24f)](){const _0x1c93ee=_0x2ad778;var _0x27dbbf;this[_0x1c93ee(0x2d7)][_0x1c93ee(0x368)](0x2),this[_0x1c93ee(0x1a0)]['next'](null),this['_clearTimeoutTimer'](),this[_0x1c93ee(0x144)](),this[_0x1c93ee(0x34e)]=!0x1,this[_0x1c93ee(0x25b)]<((_0x27dbbf=this[_0x1c93ee(0x508)][_0x1c93ee(0x39e)](Kt))!=null?_0x27dbbf:Xt)?(this['_scheduleReconnection'](this[_0x1c93ee(0x25b)]),this[_0x1c93ee(0x25b)]+=0x1):this[_0x1c93ee(0x1d0)][_0x1c93ee(0x1c6)]({'type':Z[_0x1c93ee(0x310)][_0x1c93ee(0x4e8)],'content':this['_localeService']['t'](_0x1c93ee(0x322))});}[_0x2ad778(0x33c)](_0x48b0ef){const _0x8a7ee6=_0x2ad778;var _0x4045aa;const _0x25fdff=((_0x4045aa=this['_configService']['getConfig'](Gt))!=null?_0x4045aa:Yt)*0x2**_0x48b0ef;this[_0x8a7ee6(0x1d0)][_0x8a7ee6(0x1c6)]({'type':Z[_0x8a7ee6(0x310)][_0x8a7ee6(0x4ff)],'content':this[_0x8a7ee6(0x4fd)]['t'](_0x8a7ee6(0x160))}),this[_0x8a7ee6(0x47c)]=setTimeout(()=>{const _0x5a1384=_0x8a7ee6;this['_tryEnsureSocket'](),clearTimeout(this[_0x5a1384(0x47c)]),this[_0x5a1384(0x47c)]=null;},_0x25fdff);}['_rescheduleHeartbeatEvent'](){const _0x50fa80=_0x2ad778;var _0x19fd0e;this[_0x50fa80(0x144)](),this[_0x50fa80(0x20f)]=setTimeout(()=>this[_0x50fa80(0x3d8)](),(_0x19fd0e=this[_0x50fa80(0x508)][_0x50fa80(0x39e)](dt))!=null?_0x19fd0e:Wt);}[_0x2ad778(0x3d8)](){const _0xce183a=_0x2ad778;this[_0xce183a(0x1b2)][_0xce183a(0x424)]({'cmd':b[_0xce183a(0x185)]}),this[_0xce183a(0x35d)]();}[_0x2ad778(0x35d)](){const _0x5a3122=_0x2ad778;var _0x538a3d;this['_timeoutTimer']=setTimeout(()=>this[_0x5a3122(0x24f)](),(_0x538a3d=this[_0x5a3122(0x508)][_0x5a3122(0x39e)](ke))!=null?_0x538a3d:St);}[_0x2ad778(0x2b1)](_0x3db6e3,_0x5b93bb){const _0x5e11c7=_0x2ad778,{cmd:_0x28a31c}=_0x5b93bb;_0x28a31c===b[_0x5e11c7(0x3e9)]&&!this[_0x5e11c7(0x34e)]&&(_0x3db6e3[_0x5e11c7(0x1a9)]=_0x5b93bb['data'][_0x5e11c7(0x1a9)],this[_0x5e11c7(0x1a0)][_0x5e11c7(0x368)](_0x3db6e3),this['_status$'][_0x5e11c7(0x368)](0x3),this[_0x5e11c7(0x34e)]=!0x0),_0x28a31c===b['HEARTBEAT']&&this[_0x5e11c7(0x28c)](),this[_0x5e11c7(0x476)]();}['_clearHeartbeatTimer'](){const _0x1ef1dc=_0x2ad778;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x1ef1dc(0x20f)]),this[_0x1ef1dc(0x20f)]=null);}[_0x2ad778(0x28c)](){const _0x1fcf6c=_0x2ad778;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x1fcf6c(0x188)]),this['_timeoutTimer']=null);}},exports[_0x2ad778(0x277)]=Et([P(0x0,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),P(0x1,o['Inject'](o[_0x2ad778(0x384)])),P(0x2,M['IMessageService']),P(0x3,o[_0x2ad778(0x2ac)]),P(0x4,o['IConfigService']),P(0x5,Fe)],exports[_0x2ad778(0x277)]);var cs=Object['defineProperty'],ls=Object[_0x2ad778(0x16e)],hs=(_0xc9043c,_0x14df0a,_0x56a8bf,_0x1704e2)=>{const _0x4487ec=_0x2ad778;for(var _0x372244=_0x1704e2>0x1?void 0x0:_0x1704e2?ls(_0x14df0a,_0x56a8bf):_0x14df0a,_0x14eca8=_0xc9043c[_0x4487ec(0x32e)]-0x1,_0x490d4f;_0x14eca8>=0x0;_0x14eca8--)(_0x490d4f=_0xc9043c[_0x14eca8])&&(_0x372244=(_0x1704e2?_0x490d4f(_0x14df0a,_0x56a8bf,_0x372244):_0x490d4f(_0x372244))||_0x372244);return _0x1704e2&&_0x372244&&cs(_0x14df0a,_0x56a8bf,_0x372244),_0x372244;},se=(_0x5c5b74,_0x187328)=>(_0x243e53,_0x50c2ca)=>_0x187328(_0x243e53,_0x50c2ca,_0x5c5b74);exports['LocalCacheService']=class extends o[_0x2ad778(0x299)]{constructor(_0x350de9,_0x5e6dd0,_0x1148c1,_0x2792f9,_0x3e3442){const _0x191a66=_0x2ad778;super(),u(this,'_cachedData',new Map()),u(this,_0x191a66(0x2be),new Map()),u(this,'_disabled',!0x1),(this[_0x191a66(0x508)]=_0x350de9,this[_0x191a66(0x4d4)]=_0x5e6dd0,this[_0x191a66(0x372)]=_0x1148c1,this['_localeService']=_0x2792f9,this[_0x191a66(0x43c)]=_0x3e3442,this['_setupBeforeClosingHandler']());}[_0x2ad778(0x436)](){const _0x3026cd=_0x2ad778;this[_0x3026cd(0x3e0)]=!0x0;}['enableLocalCache'](){const _0xe1f6af=_0x2ad778;this[_0xe1f6af(0x3e0)]=!0x1;}['dispose'](){const _0x45c5fa=_0x2ad778;this[_0x45c5fa(0x43b)]()[_0x45c5fa(0x22e)](()=>super[_0x45c5fa(0x194)]());}async[_0x2ad778(0x4bf)](_0x460111){const _0x9bcde1=_0x2ad778;return this[_0x9bcde1(0x3e0)]?null:this[_0x9bcde1(0x4d4)][_0x9bcde1(0x475)](Je(_0x460111));}async[_0x2ad778(0x1d3)](_0x566d8b,_0x1dc6ec){const _0x354ed1=_0x2ad778;return!!this[_0x354ed1(0x4d4)]['setItem'](_0x566d8b,_0x1dc6ec);}[_0x2ad778(0x181)](_0x287064,_0x1b5ba5,_0x7c24a0,_0x363baa){const _0x54999d=_0x2ad778,_0x4f8bb4=this[_0x54999d(0x43c)][_0x54999d(0x3a9)](_0x287064);this[_0x54999d(0x3e6)][_0x54999d(0x20c)](_0x287064,{'unitID':_0x287064,'type':_0x1b5ba5,'awaitingChangeset':_0x7c24a0,'mutations':_0x363baa,'rev':_0x4f8bb4}),this[_0x54999d(0x2be)][_0x54999d(0x44d)](_0x287064)||this[_0x54999d(0x19a)](_0x287064);}['_scheduleSaving'](_0x5d328f){const _0x35e79f=_0x2ad778,_0x5aedab=this[_0x35e79f(0x4c5)]();_0x5aedab===0x0?this[_0x35e79f(0x3ea)](_0x5d328f):this[_0x35e79f(0x2be)][_0x35e79f(0x20c)](_0x5d328f,setTimeout(()=>this[_0x35e79f(0x3ea)](_0x5d328f),_0x5aedab));}['_getSaveTimeout'](){const _0x105ad4=_0x2ad778;var _0x325853;return(_0x325853=this['_configService'][_0x105ad4(0x39e)](vt))!=null?_0x325853:qt;}[_0x2ad778(0x3ea)](_0x3c739e){const _0x709b75=_0x2ad778,_0x3f0f67=this['_saveTaskMap']['get'](_0x3c739e);return _0x3f0f67!==void 0x0&&window['clearTimeout'](_0x3f0f67),this[_0x709b75(0x4d4)][_0x709b75(0x2b7)](Je(_0x3c739e),this[_0x709b75(0x3e6)][_0x709b75(0x49d)](_0x3c739e))[_0x709b75(0x22e)](()=>this[_0x709b75(0x2be)]['delete'](_0x3c739e));}async['_exhaustSavingTask'](){const _0x60b3c1=_0x2ad778,_0x1c7f18=[];this[_0x60b3c1(0x2be)][_0x60b3c1(0x169)]((_0x243dba,_0x15809f)=>{const _0x4084d4=_0x60b3c1;window[_0x4084d4(0x333)](_0x243dba),_0x1c7f18[_0x4084d4(0x363)](this['_saveCache'](_0x15809f)['then'](()=>{const _0x357267=_0x4084d4;this[_0x357267(0x2be)][_0x357267(0x40a)](_0x15809f);}));}),await Promise[_0x60b3c1(0x2ce)](_0x1c7f18);}[_0x2ad778(0x405)](){const _0x530003=_0x2ad778;this[_0x530003(0x233)](this['_beforeCloseService'][_0x530003(0x4e2)](()=>{const _0x378781=_0x530003;if(this[_0x378781(0x2be)][_0x378781(0x441)])return this[_0x378781(0x4fd)]['t'](_0x378781(0x3f0));}));}},exports[_0x2ad778(0x1eb)]=hs([se(0x0,o[_0x2ad778(0x4aa)]),se(0x1,o['ILocalStorageService']),se(0x2,M[_0x2ad778(0x4ac)]),se(0x3,o['Inject'](o['LocaleService'])),se(0x4,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)]))],exports[_0x2ad778(0x1eb)]);function Je(_0x2b1ac7){return'unit-cache-'+_0x2b1ac7;}const Ee=o[_0x2ad778(0x241)](_0x2ad778(0x4c4));var Ct=(_0x425d95=>(_0x425d95[_0x425d95['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2ad778(0x2d5),_0x425d95[_0x425d95[_0x2ad778(0x4ce)]=0x1]=_0x2ad778(0x4ce),_0x425d95))(Ct||{});const ze=0x7530,Ze=_0x2ad778(0x33e);class _s extends o[_0x2ad778(0x299)]{constructor(){const _0x2c0344=_0x2ad778;super(),u(this,'_id',o['Tools'][_0x2c0344(0x4db)]()),u(this,_0x2c0344(0x2a9),new Set()),u(this,_0x2c0344(0x37b),new Map()),u(this,_0x2c0344(0x3fa),null),u(this,_0x2c0344(0x18b),new Map()),u(this,_0x2c0344(0x211),new Map()),this[_0x2c0344(0x3c3)]();}['dispose'](){const _0x4a94db=_0x2ad778;super[_0x4a94db(0x194)](),this[_0x4a94db(0x18b)]['forEach']((_0x198932,_0x211a29)=>this[_0x4a94db(0x4ae)](_0x211a29)),this[_0x4a94db(0x3fa)]&&window['clearInterval'](this[_0x4a94db(0x3fa)]);}[_0x2ad778(0x21a)](_0x47994b){const _0xa5b002=_0x2ad778;return this[_0xa5b002(0x297)](_0x47994b)[_0xa5b002(0x502)](v['distinctUntilChanged']());}['editingUnit'](_0x449d6b){const _0x4b3609=_0x2ad778;this['_selfUnitIDs'][_0x4b3609(0x441)]===0x0&&this[_0x4b3609(0x1d1)](),this[_0x4b3609(0x2a9)][_0x4b3609(0x459)](_0x449d6b),this[_0x4b3609(0x2d3)]({'type':0x0,'memberID':this[_0x4b3609(0x236)],'unitIDs':[_0x449d6b],'isForwarded':!0x1});}[_0x2ad778(0x207)](_0x48de72){const _0x46b5bf=_0x2ad778;this[_0x46b5bf(0x2a9)][_0x46b5bf(0x40a)](_0x48de72),this[_0x46b5bf(0x2a9)][_0x46b5bf(0x441)]===0x0&&this[_0x46b5bf(0x3fa)]&&window[_0x46b5bf(0x4d3)](this['_heartbeatTimer']);}['_init'](){const _0x2ce994=_0x2ad778;this['disposeWithMe'](o[_0x2ce994(0x1e7)](v[_0x2ce994(0x4c9)](window,'storage')['subscribe'](_0x1be933=>{const _0x922869=_0x2ce994;if(_0x1be933[_0x922869(0x16f)]!==Ze||!_0x1be933['newValue'])return;const _0x2dca7f=JSON[_0x922869(0x34f)](_0x1be933[_0x922869(0x149)]);this['_handleEvent'](_0x2dca7f);}))),window[_0x2ce994(0x2e9)](_0x2ce994(0x162),()=>this[_0x2ce994(0x2d3)]({'type':0x1,'memberID':this[_0x2ce994(0x236)],'unitIDs':Array[_0x2ce994(0x3b4)](this[_0x2ce994(0x2a9)])}));}[_0x2ad778(0x23b)](_0x581ab2){const _0x3bcbad=_0x2ad778;switch(_0x581ab2[_0x3bcbad(0x348)]){case 0x0:this[_0x3bcbad(0x3ee)](_0x581ab2);break;case 0x1:this[_0x3bcbad(0x473)](_0x581ab2);break;case 0x2:this['_handleHeartbeatEvent'](_0x581ab2);break;}}[_0x2ad778(0x3ee)](_0x8a35c7){const _0x1d37af=_0x2ad778,{unitIDs:_0xa9900f,memberID:_0x4109af,isForwarded:_0x22a91d}=_0x8a35c7;_0xa9900f['forEach'](_0x93f515=>{const _0x59ac72=_0x379e;if(!_0x22a91d&&this['_unitOnClients']['has'](_0x93f515)&&this[_0x59ac72(0x297)](_0x93f515)[_0x59ac72(0x368)](0x1),!this[_0x59ac72(0x37b)][_0x59ac72(0x44d)](_0x93f515)||!this[_0x59ac72(0x37b)][_0x59ac72(0x49d)](_0x93f515)['has'](_0x4109af)){const _0x536aae=this[_0x59ac72(0x37b)]['get'](_0x93f515)||new Set();_0x536aae['add'](_0x4109af),this[_0x59ac72(0x37b)][_0x59ac72(0x20c)](_0x93f515,_0x536aae),this[_0x59ac72(0x4dd)](_0x4109af);}}),_0x22a91d||this[_0x1d37af(0x2d3)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2ad778(0x4dd)](_0x9df082){const _0x1b51e6=_0x2ad778;this[_0x1b51e6(0x4ae)](_0x9df082);const _0x25db1f=window[_0x1b51e6(0x33a)](()=>{const _0x11c56e=_0x1b51e6;this[_0x11c56e(0x37b)][_0x11c56e(0x169)](_0x563de=>{_0x563de['delete'](_0x9df082);});},ze*0x2);this[_0x1b51e6(0x18b)][_0x1b51e6(0x20c)](_0x9df082,_0x25db1f);}['_removeClearOtherTimer'](_0x590de4){const _0x270259=_0x2ad778;if(this[_0x270259(0x18b)][_0x270259(0x44d)](_0x590de4)){const _0x41e590=this[_0x270259(0x18b)][_0x270259(0x49d)](_0x590de4);_0x41e590&&window['clearTimeout'](_0x41e590),this[_0x270259(0x18b)]['set'](_0x590de4,null);}}[_0x2ad778(0x473)](_0x11bf2e){const _0x2bc5ca=_0x2ad778,{memberID:_0x14d342,unitIDs:_0x9a8587}=_0x11bf2e;_0x9a8587[_0x2bc5ca(0x169)](_0x54d2f6=>{const _0x46a041=_0x2bc5ca;var _0x1b32e8;const _0x3c805e=this['_unitOnClients'][_0x46a041(0x49d)](_0x54d2f6);_0x3c805e&&(_0x3c805e['delete'](_0x14d342),(_0x1b32e8=this[_0x46a041(0x297)](_0x54d2f6))==null||_0x1b32e8[_0x46a041(0x368)](_0x3c805e[_0x46a041(0x441)]===0x0?0x0:0x1));}),this[_0x2bc5ca(0x4ae)](_0x14d342);}['_handleHeartbeatEvent'](_0x539092){const _0x196e6a=_0x2ad778;this[_0x196e6a(0x4dd)](_0x539092[_0x196e6a(0x1a9)]);}[_0x2ad778(0x2d3)](_0x1cba8e){const _0x45fe72=_0x2ad778;localStorage[_0x45fe72(0x2b7)](Ze,JSON[_0x45fe72(0x146)](_0x1cba8e));}['_scheduleHeartbeat'](){const _0x493e12=_0x2ad778;this[_0x493e12(0x3fa)]=window[_0x493e12(0x3d2)](()=>{const _0x2664e4=_0x493e12;this[_0x2664e4(0x2d3)]({'type':0x2,'memberID':this['_id']});},ze);}[_0x2ad778(0x297)](_0x2d6abf){const _0x3823f4=_0x2ad778;return this[_0x3823f4(0x211)][_0x3823f4(0x44d)](_0x2d6abf)||this[_0x3823f4(0x211)]['set'](_0x2d6abf,new v[(_0x3823f4(0x31c))](0x0)),this['_unitStatus'][_0x3823f4(0x49d)](_0x2d6abf);}}var us=Object[_0x2ad778(0x4be)],ds=Object[_0x2ad778(0x16e)],Ss=(_0x165c1c,_0x11225f,_0x554b58,_0x2e5f26)=>{for(var _0x216a08=_0x2e5f26>0x1?void 0x0:_0x2e5f26?ds(_0x11225f,_0x554b58):_0x11225f,_0x1cb92b=_0x165c1c['length']-0x1,_0x15a584;_0x1cb92b>=0x0;_0x1cb92b--)(_0x15a584=_0x165c1c[_0x1cb92b])&&(_0x216a08=(_0x2e5f26?_0x15a584(_0x11225f,_0x554b58,_0x216a08):_0x15a584(_0x216a08))||_0x216a08);return _0x2e5f26&&_0x216a08&&us(_0x11225f,_0x554b58,_0x216a08),_0x216a08;},Qe=(_0x48a6a6,_0x1e75de)=>(_0x2235b6,_0x31520e)=>_0x1e75de(_0x2235b6,_0x31520e,_0x48a6a6);let ge=class{constructor(_0x452017,_0x5bdf43){const _0x10e28c=_0x2ad778;this['_injector']=_0x452017,this[_0x10e28c(0x258)]=_0x5bdf43;}[_0x2ad778(0x232)](_0x200044){const _0x2a4d9f=_0x2ad778;this[_0x2a4d9f(0x27b)](_0x200044),this[_0x2a4d9f(0x417)](_0x200044);}[_0x2ad778(0x255)](_0x22ddd7){const _0x5e0782=_0x2ad778,_0x54795e=this[_0x5e0782(0x31d)][_0x5e0782(0x49d)](L['IMEInputManagerService']),{redoCache:_0x4277b9}=_0x54795e[_0x5e0782(0x3d3)]();if(_0x4277b9['length']===0x0)return _0x22ddd7;let _0x1fb48f=o[_0x5e0782(0x3e8)]['deepClone'](_0x22ddd7['mutations'][0x0]);for(let _0x2b7f26=0x0;_0x2b7f26<_0x4277b9['length'];_0x2b7f26++){const _0x995123={'id':_0x5e0782(0x30b),'params':{..._0x4277b9[_0x2b7f26]}},_0x471b42=this[_0x5e0782(0x258)]['transformMutation'](_0x1fb48f,_0x995123,!0x1);if(_['isTransformMutationFailure'](_0x471b42))throw _0x471b42[_0x5e0782(0x191)];_0x1fb48f=_0x471b42['m1Prime'];}return{...o['Tools'][_0x5e0782(0x3a4)](_0x22ddd7),'mutations':[_0x1fb48f]};}[_0x2ad778(0x27b)](_0x4085d9){const _0x552ed0=_0x2ad778,_0x35305e=this[_0x552ed0(0x31d)][_0x552ed0(0x49d)](L['IMEInputManagerService']),{undoCache:_0x81b445,redoCache:_0x3b7cbe}=_0x35305e[_0x552ed0(0x3d3)]();if(_0x81b445[_0x552ed0(0x32e)]===0x0||_0x3b7cbe[_0x552ed0(0x32e)]===0x0)return;const _0x3cf8ae=[],_0x21a4fb=[];let _0x5ef7f9=o[_0x552ed0(0x3e8)]['deepClone'](_0x4085d9['mutations'][0x0]),_0x30b3cd=o[_0x552ed0(0x3e8)]['deepClone'](_0x4085d9[_0x552ed0(0x3da)][0x0]);for(let _0x340cfa=_0x81b445[_0x552ed0(0x32e)]-0x1;_0x340cfa>=0x0;_0x340cfa--){const _0x5e43da={'id':_0x552ed0(0x30b),'params':{..._0x81b445[_0x340cfa]}},_0x225d86={'id':_0x552ed0(0x30b),'params':{..._0x3b7cbe[_0x340cfa]}},_0x16d92c=this[_0x552ed0(0x258)][_0x552ed0(0x327)](_0x5ef7f9,_0x5e43da,!0x1),_0x3474ef=this[_0x552ed0(0x258)][_0x552ed0(0x327)](_0x30b3cd,_0x225d86,!0x1);if(_['isTransformMutationFailure'](_0x16d92c))throw _0x16d92c['error'];if(_['isTransformMutationFailure'](_0x3474ef))throw _0x3474ef[_0x552ed0(0x191)];_0x3cf8ae[_0x552ed0(0x430)](_0x16d92c[_0x552ed0(0x29e)][_0x552ed0(0x1ba)]),_0x21a4fb['unshift'](_0x3474ef[_0x552ed0(0x29e)]['params']),_0x5ef7f9=_0x16d92c['m1Prime'],_0x30b3cd=_0x3474ef[_0x552ed0(0x23f)];}_0x35305e['setUndoRedoMutationParamsCache']({'undoCache':_0x3cf8ae,'redoCache':_0x21a4fb});}['_transformPreviousActiveRange'](_0x31fc4b){const _0x51da0d=_0x2ad778,_0x41dee0=this[_0x51da0d(0x31d)][_0x51da0d(0x49d)](L['IMEInputManagerService']),_0xea6eeb=_0x41dee0[_0x51da0d(0x338)]();if(_0xea6eeb==null)return;const _0x14fecc=[{'id':_0x51da0d(0x30b),'params':{'unitId':_0x31fc4b['unitID'],'actions':null,'textRanges':[_0xea6eeb]}}],_0x1a7685=this['_transformService'][_0x51da0d(0x18a)](_0x31fc4b,_0x14fecc);if(!_[_0x51da0d(0x2bf)](_0x1a7685))throw _0x1a7685[_0x51da0d(0x191)];const _0x597827=_0x1a7685[_0x51da0d(0x29e)][0x0]['params'][_0x51da0d(0x15a)];Array[_0x51da0d(0x3b6)](_0x597827)&&_0x597827[_0x51da0d(0x32e)]&&_0x41dee0[_0x51da0d(0x2da)](_0x597827[0x0]);}};ge=Ss([Qe(0x0,o[_0x2ad778(0x143)](o['Injector'])),Qe(0x1,_[_0x2ad778(0x4a5)])],ge);var vs=Object[_0x2ad778(0x4be)],gs=Object[_0x2ad778(0x16e)],fs=(_0x23e55f,_0x402bff,_0x54827b,_0x1cccf2)=>{const _0x5592e9=_0x2ad778;for(var _0xb1b8c7=_0x1cccf2>0x1?void 0x0:_0x1cccf2?gs(_0x402bff,_0x54827b):_0x402bff,_0x11e71d=_0x23e55f[_0x5592e9(0x32e)]-0x1,_0x4f0357;_0x11e71d>=0x0;_0x11e71d--)(_0x4f0357=_0x23e55f[_0x11e71d])&&(_0xb1b8c7=(_0x1cccf2?_0x4f0357(_0x402bff,_0x54827b,_0xb1b8c7):_0x4f0357(_0xb1b8c7))||_0xb1b8c7);return _0x1cccf2&&_0xb1b8c7&&vs(_0x402bff,_0x54827b,_0xb1b8c7),_0xb1b8c7;},et=(_0x3bb8dd,_0x3af801)=>(_0x596768,_0x355a09)=>_0x3af801(_0x596768,_0x355a09,_0x3bb8dd);let fe=class{constructor(_0x4ca221,_0x475da2){const _0x2e301a=_0x2ad778;this[_0x2e301a(0x31d)]=_0x4ca221,this[_0x2e301a(0x258)]=_0x475da2;}[_0x2ad778(0x49e)](_0x17f209){const _0x5173a9=_0x2ad778;var _0x4b7352;const _0x462982=this['_injector'][_0x5173a9(0x49d)](L[_0x5173a9(0x187)]),_0x28e818=(_0x4b7352=_0x462982[_0x5173a9(0x202)]())!=null?_0x4b7352:[],_0x11a47b=_0x28e818==null?void 0x0:_0x28e818[_0x5173a9(0x2c7)](L[_0x5173a9(0x218)]);if(_0x11a47b[_0x5173a9(0x32e)]===0x0)return;const _0x20ed4f=[{'id':_0x5173a9(0x30b),'params':{'unitId':_0x17f209[_0x5173a9(0x422)],'actions':null,'textRanges':_0x11a47b}}],_0x27f4a7=this[_0x5173a9(0x258)][_0x5173a9(0x18a)](_0x17f209,_0x20ed4f);if(!_[_0x5173a9(0x2bf)](_0x27f4a7))throw _0x27f4a7[_0x5173a9(0x191)];const _0xd3bfd9=_0x27f4a7[_0x5173a9(0x29e)][0x0][_0x5173a9(0x1ba)]['textRanges'];Array[_0x5173a9(0x3b6)](_0xd3bfd9)&&_0xd3bfd9[_0x5173a9(0x32e)]&&_0x462982[_0x5173a9(0x2d6)](_0xd3bfd9,!0x1);}};fe=fs([et(0x0,o[_0x2ad778(0x143)](o['Injector'])),et(0x1,_[_0x2ad778(0x4a5)])],fe);function bt(_0x535b05){const _0x4eacd2=_0x2ad778;let _0x4738a8='';for(const _0xda8a44 of _0x535b05){const {startOffset:_0x7435b8,endOffset:_0x3c310c,isActive:_0x5644ec}=_0xda8a44;_0x4738a8[_0x4eacd2(0x32e)]&&(_0x4738a8+=','),_0x4738a8+=_0x7435b8+':'+_0x3c310c+':'+(_0x5644ec?'1':'0');}return _0x4738a8;}function ms(_0x45c99e){const _0x4509aa=_0x2ad778,_0x2c9b09=_0x45c99e[_0x4509aa(0x267)](','),_0x43412c=[];for(const _0x40286d of _0x2c9b09){const [_0x418f19,_0xea2a7e,_0x522f7f]=_0x40286d[_0x4509aa(0x267)](':');_0x43412c['push']({'startOffset':Number(_0x418f19),'endOffset':Number(_0xea2a7e),'collapsed':_0x418f19===_0xea2a7e,'isActive':_0x522f7f==='1'});}return _0x43412c['some'](_0x88feef=>_0x88feef[_0x4509aa(0x22f)])||(_0x43412c[0x0][_0x4509aa(0x22f)]=!0x0),_0x43412c;}class We extends o[_0x2ad778(0x30e)]{constructor(){const _0x457fb6=_0x2ad778;super(...arguments),u(this,_0x457fb6(0x307),new v[(_0x457fb6(0x31c))](null)),u(this,_0x457fb6(0x199),this[_0x457fb6(0x307)][_0x457fb6(0x1bd)]());}[_0x2ad778(0x40c)](_0x4bd423){const _0x5eb977=_0x2ad778,{unitID:_0x4834c9,memberID:_0x2b71c2,textRanges:_0xecaaca}=_0x4bd423,_0x122790=bt(_0xecaaca),_0x537ffa={'unitID':_0x4834c9,'memberID':_0x2b71c2,'selection':_0x122790};this[_0x5eb977(0x307)][_0x5eb977(0x368)](_0x537ffa);}}var Is=Object[_0x2ad778(0x4be)],ps=Object[_0x2ad778(0x16e)],Es=(_0x36a1b0,_0x24a2f1,_0x4abcf8,_0x107f7d)=>{for(var _0x4b9565=_0x107f7d>0x1?void 0x0:_0x107f7d?ps(_0x24a2f1,_0x4abcf8):_0x24a2f1,_0x7a6709=_0x36a1b0['length']-0x1,_0x583ff2;_0x7a6709>=0x0;_0x7a6709--)(_0x583ff2=_0x36a1b0[_0x7a6709])&&(_0x4b9565=(_0x107f7d?_0x583ff2(_0x24a2f1,_0x4abcf8,_0x4b9565):_0x583ff2(_0x4b9565))||_0x4b9565);return _0x107f7d&&_0x4b9565&&Is(_0x24a2f1,_0x4abcf8,_0x4b9565),_0x4b9565;},tt=(_0x10723b,_0x46b21b)=>(_0xbdfe98,_0x1e3f00)=>_0x46b21b(_0xbdfe98,_0x1e3f00,_0x10723b);function Cs(_0xed495f){const {unitID:_0x52d002,mutations:_0x10466b}=_0xed495f;return{'unitId':_0x52d002,'subUnitId':_0x10466b[0x0]['params']['subUnitId']};}let me=class{constructor(_0x30dcc1,_0x4ae7cc){const _0x418e8a=_0x2ad778;this[_0x418e8a(0x31d)]=_0x30dcc1,this['_transformService']=_0x4ae7cc;}[_0x2ad778(0x49e)](_0x11c549){const _0x26465d=_0x2ad778;var _0xce9748,_0x1c5077,_0x1b3c24;const _0x26c3f9=this[_0x26465d(0x31d)]['get'](p['SheetsSelectionsService']),{unitId:_0x18bf04,subUnitId:_0x5c41fc}=Cs(_0x11c549),_0x142daa=_0x26c3f9[_0x26465d(0x345)](_0x18bf04)[_0x26465d(0x202)]();if(_0x142daa[_0x26465d(0x32e)]===0x0||!_0x18bf04||!_0x5c41fc)return;const _0xa75b2f=[{'id':p[_0x26465d(0x311)]['id'],'params':{'unitId':_0x18bf04,'subUnitId':_0x5c41fc,'selections':o[_0x26465d(0x3e8)]['deepClone'](_0x142daa)}}],_0x4408a3=this[_0x26465d(0x258)][_0x26465d(0x18a)](_0x11c549,_0xa75b2f);if(!_[_0x26465d(0x2bf)](_0x4408a3))throw _0x4408a3['error'];const _0x18d262=(_0x1b3c24=(_0x1c5077=(_0xce9748=_0x4408a3[_0x26465d(0x29e)][0x0])==null?void 0x0:_0xce9748[_0x26465d(0x1ba)])==null?void 0x0:_0x1c5077[_0x26465d(0x46e)])!=null?_0x1b3c24:_0x142daa;Array[_0x26465d(0x3b6)](_0x18d262)&&_0x18d262[_0x26465d(0x32e)]&&this[_0x26465d(0x31d)][_0x26465d(0x49d)](o[_0x26465d(0x4e4)])[_0x26465d(0x2a6)](p['SetSelectionsOperation']['id'],{'unitId':_0x18bf04,'subUnitId':_0x5c41fc,'selections':_0x18d262});}};me=Es([tt(0x0,o['Inject'](o[_0x2ad778(0x26c)])),tt(0x1,_['ITransformService'])],me);const bs=new Set([p['InsertSheetMutation']['id']]);function Ts(_0x5c38b6,_0x2c72ef,_0x38e7f8,_0x26b208,_0x587299){const _0x11c071=_0x2ad778;var _0x1a582d,_0x21d94f,_0x42775a,_0x540757;const _0x5a27f3=[];for(const _0x4dcb1c of _0x5c38b6)if(bs[_0x11c071(0x44d)](_0x4dcb1c['id'])){if(_0x5a27f3[_0x11c071(0x32e)]>0x0)break;_0x5a27f3[_0x11c071(0x363)](_0x4dcb1c);break;}else _0x5a27f3['push'](_0x4dcb1c);const _0x8d3365=(_0x21d94f=(_0x1a582d=_0x587299[_0x11c071(0x433)]())==null?void 0x0:_0x1a582d[_0x11c071(0x40e)])!=null?_0x21d94f:_0x11c071(0x1b3),_0x646b1b=(_0x540757=(_0x42775a=_0x587299['getCurrentUser']())==null?void 0x0:_0x42775a[_0x11c071(0x1a9)])!=null?_0x540757:_0x11c071(0x1b3);return{'changeset':{'unitID':_0x2c72ef,'type':_['mapDocumentTypeToUniverType'](_0x38e7f8[_0x11c071(0x2bc)](_0x2c72ef)),'baseRev':_0x26b208[_0x11c071(0x3a9)](_0x2c72ef),'revision':0x0,'userID':_0x8d3365,'memberID':_0x646b1b,'mutations':_0x5a27f3},'pendingMutations':_0x5c38b6[_0x11c071(0x37a)](_0x5a27f3[_0x11c071(0x32e)])};}function Rs(_0x58c8a5,_0x3f3d36,_0x27a1a5,_0x4af8c2,_0x2013ed){const _0x216a82=_0x2ad778;var _0x45e06a,_0x5512b0,_0x594895,_0x5bb706;const _0x5e6af7=[_0x58c8a5[_0x216a82(0x4fe)]((_0x44d56c,_0x318899)=>{const _0x3e477c=_0x216a82;var _0x258171;const {id:_0x236530}=_0x44d56c,{id:_0x189475,type:_0x52354c}=_0x318899,_0x5e0eca=(_0x258171=_0x44d56c['params'])!=null?_0x258171:{'actions':null},_0x28b3d4=_0x318899[_0x3e477c(0x1ba)];if(_0x236530&&_0x236530!==_0x189475)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x236530+_0x3e477c(0x32b)+_0x189475+'.');return{..._0x44d56c,'id':_0x189475,'type':_0x52354c,'params':{'unitId':_0x28b3d4[_0x3e477c(0x353)],'textRanges':_0x28b3d4[_0x3e477c(0x15a)],'actions':o[_0x3e477c(0x2c0)][_0x3e477c(0x31e)](_0x5e0eca[_0x3e477c(0x2fd)],_0x28b3d4[_0x3e477c(0x2fd)])}};},{})],_0x459093=(_0x5512b0=(_0x45e06a=_0x2013ed[_0x216a82(0x433)]())==null?void 0x0:_0x45e06a[_0x216a82(0x40e)])!=null?_0x5512b0:'unknown',_0x211ff2=(_0x5bb706=(_0x594895=_0x2013ed['getCurrentUser']())==null?void 0x0:_0x594895['memberID'])!=null?_0x5bb706:_0x216a82(0x1b3);return{'changeset':{'unitID':_0x3f3d36,'type':_[_0x216a82(0x186)](_0x27a1a5[_0x216a82(0x2bc)](_0x3f3d36)),'baseRev':_0x4af8c2[_0x216a82(0x3a9)](_0x3f3d36),'revision':0x0,'userID':_0x459093,'memberID':_0x211ff2,'mutations':_0x5e6af7},'pendingMutations':[]};}var Os=Object[_0x2ad778(0x4be)],Ds=Object[_0x2ad778(0x16e)],Y=(_0x27ea5b,_0x242086,_0x3e8914,_0xfc4c55)=>{const _0x5582fd=_0x2ad778;for(var _0x472d8d=_0xfc4c55>0x1?void 0x0:_0xfc4c55?Ds(_0x242086,_0x3e8914):_0x242086,_0x1a6d2d=_0x27ea5b[_0x5582fd(0x32e)]-0x1,_0x260253;_0x1a6d2d>=0x0;_0x1a6d2d--)(_0x260253=_0x27ea5b[_0x1a6d2d])&&(_0x472d8d=(_0xfc4c55?_0x260253(_0x242086,_0x3e8914,_0x472d8d):_0x260253(_0x472d8d))||_0x472d8d);return _0xfc4c55&&_0x472d8d&&Os(_0x242086,_0x3e8914,_0x472d8d),_0x472d8d;},g=(_0x5a2044,_0x49a537)=>(_0x252c42,_0x7a3d36)=>_0x49a537(_0x252c42,_0x7a3d36,_0x5a2044),D=(_0x5ec58c=>(_0x5ec58c[_0x2ad778(0x4da)]='not_collab',_0x5ec58c['SYNCED']=_0x2ad778(0x14f),_0x5ec58c[_0x2ad778(0x2bb)]=_0x2ad778(0x2a2),_0x5ec58c[_0x2ad778(0x171)]=_0x2ad778(0x404),_0x5ec58c['AWAITING_WITH_PENDING']=_0x2ad778(0x366),_0x5ec58c[_0x2ad778(0x4df)]=_0x2ad778(0x1de),_0x5ec58c[_0x2ad778(0x205)]=_0x2ad778(0x1e9),_0x5ec58c[_0x2ad778(0x2fc)]='offline',_0x5ec58c))(D||{});class K{constructor(_0x640e5c,_0x170886,_0x222059,_0x10fcc7,_0x3809aa,_0x55e14a,_0x401cf5,_0x57173a,_0x19bc1f){const _0x2c31bf=_0x2ad778;u(this,_0x2c31bf(0x38c),null),u(this,_0x2c31bf(0x3c2),[]),(this['unitID']=_0x640e5c,this[_0x2c31bf(0x348)]=_0x170886,this['_handler']=_0x3809aa,this['_commandService']=_0x55e14a,this['_undoRedoService']=_0x401cf5,this['_revisionService']=_0x57173a,this['_localCacheService']=_0x19bc1f,this[_0x2c31bf(0x38c)]=_0x222059,this[_0x2c31bf(0x3c2)]=_0x10fcc7);}[_0x2ad778(0x4ba)](_0x1ac716){const _0x54a2e5=_0x2ad778,_0x5ad1f9=this[_0x54a2e5(0x43c)]['getCurrentRevForDocument'](this[_0x54a2e5(0x422)]);return _0x1ac716[_0x54a2e5(0x437)]>_0x5ad1f9+0x1?(this[_0x54a2e5(0x290)]['onMissingChangesets']({'from':_0x5ad1f9,'to':_0x1ac716[_0x54a2e5(0x437)]-0x1}),!0x0):!0x1;}[_0x2ad778(0x35f)](_0x1366bb){const _0x5431c6=_0x2ad778;this[_0x5431c6(0x296)][_0x5431c6(0x320)](this[_0x5431c6(0x422)],_0x1366bb);}[_0x2ad778(0x157)](_0x4f9528){const _0x141c38=_0x2ad778;var _0x54631d,_0x41169f;(_0x41169f=(_0x54631d=this[_0x141c38(0x290)])['onTransformSelections'])==null||_0x41169f[_0x141c38(0x2db)](_0x54631d,_0x4f9528);}[_0x2ad778(0x39c)](_0x519996){const _0x57820c=_0x2ad778;var _0x50003e,_0xf447f5;return(_0xf447f5=(_0x50003e=this[_0x57820c(0x290)])['onTransformIME'])==null?void 0x0:_0xf447f5[_0x57820c(0x2db)](_0x50003e,_0x519996);}[_0x2ad778(0x1e0)](_0x43e83f){const _0x2b3c6f=_0x2ad778;var _0x194d11,_0x2ef485,_0x24c0b6;return(_0x24c0b6=(_0x2ef485=(_0x194d11=this['_handler'])[_0x2b3c6f(0x13f)])==null?void 0x0:_0x2ef485['call'](_0x194d11,_0x43e83f))!=null?_0x24c0b6:_0x43e83f;}[_0x2ad778(0x270)](_0x5945b6){const _0x455f0f=_0x2ad778;var _0x30afab,_0x2814e5;if(this[_0x455f0f(0x348)]===A[_0x455f0f(0x257)]){const {unitID:_0x4947b4,mutations:_0x36872b,memberID:_0x4d6f5e}=_0x5945b6,_0x5b2251=_0x36872b[0x0][_0x455f0f(0x1ba)]['textRanges'];Array[_0x455f0f(0x3b6)](_0x5b2251)&&_0x5b2251[_0x455f0f(0x32e)]>0x0&&((_0x2814e5=(_0x30afab=this['_handler'])[_0x455f0f(0x247)])==null||_0x2814e5[_0x455f0f(0x2db)](_0x30afab,{'unitID':_0x4947b4,'memberID':_0x4d6f5e,'textRanges':_0x5b2251}));}}[_0x2ad778(0x474)](){const _0x5a985b=_0x2ad778;this[_0x5a985b(0x4e6)][_0x5a985b(0x181)](this[_0x5a985b(0x422)],this[_0x5a985b(0x348)],this[_0x5a985b(0x38c)],this[_0x5a985b(0x3c2)]);}['_getCurrentRevision'](){const _0x5b789a=_0x2ad778;return this[_0x5b789a(0x43c)]['getCurrentRevForDocument'](this[_0x5b789a(0x422)]);}[_0x2ad778(0x3e1)](){const _0x391f04=_0x2ad778;this[_0x391f04(0x43c)][_0x391f04(0x501)](this[_0x391f04(0x422)]);}[_0x2ad778(0x4a7)](_0x2c1e56){const _0x2fe26e=_0x2ad778;var _0x1722e4;const _0x4c454b=this['_transformRemoteChangesetByIMECache'](_0x2c1e56),_0x4cb3cb=o[_0x2fe26e(0x468)](_0x4c454b[_0x2fe26e(0x3da)],this[_0x2fe26e(0x14c)],{'fromCollab':!0x0});if(!_0x4cb3cb[_0x2fe26e(0x3c1)])throw _0x4cb3cb[_0x2fe26e(0x191)]instanceof Error?_0x4cb3cb['error']:new Error((_0x1722e4=_0x4cb3cb[_0x2fe26e(0x191)])!=null?_0x1722e4:_0x2fe26e(0x1e4));this[_0x2fe26e(0x39c)](_0x4c454b),this[_0x2fe26e(0x35f)](_0x2c1e56),this[_0x2fe26e(0x157)](_0x4c454b),this['_syncEditingCollabCursor'](_0x4c454b),this[_0x2fe26e(0x3e1)]();}}let ae=class extends K{constructor(_0x53aba1,_0x2a1647,_0x7a1364,_0x34f9e9,_0x3e3247,_0x2ebd15,_0x243313,_0x55f5fa,_0x186ed6){const _0x198856=_0x2ad778;super(_0x53aba1,_0x2a1647,null,[],_0x7a1364,_0x55f5fa,_0x243313,_0x34f9e9,_0x3e3247),u(this,_0x198856(0x35e),'synced'),(this['_injector']=_0x2ebd15,this['_logService']=_0x186ed6);}['appendMutation'](_0x6df600){const _0x2163ff=_0x2ad778,_0x5a3457=this[_0x2163ff(0x31d)][_0x2163ff(0x3b9)](j,this[_0x2163ff(0x422)],this['type'],[_0x6df600],this[_0x2163ff(0x290)]);return _0x5a3457[_0x2163ff(0x325)](),_0x5a3457[_0x2163ff(0x474)](),_0x5a3457;}['onRemoteChangeset'](_0x471425){const _0x16c33f=_0x2ad778;if(this[_0x16c33f(0x4ba)](_0x471425))return this[_0x16c33f(0x31d)][_0x16c33f(0x3b9)](H,this[_0x16c33f(0x422)],this[_0x16c33f(0x348)],null,[],null,[_0x471425],this[_0x16c33f(0x290)]);try{return this['_executeRemoteChangeset'](_0x471425),this;}catch(_0x330f7c){return this[_0x16c33f(0x46f)][_0x16c33f(0x191)](_0x16c33f(0x251),_0x330f7c),this;}}[_0x2ad778(0x3ce)](){const _0xca5ecc=_0x2ad778;throw new Error(_0xca5ecc(0x4d8));}['onRemoteRej'](){const _0x2dfa2b=_0x2ad778;throw new Error(_0x2dfa2b(0x3db));}['toggleOffline'](){const _0x1024e6=_0x2ad778;return this[_0x1024e6(0x31d)]['createInstance'](k,this[_0x1024e6(0x422)],this[_0x1024e6(0x348)],null,[],this[_0x1024e6(0x290)]);}[_0x2ad778(0x44e)](){return this;}[_0x2ad778(0x2af)](){const _0x421995=_0x2ad778;throw new Error(_0x421995(0x16b));}};ae=Y([g(0x3,o[_0x2ad778(0x143)](_['RevisionService'])),g(0x4,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0x5,o['Inject'](o[_0x2ad778(0x26c)])),g(0x6,o['IUndoRedoService']),g(0x7,o['ICommandService']),g(0x8,o[_0x2ad778(0x2ac)])],ae);let j=class extends K{constructor(_0x1ad8a8,_0x1f23a0,_0x592ea4,_0x563fe6,_0x1358fe,_0x581c1b,_0x5714aa,_0x643762,_0xac2e9d,_0x30dccb,_0x21ea22,_0xf2caec,_0x5f2abb,_0x49567f){const _0x212c30=_0x2ad778;super(_0x1ad8a8,_0x1f23a0,null,_0x592ea4,_0x563fe6,_0x30dccb,_0x49567f,_0x581c1b,_0x5714aa),u(this,_0x212c30(0x35e),_0x212c30(0x2a2)),u(this,_0x212c30(0x1ab),null),u(this,_0x212c30(0x217),null),(this[_0x212c30(0x31d)]=_0x1358fe,this[_0x212c30(0x278)]=_0x643762,this[_0x212c30(0x46f)]=_0xac2e9d,this[_0x212c30(0x508)]=_0x21ea22,this['_transformService']=_0xf2caec,this[_0x212c30(0x2ec)]=_0x5f2abb);}[_0x2ad778(0x3d4)](_0x164696){const _0x17c15c=_0x2ad778;return this[_0x17c15c(0x3c2)]['push'](_0x164696),this['_updateLocalCache'](),this;}[_0x2ad778(0x216)](_0x4de8f7){const _0x457903=_0x2ad778;if(this['_checkMissing'](_0x4de8f7))return this[_0x457903(0x43a)](),this[_0x457903(0x31d)]['createInstance'](H,this[_0x457903(0x422)],this[_0x457903(0x348)],null,this[_0x457903(0x3c2)],null,[_0x4de8f7],this[_0x457903(0x290)]);try{const _0x32b7d1=this[_0x457903(0x258)][_0x457903(0x18a)](_0x4de8f7,this['_pendingMutations']);if(_[_0x457903(0x2bf)](_0x32b7d1)){const {c1Prime:_0x345b9e,m2Prime:_0x46d5cd}=_0x32b7d1;this['_executeRemoteChangeset'](_0x345b9e);const _0x4a8e97=this[_0x457903(0x31d)]['createInstance'](j,this['unitID'],this[_0x457903(0x348)],_0x46d5cd,this[_0x457903(0x290)]);return this[_0x457903(0x43a)](),_0x4a8e97[_0x457903(0x325)](this[_0x457903(0x1ab)]?Math['max'](0x0,new Date()['getTime']()-this[_0x457903(0x1ab)]):this[_0x457903(0x1b6)]()),_0x4a8e97;}throw _0x32b7d1['error'];}catch(_0x6013f4){return this['_logService'][_0x457903(0x191)](_0x6013f4),this[_0x457903(0x1a8)](!0x1);}}[_0x2ad778(0x3ce)](){const _0x3e93f4=_0x2ad778;throw new Error(_0x3e93f4(0x362));}[_0x2ad778(0x499)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2ad778(0x364)](){const _0xc85760=_0x2ad778;return this[_0xc85760(0x43a)](),this['_injector']['createInstance'](k,this['unitID'],this['type'],null,this[_0xc85760(0x3c2)],this[_0xc85760(0x290)]);}['toggleOnline'](){return this;}[_0x2ad778(0x325)](_0x7a0078){const _0x842b74=_0x2ad778;_0x7a0078=_0x7a0078!=null?_0x7a0078:this[_0x842b74(0x1b6)](),this['_scheduleTimestamp']=new Date()['getTime'](),this['_sendingTimer']=setTimeout(()=>{const _0x5f2cad=_0x842b74;this['_clearScheduledTask']();let _0x2013d2=null;switch(this[_0x5f2cad(0x348)]){case A[_0x5f2cad(0x421)]:{_0x2013d2=Ts(this[_0x5f2cad(0x3c2)],this[_0x5f2cad(0x422)],this[_0x5f2cad(0x2ec)],this[_0x5f2cad(0x43c)],this[_0x5f2cad(0x278)]);break;}case A['UNIVER_DOC']:{_0x2013d2=Rs(this[_0x5f2cad(0x3c2)],this[_0x5f2cad(0x422)],this[_0x5f2cad(0x2ec)],this['_revisionService'],this[_0x5f2cad(0x278)]);break;}default:throw new Error(_0x5f2cad(0x195)+this[_0x5f2cad(0x348)]+_0x5f2cad(0x2d9));}const {changeset:_0x4ae8d5,pendingMutations:_0xde8631}=_0x2013d2;this[_0x5f2cad(0x290)]['onSendChangeset'](_0x4ae8d5);const _0x5966c9=_0xde8631[_0x5f2cad(0x32e)]?this[_0x5f2cad(0x31d)][_0x5f2cad(0x3b9)]($,this[_0x5f2cad(0x422)],this[_0x5f2cad(0x348)],_0x4ae8d5,_0xde8631,this[_0x5f2cad(0x290)]):this[_0x5f2cad(0x31d)][_0x5f2cad(0x3b9)](x,this['unitID'],this[_0x5f2cad(0x348)],_0x4ae8d5,this['_handler']);_0x5966c9[_0x5f2cad(0x474)](),this[_0x5f2cad(0x290)]['onStateChange'](this,_0x5966c9);},_0x7a0078);}['_getSendChangesetTimeout'](){const _0x3bf39c=_0x2ad778;var _0x559a71;return(_0x559a71=this[_0x3bf39c(0x508)][_0x3bf39c(0x39e)](_t))!=null?_0x559a71:Ft;}[_0x2ad778(0x2af)](){const _0x4e0124=_0x2ad778;throw new Error(_0x4e0124(0x469));}['_clearScheduledTask'](){const _0x5c5503=_0x2ad778;this[_0x5c5503(0x217)]!=null&&(clearTimeout(this[_0x5c5503(0x217)]),this[_0x5c5503(0x217)]=null);}['_onConflict'](_0xd27fce){const _0x1f7331=_0x2ad778;return this[_0x1f7331(0x43a)](),this[_0x1f7331(0x31d)][_0x1f7331(0x3b9)](G,this[_0x1f7331(0x422)],this[_0x1f7331(0x348)],null,this['_pendingMutations'],this[_0x1f7331(0x290)],_0xd27fce);}};j=Y([g(0x4,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),g(0x5,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0x6,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0x7,o['Inject'](W)),g(0x8,o[_0x2ad778(0x2ac)]),g(0x9,o['ICommandService']),g(0xa,o[_0x2ad778(0x4aa)]),g(0xb,_[_0x2ad778(0x4a5)]),g(0xc,o['IUniverInstanceService']),g(0xd,o['IUndoRedoService'])],j);let x=class extends K{constructor(_0x3cbb04,_0x51f5d0,_0x1e6cb2,_0x4d317e,_0x256ad2,_0x207677,_0x562a48,_0x1529d7,_0xdf07f7,_0x55617c,_0x2dcd88){const _0x30eabf=_0x2ad778;super(_0x3cbb04,_0x51f5d0,_0x1e6cb2,[],_0x4d317e,_0x1529d7,_0x2dcd88,_0x207677,_0x562a48),u(this,_0x30eabf(0x35e),_0x30eabf(0x404)),(this[_0x30eabf(0x31d)]=_0x256ad2,this[_0x30eabf(0x46f)]=_0xdf07f7,this['_transformService']=_0x55617c);}[_0x2ad778(0x3d4)](_0x45c65d){const _0x3bda49=_0x2ad778,_0x2cd97b=this[_0x3bda49(0x31d)][_0x3bda49(0x3b9)]($,this[_0x3bda49(0x422)],this[_0x3bda49(0x348)],this['_awaitingChangeset'],[_0x45c65d],this[_0x3bda49(0x290)]);return _0x2cd97b[_0x3bda49(0x474)](),_0x2cd97b;}[_0x2ad778(0x216)](_0x43b476){const _0xe985b9=_0x2ad778;if(this[_0xe985b9(0x4ba)](_0x43b476))return this[_0xe985b9(0x31d)][_0xe985b9(0x3b9)](H,this[_0xe985b9(0x422)],this[_0xe985b9(0x348)],this[_0xe985b9(0x38c)],[],null,[_0x43b476],this['_handler']);try{const _0x2a9827=this['_transformService'][_0xe985b9(0x365)]([_0x43b476],[this['_awaitingChangeset']],!0x1);if(_[_0xe985b9(0x4f9)](_0x2a9827)){const {c1Prime:_0x4dace1,c2Prime:_0x622ce1}=_0x2a9827;this[_0xe985b9(0x4a7)](_0x4dace1[0x0]),_0x622ce1[0x0][_0xe985b9(0x3c9)]=this[_0xe985b9(0x355)]();const _0x5802b8=this[_0xe985b9(0x31d)][_0xe985b9(0x3b9)](x,this[_0xe985b9(0x422)],this[_0xe985b9(0x348)],_0x622ce1[0x0],this[_0xe985b9(0x290)]);return _0x5802b8['_updateLocalCache'](),_0x5802b8;}return this[_0xe985b9(0x1a8)](!0x1);}catch(_0x4d6869){return this['_logService']['error'](_0x4d6869),this[_0xe985b9(0x1a8)](!0x1);}}['onRemoteAck'](_0x536afa){const _0x6f7975=_0x2ad778,_0x1f4f2d=this[_0x6f7975(0x43c)][_0x6f7975(0x3a9)](this['unitID']);if(_0x536afa['revision']<_0x1f4f2d-0x1)return this;if(this[_0x6f7975(0x4ba)](_0x536afa))return this[_0x6f7975(0x31d)][_0x6f7975(0x3b9)](H,this[_0x6f7975(0x422)],this['type'],null,[],this[_0x6f7975(0x38c)],[],this[_0x6f7975(0x290)]);this[_0x6f7975(0x3e1)]();const _0x2e35ea=this[_0x6f7975(0x31d)][_0x6f7975(0x3b9)](ae,this[_0x6f7975(0x422)],this[_0x6f7975(0x348)],this[_0x6f7975(0x290)]);return _0x2e35ea['_updateLocalCache'](),_0x2e35ea;}['onRemoteRej'](_0x47e82c){const _0x8f221e=_0x2ad778;return this['_onConflict'](!!(_0x47e82c!=null&&_0x47e82c[_0x8f221e(0x500)]));}['toggleOffline'](){const _0x130e26=_0x2ad778;return this[_0x130e26(0x31d)][_0x130e26(0x3b9)](k,this[_0x130e26(0x422)],this['type'],this[_0x130e26(0x38c)],[],this[_0x130e26(0x290)]);}[_0x2ad778(0x44e)](){return this;}['resend'](){const _0x56abad=_0x2ad778;this['_handler'][_0x56abad(0x382)](this['_awaitingChangeset']);}[_0x2ad778(0x1a8)](_0x15c688){const _0x5e965f=_0x2ad778;return this[_0x5e965f(0x31d)][_0x5e965f(0x3b9)](G,this['unitID'],this[_0x5e965f(0x348)],this['_awaitingChangeset'],[],this[_0x5e965f(0x290)],_0x15c688);}};x=Y([g(0x4,o['Inject'](o['Injector'])),g(0x5,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0x6,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0x7,o[_0x2ad778(0x4e4)]),g(0x8,o['ILogService']),g(0x9,_[_0x2ad778(0x4a5)]),g(0xa,o[_0x2ad778(0x29a)])],x);let $=class extends K{constructor(_0x400eca,_0x3177cd,_0x33ed1f,_0x4025c3,_0x16a2d3,_0x2480fe,_0x10840f,_0x2013f2,_0x1cd022,_0x371f0d,_0x40be49,_0x5c52db){const _0x25ab1f=_0x2ad778;super(_0x400eca,_0x3177cd,_0x33ed1f,_0x4025c3,_0x16a2d3,_0x1cd022,_0x5c52db,_0x10840f,_0x2013f2),u(this,_0x25ab1f(0x35e),_0x25ab1f(0x366)),(this[_0x25ab1f(0x31d)]=_0x2480fe,this['_logService']=_0x371f0d,this[_0x25ab1f(0x258)]=_0x40be49);}[_0x2ad778(0x3d4)](_0x590cae){const _0x5ba66b=_0x2ad778;return this[_0x5ba66b(0x3c2)][_0x5ba66b(0x363)](_0x590cae),this;}[_0x2ad778(0x216)](_0x4c8f11){const _0xfc5fd8=_0x2ad778;if(this[_0xfc5fd8(0x4ba)](_0x4c8f11))return this[_0xfc5fd8(0x31d)]['createInstance'](H,this['unitID'],this['type'],this[_0xfc5fd8(0x38c)],this[_0xfc5fd8(0x3c2)],null,[_0x4c8f11],this['_handler']);try{const _0x192220=this[_0xfc5fd8(0x258)][_0xfc5fd8(0x365)]([_0x4c8f11],[this[_0xfc5fd8(0x38c)]],!0x1);if(_[_0xfc5fd8(0x4f9)](_0x192220)){const {c1Prime:_0x207499,c2Prime:_0x553d43}=_0x192220,_0x426592=this['_transformService'][_0xfc5fd8(0x18a)](_0x207499[0x0],this[_0xfc5fd8(0x3c2)]);if(_[_0xfc5fd8(0x2bf)](_0x426592)){const {c1Prime:_0x18a919,m2Prime:_0x338979}=_0x426592;return this[_0xfc5fd8(0x4a7)](_0x18a919),_0x553d43[0x0]['baseRev']=this[_0xfc5fd8(0x355)](),this[_0xfc5fd8(0x31d)][_0xfc5fd8(0x3b9)]($,this[_0xfc5fd8(0x422)],this[_0xfc5fd8(0x348)],_0x553d43[0x0],_0x338979,this[_0xfc5fd8(0x290)]);}throw _0x426592[_0xfc5fd8(0x191)];}throw _0x192220['error'];}catch(_0x1b1680){return this['_logService'][_0xfc5fd8(0x191)](_0x1b1680),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x2cbef3){const _0xfe1b9e=_0x2ad778;if(this['_checkMissing'](_0x2cbef3))return this[_0xfe1b9e(0x31d)][_0xfe1b9e(0x3b9)](H,this[_0xfe1b9e(0x422)],this['type'],null,this[_0xfe1b9e(0x3c2)],this[_0xfe1b9e(0x38c)],[],this[_0xfe1b9e(0x290)]);this[_0xfe1b9e(0x3e1)]();const _0x378bad=this['_injector'][_0xfe1b9e(0x3b9)](j,this['unitID'],this[_0xfe1b9e(0x348)],this[_0xfe1b9e(0x3c2)],this[_0xfe1b9e(0x290)]);return _0x378bad['_schedule'](),_0x378bad[_0xfe1b9e(0x474)](),_0x378bad;}[_0x2ad778(0x499)](_0x5ba050){const _0x1a75aa=_0x2ad778;return this[_0x1a75aa(0x1a8)](!!(_0x5ba050!=null&&_0x5ba050[_0x1a75aa(0x500)]));}[_0x2ad778(0x364)](){const _0x165e75=_0x2ad778;return this[_0x165e75(0x31d)]['createInstance'](k,this[_0x165e75(0x422)],this[_0x165e75(0x348)],this[_0x165e75(0x38c)],this[_0x165e75(0x3c2)],this['_handler']);}[_0x2ad778(0x44e)](){return this;}[_0x2ad778(0x2af)](){const _0xba5dd=_0x2ad778;this[_0xba5dd(0x290)][_0xba5dd(0x382)](this[_0xba5dd(0x38c)]);}[_0x2ad778(0x1a8)](_0x52eca4){const _0x5f4caf=_0x2ad778;return this[_0x5f4caf(0x31d)][_0x5f4caf(0x3b9)](G,this['unitID'],this[_0x5f4caf(0x348)],null,this['_pendingMutations'],this[_0x5f4caf(0x290)],_0x52eca4);}};$=Y([g(0x5,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),g(0x6,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0x7,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0x8,o[_0x2ad778(0x4e4)]),g(0x9,o[_0x2ad778(0x2ac)]),g(0xa,_[_0x2ad778(0x4a5)]),g(0xb,o[_0x2ad778(0x29a)])],$);let G=class extends K{constructor(_0x245d7b,_0x3cc5bc,_0x3acb72,_0x567ec1,_0x34e45b,_0x58cf21=!0x1,_0x42a3fb,_0x1255fe,_0x31a175,_0x15b6e4,_0xd3904b,_0x1669a5,_0x597c49){const _0x2304f4=_0x2ad778;super(_0x245d7b,_0x3cc5bc,_0x3acb72,_0x567ec1,_0x34e45b,_0x1255fe,_0x31a175,_0xd3904b,_0x15b6e4),u(this,_0x2304f4(0x35e),_0x2304f4(0x1e9)),(this['_isPermissionRej']=_0x58cf21,this[_0x2304f4(0x3a8)]=_0x42a3fb,this[_0x2304f4(0x4fd)]=_0x1669a5,this['_notificationService']=_0x597c49,this[_0x2304f4(0x336)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x2ad778(0x3d4)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x2ad778(0x499)](){return this;}[_0x2ad778(0x364)](){return this;}[_0x2ad778(0x44e)](){return this;}[_0x2ad778(0x2af)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2ad778(0x4b6)](){const _0x54de86=_0x2ad778;this[_0x54de86(0x4e6)][_0x54de86(0x181)](this[_0x54de86(0x422)],this[_0x54de86(0x348)],null,[]);}['_showConflictNotification'](){const _0x2fb683=_0x2ad778;this[_0x2fb683(0x231)]?this[_0x2fb683(0x2a7)][_0x2fb683(0x1c6)]({'title':this[_0x2fb683(0x4fd)]['t'](_0x2fb683(0x406)),'content':this[_0x2fb683(0x4fd)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x2fb683(0x2a7)]['show']({'title':this[_0x2fb683(0x4fd)]['t'](_0x2fb683(0x17c)),'content':this['_localeService']['t']('conflict.content'),'type':_0x2fb683(0x191),'duration':0x0});}[_0x2ad778(0x2fb)](){const _0x21e479=_0x2ad778;this[_0x21e479(0x3a8)][_0x21e479(0x28e)](new p[(_0x21e479(0x344))](this['unitID'])['id'],!0x1);}};G=Y([g(0x6,o[_0x2ad778(0x143)](o[_0x2ad778(0x358)])),g(0x7,o[_0x2ad778(0x4e4)]),g(0x8,o[_0x2ad778(0x29a)]),g(0x9,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0xa,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0xb,o[_0x2ad778(0x143)](o[_0x2ad778(0x384)])),g(0xc,M['INotificationService'])],G);let k=class extends K{constructor(_0x3bb138,_0x55dc21,_0x1e0653,_0x19a77c,_0x2e4101,_0x163e8a,_0x15cb4e,_0x4746c7,_0x4c1777,_0x1d7629){const _0x32379b=_0x2ad778;super(_0x3bb138,_0x55dc21,_0x1e0653,_0x19a77c,_0x2e4101,_0x4c1777,_0x1d7629,_0x15cb4e,_0x4746c7),u(this,'status',_0x32379b(0x28a)),this['_injector']=_0x163e8a;}[_0x2ad778(0x3d4)](_0x5aa577){const _0x2ac9f8=_0x2ad778;return this[_0x2ac9f8(0x3c2)][_0x2ac9f8(0x363)](_0x5aa577),this['_updateLocalCache'](),this;}[_0x2ad778(0x216)](_0x1cd696){const _0x41bcfe=_0x2ad778;throw new Error(_0x41bcfe(0x425));}[_0x2ad778(0x3ce)](){const _0x1b87cb=_0x2ad778;throw new Error(_0x1b87cb(0x26e));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}[_0x2ad778(0x44e)](){const _0x574ff1=_0x2ad778,{_injector:_0x5b8b73,_pendingMutations:_0x4ff832,_awaitingChangeset:_0x2fa74b,unitID:_0x292664,_handler:_0x51cf00,type:_0x566cd6}=this,_0x2c1102=Tt(_0x5b8b73,_0x292664,_0x566cd6,_0x2fa74b,_0x4ff832,_0x51cf00);return _0x2c1102 instanceof j?_0x2c1102[_0x574ff1(0x325)]():(_0x2c1102 instanceof $||_0x2c1102 instanceof x)&&_0x2c1102[_0x574ff1(0x2af)](),_0x2c1102;}['resend'](){const _0x1db3be=_0x2ad778;throw new Error(_0x1db3be(0x275));}};k=Y([g(0x5,o[_0x2ad778(0x143)](o['Injector'])),g(0x6,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0x7,o[_0x2ad778(0x143)](exports['LocalCacheService'])),g(0x8,o[_0x2ad778(0x4e4)]),g(0x9,o['IUndoRedoService'])],k);let H=class extends K{constructor(_0x2bcbe1,_0x555d35,_0x3f880a,_0x3490ab,_0x2ba552,_0x19d57d,_0x11f57c,_0x80ef42,_0x48ecf9,_0x208532,_0x3ece42,_0x12e418,_0xae628,_0x1721a5){const _0x18ed7e=_0x2ad778;super(_0x2bcbe1,_0x555d35,_0x3f880a,_0x3490ab,_0x11f57c,_0x12e418,_0xae628,_0x48ecf9,_0x208532),u(this,_0x18ed7e(0x35e),_0x18ed7e(0x1de)),(this[_0x18ed7e(0x17a)]=_0x2ba552,this[_0x18ed7e(0x45e)]=_0x19d57d,this[_0x18ed7e(0x31d)]=_0x80ef42,this[_0x18ed7e(0x46f)]=_0x3ece42,this[_0x18ed7e(0x258)]=_0x1721a5);}[_0x2ad778(0x4bd)](_0x4aea58){const _0xc75bd2=_0x2ad778;try{const _0x1dda5a=[..._0x4aea58,...this['_queuedRemoteChangesets']],_0x18480f=[this['_awaitingChangeset']||this[_0xc75bd2(0x17a)]][_0xc75bd2(0x1dd)](_0x3de88a=>!!_0x3de88a);let _0x7299c7,_0x57fbee;if(_0x18480f['length']){const _0x50aaf9=this[_0xc75bd2(0x258)][_0xc75bd2(0x365)](_0x1dda5a,_0x18480f,!0x1);if(!_['isTransformChangesetsSuccess'](_0x50aaf9))throw _0x50aaf9[_0xc75bd2(0x191)];_0x7299c7=_0x50aaf9[_0xc75bd2(0x447)],_0x57fbee=_0x50aaf9[_0xc75bd2(0x153)];}else _0x7299c7=_0x1dda5a,_0x57fbee=[];let _0x5b128d=this[_0xc75bd2(0x3c2)];_0x7299c7[_0xc75bd2(0x169)](_0xcb51e3=>{const _0x29d777=_0xc75bd2;let _0x5bfb60;if(_0x5b128d['length']){const _0x4cd489=this['_transformService'][_0x29d777(0x18a)](_0xcb51e3,_0x5b128d);if(!_[_0x29d777(0x2bf)](_0x4cd489))throw _0x4cd489[_0x29d777(0x191)];_0x5bfb60=_0x4cd489['c1Prime'],_0x5b128d=_0x4cd489[_0x29d777(0x29e)];}else _0x5bfb60=_0xcb51e3;this[_0x29d777(0x4a7)](_0x5bfb60);}),this[_0xc75bd2(0x17a)]&&this[_0xc75bd2(0x3e1)](),this[_0xc75bd2(0x38c)]&&_0x57fbee['length']&&(_0x57fbee[0x0]['baseRev']=this['_getCurrentRevision']());let _0x2e31fb;if(this[_0xc75bd2(0x38c)]&&_0x5b128d[_0xc75bd2(0x32e)]!==0x0)_0x2e31fb=this[_0xc75bd2(0x31d)]['createInstance']($,this[_0xc75bd2(0x422)],this['type'],_0x57fbee[0x0],_0x5b128d,this[_0xc75bd2(0x290)]);else{if(this['_awaitingChangeset']&&_0x5b128d[_0xc75bd2(0x32e)]===0x0)_0x57fbee[0x0][_0xc75bd2(0x3c9)]=this[_0xc75bd2(0x355)](),_0x2e31fb=this[_0xc75bd2(0x31d)]['createInstance'](x,this[_0xc75bd2(0x422)],this['type'],_0x57fbee[0x0],this[_0xc75bd2(0x290)]);else{if(_0x5b128d[_0xc75bd2(0x32e)]!==0x0){const _0x5c37a9=this[_0xc75bd2(0x31d)]['createInstance'](j,this[_0xc75bd2(0x422)],this[_0xc75bd2(0x348)],_0x5b128d,this[_0xc75bd2(0x290)]);_0x5c37a9['_schedule'](),_0x2e31fb=_0x5c37a9;}else _0x2e31fb=this[_0xc75bd2(0x31d)][_0xc75bd2(0x3b9)](ae,this['unitID'],this[_0xc75bd2(0x348)],this['_handler']);}}return _0x2e31fb[_0xc75bd2(0x474)](),_0x2e31fb;}catch(_0x5018c1){return this[_0xc75bd2(0x46f)][_0xc75bd2(0x191)](_0xc75bd2(0x36d),_0xc75bd2(0x25e),_0x5018c1),this[_0xc75bd2(0x31d)][_0xc75bd2(0x3b9)](G,this[_0xc75bd2(0x422)],this[_0xc75bd2(0x348)],this[_0xc75bd2(0x38c)],this['_pendingMutations'],this[_0xc75bd2(0x290)],!0x1);}}[_0x2ad778(0x2af)](){const _0x36b5c2=_0x2ad778;throw new Error(_0x36b5c2(0x1bb));}['appendMutation'](_0x505a52){const _0xb8c784=_0x2ad778;return this[_0xb8c784(0x3c2)][_0xb8c784(0x363)](_0x505a52),this;}[_0x2ad778(0x216)](_0x2e35ee){const _0x472dc9=_0x2ad778;return this[_0x472dc9(0x45e)]['push'](_0x2e35ee),this;}[_0x2ad778(0x3ce)](_0x4d7847){const _0x3ef0e4=_0x2ad778;if(this[_0x3ef0e4(0x38c)])return this[_0x3ef0e4(0x17a)]=this[_0x3ef0e4(0x38c)],this[_0x3ef0e4(0x38c)]=null,this;throw new Error(_0x3ef0e4(0x225));}[_0x2ad778(0x499)](_0x52a2e9){const _0x58761b=_0x2ad778;return this[_0x58761b(0x1a8)](!!(_0x52a2e9!=null&&_0x52a2e9['isPermissionRej']));}[_0x2ad778(0x364)](){const _0x10bfc0=_0x2ad778;return this[_0x10bfc0(0x31d)][_0x10bfc0(0x3b9)](k,this['unitID'],this[_0x10bfc0(0x348)],this['_awaitingChangeset'],this[_0x10bfc0(0x3c2)],this[_0x10bfc0(0x290)]);}['toggleOnline'](){return this;}['_onConflict'](_0x14a68e){const _0xc95b9c=_0x2ad778;return this[_0xc95b9c(0x31d)][_0xc95b9c(0x3b9)](G,this[_0xc95b9c(0x422)],this[_0xc95b9c(0x348)],this[_0xc95b9c(0x38c)],this['_pendingMutations'],this['_handler'],_0x14a68e);}};H=Y([g(0x7,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),g(0x8,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),g(0x9,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),g(0xa,o[_0x2ad778(0x2ac)]),g(0xb,o[_0x2ad778(0x4e4)]),g(0xc,o['IUndoRedoService']),g(0xd,_[_0x2ad778(0x4a5)])],H);function Tt(_0x4cc54a,_0x55e4ea,_0x1a5aab,_0x14424b,_0x467d65,_0x212ab7){const _0x4500ac=_0x2ad778;return _0x14424b&&_0x467d65[_0x4500ac(0x32e)]?_0x4cc54a[_0x4500ac(0x3b9)]($,_0x55e4ea,_0x1a5aab,_0x14424b,_0x467d65,_0x212ab7):_0x14424b?_0x4cc54a[_0x4500ac(0x3b9)](x,_0x55e4ea,_0x1a5aab,_0x14424b,_0x212ab7):_0x467d65[_0x4500ac(0x32e)]?_0x4cc54a['createInstance'](j,_0x55e4ea,_0x1a5aab,_0x467d65,_0x212ab7):_0x4cc54a[_0x4500ac(0x3b9)](ae,_0x55e4ea,_0x1a5aab,_0x212ab7);}var Us=Object[_0x2ad778(0x4be)],Ps=Object[_0x2ad778(0x16e)],Ce=(_0x51ae51,_0x4472a8,_0x80fdea,_0x4e70bc)=>{const _0xea5dca=_0x2ad778;for(var _0x3f90d1=_0x4e70bc>0x1?void 0x0:_0x4e70bc?Ps(_0x4472a8,_0x80fdea):_0x4472a8,_0x30ed4f=_0x51ae51[_0xea5dca(0x32e)]-0x1,_0xa5733c;_0x30ed4f>=0x0;_0x30ed4f--)(_0xa5733c=_0x51ae51[_0x30ed4f])&&(_0x3f90d1=(_0x4e70bc?_0xa5733c(_0x4472a8,_0x80fdea,_0x3f90d1):_0xa5733c(_0x3f90d1))||_0x3f90d1);return _0x4e70bc&&_0x3f90d1&&Us(_0x4472a8,_0x80fdea,_0x3f90d1),_0x3f90d1;},I=(_0x34d0bd,_0x27438e)=>(_0x55e10c,_0x3d4706)=>_0x27438e(_0x55e10c,_0x3d4706,_0x34d0bd);exports[_0x2ad778(0x371)]=class extends o[_0x2ad778(0x30e)]{constructor(_0x177857,_0x256568,_0xaf313){const _0x1434fe=_0x2ad778;super(),u(this,_0x1434fe(0x17b),new Map()),u(this,'_entityInit$',new v[(_0x1434fe(0x2c6))]()),(this[_0x1434fe(0x31d)]=_0x177857,this[_0x1434fe(0x197)]=_0x256568,this[_0x1434fe(0x2ec)]=_0xaf313,this[_0x1434fe(0x3c3)]());}['dispose'](){const _0x2d02ab=_0x2ad778;super[_0x2d02ab(0x194)](),this['_entities'][_0x2d02ab(0x169)](_0x40d07d=>_0x40d07d[_0x2d02ab(0x194)]()),this[_0x2d02ab(0x17b)][_0x2d02ab(0x200)]();}[_0x2ad778(0x454)](_0x2f7737){const _0x3717ee=_0x2ad778;var _0x2cd627;return(_0x2cd627=this[_0x3717ee(0x17b)][_0x3717ee(0x49d)](_0x2f7737))!=null?_0x2cd627:null;}[_0x2ad778(0x317)](_0x5e5827){const _0x4e71b0=_0x2ad778,_0x32f859=this[_0x4e71b0(0x454)](_0x5e5827);return _0x32f859?v['of'](_0x32f859):this[_0x4e71b0(0x2b5)][_0x4e71b0(0x502)](E[_0x4e71b0(0x1dd)](_0x2d2fa5=>_0x2d2fa5[_0x4e71b0(0x422)]===_0x5e5827));}[_0x2ad778(0x3c3)](){const _0x9ba43d=_0x2ad778;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x9ba43d(0x3c7)][_0x9ba43d(0x421)])['pipe'](v[_0x9ba43d(0x306)](this['dispose$']),E[_0x9ba43d(0x352)](0x10))[_0x9ba43d(0x27c)](async _0x11ce22=>{const _0x35b6d4=_0x9ba43d,_0x41d709=_0x11ce22[_0x35b6d4(0x340)](),_0x2c980c=await this[_0x35b6d4(0x4fc)](_0x41d709,A[_0x35b6d4(0x421)]);this[_0x35b6d4(0x17b)]['set'](_0x41d709,_0x2c980c);}),this[_0x9ba43d(0x2ec)][_0x9ba43d(0x4b7)](o[_0x9ba43d(0x3c7)][_0x9ba43d(0x257)])[_0x9ba43d(0x502)](v['takeUntil'](this['dispose$']),E[_0x9ba43d(0x352)](0x10))[_0x9ba43d(0x502)](E[_0x9ba43d(0x1dd)](_0x360087=>!_0x360087[_0x9ba43d(0x340)]()[_0x9ba43d(0x3bf)]('__')))[_0x9ba43d(0x27c)](async _0x5e2aee=>{const _0x4261ec=_0x9ba43d,_0x2f36c0=_0x5e2aee[_0x4261ec(0x340)](),_0x58636d=await this[_0x4261ec(0x4fc)](_0x2f36c0,A[_0x4261ec(0x257)]);this[_0x4261ec(0x17b)][_0x4261ec(0x20c)](_0x2f36c0,_0x58636d);}),v['merge'](this[_0x9ba43d(0x2ec)][_0x9ba43d(0x1e8)](o[_0x9ba43d(0x3c7)][_0x9ba43d(0x421)]),this['_univerInstanceService'][_0x9ba43d(0x1e8)](o['UniverInstanceType']['UNIVER_DOC']))['pipe'](v['takeUntil'](this[_0x9ba43d(0x46a)]))[_0x9ba43d(0x27c)](_0x529b80=>{const _0x17a943=_0x9ba43d,_0x19de9d=_0x529b80[_0x17a943(0x340)](),_0x73fba6=this[_0x17a943(0x17b)][_0x17a943(0x49d)](_0x19de9d);_0x73fba6&&(_0x73fba6['dispose'](),this['_entities'][_0x17a943(0x40a)](_0x19de9d));});}async['_startCollaboration'](_0x25e13c,_0x368fb3){const _0x5eb1ba=_0x2ad778,_0xe33fd2=await this[_0x5eb1ba(0x197)][_0x5eb1ba(0x34a)](_0x25e13c),_0x2bb515=this['_injector'][_0x5eb1ba(0x3b9)](this['_getCtorByUniverType'](_0x368fb3),_0x25e13c,_0x368fb3,_0xe33fd2);return await _0x2bb515[_0x5eb1ba(0x367)](),this[_0x5eb1ba(0x2b5)][_0x5eb1ba(0x368)](_0x2bb515),_0x2bb515;}[_0x2ad778(0x179)](_0x1b3054){const _0x3c4187=_0x2ad778;switch(_0x1b3054){case A['UNIVER_DOC']:return Le;case A[_0x3c4187(0x421)]:return Me;default:throw new Error(_0x3c4187(0x2cc)+_0x1b3054);}}},exports[_0x2ad778(0x371)]=Ce([o[_0x2ad778(0x492)](o[_0x2ad778(0x2e2)][_0x2ad778(0x33f)],exports[_0x2ad778(0x371)]),I(0x0,o['Inject'](o[_0x2ad778(0x26c)])),I(0x1,o[_0x2ad778(0x143)](exports[_0x2ad778(0x277)])),I(0x2,o[_0x2ad778(0x1ed)])],exports[_0x2ad778(0x371)]);let Ie=class extends o[_0x2ad778(0x30e)]{constructor(_0x4ea816,_0x5379d7,_0x402fb8,_0xfa2b6,_0x12ce06,_0x80cefc,_0xce5811,_0x1b8403,_0x52d8e6,_0x15289d,_0x279f35,_0x5f0877,_0x2ca4ac){const _0x3a8de6=_0x2ad778;super(),u(this,_0x3a8de6(0x43f),new v[(_0x3a8de6(0x31c))](null)),u(this,'state$',this[_0x3a8de6(0x43f)][_0x3a8de6(0x1bd)]()),u(this,_0x3a8de6(0x332)),u(this,_0x3a8de6(0x234),!0x1),u(this,_0x3a8de6(0x39a),this['state$'][_0x3a8de6(0x502)](E[_0x3a8de6(0x2c7)](_0x5e3953=>_0x5e3953?_0x5e3953[_0x3a8de6(0x35e)]:D[_0x3a8de6(0x2fc)]),E['shareReplay'](0x1))),u(this,'_transitionLocked',!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x3a8de6(0x422)]=_0x4ea816,this['_type']=_0x5379d7,this['_session']=_0x402fb8,this['_injector']=_0xfa2b6,this['_localCacheService']=_0x12ce06,this[_0x3a8de6(0x37e)]=_0x80cefc,this[_0x3a8de6(0x4fd)]=_0xce5811,this[_0x3a8de6(0x43c)]=_0x1b8403,this[_0x3a8de6(0x46f)]=_0x52d8e6,this[_0x3a8de6(0x14c)]=_0x15289d,this['_messageService']=_0x279f35,this[_0x3a8de6(0x3a8)]=_0x5f0877,this[_0x3a8de6(0x182)]=_0x2ca4ac);}get['state'](){const _0x24478c=_0x2ad778;return this[_0x24478c(0x332)];}async[_0x2ad778(0x367)](){const _0x33fa8b=_0x2ad778;if(this[_0x33fa8b(0x485)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x2ad778(0x32a)](){const _0x4bc5e6=_0x2ad778;return this[_0x4bc5e6(0x234)]=!0x0,o[_0x4bc5e6(0x1e7)](()=>{const _0x533d53=_0x4bc5e6;this['_collaborationPaused']=!0x1,this[_0x533d53(0x287)]();});}[_0x2ad778(0x21f)](_0x401b7f){const _0x3310b5=_0x2ad778;this[_0x3310b5(0x332)]=_0x401b7f,this[_0x3310b5(0x43f)]['next'](_0x401b7f);}async[_0x2ad778(0x3c3)](){const _0x2811a7=_0x2ad778;var _0x5e2001;return this[_0x2811a7(0x21f)](await this['_createInitialState']()),this[_0x2811a7(0x182)]&&((_0x5e2001=this[_0x2811a7(0x182)])==null||_0x5e2001[_0x2811a7(0x392)](this['unitID']),this[_0x2811a7(0x233)](o['toDisposable'](this[_0x2811a7(0x182)]['getUnitStatus$'](this[_0x2811a7(0x422)])[_0x2811a7(0x27c)](_0x49bad1=>{const _0x410b89=_0x2811a7;this['_logService'][_0x410b89(0x484)](_0x410b89(0x380),'editing\x20status\x20changed\x20to',_0x49bad1),_0x49bad1===Ct[_0x410b89(0x4ce)]?(this['_messageService']['show']({'content':this[_0x410b89(0x4fd)]['t'](_0x410b89(0x3c4)),'type':Z[_0x410b89(0x310)][_0x410b89(0x4ff)]}),this[_0x410b89(0x3a8)][_0x410b89(0x28e)](new p[(_0x410b89(0x344))](this[_0x410b89(0x422)])['id'],!0x1)):this['_permissionService']['updatePermissionPoint'](new p[(_0x410b89(0x344))](this['unitID'])['id'],!0x0);})))),this[_0x2811a7(0x233)](o[_0x2811a7(0x1e7)](this['_session'][_0x2811a7(0x292)][_0x2811a7(0x27c)](_0x1206ac=>{const _0x25bbc2=_0x2811a7;_0x1206ac===V[_0x25bbc2(0x21e)]?this[_0x25bbc2(0x43e)]():_0x1206ac===V[_0x25bbc2(0x2fc)]&&this[_0x25bbc2(0x148)]();}))),this['disposeWithMe'](o[_0x2811a7(0x1e7)](this[_0x2811a7(0x22d)]['event$'][_0x2811a7(0x27c)](_0x521f43=>{const _0x22ddc5=_0x2811a7;try{switch(_0x521f43[_0x22ddc5(0x318)]){case _['CollaborationEvent'][_0x22ddc5(0x3f4)]:{this[_0x22ddc5(0x4ef)](_['parseProtocolChangeset'](_0x521f43[_0x22ddc5(0x2f7)]));break;}case _['CollaborationEvent'][_0x22ddc5(0x4dc)]:{this['_onRemoteACK'](_0x521f43[_0x22ddc5(0x2f7)]);break;}case _[_0x22ddc5(0x4b9)][_0x22ddc5(0x1ce)]:{this[_0x22ddc5(0x458)]();break;}case _[_0x22ddc5(0x4b9)][_0x22ddc5(0x281)]:{this[_0x22ddc5(0x26a)](_0x521f43[_0x22ddc5(0x2f7)][_0x22ddc5(0x388)][_0x22ddc5(0x2c7)](_0x53ee49=>_['parseProtocolChangeset'](_0x53ee49)));break;}case _[_0x22ddc5(0x4b9)][_0x22ddc5(0x396)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x171b09){throw console[_0x22ddc5(0x191)]('Error\x20on\x20receiving\x20event',_0x171b09),_0x171b09;}}))),this['_state'];}[_0x2ad778(0x304)](){const _0x264f1b=_0x2ad778;this[_0x264f1b(0x412)]=!0x1;}[_0x2ad778(0x472)](){const _0x322e7e=_0x2ad778;if(this['_transitionLocked'])throw new Error(_0x322e7e(0x1f9));this[_0x322e7e(0x412)]=!0x0;}['_onLocalMutation'](_0x22a275){const _0x208973=_0x2ad778;this[_0x208973(0x472)](),this['_updateState'](this['_state'][_0x208973(0x3d4)](_0x22a275)),this['_unlockTransition']();}[_0x2ad778(0x4ef)](_0x2ada73){const _0x3a3936=_0x2ad778;if(!(_0x2ada73[_0x3a3936(0x437)]<=this[_0x3a3936(0x43c)][_0x3a3936(0x3a9)](this['unitID']))){if(this[_0x3a3936(0x234)]){this[_0x3a3936(0x27e)][_0x3a3936(0x363)](_0x2ada73);return;}this[_0x3a3936(0x3e7)](_0x2ada73);}}[_0x2ad778(0x287)](){const _0x19cea5=_0x2ad778;this['_remoteChangesetQueue']['forEach'](_0x3dc503=>this[_0x19cea5(0x3e7)](_0x3dc503)),this[_0x19cea5(0x27e)]=[];}[_0x2ad778(0x3e7)](_0x219714){const _0x541eca=_0x2ad778,_0x3dda01=this[_0x541eca(0x37e)]['interceptor'][_0x541eca(0x284)](this[_0x541eca(0x37e)][_0x541eca(0x198)][_0x541eca(0x3a0)]()['COMPRESS_MUTATION_APPLY'])(_0x219714[_0x541eca(0x3da)],null)||_0x219714[_0x541eca(0x3da)],_0x29bacf={..._0x219714,'mutations':_0x3dda01};this[_0x541eca(0x472)](),this[_0x541eca(0x21f)](this[_0x541eca(0x332)][_0x541eca(0x216)](_0x29bacf)),this[_0x541eca(0x304)]();}[_0x2ad778(0x1c7)](_0x42f3fd){const _0x9b2a7f=_0x2ad778;this['_lockTransition'](),this[_0x9b2a7f(0x21f)](this[_0x9b2a7f(0x332)][_0x9b2a7f(0x3ce)](_0x42f3fd)),this[_0x9b2a7f(0x304)]();}[_0x2ad778(0x458)](_0x4ca3ee){const _0x5460de=_0x2ad778;this[_0x5460de(0x472)](),this[_0x5460de(0x21f)](this['_state'][_0x5460de(0x499)](_0x4ca3ee)),this[_0x5460de(0x304)]();}[_0x2ad778(0x26a)](_0x187946){const _0x31f327=_0x2ad778;if(!(this[_0x31f327(0x332)]instanceof H))throw new TypeError(_0x31f327(0x49c));const _0xe74a87=_0x187946[_0x31f327(0x2c7)](_0x23bee2=>{const _0x3fa67a=_0x31f327,_0x251f6e=this[_0x3fa67a(0x37e)]['interceptor'][_0x3fa67a(0x284)](this[_0x3fa67a(0x37e)][_0x3fa67a(0x198)][_0x3fa67a(0x3a0)]()[_0x3fa67a(0x2d8)])(_0x23bee2[_0x3fa67a(0x3da)],null)||_0x23bee2['mutations'];return{..._0x23bee2,'mutations':_0x251f6e};});this[_0x31f327(0x472)](),this[_0x31f327(0x21f)](this[_0x31f327(0x332)]['onMissedChangesetFetched'](_0xe74a87)),this[_0x31f327(0x304)]();}[_0x2ad778(0x148)](){const _0x5c9f06=_0x2ad778;this[_0x5c9f06(0x472)](),this['_updateState'](this[_0x5c9f06(0x332)]['toggleOffline']()),this[_0x5c9f06(0x304)]();}[_0x2ad778(0x43e)](){const _0x10c53d=_0x2ad778;this[_0x10c53d(0x472)](),this[_0x10c53d(0x21f)](this[_0x10c53d(0x332)][_0x10c53d(0x44e)]()),this[_0x10c53d(0x304)]();}async[_0x2ad778(0x1dc)](){return new Promise(_0x3cb10f=>{const _0x2cd6ad=_0x379e;this[_0x2cd6ad(0x22d)]['sessionStatus$']['pipe'](E['take'](0x1))[_0x2cd6ad(0x27c)](async _0x59da48=>{const _0xe907a3=_0x2cd6ad;_0x3cb10f(await this['_createInitialStateImpl'](_0x59da48===V[_0xe907a3(0x21e)]));});});}[_0x2ad778(0x14d)](){const _0x504162=_0x2ad778,_0x3a7973=this[_0x504162(0x422)];return{'onStateChange':(_0x2f2442,_0x3321b8)=>{const _0x5af2c8=_0x504162;if(_0x2f2442!==this['_state'])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2f2442['status']+_0x5af2c8(0x490)+_0x3321b8[_0x5af2c8(0x35e)]+_0x5af2c8(0x41d)+this[_0x5af2c8(0x332)]['status']);this['_updateState'](_0x3321b8);},'onSendChangeset':_0x24c100=>{const _0xd6ec52=_0x504162,_0x158f52={'eventID':_['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x24c100['unitID'],'unitType':this[_0xd6ec52(0x3c0)],'changeset':_0x24c100,'memberID':this[_0xd6ec52(0x22d)][_0xd6ec52(0x505)]()}};this[_0xd6ec52(0x22d)][_0xd6ec52(0x424)](_0x158f52,this['unitID']);},'onMissingChangesets':({from:_0x560f8d,to:_0x23a695})=>{const _0x1e0c3e=_0x504162;this[_0x1e0c3e(0x46f)]['debug'](_0x1e0c3e(0x380),_0x1e0c3e(0x509)+_0x560f8d+_0x1e0c3e(0x4cb)+_0x23a695);const _0x48aa3a={'eventID':_[_0x1e0c3e(0x4b9)]['FETCH_MISSING'],'data':{'unitID':_0x3a7973,'unitType':this[_0x1e0c3e(0x3c0)],'from':_0x560f8d,'to':_0x23a695}};this[_0x1e0c3e(0x22d)][_0x1e0c3e(0x424)](_0x48aa3a,this[_0x1e0c3e(0x422)]);}};}async['_createInitialStateImpl'](_0x521833){const _0x261afb=_0x2ad778;var _0x36aa92,_0x3039b0;const _0x2cfc1b=await this[_0x261afb(0x4e6)]['loadOfflineData'](this[_0x261afb(0x422)]),_0x490d21=(_0x36aa92=_0x2cfc1b==null?void 0x0:_0x2cfc1b[_0x261afb(0x3da)])!=null?_0x36aa92:[],_0x27edbb=(_0x3039b0=_0x2cfc1b==null?void 0x0:_0x2cfc1b[_0x261afb(0x477)])!=null?_0x3039b0:null,_0x1ee1fa=this[_0x261afb(0x422)];try{this['_replayCachedMutations'](_0x27edbb,_0x490d21);}catch(_0x12ba91){this[_0x261afb(0x46f)][_0x261afb(0x191)](_0x12ba91);}const _0x49e8da=this['_createHandler']();if(_0x521833){const _0x2e055a=Tt(this['_injector'],_0x1ee1fa,this[_0x261afb(0x3c0)],_0x27edbb,_0x490d21,_0x49e8da);return _0x2e055a instanceof j?_0x2e055a[_0x261afb(0x325)]():(_0x2e055a instanceof $||_0x2e055a instanceof x)&&_0x2e055a[_0x261afb(0x2af)](),_0x2e055a;}return this[_0x261afb(0x31d)][_0x261afb(0x3b9)](k,_0x1ee1fa,this[_0x261afb(0x3c0)],_0x27edbb,_0x490d21,_0x49e8da);}[_0x2ad778(0x15d)](_0x26befc,_0x46c4b2){const _0x25f50c=_0x2ad778;var _0x2193f1,_0xf921ec;const _0x2f0f1e=this[_0x25f50c(0x37e)][_0x25f50c(0x198)][_0x25f50c(0x284)](this[_0x25f50c(0x37e)][_0x25f50c(0x198)][_0x25f50c(0x3a0)]()[_0x25f50c(0x2d8)]);(_0x2193f1=_0x2f0f1e((_0x26befc==null?void 0x0:_0x26befc[_0x25f50c(0x3da)])||[],null))==null||_0x2193f1[_0x25f50c(0x169)](_0x181b1c=>this[_0x25f50c(0x14c)][_0x25f50c(0x2a6)](_0x181b1c['id'],_0x181b1c[_0x25f50c(0x1ba)])),(_0xf921ec=_0x2f0f1e(_0x46c4b2||[],null))==null||_0xf921ec[_0x25f50c(0x169)](_0xb1708d=>this[_0x25f50c(0x14c)][_0x25f50c(0x2a6)](_0xb1708d['id'],_0xb1708d[_0x25f50c(0x1ba)]));}};Ie=Ce([I(0x3,o['Inject'](o[_0x2ad778(0x26c)])),I(0x4,o[_0x2ad778(0x143)](exports['LocalCacheService'])),I(0x5,o[_0x2ad778(0x143)](_[_0x2ad778(0x1d2)])),I(0x6,o[_0x2ad778(0x143)](o['LocaleService'])),I(0x7,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),I(0x8,o[_0x2ad778(0x2ac)]),I(0x9,o[_0x2ad778(0x4e4)]),I(0xa,M[_0x2ad778(0x253)]),I(0xb,o[_0x2ad778(0x358)]),I(0xc,o[_0x2ad778(0x1f8)](Ee))],Ie);let Le=class extends Ie{constructor(_0x3213be,_0xa5d6cf,_0x4fb8aa,_0x2272ad,_0x2040a2,_0x40aec1,_0xcb9b97,_0x21b6ee,_0x3df663,_0x1f22ae,_0x3170f5,_0x515750,_0x16aa6f,_0x206fa2,_0x302801,_0x5ca577,_0x96958a){const _0x274ae2=_0x2ad778;super(_0x3213be,_0xa5d6cf,_0x4fb8aa,_0x2272ad,_0x2040a2,_0x40aec1,_0xcb9b97,_0x21b6ee,_0x16aa6f,_0x206fa2,_0x302801,_0x5ca577,_0x96958a),this[_0x274ae2(0x422)]=_0x3213be,this[_0x274ae2(0x348)]=_0xa5d6cf,this[_0x274ae2(0x159)]=_0x4fb8aa,this[_0x274ae2(0x282)]=_0x3df663,this['_docTransformIMECacheService']=_0x1f22ae,this['_docTransformSelectionsService']=_0x3170f5,this[_0x274ae2(0x42b)]=_0x515750;}[_0x2ad778(0x14d)](){const _0xae32b6=_0x2ad778,_0x26aae7=super['_createHandler']();return _0x26aae7['onTransformIME']=_0xb63485=>this[_0xae32b6(0x308)][_0xae32b6(0x232)](_0xb63485),_0x26aae7[_0xae32b6(0x1d7)]=_0x1cb4ee=>this[_0xae32b6(0x470)][_0xae32b6(0x49e)](_0x1cb4ee),_0x26aae7[_0xae32b6(0x247)]=_0x1068ca=>this[_0xae32b6(0x42b)][_0xae32b6(0x40c)](_0x1068ca),_0x26aae7[_0xae32b6(0x13f)]=_0x1c6299=>this[_0xae32b6(0x308)][_0xae32b6(0x255)](_0x1c6299),_0x26aae7;}async[_0x2ad778(0x3c3)](){const _0x1e2387=_0x2ad778,_0xe3ef9e=await super[_0x1e2387(0x3c3)]();return this['_docStateChangeManagerService']['docStateChange$']['pipe'](v['takeUntil'](this[_0x1e2387(0x46a)]))['subscribe'](_0x2c109f=>{const _0x559fd5=_0x1e2387;if(_0x2c109f==null)return;const {unitId:_0x4a301e,redoState:_0x5cd98b,commandId:_0xc1a815}=_0x2c109f;if(_0x4a301e!==this[_0x559fd5(0x422)])return;const _0x35e339={'id':_0xc1a815,'type':o[_0x559fd5(0x4cf)][_0x559fd5(0x2b9)],'params':{'unitId':_0x4a301e,'actions':_0x5cd98b[_0x559fd5(0x2fd)],'textRanges':null}};this[_0x559fd5(0x1ca)](_0x35e339);}),_0xe3ef9e;}};Le=Ce([I(0x3,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),I(0x4,o[_0x2ad778(0x143)](exports['LocalCacheService'])),I(0x5,o['Inject'](_[_0x2ad778(0x1d2)])),I(0x6,o[_0x2ad778(0x143)](o[_0x2ad778(0x384)])),I(0x7,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),I(0x8,o[_0x2ad778(0x143)](L[_0x2ad778(0x172)])),I(0x9,o[_0x2ad778(0x143)](ge)),I(0xa,o['Inject'](fe)),I(0xb,o[_0x2ad778(0x143)](We)),I(0xc,o['ILogService']),I(0xd,o[_0x2ad778(0x4e4)]),I(0xe,M[_0x2ad778(0x253)]),I(0xf,o[_0x2ad778(0x358)]),I(0x10,o['Optional'](Ee))],Le);let Me=class extends Ie{constructor(_0xb96769,_0x55a066,_0x275a16,_0x4d49b8,_0x237102,_0x28fa42,_0x554e2d,_0x542976,_0x52d3a3,_0x2cd7b6,_0x646661,_0x3fac9a,_0x3f57b6,_0x4090ea){const _0x2712c3=_0x2ad778;super(_0xb96769,_0x55a066,_0x275a16,_0x4d49b8,_0x237102,_0x28fa42,_0x554e2d,_0x542976,_0x2cd7b6,_0x646661,_0x3fac9a,_0x3f57b6,_0x4090ea),this[_0x2712c3(0x422)]=_0xb96769,this[_0x2712c3(0x348)]=_0x55a066,this[_0x2712c3(0x159)]=_0x275a16,this['_sheetTransformSelectionsService']=_0x52d3a3;}['_createHandler'](){const _0x436fc2=_0x2ad778,_0x37a222=super[_0x436fc2(0x14d)]();return _0x37a222[_0x436fc2(0x1d7)]=_0x2df45a=>this['_sheetTransformSelectionsService'][_0x436fc2(0x49e)](_0x2df45a),_0x37a222;}async['_init'](){const _0x21d678=_0x2ad778,_0x1646ce=await super[_0x21d678(0x3c3)]();return this[_0x21d678(0x233)](this[_0x21d678(0x14c)]['onCommandExecuted']((_0x3582da,_0x230033)=>{const _0x435e09=_0x21d678;if(_0x3582da[_0x435e09(0x348)]!==o['CommandType'][_0x435e09(0x2b9)]||_0x230033!=null&&_0x230033[_0x435e09(0x3a1)]||_0x230033!=null&&_0x230033[_0x435e09(0x25d)])return;const _0x2859e6=_0x3582da['params'];if((_0x2859e6==null?void 0x0:_0x2859e6['unitId'])!==this[_0x435e09(0x422)])return;const _0x2b259e=_0x3582da,_0x2c4d1f=this['_compressMutationService'][_0x435e09(0x198)]['fetchThroughInterceptors'](this[_0x435e09(0x37e)][_0x435e09(0x198)][_0x435e09(0x3a0)]()['COMPRESS_MUTATION_SEND'])([_0x2b259e],null)||[_0x2b259e];this[_0x435e09(0x1ca)](_0x2c4d1f[0x0]);})),_0x1646ce;}};Me=Ce([I(0x3,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),I(0x4,o[_0x2ad778(0x143)](exports[_0x2ad778(0x1eb)])),I(0x5,o[_0x2ad778(0x143)](_[_0x2ad778(0x1d2)])),I(0x6,o[_0x2ad778(0x143)](o['LocaleService'])),I(0x7,o[_0x2ad778(0x143)](_[_0x2ad778(0x2e5)])),I(0x8,o[_0x2ad778(0x143)](me)),I(0x9,o[_0x2ad778(0x2ac)]),I(0xa,o['ICommandService']),I(0xb,M[_0x2ad778(0x253)]),I(0xc,o[_0x2ad778(0x358)]),I(0xd,o[_0x2ad778(0x1f8)](Ee))],Me);const st=[_0x2ad778(0x379),_0x2ad778(0x1b4),_0x2ad778(0x193),'red300','blue400',_0x2ad778(0x3d0)];class Ge extends o['Disposable']{constructor(){const _0xd3bff9=_0x2ad778;super(...arguments),u(this,_0xd3bff9(0x49b),new Map()),u(this,_0xd3bff9(0x1d5),0x0);}[_0x2ad778(0x478)](_0x21879b){const _0x194c25=_0x2ad778;if(this['_assignedColors'][_0x194c25(0x44d)](_0x21879b))return this[_0x194c25(0x49b)][_0x194c25(0x49d)](_0x21879b);const _0xf142e9=st[this[_0x194c25(0x1d5)]];return this[_0x194c25(0x1d5)]=(this[_0x194c25(0x1d5)]+0x1)%st[_0x194c25(0x32e)],this['_assignedColors'][_0x194c25(0x20c)](_0x21879b,_0xf142e9),_0xf142e9;}}var ws=Object['defineProperty'],ys=Object[_0x2ad778(0x16e)],Ls=(_0xe9244e,_0x9ae0d9,_0x3a0aad,_0x3c1664)=>{const _0x4f014a=_0x2ad778;for(var _0x24f8f7=_0x3c1664>0x1?void 0x0:_0x3c1664?ys(_0x9ae0d9,_0x3a0aad):_0x9ae0d9,_0x153baf=_0xe9244e[_0x4f014a(0x32e)]-0x1,_0x303b1f;_0x153baf>=0x0;_0x153baf--)(_0x303b1f=_0xe9244e[_0x153baf])&&(_0x24f8f7=(_0x3c1664?_0x303b1f(_0x9ae0d9,_0x3a0aad,_0x24f8f7):_0x303b1f(_0x24f8f7))||_0x24f8f7);return _0x3c1664&&_0x24f8f7&&ws(_0x9ae0d9,_0x3a0aad,_0x24f8f7),_0x24f8f7;},X=(_0x13b43d,_0x197c33)=>(_0x587992,_0x5969be)=>_0x197c33(_0x587992,_0x5969be,_0x13b43d);const Ms=0x12c,Ns=0x64,As=()=>{let _0x1369d8=[],_0x7cade=!0x1;return _0x3a0ec9=>{const _0xde83e8=_0x379e;_0x1369d8[_0xde83e8(0x363)](_0x3a0ec9),_0x7cade||(_0x7cade=!0x0,setTimeout(()=>{const _0x3b1110=_0xde83e8;_0x1369d8[_0x3b1110(0x169)](_0x18eee8=>_0x18eee8()),_0x1369d8=[],_0x7cade=!0x1;}));};};let Ne=class extends o[_0x2ad778(0x30e)]{constructor(_0x3aee0f,_0x1ba173,_0x4d95cd,_0x4f0227,_0x1667f3,_0x3e4b90,_0x4c6c2a,_0x5878fd){const _0x480bbc=_0x2ad778;super(),u(this,'_online',!0x1),u(this,'_init',!0x1),u(this,_0x480bbc(0x408),new v[(_0x480bbc(0x31c))](new Map())),u(this,_0x480bbc(0x1da),this[_0x480bbc(0x408)]['asObservable']()),u(this,_0x480bbc(0x47e),new v[(_0x480bbc(0x31c))]([])),u(this,_0x480bbc(0x449),this[_0x480bbc(0x47e)][_0x480bbc(0x502)](v['debounceTime'](Ms))),u(this,_0x480bbc(0x1ec),xe((_0x177a5a,_0x600782)=>{const _0x17ca02=_0x480bbc,_0x5a19f1={'eventID':_[_0x17ca02(0x4b9)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x17ca02(0x422)],'memberID':this[_0x17ca02(0x22d)][_0x17ca02(0x505)](),'selection':Xe[_0x17ca02(0x219)](_0x177a5a,_0x600782['range'])}};this[_0x17ca02(0x22d)][_0x17ca02(0x424)](_0x5a19f1,this[_0x17ca02(0x422)]);},Ns)),(this[_0x480bbc(0x422)]=_0x3aee0f,this[_0x480bbc(0x22d)]=_0x1ba173,this[_0x480bbc(0x31d)]=_0x4d95cd,this[_0x480bbc(0x38d)]=_0x4f0227,this[_0x480bbc(0x278)]=_0x1667f3,this[_0x480bbc(0x2ec)]=_0x3e4b90,this[_0x480bbc(0x14c)]=_0x4c6c2a,this[_0x480bbc(0x4d7)]=_0x5878fd);}get[_0x2ad778(0x31b)](){const _0x1b9e47=_0x2ad778;return this[_0x1b9e47(0x408)][_0x1b9e47(0x261)]();}get['roomMembers'](){const _0x46ed6f=_0x2ad778;return this[_0x46ed6f(0x47e)]['getValue']();}[_0x2ad778(0x194)](){const _0x1be25e=_0x2ad778;super['dispose'](),this[_0x1be25e(0x408)][_0x1be25e(0x368)](new Map()),this[_0x1be25e(0x408)][_0x1be25e(0x1df)](),this[_0x1be25e(0x47e)][_0x1be25e(0x368)]([]),this[_0x1be25e(0x47e)]['complete']();}['init'](){const _0x30c4ed=_0x2ad778;this[_0x30c4ed(0x3c3)]||(this[_0x30c4ed(0x3c3)]=!0x0,this[_0x30c4ed(0x22d)]['sessionStatus$']['pipe'](v[_0x30c4ed(0x306)](this[_0x30c4ed(0x46a)]))['subscribe'](_0x54cf06=>{const _0x2b7bb4=_0x30c4ed;_0x54cf06===V[_0x2b7bb4(0x21e)]?this[_0x2b7bb4(0x43e)]():this[_0x2b7bb4(0x148)]();}),this[_0x30c4ed(0x22d)][_0x30c4ed(0x1e5)][_0x30c4ed(0x502)](v[_0x30c4ed(0x306)](this[_0x30c4ed(0x46a)]))[_0x30c4ed(0x27c)](_0x4e0357=>{const _0x1ff81e=_0x30c4ed,_0x53a441=_0x4e0357[_0x1ff81e(0x318)];_0x53a441===_['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x1ff81e(0x1ac)](_0x4e0357),_0x53a441===_['CollaborationEvent'][_0x1ff81e(0x16d)]&&this[_0x1ff81e(0x3f1)](_0x4e0357);}),this[_0x30c4ed(0x3de)](),this[_0x30c4ed(0x233)](this['_commandService'][_0x30c4ed(0x19b)](_0xacf804=>{const _0xe05015=_0x30c4ed;if(this['_online']&&_0xacf804['id']===p[_0xe05015(0x311)]['id']&&_0xacf804['params'][_0xe05015(0x353)]===this[_0xe05015(0x422)]){const _0x333bbc=_0xacf804[_0xe05015(0x1ba)];this[_0xe05015(0x1ec)](_0x333bbc[_0xe05015(0x385)],_0x333bbc['selections'][0x0]);}})));}[_0x2ad778(0x1ac)](_0x26f892){const _0x1cdf4e=_0x2ad778;var _0x41a937,_0x36fc8a;const {memberID:_0x5eaa4f,selection:_0x17b7e1}=_0x26f892[_0x1cdf4e(0x2f7)],{sheetName:_0x55f12b,range:_0x123e95}=Xe[_0x1cdf4e(0x4f7)](_0x17b7e1),_0x2c8875={'name':(_0x36fc8a=(_0x41a937=this[_0x1cdf4e(0x278)]['getMember'](this[_0x1cdf4e(0x422)],_0x5eaa4f))==null?void 0x0:_0x41a937['name'])!=null?_0x36fc8a:'Unknown\x20user','range':this[_0x1cdf4e(0x495)](_0x55f12b,_0x123e95),'sheetID':_0x55f12b,'color':this[_0x1cdf4e(0x38d)][_0x1cdf4e(0x478)](_0x5eaa4f),'selection':_0x17b7e1},_0x19a69c=this[_0x1cdf4e(0x31b)];_0x19a69c['set'](_0x5eaa4f,_0x2c8875),this[_0x1cdf4e(0x408)]['next'](_0x19a69c);}[_0x2ad778(0x3f1)](_0x3b597f){const _0x326a6f=_0x2ad778,{memberID:_0x24d47d}=_0x3b597f[_0x326a6f(0x2f7)],_0x1c685b=this[_0x326a6f(0x31b)];_0x1c685b[_0x326a6f(0x40a)](_0x24d47d),this[_0x326a6f(0x408)]['next'](_0x1c685b);}[_0x2ad778(0x495)](_0x203038,_0x25bfe2){const _0x3240db=_0x2ad778;var _0x3fcde1,_0x2c7326;const _0x4e40ec=(_0x2c7326=(_0x3fcde1=this[_0x3240db(0x2ec)][_0x3240db(0x1e6)](this[_0x3240db(0x422)]))==null?void 0x0:_0x3fcde1[_0x3240db(0x337)](_0x203038))==null?void 0x0:_0x2c7326[_0x3240db(0x324)]();return(_0x4e40ec==null?void 0x0:_0x4e40ec[_0x3240db(0x506)](_0x27b9d0=>o[_0x3240db(0x4bc)][_0x3240db(0x42c)](_0x27b9d0,_0x25bfe2)))||_0x25bfe2;}[_0x2ad778(0x3de)](){const _0x57adbf=_0x2ad778,_0x57c4de=new o[(_0x57adbf(0x244))](),_0x2d18dc=As(),_0x24e53f=()=>{const _0x13dc34=_0x57adbf;_0x57c4de['dispose']();const _0x176c6d=(_0x535f29,_0x67d281,_0x4ae824,_0x53cd4e)=>{const _0x18a86a=_0x379e;let _0x54fd2b=[];switch(_0x535f29['id']){case p[_0x18a86a(0x4a9)][_0x18a86a(0x1d6)]:{_0x54fd2b=p[_0x18a86a(0x354)](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x1f5)]:{_0x54fd2b=p['handleDeleteRangeMoveUp'](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x4d9)]:{_0x54fd2b=p[_0x18a86a(0x27a)](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x3b1)]:{_0x54fd2b=p['handleInsertRangeMoveDown'](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x3ad)]:{_0x54fd2b=p['handleInsertRangeMoveRight'](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x2eb)]:{_0x54fd2b=p[_0x18a86a(0x26f)](_0x535f29,_0x53cd4e);break;}case p['EffectRefRangId'][_0x18a86a(0x3e4)]:{_0x54fd2b=p['handleMoveRange'](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x301)]:{_0x54fd2b=p['handleIRemoveCol'](_0x535f29,_0x53cd4e);break;}case p[_0x18a86a(0x4a9)][_0x18a86a(0x41b)]:{_0x54fd2b=p[_0x18a86a(0x214)](_0x535f29,_0x53cd4e);break;}}const _0x347909=p[_0x18a86a(0x44a)](_0x54fd2b,_0x53cd4e),_0x399389=this[_0x18a86a(0x31b)][_0x18a86a(0x49d)](_0x67d281);if(_0x399389&&_0x347909){const _0x1d6d9f={..._0x399389,'range':_0x347909};this['cursorInfo'][_0x18a86a(0x20c)](_0x67d281,_0x1d6d9f),_0x2d18dc(()=>{const _0xdd9e70=_0x18a86a,_0x14f8c5=this[_0xdd9e70(0x4d7)][_0xdd9e70(0x170)](_0x347909,_0xe0655d=>(_0x14f8c5[_0xdd9e70(0x194)](),_0x176c6d(_0xe0655d,_0x67d281,_0x4ae824,_0x347909)));_0x57c4de[_0xdd9e70(0x459)](_0x14f8c5);});}return{'redos':[],'undos':[]};};this[_0x13dc34(0x31b)]['forEach']((_0x2f2dbd,_0x117ffd)=>{const _0x5b0d34=_0x13dc34,{range:_0x345191,sheetID:_0x1b45d3}=_0x2f2dbd,_0x22a5d9=this[_0x5b0d34(0x4d7)][_0x5b0d34(0x170)](_0x345191,_0x4a9700=>(_0x22a5d9['dispose'](),_0x176c6d(_0x4a9700,_0x117ffd,_0x1b45d3,_0x345191)));_0x57c4de[_0x5b0d34(0x459)](_0x22a5d9);});};this[_0x57adbf(0x233)](o[_0x57adbf(0x1e7)](this[_0x57adbf(0x408)][_0x57adbf(0x27c)](()=>{_0x24e53f();})));}['_toggleOnline'](){const _0x544787=_0x2ad778;var _0x28ad10,_0x1eda77;if(this[_0x544787(0x507)]=!0x0,((_0x28ad10=this[_0x544787(0x2ec)][_0x544787(0x401)]())==null?void 0x0:_0x28ad10[_0x544787(0x340)]())!==this['unitID'])return;const _0x38feda=(_0x1eda77=this[_0x544787(0x31d)][_0x544787(0x49d)](p[_0x544787(0x461)])['getCurrentSelections']())==null?void 0x0:_0x1eda77[0x0],_0x5990a2=this[_0x544787(0x2ec)]['getCurrentUnitForType'](o[_0x544787(0x3c7)][_0x544787(0x421)])[_0x544787(0x18f)]();_0x38feda&&_0x5990a2&&this[_0x544787(0x1ec)](_0x5990a2[_0x544787(0x496)](),_0x38feda);}['_toggleOffline'](){this['_online']=!0x1;}};Ne=Ls([X(0x2,o[_0x2ad778(0x143)](o['Injector'])),X(0x3,o[_0x2ad778(0x143)](Ge)),X(0x4,o[_0x2ad778(0x143)](W)),X(0x5,o[_0x2ad778(0x1ed)]),X(0x6,o[_0x2ad778(0x4e4)]),X(0x7,o[_0x2ad778(0x143)](p[_0x2ad778(0x2ae)]))],Ne);var js=Object[_0x2ad778(0x4be)],$s=Object[_0x2ad778(0x16e)],Hs=(_0x39d374,_0x3cd115,_0x50ae57,_0x30c43e)=>{const _0x44e3c8=_0x2ad778;for(var _0x1efeb1=_0x30c43e>0x1?void 0x0:_0x30c43e?$s(_0x3cd115,_0x50ae57):_0x3cd115,_0x3bad92=_0x39d374[_0x44e3c8(0x32e)]-0x1,_0x1ec7c8;_0x3bad92>=0x0;_0x3bad92--)(_0x1ec7c8=_0x39d374[_0x3bad92])&&(_0x1efeb1=(_0x30c43e?_0x1ec7c8(_0x3cd115,_0x50ae57,_0x1efeb1):_0x1ec7c8(_0x1efeb1))||_0x1efeb1);return _0x30c43e&&_0x1efeb1&&js(_0x3cd115,_0x50ae57,_0x1efeb1),_0x1efeb1;},F=(_0x419f75,_0x139789)=>(_0x4d5544,_0x12b139)=>_0x139789(_0x4d5544,_0x12b139,_0x419f75);const xs=0x12c,ks=0x64;let Ae=class extends o[_0x2ad778(0x30e)]{constructor(_0x3f4e7b,_0x3396ac,_0xe397cd,_0x2c7bfd,_0x13fd49,_0x2c426b,_0x538a94,_0x4e3b27,_0x14bf43){const _0x5aebf2=_0x2ad778;super(),u(this,_0x5aebf2(0x507),!0x1),u(this,_0x5aebf2(0x3c3),!0x1),u(this,_0x5aebf2(0x408),new v['BehaviorSubject'](new Map())),u(this,_0x5aebf2(0x1da),this['_cursorInfo$'][_0x5aebf2(0x1bd)]()),u(this,_0x5aebf2(0x47e),new v[(_0x5aebf2(0x31c))]([])),u(this,_0x5aebf2(0x449),this[_0x5aebf2(0x47e)][_0x5aebf2(0x502)](v[_0x5aebf2(0x15f)](xs))),u(this,_0x5aebf2(0x1ec),xe(_0x52b85f=>{const _0x4a6b97=_0x5aebf2,_0x55c0ee={'eventID':_[_0x4a6b97(0x4b9)][_0x4a6b97(0x1be)],'data':{'unitID':this[_0x4a6b97(0x422)],'memberID':this['_session'][_0x4a6b97(0x505)](),'selection':bt(_0x52b85f)}};this[_0x4a6b97(0x22d)]['send'](_0x55c0ee,this[_0x4a6b97(0x422)]);},ks)),(this['unitID']=_0x3f4e7b,this[_0x5aebf2(0x22d)]=_0x3396ac,this[_0x5aebf2(0x31d)]=_0xe397cd,this[_0x5aebf2(0x38d)]=_0x2c7bfd,this[_0x5aebf2(0x278)]=_0x13fd49,this[_0x5aebf2(0x210)]=_0x2c426b,this['_transformService']=_0x538a94,this['_univerInstanceService']=_0x4e3b27,this[_0x5aebf2(0x14c)]=_0x14bf43);}get[_0x2ad778(0x31b)](){const _0x3faca6=_0x2ad778;return this['_cursorInfo$'][_0x3faca6(0x261)]();}get[_0x2ad778(0x2c3)](){const _0xf1c42b=_0x2ad778;return this[_0xf1c42b(0x47e)]['getValue']();}[_0x2ad778(0x194)](){const _0x1073e9=_0x2ad778;super[_0x1073e9(0x194)](),this[_0x1073e9(0x408)][_0x1073e9(0x368)](new Map()),this['_cursorInfo$'][_0x1073e9(0x1df)](),this[_0x1073e9(0x47e)][_0x1073e9(0x368)]([]),this[_0x1073e9(0x47e)][_0x1073e9(0x1df)]();}['init'](){const _0x1962e1=_0x2ad778;this[_0x1962e1(0x3c3)]||(this[_0x1962e1(0x3c3)]=!0x0,this[_0x1962e1(0x22d)][_0x1962e1(0x292)][_0x1962e1(0x502)](v[_0x1962e1(0x306)](this[_0x1962e1(0x46a)]))['subscribe'](_0x23f08f=>{const _0x147216=_0x1962e1;_0x23f08f===V[_0x147216(0x21e)]?this[_0x147216(0x43e)]():this['_toggleOffline']();}),this['_session'][_0x1962e1(0x1e5)]['pipe'](v[_0x1962e1(0x306)](this[_0x1962e1(0x46a)]))[_0x1962e1(0x27c)](_0x300624=>{const _0x58cf01=_0x1962e1,_0xdcd09d=_0x300624[_0x58cf01(0x318)];_0xdcd09d===_[_0x58cf01(0x4b9)]['UPDATE_CURSOR']&&this[_0x58cf01(0x1ac)](_0x300624),_0xdcd09d===_[_0x58cf01(0x4b9)][_0x58cf01(0x16d)]&&this[_0x58cf01(0x3f1)](_0x300624);}),this[_0x1962e1(0x233)](this['_commandService'][_0x1962e1(0x19b)](_0x58b711=>{const _0x2423aa=_0x1962e1,_0xe323f4=_0x58b711[_0x2423aa(0x1ba)];_0xe323f4!=null&&this[_0x2423aa(0x507)]&&_0x58b711['id']===L['SetTextSelectionsOperation']['id']&&_0xe323f4[_0x2423aa(0x353)]===this[_0x2423aa(0x422)]&&_0xe323f4[_0x2423aa(0x46c)]===!0x1&&this[_0x2423aa(0x1ec)](_0xe323f4[_0x2423aa(0x3cb)]);})),this[_0x1962e1(0x210)]['collabCursorState$']['pipe'](v['takeUntil'](this[_0x1962e1(0x46a)]))[_0x1962e1(0x27c)](_0xa1345=>{const _0x5f4f57=_0x1962e1;if((_0xa1345==null?void 0x0:_0xa1345[_0x5f4f57(0x422)])!==this[_0x5f4f57(0x422)])return;const _0x774ceb={'eventID':_[_0x5f4f57(0x4b9)]['UPDATE_CURSOR'],'data':_0xa1345};this['_onCursorUpdate'](_0x774ceb);}),this[_0x1962e1(0x233)](this[_0x1962e1(0x14c)][_0x1962e1(0x19b)](_0x4a1430=>{const _0x339faf=_0x1962e1;if(_0x4a1430[_0x339faf(0x1ba)]==null)return;const _0x4e1007=_0x4a1430['params'];if(_0x4a1430['id']!==L[_0x339faf(0x1a6)]['id']||_0x4e1007[_0x339faf(0x353)]!==this[_0x339faf(0x422)])return;const _0x3c7ef9={'id':_0x339faf(0x30b),'params':_0x4e1007},_0x5f1ac2=this[_0x339faf(0x31b)];for(const [_0x1ad3a3,_0x1483c2]of _0x5f1ac2){const _0x4d4888={'id':_0x339faf(0x30b),'params':{'unitId':this[_0x339faf(0x422)],'actions':null,'textRanges':_0x1483c2[_0x339faf(0x3cb)]}},_0xaf825d=this[_0x339faf(0x258)][_0x339faf(0x327)](_0x3c7ef9,_0x4d4888,!0x1);if(_['isTransformMutationFailure'](_0xaf825d))throw _0xaf825d[_0x339faf(0x191)];_0x5f1ac2['set'](_0x1ad3a3,{..._0x1483c2,'ranges':_0xaf825d[_0x339faf(0x29e)]['params'][_0x339faf(0x15a)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x5f1ac2);});})));}['_onCursorUpdate'](_0x2102e0){const _0x192e09=_0x2ad778;var _0x276748,_0x4b8fc5;const {memberID:_0xfae8ca,selection:_0x4b146f}=_0x2102e0[_0x192e09(0x2f7)],_0x45fe3a=ms(_0x4b146f),_0x1bb5b4=(_0x4b8fc5=(_0x276748=this[_0x192e09(0x278)][_0x192e09(0x4ec)](this[_0x192e09(0x422)],_0xfae8ca))==null?void 0x0:_0x276748[_0x192e09(0x249)])!=null?_0x4b8fc5:_0x192e09(0x2b2),_0x310b09={'color':this[_0x192e09(0x38d)][_0x192e09(0x478)](_0xfae8ca),'name':_0x1bb5b4,'ranges':_0x45fe3a},_0x1bc372=this[_0x192e09(0x31b)];_0x1bc372[_0x192e09(0x20c)](_0xfae8ca,_0x310b09),this['_cursorInfo$'][_0x192e09(0x368)](_0x1bc372);}[_0x2ad778(0x3f1)](_0xdfb1fc){const _0x340dc1=_0x2ad778,{memberID:_0x349b39}=_0xdfb1fc[_0x340dc1(0x2f7)],_0x438925=this[_0x340dc1(0x31b)];_0x438925[_0x340dc1(0x40a)](_0x349b39),this[_0x340dc1(0x408)][_0x340dc1(0x368)](_0x438925);}[_0x2ad778(0x43e)](){const _0x256029=_0x2ad778;var _0x4ea0a1;if(this[_0x256029(0x507)]=!0x0,((_0x4ea0a1=this[_0x256029(0x2ec)]['getFocusedUnit']())==null?void 0x0:_0x4ea0a1[_0x256029(0x340)]())!==this['unitID'])return;const _0x44080a=this[_0x256029(0x31d)][_0x256029(0x49d)](L[_0x256029(0x187)])[_0x256029(0x202)](),_0x5daa1f=_0x44080a==null?void 0x0:_0x44080a[_0x256029(0x2c7)](L[_0x256029(0x218)]);Array[_0x256029(0x3b6)](_0x5daa1f)&&_0x5daa1f[_0x256029(0x32e)]>0x0&&this['_updateLocalCursor'](_0x5daa1f);}['_toggleOffline'](){const _0x22164b=_0x2ad778;this[_0x22164b(0x507)]=!0x1;}};Ae=Hs([F(0x2,o['Inject'](o[_0x2ad778(0x26c)])),F(0x3,o[_0x2ad778(0x143)](Ge)),F(0x4,o[_0x2ad778(0x143)](W)),F(0x5,o[_0x2ad778(0x143)](We)),F(0x6,_[_0x2ad778(0x4a5)]),F(0x7,o[_0x2ad778(0x1ed)]),F(0x8,o[_0x2ad778(0x4e4)])],Ae);var Bs=Object['defineProperty'],Fs=Object['getOwnPropertyDescriptor'],Vs=(_0x214c22,_0x35528f,_0x3d5c8f,_0x57eb77)=>{const _0xa20962=_0x2ad778;for(var _0x5c8c47=_0x57eb77>0x1?void 0x0:_0x57eb77?Fs(_0x35528f,_0x3d5c8f):_0x35528f,_0x4fdcb9=_0x214c22[_0xa20962(0x32e)]-0x1,_0x251865;_0x4fdcb9>=0x0;_0x4fdcb9--)(_0x251865=_0x214c22[_0x4fdcb9])&&(_0x5c8c47=(_0x57eb77?_0x251865(_0x35528f,_0x3d5c8f,_0x5c8c47):_0x251865(_0x5c8c47))||_0x5c8c47);return _0x57eb77&&_0x5c8c47&&Bs(_0x35528f,_0x3d5c8f,_0x5c8c47),_0x5c8c47;},De=(_0x4a90ed,_0x5f177e)=>(_0x2325ec,_0x9c1bba)=>_0x5f177e(_0x2325ec,_0x9c1bba,_0x4a90ed);let z=class extends o[_0x2ad778(0x30e)]{constructor(_0x37894a,_0x456be3,_0x2c3fa4){const _0x16a6bc=_0x2ad778;super(),u(this,'_entities',new Map()),u(this,'_entityInit$',new v['Subject']()),(this[_0x16a6bc(0x2ec)]=_0x37894a,this['_injector']=_0x456be3,this[_0x16a6bc(0x197)]=_0x2c3fa4,this[_0x16a6bc(0x3c3)]());}[_0x2ad778(0x194)](){const _0x3b6caa=_0x2ad778;super[_0x3b6caa(0x194)](),this['_entityInit$'][_0x3b6caa(0x1df)](),this[_0x3b6caa(0x17b)][_0x3b6caa(0x169)](_0x1cfc3a=>_0x1cfc3a['dispose']());}[_0x2ad778(0x4ea)](_0x38cf23){const _0x50dbb4=_0x2ad778;return this['_entities']['has'](_0x38cf23)?this[_0x50dbb4(0x17b)][_0x50dbb4(0x49d)](_0x38cf23)[_0x50dbb4(0x1da)]:this[_0x50dbb4(0x2b5)][_0x50dbb4(0x502)](v['filter'](_0xece97f=>_0xece97f[_0x50dbb4(0x422)]===_0x38cf23),v[_0x50dbb4(0x1c4)](_0x29df85=>_0x29df85[_0x50dbb4(0x1da)]));}[_0x2ad778(0x3c3)](){const _0x2ce18e=_0x2ad778;this[_0x2ce18e(0x2ec)][_0x2ce18e(0x4b7)](o[_0x2ce18e(0x3c7)][_0x2ce18e(0x421)])[_0x2ce18e(0x502)](v[_0x2ce18e(0x306)](this[_0x2ce18e(0x46a)]))[_0x2ce18e(0x27c)](async _0x51a30d=>{const _0x482bb2=_0x2ce18e,_0x407797=_0x51a30d[_0x482bb2(0x340)](),_0x13ad52=await this[_0x482bb2(0x1cd)](_0x407797);this['_entityInit$'][_0x482bb2(0x368)](_0x13ad52),this[_0x482bb2(0x17b)][_0x482bb2(0x20c)](_0x407797,_0x13ad52);}),this[_0x2ce18e(0x2ec)][_0x2ce18e(0x4b7)](o[_0x2ce18e(0x3c7)]['UNIVER_DOC'])[_0x2ce18e(0x502)](v[_0x2ce18e(0x306)](this[_0x2ce18e(0x46a)]))[_0x2ce18e(0x502)](v[_0x2ce18e(0x1dd)](_0xe84117=>!_0xe84117[_0x2ce18e(0x340)]()[_0x2ce18e(0x3bf)]('__')))[_0x2ce18e(0x27c)](async _0x16ad72=>{const _0x2ed96c=_0x2ce18e,_0xf8e9b9=_0x16ad72[_0x2ed96c(0x340)](),_0x386096=await this[_0x2ed96c(0x383)](_0xf8e9b9);this[_0x2ed96c(0x2b5)][_0x2ed96c(0x368)](_0x386096),this[_0x2ed96c(0x17b)][_0x2ed96c(0x20c)](_0xf8e9b9,_0x386096);}),v[_0x2ce18e(0x443)](this[_0x2ce18e(0x2ec)][_0x2ce18e(0x1e8)](o[_0x2ce18e(0x3c7)][_0x2ce18e(0x257)]),this[_0x2ce18e(0x2ec)][_0x2ce18e(0x1e8)](o[_0x2ce18e(0x3c7)]['UNIVER_SHEET']))[_0x2ce18e(0x502)](v['takeUntil'](this[_0x2ce18e(0x46a)]))[_0x2ce18e(0x27c)](_0x1f2482=>{const _0x748afc=_0x2ce18e,_0x436ed8=_0x1f2482[_0x748afc(0x340)](),_0x26c828=this['_entities'][_0x748afc(0x49d)](_0x436ed8);_0x26c828&&(_0x26c828[_0x748afc(0x194)](),this[_0x748afc(0x17b)][_0x748afc(0x40a)](_0x436ed8));});}async[_0x2ad778(0x1cd)](_0x519997){const _0x115080=_0x2ad778,_0x3ff832=await this[_0x115080(0x197)][_0x115080(0x34a)](_0x519997),_0x3eb3d3=this[_0x115080(0x31d)]['createInstance'](Ne,_0x519997,_0x3ff832);return _0x3eb3d3[_0x115080(0x367)](),_0x3eb3d3;}async[_0x2ad778(0x383)](_0x4a418a){const _0x314709=_0x2ad778,_0x4096e6=await this[_0x314709(0x197)][_0x314709(0x34a)](_0x4a418a),_0x1a528f=this[_0x314709(0x31d)][_0x314709(0x3b9)](Ae,_0x4a418a,_0x4096e6);return _0x1a528f['init'](),_0x1a528f;}};z=Vs([o[_0x2ad778(0x492)](o[_0x2ad778(0x2e2)][_0x2ad778(0x33f)],z),De(0x0,o[_0x2ad778(0x1ed)]),De(0x1,o[_0x2ad778(0x143)](o[_0x2ad778(0x26c)])),De(0x2,o[_0x2ad778(0x143)](exports['CollaborationSessionService']))],z);const ce=0x14,it=0xc8,Ue=0x4,Ws=0x5;function _0x379e(_0x10120a,_0x22401b){const _0x315bc2=_0x315b();return _0x379e=function(_0x379e55,_0x226b06){_0x379e55=_0x379e55-0x13f;let _0x11a08f=_0x315bc2[_0x379e55];return _0x11a08f;},_0x379e(_0x10120a,_0x22401b);}function Gs(_0x344e4b,_0x38f994){const _0x54700f=_0x2ad778;let {radius:_0x20da30,width:_0x5745ea,height:_0x4c681c}=_0x38f994;_0x20da30=_0x20da30!=null?_0x20da30:0x0,_0x5745ea=_0x5745ea!=null?_0x5745ea:0x1e,_0x4c681c=_0x4c681c!=null?_0x4c681c:0x1e;let _0x20e3ec=0x0,_0x4b4f62=0x0,_0x3805ad=0x0;_0x20e3ec=_0x4b4f62=_0x3805ad=Math['min'](_0x20da30,_0x5745ea/0x2,_0x4c681c/0x2),_0x344e4b['beginPath'](),_0x344e4b['moveTo'](_0x20e3ec,0x0),_0x344e4b['lineTo'](_0x5745ea-_0x4b4f62,0x0),_0x344e4b[_0x54700f(0x402)](_0x5745ea-_0x4b4f62,_0x4b4f62,_0x4b4f62,Math['PI']*0x3/0x2,0x0,!0x1),_0x344e4b[_0x54700f(0x313)](_0x5745ea,_0x4c681c-_0x3805ad),_0x344e4b[_0x54700f(0x402)](_0x5745ea-_0x3805ad,_0x4c681c-_0x3805ad,_0x3805ad,0x0,Math['PI']/0x2,!0x1),_0x344e4b[_0x54700f(0x313)](0x0,_0x4c681c),_0x344e4b[_0x54700f(0x313)](0x0,_0x20e3ec),_0x344e4b[_0x54700f(0x402)](_0x20e3ec,_0x20e3ec,_0x20e3ec,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x344e4b[_0x54700f(0x35a)](),_0x38f994['fill']&&(_0x344e4b[_0x54700f(0x4d2)](),_0x344e4b['fillStyle']=_0x38f994[_0x54700f(0x403)],_0x38f994['fillRule']==='evenodd'?_0x344e4b[_0x54700f(0x403)](_0x54700f(0x19f)):_0x344e4b[_0x54700f(0x403)](),_0x344e4b['restore']());}class be extends T[_0x2ad778(0x463)]{constructor(_0x47de7f,_0x2c1c45){const _0x5ce849=_0x2ad778;super(_0x47de7f,_0x2c1c45),u(this,_0x5ce849(0x1b7)),u(this,_0x5ce849(0x1f4)),(this[_0x5ce849(0x1b7)]=_0x2c1c45==null?void 0x0:_0x2c1c45['color'],this['text']=_0x2c1c45==null?void 0x0:_0x2c1c45['text']);}static[_0x2ad778(0x4f6)](_0x5eb021,_0x5481fb){const _0x45b9eb=_0x2ad778,{text:_0x521b28,color:_0x2327e3}=_0x5481fb;_0x5eb021[_0x45b9eb(0x4d2)](),_0x5eb021[_0x45b9eb(0x227)]=_0x45b9eb(0x178);const _0x4cf370=_0x5eb021['measureText'](_0x521b28)[_0x45b9eb(0x493)],_0xd1eb21=Math[_0x45b9eb(0x359)](_0x4cf370+0x2*Ue,it);Gs(_0x5eb021,{'height':ce,'radius':0x4,'width':_0xd1eb21,'fill':_0x2327e3,'evented':!0x1}),_0x5eb021[_0x45b9eb(0x2f8)]='#FFF';const _0x277036=Ue,_0x36c6f7=ce-Ws,_0x6a4a1=it-0x2*Ue;if(_0x4cf370>_0x6a4a1){let _0x3a768d='',_0x18e811=0x0;for(const _0xa6f93e of _0x521b28){const _0x4b007f=_0x5eb021['measureText'](_0xa6f93e)[_0x45b9eb(0x493)];if(_0x18e811+_0x4b007f<=_0x6a4a1-_0x5eb021[_0x45b9eb(0x145)](_0x45b9eb(0x2e6))['width'])_0x3a768d+=_0xa6f93e,_0x18e811+=_0x4b007f;else{_0x3a768d+=_0x45b9eb(0x2e6);break;}}_0x5eb021['fillText'](_0x3a768d,_0x277036,_0x36c6f7);}else _0x5eb021[_0x45b9eb(0x45a)](_0x521b28,_0x277036,_0x36c6f7);_0x5eb021[_0x45b9eb(0x335)]();}[_0x2ad778(0x30f)](_0x4b3ae9){be['drawWith'](_0x4b3ae9,this);}}const Ys=0x1,Ks=1.5;class Xs extends T[_0x2ad778(0x463)]{constructor(_0x54a6f6,_0x282385){const _0x5d6222=_0x2ad778;super(_0x54a6f6,_0x282385),u(this,_0x5d6222(0x450)),u(this,_0x5d6222(0x47a),!0x1),u(this,'_range'),u(this,_0x5d6222(0x414),''),u(this,_0x5d6222(0x286),_0x5d6222(0x387)),(_0x282385&&this[_0x5d6222(0x273)](_0x282385),this['onPointerEnter$'][_0x5d6222(0x1f7)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x5d6222(0x1f7)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2ad778(0x273)](_0x7b9f07){const _0x42db72=_0x2ad778;var _0x3ce3f1,_0xa00e7a,_0x21d510,_0x3a544c,_0x59a9ff;this[_0x42db72(0x450)]=(_0x3ce3f1=_0x7b9f07[_0x42db72(0x1b7)])!=null?_0x3ce3f1:this['_color'],this[_0x42db72(0x47a)]=(_0xa00e7a=_0x7b9f07[_0x42db72(0x34b)])!=null?_0xa00e7a:this[_0x42db72(0x47a)],this[_0x42db72(0x272)]=(_0x21d510=_0x7b9f07['range'])!=null?_0x21d510:this['_range'],this[_0x42db72(0x414)]=(_0x3a544c=_0x7b9f07[_0x42db72(0x249)])!=null?_0x3a544c:this[_0x42db72(0x414)],this[_0x42db72(0x286)]=(_0x59a9ff=_0x7b9f07['labelPosition'])!=null?_0x59a9ff:this['_labelPosition'],this[_0x42db72(0x209)]({'width':_0x7b9f07[_0x42db72(0x493)],'height':_0x7b9f07[_0x42db72(0x269)]});}[_0x2ad778(0x45c)](_0x2f9910){const _0x4fe4d8=_0x2ad778,{row:_0x244e7d,column:_0x12ffa9}=_0x2f9910;if(_0x244e7d>=this[_0x4fe4d8(0x272)][_0x4fe4d8(0x264)]&&_0x244e7d<=this[_0x4fe4d8(0x272)][_0x4fe4d8(0x21b)]&&_0x12ffa9>=this['_range'][_0x4fe4d8(0x2d1)]&&_0x12ffa9<=this['_range'][_0x4fe4d8(0x4cd)]){this[_0x4fe4d8(0x273)]({'hovered':!0x0});return;}this[_0x4fe4d8(0x273)]({'hovered':!0x1});}[_0x2ad778(0x2f1)](_0x123959){return!0x1;}[_0x2ad778(0x30f)](_0x2fd633){const _0x38af74=_0x2ad778;T[_0x38af74(0x38b)][_0x38af74(0x4f6)](_0x2fd633,{'width':this[_0x38af74(0x493)],'height':this[_0x38af74(0x269)],'strokeWidth':Ks,'stroke':this['_color'],'evented':!0x1}),this[_0x38af74(0x47a)]&&(_0x2fd633['save'](),_0x2fd633['transform'](0x1,0x0,0x0,0x1,this[_0x38af74(0x493)],this[_0x38af74(0x286)]===_0x38af74(0x419)?0x0:-ce),be[_0x38af74(0x4f6)](_0x2fd633,{'text':this[_0x38af74(0x414)],'color':this['_color']}),_0x2fd633['restore']());}}var qs=Object['defineProperty'],Js=Object['getOwnPropertyDescriptor'],zs=(_0x5f6f8e,_0x59624a,_0x33f8cf,_0x163ad2)=>{const _0xecd794=_0x2ad778;for(var _0x20ac31=_0x163ad2>0x1?void 0x0:_0x163ad2?Js(_0x59624a,_0x33f8cf):_0x59624a,_0x12724d=_0x5f6f8e[_0xecd794(0x32e)]-0x1,_0x1fdb74;_0x12724d>=0x0;_0x12724d--)(_0x1fdb74=_0x5f6f8e[_0x12724d])&&(_0x20ac31=(_0x163ad2?_0x1fdb74(_0x59624a,_0x33f8cf,_0x20ac31):_0x1fdb74(_0x20ac31))||_0x20ac31);return _0x163ad2&&_0x20ac31&&qs(_0x59624a,_0x33f8cf,_0x20ac31),_0x20ac31;},le=(_0x673495,_0x1c6b58)=>(_0x22a6c1,_0x4ad367)=>_0x1c6b58(_0x22a6c1,_0x4ad367,_0x673495);const Zs=0x1389;function _0x315b(){const _0x47c101=['Vector2','_transitionLocked','useObservable','_name','on-line-single','registerOnClose','_transformPreviousActiveRange','focused$','bottom','_hideTimer','RemoveRowCommandId','_getSnapshotAPIPrefix','\x0aCurrent:\x20','_themeService','getCellPositionByOffset','MSG_FOR_ERROR','UNIVER_SHEET','unitID','parseChangesetToProtocol','send','[OfflineState]:\x20received\x20changeset.','csRejEvent','_anchor','session.room-full','univer-online-status-icon','updateCollaborator','_docSyncEditingCollabCursorService','contains','socket\x20open.','LICENSE_DISTRO_REJECTED','off-line-single_clip0_910_343','unshift','/fetchmissing?from=','headers','getCurrentUser','_removeRoom','deserializeToCombResponse','disableLocalCache','revision','attrs','mergeOverrideWithDependencies','_clearScheduledTask','_exhaustSavingTask','_revisionService','xlink:href','_toggleOnline','_state$','univer-online-status','size','reverse','merge','_event$','selection','svg','c1Prime','isInternalEditorID','roomMembers$','runRefRangeMutations','_clearUndo','saveChangeset','has','toggleOnline','tag','_color','_http','_onCombEvent','displayName','getCollabEntity','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onlineStatus','addObjects','_onRemoteRejected','add','fillText','column','onMouseMove','findNodePositionByCharIndex','_queuedRemoteChangesets','rgba(255,\x20255,\x20255,\x200.01)','PERMISSION_DENIED','SheetsSelectionsService','_commentService','Shape','getDocObject','setCurrentUser','liveShareNewHost','shouldCloseConn','sequenceExecute','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose$','/universer-api/authz','isEditing','DataLoaderController','selections','_logService','_docTransformSelectionsService','M0\x200H16V16H0z','_lockTransition','_handleLeaveEvent','_updateLocalCache','getItem','_rescheduleHeartbeatEvent','awaitingChangeset','assignAColorForMemberID','Module','_hovered','activeSheet$','_retryConnectingTimer','ws://127.0.0.1:8000/universer-api/comb/connect','_roomMembers$','UNKNOWN_CODE','updateCursorEvent','univer-offline','_uiPartsService','getDataModel','debug','state','clipPath','_substituteRedoStack','getAncestorScale','_decreaseWaiting','JOINING','collabStatus.notCollab','string','ALREADY_EXISTS','/new_changes','_updateStatus','\x0aAfter:\x20','_anchorDot','OnLifecycle','width','onlineStatusIcon','_getMergeRange','getSheetId','image/bmp','CollaborationStatus','onRemoteRej','/collaborator','_assignedColors','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','get','transformSelections','workbook','confirm','440ZajZMu','json','_sheetSkeletonManagerService','collabStatus.conflict','ITransformService','SheetPermissionInitController','_executeRemoteChangeset','UPDATE_PERMISSION_OBJ','EffectRefRangId','IConfigService','getParam','IBeforeCloseService','_hover','_removeClearOtherTimer','SnapshotService','collabStatus.syncing','_lastPointer','1728lxtoib','OnLineSingle','LIVESHARE_TERMINATE','WebURLService','_clearLocalCache','getTypeOfUnitAdded$','SNAPSHOT_SERVER_URL_KEY','CollaborationEvent','_checkMissing','_initMergeInterceptor','Rectangle','onMissedChangesetFetched','defineProperty','loadOfflineData','SetWorksheetActivateCommand','routeKey','/universer-api/snapshot','_getUndoStack','univer-pro.collaboration-client.single-active-unit-service','_getSaveTimeout','NOT_FOUND','updateMember','extend','fromEvent','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','\x20to\x20','APPLY_REJECT','endColumn','OTHER_CLIENTS_EDITING','CommandType','colorChannel1','_docSkeletonManagerService','save','clearInterval','_localStorageService','29168OwwWsS','close','_refRangeService','[SyncedState]:\x20received\x20acknowledgement.','InsertColCommandId','NOT_COLLAB','generateRandomId','CHANGESET_ACK','_scheduleClearOtherTimer','snapshot','FETCH_MISS','UNDEFINED','collaborators','registerBeforeClose','_snapshotService','ICommandService','rxjs/operators','_localCacheService','SEND_CHANGESET_TIMEOUT_KEY','Error','AUTHZ_URL_KEY','getCollabCursors$','COLORS','getMember','2388612OZnLlK','MergeInterceptorFactory','_onRemoteChangeset','IAuthzIoService','_fetchMissChangesets','_initStatusComponent','UniverCollaborationClientPlugin','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_createSocket','drawWith','deserializeRangeWithSheet','UUID','isTransformChangesetsSuccess','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','encode','_startCollaboration','_localeService','reduce','Warning','isPermissionRej','incrementRevForDocument','pipe','loadDoc','update','getMemberID','find','_online','_configService','fetching\x20missing\x20changesets\x20from\x20','/rev/','_updateSubUnitFromURLParams','ImageSourceType','onTransformRemoteChangesetByIMECache','getRenderById','univer-online-status-title','roomInfos','Inject','_clearHeartbeatTimer','measureText','stringify','_onJoinRoomEvent','_toggleOffline','newValue','currentColor','collaboration.closeRoom','_commandService','_createHandler','originalMeta','synced','replace','with','[CollaborationSessionService]','c2Prime','_collaborationTimeoutTimer','_snapshotServerService','OffLineSingle','_transformSelections','_imageSourceCache','session','textRanges','HEARTBEAT_TIMEOUT_KEY','BASE64','_replayCachedMutations','replaceState','debounceTime','session.will-retry','YUUMI_UNABLE_LOAD_URL','unload','onPointerLeave$','_undoStacks','listRoles','HEARTBEAT_INTERVAL_KEY','unit','COMPLETION_FINISHED','forEach','51348YnPoRc','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_httpService','USERS_LEAVE','getOwnPropertyDescriptor','key','registerRefRange','AWAITING','DocStateChangeManagerService','_getRedoStack','sheetID','1996Veiavk','flatMap','list','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_getCtorByUniverType','_acknowledgedAwaitingChangeset','_entities','conflict.title','UniverIcon','current','b64DecodeUnicode','_config','updateOfflineData','_singleActiveUnitService','url','[CollaborationUndoRedoService]','HEARTBEAT','mapDocumentTypeToUniverType','TextSelectionManagerService','_timeoutTimer','/resources','transformMutationsWithChangeset','_clearOtherTimers','@univerjs/design','searchParams','off-line-single','getActiveSheet','ICollaborationSocketService','error','removeParam','verdancy600','dispose','[PendingState]:\x20unhandled\x20univer\x20type:\x20','round','_collabSessionService','interceptor','collabCursorState$','_scheduleSaving','onCommandExecuted','currentSkeleton$','_joinRoom','SheetSkeletonManagerService','evenodd','_socket$','UNRECOGNIZED','SNAPSHOT_URL_KEY','_renderManagerService','1901700DLoHRE','_getSignURL','RichTextEditingMutation','_transformStack','_onConflict','memberID','LICENSE_IMPORT_SIZE_EXCEEDED','_scheduleTimestamp','_onCursorUpdate','toStringTag','use','_urlService','registerComponent','WebSocketService','_socket','unknown','jiqing500','includes','_getSendChangesetTimeout','color','location','_change$','params','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','saveSnapshot','asObservable','UPDATE_CURSOR','_updateCollabCursors','1144956eEmrbI','on-line-single_clip0_910_349','create','LOCAL_CACHE_INTERVAL_KEY','switchMap','useDependency','show','_onRemoteACK','IContextService','online','_onLocalMutation','RegularPolygon','useRef','_startSheetCollabCursor','CHANGESET_REJ','catch','_messageService','_scheduleHeartbeat','CompressMutationService','saveOfflineData','collaMsg','_colorIndex','DeleteRangeMoveLeftCommandId','onTransformSelections','liveShareOperation','_socketService','cursorInfo$','IDLE','_createInitialState','filter','fetch_missing','complete','_transformRemoteChangesetByIMECache','mapTo','APPLY_PERMISSION_DENIED','textEncoder','[CollaborationState]:\x20apply\x20error!','event$','getUniverSheetInstance','toDisposable','getTypeOfUnitDisposed$','conflict','urlChange$','LocalCacheService','_updateLocalCursor','IUniverInstanceService','collabStatus.synced','IImageIoService','assign','_getLoginPath','_eventUnsubscribe','CONNECTOR_DATA_TOO_LARGE','text','DeleteRangeMoveUpCommandId','_tryEnsureSocket','subscribeEvent','Optional','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','NodePositionConvertToCursor','history','ISnapshotServerService','_redoStacks','SHOULD_CLOSE_CONN','_onRecvEvent','clear','UserManagerService','getCurrentSelections','_onConnectionOpen','_initModules','CONFLICT','csAckEvent','disposeUnit','defIds','transformByState','SNAPSHOT_HAS_BEEN_REMOVED','JOIN','set','body','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_sendHeartbeatTimer','_syncEditingCollabCursorService','_unitStatus','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_cursors','handleIRemoveRow','_collabCursorController','onRemoteChangeset','_sendingTimer','serializeTextRange','serializeRangeWithSheet','getUnitStatus$','endRow','_substituteUndoStack','UNAUTHENTICATED','ONLINE','_updateState','UNKNOWN_CMD','IHTTPImplementation','DEFAULT_FILE_NAME','getCoordByCell','objectID','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','leaveEvent','font','CollaborationSession','ERROR_EXCEED_SIZE','_scene','collabStatus.offline','TOO_MANY_REQUESTS','_session','then','isActive','message$','_isPermissionRej','transformIMECache','disposeWithMe','_collaborationPaused','joinEvent','_id','USERS_ENTER','@univerjs/rpc','UNIVER_COLLABORATION_CLIENT_PLUGIN','_scheduleCollaborationTimeoutTimer','_handleEvent','_sessions','_roomMembers','TEXT_RANGE_LAYER_INDEX','m1Prime','_getAnchorBounding','createIdentifier','onStarting','skeleton','DisposableCollection','concatMap','SUBMIT_CHANGESET','onSyncEditingCollabCursor','HEADER_MENU','name','src','popstate','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getOffsetConfig','addObject','_onConnectionFailed','/-/object/-/batch_allowed','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','close$','IMessageService','[DataLoaderController]','transformRemoteChangeset','readAsDataURL','UNIVER_DOC','_transformService','_removeCollabCursors','_unitId','_retryCount','div','onlyLocal','failed\x20to\x20apply\x20missed\x20changesets!','UNIVER_SLIDE','@univerjs/sheets','getValue','removeMember','/block/','startRow','HEARTBEAT_INTERVAL','objects','split','_userManagerService','height','_onFetchMissResult','_waitCount','Injector','ERROR_IMAGE','[OfflineState]:\x20received\x20acknowledgement.','handleInsertRow','_syncEditingCollabCursor','put','_range','setShapeProps','_loadDoc','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','requestParams','CollaborationSessionService','_memberService','_replaceFileID','handleInsertCol','_transformUndoRedoStack','subscribe','error$','_remoteChangesetQueue','/-/object/list','/role','PSEUDO_FETCH_MISSING_RESULT','_docStateChangeManagerService','DependentOn','fetchThroughInterceptors','INGEST','_labelPosition','_exhaustRemoteChangesetQueue','SEND_CHANGESET_TIMEOUT','getUnhiddenWorksheets','offline','Ready','_clearTimeoutTimer','?size=','updatePermissionPoint','LIVESHARE_NEW_HOST','_handler','getVpScrollXYInfoByPosToVp','sessionStatus$','_submitChangeset','[UniverCollaborationClientPlugin]','members','_undoRedoService','_ensureSubject','href','Disposable','IUndoRedoService','idSuffix','currentTheme$','uni.network.url-service','m2Prime','_onUserLeave','getViewport','concat','pending','INVALID_ARGUMENT','POST','row','executeCommand','_notificationService','ThemeService','_selfUnitIDs','resolve','Workbook','ILogService','listCollaborators','RefRangeService','resend','CHANGESET_REVISION_CONFILICT','_onMessage','Unknown\x20user','Univer','withCredentials','_entityInit$','addImageSourceCache','setItem','LocalUndoRedoService','MUTATION','collaboratorID','PENDING','getUnitType','_unitID','_saveTaskMap','isTransformMutationsWithChangesetSuccess','JSONX','entries','DocSkeletonManagerService','roomMembers','_cursor','getColor','Subject','map','image/png','BuiltInUIPart','max','rev','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','putCollaborators','all','HTTPService','pushState','startColumn','@univerjs-pro/collaboration','_send','_initCloseConn','NO_OTHER_CLIENTS_EDITING','replaceTextRanges','_status$','COMPRESS_MUTATION_APPLY','\x20in\x20_schedule.','setActiveRange','call','symbol','connection\x20error','_getUploadFileURL','onCommentUpdate','action','black','LifecycleStages','setAlpha','univer-pro.collaboration-client-socket-service','RevisionService','...','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_getScale','addEventListener','LOGIN_URL_KEY','InsertRowCommandId','_univerInstanceService','transformStack\x20failed!','3865253lljwku','image/jpg','LICENSE_EXPORT_SIZE_EXCEEDED','triggerDblclick','LOCAL_CACHE_INTERVAL','1em','defs','sheetId','collab-text-range-','data','fillStyle','save\x20fail\x20reason\x20is\x20','_textBubble','_disableEditing','OFFLINE','actions','_ws','getCurrentUnitForType','_updateURLWithCurrentState','RemoveColCommandId','CollaborationStatusDisplay','_collaborationController','_unlockTransition','_drawAnchor','takeUntil','_collabCursorState$','_docTransformIMECacheService','random','VIEW_MAIN','doc.mutation.rich-text-editing','roles','ColorKit','RxDisposable','_draw','MessageType','SetSelectionsOperation','@univerjs/core','lineTo','_HTTPService','APPLY_REVISION_CONFILICT','joinRsp','getCollabEntity$','eventID','open$','change$','cursorInfo','BehaviorSubject','_injector','compose','createSocket','transformUndoRedo','saveImage','session.connection-failed','0\x200\x2017\x2016','getMergeData','_schedule','IRenderManagerService','transformMutation','values','_drawRange','pauseCollaboration','\x20-\x20','socketService','_getAPIPrefixPath','length','@univerjs/network','_document','session.collaboration-timeout','_state','clearTimeout','combineLatest','restore','_showConflictNotification','getSheetBySheetId','getActiveRange','getImage','setTimeout','INTERNAL_ERROR','_scheduleReconnection','post','ACTIVE_UNIT_EVENT_CHANNEL','Starting','getUnitId','_socketMessageSubscription','FAIL','DesktopCollaborationStatusDisplayController','WorkbookEditablePermission','getWorkbookSelections','_loadSheet','children','type','method','requireSession','hovered','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ERROR_IMAGE_TYPE','_socketReady','parse','COLLAB_WEB_SOCKET_URL_KEY','univer-online','delay','unitId','handleDeleteRangeMoveLeft','_getCurrentRevision','_handleHover','_clearRedo','IPermissionService','min','closePath','loadSheet','setParam','_waitForHeartbeatResponse','status','_transformUndoredo','sessionStatus','setWaitCount','[PendingState]:\x20received\x20acknowledgement.','push','toggleOffline','transformChangesets','awaiting_with_pending','init','next','registerHTTPInterceptor','AuthzIoHttpService','url(#$1','onPointerEnter$','[FetchMissState]','_getDocObject','cmd','forwardRef','CollaborationController','_beforeCloseService','Plugin','APPLY_NON_SEQUENTIAL_REVISION','indexOf','sheets','apply','whenReady','purple300','slice','_unitOnClients','auth.needGotoLoginAlert','/universer-api/oidc/authpage','_compressMutationService','_initStatusListener','[CollaborationEntity]','rxjs','onSendChangeset','_startDocCollabCursor','LocaleService','subUnitId','YUUMI_URL_COL_OUT_OF_RANGE','top','changesets','CollaborationSocketService','_onUserJoin','Rect','_awaitingChangeset','_colorAssignService','commentUpdate$','allowed','_setupSubUnitSync','isTransformMutationsWithChangesetFailure','editingUnit','lodash/debounce','file','/universer-api/stream/file/upload','PERMISSION_REJ','prototype','/universer-api/comb','hide','status$','_initUnitPermissionChange','_transformIMECache','_render','getConfig','LIVESHARE_FETCH_OPERATIONS','getInterceptPoints','fromCollab','LICENSE_MAX_UNITS_EXCEEDED','getSheetObject','deepClone','[CollaborationSessionService]:\x20socket\x20error','RETRY_CONNECTING_INTERVAL','_sessionStatus$','_permissionService','getCurrentRevForDocument','batchAllowed','react','function','InsertRangeMoveRightCommandId','unsubscribe','COLLAB_SUBMIT_CHANGESET_URL_KEY','objectType','InsertRangeMoveDownCommandId','LEAVE','_members','from','RECV','isArray','onPointerMove$','?url=','createInstance','_collaborationSessionService','saveSheetBlock','url(#on-line-single_clip0_910_349)','HTTPRequest','ImageUploadStatusType','startsWith','_type','result','_pendingMutations','_init','collaboration.single-unit.warning','reject','_getSheetObject','UniverInstanceType','_docSkeleton','baseRev','none','ranges','icon','FromArray','onRemoteAck','12nEpUCf','gold400','getUnitOnRev','setInterval','getUndoRedoMutationParamsCache','appendMutation','resourceIDs','LIVESHARE_REQUEST_HOST','path','_sendHeartbeat','#fff','mutations','[SyncedState]:\x20received\x20rejection.','toString','subunit','_onRefRangeChange','take','_disabled','_incrementRevisionNumber','&to=','Steady','MoveRangeCommandId','[CollaborationSession]','_cachedData','_applyRemoteChangeset','Tools','HELLO','_saveCache','COMMENT_UPDATE','getViewModel','@univerjs/sheets-ui','_handleJoinEvent','_clearCollaborationTimeoutTimer','collaboration-client.offline-data-not-saved','_onCursorDelete','encodeURIComponent','/object/','NEW_CHANGESETS','getOwnPropertySymbols','makeDirty','_getAPIPrefix','@univerjs/drawing','createElement','_heartbeatTimer','COLLAB_SUBMIT_CHANGESET_URL','title','/unit/','COLLAB_WEB_SOCKET_URL','getRangePointData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getFocusedUnit','arc','fill','awaiting','_setupBeforeClosingHandler','permission.title','_commentUpdate$','_cursorInfo$','LIVESHARE_OPERATION','delete','0\x200\x2016\x2016','syncEditingCollabCursor','objectActions','userID','enableOfflineEditing','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.'];_0x315b=function(){return _0x47c101;};return _0x315b();}let ue=class extends o['RxDisposable']{constructor(_0x392733,_0x5a7f14,_0x8dee2b,_0x14c911){const _0x46b667=_0x2ad778;super(),u(this,_0x46b667(0x213),new Set()),u(this,'_lastPointer',null),(this[_0x46b667(0x215)]=_0x392733,this['_univerInstanceService']=_0x5a7f14,this[_0x46b667(0x1a3)]=_0x8dee2b,this[_0x46b667(0x41e)]=_0x14c911,this[_0x46b667(0x3c3)]());}get[_0x2ad778(0x4a3)](){const _0x43c93a=_0x2ad778;return this['_renderManagerService'][_0x43c93a(0x140)](this[_0x43c93a(0x2ec)][_0x43c93a(0x2ff)](o['UniverInstanceType']['UNIVER_SHEET'])['getUnitId']())[_0x43c93a(0x151)](J[_0x43c93a(0x19e)]);}get['_unitId'](){const _0x21caaf=_0x2ad778;return this[_0x21caaf(0x2ec)][_0x21caaf(0x2ff)](o['UniverInstanceType'][_0x21caaf(0x421)])['getUnitId']();}['_init'](){const _0x304477=_0x2ad778;this[_0x304477(0x4a3)][_0x304477(0x19c)][_0x304477(0x502)](E[_0x304477(0x306)](this[_0x304477(0x46a)]),E[_0x304477(0x1c4)](_0x2bb110=>{const _0x54d053=_0x304477;if(_0x2bb110){const _0x51d594=_0x2bb110[_0x54d053(0x2f5)];return v['combineLatest'](this[_0x54d053(0x215)]['getCollabCursors$'](this[_0x54d053(0x25a)]),this[_0x54d053(0x41e)]['currentTheme$'])['pipe'](E['map'](([_0x2037dd,_0x6654ab])=>{const _0x33a2a2=new Map();return _0x2037dd['forEach']((_0x5cb621,_0x31774c)=>{const _0x307ecd=_0x379e;if(_0x5cb621[_0x307ecd(0x174)]===_0x51d594){const _0x55159f={..._0x5cb621};_0x55159f['color']=_0x6654ab[_0x5cb621[_0x307ecd(0x1b7)]],_0x33a2a2['set'](_0x31774c,_0x55159f);}}),{'skeleton':_0x2bb110,'cursors':_0x33a2a2};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x304477(0x27c)](({skeleton:_0x263ab8,cursors:_0x541921})=>{const _0x4b4021=_0x304477;this['_removeCollabCursors'](),_0x263ab8&&this[_0x4b4021(0x1bf)](_0x263ab8,_0x541921);}),this[_0x304477(0x4a3)][_0x304477(0x19c)][_0x304477(0x27c)](_0x10dc84=>{const _0x1c103e=_0x304477;if(_0x10dc84==null)return;const {skeleton:_0x5c5545}=_0x10dc84,_0x59ef99=this[_0x1c103e(0x1a3)][_0x1c103e(0x140)](this[_0x1c103e(0x25a)]),{scene:_0x3d4d56}=_0x59ef99;_0x3d4d56[_0x1c103e(0x3b7)][_0x1c103e(0x1f7)](xe(_0x477130=>{const _0xa8af6e=_0x1c103e;var _0x57b889,_0x28ec50;const {offsetX:_0x53c778,offsetY:_0x515c7f}=_0x477130,{x:_0x5a2d90,y:_0x3e1d1e}=_0x3d4d56['getRelativeToViewportCoord'](T[_0xa8af6e(0x411)][_0xa8af6e(0x3cd)]([_0x53c778,_0x515c7f])),{scaleX:_0x14dc1c,scaleY:_0x31186a}=_0x3d4d56['getAncestorScale'](),_0x4a0f90=_0x3d4d56[_0xa8af6e(0x2a0)](J['VIEWPORT_KEY'][_0xa8af6e(0x30a)]),_0x474be8=_0x3d4d56[_0xa8af6e(0x291)](T[_0xa8af6e(0x411)][_0xa8af6e(0x3cd)]([_0x5a2d90,_0x3e1d1e]),_0x4a0f90),_0xe85e21=_0x5c5545[_0xa8af6e(0x41f)](_0x53c778,_0x515c7f,_0x14dc1c,_0x31186a,_0x474be8);((_0x57b889=this[_0xa8af6e(0x4b1)])==null?void 0x0:_0x57b889[_0xa8af6e(0x45b)])===_0xe85e21[_0xa8af6e(0x45b)]&&((_0x28ec50=this[_0xa8af6e(0x4b1)])==null?void 0x0:_0x28ec50[_0xa8af6e(0x2a5)])===_0xe85e21[_0xa8af6e(0x2a5)]||this[_0xa8af6e(0x213)]['forEach'](_0x286cbf=>{const _0x5204b4=_0xa8af6e;_0x286cbf[_0x5204b4(0x45c)](_0xe85e21);});},0x64));});}[_0x2ad778(0x1bf)](_0x9a3b67,_0x24abfa){const _0x5ee0f6=_0x2ad778;var _0x26088e;const _0x2c99a7=(_0x26088e=this[_0x5ee0f6(0x4a3)]['getCurrent']())==null?void 0x0:_0x26088e[_0x5ee0f6(0x243)];if(!_0x2c99a7)return;const _0x23f40c=this[_0x5ee0f6(0x3c6)]();if(!_0x23f40c)return;this[_0x5ee0f6(0x213)][_0x5ee0f6(0x169)](_0x174901=>{const _0x43dcc=_0x5ee0f6;_0x174901[_0x43dcc(0x3f6)]();});const {scene:_0x2f174b}=_0x23f40c,_0x5d991f=Qs(Array[_0x5ee0f6(0x3b4)](_0x24abfa[_0x5ee0f6(0x328)]()))[_0x5ee0f6(0x2c7)](_0x26ed4e=>{const _0x3e3b0f=_0x5ee0f6,{color:_0x52dc06,range:_0x4c53d7,name:_0x4d8b68,selection:_0x18f082,sheetID:_0x4b7261}=_0x26ed4e,{startColumn:_0x454268,startRow:_0x24fc30,endColumn:_0x1731a2,endRow:_0x44ecff}=_0x4c53d7,_0x143628=J[_0x3e3b0f(0x223)](_0x24fc30,_0x454268,_0x2f174b,_0x2c99a7),_0x28a41c=J[_0x3e3b0f(0x223)](_0x44ecff,_0x1731a2,_0x2f174b,_0x2c99a7),{columnHeaderHeightAndMarginTop:_0x2b8597}=_0x2c99a7,{startX:_0xa483a0,startY:_0x1d5155}=_0x143628,{endX:_0xf97f59,endY:_0x112d43}=_0x28a41c,_0x1f8521=_0xf97f59-_0xa483a0,_0x4dfa27=_0x112d43-_0x1d5155,_0x3af3a6={'labelPosition':_0x1d5155-_0x2b8597>=ce?_0x3e3b0f(0x387):_0x3e3b0f(0x419),'sheetID':_0x4b7261,'range':_0x4c53d7,'color':_0x52dc06,'name':_0x4d8b68,'selection':_0x18f082,'left':_0xa483a0,'top':_0x1d5155,'width':_0x1f8521,'height':_0x4dfa27,'evented':!0x1,'zIndex':Zs};return new Xs(_0x4d8b68,_0x3af3a6);});_0x2f174b[_0x5ee0f6(0x457)](_0x5d991f,Ys),this[_0x5ee0f6(0x213)]=new Set(_0x5d991f);}[_0x2ad778(0x259)](){const _0x507264=_0x2ad778;var _0x2dc031;(_0x2dc031=this['_cursors'])==null||_0x2dc031[_0x507264(0x169)](_0x3a291b=>_0x3a291b[_0x507264(0x194)]());}['_getSheetObject'](){const _0x3f0cdb=_0x2ad778;return J[_0x3f0cdb(0x3a3)](this[_0x3f0cdb(0x2ec)],this[_0x3f0cdb(0x1a3)]);}};ue=zs([o['OnLifecycle'](o['LifecycleStages']['Steady'],ue),le(0x0,o[_0x2ad778(0x143)](z)),le(0x1,o['IUniverInstanceService']),le(0x2,T['IRenderManagerService']),le(0x3,o[_0x2ad778(0x143)](o[_0x2ad778(0x2a8)]))],ue);function Qs(_0x160045){const _0x237120=_0x2ad778,_0x2ec5fa=new Map();return _0x160045[_0x237120(0x169)](_0x2ea7d5=>{const _0x2078a7=_0x237120;if(_0x2ec5fa[_0x2078a7(0x44d)](_0x2ea7d5['selection'])){const _0xb63e4e=_0x2ec5fa[_0x2078a7(0x49d)](_0x2ea7d5[_0x2078a7(0x445)]);_0xb63e4e['name']+=',\x20'+_0x2ea7d5[_0x2078a7(0x249)];}else _0x2ec5fa[_0x2078a7(0x20c)](_0x2ea7d5[_0x2078a7(0x445)],_0x2ea7d5);}),Array[_0x237120(0x3b4)](_0x2ec5fa[_0x237120(0x328)]());}var y=function(){const _0x5b6d2e=_0x2ad778;return y=Object[_0x5b6d2e(0x1f0)]||function(_0x94a1de){const _0x35a418=_0x5b6d2e;for(var _0x2ddfaf,_0x2bb205=0x1,_0x28d154=arguments[_0x35a418(0x32e)];_0x2bb205<_0x28d154;_0x2bb205++){_0x2ddfaf=arguments[_0x2bb205];for(var _0x47ff23 in _0x2ddfaf)Object[_0x35a418(0x397)]['hasOwnProperty'][_0x35a418(0x2db)](_0x2ddfaf,_0x47ff23)&&(_0x94a1de[_0x47ff23]=_0x2ddfaf[_0x47ff23]);}return _0x94a1de;},y[_0x5b6d2e(0x377)](this,arguments);},ei=function(_0x13c8ae,_0x5a86d){const _0x228fbf=_0x2ad778;var _0x3bf862={};for(var _0x401a03 in _0x13c8ae)Object['prototype']['hasOwnProperty']['call'](_0x13c8ae,_0x401a03)&&_0x5a86d[_0x228fbf(0x375)](_0x401a03)<0x0&&(_0x3bf862[_0x401a03]=_0x13c8ae[_0x401a03]);if(_0x13c8ae!=null&&typeof Object['getOwnPropertySymbols']==_0x228fbf(0x3ac)){for(var _0x339aa5=0x0,_0x401a03=Object[_0x228fbf(0x3f5)](_0x13c8ae);_0x339aa5<_0x401a03[_0x228fbf(0x32e)];_0x339aa5++)_0x5a86d[_0x228fbf(0x375)](_0x401a03[_0x339aa5])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x13c8ae,_0x401a03[_0x339aa5])&&(_0x3bf862[_0x401a03[_0x339aa5]]=_0x13c8ae[_0x401a03[_0x339aa5]]);}return _0x3bf862;},Ye=w[_0x2ad778(0x370)](function(_0x10d023,_0xa5e154){const _0x24a9f0=_0x2ad778;var _0xd242=_0x10d023[_0x24a9f0(0x3cc)],_0x1f253e=_0x10d023['id'],_0x24ecdb=_0x10d023['className'],_0x148732=_0x10d023[_0x24a9f0(0x4c8)],_0x44c07c=ei(_0x10d023,[_0x24a9f0(0x3cc),'id','className','extend']),_0x252862='univerjs-icon\x20univerjs-icon-'[_0x24a9f0(0x2a1)](_0x1f253e,'\x20')[_0x24a9f0(0x2a1)](_0x24ecdb||'')['trim'](),_0x18d94a=w[_0x24a9f0(0x1cc)]('_'[_0x24a9f0(0x2a1)](ii()));return Rt(_0xd242,''[_0x24a9f0(0x2a1)](_0x1f253e),{'defIds':_0xd242[_0x24a9f0(0x208)],'idSuffix':_0x18d94a[_0x24a9f0(0x17e)]},y({'ref':_0xa5e154,'className':_0x252862},_0x44c07c),_0x148732);});function Rt(_0xab22ea,_0x540f60,_0x52690e,_0x470247,_0x2a832a){const _0x409652=_0x2ad778;return w[_0x409652(0x3f9)](_0xab22ea[_0x409652(0x44f)],y(y({'key':_0x540f60},ti(_0xab22ea,_0x52690e,_0x2a832a)),_0x470247),(si(_0xab22ea,_0x52690e)[_0x409652(0x347)]||[])['map'](function(_0x87febd,_0xc49e4c){const _0x499fee=_0x409652;return Rt(_0x87febd,''[_0x499fee(0x2a1)](_0x540f60,'-')[_0x499fee(0x2a1)](_0xab22ea[_0x499fee(0x44f)],'-')[_0x499fee(0x2a1)](_0xc49e4c),_0x52690e,void 0x0,_0x2a832a);}));}function ti(_0x58470f,_0x3942a7,_0x467019){const _0x360de4=_0x2ad778;var _0x578909=y({},_0x58470f[_0x360de4(0x438)]);_0x467019!=null&&_0x467019[_0x360de4(0x4d0)]&&_0x578909[_0x360de4(0x403)]===_0x360de4(0x4d0)&&(_0x578909[_0x360de4(0x403)]=_0x467019['colorChannel1']);var _0x27caed=_0x3942a7[_0x360de4(0x208)];return!_0x27caed||_0x27caed['length']===0x0||(_0x58470f['tag']===_0x360de4(0x1ae)&&_0x578909[_0x360de4(0x43d)]&&(_0x578909[_0x360de4(0x43d)]=_0x578909[_0x360de4(0x43d)]+_0x3942a7[_0x360de4(0x29b)]),Object[_0x360de4(0x2c1)](_0x578909)[_0x360de4(0x169)](function(_0x4d5bf0){const _0x44bb2b=_0x360de4;var _0x585d22=_0x4d5bf0[0x0],_0xdd5833=_0x4d5bf0[0x1];typeof _0xdd5833=='string'&&(_0x578909[_0x585d22]=_0xdd5833[_0x44bb2b(0x150)](/url\(#(.*)\)/,_0x44bb2b(0x36b)['concat'](_0x3942a7[_0x44bb2b(0x29b)],')')));})),_0x578909;}function si(_0x15c3c6,_0x18ecf7){const _0x431e20=_0x2ad778;var _0x55084a,_0x543c11=_0x18ecf7[_0x431e20(0x208)];return!_0x543c11||_0x543c11[_0x431e20(0x32e)]===0x0?_0x15c3c6:_0x15c3c6[_0x431e20(0x44f)]==='defs'&&(!((_0x55084a=_0x15c3c6[_0x431e20(0x347)])===null||_0x55084a===void 0x0)&&_0x55084a[_0x431e20(0x32e)])?y(y({},_0x15c3c6),{'children':_0x15c3c6['children'][_0x431e20(0x2c7)](function(_0x30c1dd){const _0x50c661=_0x431e20;return typeof _0x30c1dd[_0x50c661(0x438)]['id']==_0x50c661(0x48c)&&_0x543c11&&_0x543c11[_0x50c661(0x375)](_0x30c1dd[_0x50c661(0x438)]['id'])>-0x1?y(y({},_0x30c1dd),{'attrs':y(y({},_0x30c1dd[_0x50c661(0x438)]),{'id':_0x30c1dd['attrs']['id']+_0x18ecf7[_0x50c661(0x29b)]})}):_0x30c1dd;})}):_0x15c3c6;}function ii(){const _0x97755a=_0x2ad778;return Math[_0x97755a(0x309)]()[_0x97755a(0x3dc)](0x24)['substring'](0x2,0x8);}Ye[_0x2ad778(0x453)]=_0x2ad778(0x17d);var ni={'tag':_0x2ad778(0x446),'attrs':{'fill':'none','viewBox':_0x2ad778(0x40b),'width':_0x2ad778(0x2f3),'height':_0x2ad778(0x2f3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x2ad778(0x14a),'d':_0x2ad778(0x212),'strokeLinecap':_0x2ad778(0x196),'strokeLinejoin':_0x2ad778(0x196),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2ad778(0x486),'attrs':{'id':_0x2ad778(0x42f)},'children':[{'tag':_0x2ad778(0x3d7),'attrs':{'fill':'#fff','d':_0x2ad778(0x471)}}]}]}],'defIds':[_0x2ad778(0x42f)]},Ot=w['forwardRef'](function(_0x1ab4eb,_0x17d429){const _0x42d4cf=_0x2ad778;return w[_0x42d4cf(0x3f9)](Ye,Object[_0x42d4cf(0x1f0)]({},_0x1ab4eb,{'id':_0x42d4cf(0x18e),'ref':_0x17d429,'icon':ni}));});Ot[_0x2ad778(0x453)]=_0x2ad778(0x156);var ri={'tag':_0x2ad778(0x446),'attrs':{'fill':_0x2ad778(0x3ca),'viewBox':_0x2ad778(0x323),'width':'1em','height':_0x2ad778(0x2f3)},'children':[{'tag':'g','attrs':{'clipPath':_0x2ad778(0x3bc)},'children':[{'tag':'path','attrs':{'stroke':_0x2ad778(0x14a),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x2ad778(0x196),'strokeWidth':1.2}}]},{'tag':_0x2ad778(0x2f4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2ad778(0x1c1)},'children':[{'tag':_0x2ad778(0x3d7),'attrs':{'fill':_0x2ad778(0x3d9),'d':_0x2ad778(0x471),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2ad778(0x1c1)]},Dt=w[_0x2ad778(0x370)](function(_0x2131e2,_0x4ca94d){const _0x99541f=_0x2ad778;return w[_0x99541f(0x3f9)](Ye,Object[_0x99541f(0x1f0)]({},_0x2131e2,{'id':_0x99541f(0x415),'ref':_0x4ca94d,'icon':ri}));});Dt[_0x2ad778(0x453)]=_0x2ad778(0x4b3);const oi=_0x2ad778(0x429),ai=_0x2ad778(0x141),ci=_0x2ad778(0x440),li=_0x2ad778(0x351),hi=_0x2ad778(0x481),ie={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x582d15){const _0x49c292=_0x2ad778;switch(_0x582d15){case D[_0x49c292(0x2fc)]:return _0x49c292(0x22b);case D['CONFLICT']:return _0x49c292(0x4a4);case D['FETCH_MISS']:return'collabStatus.fetchMiss';case D['NOT_COLLAB']:return _0x49c292(0x48b);case D[_0x49c292(0x2bb)]:case D[_0x49c292(0x171)]:case D['AWAITING_WITH_PENDING']:return _0x49c292(0x4b0);case D['SYNCED']:return _0x49c292(0x1ee);}}function Ut(_0x12e29d){const _0x3932f6=_0x2ad778,{status$:_0x291690}=_0x12e29d,_0x43b92a=M[_0x3932f6(0x413)](_0x291690,D[_0x3932f6(0x4da)]),_0x49f9f7=o[_0x3932f6(0x1c5)](o[_0x3932f6(0x384)]),_0x342074=_0x43b92a!==D[_0x3932f6(0x2fc)],_0x2a36f4=_0x49f9f7['t'](_i(_0x43b92a)),_0x3dae62=xt(ie[_0x3932f6(0x456)],{[ie[_0x3932f6(0x1c9)]]:_0x342074,[ie[_0x3932f6(0x28a)]]:!_0x342074}),_0x2c47c1=_0x342074?w[_0x3932f6(0x3f9)](Dt,null):w[_0x3932f6(0x3f9)](Ot,null);return w[_0x3932f6(0x3f9)](_0x3932f6(0x25c),{'className':_0x3dae62},w[_0x3932f6(0x3f9)](_0x3932f6(0x25c),{'className':ie[_0x3932f6(0x494)]},_0x2c47c1),w[_0x3932f6(0x3f9)](_0x3932f6(0x25c),{'className':ie['onlineStatusTitle']},_0x2a36f4));}var ui=Object['defineProperty'],di=Object[_0x2ad778(0x16e)],Si=(_0x286444,_0x22dfac,_0xc61ee,_0x5f3537)=>{const _0x35cd71=_0x2ad778;for(var _0xb1a3a3=_0x5f3537>0x1?void 0x0:_0x5f3537?di(_0x22dfac,_0xc61ee):_0x22dfac,_0x1c45de=_0x286444[_0x35cd71(0x32e)]-0x1,_0x16e236;_0x1c45de>=0x0;_0x1c45de--)(_0x16e236=_0x286444[_0x1c45de])&&(_0xb1a3a3=(_0x5f3537?_0x16e236(_0x22dfac,_0xc61ee,_0xb1a3a3):_0x16e236(_0xb1a3a3))||_0xb1a3a3);return _0x5f3537&&_0xb1a3a3&&ui(_0x22dfac,_0xc61ee,_0xb1a3a3),_0xb1a3a3;},he=(_0x4de96b,_0x1e8b66)=>(_0x816266,_0x32dfa5)=>_0x1e8b66(_0x816266,_0x32dfa5,_0x4de96b);exports[_0x2ad778(0x343)]=class extends o[_0x2ad778(0x299)]{constructor(_0x59127f,_0x8dba3,_0x46bc72,_0x1b0594){const _0xef0c11=_0x2ad778;super(),u(this,_0xef0c11(0x2d7),new v[(_0xef0c11(0x31c))](D['NOT_COLLAB'])),(this[_0xef0c11(0x2ec)]=_0x59127f,this[_0xef0c11(0x482)]=_0x8dba3,this['_injector']=_0x46bc72,this[_0xef0c11(0x303)]=_0x1b0594,this[_0xef0c11(0x4f2)](),this[_0xef0c11(0x37f)]());}['_initStatusComponent'](){const _0x628321=_0x2ad778;this['disposeWithMe'](this[_0x628321(0x482)][_0x628321(0x1b0)](M[_0x628321(0x2c9)][_0x628321(0x248)],()=>o['connectInjector'](vi({'status$':this[_0x628321(0x2d7)][_0x628321(0x1bd)]()}),this['_injector'])));}[_0x2ad778(0x37f)](){const _0x9df7e8=_0x2ad778;this['disposeWithMe'](o[_0x9df7e8(0x1e7)](this[_0x9df7e8(0x2ec)][_0x9df7e8(0x418)][_0x9df7e8(0x502)](v[_0x9df7e8(0x1c4)](()=>{const _0x4843fc=_0x9df7e8,_0xba4974=this['_univerInstanceService']['getFocusedUnit']();return _0xba4974?this['_collaborationController'][_0x4843fc(0x317)](_0xba4974[_0x4843fc(0x340)]()):v['of'](null);}),v[_0x9df7e8(0x1c4)](_0x2743cb=>_0x2743cb?_0x2743cb[_0x9df7e8(0x39a)]:v['of'](D[_0x9df7e8(0x4da)])))[_0x9df7e8(0x27c)](_0x358a30=>{const _0x3f9fe8=_0x9df7e8;this['_status$'][_0x3f9fe8(0x368)](_0x358a30);})));}},exports['DesktopCollaborationStatusDisplayController']=Si([o['OnLifecycle'](o[_0x2ad778(0x2e2)][_0x2ad778(0x33f)],exports['DesktopCollaborationStatusDisplayController']),he(0x0,o[_0x2ad778(0x1ed)]),he(0x1,M['IUIPartsService']),he(0x2,o['Inject'](o['Injector'])),he(0x3,o[_0x2ad778(0x143)](exports[_0x2ad778(0x371)]))],exports[_0x2ad778(0x343)]);function vi(_0x4ad4ba){const {status$:_0x4db4a6}=_0x4ad4ba;return function(){const _0x353479=_0x379e;return w[_0x353479(0x3f9)](Ut,{'status$':_0x4db4a6});};}const Ke=o[_0x2ad778(0x241)](_0x2ad778(0x29d));var gi=Object[_0x2ad778(0x4be)],fi=Object[_0x2ad778(0x16e)],mi=(_0x22e391,_0x294b66,_0x39fc10,_0x3bb33b)=>{const _0x15d63d=_0x2ad778;for(var _0x3acc6b=_0x3bb33b>0x1?void 0x0:_0x3bb33b?fi(_0x294b66,_0x39fc10):_0x294b66,_0x235dc0=_0x22e391[_0x15d63d(0x32e)]-0x1,_0xa0b162;_0x235dc0>=0x0;_0x235dc0--)(_0xa0b162=_0x22e391[_0x235dc0])&&(_0x3acc6b=(_0x3bb33b?_0xa0b162(_0x294b66,_0x39fc10,_0x3acc6b):_0xa0b162(_0x3acc6b))||_0x3acc6b);return _0x3bb33b&&_0x3acc6b&&gi(_0x294b66,_0x39fc10,_0x3acc6b),_0x3acc6b;},q=(_0x123e87,_0xa99da)=>(_0xae00a7,_0x25676b)=>_0xa99da(_0xae00a7,_0x25676b,_0x123e87);exports['DataLoaderController']=class extends o[_0x2ad778(0x30e)]{constructor(_0x3ae49f,_0x3b10d6,_0x5f37f8,_0x6f7bcd,_0x4c4797,_0x51a54a){const _0x1875e4=_0x2ad778;super(),this[_0x1875e4(0x1af)]=_0x3ae49f,this['_logService']=_0x3b10d6,this[_0x1875e4(0x14c)]=_0x5f37f8,this['_localCacheService']=_0x6f7bcd,this['_snapshotService']=_0x4c4797,_0x51a54a?_0x51a54a==null||_0x51a54a[_0x1875e4(0x378)]()[_0x1875e4(0x22e)](()=>this['_init']()):(this[_0x1875e4(0x46f)][_0x1875e4(0x484)](_0x1875e4(0x254),_0x1875e4(0x24c)),this['_init']());}async['_init'](){const _0x32184f=_0x2ad778,_0x2d5b50=this[_0x32184f(0x1af)][_0x32184f(0x4ab)](_0x32184f(0x167)),_0x247f4c=this['_urlService'][_0x32184f(0x4ab)]('type');if(!_0x2d5b50||!_0x247f4c){this[_0x32184f(0x46f)][_0x32184f(0x484)](_0x32184f(0x254),_0x32184f(0x410));return;}switch(Number(_0x247f4c)){case A[_0x32184f(0x421)]:{const _0x5eda24=await this[_0x32184f(0x346)](_0x2d5b50);this[_0x32184f(0x390)](_0x5eda24);break;}case A[_0x32184f(0x257)]:{await this[_0x32184f(0x274)](_0x2d5b50);break;}default:{this[_0x32184f(0x46f)]['error'](_0x32184f(0x254),_0x32184f(0x34c));break;}}}async['_setupSubUnitSync'](_0x50c170){const _0x484a31=_0x2ad778;await this['_updateSubUnitFromURLParams'](_0x50c170),_0x50c170[_0x484a31(0x47b)][_0x484a31(0x502)](v['takeUntil'](this[_0x484a31(0x46a)]))[_0x484a31(0x27c)](_0x4946f2=>{const _0x4937ef=_0x484a31;_0x4946f2&&this[_0x4937ef(0x300)](_0x4946f2);}),this[_0x484a31(0x1af)][_0x484a31(0x1ea)]['pipe'](v['takeUntil'](this[_0x484a31(0x46a)]))[_0x484a31(0x27c)](()=>this['_updateSubUnitFromURLParams'](_0x50c170));}[_0x2ad778(0x300)](_0x43a841,_0x284998=!0x1){const _0x4ebf2c=_0x2ad778,_0x472f68=this[_0x4ebf2c(0x1af)][_0x4ebf2c(0x4ab)]('subunit');_0x43a841[_0x4ebf2c(0x496)]()!==_0x472f68&&this[_0x4ebf2c(0x1af)][_0x4ebf2c(0x35c)]('subunit',_0x43a841['getSheetId'](),_0x284998);}async[_0x2ad778(0x50b)](_0x13b84d){const _0x56d980=_0x2ad778;var _0x3bf5f8;const _0x21f8d7=this['_urlService']['getParam'](_0x56d980(0x3dd));if(!_0x21f8d7||!_0x13b84d[_0x56d980(0x337)](_0x21f8d7)){const _0x582db5=_0x13b84d[_0x56d980(0x289)]()[0x0],_0x1cf2ed=_0x13b84d['getSheetBySheetId'](_0x582db5);if(!_0x1cf2ed)return;this[_0x56d980(0x300)](_0x1cf2ed,!0x0),await this[_0x56d980(0x14c)][_0x56d980(0x2a6)](p[_0x56d980(0x4c0)]['id'],{'unitId':_0x13b84d[_0x56d980(0x340)](),'subUnitId':_0x582db5});return;}((_0x3bf5f8=_0x13b84d[_0x56d980(0x18f)]())==null?void 0x0:_0x3bf5f8[_0x56d980(0x496)]())!==_0x21f8d7&&await this[_0x56d980(0x14c)][_0x56d980(0x2a6)](p['SetWorksheetActivateCommand']['id'],{'unitId':_0x13b84d[_0x56d980(0x340)](),'subUnitId':_0x21f8d7});}async['_loadSheet'](_0x423658){const _0x10068a=_0x2ad778;let _0x54a351=0x0;const _0x1cb9f2=await this['_localCacheService']['loadOfflineData'](_0x423658);return _0x1cb9f2&&(_0x1cb9f2[_0x10068a(0x477)]||_0x1cb9f2[_0x10068a(0x3da)][_0x10068a(0x32e)]!==0x0)&&(_0x54a351=_0x1cb9f2[_0x10068a(0x2cb)]),_0x54a351===0x0&&this[_0x10068a(0x46f)][_0x10068a(0x484)](_0x10068a(0x254),_0x10068a(0x2e7)),this[_0x10068a(0x4e3)][_0x10068a(0x35b)](_0x423658,_0x54a351);}async[_0x2ad778(0x274)](_0x52a13a){const _0x41386f=_0x2ad778;let _0x421333=0x0;const _0x3aa29d=await this['_localCacheService'][_0x41386f(0x4bf)](_0x52a13a);return _0x3aa29d&&(_0x3aa29d[_0x41386f(0x477)]||_0x3aa29d[_0x41386f(0x3da)]['length']!==0x0)&&(_0x421333=_0x3aa29d[_0x41386f(0x2cb)]),_0x421333===0x0&&this['_logService'][_0x41386f(0x484)](_0x41386f(0x254),_0x41386f(0x2e7)),this[_0x41386f(0x4e3)][_0x41386f(0x503)](_0x52a13a,_0x421333);}},exports[_0x2ad778(0x46d)]=mi([o[_0x2ad778(0x492)](o[_0x2ad778(0x2e2)][_0x2ad778(0x33f)],exports['DataLoaderController']),q(0x0,Ke),q(0x1,o[_0x2ad778(0x2ac)]),q(0x2,o[_0x2ad778(0x4e4)]),q(0x3,o['Inject'](exports[_0x2ad778(0x1eb)])),q(0x4,o['Inject'](_[_0x2ad778(0x4af)])),q(0x5,o[_0x2ad778(0x1f8)](kt['IRemoteInstanceService']))],exports[_0x2ad778(0x46d)]);var Ii=Object[_0x2ad778(0x4be)],pi=Object[_0x2ad778(0x16e)],Ei=(_0x37f705,_0x501d68,_0x254d0d,_0x8d7eab)=>{const _0x2ba562=_0x2ad778;for(var _0x38258b=_0x8d7eab>0x1?void 0x0:_0x8d7eab?pi(_0x501d68,_0x254d0d):_0x501d68,_0x3c142b=_0x37f705[_0x2ba562(0x32e)]-0x1,_0x14ee36;_0x3c142b>=0x0;_0x3c142b--)(_0x14ee36=_0x37f705[_0x3c142b])&&(_0x38258b=(_0x8d7eab?_0x14ee36(_0x501d68,_0x254d0d,_0x38258b):_0x14ee36(_0x38258b))||_0x38258b);return _0x8d7eab&&_0x38258b&&Ii(_0x501d68,_0x254d0d,_0x38258b),_0x38258b;},nt=(_0x257670,_0x56f7d0)=>(_0x4deab3,_0x4bf529)=>_0x56f7d0(_0x4deab3,_0x4bf529,_0x257670);const Ci=_0x2ad778(0x222),bi=_0x2ad778(0x2b3);let de=class extends o['Disposable']{constructor(_0x28e5d,_0x204784){const _0x3a35c9=_0x2ad778;super(),this[_0x3a35c9(0x2ec)]=_0x28e5d,this[_0x3a35c9(0x508)]=_0x204784,this[_0x3a35c9(0x3c3)]();}[_0x2ad778(0x3c3)](){const _0x17e4cc=_0x2ad778;this[_0x17e4cc(0x233)](o[_0x17e4cc(0x1e7)](this[_0x17e4cc(0x2ec)]['focused$'][_0x17e4cc(0x27c)](()=>{const _0x538cb8=_0x17e4cc;var _0xceb3d8;const _0x3cca68=this['_univerInstanceService']['getFocusedUnit']();let _0xc7bf1f=(_0xceb3d8=this['_configService']['getConfig'](Ci))!=null?_0xceb3d8:bi;_0x3cca68 instanceof o[_0x538cb8(0x2ab)]&&(_0xc7bf1f=_0x3cca68[_0x538cb8(0x249)]),document[_0x538cb8(0x3fc)]=_0xc7bf1f;})));}};de=Ei([o[_0x2ad778(0x492)](o['LifecycleStages'][_0x2ad778(0x28b)],de),nt(0x0,o[_0x2ad778(0x1ed)]),nt(0x1,o[_0x2ad778(0x4aa)])],de);var Ti=Object[_0x2ad778(0x4be)],Ri=Object[_0x2ad778(0x16e)],Oi=(_0x16d696,_0x36c063,_0x1bb6da,_0x416a10)=>{for(var _0x58d499=_0x416a10>0x1?void 0x0:_0x416a10?Ri(_0x36c063,_0x1bb6da):_0x36c063,_0x59c6ac=_0x16d696['length']-0x1,_0x122839;_0x59c6ac>=0x0;_0x59c6ac--)(_0x122839=_0x16d696[_0x59c6ac])&&(_0x58d499=(_0x416a10?_0x122839(_0x36c063,_0x1bb6da,_0x58d499):_0x122839(_0x58d499))||_0x58d499);return _0x416a10&&_0x58d499&&Ti(_0x36c063,_0x1bb6da,_0x58d499),_0x58d499;},rt=(_0x41009d,_0x326140)=>(_0x1e6be3,_0x2e8fd1)=>_0x326140(_0x1e6be3,_0x2e8fd1,_0x41009d);let je=class{constructor(_0x3b4e22,_0x42a602){const _0x3e4382=_0x2ad778;this[_0x3e4382(0x508)]=_0x3b4e22,this[_0x3e4382(0x16c)]=_0x42a602;}async[_0x2ad778(0x3d1)](_0x4dda4b,_0x472934){const _0x3f0974=_0x2ad778;var _0x1cc28e;const {unitID:_0xa0564,type:_0x3ae592,revision:_0x2d3710=0x0}=_0x472934,_0x29010b=this[_0x3f0974(0x41c)]()+'/'+_0x3ae592+_0x3f0974(0x3fd)+_0xa0564+_0x3f0974(0x50a)+(_0x2d3710===0x1?0x0:_0x2d3710),_0x4e423e=(await this['_httpService'][_0x3f0974(0x49d)](_0x29010b))['body'],_0x5574d5=(_0x1cc28e=_0x4e423e[_0x3f0974(0x4de)])==null?void 0x0:_0x1cc28e[_0x3f0974(0x49f)];if(_0x5574d5){const _0xfe15d2=_0x5574d5==null?void 0x0:_0x5574d5[_0x3f0974(0x14e)],_0x1bf451=o[_0x3f0974(0x1e3)][_0x3f0974(0x4fb)](o[_0x3f0974(0x17f)](_0xfe15d2));_0x5574d5[_0x3f0974(0x14e)]=_0x1bf451,Object[_0x3f0974(0x2c1)](_0x5574d5[_0x3f0974(0x376)])['forEach'](([,_0x2ec6b2])=>{const _0x239d75=_0x3f0974,_0x439e47=_0x2ec6b2[_0x239d75(0x14e)],_0x1ef0e3=o[_0x239d75(0x1e3)][_0x239d75(0x4fb)](o[_0x239d75(0x17f)](_0x439e47));_0x2ec6b2[_0x239d75(0x14e)]=_0x1ef0e3;});}return _0x4e423e;}async['getSheetBlock'](_0x5124ee,_0x25de8a){const _0x12943f=_0x2ad778,{unitID:_0x28fcf4,type:_0x5bd0ba,blockID:_0x1ee74a}=_0x25de8a,_0x4e8df0=this[_0x12943f(0x3f7)]()+'/'+_0x5bd0ba+'/unit/'+_0x28fcf4+_0x12943f(0x263)+_0x1ee74a;return(await this[_0x12943f(0x16c)][_0x12943f(0x49d)](_0x4e8df0))['body'];}async['fetchMissingChangesets'](_0x48ba3d,_0x190597){const _0x35a4f2=_0x2ad778,{unitID:_0x5036cf,type:_0x1ff42b,from:_0x36cf06,to:_0x2c352f}=_0x190597,_0x583df9=this[_0x35a4f2(0x3f7)]()+'/'+_0x1ff42b+_0x35a4f2(0x3fd)+_0x5036cf+_0x35a4f2(0x431)+_0x36cf06+_0x35a4f2(0x3e2)+_0x2c352f;return(await this[_0x35a4f2(0x16c)][_0x35a4f2(0x49d)](_0x583df9))[_0x35a4f2(0x20d)];}[_0x2ad778(0x41c)](){const _0x13593e=_0x2ad778;var _0xe510d5;return(_0xe510d5=this[_0x13593e(0x508)][_0x13593e(0x39e)](ht))!=null?_0xe510d5:this[_0x13593e(0x3f7)]();}[_0x2ad778(0x3f7)](){const _0x46a00f=_0x2ad778;var _0x362e06;return(_0x362e06=this[_0x46a00f(0x508)][_0x46a00f(0x39e)](lt))!=null?_0x362e06:Bt;}async['getResourcesRequest'](_0x638d3a,_0xad133d){const _0xcdd257=_0x2ad778,_0x7d6206='/universer-api/snapshot/'+_0xad133d[_0xcdd257(0x348)]+_0xcdd257(0x3fd)+_0xad133d[_0xcdd257(0x422)]+_0xcdd257(0x189);return(await this[_0xcdd257(0x16c)][_0xcdd257(0x49d)](_0x7d6206,{'params':{'resourceId':JSON[_0xcdd257(0x146)](_0xad133d[_0xcdd257(0x3d5)])}}))[_0xcdd257(0x20d)];}[_0x2ad778(0x1bc)](){const _0x59cf9e=_0x2ad778;throw new Error(_0x59cf9e(0x4fa));}[_0x2ad778(0x3bb)](){const _0x17fe97=_0x2ad778;throw new Error(_0x17fe97(0x4fa));}[_0x2ad778(0x44c)](){const _0x503ab1=_0x2ad778;throw new Error(_0x503ab1(0x4fa));}};je=Oi([rt(0x0,o['IConfigService']),rt(0x1,o[_0x2ad778(0x143)](U['HTTPService']))],je);var Di=Object[_0x2ad778(0x4be)],Ui=Object[_0x2ad778(0x16e)],Pi=(_0x5e83c9,_0x258960,_0x398e32,_0x1af072)=>{for(var _0x5dc2d4=_0x1af072>0x1?void 0x0:_0x1af072?Ui(_0x258960,_0x398e32):_0x258960,_0x41a15a=_0x5e83c9['length']-0x1,_0x59478a;_0x41a15a>=0x0;_0x41a15a--)(_0x59478a=_0x5e83c9[_0x41a15a])&&(_0x5dc2d4=(_0x1af072?_0x59478a(_0x258960,_0x398e32,_0x5dc2d4):_0x59478a(_0x5dc2d4))||_0x5dc2d4);return _0x1af072&&_0x5dc2d4&&Di(_0x258960,_0x398e32,_0x5dc2d4),_0x5dc2d4;},ne=(_0x3a217a,_0x5511af)=>(_0x497e40,_0x6592be)=>_0x5511af(_0x497e40,_0x6592be,_0x3a217a);let $e=class extends o[_0x2ad778(0x2b8)]{constructor(_0x3004b0,_0x328fb6,_0x2f16f7,_0x570954,_0x1075df){const _0x58f310=_0x2ad778;super(_0x3004b0,_0x328fb6,_0x2f16f7),this[_0x58f310(0x258)]=_0x570954,this[_0x58f310(0x46f)]=_0x1075df;}[_0x2ad778(0x320)](_0xde1ea5,_0x2b46f0){const _0x25eb5a=_0x2ad778,_0x51292f=this[_0x25eb5a(0x4c3)](_0xde1ea5);if(_0x51292f)try{const _0x5bfc05=this[_0x25eb5a(0x1a7)](_0x51292f,_0x2b46f0);this[_0x25eb5a(0x21c)](_0xde1ea5,_0x5bfc05);}catch(_0x3440aa){this[_0x25eb5a(0x46f)][_0x25eb5a(0x191)](_0x25eb5a(0x184),_0x3440aa),this['_clearUndo'](_0xde1ea5);}const _0x5ebcbf=this[_0x25eb5a(0x173)](_0xde1ea5);if(_0x5ebcbf)try{const _0x4bee65=this[_0x25eb5a(0x1a7)](_0x5ebcbf,_0x2b46f0);this[_0x25eb5a(0x487)](_0xde1ea5,_0x4bee65);}catch(_0x2de693){this[_0x25eb5a(0x46f)]['error'](_0x2de693),this['_clearRedo'](_0xde1ea5);}}[_0x2ad778(0x44b)](_0x1ba448){const _0x5b0557=_0x2ad778,_0x208bf5=this[_0x5b0557(0x4c3)](_0x1ba448);_0x208bf5&&(_0x208bf5[_0x5b0557(0x32e)]=0x0,this['_updateStatus']());}[_0x2ad778(0x357)](_0x21248a){const _0x5d5935=_0x2ad778,_0x54335a=this[_0x5d5935(0x173)](_0x21248a);_0x54335a&&(_0x54335a[_0x5d5935(0x32e)]=0x0,this[_0x5d5935(0x48f)]());}[_0x2ad778(0x21c)](_0x3d0578,_0x1157c5){const _0x203b8a=_0x2ad778;this[_0x203b8a(0x164)]['set'](_0x3d0578,_0x1157c5),this[_0x203b8a(0x48f)]();}[_0x2ad778(0x487)](_0x372756,_0x5ae632){const _0x153155=_0x2ad778;this[_0x153155(0x1fd)][_0x153155(0x20c)](_0x372756,_0x5ae632),this[_0x153155(0x48f)]();}[_0x2ad778(0x1a7)](_0x3bc9df,_0xc0de){const _0x50a69f=_0x2ad778,_0x2b29e9=[];let _0x5c7e3d=_0xc0de,_0xb2990e=_0xc0de;for(let _0x595806=_0x3bc9df['length']-0x1;_0x595806>=0x0;_0x595806--){const {unitID:_0x1abdf0,undoMutations:_0x209caa,redoMutations:_0x1d1e71}=_0x3bc9df[_0x595806],_0x243ec2=this[_0x50a69f(0x258)][_0x50a69f(0x18a)](_0x5c7e3d,_0x209caa),_0x48591a=this[_0x50a69f(0x258)][_0x50a69f(0x18a)](_0xb2990e,_0x1d1e71);if(_[_0x50a69f(0x391)](_0x243ec2)||_[_0x50a69f(0x391)](_0x48591a)){this[_0x50a69f(0x46f)][_0x50a69f(0x191)](_0x50a69f(0x184),_0x50a69f(0x2ed),_0x243ec2,_0x48591a);break;}_0x5c7e3d=_0x243ec2[_0x50a69f(0x447)],_0xb2990e=_0x48591a['c1Prime'],_0x2b29e9['push']({'unitID':_0x1abdf0,'undoMutations':_0x243ec2[_0x50a69f(0x29e)],'redoMutations':_0x48591a[_0x50a69f(0x29e)]});}return _0x2b29e9[_0x50a69f(0x442)]();}};$e=Pi([ne(0x0,o['IUniverInstanceService']),ne(0x1,o[_0x2ad778(0x4e4)]),ne(0x2,o[_0x2ad778(0x1c8)]),ne(0x3,_['ITransformService']),ne(0x4,o[_0x2ad778(0x2ac)])],$e);class Pt extends o[_0x2ad778(0x30e)]{constructor(){const _0x38c7fd=_0x2ad778;super(),u(this,'urlChange$'),this[_0x38c7fd(0x1ea)]=v[_0x38c7fd(0x4c9)](window,_0x38c7fd(0x24b))[_0x38c7fd(0x502)](v[_0x38c7fd(0x306)](this[_0x38c7fd(0x46a)]),v['shareReplay'](0x1),v[_0x38c7fd(0x1e1)](void 0x0));}[_0x2ad778(0x35c)](_0x45275d,_0x1fdc72,_0x551d68=!0x1){const _0x1c8e5d=_0x2ad778,_0x5d810d=new URL(window[_0x1c8e5d(0x1b8)][_0x1c8e5d(0x298)]);_0x5d810d[_0x1c8e5d(0x18d)][_0x1c8e5d(0x20c)](_0x45275d,_0x1fdc72),_0x551d68?window[_0x1c8e5d(0x1fb)][_0x1c8e5d(0x15e)]('','',_0x5d810d['toString']()):window['history'][_0x1c8e5d(0x2d0)]('','',_0x5d810d[_0x1c8e5d(0x3dc)]());}[_0x2ad778(0x192)](_0x22b683,_0x23fabf=!0x1){const _0x476cf4=_0x2ad778,_0x2ad951=new URL(window['location'][_0x476cf4(0x298)]);_0x2ad951['searchParams']['delete'](_0x22b683),_0x23fabf?window[_0x476cf4(0x1fb)][_0x476cf4(0x15e)]('','',_0x2ad951[_0x476cf4(0x3dc)]()):window['history']['pushState']('','',_0x2ad951[_0x476cf4(0x3dc)]());}[_0x2ad778(0x4ab)](_0x30b606){const _0x103b36=_0x2ad778;var _0x3bb8f9;return(_0x3bb8f9=new URL(window['location']['href'])['searchParams'][_0x103b36(0x49d)](_0x30b606))!=null?_0x3bb8f9:void 0x0;}}const Pe='collab-text-anchor-',wi=_0x2ad778(0x2f6),_e=0x6,yi=1.5,we=0x4,Li=1.5,Mi=_0x2ad778(0x45f);class Ni{constructor(_0x51bd04,_0x290a1b,_0x2fbdd4,_0x348328){const _0x6740a8=_0x2ad778;u(this,'_shapes',[]),u(this,_0x6740a8(0x427),null),u(this,_0x6740a8(0x2fa),null),u(this,_0x6740a8(0x491),null),u(this,_0x6740a8(0x41a),null),u(this,'_eventUnsubscribe',null),(this[_0x6740a8(0x2c4)]=_0x51bd04,this['_scene']=_0x290a1b,this[_0x6740a8(0x3c8)]=_0x2fbdd4,this[_0x6740a8(0x330)]=_0x348328,this[_0x6740a8(0x39d)]());}set[_0x2ad778(0x4ad)](_0x254195){const _0x21ba44=_0x2ad778;_0x254195?(this[_0x21ba44(0x491)]&&this[_0x21ba44(0x491)][_0x21ba44(0x399)](),this[_0x21ba44(0x2fa)]&&this[_0x21ba44(0x2fa)]['show']()):(this[_0x21ba44(0x491)]&&this[_0x21ba44(0x491)][_0x21ba44(0x1c6)](),this['_textBubble']&&this[_0x21ba44(0x2fa)]['hide']());}[_0x2ad778(0x194)](){const _0x326fde=_0x2ad778;for(const _0x64b911 of this['_shapes'])_0x64b911[_0x326fde(0x194)]();this[_0x326fde(0x2fa)]&&this[_0x326fde(0x2fa)][_0x326fde(0x194)](),this['_anchorDot']&&this[_0x326fde(0x491)][_0x326fde(0x194)](),this[_0x326fde(0x427)]&&this['_anchor']['dispose'](),this[_0x326fde(0x1f2)]&&this[_0x326fde(0x1f2)]();}[_0x2ad778(0x39d)](){const _0x33d5b4=_0x2ad778,{_docSkeleton:_0x4e51c0,_document:_0x273651}=this,{color:_0x4bc27f,name:_0x1137dd,ranges:_0x136ba5}=this['_cursor'],_0x4163fc=_0x273651[_0x33d5b4(0x24d)](),{docsLeft:_0x290db1,docsTop:_0x73950e}=_0x4163fc,_0x191327=new T[(_0x33d5b4(0x1fa))](_0x4163fc,_0x4e51c0);for(const {startOffset:_0x5bd19d,endOffset:_0x3dd96e,collapsed:_0x2f8432,isActive:_0x14b85b}of _0x136ba5){const _0x200413=_0x4e51c0[_0x33d5b4(0x45d)](_0x5bd19d),_0x255d99=_0x4e51c0['findNodePositionByCharIndex'](_0x3dd96e);if(_0x14b85b){const {contentBoxPointGroup:_0x575240}=_0x191327['getRangePointData'](_0x255d99,_0x255d99);if(_0x575240['length']===0x0)continue;this[_0x33d5b4(0x305)](_0x4bc27f,_0x575240,_0x290db1,_0x73950e,_0x1137dd),this['_eventUnsubscribe']=this[_0x33d5b4(0x356)]();}if(!_0x2f8432){const {contentBoxPointGroup:_0xb4b6db}=_0x191327[_0x33d5b4(0x3ff)](_0x200413,_0x255d99);if(_0xb4b6db[_0x33d5b4(0x32e)]===0x0)continue;this[_0x33d5b4(0x329)](_0x4bc27f,_0xb4b6db,_0x290db1,_0x73950e);}}}[_0x2ad778(0x305)](_0x4a75b0,_0x152727,_0x25277e,_0x45b896,_0x4d6e3e){const _0x1a26e4=_0x2ad778,_0x2c1569=this[_0x1a26e4(0x240)](_0x152727),{left:_0x39cb17,top:_0x1dd5ac,height:_0x4ce123}=_0x2c1569,_0x5ba9ae=this['_getScale'](),_0x15f134=Li/_0x5ba9ae,_0x1070e0=new T['Rect'](Pe+o[_0x1a26e4(0x3e8)][_0x1a26e4(0x4db)](_e),{'left':_0x39cb17+_0x25277e-_0x15f134,'top':_0x1dd5ac+_0x45b896,'height':_0x4ce123,'width':yi,'fill':_0x4a75b0||T[_0x1a26e4(0x2c5)](o[_0x1a26e4(0x4eb)][_0x1a26e4(0x2e1)],0x0),'strokeWidth':_0x15f134,'stroke':Mi,'evented':!0x0});this[_0x1a26e4(0x427)]=_0x1070e0,this['_scene'][_0x1a26e4(0x24e)](_0x1070e0,T[_0x1a26e4(0x23e)]);const _0x3b2f9d=new T[(_0x1a26e4(0x38b))](Pe+o[_0x1a26e4(0x3e8)][_0x1a26e4(0x4db)](_e),{'left':_0x39cb17+_0x25277e-_0x15f134,'top':_0x1dd5ac+_0x45b896-we/0x2,'height':we,'width':we,'fill':_0x4a75b0||T[_0x1a26e4(0x2c5)](o[_0x1a26e4(0x4eb)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x4a75b0||T[_0x1a26e4(0x2c5)](o[_0x1a26e4(0x4eb)][_0x1a26e4(0x2e1)],0x0),'evented':!0x1});this[_0x1a26e4(0x491)]=_0x3b2f9d,this['_scene'][_0x1a26e4(0x24e)](_0x3b2f9d,T['TEXT_RANGE_LAYER_INDEX']);const _0x5d6175=new be(Pe+o[_0x1a26e4(0x3e8)]['generateRandomId'](_e),{'left':_0x39cb17+_0x25277e-_0x15f134,'top':_0x1dd5ac+_0x45b896-ce,'text':_0x4d6e3e,'color':_0x4a75b0});this[_0x1a26e4(0x2fa)]=_0x5d6175,this[_0x1a26e4(0x22a)][_0x1a26e4(0x24e)](_0x5d6175,T['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}['_handleHover'](){const _0x14f854=_0x2ad778,_0x3b6424=this[_0x14f854(0x427)][_0x14f854(0x36c)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x1e9b5b=this['_anchor'][_0x14f854(0x163)]['subscribeEvent'](()=>{const _0x382d1f=_0x14f854;this[_0x382d1f(0x41a)]&&clearTimeout(this[_0x382d1f(0x41a)]),this[_0x382d1f(0x41a)]=setTimeout(()=>{const _0x5586f8=_0x382d1f;this[_0x5586f8(0x4ad)]=!0x1;},0x7d0);});return()=>{const _0x3f6a25=_0x14f854;_0x3b6424[_0x3f6a25(0x3ae)](),_0x1e9b5b['unsubscribe']();};}[_0x2ad778(0x329)](_0xc2309f,_0x3b7540,_0x43cdf4,_0xe19dad){const _0x106580=_0x2ad778,_0xa11fbd=new o[(_0x106580(0x30d))](_0xc2309f)[_0x106580(0x2e3)](0.2)['toRgbString'](),_0x17aff7=new T[(_0x106580(0x1cb))](wi+o[_0x106580(0x3e8)][_0x106580(0x4db)](_e),{'pointsGroup':_0x3b7540,'fill':_0xa11fbd||T[_0x106580(0x2c5)](o[_0x106580(0x4eb)]['black'],0.2),'left':_0x43cdf4,'top':_0xe19dad,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x106580(0x363)](_0x17aff7),this[_0x106580(0x22a)][_0x106580(0x24e)](_0x17aff7,T['TEXT_RANGE_LAYER_INDEX']);}[_0x2ad778(0x240)](_0x14f42c){const _0x236678=_0x14f42c[0x0],_0x2bb290=_0x236678[0x0],_0x5d2d2b=_0x236678[0x2],{x:_0x54bc8e,y:_0x3644f9}=_0x2bb290,{x:_0x4da38a,y:_0x5b1643}=_0x5d2d2b;return{'left':_0x54bc8e,'top':_0x3644f9,'width':_0x4da38a-_0x54bc8e,'height':_0x5b1643-_0x3644f9};}[_0x2ad778(0x2e8)](){const _0x4753d1=_0x2ad778,{scaleX:_0x50f80a,scaleY:_0x3472b6}=this[_0x4753d1(0x22a)][_0x4753d1(0x488)]();return Math[_0x4753d1(0x2ca)](_0x50f80a,_0x3472b6);}}var Ai=Object[_0x2ad778(0x4be)],ji=Object[_0x2ad778(0x16e)],$i=(_0x471979,_0x3ab3ad,_0x2b00a2,_0x1fd760)=>{const _0x30b26e=_0x2ad778;for(var _0x5928ab=_0x1fd760>0x1?void 0x0:_0x1fd760?ji(_0x3ab3ad,_0x2b00a2):_0x3ab3ad,_0xffe2db=_0x471979[_0x30b26e(0x32e)]-0x1,_0x3c8717;_0xffe2db>=0x0;_0xffe2db--)(_0x3c8717=_0x471979[_0xffe2db])&&(_0x5928ab=(_0x1fd760?_0x3c8717(_0x3ab3ad,_0x2b00a2,_0x5928ab):_0x3c8717(_0x5928ab))||_0x5928ab);return _0x1fd760&&_0x5928ab&&Ai(_0x3ab3ad,_0x2b00a2,_0x5928ab),_0x5928ab;},re=(_0x5b90b9,_0x1d2001)=>(_0x3ad16d,_0x59a7b2)=>_0x1d2001(_0x3ad16d,_0x59a7b2,_0x5b90b9);let Se=class extends o['RxDisposable']{constructor(_0x19504b,_0xca2673,_0x5b0081,_0x107b19,_0x4a108f){const _0x10631a=_0x2ad778;super(),u(this,'_cursors',[]),(this[_0x10631a(0x215)]=_0x19504b,this[_0x10631a(0x2ec)]=_0xca2673,this[_0x10631a(0x1a3)]=_0x5b0081,this[_0x10631a(0x4d1)]=_0x107b19,this[_0x10631a(0x41e)]=_0x4a108f,this['_init']());}[_0x2ad778(0x3c3)](){const _0xd741b5=_0x2ad778;this[_0xd741b5(0x4d1)][_0xd741b5(0x19c)][_0xd741b5(0x502)](E[_0xd741b5(0x306)](this[_0xd741b5(0x46a)]),E[_0xd741b5(0x1c4)](_0x519e82=>{const _0x2deb98=_0xd741b5;if(_0x519e82){const _0x52b6ff=_0x519e82[_0x2deb98(0x3ec)]()[_0x2deb98(0x483)]()[_0x2deb98(0x340)]();return v[_0x2deb98(0x334)](this[_0x2deb98(0x215)][_0x2deb98(0x4ea)](_0x52b6ff),this[_0x2deb98(0x41e)][_0x2deb98(0x29c)])[_0x2deb98(0x502)](E[_0x2deb98(0x2c7)](([_0x2dbc08,_0x38b6ee])=>({'skeleton':_0x519e82,'cursors':[..._0x2dbc08[_0x2deb98(0x328)]()][_0x2deb98(0x176)](_0x416042=>({..._0x416042,'color':_0x38b6ee[_0x416042[_0x2deb98(0x1b7)]]}))})));}return v['of']({'skeleton':null,'cursors':[]});}))[_0xd741b5(0x27c)](({skeleton:_0x3b1316,cursors:_0x25e34e})=>{const _0x241639=_0xd741b5;this[_0x241639(0x259)](),_0x3b1316&&this[_0x241639(0x1bf)](_0x3b1316,_0x25e34e);});}[_0x2ad778(0x1bf)](_0x13f84f,_0x549c87){const _0x44bd63=_0x2ad778,_0x32594f=this[_0x44bd63(0x36e)]();if(_0x32594f==null)return;const {scene:_0x16ca47,document:_0x57e463}=_0x32594f,_0x454ce1=_0x549c87[_0x44bd63(0x2c7)](_0x46260f=>new Ni(_0x46260f,_0x16ca47,_0x13f84f,_0x57e463));this['_cursors']=_0x454ce1;}[_0x2ad778(0x259)](){const _0x5e13af=_0x2ad778;this[_0x5e13af(0x213)][_0x5e13af(0x169)](_0x45ff71=>_0x45ff71[_0x5e13af(0x194)]()),this[_0x5e13af(0x213)]=[];}[_0x2ad778(0x36e)](){const _0x49e95f=_0x2ad778;return L[_0x49e95f(0x464)](this[_0x49e95f(0x2ec)],this[_0x49e95f(0x1a3)]);}};Se=$i([o[_0x2ad778(0x492)](o[_0x2ad778(0x2e2)][_0x2ad778(0x3e3)],Se),re(0x0,o[_0x2ad778(0x143)](z)),re(0x1,o['IUniverInstanceService']),re(0x2,T[_0x2ad778(0x326)]),re(0x3,o[_0x2ad778(0x143)](L[_0x2ad778(0x2c2)])),re(0x4,o[_0x2ad778(0x143)](o['ThemeService']))],Se);var Hi=Object[_0x2ad778(0x4be)],xi=Object[_0x2ad778(0x16e)],ki=(_0x3d92d9,_0x379b0b,_0x48fbd4,_0x19e89e)=>{const _0x45d8dd=_0x2ad778;for(var _0x4da7cd=_0x19e89e>0x1?void 0x0:_0x19e89e?xi(_0x379b0b,_0x48fbd4):_0x379b0b,_0x398c0e=_0x3d92d9[_0x45d8dd(0x32e)]-0x1,_0x1dbfd6;_0x398c0e>=0x0;_0x398c0e--)(_0x1dbfd6=_0x3d92d9[_0x398c0e])&&(_0x4da7cd=(_0x19e89e?_0x1dbfd6(_0x379b0b,_0x48fbd4,_0x4da7cd):_0x1dbfd6(_0x4da7cd))||_0x4da7cd);return _0x19e89e&&_0x4da7cd&&Hi(_0x379b0b,_0x48fbd4,_0x4da7cd),_0x4da7cd;},ye=(_0x515b3b,_0x59054c)=>(_0x486195,_0x4e7d00)=>_0x59054c(_0x486195,_0x4e7d00,_0x515b3b);let pe=class{constructor(_0x5ed238,_0x2c1b23,_0x5b9c3f){const _0x238328=_0x2ad778;this[_0x238328(0x508)]=_0x5ed238,this[_0x238328(0x16c)]=_0x2c1b23,this['localeService']=_0x5b9c3f,this[_0x238328(0x367)]();}[_0x2ad778(0x367)](){const _0x3942d9=_0x2ad778;this[_0x3942d9(0x16c)][_0x3942d9(0x369)]({'priority':0x1,'interceptor':(_0xce4662,_0x1b4b32)=>_0x1b4b32(_0xce4662)[_0x3942d9(0x502)](v[_0x3942d9(0x245)](async _0x13e5ef=>{const _0x4b2c5b=_0x3942d9,_0x5ed0e7=_0x13e5ef;if(_0x5ed0e7[_0x4b2c5b(0x35e)]===0x191&&window[_0x4b2c5b(0x4a0)](this['localeService']['t'](_0x4b2c5b(0x37c)))){const _0xffffc8=window[_0x4b2c5b(0x3f2)](window[_0x4b2c5b(0x1b8)]['href']);window[_0x4b2c5b(0x1b8)][_0x4b2c5b(0x298)]=this[_0x4b2c5b(0x1f1)]()+_0x4b2c5b(0x3b8)+_0xffffc8;}return _0x5ed0e7;}))});}[_0x2ad778(0x1f1)](){const _0x55014a=_0x2ad778;var _0x551e59;return(_0x551e59=this[_0x55014a(0x508)][_0x55014a(0x39e)](ft))!=null?_0x551e59:zt;}};pe=ki([ye(0x0,o['IConfigService']),ye(0x1,o[_0x2ad778(0x143)](U['HTTPService'])),ye(0x2,o[_0x2ad778(0x143)](o[_0x2ad778(0x384)]))],pe);var Bi=Object['defineProperty'],Fi=Object[_0x2ad778(0x16e)],Vi=(_0x5b3844,_0x263154,_0x5c59b9,_0x138b2a)=>{const _0x306714=_0x2ad778;for(var _0x510aaf=_0x138b2a>0x1?void 0x0:_0x138b2a?Fi(_0x263154,_0x5c59b9):_0x263154,_0x33183f=_0x5b3844[_0x306714(0x32e)]-0x1,_0x128126;_0x33183f>=0x0;_0x33183f--)(_0x128126=_0x5b3844[_0x33183f])&&(_0x510aaf=(_0x138b2a?_0x128126(_0x263154,_0x5c59b9,_0x510aaf):_0x128126(_0x510aaf))||_0x510aaf);return _0x138b2a&&_0x510aaf&&Bi(_0x263154,_0x5c59b9,_0x510aaf),_0x510aaf;},ot=(_0x52313c,_0x20fb40)=>(_0x20b60f,_0x88cbfd)=>_0x20fb40(_0x20b60f,_0x88cbfd,_0x52313c);const wt=_0x2ad778(0x4e9),Wi=_0x2ad778(0x46b);exports['AuthzIoHttpService']=class extends o[_0x2ad778(0x299)]{constructor(_0x1e6148,_0x1a7676){const _0x5ea64b=_0x2ad778;super(),this[_0x5ea64b(0x314)]=_0x1e6148,this['_configService']=_0x1a7676,this[_0x5ea64b(0x4bb)]();}['_initMergeInterceptor'](){const _0x3871cf=_0x2ad778,_0x520334=this;this[_0x3871cf(0x233)](this['_HTTPService'][_0x3871cf(0x369)]({'priority':0x3e7,'interceptor':U[_0x3871cf(0x4ee)]({'isMatch'(_0x53c084){const _0x242383=_0x3871cf;var _0x594725;if(_0x53c084[_0x242383(0x349)]==='POST'&&((_0x594725=_0x53c084[_0x242383(0x276)])!=null&&_0x594725['body'])){const {objectID:_0x21d76f,objectType:_0x47905a}=_0x53c084[_0x242383(0x276)]['body']||{};if(!_0x21d76f||_0x47905a===void 0x0)return!0x1;const _0x5597fa=_0x520334[_0x242383(0x32d)]()+'/'+_0x47905a+_0x242383(0x3f3)+_0x21d76f+'/allowed';if(_0x53c084['url']===_0x5597fa)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5899a5){const _0x5d31c1=_0x3871cf;var _0x57f4f9;return(_0x57f4f9=_0x5899a5[_0x5d31c1(0x276)])==null?void 0x0:_0x57f4f9[_0x5d31c1(0x20d)];},'mergeParamsToRequest'(_0x3a05b3,_0x49444e){const _0x9609f3=_0x3871cf,_0x4dd1bd=_0x520334[_0x9609f3(0x32d)]()+_0x9609f3(0x250),_0x312c57=_0x3a05b3['reduce']((_0x582bc8,_0x132a95)=>{const _0x4f4b36=_0x9609f3,{unitID:_0x4028b2,objectID:_0x4d0948,objectType:_0x5494e7,actions:_0x463c33}=_0x132a95;return _0x582bc8[_0x4028b2]||(_0x582bc8[_0x4028b2]={}),_0x582bc8[_0x4028b2][_0x4d0948]||(_0x582bc8[_0x4028b2][_0x4d0948]={'objectID':_0x4d0948,'objectType':_0x5494e7,'actions':[]}),_0x582bc8[_0x4028b2][_0x4d0948][_0x4f4b36(0x2fd)][_0x4f4b36(0x363)](..._0x463c33),_0x582bc8;},{}),_0x5b3f45=[];for(const _0x41c846 in _0x312c57)for(const _0x4d7bc7 in _0x312c57[_0x41c846]){const {actions:_0x5a8d03,objectType:_0x13c59}=_0x312c57[_0x41c846][_0x4d7bc7],_0x1fb886=[...new Set(_0x5a8d03)];_0x5b3f45[_0x9609f3(0x363)]({'unitID':_0x41c846,'objectID':_0x4d7bc7,'objectType':_0x13c59,'actions':_0x1fb886});}return new U[(_0x9609f3(0x3bd))](_0x9609f3(0x2a4),_0x4dd1bd,{'headers':_0x49444e[_0x9609f3(0x432)],'withCredentials':_0x49444e[_0x9609f3(0x2b4)],'responseType':_0x49444e['responseType'],'body':{'requests':_0x5b3f45}});}},{'distributeResult'(_0x1ab47f,_0x5524c0){const _0x39d36=_0x3871cf,{objectActions:_0x4aa803}=_0x1ab47f;return _0x5524c0[_0x39d36(0x2c7)](_0x136728=>{const _0x469d87=_0x39d36,{unitID:_0x20a109,objectID:_0x2ffa67,actions:_0x3b105b}=_0x136728,_0xf9afd2=_0x4aa803[_0x469d87(0x506)](_0x48085d=>_0x48085d['unitID']===_0x20a109&&_0x48085d[_0x469d87(0x224)]===_0x2ffa67),_0x1264cb=_0x3b105b['map'](_0x4d2765=>_0xf9afd2==null?void 0x0:_0xf9afd2[_0x469d87(0x2fd)][_0x469d87(0x506)](_0x59971a=>_0x59971a[_0x469d87(0x2e0)]===_0x4d2765))[_0x469d87(0x1dd)](_0x4603b8=>!!_0x4603b8);return{'config':_0x136728,'result':{'actions':_0x1264cb,'error':_0x1ab47f[_0x469d87(0x191)]}};});}})}));}[_0x2ad778(0x32d)](){const _0x475d2b=_0x2ad778;var _0x4b16d3;return(_0x4b16d3=this[_0x475d2b(0x508)][_0x475d2b(0x39e)](wt))!=null?_0x4b16d3:Wi;}async[_0x2ad778(0x1c2)](_0x5e98af){const _0x3345e4=_0x2ad778,_0x285ddf=this['_getAPIPrefixPath']()+'/'+_0x5e98af['objectType']+'/object';return(await this[_0x3345e4(0x314)][_0x3345e4(0x33d)](_0x285ddf,{'body':_0x5e98af}))[_0x3345e4(0x20d)][_0x3345e4(0x224)]||'';}async[_0x2ad778(0x177)](_0x4d6553){const _0x4b0786=_0x2ad778,_0x232f80=this[_0x4b0786(0x32d)]()+_0x4b0786(0x27f);return(await this[_0x4b0786(0x314)][_0x4b0786(0x33d)](_0x232f80,{'body':_0x4d6553}))[_0x4b0786(0x20d)][_0x4b0786(0x266)];}async[_0x2ad778(0x504)](_0x5a3d9b){const _0x27d8fc=_0x2ad778,_0x1e5e0b=this[_0x27d8fc(0x32d)]()+'/'+_0x5a3d9b[_0x27d8fc(0x3b0)]+_0x27d8fc(0x3f3)+_0x5a3d9b[_0x27d8fc(0x224)];await this[_0x27d8fc(0x314)][_0x27d8fc(0x271)](_0x1e5e0b,{'body':_0x5a3d9b});}async[_0x2ad778(0x38f)](_0x82577d){const _0x406ddd=_0x2ad778,_0x54c10d=this['_getAPIPrefixPath']()+'/'+_0x82577d['objectType']+_0x406ddd(0x3f3)+_0x82577d[_0x406ddd(0x224)]+'/allowed';return(await this['_HTTPService'][_0x406ddd(0x33d)](_0x54c10d,{'body':_0x82577d}))[_0x406ddd(0x20d)][_0x406ddd(0x2fd)];}async[_0x2ad778(0x3aa)](_0xc6ebc7){const _0xaf75b=_0x2ad778,_0x35c1a5=this[_0xaf75b(0x32d)]()+_0xaf75b(0x250);return(await this[_0xaf75b(0x314)][_0xaf75b(0x33d)](_0x35c1a5,{'body':{'requests':_0xc6ebc7}}))[_0xaf75b(0x20d)][_0xaf75b(0x40d)];}async[_0x2ad778(0x165)](_0xfa9618){const _0x42f52a=_0x2ad778,_0x2648fd=this[_0x42f52a(0x32d)]()+'/'+_0xfa9618[_0x42f52a(0x3b0)]+_0x42f52a(0x280),_0x4ce9c3=await this[_0x42f52a(0x314)][_0x42f52a(0x33d)](_0x2648fd,{'body':_0xfa9618});return{'roles':_0x4ce9c3[_0x42f52a(0x20d)][_0x42f52a(0x30c)],'actions':_0x4ce9c3['body'][_0x42f52a(0x2fd)]};}async['deleteCollaborator'](_0x4b3851){const _0x19e365=_0x2ad778,_0x2a0cda=this['_getAPIPrefixPath']()+_0x19e365(0x49a);await this[_0x19e365(0x314)]['delete'](_0x2a0cda,{'params':{'collaboratorID':_0x4b3851[_0x19e365(0x2ba)],'objectID':_0x4b3851[_0x19e365(0x224)],'unitID':_0x4b3851[_0x19e365(0x422)]}});}async[_0x2ad778(0x42a)](_0x408618){const _0x51a76d=_0x2ad778,_0x45b0f3=this[_0x51a76d(0x32d)]()+'/collaborator';await this[_0x51a76d(0x314)]['patch'](_0x45b0f3,{'body':_0x408618});}async['createCollaborator'](_0x221146){const _0x4fc3b1=_0x2ad778,_0x238cfd=this[_0x4fc3b1(0x32d)]()+_0x4fc3b1(0x49a);await this['_HTTPService'][_0x4fc3b1(0x33d)](_0x238cfd,{'body':_0x221146});}async[_0x2ad778(0x2ad)](_0x315250){const _0x12f88a=_0x2ad778,_0x3d13a0=this[_0x12f88a(0x32d)]()+_0x12f88a(0x49a);return(await this[_0x12f88a(0x314)][_0x12f88a(0x49d)](_0x3d13a0,{'params':{'objectID':_0x315250[_0x12f88a(0x224)],'unitID':_0x315250[_0x12f88a(0x422)]}}))[_0x12f88a(0x20d)][_0x12f88a(0x4e1)];}async[_0x2ad778(0x2cd)](_0x53e8f5){const _0x5aaa32=_0x2ad778,_0x2862d6=this[_0x5aaa32(0x32d)]()+_0x5aaa32(0x49a);await this[_0x5aaa32(0x314)][_0x5aaa32(0x271)](_0x2862d6,{'body':_0x53e8f5});}},exports[_0x2ad778(0x36a)]=Vi([ot(0x0,o[_0x2ad778(0x143)](U[_0x2ad778(0x2cf)])),ot(0x1,o[_0x2ad778(0x143)](o[_0x2ad778(0x4aa)]))],exports[_0x2ad778(0x36a)]);var Gi=Object['defineProperty'],Yi=Object[_0x2ad778(0x16e)],Ki=(_0x1b5e5d,_0x45cf9f,_0x273a12,_0x384dae)=>{const _0x518bd6=_0x2ad778;for(var _0x555c5c=_0x384dae>0x1?void 0x0:_0x384dae?Yi(_0x45cf9f,_0x273a12):_0x45cf9f,_0x14fd28=_0x1b5e5d[_0x518bd6(0x32e)]-0x1,_0x3982c1;_0x14fd28>=0x0;_0x14fd28--)(_0x3982c1=_0x1b5e5d[_0x14fd28])&&(_0x555c5c=(_0x384dae?_0x3982c1(_0x45cf9f,_0x273a12,_0x555c5c):_0x3982c1(_0x555c5c))||_0x555c5c);return _0x384dae&&_0x555c5c&&Gi(_0x45cf9f,_0x273a12,_0x555c5c),_0x555c5c;},at=(_0x4b9490,_0x3d97f6)=>(_0x57343d,_0x5f2141)=>_0x3d97f6(_0x57343d,_0x5f2141,_0x4b9490);const Xi=[_0x2ad778(0x2c8),'image/jpeg',_0x2ad778(0x2ef),'image/gif',_0x2ad778(0x497)],qi=0x5*0x400*0x400,Ji=_0x2ad778(0x4f4),zi=_0x2ad778(0x395),Zi='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Qi='/universer-api/file/{fileID}/sign-url';let He=class{constructor(_0x15d3fe,_0x8db20){const _0x1e8758=_0x2ad778;u(this,_0x1e8758(0x26b),0x0),u(this,_0x1e8758(0x1b9),new v[(_0x1e8758(0x2c6))]()),u(this,_0x1e8758(0x31a),this[_0x1e8758(0x1b9)]),u(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x15d3fe,this[_0x1e8758(0x508)]=_0x8db20);}[_0x2ad778(0x361)](_0x55ac5e){this['_waitCount']=_0x55ac5e,this['_change$']['next'](_0x55ac5e);}['getImageSourceCache'](_0x51371e,_0x249b5e){const _0x2a72cb=_0x2ad778;if(_0x249b5e===N[_0x2a72cb(0x50c)][_0x2a72cb(0x15c)]){const _0x17d803=new Image();return _0x17d803[_0x2a72cb(0x24a)]=_0x51371e,_0x17d803;}return this[_0x2a72cb(0x158)][_0x2a72cb(0x49d)](_0x51371e);}[_0x2ad778(0x2b6)](_0x2eca01,_0x35c97e,_0x1e673f){const _0xcf1591=_0x2ad778;_0x35c97e===N[_0xcf1591(0x50c)][_0xcf1591(0x15c)]||_0x1e673f==null||this[_0xcf1591(0x158)][_0xcf1591(0x20c)](_0x2eca01,_0x1e673f);}async[_0x2ad778(0x339)](_0x1d5dae){const _0x14f6ba=_0x2ad778;try{const _0x449caa=this[_0x14f6ba(0x279)](this[_0x14f6ba(0x1a5)](),''+_0x1d5dae),_0xd9cb93=(await this[_0x14f6ba(0x16c)][_0x14f6ba(0x49d)](_0x449caa))[_0x14f6ba(0x20d)];return _0xd9cb93['error']&&_0xd9cb93[_0x14f6ba(0x191)]['code']===mt['OK']?Promise[_0x14f6ba(0x2aa)](_0xd9cb93[_0x14f6ba(0x183)]):Promise[_0x14f6ba(0x3c5)](_0xd9cb93[_0x14f6ba(0x191)]);}catch(_0x4e5ef1){return Promise[_0x14f6ba(0x3c5)](_0x4e5ef1);}}async[_0x2ad778(0x321)](_0x3787df){const _0xb6c698=_0x2ad778;let _0x27a3bf='';if(!Xi[_0xb6c698(0x1b5)](_0x3787df[_0xb6c698(0x348)]))return this[_0xb6c698(0x489)](),Promise[_0xb6c698(0x3c5)](new Error(N[_0xb6c698(0x3be)][_0xb6c698(0x34d)]));if(_0x3787df['size']>qi)return this[_0xb6c698(0x489)](),Promise[_0xb6c698(0x3c5)](new Error(N[_0xb6c698(0x3be)][_0xb6c698(0x229)]));try{const _0x5894be=new FormData();_0x5894be['append'](_0xb6c698(0x394),_0x3787df);const _0x2d5af9=this[_0xb6c698(0x2de)]()+_0xb6c698(0x28d)+_0x3787df[_0xb6c698(0x441)]['toString'](),_0x590bde=await(await fetch(_0x2d5af9,{'method':'POST','body':_0x5894be}))[_0xb6c698(0x4a2)]();if(typeof _0x590bde['FileId']!=_0xb6c698(0x48c))return this[_0xb6c698(0x489)](),Promise[_0xb6c698(0x3c5)](new Error(N['ImageUploadStatusType'][_0xb6c698(0x26d)]));_0x27a3bf=_0x590bde['FileId'];}catch{return this[_0xb6c698(0x489)](),Promise[_0xb6c698(0x3c5)](new Error(N[_0xb6c698(0x3be)][_0xb6c698(0x26d)]));}return new Promise((_0x58ed25,_0x2247bf)=>{const _0x1a1aef=_0xb6c698,_0x12b532=new FileReader();_0x12b532[_0x1a1aef(0x256)](_0x3787df),_0x12b532['onload']=_0x771aa4=>{const _0x7a6f10=_0x1a1aef;var _0x3e0d1f;const _0x17ceb7=(_0x3e0d1f=_0x771aa4['target'])==null?void 0x0:_0x3e0d1f['result'];if(_0x17ceb7==null){this[_0x7a6f10(0x489)](),_0x2247bf(new Error(N[_0x7a6f10(0x3be)]['ERROR_IMAGE']));return;}const _0x725002=o['Tools']['generateRandomId'](0x6);_0x58ed25({'imageId':_0x725002,'imageSourceType':N[_0x7a6f10(0x50c)][_0x7a6f10(0x4f8)],'source':_0x27a3bf,'base64Cache':_0x17ceb7,'status':N[_0x7a6f10(0x3be)]['SUCCUSS']}),this[_0x7a6f10(0x489)]();};});}[_0x2ad778(0x2de)](){const _0x2c59a1=_0x2ad778;var _0x580c02;return(_0x580c02=this[_0x2c59a1(0x508)][_0x2c59a1(0x39e)](Ji))!=null?_0x580c02:zi;}['_getSignURL'](){const _0x29f87d=_0x2ad778;var _0x241807;return(_0x241807=this['_configService'][_0x29f87d(0x39e)](Zi))!=null?_0x241807:Qi;}[_0x2ad778(0x279)](_0x1e4a75,_0x33fdc8){return _0x1e4a75['replace']('{fileID}',_0x33fdc8);}[_0x2ad778(0x489)](){const _0x2dbbd6=_0x2ad778;this[_0x2dbbd6(0x26b)]-=0x1,this['_change$'][_0x2dbbd6(0x368)](this['_waitCount']);}};He=Ki([at(0x0,o[_0x2ad778(0x143)](U[_0x2ad778(0x2cf)])),at(0x1,o[_0x2ad778(0x4aa)])],He);var en=Object[_0x2ad778(0x4be)],tn=Object[_0x2ad778(0x16e)],sn=(_0xe2d8d3,_0xf1442e,_0x176464,_0x53feae)=>{for(var _0x2581b5=_0x53feae>0x1?void 0x0:_0x53feae?tn(_0xf1442e,_0x176464):_0xf1442e,_0x2bdf62=_0xe2d8d3['length']-0x1,_0x3e51cb;_0x2bdf62>=0x0;_0x2bdf62--)(_0x3e51cb=_0xe2d8d3[_0x2bdf62])&&(_0x2581b5=(_0x53feae?_0x3e51cb(_0xf1442e,_0x176464,_0x2581b5):_0x3e51cb(_0x2581b5))||_0x2581b5);return _0x53feae&&_0x2581b5&&en(_0xf1442e,_0x176464,_0x2581b5),_0x2581b5;},oe=(_0x19f2b9,_0x2a8e8b)=>(_0x58189e,_0x341f00)=>_0x2a8e8b(_0x58189e,_0x341f00,_0x19f2b9);let ve=class extends o[_0x2ad778(0x30e)]{constructor(_0x34b726,_0x463a54,_0x58c63d,_0x7f288e,_0x143191){const _0x3c6bb7=_0x2ad778;super(),this[_0x3c6bb7(0x31d)]=_0x34b726,this[_0x3c6bb7(0x2ec)]=_0x463a54,this[_0x3c6bb7(0x3a8)]=_0x58c63d,this[_0x3c6bb7(0x3ba)]=_0x7f288e,this[_0x3c6bb7(0x4fd)]=_0x143191,this[_0x3c6bb7(0x39b)](),this[_0x3c6bb7(0x2d4)]();}[_0x2ad778(0x2d4)](){const _0x13e244=_0x2ad778,_0x1762e5=async _0xdedfec=>{const _0x45542b=_0x379e;(await this[_0x45542b(0x3ba)][_0x45542b(0x34a)](_0xdedfec))['event$'][_0x45542b(0x502)](E[_0x45542b(0x1dd)](_0x3c1a84=>_0x3c1a84['eventID']===_[_0x45542b(0x4b9)][_0x45542b(0x1fe)]),E['takeUntil'](this['dispose$']))[_0x45542b(0x27c)](_0x197b41=>{const _0x33e5f4=_0x45542b,_0x3e26cf=_0x197b41,{reason:_0x1dacc3}=_0x3e26cf[_0x33e5f4(0x2f7)];this[_0x33e5f4(0x31d)][_0x33e5f4(0x49d)](M['IMessageService'])['show']({'type':Z[_0x33e5f4(0x310)][_0x33e5f4(0x4e8)],'content':this['_localeService']['t'](_0x33e5f4(0x14b))+'('+_0x1dacc3+')'}),this[_0x33e5f4(0x3a8)]['updatePermissionPoint'](new p[(_0x33e5f4(0x344))](_0xdedfec)['id'],!0x1),this[_0x33e5f4(0x3ba)]['closeSession'](_0xdedfec);});};v[_0x13e244(0x443)](this['_univerInstanceService'][_0x13e244(0x4b7)](o[_0x13e244(0x3c7)][_0x13e244(0x421)]),this[_0x13e244(0x2ec)][_0x13e244(0x4b7)](o[_0x13e244(0x3c7)][_0x13e244(0x257)]))['pipe'](E[_0x13e244(0x2c7)](_0x5bf4da=>_0x5bf4da[_0x13e244(0x340)]()),E['filter'](_0x3efcf8=>!o[_0x13e244(0x448)](_0x3efcf8)),E[_0x13e244(0x306)](this[_0x13e244(0x46a)]))[_0x13e244(0x27c)](_0x5e2a14=>{_0x1762e5(_0x5e2a14);});}[_0x2ad778(0x39b)](){const _0x803123=_0x2ad778,_0x469901=async _0x150dbc=>{const _0x514558=_0x379e;(await this['_collaborationSessionService'][_0x514558(0x34a)](_0x150dbc))['event$'][_0x514558(0x502)](E[_0x514558(0x1dd)](_0x5df345=>_0x5df345[_0x514558(0x318)]===_['CollaborationEvent'][_0x514558(0x4a8)]),E[_0x514558(0x306)](this[_0x514558(0x46a)]))['subscribe'](_0x397fa4=>{const _0x2debb9=_0x514558,_0x336c6c=_0x397fa4,{objectId:_0x24b34e}=_0x336c6c['data'];_0x24b34e===_0x150dbc&&this[_0x2debb9(0x31d)]['get'](J[_0x2debb9(0x4a6)])['initWorkbookPermissionChange'](_0x150dbc);});};v[_0x803123(0x443)](this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x803123(0x3c7)]['UNIVER_SHEET']),this[_0x803123(0x2ec)]['getTypeOfUnitAdded$'](o[_0x803123(0x3c7)]['UNIVER_DOC']))['pipe'](E[_0x803123(0x2c7)](_0x22ff00=>_0x22ff00[_0x803123(0x340)]()),E[_0x803123(0x1dd)](_0xcf8555=>!o[_0x803123(0x448)](_0xcf8555)),E[_0x803123(0x306)](this[_0x803123(0x46a)]))['subscribe'](_0x4df664=>{_0x469901(_0x4df664);});}};ve=sn([o[_0x2ad778(0x492)](o[_0x2ad778(0x2e2)]['Starting'],ve),oe(0x0,o[_0x2ad778(0x143)](o['Injector'])),oe(0x1,o[_0x2ad778(0x1ed)]),oe(0x2,o[_0x2ad778(0x358)]),oe(0x3,o['Inject'](exports[_0x2ad778(0x277)])),oe(0x4,o[_0x2ad778(0x143)](o[_0x2ad778(0x384)]))],ve);var yt=Object[_0x2ad778(0x4be)],nn=Object[_0x2ad778(0x16e)],rn=(_0x43aa9b,_0x55a22b,_0x47bc47)=>_0x55a22b in _0x43aa9b?yt(_0x43aa9b,_0x55a22b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47bc47}):_0x43aa9b[_0x55a22b]=_0x47bc47,on=(_0x1cbbd2,_0x188df1,_0x8c269e,_0x45ba18)=>{const _0x449911=_0x2ad778;for(var _0x39f41e=_0x45ba18>0x1?void 0x0:_0x45ba18?nn(_0x188df1,_0x8c269e):_0x188df1,_0x2b685f=_0x1cbbd2[_0x449911(0x32e)]-0x1,_0x2c5f0f;_0x2b685f>=0x0;_0x2b685f--)(_0x2c5f0f=_0x1cbbd2[_0x2b685f])&&(_0x39f41e=(_0x45ba18?_0x2c5f0f(_0x188df1,_0x8c269e,_0x39f41e):_0x2c5f0f(_0x39f41e))||_0x39f41e);return _0x45ba18&&_0x39f41e&&yt(_0x188df1,_0x8c269e,_0x39f41e),_0x39f41e;},ct=(_0x20154b,_0x42d27b)=>(_0x2189db,_0x34e943)=>_0x42d27b(_0x2189db,_0x34e943,_0x20154b),an=(_0x1b2494,_0x1d301f,_0x36f419)=>rn(_0x1b2494,_0x1d301f+'',_0x36f419);const cn=_0x2ad778(0x239);exports[_0x2ad778(0x4f3)]=class extends o[_0x2ad778(0x373)]{constructor(_0x546d2a,_0xcc1487,_0x464289){const _0x37c302=_0x2ad778;super(),this[_0x37c302(0x180)]=_0x546d2a,this[_0x37c302(0x46f)]=_0xcc1487,this[_0x37c302(0x31d)]=_0x464289;}[_0x2ad778(0x242)](_0x1e9705){const _0x2b5433=_0x2ad778;var _0x423a81,_0xc80841,_0x77bbfd,_0xc6c615,_0x496ce3;_0x1e9705[_0x2b5433(0x44d)](o[_0x2b5433(0x29a)])&&this[_0x2b5433(0x46f)][_0x2b5433(0x191)](_0x2b5433(0x294),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3b4418=[[o[_0x2b5433(0x29a)],{'useClass':$e}],[exports[_0x2b5433(0x277)]],[Ge],[U[_0x2b5433(0x2cf)]],[Ke,{'useClass':Pt}],[W],[exports[_0x2b5433(0x1eb)]],[U['WebSocketService']],[me],[fe],[ge],[We],[pe],[Ve],[ve],[Fe,{'useClass':(_0xc80841=(_0x423a81=this[_0x2b5433(0x180)])==null?void 0x0:_0x423a81[_0x2b5433(0x32c)])!=null?_0xc80841:exports[_0x2b5433(0x389)]}],[U[_0x2b5433(0x221)],{'useClass':U['XHRHTTPImplementation']}],[o[_0x2b5433(0x1fc)],{'useClass':je}],[o[_0x2b5433(0x4f0)],{'useClass':exports['AuthzIoHttpService']}],[N[_0x2b5433(0x1ef)],{'useClass':He}],[exports[_0x2b5433(0x371)]],[exports[_0x2b5433(0x46d)]],[exports[_0x2b5433(0x343)]],[de],[z]];(_0x77bbfd=this[_0x2b5433(0x180)])!=null&&_0x77bbfd['enableSingleActiveInstanceLock']&&_0x3b4418[_0x2b5433(0x363)]([Ee,{'useClass':_s}]),((_0xc6c615=this[_0x2b5433(0x180)])==null?void 0x0:_0xc6c615['collaborationUniverTypes'])==null||this[_0x2b5433(0x180)]['collaborationUniverTypes'][_0x2b5433(0x1b5)](o[_0x2b5433(0x3c7)][_0x2b5433(0x421)])?_0x3b4418[_0x2b5433(0x363)]([ue]):this[_0x2b5433(0x180)]['collaborationUniverTypes']['includes'](o[_0x2b5433(0x3c7)][_0x2b5433(0x257)])&&_0x3b4418['push']([Se]),_0x3b4418=o[_0x2b5433(0x439)](_0x3b4418,(_0x496ce3=this['_config'])==null?void 0x0:_0x496ce3['override']),_0x3b4418['forEach'](_0x3e9961=>_0x1e9705[_0x2b5433(0x459)](_0x3e9961)),_0x1e9705[_0x2b5433(0x49d)](U[_0x2b5433(0x2cf)])[_0x2b5433(0x369)]({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_initModules']();}[_0x2ad778(0x204)](){const _0x2059a5=_0x2ad778;var _0x36f857,_0x26c04e;(_0x36f857=this[_0x2059a5(0x180)])!=null&&_0x36f857[_0x2059a5(0x40f)]||this[_0x2059a5(0x31d)][_0x2059a5(0x49d)](exports[_0x2059a5(0x1eb)])['disableLocalCache'](),(_0x26c04e=this[_0x2059a5(0x180)])!=null&&_0x26c04e['enableAuthServer']&&this['_injector'][_0x2059a5(0x49d)](pe);}},an(exports[_0x2ad778(0x4f3)],'pluginName',cn),exports[_0x2ad778(0x4f3)]=on([o[_0x2ad778(0x283)](_['UniverCollaborationPlugin']),ct(0x1,o[_0x2ad778(0x2ac)]),ct(0x2,o[_0x2ad778(0x143)](o['Injector']))],exports[_0x2ad778(0x4f3)]),exports[_0x2ad778(0x4e9)]=wt,exports[_0x2ad778(0x3af)]=gt,exports[_0x2ad778(0x350)]=ut,exports[_0x2ad778(0x498)]=D,exports[_0x2ad778(0x302)]=Ut,exports['CommentService']=Ve,exports[_0x2ad778(0x166)]=dt,exports[_0x2ad778(0x15b)]=ke,exports[_0x2ad778(0x190)]=Fe,exports['IURLService']=Ke,exports[_0x2ad778(0x1c3)]=vt,exports['LOGIN_URL_KEY']=ft,exports[_0x2ad778(0x4e7)]=_t,exports['SNAPSHOT_SERVER_URL_KEY']=lt,exports[_0x2ad778(0x1a2)]=ht,exports['SessionStatus']=V,exports[_0x2ad778(0x4b5)]=Pt,exports[_0x2ad778(0x435)]=It,exports['serializeCombRequest']=pt;
|