@univerjs-pro/collaboration-client 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- 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 +1 -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/plugin.d.ts +1 -2
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -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 +1 -2
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +1 -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 +26 -28
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x4f4baa=_0x33cb;(function(_0x253eec,_0x30d3a5){const _0x1d30bc=_0x33cb,_0x3d531f=_0x253eec();while(!![]){try{const _0x30c2bc=-parseInt(_0x1d30bc(0x3d9))/0x1*(-parseInt(_0x1d30bc(0x4ce))/0x2)+-parseInt(_0x1d30bc(0x345))/0x3*(-parseInt(_0x1d30bc(0x2ef))/0x4)+parseInt(_0x1d30bc(0x577))/0x5+parseInt(_0x1d30bc(0x487))/0x6+parseInt(_0x1d30bc(0x2ff))/0x7*(-parseInt(_0x1d30bc(0x209))/0x8)+parseInt(_0x1d30bc(0x445))/0x9+-parseInt(_0x1d30bc(0x1c4))/0xa;if(_0x30c2bc===_0x30d3a5)break;else _0x3d531f['push'](_0x3d531f['shift']());}catch(_0x486a40){_0x3d531f['push'](_0x3d531f['shift']());}}}(_0x1982,0xa2391));var $t=Object[_0x4f4baa(0x4e3)],Ht=(_0x4e3fb4,_0x537e62,_0x4ecbf1)=>_0x537e62 in _0x4e3fb4?$t(_0x4e3fb4,_0x537e62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ecbf1}):_0x4e3fb4[_0x537e62]=_0x4ecbf1,d=(_0x5d8b4c,_0xe3cd53,_0x22ef1b)=>Ht(_0x5d8b4c,typeof _0xe3cd53!=_0x4f4baa(0x205)?_0xe3cd53+'':_0xe3cd53,_0x22ef1b);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const c=require(_0x4f4baa(0x2d1)),E=require('@univerjs/sheets'),Q=require(_0x4f4baa(0x497)),N=require(_0x4f4baa(0x55c)),u=require('@univerjs-pro/collaboration'),_=require(_0x4f4baa(0x3cf)),g=require(_0x4f4baa(0x261)),b=require(_0x4f4baa(0x1ee)),M=require(_0x4f4baa(0x28d)),U=require('@univerjs/network'),A=require('@univerjs/drawing'),Ye=require('@univerjs/engine-formula'),$e=require(_0x4f4baa(0x2b8)),R=require(_0x4f4baa(0x55b)),z=require(_0x4f4baa(0x1c6)),at=require(_0x4f4baa(0x50d)),w=require(_0x4f4baa(0x388)),xt=require(_0x4f4baa(0x2bb)),kt=require(_0x4f4baa(0x317)),ct=_0x4f4baa(0x52f),Bt=_0x4f4baa(0x244),lt=_0x4f4baa(0x1cf),ht='SEND_CHANGESET_TIMEOUT',Ft=0x7d0,_t=_0x4f4baa(0x34d),Vt=_0x4f4baa(0x260),ut=_0x4f4baa(0x542),Wt=0x7530,He=_0x4f4baa(0x447),dt=0x2710,Gt=_0x4f4baa(0x1c9),Yt=0x4e20,Kt=_0x4f4baa(0x1cd),Xt=0x3,St=_0x4f4baa(0x2a9),qt=0x3e8,vt='COLLAB_SUBMIT_CHANGESET_URL',Jt=_0x4f4baa(0x206),gt=_0x4f4baa(0x431),zt=_0x4f4baa(0x2a7);var ft=(_0x28d05c=>(_0x28d05c[_0x28d05c['UNDEFINED']=0x0]=_0x4f4baa(0x2f6),_0x28d05c[_0x28d05c['OK']=0x1]='OK',_0x28d05c[_0x28d05c[_0x4f4baa(0x23d)]=0x2]=_0x4f4baa(0x23d),_0x28d05c[_0x28d05c['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x28d05c[_0x28d05c[_0x4f4baa(0x2f0)]=0x4]=_0x4f4baa(0x2f0),_0x28d05c[_0x28d05c[_0x4f4baa(0x2e6)]=0x5]=_0x4f4baa(0x2e6),_0x28d05c[_0x28d05c[_0x4f4baa(0x53d)]=0x6]=_0x4f4baa(0x53d),_0x28d05c[_0x28d05c[_0x4f4baa(0x247)]=0x7]=_0x4f4baa(0x247),_0x28d05c[_0x28d05c[_0x4f4baa(0x4a6)]=0x8]='TOO_MANY_REQUESTS',_0x28d05c[_0x28d05c[_0x4f4baa(0x41a)]=0x9]='COMPLETION_FINISHED',_0x28d05c[_0x28d05c[_0x4f4baa(0x4e1)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x28d05c[_0x28d05c[_0x4f4baa(0x2a3)]=0x1771]=_0x4f4baa(0x2a3),_0x28d05c[_0x28d05c[_0x4f4baa(0x43d)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x28d05c[_0x28d05c[_0x4f4baa(0x2c8)]=0x1b59]='APPLY_REJECT',_0x28d05c[_0x28d05c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4f4baa(0x33f),_0x28d05c[_0x28d05c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4f4baa(0x4ac),_0x28d05c[_0x28d05c[_0x4f4baa(0x3ac)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x28d05c[_0x28d05c[_0x4f4baa(0x453)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x28d05c[_0x28d05c[_0x4f4baa(0x3e1)]=0x2329]=_0x4f4baa(0x3e1),_0x28d05c[_0x28d05c[_0x4f4baa(0x578)]=0x232a]=_0x4f4baa(0x578),_0x28d05c[_0x28d05c[_0x4f4baa(0x4e0)]=0x232b]=_0x4f4baa(0x4e0),_0x28d05c[_0x28d05c[_0x4f4baa(0x258)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x28d05c[_0x28d05c[_0x4f4baa(0x486)]=0x232d]=_0x4f4baa(0x486),_0x28d05c[_0x28d05c[_0x4f4baa(0x1de)]=0x2711]=_0x4f4baa(0x1de),_0x28d05c[_0x28d05c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4f4baa(0x378),_0x28d05c[_0x28d05c['UNRECOGNIZED']=-0x1]=_0x4f4baa(0x47b),_0x28d05c))(ft||{}),j=(_0x28b4e6=>(_0x28b4e6[_0x28b4e6[_0x4f4baa(0x2f7)]=0x0]='UNIVER_UNKNOWN',_0x28b4e6[_0x28b4e6[_0x4f4baa(0x3e8)]=0x1]=_0x4f4baa(0x3e8),_0x28b4e6[_0x28b4e6[_0x4f4baa(0x4fe)]=0x2]=_0x4f4baa(0x4fe),_0x28b4e6[_0x28b4e6[_0x4f4baa(0x2df)]=0x3]='UNIVER_SLIDE',_0x28b4e6[_0x28b4e6['UNRECOGNIZED']=-0x1]=_0x4f4baa(0x47b),_0x28b4e6))(j||{}),T=(_0x5e7793=>(_0x5e7793[_0x5e7793[_0x4f4baa(0x3f5)]=0x0]=_0x4f4baa(0x3f5),_0x5e7793[_0x5e7793[_0x4f4baa(0x251)]=0x1]=_0x4f4baa(0x251),_0x5e7793[_0x5e7793['JOIN']=0x2]=_0x4f4baa(0x50a),_0x5e7793[_0x5e7793[_0x4f4baa(0x2d0)]=0x3]=_0x4f4baa(0x2d0),_0x5e7793[_0x5e7793[_0x4f4baa(0x1e8)]=0x4]=_0x4f4baa(0x1e8),_0x5e7793[_0x5e7793[_0x4f4baa(0x321)]=0x5]=_0x4f4baa(0x321),_0x5e7793[_0x5e7793[_0x4f4baa(0x293)]=0x6]=_0x4f4baa(0x293),_0x5e7793[_0x5e7793[_0x4f4baa(0x47b)]=-0x1]=_0x4f4baa(0x47b),_0x5e7793))(T||{}),xe=(_0x43779d=>(_0x43779d[_0x43779d[_0x4f4baa(0x1cb)]=0x0]=_0x4f4baa(0x1cb),_0x43779d[_0x43779d['OK']=0x1]='OK',_0x43779d[_0x43779d[_0x4f4baa(0x563)]=0x2]=_0x4f4baa(0x563),_0x43779d[_0x43779d[_0x4f4baa(0x47b)]=-0x1]=_0x4f4baa(0x47b),_0x43779d))(xe||{}),Zt=Object[_0x4f4baa(0x4e3)],Qt=Object[_0x4f4baa(0x2f2)],es=(_0x168fcf,_0x32e384,_0x3d54d9,_0xaf73da)=>{const _0x444deb=_0x4f4baa;for(var _0x2815ab=_0xaf73da>0x1?void 0x0:_0xaf73da?Qt(_0x32e384,_0x3d54d9):_0x32e384,_0x1f7fb5=_0x168fcf[_0x444deb(0x56e)]-0x1,_0x48aaac;_0x1f7fb5>=0x0;_0x1f7fb5--)(_0x48aaac=_0x168fcf[_0x1f7fb5])&&(_0x2815ab=(_0xaf73da?_0x48aaac(_0x32e384,_0x3d54d9,_0x2815ab):_0x48aaac(_0x2815ab))||_0x2815ab);return _0xaf73da&&_0x2815ab&&Zt(_0x32e384,_0x3d54d9,_0x2815ab),_0x2815ab;},Ke=(_0x3cfbe6,_0x235e7b)=>(_0x10fa09,_0x4a0775)=>_0x235e7b(_0x10fa09,_0x4a0775,_0x3cfbe6);let G=class extends c['Disposable']{constructor(_0x21c093,_0x1e90a6){const _0xdcb19f=_0x4f4baa;super(),d(this,_0xdcb19f(0x37a),new Map()),(this['_univerInstanceService']=_0x21c093,this[_0xdcb19f(0x43e)]=_0x1e90a6,this[_0xdcb19f(0x430)](c[_0xdcb19f(0x58c)](g[_0xdcb19f(0x509)](this[_0xdcb19f(0x1d3)]['getTypeOfUnitDisposed$'](c[_0xdcb19f(0x35f)]['UNIVER_SHEET'])[_0xdcb19f(0x236)](b[_0xdcb19f(0x1e2)](_0x53c7d1=>_0x53c7d1[_0xdcb19f(0x286)]())),this['_univerInstanceService'][_0xdcb19f(0x35c)](c[_0xdcb19f(0x35f)][_0xdcb19f(0x3e8)])[_0xdcb19f(0x236)](b[_0xdcb19f(0x1e2)](_0x18c3d4=>_0x18c3d4['getUnitId']())),this[_0xdcb19f(0x1d3)]['getTypeOfUnitDisposed$'](c[_0xdcb19f(0x35f)][_0xdcb19f(0x2df)])[_0xdcb19f(0x236)](b[_0xdcb19f(0x1e2)](_0x1a080e=>_0x1a080e[_0xdcb19f(0x286)]())))[_0xdcb19f(0x2fe)](_0x5a909c=>this['_removeRoom'](_0x5a909c)))));}[_0x4f4baa(0x569)](_0x15a9a6){const _0x45072b=_0x4f4baa;this[_0x45072b(0x43e)][_0x45072b(0x569)](_0x15a9a6);}[_0x4f4baa(0x456)](){const _0x4ea93d=_0x4f4baa;return this[_0x4ea93d(0x43e)]['getCurrentUser']();}['updateMember'](_0x3e39d6,_0x17855c){const _0x14bc88=_0x4f4baa;let _0x306b4c=this[_0x14bc88(0x37a)][_0x14bc88(0x2e7)](_0x3e39d6);_0x306b4c||(_0x306b4c=new ts(),this[_0x14bc88(0x37a)][_0x14bc88(0x203)](_0x3e39d6,_0x306b4c)),_0x306b4c['updateMember'](_0x17855c);}['removeMember'](_0x2da1aa,_0x35b455){const _0x5db4a5=_0x4f4baa,_0x31e87a=this[_0x5db4a5(0x37a)][_0x5db4a5(0x2e7)](_0x2da1aa);_0x31e87a&&_0x31e87a[_0x5db4a5(0x2e9)](_0x35b455);}['getRoom'](_0x5f224b){const _0x5eaaec=_0x4f4baa;return this[_0x5eaaec(0x37a)]['get'](_0x5f224b);}[_0x4f4baa(0x3ed)](_0x335175,_0x2bc1a6){const _0x20f615=_0x4f4baa,_0xc4df4d=this[_0x20f615(0x37a)]['get'](_0x335175);if(_0xc4df4d)return _0xc4df4d[_0x20f615(0x3ed)](_0x2bc1a6);}[_0x4f4baa(0x480)](_0x1de358){const _0x7a93d3=_0x4f4baa,_0x4d98a6=this['_roomMembers'][_0x7a93d3(0x2e7)](_0x1de358);_0x4d98a6&&(_0x4d98a6['dispose'](),this[_0x7a93d3(0x37a)][_0x7a93d3(0x2fd)](_0x1de358));}[_0x4f4baa(0x4bf)](){const _0xab45ca=_0x4f4baa;this['_roomMembers'][_0xab45ca(0x502)](_0x37ee11=>_0x37ee11[_0xab45ca(0x4bf)]()),this[_0xab45ca(0x37a)]['clear']();}};G=es([Ke(0x0,c['IUniverInstanceService']),Ke(0x1,_['Inject'](c[_0x4f4baa(0x353)]))],G);class ts extends c[_0x4f4baa(0x2e5)]{constructor(){const _0x2650e9=_0x4f4baa;super(...arguments),d(this,_0x2650e9(0x57d),new Map());}['dispose'](){const _0x307a=_0x4f4baa;this[_0x307a(0x57d)][_0x307a(0x362)]();}[_0x4f4baa(0x2bd)](_0x2272e2){const _0x3f40e1=_0x4f4baa;this['_members']['set'](_0x2272e2[_0x3f40e1(0x3ae)],_0x2272e2);}[_0x4f4baa(0x2e9)](_0x450084){const _0x10daf9=_0x4f4baa;this[_0x10daf9(0x57d)][_0x10daf9(0x2fd)](_0x450084);}[_0x4f4baa(0x3ed)](_0x20578a){const _0x3c0ee0=_0x4f4baa;return this[_0x3c0ee0(0x57d)]['get'](_0x20578a);}}function mt(_0x1203e4){const _0xa5d378=_0x4f4baa;var _0x151a6d,_0x2020f7,_0x5bb72e,_0x299e97;const _0x28f841=_0x1203e4[_0xa5d378(0x253)],_0xaf4728=JSON[_0xa5d378(0x268)](_0x28f841);switch(_0xaf4728[_0xa5d378(0x1bd)]){case T[_0xa5d378(0x321)]:case T[_0xa5d378(0x251)]:{const _0x396dc3=_0xaf4728[_0xa5d378(0x1f4)];return{..._0xaf4728,'data':_0x396dc3,'cmd':_0xaf4728[_0xa5d378(0x1bd)]};}case T[_0xa5d378(0x50a)]:{const _0x4cf2ad=_0xaf4728[_0xa5d378(0x574)];return{..._0xaf4728,'data':_0x4cf2ad,'cmd':_0xaf4728[_0xa5d378(0x1bd)]};}case T['RECV']:{const _0x19a057=_0xaf4728[_0xa5d378(0x2d3)];switch(_0x19a057[_0xa5d378(0x474)]){case u['CollaborationEvent'][_0xa5d378(0x4c3)]:return{..._0xaf4728,'data':{..._0x19a057,'data':(_0x151a6d=_0x19a057[_0xa5d378(0x412)])==null?void 0x0:_0x151a6d['cs']},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};case u[_0xa5d378(0x441)][_0xa5d378(0x553)]:return{..._0xaf4728,'data':{..._0x19a057,'data':(_0x2020f7=_0x19a057[_0xa5d378(0x36c)])==null?void 0x0:_0x2020f7['cs']},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};case u[_0xa5d378(0x441)][_0xa5d378(0x56b)]:return{..._0xaf4728,'data':{..._0x19a057,'data':(_0x5bb72e=_0x19a057[_0xa5d378(0x4f2)])==null?void 0x0:_0x5bb72e['cs']},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};case u[_0xa5d378(0x441)]['CHANGESET_REJ']:return{..._0xaf4728,'data':{..._0x19a057,'data':(_0x299e97=_0x19a057[_0xa5d378(0x296)])==null?void 0x0:_0x299e97['cs']},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};case u[_0xa5d378(0x441)][_0xa5d378(0x3c4)]:return{..._0xaf4728,'data':{..._0x19a057,'data':_0x19a057[_0xa5d378(0x2ea)]},'cmd':_0xaf4728['cmd']};case u[_0xa5d378(0x441)]['USERS_ENTER']:return{..._0xaf4728,'data':{..._0x19a057,'data':_0x19a057[_0xa5d378(0x4ec)]},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};case u[_0xa5d378(0x441)]['USERS_LEAVE']:return{..._0xaf4728,'data':{..._0x19a057,'data':_0x19a057[_0xa5d378(0x482)]},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};case u[_0xa5d378(0x441)][_0xa5d378(0x3d3)]:return{..._0xaf4728,'data':{..._0x19a057,'data':_0x19a057['liveShareNewHost']},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};case u['CollaborationEvent'][_0xa5d378(0x402)]:case u[_0xa5d378(0x441)][_0xa5d378(0x37c)]:return{..._0xaf4728,'data':{..._0x19a057,'data':_0x19a057[_0xa5d378(0x376)]},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};case u[_0xa5d378(0x441)][_0xa5d378(0x3cd)]:return{..._0xaf4728,'data':{..._0x19a057,'data':_0x19a057[_0xa5d378(0x207)]},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};case u[_0xa5d378(0x441)][_0xa5d378(0x297)]:return{..._0xaf4728,'data':_0x19a057,'cmd':_0xaf4728['cmd']};case u[_0xa5d378(0x441)][_0xa5d378(0x49d)]:return{..._0xaf4728,'data':{..._0x19a057,'data':_0x19a057['commentUpdateEvent']},'cmd':_0xaf4728['cmd']};case u[_0xa5d378(0x441)]['UPDATE_PERMISSION_OBJ']:return{..._0xaf4728,'data':{..._0x19a057,'data':_0x19a057['updatePermissionObjEvent']},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};case u[_0xa5d378(0x441)]['SHOULD_CLOSE_CONN']:return{..._0xaf4728,'data':{..._0x19a057,'data':_0x19a057['shouldCloseConn']},'cmd':_0xaf4728[_0xa5d378(0x1bd)]};default:return _0xaf4728;}}default:return _0xaf4728;}}function It(_0x2ae0ce){const _0x5ad6ec=_0x4f4baa;switch(_0x2ae0ce[_0x5ad6ec(0x1bd)]){case T[_0x5ad6ec(0x321)]:case T[_0x5ad6ec(0x251)]:return JSON[_0x5ad6ec(0x4de)]({'cmd':_0x2ae0ce['cmd'],'routeKey':_0x2ae0ce[_0x5ad6ec(0x202)]});case T['INGEST']:{let _0x1c7342;switch(_0x2ae0ce[_0x5ad6ec(0x253)][_0x5ad6ec(0x474)]){case u[_0x5ad6ec(0x441)][_0x5ad6ec(0x3c4)]:{_0x1c7342={'eventID':u[_0x5ad6ec(0x441)][_0x5ad6ec(0x3c4)],'updateCursorEvent':_0x2ae0ce[_0x5ad6ec(0x253)][_0x5ad6ec(0x253)]};break;}case u[_0x5ad6ec(0x441)][_0x5ad6ec(0x41d)]:{_0x1c7342={'eventID':u['CollaborationEvent'][_0x5ad6ec(0x41d)],'leaveEvent':_0x2ae0ce['data']['data']};break;}case u['CollaborationEvent'][_0x5ad6ec(0x46c)]:{_0x1c7342={'eventID':u['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x2ae0ce[_0x5ad6ec(0x253)]['data']};break;}case u[_0x5ad6ec(0x441)][_0x5ad6ec(0x3d3)]:{_0x1c7342={'eventID':u[_0x5ad6ec(0x441)][_0x5ad6ec(0x3d3)],'liveShareNewHost':_0x2ae0ce[_0x5ad6ec(0x253)][_0x5ad6ec(0x253)]};break;}case u['CollaborationEvent'][_0x5ad6ec(0x37c)]:{_0x1c7342={'eventID':u[_0x5ad6ec(0x441)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x2ae0ce['data'][_0x5ad6ec(0x253)]};break;}case u[_0x5ad6ec(0x441)]['LIVESHARE_TERMINATE']:{_0x1c7342={'eventID':u[_0x5ad6ec(0x441)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x2ae0ce[_0x5ad6ec(0x253)]['data']};break;}case u[_0x5ad6ec(0x441)]['LIVESHARE_REQUEST_HOST']:{_0x1c7342={'eventID':u[_0x5ad6ec(0x441)][_0x5ad6ec(0x435)],'liveShareRequestHost':_0x2ae0ce[_0x5ad6ec(0x253)]['data']};break;}case u['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:{_0x1c7342={'eventID':u[_0x5ad6ec(0x441)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x1c7342={'eventID':_0x2ae0ce[_0x5ad6ec(0x253)][_0x5ad6ec(0x474)]};}return JSON[_0x5ad6ec(0x4de)]({'cmd':_0x2ae0ce['cmd'],'routeKey':_0x2ae0ce[_0x5ad6ec(0x202)],'collaMsg':_0x1c7342});}case T[_0x5ad6ec(0x50a)]:return JSON[_0x5ad6ec(0x4de)]({'cmd':_0x2ae0ce[_0x5ad6ec(0x1bd)],'routeKey':_0x2ae0ce['routeKey'],'joinReq':_0x2ae0ce[_0x5ad6ec(0x253)]});case T[_0x5ad6ec(0x2d0)]:return JSON[_0x5ad6ec(0x4de)]({'cmd':_0x2ae0ce['cmd'],'routeKey':_0x2ae0ce[_0x5ad6ec(0x202)],'leaveReq':_0x2ae0ce[_0x5ad6ec(0x253)]});default:throw new Error(_0x5ad6ec(0x3a8));}}var ss=Object[_0x4f4baa(0x4e3)],is=Object['getOwnPropertyDescriptor'],ns=(_0x29da3c,_0x277a1b,_0x571a29,_0xa06af)=>{const _0x4c4172=_0x4f4baa;for(var _0x400869=_0xa06af>0x1?void 0x0:_0xa06af?is(_0x277a1b,_0x571a29):_0x277a1b,_0x2b68f7=_0x29da3c[_0x4c4172(0x56e)]-0x1,_0x540f7d;_0x2b68f7>=0x0;_0x2b68f7--)(_0x540f7d=_0x29da3c[_0x2b68f7])&&(_0x400869=(_0xa06af?_0x540f7d(_0x277a1b,_0x571a29,_0x400869):_0x540f7d(_0x400869))||_0x400869);return _0xa06af&&_0x400869&&ss(_0x277a1b,_0x571a29,_0x400869),_0x400869;},se=(_0x1b4142,_0x3aa072)=>(_0xd55b85,_0x27df86)=>_0x3aa072(_0xd55b85,_0x27df86,_0x1b4142);const ke=_[_0x4f4baa(0x30e)](_0x4f4baa(0x511));function rs(_0x8b0824,_0xebb0c6,_0x1158df){const _0x1a8d32=_0x4f4baa;return _0x8b0824+'/'+_0xebb0c6+_0x1a8d32(0x3d6)+_0x1158df+'/new_changes';}exports[_0x4f4baa(0x395)]=class{constructor(_0x455cf3,_0x2c3acb,_0x502640,_0x5b3515,_0x36fa77){const _0x4334cc=_0x4f4baa;this[_0x4334cc(0x221)]=_0x455cf3,this[_0x4334cc(0x515)]=_0x2c3acb,this['_configService']=_0x502640,this[_0x4334cc(0x581)]=_0x5b3515,this['_snapshotServerService']=_0x36fa77;}[_0x4f4baa(0x227)](_0x121a31){const _0xd4ed56=_0x4f4baa,_0x5c5b11=this[_0xd4ed56(0x515)]['createSocket'](_0x121a31);if(!_0x5c5b11)throw new Error(_0xd4ed56(0x2da));const _0x1f6e17=new c[(_0xd4ed56(0x252))](),_0x37cce0=new g[(_0xd4ed56(0x455))]();_0x1f6e17['add'](c['toDisposable'](_0x5c5b11[_0xd4ed56(0x404)]['subscribe'](_0x4d31ad=>_0x37cce0[_0xd4ed56(0x469)](_0x4d31ad)))),_0x1f6e17[_0xd4ed56(0x29a)](c[_0xd4ed56(0x58c)](()=>_0x37cce0[_0xd4ed56(0x33d)]()));const _0xc4b8c3=new g[(_0xd4ed56(0x455))]();_0x1f6e17[_0xd4ed56(0x29a)](c[_0xd4ed56(0x58c)](_0x5c5b11[_0xd4ed56(0x29b)]['subscribe'](_0x5d4e17=>_0xc4b8c3['next'](_0x5d4e17)))),_0x1f6e17[_0xd4ed56(0x29a)](c['toDisposable'](()=>_0xc4b8c3['complete']()));const _0x3ebd94=new g[(_0xd4ed56(0x455))]();_0x1f6e17['add'](c[_0xd4ed56(0x58c)](_0x5c5b11[_0xd4ed56(0x23c)][_0xd4ed56(0x2fe)](_0x48e787=>{const _0x10fa91=_0xd4ed56,_0x36a7=mt(_0x48e787);_0x3ebd94[_0x10fa91(0x469)](_0x36a7);}))),_0x1f6e17[_0xd4ed56(0x29a)](c[_0xd4ed56(0x58c)](()=>_0x3ebd94[_0xd4ed56(0x33d)]()));const _0x11cd02=()=>{const _0x28d086=_0xd4ed56;_0xc4b8c3[_0x28d086(0x469)](new Event(_0x28d086(0x25a))),_0x37cce0[_0x28d086(0x469)](new CloseEvent(_0x28d086(0x25a))),_0x20d141['close']();},_0x20d141={'memberID':'','close$':_0x37cce0[_0xd4ed56(0x330)](),'error$':_0xc4b8c3[_0xd4ed56(0x330)](),'open$':_0x5c5b11[_0xd4ed56(0x426)],'message$':_0x3ebd94[_0xd4ed56(0x330)](),'send':_0x273888=>{const _0x4e5911=_0xd4ed56;if(_0x273888[_0x4e5911(0x1bd)]===T[_0x4e5911(0x1e8)]){if(_0x273888[_0x4e5911(0x253)]['eventID']===u[_0x4e5911(0x441)][_0x4e5911(0x2fa)]){this['_submitChangeset'](_0x20d141,_0x273888[_0x4e5911(0x253)])['catch'](_0x49f1b3=>{const _0x3cab72=_0x4e5911;this[_0x3cab72(0x581)][_0x3cab72(0x370)](_0x49f1b3),_0x11cd02();});return;}if(_0x273888[_0x4e5911(0x253)][_0x4e5911(0x474)]===u[_0x4e5911(0x441)]['FETCH_MISSING']){const _0x2b7f1f=_0x273888[_0x4e5911(0x253)];this[_0x4e5911(0x2ac)](_0x2b7f1f)['then'](_0x2b54c2=>{const _0x20ba44=_0x4e5911;_0x3ebd94[_0x20ba44(0x469)]({'cmd':T[_0x20ba44(0x293)],'code':xe['OK'],'routeKey':_0x2b7f1f[_0x20ba44(0x253)][_0x20ba44(0x427)],'routeType':'','data':{'eventID':u[_0x20ba44(0x441)][_0x20ba44(0x4a7)],'data':{'changesets':_0x2b54c2}}});})[_0x4e5911(0x530)](_0x3784e5=>{const _0x2c34d7=_0x4e5911;this['_logService'][_0x2c34d7(0x370)](_0x3784e5),_0x11cd02();});return;}}_0x5c5b11[_0x4e5911(0x3ef)](It(_0x273888));},'close':()=>{const _0x2e6d8d=_0xd4ed56;_0x5c5b11[_0x2e6d8d(0x274)](),_0x1f6e17['dispose']();}};return _0x20d141;}async['_submitChangeset'](_0x404c47,_0x389ec1){const _0x296297=_0x4f4baa;var _0x33e1fa;const {unitType:_0x507210,unitID:_0x525427,changeset:_0x17a2e7}=_0x389ec1[_0x296297(0x253)],_0x49f2eb={'unitID':_0x525427,'memberID':_0x404c47[_0x296297(0x3ae)],'type':_0x507210,'changeset':u['parseChangesetToProtocol'](_0x17a2e7)},_0x57a1f0=rs((_0x33e1fa=this['_configService'][_0x296297(0x21c)](vt))!=null?_0x33e1fa:Jt,_0x507210,_0x525427);try{await this[_0x296297(0x221)][_0x296297(0x26d)](_0x57a1f0,{'body':_0x49f2eb});}catch(_0x5f4ac6){throw this[_0x296297(0x581)][_0x296297(0x370)](_0x296297(0x449),_0x296297(0x2ce)),_0x5f4ac6;}}async[_0x4f4baa(0x2ac)](_0x18e05c){const _0x74b4fc=_0x4f4baa,{unitID:_0x20b2c8,from:_0x3e7978,to:_0x327d6e,unitType:_0x1935bc}=_0x18e05c[_0x74b4fc(0x253)];return(await this['_snapshotServerService'][_0x74b4fc(0x42a)]({'metadata':void 0x0},{'unitID':_0x20b2c8,'type':_0x1935bc,'from':_0x3e7978,'to':_0x327d6e}))[_0x74b4fc(0x4b9)];}},exports[_0x4f4baa(0x395)]=ns([se(0x0,_[_0x4f4baa(0x451)](U['HTTPService'])),se(0x1,_[_0x4f4baa(0x451)](U[_0x4f4baa(0x295)])),se(0x2,c[_0x4f4baa(0x37f)]),se(0x3,c[_0x4f4baa(0x56d)]),se(0x4,c['ISnapshotServerService'])],exports[_0x4f4baa(0x395)]);class Be{constructor(){const _0x27f3e4=_0x4f4baa;d(this,'_commentUpdate$',new g[(_0x27f3e4(0x455))]()),d(this,_0x27f3e4(0x2b5),this[_0x27f3e4(0x385)][_0x27f3e4(0x330)]());}[_0x4f4baa(0x4f0)](_0x9a53e2){const _0x18f735=_0x4f4baa;this[_0x18f735(0x385)][_0x18f735(0x469)](_0x9a53e2);}}var os=Object[_0x4f4baa(0x4e3)],as=Object['getOwnPropertyDescriptor'],pt=(_0x55de5c,_0x24bc58,_0x5dc543,_0x50cbc7)=>{for(var _0x3d80d4=_0x50cbc7>0x1?void 0x0:_0x50cbc7?as(_0x24bc58,_0x5dc543):_0x24bc58,_0x520cc2=_0x55de5c['length']-0x1,_0x1374fb;_0x520cc2>=0x0;_0x520cc2--)(_0x1374fb=_0x55de5c[_0x520cc2])&&(_0x3d80d4=(_0x50cbc7?_0x1374fb(_0x24bc58,_0x5dc543,_0x3d80d4):_0x1374fb(_0x3d80d4))||_0x3d80d4);return _0x50cbc7&&_0x3d80d4&&os(_0x24bc58,_0x5dc543,_0x3d80d4),_0x3d80d4;},y=(_0x5588eb,_0x3dfbc3)=>(_0x53ab44,_0x3f9595)=>_0x3dfbc3(_0x53ab44,_0x3f9595,_0x5588eb),W=(_0x2f6212=>(_0x2f6212[_0x2f6212['IDLE']=0x0]=_0x4f4baa(0x44b),_0x2f6212[_0x2f6212[_0x4f4baa(0x31a)]=0x1]='JOINING',_0x2f6212[_0x2f6212['OFFLINE']=0x2]=_0x4f4baa(0x4d4),_0x2f6212[_0x2f6212[_0x4f4baa(0x4b7)]=0x3]=_0x4f4baa(0x4b7),_0x2f6212))(W||{});exports[_0x4f4baa(0x49e)]=class extends c[_0x4f4baa(0x3b4)]{constructor(_0x16daa,_0x39eee3,_0x3250df,_0x42ec52,_0x25d3bd,_0x2e7a10,_0x3d1989,_0x44c7e5,_0x1cb1e5){const _0x18b464=_0x4f4baa;super(),d(this,_0x18b464(0x26e),new g[(_0x18b464(0x20d))](0x0)),d(this,_0x18b464(0x51e),this['_sessionStatus$'][_0x18b464(0x330)]()),d(this,_0x18b464(0x48c),new g['Subject']()),d(this,'event$',this['_event$'][_0x18b464(0x330)]()),d(this,_0x18b464(0x463)),d(this,'_socketMessageSubscription'),d(this,_0x18b464(0x517)),(this[_0x18b464(0x36e)]=_0x16daa,this[_0x18b464(0x581)]=_0x3250df,this[_0x18b464(0x49f)]=_0x42ec52,this[_0x18b464(0x4b5)]=_0x25d3bd,this[_0x18b464(0x52a)]=_0x2e7a10,this[_0x18b464(0x43b)]=_0x3d1989,this[_0x18b464(0x1d5)]=_0x44c7e5,this[_0x18b464(0x391)]=_0x1cb1e5,_0x39eee3['pipe'](b[_0x18b464(0x3de)](this[_0x18b464(0x3c9)]))[_0x18b464(0x2fe)](_0x13269f=>{const _0x55826a=_0x18b464;var _0x21c5ed;typeof _0x13269f>'u'||(this[_0x55826a(0x463)]=_0x13269f,_0x13269f?(this[_0x55826a(0x4c9)](_0x13269f),this['_socketMessageSubscription']=this[_0x55826a(0x463)]['message$']['subscribe'](_0x5f0ba4=>{const _0x579036=_0x55826a;_0x5f0ba4[_0x579036(0x202)]===this[_0x579036(0x36e)]&&this[_0x579036(0x208)](_0x5f0ba4);})):(this[_0x55826a(0x26e)]['next'](0x2),(_0x21c5ed=this['_socketMessageSubscription'])==null||_0x21c5ed[_0x55826a(0x21f)](),this[_0x55826a(0x3ba)]=null));}),this[_0x18b464(0x430)](this[_0x18b464(0x49f)][_0x18b464(0x4b3)](()=>{const _0x5f9f53=_0x18b464;var _0xdf63cd;(_0xdf63cd=this[_0x5f9f53(0x463)])==null||_0xdf63cd[_0x5f9f53(0x3ef)]({'cmd':T[_0x5f9f53(0x2d0)],'data':{'roomID':this[_0x5f9f53(0x36e)]}});})));}get[_0x4f4baa(0x432)](){const _0x1beb3a=_0x4f4baa;return this[_0x1beb3a(0x26e)][_0x1beb3a(0x483)]();}['getMemberID'](){const _0x5333f1=_0x4f4baa;var _0x85b019,_0x11b55f;return(_0x11b55f=(_0x85b019=this['_socket'])==null?void 0x0:_0x85b019[_0x5333f1(0x3ae)])!=null?_0x11b55f:null;}[_0x4f4baa(0x4bf)](){const _0xf2196c=_0x4f4baa;super['dispose'](),this[_0xf2196c(0x3c9)][_0xf2196c(0x469)](),this[_0xf2196c(0x3c9)][_0xf2196c(0x33d)]();}[_0x4f4baa(0x274)](){const _0x4f07c3=_0x4f4baa;var _0x39d49b,_0x3b1fd6;(_0x39d49b=this[_0x4f07c3(0x463)])==null||_0x39d49b[_0x4f07c3(0x3ef)]({'cmd':T[_0x4f07c3(0x2d0)],'data':{'roomID':this[_0x4f07c3(0x36e)]}}),this[_0x4f07c3(0x48c)]['complete'](),this[_0x4f07c3(0x26e)][_0x4f07c3(0x33d)](),(_0x3b1fd6=this['_socket'])==null||_0x3b1fd6[_0x4f07c3(0x274)](),this[_0x4f07c3(0x4bf)]();}[_0x4f4baa(0x208)](_0x4809e3){const _0x14f85c=_0x4f4baa;_0x4809e3['cmd']===T[_0x14f85c(0x50a)]?this[_0x14f85c(0x1e9)](_0x4809e3):_0x4809e3[_0x14f85c(0x1bd)]===T[_0x14f85c(0x293)]&&this[_0x14f85c(0x54b)](_0x4809e3);}[_0x4f4baa(0x4c9)](_0x300208){const _0x16357d=_0x4f4baa;this['_sessionStatus$'][_0x16357d(0x469)](0x1),_0x300208[_0x16357d(0x3ef)]({'cmd':T[_0x16357d(0x50a)],'routeKey':this[_0x16357d(0x36e)],'routeType':'','data':{'rooms':[{'roomID':this[_0x16357d(0x36e)]}]}});}['_onJoinRoomEvent'](_0x4776c9){const _0x11f23f=_0x4f4baa;var _0xdf7d3e;if(_0x4776c9['code']===xe[_0x11f23f(0x563)]){this[_0x11f23f(0x4b5)][_0x11f23f(0x4d9)]({'type':Q['MessageType'][_0x11f23f(0x2d4)],'content':this[_0x11f23f(0x43b)]['t']('session.room-full')}),this[_0x11f23f(0x26e)][_0x11f23f(0x469)](0x2);return;}this[_0x11f23f(0x26e)][_0x11f23f(0x469)](0x3);const _0x9c339d=(_0xdf7d3e=_0x4776c9[_0x11f23f(0x253)]['roomInfos'][this[_0x11f23f(0x36e)]])==null?void 0x0:_0xdf7d3e[_0x11f23f(0x276)];_0x9c339d&&_0x9c339d[_0x11f23f(0x502)](_0x41b72d=>this[_0x11f23f(0x1d5)][_0x11f23f(0x2bd)](this[_0x11f23f(0x36e)],_0x41b72d));}[_0x4f4baa(0x54b)](_0xa26816){const _0x31c6ee=_0x4f4baa;try{const _0x33ffc9=_0xa26816[_0x31c6ee(0x253)];switch(_0x33ffc9[_0x31c6ee(0x474)]){case u['CollaborationEvent']['USERS_ENTER']:this[_0x31c6ee(0x4c4)](_0x33ffc9),this[_0x31c6ee(0x48c)][_0x31c6ee(0x469)](_0x33ffc9);break;case u['CollaborationEvent'][_0x31c6ee(0x41d)]:this[_0x31c6ee(0x1d9)](_0x33ffc9),this[_0x31c6ee(0x48c)][_0x31c6ee(0x469)](_0x33ffc9);break;case u[_0x31c6ee(0x441)][_0x31c6ee(0x553)]:this['_clearCollaborationTimeoutTimer'](),this[_0x31c6ee(0x48c)]['next'](_0x33ffc9);break;case u[_0x31c6ee(0x441)][_0x31c6ee(0x297)]:this[_0x31c6ee(0x581)][_0x31c6ee(0x370)](_0x31c6ee(0x504)+JSON[_0x31c6ee(0x4de)](_0x33ffc9)),this[_0x31c6ee(0x48c)][_0x31c6ee(0x469)](_0x33ffc9);break;case u[_0x31c6ee(0x441)]['COMMENT_UPDATE']:this[_0x31c6ee(0x391)][_0x31c6ee(0x4f0)](_0x33ffc9[_0x31c6ee(0x253)]),this[_0x31c6ee(0x48c)]['next'](_0x33ffc9);break;default:this[_0x31c6ee(0x48c)][_0x31c6ee(0x469)](_0x33ffc9);}}catch(_0xc7502d){this[_0x31c6ee(0x581)][_0x31c6ee(0x370)](_0xc7502d,_0xa26816);}}['_onUserJoin'](_0x531976){const _0x1b5873=_0x4f4baa;this[_0x1b5873(0x1d5)][_0x1b5873(0x2bd)](this[_0x1b5873(0x36e)],_0x531976[_0x1b5873(0x253)]);}[_0x4f4baa(0x1d9)](_0x178515){const _0x25e5f6=_0x4f4baa;this['_memberService'][_0x25e5f6(0x2e9)](this[_0x25e5f6(0x36e)],_0x178515[_0x25e5f6(0x253)][_0x25e5f6(0x3ae)]);}async['send'](_0x453b9c,_0x1d9134){const _0x57ae4f=_0x4f4baa;if(this[_0x57ae4f(0x432)]!==0x3||!this['_socket'])throw new Error(_0x57ae4f(0x3af));try{_0x453b9c[_0x57ae4f(0x474)]===u[_0x57ae4f(0x441)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this['_socket'][_0x57ae4f(0x3ef)]({'cmd':T[_0x57ae4f(0x1e8)],'routeKey':_0x1d9134,'routeType':'','data':_0x453b9c});}catch(_0x537b0a){this[_0x57ae4f(0x581)][_0x57ae4f(0x370)](_0x537b0a);}}[_0x4f4baa(0x372)](){const _0x5a5ce6=_0x4f4baa;var _0x34befb;this[_0x5a5ce6(0x517)]=window[_0x5a5ce6(0x38e)](()=>{const _0x55683d=_0x5a5ce6;this[_0x55683d(0x517)]=null,this[_0x55683d(0x4b5)][_0x55683d(0x4d9)]({'type':Q['MessageType']['Error'],'content':this[_0x55683d(0x43b)]['t']('session.collaboration-timeout')});},(_0x34befb=this[_0x5a5ce6(0x52a)][_0x5a5ce6(0x21c)](He))!=null?_0x34befb:dt);}[_0x4f4baa(0x54f)](){const _0x8194c3=_0x4f4baa;this[_0x8194c3(0x517)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x8194c3(0x517)]=null);}},exports[_0x4f4baa(0x49e)]=pt([y(0x2,c[_0x4f4baa(0x56d)]),y(0x3,N['IBeforeCloseService']),y(0x4,N[_0x4f4baa(0x249)]),y(0x5,c[_0x4f4baa(0x37f)]),y(0x6,_['Inject'](c[_0x4f4baa(0x4b4)])),y(0x7,_[_0x4f4baa(0x451)](G)),y(0x8,_['Inject'](Be))],exports[_0x4f4baa(0x49e)]),exports[_0x4f4baa(0x334)]=class extends c[_0x4f4baa(0x2e5)]{constructor(_0x2b2e1d,_0x56b5bf,_0x5ab5bd,_0x473f34,_0x426070,_0x28c7a8){const _0x49e17e=_0x4f4baa;super(),d(this,'_socket$',new g[(_0x49e17e(0x20d))](void 0x0)),d(this,'_sessions',new Map()),d(this,'_status$',new g['BehaviorSubject'](0x0)),d(this,_0x49e17e(0x57c),this[_0x49e17e(0x46f)][_0x49e17e(0x330)]()),d(this,_0x49e17e(0x242),!0x1),d(this,_0x49e17e(0x3c2)),d(this,_0x49e17e(0x35d)),d(this,_0x49e17e(0x475)),d(this,'_retryCount',0x0),(this[_0x49e17e(0x4d3)]=_0x2b2e1d,this[_0x49e17e(0x43b)]=_0x56b5bf,this['_messageService']=_0x5ab5bd,this[_0x49e17e(0x581)]=_0x473f34,this['_configService']=_0x426070,this['_socketService']=_0x28c7a8);}get['_socket'](){const _0x559698=_0x4f4baa;return this[_0x559698(0x392)]['getValue']();}[_0x4f4baa(0x4bf)](){const _0x289e60=_0x4f4baa;super[_0x289e60(0x4bf)](),this[_0x289e60(0x1eb)][_0x289e60(0x502)](_0x5acfd8=>_0x5acfd8['dispose']()),this[_0x289e60(0x1eb)][_0x289e60(0x362)](),this[_0x289e60(0x46f)][_0x289e60(0x33d)]();}async[_0x4f4baa(0x4ae)](_0x3b2764){const _0x160825=_0x4f4baa;if(this[_0x160825(0x1eb)][_0x160825(0x26c)](_0x3b2764))return this['_sessions'][_0x160825(0x2e7)](_0x3b2764);this[_0x160825(0x1c2)]();const _0x39efba=this[_0x160825(0x4d3)][_0x160825(0x3bb)](exports['CollaborationSession'],_0x3b2764,this[_0x160825(0x392)][_0x160825(0x330)]());return this['_sessions'][_0x160825(0x203)](_0x3b2764,_0x39efba),_0x39efba;}[_0x4f4baa(0x503)](_0x8ece55){const _0x1e4168=_0x4f4baa;var _0x433c7f;const _0xbbbab6=this['_sessions'][_0x1e4168(0x2e7)](_0x8ece55);_0xbbbab6&&(this[_0x1e4168(0x1eb)][_0x1e4168(0x2fd)](_0x8ece55),_0xbbbab6[_0x1e4168(0x274)]()),this[_0x1e4168(0x1eb)][_0x1e4168(0x1ea)]||(_0x433c7f=this[_0x1e4168(0x463)])==null||_0x433c7f[_0x1e4168(0x274)]();}['_createSocket'](){const _0x3bd732=_0x4f4baa;var _0x398079;const _0x44bcbb=(_0x398079=this[_0x3bd732(0x52a)][_0x3bd732(0x21c)](_t))!=null?_0x398079:Vt;return this[_0x3bd732(0x3a4)][_0x3bd732(0x227)](_0x44bcbb);}[_0x4f4baa(0x1c2)](){const _0x51874b=_0x4f4baa;try{const _0x573e43=this[_0x51874b(0x329)]();if(_0x573e43){const _0x1b1993=_0x573e43[_0x51874b(0x3ef)];_0x573e43[_0x51874b(0x3ef)]=_0x691e96=>(this[_0x51874b(0x416)](),_0x1b1993[_0x51874b(0x535)](_0x573e43,[_0x691e96])),_0x573e43[_0x51874b(0x23c)]['subscribe'](_0x1fc6ae=>this[_0x51874b(0x54d)](_0x573e43,_0x1fc6ae)),_0x573e43[_0x51874b(0x29b)]['pipe'](b[_0x51874b(0x3a5)](0x1))[_0x51874b(0x2fe)](_0x551e4f=>this[_0x51874b(0x581)][_0x51874b(0x370)]('[CollaborationSessionService]:\x20socket\x20error',_0x551e4f)),_0x573e43[_0x51874b(0x426)][_0x51874b(0x236)](b[_0x51874b(0x3a5)](0x1))['subscribe'](()=>{const _0x583938=_0x51874b;this[_0x583938(0x3d8)](_0x573e43);}),_0x573e43[_0x51874b(0x404)][_0x51874b(0x236)](b['take'](0x1))[_0x51874b(0x2fe)](_0x193cd5=>{const _0x6bed98=_0x51874b;this['_logService'][_0x6bed98(0x27e)]('[CollaborationSessionService]','socket\x20close',_0x193cd5),this['_onConnectionFailed']();});}}catch(_0x5df647){this[_0x51874b(0x581)]['error'](_0x5df647),this[_0x51874b(0x481)]();}}[_0x4f4baa(0x3d8)](_0x1a1b7c){const _0x3b77de=_0x4f4baa;this['_logService']['debug'](_0x3b77de(0x281),_0x3b77de(0x34b)),_0x1a1b7c['send']({'cmd':T[_0x3b77de(0x251)]}),this[_0x3b77de(0x416)]();}[_0x4f4baa(0x481)](){const _0x115221=_0x4f4baa;var _0x271189;this['_status$'][_0x115221(0x469)](0x2),this[_0x115221(0x392)][_0x115221(0x469)](null),this[_0x115221(0x2b6)](),this['_clearHeartbeatTimer'](),this[_0x115221(0x242)]=!0x1,this[_0x115221(0x270)]<((_0x271189=this[_0x115221(0x52a)][_0x115221(0x21c)](Kt))!=null?_0x271189:Xt)?(this['_scheduleReconnection'](this[_0x115221(0x270)]),this[_0x115221(0x270)]+=0x1):this['_messageService'][_0x115221(0x4d9)]({'type':Q[_0x115221(0x410)]['Error'],'content':this[_0x115221(0x43b)]['t'](_0x115221(0x4be))});}[_0x4f4baa(0x273)](_0x48a629){const _0x5e1a01=_0x4f4baa;var _0xbcbe69;const _0x56c5bf=((_0xbcbe69=this[_0x5e1a01(0x52a)][_0x5e1a01(0x21c)](Gt))!=null?_0xbcbe69:Yt)*0x2**_0x48a629;this[_0x5e1a01(0x4b5)][_0x5e1a01(0x4d9)]({'type':Q[_0x5e1a01(0x410)][_0x5e1a01(0x2d4)],'content':this[_0x5e1a01(0x43b)]['t'](_0x5e1a01(0x551))}),this[_0x5e1a01(0x475)]=setTimeout(()=>{const _0x3b4908=_0x5e1a01;this['_tryEnsureSocket'](),clearTimeout(this['_retryConnectingTimer']),this[_0x3b4908(0x475)]=null;},_0x56c5bf);}[_0x4f4baa(0x416)](){const _0x4c45e2=_0x4f4baa;var _0x3c27ca;this['_clearHeartbeatTimer'](),this[_0x4c45e2(0x3c2)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x3c27ca=this[_0x4c45e2(0x52a)][_0x4c45e2(0x21c)](ut))!=null?_0x3c27ca:Wt);}[_0x4f4baa(0x458)](){const _0x4095ef=_0x4f4baa;this[_0x4095ef(0x463)]['send']({'cmd':T['HEARTBEAT']}),this[_0x4095ef(0x226)]();}[_0x4f4baa(0x226)](){const _0x19828d=_0x4f4baa;var _0x328088;this[_0x19828d(0x35d)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x328088=this['_configService'][_0x19828d(0x21c)](He))!=null?_0x328088:dt);}[_0x4f4baa(0x54d)](_0x2741c7,_0xad6977){const _0x49d0d7=_0x4f4baa,{cmd:_0x4adb1f}=_0xad6977;_0x4adb1f===T[_0x49d0d7(0x251)]&&!this[_0x49d0d7(0x242)]&&(_0x2741c7[_0x49d0d7(0x3ae)]=_0xad6977[_0x49d0d7(0x253)][_0x49d0d7(0x3ae)],this[_0x49d0d7(0x392)][_0x49d0d7(0x469)](_0x2741c7),this[_0x49d0d7(0x46f)]['next'](0x3),this[_0x49d0d7(0x242)]=!0x0),_0x4adb1f===T[_0x49d0d7(0x321)]&&this[_0x49d0d7(0x2b6)](),this[_0x49d0d7(0x416)]();}[_0x4f4baa(0x4a9)](){const _0x25336e=_0x4f4baa;this[_0x25336e(0x3c2)]!=null&&(clearTimeout(this[_0x25336e(0x3c2)]),this[_0x25336e(0x3c2)]=null);}[_0x4f4baa(0x2b6)](){const _0x1203da=_0x4f4baa;this[_0x1203da(0x35d)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x1203da(0x35d)]=null);}},exports[_0x4f4baa(0x334)]=pt([y(0x0,_[_0x4f4baa(0x451)](_[_0x4f4baa(0x548)])),y(0x1,_[_0x4f4baa(0x451)](c[_0x4f4baa(0x4b4)])),y(0x2,N['IMessageService']),y(0x3,c[_0x4f4baa(0x56d)]),y(0x4,c[_0x4f4baa(0x37f)]),y(0x5,ke)],exports[_0x4f4baa(0x334)]);var cs=Object['defineProperty'],ls=Object[_0x4f4baa(0x2f2)],hs=(_0x72bf,_0x360ef2,_0x1d7965,_0x1c7409)=>{for(var _0x339b1a=_0x1c7409>0x1?void 0x0:_0x1c7409?ls(_0x360ef2,_0x1d7965):_0x360ef2,_0x9244c4=_0x72bf['length']-0x1,_0x4fa0f8;_0x9244c4>=0x0;_0x9244c4--)(_0x4fa0f8=_0x72bf[_0x9244c4])&&(_0x339b1a=(_0x1c7409?_0x4fa0f8(_0x360ef2,_0x1d7965,_0x339b1a):_0x4fa0f8(_0x339b1a))||_0x339b1a);return _0x1c7409&&_0x339b1a&&cs(_0x360ef2,_0x1d7965,_0x339b1a),_0x339b1a;},ie=(_0x1ffdba,_0xb76f2b)=>(_0x168ec7,_0xb0aa6b)=>_0xb76f2b(_0x168ec7,_0xb0aa6b,_0x1ffdba);exports[_0x4f4baa(0x3a1)]=class extends c['Disposable']{constructor(_0x5f295b,_0x3cbe84,_0x555143,_0x44977a,_0x2c323a){const _0x27a929=_0x4f4baa;super(),d(this,_0x27a929(0x437),new Map()),d(this,_0x27a929(0x2e3),new Map()),d(this,_0x27a929(0x1c0),!0x1),(this[_0x27a929(0x52a)]=_0x5f295b,this[_0x27a929(0x1dd)]=_0x3cbe84,this[_0x27a929(0x49f)]=_0x555143,this['_localeService']=_0x44977a,this[_0x27a929(0x1ba)]=_0x2c323a,this[_0x27a929(0x1f2)]());}[_0x4f4baa(0x4aa)](){const _0x1660e9=_0x4f4baa;this[_0x1660e9(0x1c0)]=!0x0;}[_0x4f4baa(0x464)](){const _0x4e5101=_0x4f4baa;this[_0x4e5101(0x1c0)]=!0x1;}['dispose'](){const _0x461f33=_0x4f4baa;this[_0x461f33(0x24d)]()[_0x461f33(0x204)](()=>super[_0x461f33(0x4bf)]());}async[_0x4f4baa(0x24b)](_0x526b9b){const _0x279bf4=_0x4f4baa;return this['_disabled']?null:this[_0x279bf4(0x1dd)][_0x279bf4(0x510)](Xe(_0x526b9b));}async['saveOfflineData'](_0xf29768,_0x46198f){const _0xd73c64=_0x4f4baa;return!!this[_0xd73c64(0x1dd)]['setItem'](_0xf29768,_0x46198f);}[_0x4f4baa(0x531)](_0x3d19f4,_0x2f53dd,_0x4d463b,_0x20ffcb){const _0x56101f=_0x4f4baa,_0x4d27ea=this[_0x56101f(0x1ba)][_0x56101f(0x352)](_0x3d19f4);this[_0x56101f(0x437)][_0x56101f(0x203)](_0x3d19f4,{'unitID':_0x3d19f4,'type':_0x2f53dd,'awaitingChangeset':_0x4d463b,'mutations':_0x20ffcb,'rev':_0x4d27ea}),this[_0x56101f(0x2e3)][_0x56101f(0x26c)](_0x3d19f4)||this[_0x56101f(0x4a1)](_0x3d19f4);}[_0x4f4baa(0x4a1)](_0x202172){const _0x1805b9=_0x4f4baa,_0x4e8c40=this['_getSaveTimeout']();_0x4e8c40===0x0?this[_0x1805b9(0x476)](_0x202172):this[_0x1805b9(0x2e3)][_0x1805b9(0x203)](_0x202172,setTimeout(()=>this['_saveCache'](_0x202172),_0x4e8c40));}[_0x4f4baa(0x565)](){const _0x35ccd1=_0x4f4baa;var _0x4f64f0;return(_0x4f64f0=this[_0x35ccd1(0x52a)]['getConfig'](St))!=null?_0x4f64f0:qt;}[_0x4f4baa(0x476)](_0x3a50eb){const _0x30e37c=_0x4f4baa,_0x51444e=this[_0x30e37c(0x2e3)][_0x30e37c(0x2e7)](_0x3a50eb);return _0x51444e!==void 0x0&&window['clearTimeout'](_0x51444e),this['_localStorageService'][_0x30e37c(0x278)](Xe(_0x3a50eb),this[_0x30e37c(0x437)][_0x30e37c(0x2e7)](_0x3a50eb))['then'](()=>this[_0x30e37c(0x2e3)][_0x30e37c(0x2fd)](_0x3a50eb));}async['exhaustSavingTask'](){const _0x20b3e9=_0x4f4baa,_0x99182c=[];this[_0x20b3e9(0x2e3)][_0x20b3e9(0x502)]((_0x536103,_0x4b8418)=>{const _0x1d4b06=_0x20b3e9;window[_0x1d4b06(0x2c6)](_0x536103),_0x99182c[_0x1d4b06(0x589)](this['_saveCache'](_0x4b8418)[_0x1d4b06(0x204)](()=>{const _0x1b1442=_0x1d4b06;this[_0x1b1442(0x2e3)][_0x1b1442(0x2fd)](_0x4b8418);}));}),await Promise[_0x20b3e9(0x38f)](_0x99182c);}['_setupBeforeClosingHandler'](){const _0x9a000b=_0x4f4baa;this['disposeWithMe'](this[_0x9a000b(0x49f)][_0x9a000b(0x1c8)](()=>{const _0x336177=_0x9a000b;if(this[_0x336177(0x2e3)]['size'])return this[_0x336177(0x43b)]['t'](_0x336177(0x52d));}));}},exports[_0x4f4baa(0x3a1)]=hs([ie(0x0,c[_0x4f4baa(0x37f)]),ie(0x1,c[_0x4f4baa(0x4ee)]),ie(0x2,N[_0x4f4baa(0x299)]),ie(0x3,_[_0x4f4baa(0x451)](c[_0x4f4baa(0x4b4)])),ie(0x4,_['Inject'](u['RevisionService']))],exports[_0x4f4baa(0x3a1)]);function Xe(_0x4a8843){const _0x12d9be=_0x4f4baa;return _0x12d9be(0x315)+_0x4a8843;}const Ce=_[_0x4f4baa(0x30e)](_0x4f4baa(0x332));var Et=(_0x3081e6=>(_0x3081e6[_0x3081e6[_0x4f4baa(0x572)]=0x0]=_0x4f4baa(0x572),_0x3081e6[_0x3081e6['OTHER_CLIENTS_EDITING']=0x1]=_0x4f4baa(0x2f5),_0x3081e6))(Et||{});const qe=0x7530,Je=_0x4f4baa(0x223);class _s extends c[_0x4f4baa(0x2e5)]{constructor(){const _0x522ccf=_0x4f4baa;super(),d(this,'_id',c[_0x522ccf(0x386)][_0x522ccf(0x40a)]()),d(this,_0x522ccf(0x1dc),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x522ccf(0x2f4),null),d(this,_0x522ccf(0x1c1),new Map()),d(this,_0x522ccf(0x374),new Map()),this['_init']();}[_0x4f4baa(0x4bf)](){const _0x4f12f8=_0x4f4baa;super[_0x4f12f8(0x4bf)](),this[_0x4f12f8(0x1c1)][_0x4f12f8(0x502)]((_0xb40b69,_0x2c1925)=>this[_0x4f12f8(0x34e)](_0x2c1925)),this[_0x4f12f8(0x2f4)]&&window[_0x4f12f8(0x3fd)](this[_0x4f12f8(0x2f4)]);}[_0x4f4baa(0x588)](_0x51f7bb){const _0x5ad81f=_0x4f4baa;return this[_0x5ad81f(0x2be)](_0x51f7bb)[_0x5ad81f(0x236)](g[_0x5ad81f(0x389)]());}[_0x4f4baa(0x390)](_0x2be5f4){const _0x3efd8b=_0x4f4baa;this[_0x3efd8b(0x1dc)][_0x3efd8b(0x1ea)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3efd8b(0x1dc)][_0x3efd8b(0x29a)](_0x2be5f4),this[_0x3efd8b(0x363)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2be5f4],'isForwarded':!0x1});}[_0x4f4baa(0x48e)](_0x38f8fc){const _0x3e469b=_0x4f4baa;this[_0x3e469b(0x1dc)][_0x3e469b(0x2fd)](_0x38f8fc),this['_selfUnitIDs'][_0x3e469b(0x1ea)]===0x0&&this[_0x3e469b(0x2f4)]&&window['clearInterval'](this[_0x3e469b(0x2f4)]);}['_init'](){const _0x5c0e55=_0x4f4baa;this[_0x5c0e55(0x430)](c[_0x5c0e55(0x58c)](g[_0x5c0e55(0x55d)](window,_0x5c0e55(0x3e6))[_0x5c0e55(0x2fe)](_0xabe1a3=>{const _0x215065=_0x5c0e55;if(_0xabe1a3['key']!==Je||!_0xabe1a3['newValue'])return;const _0x4675e9=JSON[_0x215065(0x268)](_0xabe1a3[_0x215065(0x314)]);this['_handleEvent'](_0x4675e9);}))),window['addEventListener'](_0x5c0e55(0x533),()=>this[_0x5c0e55(0x363)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x5c0e55(0x1dc)])}));}[_0x4f4baa(0x3be)](_0x51ea0e){const _0x71b6b3=_0x4f4baa;switch(_0x51ea0e['type']){case 0x0:this[_0x71b6b3(0x3d0)](_0x51ea0e);break;case 0x1:this[_0x71b6b3(0x44d)](_0x51ea0e);break;case 0x2:this[_0x71b6b3(0x414)](_0x51ea0e);break;}}[_0x4f4baa(0x3d0)](_0xd99157){const _0x32a1f6=_0x4f4baa,{unitIDs:_0xa7536d,memberID:_0x46e3e4,isForwarded:_0x3a6d5e}=_0xd99157;_0xa7536d[_0x32a1f6(0x502)](_0x3a8d1e=>{const _0x1ad074=_0x32a1f6;if(!_0x3a6d5e&&this[_0x1ad074(0x549)][_0x1ad074(0x26c)](_0x3a8d1e)&&this[_0x1ad074(0x2be)](_0x3a8d1e)['next'](0x1),!this['_unitOnClients'][_0x1ad074(0x26c)](_0x3a8d1e)||!this[_0x1ad074(0x549)][_0x1ad074(0x2e7)](_0x3a8d1e)['has'](_0x46e3e4)){const _0x16fc4f=this[_0x1ad074(0x549)][_0x1ad074(0x2e7)](_0x3a8d1e)||new Set();_0x16fc4f[_0x1ad074(0x29a)](_0x46e3e4),this['_unitOnClients'][_0x1ad074(0x203)](_0x3a8d1e,_0x16fc4f),this[_0x1ad074(0x31e)](_0x46e3e4);}}),_0x3a6d5e||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x32a1f6(0x1dc)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4b91c8){const _0x446d18=_0x4f4baa;this[_0x446d18(0x34e)](_0x4b91c8);const _0x280501=window['setTimeout'](()=>{const _0xb6794e=_0x446d18;this[_0xb6794e(0x549)][_0xb6794e(0x502)](_0x4fce9a=>{const _0xe23c91=_0xb6794e;_0x4fce9a[_0xe23c91(0x2fd)](_0x4b91c8);});},qe*0x2);this[_0x446d18(0x1c1)]['set'](_0x4b91c8,_0x280501);}[_0x4f4baa(0x34e)](_0x1fdb2a){const _0x4ef4a6=_0x4f4baa;if(this[_0x4ef4a6(0x1c1)]['has'](_0x1fdb2a)){const _0x9b943e=this['_clearOtherTimers'][_0x4ef4a6(0x2e7)](_0x1fdb2a);_0x9b943e&&window[_0x4ef4a6(0x2c6)](_0x9b943e),this[_0x4ef4a6(0x1c1)][_0x4ef4a6(0x203)](_0x1fdb2a,null);}}[_0x4f4baa(0x44d)](_0xd1cbb0){const _0x57c958=_0x4f4baa,{memberID:_0xb82fac,unitIDs:_0x132642}=_0xd1cbb0;_0x132642[_0x57c958(0x502)](_0x2e063d=>{const _0x169c8b=_0x57c958;var _0x49acd0;const _0x2daa33=this[_0x169c8b(0x549)]['get'](_0x2e063d);_0x2daa33&&(_0x2daa33[_0x169c8b(0x2fd)](_0xb82fac),(_0x49acd0=this[_0x169c8b(0x2be)](_0x2e063d))==null||_0x49acd0[_0x169c8b(0x469)](_0x2daa33['size']===0x0?0x0:0x1));}),this[_0x57c958(0x34e)](_0xb82fac);}[_0x4f4baa(0x414)](_0x745c6f){const _0x1ff5c6=_0x4f4baa;this[_0x1ff5c6(0x31e)](_0x745c6f[_0x1ff5c6(0x3ae)]);}[_0x4f4baa(0x363)](_0x1e2e6c){const _0x1ec943=_0x4f4baa;localStorage[_0x1ec943(0x278)](Je,JSON[_0x1ec943(0x4de)](_0x1e2e6c));}['_scheduleHeartbeat'](){const _0x42c185=_0x4f4baa;this[_0x42c185(0x2f4)]=window[_0x42c185(0x3df)](()=>{const _0x23b0eb=_0x42c185;this[_0x23b0eb(0x363)]({'type':0x2,'memberID':this[_0x23b0eb(0x4a4)]});},qe);}[_0x4f4baa(0x2be)](_0x435788){const _0x284c76=_0x4f4baa;return this[_0x284c76(0x374)][_0x284c76(0x26c)](_0x435788)||this['_unitStatus'][_0x284c76(0x203)](_0x435788,new g[(_0x284c76(0x20d))](0x0)),this[_0x284c76(0x374)][_0x284c76(0x2e7)](_0x435788);}}var us=Object['defineProperty'],ds=Object[_0x4f4baa(0x2f2)],Ss=(_0x3f0f75,_0x47e671,_0x4eb3e2,_0x280fd0)=>{const _0x1a74b4=_0x4f4baa;for(var _0x57e8e7=_0x280fd0>0x1?void 0x0:_0x280fd0?ds(_0x47e671,_0x4eb3e2):_0x47e671,_0xe0171c=_0x3f0f75[_0x1a74b4(0x56e)]-0x1,_0x17c38f;_0xe0171c>=0x0;_0xe0171c--)(_0x17c38f=_0x3f0f75[_0xe0171c])&&(_0x57e8e7=(_0x280fd0?_0x17c38f(_0x47e671,_0x4eb3e2,_0x57e8e7):_0x17c38f(_0x57e8e7))||_0x57e8e7);return _0x280fd0&&_0x57e8e7&&us(_0x47e671,_0x4eb3e2,_0x57e8e7),_0x57e8e7;},ze=(_0x3c21e1,_0x294b74)=>(_0x51a284,_0x4a098d)=>_0x294b74(_0x51a284,_0x4a098d,_0x3c21e1);let fe=class{constructor(_0x1ce38d,_0x2597ce){const _0x4cdd4d=_0x4f4baa;this[_0x4cdd4d(0x4d3)]=_0x1ce38d,this['_transformService']=_0x2597ce;}[_0x4f4baa(0x422)](_0x365f2c){this['_transformUndoRedoStack'](_0x365f2c),this['_transformPreviousActiveRange'](_0x365f2c);}['transformRemoteChangeset'](_0x34495e){const _0x3eb713=_0x4f4baa,_0x3877ea=this['_injector']['get'](M[_0x3eb713(0x1f8)]),{redoCache:_0x4688cc}=_0x3877ea[_0x3eb713(0x415)]();if(_0x4688cc[_0x3eb713(0x56e)]===0x0)return _0x34495e;let _0x19202c=c[_0x3eb713(0x386)][_0x3eb713(0x51a)](_0x34495e['mutations'][0x0]);for(let _0xd5fd6c=0x0;_0xd5fd6c<_0x4688cc[_0x3eb713(0x56e)];_0xd5fd6c++){const _0xb00700={'id':_0x3eb713(0x40d),'params':{..._0x4688cc[_0xd5fd6c]}},_0x5091c5=this['_transformService'][_0x3eb713(0x54e)](_0x19202c,_0xb00700,!0x1);if(u[_0x3eb713(0x3b5)](_0x5091c5))throw _0x5091c5[_0x3eb713(0x370)];_0x19202c=_0x5091c5[_0x3eb713(0x3d5)];}return{...c[_0x3eb713(0x386)][_0x3eb713(0x51a)](_0x34495e),'mutations':[_0x19202c]};}[_0x4f4baa(0x4cf)](_0xf8e3a3){const _0x2696ba=_0x4f4baa,_0x4747c8=this[_0x2696ba(0x4d3)]['get'](M['IMEInputManagerService']),{undoCache:_0x1d23df,redoCache:_0x56b41d}=_0x4747c8['getUndoRedoMutationParamsCache']();if(_0x1d23df[_0x2696ba(0x56e)]===0x0||_0x56b41d[_0x2696ba(0x56e)]===0x0)return;const _0x225ffe=[],_0x532a14=[];let _0x12a051=c[_0x2696ba(0x386)][_0x2696ba(0x51a)](_0xf8e3a3['mutations'][0x0]),_0x3fd4cb=c['Tools'][_0x2696ba(0x51a)](_0xf8e3a3['mutations'][0x0]);for(let _0x26fd5d=_0x1d23df['length']-0x1;_0x26fd5d>=0x0;_0x26fd5d--){const _0x236d56={'id':_0x2696ba(0x40d),'params':{..._0x1d23df[_0x26fd5d]}},_0x3df5a6={'id':'doc.mutation.rich-text-editing','params':{..._0x56b41d[_0x26fd5d]}},_0x35fa7a=this[_0x2696ba(0x394)][_0x2696ba(0x54e)](_0x12a051,_0x236d56,!0x1),_0x5515b0=this[_0x2696ba(0x394)][_0x2696ba(0x54e)](_0x3fd4cb,_0x3df5a6,!0x1);if(u[_0x2696ba(0x3b5)](_0x35fa7a))throw _0x35fa7a[_0x2696ba(0x370)];if(u[_0x2696ba(0x3b5)](_0x5515b0))throw _0x5515b0['error'];_0x225ffe[_0x2696ba(0x27c)](_0x35fa7a[_0x2696ba(0x522)]['params']),_0x532a14['unshift'](_0x5515b0[_0x2696ba(0x522)]['params']),_0x12a051=_0x35fa7a[_0x2696ba(0x3d5)],_0x3fd4cb=_0x5515b0[_0x2696ba(0x3d5)];}_0x4747c8[_0x2696ba(0x4b1)]({'undoCache':_0x225ffe,'redoCache':_0x532a14});}['_transformPreviousActiveRange'](_0x1a8258){const _0x51e84c=_0x4f4baa,_0x580ea0=this[_0x51e84c(0x4d3)]['get'](M['IMEInputManagerService']),_0xef2fe2=_0x580ea0[_0x51e84c(0x55f)]();if(_0xef2fe2==null)return;const _0x1368e6=[{'id':_0x51e84c(0x40d),'params':{'unitId':_0x1a8258[_0x51e84c(0x427)],'actions':null,'textRanges':[_0xef2fe2]}}],_0x3bc25d=this[_0x51e84c(0x394)][_0x51e84c(0x30f)](_0x1a8258,_0x1368e6);if(!u['isTransformMutationsWithChangesetSuccess'](_0x3bc25d))throw _0x3bc25d[_0x51e84c(0x370)];const _0x401552=_0x3bc25d[_0x51e84c(0x522)][0x0][_0x51e84c(0x4fb)][_0x51e84c(0x4bd)];Array[_0x51e84c(0x32a)](_0x401552)&&_0x401552[_0x51e84c(0x56e)]&&_0x580ea0['setActiveRange'](_0x401552[0x0]);}};fe=Ss([ze(0x0,_[_0x4f4baa(0x451)](_['Injector'])),ze(0x1,u[_0x4f4baa(0x263)])],fe);var vs=Object[_0x4f4baa(0x4e3)],gs=Object['getOwnPropertyDescriptor'],fs=(_0x5a4acf,_0x5b906d,_0x50b28b,_0x1cc083)=>{for(var _0x23b56e=_0x1cc083>0x1?void 0x0:_0x1cc083?gs(_0x5b906d,_0x50b28b):_0x5b906d,_0x7f7289=_0x5a4acf['length']-0x1,_0x51b7b4;_0x7f7289>=0x0;_0x7f7289--)(_0x51b7b4=_0x5a4acf[_0x7f7289])&&(_0x23b56e=(_0x1cc083?_0x51b7b4(_0x5b906d,_0x50b28b,_0x23b56e):_0x51b7b4(_0x23b56e))||_0x23b56e);return _0x1cc083&&_0x23b56e&&vs(_0x5b906d,_0x50b28b,_0x23b56e),_0x23b56e;},Ze=(_0x42d4c4,_0x7c3852)=>(_0x41049,_0x5410e3)=>_0x7c3852(_0x41049,_0x5410e3,_0x42d4c4);let me=class{constructor(_0x24c778,_0x4af988){const _0x17f0e9=_0x4f4baa;this[_0x17f0e9(0x4d3)]=_0x24c778,this[_0x17f0e9(0x394)]=_0x4af988;}['transformSelections'](_0x40aa63){const _0x47f9be=_0x4f4baa;var _0x3d8ac1;const _0x121f8c=this['_injector'][_0x47f9be(0x2e7)](M['TextSelectionManagerService']),_0x4884ad=(_0x3d8ac1=_0x121f8c[_0x47f9be(0x3ff)]())!=null?_0x3d8ac1:[],_0x400479=_0x4884ad==null?void 0x0:_0x4884ad['map'](M['serializeTextRange']);if(_0x400479[_0x47f9be(0x56e)]===0x0)return;const _0x258a63=[{'id':_0x47f9be(0x40d),'params':{'unitId':_0x40aa63['unitID'],'actions':null,'textRanges':_0x400479}}],_0x41cb83=this[_0x47f9be(0x394)][_0x47f9be(0x30f)](_0x40aa63,_0x258a63);if(!u[_0x47f9be(0x20b)](_0x41cb83))throw _0x41cb83[_0x47f9be(0x370)];const _0x342b71=_0x41cb83[_0x47f9be(0x522)][0x0][_0x47f9be(0x4fb)][_0x47f9be(0x4bd)];Array[_0x47f9be(0x32a)](_0x342b71)&&_0x342b71['length']&&_0x121f8c[_0x47f9be(0x377)](_0x342b71,!0x1);}};me=fs([Ze(0x0,_[_0x4f4baa(0x451)](_[_0x4f4baa(0x548)])),Ze(0x1,u[_0x4f4baa(0x263)])],me);function Ct(_0x3d62a6){const _0x202288=_0x4f4baa;let _0x1b0a45='';for(const _0x2665ac of _0x3d62a6){const {startOffset:_0x47f1cd,endOffset:_0x5d62fe,isActive:_0x4fe716}=_0x2665ac;_0x1b0a45[_0x202288(0x56e)]&&(_0x1b0a45+=','),_0x1b0a45+=_0x47f1cd+':'+_0x5d62fe+':'+(_0x4fe716?'1':'0');}return _0x1b0a45;}function ms(_0xb45c2b){const _0x1e7a9d=_0x4f4baa,_0x17823a=_0xb45c2b['split'](','),_0x5c88ee=[];for(const _0xafd899 of _0x17823a){const [_0x101345,_0x2c2802,_0x4cab2b]=_0xafd899['split'](':');_0x5c88ee[_0x1e7a9d(0x589)]({'startOffset':Number(_0x101345),'endOffset':Number(_0x2c2802),'collapsed':_0x101345===_0x2c2802,'isActive':_0x4cab2b==='1'});}return _0x5c88ee[_0x1e7a9d(0x277)](_0x4fcf9b=>_0x4fcf9b['isActive'])||(_0x5c88ee[0x0][_0x1e7a9d(0x3c5)]=!0x0),_0x5c88ee;}class Fe extends c[_0x4f4baa(0x3b4)]{constructor(){const _0x59746c=_0x4f4baa;super(...arguments),d(this,_0x59746c(0x292),new g[(_0x59746c(0x20d))](null)),d(this,_0x59746c(0x4ed),this['_collabCursorState$'][_0x59746c(0x330)]());}['syncEditingCollabCursor'](_0x7cc6c8){const _0x398594=_0x4f4baa,{unitID:_0x5963bb,memberID:_0x4cac98,textRanges:_0x194502}=_0x7cc6c8,_0x2143a0=Ct(_0x194502),_0x1c1eb0={'unitID':_0x5963bb,'memberID':_0x4cac98,'selection':_0x2143a0};this[_0x398594(0x292)][_0x398594(0x469)](_0x1c1eb0);}}var Is=Object[_0x4f4baa(0x4e3)],ps=Object[_0x4f4baa(0x2f2)],Es=(_0x497695,_0x289b75,_0x469221,_0x5bc05f)=>{const _0x56d543=_0x4f4baa;for(var _0x4fc9ee=_0x5bc05f>0x1?void 0x0:_0x5bc05f?ps(_0x289b75,_0x469221):_0x289b75,_0x2d86b7=_0x497695[_0x56d543(0x56e)]-0x1,_0x1bc7c7;_0x2d86b7>=0x0;_0x2d86b7--)(_0x1bc7c7=_0x497695[_0x2d86b7])&&(_0x4fc9ee=(_0x5bc05f?_0x1bc7c7(_0x289b75,_0x469221,_0x4fc9ee):_0x1bc7c7(_0x4fc9ee))||_0x4fc9ee);return _0x5bc05f&&_0x4fc9ee&&Is(_0x289b75,_0x469221,_0x4fc9ee),_0x4fc9ee;},Qe=(_0x4a0a24,_0x591558)=>(_0x7e4c7b,_0x576917)=>_0x591558(_0x7e4c7b,_0x576917,_0x4a0a24);function Cs(_0x43f211){const _0x233031=_0x4f4baa,{unitID:_0x4e8ea6,mutations:_0x3a7556}=_0x43f211;return{'unitId':_0x4e8ea6,'subUnitId':_0x3a7556[0x0]['params'][_0x233031(0x462)]};}let Ie=class{constructor(_0x4d43d3,_0x147f8a){const _0x5c8091=_0x4f4baa;this[_0x5c8091(0x4d3)]=_0x4d43d3,this[_0x5c8091(0x394)]=_0x147f8a;}['transformSelections'](_0x343cab){const _0x3ee41a=_0x4f4baa;var _0x4a3666,_0x634437,_0x30d2c9;const _0x447bfd=this['_injector'][_0x3ee41a(0x2e7)](E[_0x3ee41a(0x1d7)]),{unitId:_0x3a00ca,subUnitId:_0x195c3b}=Cs(_0x343cab),_0x19fc67=_0x447bfd['getWorkbookSelections'](_0x3a00ca)[_0x3ee41a(0x3ff)]();if(_0x19fc67[_0x3ee41a(0x56e)]===0x0||!_0x3a00ca||!_0x195c3b)return;const _0x1c2514=[{'id':E[_0x3ee41a(0x554)]['id'],'params':{'unitId':_0x3a00ca,'subUnitId':_0x195c3b,'selections':c[_0x3ee41a(0x386)]['deepClone'](_0x19fc67)}}],_0x1910ef=this[_0x3ee41a(0x394)][_0x3ee41a(0x30f)](_0x343cab,_0x1c2514);if(!u[_0x3ee41a(0x20b)](_0x1910ef))throw _0x1910ef['error'];const _0x529490=(_0x30d2c9=(_0x634437=(_0x4a3666=_0x1910ef[_0x3ee41a(0x522)][0x0])==null?void 0x0:_0x4a3666[_0x3ee41a(0x4fb)])==null?void 0x0:_0x634437[_0x3ee41a(0x22a)])!=null?_0x30d2c9:_0x19fc67;Array[_0x3ee41a(0x32a)](_0x529490)&&_0x529490[_0x3ee41a(0x56e)]&&this['_injector'][_0x3ee41a(0x2e7)](c['ICommandService'])['executeCommand'](E[_0x3ee41a(0x554)]['id'],{'unitId':_0x3a00ca,'subUnitId':_0x195c3b,'selections':_0x529490});}};Ie=Es([Qe(0x0,_['Inject'](_[_0x4f4baa(0x548)])),Qe(0x1,u[_0x4f4baa(0x263)])],Ie);const bs=new Set([E[_0x4f4baa(0x442)]['id']]);function Ts(_0x334332,_0x28bbc0,_0x829aac,_0x4cca01,_0x3d048e){const _0x175df3=_0x4f4baa;var _0x224476,_0x58da74,_0x2b82fe,_0x4e9b7a;const _0x8f9539=[];for(const _0xda2021 of _0x334332)if(bs[_0x175df3(0x26c)](_0xda2021['id'])){if(_0x8f9539['length']>0x0)break;_0x8f9539['push'](_0xda2021);break;}else _0x8f9539[_0x175df3(0x589)](_0xda2021);const _0x12f475=(_0x58da74=(_0x224476=_0x3d048e[_0x175df3(0x456)]())==null?void 0x0:_0x224476[_0x175df3(0x1d4)])!=null?_0x58da74:'unknown',_0x34a552=(_0x4e9b7a=(_0x2b82fe=_0x3d048e['getCurrentUser']())==null?void 0x0:_0x2b82fe['memberID'])!=null?_0x4e9b7a:_0x175df3(0x50c);return{'changeset':{'unitID':_0x28bbc0,'type':u[_0x175df3(0x3a2)](_0x829aac[_0x175df3(0x53a)](_0x28bbc0)),'baseRev':_0x4cca01[_0x175df3(0x352)](_0x28bbc0),'revision':0x0,'userID':_0x12f475,'memberID':_0x34a552,'mutations':_0x8f9539},'pendingMutations':_0x334332[_0x175df3(0x21a)](_0x8f9539[_0x175df3(0x56e)])};}function Rs(_0x4b9162,_0x271f9d,_0x13695f,_0x217c6a,_0x294c79){const _0x3e2341=_0x4f4baa;var _0x2d3131,_0x522a94,_0x24584f,_0x201d9d;const _0x43c992=[_0x4b9162[_0x3e2341(0x4d8)]((_0x459ffc,_0x324195)=>{const _0x2a4e57=_0x3e2341;var _0x30d585;const {id:_0x3b78b0}=_0x459ffc,{id:_0x16f161,type:_0x395a14}=_0x324195,_0x23be07=(_0x30d585=_0x459ffc['params'])!=null?_0x30d585:{'actions':null},_0x2231b4=_0x324195[_0x2a4e57(0x4fb)];if(_0x3b78b0&&_0x3b78b0!==_0x16f161)throw new Error(_0x2a4e57(0x3eb)+_0x3b78b0+_0x2a4e57(0x328)+_0x16f161+'.');return{..._0x459ffc,'id':_0x16f161,'type':_0x395a14,'params':{'unitId':_0x2231b4[_0x2a4e57(0x3dd)],'textRanges':_0x2231b4['textRanges'],'actions':c['JSONX'][_0x2a4e57(0x4ba)](_0x23be07[_0x2a4e57(0x371)],_0x2231b4[_0x2a4e57(0x371)])}};},{})],_0xea02d0=(_0x522a94=(_0x2d3131=_0x294c79['getCurrentUser']())==null?void 0x0:_0x2d3131[_0x3e2341(0x1d4)])!=null?_0x522a94:_0x3e2341(0x50c),_0x2aeb48=(_0x201d9d=(_0x24584f=_0x294c79[_0x3e2341(0x456)]())==null?void 0x0:_0x24584f[_0x3e2341(0x3ae)])!=null?_0x201d9d:_0x3e2341(0x50c);return{'changeset':{'unitID':_0x271f9d,'type':u[_0x3e2341(0x3a2)](_0x13695f[_0x3e2341(0x53a)](_0x271f9d)),'baseRev':_0x217c6a[_0x3e2341(0x352)](_0x271f9d),'revision':0x0,'userID':_0xea02d0,'memberID':_0x2aeb48,'mutations':_0x43c992},'pendingMutations':[]};}var Os=Object[_0x4f4baa(0x4e3)],Ds=Object[_0x4f4baa(0x2f2)],K=(_0x4177e1,_0x104f42,_0x168497,_0x154ef9)=>{const _0x3cadf8=_0x4f4baa;for(var _0xcc813d=_0x154ef9>0x1?void 0x0:_0x154ef9?Ds(_0x104f42,_0x168497):_0x104f42,_0x5a33bb=_0x4177e1[_0x3cadf8(0x56e)]-0x1,_0x464850;_0x5a33bb>=0x0;_0x5a33bb--)(_0x464850=_0x4177e1[_0x5a33bb])&&(_0xcc813d=(_0x154ef9?_0x464850(_0x104f42,_0x168497,_0xcc813d):_0x464850(_0xcc813d))||_0xcc813d);return _0x154ef9&&_0xcc813d&&Os(_0x104f42,_0x168497,_0xcc813d),_0xcc813d;},f=(_0x2895b7,_0x199221)=>(_0x3e87b0,_0x57c8ac)=>_0x199221(_0x3e87b0,_0x57c8ac,_0x2895b7),P=(_0x54a1ae=>(_0x54a1ae['NOT_COLLAB']='not_collab',_0x54a1ae[_0x4f4baa(0x555)]='synced',_0x54a1ae['PENDING']=_0x4f4baa(0x39f),_0x54a1ae[_0x4f4baa(0x35b)]='awaiting',_0x54a1ae['AWAITING_WITH_PENDING']=_0x4f4baa(0x512),_0x54a1ae[_0x4f4baa(0x30a)]=_0x4f4baa(0x529),_0x54a1ae['CONFLICT']=_0x4f4baa(0x213),_0x54a1ae[_0x4f4baa(0x4d4)]='offline',_0x54a1ae))(P||{});class X{constructor(_0x2c76ee,_0x3540c7,_0x3defbb,_0x3f6d36,_0x35e2e5,_0x4d9e23,_0x503969,_0x4f4e67,_0x51e000){const _0x3a2d6a=_0x4f4baa;d(this,_0x3a2d6a(0x557),null),d(this,'_pendingMutations',[]),(this[_0x3a2d6a(0x427)]=_0x2c76ee,this[_0x3a2d6a(0x302)]=_0x3540c7,this[_0x3a2d6a(0x547)]=_0x35e2e5,this['_commandService']=_0x4d9e23,this['_undoRedoService']=_0x503969,this['_revisionService']=_0x4f4e67,this[_0x3a2d6a(0x403)]=_0x51e000,this[_0x3a2d6a(0x557)]=_0x3defbb,this['_pendingMutations']=_0x3f6d36);}[_0x4f4baa(0x2b9)](_0x1573c9){const _0xba7d38=_0x4f4baa,_0x1bb16b=this[_0xba7d38(0x1ba)][_0xba7d38(0x352)](this['unitID']);return _0x1573c9[_0xba7d38(0x434)]>_0x1bb16b+0x1?(this[_0xba7d38(0x547)]['onMissingChangesets']({'from':_0x1bb16b,'to':_0x1573c9[_0xba7d38(0x434)]-0x1}),!0x0):!0x1;}[_0x4f4baa(0x440)](_0x3a8868){const _0x3c5b1c=_0x4f4baa;this['_undoRedoService'][_0x3c5b1c(0x379)](this[_0x3c5b1c(0x427)],_0x3a8868);}[_0x4f4baa(0x3e4)](_0x54dc36){const _0x303cfd=_0x4f4baa;var _0x1656be,_0x48eb73;(_0x48eb73=(_0x1656be=this[_0x303cfd(0x547)])['onTransformSelections'])==null||_0x48eb73[_0x303cfd(0x234)](_0x1656be,_0x54dc36);}[_0x4f4baa(0x356)](_0x34930d){const _0x1a6850=_0x4f4baa;var _0x253e1c,_0x2e2f3d;return(_0x2e2f3d=(_0x253e1c=this['_handler'])[_0x1a6850(0x2c9)])==null?void 0x0:_0x2e2f3d[_0x1a6850(0x234)](_0x253e1c,_0x34930d);}[_0x4f4baa(0x520)](_0x2253d1){const _0x52d600=_0x4f4baa;var _0x365426,_0x1fa5f3,_0x6231e9;return(_0x6231e9=(_0x1fa5f3=(_0x365426=this[_0x52d600(0x547)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1fa5f3['call'](_0x365426,_0x2253d1))!=null?_0x6231e9:_0x2253d1;}[_0x4f4baa(0x308)](_0x56268f){const _0xdf5a8d=_0x4f4baa;var _0x1ae7f2,_0x117224;if(this[_0xdf5a8d(0x302)]===j[_0xdf5a8d(0x3e8)]){const {unitID:_0x331d4f,mutations:_0x13ef74,memberID:_0x244276}=_0x56268f,_0x5a8fa1=_0x13ef74[0x0][_0xdf5a8d(0x4fb)][_0xdf5a8d(0x4bd)];Array[_0xdf5a8d(0x32a)](_0x5a8fa1)&&_0x5a8fa1[_0xdf5a8d(0x56e)]>0x0&&((_0x117224=(_0x1ae7f2=this[_0xdf5a8d(0x547)])[_0xdf5a8d(0x387)])==null||_0x117224[_0xdf5a8d(0x234)](_0x1ae7f2,{'unitID':_0x331d4f,'memberID':_0x244276,'textRanges':_0x5a8fa1}));}}[_0x4f4baa(0x2c0)](){const _0x247653=_0x4f4baa;this[_0x247653(0x403)][_0x247653(0x531)](this[_0x247653(0x427)],this[_0x247653(0x302)],this[_0x247653(0x557)],this[_0x247653(0x45d)]);}[_0x4f4baa(0x50b)](){const _0xc52f99=_0x4f4baa;return this[_0xc52f99(0x1ba)]['getCurrentRevForDocument'](this[_0xc52f99(0x427)]);}[_0x4f4baa(0x4e8)](){const _0x270a8b=_0x4f4baa;this['_revisionService'][_0x270a8b(0x452)](this['unitID']);}[_0x4f4baa(0x28b)](_0x3a5fb1){const _0x404245=_0x4f4baa;var _0x45c9fa;const _0x53ed0d=this[_0x404245(0x520)](_0x3a5fb1),_0x24d04b=c[_0x404245(0x514)](_0x53ed0d[_0x404245(0x48a)],this[_0x404245(0x499)],{'fromCollab':!0x0});if(!_0x24d04b['result'])throw _0x24d04b[_0x404245(0x370)]instanceof Error?_0x24d04b[_0x404245(0x370)]:new Error((_0x45c9fa=_0x24d04b[_0x404245(0x370)])!=null?_0x45c9fa:_0x404245(0x1fc));this[_0x404245(0x356)](_0x53ed0d),this[_0x404245(0x440)](_0x3a5fb1),this[_0x404245(0x3e4)](_0x53ed0d),this['_syncEditingCollabCursor'](_0x53ed0d),this[_0x404245(0x4e8)]();}}let ce=class extends X{constructor(_0x3199ad,_0x39516d,_0x2e83e9,_0x58aad0,_0x34fd83,_0x5c79e8,_0x1370f4,_0x22244b,_0x2c9ed6){const _0x15e8a1=_0x4f4baa;super(_0x3199ad,_0x39516d,null,[],_0x2e83e9,_0x22244b,_0x1370f4,_0x58aad0,_0x34fd83),d(this,'status',_0x15e8a1(0x307)),(this[_0x15e8a1(0x4d3)]=_0x5c79e8,this[_0x15e8a1(0x581)]=_0x2c9ed6);}['appendMutation'](_0x222d6c){const _0x4a176b=_0x4f4baa,_0x5a0cfa=this[_0x4a176b(0x4d3)][_0x4a176b(0x3bb)]($,this[_0x4a176b(0x427)],this['type'],[_0x222d6c],this[_0x4a176b(0x547)]);return _0x5a0cfa[_0x4a176b(0x233)](),_0x5a0cfa[_0x4a176b(0x2c0)](),_0x5a0cfa;}['onRemoteChangeset'](_0x54a5e6){const _0x2e0b19=_0x4f4baa;if(this[_0x2e0b19(0x2b9)](_0x54a5e6))return this[_0x2e0b19(0x4d3)]['createInstance'](x,this['unitID'],this[_0x2e0b19(0x302)],null,[],null,[_0x54a5e6],this['_handler']);try{return this[_0x2e0b19(0x28b)](_0x54a5e6),this;}catch(_0x631e97){return this[_0x2e0b19(0x581)][_0x2e0b19(0x370)]('[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.',_0x631e97),this;}}[_0x4f4baa(0x200)](){const _0x202f2b=_0x4f4baa;throw new Error(_0x202f2b(0x559));}[_0x4f4baa(0x446)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x49c4d0=_0x4f4baa;return this[_0x49c4d0(0x4d3)][_0x49c4d0(0x3bb)](B,this[_0x49c4d0(0x427)],this['type'],null,[],this[_0x49c4d0(0x547)]);}[_0x4f4baa(0x4ab)](){return this;}[_0x4f4baa(0x583)](){const _0x1c499a=_0x4f4baa;throw new Error(_0x1c499a(0x4d1));}};ce=K([f(0x3,_[_0x4f4baa(0x451)](u[_0x4f4baa(0x357)])),f(0x4,_[_0x4f4baa(0x451)](exports['LocalCacheService'])),f(0x5,_['Inject'](_[_0x4f4baa(0x548)])),f(0x6,c[_0x4f4baa(0x424)]),f(0x7,c[_0x4f4baa(0x40b)]),f(0x8,c[_0x4f4baa(0x56d)])],ce);let $=class extends X{constructor(_0xc2206a,_0x1a079a,_0x54e6fc,_0x2c273b,_0xe3521f,_0x3a92d9,_0x56b1e7,_0x5a643c,_0x2fcf4b,_0x31f53c,_0x5ccb4f,_0x596522,_0x1452f5,_0x443717){const _0x4ae193=_0x4f4baa;super(_0xc2206a,_0x1a079a,null,_0x54e6fc,_0x2c273b,_0x31f53c,_0x443717,_0x3a92d9,_0x56b1e7),d(this,'status',_0x4ae193(0x39f)),d(this,'_scheduleTimestamp',null),d(this,_0x4ae193(0x3d7),null),(this[_0x4ae193(0x4d3)]=_0xe3521f,this[_0x4ae193(0x1d5)]=_0x5a643c,this['_logService']=_0x2fcf4b,this['_configService']=_0x5ccb4f,this['_transformService']=_0x596522,this[_0x4ae193(0x1d3)]=_0x1452f5);}[_0x4f4baa(0x51c)](_0xc391f3){const _0x5414f9=_0x4f4baa;return this[_0x5414f9(0x45d)][_0x5414f9(0x589)](_0xc391f3),this[_0x5414f9(0x2c0)](),this;}[_0x4f4baa(0x556)](_0x4e4596){const _0x5f0e35=_0x4f4baa;if(this[_0x5f0e35(0x2b9)](_0x4e4596))return this['_clearScheduledTask'](),this['_injector'][_0x5f0e35(0x3bb)](x,this[_0x5f0e35(0x427)],this[_0x5f0e35(0x302)],null,this[_0x5f0e35(0x45d)],null,[_0x4e4596],this[_0x5f0e35(0x547)]);try{const _0x1ee5f5=this[_0x5f0e35(0x394)][_0x5f0e35(0x30f)](_0x4e4596,this[_0x5f0e35(0x45d)]);if(u[_0x5f0e35(0x20b)](_0x1ee5f5)){const {c1Prime:_0x47fb1e,m2Prime:_0x58a674}=_0x1ee5f5;this[_0x5f0e35(0x28b)](_0x47fb1e);const _0x4cca00=this[_0x5f0e35(0x4d3)][_0x5f0e35(0x3bb)]($,this[_0x5f0e35(0x427)],this[_0x5f0e35(0x302)],_0x58a674,this[_0x5f0e35(0x547)]);return this[_0x5f0e35(0x32e)](),_0x4cca00[_0x5f0e35(0x233)](this[_0x5f0e35(0x3fb)]?Math[_0x5f0e35(0x47f)](0x0,new Date()[_0x5f0e35(0x537)]()-this['_scheduleTimestamp']):this[_0x5f0e35(0x4a8)]()),_0x4cca00;}throw _0x1ee5f5[_0x5f0e35(0x370)];}catch(_0x19f0fc){return this[_0x5f0e35(0x581)][_0x5f0e35(0x370)](_0x19f0fc),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x3df4d3=_0x4f4baa;throw new Error(_0x3df4d3(0x1c5));}[_0x4f4baa(0x446)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x4f4baa(0x478)](){const _0x4ece59=_0x4f4baa;return this[_0x4ece59(0x32e)](),this[_0x4ece59(0x4d3)][_0x4ece59(0x3bb)](B,this['unitID'],this[_0x4ece59(0x302)],null,this[_0x4ece59(0x45d)],this[_0x4ece59(0x547)]);}[_0x4f4baa(0x4ab)](){return this;}[_0x4f4baa(0x233)](_0x2c9155){const _0x5093e1=_0x4f4baa;_0x2c9155=_0x2c9155!=null?_0x2c9155:this[_0x5093e1(0x4a8)](),this[_0x5093e1(0x3fb)]=new Date()[_0x5093e1(0x537)](),this[_0x5093e1(0x3d7)]=setTimeout(()=>{const _0x45765e=_0x5093e1;this[_0x45765e(0x32e)]();let _0x164350=null;switch(this[_0x45765e(0x302)]){case j['UNIVER_SHEET']:{_0x164350=Ts(this[_0x45765e(0x45d)],this[_0x45765e(0x427)],this[_0x45765e(0x1d3)],this[_0x45765e(0x1ba)],this[_0x45765e(0x1d5)]);break;}case j[_0x45765e(0x3e8)]:{_0x164350=Rs(this['_pendingMutations'],this[_0x45765e(0x427)],this[_0x45765e(0x1d3)],this[_0x45765e(0x1ba)],this[_0x45765e(0x1d5)]);break;}default:throw new Error(_0x45765e(0x1f7)+this[_0x45765e(0x302)]+'\x20in\x20_schedule.');}const {changeset:_0x6aaa87,pendingMutations:_0x16b946}=_0x164350;this['_handler']['onSendChangeset'](_0x6aaa87);const _0x4aeae1=_0x16b946['length']?this[_0x45765e(0x4d3)][_0x45765e(0x3bb)](H,this['unitID'],this[_0x45765e(0x302)],_0x6aaa87,_0x16b946,this[_0x45765e(0x547)]):this['_injector'][_0x45765e(0x3bb)](k,this[_0x45765e(0x427)],this[_0x45765e(0x302)],_0x6aaa87,this[_0x45765e(0x547)]);_0x4aeae1[_0x45765e(0x2c0)](),this[_0x45765e(0x547)]['onStateChange'](this,_0x4aeae1);},_0x2c9155);}[_0x4f4baa(0x4a8)](){const _0x5db4ff=_0x4f4baa;var _0x557873;return(_0x557873=this['_configService'][_0x5db4ff(0x21c)](ht))!=null?_0x557873:Ft;}[_0x4f4baa(0x583)](){const _0x2518e6=_0x4f4baa;throw new Error(_0x2518e6(0x2ab));}[_0x4f4baa(0x32e)](){const _0x4a6120=_0x4f4baa;this['_sendingTimer']!=null&&(clearTimeout(this[_0x4a6120(0x3d7)]),this[_0x4a6120(0x3d7)]=null);}[_0x4f4baa(0x2c3)](_0x286e29){const _0x28390f=_0x4f4baa;return this['_clearScheduledTask'](),this[_0x28390f(0x4d3)][_0x28390f(0x3bb)](Y,this[_0x28390f(0x427)],this['type'],null,this[_0x28390f(0x45d)],this['_handler'],_0x286e29);}};$=K([f(0x4,_['Inject'](_[_0x4f4baa(0x548)])),f(0x5,_[_0x4f4baa(0x451)](u[_0x4f4baa(0x357)])),f(0x6,_[_0x4f4baa(0x451)](exports['LocalCacheService'])),f(0x7,_[_0x4f4baa(0x451)](G)),f(0x8,c[_0x4f4baa(0x56d)]),f(0x9,c[_0x4f4baa(0x40b)]),f(0xa,c[_0x4f4baa(0x37f)]),f(0xb,u[_0x4f4baa(0x263)]),f(0xc,c[_0x4f4baa(0x45c)]),f(0xd,c['IUndoRedoService'])],$);let k=class extends X{constructor(_0x37f128,_0x3dd807,_0x4f4a74,_0x456806,_0x18562f,_0x5352ba,_0x516fda,_0x3c99c9,_0x361b03,_0x3d7af6,_0x301c0d){const _0x12c127=_0x4f4baa;super(_0x37f128,_0x3dd807,_0x4f4a74,[],_0x456806,_0x3c99c9,_0x301c0d,_0x5352ba,_0x516fda),d(this,_0x12c127(0x29d),_0x12c127(0x26f)),(this['_injector']=_0x18562f,this[_0x12c127(0x581)]=_0x361b03,this['_transformService']=_0x3d7af6);}[_0x4f4baa(0x51c)](_0xf43537){const _0x421d89=_0x4f4baa,_0x143f8b=this[_0x421d89(0x4d3)][_0x421d89(0x3bb)](H,this[_0x421d89(0x427)],this[_0x421d89(0x302)],this[_0x421d89(0x557)],[_0xf43537],this['_handler']);return _0x143f8b[_0x421d89(0x2c0)](),_0x143f8b;}[_0x4f4baa(0x556)](_0x18bbfe){const _0x42993b=_0x4f4baa;if(this[_0x42993b(0x2b9)](_0x18bbfe))return this['_injector'][_0x42993b(0x3bb)](x,this['unitID'],this[_0x42993b(0x302)],this[_0x42993b(0x557)],[],null,[_0x18bbfe],this['_handler']);try{const _0x1cd49b=this[_0x42993b(0x394)]['transformChangesets']([_0x18bbfe],[this[_0x42993b(0x557)]],!0x1);if(u[_0x42993b(0x47a)](_0x1cd49b)){const {c1Prime:_0x1649b0,c2Prime:_0x5ee446}=_0x1cd49b;this[_0x42993b(0x28b)](_0x1649b0[0x0]),_0x5ee446[0x0][_0x42993b(0x366)]=this[_0x42993b(0x50b)]();const _0x339e83=this['_injector']['createInstance'](k,this[_0x42993b(0x427)],this[_0x42993b(0x302)],_0x5ee446[0x0],this[_0x42993b(0x547)]);return _0x339e83[_0x42993b(0x2c0)](),_0x339e83;}return this[_0x42993b(0x2c3)](!0x1);}catch(_0x134341){return this['_logService'][_0x42993b(0x370)](_0x134341),this[_0x42993b(0x2c3)](!0x1);}}[_0x4f4baa(0x200)](_0x41bb25){const _0x45cc69=_0x4f4baa,_0x51184d=this[_0x45cc69(0x1ba)][_0x45cc69(0x352)](this[_0x45cc69(0x427)]);if(_0x41bb25[_0x45cc69(0x434)]<_0x51184d-0x1)return this;if(this['_checkMissing'](_0x41bb25))return this[_0x45cc69(0x4d3)][_0x45cc69(0x3bb)](x,this[_0x45cc69(0x427)],this[_0x45cc69(0x302)],null,[],this[_0x45cc69(0x557)],[],this[_0x45cc69(0x547)]);this[_0x45cc69(0x4e8)]();const _0x2184de=this['_injector'][_0x45cc69(0x3bb)](ce,this[_0x45cc69(0x427)],this[_0x45cc69(0x302)],this[_0x45cc69(0x547)]);return _0x2184de[_0x45cc69(0x2c0)](),_0x2184de;}[_0x4f4baa(0x446)](_0x820ecb){const _0x466622=_0x4f4baa;return this[_0x466622(0x2c3)](!!(_0x820ecb!=null&&_0x820ecb[_0x466622(0x24f)]));}[_0x4f4baa(0x478)](){const _0x764561=_0x4f4baa;return this['_injector'][_0x764561(0x3bb)](B,this['unitID'],this[_0x764561(0x302)],this[_0x764561(0x557)],[],this[_0x764561(0x547)]);}[_0x4f4baa(0x4ab)](){return this;}['resend'](){const _0x13cc15=_0x4f4baa;this[_0x13cc15(0x547)]['onSendChangeset'](this[_0x13cc15(0x557)]);}[_0x4f4baa(0x2c3)](_0x3de290){const _0x15bb64=_0x4f4baa;return this[_0x15bb64(0x4d3)][_0x15bb64(0x3bb)](Y,this[_0x15bb64(0x427)],this['type'],this[_0x15bb64(0x557)],[],this['_handler'],_0x3de290);}};k=K([f(0x4,_[_0x4f4baa(0x451)](_[_0x4f4baa(0x548)])),f(0x5,_['Inject'](u[_0x4f4baa(0x357)])),f(0x6,_[_0x4f4baa(0x451)](exports['LocalCacheService'])),f(0x7,c[_0x4f4baa(0x40b)]),f(0x8,c[_0x4f4baa(0x56d)]),f(0x9,u['ITransformService']),f(0xa,c[_0x4f4baa(0x424)])],k);let H=class extends X{constructor(_0x5a4c1c,_0x20cc41,_0x3064ad,_0x385693,_0x1453f8,_0x5b3784,_0x1f22e6,_0x3f9191,_0x259584,_0x336d2a,_0x4ca552,_0x3a7a8b){const _0x2fb485=_0x4f4baa;super(_0x5a4c1c,_0x20cc41,_0x3064ad,_0x385693,_0x1453f8,_0x259584,_0x3a7a8b,_0x1f22e6,_0x3f9191),d(this,_0x2fb485(0x29d),'awaiting_with_pending'),(this[_0x2fb485(0x4d3)]=_0x5b3784,this[_0x2fb485(0x581)]=_0x336d2a,this[_0x2fb485(0x394)]=_0x4ca552);}[_0x4f4baa(0x51c)](_0x210e3a){const _0x133cda=_0x4f4baa;return this['_pendingMutations'][_0x133cda(0x589)](_0x210e3a),this;}[_0x4f4baa(0x556)](_0x497bdc){const _0x2bd642=_0x4f4baa;if(this['_checkMissing'](_0x497bdc))return this['_injector']['createInstance'](x,this[_0x2bd642(0x427)],this[_0x2bd642(0x302)],this['_awaitingChangeset'],this[_0x2bd642(0x45d)],null,[_0x497bdc],this['_handler']);try{const _0x483043=this['_transformService']['transformChangesets']([_0x497bdc],[this[_0x2bd642(0x557)]],!0x1);if(u[_0x2bd642(0x47a)](_0x483043)){const {c1Prime:_0x2d116c,c2Prime:_0x3cf3ac}=_0x483043,_0x2d9ab6=this[_0x2bd642(0x394)][_0x2bd642(0x30f)](_0x2d116c[0x0],this[_0x2bd642(0x45d)]);if(u[_0x2bd642(0x20b)](_0x2d9ab6)){const {c1Prime:_0x2d851c,m2Prime:_0x52a394}=_0x2d9ab6;return this[_0x2bd642(0x28b)](_0x2d851c),_0x3cf3ac[0x0][_0x2bd642(0x366)]=this[_0x2bd642(0x50b)](),this[_0x2bd642(0x4d3)][_0x2bd642(0x3bb)](H,this['unitID'],this[_0x2bd642(0x302)],_0x3cf3ac[0x0],_0x52a394,this[_0x2bd642(0x547)]);}throw _0x2d9ab6['error'];}throw _0x483043[_0x2bd642(0x370)];}catch(_0xd18a65){return this['_logService']['error'](_0xd18a65),this['_onConflict'](!0x1);}}[_0x4f4baa(0x200)](_0x5b1ed7){const _0x2e73f0=_0x4f4baa;if(this[_0x2e73f0(0x2b9)](_0x5b1ed7))return this[_0x2e73f0(0x4d3)][_0x2e73f0(0x3bb)](x,this[_0x2e73f0(0x427)],this[_0x2e73f0(0x302)],null,this[_0x2e73f0(0x45d)],this[_0x2e73f0(0x557)],[],this[_0x2e73f0(0x547)]);this[_0x2e73f0(0x4e8)]();const _0x898dea=this[_0x2e73f0(0x4d3)]['createInstance']($,this[_0x2e73f0(0x427)],this['type'],this[_0x2e73f0(0x45d)],this['_handler']);return _0x898dea['_schedule'](),_0x898dea['_updateLocalCache'](),_0x898dea;}[_0x4f4baa(0x446)](_0x3b7e8d){const _0x146ff2=_0x4f4baa;return this['_onConflict'](!!(_0x3b7e8d!=null&&_0x3b7e8d[_0x146ff2(0x24f)]));}['toggleOffline'](){const _0xe6a909=_0x4f4baa;return this[_0xe6a909(0x4d3)]['createInstance'](B,this[_0xe6a909(0x427)],this[_0xe6a909(0x302)],this['_awaitingChangeset'],this[_0xe6a909(0x45d)],this['_handler']);}[_0x4f4baa(0x4ab)](){return this;}[_0x4f4baa(0x583)](){const _0x3097cd=_0x4f4baa;this[_0x3097cd(0x547)][_0x3097cd(0x411)](this[_0x3097cd(0x557)]);}[_0x4f4baa(0x2c3)](_0x257cd1){const _0x43e3c9=_0x4f4baa;return this[_0x43e3c9(0x4d3)][_0x43e3c9(0x3bb)](Y,this[_0x43e3c9(0x427)],this[_0x43e3c9(0x302)],null,this[_0x43e3c9(0x45d)],this['_handler'],_0x257cd1);}};H=K([f(0x5,_[_0x4f4baa(0x451)](_['Injector'])),f(0x6,_[_0x4f4baa(0x451)](u[_0x4f4baa(0x357)])),f(0x7,_[_0x4f4baa(0x451)](exports[_0x4f4baa(0x3a1)])),f(0x8,c[_0x4f4baa(0x40b)]),f(0x9,c['ILogService']),f(0xa,u[_0x4f4baa(0x263)]),f(0xb,c['IUndoRedoService'])],H);let Y=class extends X{constructor(_0x48950c,_0x41a1e7,_0x4dcffd,_0x1810fa,_0x146532,_0x335bc3=!0x1,_0x5cd8f1,_0x4ed711,_0x3a99b0,_0x4fa8f0,_0xcd101,_0x245e53,_0x267c2d){const _0x103267=_0x4f4baa;super(_0x48950c,_0x41a1e7,_0x4dcffd,_0x1810fa,_0x146532,_0x4ed711,_0x3a99b0,_0xcd101,_0x4fa8f0),d(this,_0x103267(0x29d),_0x103267(0x213)),(this[_0x103267(0x465)]=_0x335bc3,this['_permissionService']=_0x5cd8f1,this[_0x103267(0x43b)]=_0x245e53,this[_0x103267(0x22e)]=_0x267c2d,this['_showConflictNotification'](),this[_0x103267(0x44e)](),this[_0x103267(0x4e7)]());}['appendMutation'](){return this;}[_0x4f4baa(0x556)](){return this;}[_0x4f4baa(0x200)](){return this;}[_0x4f4baa(0x446)](){return this;}['toggleOffline'](){return this;}[_0x4f4baa(0x4ab)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4f4baa(0x44e)](){const _0x2b59d8=_0x4f4baa;this[_0x2b59d8(0x403)][_0x2b59d8(0x531)](this['unitID'],this[_0x2b59d8(0x302)],null,[]);}['_showConflictNotification'](){const _0x844541=_0x4f4baa;this[_0x844541(0x465)]?this[_0x844541(0x22e)][_0x844541(0x4d9)]({'title':this['_localeService']['t'](_0x844541(0x4ef)),'content':this[_0x844541(0x43b)]['t'](_0x844541(0x239)),'type':_0x844541(0x370),'duration':0x0}):this[_0x844541(0x22e)][_0x844541(0x4d9)]({'title':this[_0x844541(0x43b)]['t'](_0x844541(0x4d7)),'content':this['_localeService']['t']('conflict.content'),'type':_0x844541(0x370),'duration':0x0});}[_0x4f4baa(0x4e7)](){const _0x47bebc=_0x4f4baa;this[_0x47bebc(0x3ca)][_0x47bebc(0x22c)](new E['WorkbookEditablePermission'](this[_0x47bebc(0x427)])['id'],!0x1);}};Y=K([f(0x6,_['Inject'](c[_0x4f4baa(0x398)])),f(0x7,c[_0x4f4baa(0x40b)]),f(0x8,c[_0x4f4baa(0x424)]),f(0x9,_[_0x4f4baa(0x451)](exports[_0x4f4baa(0x3a1)])),f(0xa,_['Inject'](u[_0x4f4baa(0x357)])),f(0xb,_[_0x4f4baa(0x451)](c[_0x4f4baa(0x4b4)])),f(0xc,N[_0x4f4baa(0x576)])],Y);let B=class extends X{constructor(_0xf38769,_0x45b1f2,_0xc9c198,_0x4754bf,_0x8343fd,_0x1a748b,_0x201559,_0x53b96a,_0x5bc3df,_0x4f0967){const _0x134f56=_0x4f4baa;super(_0xf38769,_0x45b1f2,_0xc9c198,_0x4754bf,_0x8343fd,_0x5bc3df,_0x4f0967,_0x201559,_0x53b96a),d(this,_0x134f56(0x29d),_0x134f56(0x2bc)),this['_injector']=_0x1a748b;}[_0x4f4baa(0x51c)](_0x1f4d93){return this['_pendingMutations']['push'](_0x1f4d93),this['_updateLocalCache'](),this;}[_0x4f4baa(0x556)](_0x121ecb){const _0x1f88d7=_0x4f4baa;throw new Error(_0x1f88d7(0x508));}[_0x4f4baa(0x200)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x4f4baa(0x446)](){const _0x35ccbe=_0x4f4baa;throw new Error(_0x35ccbe(0x30d));}[_0x4f4baa(0x478)](){return this;}['toggleOnline'](){const _0x13b8f4=_0x4f4baa,{_injector:_0x17ab84,_pendingMutations:_0x3ad557,_awaitingChangeset:_0x2b17ce,unitID:_0x532ff8,_handler:_0x26039d,type:_0x13eb0f}=this,_0x1d5a57=bt(_0x17ab84,_0x532ff8,_0x13eb0f,_0x2b17ce,_0x3ad557,_0x26039d);return _0x1d5a57 instanceof $?_0x1d5a57[_0x13b8f4(0x233)]():(_0x1d5a57 instanceof H||_0x1d5a57 instanceof k)&&_0x1d5a57[_0x13b8f4(0x583)](),_0x1d5a57;}['resend'](){const _0x1c156e=_0x4f4baa;throw new Error(_0x1c156e(0x2a0));}};B=K([f(0x5,_[_0x4f4baa(0x451)](_['Injector'])),f(0x6,_['Inject'](u['RevisionService'])),f(0x7,_[_0x4f4baa(0x451)](exports[_0x4f4baa(0x3a1)])),f(0x8,c[_0x4f4baa(0x40b)]),f(0x9,c['IUndoRedoService'])],B);let x=class extends X{constructor(_0x461fee,_0x3e9d54,_0x3d9b8f,_0x2e0f54,_0x572f9b,_0x1bee0c,_0x34d41e,_0x5dcc37,_0x6c1fe0,_0x52d94c,_0x19c81a,_0x375620,_0x1ff4bf,_0x21a241){const _0x4a7032=_0x4f4baa;super(_0x461fee,_0x3e9d54,_0x3d9b8f,_0x2e0f54,_0x34d41e,_0x375620,_0x1ff4bf,_0x6c1fe0,_0x52d94c),d(this,_0x4a7032(0x29d),'fetch_missing'),(this[_0x4a7032(0x467)]=_0x572f9b,this[_0x4a7032(0x55e)]=_0x1bee0c,this[_0x4a7032(0x4d3)]=_0x5dcc37,this[_0x4a7032(0x581)]=_0x19c81a,this[_0x4a7032(0x394)]=_0x21a241);}[_0x4f4baa(0x48d)](_0x2eaefa){const _0x7c7cb2=_0x4f4baa;try{const _0xddae28=[..._0x2eaefa,...this[_0x7c7cb2(0x55e)]],_0x2dd1f5=[this[_0x7c7cb2(0x557)]||this['_acknowledgedAwaitingChangeset']][_0x7c7cb2(0x570)](_0x4ab2db=>!!_0x4ab2db);let _0x49ef22,_0x441b51;if(_0x2dd1f5['length']){const _0x55fa35=this[_0x7c7cb2(0x394)][_0x7c7cb2(0x238)](_0xddae28,_0x2dd1f5,!0x1);if(!u['isTransformChangesetsSuccess'](_0x55fa35))throw _0x55fa35[_0x7c7cb2(0x370)];_0x49ef22=_0x55fa35[_0x7c7cb2(0x4a0)],_0x441b51=_0x55fa35[_0x7c7cb2(0x3cc)];}else _0x49ef22=_0xddae28,_0x441b51=[];let _0x3a9951=this[_0x7c7cb2(0x45d)];_0x49ef22[_0x7c7cb2(0x502)](_0x333454=>{const _0x1443dd=_0x7c7cb2;let _0x578cda;if(_0x3a9951[_0x1443dd(0x56e)]){const _0x3ffb97=this[_0x1443dd(0x394)][_0x1443dd(0x30f)](_0x333454,_0x3a9951);if(!u['isTransformMutationsWithChangesetSuccess'](_0x3ffb97))throw _0x3ffb97[_0x1443dd(0x370)];_0x578cda=_0x3ffb97[_0x1443dd(0x4a0)],_0x3a9951=_0x3ffb97[_0x1443dd(0x522)];}else _0x578cda=_0x333454;this[_0x1443dd(0x28b)](_0x578cda);}),this[_0x7c7cb2(0x467)]&&this[_0x7c7cb2(0x4e8)](),this[_0x7c7cb2(0x557)]&&_0x441b51[_0x7c7cb2(0x56e)]&&(_0x441b51[0x0]['baseRev']=this[_0x7c7cb2(0x50b)]());let _0x2b5128;if(this[_0x7c7cb2(0x557)]&&_0x3a9951[_0x7c7cb2(0x56e)]!==0x0)_0x2b5128=this[_0x7c7cb2(0x4d3)][_0x7c7cb2(0x3bb)](H,this[_0x7c7cb2(0x427)],this[_0x7c7cb2(0x302)],_0x441b51[0x0],_0x3a9951,this[_0x7c7cb2(0x547)]);else{if(this[_0x7c7cb2(0x557)]&&_0x3a9951[_0x7c7cb2(0x56e)]===0x0)_0x441b51[0x0][_0x7c7cb2(0x366)]=this[_0x7c7cb2(0x50b)](),_0x2b5128=this[_0x7c7cb2(0x4d3)][_0x7c7cb2(0x3bb)](k,this['unitID'],this[_0x7c7cb2(0x302)],_0x441b51[0x0],this[_0x7c7cb2(0x547)]);else{if(_0x3a9951[_0x7c7cb2(0x56e)]!==0x0){const _0xe41503=this[_0x7c7cb2(0x4d3)][_0x7c7cb2(0x3bb)]($,this['unitID'],this[_0x7c7cb2(0x302)],_0x3a9951,this[_0x7c7cb2(0x547)]);_0xe41503[_0x7c7cb2(0x233)](),_0x2b5128=_0xe41503;}else _0x2b5128=this[_0x7c7cb2(0x4d3)][_0x7c7cb2(0x3bb)](ce,this['unitID'],this[_0x7c7cb2(0x302)],this[_0x7c7cb2(0x547)]);}}return _0x2b5128[_0x7c7cb2(0x2c0)](),_0x2b5128;}catch(_0x2e1125){return this['_logService']['error'](_0x7c7cb2(0x490),_0x7c7cb2(0x534),_0x2e1125),this[_0x7c7cb2(0x4d3)][_0x7c7cb2(0x3bb)](Y,this[_0x7c7cb2(0x427)],this[_0x7c7cb2(0x302)],this['_awaitingChangeset'],this[_0x7c7cb2(0x45d)],this['_handler'],!0x1);}}[_0x4f4baa(0x583)](){const _0x46ff51=_0x4f4baa;throw new Error(_0x46ff51(0x4af));}[_0x4f4baa(0x51c)](_0x3ad413){const _0x3b1e11=_0x4f4baa;return this[_0x3b1e11(0x45d)][_0x3b1e11(0x589)](_0x3ad413),this;}[_0x4f4baa(0x556)](_0x42b0ca){const _0x23a35c=_0x4f4baa;return this[_0x23a35c(0x55e)][_0x23a35c(0x589)](_0x42b0ca),this;}[_0x4f4baa(0x200)](_0x3d98f7){const _0x1816e1=_0x4f4baa;if(this[_0x1816e1(0x557)])return this[_0x1816e1(0x467)]=this[_0x1816e1(0x557)],this['_awaitingChangeset']=null,this;throw new Error(_0x1816e1(0x25f));}[_0x4f4baa(0x446)](_0x38cfed){const _0x35734f=_0x4f4baa;return this[_0x35734f(0x2c3)](!!(_0x38cfed!=null&&_0x38cfed[_0x35734f(0x24f)]));}[_0x4f4baa(0x478)](){const _0x2694a8=_0x4f4baa;return this['_injector'][_0x2694a8(0x3bb)](B,this['unitID'],this[_0x2694a8(0x302)],this[_0x2694a8(0x557)],this[_0x2694a8(0x45d)],this['_handler']);}[_0x4f4baa(0x4ab)](){return this;}[_0x4f4baa(0x2c3)](_0x51d194){const _0x28b327=_0x4f4baa;return this[_0x28b327(0x4d3)]['createInstance'](Y,this['unitID'],this[_0x28b327(0x302)],this[_0x28b327(0x557)],this[_0x28b327(0x45d)],this[_0x28b327(0x547)],_0x51d194);}};x=K([f(0x7,_['Inject'](_[_0x4f4baa(0x548)])),f(0x8,_[_0x4f4baa(0x451)](u[_0x4f4baa(0x357)])),f(0x9,_[_0x4f4baa(0x451)](exports[_0x4f4baa(0x3a1)])),f(0xa,c[_0x4f4baa(0x56d)]),f(0xb,c[_0x4f4baa(0x40b)]),f(0xc,c['IUndoRedoService']),f(0xd,u[_0x4f4baa(0x263)])],x);function bt(_0x5e4ced,_0x153bfb,_0x2dfced,_0x24036f,_0x1d68dd,_0x2a4e2b){const _0x15ca2b=_0x4f4baa;return _0x24036f&&_0x1d68dd['length']?_0x5e4ced[_0x15ca2b(0x3bb)](H,_0x153bfb,_0x2dfced,_0x24036f,_0x1d68dd,_0x2a4e2b):_0x24036f?_0x5e4ced[_0x15ca2b(0x3bb)](k,_0x153bfb,_0x2dfced,_0x24036f,_0x2a4e2b):_0x1d68dd[_0x15ca2b(0x56e)]?_0x5e4ced[_0x15ca2b(0x3bb)]($,_0x153bfb,_0x2dfced,_0x1d68dd,_0x2a4e2b):_0x5e4ced[_0x15ca2b(0x3bb)](ce,_0x153bfb,_0x2dfced,_0x2a4e2b);}var Ps=Object[_0x4f4baa(0x4e3)],Us=Object[_0x4f4baa(0x2f2)],be=(_0xfeae34,_0x41e209,_0x22fd72,_0x3a38b9)=>{const _0x2e1b5a=_0x4f4baa;for(var _0x31ae51=_0x3a38b9>0x1?void 0x0:_0x3a38b9?Us(_0x41e209,_0x22fd72):_0x41e209,_0x58868b=_0xfeae34[_0x2e1b5a(0x56e)]-0x1,_0x5bbd32;_0x58868b>=0x0;_0x58868b--)(_0x5bbd32=_0xfeae34[_0x58868b])&&(_0x31ae51=(_0x3a38b9?_0x5bbd32(_0x41e209,_0x22fd72,_0x31ae51):_0x5bbd32(_0x31ae51))||_0x31ae51);return _0x3a38b9&&_0x31ae51&&Ps(_0x41e209,_0x22fd72,_0x31ae51),_0x31ae51;},p=(_0x564f82,_0x10c2d7)=>(_0x585627,_0x445a65)=>_0x10c2d7(_0x585627,_0x445a65,_0x564f82);exports[_0x4f4baa(0x409)]=class extends c[_0x4f4baa(0x3b4)]{constructor(_0x50bcc8,_0x20005b,_0x38fcc3){const _0x5f4ad8=_0x4f4baa;super(),d(this,_0x5f4ad8(0x55a),new Map()),d(this,_0x5f4ad8(0x337),new g[(_0x5f4ad8(0x455))]()),(this[_0x5f4ad8(0x4d3)]=_0x50bcc8,this['_collabSessionService']=_0x20005b,this[_0x5f4ad8(0x1d3)]=_0x38fcc3,this['_init']());}[_0x4f4baa(0x4bf)](){const _0x1baf36=_0x4f4baa;super['dispose'](),this[_0x1baf36(0x55a)][_0x1baf36(0x502)](_0x2c81e0=>_0x2c81e0[_0x1baf36(0x4bf)]()),this[_0x1baf36(0x55a)][_0x1baf36(0x362)]();}['getCollabEntity'](_0x2ecaea){const _0x5300ee=_0x4f4baa;var _0x265b3e;return(_0x265b3e=this[_0x5300ee(0x55a)][_0x5300ee(0x2e7)](_0x2ecaea))!=null?_0x265b3e:null;}[_0x4f4baa(0x1e3)](_0x199732){const _0x1cc0ef=_0x4f4baa,_0x52686f=this[_0x1cc0ef(0x4eb)](_0x199732);return _0x52686f?g['of'](_0x52686f):this[_0x1cc0ef(0x337)][_0x1cc0ef(0x236)](b[_0x1cc0ef(0x570)](_0x3ccd8f=>_0x3ccd8f['unitID']===_0x199732));}[_0x4f4baa(0x568)](){const _0x3af86d=_0x4f4baa;this[_0x3af86d(0x1d3)]['getTypeOfUnitAdded$'](c['UniverInstanceType'][_0x3af86d(0x4fe)])[_0x3af86d(0x236)](g[_0x3af86d(0x3de)](this[_0x3af86d(0x3c9)]),b[_0x3af86d(0x51b)](0x10))['subscribe'](async _0x4eb251=>{const _0x1cad41=_0x3af86d,_0x3756a7=_0x4eb251[_0x1cad41(0x286)](),_0x11a725=await this['_startCollaboration'](_0x3756a7,j[_0x1cad41(0x4fe)]);this['_entities']['set'](_0x3756a7,_0x11a725);}),this[_0x3af86d(0x1d3)][_0x3af86d(0x43c)](c['UniverInstanceType'][_0x3af86d(0x3e8)])[_0x3af86d(0x236)](g['takeUntil'](this[_0x3af86d(0x3c9)]),b[_0x3af86d(0x51b)](0x10))[_0x3af86d(0x236)](b[_0x3af86d(0x570)](_0x492d5c=>!_0x492d5c[_0x3af86d(0x286)]()[_0x3af86d(0x2d2)]('__')))[_0x3af86d(0x2fe)](async _0x1c0a14=>{const _0x3354a7=_0x3af86d,_0x2b6b3b=_0x1c0a14[_0x3354a7(0x286)](),_0x27000b=await this[_0x3354a7(0x4c1)](_0x2b6b3b,j[_0x3354a7(0x3e8)]);this[_0x3354a7(0x55a)]['set'](_0x2b6b3b,_0x27000b);}),g[_0x3af86d(0x509)](this[_0x3af86d(0x1d3)]['getTypeOfUnitDisposed$'](c[_0x3af86d(0x35f)][_0x3af86d(0x4fe)]),this[_0x3af86d(0x1d3)]['getTypeOfUnitDisposed$'](c[_0x3af86d(0x35f)]['UNIVER_DOC']))[_0x3af86d(0x236)](g['takeUntil'](this['dispose$']))[_0x3af86d(0x2fe)](_0x522fc3=>{const _0x44f316=_0x3af86d,_0x13001f=_0x522fc3[_0x44f316(0x286)](),_0x4c2117=this[_0x44f316(0x55a)][_0x44f316(0x2e7)](_0x13001f);_0x4c2117&&(_0x4c2117[_0x44f316(0x4bf)](),this[_0x44f316(0x55a)]['delete'](_0x13001f));});}async[_0x4f4baa(0x4c1)](_0x1c8eca,_0x462068){const _0x4d1f85=_0x4f4baa,_0xb5f622=await this['_collabSessionService'][_0x4d1f85(0x4ae)](_0x1c8eca),_0x23dee8=this[_0x4d1f85(0x4d3)][_0x4d1f85(0x3bb)](this[_0x4d1f85(0x495)](_0x462068),_0x1c8eca,_0x462068,_0xb5f622);return await _0x23dee8[_0x4d1f85(0x57a)](),this['_entityInit$'][_0x4d1f85(0x469)](_0x23dee8),_0x23dee8;}[_0x4f4baa(0x495)](_0x6025c7){const _0x37ec65=_0x4f4baa;switch(_0x6025c7){case j[_0x37ec65(0x3e8)]:return Me;case j['UNIVER_SHEET']:return exports[_0x37ec65(0x39a)];default:throw new Error(_0x37ec65(0x350)+_0x6025c7);}}},exports[_0x4f4baa(0x409)]=be([c[_0x4f4baa(0x316)](c[_0x4f4baa(0x413)]['Starting'],exports[_0x4f4baa(0x409)]),p(0x0,_[_0x4f4baa(0x451)](_[_0x4f4baa(0x548)])),p(0x1,_[_0x4f4baa(0x451)](exports[_0x4f4baa(0x334)])),p(0x2,c[_0x4f4baa(0x45c)])],exports[_0x4f4baa(0x409)]);let pe=class extends c[_0x4f4baa(0x3b4)]{constructor(_0x2d14a0,_0x9b430,_0x44b318,_0x4e91aa,_0x2ec90f,_0x40a7de,_0x3dbe52,_0x37898c,_0x18a48b,_0x4343e0,_0x486905,_0xccd595,_0x40875f){const _0x1d054a=_0x4f4baa;super(),d(this,_0x1d054a(0x3f7),new g[(_0x1d054a(0x20d))](null)),d(this,_0x1d054a(0x214),this[_0x1d054a(0x3f7)]['asObservable']()),d(this,_0x1d054a(0x46d)),d(this,_0x1d054a(0x1da),!0x1),d(this,_0x1d054a(0x57c),this[_0x1d054a(0x214)][_0x1d054a(0x236)](b['map'](_0x1d7c5e=>_0x1d7c5e?_0x1d7c5e[_0x1d054a(0x29d)]:P[_0x1d054a(0x4d4)]),b[_0x1d054a(0x407)](0x1))),d(this,_0x1d054a(0x52e),!0x1),d(this,_0x1d054a(0x546),[]),(this[_0x1d054a(0x427)]=_0x2d14a0,this[_0x1d054a(0x540)]=_0x9b430,this[_0x1d054a(0x461)]=_0x44b318,this['_injector']=_0x4e91aa,this[_0x1d054a(0x403)]=_0x2ec90f,this[_0x1d054a(0x582)]=_0x40a7de,this[_0x1d054a(0x43b)]=_0x3dbe52,this[_0x1d054a(0x1ba)]=_0x37898c,this[_0x1d054a(0x581)]=_0x18a48b,this[_0x1d054a(0x499)]=_0x4343e0,this[_0x1d054a(0x4b5)]=_0x486905,this['_permissionService']=_0xccd595,this[_0x1d054a(0x1f3)]=_0x40875f);}get[_0x4f4baa(0x344)](){const _0xc46bd7=_0x4f4baa;return this[_0xc46bd7(0x46d)];}async[_0x4f4baa(0x57a)](){const _0x13e92b=_0x4f4baa;if(this[_0x13e92b(0x344)])throw new Error(_0x13e92b(0x3c7));await this[_0x13e92b(0x568)]();}[_0x4f4baa(0x266)](){const _0x2b2f0e=_0x4f4baa;return this[_0x2b2f0e(0x1da)]=!0x0,c[_0x2b2f0e(0x58c)](()=>{const _0x25cde3=_0x2b2f0e;this[_0x25cde3(0x1da)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x4f4baa(0x25d)](_0x15fbb2){const _0x5c93a6=_0x4f4baa;this['_state']=_0x15fbb2,this[_0x5c93a6(0x3f7)][_0x5c93a6(0x469)](_0x15fbb2);}async['_init'](){const _0x25f05a=_0x4f4baa;var _0x195c1a;return this[_0x25f05a(0x25d)](await this[_0x25f05a(0x22f)]()),this['_singleActiveUnitService']&&((_0x195c1a=this['_singleActiveUnitService'])==null||_0x195c1a[_0x25f05a(0x390)](this['unitID']),this[_0x25f05a(0x430)](c['toDisposable'](this[_0x25f05a(0x1f3)][_0x25f05a(0x588)](this['unitID'])[_0x25f05a(0x2fe)](_0x2f6676=>{const _0x5120c9=_0x25f05a;this[_0x5120c9(0x581)][_0x5120c9(0x27e)](_0x5120c9(0x228),_0x5120c9(0x34a),_0x2f6676),_0x2f6676===Et['OTHER_CLIENTS_EDITING']?(this[_0x5120c9(0x4b5)]['show']({'content':this[_0x5120c9(0x43b)]['t'](_0x5120c9(0x4e5)),'type':Q[_0x5120c9(0x410)]['Warning']}),this[_0x5120c9(0x3ca)][_0x5120c9(0x22c)](new E['WorkbookEditablePermission'](this[_0x5120c9(0x427)])['id'],!0x1)):this['_permissionService'][_0x5120c9(0x22c)](new E['WorkbookEditablePermission'](this[_0x5120c9(0x427)])['id'],!0x0);})))),this[_0x25f05a(0x430)](c[_0x25f05a(0x58c)](this['_session'][_0x25f05a(0x51e)]['subscribe'](_0x236b4d=>{const _0x165ab3=_0x25f05a;_0x236b4d===W['ONLINE']?this[_0x165ab3(0x20a)]():_0x236b4d===W[_0x165ab3(0x4d4)]&&this['_toggleOffline']();}))),this['disposeWithMe'](c[_0x25f05a(0x58c)](this[_0x25f05a(0x461)][_0x25f05a(0x580)][_0x25f05a(0x2fe)](_0x48451f=>{const _0x505efc=_0x25f05a;try{switch(_0x48451f[_0x505efc(0x474)]){case u[_0x505efc(0x441)][_0x505efc(0x56b)]:{this[_0x505efc(0x523)](u['parseProtocolChangeset'](_0x48451f[_0x505efc(0x253)]));break;}case u[_0x505efc(0x441)][_0x505efc(0x553)]:{this['_onRemoteACK'](_0x48451f[_0x505efc(0x253)]);break;}case u[_0x505efc(0x441)]['CHANGESET_REJ']:{this[_0x505efc(0x2a1)]();break;}case u['CollaborationEvent'][_0x505efc(0x4a7)]:{this['_onFetchMissResult'](_0x48451f[_0x505efc(0x253)][_0x505efc(0x4b9)]['map'](_0x3bb6f9=>u[_0x505efc(0x31f)](_0x3bb6f9)));break;}case u[_0x505efc(0x441)][_0x505efc(0x4c3)]:this[_0x505efc(0x2a1)]({'isPermissionRej':!0x0});}}catch(_0x8d1a93){throw console['error'](_0x505efc(0x552),_0x8d1a93),_0x8d1a93;}}))),this[_0x25f05a(0x46d)];}[_0x4f4baa(0x1e4)](){const _0x141038=_0x4f4baa;this[_0x141038(0x52e)]=!0x1;}[_0x4f4baa(0x2a4)](){const _0x864305=_0x4f4baa;if(this['_transitionLocked'])throw new Error(_0x864305(0x3ab));this[_0x864305(0x52e)]=!0x0;}[_0x4f4baa(0x3f2)](_0x2788f1){const _0xfdad04=_0x4f4baa;this['_lockTransition'](),this['_updateState'](this[_0xfdad04(0x46d)]['appendMutation'](_0x2788f1)),this[_0xfdad04(0x1e4)]();}[_0x4f4baa(0x523)](_0x48390d){const _0x4ca696=_0x4f4baa;if(!(_0x48390d[_0x4ca696(0x434)]<=this['_revisionService']['getCurrentRevForDocument'](this['unitID']))){if(this[_0x4ca696(0x1da)]){this[_0x4ca696(0x546)]['push'](_0x48390d);return;}this[_0x4ca696(0x579)](_0x48390d);}}[_0x4f4baa(0x32c)](){const _0x29eda2=_0x4f4baa;this[_0x29eda2(0x546)][_0x29eda2(0x502)](_0x503ac1=>this['_applyRemoteChangeset'](_0x503ac1)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x297bee){const _0x3dd9a2=_0x4f4baa,_0x5e26c5=this[_0x3dd9a2(0x582)][_0x3dd9a2(0x543)][_0x3dd9a2(0x257)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x3dd9a2(0x53f)])(_0x297bee['mutations'],null)||_0x297bee[_0x3dd9a2(0x48a)],_0x192718={..._0x297bee,'mutations':_0x5e26c5};this[_0x3dd9a2(0x2a4)](),this[_0x3dd9a2(0x25d)](this[_0x3dd9a2(0x46d)][_0x3dd9a2(0x556)](_0x192718)),this[_0x3dd9a2(0x1e4)]();}[_0x4f4baa(0x539)](_0x2d558d){const _0x32e63b=_0x4f4baa;this[_0x32e63b(0x2a4)](),this[_0x32e63b(0x25d)](this['_state'][_0x32e63b(0x200)](_0x2d558d)),this[_0x32e63b(0x1e4)]();}['_onRemoteRejected'](_0x526b06){const _0xe11c69=_0x4f4baa;this[_0xe11c69(0x2a4)](),this[_0xe11c69(0x25d)](this[_0xe11c69(0x46d)][_0xe11c69(0x446)](_0x526b06)),this[_0xe11c69(0x1e4)]();}[_0x4f4baa(0x245)](_0x3cbf89){const _0x3102db=_0x4f4baa;if(!(this['_state']instanceof x))throw new TypeError(_0x3102db(0x33b));const _0x2908b0=_0x3cbf89['map'](_0x1dbefe=>{const _0x29775a=_0x3102db,_0x276874=this['_compressMutationService']['interceptor'][_0x29775a(0x257)](this[_0x29775a(0x582)][_0x29775a(0x543)][_0x29775a(0x2ad)]()['COMPRESS_MUTATION_APPLY'])(_0x1dbefe[_0x29775a(0x48a)],null)||_0x1dbefe[_0x29775a(0x48a)];return{..._0x1dbefe,'mutations':_0x276874};});this['_lockTransition'](),this[_0x3102db(0x25d)](this[_0x3102db(0x46d)][_0x3102db(0x48d)](_0x2908b0)),this[_0x3102db(0x1e4)]();}[_0x4f4baa(0x44c)](){const _0x4ff85e=_0x4f4baa;this[_0x4ff85e(0x2a4)](),this[_0x4ff85e(0x25d)](this[_0x4ff85e(0x46d)][_0x4ff85e(0x478)]()),this[_0x4ff85e(0x1e4)]();}['_toggleOnline'](){const _0x3ab3c4=_0x4f4baa;this[_0x3ab3c4(0x2a4)](),this['_updateState'](this[_0x3ab3c4(0x46d)]['toggleOnline']()),this[_0x3ab3c4(0x1e4)]();}async[_0x4f4baa(0x22f)](){return new Promise(_0xe4ef9a=>{const _0x3b3d06=_0x33cb;this[_0x3b3d06(0x461)][_0x3b3d06(0x51e)][_0x3b3d06(0x236)](b[_0x3b3d06(0x3a5)](0x1))[_0x3b3d06(0x2fe)](async _0x58a287=>{const _0x15bf2e=_0x3b3d06;_0xe4ef9a(await this[_0x15bf2e(0x37b)](_0x58a287===W[_0x15bf2e(0x4b7)]));});});}[_0x4f4baa(0x433)](){const _0x1942f6=this['unitID'];return{'onStateChange':(_0x3b1403,_0xc8d01d)=>{const _0x4e181f=_0x33cb;if(_0x3b1403!==this[_0x4e181f(0x46d)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x3b1403[_0x4e181f(0x29d)]+'\x0aAfter:\x20'+_0xc8d01d[_0x4e181f(0x29d)]+_0x4e181f(0x288)+this[_0x4e181f(0x46d)][_0x4e181f(0x29d)]);this['_updateState'](_0xc8d01d);},'onSendChangeset':_0x537235=>{const _0x1d9eb9=_0x33cb,_0x4b4131={'eventID':u[_0x1d9eb9(0x441)][_0x1d9eb9(0x2fa)],'data':{'unitID':_0x537235[_0x1d9eb9(0x427)],'unitType':this[_0x1d9eb9(0x540)],'changeset':_0x537235,'memberID':this[_0x1d9eb9(0x461)][_0x1d9eb9(0x36b)]()}};this[_0x1d9eb9(0x461)]['send'](_0x4b4131,this[_0x1d9eb9(0x427)]);},'onMissingChangesets':({from:_0x52ae18,to:_0x5617ab})=>{const _0x33bbcb=_0x33cb;this[_0x33bbcb(0x581)]['debug']('[CollaborationEntity]',_0x33bbcb(0x35a)+_0x52ae18+_0x33bbcb(0x45a)+_0x5617ab);const _0x4f274b={'eventID':u['CollaborationEvent'][_0x33bbcb(0x575)],'data':{'unitID':_0x1942f6,'unitType':this[_0x33bbcb(0x540)],'from':_0x52ae18,'to':_0x5617ab}};this[_0x33bbcb(0x461)][_0x33bbcb(0x3ef)](_0x4f274b,this[_0x33bbcb(0x427)]);}};}async[_0x4f4baa(0x37b)](_0x12910b){const _0x5a9097=_0x4f4baa;var _0x345124,_0x39a5e7;const _0x3aa5f1=await this[_0x5a9097(0x403)][_0x5a9097(0x24b)](this[_0x5a9097(0x427)]),_0x3a6101=(_0x345124=_0x3aa5f1==null?void 0x0:_0x3aa5f1[_0x5a9097(0x48a)])!=null?_0x345124:[],_0x1a036f=(_0x39a5e7=_0x3aa5f1==null?void 0x0:_0x3aa5f1[_0x5a9097(0x211)])!=null?_0x39a5e7:null,_0xa0dcd=this[_0x5a9097(0x427)];try{this['_replayCachedMutations'](_0x1a036f,_0x3a6101);}catch(_0x57eb23){this[_0x5a9097(0x581)][_0x5a9097(0x370)](_0x57eb23);}const _0x44499a=this['_createHandler']();if(_0x12910b){const _0x2489c5=bt(this[_0x5a9097(0x4d3)],_0xa0dcd,this[_0x5a9097(0x540)],_0x1a036f,_0x3a6101,_0x44499a);return _0x2489c5 instanceof $?_0x2489c5[_0x5a9097(0x233)]():(_0x2489c5 instanceof H||_0x2489c5 instanceof k)&&_0x2489c5['resend'](),_0x2489c5;}return this['_injector'][_0x5a9097(0x3bb)](B,_0xa0dcd,this['_type'],_0x1a036f,_0x3a6101,_0x44499a);}[_0x4f4baa(0x408)](_0x56bca5,_0x39f670){const _0x3ec28e=_0x4f4baa;var _0x5df0ca,_0x35bea1;const _0x1fef6a=this[_0x3ec28e(0x582)][_0x3ec28e(0x543)]['fetchThroughInterceptors'](this[_0x3ec28e(0x582)][_0x3ec28e(0x543)][_0x3ec28e(0x2ad)]()[_0x3ec28e(0x53f)]);(_0x5df0ca=_0x1fef6a((_0x56bca5==null?void 0x0:_0x56bca5[_0x3ec28e(0x48a)])||[],null))==null||_0x5df0ca[_0x3ec28e(0x502)](_0x4aecfd=>this[_0x3ec28e(0x499)]['executeCommand'](_0x4aecfd['id'],_0x4aecfd['params'])),(_0x35bea1=_0x1fef6a(_0x39f670||[],null))==null||_0x35bea1['forEach'](_0x5d9bb5=>this[_0x3ec28e(0x499)][_0x3ec28e(0x526)](_0x5d9bb5['id'],_0x5d9bb5[_0x3ec28e(0x4fb)]));}};pe=be([p(0x3,_[_0x4f4baa(0x451)](_[_0x4f4baa(0x548)])),p(0x4,_['Inject'](exports[_0x4f4baa(0x3a1)])),p(0x5,_['Inject'](u[_0x4f4baa(0x24a)])),p(0x6,_[_0x4f4baa(0x451)](c['LocaleService'])),p(0x7,_[_0x4f4baa(0x451)](u[_0x4f4baa(0x357)])),p(0x8,c[_0x4f4baa(0x56d)]),p(0x9,c[_0x4f4baa(0x40b)]),p(0xa,N[_0x4f4baa(0x249)]),p(0xb,c['IPermissionService']),p(0xc,_[_0x4f4baa(0x29c)](Ce))],pe);let Me=class extends pe{constructor(_0x30882c,_0x261392,_0x47924b,_0xbdad51,_0x5d2f9e,_0x5b3d57,_0x560060,_0x3be88f,_0x26898e,_0xef8387,_0x48827f,_0x70ce2e,_0x4e7fd6,_0x212e4b,_0x2efc5b,_0x870112,_0x5d2ce2){const _0x4b5401=_0x4f4baa;super(_0x30882c,_0x261392,_0x47924b,_0xbdad51,_0x5d2f9e,_0x5b3d57,_0x560060,_0x3be88f,_0x4e7fd6,_0x212e4b,_0x2efc5b,_0x870112,_0x5d2ce2),this['unitID']=_0x30882c,this['type']=_0x261392,this[_0x4b5401(0x2af)]=_0x47924b,this[_0x4b5401(0x58d)]=_0x26898e,this['_docTransformIMECacheService']=_0xef8387,this[_0x4b5401(0x382)]=_0x48827f,this[_0x4b5401(0x3ea)]=_0x70ce2e;}[_0x4f4baa(0x433)](){const _0x3b92b7=_0x4f4baa,_0x46e57c=super[_0x3b92b7(0x433)]();return _0x46e57c[_0x3b92b7(0x2c9)]=_0x49dbd=>this[_0x3b92b7(0x26a)][_0x3b92b7(0x422)](_0x49dbd),_0x46e57c[_0x3b92b7(0x443)]=_0x2317ef=>this[_0x3b92b7(0x382)][_0x3b92b7(0x3c8)](_0x2317ef),_0x46e57c[_0x3b92b7(0x387)]=_0x38b6ee=>this['_docSyncEditingCollabCursorService'][_0x3b92b7(0x49b)](_0x38b6ee),_0x46e57c[_0x3b92b7(0x1f1)]=_0x4d9fa1=>this[_0x3b92b7(0x26a)][_0x3b92b7(0x56f)](_0x4d9fa1),_0x46e57c;}async[_0x4f4baa(0x568)](){const _0x308445=_0x4f4baa,_0x1bb3dc=await super[_0x308445(0x568)]();return this['_docStateChangeManagerService']['docStateChange$'][_0x308445(0x236)](g['takeUntil'](this[_0x308445(0x3c9)]))[_0x308445(0x2fe)](_0xdc2d70=>{const _0x41317d=_0x308445;if(_0xdc2d70==null)return;const {unitId:_0x58b49f,redoState:_0x2f3cec,commandId:_0x32eb5c}=_0xdc2d70;if(_0x58b49f!==this[_0x41317d(0x427)])return;const _0x30b359={'id':_0x32eb5c,'type':c[_0x41317d(0x2b1)][_0x41317d(0x473)],'params':{'unitId':_0x58b49f,'actions':_0x2f3cec[_0x41317d(0x371)],'textRanges':null}};this[_0x41317d(0x3f2)](_0x30b359);}),_0x1bb3dc;}};Me=be([p(0x3,_[_0x4f4baa(0x451)](_[_0x4f4baa(0x548)])),p(0x4,_[_0x4f4baa(0x451)](exports[_0x4f4baa(0x3a1)])),p(0x5,_[_0x4f4baa(0x451)](u[_0x4f4baa(0x24a)])),p(0x6,_[_0x4f4baa(0x451)](c[_0x4f4baa(0x4b4)])),p(0x7,_['Inject'](u[_0x4f4baa(0x357)])),p(0x8,_[_0x4f4baa(0x451)](M[_0x4f4baa(0x2e2)])),p(0x9,_['Inject'](fe)),p(0xa,_[_0x4f4baa(0x451)](me)),p(0xb,_[_0x4f4baa(0x451)](Fe)),p(0xc,c[_0x4f4baa(0x56d)]),p(0xd,c['ICommandService']),p(0xe,N[_0x4f4baa(0x249)]),p(0xf,c[_0x4f4baa(0x398)]),p(0x10,_[_0x4f4baa(0x29c)](Ce))],Me),exports['SheetCollaborationEntity']=class extends pe{constructor(_0x36e7a6,_0x2a82ca,_0x1c0705,_0x1073cd,_0xe01c08,_0x3bbb84,_0x5e51a8,_0x360593,_0x1d18e4,_0x52eebe,_0x51fb26,_0x3b1efb,_0x29670f,_0x4613ea){const _0x35b80f=_0x4f4baa;super(_0x36e7a6,_0x2a82ca,_0x1c0705,_0x1073cd,_0xe01c08,_0x3bbb84,_0x5e51a8,_0x360593,_0x52eebe,_0x51fb26,_0x3b1efb,_0x29670f,_0x4613ea),this[_0x35b80f(0x427)]=_0x36e7a6,this['type']=_0x2a82ca,this[_0x35b80f(0x2af)]=_0x1c0705,this[_0x35b80f(0x4dc)]=_0x1d18e4;}[_0x4f4baa(0x433)](){const _0x25613f=_0x4f4baa,_0x54da08=super[_0x25613f(0x433)]();return _0x54da08[_0x25613f(0x443)]=_0x2bdc25=>this[_0x25613f(0x4dc)][_0x25613f(0x3c8)](_0x2bdc25),_0x54da08;}async[_0x4f4baa(0x568)](){const _0x5446eb=_0x4f4baa,_0x88a1a=await super[_0x5446eb(0x568)]();return this[_0x5446eb(0x430)](this[_0x5446eb(0x499)][_0x5446eb(0x3ce)]((_0x1e1caf,_0x43fcbe)=>{const _0x454fa2=_0x5446eb;if(_0x1e1caf[_0x454fa2(0x302)]!==c['CommandType'][_0x454fa2(0x473)]||_0x43fcbe!=null&&_0x43fcbe[_0x454fa2(0x3f3)]||_0x43fcbe!=null&&_0x43fcbe[_0x454fa2(0x347)])return;const _0x5a59df=_0x1e1caf['params'];if((_0x5a59df==null?void 0x0:_0x5a59df[_0x454fa2(0x3dd)])!==this[_0x454fa2(0x427)])return;const _0x22471d=_0x1e1caf,_0x165bca=this[_0x454fa2(0x582)][_0x454fa2(0x543)][_0x454fa2(0x257)](this['_compressMutationService']['interceptor'][_0x454fa2(0x2ad)]()[_0x454fa2(0x311)])([_0x22471d],null)||[_0x22471d];this[_0x454fa2(0x3f2)](_0x165bca[0x0]);})),_0x88a1a;}},exports[_0x4f4baa(0x39a)]=be([p(0x3,_['Inject'](_[_0x4f4baa(0x548)])),p(0x4,_[_0x4f4baa(0x451)](exports['LocalCacheService'])),p(0x5,_['Inject'](u[_0x4f4baa(0x24a)])),p(0x6,_[_0x4f4baa(0x451)](c['LocaleService'])),p(0x7,_['Inject'](u['RevisionService'])),p(0x8,_[_0x4f4baa(0x451)](Ie)),p(0x9,c[_0x4f4baa(0x56d)]),p(0xa,c[_0x4f4baa(0x40b)]),p(0xb,N[_0x4f4baa(0x249)]),p(0xc,c[_0x4f4baa(0x398)]),p(0xd,_[_0x4f4baa(0x29c)](Ce))],exports[_0x4f4baa(0x39a)]);const et=[_0x4f4baa(0x2db),_0x4f4baa(0x3b9),_0x4f4baa(0x23b),_0x4f4baa(0x2ed),'blue400',_0x4f4baa(0x4b2)];class Ve extends c['Disposable']{constructor(){const _0x3ef067=_0x4f4baa;super(...arguments),d(this,_0x3ef067(0x4d5),new Map()),d(this,_0x3ef067(0x285),0x0);}['assignAColorForMemberID'](_0x5a065e){const _0x59c90b=_0x4f4baa;if(this['_assignedColors']['has'](_0x5a065e))return this[_0x59c90b(0x4d5)][_0x59c90b(0x2e7)](_0x5a065e);const _0x1de896=et[this[_0x59c90b(0x285)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%et['length'],this[_0x59c90b(0x4d5)][_0x59c90b(0x203)](_0x5a065e,_0x1de896),_0x1de896;}}var ys=Object[_0x4f4baa(0x4e3)],ws=Object[_0x4f4baa(0x2f2)],Ls=(_0x43cc8e,_0x3a126e,_0x347d26,_0x185fcb)=>{for(var _0x1062f5=_0x185fcb>0x1?void 0x0:_0x185fcb?ws(_0x3a126e,_0x347d26):_0x3a126e,_0x30fc3a=_0x43cc8e['length']-0x1,_0x31585e;_0x30fc3a>=0x0;_0x30fc3a--)(_0x31585e=_0x43cc8e[_0x30fc3a])&&(_0x1062f5=(_0x185fcb?_0x31585e(_0x3a126e,_0x347d26,_0x1062f5):_0x31585e(_0x1062f5))||_0x1062f5);return _0x185fcb&&_0x1062f5&&ys(_0x3a126e,_0x347d26,_0x1062f5),_0x1062f5;},q=(_0x171465,_0x5c674b)=>(_0xea14a8,_0x3200d1)=>_0x5c674b(_0xea14a8,_0x3200d1,_0x171465);const Ms=0x12c,Ns=0x64,As=()=>{let _0x129a27=[],_0x183e22=!0x1;return _0x42831e=>{_0x129a27['push'](_0x42831e),_0x183e22||(_0x183e22=!0x0,setTimeout(()=>{const _0x301fd5=_0x33cb;_0x129a27[_0x301fd5(0x502)](_0x37ca61=>_0x37ca61()),_0x129a27=[],_0x183e22=!0x1;}));};};let Ne=class extends c['RxDisposable']{constructor(_0x49a581,_0x2fadff,_0x16df8b,_0x378597,_0xabf3b1,_0x304797,_0xd78fb8,_0x186655){const _0x4a9bf4=_0x4f4baa;super(),d(this,'_online',!0x1),d(this,'_init',!0x1),d(this,_0x4a9bf4(0x3ec),new g[(_0x4a9bf4(0x20d))](new Map())),d(this,'cursorInfo$',this[_0x4a9bf4(0x3ec)][_0x4a9bf4(0x330)]()),d(this,'_roomMembers$',new g['BehaviorSubject']([])),d(this,_0x4a9bf4(0x4ff),this[_0x4a9bf4(0x42c)][_0x4a9bf4(0x236)](g[_0x4a9bf4(0x470)](Ms))),d(this,'_updateLocalCursor',$e((_0x36bcee,_0x3116eb)=>{const _0x655b06=_0x4a9bf4,_0xe74d66={'eventID':u[_0x655b06(0x441)][_0x655b06(0x3c4)],'data':{'unitID':this['unitID'],'memberID':this[_0x655b06(0x461)][_0x655b06(0x36b)](),'selection':Ye['serializeRangeWithSheet'](_0x36bcee,_0x3116eb[_0x655b06(0x40e)])}};this['_session']['send'](_0xe74d66,this['unitID']);},Ns)),(this[_0x4a9bf4(0x427)]=_0x49a581,this[_0x4a9bf4(0x461)]=_0x2fadff,this[_0x4a9bf4(0x4d3)]=_0x16df8b,this[_0x4a9bf4(0x3d2)]=_0x378597,this[_0x4a9bf4(0x1d5)]=_0xabf3b1,this[_0x4a9bf4(0x1d3)]=_0x304797,this[_0x4a9bf4(0x499)]=_0xd78fb8,this[_0x4a9bf4(0x256)]=_0x186655);}get[_0x4f4baa(0x4cd)](){const _0x9e70ed=_0x4f4baa;return this[_0x9e70ed(0x3ec)][_0x9e70ed(0x483)]();}get['roomMembers'](){const _0x20b457=_0x4f4baa;return this['_roomMembers$'][_0x20b457(0x483)]();}[_0x4f4baa(0x4bf)](){const _0xa356d9=_0x4f4baa;super[_0xa356d9(0x4bf)](),this[_0xa356d9(0x3ec)][_0xa356d9(0x469)](new Map()),this[_0xa356d9(0x3ec)][_0xa356d9(0x33d)](),this[_0xa356d9(0x42c)]['next']([]),this['_roomMembers$'][_0xa356d9(0x33d)]();}[_0x4f4baa(0x57a)](){const _0x302a11=_0x4f4baa;this['_init']||(this['_init']=!0x0,this[_0x302a11(0x461)]['sessionStatus$'][_0x302a11(0x236)](g[_0x302a11(0x3de)](this['dispose$']))['subscribe'](_0x4ab089=>{const _0x440a5b=_0x302a11;_0x4ab089===W[_0x440a5b(0x4b7)]?this[_0x440a5b(0x20a)]():this[_0x440a5b(0x44c)]();}),this[_0x302a11(0x461)]['event$']['pipe'](g[_0x302a11(0x3de)](this[_0x302a11(0x3c9)]))[_0x302a11(0x2fe)](_0x49c7db=>{const _0x163936=_0x302a11,_0x59130e=_0x49c7db['eventID'];_0x59130e===u['CollaborationEvent'][_0x163936(0x3c4)]&&this[_0x163936(0x349)](_0x49c7db),_0x59130e===u[_0x163936(0x441)][_0x163936(0x41d)]&&this['_onCursorDelete'](_0x49c7db);}),this['_onRefRangeChange'](),this[_0x302a11(0x430)](this[_0x302a11(0x499)]['onCommandExecuted'](_0x4579e4=>{const _0x53fcb7=_0x302a11;if(this[_0x53fcb7(0x27a)]&&_0x4579e4['id']===E['SetSelectionsOperation']['id']&&_0x4579e4[_0x53fcb7(0x4fb)][_0x53fcb7(0x3dd)]===this[_0x53fcb7(0x427)]){const _0x36439a=_0x4579e4[_0x53fcb7(0x4fb)];this[_0x53fcb7(0x3b3)](_0x36439a[_0x53fcb7(0x462)],_0x36439a[_0x53fcb7(0x22a)][0x0]);}})));}[_0x4f4baa(0x349)](_0x296635){const _0x19fe55=_0x4f4baa;var _0x56a86b,_0x293648;const {memberID:_0x3fa57e,selection:_0x3666f3}=_0x296635[_0x19fe55(0x253)],{sheetName:_0x33c8c6,range:_0x3ecf71}=Ye['deserializeRangeWithSheet'](_0x3666f3),_0x3590c6={'name':(_0x293648=(_0x56a86b=this['_memberService'][_0x19fe55(0x3ed)](this[_0x19fe55(0x427)],_0x3fa57e))==null?void 0x0:_0x56a86b[_0x19fe55(0x28a)])!=null?_0x293648:_0x19fe55(0x2b3),'range':this[_0x19fe55(0x230)](_0x33c8c6,_0x3ecf71),'sheetID':_0x33c8c6,'color':this[_0x19fe55(0x3d2)]['assignAColorForMemberID'](_0x3fa57e),'selection':_0x3666f3},_0x520f87=this[_0x19fe55(0x4cd)];_0x520f87[_0x19fe55(0x203)](_0x3fa57e,_0x3590c6),this[_0x19fe55(0x3ec)]['next'](_0x520f87);}[_0x4f4baa(0x216)](_0x213c65){const _0x10dff5=_0x4f4baa,{memberID:_0x337998}=_0x213c65[_0x10dff5(0x253)],_0x403016=this[_0x10dff5(0x4cd)];_0x403016[_0x10dff5(0x2fd)](_0x337998),this['_cursorInfo$'][_0x10dff5(0x469)](_0x403016);}[_0x4f4baa(0x230)](_0xfc56f0,_0x4d0e64){const _0x3d8ae2=_0x4f4baa;var _0x18cb1b,_0x59e259;const _0x69239f=(_0x59e259=(_0x18cb1b=this[_0x3d8ae2(0x1d3)][_0x3d8ae2(0x419)](this['unitID']))==null?void 0x0:_0x18cb1b[_0x3d8ae2(0x1bc)](_0xfc56f0))==null?void 0x0:_0x59e259[_0x3d8ae2(0x369)]();return(_0x69239f==null?void 0x0:_0x69239f[_0x3d8ae2(0x3c6)](_0x3e4c4f=>c[_0x3d8ae2(0x53c)][_0x3d8ae2(0x365)](_0x3e4c4f,_0x4d0e64)))||_0x4d0e64;}['_onRefRangeChange'](){const _0x25ac3f=_0x4f4baa,_0x2d55cd=new c['DisposableCollection'](),_0x3bf5d1=As(),_0x79faad=()=>{const _0x2b784d=_0x33cb;_0x2d55cd['dispose']();const _0x279f7a=(_0x1db564,_0x112ff4,_0x1c70df,_0x22a383)=>{const _0x1597a3=_0x33cb;let _0x2817be=[];switch(_0x1db564['id']){case E[_0x1597a3(0x400)][_0x1597a3(0x1ef)]:{_0x2817be=E[_0x1597a3(0x28f)](_0x1db564,_0x22a383);break;}case E[_0x1597a3(0x400)][_0x1597a3(0x3ee)]:{_0x2817be=E['handleDeleteRangeMoveUp'](_0x1db564,_0x22a383);break;}case E[_0x1597a3(0x400)][_0x1597a3(0x2aa)]:{_0x2817be=E[_0x1597a3(0x485)](_0x1db564,_0x22a383);break;}case E[_0x1597a3(0x400)][_0x1597a3(0x1be)]:{_0x2817be=E['handleInsertRangeMoveDown'](_0x1db564,_0x22a383);break;}case E['EffectRefRangId'][_0x1597a3(0x560)]:{_0x2817be=E['handleInsertRangeMoveRight'](_0x1db564,_0x22a383);break;}case E[_0x1597a3(0x400)]['InsertRowCommandId']:{_0x2817be=E['handleInsertRow'](_0x1db564,_0x22a383);break;}case E[_0x1597a3(0x400)][_0x1597a3(0x58a)]:{_0x2817be=E[_0x1597a3(0x23e)](_0x1db564,_0x22a383);break;}case E[_0x1597a3(0x400)]['RemoveColCommandId']:{_0x2817be=E[_0x1597a3(0x2f9)](_0x1db564,_0x22a383);break;}case E[_0x1597a3(0x400)]['RemoveRowCommandId']:{_0x2817be=E['handleIRemoveRow'](_0x1db564,_0x22a383);break;}}const _0x56a7c4=E[_0x1597a3(0x466)](_0x2817be,_0x22a383),_0x3260a7=this[_0x1597a3(0x4cd)][_0x1597a3(0x2e7)](_0x112ff4);if(_0x3260a7&&_0x56a7c4){const _0x272e46={..._0x3260a7,'range':_0x56a7c4};this['cursorInfo'][_0x1597a3(0x203)](_0x112ff4,_0x272e46),_0x3bf5d1(()=>{const _0x2b82ff=_0x1597a3,_0x1b1a00=this[_0x2b82ff(0x256)][_0x2b82ff(0x471)](_0x56a7c4,_0x5080b9=>(_0x1b1a00[_0x2b82ff(0x4bf)](),_0x279f7a(_0x5080b9,_0x112ff4,_0x1c70df,_0x56a7c4)));_0x2d55cd[_0x2b82ff(0x29a)](_0x1b1a00);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2b784d(0x502)]((_0x33a421,_0x24a11b)=>{const _0x350f29=_0x2b784d,{range:_0x22dc70,sheetID:_0x261315}=_0x33a421,_0x5c326a=this['_refRangeService'][_0x350f29(0x471)](_0x22dc70,_0x79d774=>(_0x5c326a['dispose'](),_0x279f7a(_0x79d774,_0x24a11b,_0x261315,_0x22dc70)));_0x2d55cd[_0x350f29(0x29a)](_0x5c326a);});};this[_0x25ac3f(0x430)](c[_0x25ac3f(0x58c)](this[_0x25ac3f(0x3ec)][_0x25ac3f(0x2fe)](()=>{_0x79faad();})));}['_toggleOnline'](){const _0x77c943=_0x4f4baa;var _0x5c9486,_0x474b9e;if(this['_online']=!0x0,((_0x5c9486=this[_0x77c943(0x1d3)]['getFocusedUnit']())==null?void 0x0:_0x5c9486['getUnitId']())!==this[_0x77c943(0x427)])return;const _0x573b79=(_0x474b9e=this[_0x77c943(0x4d3)][_0x77c943(0x2e7)](E['SheetsSelectionsService'])[_0x77c943(0x3ff)]())==null?void 0x0:_0x474b9e[0x0],_0x5d5d58=this[_0x77c943(0x1d3)][_0x77c943(0x300)](c[_0x77c943(0x35f)]['UNIVER_SHEET'])[_0x77c943(0x2f1)]();_0x573b79&&_0x5d5d58&&this['_updateLocalCursor'](_0x5d5d58['getSheetId'](),_0x573b79);}[_0x4f4baa(0x44c)](){const _0x4e6ef3=_0x4f4baa;this[_0x4e6ef3(0x27a)]=!0x1;}};Ne=Ls([q(0x2,_['Inject'](_[_0x4f4baa(0x548)])),q(0x3,_[_0x4f4baa(0x451)](Ve)),q(0x4,_[_0x4f4baa(0x451)](G)),q(0x5,c[_0x4f4baa(0x45c)]),q(0x6,c[_0x4f4baa(0x40b)]),q(0x7,_[_0x4f4baa(0x451)](E[_0x4f4baa(0x3b6)]))],Ne);var js=Object[_0x4f4baa(0x4e3)],$s=Object[_0x4f4baa(0x2f2)],Hs=(_0x2f78ed,_0x12805d,_0x5d6ad1,_0x51e09c)=>{for(var _0x1ef5ed=_0x51e09c>0x1?void 0x0:_0x51e09c?$s(_0x12805d,_0x5d6ad1):_0x12805d,_0x1e20de=_0x2f78ed['length']-0x1,_0x1ba00f;_0x1e20de>=0x0;_0x1e20de--)(_0x1ba00f=_0x2f78ed[_0x1e20de])&&(_0x1ef5ed=(_0x51e09c?_0x1ba00f(_0x12805d,_0x5d6ad1,_0x1ef5ed):_0x1ba00f(_0x1ef5ed))||_0x1ef5ed);return _0x51e09c&&_0x1ef5ed&&js(_0x12805d,_0x5d6ad1,_0x1ef5ed),_0x1ef5ed;},V=(_0x1891b6,_0x451de8)=>(_0x22840d,_0x44dfab)=>_0x451de8(_0x22840d,_0x44dfab,_0x1891b6);const xs=0x12c,ks=0x64;let Ae=class extends c[_0x4f4baa(0x3b4)]{constructor(_0x22f6e6,_0x52903b,_0x37469f,_0x524f1c,_0x5c3c04,_0x49fdce,_0x4e48a2,_0xd46ff,_0x27ea36){const _0x49ef9e=_0x4f4baa;super(),d(this,_0x49ef9e(0x27a),!0x1),d(this,'_init',!0x1),d(this,_0x49ef9e(0x3ec),new g[(_0x49ef9e(0x20d))](new Map())),d(this,'cursorInfo$',this[_0x49ef9e(0x3ec)]['asObservable']()),d(this,_0x49ef9e(0x42c),new g[(_0x49ef9e(0x20d))]([])),d(this,_0x49ef9e(0x4ff),this[_0x49ef9e(0x42c)]['pipe'](g['debounceTime'](xs))),d(this,_0x49ef9e(0x3b3),$e(_0x5b07a4=>{const _0x851789=_0x49ef9e,_0x593f1b={'eventID':u[_0x851789(0x441)][_0x851789(0x3c4)],'data':{'unitID':this['unitID'],'memberID':this[_0x851789(0x461)][_0x851789(0x36b)](),'selection':Ct(_0x5b07a4)}};this[_0x851789(0x461)][_0x851789(0x3ef)](_0x593f1b,this[_0x851789(0x427)]);},ks)),(this[_0x49ef9e(0x427)]=_0x22f6e6,this[_0x49ef9e(0x461)]=_0x52903b,this[_0x49ef9e(0x4d3)]=_0x37469f,this[_0x49ef9e(0x3d2)]=_0x524f1c,this['_memberService']=_0x5c3c04,this[_0x49ef9e(0x558)]=_0x49fdce,this[_0x49ef9e(0x394)]=_0x4e48a2,this[_0x49ef9e(0x1d3)]=_0xd46ff,this['_commandService']=_0x27ea36);}get[_0x4f4baa(0x4cd)](){const _0xb5bf56=_0x4f4baa;return this[_0xb5bf56(0x3ec)][_0xb5bf56(0x483)]();}get[_0x4f4baa(0x40f)](){const _0x5c30a7=_0x4f4baa;return this[_0x5c30a7(0x42c)]['getValue']();}[_0x4f4baa(0x4bf)](){const _0x1d627c=_0x4f4baa;super['dispose'](),this[_0x1d627c(0x3ec)]['next'](new Map()),this[_0x1d627c(0x3ec)][_0x1d627c(0x33d)](),this[_0x1d627c(0x42c)][_0x1d627c(0x469)]([]),this[_0x1d627c(0x42c)]['complete']();}[_0x4f4baa(0x57a)](){const _0x296ddd=_0x4f4baa;this[_0x296ddd(0x568)]||(this[_0x296ddd(0x568)]=!0x0,this[_0x296ddd(0x461)][_0x296ddd(0x51e)][_0x296ddd(0x236)](g[_0x296ddd(0x3de)](this[_0x296ddd(0x3c9)]))[_0x296ddd(0x2fe)](_0x81efa=>{_0x81efa===W['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this['_session']['event$']['pipe'](g['takeUntil'](this[_0x296ddd(0x3c9)]))[_0x296ddd(0x2fe)](_0x7ff9ec=>{const _0x5eae7e=_0x296ddd,_0x46e556=_0x7ff9ec[_0x5eae7e(0x474)];_0x46e556===u[_0x5eae7e(0x441)][_0x5eae7e(0x3c4)]&&this[_0x5eae7e(0x349)](_0x7ff9ec),_0x46e556===u[_0x5eae7e(0x441)][_0x5eae7e(0x41d)]&&this[_0x5eae7e(0x216)](_0x7ff9ec);}),this[_0x296ddd(0x430)](this[_0x296ddd(0x499)]['onCommandExecuted'](_0x2a647f=>{const _0x3f3dd8=_0x296ddd,_0x18f612=_0x2a647f[_0x3f3dd8(0x4fb)];_0x18f612!=null&&this[_0x3f3dd8(0x27a)]&&_0x2a647f['id']===M[_0x3f3dd8(0x2cc)]['id']&&_0x18f612[_0x3f3dd8(0x3dd)]===this['unitID']&&_0x18f612[_0x3f3dd8(0x1df)]===!0x1&&this[_0x3f3dd8(0x3b3)](_0x18f612[_0x3f3dd8(0x24e)]);})),this[_0x296ddd(0x558)][_0x296ddd(0x4ed)][_0x296ddd(0x236)](g[_0x296ddd(0x3de)](this[_0x296ddd(0x3c9)]))[_0x296ddd(0x2fe)](_0x410eab=>{const _0x562a73=_0x296ddd;if((_0x410eab==null?void 0x0:_0x410eab['unitID'])!==this[_0x562a73(0x427)])return;const _0x4a5499={'eventID':u[_0x562a73(0x441)][_0x562a73(0x3c4)],'data':_0x410eab};this['_onCursorUpdate'](_0x4a5499);}),this[_0x296ddd(0x430)](this['_commandService'][_0x296ddd(0x3ce)](_0x138a38=>{const _0x2fe671=_0x296ddd;if(_0x138a38[_0x2fe671(0x4fb)]==null)return;const _0x5dede5=_0x138a38['params'];if(_0x138a38['id']!==M[_0x2fe671(0x1c3)]['id']||_0x5dede5[_0x2fe671(0x3dd)]!==this[_0x2fe671(0x427)])return;const _0x2a8ad9={'id':_0x2fe671(0x40d),'params':_0x5dede5},_0x2d6e1c=this[_0x2fe671(0x4cd)];for(const [_0x40c53f,_0x51be66]of _0x2d6e1c){const _0x3f862b={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2fe671(0x427)],'actions':null,'textRanges':_0x51be66[_0x2fe671(0x24e)]}},_0x1ab96f=this[_0x2fe671(0x394)]['transformMutation'](_0x2a8ad9,_0x3f862b,!0x1);if(u[_0x2fe671(0x3b5)](_0x1ab96f))throw _0x1ab96f[_0x2fe671(0x370)];_0x2d6e1c[_0x2fe671(0x203)](_0x40c53f,{..._0x51be66,'ranges':_0x1ab96f[_0x2fe671(0x522)][_0x2fe671(0x4fb)][_0x2fe671(0x4bd)]});}queueMicrotask(()=>{const _0x108202=_0x2fe671;this[_0x108202(0x3ec)][_0x108202(0x469)](_0x2d6e1c);});})));}[_0x4f4baa(0x349)](_0x5e6e67){const _0x45c866=_0x4f4baa;var _0x25abac,_0x591999;const {memberID:_0x1a107c,selection:_0x4ca7a3}=_0x5e6e67[_0x45c866(0x253)],_0x22f3ed=ms(_0x4ca7a3),_0x3444bf=(_0x591999=(_0x25abac=this[_0x45c866(0x1d5)]['getMember'](this['unitID'],_0x1a107c))==null?void 0x0:_0x25abac['name'])!=null?_0x591999:_0x45c866(0x2b3),_0x1fd880={'color':this[_0x45c866(0x3d2)]['assignAColorForMemberID'](_0x1a107c),'name':_0x3444bf,'ranges':_0x22f3ed},_0x57189b=this[_0x45c866(0x4cd)];_0x57189b[_0x45c866(0x203)](_0x1a107c,_0x1fd880),this[_0x45c866(0x3ec)][_0x45c866(0x469)](_0x57189b);}[_0x4f4baa(0x216)](_0x5f24a9){const _0x3dfc10=_0x4f4baa,{memberID:_0x11327a}=_0x5f24a9[_0x3dfc10(0x253)],_0x215706=this[_0x3dfc10(0x4cd)];_0x215706['delete'](_0x11327a),this['_cursorInfo$'][_0x3dfc10(0x469)](_0x215706);}[_0x4f4baa(0x20a)](){const _0x55f726=_0x4f4baa;var _0x3d0027;if(this[_0x55f726(0x27a)]=!0x0,((_0x3d0027=this[_0x55f726(0x1d3)][_0x55f726(0x3c0)]())==null?void 0x0:_0x3d0027['getUnitId']())!==this[_0x55f726(0x427)])return;const _0xf18311=this['_injector'][_0x55f726(0x2e7)](M[_0x55f726(0x2cd)])[_0x55f726(0x3ff)](),_0x38f933=_0xf18311==null?void 0x0:_0xf18311[_0x55f726(0x1e2)](M[_0x55f726(0x48b)]);Array['isArray'](_0x38f933)&&_0x38f933['length']>0x0&&this[_0x55f726(0x3b3)](_0x38f933);}['_toggleOffline'](){const _0x1da10e=_0x4f4baa;this[_0x1da10e(0x27a)]=!0x1;}};Ae=Hs([V(0x2,_['Inject'](_[_0x4f4baa(0x548)])),V(0x3,_['Inject'](Ve)),V(0x4,_['Inject'](G)),V(0x5,_[_0x4f4baa(0x451)](Fe)),V(0x6,u[_0x4f4baa(0x263)]),V(0x7,c[_0x4f4baa(0x45c)]),V(0x8,c[_0x4f4baa(0x40b)])],Ae);var Bs=Object['defineProperty'],Fs=Object[_0x4f4baa(0x2f2)],Vs=(_0x12c49a,_0x4e57a3,_0x24c6fc,_0x231199)=>{for(var _0x5847b5=_0x231199>0x1?void 0x0:_0x231199?Fs(_0x4e57a3,_0x24c6fc):_0x4e57a3,_0x5d1b6d=_0x12c49a['length']-0x1,_0x29ebd7;_0x5d1b6d>=0x0;_0x5d1b6d--)(_0x29ebd7=_0x12c49a[_0x5d1b6d])&&(_0x5847b5=(_0x231199?_0x29ebd7(_0x4e57a3,_0x24c6fc,_0x5847b5):_0x29ebd7(_0x5847b5))||_0x5847b5);return _0x231199&&_0x5847b5&&Bs(_0x4e57a3,_0x24c6fc,_0x5847b5),_0x5847b5;},Pe=(_0x278e4a,_0x255d83)=>(_0xf9e88,_0x5d551d)=>_0x255d83(_0xf9e88,_0x5d551d,_0x278e4a);let Z=class extends c[_0x4f4baa(0x3b4)]{constructor(_0x1b2d47,_0x19ba7e,_0x4b2d3a){const _0x932ed6=_0x4f4baa;super(),d(this,_0x932ed6(0x55a),new Map()),d(this,'_entityInit$',new g['Subject']()),(this[_0x932ed6(0x1d3)]=_0x1b2d47,this[_0x932ed6(0x4d3)]=_0x19ba7e,this['_collabSessionService']=_0x4b2d3a,this['_init']());}[_0x4f4baa(0x4bf)](){const _0x12a5f1=_0x4f4baa;super[_0x12a5f1(0x4bf)](),this[_0x12a5f1(0x337)][_0x12a5f1(0x33d)](),this[_0x12a5f1(0x55a)][_0x12a5f1(0x502)](_0x155ce5=>_0x155ce5[_0x12a5f1(0x4bf)]());}[_0x4f4baa(0x58e)](_0x53620d){const _0x30a68e=_0x4f4baa;return this['_entities'][_0x30a68e(0x26c)](_0x53620d)?this[_0x30a68e(0x55a)][_0x30a68e(0x2e7)](_0x53620d)[_0x30a68e(0x4fa)]:this[_0x30a68e(0x337)][_0x30a68e(0x236)](g[_0x30a68e(0x570)](_0x1c7ff1=>_0x1c7ff1['unitID']===_0x53620d),g[_0x30a68e(0x505)](_0x4ae01f=>_0x4ae01f[_0x30a68e(0x4fa)]));}[_0x4f4baa(0x568)](){const _0x518115=_0x4f4baa;this[_0x518115(0x1d3)][_0x518115(0x43c)](c['UniverInstanceType'][_0x518115(0x4fe)])[_0x518115(0x236)](g[_0x518115(0x3de)](this[_0x518115(0x3c9)]))[_0x518115(0x2fe)](async _0x8a676f=>{const _0x12e62f=_0x518115,_0x55ef85=_0x8a676f[_0x12e62f(0x286)](),_0x379cc1=await this[_0x12e62f(0x22d)](_0x55ef85);this[_0x12e62f(0x337)]['next'](_0x379cc1),this[_0x12e62f(0x55a)]['set'](_0x55ef85,_0x379cc1);}),this[_0x518115(0x1d3)]['getTypeOfUnitAdded$'](c[_0x518115(0x35f)]['UNIVER_DOC'])[_0x518115(0x236)](g[_0x518115(0x3de)](this[_0x518115(0x3c9)]))['pipe'](g[_0x518115(0x570)](_0x3bb0b2=>!_0x3bb0b2['getUnitId']()[_0x518115(0x2d2)]('__')))[_0x518115(0x2fe)](async _0x2a11c7=>{const _0x5f3a6d=_0x518115,_0x54273d=_0x2a11c7[_0x5f3a6d(0x286)](),_0x3acb23=await this['_startDocCollabCursor'](_0x54273d);this[_0x5f3a6d(0x337)][_0x5f3a6d(0x469)](_0x3acb23),this[_0x5f3a6d(0x55a)]['set'](_0x54273d,_0x3acb23);}),g[_0x518115(0x509)](this[_0x518115(0x1d3)][_0x518115(0x35c)](c[_0x518115(0x35f)][_0x518115(0x3e8)]),this['_univerInstanceService'][_0x518115(0x35c)](c['UniverInstanceType'][_0x518115(0x4fe)]))[_0x518115(0x236)](g['takeUntil'](this[_0x518115(0x3c9)]))[_0x518115(0x2fe)](_0x936fb2=>{const _0x4ec94d=_0x518115,_0x49d794=_0x936fb2[_0x4ec94d(0x286)](),_0xf901ff=this['_entities']['get'](_0x49d794);_0xf901ff&&(_0xf901ff['dispose'](),this[_0x4ec94d(0x55a)]['delete'](_0x49d794));});}async['_startSheetCollabCursor'](_0x73fa1){const _0xc274d7=_0x4f4baa,_0x24f08a=await this[_0xc274d7(0x527)][_0xc274d7(0x4ae)](_0x73fa1),_0x43632e=this['_injector'][_0xc274d7(0x3bb)](Ne,_0x73fa1,_0x24f08a);return _0x43632e['init'](),_0x43632e;}async[_0x4f4baa(0x375)](_0x27729d){const _0x172285=_0x4f4baa,_0x36eb88=await this[_0x172285(0x527)][_0x172285(0x4ae)](_0x27729d),_0x5b1256=this[_0x172285(0x4d3)]['createInstance'](Ae,_0x27729d,_0x36eb88);return _0x5b1256['init'](),_0x5b1256;}};Z=Vs([c[_0x4f4baa(0x316)](c[_0x4f4baa(0x413)]['Starting'],Z),Pe(0x0,c[_0x4f4baa(0x45c)]),Pe(0x1,_['Inject'](_[_0x4f4baa(0x548)])),Pe(0x2,_['Inject'](exports[_0x4f4baa(0x334)]))],Z);const le=0x14,tt=0xc8,Ue=0x4,Ws=0x5;function Gs(_0x522a25,_0x2911ef){const _0x350500=_0x4f4baa;let {radius:_0x2bfb59,width:_0x4a3af9,height:_0x429b16}=_0x2911ef;_0x2bfb59=_0x2bfb59!=null?_0x2bfb59:0x0,_0x4a3af9=_0x4a3af9!=null?_0x4a3af9:0x1e,_0x429b16=_0x429b16!=null?_0x429b16:0x1e;let _0x46dc69=0x0,_0x3fb1c4=0x0,_0x165b61=0x0;_0x46dc69=_0x3fb1c4=_0x165b61=Math['min'](_0x2bfb59,_0x4a3af9/0x2,_0x429b16/0x2),_0x522a25['beginPath'](),_0x522a25[_0x350500(0x26b)](_0x46dc69,0x0),_0x522a25[_0x350500(0x30c)](_0x4a3af9-_0x3fb1c4,0x0),_0x522a25[_0x350500(0x4a3)](_0x4a3af9-_0x3fb1c4,_0x3fb1c4,_0x3fb1c4,Math['PI']*0x3/0x2,0x0,!0x1),_0x522a25['lineTo'](_0x4a3af9,_0x429b16-_0x165b61),_0x522a25[_0x350500(0x4a3)](_0x4a3af9-_0x165b61,_0x429b16-_0x165b61,_0x165b61,0x0,Math['PI']/0x2,!0x1),_0x522a25[_0x350500(0x30c)](0x0,_0x429b16),_0x522a25[_0x350500(0x30c)](0x0,_0x46dc69),_0x522a25[_0x350500(0x4a3)](_0x46dc69,_0x46dc69,_0x46dc69,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x522a25[_0x350500(0x47d)](),_0x2911ef[_0x350500(0x459)]&&(_0x522a25[_0x350500(0x1ed)](),_0x522a25['fillStyle']=_0x2911ef['fill'],_0x2911ef[_0x350500(0x2a6)]===_0x350500(0x536)?_0x522a25[_0x350500(0x459)](_0x350500(0x536)):_0x522a25[_0x350500(0x459)](),_0x522a25[_0x350500(0x1c7)]());}class Te extends R[_0x4f4baa(0x240)]{constructor(_0x4db24b,_0x152e81){const _0xdcf54b=_0x4f4baa;super(_0x4db24b,_0x152e81),d(this,_0xdcf54b(0x42d)),d(this,_0xdcf54b(0x25b)),(this['color']=_0x152e81==null?void 0x0:_0x152e81[_0xdcf54b(0x42d)],this[_0xdcf54b(0x25b)]=_0x152e81==null?void 0x0:_0x152e81['text']);}static[_0x4f4baa(0x20c)](_0x3fd7b7,_0x9b07b0){const _0x553313=_0x4f4baa,{text:_0x2cb7f1,color:_0x356f96}=_0x9b07b0;_0x3fd7b7[_0x553313(0x1ed)](),_0x3fd7b7['font']=_0x553313(0x31d);const _0x3ac3ce=_0x3fd7b7['measureText'](_0x2cb7f1)[_0x553313(0x3bf)],_0x5a8c12=Math[_0x553313(0x367)](_0x3ac3ce+0x2*Ue,tt);Gs(_0x3fd7b7,{'height':le,'radius':0x4,'width':_0x5a8c12,'fill':_0x356f96,'evented':!0x1}),_0x3fd7b7[_0x553313(0x298)]='#FFF';const _0x41928f=Ue,_0x10eca5=le-Ws,_0x132760=tt-0x2*Ue;if(_0x3ac3ce>_0x132760){let _0x6beb78='',_0x5a962c=0x0;for(const _0xb639c of _0x2cb7f1){const _0x15c574=_0x3fd7b7[_0x553313(0x21b)](_0xb639c)[_0x553313(0x3bf)];if(_0x5a962c+_0x15c574<=_0x132760-_0x3fd7b7[_0x553313(0x21b)]('...')[_0x553313(0x3bf)])_0x6beb78+=_0xb639c,_0x5a962c+=_0x15c574;else{_0x6beb78+=_0x553313(0x4d2);break;}}_0x3fd7b7[_0x553313(0x335)](_0x6beb78,_0x41928f,_0x10eca5);}else _0x3fd7b7[_0x553313(0x335)](_0x2cb7f1,_0x41928f,_0x10eca5);_0x3fd7b7['restore']();}[_0x4f4baa(0x3f0)](_0x512bfa){const _0x5f6aec=_0x4f4baa;Te[_0x5f6aec(0x20c)](_0x512bfa,this);}}const Ys=0x1,Ks=1.5;class Tt extends R[_0x4f4baa(0x240)]{constructor(_0x218b9b,_0x453c99){const _0xcdac7a=_0x4f4baa;super(_0x218b9b,_0x453c99),d(this,'_color'),d(this,_0xcdac7a(0x2c7),!0x1),d(this,_0xcdac7a(0x472)),d(this,_0xcdac7a(0x1f5),''),d(this,_0xcdac7a(0x25e),_0xcdac7a(0x3d1)),d(this,_0xcdac7a(0x1ca)),(_0x453c99&&this[_0xcdac7a(0x2b7)](_0x453c99),this[_0xcdac7a(0x396)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0xcdac7a(0x42e)][_0xcdac7a(0x1e1)](()=>this[_0xcdac7a(0x2b7)]({'hovered':!0x1})));}[_0x4f4baa(0x2b7)](_0x30bfb5){const _0x520ee4=_0x4f4baa;var _0x9b8416,_0x26f5f5,_0x43553e,_0x51cb4b,_0x5d19e8,_0x19a824;this[_0x520ee4(0x51d)]=(_0x9b8416=_0x30bfb5[_0x520ee4(0x42d)])!=null?_0x9b8416:this[_0x520ee4(0x51d)],this[_0x520ee4(0x2c7)]=(_0x26f5f5=_0x30bfb5['hovered'])!=null?_0x26f5f5:this['_hovered'],this[_0x520ee4(0x472)]=(_0x43553e=_0x30bfb5[_0x520ee4(0x40e)])!=null?_0x43553e:this['_range'],this[_0x520ee4(0x1f5)]=(_0x51cb4b=_0x30bfb5['name'])!=null?_0x51cb4b:this[_0x520ee4(0x1f5)],this[_0x520ee4(0x25e)]=(_0x5d19e8=_0x30bfb5[_0x520ee4(0x37e)])!=null?_0x5d19e8:this[_0x520ee4(0x25e)],this[_0x520ee4(0x1ca)]=(_0x19a824=_0x30bfb5[_0x520ee4(0x4f8)])!=null?_0x19a824:this[_0x520ee4(0x1ca)],this[_0x520ee4(0x2fb)]({'width':_0x30bfb5[_0x520ee4(0x3bf)],'height':_0x30bfb5[_0x520ee4(0x303)]});}[_0x4f4baa(0x306)](_0x2c507a){const _0x4f093e=_0x4f4baa,{row:_0x335c56,column:_0x56a007}=_0x2c507a;if(_0x335c56>=this['_range']['startRow']&&_0x335c56<=this[_0x4f093e(0x472)][_0x4f093e(0x42b)]&&_0x56a007>=this[_0x4f093e(0x472)][_0x4f093e(0x585)]&&_0x56a007<=this[_0x4f093e(0x472)]['endColumn']){this[_0x4f093e(0x2b7)]({'hovered':!0x0});return;}this[_0x4f093e(0x2b7)]({'hovered':!0x1});}[_0x4f4baa(0x1fe)](_0x377377){return!0x1;}['_draw'](_0xd0e58c){const _0x1790d8=_0x4f4baa;R[_0x1790d8(0x3b2)]['drawWith'](_0xd0e58c,{'width':this[_0x1790d8(0x3bf)],'height':this[_0x1790d8(0x303)],'strokeWidth':Ks,'stroke':this[_0x1790d8(0x51d)],'evented':!0x1,'fill':this[_0x1790d8(0x1ca)]}),this[_0x1790d8(0x2c7)]&&(_0xd0e58c['save'](),_0xd0e58c[_0x1790d8(0x513)](0x1,0x0,0x0,0x1,this[_0x1790d8(0x3bf)],this['_labelPosition']===_0x1790d8(0x45b)?0x0:-le),Te[_0x1790d8(0x20c)](_0xd0e58c,{'text':this['_name'],'color':this['_color']}),_0xd0e58c[_0x1790d8(0x1c7)]());}}var Xs=Object[_0x4f4baa(0x4e3)],qs=Object[_0x4f4baa(0x2f2)],Js=(_0x190c11,_0x426601,_0x3c0989,_0x2a14ce)=>{const _0xf3b9c8=_0x4f4baa;for(var _0x538cfc=_0x2a14ce>0x1?void 0x0:_0x2a14ce?qs(_0x426601,_0x3c0989):_0x426601,_0x1535e2=_0x190c11[_0xf3b9c8(0x56e)]-0x1,_0xd8ba8a;_0x1535e2>=0x0;_0x1535e2--)(_0xd8ba8a=_0x190c11[_0x1535e2])&&(_0x538cfc=(_0x2a14ce?_0xd8ba8a(_0x426601,_0x3c0989,_0x538cfc):_0xd8ba8a(_0x538cfc))||_0x538cfc);return _0x2a14ce&&_0x538cfc&&Xs(_0x426601,_0x3c0989,_0x538cfc),_0x538cfc;},he=(_0x544645,_0x34ca8a)=>(_0x4abe57,_0x42eeea)=>_0x34ca8a(_0x4abe57,_0x42eeea,_0x544645);const zs=0x1389;let de=class extends c[_0x4f4baa(0x3b4)]{constructor(_0x110f37,_0xd0f341,_0x5b3dc3,_0x31148a){const _0x3eae91=_0x4f4baa;super(),d(this,_0x3eae91(0x241),new Set()),d(this,_0x3eae91(0x43a),null),(this[_0x3eae91(0x401)]=_0x110f37,this['_univerInstanceService']=_0xd0f341,this[_0x3eae91(0x406)]=_0x5b3dc3,this[_0x3eae91(0x237)]=_0x31148a,this['_init']());}get[_0x4f4baa(0x1fd)](){const _0x586d96=_0x4f4baa;return this[_0x586d96(0x406)][_0x586d96(0x27f)](this['_univerInstanceService'][_0x586d96(0x300)](c[_0x586d96(0x35f)][_0x586d96(0x4fe)])[_0x586d96(0x286)]())[_0x586d96(0x528)](z[_0x586d96(0x3f9)]);}get[_0x4f4baa(0x57e)](){const _0x1ad668=_0x4f4baa;return this[_0x1ad668(0x1d3)][_0x1ad668(0x300)](c[_0x1ad668(0x35f)]['UNIVER_SHEET'])[_0x1ad668(0x286)]();}[_0x4f4baa(0x568)](){const _0x2b7f8e=_0x4f4baa;this['_sheetSkeletonManagerService'][_0x2b7f8e(0x326)][_0x2b7f8e(0x236)](b['takeUntil'](this['dispose$']),b['switchMap'](_0x28042a=>{const _0x5cf364=_0x2b7f8e;if(_0x28042a){const _0x40deec=_0x28042a[_0x5cf364(0x4d6)];return g[_0x5cf364(0x4f5)](this[_0x5cf364(0x401)][_0x5cf364(0x58e)](this[_0x5cf364(0x57e)]),this[_0x5cf364(0x237)][_0x5cf364(0x54a)])[_0x5cf364(0x236)](b[_0x5cf364(0x1e2)](([_0x3f6029,_0x6f66dd])=>{const _0x4f5a93=_0x5cf364,_0x4ceefa=new Map();return _0x3f6029[_0x4f5a93(0x502)]((_0x4396ad,_0x111813)=>{const _0x5eddb3=_0x4f5a93;if(_0x4396ad[_0x5eddb3(0x4b6)]===_0x40deec){const _0x585404={..._0x4396ad};_0x585404[_0x5eddb3(0x42d)]=_0x6f66dd[_0x4396ad['color']],_0x4ceefa['set'](_0x111813,_0x585404);}}),{'skeleton':_0x28042a,'cursors':_0x4ceefa};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x2b7f8e(0x2fe)](({skeleton:_0x372a6a,cursors:_0x49b2c4})=>{const _0x377821=_0x2b7f8e;this[_0x377821(0x331)](),_0x372a6a&&this[_0x377821(0x2d8)](_0x372a6a,_0x49b2c4);}),this[_0x2b7f8e(0x1fd)][_0x2b7f8e(0x326)][_0x2b7f8e(0x2fe)](_0x49d367=>{const _0x2b04ed=_0x2b7f8e;if(_0x49d367==null)return;const {skeleton:_0x215e01}=_0x49d367,_0x301495=this['_renderManagerService'][_0x2b04ed(0x27f)](this[_0x2b04ed(0x57e)]),{scene:_0x483d0b}=_0x301495;_0x483d0b[_0x2b04ed(0x3a3)][_0x2b04ed(0x1e1)]($e(_0x5bbfc9=>{const _0x2d1393=_0x2b04ed;var _0x5bda1b,_0x14b3ff;const {offsetX:_0xea3d8c,offsetY:_0x33e006}=_0x5bbfc9,{x:_0x1770e8,y:_0x1ed435}=_0x483d0b[_0x2d1393(0x4db)](R[_0x2d1393(0x4e9)][_0x2d1393(0x282)]([_0xea3d8c,_0x33e006])),{scaleX:_0x5812f1,scaleY:_0x1b5c4e}=_0x483d0b[_0x2d1393(0x3e5)](),_0x37217e=_0x483d0b[_0x2d1393(0x305)](z[_0x2d1393(0x2c4)]['VIEW_MAIN']),_0x527d7e=_0x483d0b[_0x2d1393(0x32d)](R[_0x2d1393(0x4e9)][_0x2d1393(0x282)]([_0x1770e8,_0x1ed435]),_0x37217e),_0x203273=_0x215e01[_0x2d1393(0x399)](_0xea3d8c,_0x33e006,_0x5812f1,_0x1b5c4e,_0x527d7e);((_0x5bda1b=this[_0x2d1393(0x43a)])==null?void 0x0:_0x5bda1b[_0x2d1393(0x36f)])===_0x203273[_0x2d1393(0x36f)]&&((_0x14b3ff=this[_0x2d1393(0x43a)])==null?void 0x0:_0x14b3ff[_0x2d1393(0x484)])===_0x203273['row']||this[_0x2d1393(0x241)]['forEach'](_0x5cc4f1=>{const _0x46a5cf=_0x2d1393;_0x5cc4f1[_0x46a5cf(0x306)](_0x203273);});},0x64));});}[_0x4f4baa(0x2d8)](_0xf34ab4,_0x2bf84e){const _0x43d787=_0x4f4baa;var _0xd0ab27;const _0x357028=(_0xd0ab27=this['_sheetSkeletonManagerService'][_0x43d787(0x212)]())==null?void 0x0:_0xd0ab27[_0x43d787(0x545)];if(!_0x357028)return;const _0x1b61ec=this[_0x43d787(0x2d9)]();if(!_0x1b61ec)return;this[_0x43d787(0x241)]['forEach'](_0x38eda2=>{const _0x36407b=_0x43d787;_0x38eda2[_0x36407b(0x573)]();});const {scene:_0xa61be3}=_0x1b61ec,_0x445443=Zs(Array[_0x43d787(0x1fa)](_0x2bf84e[_0x43d787(0x3e9)]()))['map'](_0x1d0085=>{const _0x290d63=_0x43d787,{color:_0xe78693,range:_0x5e2f66,name:_0x23e4c1,selection:_0x19d599,sheetID:_0x12b18b}=_0x1d0085,{startColumn:_0x170f5e,startRow:_0x1fdb93,endColumn:_0xeb5aa3,endRow:_0x2ff252}=_0x5e2f66,_0xcfec36=z[_0x290d63(0x23a)](_0x1fdb93,_0x170f5e,_0xa61be3,_0x357028),_0x28d809=z[_0x290d63(0x23a)](_0x2ff252,_0xeb5aa3,_0xa61be3,_0x357028),{columnHeaderHeightAndMarginTop:_0x4cf494}=_0x357028,{startX:_0xd22706,startY:_0xc43a8b}=_0xcfec36,{endX:_0x2dc3c0,endY:_0x34c294}=_0x28d809,_0x11a39a=_0x2dc3c0-_0xd22706,_0x225cf6=_0x34c294-_0xc43a8b,_0x4b813d={'labelPosition':_0xc43a8b-_0x4cf494>=le?_0x290d63(0x3d1):'bottom','sheetID':_0x12b18b,'range':_0x5e2f66,'color':_0xe78693,'name':_0x23e4c1,'selection':_0x19d599,'left':_0xd22706,'top':_0xc43a8b,'width':_0x11a39a,'height':_0x225cf6,'evented':!0x1,'zIndex':zs};return new Tt(_0x23e4c1,_0x4b813d);});_0xa61be3[_0x43d787(0x2fc)](_0x445443,Ys),this[_0x43d787(0x241)]=new Set(_0x445443);}[_0x4f4baa(0x331)](){const _0x4763f3=_0x4f4baa;var _0x4cb8e6;(_0x4cb8e6=this[_0x4763f3(0x241)])==null||_0x4cb8e6[_0x4763f3(0x502)](_0x562fb1=>_0x562fb1['dispose']());}['_getSheetObject'](){const _0x39c4aa=_0x4f4baa;return z[_0x39c4aa(0x49c)](this[_0x39c4aa(0x1d3)],this['_renderManagerService']);}};de=Js([c[_0x4f4baa(0x316)](c[_0x4f4baa(0x413)]['Steady'],de),he(0x0,_['Inject'](Z)),he(0x1,c[_0x4f4baa(0x45c)]),he(0x2,R[_0x4f4baa(0x501)]),he(0x3,_[_0x4f4baa(0x451)](c[_0x4f4baa(0x283)]))],de);function Zs(_0x23a9de){const _0x65220a=_0x4f4baa,_0x352b11=new Map();return _0x23a9de['forEach'](_0x550171=>{const _0x11a8a3=_0x33cb;if(_0x352b11[_0x11a8a3(0x26c)](_0x550171[_0x11a8a3(0x343)])){const _0x277d8f=_0x352b11[_0x11a8a3(0x2e7)](_0x550171[_0x11a8a3(0x343)]);_0x277d8f[_0x11a8a3(0x28a)]+=',\x20'+_0x550171[_0x11a8a3(0x28a)];}else _0x352b11[_0x11a8a3(0x203)](_0x550171[_0x11a8a3(0x343)],_0x550171);}),Array['from'](_0x352b11[_0x65220a(0x3e9)]());}var L=function(){const _0xa70971=_0x4f4baa;return L=Object[_0xa70971(0x254)]||function(_0x3533b6){const _0x3b04e0=_0xa70971;for(var _0x5db278,_0x45fe23=0x1,_0x2b6629=arguments[_0x3b04e0(0x56e)];_0x45fe23<_0x2b6629;_0x45fe23++){_0x5db278=arguments[_0x45fe23];for(var _0x10176 in _0x5db278)Object[_0x3b04e0(0x3da)][_0x3b04e0(0x2ae)][_0x3b04e0(0x234)](_0x5db278,_0x10176)&&(_0x3533b6[_0x10176]=_0x5db278[_0x10176]);}return _0x3533b6;},L[_0xa70971(0x535)](this,arguments);},Qs=function(_0x12d339,_0x46303c){const _0x590e59=_0x4f4baa;var _0x241941={};for(var _0x5ba9fb in _0x12d339)Object['prototype'][_0x590e59(0x2ae)][_0x590e59(0x234)](_0x12d339,_0x5ba9fb)&&_0x46303c['indexOf'](_0x5ba9fb)<0x0&&(_0x241941[_0x5ba9fb]=_0x12d339[_0x5ba9fb]);if(_0x12d339!=null&&typeof Object[_0x590e59(0x250)]==_0x590e59(0x4a5)){for(var _0x198a84=0x0,_0x5ba9fb=Object[_0x590e59(0x250)](_0x12d339);_0x198a84<_0x5ba9fb[_0x590e59(0x56e)];_0x198a84++)_0x46303c[_0x590e59(0x265)](_0x5ba9fb[_0x198a84])<0x0&&Object[_0x590e59(0x3da)][_0x590e59(0x28e)][_0x590e59(0x234)](_0x12d339,_0x5ba9fb[_0x198a84])&&(_0x241941[_0x5ba9fb[_0x198a84]]=_0x12d339[_0x5ba9fb[_0x198a84]]);}return _0x241941;},We=w[_0x4f4baa(0x56a)](function(_0x48f9eb,_0x36741a){const _0x2ea062=_0x4f4baa;var _0x28565b=_0x48f9eb[_0x2ea062(0x492)],_0x7552b=_0x48f9eb['id'],_0x48fa24=_0x48f9eb[_0x2ea062(0x313)],_0x3736f0=_0x48f9eb[_0x2ea062(0x2a2)],_0x3f41b9=Qs(_0x48f9eb,['icon','id',_0x2ea062(0x313),_0x2ea062(0x2a2)]),_0x4994e9=_0x2ea062(0x1d8)[_0x2ea062(0x498)](_0x7552b,'\x20')[_0x2ea062(0x498)](_0x48fa24||'')['trim'](),_0x20d8c4=w['useRef']('_'[_0x2ea062(0x498)](si()));return Rt(_0x28565b,''[_0x2ea062(0x498)](_0x7552b),{'defIds':_0x28565b[_0x2ea062(0x4c2)],'idSuffix':_0x20d8c4[_0x2ea062(0x39b)]},L({'ref':_0x36741a,'className':_0x4994e9},_0x3f41b9),_0x3736f0);});function Rt(_0x19f2ab,_0x3d9a8d,_0x36bd48,_0x1fc8fa,_0x348700){const _0x4715a7=_0x4f4baa;return w['createElement'](_0x19f2ab[_0x4715a7(0x51f)],L(L({'key':_0x3d9a8d},ei(_0x19f2ab,_0x36bd48,_0x348700)),_0x1fc8fa),(ti(_0x19f2ab,_0x36bd48)[_0x4715a7(0x246)]||[])['map'](function(_0x3a76ce,_0x2a3614){const _0x437004=_0x4715a7;return Rt(_0x3a76ce,''['concat'](_0x3d9a8d,'-')['concat'](_0x19f2ab[_0x437004(0x51f)],'-')[_0x437004(0x498)](_0x2a3614),_0x36bd48,void 0x0,_0x348700);}));}function _0x1982(){const _0x418297=['_initStatusComponent','doc.mutation.rich-text-editing','range','roomMembers','MessageType','onSendChangeset','permissionRejEvent','LifecycleStages','_handleHeartbeatEvent','getUndoRedoMutationParamsCache','_rescheduleHeartbeatEvent','listRoles','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUniverSheetInstance','COMPLETION_FINISHED','PENDING','UNIVER_COLLABORATION_CLIENT_PLUGIN','USERS_LEAVE','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_transformStack','concatMap','auth.needGotoLoginAlert','transformIMECache','batchAllowed','IUndoRedoService','DependentOn','open$','unitID','flatMap','/-/object/-/batch_allowed','fetchMissingChangesets','endRow','_roomMembers$','color','onPointerLeave$','_collaborationSessionService','disposeWithMe','LOGIN_URL_KEY','sessionStatus','_createHandler','revision','LIVESHARE_REQUEST_HOST','MergeInterceptorFactory','_cachedData','_getScale','mergeOverrideWithDependencies','_lastPointer','_localeService','getTypeOfUnitAdded$','SNAPSHOT_HAS_BEEN_REMOVED','_userManagerService','on-line-single','_transformUndoredo','CollaborationEvent','InsertSheetMutation','onTransformSelections','mapTo','8211186oNfLwh','onRemoteRej','HEARTBEAT_TIMEOUT','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','[CollaborationSession]','pluginName','IDLE','_toggleOffline','_handleLeaveEvent','_clearLocalCache','_textBubble','urlChange$','Inject','incrementRevForDocument','CONNECTOR_DATA_TOO_LARGE','_render','Subject','getCurrentUser','_hover','_sendHeartbeat','fill','\x20to\x20','bottom','IUniverInstanceService','_pendingMutations','SUCCUSS','replaceState','_initModules','_session','subUnitId','_socket','enableLocalCache','_isPermissionRej','runRefRangeMutations','_acknowledgedAwaitingChangeset','uni.network.url-service','next','objects','COLLAB_SUBMIT_CHANGESET_URL_KEY','USERS_ENTER','_state','ISnapshotServerService','_status$','debounceTime','registerRefRange','_range','MUTATION','eventID','_retryConnectingTimer','_saveCache','random','toggleOffline','0\x200\x2016\x2016','isTransformChangesetsSuccess','UNRECOGNIZED','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','closePath','FileId','max','_removeRoom','_onConnectionFailed','leaveEvent','getValue','row','handleInsertCol','LICENSE_DISTRO_REJECTED','5892666frmNVy','patch','collabStatus.syncing','mutations','serializeTextRange','_event$','onMissedChangesetFetched','disposeUnit','unit','[FetchMissState]','replace','icon','_initCloseConn','svg','_getCtorByUniverType','_undoStacks','@univerjs/design','concat','_commandService','defs','syncEditingCollabCursor','getSheetObject','COMMENT_UPDATE','CollaborationSession','_beforeCloseService','c1Prime','_scheduleSaving','_anchor','arc','_id','function','TOO_MANY_REQUESTS','PSEUDO_FETCH_MISSING_RESULT','_getSendChangesetTimeout','_clearHeartbeatTimer','disableLocalCache','toggleOnline','APPLY_REVISION_CONFILICT','Starting','requireSession','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','collabStatus.fetchMiss','setUndoRedoMutationParamsCache','gold400','registerOnClose','LocaleService','_messageService','sheetID','ONLINE','substring','changesets','compose','string','getParam','textRanges','session.connection-failed','dispose','[UniverCollaborationClientPlugin]','_startCollaboration','defIds','PERMISSION_REJ','_onUserJoin','rgba(255,\x20255,\x20255,\x200.01)','hide','getUnhiddenWorksheets','_loadSheet','_joinRoom','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','collaborationUniverTypes','IContextService','cursorInfo','57206KwkbiY','_transformUndoRedoStack','objectID','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','...','_injector','OFFLINE','_assignedColors','sheetId','conflict.title','reduce','show','resourceIDs','getRelativeToViewportCoord','_sheetTransformSelectionsService','AuthzIoHttpService','stringify','encodeURIComponent','LICENSE_IMPORT_SIZE_EXCEEDED','CHANGESET_REVISION_CONFILICT','_eventUnsubscribe','defineProperty','_substituteRedoStack','collaboration.single-unit.warning','_snapshotService','_disableEditing','_incrementRevisionNumber','Vector2','loadDoc','getCollabEntity','joinEvent','collabCursorState$','ILocalStorageService','permission.title','onCommentUpdate','b64DecodeUnicode','newCsEvent','put','Steady','combineLatest','translate(.97)','allowed','backgroundColor','_handleHover','cursorInfo$','params','DesktopCollaborationStatusDisplayController','/object','UNIVER_SHEET','roomMembers$','enableOfflineEditing','IRenderManagerService','forEach','closeSession','save\x20fail\x20reason\x20is\x20','switchMap','collabStatus.offline','online','[OfflineState]:\x20received\x20changeset.','merge','JOIN','_getCurrentRevision','unknown','@wendellhu/redi/react-bindings','_substituteUndoStack','getOffsetConfig','getItem','univer-pro.collaboration-client-socket-service','awaiting_with_pending','transform','sequenceExecute','_ws','reject','_collaborationTimeoutTimer','connectInjector','Plugin','deepClone','delay','appendMutation','_color','sessionStatus$','tag','_transformRemoteChangesetByIMECache','image/jpeg','m2Prime','_onRemoteChangeset','onload','collab-text-range-','executeCommand','_collabSessionService','with','fetch_missing','_configService','[DataLoaderController]','/universer-api/snapshot/','collaboration-client.offline-data-not-saved','_transitionLocked','SNAPSHOT_SERVER_URL_KEY','catch','updateOfflineData','_replaceFileID','unload','failed\x20to\x20apply\x20missed\x20changesets!','apply','evenodd','getTime','url(#off-line-single_clip0_910_343)','_onRemoteACK','getUnitType','useObservable','Rectangle','ALREADY_EXISTS','includes','COMPRESS_MUTATION_APPLY','_type','_getAnchorBounding','HEARTBEAT_INTERVAL','interceptor','reverse','skeleton','_remoteChangesetQueue','_handler','Injector','_unitOnClients','currentTheme$','_onRecvEvent','enableSingleActiveInstanceLock','_onMessage','transformMutation','_clearCollaborationTimeoutTimer','readAsDataURL','session.will-retry','Error\x20on\x20receiving\x20event','CHANGESET_ACK','SetSelectionsOperation','SYNCED','onRemoteChangeset','_awaitingChangeset','_syncEditingCollabCursorService','[SyncedState]:\x20received\x20acknowledgement.','_entities','@univerjs/engine-render','@univerjs/ui','fromEvent','_queuedRemoteChangesets','getActiveRange','InsertRangeMoveRightCommandId','_scene','override','FAIL','use','_getSaveTimeout','image/bmp','_redoStacks','_init','setCurrentUser','forwardRef','NEW_CHANGESETS','/-/object/list','ILogService','length','transformRemoteChangeset','filter','setParam','NO_OTHER_CLIENTS_EDITING','makeDirty','joinRsp','FETCH_MISSING','INotificationService','3935320xAswuF','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_applyRemoteChangeset','init','toString','status$','_members','_unitId','_updateStatus','event$','_logService','_compressMutationService','resend','/collaborator','startColumn','subunit','_getDocObject','getUnitStatus$','push','MoveRangeCommandId','IImageIoService','toDisposable','_docStateChangeManagerService','getCollabCursors$','_revisionService','collabStatus.synced','getSheetBySheetId','cmd','InsertRangeMoveDownCommandId','/resources','_disabled','_clearOtherTimers','_tryEnsureSocket','RichTextEditingMutation','26817720LzJoFF','[PendingState]:\x20received\x20acknowledgement.','@univerjs/sheets-ui','restore','registerBeforeClose','RETRY_CONNECTING_INTERVAL','_backgroundColor','UNKNOWN_CODE','_anchorDot','RETRY_CONNECTING_MAX_COUNT','_httpService','SNAPSHOT_URL_KEY','activeSheet$','_initMergeInterceptor','image/jpg','_univerInstanceService','userID','_memberService','AWAITING_WITH_PENDING','SheetsSelectionsService','univerjs-icon\x20univerjs-icon-','_onUserLeave','_collaborationPaused','file','_selfUnitIDs','_localStorageService','YUUMI_UNABLE_LOAD_URL','isEditing','UniverCollaborationPlugin','subscribeEvent','map','getCollabEntity$','_unlockTransition','collaborators','black','addImageSourceCache','INGEST','_onJoinRoomEvent','size','_sessions','/universer-api/stream/file/upload','save','rxjs/operators','DeleteRangeMoveLeftCommandId','TEXT_RANGE_LAYER_INDEX','onTransformRemoteChangesetByIMECache','_setupBeforeClosingHandler','_singleActiveUnitService','infoRsp','_name','DEFAULT_FILE_NAME','[PendingState]:\x20unhandled\x20univer\x20type:\x20','IMEInputManagerService','/role','from','getSheetId','[CollaborationState]:\x20apply\x20error!','_sheetSkeletonManagerService','triggerDblclick','univer-offline','onRemoteAck','entries','routeKey','set','then','symbol','/universer-api/comb','liveShareNewHost','_onCombEvent','2800PsYDQX','_toggleOnline','isTransformMutationsWithChangesetSuccess','drawWith','BehaviorSubject','getImage','history','LocalUndoRedoService','awaitingChangeset','getCurrent','conflict','state$','_HTTPService','_onCursorDelete','createCollaborator','action','HTTPRequest','slice','measureText','getConfig','_drawRange','headers','unsubscribe','DataLoaderController','_http','LOCAL_CACHE_INTERVAL_KEY','ACTIVE_UNIT_EVENT_CHANNEL','SnapshotServerOverHTTPService','ImageSourceType','_waitForHeartbeatResponse','createSocket','[CollaborationEntity]','_docSkeletonManagerService','selections','_clearRedo','updatePermissionPoint','_startSheetCollabCursor','_notificationService','_createInitialState','_getMergeRange','_updateURLWithCurrentState','IUIPartsService','_schedule','call','OnLineSingle','pipe','_themeService','transformChangesets','permission.content','getCoordByCell','verdancy600','message$','INTERNAL_ERROR','handleMoveRange','createElement','Shape','_cursors','_socketReady','onlineStatusIcon','/universer-api/snapshot','_onFetchMissResult','children','INVALID_ARGUMENT','deserializeToCombResponse','IMessageService','CompressMutationService','loadOfflineData','_waitCount','exhaustSavingTask','ranges','isPermissionRej','getOwnPropertySymbols','HELLO','DisposableCollection','data','assign','_hideTimer','_refRangeService','fetchThroughInterceptors','LICENSE_EXPORT_SIZE_EXCEEDED','UPDATE_PERMISSION_OBJ','connection\x20error','text','getResourcesRequest','_updateState','_labelPosition','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','ws://127.0.0.1:8000/universer-api/comb/connect','rxjs','_drawAnchor','ITransformService','EXCHANGE_SIGN_URL_SERVER_URL_KEY','indexOf','pauseCollaboration','popstate','parse','resolve','_docTransformIMECacheService','moveTo','has','post','_sessionStatus$','awaiting','_retryCount','method','textEncoder','_scheduleReconnection','close','xlink:href','members','some','setItem','RegularPolygon','_online','SnapshotService','unshift','findNodePositionByCharIndex','debug','getRenderById','isTransformMutationsWithChangesetFailure','[CollaborationSessionService]','FromArray','ThemeService','_getSnapshotAPIPrefix','_colorIndex','getUnitId','_urlService','\x0aCurrent:\x20','url(#on-line-single_clip0_910_349)','name','_executeRemoteChangeset','off-line-single_clip0_910_343','@univerjs/docs','propertyIsEnumerable','handleDeleteRangeMoveLeft','CONFLICT','0\x200\x2017\x2016','_collabCursorState$','RECV','&to=','WebSocketService','csRejEvent','MSG_FOR_ERROR','fillStyle','IBeforeCloseService','add','error$','Optional','status','IHTTPImplementation','M0\x200H16V16H0z','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRemoteRejected','extend','SNAPSHOT_INVALID_SNAPSHOT','_lockTransition','WorkbookEditablePermission','fillRule','/universer-api/oidc/authpage','XHRHTTPImplementation','LOCAL_CACHE_INTERVAL','InsertColCommandId','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_fetchMissChangesets','getInterceptPoints','hasOwnProperty','session','registerComponent','CommandType','useDependency','Unknown\x20user','div','commentUpdate$','_clearTimeoutTimer','setShapeProps','lodash/debounce','_checkMissing','snapshot','clsx','offline','updateMember','_ensureSubject','/object/','_updateLocalCache','on-line-single_clip0_910_349','setWaitCount','_onConflict','VIEWPORT_KEY','COLORS','clearTimeout','_hovered','APPLY_REJECT','onTransformIME','getUnitOnRev','HEADER_MENU','SetTextSelectionsOperation','TextSelectionManagerService','submit\x20changeset\x20error!','ColorKit','LEAVE','@univerjs/core','startsWith','collaMsg','Warning','_clearUndo','WebURLService','SessionStatus','_updateCollabCursors','_getSheetObject','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','purple300','deleteCollaborator','SheetPermissionInitController','AUTHZ_URL_KEY','UNIVER_SLIDE','_getAPIPrefixPath','url','DocStateChangeManagerService','_saveTaskMap','_decreaseWaiting','Disposable','UNAUTHENTICATED','get','location','removeMember','updateCursorEvent','OffLineSingle','saveChangeset','red300','_initStatusListener','4CylTBT','NOT_FOUND','getActiveSheet','getOwnPropertyDescriptor','_loadDoc','_heartbeatTimer','OTHER_CLIENTS_EDITING','UNDEFINED','UNIVER_UNKNOWN','_getUploadFileURL','handleIRemoveCol','SUBMIT_CHANGESET','transformByState','addObjects','delete','subscribe','25802mtYhgM','getCurrentUnitForType','onStarting','type','height','searchParams','getViewport','onMouseMove','synced','_syncEditingCollabCursor','UniverCollaborationClientPlugin','FETCH_MISS','target','lineTo','[OfflineState]:\x20received\x20rejection.','createIdentifier','transformMutationsWithChangeset','DocSkeletonManagerService','COMPRESS_MUTATION_SEND','UniverIcon','className','newValue','unit-cache-','OnLifecycle','@univerjs/rpc','_collaborationController','whenReady','JOINING','addObject','?size=','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_scheduleClearOtherTimer','parseProtocolChangeset','href','HEARTBEAT','ImageUploadStatusType','registerHTTPInterceptor','objectActions','/universer-api/file/{fileID}/sign-url','currentSkeleton$','getColor','\x20-\x20','_createSocket','isArray','univer-online-status-icon','_exhaustRemoteChangesetQueue','getVpScrollXYInfoByPosToVp','_clearScheduledTask','univer-online-status-title','asObservable','_removeCollabCursors','univer-pro.collaboration-client.single-active-unit-service','idSuffix','CollaborationSessionService','fillText','ERROR_IMAGE','_entityInit$','collabStatus.notCollab','withCredentials','round','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','collab-text-anchor-','complete','NOT_COLLAB','APPLY_NON_SEQUENTIAL_REVISION','setAlpha','IURLService','sheets','selection','state','2174637GoRBCI','?url=','onlyLocal','_document','_onCursorUpdate','editing\x20status\x20changed\x20to','socket\x20open.','BuiltInUIPart','COLLAB_WEB_SOCKET_URL','_removeClearOtherTimer','pushState','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','off-line-single','getCurrentRevForDocument','UserManagerService','getDocObject','IAuthzIoService','_transformIMECache','RevisionService','univer-online-status','POST','fetching\x20missing\x20changesets\x20from\x20','AWAITING','getTypeOfUnitDisposed$','_timeoutTimer','_initUnitPermissionChange','UniverInstanceType','list','BASE64','clear','_send','_setupSubUnitSync','contains','baseRev','min','update','getMergeData','_shapes','getMemberID','csAckEvent','UUID','_unitID','column','error','actions','_scheduleCollaborationTimeoutTimer','originalMeta','_unitStatus','_startDocCollabCursor','liveShareOperation','replaceTextRanges','YUUMI_URL_COL_OUT_OF_RANGE','transformUndoRedo','_roomMembers','_createInitialStateImpl','LIVESHARE_OPERATION','path','labelPosition','IConfigService','_config','CollaborationStatusDisplay','_docTransformSelectionsService','ImageIoService','saveSheetBlock','_commentUpdate$','Tools','onSyncEditingCollabCursor','react','distinctUntilChanged','localeService','clipPath','SheetCollabCursorShape','_getRedoStack','setTimeout','all','editingUnit','_commentService','_socket$','_imageSourceCache','_transformService','CollaborationSocketService','onPointerEnter$','getRangePointData','IPermissionService','getCellPositionByOffset','SheetCollaborationEntity','current','body','ERROR_EXCEED_SIZE','_cursor','pending','isInternalEditorID','LocalCacheService','mapDocumentTypeToUniverType','onPointerMove$','_socketService','take','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','none','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','1em','objectType','[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.','APPLY_PERMISSION_DENIED','getViewModel','memberID','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_change$','colorChannel1','Rect','_updateLocalCursor','RxDisposable','isTransformMutationFailure','RefRangeService','_uiPartsService','encode','jiqing500','_socketMessageSubscription','createInstance','_getSignURL','SetWorksheetActivateCommand','_handleEvent','width','getFocusedUnit','_getAPIPrefix','_sendHeartbeatTimer','saveImage','UPDATE_CURSOR','isActive','find','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','transformSelections','dispose$','_permissionService','initWorkbookPermissionChange','c2Prime','LIVESHARE_TERMINATE','onCommandExecuted','@wendellhu/redi','_handleJoinEvent','top','_colorAssignService','LIVESHARE_NEW_HOST','HTTPService','m1Prime','/unit/','_sendingTimer','_onConnectionOpen','43wWkrTG','prototype','ERROR_IMAGE_TYPE','collaboratorID','unitId','takeUntil','setInterval','NodePositionConvertToCursor','LICENSE_MAX_UNITS_EXCEEDED','attrs','_updateSubUnitFromURLParams','_transformSelections','getAncestorScale','storage','removeParam','UNIVER_DOC','values','_docSyncEditingCollabCursorService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_cursorInfo$','getMember','DeleteRangeMoveUpCommandId','send','_draw','updateCollaborator','_onLocalMutation','fromCollab','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','UNKNOWN_CMD','_getLoginPath','_state$','displayName','SheetSkeletonManagerService','IRemoteInstanceService','_scheduleTimestamp','toRgbString','clearInterval','code','getCurrentSelections','EffectRefRangId','_collabCursorController','LIVESHARE_FETCH_OPERATIONS','_localCacheService','close$','serializeCombRequest','_renderManagerService','shareReplay','_replayCachedMutations','CollaborationController','generateRandomId','ICommandService'];_0x1982=function(){return _0x418297;};return _0x1982();}function ei(_0x3ffc20,_0x5136c2,_0x5b7e1e){const _0x2302c3=_0x4f4baa;var _0x110716=L({},_0x3ffc20[_0x2302c3(0x3e2)]);_0x5b7e1e!=null&&_0x5b7e1e[_0x2302c3(0x3b1)]&&_0x110716['fill']===_0x2302c3(0x3b1)&&(_0x110716['fill']=_0x5b7e1e[_0x2302c3(0x3b1)]);var _0x4c9db1=_0x5136c2['defIds'];return!_0x4c9db1||_0x4c9db1[_0x2302c3(0x56e)]===0x0||(_0x3ffc20[_0x2302c3(0x51f)]===_0x2302c3(0x564)&&_0x110716[_0x2302c3(0x275)]&&(_0x110716[_0x2302c3(0x275)]=_0x110716[_0x2302c3(0x275)]+_0x5136c2['idSuffix']),Object[_0x2302c3(0x201)](_0x110716)[_0x2302c3(0x502)](function(_0x29eb7e){const _0x1696bf=_0x2302c3;var _0x3e3a4b=_0x29eb7e[0x0],_0x55b166=_0x29eb7e[0x1];typeof _0x55b166==_0x1696bf(0x4bb)&&(_0x110716[_0x3e3a4b]=_0x55b166[_0x1696bf(0x491)](/url\(#(.*)\)/,'url(#$1'[_0x1696bf(0x498)](_0x5136c2[_0x1696bf(0x333)],')')));})),_0x110716;}function ti(_0x3aa058,_0x435d0d){const _0x41e184=_0x4f4baa;var _0x18fb98,_0x33f9e1=_0x435d0d['defIds'];return!_0x33f9e1||_0x33f9e1['length']===0x0?_0x3aa058:_0x3aa058[_0x41e184(0x51f)]===_0x41e184(0x49a)&&(!((_0x18fb98=_0x3aa058[_0x41e184(0x246)])===null||_0x18fb98===void 0x0)&&_0x18fb98[_0x41e184(0x56e)])?L(L({},_0x3aa058),{'children':_0x3aa058['children'][_0x41e184(0x1e2)](function(_0xbb2a6f){const _0x20ff78=_0x41e184;return typeof _0xbb2a6f[_0x20ff78(0x3e2)]['id']==_0x20ff78(0x4bb)&&_0x33f9e1&&_0x33f9e1[_0x20ff78(0x265)](_0xbb2a6f['attrs']['id'])>-0x1?L(L({},_0xbb2a6f),{'attrs':L(L({},_0xbb2a6f[_0x20ff78(0x3e2)]),{'id':_0xbb2a6f[_0x20ff78(0x3e2)]['id']+_0x435d0d[_0x20ff78(0x333)]})}):_0xbb2a6f;})}):_0x3aa058;}function si(){const _0x336b99=_0x4f4baa;return Math[_0x336b99(0x477)]()[_0x336b99(0x57b)](0x24)[_0x336b99(0x4b8)](0x2,0x8);}We['displayName']=_0x4f4baa(0x312);var ii={'tag':_0x4f4baa(0x494),'attrs':{'fill':_0x4f4baa(0x3a7),'viewBox':_0x4f4baa(0x479),'width':_0x4f4baa(0x3a9),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4f4baa(0x538)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x4f4baa(0x448),'strokeLinecap':_0x4f4baa(0x33a),'strokeLinejoin':_0x4f4baa(0x33a),'strokeWidth':1.2}}]},{'tag':_0x4f4baa(0x49a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x4f4baa(0x37d),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4f4baa(0x28c)]},Ot=w[_0x4f4baa(0x56a)](function(_0x4bc504,_0x2d3f52){const _0x1fc710=_0x4f4baa;return w['createElement'](We,Object[_0x1fc710(0x254)]({},_0x4bc504,{'id':_0x1fc710(0x351),'ref':_0x2d3f52,'icon':ii}));});Ot['displayName']=_0x4f4baa(0x2eb);var ni={'tag':_0x4f4baa(0x494),'attrs':{'fill':_0x4f4baa(0x3a7),'viewBox':_0x4f4baa(0x291),'width':_0x4f4baa(0x3a9),'height':_0x4f4baa(0x3a9)},'children':[{'tag':'g','attrs':{'clipPath':_0x4f4baa(0x289)},'children':[{'tag':_0x4f4baa(0x37d),'attrs':{'stroke':'currentColor','d':_0x4f4baa(0x3f4),'strokeLinecap':_0x4f4baa(0x33a),'strokeLinejoin':_0x4f4baa(0x33a),'strokeWidth':1.2}}]},{'tag':_0x4f4baa(0x49a),'attrs':{},'children':[{'tag':_0x4f4baa(0x38b),'attrs':{'id':_0x4f4baa(0x2c1)},'children':[{'tag':_0x4f4baa(0x37d),'attrs':{'fill':'#fff','d':_0x4f4baa(0x29f),'transform':_0x4f4baa(0x4f6)}}]}]}],'defIds':[_0x4f4baa(0x2c1)]},Dt=w[_0x4f4baa(0x56a)](function(_0x419a8c,_0x218a4a){const _0x4223f5=_0x4f4baa;return w[_0x4223f5(0x23f)](We,Object[_0x4223f5(0x254)]({},_0x419a8c,{'id':_0x4223f5(0x43f),'ref':_0x218a4a,'icon':ni}));});Dt[_0x4f4baa(0x3f8)]=_0x4f4baa(0x235);const ri=_0x4f4baa(0x32b),oi=_0x4f4baa(0x32f),ai=_0x4f4baa(0x358),ci='univer-online',li=_0x4f4baa(0x1ff),ne={'onlineStatusIcon':ri,'onlineStatusTitle':oi,'onlineStatus':ai,'online':ci,'offline':li};function hi(_0x16b648){const _0x1c14d5=_0x4f4baa;switch(_0x16b648){case P['OFFLINE']:return _0x1c14d5(0x506);case P[_0x1c14d5(0x290)]:return'collabStatus.conflict';case P[_0x1c14d5(0x30a)]:return _0x1c14d5(0x4b0);case P[_0x1c14d5(0x33e)]:return _0x1c14d5(0x338);case P[_0x1c14d5(0x41b)]:case P[_0x1c14d5(0x35b)]:case P[_0x1c14d5(0x1d6)]:return _0x1c14d5(0x489);case P[_0x1c14d5(0x555)]:return _0x1c14d5(0x1bb);}}function Pt(_0x11dd87){const _0x1f467e=_0x4f4baa,{status$:_0x50ccb2}=_0x11dd87,_0x3dc5db=N[_0x1f467e(0x53b)](_0x50ccb2,P[_0x1f467e(0x33e)]),_0x3e746a=at[_0x1f467e(0x2b2)](c[_0x1f467e(0x4b4)]),_0x5ecb59=_0x3dc5db!==P[_0x1f467e(0x4d4)],_0x4f5ae5=_0x3e746a['t'](hi(_0x3dc5db)),_0xb54f1b=xt(ne['onlineStatus'],{[ne[_0x1f467e(0x507)]]:_0x5ecb59,[ne['offline']]:!_0x5ecb59}),_0x398d91=_0x5ecb59?w[_0x1f467e(0x23f)](Dt,null):w[_0x1f467e(0x23f)](Ot,null);return w[_0x1f467e(0x23f)](_0x1f467e(0x2b4),{'className':_0xb54f1b},w['createElement'](_0x1f467e(0x2b4),{'className':ne[_0x1f467e(0x243)]},_0x398d91),w[_0x1f467e(0x23f)](_0x1f467e(0x2b4),{'className':ne['onlineStatusTitle']},_0x4f5ae5));}var _i=Object[_0x4f4baa(0x4e3)],ui=Object[_0x4f4baa(0x2f2)],di=(_0x586878,_0x7628aa,_0x5b3bb9,_0x4cac94)=>{for(var _0x16ba31=_0x4cac94>0x1?void 0x0:_0x4cac94?ui(_0x7628aa,_0x5b3bb9):_0x7628aa,_0x3bb344=_0x586878['length']-0x1,_0x499dce;_0x3bb344>=0x0;_0x3bb344--)(_0x499dce=_0x586878[_0x3bb344])&&(_0x16ba31=(_0x4cac94?_0x499dce(_0x7628aa,_0x5b3bb9,_0x16ba31):_0x499dce(_0x16ba31))||_0x16ba31);return _0x4cac94&&_0x16ba31&&_i(_0x7628aa,_0x5b3bb9,_0x16ba31),_0x16ba31;},_e=(_0x53745c,_0x4e71b4)=>(_0x2087eb,_0x3b42df)=>_0x4e71b4(_0x2087eb,_0x3b42df,_0x53745c);exports['DesktopCollaborationStatusDisplayController']=class extends c[_0x4f4baa(0x2e5)]{constructor(_0x3c6235,_0x3267ec,_0x126bf2,_0x5a9fde){const _0x30dbbe=_0x4f4baa;super(),d(this,_0x30dbbe(0x46f),new g['BehaviorSubject'](P[_0x30dbbe(0x33e)])),(this[_0x30dbbe(0x1d3)]=_0x3c6235,this[_0x30dbbe(0x3b7)]=_0x3267ec,this[_0x30dbbe(0x4d3)]=_0x126bf2,this[_0x30dbbe(0x318)]=_0x5a9fde,this[_0x30dbbe(0x40c)](),this[_0x30dbbe(0x2ee)]());}[_0x4f4baa(0x40c)](){const _0x1fce29=_0x4f4baa;this['disposeWithMe'](this[_0x1fce29(0x3b7)][_0x1fce29(0x2b0)](N[_0x1fce29(0x34c)][_0x1fce29(0x2cb)],()=>at[_0x1fce29(0x518)](Si({'status$':this[_0x1fce29(0x46f)][_0x1fce29(0x330)]()}),this[_0x1fce29(0x4d3)])));}['_initStatusListener'](){const _0x589e16=_0x4f4baa;this[_0x589e16(0x430)](c['toDisposable'](this[_0x589e16(0x1d3)]['focused$'][_0x589e16(0x236)](g[_0x589e16(0x505)](()=>{const _0xc87363=_0x589e16,_0x5b75af=this[_0xc87363(0x1d3)][_0xc87363(0x3c0)]();return _0x5b75af?this[_0xc87363(0x318)][_0xc87363(0x1e3)](_0x5b75af['getUnitId']()):g['of'](null);}),g[_0x589e16(0x505)](_0x1e48b2=>_0x1e48b2?_0x1e48b2[_0x589e16(0x57c)]:g['of'](P[_0x589e16(0x33e)])))['subscribe'](_0x3f4710=>{const _0x33db12=_0x589e16;this[_0x33db12(0x46f)][_0x33db12(0x469)](_0x3f4710);})));}},exports[_0x4f4baa(0x4fc)]=di([c[_0x4f4baa(0x316)](c[_0x4f4baa(0x413)][_0x4f4baa(0x4ad)],exports['DesktopCollaborationStatusDisplayController']),_e(0x0,c['IUniverInstanceService']),_e(0x1,N[_0x4f4baa(0x232)]),_e(0x2,_['Inject'](_[_0x4f4baa(0x548)])),_e(0x3,_['Inject'](exports['CollaborationController']))],exports['DesktopCollaborationStatusDisplayController']);function Si(_0x3ea358){const {status$:_0x4aaf09}=_0x3ea358;return function(){const _0x3897cb=_0x33cb;return w[_0x3897cb(0x23f)](Pt,{'status$':_0x4aaf09});};}const Ge=_[_0x4f4baa(0x30e)](_0x4f4baa(0x468));var vi=Object[_0x4f4baa(0x4e3)],gi=Object[_0x4f4baa(0x2f2)],fi=(_0x105f02,_0x338b89,_0xc6cafe,_0x17f82a)=>{const _0xb38ad5=_0x4f4baa;for(var _0x416699=_0x17f82a>0x1?void 0x0:_0x17f82a?gi(_0x338b89,_0xc6cafe):_0x338b89,_0x1417cd=_0x105f02[_0xb38ad5(0x56e)]-0x1,_0x4048a7;_0x1417cd>=0x0;_0x1417cd--)(_0x4048a7=_0x105f02[_0x1417cd])&&(_0x416699=(_0x17f82a?_0x4048a7(_0x338b89,_0xc6cafe,_0x416699):_0x4048a7(_0x416699))||_0x416699);return _0x17f82a&&_0x416699&&vi(_0x338b89,_0xc6cafe,_0x416699),_0x416699;},J=(_0x53c6a4,_0x3ca4c2)=>(_0x3be533,_0x5bdcc4)=>_0x3ca4c2(_0x3be533,_0x5bdcc4,_0x53c6a4);function _0x33cb(_0x471abf,_0x199413){const _0x198227=_0x1982();return _0x33cb=function(_0x33cbcc,_0x549bff){_0x33cbcc=_0x33cbcc-0x1ba;let _0x5a7dd1=_0x198227[_0x33cbcc];return _0x5a7dd1;},_0x33cb(_0x471abf,_0x199413);}exports['DataLoaderController']=class extends c[_0x4f4baa(0x3b4)]{constructor(_0x35330a,_0x5add1f,_0x26dd0f,_0x3e58e4,_0x22f442,_0x388d27){const _0x273cef=_0x4f4baa;super(),this[_0x273cef(0x287)]=_0x35330a,this[_0x273cef(0x581)]=_0x5add1f,this[_0x273cef(0x499)]=_0x26dd0f,this[_0x273cef(0x403)]=_0x3e58e4,this[_0x273cef(0x4e6)]=_0x22f442,_0x388d27?_0x388d27==null||_0x388d27[_0x273cef(0x319)]()[_0x273cef(0x204)](()=>this['_init']()):(this[_0x273cef(0x581)][_0x273cef(0x27e)](_0x273cef(0x52b),_0x273cef(0x3a6)),this[_0x273cef(0x568)]());}async['_init'](){const _0x1ed919=_0x4f4baa,_0x2bb3a7=this[_0x1ed919(0x287)]['getParam'](_0x1ed919(0x48f)),_0x197733=this[_0x1ed919(0x287)]['getParam'](_0x1ed919(0x302));if(!_0x2bb3a7||!_0x197733){this['_logService']['debug']('[DataLoaderController]',_0x1ed919(0x418));return;}switch(Number(_0x197733)){case j[_0x1ed919(0x4fe)]:{const _0x3405e2=await this[_0x1ed919(0x4c8)](_0x2bb3a7);this[_0x1ed919(0x364)](_0x3405e2);break;}case j[_0x1ed919(0x3e8)]:{await this['_loadDoc'](_0x2bb3a7);break;}default:{this['_logService'][_0x1ed919(0x370)]('[DataLoaderController]',_0x1ed919(0x47c));break;}}}async['_setupSubUnitSync'](_0x9bc501){const _0x16b17d=_0x4f4baa;await this[_0x16b17d(0x3e3)](_0x9bc501),_0x9bc501[_0x16b17d(0x1d0)][_0x16b17d(0x236)](g[_0x16b17d(0x3de)](this[_0x16b17d(0x3c9)]))[_0x16b17d(0x2fe)](_0x47048d=>{const _0x35680b=_0x16b17d;_0x47048d&&this[_0x35680b(0x231)](_0x47048d);}),this['_urlService'][_0x16b17d(0x450)][_0x16b17d(0x236)](g['takeUntil'](this[_0x16b17d(0x3c9)]))[_0x16b17d(0x2fe)](()=>this[_0x16b17d(0x3e3)](_0x9bc501));}['_updateURLWithCurrentState'](_0x4520e5,_0x21cc40=!0x1){const _0xdf6220=_0x4f4baa,_0x408308=this[_0xdf6220(0x287)]['getParam'](_0xdf6220(0x586));_0x4520e5[_0xdf6220(0x1fb)]()!==_0x408308&&this[_0xdf6220(0x287)][_0xdf6220(0x571)](_0xdf6220(0x586),_0x4520e5[_0xdf6220(0x1fb)](),_0x21cc40);}async[_0x4f4baa(0x3e3)](_0x1db887){const _0x2ab1ae=_0x4f4baa;var _0x56da75;const _0x516039=this[_0x2ab1ae(0x287)][_0x2ab1ae(0x4bc)]('subunit');if(!_0x516039||!_0x1db887['getSheetBySheetId'](_0x516039)){const _0xaabb47=_0x1db887[_0x2ab1ae(0x4c7)]()[0x0],_0x2381e0=_0x1db887[_0x2ab1ae(0x1bc)](_0xaabb47);if(!_0x2381e0)return;this[_0x2ab1ae(0x231)](_0x2381e0,!0x0),await this['_commandService']['executeCommand'](E[_0x2ab1ae(0x3bd)]['id'],{'unitId':_0x1db887[_0x2ab1ae(0x286)](),'subUnitId':_0xaabb47});return;}((_0x56da75=_0x1db887[_0x2ab1ae(0x2f1)]())==null?void 0x0:_0x56da75[_0x2ab1ae(0x1fb)]())!==_0x516039&&await this['_commandService'][_0x2ab1ae(0x526)](E[_0x2ab1ae(0x3bd)]['id'],{'unitId':_0x1db887[_0x2ab1ae(0x286)](),'subUnitId':_0x516039});}async[_0x4f4baa(0x4c8)](_0x14d035){const _0x2c127a=_0x4f4baa;let _0xae2964=0x0;const _0x4073f7=await this[_0x2c127a(0x403)][_0x2c127a(0x24b)](_0x14d035);return _0x4073f7&&(_0x4073f7[_0x2c127a(0x211)]||_0x4073f7[_0x2c127a(0x48a)][_0x2c127a(0x56e)]!==0x0)&&(_0xae2964=_0x4073f7['rev']),_0xae2964===0x0&&this[_0x2c127a(0x581)]['debug']('[DataLoaderController]',_0x2c127a(0x4ca)),this[_0x2c127a(0x4e6)]['loadSheet'](_0x14d035,_0xae2964);}async[_0x4f4baa(0x2f3)](_0x8a5c22){const _0x62cf70=_0x4f4baa;let _0x2bb561=0x0;const _0x26a0d7=await this[_0x62cf70(0x403)]['loadOfflineData'](_0x8a5c22);return _0x26a0d7&&(_0x26a0d7[_0x62cf70(0x211)]||_0x26a0d7[_0x62cf70(0x48a)][_0x62cf70(0x56e)]!==0x0)&&(_0x2bb561=_0x26a0d7['rev']),_0x2bb561===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x62cf70(0x4ca)),this[_0x62cf70(0x4e6)][_0x62cf70(0x4ea)](_0x8a5c22,_0x2bb561);}},exports[_0x4f4baa(0x220)]=fi([c[_0x4f4baa(0x316)](c['LifecycleStages'][_0x4f4baa(0x4ad)],exports[_0x4f4baa(0x220)]),J(0x0,Ge),J(0x1,c[_0x4f4baa(0x56d)]),J(0x2,c['ICommandService']),J(0x3,_['Inject'](exports[_0x4f4baa(0x3a1)])),J(0x4,_[_0x4f4baa(0x451)](u[_0x4f4baa(0x27b)])),J(0x5,_['Optional'](kt[_0x4f4baa(0x3fa)]))],exports[_0x4f4baa(0x220)]);var mi=Object['defineProperty'],Ii=Object[_0x4f4baa(0x2f2)],pi=(_0x3b12de,_0x2637fc,_0x30ce52,_0x178099)=>{for(var _0x18aa97=_0x178099>0x1?void 0x0:_0x178099?Ii(_0x2637fc,_0x30ce52):_0x2637fc,_0x1251e0=_0x3b12de['length']-0x1,_0x308a14;_0x1251e0>=0x0;_0x1251e0--)(_0x308a14=_0x3b12de[_0x1251e0])&&(_0x18aa97=(_0x178099?_0x308a14(_0x2637fc,_0x30ce52,_0x18aa97):_0x308a14(_0x18aa97))||_0x18aa97);return _0x178099&&_0x18aa97&&mi(_0x2637fc,_0x30ce52,_0x18aa97),_0x18aa97;},st=(_0x29f0f6,_0x242240)=>(_0x3b2fb3,_0xf0b5dc)=>_0x242240(_0x3b2fb3,_0xf0b5dc,_0x29f0f6);const Ei=_0x4f4baa(0x1f6),Ci='Univer';let Se=class extends c[_0x4f4baa(0x2e5)]{constructor(_0x58ccdf,_0x2724f7){const _0x548e9e=_0x4f4baa;super(),this[_0x548e9e(0x1d3)]=_0x58ccdf,this['_configService']=_0x2724f7,this[_0x548e9e(0x568)]();}[_0x4f4baa(0x568)](){const _0x3a37bd=_0x4f4baa;this['disposeWithMe'](c[_0x3a37bd(0x58c)](this['_univerInstanceService']['focused$'][_0x3a37bd(0x2fe)](()=>{const _0x42666e=_0x3a37bd;var _0x2f1530;const _0x275f59=this[_0x42666e(0x1d3)][_0x42666e(0x3c0)]();let _0x52e6bb=(_0x2f1530=this[_0x42666e(0x52a)][_0x42666e(0x21c)](Ei))!=null?_0x2f1530:Ci;_0x275f59 instanceof c['Workbook']&&(_0x52e6bb=_0x275f59[_0x42666e(0x28a)]),document['title']=_0x52e6bb;})));}};Se=pi([c[_0x4f4baa(0x316)](c[_0x4f4baa(0x413)]['Ready'],Se),st(0x0,c['IUniverInstanceService']),st(0x1,c[_0x4f4baa(0x37f)])],Se);var bi=Object[_0x4f4baa(0x4e3)],Ti=Object[_0x4f4baa(0x2f2)],Ri=(_0x5c8a1d,_0x289a60,_0x43fc52,_0x497ff3)=>{for(var _0x45959c=_0x497ff3>0x1?void 0x0:_0x497ff3?Ti(_0x289a60,_0x43fc52):_0x289a60,_0x133f89=_0x5c8a1d['length']-0x1,_0x192213;_0x133f89>=0x0;_0x133f89--)(_0x192213=_0x5c8a1d[_0x133f89])&&(_0x45959c=(_0x497ff3?_0x192213(_0x289a60,_0x43fc52,_0x45959c):_0x192213(_0x45959c))||_0x45959c);return _0x497ff3&&_0x45959c&&bi(_0x289a60,_0x43fc52,_0x45959c),_0x45959c;},it=(_0x3af161,_0x57e8f3)=>(_0x1030b0,_0x390df6)=>_0x57e8f3(_0x1030b0,_0x390df6,_0x3af161);exports[_0x4f4baa(0x224)]=class{constructor(_0xb84f18,_0x1635f1){const _0x23f0e2=_0x4f4baa;this[_0x23f0e2(0x52a)]=_0xb84f18,this['_httpService']=_0x1635f1;}async[_0x4f4baa(0x2ca)](_0x192b51,_0x376fbf){const _0x3ca04f=_0x4f4baa;var _0x20267d;const {unitID:_0x5e0a91,type:_0x4e278a,revision:_0x34dbad=0x0}=_0x376fbf,_0x150282=this[_0x3ca04f(0x284)]()+'/'+_0x4e278a+'/unit/'+_0x5e0a91+'/rev/'+_0x34dbad,_0x23002=(await this[_0x3ca04f(0x1ce)][_0x3ca04f(0x2e7)](_0x150282))['body'],_0x5d10b6=(_0x20267d=_0x23002[_0x3ca04f(0x2ba)])==null?void 0x0:_0x20267d['workbook'];if(_0x5d10b6){const _0x3a52c1=_0x5d10b6==null?void 0x0:_0x5d10b6['originalMeta'],_0x11b6a8=c[_0x3ca04f(0x272)]['encode'](c['b64DecodeUnicode'](_0x3a52c1));_0x5d10b6[_0x3ca04f(0x373)]=_0x11b6a8,Object[_0x3ca04f(0x201)](_0x5d10b6[_0x3ca04f(0x342)])[_0x3ca04f(0x502)](([,_0x42982f])=>{const _0x2b86f2=_0x3ca04f,_0x3f4b62=_0x42982f[_0x2b86f2(0x373)],_0x503f0a=c[_0x2b86f2(0x272)][_0x2b86f2(0x3b8)](c[_0x2b86f2(0x4f1)](_0x3f4b62));_0x42982f[_0x2b86f2(0x373)]=_0x503f0a;});}return _0x23002;}async['getSheetBlock'](_0x2f67ba,_0x5f35c3){const _0x49fe85=_0x4f4baa,{unitID:_0x21cbd7,type:_0x4618e8,blockID:_0x481d87}=_0x5f35c3,_0x51b3dc=this[_0x49fe85(0x3c1)]()+'/'+_0x4618e8+_0x49fe85(0x3d6)+_0x21cbd7+'/block/'+_0x481d87;return(await this[_0x49fe85(0x1ce)][_0x49fe85(0x2e7)](_0x51b3dc))['body'];}async[_0x4f4baa(0x42a)](_0x849b8e,_0x47312c){const _0x34c619=_0x4f4baa,{unitID:_0x415bd3,type:_0x3a9a63,from:_0x327c96,to:_0x218e5a}=_0x47312c,_0x24a09c=this[_0x34c619(0x3c1)]()+'/'+_0x3a9a63+_0x34c619(0x3d6)+_0x415bd3+'/fetchmissing?from='+_0x327c96+_0x34c619(0x294)+_0x218e5a;return(await this[_0x34c619(0x1ce)]['get'](_0x24a09c))[_0x34c619(0x39c)];}['_getSnapshotAPIPrefix'](){const _0x1c428e=_0x4f4baa;var _0x3136e1;return(_0x3136e1=this[_0x1c428e(0x52a)]['getConfig'](lt))!=null?_0x3136e1:this['_getAPIPrefix']();}[_0x4f4baa(0x3c1)](){const _0x102436=_0x4f4baa;var _0x8330c;return(_0x8330c=this[_0x102436(0x52a)][_0x102436(0x21c)](ct))!=null?_0x8330c:Bt;}async[_0x4f4baa(0x25c)](_0x31483a,_0x150f3b){const _0x2dbd3e=_0x4f4baa,_0x5a0ef9=_0x2dbd3e(0x52c)+_0x150f3b[_0x2dbd3e(0x302)]+_0x2dbd3e(0x3d6)+_0x150f3b[_0x2dbd3e(0x427)]+_0x2dbd3e(0x1bf);return(await this['_httpService'][_0x2dbd3e(0x2e7)](_0x5a0ef9,{'params':{'resourceId':JSON['stringify'](_0x150f3b[_0x2dbd3e(0x4da)])}}))[_0x2dbd3e(0x39c)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4f4baa(0x384)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4f4baa(0x2ec)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x4f4baa(0x224)]=Ri([it(0x0,c['IConfigService']),it(0x1,_['Inject'](U[_0x4f4baa(0x3d4)]))],exports[_0x4f4baa(0x224)]);var Oi=Object[_0x4f4baa(0x4e3)],Di=Object[_0x4f4baa(0x2f2)],Pi=(_0x4e864c,_0x217e80,_0x2c8701,_0x41e737)=>{const _0x21bff7=_0x4f4baa;for(var _0x3f6c82=_0x41e737>0x1?void 0x0:_0x41e737?Di(_0x217e80,_0x2c8701):_0x217e80,_0x299d62=_0x4e864c[_0x21bff7(0x56e)]-0x1,_0x486178;_0x299d62>=0x0;_0x299d62--)(_0x486178=_0x4e864c[_0x299d62])&&(_0x3f6c82=(_0x41e737?_0x486178(_0x217e80,_0x2c8701,_0x3f6c82):_0x486178(_0x3f6c82))||_0x3f6c82);return _0x41e737&&_0x3f6c82&&Oi(_0x217e80,_0x2c8701,_0x3f6c82),_0x3f6c82;},re=(_0x5c971c,_0x185ebf)=>(_0x3cf13d,_0x146bfb)=>_0x185ebf(_0x3cf13d,_0x146bfb,_0x5c971c);let je=class extends c[_0x4f4baa(0x210)]{constructor(_0x4b29e4,_0x44d041,_0x429d16,_0x575122,_0x46ddbf){const _0xfcaf26=_0x4f4baa;super(_0x4b29e4,_0x44d041,_0x429d16),this['_transformService']=_0x575122,this[_0xfcaf26(0x581)]=_0x46ddbf;}['transformUndoRedo'](_0x36327d,_0x9d8ecd){const _0x25a7da=_0x4f4baa,_0x3f05e9=this['_getUndoStack'](_0x36327d);if(_0x3f05e9)try{const _0x204e8d=this[_0x25a7da(0x41f)](_0x3f05e9,_0x9d8ecd);this[_0x25a7da(0x50e)](_0x36327d,_0x204e8d);}catch(_0x262991){this[_0x25a7da(0x581)][_0x25a7da(0x370)]('[CollaborationUndoRedoService]',_0x262991),this[_0x25a7da(0x2d5)](_0x36327d);}const _0x3ba300=this[_0x25a7da(0x38d)](_0x36327d);if(_0x3ba300)try{const _0x2badb1=this[_0x25a7da(0x41f)](_0x3ba300,_0x9d8ecd);this[_0x25a7da(0x4e4)](_0x36327d,_0x2badb1);}catch(_0xa95eba){this[_0x25a7da(0x581)][_0x25a7da(0x370)](_0xa95eba),this[_0x25a7da(0x22b)](_0x36327d);}}[_0x4f4baa(0x2d5)](_0x460153){const _0x4a609e=_0x4f4baa,_0x17d594=this['_getUndoStack'](_0x460153);_0x17d594&&(_0x17d594[_0x4a609e(0x56e)]=0x0,this[_0x4a609e(0x57f)]());}[_0x4f4baa(0x22b)](_0x5be487){const _0x25e5c8=_0x4f4baa,_0x26ae69=this['_getRedoStack'](_0x5be487);_0x26ae69&&(_0x26ae69[_0x25e5c8(0x56e)]=0x0,this['_updateStatus']());}[_0x4f4baa(0x50e)](_0x1e4115,_0x2441e3){const _0x5ace88=_0x4f4baa;this[_0x5ace88(0x496)][_0x5ace88(0x203)](_0x1e4115,_0x2441e3),this['_updateStatus']();}[_0x4f4baa(0x4e4)](_0x4a231e,_0x48f035){const _0x144457=_0x4f4baa;this[_0x144457(0x567)][_0x144457(0x203)](_0x4a231e,_0x48f035),this[_0x144457(0x57f)]();}[_0x4f4baa(0x41f)](_0x1e3e30,_0x30abff){const _0x5590a8=_0x4f4baa,_0x253663=[];let _0x2c402e=_0x30abff,_0x114b79=_0x30abff;for(let _0x43f08c=_0x1e3e30[_0x5590a8(0x56e)]-0x1;_0x43f08c>=0x0;_0x43f08c--){const {unitID:_0x4567da,undoMutations:_0x475717,redoMutations:_0x2503b9}=_0x1e3e30[_0x43f08c],_0x1aceec=this[_0x5590a8(0x394)][_0x5590a8(0x30f)](_0x2c402e,_0x475717),_0x54f16c=this[_0x5590a8(0x394)]['transformMutationsWithChangeset'](_0x114b79,_0x2503b9);if(u[_0x5590a8(0x280)](_0x1aceec)||u[_0x5590a8(0x280)](_0x54f16c)){this[_0x5590a8(0x581)][_0x5590a8(0x370)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x1aceec,_0x54f16c);break;}_0x2c402e=_0x1aceec[_0x5590a8(0x4a0)],_0x114b79=_0x54f16c['c1Prime'],_0x253663[_0x5590a8(0x589)]({'unitID':_0x4567da,'undoMutations':_0x1aceec['m2Prime'],'redoMutations':_0x54f16c[_0x5590a8(0x522)]});}return _0x253663[_0x5590a8(0x544)]();}};je=Pi([re(0x0,c['IUniverInstanceService']),re(0x1,c[_0x4f4baa(0x40b)]),re(0x2,c[_0x4f4baa(0x4cc)]),re(0x3,u['ITransformService']),re(0x4,c['ILogService'])],je);class Ut extends c[_0x4f4baa(0x3b4)]{constructor(){const _0x1cba17=_0x4f4baa;super(),d(this,_0x1cba17(0x450)),this[_0x1cba17(0x450)]=g['fromEvent'](window,_0x1cba17(0x267))[_0x1cba17(0x236)](g[_0x1cba17(0x3de)](this[_0x1cba17(0x3c9)]),g[_0x1cba17(0x407)](0x1),g[_0x1cba17(0x444)](void 0x0));}['setParam'](_0x361299,_0x158f8e,_0x290204=!0x1){const _0xf877d0=_0x4f4baa,_0x116d5a=new URL(window[_0xf877d0(0x2e8)][_0xf877d0(0x320)]);_0x116d5a[_0xf877d0(0x304)][_0xf877d0(0x203)](_0x361299,_0x158f8e),_0x290204?window[_0xf877d0(0x20f)][_0xf877d0(0x45f)]('','',_0x116d5a[_0xf877d0(0x57b)]()):window[_0xf877d0(0x20f)][_0xf877d0(0x34f)]('','',_0x116d5a[_0xf877d0(0x57b)]());}[_0x4f4baa(0x3e7)](_0x5c3971,_0x553135=!0x1){const _0x2a59c2=_0x4f4baa,_0x29a9e9=new URL(window[_0x2a59c2(0x2e8)][_0x2a59c2(0x320)]);_0x29a9e9[_0x2a59c2(0x304)][_0x2a59c2(0x2fd)](_0x5c3971),_0x553135?window[_0x2a59c2(0x20f)][_0x2a59c2(0x45f)]('','',_0x29a9e9[_0x2a59c2(0x57b)]()):window['history']['pushState']('','',_0x29a9e9[_0x2a59c2(0x57b)]());}['getParam'](_0x30cf50){const _0x314a47=_0x4f4baa;var _0x24232a;return(_0x24232a=new URL(window[_0x314a47(0x2e8)][_0x314a47(0x320)])[_0x314a47(0x304)][_0x314a47(0x2e7)](_0x30cf50))!=null?_0x24232a:void 0x0;}}const ye=_0x4f4baa(0x33c),Ui=_0x4f4baa(0x525),ue=0x6,yi=1.5,we=0x4,wi=1.5,Li=_0x4f4baa(0x4c5);class Mi{constructor(_0x43a255,_0x57aec8,_0x217587,_0x449434){const _0x2a4ef8=_0x4f4baa;d(this,'_shapes',[]),d(this,_0x2a4ef8(0x4a2),null),d(this,_0x2a4ef8(0x44f),null),d(this,_0x2a4ef8(0x1cc),null),d(this,_0x2a4ef8(0x255),null),d(this,_0x2a4ef8(0x4e2),null),(this[_0x2a4ef8(0x39e)]=_0x43a255,this[_0x2a4ef8(0x561)]=_0x57aec8,this['_docSkeleton']=_0x217587,this[_0x2a4ef8(0x348)]=_0x449434,this[_0x2a4ef8(0x454)]());}set[_0x4f4baa(0x457)](_0x160ab1){const _0x5094ac=_0x4f4baa;_0x160ab1?(this['_anchorDot']&&this[_0x5094ac(0x1cc)][_0x5094ac(0x4c6)](),this[_0x5094ac(0x44f)]&&this['_textBubble'][_0x5094ac(0x4d9)]()):(this[_0x5094ac(0x1cc)]&&this['_anchorDot'][_0x5094ac(0x4d9)](),this[_0x5094ac(0x44f)]&&this[_0x5094ac(0x44f)]['hide']());}[_0x4f4baa(0x4bf)](){const _0x4c6c38=_0x4f4baa;for(const _0x2434ce of this[_0x4c6c38(0x36a)])_0x2434ce[_0x4c6c38(0x4bf)]();this[_0x4c6c38(0x44f)]&&this['_textBubble'][_0x4c6c38(0x4bf)](),this[_0x4c6c38(0x1cc)]&&this[_0x4c6c38(0x1cc)]['dispose'](),this['_anchor']&&this[_0x4c6c38(0x4a2)][_0x4c6c38(0x4bf)](),this[_0x4c6c38(0x4e2)]&&this[_0x4c6c38(0x4e2)]();}[_0x4f4baa(0x454)](){const _0x17524b=_0x4f4baa,{_docSkeleton:_0x264e68,_document:_0x3905c0}=this,{color:_0x24ffaa,name:_0x185d78,ranges:_0x44626f}=this[_0x17524b(0x39e)],_0x120d63=_0x3905c0[_0x17524b(0x50f)](),{docsLeft:_0x2d4625,docsTop:_0x5baaf7}=_0x120d63,_0x3c725c=new R[(_0x17524b(0x3e0))](_0x120d63,_0x264e68);for(const {startOffset:_0x4c6d32,endOffset:_0x8812b9,collapsed:_0x16f953,isActive:_0x42f5b4}of _0x44626f){const _0x29f483=_0x264e68[_0x17524b(0x27d)](_0x4c6d32),_0x58789f=_0x264e68[_0x17524b(0x27d)](_0x8812b9);if(_0x42f5b4){const {contentBoxPointGroup:_0x37b9eb}=_0x3c725c[_0x17524b(0x397)](_0x58789f,_0x58789f);if(_0x37b9eb[_0x17524b(0x56e)]===0x0)continue;this[_0x17524b(0x262)](_0x24ffaa,_0x37b9eb,_0x2d4625,_0x5baaf7,_0x185d78),this['_eventUnsubscribe']=this[_0x17524b(0x4f9)]();}if(!_0x16f953){const {contentBoxPointGroup:_0x5a3068}=_0x3c725c['getRangePointData'](_0x29f483,_0x58789f);if(_0x5a3068[_0x17524b(0x56e)]===0x0)continue;this[_0x17524b(0x21d)](_0x24ffaa,_0x5a3068,_0x2d4625,_0x5baaf7);}}}[_0x4f4baa(0x262)](_0x444cfb,_0x352ca6,_0x525bbe,_0x2c3c74,_0x3debf6){const _0x412aff=_0x4f4baa,_0x1e8bd5=this[_0x412aff(0x541)](_0x352ca6),{left:_0x583605,top:_0x4229b7,height:_0x3a6190}=_0x1e8bd5,_0x5ed9db=this[_0x412aff(0x438)](),_0x3a04ab=wi/_0x5ed9db,_0x301c5f=new R['Rect'](ye+c[_0x412aff(0x386)][_0x412aff(0x40a)](ue),{'left':_0x583605+_0x525bbe-_0x3a04ab,'top':_0x4229b7+_0x2c3c74,'height':_0x3a6190,'width':yi,'fill':_0x444cfb||R[_0x412aff(0x327)](c[_0x412aff(0x2c5)][_0x412aff(0x1e6)],0x0),'strokeWidth':_0x3a04ab,'stroke':Li,'evented':!0x0});this['_anchor']=_0x301c5f,this[_0x412aff(0x561)][_0x412aff(0x31b)](_0x301c5f,R[_0x412aff(0x1f0)]);const _0x45acc9=new R[(_0x412aff(0x3b2))](ye+c[_0x412aff(0x386)][_0x412aff(0x40a)](ue),{'left':_0x583605+_0x525bbe-_0x3a04ab,'top':_0x4229b7+_0x2c3c74-we/0x2,'height':we,'width':we,'fill':_0x444cfb||R[_0x412aff(0x327)](c[_0x412aff(0x2c5)][_0x412aff(0x1e6)],0x0),'strokeWidth':0x0,'stroke':_0x444cfb||R[_0x412aff(0x327)](c['COLORS']['black'],0x0),'evented':!0x1});this[_0x412aff(0x1cc)]=_0x45acc9,this[_0x412aff(0x561)][_0x412aff(0x31b)](_0x45acc9,R[_0x412aff(0x1f0)]);const _0x11a836=new Te(ye+c[_0x412aff(0x386)]['generateRandomId'](ue),{'left':_0x583605+_0x525bbe-_0x3a04ab,'top':_0x4229b7+_0x2c3c74-le,'text':_0x3debf6,'color':_0x444cfb});this[_0x412aff(0x44f)]=_0x11a836,this[_0x412aff(0x561)][_0x412aff(0x31b)](_0x11a836,R['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x4f4baa(0x4f9)](){const _0x41fe95=_0x4f4baa,_0x519221=this[_0x41fe95(0x4a2)][_0x41fe95(0x396)][_0x41fe95(0x1e1)](()=>{const _0x48adee=_0x41fe95;this[_0x48adee(0x457)]=!0x0;}),_0x1f7bf1=this[_0x41fe95(0x4a2)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x2d9651=_0x41fe95;this[_0x2d9651(0x255)]&&clearTimeout(this[_0x2d9651(0x255)]),this[_0x2d9651(0x255)]=setTimeout(()=>{const _0x5409f9=_0x2d9651;this[_0x5409f9(0x457)]=!0x1;},0x7d0);});return()=>{const _0x35b84c=_0x41fe95;_0x519221['unsubscribe'](),_0x1f7bf1[_0x35b84c(0x21f)]();};}[_0x4f4baa(0x21d)](_0x1f78a2,_0x562509,_0x206ea6,_0x4fe9c1){const _0x295e09=_0x4f4baa,_0x682c77=new c[(_0x295e09(0x2cf))](_0x1f78a2)[_0x295e09(0x340)](0.2)[_0x295e09(0x3fc)](),_0xc50de3=new R[(_0x295e09(0x279))](Ui+c['Tools'][_0x295e09(0x40a)](ue),{'pointsGroup':_0x562509,'fill':_0x682c77||R[_0x295e09(0x327)](c[_0x295e09(0x2c5)][_0x295e09(0x1e6)],0.2),'left':_0x206ea6,'top':_0x4fe9c1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x295e09(0x36a)]['push'](_0xc50de3),this[_0x295e09(0x561)][_0x295e09(0x31b)](_0xc50de3,R[_0x295e09(0x1f0)]);}[_0x4f4baa(0x541)](_0x2cfab8){const _0x1a7ec2=_0x2cfab8[0x0],_0x2e4681=_0x1a7ec2[0x0],_0x53733f=_0x1a7ec2[0x2],{x:_0x52b794,y:_0x14adc7}=_0x2e4681,{x:_0x30409c,y:_0xb41cf}=_0x53733f;return{'left':_0x52b794,'top':_0x14adc7,'width':_0x30409c-_0x52b794,'height':_0xb41cf-_0x14adc7};}[_0x4f4baa(0x438)](){const _0x28df6d=_0x4f4baa,{scaleX:_0x434781,scaleY:_0x182467}=this[_0x28df6d(0x561)][_0x28df6d(0x3e5)]();return Math[_0x28df6d(0x47f)](_0x434781,_0x182467);}}var Ni=Object[_0x4f4baa(0x4e3)],Ai=Object[_0x4f4baa(0x2f2)],ji=(_0x393c1b,_0x3432d9,_0x1471ec,_0x48d7dd)=>{const _0x7cf795=_0x4f4baa;for(var _0x354285=_0x48d7dd>0x1?void 0x0:_0x48d7dd?Ai(_0x3432d9,_0x1471ec):_0x3432d9,_0x405571=_0x393c1b[_0x7cf795(0x56e)]-0x1,_0x17ed8c;_0x405571>=0x0;_0x405571--)(_0x17ed8c=_0x393c1b[_0x405571])&&(_0x354285=(_0x48d7dd?_0x17ed8c(_0x3432d9,_0x1471ec,_0x354285):_0x17ed8c(_0x354285))||_0x354285);return _0x48d7dd&&_0x354285&&Ni(_0x3432d9,_0x1471ec,_0x354285),_0x354285;},oe=(_0x4b707d,_0x19e838)=>(_0x8c7f51,_0x677b55)=>_0x19e838(_0x8c7f51,_0x677b55,_0x4b707d);let ve=class extends c[_0x4f4baa(0x3b4)]{constructor(_0x209f36,_0x4e41a1,_0xeb1315,_0x170f96,_0x2b1101){const _0x46ba91=_0x4f4baa;super(),d(this,_0x46ba91(0x241),[]),(this[_0x46ba91(0x401)]=_0x209f36,this[_0x46ba91(0x1d3)]=_0x4e41a1,this[_0x46ba91(0x406)]=_0xeb1315,this['_docSkeletonManagerService']=_0x170f96,this[_0x46ba91(0x237)]=_0x2b1101,this[_0x46ba91(0x568)]());}[_0x4f4baa(0x568)](){const _0x5a74d4=_0x4f4baa;this[_0x5a74d4(0x229)][_0x5a74d4(0x326)][_0x5a74d4(0x236)](b['takeUntil'](this[_0x5a74d4(0x3c9)]),b[_0x5a74d4(0x505)](_0x1d9ee7=>{const _0x2b2ba7=_0x5a74d4;if(_0x1d9ee7){const _0x217add=_0x1d9ee7[_0x2b2ba7(0x3ad)]()['getDataModel']()[_0x2b2ba7(0x286)]();return g[_0x2b2ba7(0x4f5)](this[_0x2b2ba7(0x401)][_0x2b2ba7(0x58e)](_0x217add),this[_0x2b2ba7(0x237)]['currentTheme$'])[_0x2b2ba7(0x236)](b[_0x2b2ba7(0x1e2)](([_0x176f78,_0x337284])=>({'skeleton':_0x1d9ee7,'cursors':[..._0x176f78['values']()][_0x2b2ba7(0x428)](_0x8aff20=>({..._0x8aff20,'color':_0x337284[_0x8aff20[_0x2b2ba7(0x42d)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))[_0x5a74d4(0x2fe)](({skeleton:_0x13f2fc,cursors:_0x48947a})=>{const _0x184aa8=_0x5a74d4;this['_removeCollabCursors'](),_0x13f2fc&&this[_0x184aa8(0x2d8)](_0x13f2fc,_0x48947a);});}['_updateCollabCursors'](_0x496e54,_0x3250e3){const _0xdc25b0=_0x4f4baa,_0x224da4=this[_0xdc25b0(0x587)]();if(_0x224da4==null)return;const {scene:_0x58d70f,document:_0x1a9936}=_0x224da4,_0x22c9d0=_0x3250e3['map'](_0x59683f=>new Mi(_0x59683f,_0x58d70f,_0x496e54,_0x1a9936));this[_0xdc25b0(0x241)]=_0x22c9d0;}['_removeCollabCursors'](){const _0x1b2cb3=_0x4f4baa;this[_0x1b2cb3(0x241)][_0x1b2cb3(0x502)](_0x35eef4=>_0x35eef4[_0x1b2cb3(0x4bf)]()),this[_0x1b2cb3(0x241)]=[];}[_0x4f4baa(0x587)](){const _0x3710be=_0x4f4baa;return M[_0x3710be(0x354)](this[_0x3710be(0x1d3)],this[_0x3710be(0x406)]);}};ve=ji([c['OnLifecycle'](c[_0x4f4baa(0x413)][_0x4f4baa(0x4f4)],ve),oe(0x0,_[_0x4f4baa(0x451)](Z)),oe(0x1,c['IUniverInstanceService']),oe(0x2,R[_0x4f4baa(0x501)]),oe(0x3,_[_0x4f4baa(0x451)](M[_0x4f4baa(0x310)])),oe(0x4,_[_0x4f4baa(0x451)](c[_0x4f4baa(0x283)]))],ve);var $i=Object['defineProperty'],Hi=Object[_0x4f4baa(0x2f2)],xi=(_0x3c0868,_0x5d2d,_0x59c82e,_0x2bd257)=>{const _0x439027=_0x4f4baa;for(var _0x4b9047=_0x2bd257>0x1?void 0x0:_0x2bd257?Hi(_0x5d2d,_0x59c82e):_0x5d2d,_0xaa7768=_0x3c0868[_0x439027(0x56e)]-0x1,_0x113447;_0xaa7768>=0x0;_0xaa7768--)(_0x113447=_0x3c0868[_0xaa7768])&&(_0x4b9047=(_0x2bd257?_0x113447(_0x5d2d,_0x59c82e,_0x4b9047):_0x113447(_0x4b9047))||_0x4b9047);return _0x2bd257&&_0x4b9047&&$i(_0x5d2d,_0x59c82e,_0x4b9047),_0x4b9047;},Le=(_0x542e8b,_0x486f50)=>(_0x3665e1,_0x236877)=>_0x486f50(_0x3665e1,_0x236877,_0x542e8b);let Ee=class{constructor(_0x3bd942,_0x1a7576,_0x282378){const _0x32c777=_0x4f4baa;this[_0x32c777(0x52a)]=_0x3bd942,this['_httpService']=_0x1a7576,this['localeService']=_0x282378,this[_0x32c777(0x57a)]();}[_0x4f4baa(0x57a)](){const _0x2a8e0e=_0x4f4baa;this[_0x2a8e0e(0x1ce)][_0x2a8e0e(0x323)]({'priority':0x1,'interceptor':(_0x4ece88,_0x43d3fb)=>_0x43d3fb(_0x4ece88)['pipe'](g[_0x2a8e0e(0x420)](async _0xa40a71=>{const _0x1e311f=_0x2a8e0e,_0x5dd106=_0xa40a71;if(_0x5dd106['status']===0x191&&window['confirm'](this[_0x1e311f(0x38a)]['t'](_0x1e311f(0x421)))){const _0x1e994a=window[_0x1e311f(0x4df)](window[_0x1e311f(0x2e8)][_0x1e311f(0x320)]);window['location'][_0x1e311f(0x320)]=this[_0x1e311f(0x3f6)]()+_0x1e311f(0x346)+_0x1e994a;}return _0x5dd106;}))});}['_getLoginPath'](){const _0x3b9663=_0x4f4baa;var _0x360669;return(_0x360669=this['_configService'][_0x3b9663(0x21c)](gt))!=null?_0x360669:zt;}};Ee=xi([Le(0x0,c[_0x4f4baa(0x37f)]),Le(0x1,_[_0x4f4baa(0x451)](U[_0x4f4baa(0x3d4)])),Le(0x2,_[_0x4f4baa(0x451)](c[_0x4f4baa(0x4b4)]))],Ee);var ki=Object[_0x4f4baa(0x4e3)],Bi=Object[_0x4f4baa(0x2f2)],Fi=(_0x1ec119,_0x38664d,_0x247a2f,_0x3a05c0)=>{const _0x4b023d=_0x4f4baa;for(var _0x475fea=_0x3a05c0>0x1?void 0x0:_0x3a05c0?Bi(_0x38664d,_0x247a2f):_0x38664d,_0xd12c30=_0x1ec119[_0x4b023d(0x56e)]-0x1,_0x56c6ce;_0xd12c30>=0x0;_0xd12c30--)(_0x56c6ce=_0x1ec119[_0xd12c30])&&(_0x475fea=(_0x3a05c0?_0x56c6ce(_0x38664d,_0x247a2f,_0x475fea):_0x56c6ce(_0x475fea))||_0x475fea);return _0x3a05c0&&_0x475fea&&ki(_0x38664d,_0x247a2f,_0x475fea),_0x475fea;},nt=(_0x6f409,_0x2f28c5)=>(_0x4483ec,_0xd8a142)=>_0x2f28c5(_0x4483ec,_0xd8a142,_0x6f409);const yt=_0x4f4baa(0x2de),Vi='/universer-api/authz';exports[_0x4f4baa(0x4dd)]=class extends c['Disposable']{constructor(_0x353b05,_0x117cea){const _0x3ae7ae=_0x4f4baa;super(),this[_0x3ae7ae(0x215)]=_0x353b05,this['_configService']=_0x117cea,this[_0x3ae7ae(0x1d1)]();}[_0x4f4baa(0x1d1)](){const _0xd6630a=_0x4f4baa,_0x22f0f4=this;this['disposeWithMe'](this[_0xd6630a(0x215)][_0xd6630a(0x323)]({'priority':0x3e7,'interceptor':U[_0xd6630a(0x436)]({'isMatch'(_0x53d792){const _0x2ce800=_0xd6630a;var _0x156265;if(_0x53d792[_0x2ce800(0x271)]===_0x2ce800(0x359)&&((_0x156265=_0x53d792['requestParams'])!=null&&_0x156265[_0x2ce800(0x39c)])){const {objectID:_0x3f9e8d,objectType:_0x891c91}=_0x53d792['requestParams']['body']||{};if(!_0x3f9e8d||_0x891c91===void 0x0)return!0x1;const _0x5c295a=_0x22f0f4['_getAPIPrefixPath']()+'/'+_0x891c91+_0x2ce800(0x2bf)+_0x3f9e8d+'/allowed';if(_0x53d792['url']===_0x5c295a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5f3e59){var _0x4ed8f1;return(_0x4ed8f1=_0x5f3e59['requestParams'])==null?void 0x0:_0x4ed8f1['body'];},'mergeParamsToRequest'(_0x3b2517,_0x377de1){const _0x27ae74=_0xd6630a,_0x4d6948=_0x22f0f4[_0x27ae74(0x2e0)]()+'/-/object/-/batch_allowed',_0x390610=_0x3b2517[_0x27ae74(0x4d8)]((_0xf555e,_0x86466a)=>{const _0x416603=_0x27ae74,{unitID:_0x17cd05,objectID:_0x57dee8,objectType:_0x296fce,actions:_0x156392}=_0x86466a;return _0xf555e[_0x17cd05]||(_0xf555e[_0x17cd05]={}),_0xf555e[_0x17cd05][_0x57dee8]||(_0xf555e[_0x17cd05][_0x57dee8]={'objectID':_0x57dee8,'objectType':_0x296fce,'actions':[]}),_0xf555e[_0x17cd05][_0x57dee8][_0x416603(0x371)][_0x416603(0x589)](..._0x156392),_0xf555e;},{}),_0x17509f=[];for(const _0x221e66 in _0x390610)for(const _0x11fa9d in _0x390610[_0x221e66]){const {actions:_0x48b746,objectType:_0xf61014}=_0x390610[_0x221e66][_0x11fa9d],_0x467014=[...new Set(_0x48b746)];_0x17509f[_0x27ae74(0x589)]({'unitID':_0x221e66,'objectID':_0x11fa9d,'objectType':_0xf61014,'actions':_0x467014});}return new U[(_0x27ae74(0x219))]('POST',_0x4d6948,{'headers':_0x377de1[_0x27ae74(0x21e)],'withCredentials':_0x377de1[_0x27ae74(0x339)],'responseType':_0x377de1['responseType'],'body':{'requests':_0x17509f}});}},{'distributeResult'(_0x3bf7b6,_0x123124){const {objectActions:_0xe13a2f}=_0x3bf7b6;return _0x123124['map'](_0x4bd87b=>{const _0xb1bd4a=_0x33cb,{unitID:_0x2f550e,objectID:_0x15c459,actions:_0x33796a}=_0x4bd87b,_0x471111=_0xe13a2f[_0xb1bd4a(0x3c6)](_0x1a5179=>_0x1a5179[_0xb1bd4a(0x427)]===_0x2f550e&&_0x1a5179[_0xb1bd4a(0x4d0)]===_0x15c459),_0x2c398c=_0x33796a[_0xb1bd4a(0x1e2)](_0x22c245=>_0x471111==null?void 0x0:_0x471111[_0xb1bd4a(0x371)]['find'](_0x472a9f=>_0x472a9f[_0xb1bd4a(0x218)]===_0x22c245))[_0xb1bd4a(0x570)](_0x1c96f7=>!!_0x1c96f7);return{'config':_0x4bd87b,'result':{'actions':_0x2c398c,'error':_0x3bf7b6['error']}};});}})}));}[_0x4f4baa(0x2e0)](){const _0x2dc516=_0x4f4baa;var _0x5ab537;return(_0x5ab537=this[_0x2dc516(0x52a)][_0x2dc516(0x21c)](yt))!=null?_0x5ab537:Vi;}async['create'](_0x303b26){const _0x443a26=_0x4f4baa,_0x20a6b0=this['_getAPIPrefixPath']()+'/'+_0x303b26[_0x443a26(0x3aa)]+_0x443a26(0x4fd);return(await this[_0x443a26(0x215)][_0x443a26(0x26d)](_0x20a6b0,{'body':_0x303b26}))[_0x443a26(0x39c)]['objectID']||'';}async[_0x4f4baa(0x360)](_0x2f382a){const _0x204d38=_0x4f4baa,_0x10f233=this[_0x204d38(0x2e0)]()+_0x204d38(0x56c);return(await this[_0x204d38(0x215)]['post'](_0x10f233,{'body':_0x2f382a}))['body'][_0x204d38(0x46a)];}async[_0x4f4baa(0x368)](_0x301b80){const _0x495291=_0x4f4baa,_0x410edb=this['_getAPIPrefixPath']()+'/'+_0x301b80[_0x495291(0x3aa)]+_0x495291(0x2bf)+_0x301b80[_0x495291(0x4d0)];await this[_0x495291(0x215)][_0x495291(0x4f3)](_0x410edb,{'body':_0x301b80});}async[_0x4f4baa(0x4f7)](_0x307ebe){const _0x19c340=_0x4f4baa,_0x2abc8f=this[_0x19c340(0x2e0)]()+'/'+_0x307ebe[_0x19c340(0x3aa)]+'/object/'+_0x307ebe[_0x19c340(0x4d0)]+'/allowed';return(await this[_0x19c340(0x215)][_0x19c340(0x26d)](_0x2abc8f,{'body':_0x307ebe}))['body'][_0x19c340(0x371)];}async[_0x4f4baa(0x423)](_0x10a491){const _0x3917d1=_0x4f4baa,_0x586061=this[_0x3917d1(0x2e0)]()+_0x3917d1(0x429);return(await this[_0x3917d1(0x215)][_0x3917d1(0x26d)](_0x586061,{'body':{'requests':_0x10a491}}))[_0x3917d1(0x39c)][_0x3917d1(0x324)];}async[_0x4f4baa(0x417)](_0x264eb8){const _0x2e9889=_0x4f4baa,_0x175dbd=this[_0x2e9889(0x2e0)]()+'/'+_0x264eb8[_0x2e9889(0x3aa)]+_0x2e9889(0x1f9),_0x8c1bf=await this[_0x2e9889(0x215)]['post'](_0x175dbd,{'body':_0x264eb8});return{'roles':_0x8c1bf[_0x2e9889(0x39c)]['roles'],'actions':_0x8c1bf[_0x2e9889(0x39c)]['actions']};}async[_0x4f4baa(0x2dc)](_0x12924d){const _0x3a1f51=_0x4f4baa,_0x3e3115=this[_0x3a1f51(0x2e0)]()+'/collaborator';await this[_0x3a1f51(0x215)][_0x3a1f51(0x2fd)](_0x3e3115,{'params':{'collaboratorID':_0x12924d[_0x3a1f51(0x3dc)],'objectID':_0x12924d['objectID'],'unitID':_0x12924d[_0x3a1f51(0x427)]}});}async[_0x4f4baa(0x3f1)](_0x400a33){const _0x3c5b7b=_0x4f4baa,_0x23998d=this['_getAPIPrefixPath']()+_0x3c5b7b(0x584);await this[_0x3c5b7b(0x215)][_0x3c5b7b(0x488)](_0x23998d,{'body':_0x400a33});}async[_0x4f4baa(0x217)](_0xe4efc1){const _0x2568ba=_0x4f4baa,_0x5453e9=this[_0x2568ba(0x2e0)]()+_0x2568ba(0x584);await this[_0x2568ba(0x215)][_0x2568ba(0x26d)](_0x5453e9,{'body':_0xe4efc1});}async['listCollaborators'](_0x47092b){const _0x5234cf=_0x4f4baa,_0x2c3527=this[_0x5234cf(0x2e0)]()+_0x5234cf(0x584);return(await this[_0x5234cf(0x215)][_0x5234cf(0x2e7)](_0x2c3527,{'params':{'objectID':_0x47092b['objectID'],'unitID':_0x47092b[_0x5234cf(0x427)]}}))[_0x5234cf(0x39c)][_0x5234cf(0x1e5)];}async['putCollaborators'](_0x42c16e){const _0x11009f=_0x4f4baa,_0xc0b2f8=this[_0x11009f(0x2e0)]()+_0x11009f(0x584);await this['_HTTPService'][_0x11009f(0x4f3)](_0xc0b2f8,{'body':_0x42c16e});}},exports['AuthzIoHttpService']=Fi([nt(0x0,_[_0x4f4baa(0x451)](U[_0x4f4baa(0x3d4)])),nt(0x1,_[_0x4f4baa(0x451)](c[_0x4f4baa(0x37f)]))],exports[_0x4f4baa(0x4dd)]);var Wi=Object[_0x4f4baa(0x4e3)],Gi=Object[_0x4f4baa(0x2f2)],Yi=(_0x5b7bb4,_0x3f0c54,_0x36ea8c,_0xd56229)=>{const _0x5bc285=_0x4f4baa;for(var _0x2bc92a=_0xd56229>0x1?void 0x0:_0xd56229?Gi(_0x3f0c54,_0x36ea8c):_0x3f0c54,_0x3245fc=_0x5b7bb4[_0x5bc285(0x56e)]-0x1,_0xd330d5;_0x3245fc>=0x0;_0x3245fc--)(_0xd330d5=_0x5b7bb4[_0x3245fc])&&(_0x2bc92a=(_0xd56229?_0xd330d5(_0x3f0c54,_0x36ea8c,_0x2bc92a):_0xd330d5(_0x2bc92a))||_0x2bc92a);return _0xd56229&&_0x2bc92a&&Wi(_0x3f0c54,_0x36ea8c,_0x2bc92a),_0x2bc92a;},rt=(_0x3591a0,_0x4833bd)=>(_0xb363a1,_0x15d2c9)=>_0x4833bd(_0xb363a1,_0x15d2c9,_0x3591a0);const Ki=['image/png',_0x4f4baa(0x521),_0x4f4baa(0x1d2),'image/gif',_0x4f4baa(0x566)],Xi=0x5*0x400*0x400,qi='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Ji=_0x4f4baa(0x1ec),zi=_0x4f4baa(0x264),Zi=_0x4f4baa(0x325);exports[_0x4f4baa(0x383)]=class{constructor(_0x7fb793,_0x51b35e){const _0x18311d=_0x4f4baa;d(this,_0x18311d(0x24c),0x0),d(this,_0x18311d(0x3b0),new g[(_0x18311d(0x455))]()),d(this,'change$',this[_0x18311d(0x3b0)]),d(this,_0x18311d(0x393),new Map()),(this['_httpService']=_0x7fb793,this[_0x18311d(0x52a)]=_0x51b35e);}[_0x4f4baa(0x2c2)](_0x4aa20d){const _0x27fc54=_0x4f4baa;this[_0x27fc54(0x24c)]=_0x4aa20d,this['_change$'][_0x27fc54(0x469)](_0x4aa20d);}['getImageSourceCache'](_0x3d2b2c,_0xc9c1d6){const _0x2fec7a=_0x4f4baa;if(_0xc9c1d6===A[_0x2fec7a(0x225)][_0x2fec7a(0x361)]){const _0x234786=new Image();return _0x234786['src']=_0x3d2b2c,_0x234786;}return this[_0x2fec7a(0x393)][_0x2fec7a(0x2e7)](_0x3d2b2c);}[_0x4f4baa(0x1e7)](_0x41469b,_0x6e32bb,_0x2db0c3){const _0x4845b7=_0x4f4baa;_0x6e32bb===A['ImageSourceType'][_0x4845b7(0x361)]||_0x2db0c3==null||this[_0x4845b7(0x393)][_0x4845b7(0x203)](_0x41469b,_0x2db0c3);}async[_0x4f4baa(0x20e)](_0x446aa0){const _0x201659=_0x4f4baa;try{const _0x2dfbcb=this[_0x201659(0x532)](this[_0x201659(0x3bc)](),''+_0x446aa0),_0x2696dd=(await this[_0x201659(0x1ce)]['get'](_0x2dfbcb))['body'];return _0x2696dd[_0x201659(0x370)]&&_0x2696dd['error'][_0x201659(0x3fe)]===ft['OK']?Promise[_0x201659(0x269)](_0x2696dd[_0x201659(0x2e1)]):Promise[_0x201659(0x516)](_0x2696dd['error']);}catch(_0x3c3b18){return Promise[_0x201659(0x516)](_0x3c3b18);}}async[_0x4f4baa(0x3c3)](_0x2f147f){const _0x2090c0=_0x4f4baa;let _0x320362='';if(!Ki[_0x2090c0(0x53e)](_0x2f147f[_0x2090c0(0x302)]))return this['_decreaseWaiting'](),Promise['reject'](new Error(A[_0x2090c0(0x322)][_0x2090c0(0x3db)]));if(_0x2f147f[_0x2090c0(0x1ea)]>Xi)return this['_decreaseWaiting'](),Promise[_0x2090c0(0x516)](new Error(A['ImageUploadStatusType'][_0x2090c0(0x39d)]));try{const _0x34dcc4=new FormData();_0x34dcc4['append'](_0x2090c0(0x1db),_0x2f147f);const _0x2badb5=this[_0x2090c0(0x2f8)]()+_0x2090c0(0x31c)+_0x2f147f[_0x2090c0(0x1ea)][_0x2090c0(0x57b)](),_0x120a1b=await(await fetch(_0x2badb5,{'method':_0x2090c0(0x359),'body':_0x34dcc4}))['json']();if(typeof _0x120a1b[_0x2090c0(0x47e)]!=_0x2090c0(0x4bb))return this[_0x2090c0(0x2e4)](),Promise['reject'](new Error(A[_0x2090c0(0x322)][_0x2090c0(0x336)]));_0x320362=_0x120a1b[_0x2090c0(0x47e)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(A[_0x2090c0(0x322)][_0x2090c0(0x336)]));}return new Promise((_0x5df2c3,_0x3a4140)=>{const _0x18faf7=_0x2090c0,_0x28fa86=new FileReader();_0x28fa86[_0x18faf7(0x550)](_0x2f147f),_0x28fa86[_0x18faf7(0x524)]=_0x3178af=>{const _0x445144=_0x18faf7;var _0x4fb158;const _0x54ece4=(_0x4fb158=_0x3178af[_0x445144(0x30b)])==null?void 0x0:_0x4fb158['result'];if(_0x54ece4==null){this[_0x445144(0x2e4)](),_0x3a4140(new Error(A[_0x445144(0x322)][_0x445144(0x336)]));return;}const _0x1c1463=c[_0x445144(0x386)]['generateRandomId'](0x6);_0x5df2c3({'imageId':_0x1c1463,'imageSourceType':A[_0x445144(0x225)][_0x445144(0x36d)],'source':_0x320362,'base64Cache':_0x54ece4,'status':A[_0x445144(0x322)][_0x445144(0x45e)]}),this[_0x445144(0x2e4)]();};});}[_0x4f4baa(0x2f8)](){const _0x2b30a6=_0x4f4baa;var _0x4a0e40;return(_0x4a0e40=this[_0x2b30a6(0x52a)][_0x2b30a6(0x21c)](qi))!=null?_0x4a0e40:Ji;}['_getSignURL'](){const _0x34695d=_0x4f4baa;var _0x18ff9f;return(_0x18ff9f=this[_0x34695d(0x52a)][_0x34695d(0x21c)](zi))!=null?_0x18ff9f:Zi;}[_0x4f4baa(0x532)](_0x2de79e,_0xcd4f7c){const _0x52f68b=_0x4f4baa;return _0x2de79e[_0x52f68b(0x491)]('{fileID}',_0xcd4f7c);}[_0x4f4baa(0x2e4)](){const _0x59a5b5=_0x4f4baa;this[_0x59a5b5(0x24c)]-=0x1,this[_0x59a5b5(0x3b0)]['next'](this[_0x59a5b5(0x24c)]);}},exports[_0x4f4baa(0x383)]=Yi([rt(0x0,_[_0x4f4baa(0x451)](U[_0x4f4baa(0x3d4)])),rt(0x1,c[_0x4f4baa(0x37f)])],exports[_0x4f4baa(0x383)]);var Qi=Object['defineProperty'],en=Object[_0x4f4baa(0x2f2)],tn=(_0x4a3580,_0x5ab6cb,_0x16aaa4,_0x12447c)=>{const _0x469186=_0x4f4baa;for(var _0xf4551f=_0x12447c>0x1?void 0x0:_0x12447c?en(_0x5ab6cb,_0x16aaa4):_0x5ab6cb,_0x3a106e=_0x4a3580[_0x469186(0x56e)]-0x1,_0x25ad34;_0x3a106e>=0x0;_0x3a106e--)(_0x25ad34=_0x4a3580[_0x3a106e])&&(_0xf4551f=(_0x12447c?_0x25ad34(_0x5ab6cb,_0x16aaa4,_0xf4551f):_0x25ad34(_0xf4551f))||_0xf4551f);return _0x12447c&&_0xf4551f&&Qi(_0x5ab6cb,_0x16aaa4,_0xf4551f),_0xf4551f;},ae=(_0x3f0d33,_0xa12d3e)=>(_0x5357b7,_0x31462d)=>_0xa12d3e(_0x5357b7,_0x31462d,_0x3f0d33);let ge=class extends c['RxDisposable']{constructor(_0x2594ca,_0x5387a9,_0x39f6c3,_0x1919ce,_0x50dbee){const _0x1aa225=_0x4f4baa;super(),this[_0x1aa225(0x4d3)]=_0x2594ca,this[_0x1aa225(0x1d3)]=_0x5387a9,this[_0x1aa225(0x3ca)]=_0x39f6c3,this[_0x1aa225(0x42f)]=_0x1919ce,this[_0x1aa225(0x43b)]=_0x50dbee,this[_0x1aa225(0x35e)](),this[_0x1aa225(0x493)]();}['_initCloseConn'](){const _0x4057b6=_0x4f4baa,_0x5e6c7b=async _0x51566d=>{const _0x1f5e22=_0x33cb;(await this[_0x1f5e22(0x42f)][_0x1f5e22(0x4ae)](_0x51566d))[_0x1f5e22(0x580)][_0x1f5e22(0x236)](b['filter'](_0x366b39=>_0x366b39[_0x1f5e22(0x474)]===u['CollaborationEvent']['SHOULD_CLOSE_CONN']),b[_0x1f5e22(0x3de)](this['dispose$']))[_0x1f5e22(0x2fe)](_0x5df96b=>{const _0x1a3336=_0x1f5e22,_0x51ca23=_0x5df96b,{reason:_0x4d990b}=_0x51ca23[_0x1a3336(0x253)];this[_0x1a3336(0x4d3)][_0x1a3336(0x2e7)](N[_0x1a3336(0x249)])[_0x1a3336(0x4d9)]({'type':Q['MessageType']['Error'],'content':this[_0x1a3336(0x43b)]['t']('collaboration.closeRoom')+'('+_0x4d990b+')'}),this['_permissionService'][_0x1a3336(0x22c)](new E[(_0x1a3336(0x2a5))](_0x51566d)['id'],!0x1),this[_0x1a3336(0x42f)][_0x1a3336(0x503)](_0x51566d);});};g['merge'](this[_0x4057b6(0x1d3)][_0x4057b6(0x43c)](c[_0x4057b6(0x35f)][_0x4057b6(0x4fe)]),this['_univerInstanceService'][_0x4057b6(0x43c)](c['UniverInstanceType'][_0x4057b6(0x3e8)]))[_0x4057b6(0x236)](b[_0x4057b6(0x1e2)](_0x22f7f7=>_0x22f7f7[_0x4057b6(0x286)]()),b[_0x4057b6(0x570)](_0x2ba221=>!c['isInternalEditorID'](_0x2ba221)),b[_0x4057b6(0x3de)](this[_0x4057b6(0x3c9)]))[_0x4057b6(0x2fe)](_0x251ef3=>{_0x5e6c7b(_0x251ef3);});}[_0x4f4baa(0x35e)](){const _0x43f75e=_0x4f4baa,_0x3d06f9=async _0x58c6eb=>{const _0xf75d72=_0x33cb;(await this['_collaborationSessionService']['requireSession'](_0x58c6eb))[_0xf75d72(0x580)]['pipe'](b[_0xf75d72(0x570)](_0x3b2380=>_0x3b2380[_0xf75d72(0x474)]===u[_0xf75d72(0x441)][_0xf75d72(0x259)]),b[_0xf75d72(0x3de)](this[_0xf75d72(0x3c9)]))['subscribe'](_0x5a9902=>{const _0x2f5809=_0xf75d72,_0x36a5d8=_0x5a9902,{objectId:_0x4d9a09}=_0x36a5d8[_0x2f5809(0x253)];_0x4d9a09===_0x58c6eb&&this[_0x2f5809(0x4d3)][_0x2f5809(0x2e7)](z[_0x2f5809(0x2dd)])[_0x2f5809(0x3cb)](_0x58c6eb);});};g[_0x43f75e(0x509)](this[_0x43f75e(0x1d3)]['getTypeOfUnitAdded$'](c[_0x43f75e(0x35f)][_0x43f75e(0x4fe)]),this['_univerInstanceService'][_0x43f75e(0x43c)](c['UniverInstanceType']['UNIVER_DOC']))['pipe'](b[_0x43f75e(0x1e2)](_0x54aaf0=>_0x54aaf0[_0x43f75e(0x286)]()),b[_0x43f75e(0x570)](_0x447fe4=>!c[_0x43f75e(0x3a0)](_0x447fe4)),b['takeUntil'](this[_0x43f75e(0x3c9)]))[_0x43f75e(0x2fe)](_0x2e923f=>{_0x3d06f9(_0x2e923f);});}};ge=tn([c['OnLifecycle'](c[_0x4f4baa(0x413)][_0x4f4baa(0x4ad)],ge),ae(0x0,_[_0x4f4baa(0x451)](_[_0x4f4baa(0x548)])),ae(0x1,c[_0x4f4baa(0x45c)]),ae(0x2,c[_0x4f4baa(0x398)]),ae(0x3,_[_0x4f4baa(0x451)](exports[_0x4f4baa(0x334)])),ae(0x4,_[_0x4f4baa(0x451)](c[_0x4f4baa(0x4b4)]))],ge);var wt=Object[_0x4f4baa(0x4e3)],sn=Object[_0x4f4baa(0x2f2)],nn=(_0xde262c,_0x21ef1b,_0x3e5021)=>_0x21ef1b in _0xde262c?wt(_0xde262c,_0x21ef1b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e5021}):_0xde262c[_0x21ef1b]=_0x3e5021,rn=(_0x228e86,_0x42d3d9,_0x322cf2,_0x2437d9)=>{const _0x431a7f=_0x4f4baa;for(var _0xf2b25a=_0x2437d9>0x1?void 0x0:_0x2437d9?sn(_0x42d3d9,_0x322cf2):_0x42d3d9,_0x51e3d1=_0x228e86[_0x431a7f(0x56e)]-0x1,_0x2aa958;_0x51e3d1>=0x0;_0x51e3d1--)(_0x2aa958=_0x228e86[_0x51e3d1])&&(_0xf2b25a=(_0x2437d9?_0x2aa958(_0x42d3d9,_0x322cf2,_0xf2b25a):_0x2aa958(_0xf2b25a))||_0xf2b25a);return _0x2437d9&&_0xf2b25a&&wt(_0x42d3d9,_0x322cf2,_0xf2b25a),_0xf2b25a;},ot=(_0x195f45,_0x4c103b)=>(_0x4ffca2,_0x2b5eb7)=>_0x4c103b(_0x4ffca2,_0x2b5eb7,_0x195f45),on=(_0x2f466f,_0x4ddd59,_0x36e674)=>nn(_0x2f466f,_0x4ddd59+'',_0x36e674);const an=_0x4f4baa(0x41c);exports['UniverCollaborationClientPlugin']=class extends c[_0x4f4baa(0x519)]{constructor(_0x57175b,_0x2b64e7,_0x333ea7){const _0x204503=_0x4f4baa;super(),this[_0x204503(0x380)]=_0x57175b,this[_0x204503(0x581)]=_0x2b64e7,this[_0x204503(0x4d3)]=_0x333ea7;}[_0x4f4baa(0x301)](_0x58e06c){const _0x1dae1e=_0x4f4baa;var _0x52199c,_0x38bb57,_0x4bb9c6,_0x185acb,_0x534fc1;_0x58e06c['has'](c[_0x1dae1e(0x424)])&&this[_0x1dae1e(0x581)][_0x1dae1e(0x370)](_0x1dae1e(0x4c0),_0x1dae1e(0x41e));let _0x1f0e6b=[[c[_0x1dae1e(0x424)],{'useClass':je}],[exports[_0x1dae1e(0x334)]],[Ve],[U[_0x1dae1e(0x3d4)]],[Ge,{'useClass':Ut}],[G],[exports[_0x1dae1e(0x3a1)]],[U['WebSocketService']],[Ie],[me],[fe],[Fe],[Ee],[Be],[ge],[ke,{'useClass':(_0x38bb57=(_0x52199c=this[_0x1dae1e(0x380)])==null?void 0x0:_0x52199c['socketService'])!=null?_0x38bb57:exports[_0x1dae1e(0x395)]}],[U[_0x1dae1e(0x29e)],{'useClass':U[_0x1dae1e(0x2a8)]}],[c[_0x1dae1e(0x46e)],{'useClass':exports[_0x1dae1e(0x224)]}],[c[_0x1dae1e(0x355)],{'useClass':exports[_0x1dae1e(0x4dd)]}],[A[_0x1dae1e(0x58b)],{'useClass':exports[_0x1dae1e(0x383)]}],[exports[_0x1dae1e(0x409)]],[exports['DataLoaderController']],[exports[_0x1dae1e(0x4fc)]],[Se],[Z]];(_0x4bb9c6=this['_config'])!=null&&_0x4bb9c6[_0x1dae1e(0x54c)]&&_0x1f0e6b[_0x1dae1e(0x589)]([Ce,{'useClass':_s}]),((_0x185acb=this[_0x1dae1e(0x380)])==null?void 0x0:_0x185acb[_0x1dae1e(0x4cb)])==null||this[_0x1dae1e(0x380)][_0x1dae1e(0x4cb)][_0x1dae1e(0x53e)](c[_0x1dae1e(0x35f)]['UNIVER_SHEET'])?_0x1f0e6b[_0x1dae1e(0x589)]([de]):this[_0x1dae1e(0x380)][_0x1dae1e(0x4cb)]['includes'](c['UniverInstanceType'][_0x1dae1e(0x3e8)])&&_0x1f0e6b[_0x1dae1e(0x589)]([ve]),_0x1f0e6b=c[_0x1dae1e(0x439)](_0x1f0e6b,(_0x534fc1=this['_config'])==null?void 0x0:_0x534fc1[_0x1dae1e(0x562)]),_0x1f0e6b[_0x1dae1e(0x502)](_0x4096a5=>_0x58e06c['add'](_0x4096a5)),_0x58e06c[_0x1dae1e(0x2e7)](U['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_initModules']();}[_0x4f4baa(0x460)](){const _0xddd097=_0x4f4baa;var _0x25e642,_0x13a88c;(_0x25e642=this['_config'])!=null&&_0x25e642[_0xddd097(0x500)]||this[_0xddd097(0x4d3)][_0xddd097(0x2e7)](exports[_0xddd097(0x3a1)])[_0xddd097(0x4aa)](),(_0x13a88c=this['_config'])!=null&&_0x13a88c['enableAuthServer']&&this[_0xddd097(0x4d3)][_0xddd097(0x2e7)](Ee);}},on(exports[_0x4f4baa(0x309)],_0x4f4baa(0x44a),an),exports[_0x4f4baa(0x309)]=rn([c[_0x4f4baa(0x425)](u[_0x4f4baa(0x1e0)]),ot(0x1,c[_0x4f4baa(0x56d)]),ot(0x2,_[_0x4f4baa(0x451)](_['Injector']))],exports[_0x4f4baa(0x309)]),exports[_0x4f4baa(0x2de)]=yt,exports[_0x4f4baa(0x46b)]=vt,exports['COLLAB_WEB_SOCKET_URL_KEY']=_t,exports['CollaborationStatus']=P,exports[_0x4f4baa(0x381)]=Pt,exports['CommentService']=Be,exports['HEARTBEAT_INTERVAL_KEY']=ut,exports['HEARTBEAT_TIMEOUT_KEY']=He,exports['ICollaborationSocketService']=ke,exports[_0x4f4baa(0x341)]=Ge,exports[_0x4f4baa(0x222)]=St,exports[_0x4f4baa(0x431)]=gt,exports['SEND_CHANGESET_TIMEOUT_KEY']=ht,exports[_0x4f4baa(0x52f)]=ct,exports[_0x4f4baa(0x1cf)]=lt,exports[_0x4f4baa(0x2d7)]=W,exports[_0x4f4baa(0x38c)]=Tt,exports[_0x4f4baa(0x2d6)]=Ut,exports[_0x4f4baa(0x248)]=mt,exports[_0x4f4baa(0x405)]=It;
|
1
|
+
'use strict';const _0x42f461=_0x527e;(function(_0x5ed0de,_0x504270){const _0x2fa677=_0x527e,_0x343872=_0x5ed0de();while(!![]){try{const _0x52c8fc=-parseInt(_0x2fa677(0x26c))/0x1*(-parseInt(_0x2fa677(0x13f))/0x2)+parseInt(_0x2fa677(0x1ff))/0x3*(parseInt(_0x2fa677(0x3eb))/0x4)+-parseInt(_0x2fa677(0x1a7))/0x5*(-parseInt(_0x2fa677(0x38f))/0x6)+-parseInt(_0x2fa677(0x15b))/0x7+-parseInt(_0x2fa677(0x422))/0x8+parseInt(_0x2fa677(0x182))/0x9+parseInt(_0x2fa677(0x3ba))/0xa*(-parseInt(_0x2fa677(0x253))/0xb);if(_0x52c8fc===_0x504270)break;else _0x343872['push'](_0x343872['shift']());}catch(_0x568551){_0x343872['push'](_0x343872['shift']());}}}(_0x3600,0x1966f));var At=Object[_0x42f461(0x3c5)],jt=(_0xb6ba5e,_0x10c595,_0x149f41)=>_0x10c595 in _0xb6ba5e?At(_0xb6ba5e,_0x10c595,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x149f41}):_0xb6ba5e[_0x10c595]=_0x149f41,u=(_0x348232,_0x29e1cb,_0x4da470)=>jt(_0x348232,typeof _0x29e1cb!=_0x42f461(0x275)?_0x29e1cb+'':_0x29e1cb,_0x4da470);Object[_0x42f461(0x3c5)](exports,Symbol[_0x42f461(0x45f)],{'value':'Module'});const o=require(_0x42f461(0x40d)),p=require(_0x42f461(0xbe)),Z=require(_0x42f461(0x3a3)),M=require('@univerjs/ui'),_=require(_0x42f461(0xc7)),v=require(_0x42f461(0x481)),C=require(_0x42f461(0x45d)),L=require(_0x42f461(0x342)),P=require(_0x42f461(0x18c)),N=require(_0x42f461(0x144)),Ge=require(_0x42f461(0x192)),je=require(_0x42f461(0x3db)),T=require(_0x42f461(0x20c)),J=require(_0x42f461(0x460)),y=require(_0x42f461(0x476)),$t=require(_0x42f461(0x29a)),Ht=require(_0x42f461(0x1f6)),ot=_0x42f461(0x306),xt=_0x42f461(0x3b7),at=_0x42f461(0x314),ct=_0x42f461(0x23f),kt=0x7d0,lt=_0x42f461(0x1c2),Bt=_0x42f461(0x33b),ht=_0x42f461(0x1b0),Ft=0x7530,$e='HEARTBEAT_TIMEOUT',_t=0x2710,Vt=_0x42f461(0x39b),Wt=0x4e20,Gt=_0x42f461(0x325),Yt=0x3,ut=_0x42f461(0x21f),Kt=0x3e8,dt='COLLAB_SUBMIT_CHANGESET_URL',Xt=_0x42f461(0x303),St=_0x42f461(0x22b),qt=_0x42f461(0x1bb);var vt=(_0x5bad69=>(_0x5bad69[_0x5bad69[_0x42f461(0x24b)]=0x0]=_0x42f461(0x24b),_0x5bad69[_0x5bad69['OK']=0x1]='OK',_0x5bad69[_0x5bad69[_0x42f461(0x156)]=0x2]='INTERNAL_ERROR',_0x5bad69[_0x5bad69['PERMISSION_DENIED']=0x3]=_0x42f461(0x2a2),_0x5bad69[_0x5bad69['NOT_FOUND']=0x4]=_0x42f461(0x170),_0x5bad69[_0x5bad69[_0x42f461(0xc5)]=0x5]=_0x42f461(0xc5),_0x5bad69[_0x5bad69[_0x42f461(0x167)]=0x6]=_0x42f461(0x167),_0x5bad69[_0x5bad69['INVALID_ARGUMENT']=0x7]=_0x42f461(0x27c),_0x5bad69[_0x5bad69[_0x42f461(0x21e)]=0x8]=_0x42f461(0x21e),_0x5bad69[_0x5bad69[_0x42f461(0xb8)]=0x9]=_0x42f461(0xb8),_0x5bad69[_0x5bad69[_0x42f461(0x3a9)]=0x1389]=_0x42f461(0x3a9),_0x5bad69[_0x5bad69[_0x42f461(0xbd)]=0x1771]=_0x42f461(0xbd),_0x5bad69[_0x5bad69['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5bad69[_0x5bad69[_0x42f461(0x256)]=0x1b59]=_0x42f461(0x256),_0x5bad69[_0x5bad69[_0x42f461(0x2c4)]=0x1b5a]=_0x42f461(0x2c4),_0x5bad69[_0x5bad69[_0x42f461(0x3fd)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5bad69[_0x5bad69['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x42f461(0x46c),_0x5bad69[_0x5bad69['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x42f461(0x2e0),_0x5bad69[_0x5bad69['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5bad69[_0x5bad69['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x42f461(0x100),_0x5bad69[_0x5bad69[_0x42f461(0x289)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5bad69[_0x5bad69[_0x42f461(0x2f4)]=0x232c]=_0x42f461(0x2f4),_0x5bad69[_0x5bad69[_0x42f461(0x173)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5bad69[_0x5bad69[_0x42f461(0xdf)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5bad69[_0x5bad69[_0x42f461(0xe7)]=0x2712]=_0x42f461(0xe7),_0x5bad69[_0x5bad69['UNRECOGNIZED']=-0x1]=_0x42f461(0x350),_0x5bad69))(vt||{}),A=(_0x39cc00=>(_0x39cc00[_0x39cc00[_0x42f461(0x36a)]=0x0]=_0x42f461(0x36a),_0x39cc00[_0x39cc00[_0x42f461(0x46d)]=0x1]=_0x42f461(0x46d),_0x39cc00[_0x39cc00[_0x42f461(0x23d)]=0x2]=_0x42f461(0x23d),_0x39cc00[_0x39cc00[_0x42f461(0x355)]=0x3]=_0x42f461(0x355),_0x39cc00[_0x39cc00[_0x42f461(0x350)]=-0x1]='UNRECOGNIZED',_0x39cc00))(A||{}),b=(_0x9f605=>(_0x9f605[_0x9f605[_0x42f461(0x1e0)]=0x0]='UNKNOWN_CMD',_0x9f605[_0x9f605[_0x42f461(0x14c)]=0x1]=_0x42f461(0x14c),_0x9f605[_0x9f605['JOIN']=0x2]=_0x42f461(0x232),_0x9f605[_0x9f605['LEAVE']=0x3]='LEAVE',_0x9f605[_0x9f605[_0x42f461(0x448)]=0x4]=_0x42f461(0x448),_0x9f605[_0x9f605[_0x42f461(0x22e)]=0x5]=_0x42f461(0x22e),_0x9f605[_0x9f605[_0x42f461(0x461)]=0x6]=_0x42f461(0x461),_0x9f605[_0x9f605['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x9f605))(b||{}),He=(_0x3d23c0=>(_0x3d23c0[_0x3d23c0[_0x42f461(0x287)]=0x0]='UNKNOWN_CODE',_0x3d23c0[_0x3d23c0['OK']=0x1]='OK',_0x3d23c0[_0x3d23c0[_0x42f461(0x34e)]=0x2]=_0x42f461(0x34e),_0x3d23c0[_0x3d23c0[_0x42f461(0x350)]=-0x1]=_0x42f461(0x350),_0x3d23c0))(He||{}),Jt=Object[_0x42f461(0x3c5)],zt=Object[_0x42f461(0x1b1)],Zt=(_0x3be71b,_0x343649,_0x4cb484,_0x14ffd5)=>{const _0x335c0c=_0x42f461;for(var _0x2fc9f4=_0x14ffd5>0x1?void 0x0:_0x14ffd5?zt(_0x343649,_0x4cb484):_0x343649,_0x19c325=_0x3be71b[_0x335c0c(0x441)]-0x1,_0x548776;_0x19c325>=0x0;_0x19c325--)(_0x548776=_0x3be71b[_0x19c325])&&(_0x2fc9f4=(_0x14ffd5?_0x548776(_0x343649,_0x4cb484,_0x2fc9f4):_0x548776(_0x2fc9f4))||_0x2fc9f4);return _0x14ffd5&&_0x2fc9f4&&Jt(_0x343649,_0x4cb484,_0x2fc9f4),_0x2fc9f4;},Ye=(_0x1d3057,_0x4f3a69)=>(_0x50ba1d,_0x176650)=>_0x4f3a69(_0x50ba1d,_0x176650,_0x1d3057);let W=class extends o['Disposable']{constructor(_0x2a909b,_0x4fa7a5){const _0x10ff0c=_0x42f461;super(),u(this,_0x10ff0c(0x11e),new Map()),(this[_0x10ff0c(0x3c1)]=_0x2a909b,this[_0x10ff0c(0x205)]=_0x4fa7a5,this[_0x10ff0c(0x2e2)](o[_0x10ff0c(0x262)](v['merge'](this[_0x10ff0c(0x3c1)][_0x10ff0c(0x3c7)](o[_0x10ff0c(0x3a7)][_0x10ff0c(0x23d)])[_0x10ff0c(0x285)](C['map'](_0x2ebf9a=>_0x2ebf9a[_0x10ff0c(0x2d9)]())),this[_0x10ff0c(0x3c1)][_0x10ff0c(0x3c7)](o[_0x10ff0c(0x3a7)][_0x10ff0c(0x46d)])[_0x10ff0c(0x285)](C['map'](_0x5a8b24=>_0x5a8b24['getUnitId']())),this[_0x10ff0c(0x3c1)][_0x10ff0c(0x3c7)](o[_0x10ff0c(0x3a7)][_0x10ff0c(0x355)])[_0x10ff0c(0x285)](C['map'](_0x54e86f=>_0x54e86f[_0x10ff0c(0x2d9)]())))[_0x10ff0c(0x17e)](_0x2760b3=>this[_0x10ff0c(0x21d)](_0x2760b3)))));}[_0x42f461(0x2a7)](_0x224459){const _0x52f86d=_0x42f461;this[_0x52f86d(0x205)]['setCurrentUser'](_0x224459);}[_0x42f461(0x119)](){const _0x11218e=_0x42f461;return this['_userManagerService'][_0x11218e(0x119)]();}[_0x42f461(0x225)](_0x45ad31,_0x383cfc){const _0x52b130=_0x42f461;let _0x484cc2=this[_0x52b130(0x11e)][_0x52b130(0xc0)](_0x45ad31);_0x484cc2||(_0x484cc2=new Qt(),this['_roomMembers'][_0x52b130(0x1c4)](_0x45ad31,_0x484cc2)),_0x484cc2['updateMember'](_0x383cfc);}[_0x42f461(0xf9)](_0x227940,_0x536b8e){const _0x559c03=_0x42f461,_0xa8645a=this[_0x559c03(0x11e)][_0x559c03(0xc0)](_0x227940);_0xa8645a&&_0xa8645a[_0x559c03(0xf9)](_0x536b8e);}[_0x42f461(0x1fa)](_0x5a4b1f){const _0x5971b4=_0x42f461;return this[_0x5971b4(0x11e)][_0x5971b4(0xc0)](_0x5a4b1f);}[_0x42f461(0x297)](_0x1bb087,_0x317cf5){const _0x3f755e=_0x42f461,_0x27c341=this[_0x3f755e(0x11e)][_0x3f755e(0xc0)](_0x1bb087);if(_0x27c341)return _0x27c341[_0x3f755e(0x297)](_0x317cf5);}['_removeRoom'](_0x1fae72){const _0x3a7996=_0x42f461,_0x44b8e9=this[_0x3a7996(0x11e)]['get'](_0x1fae72);_0x44b8e9&&(_0x44b8e9[_0x3a7996(0x442)](),this['_roomMembers']['delete'](_0x1fae72));}[_0x42f461(0x442)](){const _0x47b610=_0x42f461;this['_roomMembers'][_0x47b610(0x375)](_0x30fb15=>_0x30fb15[_0x47b610(0x442)]()),this['_roomMembers'][_0x47b610(0x21c)]();}};W=Zt([Ye(0x0,o[_0x42f461(0x237)]),Ye(0x1,o[_0x42f461(0x1f3)](o['UserManagerService']))],W);class Qt extends o['Disposable']{constructor(){const _0x4fc070=_0x42f461;super(...arguments),u(this,_0x4fc070(0x12f),new Map());}[_0x42f461(0x442)](){const _0x577f44=_0x42f461;this[_0x577f44(0x12f)]['clear']();}[_0x42f461(0x225)](_0x11d740){const _0x533344=_0x42f461;this[_0x533344(0x12f)][_0x533344(0x1c4)](_0x11d740[_0x533344(0x27e)],_0x11d740);}[_0x42f461(0xf9)](_0x121422){const _0x998a01=_0x42f461;this[_0x998a01(0x12f)][_0x998a01(0x213)](_0x121422);}[_0x42f461(0x297)](_0x33b1cc){const _0x172515=_0x42f461;return this[_0x172515(0x12f)][_0x172515(0xc0)](_0x33b1cc);}}function gt(_0x33ebd8){const _0x20d347=_0x42f461;var _0x2d8c71,_0x5d924f,_0x407a9e,_0x5b27e2;const _0x33aca6=_0x33ebd8[_0x20d347(0x407)],_0x2ae7ea=JSON['parse'](_0x33aca6);switch(_0x2ae7ea[_0x20d347(0xf6)]){case b['HEARTBEAT']:case b[_0x20d347(0x14c)]:{const _0x3f455f=_0x2ae7ea[_0x20d347(0x38b)];return{..._0x2ae7ea,'data':_0x3f455f,'cmd':_0x2ae7ea[_0x20d347(0xf6)]};}case b[_0x20d347(0x232)]:{const _0xbeccd7=_0x2ae7ea['joinRsp'];return{..._0x2ae7ea,'data':_0xbeccd7,'cmd':_0x2ae7ea[_0x20d347(0xf6)]};}case b[_0x20d347(0x461)]:{const _0x3de232=_0x2ae7ea['collaMsg'];switch(_0x3de232[_0x20d347(0x35a)]){case _['CollaborationEvent'][_0x20d347(0x3f2)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':(_0x2d8c71=_0x3de232[_0x20d347(0x2f6)])==null?void 0x0:_0x2d8c71['cs']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x1d7)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':(_0x5d924f=_0x3de232[_0x20d347(0x1de)])==null?void 0x0:_0x5d924f['cs']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x2f3)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':(_0x407a9e=_0x3de232[_0x20d347(0x42b)])==null?void 0x0:_0x407a9e['cs']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _['CollaborationEvent']['CHANGESET_REJ']:return{..._0x2ae7ea,'data':{..._0x3de232,'data':(_0x5b27e2=_0x3de232['csRejEvent'])==null?void 0x0:_0x5b27e2['cs']},'cmd':_0x2ae7ea['cmd']};case _[_0x20d347(0x301)]['UPDATE_CURSOR']:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232[_0x20d347(0x335)]},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x3e3)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232[_0x20d347(0x1d8)]},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)]['USERS_LEAVE']:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232[_0x20d347(0x2d3)]},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)]['LIVESHARE_NEW_HOST']:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232[_0x20d347(0x2fe)]},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x454)]:case _[_0x20d347(0x301)][_0x20d347(0xc2)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232['liveShareOperation']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x38c)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232['liveShareNewHost']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)]['MSG_FOR_ERROR']:return{..._0x2ae7ea,'data':_0x3de232,'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)]['COMMENT_UPDATE']:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232[_0x20d347(0x3c4)]},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0x293)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232['updatePermissionObjEvent']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};case _[_0x20d347(0x301)][_0x20d347(0xd2)]:return{..._0x2ae7ea,'data':{..._0x3de232,'data':_0x3de232['shouldCloseConn']},'cmd':_0x2ae7ea[_0x20d347(0xf6)]};default:return _0x2ae7ea;}}default:return _0x2ae7ea;}}function ft(_0x391fac){const _0x41cd80=_0x42f461;switch(_0x391fac[_0x41cd80(0xf6)]){case b[_0x41cd80(0x22e)]:case b[_0x41cd80(0x14c)]:return JSON[_0x41cd80(0x472)]({'cmd':_0x391fac['cmd'],'routeKey':_0x391fac['routeKey']});case b[_0x41cd80(0x448)]:{let _0x2da1c5;switch(_0x391fac[_0x41cd80(0x407)][_0x41cd80(0x35a)]){case _[_0x41cd80(0x301)][_0x41cd80(0x102)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0x102)],'updateCursorEvent':_0x391fac['data'][_0x41cd80(0x407)]};break;}case _[_0x41cd80(0x301)][_0x41cd80(0x427)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0x427)],'leaveEvent':_0x391fac['data'][_0x41cd80(0x407)]};break;}case _[_0x41cd80(0x301)][_0x41cd80(0x3e3)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0x3e3)],'joinEvent':_0x391fac['data'][_0x41cd80(0x407)]};break;}case _[_0x41cd80(0x301)][_0x41cd80(0xd8)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0xd8)],'liveShareNewHost':_0x391fac[_0x41cd80(0x407)][_0x41cd80(0x407)]};break;}case _['CollaborationEvent'][_0x41cd80(0xc2)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0xc2)],'liveShareOperation':_0x391fac[_0x41cd80(0x407)]['data']};break;}case _[_0x41cd80(0x301)]['LIVESHARE_TERMINATE']:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)][_0x41cd80(0x38c)],'liveShareTerminate':_0x391fac[_0x41cd80(0x407)][_0x41cd80(0x407)]};break;}case _['CollaborationEvent'][_0x41cd80(0x13b)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x391fac[_0x41cd80(0x407)]['data']};break;}case _[_0x41cd80(0x301)][_0x41cd80(0x454)]:{_0x2da1c5={'eventID':_[_0x41cd80(0x301)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x2da1c5={'eventID':_0x391fac[_0x41cd80(0x407)]['eventID']};}return JSON['stringify']({'cmd':_0x391fac[_0x41cd80(0xf6)],'routeKey':_0x391fac['routeKey'],'collaMsg':_0x2da1c5});}case b['JOIN']:return JSON[_0x41cd80(0x472)]({'cmd':_0x391fac['cmd'],'routeKey':_0x391fac[_0x41cd80(0xea)],'joinReq':_0x391fac[_0x41cd80(0x407)]});case b[_0x41cd80(0x2ae)]:return JSON[_0x41cd80(0x472)]({'cmd':_0x391fac['cmd'],'routeKey':_0x391fac[_0x41cd80(0xea)],'leaveReq':_0x391fac[_0x41cd80(0x407)]});default:throw new Error(_0x41cd80(0x3c9));}}var es=Object['defineProperty'],ts=Object[_0x42f461(0x1b1)],ss=(_0x5c2f15,_0x3afb7f,_0x4ae222,_0x581e29)=>{const _0x59ee86=_0x42f461;for(var _0x53fd1e=_0x581e29>0x1?void 0x0:_0x581e29?ts(_0x3afb7f,_0x4ae222):_0x3afb7f,_0x240bcd=_0x5c2f15[_0x59ee86(0x441)]-0x1,_0xdc5972;_0x240bcd>=0x0;_0x240bcd--)(_0xdc5972=_0x5c2f15[_0x240bcd])&&(_0x53fd1e=(_0x581e29?_0xdc5972(_0x3afb7f,_0x4ae222,_0x53fd1e):_0xdc5972(_0x53fd1e))||_0x53fd1e);return _0x581e29&&_0x53fd1e&&es(_0x3afb7f,_0x4ae222,_0x53fd1e),_0x53fd1e;},te=(_0x1e9644,_0x3f5208)=>(_0x3eae26,_0x185398)=>_0x3f5208(_0x3eae26,_0x185398,_0x1e9644);const xe=o['createIdentifier'](_0x42f461(0x271));function is(_0x3beed6,_0x219bb5,_0x277ccf){const _0x38aab5=_0x42f461;return _0x3beed6+'/'+_0x219bb5+'/unit/'+_0x277ccf+_0x38aab5(0x248);}exports['CollaborationSocketService']=class{constructor(_0xb7f9c8,_0x45f9c3,_0x3bda95,_0x383262,_0x165fe2){const _0x506f83=_0x42f461;this['_http']=_0xb7f9c8,this[_0x506f83(0x16b)]=_0x45f9c3,this[_0x506f83(0x408)]=_0x3bda95,this[_0x506f83(0x313)]=_0x383262,this[_0x506f83(0x220)]=_0x165fe2;}['createSocket'](_0x38d4ca){const _0x507e1a=_0x42f461,_0x3af4c6=this['_ws'][_0x507e1a(0x14f)](_0x38d4ca);if(!_0x3af4c6)throw new Error(_0x507e1a(0x404));const _0x23c930=new o['DisposableCollection'](),_0x3b1a63=new v[(_0x507e1a(0x26e))]();_0x23c930['add'](o['toDisposable'](_0x3af4c6[_0x507e1a(0x10f)]['subscribe'](_0x457e9c=>_0x3b1a63[_0x507e1a(0x3b2)](_0x457e9c)))),_0x23c930['add'](o[_0x507e1a(0x262)](()=>_0x3b1a63['complete']()));const _0x55008e=new v[(_0x507e1a(0x26e))]();_0x23c930[_0x507e1a(0x1eb)](o['toDisposable'](_0x3af4c6[_0x507e1a(0x374)][_0x507e1a(0x17e)](_0x4ffabd=>_0x55008e['next'](_0x4ffabd)))),_0x23c930[_0x507e1a(0x1eb)](o[_0x507e1a(0x262)](()=>_0x55008e[_0x507e1a(0x14d)]()));const _0x3e314b=new v[(_0x507e1a(0x26e))]();_0x23c930[_0x507e1a(0x1eb)](o[_0x507e1a(0x262)](_0x3af4c6[_0x507e1a(0x2dd)][_0x507e1a(0x17e)](_0x458e0d=>{const _0x135141=_0x507e1a,_0x4d4d1e=gt(_0x458e0d);_0x3e314b[_0x135141(0x3b2)](_0x4d4d1e);}))),_0x23c930[_0x507e1a(0x1eb)](o[_0x507e1a(0x262)](()=>_0x3e314b[_0x507e1a(0x14d)]()));const _0x39dcef=()=>{const _0x183343=_0x507e1a;_0x55008e[_0x183343(0x3b2)](new Event('connection\x20error')),_0x3b1a63[_0x183343(0x3b2)](new CloseEvent(_0x183343(0x3a2))),_0x42aca3[_0x183343(0x18f)]();},_0x42aca3={'memberID':'','close$':_0x3b1a63[_0x507e1a(0xbc)](),'error$':_0x55008e[_0x507e1a(0xbc)](),'open$':_0x3af4c6[_0x507e1a(0x401)],'message$':_0x3e314b[_0x507e1a(0xbc)](),'send':_0x473545=>{const _0x3ecbb2=_0x507e1a;if(_0x473545[_0x3ecbb2(0xf6)]===b[_0x3ecbb2(0x448)]){if(_0x473545[_0x3ecbb2(0x407)]['eventID']===_['CollaborationEvent'][_0x3ecbb2(0x432)]){this['_submitChangeset'](_0x42aca3,_0x473545[_0x3ecbb2(0x407)])[_0x3ecbb2(0x1e9)](_0x34648f=>{this['_logService']['error'](_0x34648f),_0x39dcef();});return;}if(_0x473545[_0x3ecbb2(0x407)][_0x3ecbb2(0x35a)]===_['CollaborationEvent'][_0x3ecbb2(0x115)]){const _0x2f9e00=_0x473545['data'];this[_0x3ecbb2(0x3d4)](_0x2f9e00)[_0x3ecbb2(0x44b)](_0x2e058e=>{const _0x5a8b0e=_0x3ecbb2;_0x3e314b[_0x5a8b0e(0x3b2)]({'cmd':b[_0x5a8b0e(0x461)],'code':He['OK'],'routeKey':_0x2f9e00[_0x5a8b0e(0x407)][_0x5a8b0e(0x33c)],'routeType':'','data':{'eventID':_[_0x5a8b0e(0x301)][_0x5a8b0e(0x1a3)],'data':{'changesets':_0x2e058e}}});})[_0x3ecbb2(0x1e9)](_0x4ad459=>{const _0x13a511=_0x3ecbb2;this[_0x13a511(0x313)][_0x13a511(0x34d)](_0x4ad459),_0x39dcef();});return;}}_0x3af4c6[_0x3ecbb2(0x36d)](ft(_0x473545));},'close':()=>{const _0x3d8572=_0x507e1a;_0x3af4c6[_0x3d8572(0x18f)](),_0x23c930[_0x3d8572(0x442)]();}};return _0x42aca3;}async[_0x42f461(0x453)](_0x12018a,_0x149649){const _0x576cb4=_0x42f461;var _0x2a8b1b;const {unitType:_0xa20a41,unitID:_0x4f102a,changeset:_0x5b74cb}=_0x149649['data'],_0xb8adc={'unitID':_0x4f102a,'memberID':_0x12018a['memberID'],'type':_0xa20a41,'changeset':_['parseChangesetToProtocol'](_0x5b74cb)},_0x3ea48c=is((_0x2a8b1b=this[_0x576cb4(0x408)][_0x576cb4(0x1b4)](dt))!=null?_0x2a8b1b:Xt,_0xa20a41,_0x4f102a);try{await this[_0x576cb4(0x3ad)][_0x576cb4(0x42a)](_0x3ea48c,{'body':_0xb8adc});}catch(_0x4892cd){throw this['_logService'][_0x576cb4(0x34d)](_0x576cb4(0x244),'submit\x20changeset\x20error!'),_0x4892cd;}}async[_0x42f461(0x3d4)](_0x322d41){const _0x8614ed=_0x42f461,{unitID:_0x46fbaf,from:_0x1eaa70,to:_0x3efe69,unitType:_0x5dbb70}=_0x322d41[_0x8614ed(0x407)];return(await this['_snapshotServerService'][_0x8614ed(0x211)]({'metadata':void 0x0},{'unitID':_0x46fbaf,'type':_0x5dbb70,'from':_0x1eaa70,'to':_0x3efe69}))[_0x8614ed(0x352)];}},exports[_0x42f461(0x12a)]=ss([te(0x0,o[_0x42f461(0x1f3)](P['HTTPService'])),te(0x1,o[_0x42f461(0x1f3)](P['WebSocketService'])),te(0x2,o['IConfigService']),te(0x3,o[_0x42f461(0x218)]),te(0x4,o[_0x42f461(0x41d)])],exports[_0x42f461(0x12a)]);class ke{constructor(){const _0x1cd0ac=_0x42f461;u(this,_0x1cd0ac(0x41c),new v[(_0x1cd0ac(0x26e))]()),u(this,_0x1cd0ac(0x29f),this['_commentUpdate$'][_0x1cd0ac(0xbc)]());}['onCommentUpdate'](_0x2ec84f){const _0x14bb82=_0x42f461;this[_0x14bb82(0x41c)][_0x14bb82(0x3b2)](_0x2ec84f);}}var ns=Object[_0x42f461(0x3c5)],rs=Object[_0x42f461(0x1b1)],mt=(_0x4fff4b,_0x5bceda,_0x1adaf5,_0x38630e)=>{const _0x228d9d=_0x42f461;for(var _0x7510e0=_0x38630e>0x1?void 0x0:_0x38630e?rs(_0x5bceda,_0x1adaf5):_0x5bceda,_0x413083=_0x4fff4b[_0x228d9d(0x441)]-0x1,_0x25f4a1;_0x413083>=0x0;_0x413083--)(_0x25f4a1=_0x4fff4b[_0x413083])&&(_0x7510e0=(_0x38630e?_0x25f4a1(_0x5bceda,_0x1adaf5,_0x7510e0):_0x25f4a1(_0x7510e0))||_0x7510e0);return _0x38630e&&_0x7510e0&&ns(_0x5bceda,_0x1adaf5,_0x7510e0),_0x7510e0;},U=(_0x56f8dc,_0xbb5c97)=>(_0x1c3340,_0x243da1)=>_0xbb5c97(_0x1c3340,_0x243da1,_0x56f8dc),V=(_0x2923d9=>(_0x2923d9[_0x2923d9[_0x42f461(0x228)]=0x0]=_0x42f461(0x228),_0x2923d9[_0x2923d9['JOINING']=0x1]=_0x42f461(0x16a),_0x2923d9[_0x2923d9['OFFLINE']=0x2]=_0x42f461(0x187),_0x2923d9[_0x2923d9[_0x42f461(0x336)]=0x3]='ONLINE',_0x2923d9))(V||{});exports[_0x42f461(0x323)]=class extends o[_0x42f461(0x451)]{constructor(_0x34f996,_0x2c5378,_0x509368,_0x4a368f,_0x3f5935,_0x481c3f,_0x79cae0,_0x143eeb,_0x503e6a){const _0x45b905=_0x42f461;super(),u(this,_0x45b905(0xc8),new v[(_0x45b905(0x151))](0x0)),u(this,_0x45b905(0x227),this['_sessionStatus$'][_0x45b905(0xbc)]()),u(this,_0x45b905(0xd3),new v[(_0x45b905(0x26e))]()),u(this,'event$',this[_0x45b905(0xd3)][_0x45b905(0xbc)]()),u(this,_0x45b905(0x2a9)),u(this,'_socketMessageSubscription'),u(this,_0x45b905(0xf1)),(this[_0x45b905(0x315)]=_0x34f996,this['_logService']=_0x509368,this[_0x45b905(0x1cf)]=_0x4a368f,this[_0x45b905(0x45c)]=_0x3f5935,this[_0x45b905(0x408)]=_0x481c3f,this[_0x45b905(0x15c)]=_0x79cae0,this[_0x45b905(0x2d2)]=_0x143eeb,this[_0x45b905(0x41a)]=_0x503e6a,_0x2c5378['pipe'](C['takeUntil'](this[_0x45b905(0x1b8)]))[_0x45b905(0x17e)](_0x4870fa=>{const _0x23fce9=_0x45b905;var _0x424523;typeof _0x4870fa>'u'||(this[_0x23fce9(0x2a9)]=_0x4870fa,_0x4870fa?(this['_joinRoom'](_0x4870fa),this[_0x23fce9(0x33f)]=this[_0x23fce9(0x2a9)][_0x23fce9(0x2dd)][_0x23fce9(0x17e)](_0x3728c0=>{const _0x3c250a=_0x23fce9;_0x3728c0[_0x3c250a(0xea)]===this[_0x3c250a(0x315)]&&this[_0x3c250a(0x2cc)](_0x3728c0);})):(this[_0x23fce9(0xc8)]['next'](0x2),(_0x424523=this[_0x23fce9(0x33f)])==null||_0x424523[_0x23fce9(0x188)](),this['_socketMessageSubscription']=null));}),this[_0x45b905(0x2e2)](this[_0x45b905(0x1cf)]['registerOnClose'](()=>{const _0x381509=_0x45b905;var _0x5f145d;(_0x5f145d=this[_0x381509(0x2a9)])==null||_0x5f145d[_0x381509(0x36d)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x381509(0x315)]}});})));}get[_0x42f461(0x3e6)](){const _0x307e20=_0x42f461;return this[_0x307e20(0xc8)][_0x307e20(0x1da)]();}['getMemberID'](){var _0x305cab,_0x3530e3;return(_0x3530e3=(_0x305cab=this['_socket'])==null?void 0x0:_0x305cab['memberID'])!=null?_0x3530e3:null;}[_0x42f461(0x442)](){const _0x49cdea=_0x42f461;super['dispose'](),this['dispose$']['next'](),this[_0x49cdea(0x1b8)]['complete']();}[_0x42f461(0x18f)](){const _0xe8ed6=_0x42f461;var _0x3aa5e8,_0x19771e;(_0x3aa5e8=this[_0xe8ed6(0x2a9)])==null||_0x3aa5e8[_0xe8ed6(0x36d)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0xe8ed6(0x315)]}}),this[_0xe8ed6(0xd3)][_0xe8ed6(0x14d)](),this[_0xe8ed6(0xc8)][_0xe8ed6(0x14d)](),(_0x19771e=this[_0xe8ed6(0x2a9)])==null||_0x19771e[_0xe8ed6(0x18f)](),this[_0xe8ed6(0x442)]();}[_0x42f461(0x2cc)](_0x5ac025){const _0x5078b7=_0x42f461;_0x5ac025[_0x5078b7(0xf6)]===b['JOIN']?this[_0x5078b7(0x2a5)](_0x5ac025):_0x5ac025['cmd']===b[_0x5078b7(0x461)]&&this[_0x5078b7(0x263)](_0x5ac025);}[_0x42f461(0x1d4)](_0x45c324){const _0x2a0d68=_0x42f461;this[_0x2a0d68(0xc8)][_0x2a0d68(0x3b2)](0x1),_0x45c324[_0x2a0d68(0x36d)]({'cmd':b[_0x2a0d68(0x232)],'routeKey':this[_0x2a0d68(0x315)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2a0d68(0x315)]}]}});}[_0x42f461(0x2a5)](_0x3f337c){const _0x569304=_0x42f461;var _0x6cccee;if(_0x3f337c[_0x569304(0x199)]===He['FAIL']){this[_0x569304(0x45c)][_0x569304(0x20a)]({'type':Z[_0x569304(0x2ad)][_0x569304(0x341)],'content':this['_localeService']['t'](_0x569304(0xf8))}),this['_sessionStatus$'][_0x569304(0x3b2)](0x2);return;}this[_0x569304(0xc8)][_0x569304(0x3b2)](0x3);const _0x250d03=(_0x6cccee=_0x3f337c['data'][_0x569304(0x2b3)][this['_unitID']])==null?void 0x0:_0x6cccee[_0x569304(0x452)];_0x250d03&&_0x250d03['forEach'](_0x4705dc=>this[_0x569304(0x2d2)][_0x569304(0x225)](this[_0x569304(0x315)],_0x4705dc));}[_0x42f461(0x263)](_0x44c317){const _0x5b151b=_0x42f461;try{const _0x1d90ac=_0x44c317[_0x5b151b(0x407)];switch(_0x1d90ac[_0x5b151b(0x35a)]){case _[_0x5b151b(0x301)]['USERS_ENTER']:this['_onUserJoin'](_0x1d90ac),this[_0x5b151b(0xd3)]['next'](_0x1d90ac);break;case _['CollaborationEvent'][_0x5b151b(0x427)]:this['_onUserLeave'](_0x1d90ac),this[_0x5b151b(0xd3)][_0x5b151b(0x3b2)](_0x1d90ac);break;case _[_0x5b151b(0x301)][_0x5b151b(0x1d7)]:this['_clearCollaborationTimeoutTimer'](),this[_0x5b151b(0xd3)][_0x5b151b(0x3b2)](_0x1d90ac);break;case _['CollaborationEvent'][_0x5b151b(0x3fb)]:this[_0x5b151b(0x313)][_0x5b151b(0x34d)](_0x5b151b(0x259)+JSON[_0x5b151b(0x472)](_0x1d90ac)),this[_0x5b151b(0xd3)][_0x5b151b(0x3b2)](_0x1d90ac);break;case _['CollaborationEvent'][_0x5b151b(0x224)]:this[_0x5b151b(0x41a)]['onCommentUpdate'](_0x1d90ac[_0x5b151b(0x407)]),this[_0x5b151b(0xd3)]['next'](_0x1d90ac);break;default:this[_0x5b151b(0xd3)][_0x5b151b(0x3b2)](_0x1d90ac);}}catch(_0x430516){this['_logService']['error'](_0x430516,_0x44c317);}}[_0x42f461(0x2ef)](_0x1f0af0){const _0x84e21e=_0x42f461;this[_0x84e21e(0x2d2)][_0x84e21e(0x225)](this[_0x84e21e(0x315)],_0x1f0af0[_0x84e21e(0x407)]);}[_0x42f461(0x217)](_0x5d5091){const _0x43f26b=_0x42f461;this['_memberService'][_0x43f26b(0xf9)](this[_0x43f26b(0x315)],_0x5d5091[_0x43f26b(0x407)][_0x43f26b(0x27e)]);}async['send'](_0x48f2cb,_0x2a8e58){const _0x48b59f=_0x42f461;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x48b59f(0x221));try{_0x48f2cb['eventID']===_[_0x48b59f(0x301)][_0x48b59f(0x2f3)]&&this[_0x48b59f(0x2a6)](),this[_0x48b59f(0x2a9)][_0x48b59f(0x36d)]({'cmd':b[_0x48b59f(0x448)],'routeKey':_0x2a8e58,'routeType':'','data':_0x48f2cb});}catch(_0x272f9e){this[_0x48b59f(0x313)][_0x48b59f(0x34d)](_0x272f9e);}}[_0x42f461(0x2a6)](){const _0x3df1a9=_0x42f461;var _0x2cd180;this[_0x3df1a9(0xf1)]=window[_0x3df1a9(0x362)](()=>{const _0x36a680=_0x3df1a9;this[_0x36a680(0xf1)]=null,this[_0x36a680(0x45c)]['show']({'type':Z[_0x36a680(0x2ad)][_0x36a680(0x467)],'content':this[_0x36a680(0x15c)]['t'](_0x36a680(0x443))});},(_0x2cd180=this[_0x3df1a9(0x408)]['getConfig']($e))!=null?_0x2cd180:_t);}[_0x42f461(0x1ed)](){const _0x44633b=_0x42f461;this[_0x44633b(0xf1)]&&(clearTimeout(this[_0x44633b(0xf1)]),this[_0x44633b(0xf1)]=null);}},exports['CollaborationSession']=mt([U(0x2,o['ILogService']),U(0x3,M[_0x42f461(0x2ab)]),U(0x4,M[_0x42f461(0x3f8)]),U(0x5,o[_0x42f461(0x398)]),U(0x6,o['Inject'](o[_0x42f461(0x465)])),U(0x7,o['Inject'](W)),U(0x8,o[_0x42f461(0x1f3)](ke))],exports[_0x42f461(0x323)]),exports[_0x42f461(0x1bd)]=class extends o['Disposable']{constructor(_0x57053c,_0x44e755,_0x5d53ab,_0xc83b4c,_0x2d9a0f,_0x2f9829){const _0x5604b2=_0x42f461;super(),u(this,_0x5604b2(0x26f),new v[(_0x5604b2(0x151))](void 0x0)),u(this,_0x5604b2(0x32d),new Map()),u(this,_0x5604b2(0x41f),new v[(_0x5604b2(0x151))](0x0)),u(this,_0x5604b2(0x279),this[_0x5604b2(0x41f)]['asObservable']()),u(this,_0x5604b2(0x3ca),!0x1),u(this,_0x5604b2(0x2d6)),u(this,_0x5604b2(0x233)),u(this,_0x5604b2(0x292)),u(this,'_retryCount',0x0),(this['_injector']=_0x57053c,this['_localeService']=_0x44e755,this['_messageService']=_0x5d53ab,this[_0x5604b2(0x313)]=_0xc83b4c,this['_configService']=_0x2d9a0f,this[_0x5604b2(0x127)]=_0x2f9829);}get['_socket'](){const _0xac468f=_0x42f461;return this['_socket$'][_0xac468f(0x1da)]();}[_0x42f461(0x442)](){const _0xeec02e=_0x42f461;super[_0xeec02e(0x442)](),this[_0xeec02e(0x32d)][_0xeec02e(0x375)](_0xb3b3be=>_0xb3b3be[_0xeec02e(0x442)]()),this[_0xeec02e(0x32d)][_0xeec02e(0x21c)](),this[_0xeec02e(0x41f)][_0xeec02e(0x14d)]();}async[_0x42f461(0xf7)](_0x26ea12){const _0x5c6097=_0x42f461;if(this[_0x5c6097(0x32d)]['has'](_0x26ea12))return this[_0x5c6097(0x32d)][_0x5c6097(0xc0)](_0x26ea12);this[_0x5c6097(0x22c)]();const _0x45a2e5=this['_injector'][_0x5c6097(0x1ec)](exports['CollaborationSession'],_0x26ea12,this[_0x5c6097(0x26f)]['asObservable']());return this[_0x5c6097(0x32d)][_0x5c6097(0x1c4)](_0x26ea12,_0x45a2e5),_0x45a2e5;}[_0x42f461(0x470)](_0x5c5afa){const _0x1e251b=_0x42f461;var _0x3dcf2c;const _0x4cafde=this[_0x1e251b(0x32d)][_0x1e251b(0xc0)](_0x5c5afa);_0x4cafde&&(this[_0x1e251b(0x32d)][_0x1e251b(0x213)](_0x5c5afa),_0x4cafde['close']()),this[_0x1e251b(0x32d)][_0x1e251b(0x19c)]||(_0x3dcf2c=this[_0x1e251b(0x2a9)])==null||_0x3dcf2c['close']();}[_0x42f461(0xed)](){const _0x14def6=_0x42f461;var _0x31e0fb;const _0x4e9cd0=(_0x31e0fb=this[_0x14def6(0x408)][_0x14def6(0x1b4)](lt))!=null?_0x31e0fb:Bt;return this['_socketService'][_0x14def6(0x14f)](_0x4e9cd0);}['_tryEnsureSocket'](){const _0x497eb8=_0x42f461;try{const _0x589513=this[_0x497eb8(0xed)]();if(_0x589513){const _0x1d45c1=_0x589513[_0x497eb8(0x36d)];_0x589513[_0x497eb8(0x36d)]=_0x188153=>(this['_rescheduleHeartbeatEvent'](),_0x1d45c1[_0x497eb8(0x32b)](_0x589513,[_0x188153])),_0x589513[_0x497eb8(0x2dd)][_0x497eb8(0x17e)](_0x433ab2=>this[_0x497eb8(0x439)](_0x589513,_0x433ab2)),_0x589513[_0x497eb8(0x374)][_0x497eb8(0x285)](C[_0x497eb8(0x417)](0x1))[_0x497eb8(0x17e)](_0x2071c7=>this[_0x497eb8(0x313)][_0x497eb8(0x34d)]('[CollaborationSessionService]:\x20socket\x20error',_0x2071c7)),_0x589513[_0x497eb8(0x401)][_0x497eb8(0x285)](C['take'](0x1))['subscribe'](()=>{const _0x3c4d50=_0x497eb8;this[_0x3c4d50(0x40c)](_0x589513);}),_0x589513['close$'][_0x497eb8(0x285)](C[_0x497eb8(0x417)](0x1))[_0x497eb8(0x17e)](_0x430be7=>{const _0x46dced=_0x497eb8;this['_logService']['debug'](_0x46dced(0x458),_0x46dced(0x2a3),_0x430be7),this[_0x46dced(0x1a8)]();});}}catch(_0x54b85c){this['_logService'][_0x497eb8(0x34d)](_0x54b85c),this[_0x497eb8(0x1a8)]();}}[_0x42f461(0x40c)](_0x571400){const _0x568820=_0x42f461;this['_logService']['debug']('[CollaborationSessionService]','socket\x20open.'),_0x571400[_0x568820(0x36d)]({'cmd':b[_0x568820(0x14c)]}),this[_0x568820(0x202)]();}[_0x42f461(0x1a8)](){const _0x30b6ff=_0x42f461;var _0x4eb870;this[_0x30b6ff(0x41f)][_0x30b6ff(0x3b2)](0x2),this[_0x30b6ff(0x26f)][_0x30b6ff(0x3b2)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this[_0x30b6ff(0x3ca)]=!0x1,this[_0x30b6ff(0x14b)]<((_0x4eb870=this[_0x30b6ff(0x408)][_0x30b6ff(0x1b4)](Gt))!=null?_0x4eb870:Yt)?(this[_0x30b6ff(0x471)](this[_0x30b6ff(0x14b)]),this[_0x30b6ff(0x14b)]+=0x1):this['_messageService']['show']({'type':Z[_0x30b6ff(0x2ad)][_0x30b6ff(0x467)],'content':this[_0x30b6ff(0x15c)]['t']('session.connection-failed')});}[_0x42f461(0x471)](_0x4c90bc){const _0x589abd=_0x42f461;var _0x19fc72;const _0x1a23b1=((_0x19fc72=this[_0x589abd(0x408)]['getConfig'](Vt))!=null?_0x19fc72:Wt)*0x2**_0x4c90bc;this[_0x589abd(0x45c)][_0x589abd(0x20a)]({'type':Z['MessageType'][_0x589abd(0x341)],'content':this[_0x589abd(0x15c)]['t'](_0x589abd(0x2ed))}),this[_0x589abd(0x292)]=setTimeout(()=>{const _0x18ccad=_0x589abd;this['_tryEnsureSocket'](),clearTimeout(this[_0x18ccad(0x292)]),this['_retryConnectingTimer']=null;},_0x1a23b1);}[_0x42f461(0x202)](){const _0x48ebb0=_0x42f461;var _0x598a9e;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x48ebb0(0x2a4)](),(_0x598a9e=this[_0x48ebb0(0x408)][_0x48ebb0(0x1b4)](ht))!=null?_0x598a9e:Ft);}[_0x42f461(0x2a4)](){const _0x59ff71=_0x42f461;this[_0x59ff71(0x2a9)][_0x59ff71(0x36d)]({'cmd':b[_0x59ff71(0x22e)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x280e32=_0x42f461;var _0x3317b9;this[_0x280e32(0x233)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x3317b9=this[_0x280e32(0x408)]['getConfig']($e))!=null?_0x3317b9:_t);}['_onMessage'](_0x42e8ba,_0x34fc94){const _0x504b36=_0x42f461,{cmd:_0x30a5e7}=_0x34fc94;_0x30a5e7===b[_0x504b36(0x14c)]&&!this[_0x504b36(0x3ca)]&&(_0x42e8ba[_0x504b36(0x27e)]=_0x34fc94[_0x504b36(0x407)][_0x504b36(0x27e)],this['_socket$']['next'](_0x42e8ba),this[_0x504b36(0x41f)][_0x504b36(0x3b2)](0x3),this[_0x504b36(0x3ca)]=!0x0),_0x30a5e7===b[_0x504b36(0x22e)]&&this[_0x504b36(0x137)](),this[_0x504b36(0x202)]();}[_0x42f461(0x310)](){const _0x56cbed=_0x42f461;this[_0x56cbed(0x2d6)]!=null&&(clearTimeout(this[_0x56cbed(0x2d6)]),this[_0x56cbed(0x2d6)]=null);}[_0x42f461(0x137)](){const _0x1bd96f=_0x42f461;this[_0x1bd96f(0x233)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x1bd96f(0x233)]=null);}},exports[_0x42f461(0x1bd)]=mt([U(0x0,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),U(0x1,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)])),U(0x2,M[_0x42f461(0x3f8)]),U(0x3,o[_0x42f461(0x218)]),U(0x4,o['IConfigService']),U(0x5,xe)],exports[_0x42f461(0x1bd)]);var os=Object[_0x42f461(0x3c5)],as=Object[_0x42f461(0x1b1)],cs=(_0x9ede0,_0x25a2f7,_0x4856d4,_0xbdc3ad)=>{const _0x8dcc53=_0x42f461;for(var _0x139dcb=_0xbdc3ad>0x1?void 0x0:_0xbdc3ad?as(_0x25a2f7,_0x4856d4):_0x25a2f7,_0x30ce67=_0x9ede0[_0x8dcc53(0x441)]-0x1,_0x3e5dfb;_0x30ce67>=0x0;_0x30ce67--)(_0x3e5dfb=_0x9ede0[_0x30ce67])&&(_0x139dcb=(_0xbdc3ad?_0x3e5dfb(_0x25a2f7,_0x4856d4,_0x139dcb):_0x3e5dfb(_0x139dcb))||_0x139dcb);return _0xbdc3ad&&_0x139dcb&&os(_0x25a2f7,_0x4856d4,_0x139dcb),_0x139dcb;},se=(_0x1b0dd7,_0x1c2fcb)=>(_0x18a4ea,_0x40bc58)=>_0x1c2fcb(_0x18a4ea,_0x40bc58,_0x1b0dd7);exports[_0x42f461(0x3a0)]=class extends o['Disposable']{constructor(_0x324884,_0x161200,_0x56d37e,_0x216f58,_0x1127bf){const _0x4f5f14=_0x42f461;super(),u(this,'_cachedData',new Map()),u(this,_0x4f5f14(0x2d5),new Map()),u(this,_0x4f5f14(0x39c),!0x1),(this[_0x4f5f14(0x408)]=_0x324884,this[_0x4f5f14(0x3a1)]=_0x161200,this[_0x4f5f14(0x1cf)]=_0x56d37e,this['_localeService']=_0x216f58,this[_0x4f5f14(0x45b)]=_0x1127bf,this[_0x4f5f14(0x39d)]());}[_0x42f461(0x1b3)](){const _0x23e764=_0x42f461;this[_0x23e764(0x39c)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x42f461(0x442)](){const _0x161416=_0x42f461;this['exhaustSavingTask']()['then'](()=>super[_0x161416(0x442)]());}async[_0x42f461(0x42d)](_0x3a3cb5){const _0x323145=_0x42f461;return this[_0x323145(0x39c)]?null:this[_0x323145(0x3a1)][_0x323145(0xf0)](Ke(_0x3a3cb5));}async[_0x42f461(0x12b)](_0x21c382,_0x1324d0){const _0x34b77e=_0x42f461;return!!this['_localStorageService'][_0x34b77e(0xd5)](_0x21c382,_0x1324d0);}[_0x42f461(0x32e)](_0x34c38f,_0x361772,_0x2ad5b5,_0x398436){const _0x4c6d35=_0x42f461,_0x46d27a=this['_revisionService'][_0x4c6d35(0x3b0)](_0x34c38f);this[_0x4c6d35(0x161)][_0x4c6d35(0x1c4)](_0x34c38f,{'unitID':_0x34c38f,'type':_0x361772,'awaitingChangeset':_0x2ad5b5,'mutations':_0x398436,'rev':_0x46d27a}),this[_0x4c6d35(0x2d5)][_0x4c6d35(0x208)](_0x34c38f)||this[_0x4c6d35(0x1f8)](_0x34c38f);}[_0x42f461(0x1f8)](_0x28b9d6){const _0x59c6a8=_0x42f461,_0x315c02=this[_0x59c6a8(0x107)]();_0x315c02===0x0?this['_saveCache'](_0x28b9d6):this[_0x59c6a8(0x2d5)][_0x59c6a8(0x1c4)](_0x28b9d6,setTimeout(()=>this[_0x59c6a8(0x28b)](_0x28b9d6),_0x315c02));}[_0x42f461(0x107)](){const _0x27d160=_0x42f461;var _0x281853;return(_0x281853=this[_0x27d160(0x408)][_0x27d160(0x1b4)](ut))!=null?_0x281853:Kt;}[_0x42f461(0x28b)](_0x36b92a){const _0x2993b9=_0x42f461,_0x21a5c1=this[_0x2993b9(0x2d5)]['get'](_0x36b92a);return _0x21a5c1!==void 0x0&&window[_0x2993b9(0x1e7)](_0x21a5c1),this[_0x2993b9(0x3a1)]['setItem'](Ke(_0x36b92a),this[_0x2993b9(0x161)][_0x2993b9(0xc0)](_0x36b92a))['then'](()=>this[_0x2993b9(0x2d5)][_0x2993b9(0x213)](_0x36b92a));}async[_0x42f461(0x400)](){const _0x4340f9=_0x42f461,_0x323621=[];this['_saveTaskMap'][_0x4340f9(0x375)]((_0x57396f,_0x38a63e)=>{const _0x3a5a8b=_0x4340f9;window[_0x3a5a8b(0x1e7)](_0x57396f),_0x323621[_0x3a5a8b(0x302)](this[_0x3a5a8b(0x28b)](_0x38a63e)[_0x3a5a8b(0x44b)](()=>{const _0x1fb429=_0x3a5a8b;this[_0x1fb429(0x2d5)][_0x1fb429(0x213)](_0x38a63e);}));}),await Promise[_0x4340f9(0x2cd)](_0x323621);}[_0x42f461(0x39d)](){const _0x12caa3=_0x42f461;this[_0x12caa3(0x2e2)](this[_0x12caa3(0x1cf)]['registerBeforeClose'](()=>{const _0x5b65f0=_0x12caa3;if(this[_0x5b65f0(0x2d5)][_0x5b65f0(0x19c)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports['LocalCacheService']=cs([se(0x0,o['IConfigService']),se(0x1,o[_0x42f461(0x1a1)]),se(0x2,M['IBeforeCloseService']),se(0x3,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)])),se(0x4,o[_0x42f461(0x1f3)](_['RevisionService']))],exports[_0x42f461(0x3a0)]);function Ke(_0xf19074){const _0x2b98c5=_0x42f461;return _0x2b98c5(0x124)+_0xf19074;}const Ee=o[_0x42f461(0x367)](_0x42f461(0x40b));var It=(_0x50d09a=>(_0x50d09a[_0x50d09a['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x42f461(0x2a8),_0x50d09a[_0x50d09a[_0x42f461(0x322)]=0x1]=_0x42f461(0x322),_0x50d09a))(It||{});function _0x527e(_0x44394d,_0x20f8c2){const _0x360067=_0x3600();return _0x527e=function(_0x527e3f,_0x13a94f){_0x527e3f=_0x527e3f-0xb6;let _0x85141a=_0x360067[_0x527e3f];return _0x85141a;},_0x527e(_0x44394d,_0x20f8c2);}const Xe=0x7530,qe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends o['Disposable']{constructor(){const _0x31572c=_0x42f461;super(),u(this,_0x31572c(0x105),o[_0x31572c(0x11c)][_0x31572c(0x238)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0x31572c(0xeb),new Map()),u(this,'_heartbeatTimer',null),u(this,'_clearOtherTimers',new Map()),u(this,_0x31572c(0x2f0),new Map()),this[_0x31572c(0x2b4)]();}[_0x42f461(0x442)](){const _0xfeadd2=_0x42f461;super[_0xfeadd2(0x442)](),this[_0xfeadd2(0x1ea)][_0xfeadd2(0x375)]((_0x110a3b,_0x4e51bb)=>this[_0xfeadd2(0x295)](_0x4e51bb)),this['_heartbeatTimer']&&window[_0xfeadd2(0xe9)](this[_0xfeadd2(0x331)]);}[_0x42f461(0x365)](_0x59bbd0){const _0x43163f=_0x42f461;return this[_0x43163f(0x3d9)](_0x59bbd0)[_0x43163f(0x285)](v[_0x43163f(0x2b0)]());}[_0x42f461(0x136)](_0x3566fa){const _0x415a95=_0x42f461;this[_0x415a95(0x38a)]['size']===0x0&&this[_0x415a95(0x125)](),this[_0x415a95(0x38a)][_0x415a95(0x1eb)](_0x3566fa),this[_0x415a95(0x264)]({'type':0x0,'memberID':this[_0x415a95(0x105)],'unitIDs':[_0x3566fa],'isForwarded':!0x1});}[_0x42f461(0xb6)](_0x415246){const _0x2b8315=_0x42f461;this[_0x2b8315(0x38a)][_0x2b8315(0x213)](_0x415246),this[_0x2b8315(0x38a)][_0x2b8315(0x19c)]===0x0&&this[_0x2b8315(0x331)]&&window[_0x2b8315(0xe9)](this['_heartbeatTimer']);}[_0x42f461(0x2b4)](){const _0x4b2335=_0x42f461;this[_0x4b2335(0x2e2)](o['toDisposable'](v[_0x4b2335(0x3dc)](window,_0x4b2335(0xe8))['subscribe'](_0x58f739=>{const _0xf9d0c6=_0x4b2335;if(_0x58f739[_0xf9d0c6(0x3be)]!==qe||!_0x58f739[_0xf9d0c6(0xe0)])return;const _0x4bc777=JSON[_0xf9d0c6(0x23c)](_0x58f739[_0xf9d0c6(0xe0)]);this[_0xf9d0c6(0x380)](_0x4bc777);}))),window[_0x4b2335(0x361)](_0x4b2335(0x104),()=>this['_send']({'type':0x1,'memberID':this[_0x4b2335(0x105)],'unitIDs':Array[_0x4b2335(0x10a)](this[_0x4b2335(0x38a)])}));}[_0x42f461(0x380)](_0x48b324){const _0xa3f8fa=_0x42f461;switch(_0x48b324[_0xa3f8fa(0x3b1)]){case 0x0:this['_handleJoinEvent'](_0x48b324);break;case 0x1:this[_0xa3f8fa(0x201)](_0x48b324);break;case 0x2:this[_0xa3f8fa(0x103)](_0x48b324);break;}}[_0x42f461(0x1ad)](_0x75be4f){const _0x14c3a1=_0x42f461,{unitIDs:_0x355dcb,memberID:_0x547529,isForwarded:_0x181cfb}=_0x75be4f;_0x355dcb[_0x14c3a1(0x375)](_0x152ea0=>{const _0x86a71d=_0x14c3a1;if(!_0x181cfb&&this[_0x86a71d(0xeb)][_0x86a71d(0x208)](_0x152ea0)&&this[_0x86a71d(0x3d9)](_0x152ea0)[_0x86a71d(0x3b2)](0x1),!this['_unitOnClients'][_0x86a71d(0x208)](_0x152ea0)||!this[_0x86a71d(0xeb)][_0x86a71d(0xc0)](_0x152ea0)['has'](_0x547529)){const _0x34c027=this[_0x86a71d(0xeb)][_0x86a71d(0xc0)](_0x152ea0)||new Set();_0x34c027[_0x86a71d(0x1eb)](_0x547529),this['_unitOnClients'][_0x86a71d(0x1c4)](_0x152ea0,_0x34c027),this[_0x86a71d(0x3c8)](_0x547529);}}),_0x181cfb||this['_send']({'type':0x0,'memberID':this[_0x14c3a1(0x105)],'unitIDs':[...this[_0x14c3a1(0x38a)]],'isForwarded':!0x0});}[_0x42f461(0x3c8)](_0x201520){const _0x4fbe1f=_0x42f461;this['_removeClearOtherTimer'](_0x201520);const _0x2dd4f0=window['setTimeout'](()=>{const _0x308f88=_0x527e;this['_unitOnClients'][_0x308f88(0x375)](_0x5acfdb=>{const _0x1338ef=_0x308f88;_0x5acfdb[_0x1338ef(0x213)](_0x201520);});},Xe*0x2);this[_0x4fbe1f(0x1ea)][_0x4fbe1f(0x1c4)](_0x201520,_0x2dd4f0);}[_0x42f461(0x295)](_0x48dd40){const _0x45a6c8=_0x42f461;if(this[_0x45a6c8(0x1ea)][_0x45a6c8(0x208)](_0x48dd40)){const _0x5631b4=this[_0x45a6c8(0x1ea)]['get'](_0x48dd40);_0x5631b4&&window['clearTimeout'](_0x5631b4),this['_clearOtherTimers']['set'](_0x48dd40,null);}}[_0x42f461(0x201)](_0x57a1f7){const _0x3db76b=_0x42f461,{memberID:_0x58c895,unitIDs:_0x1da4e0}=_0x57a1f7;_0x1da4e0[_0x3db76b(0x375)](_0xe06e50=>{const _0x5d111d=_0x3db76b;var _0x4d50f6;const _0x3e11b5=this[_0x5d111d(0xeb)][_0x5d111d(0xc0)](_0xe06e50);_0x3e11b5&&(_0x3e11b5['delete'](_0x58c895),(_0x4d50f6=this[_0x5d111d(0x3d9)](_0xe06e50))==null||_0x4d50f6[_0x5d111d(0x3b2)](_0x3e11b5['size']===0x0?0x0:0x1));}),this[_0x3db76b(0x295)](_0x58c895);}[_0x42f461(0x103)](_0x4c3cb6){const _0x51f2cb=_0x42f461;this['_scheduleClearOtherTimer'](_0x4c3cb6[_0x51f2cb(0x27e)]);}[_0x42f461(0x264)](_0x5ce64a){const _0x1c24e2=_0x42f461;localStorage[_0x1c24e2(0xd5)](qe,JSON['stringify'](_0x5ce64a));}[_0x42f461(0x125)](){const _0x128e39=_0x42f461;this[_0x128e39(0x331)]=window[_0x128e39(0x1c8)](()=>{const _0x2534c2=_0x128e39;this[_0x2534c2(0x264)]({'type':0x2,'memberID':this[_0x2534c2(0x105)]});},Xe);}[_0x42f461(0x3d9)](_0x4e50e9){const _0x5e42cd=_0x42f461;return this[_0x5e42cd(0x2f0)][_0x5e42cd(0x208)](_0x4e50e9)||this['_unitStatus'][_0x5e42cd(0x1c4)](_0x4e50e9,new v['BehaviorSubject'](0x0)),this[_0x5e42cd(0x2f0)]['get'](_0x4e50e9);}}var hs=Object[_0x42f461(0x3c5)],_s=Object[_0x42f461(0x1b1)],us=(_0x2da98f,_0x31672f,_0x39ca5b,_0x3b4c3e)=>{const _0x4d5e59=_0x42f461;for(var _0x3af4ef=_0x3b4c3e>0x1?void 0x0:_0x3b4c3e?_s(_0x31672f,_0x39ca5b):_0x31672f,_0x22dc3a=_0x2da98f[_0x4d5e59(0x441)]-0x1,_0x2dc28f;_0x22dc3a>=0x0;_0x22dc3a--)(_0x2dc28f=_0x2da98f[_0x22dc3a])&&(_0x3af4ef=(_0x3b4c3e?_0x2dc28f(_0x31672f,_0x39ca5b,_0x3af4ef):_0x2dc28f(_0x3af4ef))||_0x3af4ef);return _0x3b4c3e&&_0x3af4ef&&hs(_0x31672f,_0x39ca5b,_0x3af4ef),_0x3af4ef;},Je=(_0x5debd9,_0xfc09bd)=>(_0x23730a,_0x582b5b)=>_0xfc09bd(_0x23730a,_0x582b5b,_0x5debd9);let ge=class{constructor(_0x340741,_0x40f100){const _0x8894bf=_0x42f461;this[_0x8894bf(0x16e)]=_0x340741,this[_0x8894bf(0x269)]=_0x40f100;}[_0x42f461(0x1c1)](_0x381178){const _0x3c875d=_0x42f461;this[_0x3c875d(0x13c)](_0x381178),this[_0x3c875d(0x47d)](_0x381178);}[_0x42f461(0x17d)](_0xbadd8){const _0x4adf98=_0x42f461,_0x79554e=this[_0x4adf98(0x16e)][_0x4adf98(0xc0)](L[_0x4adf98(0x165)]),{redoCache:_0x1a34be}=_0x79554e['getUndoRedoMutationParamsCache']();if(_0x1a34be[_0x4adf98(0x441)]===0x0)return _0xbadd8;let _0x226cff=o[_0x4adf98(0x11c)][_0x4adf98(0x368)](_0xbadd8[_0x4adf98(0x132)][0x0]);for(let _0x42c168=0x0;_0x42c168<_0x1a34be[_0x4adf98(0x441)];_0x42c168++){const _0x55d2e4={'id':_0x4adf98(0x30a),'params':{..._0x1a34be[_0x42c168]}},_0x59da53=this['_transformService'][_0x4adf98(0x129)](_0x226cff,_0x55d2e4,!0x1);if(_['isTransformMutationFailure'](_0x59da53))throw _0x59da53[_0x4adf98(0x34d)];_0x226cff=_0x59da53[_0x4adf98(0x39e)];}return{...o['Tools'][_0x4adf98(0x368)](_0xbadd8),'mutations':[_0x226cff]};}[_0x42f461(0x13c)](_0x166ae2){const _0x11aed2=_0x42f461,_0x54f1a1=this[_0x11aed2(0x16e)]['get'](L[_0x11aed2(0x165)]),{undoCache:_0x433a8f,redoCache:_0x20ac2c}=_0x54f1a1['getUndoRedoMutationParamsCache']();if(_0x433a8f['length']===0x0||_0x20ac2c[_0x11aed2(0x441)]===0x0)return;const _0x347197=[],_0x3b78e1=[];let _0x58a6b3=o[_0x11aed2(0x11c)][_0x11aed2(0x368)](_0x166ae2['mutations'][0x0]),_0x14dee4=o[_0x11aed2(0x11c)][_0x11aed2(0x368)](_0x166ae2[_0x11aed2(0x132)][0x0]);for(let _0x45c07d=_0x433a8f[_0x11aed2(0x441)]-0x1;_0x45c07d>=0x0;_0x45c07d--){const _0x5dcf70={'id':_0x11aed2(0x30a),'params':{..._0x433a8f[_0x45c07d]}},_0x33d9b9={'id':'doc.mutation.rich-text-editing','params':{..._0x20ac2c[_0x45c07d]}},_0x357d1c=this['_transformService'][_0x11aed2(0x129)](_0x58a6b3,_0x5dcf70,!0x1),_0x1cb300=this[_0x11aed2(0x269)][_0x11aed2(0x129)](_0x14dee4,_0x33d9b9,!0x1);if(_[_0x11aed2(0x164)](_0x357d1c))throw _0x357d1c['error'];if(_[_0x11aed2(0x164)](_0x1cb300))throw _0x1cb300[_0x11aed2(0x34d)];_0x347197[_0x11aed2(0x1f1)](_0x357d1c[_0x11aed2(0x166)][_0x11aed2(0x2ec)]),_0x3b78e1[_0x11aed2(0x1f1)](_0x1cb300[_0x11aed2(0x166)][_0x11aed2(0x2ec)]),_0x58a6b3=_0x357d1c[_0x11aed2(0x39e)],_0x14dee4=_0x1cb300['m1Prime'];}_0x54f1a1['setUndoRedoMutationParamsCache']({'undoCache':_0x347197,'redoCache':_0x3b78e1});}[_0x42f461(0x47d)](_0x34607c){const _0x18b3a2=_0x42f461,_0x247e00=this[_0x18b3a2(0x16e)][_0x18b3a2(0xc0)](L[_0x18b3a2(0x165)]),_0x3cd6cf=_0x247e00[_0x18b3a2(0x120)]();if(_0x3cd6cf==null)return;const _0x25fd31=[{'id':_0x18b3a2(0x30a),'params':{'unitId':_0x34607c[_0x18b3a2(0x33c)],'actions':null,'textRanges':[_0x3cd6cf]}}],_0x11e563=this[_0x18b3a2(0x269)]['transformMutationsWithChangeset'](_0x34607c,_0x25fd31);if(!_[_0x18b3a2(0xc9)](_0x11e563))throw _0x11e563[_0x18b3a2(0x34d)];const _0x4bf65b=_0x11e563[_0x18b3a2(0x166)][0x0][_0x18b3a2(0x2ec)]['textRanges'];Array['isArray'](_0x4bf65b)&&_0x4bf65b[_0x18b3a2(0x441)]&&_0x247e00[_0x18b3a2(0x260)](_0x4bf65b[0x0]);}};ge=us([Je(0x0,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),Je(0x1,_[_0x42f461(0x37b)])],ge);var ds=Object[_0x42f461(0x3c5)],Ss=Object[_0x42f461(0x1b1)],vs=(_0x467fe4,_0x4ab29e,_0x3a447f,_0x58d757)=>{for(var _0x531d14=_0x58d757>0x1?void 0x0:_0x58d757?Ss(_0x4ab29e,_0x3a447f):_0x4ab29e,_0x123a4a=_0x467fe4['length']-0x1,_0x2b8f3e;_0x123a4a>=0x0;_0x123a4a--)(_0x2b8f3e=_0x467fe4[_0x123a4a])&&(_0x531d14=(_0x58d757?_0x2b8f3e(_0x4ab29e,_0x3a447f,_0x531d14):_0x2b8f3e(_0x531d14))||_0x531d14);return _0x58d757&&_0x531d14&&ds(_0x4ab29e,_0x3a447f,_0x531d14),_0x531d14;},ze=(_0x3102fa,_0x23adbc)=>(_0x2854aa,_0x591895)=>_0x23adbc(_0x2854aa,_0x591895,_0x3102fa);let fe=class{constructor(_0x57743a,_0x433829){const _0x27346e=_0x42f461;this[_0x27346e(0x16e)]=_0x57743a,this[_0x27346e(0x269)]=_0x433829;}['transformSelections'](_0x55ade3){const _0x16042e=_0x42f461;var _0x41013f;const _0x3baa15=this[_0x16042e(0x16e)][_0x16042e(0xc0)](L['TextSelectionManagerService']),_0x16f157=(_0x41013f=_0x3baa15[_0x16042e(0x2c9)]())!=null?_0x41013f:[],_0xd3d6ea=_0x16f157==null?void 0x0:_0x16f157['map'](L[_0x16042e(0x14e)]);if(_0xd3d6ea[_0x16042e(0x441)]===0x0)return;const _0x1d5166=[{'id':_0x16042e(0x30a),'params':{'unitId':_0x55ade3[_0x16042e(0x33c)],'actions':null,'textRanges':_0xd3d6ea}}],_0x82841f=this['_transformService'][_0x16042e(0x431)](_0x55ade3,_0x1d5166);if(!_[_0x16042e(0xc9)](_0x82841f))throw _0x82841f['error'];const _0x107e75=_0x82841f[_0x16042e(0x166)][0x0][_0x16042e(0x2ec)]['textRanges'];Array[_0x16042e(0xb7)](_0x107e75)&&_0x107e75[_0x16042e(0x441)]&&_0x3baa15['replaceTextRanges'](_0x107e75,!0x1);}};fe=vs([ze(0x0,o['Inject'](o[_0x42f461(0x13e)])),ze(0x1,_[_0x42f461(0x37b)])],fe);function pt(_0x5db27b){const _0xa3b777=_0x42f461;let _0xf07f4d='';for(const _0x53e9c6 of _0x5db27b){const {startOffset:_0x1de625,endOffset:_0x32f158,isActive:_0x40aaf5}=_0x53e9c6;_0xf07f4d[_0xa3b777(0x441)]&&(_0xf07f4d+=','),_0xf07f4d+=_0x1de625+':'+_0x32f158+':'+(_0x40aaf5?'1':'0');}return _0xf07f4d;}function gs(_0x174587){const _0x505fa4=_0x42f461,_0x3efe9f=_0x174587[_0x505fa4(0x3a5)](','),_0x1098a4=[];for(const _0x202049 of _0x3efe9f){const [_0x42a780,_0x5748fe,_0x3b338e]=_0x202049[_0x505fa4(0x3a5)](':');_0x1098a4[_0x505fa4(0x302)]({'startOffset':Number(_0x42a780),'endOffset':Number(_0x5748fe),'collapsed':_0x42a780===_0x5748fe,'isActive':_0x3b338e==='1'});}return _0x1098a4['some'](_0x16a73d=>_0x16a73d[_0x505fa4(0x2d0)])||(_0x1098a4[0x0][_0x505fa4(0x2d0)]=!0x0),_0x1098a4;}class Be extends o[_0x42f461(0x451)]{constructor(){const _0x41a0bb=_0x42f461;super(...arguments),u(this,_0x41a0bb(0x403),new v[(_0x41a0bb(0x151))](null)),u(this,_0x41a0bb(0x3c0),this[_0x41a0bb(0x403)][_0x41a0bb(0xbc)]());}[_0x42f461(0x2b1)](_0xd8fa10){const _0x354e89=_0x42f461,{unitID:_0x5490a7,memberID:_0x4f49ab,textRanges:_0x1bb371}=_0xd8fa10,_0x3c5cc7=pt(_0x1bb371),_0x27f314={'unitID':_0x5490a7,'memberID':_0x4f49ab,'selection':_0x3c5cc7};this[_0x354e89(0x403)][_0x354e89(0x3b2)](_0x27f314);}}var fs=Object[_0x42f461(0x3c5)],ms=Object[_0x42f461(0x1b1)],Is=(_0x1c3454,_0x35e481,_0xb86a11,_0x3ef481)=>{const _0x2f0d1d=_0x42f461;for(var _0x1d78bf=_0x3ef481>0x1?void 0x0:_0x3ef481?ms(_0x35e481,_0xb86a11):_0x35e481,_0x20a5b6=_0x1c3454[_0x2f0d1d(0x441)]-0x1,_0x249e2b;_0x20a5b6>=0x0;_0x20a5b6--)(_0x249e2b=_0x1c3454[_0x20a5b6])&&(_0x1d78bf=(_0x3ef481?_0x249e2b(_0x35e481,_0xb86a11,_0x1d78bf):_0x249e2b(_0x1d78bf))||_0x1d78bf);return _0x3ef481&&_0x1d78bf&&fs(_0x35e481,_0xb86a11,_0x1d78bf),_0x1d78bf;},Ze=(_0x4df353,_0x3898eb)=>(_0x4d7374,_0xfa1fc1)=>_0x3898eb(_0x4d7374,_0xfa1fc1,_0x4df353);function ps(_0x546d37){const _0x1debc8=_0x42f461,{unitID:_0xa2133b,mutations:_0x20d581}=_0x546d37;return{'unitId':_0xa2133b,'subUnitId':_0x20d581[0x0][_0x1debc8(0x2ec)]['subUnitId']};}let me=class{constructor(_0x1efb17,_0x48daa1){const _0x429bd1=_0x42f461;this[_0x429bd1(0x16e)]=_0x1efb17,this[_0x429bd1(0x269)]=_0x48daa1;}[_0x42f461(0x41e)](_0x26e884){const _0x41ca40=_0x42f461;var _0x54f7f0,_0xf47d9,_0x34280e;const _0x3ee3b5=this['_injector'][_0x41ca40(0xc0)](p[_0x41ca40(0x421)]),{unitId:_0x3b3f95,subUnitId:_0xf109e6}=ps(_0x26e884),_0x13e01e=_0x3ee3b5['getWorkbookSelections'](_0x3b3f95)['getCurrentSelections']();if(_0x13e01e[_0x41ca40(0x441)]===0x0||!_0x3b3f95||!_0xf109e6)return;const _0x2e674b=[{'id':p[_0x41ca40(0x43e)]['id'],'params':{'unitId':_0x3b3f95,'subUnitId':_0xf109e6,'selections':o['Tools'][_0x41ca40(0x368)](_0x13e01e)}}],_0xf8c7ae=this['_transformService']['transformMutationsWithChangeset'](_0x26e884,_0x2e674b);if(!_[_0x41ca40(0xc9)](_0xf8c7ae))throw _0xf8c7ae[_0x41ca40(0x34d)];const _0x2c8249=(_0x34280e=(_0xf47d9=(_0x54f7f0=_0xf8c7ae[_0x41ca40(0x166)][0x0])==null?void 0x0:_0x54f7f0[_0x41ca40(0x2ec)])==null?void 0x0:_0xf47d9[_0x41ca40(0x1c0)])!=null?_0x34280e:_0x13e01e;Array[_0x41ca40(0xb7)](_0x2c8249)&&_0x2c8249[_0x41ca40(0x441)]&&this[_0x41ca40(0x16e)][_0x41ca40(0xc0)](o[_0x41ca40(0xff)])['executeCommand'](p[_0x41ca40(0x43e)]['id'],{'unitId':_0x3b3f95,'subUnitId':_0xf109e6,'selections':_0x2c8249});}};me=Is([Ze(0x0,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),Ze(0x1,_[_0x42f461(0x37b)])],me);const Es=new Set([p[_0x42f461(0x298)]['id']]);function Cs(_0x27e9f,_0xd8021c,_0x240180,_0x2a90a9,_0x34c8f9){const _0xfbd26e=_0x42f461;var _0x2f3ca8,_0x9ab7da,_0x249656,_0x4e54d1;const _0x1f672f=[];for(const _0x13f876 of _0x27e9f)if(Es[_0xfbd26e(0x208)](_0x13f876['id'])){if(_0x1f672f[_0xfbd26e(0x441)]>0x0)break;_0x1f672f[_0xfbd26e(0x302)](_0x13f876);break;}else _0x1f672f[_0xfbd26e(0x302)](_0x13f876);const _0xa20f39=(_0x9ab7da=(_0x2f3ca8=_0x34c8f9['getCurrentUser']())==null?void 0x0:_0x2f3ca8[_0xfbd26e(0x223)])!=null?_0x9ab7da:_0xfbd26e(0x47c),_0x1c6191=(_0x4e54d1=(_0x249656=_0x34c8f9[_0xfbd26e(0x119)]())==null?void 0x0:_0x249656['memberID'])!=null?_0x4e54d1:'unknown';return{'changeset':{'unitID':_0xd8021c,'type':_[_0xfbd26e(0x2f7)](_0x240180[_0xfbd26e(0x40a)](_0xd8021c)),'baseRev':_0x2a90a9['getCurrentRevForDocument'](_0xd8021c),'revision':0x0,'userID':_0xa20f39,'memberID':_0x1c6191,'mutations':_0x1f672f},'pendingMutations':_0x27e9f['slice'](_0x1f672f[_0xfbd26e(0x441)])};}function bs(_0x470692,_0x20a59c,_0x223456,_0x383d34,_0x2e5b94){const _0x4e0f57=_0x42f461;var _0x481299,_0x2deafb,_0x5f23ef,_0x309a75;const _0x2ef674=[_0x470692[_0x4e0f57(0x3fc)]((_0x224095,_0x5ff14d)=>{const _0x495315=_0x4e0f57;var _0x815f3e;const {id:_0x4f6ef4}=_0x224095,{id:_0x2ee833,type:_0x334962}=_0x5ff14d,_0x1cd786=(_0x815f3e=_0x224095[_0x495315(0x2ec)])!=null?_0x815f3e:{'actions':null},_0x338065=_0x5ff14d['params'];if(_0x4f6ef4&&_0x4f6ef4!==_0x2ee833)throw new Error(_0x495315(0x377)+_0x4f6ef4+_0x495315(0x2f2)+_0x2ee833+'.');return{..._0x224095,'id':_0x2ee833,'type':_0x334962,'params':{'unitId':_0x338065[_0x495315(0xc4)],'textRanges':_0x338065[_0x495315(0x30f)],'actions':o['JSONX'][_0x495315(0x1c6)](_0x1cd786['actions'],_0x338065[_0x495315(0x42c)])}};},{})],_0x540c17=(_0x2deafb=(_0x481299=_0x2e5b94[_0x4e0f57(0x119)]())==null?void 0x0:_0x481299['userID'])!=null?_0x2deafb:_0x4e0f57(0x47c),_0x258573=(_0x309a75=(_0x5f23ef=_0x2e5b94[_0x4e0f57(0x119)]())==null?void 0x0:_0x5f23ef[_0x4e0f57(0x27e)])!=null?_0x309a75:_0x4e0f57(0x47c);return{'changeset':{'unitID':_0x20a59c,'type':_[_0x4e0f57(0x2f7)](_0x223456[_0x4e0f57(0x40a)](_0x20a59c)),'baseRev':_0x383d34[_0x4e0f57(0x3b0)](_0x20a59c),'revision':0x0,'userID':_0x540c17,'memberID':_0x258573,'mutations':_0x2ef674},'pendingMutations':[]};}var Ts=Object['defineProperty'],Rs=Object[_0x42f461(0x1b1)],Y=(_0x5dbee2,_0x10023a,_0x29a45e,_0x26125a)=>{const _0x9d566e=_0x42f461;for(var _0x32a1d7=_0x26125a>0x1?void 0x0:_0x26125a?Rs(_0x10023a,_0x29a45e):_0x10023a,_0x5566a0=_0x5dbee2[_0x9d566e(0x441)]-0x1,_0x77eff0;_0x5566a0>=0x0;_0x5566a0--)(_0x77eff0=_0x5dbee2[_0x5566a0])&&(_0x32a1d7=(_0x26125a?_0x77eff0(_0x10023a,_0x29a45e,_0x32a1d7):_0x77eff0(_0x32a1d7))||_0x32a1d7);return _0x26125a&&_0x32a1d7&&Ts(_0x10023a,_0x29a45e,_0x32a1d7),_0x32a1d7;},g=(_0xd45b51,_0xb45612)=>(_0x3a3eb3,_0x4d51da)=>_0xb45612(_0x3a3eb3,_0x4d51da,_0xd45b51),D=(_0x8545b=>(_0x8545b[_0x42f461(0x2ea)]='not_collab',_0x8545b[_0x42f461(0x477)]=_0x42f461(0x37f),_0x8545b[_0x42f461(0x483)]=_0x42f461(0x12d),_0x8545b[_0x42f461(0x1d1)]=_0x42f461(0x418),_0x8545b[_0x42f461(0x31c)]=_0x42f461(0x42e),_0x8545b['FETCH_MISS']='fetch_missing',_0x8545b['CONFLICT']=_0x42f461(0x1fc),_0x8545b[_0x42f461(0x187)]=_0x42f461(0xd9),_0x8545b))(D||{});class K{constructor(_0x319b4c,_0x495228,_0x2002e4,_0x29c8cd,_0x382425,_0xd68a4b,_0x80013b,_0x529fbd,_0x3062d3){const _0x2c49ce=_0x42f461;u(this,'_awaitingChangeset',null),u(this,'_pendingMutations',[]),(this[_0x2c49ce(0x33c)]=_0x319b4c,this['type']=_0x495228,this[_0x2c49ce(0x348)]=_0x382425,this[_0x2c49ce(0x28d)]=_0xd68a4b,this[_0x2c49ce(0x45e)]=_0x80013b,this[_0x2c49ce(0x45b)]=_0x529fbd,this[_0x2c49ce(0x19f)]=_0x3062d3,this[_0x2c49ce(0x28f)]=_0x2002e4,this['_pendingMutations']=_0x29c8cd);}['_checkMissing'](_0x5a90e1){const _0x2a8f35=_0x42f461,_0xcfb9a8=this[_0x2a8f35(0x45b)][_0x2a8f35(0x3b0)](this['unitID']);return _0x5a90e1['revision']>_0xcfb9a8+0x1?(this[_0x2a8f35(0x348)][_0x2a8f35(0x242)]({'from':_0xcfb9a8,'to':_0x5a90e1[_0x2a8f35(0x1ba)]-0x1}),!0x0):!0x1;}[_0x42f461(0x29b)](_0x5a9634){const _0x893403=_0x42f461;this[_0x893403(0x45e)][_0x893403(0x210)](this[_0x893403(0x33c)],_0x5a9634);}[_0x42f461(0x317)](_0x58c9f5){const _0x510ee4=_0x42f461;var _0x421e63,_0x4c5ce7;(_0x4c5ce7=(_0x421e63=this[_0x510ee4(0x348)])[_0x510ee4(0x154)])==null||_0x4c5ce7['call'](_0x421e63,_0x58c9f5);}[_0x42f461(0x19e)](_0x17d0fd){const _0x3d4b00=_0x42f461;var _0xfb0536,_0x18a5b4;return(_0x18a5b4=(_0xfb0536=this[_0x3d4b00(0x348)])[_0x3d4b00(0x196)])==null?void 0x0:_0x18a5b4[_0x3d4b00(0x356)](_0xfb0536,_0x17d0fd);}[_0x42f461(0x270)](_0x4b7059){const _0xe51532=_0x42f461;var _0x52280e,_0xe34fed,_0x5dbbdb;return(_0x5dbbdb=(_0xe34fed=(_0x52280e=this[_0xe51532(0x348)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xe34fed[_0xe51532(0x356)](_0x52280e,_0x4b7059))!=null?_0x5dbbdb:_0x4b7059;}[_0x42f461(0x1bf)](_0x502da0){const _0x5b16f6=_0x42f461;var _0x43fb4b,_0x4479db;if(this[_0x5b16f6(0x3b1)]===A[_0x5b16f6(0x46d)]){const {unitID:_0x1b0099,mutations:_0x1381e8,memberID:_0x3a7bfe}=_0x502da0,_0x4a46d6=_0x1381e8[0x0][_0x5b16f6(0x2ec)]['textRanges'];Array[_0x5b16f6(0xb7)](_0x4a46d6)&&_0x4a46d6[_0x5b16f6(0x441)]>0x0&&((_0x4479db=(_0x43fb4b=this[_0x5b16f6(0x348)])[_0x5b16f6(0x388)])==null||_0x4479db[_0x5b16f6(0x356)](_0x43fb4b,{'unitID':_0x1b0099,'memberID':_0x3a7bfe,'textRanges':_0x4a46d6}));}}['_updateLocalCache'](){const _0x1d5a28=_0x42f461;this[_0x1d5a28(0x19f)][_0x1d5a28(0x32e)](this[_0x1d5a28(0x33c)],this[_0x1d5a28(0x3b1)],this['_awaitingChangeset'],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x51f99d=_0x42f461;return this['_revisionService']['getCurrentRevForDocument'](this[_0x51f99d(0x33c)]);}[_0x42f461(0x1fb)](){const _0x309c31=_0x42f461;this['_revisionService'][_0x309c31(0x17c)](this['unitID']);}[_0x42f461(0x126)](_0x231660){const _0x3a0834=_0x42f461;var _0x17f25e;const _0x11eeb3=this[_0x3a0834(0x270)](_0x231660),_0x2e684b=o['sequenceExecute'](_0x11eeb3[_0x3a0834(0x132)],this[_0x3a0834(0x28d)],{'fromCollab':!0x0});if(!_0x2e684b[_0x3a0834(0x419)])throw _0x2e684b[_0x3a0834(0x34d)]instanceof Error?_0x2e684b[_0x3a0834(0x34d)]:new Error((_0x17f25e=_0x2e684b[_0x3a0834(0x34d)])!=null?_0x17f25e:_0x3a0834(0x11d));this[_0x3a0834(0x19e)](_0x11eeb3),this[_0x3a0834(0x29b)](_0x231660),this[_0x3a0834(0x317)](_0x11eeb3),this[_0x3a0834(0x1bf)](_0x11eeb3),this['_incrementRevisionNumber']();}}let ae=class extends K{constructor(_0x4a65cf,_0x1408a6,_0x5619b4,_0x7a8fa3,_0x52d214,_0xa53018,_0x243f11,_0x146387,_0x4244fc){const _0x58c48e=_0x42f461;super(_0x4a65cf,_0x1408a6,null,[],_0x5619b4,_0x146387,_0x243f11,_0x7a8fa3,_0x52d214),u(this,_0x58c48e(0x3bd),_0x58c48e(0x37f)),(this[_0x58c48e(0x16e)]=_0xa53018,this['_logService']=_0x4244fc);}[_0x42f461(0x219)](_0x5970f1){const _0x56ec00=_0x42f461,_0x1996bd=this[_0x56ec00(0x16e)][_0x56ec00(0x1ec)](j,this[_0x56ec00(0x33c)],this[_0x56ec00(0x3b1)],[_0x5970f1],this[_0x56ec00(0x348)]);return _0x1996bd[_0x56ec00(0x282)](),_0x1996bd[_0x56ec00(0x47f)](),_0x1996bd;}[_0x42f461(0x370)](_0x5d31f6){const _0x1c8fd0=_0x42f461;if(this[_0x1c8fd0(0x176)](_0x5d31f6))return this[_0x1c8fd0(0x16e)][_0x1c8fd0(0x1ec)](H,this['unitID'],this[_0x1c8fd0(0x3b1)],null,[],null,[_0x5d31f6],this[_0x1c8fd0(0x348)]);try{return this[_0x1c8fd0(0x126)](_0x5d31f6),this;}catch(_0xb8d477){return this[_0x1c8fd0(0x313)][_0x1c8fd0(0x34d)](_0x1c8fd0(0x3bb),_0xb8d477),this;}}['onRemoteAck'](){const _0x29b1d3=_0x42f461;throw new Error(_0x29b1d3(0x2e5));}[_0x42f461(0x2af)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x42f461(0xe4)](){const _0xa66c25=_0x42f461;return this[_0xa66c25(0x16e)]['createInstance'](k,this['unitID'],this[_0xa66c25(0x3b1)],null,[],this[_0xa66c25(0x348)]);}[_0x42f461(0x240)](){return this;}[_0x42f461(0x3e8)](){const _0x57be14=_0x42f461;throw new Error(_0x57be14(0x2ca));}};ae=Y([g(0x3,o['Inject'](_[_0x42f461(0x482)])),g(0x4,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),g(0x5,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),g(0x6,o[_0x42f461(0xcf)]),g(0x7,o[_0x42f461(0xff)]),g(0x8,o[_0x42f461(0x218)])],ae);let j=class extends K{constructor(_0x9d7bcb,_0x2d016d,_0x171347,_0x314bd2,_0x31c279,_0xfd80b,_0x1e1f74,_0x3f7cb6,_0x52d0b8,_0x316f30,_0x4a59e6,_0x3038f3,_0x1a7cd3,_0x2925af){const _0x280e91=_0x42f461;super(_0x9d7bcb,_0x2d016d,null,_0x171347,_0x314bd2,_0x316f30,_0x2925af,_0xfd80b,_0x1e1f74),u(this,_0x280e91(0x3bd),_0x280e91(0x12d)),u(this,_0x280e91(0x3f5),null),u(this,'_sendingTimer',null),(this[_0x280e91(0x16e)]=_0x31c279,this[_0x280e91(0x2d2)]=_0x3f7cb6,this[_0x280e91(0x313)]=_0x52d0b8,this[_0x280e91(0x408)]=_0x4a59e6,this[_0x280e91(0x269)]=_0x3038f3,this[_0x280e91(0x3c1)]=_0x1a7cd3);}[_0x42f461(0x219)](_0x5aa5ae){const _0x5247ed=_0x42f461;return this[_0x5247ed(0xe6)]['push'](_0x5aa5ae),this[_0x5247ed(0x47f)](),this;}[_0x42f461(0x370)](_0x4234b9){const _0x4cf2cd=_0x42f461;if(this[_0x4cf2cd(0x176)](_0x4234b9))return this[_0x4cf2cd(0x3a6)](),this[_0x4cf2cd(0x16e)][_0x4cf2cd(0x1ec)](H,this['unitID'],this[_0x4cf2cd(0x3b1)],null,this[_0x4cf2cd(0xe6)],null,[_0x4234b9],this[_0x4cf2cd(0x348)]);try{const _0x22037b=this[_0x4cf2cd(0x269)][_0x4cf2cd(0x431)](_0x4234b9,this[_0x4cf2cd(0xe6)]);if(_[_0x4cf2cd(0xc9)](_0x22037b)){const {c1Prime:_0x517259,m2Prime:_0x598137}=_0x22037b;this[_0x4cf2cd(0x126)](_0x517259);const _0x5029fd=this['_injector']['createInstance'](j,this[_0x4cf2cd(0x33c)],this[_0x4cf2cd(0x3b1)],_0x598137,this['_handler']);return this[_0x4cf2cd(0x3a6)](),_0x5029fd[_0x4cf2cd(0x282)](this['_scheduleTimestamp']?Math[_0x4cf2cd(0x200)](0x0,new Date()['getTime']()-this[_0x4cf2cd(0x3f5)]):this[_0x4cf2cd(0x2be)]()),_0x5029fd;}throw _0x22037b[_0x4cf2cd(0x34d)];}catch(_0x263551){return this[_0x4cf2cd(0x313)]['error'](_0x263551),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x5c30da=_0x42f461;throw new Error(_0x5c30da(0x19d));}[_0x42f461(0x2af)](){const _0x98d560=_0x42f461;throw new Error(_0x98d560(0x430));}[_0x42f461(0xe4)](){const _0x267613=_0x42f461;return this[_0x267613(0x3a6)](),this[_0x267613(0x16e)][_0x267613(0x1ec)](k,this[_0x267613(0x33c)],this['type'],null,this[_0x267613(0xe6)],this[_0x267613(0x348)]);}['toggleOnline'](){return this;}['_schedule'](_0x4a6049){const _0x42675a=_0x42f461;_0x4a6049=_0x4a6049!=null?_0x4a6049:this['_getSendChangesetTimeout'](),this[_0x42675a(0x3f5)]=new Date()['getTime'](),this[_0x42675a(0x459)]=setTimeout(()=>{const _0x1d3666=_0x42675a;this['_clearScheduledTask']();let _0x43f89d=null;switch(this['type']){case A['UNIVER_SHEET']:{_0x43f89d=Cs(this[_0x1d3666(0xe6)],this[_0x1d3666(0x33c)],this[_0x1d3666(0x3c1)],this[_0x1d3666(0x45b)],this[_0x1d3666(0x2d2)]);break;}case A[_0x1d3666(0x46d)]:{_0x43f89d=bs(this[_0x1d3666(0xe6)],this[_0x1d3666(0x33c)],this[_0x1d3666(0x3c1)],this['_revisionService'],this[_0x1d3666(0x2d2)]);break;}default:throw new Error(_0x1d3666(0x44d)+this['type']+_0x1d3666(0xe2));}const {changeset:_0x28de7e,pendingMutations:_0x14c0ce}=_0x43f89d;this[_0x1d3666(0x348)][_0x1d3666(0x402)](_0x28de7e);const _0x3051de=_0x14c0ce[_0x1d3666(0x441)]?this[_0x1d3666(0x16e)][_0x1d3666(0x1ec)]($,this['unitID'],this[_0x1d3666(0x3b1)],_0x28de7e,_0x14c0ce,this[_0x1d3666(0x348)]):this['_injector'][_0x1d3666(0x1ec)](x,this['unitID'],this[_0x1d3666(0x3b1)],_0x28de7e,this[_0x1d3666(0x348)]);_0x3051de[_0x1d3666(0x47f)](),this[_0x1d3666(0x348)]['onStateChange'](this,_0x3051de);},_0x4a6049);}[_0x42f461(0x2be)](){const _0x4da5ab=_0x42f461;var _0x26d602;return(_0x26d602=this['_configService'][_0x4da5ab(0x1b4)](ct))!=null?_0x26d602:kt;}[_0x42f461(0x3e8)](){const _0x1adbdc=_0x42f461;throw new Error(_0x1adbdc(0x3f3));}['_clearScheduledTask'](){const _0x29d5b9=_0x42f461;this[_0x29d5b9(0x459)]!=null&&(clearTimeout(this[_0x29d5b9(0x459)]),this[_0x29d5b9(0x459)]=null);}['_onConflict'](_0x28dfd3){const _0x4ec596=_0x42f461;return this[_0x4ec596(0x3a6)](),this[_0x4ec596(0x16e)]['createInstance'](G,this[_0x4ec596(0x33c)],this[_0x4ec596(0x3b1)],null,this[_0x4ec596(0xe6)],this[_0x4ec596(0x348)],_0x28dfd3);}};j=Y([g(0x4,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),g(0x5,o[_0x42f461(0x1f3)](_[_0x42f461(0x482)])),g(0x6,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),g(0x7,o[_0x42f461(0x1f3)](W)),g(0x8,o[_0x42f461(0x218)]),g(0x9,o['ICommandService']),g(0xa,o['IConfigService']),g(0xb,_[_0x42f461(0x37b)]),g(0xc,o[_0x42f461(0x237)]),g(0xd,o[_0x42f461(0xcf)])],j);let x=class extends K{constructor(_0x32ca20,_0x518d3d,_0x551b37,_0x5db4fd,_0x457df7,_0x46298c,_0x48cb08,_0x4fede3,_0x417d59,_0x3f9b7d,_0x41e8bd){const _0xf0cb3b=_0x42f461;super(_0x32ca20,_0x518d3d,_0x551b37,[],_0x5db4fd,_0x4fede3,_0x41e8bd,_0x46298c,_0x48cb08),u(this,_0xf0cb3b(0x3bd),_0xf0cb3b(0x418)),(this[_0xf0cb3b(0x16e)]=_0x457df7,this[_0xf0cb3b(0x313)]=_0x417d59,this['_transformService']=_0x3f9b7d);}[_0x42f461(0x219)](_0x33508a){const _0x3de2cf=_0x42f461,_0x29e5cf=this['_injector'][_0x3de2cf(0x1ec)]($,this[_0x3de2cf(0x33c)],this[_0x3de2cf(0x3b1)],this['_awaitingChangeset'],[_0x33508a],this[_0x3de2cf(0x348)]);return _0x29e5cf[_0x3de2cf(0x47f)](),_0x29e5cf;}[_0x42f461(0x370)](_0x1878e0){const _0x2ed871=_0x42f461;if(this[_0x2ed871(0x176)](_0x1878e0))return this[_0x2ed871(0x16e)]['createInstance'](H,this[_0x2ed871(0x33c)],this[_0x2ed871(0x3b1)],this[_0x2ed871(0x28f)],[],null,[_0x1878e0],this[_0x2ed871(0x348)]);try{const _0x4ac6e0=this[_0x2ed871(0x269)][_0x2ed871(0x25a)]([_0x1878e0],[this[_0x2ed871(0x28f)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4ac6e0)){const {c1Prime:_0x5d8947,c2Prime:_0x5c093e}=_0x4ac6e0;this[_0x2ed871(0x126)](_0x5d8947[0x0]),_0x5c093e[0x0][_0x2ed871(0x134)]=this[_0x2ed871(0x27a)]();const _0x9e9445=this['_injector']['createInstance'](x,this['unitID'],this[_0x2ed871(0x3b1)],_0x5c093e[0x0],this[_0x2ed871(0x348)]);return _0x9e9445[_0x2ed871(0x47f)](),_0x9e9445;}return this['_onConflict'](!0x1);}catch(_0x2c2661){return this[_0x2ed871(0x313)][_0x2ed871(0x34d)](_0x2c2661),this[_0x2ed871(0x1dd)](!0x1);}}[_0x42f461(0x11f)](_0x264a4e){const _0x5c4610=_0x42f461,_0x273cf2=this[_0x5c4610(0x45b)][_0x5c4610(0x3b0)](this[_0x5c4610(0x33c)]);if(_0x264a4e['revision']<_0x273cf2-0x1)return this;if(this[_0x5c4610(0x176)](_0x264a4e))return this['_injector'][_0x5c4610(0x1ec)](H,this[_0x5c4610(0x33c)],this[_0x5c4610(0x3b1)],null,[],this[_0x5c4610(0x28f)],[],this[_0x5c4610(0x348)]);this[_0x5c4610(0x1fb)]();const _0x368d98=this[_0x5c4610(0x16e)][_0x5c4610(0x1ec)](ae,this[_0x5c4610(0x33c)],this['type'],this[_0x5c4610(0x348)]);return _0x368d98[_0x5c4610(0x47f)](),_0x368d98;}[_0x42f461(0x2af)](_0x1ee3dd){const _0x4e84be=_0x42f461;return this[_0x4e84be(0x1dd)](!!(_0x1ee3dd!=null&&_0x1ee3dd[_0x4e84be(0x35e)]));}[_0x42f461(0xe4)](){const _0x274aa5=_0x42f461;return this[_0x274aa5(0x16e)]['createInstance'](k,this['unitID'],this['type'],this[_0x274aa5(0x28f)],[],this['_handler']);}[_0x42f461(0x240)](){return this;}[_0x42f461(0x3e8)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x302dfa){const _0x5479aa=_0x42f461;return this['_injector'][_0x5479aa(0x1ec)](G,this['unitID'],this['type'],this[_0x5479aa(0x28f)],[],this[_0x5479aa(0x348)],_0x302dfa);}};x=Y([g(0x4,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),g(0x5,o[_0x42f461(0x1f3)](_[_0x42f461(0x482)])),g(0x6,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),g(0x7,o[_0x42f461(0xff)]),g(0x8,o[_0x42f461(0x218)]),g(0x9,_['ITransformService']),g(0xa,o[_0x42f461(0xcf)])],x);let $=class extends K{constructor(_0x3ec8aa,_0x326617,_0x5ab610,_0x5cca83,_0x1b2ad8,_0x450b5d,_0x151a93,_0x5e0550,_0x90b840,_0x5a0713,_0x2f33c9,_0x3805cc){const _0x818a26=_0x42f461;super(_0x3ec8aa,_0x326617,_0x5ab610,_0x5cca83,_0x1b2ad8,_0x90b840,_0x3805cc,_0x151a93,_0x5e0550),u(this,_0x818a26(0x3bd),_0x818a26(0x42e)),(this[_0x818a26(0x16e)]=_0x450b5d,this[_0x818a26(0x313)]=_0x5a0713,this['_transformService']=_0x2f33c9);}[_0x42f461(0x219)](_0x4f594b){const _0xeefea0=_0x42f461;return this['_pendingMutations'][_0xeefea0(0x302)](_0x4f594b),this;}['onRemoteChangeset'](_0x5b0f83){const _0x56152f=_0x42f461;if(this[_0x56152f(0x176)](_0x5b0f83))return this['_injector']['createInstance'](H,this[_0x56152f(0x33c)],this['type'],this['_awaitingChangeset'],this[_0x56152f(0xe6)],null,[_0x5b0f83],this[_0x56152f(0x348)]);try{const _0x4de811=this[_0x56152f(0x269)][_0x56152f(0x25a)]([_0x5b0f83],[this[_0x56152f(0x28f)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4de811)){const {c1Prime:_0x428b88,c2Prime:_0x40bf7d}=_0x4de811,_0x5f57ff=this[_0x56152f(0x269)][_0x56152f(0x431)](_0x428b88[0x0],this[_0x56152f(0xe6)]);if(_[_0x56152f(0xc9)](_0x5f57ff)){const {c1Prime:_0xab70d8,m2Prime:_0x18c5df}=_0x5f57ff;return this[_0x56152f(0x126)](_0xab70d8),_0x40bf7d[0x0][_0x56152f(0x134)]=this[_0x56152f(0x27a)](),this['_injector'][_0x56152f(0x1ec)]($,this[_0x56152f(0x33c)],this[_0x56152f(0x3b1)],_0x40bf7d[0x0],_0x18c5df,this[_0x56152f(0x348)]);}throw _0x5f57ff[_0x56152f(0x34d)];}throw _0x4de811[_0x56152f(0x34d)];}catch(_0x32b189){return this[_0x56152f(0x313)][_0x56152f(0x34d)](_0x32b189),this[_0x56152f(0x1dd)](!0x1);}}[_0x42f461(0x11f)](_0xa5a76b){const _0x48d18c=_0x42f461;if(this['_checkMissing'](_0xa5a76b))return this[_0x48d18c(0x16e)][_0x48d18c(0x1ec)](H,this[_0x48d18c(0x33c)],this[_0x48d18c(0x3b1)],null,this[_0x48d18c(0xe6)],this[_0x48d18c(0x28f)],[],this[_0x48d18c(0x348)]);this[_0x48d18c(0x1fb)]();const _0xf947bf=this[_0x48d18c(0x16e)][_0x48d18c(0x1ec)](j,this[_0x48d18c(0x33c)],this[_0x48d18c(0x3b1)],this['_pendingMutations'],this[_0x48d18c(0x348)]);return _0xf947bf[_0x48d18c(0x282)](),_0xf947bf[_0x48d18c(0x47f)](),_0xf947bf;}['onRemoteRej'](_0x1be5f8){const _0x3fc805=_0x42f461;return this[_0x3fc805(0x1dd)](!!(_0x1be5f8!=null&&_0x1be5f8[_0x3fc805(0x35e)]));}[_0x42f461(0xe4)](){const _0x4aaeba=_0x42f461;return this[_0x4aaeba(0x16e)]['createInstance'](k,this[_0x4aaeba(0x33c)],this[_0x4aaeba(0x3b1)],this['_awaitingChangeset'],this[_0x4aaeba(0xe6)],this[_0x4aaeba(0x348)]);}[_0x42f461(0x240)](){return this;}[_0x42f461(0x3e8)](){const _0x51111c=_0x42f461;this[_0x51111c(0x348)][_0x51111c(0x402)](this[_0x51111c(0x28f)]);}[_0x42f461(0x1dd)](_0x2be7e3){const _0x1c0846=_0x42f461;return this[_0x1c0846(0x16e)][_0x1c0846(0x1ec)](G,this[_0x1c0846(0x33c)],this[_0x1c0846(0x3b1)],null,this[_0x1c0846(0xe6)],this[_0x1c0846(0x348)],_0x2be7e3);}};$=Y([g(0x5,o[_0x42f461(0x1f3)](o['Injector'])),g(0x6,o['Inject'](_[_0x42f461(0x482)])),g(0x7,o[_0x42f461(0x1f3)](exports['LocalCacheService'])),g(0x8,o[_0x42f461(0xff)]),g(0x9,o[_0x42f461(0x218)]),g(0xa,_[_0x42f461(0x37b)]),g(0xb,o[_0x42f461(0xcf)])],$);let G=class extends K{constructor(_0x3d9366,_0x3e35ef,_0x2ad00c,_0x581310,_0x1cef81,_0x2c03ed=!0x1,_0x3fe34f,_0x467d65,_0x2ba1fa,_0x2c61fd,_0x3db7c0,_0x597c25,_0x41fb61){const _0x2f093b=_0x42f461;super(_0x3d9366,_0x3e35ef,_0x2ad00c,_0x581310,_0x1cef81,_0x467d65,_0x2ba1fa,_0x3db7c0,_0x2c61fd),u(this,_0x2f093b(0x3bd),'conflict'),(this[_0x2f093b(0x25b)]=_0x2c03ed,this[_0x2f093b(0xfa)]=_0x3fe34f,this[_0x2f093b(0x15c)]=_0x597c25,this['_notificationService']=_0x41fb61,this[_0x2f093b(0x3e5)](),this[_0x2f093b(0x15d)](),this[_0x2f093b(0x2f9)]());}[_0x42f461(0x219)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x42f461(0x2af)](){return this;}[_0x42f461(0xe4)](){return this;}['toggleOnline'](){return this;}[_0x42f461(0x3e8)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x42f461(0x15d)](){const _0x30c700=_0x42f461;this['_localCacheService'][_0x30c700(0x32e)](this[_0x30c700(0x33c)],this[_0x30c700(0x3b1)],null,[]);}[_0x42f461(0x3e5)](){const _0x406da0=_0x42f461;this['_isPermissionRej']?this[_0x406da0(0x312)][_0x406da0(0x20a)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x406da0(0x15c)]['t'](_0x406da0(0x326)),'type':_0x406da0(0x34d),'duration':0x0}):this[_0x406da0(0x312)][_0x406da0(0x20a)]({'title':this[_0x406da0(0x15c)]['t'](_0x406da0(0x236)),'content':this[_0x406da0(0x15c)]['t'](_0x406da0(0x1a6)),'type':_0x406da0(0x34d),'duration':0x0});}['_disableEditing'](){const _0x4d3b12=_0x42f461;this[_0x4d3b12(0xfa)][_0x4d3b12(0x27b)](new p['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};G=Y([g(0x6,o['Inject'](o['IPermissionService'])),g(0x7,o[_0x42f461(0xff)]),g(0x8,o[_0x42f461(0xcf)]),g(0x9,o[_0x42f461(0x1f3)](exports['LocalCacheService'])),g(0xa,o[_0x42f461(0x1f3)](_[_0x42f461(0x482)])),g(0xb,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)])),g(0xc,M['INotificationService'])],G);let k=class extends K{constructor(_0x56c28f,_0x1f5c01,_0x9b021,_0xd9b481,_0x441f3f,_0x55df00,_0x12b67d,_0x27dbb3,_0x6f0a45,_0x582c10){const _0x40a2e5=_0x42f461;super(_0x56c28f,_0x1f5c01,_0x9b021,_0xd9b481,_0x441f3f,_0x6f0a45,_0x582c10,_0x12b67d,_0x27dbb3),u(this,_0x40a2e5(0x3bd),_0x40a2e5(0xd9)),this[_0x40a2e5(0x16e)]=_0x55df00;}[_0x42f461(0x219)](_0x5b748a){const _0x156eb7=_0x42f461;return this[_0x156eb7(0xe6)][_0x156eb7(0x302)](_0x5b748a),this[_0x156eb7(0x47f)](),this;}[_0x42f461(0x370)](_0x3a247c){const _0x1ec696=_0x42f461;throw new Error(_0x1ec696(0x1c3));}['onRemoteAck'](){const _0x3240e0=_0x42f461;throw new Error(_0x3240e0(0x414));}[_0x42f461(0x2af)](){const _0x2d48ac=_0x42f461;throw new Error(_0x2d48ac(0x46f));}['toggleOffline'](){return this;}[_0x42f461(0x240)](){const {_injector:_0x36c9e8,_pendingMutations:_0x1103c4,_awaitingChangeset:_0x3b9245,unitID:_0x438c61,_handler:_0x391f49,type:_0x189dd2}=this,_0x3bb1a6=Et(_0x36c9e8,_0x438c61,_0x189dd2,_0x3b9245,_0x1103c4,_0x391f49);return _0x3bb1a6 instanceof j?_0x3bb1a6['_schedule']():(_0x3bb1a6 instanceof $||_0x3bb1a6 instanceof x)&&_0x3bb1a6['resend'](),_0x3bb1a6;}[_0x42f461(0x3e8)](){const _0x9071a2=_0x42f461;throw new Error(_0x9071a2(0x304));}};k=Y([g(0x5,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),g(0x6,o[_0x42f461(0x1f3)](_['RevisionService'])),g(0x7,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),g(0x8,o['ICommandService']),g(0x9,o[_0x42f461(0xcf)])],k);let H=class extends K{constructor(_0x375e98,_0x181f06,_0x511b98,_0x1fea90,_0x1685e0,_0x50378f,_0x5f2597,_0x38d232,_0x52f4cc,_0x2e31af,_0x4af964,_0x17d729,_0x29f17f,_0x5eab9f){const _0x4e0544=_0x42f461;super(_0x375e98,_0x181f06,_0x511b98,_0x1fea90,_0x5f2597,_0x17d729,_0x29f17f,_0x52f4cc,_0x2e31af),u(this,_0x4e0544(0x3bd),_0x4e0544(0x24a)),(this[_0x4e0544(0x181)]=_0x1685e0,this[_0x4e0544(0xba)]=_0x50378f,this[_0x4e0544(0x16e)]=_0x38d232,this['_logService']=_0x4af964,this['_transformService']=_0x5eab9f);}[_0x42f461(0x261)](_0x1cfb24){const _0x7a559c=_0x42f461;try{const _0x59ba93=[..._0x1cfb24,...this[_0x7a559c(0xba)]],_0x3e1d7e=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x7a559c(0x357)](_0x181483=>!!_0x181483);let _0x1efddc,_0xc70de8;if(_0x3e1d7e['length']){const _0x4e78dc=this[_0x7a559c(0x269)]['transformChangesets'](_0x59ba93,_0x3e1d7e,!0x1);if(!_[_0x7a559c(0x204)](_0x4e78dc))throw _0x4e78dc[_0x7a559c(0x34d)];_0x1efddc=_0x4e78dc[_0x7a559c(0x3b8)],_0xc70de8=_0x4e78dc[_0x7a559c(0x43c)];}else _0x1efddc=_0x59ba93,_0xc70de8=[];let _0x2a9344=this['_pendingMutations'];_0x1efddc[_0x7a559c(0x375)](_0xc0b6a4=>{const _0x37a3bb=_0x7a559c;let _0x2084eb;if(_0x2a9344['length']){const _0x117ee0=this[_0x37a3bb(0x269)]['transformMutationsWithChangeset'](_0xc0b6a4,_0x2a9344);if(!_[_0x37a3bb(0xc9)](_0x117ee0))throw _0x117ee0[_0x37a3bb(0x34d)];_0x2084eb=_0x117ee0[_0x37a3bb(0x3b8)],_0x2a9344=_0x117ee0['m2Prime'];}else _0x2084eb=_0xc0b6a4;this[_0x37a3bb(0x126)](_0x2084eb);}),this[_0x7a559c(0x181)]&&this[_0x7a559c(0x1fb)](),this[_0x7a559c(0x28f)]&&_0xc70de8['length']&&(_0xc70de8[0x0][_0x7a559c(0x134)]=this[_0x7a559c(0x27a)]());let _0x7f2a97;if(this['_awaitingChangeset']&&_0x2a9344[_0x7a559c(0x441)]!==0x0)_0x7f2a97=this[_0x7a559c(0x16e)][_0x7a559c(0x1ec)]($,this[_0x7a559c(0x33c)],this[_0x7a559c(0x3b1)],_0xc70de8[0x0],_0x2a9344,this[_0x7a559c(0x348)]);else{if(this[_0x7a559c(0x28f)]&&_0x2a9344[_0x7a559c(0x441)]===0x0)_0xc70de8[0x0][_0x7a559c(0x134)]=this[_0x7a559c(0x27a)](),_0x7f2a97=this[_0x7a559c(0x16e)]['createInstance'](x,this[_0x7a559c(0x33c)],this[_0x7a559c(0x3b1)],_0xc70de8[0x0],this['_handler']);else{if(_0x2a9344[_0x7a559c(0x441)]!==0x0){const _0x55f847=this[_0x7a559c(0x16e)]['createInstance'](j,this[_0x7a559c(0x33c)],this[_0x7a559c(0x3b1)],_0x2a9344,this[_0x7a559c(0x348)]);_0x55f847['_schedule'](),_0x7f2a97=_0x55f847;}else _0x7f2a97=this['_injector'][_0x7a559c(0x1ec)](ae,this[_0x7a559c(0x33c)],this[_0x7a559c(0x3b1)],this[_0x7a559c(0x348)]);}}return _0x7f2a97[_0x7a559c(0x47f)](),_0x7f2a97;}catch(_0xccc4c9){return this['_logService'][_0x7a559c(0x34d)](_0x7a559c(0x3e7),_0x7a559c(0x222),_0xccc4c9),this[_0x7a559c(0x16e)][_0x7a559c(0x1ec)](G,this[_0x7a559c(0x33c)],this[_0x7a559c(0x3b1)],this[_0x7a559c(0x28f)],this[_0x7a559c(0xe6)],this[_0x7a559c(0x348)],!0x1);}}['resend'](){const _0x918900=_0x42f461;throw new Error(_0x918900(0x446));}[_0x42f461(0x219)](_0x49d285){const _0x45fb1d=_0x42f461;return this[_0x45fb1d(0xe6)][_0x45fb1d(0x302)](_0x49d285),this;}[_0x42f461(0x370)](_0x38371a){const _0x2def89=_0x42f461;return this[_0x2def89(0xba)][_0x2def89(0x302)](_0x38371a),this;}[_0x42f461(0x11f)](_0x1d2de0){const _0xbc4c2b=_0x42f461;if(this['_awaitingChangeset'])return this[_0xbc4c2b(0x181)]=this[_0xbc4c2b(0x28f)],this['_awaitingChangeset']=null,this;throw new Error(_0xbc4c2b(0xb9));}[_0x42f461(0x2af)](_0x3ec421){const _0x348216=_0x42f461;return this[_0x348216(0x1dd)](!!(_0x3ec421!=null&&_0x3ec421[_0x348216(0x35e)]));}['toggleOffline'](){const _0x1b7155=_0x42f461;return this[_0x1b7155(0x16e)]['createInstance'](k,this[_0x1b7155(0x33c)],this['type'],this[_0x1b7155(0x28f)],this['_pendingMutations'],this[_0x1b7155(0x348)]);}[_0x42f461(0x240)](){return this;}[_0x42f461(0x1dd)](_0x4e15b3){const _0xfcc498=_0x42f461;return this['_injector']['createInstance'](G,this[_0xfcc498(0x33c)],this['type'],this[_0xfcc498(0x28f)],this[_0xfcc498(0xe6)],this[_0xfcc498(0x348)],_0x4e15b3);}};H=Y([g(0x7,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),g(0x8,o['Inject'](_['RevisionService'])),g(0x9,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),g(0xa,o[_0x42f461(0x218)]),g(0xb,o['ICommandService']),g(0xc,o[_0x42f461(0xcf)]),g(0xd,_[_0x42f461(0x37b)])],H);function Et(_0x3818ac,_0x8ed124,_0xb9e5ec,_0xd15b25,_0xc316bb,_0x5ab893){const _0x1665c6=_0x42f461;return _0xd15b25&&_0xc316bb[_0x1665c6(0x441)]?_0x3818ac[_0x1665c6(0x1ec)]($,_0x8ed124,_0xb9e5ec,_0xd15b25,_0xc316bb,_0x5ab893):_0xd15b25?_0x3818ac[_0x1665c6(0x1ec)](x,_0x8ed124,_0xb9e5ec,_0xd15b25,_0x5ab893):_0xc316bb[_0x1665c6(0x441)]?_0x3818ac['createInstance'](j,_0x8ed124,_0xb9e5ec,_0xc316bb,_0x5ab893):_0x3818ac['createInstance'](ae,_0x8ed124,_0xb9e5ec,_0x5ab893);}var Os=Object[_0x42f461(0x3c5)],Ds=Object[_0x42f461(0x1b1)],Ce=(_0x516d5e,_0x419aa6,_0x55908b,_0x3003c8)=>{const _0x4a2988=_0x42f461;for(var _0x1ba540=_0x3003c8>0x1?void 0x0:_0x3003c8?Ds(_0x419aa6,_0x55908b):_0x419aa6,_0xb36062=_0x516d5e[_0x4a2988(0x441)]-0x1,_0x21fc68;_0xb36062>=0x0;_0xb36062--)(_0x21fc68=_0x516d5e[_0xb36062])&&(_0x1ba540=(_0x3003c8?_0x21fc68(_0x419aa6,_0x55908b,_0x1ba540):_0x21fc68(_0x1ba540))||_0x1ba540);return _0x3003c8&&_0x1ba540&&Os(_0x419aa6,_0x55908b,_0x1ba540),_0x1ba540;},I=(_0x52e302,_0x19ede7)=>(_0x54efb7,_0x49696f)=>_0x19ede7(_0x54efb7,_0x49696f,_0x52e302);exports[_0x42f461(0x1f4)]=class extends o[_0x42f461(0x451)]{constructor(_0x4cec7b,_0x4df4c1,_0x453a29){const _0x74a39f=_0x42f461;super(),u(this,_0x74a39f(0x2c5),new Map()),u(this,'_entityInit$',new v[(_0x74a39f(0x26e))]()),(this['_injector']=_0x4cec7b,this['_collabSessionService']=_0x4df4c1,this[_0x74a39f(0x3c1)]=_0x453a29,this[_0x74a39f(0x2b4)]());}[_0x42f461(0x442)](){const _0x123bf0=_0x42f461;super[_0x123bf0(0x442)](),this['_entities'][_0x123bf0(0x375)](_0x1cadfd=>_0x1cadfd['dispose']()),this['_entities'][_0x123bf0(0x21c)]();}[_0x42f461(0x31d)](_0x5506b0){const _0x1a88f0=_0x42f461;var _0x12fbac;return(_0x12fbac=this[_0x1a88f0(0x2c5)]['get'](_0x5506b0))!=null?_0x12fbac:null;}[_0x42f461(0x34b)](_0x2e9b4f){const _0x22388c=_0x42f461,_0x33ffde=this[_0x22388c(0x31d)](_0x2e9b4f);return _0x33ffde?v['of'](_0x33ffde):this[_0x22388c(0x1ae)]['pipe'](C[_0x22388c(0x357)](_0x416e29=>_0x416e29[_0x22388c(0x33c)]===_0x2e9b4f));}[_0x42f461(0x2b4)](){const _0x1e3958=_0x42f461;this[_0x1e3958(0x3c1)][_0x1e3958(0x283)](o[_0x1e3958(0x3a7)][_0x1e3958(0x23d)])['pipe'](v[_0x1e3958(0x174)](this[_0x1e3958(0x1b8)]),C[_0x1e3958(0xda)](0x10))['subscribe'](async _0x275bc7=>{const _0xd0a4f8=_0x1e3958,_0x4868e4=_0x275bc7[_0xd0a4f8(0x2d9)](),_0x5453ac=await this['_startCollaboration'](_0x4868e4,A[_0xd0a4f8(0x23d)]);this[_0xd0a4f8(0x2c5)][_0xd0a4f8(0x1c4)](_0x4868e4,_0x5453ac);}),this[_0x1e3958(0x3c1)]['getTypeOfUnitAdded$'](o[_0x1e3958(0x3a7)][_0x1e3958(0x46d)])['pipe'](v['takeUntil'](this[_0x1e3958(0x1b8)]),C[_0x1e3958(0xda)](0x10))[_0x1e3958(0x285)](C[_0x1e3958(0x357)](_0x12509e=>!_0x12509e[_0x1e3958(0x2d9)]()[_0x1e3958(0x31f)]('__')))[_0x1e3958(0x17e)](async _0x597d59=>{const _0x523d4a=_0x1e3958,_0x451f6a=_0x597d59[_0x523d4a(0x2d9)](),_0x13ecfe=await this[_0x523d4a(0x20b)](_0x451f6a,A[_0x523d4a(0x46d)]);this[_0x523d4a(0x2c5)][_0x523d4a(0x1c4)](_0x451f6a,_0x13ecfe);}),v[_0x1e3958(0x420)](this[_0x1e3958(0x3c1)][_0x1e3958(0x3c7)](o[_0x1e3958(0x3a7)][_0x1e3958(0x23d)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x1e3958(0x46d)]))[_0x1e3958(0x285)](v['takeUntil'](this['dispose$']))[_0x1e3958(0x17e)](_0x2febf2=>{const _0x5917f0=_0x1e3958,_0x2345a2=_0x2febf2[_0x5917f0(0x2d9)](),_0x210308=this[_0x5917f0(0x2c5)][_0x5917f0(0xc0)](_0x2345a2);_0x210308&&(_0x210308[_0x5917f0(0x442)](),this[_0x5917f0(0x2c5)][_0x5917f0(0x213)](_0x2345a2));});}async[_0x42f461(0x20b)](_0x56621c,_0x912719){const _0x2ea946=_0x42f461,_0x34a949=await this[_0x2ea946(0x34a)][_0x2ea946(0xf7)](_0x56621c),_0x5d0970=this[_0x2ea946(0x16e)][_0x2ea946(0x1ec)](this[_0x2ea946(0x1c7)](_0x912719),_0x56621c,_0x912719,_0x34a949);return await _0x5d0970['init'](),this['_entityInit$'][_0x2ea946(0x3b2)](_0x5d0970),_0x5d0970;}[_0x42f461(0x1c7)](_0x36de61){const _0x2a19bf=_0x42f461;switch(_0x36de61){case A['UNIVER_DOC']:return Le;case A[_0x2a19bf(0x23d)]:return exports[_0x2a19bf(0x2cb)];default:throw new Error(_0x2a19bf(0x3d0)+_0x36de61);}}},exports[_0x42f461(0x1f4)]=Ce([o['OnLifecycle'](o['LifecycleStages'][_0x42f461(0x1df)],exports[_0x42f461(0x1f4)]),I(0x0,o['Inject'](o[_0x42f461(0x13e)])),I(0x1,o[_0x42f461(0x1f3)](exports[_0x42f461(0x1bd)])),I(0x2,o[_0x42f461(0x237)])],exports[_0x42f461(0x1f4)]);let Ie=class extends o[_0x42f461(0x451)]{constructor(_0x16aa5f,_0x5267e2,_0x3f5e41,_0x5cfc3e,_0x289f16,_0x439afa,_0x38802a,_0x405a6d,_0x89cd5b,_0x5e5728,_0x532834,_0x2b0dff,_0x3f7143){const _0x271110=_0x42f461;super(),u(this,_0x271110(0x40e),new v['BehaviorSubject'](null)),u(this,'state$',this[_0x271110(0x40e)]['asObservable']()),u(this,'_state'),u(this,'_collaborationPaused',!0x1),u(this,'status$',this[_0x271110(0x3ee)][_0x271110(0x285)](C[_0x271110(0x145)](_0x22e466=>_0x22e466?_0x22e466[_0x271110(0x3bd)]:D[_0x271110(0x187)]),C[_0x271110(0x328)](0x1))),u(this,_0x271110(0x1d5),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x271110(0x33c)]=_0x16aa5f,this[_0x271110(0x20f)]=_0x5267e2,this[_0x271110(0x1ce)]=_0x3f5e41,this['_injector']=_0x5cfc3e,this[_0x271110(0x19f)]=_0x289f16,this['_compressMutationService']=_0x439afa,this[_0x271110(0x15c)]=_0x38802a,this[_0x271110(0x45b)]=_0x405a6d,this[_0x271110(0x313)]=_0x89cd5b,this[_0x271110(0x28d)]=_0x5e5728,this[_0x271110(0x45c)]=_0x532834,this[_0x271110(0xfa)]=_0x2b0dff,this[_0x271110(0x444)]=_0x3f7143);}get[_0x42f461(0x389)](){const _0x164018=_0x42f461;return this[_0x164018(0x475)];}async[_0x42f461(0x464)](){const _0x3154fd=_0x42f461;if(this[_0x3154fd(0x389)])throw new Error(_0x3154fd(0x3e9));await this[_0x3154fd(0x2b4)]();}[_0x42f461(0x1e5)](){const _0x5a68a0=_0x42f461;return this[_0x5a68a0(0x3f7)]=!0x0,o[_0x5a68a0(0x262)](()=>{const _0xd57f85=_0x5a68a0;this[_0xd57f85(0x3f7)]=!0x1,this[_0xd57f85(0x11a)]();});}['_updateState'](_0x283e65){const _0x1e65d5=_0x42f461;this['_state']=_0x283e65,this[_0x1e65d5(0x40e)][_0x1e65d5(0x3b2)](_0x283e65);}async[_0x42f461(0x2b4)](){const _0x2c329d=_0x42f461;var _0x5a2426;return this[_0x2c329d(0x141)](await this[_0x2c329d(0x3b5)]()),this['_singleActiveUnitService']&&((_0x5a2426=this[_0x2c329d(0x444)])==null||_0x5a2426[_0x2c329d(0x136)](this[_0x2c329d(0x33c)]),this['disposeWithMe'](o[_0x2c329d(0x262)](this['_singleActiveUnitService'][_0x2c329d(0x365)](this[_0x2c329d(0x33c)])[_0x2c329d(0x17e)](_0x4864d3=>{const _0x358536=_0x2c329d;this[_0x358536(0x313)][_0x358536(0x43b)](_0x358536(0x3cb),_0x358536(0x3ce),_0x4864d3),_0x4864d3===It[_0x358536(0x322)]?(this[_0x358536(0x45c)]['show']({'content':this['_localeService']['t']('collaboration.single-unit.warning'),'type':Z[_0x358536(0x2ad)][_0x358536(0x341)]}),this['_permissionService']['updatePermissionPoint'](new p[(_0x358536(0x194))](this[_0x358536(0x33c)])['id'],!0x1)):this[_0x358536(0xfa)][_0x358536(0x27b)](new p[(_0x358536(0x194))](this[_0x358536(0x33c)])['id'],!0x0);})))),this[_0x2c329d(0x2e2)](o[_0x2c329d(0x262)](this[_0x2c329d(0x1ce)][_0x2c329d(0x227)][_0x2c329d(0x17e)](_0x549bab=>{const _0x3af37a=_0x2c329d;_0x549bab===V[_0x3af37a(0x336)]?this[_0x3af37a(0xc6)]():_0x549bab===V['OFFLINE']&&this[_0x3af37a(0x178)]();}))),this[_0x2c329d(0x2e2)](o['toDisposable'](this['_session']['event$'][_0x2c329d(0x17e)](_0x5113cb=>{const _0x5be36a=_0x2c329d;try{switch(_0x5113cb[_0x5be36a(0x35a)]){case _[_0x5be36a(0x301)]['NEW_CHANGESETS']:{this[_0x5be36a(0x16d)](_[_0x5be36a(0x123)](_0x5113cb[_0x5be36a(0x407)]));break;}case _[_0x5be36a(0x301)][_0x5be36a(0x1d7)]:{this[_0x5be36a(0x2b9)](_0x5113cb['data']);break;}case _[_0x5be36a(0x301)][_0x5be36a(0x33d)]:{this['_onRemoteRejected']();break;}case _[_0x5be36a(0x301)][_0x5be36a(0x1a3)]:{this[_0x5be36a(0x321)](_0x5113cb['data']['changesets'][_0x5be36a(0x145)](_0x461da9=>_[_0x5be36a(0x123)](_0x461da9)));break;}case _['CollaborationEvent'][_0x5be36a(0x3f2)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x5427f9){throw console[_0x5be36a(0x34d)](_0x5be36a(0x1e4),_0x5427f9),_0x5427f9;}}))),this['_state'];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x2fa907=_0x42f461;if(this[_0x2fa907(0x1d5)])throw new Error(_0x2fa907(0x1f2));this[_0x2fa907(0x1d5)]=!0x0;}['_onLocalMutation'](_0x42a4e8){const _0x598698=_0x42f461;this[_0x598698(0x206)](),this[_0x598698(0x141)](this[_0x598698(0x475)][_0x598698(0x219)](_0x42a4e8)),this[_0x598698(0x1fe)]();}[_0x42f461(0x16d)](_0x121cab){const _0x513ce6=_0x42f461;if(!(_0x121cab[_0x513ce6(0x1ba)]<=this['_revisionService'][_0x513ce6(0x3b0)](this[_0x513ce6(0x33c)]))){if(this['_collaborationPaused']){this[_0x513ce6(0x22a)][_0x513ce6(0x302)](_0x121cab);return;}this[_0x513ce6(0x268)](_0x121cab);}}['_exhaustRemoteChangesetQueue'](){const _0xddccd7=_0x42f461;this[_0xddccd7(0x22a)][_0xddccd7(0x375)](_0x56ac6f=>this[_0xddccd7(0x268)](_0x56ac6f)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x94873a){const _0x452f60=_0x42f461,_0x471e2a=this[_0x452f60(0x276)]['interceptor'][_0x452f60(0x3dd)](this[_0x452f60(0x276)]['interceptor'][_0x452f60(0x434)]()[_0x452f60(0x198)])(_0x94873a[_0x452f60(0x132)],null)||_0x94873a[_0x452f60(0x132)],_0x42d34e={..._0x94873a,'mutations':_0x471e2a};this[_0x452f60(0x206)](),this[_0x452f60(0x141)](this['_state'][_0x452f60(0x370)](_0x42d34e)),this['_unlockTransition']();}[_0x42f461(0x2b9)](_0x432012){const _0x203f2c=_0x42f461;this[_0x203f2c(0x206)](),this['_updateState'](this['_state'][_0x203f2c(0x11f)](_0x432012)),this[_0x203f2c(0x1fe)]();}[_0x42f461(0x447)](_0x58af81){const _0x5c1a6f=_0x42f461;this[_0x5c1a6f(0x206)](),this[_0x5c1a6f(0x141)](this['_state'][_0x5c1a6f(0x2af)](_0x58af81)),this[_0x5c1a6f(0x1fe)]();}[_0x42f461(0x321)](_0x29e0c4){const _0x5d0ea9=_0x42f461;if(!(this[_0x5d0ea9(0x475)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x330f24=_0x29e0c4[_0x5d0ea9(0x145)](_0x45518e=>{const _0x4bbb61=_0x5d0ea9,_0x24c90c=this['_compressMutationService'][_0x4bbb61(0x2c2)][_0x4bbb61(0x3dd)](this[_0x4bbb61(0x276)]['interceptor'][_0x4bbb61(0x434)]()[_0x4bbb61(0x198)])(_0x45518e[_0x4bbb61(0x132)],null)||_0x45518e[_0x4bbb61(0x132)];return{..._0x45518e,'mutations':_0x24c90c};});this[_0x5d0ea9(0x206)](),this[_0x5d0ea9(0x141)](this[_0x5d0ea9(0x475)][_0x5d0ea9(0x261)](_0x330f24)),this[_0x5d0ea9(0x1fe)]();}[_0x42f461(0x178)](){const _0x3c91c2=_0x42f461;this[_0x3c91c2(0x206)](),this[_0x3c91c2(0x141)](this[_0x3c91c2(0x475)][_0x3c91c2(0xe4)]()),this[_0x3c91c2(0x1fe)]();}[_0x42f461(0xc6)](){const _0x48e3ec=_0x42f461;this[_0x48e3ec(0x206)](),this[_0x48e3ec(0x141)](this[_0x48e3ec(0x475)][_0x48e3ec(0x240)]()),this['_unlockTransition']();}async[_0x42f461(0x3b5)](){return new Promise(_0xb5d73b=>{const _0x3ec30a=_0x527e;this[_0x3ec30a(0x1ce)][_0x3ec30a(0x227)][_0x3ec30a(0x285)](C[_0x3ec30a(0x417)](0x1))[_0x3ec30a(0x17e)](async _0x5017f5=>{const _0x44f187=_0x3ec30a;_0xb5d73b(await this[_0x44f187(0x19b)](_0x5017f5===V[_0x44f187(0x336)]));});});}[_0x42f461(0x12e)](){const _0x298345=_0x42f461,_0x499ded=this[_0x298345(0x33c)];return{'onStateChange':(_0x5658f8,_0x20633e)=>{const _0x5676f5=_0x298345;if(_0x5658f8!==this['_state'])throw new Error(_0x5676f5(0x109)+_0x5658f8[_0x5676f5(0x3bd)]+_0x5676f5(0x428)+_0x20633e[_0x5676f5(0x3bd)]+_0x5676f5(0x1e2)+this['_state'][_0x5676f5(0x3bd)]);this[_0x5676f5(0x141)](_0x20633e);},'onSendChangeset':_0x1dca91=>{const _0x4911d3=_0x298345,_0xba7a5f={'eventID':_[_0x4911d3(0x301)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x1dca91[_0x4911d3(0x33c)],'unitType':this[_0x4911d3(0x20f)],'changeset':_0x1dca91,'memberID':this[_0x4911d3(0x1ce)][_0x4911d3(0x142)]()}};this['_session'][_0x4911d3(0x36d)](_0xba7a5f,this[_0x4911d3(0x33c)]);},'onMissingChangesets':({from:_0x49e9ab,to:_0x585a6e})=>{const _0x2c856f=_0x298345;this[_0x2c856f(0x313)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x49e9ab+'\x20to\x20'+_0x585a6e);const _0x5ab07b={'eventID':_['CollaborationEvent'][_0x2c856f(0x115)],'data':{'unitID':_0x499ded,'unitType':this['_type'],'from':_0x49e9ab,'to':_0x585a6e}};this[_0x2c856f(0x1ce)][_0x2c856f(0x36d)](_0x5ab07b,this['unitID']);}};}async['_createInitialStateImpl'](_0x38e89d){const _0x774d6b=_0x42f461;var _0x350a12,_0x59b0d5;const _0x351c34=await this[_0x774d6b(0x19f)]['loadOfflineData'](this['unitID']),_0x2b4675=(_0x350a12=_0x351c34==null?void 0x0:_0x351c34['mutations'])!=null?_0x350a12:[],_0x389e64=(_0x59b0d5=_0x351c34==null?void 0x0:_0x351c34[_0x774d6b(0x286)])!=null?_0x59b0d5:null,_0x21e847=this[_0x774d6b(0x33c)];try{this[_0x774d6b(0x152)](_0x389e64,_0x2b4675);}catch(_0x3cce63){this[_0x774d6b(0x313)]['error'](_0x3cce63);}const _0x2d266d=this['_createHandler']();if(_0x38e89d){const _0x242694=Et(this[_0x774d6b(0x16e)],_0x21e847,this[_0x774d6b(0x20f)],_0x389e64,_0x2b4675,_0x2d266d);return _0x242694 instanceof j?_0x242694[_0x774d6b(0x282)]():(_0x242694 instanceof $||_0x242694 instanceof x)&&_0x242694[_0x774d6b(0x3e8)](),_0x242694;}return this[_0x774d6b(0x16e)][_0x774d6b(0x1ec)](k,_0x21e847,this['_type'],_0x389e64,_0x2b4675,_0x2d266d);}['_replayCachedMutations'](_0x25ac00,_0x1d0036){const _0x1691c9=_0x42f461;var _0x25d467,_0x539512;const _0x5678ff=this[_0x1691c9(0x276)][_0x1691c9(0x2c2)][_0x1691c9(0x3dd)](this[_0x1691c9(0x276)][_0x1691c9(0x2c2)][_0x1691c9(0x434)]()['COMPRESS_MUTATION_APPLY']);(_0x25d467=_0x5678ff((_0x25ac00==null?void 0x0:_0x25ac00[_0x1691c9(0x132)])||[],null))==null||_0x25d467[_0x1691c9(0x375)](_0x585320=>this['_commandService']['executeCommand'](_0x585320['id'],_0x585320[_0x1691c9(0x2ec)])),(_0x539512=_0x5678ff(_0x1d0036||[],null))==null||_0x539512['forEach'](_0x4d630d=>this[_0x1691c9(0x28d)][_0x1691c9(0x117)](_0x4d630d['id'],_0x4d630d[_0x1691c9(0x2ec)]));}};Ie=Ce([I(0x3,o['Inject'](o[_0x42f461(0x13e)])),I(0x4,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),I(0x5,o['Inject'](_[_0x42f461(0xcb)])),I(0x6,o['Inject'](o['LocaleService'])),I(0x7,o[_0x42f461(0x1f3)](_[_0x42f461(0x482)])),I(0x8,o[_0x42f461(0x218)]),I(0x9,o[_0x42f461(0xff)]),I(0xa,M[_0x42f461(0x3f8)]),I(0xb,o[_0x42f461(0x114)]),I(0xc,o[_0x42f461(0x122)](Ee))],Ie);let Le=class extends Ie{constructor(_0x277e47,_0x4ef1ea,_0x1cccd2,_0x1afe38,_0xf82d05,_0x5f5729,_0x2c91db,_0x2db378,_0x45b3a9,_0xf778a3,_0x270d4a,_0x43d6c1,_0x7d0b0d,_0x42de37,_0x1afb2b,_0x5d92cc,_0x56eed0){const _0x3f6d17=_0x42f461;super(_0x277e47,_0x4ef1ea,_0x1cccd2,_0x1afe38,_0xf82d05,_0x5f5729,_0x2c91db,_0x2db378,_0x7d0b0d,_0x42de37,_0x1afb2b,_0x5d92cc,_0x56eed0),this[_0x3f6d17(0x33c)]=_0x277e47,this[_0x3f6d17(0x3b1)]=_0x4ef1ea,this['session']=_0x1cccd2,this[_0x3f6d17(0x474)]=_0x45b3a9,this[_0x3f6d17(0x2fb)]=_0xf778a3,this[_0x3f6d17(0x32f)]=_0x270d4a,this[_0x3f6d17(0x409)]=_0x43d6c1;}[_0x42f461(0x12e)](){const _0x565f1b=_0x42f461,_0x34e2a9=super[_0x565f1b(0x12e)]();return _0x34e2a9['onTransformIME']=_0x38f577=>this[_0x565f1b(0x2fb)][_0x565f1b(0x1c1)](_0x38f577),_0x34e2a9[_0x565f1b(0x154)]=_0x35f845=>this[_0x565f1b(0x32f)]['transformSelections'](_0x35f845),_0x34e2a9[_0x565f1b(0x388)]=_0x1c6f78=>this[_0x565f1b(0x409)]['syncEditingCollabCursor'](_0x1c6f78),_0x34e2a9[_0x565f1b(0x175)]=_0x2beedc=>this[_0x565f1b(0x2fb)][_0x565f1b(0x17d)](_0x2beedc),_0x34e2a9;}async[_0x42f461(0x2b4)](){const _0x454bdc=_0x42f461,_0xc96adb=await super[_0x454bdc(0x2b4)]();return this[_0x454bdc(0x474)][_0x454bdc(0x35f)][_0x454bdc(0x285)](v['takeUntil'](this['dispose$']))[_0x454bdc(0x17e)](_0x1cf26d=>{const _0x3dfe1a=_0x454bdc;if(_0x1cf26d==null)return;const {unitId:_0x3bf495,redoState:_0x2040d1,commandId:_0x819ec9}=_0x1cf26d;if(_0x3bf495!==this['unitID'])return;const _0x262a60={'id':_0x819ec9,'type':o[_0x3dfe1a(0x46b)][_0x3dfe1a(0x1e8)],'params':{'unitId':_0x3bf495,'actions':_0x2040d1[_0x3dfe1a(0x42c)],'textRanges':null}};this['_onLocalMutation'](_0x262a60);}),_0xc96adb;}};Le=Ce([I(0x3,o['Inject'](o['Injector'])),I(0x4,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),I(0x5,o[_0x42f461(0x1f3)](_[_0x42f461(0xcb)])),I(0x6,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)])),I(0x7,o[_0x42f461(0x1f3)](_['RevisionService'])),I(0x8,o[_0x42f461(0x1f3)](L['DocStateChangeManagerService'])),I(0x9,o[_0x42f461(0x1f3)](ge)),I(0xa,o[_0x42f461(0x1f3)](fe)),I(0xb,o[_0x42f461(0x1f3)](Be)),I(0xc,o[_0x42f461(0x218)]),I(0xd,o['ICommandService']),I(0xe,M['IMessageService']),I(0xf,o[_0x42f461(0x114)]),I(0x10,o[_0x42f461(0x122)](Ee))],Le),exports[_0x42f461(0x2cb)]=class extends Ie{constructor(_0x4732c0,_0xe6b005,_0x4509a5,_0x3f8218,_0x2f5048,_0x16485c,_0x863ed9,_0x49f175,_0x1d4312,_0xe6dd46,_0x38845e,_0x3fa030,_0x1e7016,_0x1d1b2f){const _0x2b5dd0=_0x42f461;super(_0x4732c0,_0xe6b005,_0x4509a5,_0x3f8218,_0x2f5048,_0x16485c,_0x863ed9,_0x49f175,_0xe6dd46,_0x38845e,_0x3fa030,_0x1e7016,_0x1d1b2f),this['unitID']=_0x4732c0,this[_0x2b5dd0(0x3b1)]=_0xe6b005,this['session']=_0x4509a5,this['_sheetTransformSelectionsService']=_0x1d4312;}['_createHandler'](){const _0x26cfcb=_0x42f461,_0x4df126=super[_0x26cfcb(0x12e)]();return _0x4df126[_0x26cfcb(0x154)]=_0x4e5928=>this['_sheetTransformSelectionsService'][_0x26cfcb(0x41e)](_0x4e5928),_0x4df126;}async[_0x42f461(0x2b4)](){const _0x165f66=_0x42f461,_0x178ed0=await super[_0x165f66(0x2b4)]();return this[_0x165f66(0x2e2)](this[_0x165f66(0x28d)][_0x165f66(0x2d7)]((_0x2c34c7,_0x476dec)=>{const _0x2440b0=_0x165f66;if(_0x2c34c7['type']!==o['CommandType'][_0x2440b0(0x1e8)]||_0x476dec!=null&&_0x476dec[_0x2440b0(0x245)]||_0x476dec!=null&&_0x476dec[_0x2440b0(0x159)])return;const _0x1b7a4e=_0x2c34c7[_0x2440b0(0x2ec)];if((_0x1b7a4e==null?void 0x0:_0x1b7a4e[_0x2440b0(0xc4)])!==this[_0x2440b0(0x33c)])return;const _0x726b5b=_0x2c34c7,_0x17ad60=this[_0x2440b0(0x276)][_0x2440b0(0x2c2)][_0x2440b0(0x3dd)](this[_0x2440b0(0x276)][_0x2440b0(0x2c2)][_0x2440b0(0x434)]()['COMPRESS_MUTATION_SEND'])([_0x726b5b],null)||[_0x726b5b];this[_0x2440b0(0x343)](_0x17ad60[0x0]);})),_0x178ed0;}},exports['SheetCollaborationEntity']=Ce([I(0x3,o['Inject'](o[_0x42f461(0x13e)])),I(0x4,o[_0x42f461(0x1f3)](exports[_0x42f461(0x3a0)])),I(0x5,o['Inject'](_[_0x42f461(0xcb)])),I(0x6,o[_0x42f461(0x1f3)](o['LocaleService'])),I(0x7,o[_0x42f461(0x1f3)](_[_0x42f461(0x482)])),I(0x8,o[_0x42f461(0x1f3)](me)),I(0x9,o['ILogService']),I(0xa,o[_0x42f461(0xff)]),I(0xb,M[_0x42f461(0x3f8)]),I(0xc,o[_0x42f461(0x114)]),I(0xd,o[_0x42f461(0x122)](Ee))],exports[_0x42f461(0x2cb)]);const Qe=['purple300','jiqing500',_0x42f461(0x17f),'red300',_0x42f461(0x457),'gold400'];class Fe extends o[_0x42f461(0x216)]{constructor(){const _0x1cee56=_0x42f461;super(...arguments),u(this,_0x1cee56(0x140),new Map()),u(this,_0x1cee56(0x241),0x0);}['assignAColorForMemberID'](_0x53b689){const _0x5eb1e6=_0x42f461;if(this[_0x5eb1e6(0x140)][_0x5eb1e6(0x208)](_0x53b689))return this[_0x5eb1e6(0x140)][_0x5eb1e6(0xc0)](_0x53b689);const _0x4c0ea2=Qe[this[_0x5eb1e6(0x241)]];return this[_0x5eb1e6(0x241)]=(this[_0x5eb1e6(0x241)]+0x1)%Qe[_0x5eb1e6(0x441)],this[_0x5eb1e6(0x140)]['set'](_0x53b689,_0x4c0ea2),_0x4c0ea2;}}var Ps=Object[_0x42f461(0x3c5)],Us=Object['getOwnPropertyDescriptor'],ys=(_0x40e487,_0xcf40f1,_0xc4f61e,_0x57a715)=>{const _0x52a994=_0x42f461;for(var _0x1daf79=_0x57a715>0x1?void 0x0:_0x57a715?Us(_0xcf40f1,_0xc4f61e):_0xcf40f1,_0x50df2f=_0x40e487[_0x52a994(0x441)]-0x1,_0x55bcb7;_0x50df2f>=0x0;_0x50df2f--)(_0x55bcb7=_0x40e487[_0x50df2f])&&(_0x1daf79=(_0x57a715?_0x55bcb7(_0xcf40f1,_0xc4f61e,_0x1daf79):_0x55bcb7(_0x1daf79))||_0x1daf79);return _0x57a715&&_0x1daf79&&Ps(_0xcf40f1,_0xc4f61e,_0x1daf79),_0x1daf79;},X=(_0x5ad730,_0x36cd2b)=>(_0x3b2d77,_0x36fc8a)=>_0x36cd2b(_0x3b2d77,_0x36fc8a,_0x5ad730);const ws=0x12c,Ls=0x64,Ms=()=>{let _0xc67fc0=[],_0x32b761=!0x1;return _0x4e4866=>{const _0x4c9736=_0x527e;_0xc67fc0[_0x4c9736(0x302)](_0x4e4866),_0x32b761||(_0x32b761=!0x0,setTimeout(()=>{const _0x574f63=_0x4c9736;_0xc67fc0[_0x574f63(0x375)](_0x4fe070=>_0x4fe070()),_0xc67fc0=[],_0x32b761=!0x1;}));};};let Me=class extends o[_0x42f461(0x451)]{constructor(_0x4bebc2,_0x378ad6,_0x30fde2,_0x2af41a,_0x2e1410,_0xfd2edc,_0x368dfd,_0x2ba6d2){const _0x23772d=_0x42f461;super(),u(this,_0x23772d(0x3fa),!0x1),u(this,_0x23772d(0x2b4),!0x1),u(this,_0x23772d(0x3bf),new v[(_0x23772d(0x151))](new Map())),u(this,_0x23772d(0x209),this[_0x23772d(0x3bf)][_0x23772d(0xbc)]()),u(this,'_roomMembers$',new v[(_0x23772d(0x151))]([])),u(this,_0x23772d(0x172),this[_0x23772d(0xbf)]['pipe'](v[_0x23772d(0x2a1)](ws))),u(this,_0x23772d(0x410),je((_0x13cbee,_0x4f7775)=>{const _0x4c8ba3=_0x23772d,_0x4a1284={'eventID':_[_0x4c8ba3(0x301)][_0x4c8ba3(0x102)],'data':{'unitID':this[_0x4c8ba3(0x33c)],'memberID':this['_session'][_0x4c8ba3(0x142)](),'selection':Ge[_0x4c8ba3(0x281)](_0x13cbee,_0x4f7775[_0x4c8ba3(0x372)])}};this[_0x4c8ba3(0x1ce)]['send'](_0x4a1284,this[_0x4c8ba3(0x33c)]);},Ls)),(this[_0x23772d(0x33c)]=_0x4bebc2,this[_0x23772d(0x1ce)]=_0x378ad6,this[_0x23772d(0x16e)]=_0x30fde2,this[_0x23772d(0x390)]=_0x2af41a,this[_0x23772d(0x2d2)]=_0x2e1410,this[_0x23772d(0x3c1)]=_0xfd2edc,this['_commandService']=_0x368dfd,this['_refRangeService']=_0x2ba6d2);}get[_0x42f461(0x2b8)](){const _0x7a442e=_0x42f461;return this[_0x7a442e(0x3bf)][_0x7a442e(0x1da)]();}get[_0x42f461(0x203)](){const _0x2d1236=_0x42f461;return this[_0x2d1236(0xbf)][_0x2d1236(0x1da)]();}[_0x42f461(0x442)](){const _0x5b0cc0=_0x42f461;super['dispose'](),this[_0x5b0cc0(0x3bf)][_0x5b0cc0(0x3b2)](new Map()),this['_cursorInfo$'][_0x5b0cc0(0x14d)](),this[_0x5b0cc0(0xbf)][_0x5b0cc0(0x3b2)]([]),this[_0x5b0cc0(0xbf)]['complete']();}[_0x42f461(0x464)](){const _0x1782d9=_0x42f461;this[_0x1782d9(0x2b4)]||(this[_0x1782d9(0x2b4)]=!0x0,this[_0x1782d9(0x1ce)]['sessionStatus$'][_0x1782d9(0x285)](v[_0x1782d9(0x174)](this['dispose$']))[_0x1782d9(0x17e)](_0x52361d=>{_0x52361d===V['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x1782d9(0x1ce)][_0x1782d9(0x35d)][_0x1782d9(0x285)](v['takeUntil'](this['dispose$']))[_0x1782d9(0x17e)](_0x4f7382=>{const _0x215514=_0x1782d9,_0x5ee700=_0x4f7382['eventID'];_0x5ee700===_[_0x215514(0x301)][_0x215514(0x102)]&&this[_0x215514(0x23b)](_0x4f7382),_0x5ee700===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x215514(0x369)](_0x4f7382);}),this[_0x1782d9(0x153)](),this[_0x1782d9(0x2e2)](this[_0x1782d9(0x28d)][_0x1782d9(0x2d7)](_0x15d49e=>{const _0x259d9c=_0x1782d9;if(this[_0x259d9c(0x3fa)]&&_0x15d49e['id']===p[_0x259d9c(0x43e)]['id']&&_0x15d49e[_0x259d9c(0x2ec)][_0x259d9c(0xc4)]===this['unitID']){const _0xfe24c=_0x15d49e[_0x259d9c(0x2ec)];this[_0x259d9c(0x410)](_0xfe24c['subUnitId'],_0xfe24c[_0x259d9c(0x1c0)][0x0]);}})));}[_0x42f461(0x23b)](_0x44f17d){const _0x511f7c=_0x42f461;var _0x2244ed,_0x18c44a;const {memberID:_0x5f4e07,selection:_0x3c4607}=_0x44f17d[_0x511f7c(0x407)],{sheetName:_0x2abc57,range:_0x1cdb57}=Ge[_0x511f7c(0x353)](_0x3c4607),_0x3f1f5d={'name':(_0x18c44a=(_0x2244ed=this[_0x511f7c(0x2d2)][_0x511f7c(0x297)](this['unitID'],_0x5f4e07))==null?void 0x0:_0x2244ed[_0x511f7c(0x1a0)])!=null?_0x18c44a:_0x511f7c(0x333),'range':this[_0x511f7c(0x347)](_0x2abc57,_0x1cdb57),'sheetID':_0x2abc57,'color':this['_colorAssignService'][_0x511f7c(0x30d)](_0x5f4e07),'selection':_0x3c4607},_0x23245d=this[_0x511f7c(0x2b8)];_0x23245d[_0x511f7c(0x1c4)](_0x5f4e07,_0x3f1f5d),this[_0x511f7c(0x3bf)][_0x511f7c(0x3b2)](_0x23245d);}[_0x42f461(0x369)](_0x5a4082){const _0x4753a2=_0x42f461,{memberID:_0x2a07bb}=_0x5a4082[_0x4753a2(0x407)],_0x30b9e6=this['cursorInfo'];_0x30b9e6[_0x4753a2(0x213)](_0x2a07bb),this[_0x4753a2(0x3bf)][_0x4753a2(0x3b2)](_0x30b9e6);}['_getMergeRange'](_0x2ebb94,_0x296cab){const _0x16547e=_0x42f461;var _0xd4c78e,_0x3bb5d2;const _0xbc5c29=(_0x3bb5d2=(_0xd4c78e=this[_0x16547e(0x3c1)][_0x16547e(0x346)](this[_0x16547e(0x33c)]))==null?void 0x0:_0xd4c78e[_0x16547e(0x135)](_0x2ebb94))==null?void 0x0:_0x3bb5d2['getMergeData']();return(_0xbc5c29==null?void 0x0:_0xbc5c29[_0x16547e(0x3d5)](_0x5a36d7=>o[_0x16547e(0x36f)]['contains'](_0x5a36d7,_0x296cab)))||_0x296cab;}['_onRefRangeChange'](){const _0x9896fc=_0x42f461,_0x31e584=new o[(_0x9896fc(0x3f6))](),_0x49e80f=Ms(),_0x1734c=()=>{const _0x44aee1=_0x9896fc;_0x31e584['dispose']();const _0x4c710c=(_0x2a3028,_0x5bd6ef,_0x2d7685,_0x58a041)=>{const _0x25d13e=_0x527e;let _0x378914=[];switch(_0x2a3028['id']){case p[_0x25d13e(0xec)]['DeleteRangeMoveLeftCommandId']:{_0x378914=p[_0x25d13e(0x386)](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0x3da)]:{_0x378914=p['handleDeleteRangeMoveUp'](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0x150)]:{_0x378914=p['handleInsertCol'](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0x30e)]:{_0x378914=p[_0x25d13e(0x3ec)](_0x2a3028,_0x58a041);break;}case p['EffectRefRangId'][_0x25d13e(0x25c)]:{_0x378914=p[_0x25d13e(0x3ef)](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0xfc)]:{_0x378914=p['handleInsertRow'](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0x38e)]:{_0x378914=p[_0x25d13e(0x44a)](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)][_0x25d13e(0x186)]:{_0x378914=p[_0x25d13e(0xd7)](_0x2a3028,_0x58a041);break;}case p[_0x25d13e(0xec)]['RemoveRowCommandId']:{_0x378914=p[_0x25d13e(0x101)](_0x2a3028,_0x58a041);break;}}const _0x20dd05=p[_0x25d13e(0x34c)](_0x378914,_0x58a041),_0xeeeaba=this[_0x25d13e(0x2b8)]['get'](_0x5bd6ef);if(_0xeeeaba&&_0x20dd05){const _0x93d6a3={..._0xeeeaba,'range':_0x20dd05};this['cursorInfo'][_0x25d13e(0x1c4)](_0x5bd6ef,_0x93d6a3),_0x49e80f(()=>{const _0x1e4f5a=_0x25d13e,_0x22b7a7=this[_0x1e4f5a(0x273)][_0x1e4f5a(0x2c6)](_0x20dd05,_0x50a922=>(_0x22b7a7[_0x1e4f5a(0x442)](),_0x4c710c(_0x50a922,_0x5bd6ef,_0x2d7685,_0x20dd05)));_0x31e584[_0x1e4f5a(0x1eb)](_0x22b7a7);});}return{'redos':[],'undos':[]};};this[_0x44aee1(0x2b8)][_0x44aee1(0x375)]((_0x1e1ea5,_0x448cb0)=>{const _0x9e79fb=_0x44aee1,{range:_0x526c6f,sheetID:_0x14ce5b}=_0x1e1ea5,_0x4c2fd4=this[_0x9e79fb(0x273)][_0x9e79fb(0x2c6)](_0x526c6f,_0x3fc311=>(_0x4c2fd4[_0x9e79fb(0x442)](),_0x4c710c(_0x3fc311,_0x448cb0,_0x14ce5b,_0x526c6f)));_0x31e584['add'](_0x4c2fd4);});};this['disposeWithMe'](o[_0x9896fc(0x262)](this[_0x9896fc(0x3bf)]['subscribe'](()=>{_0x1734c();})));}['_toggleOnline'](){const _0x2623bb=_0x42f461;var _0x3a3104,_0x29fd64;if(this['_online']=!0x0,((_0x3a3104=this[_0x2623bb(0x3c1)][_0x2623bb(0xcc)]())==null?void 0x0:_0x3a3104['getUnitId']())!==this['unitID'])return;const _0x14ffaf=(_0x29fd64=this['_injector']['get'](p[_0x2623bb(0x421)])[_0x2623bb(0x2c9)]())==null?void 0x0:_0x29fd64[0x0],_0x59bb29=this[_0x2623bb(0x3c1)][_0x2623bb(0x2fa)](o[_0x2623bb(0x3a7)][_0x2623bb(0x23d)])['getActiveSheet']();_0x14ffaf&&_0x59bb29&&this['_updateLocalCursor'](_0x59bb29['getSheetId'](),_0x14ffaf);}[_0x42f461(0x178)](){const _0xce3cf0=_0x42f461;this[_0xce3cf0(0x3fa)]=!0x1;}};Me=ys([X(0x2,o['Inject'](o['Injector'])),X(0x3,o[_0x42f461(0x1f3)](Fe)),X(0x4,o['Inject'](W)),X(0x5,o['IUniverInstanceService']),X(0x6,o[_0x42f461(0xff)]),X(0x7,o[_0x42f461(0x1f3)](p[_0x42f461(0x2e9)]))],Me);var Ns=Object[_0x42f461(0x3c5)],As=Object['getOwnPropertyDescriptor'],js=(_0xdd4659,_0x54fbf4,_0xf64455,_0x4c4381)=>{const _0x418956=_0x42f461;for(var _0x8888b2=_0x4c4381>0x1?void 0x0:_0x4c4381?As(_0x54fbf4,_0xf64455):_0x54fbf4,_0x560a93=_0xdd4659[_0x418956(0x441)]-0x1,_0x15f50a;_0x560a93>=0x0;_0x560a93--)(_0x15f50a=_0xdd4659[_0x560a93])&&(_0x8888b2=(_0x4c4381?_0x15f50a(_0x54fbf4,_0xf64455,_0x8888b2):_0x15f50a(_0x8888b2))||_0x8888b2);return _0x4c4381&&_0x8888b2&&Ns(_0x54fbf4,_0xf64455,_0x8888b2),_0x8888b2;},F=(_0x885a8f,_0x1c3781)=>(_0x4fc76d,_0x5a6bcd)=>_0x1c3781(_0x4fc76d,_0x5a6bcd,_0x885a8f);const $s=0x12c,Hs=0x64;let Ne=class extends o['RxDisposable']{constructor(_0x26bf5d,_0x2db998,_0x46cb76,_0x3655ce,_0x3a579a,_0x342e84,_0xfaa224,_0x5a579,_0x35ca13){const _0x9adc3a=_0x42f461;super(),u(this,_0x9adc3a(0x3fa),!0x1),u(this,_0x9adc3a(0x2b4),!0x1),u(this,_0x9adc3a(0x3bf),new v['BehaviorSubject'](new Map())),u(this,_0x9adc3a(0x209),this[_0x9adc3a(0x3bf)][_0x9adc3a(0xbc)]()),u(this,_0x9adc3a(0xbf),new v['BehaviorSubject']([])),u(this,_0x9adc3a(0x172),this[_0x9adc3a(0xbf)][_0x9adc3a(0x285)](v['debounceTime']($s))),u(this,_0x9adc3a(0x410),je(_0x356de1=>{const _0x37d831=_0x9adc3a,_0x1619f5={'eventID':_[_0x37d831(0x301)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x37d831(0x33c)],'memberID':this[_0x37d831(0x1ce)][_0x37d831(0x142)](),'selection':pt(_0x356de1)}};this[_0x37d831(0x1ce)][_0x37d831(0x36d)](_0x1619f5,this['unitID']);},Hs)),(this[_0x9adc3a(0x33c)]=_0x26bf5d,this['_session']=_0x2db998,this[_0x9adc3a(0x16e)]=_0x46cb76,this[_0x9adc3a(0x390)]=_0x3655ce,this[_0x9adc3a(0x2d2)]=_0x3a579a,this[_0x9adc3a(0x197)]=_0x342e84,this[_0x9adc3a(0x269)]=_0xfaa224,this[_0x9adc3a(0x3c1)]=_0x5a579,this[_0x9adc3a(0x28d)]=_0x35ca13);}get[_0x42f461(0x2b8)](){const _0x1017cf=_0x42f461;return this['_cursorInfo$'][_0x1017cf(0x1da)]();}get[_0x42f461(0x203)](){const _0x4bc752=_0x42f461;return this[_0x4bc752(0xbf)][_0x4bc752(0x1da)]();}[_0x42f461(0x442)](){const _0x35aab7=_0x42f461;super[_0x35aab7(0x442)](),this[_0x35aab7(0x3bf)][_0x35aab7(0x3b2)](new Map()),this['_cursorInfo$'][_0x35aab7(0x14d)](),this['_roomMembers$'][_0x35aab7(0x3b2)]([]),this['_roomMembers$']['complete']();}[_0x42f461(0x464)](){const _0x1e9bb5=_0x42f461;this[_0x1e9bb5(0x2b4)]||(this['_init']=!0x0,this[_0x1e9bb5(0x1ce)][_0x1e9bb5(0x227)][_0x1e9bb5(0x285)](v[_0x1e9bb5(0x174)](this[_0x1e9bb5(0x1b8)]))['subscribe'](_0x17af78=>{const _0x59d0af=_0x1e9bb5;_0x17af78===V[_0x59d0af(0x336)]?this[_0x59d0af(0xc6)]():this[_0x59d0af(0x178)]();}),this['_session']['event$'][_0x1e9bb5(0x285)](v[_0x1e9bb5(0x174)](this[_0x1e9bb5(0x1b8)]))[_0x1e9bb5(0x17e)](_0x1c639b=>{const _0x4981c6=_0x1e9bb5,_0x5d5206=_0x1c639b[_0x4981c6(0x35a)];_0x5d5206===_[_0x4981c6(0x301)]['UPDATE_CURSOR']&&this[_0x4981c6(0x23b)](_0x1c639b),_0x5d5206===_[_0x4981c6(0x301)][_0x4981c6(0x427)]&&this[_0x4981c6(0x369)](_0x1c639b);}),this[_0x1e9bb5(0x2e2)](this[_0x1e9bb5(0x28d)][_0x1e9bb5(0x2d7)](_0x43cbdf=>{const _0x3c59e1=_0x1e9bb5,_0xb203ac=_0x43cbdf['params'];_0xb203ac!=null&&this[_0x3c59e1(0x3fa)]&&_0x43cbdf['id']===L[_0x3c59e1(0x378)]['id']&&_0xb203ac['unitId']===this[_0x3c59e1(0x33c)]&&_0xb203ac[_0x3c59e1(0x359)]===!0x1&&this[_0x3c59e1(0x410)](_0xb203ac[_0x3c59e1(0x1af)]);})),this[_0x1e9bb5(0x197)][_0x1e9bb5(0x3c0)][_0x1e9bb5(0x285)](v[_0x1e9bb5(0x174)](this['dispose$']))[_0x1e9bb5(0x17e)](_0x3a358c=>{const _0x371fc6=_0x1e9bb5;if((_0x3a358c==null?void 0x0:_0x3a358c[_0x371fc6(0x33c)])!==this[_0x371fc6(0x33c)])return;const _0x345d12={'eventID':_[_0x371fc6(0x301)][_0x371fc6(0x102)],'data':_0x3a358c};this[_0x371fc6(0x23b)](_0x345d12);}),this[_0x1e9bb5(0x2e2)](this[_0x1e9bb5(0x28d)][_0x1e9bb5(0x2d7)](_0x1acc34=>{const _0x5060ea=_0x1e9bb5;if(_0x1acc34[_0x5060ea(0x2ec)]==null)return;const _0x587b35=_0x1acc34[_0x5060ea(0x2ec)];if(_0x1acc34['id']!==L[_0x5060ea(0x133)]['id']||_0x587b35[_0x5060ea(0xc4)]!==this[_0x5060ea(0x33c)])return;const _0x300fbd={'id':_0x5060ea(0x30a),'params':_0x587b35},_0x4983b0=this[_0x5060ea(0x2b8)];for(const [_0x4d74b7,_0x4679bc]of _0x4983b0){const _0x2aa0b1={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x5060ea(0x33c)],'actions':null,'textRanges':_0x4679bc['ranges']}},_0x1ebfb9=this['_transformService'][_0x5060ea(0x129)](_0x300fbd,_0x2aa0b1,!0x1);if(_[_0x5060ea(0x164)](_0x1ebfb9))throw _0x1ebfb9['error'];_0x4983b0[_0x5060ea(0x1c4)](_0x4d74b7,{..._0x4679bc,'ranges':_0x1ebfb9[_0x5060ea(0x166)][_0x5060ea(0x2ec)][_0x5060ea(0x30f)]});}queueMicrotask(()=>{const _0x718b03=_0x5060ea;this[_0x718b03(0x3bf)][_0x718b03(0x3b2)](_0x4983b0);});})));}['_onCursorUpdate'](_0x3e9668){const _0x1dd53d=_0x42f461;var _0x173a31,_0x423194;const {memberID:_0x3dc7a3,selection:_0x59cc51}=_0x3e9668[_0x1dd53d(0x407)],_0x1d9074=gs(_0x59cc51),_0x2f3474=(_0x423194=(_0x173a31=this['_memberService'][_0x1dd53d(0x297)](this[_0x1dd53d(0x33c)],_0x3dc7a3))==null?void 0x0:_0x173a31['name'])!=null?_0x423194:_0x1dd53d(0x333),_0x2977a7={'color':this[_0x1dd53d(0x390)][_0x1dd53d(0x30d)](_0x3dc7a3),'name':_0x2f3474,'ranges':_0x1d9074},_0x5d838b=this['cursorInfo'];_0x5d838b[_0x1dd53d(0x1c4)](_0x3dc7a3,_0x2977a7),this[_0x1dd53d(0x3bf)]['next'](_0x5d838b);}['_onCursorDelete'](_0x2ff438){const _0x30e62f=_0x42f461,{memberID:_0x4f58b1}=_0x2ff438[_0x30e62f(0x407)],_0x15da6b=this[_0x30e62f(0x2b8)];_0x15da6b[_0x30e62f(0x213)](_0x4f58b1),this[_0x30e62f(0x3bf)][_0x30e62f(0x3b2)](_0x15da6b);}['_toggleOnline'](){const _0x42dae8=_0x42f461;var _0x2e3d73;if(this[_0x42dae8(0x3fa)]=!0x0,((_0x2e3d73=this['_univerInstanceService'][_0x42dae8(0xcc)]())==null?void 0x0:_0x2e3d73[_0x42dae8(0x2d9)]())!==this['unitID'])return;const _0x16f215=this[_0x42dae8(0x16e)][_0x42dae8(0xc0)](L[_0x42dae8(0xce)])[_0x42dae8(0x2c9)](),_0x3a55df=_0x16f215==null?void 0x0:_0x16f215[_0x42dae8(0x145)](L[_0x42dae8(0x14e)]);Array['isArray'](_0x3a55df)&&_0x3a55df[_0x42dae8(0x441)]>0x0&&this[_0x42dae8(0x410)](_0x3a55df);}[_0x42f461(0x178)](){const _0x412838=_0x42f461;this[_0x412838(0x3fa)]=!0x1;}};Ne=js([F(0x2,o['Inject'](o[_0x42f461(0x13e)])),F(0x3,o[_0x42f461(0x1f3)](Fe)),F(0x4,o[_0x42f461(0x1f3)](W)),F(0x5,o[_0x42f461(0x1f3)](Be)),F(0x6,_[_0x42f461(0x37b)]),F(0x7,o[_0x42f461(0x237)]),F(0x8,o[_0x42f461(0xff)])],Ne);var xs=Object['defineProperty'],ks=Object[_0x42f461(0x1b1)],Bs=(_0x25b67e,_0x449227,_0x3324cf,_0x49fc77)=>{for(var _0x16dc99=_0x49fc77>0x1?void 0x0:_0x49fc77?ks(_0x449227,_0x3324cf):_0x449227,_0x2eb532=_0x25b67e['length']-0x1,_0x3579f1;_0x2eb532>=0x0;_0x2eb532--)(_0x3579f1=_0x25b67e[_0x2eb532])&&(_0x16dc99=(_0x49fc77?_0x3579f1(_0x449227,_0x3324cf,_0x16dc99):_0x3579f1(_0x16dc99))||_0x16dc99);return _0x49fc77&&_0x16dc99&&xs(_0x449227,_0x3324cf,_0x16dc99),_0x16dc99;},De=(_0x4ca5d4,_0x3e3472)=>(_0x35595d,_0x111158)=>_0x3e3472(_0x35595d,_0x111158,_0x4ca5d4);let z=class extends o[_0x42f461(0x451)]{constructor(_0x2c712d,_0x268a4b,_0xb1d993){const _0x2e9abf=_0x42f461;super(),u(this,_0x2e9abf(0x2c5),new Map()),u(this,_0x2e9abf(0x1ae),new v[(_0x2e9abf(0x26e))]()),(this[_0x2e9abf(0x3c1)]=_0x2c712d,this['_injector']=_0x268a4b,this[_0x2e9abf(0x34a)]=_0xb1d993,this[_0x2e9abf(0x2b4)]());}[_0x42f461(0x442)](){const _0x1c190b=_0x42f461;super['dispose'](),this[_0x1c190b(0x1ae)][_0x1c190b(0x14d)](),this[_0x1c190b(0x2c5)][_0x1c190b(0x375)](_0xca4032=>_0xca4032[_0x1c190b(0x442)]());}[_0x42f461(0x416)](_0x374e79){const _0x4ad905=_0x42f461;return this[_0x4ad905(0x2c5)]['has'](_0x374e79)?this[_0x4ad905(0x2c5)][_0x4ad905(0xc0)](_0x374e79)[_0x4ad905(0x209)]:this['_entityInit$'][_0x4ad905(0x285)](v[_0x4ad905(0x357)](_0x1095d7=>_0x1095d7[_0x4ad905(0x33c)]===_0x374e79),v[_0x4ad905(0xe5)](_0x7dcee3=>_0x7dcee3['cursorInfo$']));}[_0x42f461(0x2b4)](){const _0x245502=_0x42f461;this[_0x245502(0x3c1)][_0x245502(0x283)](o['UniverInstanceType'][_0x245502(0x23d)])[_0x245502(0x285)](v[_0x245502(0x174)](this['dispose$']))['subscribe'](async _0x4baba6=>{const _0xa55744=_0x245502,_0x436045=_0x4baba6[_0xa55744(0x2d9)](),_0x46e459=await this[_0xa55744(0x29d)](_0x436045);this[_0xa55744(0x1ae)][_0xa55744(0x3b2)](_0x46e459),this['_entities'][_0xa55744(0x1c4)](_0x436045,_0x46e459);}),this[_0x245502(0x3c1)][_0x245502(0x283)](o[_0x245502(0x3a7)][_0x245502(0x46d)])[_0x245502(0x285)](v[_0x245502(0x174)](this[_0x245502(0x1b8)]))[_0x245502(0x285)](v['filter'](_0xc84be0=>!_0xc84be0['getUnitId']()[_0x245502(0x31f)]('__')))[_0x245502(0x17e)](async _0x503128=>{const _0x5dc334=_0x245502,_0x1868e1=_0x503128['getUnitId'](),_0x23e3dc=await this['_startDocCollabCursor'](_0x1868e1);this[_0x5dc334(0x1ae)][_0x5dc334(0x3b2)](_0x23e3dc),this[_0x5dc334(0x2c5)][_0x5dc334(0x1c4)](_0x1868e1,_0x23e3dc);}),v[_0x245502(0x420)](this[_0x245502(0x3c1)]['getTypeOfUnitDisposed$'](o[_0x245502(0x3a7)]['UNIVER_DOC']),this[_0x245502(0x3c1)][_0x245502(0x3c7)](o[_0x245502(0x3a7)][_0x245502(0x23d)]))[_0x245502(0x285)](v[_0x245502(0x174)](this[_0x245502(0x1b8)]))[_0x245502(0x17e)](_0x2174ba=>{const _0x51b19a=_0x245502,_0x145b92=_0x2174ba[_0x51b19a(0x2d9)](),_0x37cf3e=this['_entities'][_0x51b19a(0xc0)](_0x145b92);_0x37cf3e&&(_0x37cf3e[_0x51b19a(0x442)](),this['_entities'][_0x51b19a(0x213)](_0x145b92));});}async[_0x42f461(0x29d)](_0x32e5a3){const _0x674188=_0x42f461,_0x4ab50b=await this[_0x674188(0x34a)]['requireSession'](_0x32e5a3),_0x57e6cc=this[_0x674188(0x16e)][_0x674188(0x1ec)](Me,_0x32e5a3,_0x4ab50b);return _0x57e6cc[_0x674188(0x464)](),_0x57e6cc;}async[_0x42f461(0x229)](_0x23bb38){const _0x572560=_0x42f461,_0x281775=await this[_0x572560(0x34a)][_0x572560(0xf7)](_0x23bb38),_0x3d5e99=this[_0x572560(0x16e)][_0x572560(0x1ec)](Ne,_0x23bb38,_0x281775);return _0x3d5e99[_0x572560(0x464)](),_0x3d5e99;}};z=Bs([o[_0x42f461(0x25d)](o['LifecycleStages'][_0x42f461(0x1df)],z),De(0x0,o[_0x42f461(0x237)]),De(0x1,o['Inject'](o[_0x42f461(0x13e)])),De(0x2,o[_0x42f461(0x1f3)](exports[_0x42f461(0x1bd)]))],z);const ce=0x14,et=0xc8,Pe=0x4,Fs=0x5;function Vs(_0x4985f2,_0x58eae3){const _0x13bc8b=_0x42f461;let {radius:_0x49df6e,width:_0x46a223,height:_0x130f88}=_0x58eae3;_0x49df6e=_0x49df6e!=null?_0x49df6e:0x0,_0x46a223=_0x46a223!=null?_0x46a223:0x1e,_0x130f88=_0x130f88!=null?_0x130f88:0x1e;let _0x33fddd=0x0,_0x59a251=0x0,_0x3ad2c4=0x0;_0x33fddd=_0x59a251=_0x3ad2c4=Math['min'](_0x49df6e,_0x46a223/0x2,_0x130f88/0x2),_0x4985f2[_0x13bc8b(0x2bd)](),_0x4985f2[_0x13bc8b(0x1a5)](_0x33fddd,0x0),_0x4985f2[_0x13bc8b(0x3f9)](_0x46a223-_0x59a251,0x0),_0x4985f2[_0x13bc8b(0x3e1)](_0x46a223-_0x59a251,_0x59a251,_0x59a251,Math['PI']*0x3/0x2,0x0,!0x1),_0x4985f2[_0x13bc8b(0x3f9)](_0x46a223,_0x130f88-_0x3ad2c4),_0x4985f2['arc'](_0x46a223-_0x3ad2c4,_0x130f88-_0x3ad2c4,_0x3ad2c4,0x0,Math['PI']/0x2,!0x1),_0x4985f2[_0x13bc8b(0x3f9)](0x0,_0x130f88),_0x4985f2[_0x13bc8b(0x3f9)](0x0,_0x33fddd),_0x4985f2[_0x13bc8b(0x3e1)](_0x33fddd,_0x33fddd,_0x33fddd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4985f2[_0x13bc8b(0x121)](),_0x58eae3[_0x13bc8b(0xfb)]&&(_0x4985f2['save'](),_0x4985f2['fillStyle']=_0x58eae3[_0x13bc8b(0xfb)],_0x58eae3[_0x13bc8b(0x397)]===_0x13bc8b(0x39a)?_0x4985f2[_0x13bc8b(0xfb)]('evenodd'):_0x4985f2[_0x13bc8b(0xfb)](),_0x4985f2[_0x13bc8b(0x2e7)]());}class be extends T[_0x42f461(0x24e)]{constructor(_0x582ab6,_0x43694a){const _0x408a02=_0x42f461;super(_0x582ab6,_0x43694a),u(this,'color'),u(this,_0x408a02(0x1ca)),(this['color']=_0x43694a==null?void 0x0:_0x43694a[_0x408a02(0x12c)],this[_0x408a02(0x1ca)]=_0x43694a==null?void 0x0:_0x43694a['text']);}static[_0x42f461(0x13a)](_0x38de89,_0xb14542){const _0x13b8a9=_0x42f461,{text:_0x17dbfa,color:_0x3d67a9}=_0xb14542;_0x38de89[_0x13b8a9(0x26b)](),_0x38de89[_0x13b8a9(0x2dc)]=_0x13b8a9(0x2c0);const _0x2fc21f=_0x38de89['measureText'](_0x17dbfa)[_0x13b8a9(0x280)],_0x3936e2=Math[_0x13b8a9(0x2b6)](_0x2fc21f+0x2*Pe,et);Vs(_0x38de89,{'height':ce,'radius':0x4,'width':_0x3936e2,'fill':_0x3d67a9,'evented':!0x1}),_0x38de89[_0x13b8a9(0x239)]=_0x13b8a9(0x36e);const _0x5e2a22=Pe,_0x4a0a92=ce-Fs,_0xf441c1=et-0x2*Pe;if(_0x2fc21f>_0xf441c1){let _0x4a2251='',_0x32d2c7=0x0;for(const _0x6d9471 of _0x17dbfa){const _0x1e8c5d=_0x38de89[_0x13b8a9(0x160)](_0x6d9471)[_0x13b8a9(0x280)];if(_0x32d2c7+_0x1e8c5d<=_0xf441c1-_0x38de89[_0x13b8a9(0x160)]('...')[_0x13b8a9(0x280)])_0x4a2251+=_0x6d9471,_0x32d2c7+=_0x1e8c5d;else{_0x4a2251+='...';break;}}_0x38de89[_0x13b8a9(0x360)](_0x4a2251,_0x5e2a22,_0x4a0a92);}else _0x38de89[_0x13b8a9(0x360)](_0x17dbfa,_0x5e2a22,_0x4a0a92);_0x38de89['restore']();}[_0x42f461(0x32a)](_0x318564){const _0x467724=_0x42f461;be[_0x467724(0x13a)](_0x318564,this);}}const Ws=0x1,Gs=1.5;class Ct extends T['Shape']{constructor(_0x7280ae,_0x2da723){const _0xcb93cc=_0x42f461;super(_0x7280ae,_0x2da723),u(this,_0xcb93cc(0x371)),u(this,'_hovered',!0x1),u(this,_0xcb93cc(0x254)),u(this,_0xcb93cc(0x2ac),''),u(this,_0xcb93cc(0x383),_0xcb93cc(0x1dc)),u(this,'_backgroundColor'),(_0x2da723&&this[_0xcb93cc(0x212)](_0x2da723),this[_0xcb93cc(0x185)][_0xcb93cc(0x31e)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0xcb93cc(0x2db)][_0xcb93cc(0x31e)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x42f461(0x212)](_0x56bd5a){const _0x48309f=_0x42f461;var _0x4afe67,_0x4e21fc,_0xc5a8e4,_0x373325,_0x5161e1,_0x13a9d5;this[_0x48309f(0x371)]=(_0x4afe67=_0x56bd5a['color'])!=null?_0x4afe67:this[_0x48309f(0x371)],this['_hovered']=(_0x4e21fc=_0x56bd5a[_0x48309f(0x309)])!=null?_0x4e21fc:this[_0x48309f(0x2ce)],this[_0x48309f(0x254)]=(_0xc5a8e4=_0x56bd5a['range'])!=null?_0xc5a8e4:this[_0x48309f(0x254)],this[_0x48309f(0x2ac)]=(_0x373325=_0x56bd5a[_0x48309f(0x1a0)])!=null?_0x373325:this[_0x48309f(0x2ac)],this[_0x48309f(0x383)]=(_0x5161e1=_0x56bd5a[_0x48309f(0x38d)])!=null?_0x5161e1:this[_0x48309f(0x383)],this[_0x48309f(0x284)]=(_0x13a9d5=_0x56bd5a[_0x48309f(0x24d)])!=null?_0x13a9d5:this[_0x48309f(0x284)],this[_0x48309f(0x3cf)]({'width':_0x56bd5a['width'],'height':_0x56bd5a[_0x48309f(0x469)]});}['onMouseMove'](_0x23dc2e){const _0x4d9838=_0x42f461,{row:_0xa9f19,column:_0x36e423}=_0x23dc2e;if(_0xa9f19>=this['_range']['startRow']&&_0xa9f19<=this[_0x4d9838(0x254)][_0x4d9838(0x332)]&&_0x36e423>=this[_0x4d9838(0x254)]['startColumn']&&_0x36e423<=this['_range'][_0x4d9838(0xde)]){this[_0x4d9838(0x212)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x42f461(0x478)](_0x4f647c){return!0x1;}[_0x42f461(0x32a)](_0x335523){const _0x5e7836=_0x42f461;T[_0x5e7836(0x1a9)][_0x5e7836(0x13a)](_0x335523,{'width':this[_0x5e7836(0x280)],'height':this['height'],'strokeWidth':Gs,'stroke':this[_0x5e7836(0x371)],'evented':!0x1,'fill':this[_0x5e7836(0x284)]}),this['_hovered']&&(_0x335523[_0x5e7836(0x26b)](),_0x335523[_0x5e7836(0x266)](0x1,0x0,0x0,0x1,this['width'],this[_0x5e7836(0x383)]===_0x5e7836(0x44f)?0x0:-ce),be[_0x5e7836(0x13a)](_0x335523,{'text':this[_0x5e7836(0x2ac)],'color':this['_color']}),_0x335523[_0x5e7836(0x2e7)]());}}var Ys=Object['defineProperty'],Ks=Object['getOwnPropertyDescriptor'],Xs=(_0x1b6240,_0x581c66,_0xcbe5df,_0x23a821)=>{const _0x4c411b=_0x42f461;for(var _0x9b090c=_0x23a821>0x1?void 0x0:_0x23a821?Ks(_0x581c66,_0xcbe5df):_0x581c66,_0xcb4e1d=_0x1b6240[_0x4c411b(0x441)]-0x1,_0x2627a3;_0xcb4e1d>=0x0;_0xcb4e1d--)(_0x2627a3=_0x1b6240[_0xcb4e1d])&&(_0x9b090c=(_0x23a821?_0x2627a3(_0x581c66,_0xcbe5df,_0x9b090c):_0x2627a3(_0x9b090c))||_0x9b090c);return _0x23a821&&_0x9b090c&&Ys(_0x581c66,_0xcbe5df,_0x9b090c),_0x9b090c;},le=(_0x215c83,_0x2d8c2a)=>(_0xc9cf92,_0x686252)=>_0x2d8c2a(_0xc9cf92,_0x686252,_0x215c83);const qs=0x1389;let ue=class extends o[_0x42f461(0x451)]{constructor(_0x1ec9eb,_0x5a814a,_0x1b08d7,_0x35f935){const _0xe34a8d=_0x42f461;super(),u(this,_0xe34a8d(0x1a2),new Set()),u(this,_0xe34a8d(0x2aa),null),(this[_0xe34a8d(0xca)]=_0x1ec9eb,this[_0xe34a8d(0x3c1)]=_0x5a814a,this[_0xe34a8d(0x2ff)]=_0x1b08d7,this[_0xe34a8d(0x324)]=_0x35f935,this[_0xe34a8d(0x2b4)]());}get[_0x42f461(0x330)](){const _0x5a178a=_0x42f461;return this['_renderManagerService'][_0x5a178a(0x251)](this[_0x5a178a(0x3c1)][_0x5a178a(0x2fa)](o[_0x5a178a(0x3a7)]['UNIVER_SHEET'])[_0x5a178a(0x2d9)]())[_0x5a178a(0x235)](J['SheetSkeletonManagerService']);}get['_unitId'](){const _0x150d2b=_0x42f461;return this[_0x150d2b(0x3c1)][_0x150d2b(0x2fa)](o[_0x150d2b(0x3a7)][_0x150d2b(0x23d)])[_0x150d2b(0x2d9)]();}['_init'](){const _0x4c577b=_0x42f461;this[_0x4c577b(0x330)][_0x4c577b(0xd4)]['pipe'](C[_0x4c577b(0x174)](this[_0x4c577b(0x1b8)]),C['switchMap'](_0x51d430=>{const _0x40add1=_0x4c577b;if(_0x51d430){const _0x1a1f9a=_0x51d430[_0x40add1(0x146)];return v[_0x40add1(0x387)](this[_0x40add1(0xca)][_0x40add1(0x416)](this[_0x40add1(0x1cb)]),this[_0x40add1(0x324)][_0x40add1(0x130)])[_0x40add1(0x285)](C['map'](([_0x3f8229,_0x296749])=>{const _0xbf3457=_0x40add1,_0x45fed5=new Map();return _0x3f8229[_0xbf3457(0x375)]((_0x3883c8,_0xd1217a)=>{const _0x45000f=_0xbf3457;if(_0x3883c8['sheetID']===_0x1a1f9a){const _0x4edf23={..._0x3883c8};_0x4edf23[_0x45000f(0x12c)]=_0x296749[_0x3883c8[_0x45000f(0x12c)]],_0x45fed5[_0x45000f(0x1c4)](_0xd1217a,_0x4edf23);}}),{'skeleton':_0x51d430,'cursors':_0x45fed5};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x4c577b(0x17e)](({skeleton:_0x4fee3b,cursors:_0x25c076})=>{const _0x53dc1c=_0x4c577b;this[_0x53dc1c(0x3c3)](),_0x4fee3b&&this[_0x53dc1c(0x18d)](_0x4fee3b,_0x25c076);}),this['_sheetSkeletonManagerService'][_0x4c577b(0xd4)][_0x4c577b(0x17e)](_0x14b1dd=>{const _0x1c650a=_0x4c577b;if(_0x14b1dd==null)return;const {skeleton:_0x135cca}=_0x14b1dd,_0x1b2eaa=this[_0x1c650a(0x2ff)][_0x1c650a(0x251)](this[_0x1c650a(0x1cb)]),{scene:_0x2413a7}=_0x1b2eaa;_0x2413a7[_0x1c650a(0x2c7)][_0x1c650a(0x31e)](je(_0x563e62=>{const _0x3e4b1f=_0x1c650a;var _0x537ddd,_0x6a6fe5;const {offsetX:_0x1c2a90,offsetY:_0x2daf1a}=_0x563e62,{x:_0x47a878,y:_0x4aa7dc}=_0x2413a7[_0x3e4b1f(0x3cd)](T[_0x3e4b1f(0x2b2)]['FromArray']([_0x1c2a90,_0x2daf1a])),{scaleX:_0x17ecb7,scaleY:_0xdbaa6e}=_0x2413a7[_0x3e4b1f(0x379)](),_0x55e184=_0x2413a7[_0x3e4b1f(0x113)](J['VIEWPORT_KEY']['VIEW_MAIN']),_0x334d56=_0x2413a7[_0x3e4b1f(0x337)](T['Vector2']['FromArray']([_0x47a878,_0x4aa7dc]),_0x55e184),_0x1dcf3e=_0x135cca['getCellPositionByOffset'](_0x1c2a90,_0x2daf1a,_0x17ecb7,_0xdbaa6e,_0x334d56);((_0x537ddd=this['_lastPointer'])==null?void 0x0:_0x537ddd[_0x3e4b1f(0x450)])===_0x1dcf3e[_0x3e4b1f(0x450)]&&((_0x6a6fe5=this[_0x3e4b1f(0x2aa)])==null?void 0x0:_0x6a6fe5[_0x3e4b1f(0x112)])===_0x1dcf3e[_0x3e4b1f(0x112)]||this['_cursors']['forEach'](_0x35b5f8=>{const _0x2ec5dd=_0x3e4b1f;_0x35b5f8[_0x2ec5dd(0x3f4)](_0x1dcf3e);});},0x64));});}[_0x42f461(0x18d)](_0x544692,_0x42753b){const _0x7ae08c=_0x42f461;var _0x39db7a;const _0x34b627=(_0x39db7a=this[_0x7ae08c(0x330)][_0x7ae08c(0x316)]())==null?void 0x0:_0x39db7a['skeleton'];if(!_0x34b627)return;const _0x230fda=this[_0x7ae08c(0xcd)]();if(!_0x230fda)return;this[_0x7ae08c(0x1a2)][_0x7ae08c(0x375)](_0x491950=>{const _0x4d1780=_0x7ae08c;_0x491950[_0x4d1780(0x16f)]();});const {scene:_0x46fc36}=_0x230fda,_0x1dc1bd=Js(Array[_0x7ae08c(0x10a)](_0x42753b['values']()))['map'](_0x22d161=>{const _0x5289dc=_0x7ae08c,{color:_0x10e9bd,range:_0x31878e,name:_0x206549,selection:_0x4798e6,sheetID:_0x43f619}=_0x22d161,{startColumn:_0x4185ac,startRow:_0x36e62a,endColumn:_0x3d2605,endRow:_0x288c1e}=_0x31878e,_0x551fe4=J['getCoordByCell'](_0x36e62a,_0x4185ac,_0x46fc36,_0x34b627),_0x2d70ee=J[_0x5289dc(0x1ab)](_0x288c1e,_0x3d2605,_0x46fc36,_0x34b627),{columnHeaderHeightAndMarginTop:_0x1e5fd4}=_0x34b627,{startX:_0x298a1a,startY:_0x3f1062}=_0x551fe4,{endX:_0x3cb096,endY:_0x349506}=_0x2d70ee,_0x406856=_0x3cb096-_0x298a1a,_0x25c165=_0x349506-_0x3f1062,_0x51708d={'labelPosition':_0x3f1062-_0x1e5fd4>=ce?_0x5289dc(0x1dc):'bottom','sheetID':_0x43f619,'range':_0x31878e,'color':_0x10e9bd,'name':_0x206549,'selection':_0x4798e6,'left':_0x298a1a,'top':_0x3f1062,'width':_0x406856,'height':_0x25c165,'evented':!0x1,'zIndex':qs};return new Ct(_0x206549,_0x51708d);});_0x46fc36[_0x7ae08c(0x2d1)](_0x1dc1bd,Ws),this[_0x7ae08c(0x1a2)]=new Set(_0x1dc1bd);}[_0x42f461(0x3c3)](){const _0x56ed62=_0x42f461;var _0x3e494c;(_0x3e494c=this[_0x56ed62(0x1a2)])==null||_0x3e494c[_0x56ed62(0x375)](_0x5e4071=>_0x5e4071['dispose']());}[_0x42f461(0xcd)](){const _0xb5135d=_0x42f461;return J[_0xb5135d(0x392)](this[_0xb5135d(0x3c1)],this[_0xb5135d(0x2ff)]);}};ue=Xs([o[_0x42f461(0x25d)](o['LifecycleStages']['Steady'],ue),le(0x0,o[_0x42f461(0x1f3)](z)),le(0x1,o[_0x42f461(0x237)]),le(0x2,T[_0x42f461(0x18e)]),le(0x3,o[_0x42f461(0x1f3)](o[_0x42f461(0x2cf)]))],ue);function Js(_0x5a98df){const _0x51aff5=_0x42f461,_0x167801=new Map();return _0x5a98df[_0x51aff5(0x375)](_0x3044c4=>{const _0x3609a0=_0x51aff5;if(_0x167801[_0x3609a0(0x208)](_0x3044c4[_0x3609a0(0x168)])){const _0x6ba61c=_0x167801['get'](_0x3044c4[_0x3609a0(0x168)]);_0x6ba61c['name']+=',\x20'+_0x3044c4[_0x3609a0(0x1a0)];}else _0x167801[_0x3609a0(0x1c4)](_0x3044c4[_0x3609a0(0x168)],_0x3044c4);}),Array[_0x51aff5(0x10a)](_0x167801[_0x51aff5(0x294)]());}var w=function(){return w=Object['assign']||function(_0x46c755){const _0x304de1=_0x527e;for(var _0x42184d,_0xff4ff=0x1,_0x50a1af=arguments[_0x304de1(0x441)];_0xff4ff<_0x50a1af;_0xff4ff++){_0x42184d=arguments[_0xff4ff];for(var _0x19dbff in _0x42184d)Object[_0x304de1(0x22d)][_0x304de1(0x158)][_0x304de1(0x356)](_0x42184d,_0x19dbff)&&(_0x46c755[_0x19dbff]=_0x42184d[_0x19dbff]);}return _0x46c755;},w['apply'](this,arguments);},zs=function(_0x16a25a,_0x309363){const _0x9db07c=_0x42f461;var _0x1fe28b={};for(var _0x4c55bd in _0x16a25a)Object[_0x9db07c(0x22d)][_0x9db07c(0x158)][_0x9db07c(0x356)](_0x16a25a,_0x4c55bd)&&_0x309363[_0x9db07c(0x13d)](_0x4c55bd)<0x0&&(_0x1fe28b[_0x4c55bd]=_0x16a25a[_0x4c55bd]);if(_0x16a25a!=null&&typeof Object[_0x9db07c(0x35c)]=='function'){for(var _0x2da9bb=0x0,_0x4c55bd=Object['getOwnPropertySymbols'](_0x16a25a);_0x2da9bb<_0x4c55bd[_0x9db07c(0x441)];_0x2da9bb++)_0x309363[_0x9db07c(0x13d)](_0x4c55bd[_0x2da9bb])<0x0&&Object['prototype'][_0x9db07c(0x3f1)][_0x9db07c(0x356)](_0x16a25a,_0x4c55bd[_0x2da9bb])&&(_0x1fe28b[_0x4c55bd[_0x2da9bb]]=_0x16a25a[_0x4c55bd[_0x2da9bb]]);}return _0x1fe28b;},Ve=y[_0x42f461(0x31b)](function(_0x27e2fd,_0x38fa5f){const _0x38f7bf=_0x42f461;var _0x37241f=_0x27e2fd[_0x38f7bf(0x258)],_0x5c7122=_0x27e2fd['id'],_0x5e8d84=_0x27e2fd[_0x38f7bf(0x1ef)],_0x290513=_0x27e2fd[_0x38f7bf(0xe1)],_0x15b890=zs(_0x27e2fd,['icon','id',_0x38f7bf(0x1ef),_0x38f7bf(0xe1)]),_0x167530='univerjs-icon\x20univerjs-icon-'[_0x38f7bf(0xee)](_0x5c7122,'\x20')[_0x38f7bf(0xee)](_0x5e8d84||'')[_0x38f7bf(0x373)](),_0x12f82c=y[_0x38f7bf(0x2e1)]('_'[_0x38f7bf(0xee)](ei()));return bt(_0x37241f,''[_0x38f7bf(0xee)](_0x5c7122),{'defIds':_0x37241f[_0x38f7bf(0x3a4)],'idSuffix':_0x12f82c['current']},w({'ref':_0x38fa5f,'className':_0x167530},_0x15b890),_0x290513);});function bt(_0x394d83,_0x8241d4,_0xc888df,_0xba4e02,_0x3f4132){const _0x5e1585=_0x42f461;return y[_0x5e1585(0x344)](_0x394d83[_0x5e1585(0x290)],w(w({'key':_0x8241d4},Zs(_0x394d83,_0xc888df,_0x3f4132)),_0xba4e02),(Qs(_0x394d83,_0xc888df)[_0x5e1585(0x35b)]||[])['map'](function(_0x4c461a,_0x11bd97){const _0x304742=_0x5e1585;return bt(_0x4c461a,''[_0x304742(0xee)](_0x8241d4,'-')['concat'](_0x394d83[_0x304742(0x290)],'-')['concat'](_0x11bd97),_0xc888df,void 0x0,_0x3f4132);}));}function Zs(_0x57beaf,_0x202452,_0xbe6174){const _0x6a10fb=_0x42f461;var _0x39170d=w({},_0x57beaf['attrs']);_0xbe6174!=null&&_0xbe6174[_0x6a10fb(0x272)]&&_0x39170d[_0x6a10fb(0xfb)]===_0x6a10fb(0x272)&&(_0x39170d[_0x6a10fb(0xfb)]=_0xbe6174[_0x6a10fb(0x272)]);var _0x4235e2=_0x202452[_0x6a10fb(0x3a4)];return!_0x4235e2||_0x4235e2['length']===0x0||(_0x57beaf[_0x6a10fb(0x290)]==='use'&&_0x39170d[_0x6a10fb(0xc3)]&&(_0x39170d[_0x6a10fb(0xc3)]=_0x39170d['xlink:href']+_0x202452[_0x6a10fb(0x1c9)]),Object[_0x6a10fb(0x2e8)](_0x39170d)[_0x6a10fb(0x375)](function(_0x53ddc8){const _0x4a5fe3=_0x6a10fb;var _0x5a24ae=_0x53ddc8[0x0],_0x234797=_0x53ddc8[0x1];typeof _0x234797==_0x4a5fe3(0x10d)&&(_0x39170d[_0x5a24ae]=_0x234797[_0x4a5fe3(0x128)](/url\(#(.*)\)/,_0x4a5fe3(0x25e)[_0x4a5fe3(0xee)](_0x202452[_0x4a5fe3(0x1c9)],')')));})),_0x39170d;}function Qs(_0x4c885a,_0x357375){const _0x214048=_0x42f461;var _0x4f2577,_0x588aae=_0x357375['defIds'];return!_0x588aae||_0x588aae[_0x214048(0x441)]===0x0?_0x4c885a:_0x4c885a[_0x214048(0x290)]===_0x214048(0x27d)&&(!((_0x4f2577=_0x4c885a['children'])===null||_0x4f2577===void 0x0)&&_0x4f2577[_0x214048(0x441)])?w(w({},_0x4c885a),{'children':_0x4c885a[_0x214048(0x35b)][_0x214048(0x145)](function(_0x285b1f){const _0x3d8072=_0x214048;return typeof _0x285b1f[_0x3d8072(0x345)]['id']=='string'&&_0x588aae&&_0x588aae[_0x3d8072(0x13d)](_0x285b1f[_0x3d8072(0x345)]['id'])>-0x1?w(w({},_0x285b1f),{'attrs':w(w({},_0x285b1f[_0x3d8072(0x345)]),{'id':_0x285b1f[_0x3d8072(0x345)]['id']+_0x357375[_0x3d8072(0x1c9)]})}):_0x285b1f;})}):_0x4c885a;}function ei(){const _0x4ad728=_0x42f461;return Math[_0x4ad728(0x296)]()['toString'](0x24)[_0x4ad728(0x424)](0x2,0x8);}Ve['displayName']=_0x42f461(0x385);var ti={'tag':_0x42f461(0x2c1),'attrs':{'fill':'none','viewBox':_0x42f461(0x42f),'width':'1em','height':_0x42f461(0x157)},'children':[{'tag':'g','attrs':{'clipPath':_0x42f461(0x3fe)},'children':[{'tag':_0x42f461(0x339),'attrs':{'stroke':_0x42f461(0x18b),'d':_0x42f461(0x429),'strokeLinecap':_0x42f461(0x18a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x42f461(0x27d),'attrs':{},'children':[{'tag':_0x42f461(0x44e),'attrs':{'id':_0x42f461(0x22f)},'children':[{'tag':'path','attrs':{'fill':_0x42f461(0x24f),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x42f461(0x22f)]},Tt=y[_0x42f461(0x31b)](function(_0x2f085b,_0x53ea75){const _0x531ddf=_0x42f461;return y[_0x531ddf(0x344)](Ve,Object[_0x531ddf(0x33e)]({},_0x2f085b,{'id':'off-line-single','ref':_0x53ea75,'icon':ti}));});Tt['displayName']=_0x42f461(0x300);var si={'tag':_0x42f461(0x2c1),'attrs':{'fill':_0x42f461(0x267),'viewBox':_0x42f461(0x19a),'width':_0x42f461(0x157),'height':_0x42f461(0x157)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x42f461(0x339),'attrs':{'stroke':_0x42f461(0x18b),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x42f461(0x18a),'strokeLinejoin':_0x42f461(0x18a),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x42f461(0x44e),'attrs':{'id':_0x42f461(0x1fd)},'children':[{'tag':_0x42f461(0x339),'attrs':{'fill':_0x42f461(0x24f),'d':_0x42f461(0x2df),'transform':_0x42f461(0x3e2)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Rt=y[_0x42f461(0x31b)](function(_0x5b0797,_0x39d517){const _0x3cc914=_0x42f461;return y[_0x3cc914(0x344)](Ve,Object[_0x3cc914(0x33e)]({},_0x5b0797,{'id':_0x3cc914(0x395),'ref':_0x39d517,'icon':si}));});Rt[_0x42f461(0x2fd)]=_0x42f461(0x2e3);const ii=_0x42f461(0x3d2),ni=_0x42f461(0x3ae),ri='univer-online-status',oi=_0x42f461(0x274),ai=_0x42f461(0x214),ie={'onlineStatusIcon':ii,'onlineStatusTitle':ni,'onlineStatus':ri,'online':oi,'offline':ai};function ci(_0x2d9b61){const _0x4b2f90=_0x42f461;switch(_0x2d9b61){case D['OFFLINE']:return _0x4b2f90(0x376);case D[_0x4b2f90(0xfd)]:return _0x4b2f90(0x1d0);case D[_0x4b2f90(0x108)]:return'collabStatus.fetchMiss';case D[_0x4b2f90(0x2ea)]:return _0x4b2f90(0x468);case D[_0x4b2f90(0x483)]:case D[_0x4b2f90(0x1d1)]:case D[_0x4b2f90(0x31c)]:return'collabStatus.syncing';case D[_0x4b2f90(0x477)]:return _0x4b2f90(0x2de);}}function Ot(_0x1ac1f5){const _0x2b32d9=_0x42f461,{status$:_0x1e3849}=_0x1ac1f5,_0x578170=M[_0x2b32d9(0x247)](_0x1e3849,D[_0x2b32d9(0x2ea)]),_0x2c2d31=o[_0x2b32d9(0x3e0)](o[_0x2b32d9(0x465)]),_0x3ad99a=_0x578170!==D[_0x2b32d9(0x187)],_0x47b856=_0x2c2d31['t'](ci(_0x578170)),_0x517186=$t(ie[_0x2b32d9(0x2ba)],{[ie[_0x2b32d9(0xfe)]]:_0x3ad99a,[ie[_0x2b32d9(0xd9)]]:!_0x3ad99a}),_0x183b7f=_0x3ad99a?y[_0x2b32d9(0x344)](Rt,null):y[_0x2b32d9(0x344)](Tt,null);return y[_0x2b32d9(0x344)](_0x2b32d9(0x277),{'className':_0x517186},y['createElement'](_0x2b32d9(0x277),{'className':ie[_0x2b32d9(0x40f)]},_0x183b7f),y['createElement'](_0x2b32d9(0x277),{'className':ie[_0x2b32d9(0x1e3)]},_0x47b856));}var li=Object['defineProperty'],hi=Object[_0x42f461(0x1b1)],_i=(_0x186a52,_0x4ade4c,_0x155f24,_0x733d1d)=>{const _0x2c6a88=_0x42f461;for(var _0x56f0ad=_0x733d1d>0x1?void 0x0:_0x733d1d?hi(_0x4ade4c,_0x155f24):_0x4ade4c,_0xf84030=_0x186a52[_0x2c6a88(0x441)]-0x1,_0x2467e8;_0xf84030>=0x0;_0xf84030--)(_0x2467e8=_0x186a52[_0xf84030])&&(_0x56f0ad=(_0x733d1d?_0x2467e8(_0x4ade4c,_0x155f24,_0x56f0ad):_0x2467e8(_0x56f0ad))||_0x56f0ad);return _0x733d1d&&_0x56f0ad&&li(_0x4ade4c,_0x155f24,_0x56f0ad),_0x56f0ad;},he=(_0x2f1055,_0x40b301)=>(_0x44cfb8,_0x4eeab9)=>_0x40b301(_0x44cfb8,_0x4eeab9,_0x2f1055);exports[_0x42f461(0x405)]=class extends o[_0x42f461(0x216)]{constructor(_0xa64dda,_0x45ffa5,_0x388635,_0x413ed4){const _0x57530e=_0x42f461;super(),u(this,'_status$',new v[(_0x57530e(0x151))](D[_0x57530e(0x2ea)])),(this[_0x57530e(0x3c1)]=_0xa64dda,this['_uiPartsService']=_0x45ffa5,this[_0x57530e(0x16e)]=_0x388635,this[_0x57530e(0xdd)]=_0x413ed4,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x42f461(0x2b5)](){const _0x34c8df=_0x42f461;this[_0x34c8df(0x2e2)](this[_0x34c8df(0x433)][_0x34c8df(0x28e)](M[_0x34c8df(0x243)][_0x34c8df(0x177)],()=>o[_0x34c8df(0x148)](ui({'status$':this['_status$'][_0x34c8df(0xbc)]()}),this[_0x34c8df(0x16e)])));}[_0x42f461(0x307)](){const _0x1dc2ef=_0x42f461;this[_0x1dc2ef(0x2e2)](o[_0x1dc2ef(0x262)](this[_0x1dc2ef(0x3c1)]['focused$']['pipe'](v[_0x1dc2ef(0xe5)](()=>{const _0x29b79c=_0x1dc2ef,_0x1bbe72=this[_0x29b79c(0x3c1)][_0x29b79c(0xcc)]();return _0x1bbe72?this[_0x29b79c(0xdd)][_0x29b79c(0x34b)](_0x1bbe72[_0x29b79c(0x2d9)]()):v['of'](null);}),v[_0x1dc2ef(0xe5)](_0x25d028=>_0x25d028?_0x25d028['status$']:v['of'](D[_0x1dc2ef(0x2ea)])))[_0x1dc2ef(0x17e)](_0x4d7a8e=>{const _0xc4348d=_0x1dc2ef;this[_0xc4348d(0x41f)][_0xc4348d(0x3b2)](_0x4d7a8e);})));}},exports[_0x42f461(0x405)]=_i([o[_0x42f461(0x25d)](o[_0x42f461(0x43a)][_0x42f461(0x1df)],exports[_0x42f461(0x405)]),he(0x0,o[_0x42f461(0x237)]),he(0x1,M['IUIPartsService']),he(0x2,o[_0x42f461(0x1f3)](o['Injector'])),he(0x3,o[_0x42f461(0x1f3)](exports[_0x42f461(0x1f4)]))],exports[_0x42f461(0x405)]);function ui(_0x31be25){const {status$:_0x292363}=_0x31be25;return function(){const _0x2b9a1a=_0x527e;return y[_0x2b9a1a(0x344)](Ot,{'status$':_0x292363});};}const We=o[_0x42f461(0x367)]('uni.network.url-service');var di=Object[_0x42f461(0x3c5)],Si=Object[_0x42f461(0x1b1)],vi=(_0x212ba2,_0x106063,_0x4f8dbf,_0x9577d6)=>{const _0x1a10d0=_0x42f461;for(var _0x1eac31=_0x9577d6>0x1?void 0x0:_0x9577d6?Si(_0x106063,_0x4f8dbf):_0x106063,_0x53ab5b=_0x212ba2[_0x1a10d0(0x441)]-0x1,_0x147d6d;_0x53ab5b>=0x0;_0x53ab5b--)(_0x147d6d=_0x212ba2[_0x53ab5b])&&(_0x1eac31=(_0x9577d6?_0x147d6d(_0x106063,_0x4f8dbf,_0x1eac31):_0x147d6d(_0x1eac31))||_0x1eac31);return _0x9577d6&&_0x1eac31&&di(_0x106063,_0x4f8dbf,_0x1eac31),_0x1eac31;},q=(_0x5e74f6,_0x1efac9)=>(_0x1d5cd9,_0x2594c3)=>_0x1efac9(_0x1d5cd9,_0x2594c3,_0x5e74f6);exports[_0x42f461(0x3b3)]=class extends o[_0x42f461(0x451)]{constructor(_0x4b7fe5,_0x1fa521,_0x3a9ee5,_0x422524,_0x4f14cc,_0x481205){const _0xc91468=_0x42f461;super(),this[_0xc91468(0x111)]=_0x4b7fe5,this[_0xc91468(0x313)]=_0x1fa521,this[_0xc91468(0x28d)]=_0x3a9ee5,this['_localCacheService']=_0x422524,this[_0xc91468(0x1b7)]=_0x4f14cc,_0x481205?_0x481205==null||_0x481205[_0xc91468(0x162)]()['then'](()=>this[_0xc91468(0x2b4)]()):(this[_0xc91468(0x313)][_0xc91468(0x43b)](_0xc91468(0x1e1),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xc91468(0x2b4)]());}async['_init'](){const _0x55151f=_0x42f461,_0x149c61=this[_0x55151f(0x111)]['getParam'](_0x55151f(0x399)),_0x31dc33=this['_urlService']['getParam'](_0x55151f(0x3b1));if(!_0x149c61||!_0x31dc33){this[_0x55151f(0x313)]['debug']('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x31dc33)){case A[_0x55151f(0x23d)]:{const _0x574e46=await this[_0x55151f(0x2d4)](_0x149c61);this[_0x55151f(0xdb)](_0x574e46);break;}case A[_0x55151f(0x46d)]:{await this['_loadDoc'](_0x149c61);break;}default:{this[_0x55151f(0x313)][_0x55151f(0x34d)]('[DataLoaderController]',_0x55151f(0x1ee));break;}}}async['_setupSubUnitSync'](_0x5929d9){const _0x483f2b=_0x42f461;await this[_0x483f2b(0x20d)](_0x5929d9),_0x5929d9[_0x483f2b(0x2a0)]['pipe'](v[_0x483f2b(0x174)](this['dispose$']))[_0x483f2b(0x17e)](_0x39c4bc=>{const _0x179726=_0x483f2b;_0x39c4bc&&this[_0x179726(0x118)](_0x39c4bc);}),this[_0x483f2b(0x111)]['urlChange$']['pipe'](v[_0x483f2b(0x174)](this[_0x483f2b(0x1b8)]))[_0x483f2b(0x17e)](()=>this[_0x483f2b(0x20d)](_0x5929d9));}['_updateURLWithCurrentState'](_0x366199,_0xb5763b=!0x1){const _0x16469e=_0x42f461,_0x280947=this[_0x16469e(0x111)][_0x16469e(0x3d1)](_0x16469e(0x462));_0x366199[_0x16469e(0x3d6)]()!==_0x280947&&this['_urlService'][_0x16469e(0x23e)]('subunit',_0x366199['getSheetId'](),_0xb5763b);}async[_0x42f461(0x20d)](_0x26dc1e){const _0x56791f=_0x42f461;var _0x3be7a3;const _0x5da19a=this['_urlService'][_0x56791f(0x3d1)](_0x56791f(0x462));if(!_0x5da19a||!_0x26dc1e[_0x56791f(0x135)](_0x5da19a)){const _0x93206b=_0x26dc1e[_0x56791f(0xd6)]()[0x0],_0x3f5b7f=_0x26dc1e[_0x56791f(0x135)](_0x93206b);if(!_0x3f5b7f)return;this['_updateURLWithCurrentState'](_0x3f5b7f,!0x0),await this[_0x56791f(0x28d)][_0x56791f(0x117)](p[_0x56791f(0x3b4)]['id'],{'unitId':_0x26dc1e[_0x56791f(0x2d9)](),'subUnitId':_0x93206b});return;}((_0x3be7a3=_0x26dc1e[_0x56791f(0x131)]())==null?void 0x0:_0x3be7a3[_0x56791f(0x3d6)]())!==_0x5da19a&&await this['_commandService'][_0x56791f(0x117)](p[_0x56791f(0x3b4)]['id'],{'unitId':_0x26dc1e[_0x56791f(0x2d9)](),'subUnitId':_0x5da19a});}async[_0x42f461(0x2d4)](_0x5a99ae){const _0x30e7c7=_0x42f461;let _0x38bd13=0x0;const _0x46b457=await this['_localCacheService'][_0x30e7c7(0x42d)](_0x5a99ae);return _0x46b457&&(_0x46b457[_0x30e7c7(0x286)]||_0x46b457[_0x30e7c7(0x132)][_0x30e7c7(0x441)]!==0x0)&&(_0x38bd13=_0x46b457[_0x30e7c7(0x14a)]),_0x38bd13===0x0&&this['_logService'][_0x30e7c7(0x43b)](_0x30e7c7(0x1e1),_0x30e7c7(0x449)),this['_snapshotService']['loadSheet'](_0x5a99ae,_0x38bd13);}async['_loadDoc'](_0x1d85fc){const _0x27ea42=_0x42f461;let _0x17a9ca=0x0;const _0x5c7006=await this[_0x27ea42(0x19f)]['loadOfflineData'](_0x1d85fc);return _0x5c7006&&(_0x5c7006[_0x27ea42(0x286)]||_0x5c7006[_0x27ea42(0x132)][_0x27ea42(0x441)]!==0x0)&&(_0x17a9ca=_0x5c7006[_0x27ea42(0x14a)]),_0x17a9ca===0x0&&this['_logService'][_0x27ea42(0x43b)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x27ea42(0x1b7)]['loadDoc'](_0x1d85fc,_0x17a9ca);}},exports[_0x42f461(0x3b3)]=vi([o[_0x42f461(0x25d)](o['LifecycleStages'][_0x42f461(0x1df)],exports['DataLoaderController']),q(0x0,We),q(0x1,o[_0x42f461(0x218)]),q(0x2,o[_0x42f461(0xff)]),q(0x3,o['Inject'](exports[_0x42f461(0x3a0)])),q(0x4,o['Inject'](_['SnapshotService'])),q(0x5,o['Optional'](Ht[_0x42f461(0x3cc)]))],exports['DataLoaderController']);var gi=Object['defineProperty'],fi=Object[_0x42f461(0x1b1)],mi=(_0x1316ad,_0x530a22,_0xf663db,_0xbeff14)=>{for(var _0x14b668=_0xbeff14>0x1?void 0x0:_0xbeff14?fi(_0x530a22,_0xf663db):_0x530a22,_0x3a2d7c=_0x1316ad['length']-0x1,_0x3f6c3e;_0x3a2d7c>=0x0;_0x3a2d7c--)(_0x3f6c3e=_0x1316ad[_0x3a2d7c])&&(_0x14b668=(_0xbeff14?_0x3f6c3e(_0x530a22,_0xf663db,_0x14b668):_0x3f6c3e(_0x14b668))||_0x14b668);return _0xbeff14&&_0x14b668&&gi(_0x530a22,_0xf663db,_0x14b668),_0x14b668;},tt=(_0x3cdf07,_0x13011b)=>(_0x25c7f1,_0x2bcc00)=>_0x13011b(_0x25c7f1,_0x2bcc00,_0x3cdf07);const Ii='DEFAULT_FILE_NAME',pi=_0x42f461(0x36b);let de=class extends o[_0x42f461(0x216)]{constructor(_0x18c3f,_0x943185){const _0x5c9c3e=_0x42f461;super(),this[_0x5c9c3e(0x3c1)]=_0x18c3f,this[_0x5c9c3e(0x408)]=_0x943185,this['_init']();}[_0x42f461(0x2b4)](){const _0x1766ee=_0x42f461;this[_0x1766ee(0x2e2)](o[_0x1766ee(0x262)](this[_0x1766ee(0x3c1)][_0x1766ee(0x1b9)][_0x1766ee(0x17e)](()=>{const _0x2ca57d=_0x1766ee;var _0x14dc8e;const _0x3e9715=this[_0x2ca57d(0x3c1)][_0x2ca57d(0xcc)]();let _0x421cad=(_0x14dc8e=this[_0x2ca57d(0x408)][_0x2ca57d(0x1b4)](Ii))!=null?_0x14dc8e:pi;_0x3e9715 instanceof o[_0x2ca57d(0x455)]&&(_0x421cad=_0x3e9715[_0x2ca57d(0x1a0)]),document[_0x2ca57d(0x406)]=_0x421cad;})));}};de=mi([o['OnLifecycle'](o[_0x42f461(0x43a)][_0x42f461(0x2f5)],de),tt(0x0,o[_0x42f461(0x237)]),tt(0x1,o[_0x42f461(0x398)])],de);var Ei=Object[_0x42f461(0x3c5)],Ci=Object[_0x42f461(0x1b1)],bi=(_0x383b83,_0x545ea2,_0x43a691,_0x4895ec)=>{const _0x29096a=_0x42f461;for(var _0x53fd80=_0x4895ec>0x1?void 0x0:_0x4895ec?Ci(_0x545ea2,_0x43a691):_0x545ea2,_0x2b968f=_0x383b83[_0x29096a(0x441)]-0x1,_0x17e0af;_0x2b968f>=0x0;_0x2b968f--)(_0x17e0af=_0x383b83[_0x2b968f])&&(_0x53fd80=(_0x4895ec?_0x17e0af(_0x545ea2,_0x43a691,_0x53fd80):_0x17e0af(_0x53fd80))||_0x53fd80);return _0x4895ec&&_0x53fd80&&Ei(_0x545ea2,_0x43a691,_0x53fd80),_0x53fd80;},st=(_0x395c16,_0x2a42fd)=>(_0x5076d6,_0x21fd1e)=>_0x2a42fd(_0x5076d6,_0x21fd1e,_0x395c16);function _0x3600(){const _0x2d0a98=['_hover','SNAPSHOT_SERVER_URL_KEY','_initStatusListener','image/jpeg','hovered','doc.mutation.rich-text-editing','objectID','/-/object/list','assignAColorForMemberID','InsertRangeMoveDownCommandId','textRanges','_clearHeartbeatTimer','_collaborationSessionService','_notificationService','_logService','SNAPSHOT_URL_KEY','_unitID','getCurrent','_transformSelections','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','popstate','LocalUndoRedoService','forwardRef','AWAITING_WITH_PENDING','getCollabEntity','subscribeEvent','startsWith','setAlpha','_onFetchMissResult','OTHER_CLIENTS_EDITING','CollaborationSession','_themeService','RETRY_CONNECTING_MAX_COUNT','permission.content','image/bmp','shareReplay','/collaborator','_draw','apply','_hideTimer','_sessions','updateOfflineData','_docTransformSelectionsService','_sheetSkeletonManagerService','_heartbeatTimer','endRow','Unknown\x20user','mapTo','updateCursorEvent','ONLINE','getVpScrollXYInfoByPosToVp','ImageSourceType','path','saveSheetBlock','ws://127.0.0.1:8000/universer-api/comb/connect','unitID','CHANGESET_REJ','assign','_socketMessageSubscription','ICollaborationSocketService','Warning','@univerjs/docs','_onLocalMutation','createElement','attrs','getUniverSheetInstance','_getMergeRange','_handler','put','_collabSessionService','getCollabEntity$','runRefRangeMutations','error','FAIL','SheetPermissionInitController','UNRECOGNIZED','/rev/','changesets','deserializeRangeWithSheet','_initCloseConn','UNIVER_SLIDE','call','filter','resolve','isEditing','eventID','children','getOwnPropertySymbols','event$','isPermissionRej','docStateChange$','fillText','addEventListener','setTimeout','_replaceFileID','ThresholdInterceptorFactory','getUnitStatus$','ERROR_EXCEED_SIZE','createIdentifier','deepClone','_onCursorDelete','UNIVER_UNKNOWN','Univer','COLLAB_WEB_SOCKET_URL_KEY','send','#FFF','Rectangle','onRemoteChangeset','_color','range','trim','error$','forEach','collabStatus.offline','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','SetTextSelectionsOperation','getAncestorScale','body','ITransformService','reject','_substituteUndoStack','/resources','synced','_handleEvent','saveImage','patch','_labelPosition','append','UniverIcon','handleDeleteRangeMoveLeft','combineLatest','onSyncEditingCollabCursor','state','_selfUnitIDs','infoRsp','LIVESHARE_TERMINATE','labelPosition','MoveRangeCommandId','276sifmhL','_colorAssignService','_getLoginPath','getSheetObject','href','image/png','on-line-single','getRangePointData','fillRule','IConfigService','unit','evenodd','RETRY_CONNECTING_INTERVAL','_disabled','_setupBeforeClosingHandler','m1Prime','TEXT_RANGE_LAYER_INDEX','LocalCacheService','_localStorageService','connection\x20error','@univerjs/design','defIds','split','_clearScheduledTask','UniverInstanceType','/role','CHANGESET_REVISION_CONFILICT','putCollaborators','SnapshotServerOverHTTPService','saveChangeset','_http','univer-online-status-title','BASE64','getCurrentRevForDocument','type','next','DataLoaderController','SetWorksheetActivateCommand','_createInitialState','objectType','/universer-api/snapshot','c1Prime','SUCCUSS','20oovdIj','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','urlChange$','status','key','_cursorInfo$','collabCursorState$','_univerInstanceService','RegularPolygon','_removeCollabCursors','commentUpdateEvent','defineProperty','LOCAL_CACHE_INTERVAL_KEY','getTypeOfUnitDisposed$','_scheduleClearOtherTimer','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_socketReady','[CollaborationEntity]','IRemoteInstanceService','getRelativeToViewportCoord','editing\x20status\x20changed\x20to','transformByState','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getParam','univer-online-status-icon','getOffsetConfig','_fetchMissChangesets','find','getSheetId','_scene','HEARTBEAT_INTERVAL_KEY','_ensureSubject','DeleteRangeMoveUpCommandId','lodash/debounce','fromEvent','fetchThroughInterceptors','POST','originalMeta','useDependency','arc','translate(.97)','USERS_ENTER','HEARTBEAT_TIMEOUT_KEY','_showConflictNotification','sessionStatus','[FetchMissState]','resend','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','23564sYGUvP','handleInsertRangeMoveDown','/unit/','state$','handleInsertRangeMoveRight','override','propertyIsEnumerable','PERMISSION_REJ','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','onMouseMove','_scheduleTimestamp','DisposableCollection','_collaborationPaused','IMessageService','lineTo','_online','MSG_FOR_ERROR','reduce','APPLY_REVISION_CONFILICT','url(#off-line-single_clip0_910_343)','flatMap','exhaustSavingTask','open$','onSendChangeset','_collabCursorState$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','DesktopCollaborationStatusDisplayController','title','data','_configService','_docSyncEditingCollabCursorService','getUnitType','univer-pro.collaboration-client.single-active-unit-service','_onConnectionOpen','@univerjs/core','_state$','onlineStatusIcon','_updateLocalCursor','[UniverCollaborationClientPlugin]','responseType','_HTTPService','[OfflineState]:\x20received\x20acknowledgement.','/block/','getCollabCursors$','take','awaiting','result','_commentService','_initModules','_commentUpdate$','ISnapshotServerService','transformSelections','_status$','merge','SheetsSelectionsService','649552cLxRyL','onload','substring','/fetchmissing?from=','ERROR_IMAGE','USERS_LEAVE','\x0aAfter:\x20','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','post','newCsEvent','actions','loadOfflineData','awaiting_with_pending','0\x200\x2016\x2016','[PendingState]:\x20received\x20rejection.','transformMutationsWithChangeset','SUBMIT_CHANGESET','_uiPartsService','getInterceptPoints','collaborators','CommentService','SessionStatus','_getSnapshotAPIPrefix','_onMessage','LifecycleStages','debug','c2Prime','UNIVER_COLLABORATION_CLIENT_PLUGIN','SetSelectionsOperation','method','_updateStatus','length','dispose','session.collaboration-timeout','_singleActiveUnitService','/universer-api/snapshot/','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRemoteRejected','INGEST','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','handleMoveRange','then','_anchorDot','[PendingState]:\x20unhandled\x20univer\x20type:\x20','clipPath','bottom','column','RxDisposable','members','_submitChangeset','LIVESHARE_FETCH_OPERATIONS','Workbook','_getUndoStack','blue400','[CollaborationSessionService]','_sendingTimer','includes','_revisionService','_messageService','rxjs/operators','_undoRedoService','toStringTag','@univerjs/sheets-ui','RECV','subunit','_docSkeletonManagerService','init','LocaleService','_clearRedo','Error','collabStatus.notCollab','height','serializeCombRequest','CommandType','APPLY_PERMISSION_DENIED','UNIVER_DOC','UniverCollaborationPlugin','[OfflineState]:\x20received\x20rejection.','closeSession','_scheduleReconnection','stringify','IImageIoService','_docStateChangeManagerService','_state','react','SYNCED','triggerDblclick','UUID','COLORS','_eventUnsubscribe','unknown','_transformPreviousActiveRange','pluginName','_updateLocalCache','change$','rxjs','RevisionService','PENDING','disposeUnit','isArray','COMPLETION_FINISHED','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_queuedRemoteChangesets','transformStack\x20failed!','asObservable','SNAPSHOT_INVALID_SNAPSHOT','@univerjs/sheets','_roomMembers$','get','black','LIVESHARE_OPERATION','xlink:href','unitId','UNAUTHENTICATED','_toggleOnline','@univerjs-pro/collaboration','_sessionStatus$','isTransformMutationsWithChangesetSuccess','_collabCursorController','CompressMutationService','getFocusedUnit','_getSheetObject','TextSelectionManagerService','IUndoRedoService','_change$','_textBubble','SHOULD_CLOSE_CONN','_event$','currentSkeleton$','setItem','getUnhiddenWorksheets','handleIRemoveCol','LIVESHARE_NEW_HOST','offline','delay','_setupSubUnitSync','_substituteRedoStack','_collaborationController','endColumn','YUUMI_UNABLE_LOAD_URL','newValue','extend','\x20in\x20_schedule.','_handleHover','toggleOffline','switchMap','_pendingMutations','YUUMI_URL_COL_OUT_OF_RANGE','storage','clearInterval','routeKey','_unitOnClients','EffectRefRangId','_createSocket','concat','toRgbString','getItem','_collaborationTimeoutTimer','_initMergeInterceptor','UniverCollaborationClientPlugin','XHRHTTPImplementation','concatMap','cmd','requireSession','session.room-full','removeMember','_permissionService','fill','InsertRowCommandId','CONFLICT','online','ICommandService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','handleIRemoveRow','UPDATE_CURSOR','_handleHeartbeatEvent','unload','_id','auth.needGotoLoginAlert','_getSaveTimeout','FETCH_MISS','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','from','requestParams','listRoles','string','collab-text-anchor-','close$','enableSingleActiveInstanceLock','_urlService','row','getViewport','IPermissionService','FETCH_MISSING','registerHTTPInterceptor','executeCommand','_updateURLWithCurrentState','getCurrentUser','_exhaustRemoteChangesetQueue','Plugin','Tools','[CollaborationState]:\x20apply\x20error!','_roomMembers','onRemoteAck','getActiveRange','closePath','Optional','parseProtocolChangeset','unit-cache-','_scheduleHeartbeat','_executeRemoteChangeset','_socketService','replace','transformMutation','CollaborationSocketService','saveOfflineData','color','pending','_createHandler','_members','currentTheme$','getActiveSheet','mutations','RichTextEditingMutation','baseRev','getSheetBySheetId','editingUnit','_clearTimeoutTimer','isTransformMutationsWithChangesetFailure','create','drawWith','LIVESHARE_REQUEST_HOST','_transformUndoRedoStack','indexOf','Injector','18938jgpwDd','_assignedColors','_updateState','getMemberID','_getSignURL','@univerjs/drawing','map','sheetId','_config','connectInjector','ImageUploadStatusType','rev','_retryCount','HELLO','complete','serializeTextRange','createSocket','InsertColCommandId','BehaviorSubject','_replayCachedMutations','_onRefRangeChange','onTransformSelections','WebSocketService','INTERNAL_ERROR','1em','hasOwnProperty','onlyLocal','addObject','37884cYmsmh','_localeService','_clearLocalCache','_getDocObject','initWorkbookPermissionChange','measureText','_cachedData','whenReady','&to=','isTransformMutationFailure','IMEInputManagerService','m2Prime','ALREADY_EXISTS','selection','_waitCount','JOINING','_ws','/allowed','_onRemoteChangeset','_injector','makeDirty','NOT_FOUND','workbook','roomMembers$','LICENSE_DISTRO_REJECTED','takeUntil','onTransformRemoteChangesetByIMECache','_checkMissing','HEADER_MENU','_toggleOffline','getViewModel','pushState','deserializeToCombResponse','incrementRevForDocument','transformRemoteChangeset','subscribe','verdancy600','/object','_acknowledgedAwaitingChangeset','1742877fKPWQb','ImageIoService','getImage','onPointerEnter$','RemoveColCommandId','OFFLINE','unsubscribe','collaborationUniverTypes','round','currentColor','@univerjs/network','_updateCollabCursors','IRenderManagerService','close','enableAuthServer','MergeInterceptorFactory','@univerjs/engine-formula','AuthzIoHttpService','WorkbookEditablePermission','headers','onTransformIME','_syncEditingCollabCursorService','COMPRESS_MUTATION_APPLY','code','0\x200\x2017\x2016','_createInitialStateImpl','size','[PendingState]:\x20received\x20acknowledgement.','_transformIMECache','_localCacheService','name','ILocalStorageService','_cursors','PSEUDO_FETCH_MISSING_RESULT','enableOfflineEditing','moveTo','conflict.content','12820HhmCJL','_onConnectionFailed','Rect','_getScale','getCoordByCell','collaboratorID','_handleJoinEvent','_entityInit$','ranges','HEARTBEAT_INTERVAL','getOwnPropertyDescriptor','_getRedoStack','disableLocalCache','getConfig','_httpService','allowed','_snapshotService','dispose$','focused$','revision','/universer-api/oidc/authpage','?url=','CollaborationSessionService','_render','_syncEditingCollabCursor','selections','transformIMECache','COLLAB_WEB_SOCKET_URL','[OfflineState]:\x20received\x20changeset.','set','FileId','compose','_getCtorByUniverType','setInterval','idSuffix','text','_unitId','_transformStack','?size=','_session','_beforeCloseService','collabStatus.conflict','AWAITING','IAuthzIoService','file','_joinRoom','_transitionLocked','_shapes','CHANGESET_ACK','joinEvent','location','getValue','image/jpg','top','_onConflict','csAckEvent','Starting','UNKNOWN_CMD','[DataLoaderController]','\x0aCurrent:\x20','onlineStatusTitle','Error\x20on\x20receiving\x20event','pauseCollaboration','NodePositionConvertToCursor','clearTimeout','MUTATION','catch','_clearOtherTimers','add','createInstance','_clearCollaborationTimeoutTimer','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','className','history','unshift','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','Inject','CollaborationController','_anchor','@univerjs/rpc','_getUploadFileURL','_scheduleSaving','b64DecodeUnicode','getRoom','_incrementRevisionNumber','conflict','on-line-single_clip0_910_349','_unlockTransition','57uwDMkl','max','_handleLeaveEvent','_rescheduleHeartbeatEvent','roomMembers','isTransformChangesetsSuccess','_userManagerService','_lockTransition','_getAPIPrefixPath','has','cursorInfo$','show','_startCollaboration','@univerjs/engine-render','_updateSubUnitFromURLParams','mergeOverrideWithDependencies','_type','transformUndoRedo','fetchMissingChangesets','setShapeProps','delete','univer-offline','[CollaborationUndoRedoService]','Disposable','_onUserLeave','ILogService','appendMutation','batchAllowed','_decreaseWaiting','clear','_removeRoom','TOO_MANY_REQUESTS','LOCAL_CACHE_INTERVAL','_snapshotServerService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','failed\x20to\x20apply\x20missed\x20changesets!','userID','COMMENT_UPDATE','updateMember','_getAnchorBounding','sessionStatus$','IDLE','_startDocCollabCursor','_remoteChangesetQueue','LOGIN_URL_KEY','_tryEnsureSocket','prototype','HEARTBEAT','off-line-single_clip0_910_343','_redoStacks','_imageSourceCache','JOIN','_timeoutTimer','snapshot','with','conflict.title','IUniverInstanceService','generateRandomId','fillStyle','reverse','_onCursorUpdate','parse','UNIVER_SHEET','setParam','SEND_CHANGESET_TIMEOUT','toggleOnline','_colorIndex','onMissingChangesets','BuiltInUIPart','[CollaborationSession]','fromCollab','replaceState','useObservable','/new_changes','/object/','fetch_missing','UNDEFINED','localeService','backgroundColor','Shape','#fff','/universer-api/authz','getRenderById','toString','1332881XBoGgU','_range','ColorKit','APPLY_REJECT','getUnitOnRev','icon','save\x20fail\x20reason\x20is\x20','transformChangesets','_isPermissionRej','InsertRangeMoveRightCommandId','OnLifecycle','url(#$1','findNodePositionByCharIndex','setActiveRange','onMissedChangesetFetched','toDisposable','_onRecvEvent','_send','getImageSourceCache','transform','none','_applyRemoteChangeset','_transformService','getDataModel','save','1CxDbzy','readAsDataURL','Subject','_socket$','_transformRemoteChangesetByIMECache','univer-pro.collaboration-client-socket-service','colorChannel1','_refRangeService','univer-online','symbol','_compressMutationService','div','image/gif','status$','_getCurrentRevision','updatePermissionPoint','INVALID_ARGUMENT','defs','memberID','deleteCollaborator','width','serializeRangeWithSheet','_schedule','getTypeOfUnitAdded$','_backgroundColor','pipe','awaitingChangeset','UNKNOWN_CODE','collaboration.closeRoom','LICENSE_IMPORT_SIZE_EXCEEDED','url','_saveCache','_drawRange','_commandService','registerComponent','_awaitingChangeset','tag','json','_retryConnectingTimer','UPDATE_PERMISSION_OBJ','values','_removeClearOtherTimer','random','getMember','InsertSheetMutation','CollaborationStatusDisplay','clsx','_transformUndoredo','ERROR_IMAGE_TYPE','_startSheetCollabCursor','isInternalEditorID','commentUpdate$','activeSheet$','debounceTime','PERMISSION_DENIED','socket\x20close','_sendHeartbeat','_onJoinRoomEvent','_scheduleCollaborationTimeoutTimer','setCurrentUser','NO_OTHER_CLIENTS_EDITING','_socket','_lastPointer','IBeforeCloseService','_name','MessageType','LEAVE','onRemoteRej','distinctUntilChanged','syncEditingCollabCursor','Vector2','roomInfos','_init','_initStatusComponent','min','_getAPIPrefix','cursorInfo','_onRemoteACK','onlineStatus','IURLService','_undoStacks','beginPath','_getSendChangesetTimeout','list','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','svg','interceptor','listCollaborators','APPLY_NON_SEQUENTIAL_REVISION','_entities','registerRefRange','onPointerMove$','_initUnitPermissionChange','getCurrentSelections','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','SheetCollaborationEntity','_onCombEvent','all','_hovered','ThemeService','isActive','addObjects','_memberService','leaveEvent','_loadSheet','_saveTaskMap','_sendHeartbeatTimer','onCommandExecuted','objects','getUnitId','HTTPService','onPointerLeave$','font','message$','collabStatus.synced','M0\x200H16V16H0z','CONNECTOR_DATA_TOO_LARGE','useRef','disposeWithMe','OnLineSingle','encodeURIComponent','[SyncedState]:\x20received\x20acknowledgement.','getColor','restore','entries','RefRangeService','NOT_COLLAB','_cursor','params','session.will-retry','hide','_onUserJoin','_unitStatus','_clearUndo','\x20-\x20','NEW_CHANGESETS','LICENSE_EXPORT_SIZE_EXCEEDED','Ready','permissionRejEvent','mapDocumentTypeToUniverType','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_disableEditing','getCurrentUnitForType','_docTransformIMECacheService','rgba(255,\x20255,\x20255,\x200.01)','displayName','liveShareNewHost','_renderManagerService','OffLineSingle','CollaborationEvent','push','/universer-api/comb','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.'];_0x3600=function(){return _0x2d0a98;};return _0x3600();}exports[_0x42f461(0x3ab)]=class{constructor(_0x3bbfc5,_0x24092b){const _0x45bb24=_0x42f461;this[_0x45bb24(0x408)]=_0x3bbfc5,this['_httpService']=_0x24092b;}async[_0x42f461(0x257)](_0x3fe7ae,_0xe1b349){const _0x167361=_0x42f461;var _0x5eb881;const {unitID:_0x3a69f4,type:_0x5aa267,revision:_0x19a929=0x0}=_0xe1b349,_0x2af879=this[_0x167361(0x438)]()+'/'+_0x5aa267+_0x167361(0x3ed)+_0x3a69f4+_0x167361(0x351)+_0x19a929,_0x283066=(await this[_0x167361(0x1b5)][_0x167361(0xc0)](_0x2af879))[_0x167361(0x37a)],_0x534cee=(_0x5eb881=_0x283066[_0x167361(0x234)])==null?void 0x0:_0x5eb881[_0x167361(0x171)];if(_0x534cee){const _0x593cee=_0x534cee==null?void 0x0:_0x534cee[_0x167361(0x3df)],_0x31d604=o['textEncoder']['encode'](o[_0x167361(0x1f9)](_0x593cee));_0x534cee[_0x167361(0x3df)]=_0x31d604,Object[_0x167361(0x2e8)](_0x534cee['sheets'])[_0x167361(0x375)](([,_0x3a7b58])=>{const _0x31d5cf=_0x167361,_0x183238=_0x3a7b58[_0x31d5cf(0x3df)],_0x1dd884=o['textEncoder']['encode'](o[_0x31d5cf(0x1f9)](_0x183238));_0x3a7b58['originalMeta']=_0x1dd884;});}return _0x283066;}async['getSheetBlock'](_0x3c6b00,_0x4216b1){const _0x391c5d=_0x42f461,{unitID:_0x51e554,type:_0x2c17a2,blockID:_0x43c590}=_0x4216b1,_0xe14c3a=this['_getAPIPrefix']()+'/'+_0x2c17a2+_0x391c5d(0x3ed)+_0x51e554+_0x391c5d(0x415)+_0x43c590;return(await this[_0x391c5d(0x1b5)]['get'](_0xe14c3a))[_0x391c5d(0x37a)];}async[_0x42f461(0x211)](_0x3aa9b1,_0xc27bbb){const _0x279fc9=_0x42f461,{unitID:_0x49867e,type:_0x9ee47e,from:_0x436aae,to:_0x309caf}=_0xc27bbb,_0x323bad=this[_0x279fc9(0x2b7)]()+'/'+_0x9ee47e+_0x279fc9(0x3ed)+_0x49867e+_0x279fc9(0x425)+_0x436aae+_0x279fc9(0x163)+_0x309caf;return(await this['_httpService'][_0x279fc9(0xc0)](_0x323bad))[_0x279fc9(0x37a)];}[_0x42f461(0x438)](){const _0x2c5864=_0x42f461;var _0x26001f;return(_0x26001f=this[_0x2c5864(0x408)][_0x2c5864(0x1b4)](at))!=null?_0x26001f:this['_getAPIPrefix']();}[_0x42f461(0x2b7)](){const _0x5490b1=_0x42f461;var _0x377da5;return(_0x377da5=this[_0x5490b1(0x408)][_0x5490b1(0x1b4)](ot))!=null?_0x377da5:xt;}async['getResourcesRequest'](_0x19fdd1,_0x34845a){const _0x546db7=_0x42f461,_0x1abe8f=_0x546db7(0x445)+_0x34845a[_0x546db7(0x3b1)]+'/unit/'+_0x34845a[_0x546db7(0x33c)]+_0x546db7(0x37e);return(await this['_httpService'][_0x546db7(0xc0)](_0x1abe8f,{'params':{'resourceId':JSON[_0x546db7(0x472)](_0x34845a['resourceIDs'])}}))['body'];}['saveSnapshot'](){const _0x56de56=_0x42f461;throw new Error(_0x56de56(0x3ea));}[_0x42f461(0x33a)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x42f461(0x3ac)](){const _0x2a445f=_0x42f461;throw new Error(_0x2a445f(0x3ea));}},exports[_0x42f461(0x3ab)]=bi([st(0x0,o[_0x42f461(0x398)]),st(0x1,o[_0x42f461(0x1f3)](P[_0x42f461(0x2da)]))],exports[_0x42f461(0x3ab)]);var Ti=Object[_0x42f461(0x3c5)],Ri=Object[_0x42f461(0x1b1)],Oi=(_0x471020,_0x22a3c9,_0x1cadd9,_0x4cd2f2)=>{for(var _0xc03f7b=_0x4cd2f2>0x1?void 0x0:_0x4cd2f2?Ri(_0x22a3c9,_0x1cadd9):_0x22a3c9,_0x34cd37=_0x471020['length']-0x1,_0x55784f;_0x34cd37>=0x0;_0x34cd37--)(_0x55784f=_0x471020[_0x34cd37])&&(_0xc03f7b=(_0x4cd2f2?_0x55784f(_0x22a3c9,_0x1cadd9,_0xc03f7b):_0x55784f(_0xc03f7b))||_0xc03f7b);return _0x4cd2f2&&_0xc03f7b&&Ti(_0x22a3c9,_0x1cadd9,_0xc03f7b),_0xc03f7b;},ne=(_0x4e9580,_0x3ee63d)=>(_0x33ea28,_0x247f4a)=>_0x3ee63d(_0x33ea28,_0x247f4a,_0x4e9580);let Ae=class extends o[_0x42f461(0x31a)]{constructor(_0x24f5dd,_0x311a1f,_0x2bbe27,_0x35d250,_0x23a81d){const _0x153210=_0x42f461;super(_0x24f5dd,_0x311a1f,_0x2bbe27),this['_transformService']=_0x35d250,this[_0x153210(0x313)]=_0x23a81d;}[_0x42f461(0x210)](_0x1c62b7,_0x139423){const _0x9c42a8=_0x42f461,_0x4c401b=this[_0x9c42a8(0x456)](_0x1c62b7);if(_0x4c401b)try{const _0x30379a=this[_0x9c42a8(0x1cc)](_0x4c401b,_0x139423);this['_substituteUndoStack'](_0x1c62b7,_0x30379a);}catch(_0x165e2d){this['_logService'][_0x9c42a8(0x34d)](_0x9c42a8(0x215),_0x165e2d),this[_0x9c42a8(0x2f1)](_0x1c62b7);}const _0x4c76a9=this[_0x9c42a8(0x1b2)](_0x1c62b7);if(_0x4c76a9)try{const _0x24dc93=this[_0x9c42a8(0x1cc)](_0x4c76a9,_0x139423);this['_substituteRedoStack'](_0x1c62b7,_0x24dc93);}catch(_0xa3b259){this[_0x9c42a8(0x313)]['error'](_0xa3b259),this[_0x9c42a8(0x466)](_0x1c62b7);}}[_0x42f461(0x2f1)](_0x41684c){const _0x1331ea=_0x42f461,_0x48e86d=this[_0x1331ea(0x456)](_0x41684c);_0x48e86d&&(_0x48e86d[_0x1331ea(0x441)]=0x0,this['_updateStatus']());}[_0x42f461(0x466)](_0x35517f){const _0x4ea566=_0x42f461,_0x1ab47e=this[_0x4ea566(0x1b2)](_0x35517f);_0x1ab47e&&(_0x1ab47e[_0x4ea566(0x441)]=0x0,this[_0x4ea566(0x440)]());}[_0x42f461(0x37d)](_0x4a59d6,_0x5950aa){const _0x3bc9ab=_0x42f461;this[_0x3bc9ab(0x2bc)][_0x3bc9ab(0x1c4)](_0x4a59d6,_0x5950aa),this[_0x3bc9ab(0x440)]();}[_0x42f461(0xdc)](_0x5e8add,_0x498616){const _0x298147=_0x42f461;this[_0x298147(0x230)][_0x298147(0x1c4)](_0x5e8add,_0x498616),this[_0x298147(0x440)]();}[_0x42f461(0x1cc)](_0x2c3057,_0x2a7087){const _0x2f0ebd=_0x42f461,_0x540fe6=[];let _0x1ffbcd=_0x2a7087,_0x53d904=_0x2a7087;for(let _0x5165f6=_0x2c3057[_0x2f0ebd(0x441)]-0x1;_0x5165f6>=0x0;_0x5165f6--){const {unitID:_0x2f680c,undoMutations:_0x105260,redoMutations:_0x397942}=_0x2c3057[_0x5165f6],_0x2e76f9=this[_0x2f0ebd(0x269)][_0x2f0ebd(0x431)](_0x1ffbcd,_0x105260),_0x36c6e6=this[_0x2f0ebd(0x269)]['transformMutationsWithChangeset'](_0x53d904,_0x397942);if(_[_0x2f0ebd(0x138)](_0x2e76f9)||_[_0x2f0ebd(0x138)](_0x36c6e6)){this['_logService']['error']('[CollaborationUndoRedoService]',_0x2f0ebd(0xbb),_0x2e76f9,_0x36c6e6);break;}_0x1ffbcd=_0x2e76f9[_0x2f0ebd(0x3b8)],_0x53d904=_0x36c6e6['c1Prime'],_0x540fe6['push']({'unitID':_0x2f680c,'undoMutations':_0x2e76f9[_0x2f0ebd(0x166)],'redoMutations':_0x36c6e6[_0x2f0ebd(0x166)]});}return _0x540fe6[_0x2f0ebd(0x23a)]();}};Ae=Oi([ne(0x0,o[_0x42f461(0x237)]),ne(0x1,o['ICommandService']),ne(0x2,o['IContextService']),ne(0x3,_[_0x42f461(0x37b)]),ne(0x4,o[_0x42f461(0x218)])],Ae);class Dt extends o[_0x42f461(0x451)]{constructor(){const _0x19cf87=_0x42f461;super(),u(this,_0x19cf87(0x3bc)),this[_0x19cf87(0x3bc)]=v[_0x19cf87(0x3dc)](window,_0x19cf87(0x319))[_0x19cf87(0x285)](v[_0x19cf87(0x174)](this['dispose$']),v['shareReplay'](0x1),v[_0x19cf87(0x334)](void 0x0));}[_0x42f461(0x23e)](_0x5e0657,_0x9353b8,_0xa3660b=!0x1){const _0x11d351=_0x42f461,_0x13068d=new URL(window[_0x11d351(0x1d9)]['href']);_0x13068d['searchParams'][_0x11d351(0x1c4)](_0x5e0657,_0x9353b8),_0xa3660b?window[_0x11d351(0x1f0)]['replaceState']('','',_0x13068d[_0x11d351(0x252)]()):window[_0x11d351(0x1f0)][_0x11d351(0x17a)]('','',_0x13068d[_0x11d351(0x252)]());}['removeParam'](_0x76fbc3,_0x4f2e4d=!0x1){const _0x356068=_0x42f461,_0x22e26a=new URL(window[_0x356068(0x1d9)]['href']);_0x22e26a['searchParams']['delete'](_0x76fbc3),_0x4f2e4d?window[_0x356068(0x1f0)][_0x356068(0x246)]('','',_0x22e26a[_0x356068(0x252)]()):window['history'][_0x356068(0x17a)]('','',_0x22e26a[_0x356068(0x252)]());}[_0x42f461(0x3d1)](_0x50dc50){const _0x1ea6fe=_0x42f461;var _0x2e4e44;return(_0x2e4e44=new URL(window[_0x1ea6fe(0x1d9)][_0x1ea6fe(0x393)])['searchParams']['get'](_0x50dc50))!=null?_0x2e4e44:void 0x0;}}const Ue=_0x42f461(0x10e),Di='collab-text-range-',_e=0x6,Pi=1.5,ye=0x4,Ui=1.5,yi=_0x42f461(0x2fc);class wi{constructor(_0x46c59d,_0x336672,_0x1ea791,_0x355275){const _0x229eff=_0x42f461;u(this,_0x229eff(0x1d6),[]),u(this,_0x229eff(0x1f5),null),u(this,'_textBubble',null),u(this,_0x229eff(0x44c),null),u(this,'_hideTimer',null),u(this,_0x229eff(0x47b),null),(this['_cursor']=_0x46c59d,this[_0x229eff(0x3d7)]=_0x336672,this['_docSkeleton']=_0x1ea791,this['_document']=_0x355275,this[_0x229eff(0x1be)]());}set['_hover'](_0x3400b1){const _0x2f794d=_0x42f461;_0x3400b1?(this['_anchorDot']&&this[_0x2f794d(0x44c)][_0x2f794d(0x2ee)](),this[_0x2f794d(0xd1)]&&this['_textBubble'][_0x2f794d(0x20a)]()):(this[_0x2f794d(0x44c)]&&this[_0x2f794d(0x44c)]['show'](),this[_0x2f794d(0xd1)]&&this[_0x2f794d(0xd1)][_0x2f794d(0x2ee)]());}[_0x42f461(0x442)](){const _0x51c726=_0x42f461;for(const _0x225b52 of this[_0x51c726(0x1d6)])_0x225b52[_0x51c726(0x442)]();this[_0x51c726(0xd1)]&&this[_0x51c726(0xd1)][_0x51c726(0x442)](),this[_0x51c726(0x44c)]&&this['_anchorDot'][_0x51c726(0x442)](),this['_anchor']&&this['_anchor']['dispose'](),this[_0x51c726(0x47b)]&&this[_0x51c726(0x47b)]();}['_render'](){const _0x9cd43a=_0x42f461,{_docSkeleton:_0x2fac42,_document:_0xab3c56}=this,{color:_0x42ddfe,name:_0x45b523,ranges:_0x1ee0e5}=this[_0x9cd43a(0x2eb)],_0x271e99=_0xab3c56[_0x9cd43a(0x3d3)](),{docsLeft:_0x33f961,docsTop:_0x2d1d00}=_0x271e99,_0x781fe8=new T[(_0x9cd43a(0x1e6))](_0x271e99,_0x2fac42);for(const {startOffset:_0x570c03,endOffset:_0x273582,collapsed:_0x3bbac1,isActive:_0x2322ef}of _0x1ee0e5){const _0x4f78a1=_0x2fac42['findNodePositionByCharIndex'](_0x570c03),_0x1499c8=_0x2fac42[_0x9cd43a(0x25f)](_0x273582);if(_0x2322ef){const {contentBoxPointGroup:_0x50d10e}=_0x781fe8[_0x9cd43a(0x396)](_0x1499c8,_0x1499c8);if(_0x50d10e[_0x9cd43a(0x441)]===0x0)continue;this['_drawAnchor'](_0x42ddfe,_0x50d10e,_0x33f961,_0x2d1d00,_0x45b523),this[_0x9cd43a(0x47b)]=this[_0x9cd43a(0xe3)]();}if(!_0x3bbac1){const {contentBoxPointGroup:_0x4cce67}=_0x781fe8[_0x9cd43a(0x396)](_0x4f78a1,_0x1499c8);if(_0x4cce67['length']===0x0)continue;this[_0x9cd43a(0x28c)](_0x42ddfe,_0x4cce67,_0x33f961,_0x2d1d00);}}}['_drawAnchor'](_0x36c600,_0x38659e,_0x1ad39c,_0x55853d,_0x172352){const _0x1b0f94=_0x42f461,_0xf630a4=this[_0x1b0f94(0x226)](_0x38659e),{left:_0x10da41,top:_0x5a933a,height:_0x197037}=_0xf630a4,_0x1864ce=this[_0x1b0f94(0x1aa)](),_0x57f0ac=Ui/_0x1864ce,_0x283849=new T['Rect'](Ue+o[_0x1b0f94(0x11c)][_0x1b0f94(0x238)](_e),{'left':_0x10da41+_0x1ad39c-_0x57f0ac,'top':_0x5a933a+_0x55853d,'height':_0x197037,'width':Pi,'fill':_0x36c600||T[_0x1b0f94(0x2e6)](o[_0x1b0f94(0x47a)]['black'],0x0),'strokeWidth':_0x57f0ac,'stroke':yi,'evented':!0x0});this[_0x1b0f94(0x1f5)]=_0x283849,this['_scene'][_0x1b0f94(0x15a)](_0x283849,T[_0x1b0f94(0x39f)]);const _0x4b5ccf=new T['Rect'](Ue+o['Tools'][_0x1b0f94(0x238)](_e),{'left':_0x10da41+_0x1ad39c-_0x57f0ac,'top':_0x5a933a+_0x55853d-ye/0x2,'height':ye,'width':ye,'fill':_0x36c600||T[_0x1b0f94(0x2e6)](o[_0x1b0f94(0x47a)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x36c600||T['getColor'](o[_0x1b0f94(0x47a)][_0x1b0f94(0xc1)],0x0),'evented':!0x1});this[_0x1b0f94(0x44c)]=_0x4b5ccf,this[_0x1b0f94(0x3d7)][_0x1b0f94(0x15a)](_0x4b5ccf,T['TEXT_RANGE_LAYER_INDEX']);const _0x3aba6b=new be(Ue+o['Tools'][_0x1b0f94(0x238)](_e),{'left':_0x10da41+_0x1ad39c-_0x57f0ac,'top':_0x5a933a+_0x55853d-ce,'text':_0x172352,'color':_0x36c600});this[_0x1b0f94(0xd1)]=_0x3aba6b,this['_scene'][_0x1b0f94(0x15a)](_0x3aba6b,T[_0x1b0f94(0x39f)]),this[_0x1b0f94(0x305)]=!0x1;}[_0x42f461(0xe3)](){const _0x294d31=_0x42f461,_0x412046=this[_0x294d31(0x1f5)]['onPointerEnter$'][_0x294d31(0x31e)](()=>{const _0x3ab57b=_0x294d31;this[_0x3ab57b(0x305)]=!0x0;}),_0x5869a8=this[_0x294d31(0x1f5)][_0x294d31(0x2db)]['subscribeEvent'](()=>{const _0x5048a7=_0x294d31;this[_0x5048a7(0x32c)]&&clearTimeout(this[_0x5048a7(0x32c)]),this['_hideTimer']=setTimeout(()=>{const _0x11c019=_0x5048a7;this[_0x11c019(0x305)]=!0x1;},0x7d0);});return()=>{_0x412046['unsubscribe'](),_0x5869a8['unsubscribe']();};}[_0x42f461(0x28c)](_0x2f3f72,_0x178cb3,_0x1f5980,_0x5d878a){const _0x3aa73c=_0x42f461,_0xb1993a=new o[(_0x3aa73c(0x255))](_0x2f3f72)[_0x3aa73c(0x320)](0.2)[_0x3aa73c(0xef)](),_0x47cae2=new T[(_0x3aa73c(0x3c2))](Di+o[_0x3aa73c(0x11c)][_0x3aa73c(0x238)](_e),{'pointsGroup':_0x178cb3,'fill':_0xb1993a||T[_0x3aa73c(0x2e6)](o[_0x3aa73c(0x47a)]['black'],0.2),'left':_0x1f5980,'top':_0x5d878a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3aa73c(0x1d6)]['push'](_0x47cae2),this[_0x3aa73c(0x3d7)][_0x3aa73c(0x15a)](_0x47cae2,T[_0x3aa73c(0x39f)]);}[_0x42f461(0x226)](_0x3d5741){const _0x3c8621=_0x3d5741[0x0],_0x993df0=_0x3c8621[0x0],_0x45f338=_0x3c8621[0x2],{x:_0x4c8b0a,y:_0x26b204}=_0x993df0,{x:_0x4c0cf0,y:_0x39065e}=_0x45f338;return{'left':_0x4c8b0a,'top':_0x26b204,'width':_0x4c0cf0-_0x4c8b0a,'height':_0x39065e-_0x26b204};}[_0x42f461(0x1aa)](){const {scaleX:_0x2b0101,scaleY:_0x160cc0}=this['_scene']['getAncestorScale']();return Math['max'](_0x2b0101,_0x160cc0);}}var Li=Object[_0x42f461(0x3c5)],Mi=Object['getOwnPropertyDescriptor'],Ni=(_0x58c048,_0x344d3c,_0x292191,_0x8e6766)=>{const _0x1e0194=_0x42f461;for(var _0x4466d2=_0x8e6766>0x1?void 0x0:_0x8e6766?Mi(_0x344d3c,_0x292191):_0x344d3c,_0x4c55c8=_0x58c048[_0x1e0194(0x441)]-0x1,_0x8b9412;_0x4c55c8>=0x0;_0x4c55c8--)(_0x8b9412=_0x58c048[_0x4c55c8])&&(_0x4466d2=(_0x8e6766?_0x8b9412(_0x344d3c,_0x292191,_0x4466d2):_0x8b9412(_0x4466d2))||_0x4466d2);return _0x8e6766&&_0x4466d2&&Li(_0x344d3c,_0x292191,_0x4466d2),_0x4466d2;},re=(_0x45f480,_0x101724)=>(_0x542cfc,_0x46c50f)=>_0x101724(_0x542cfc,_0x46c50f,_0x45f480);let Se=class extends o[_0x42f461(0x451)]{constructor(_0x408235,_0xab0cd9,_0x6dc345,_0x54e03f,_0x59d8c2){const _0x2fdcb2=_0x42f461;super(),u(this,_0x2fdcb2(0x1a2),[]),(this[_0x2fdcb2(0xca)]=_0x408235,this[_0x2fdcb2(0x3c1)]=_0xab0cd9,this['_renderManagerService']=_0x6dc345,this[_0x2fdcb2(0x463)]=_0x54e03f,this[_0x2fdcb2(0x324)]=_0x59d8c2,this[_0x2fdcb2(0x2b4)]());}[_0x42f461(0x2b4)](){const _0x2be3ef=_0x42f461;this[_0x2be3ef(0x463)][_0x2be3ef(0xd4)]['pipe'](C[_0x2be3ef(0x174)](this[_0x2be3ef(0x1b8)]),C['switchMap'](_0x52aebc=>{const _0x322ce2=_0x2be3ef;if(_0x52aebc){const _0x46f6ff=_0x52aebc[_0x322ce2(0x179)]()[_0x322ce2(0x26a)]()[_0x322ce2(0x2d9)]();return v['combineLatest'](this[_0x322ce2(0xca)][_0x322ce2(0x416)](_0x46f6ff),this[_0x322ce2(0x324)][_0x322ce2(0x130)])[_0x322ce2(0x285)](C[_0x322ce2(0x145)](([_0x5707b6,_0x294426])=>({'skeleton':_0x52aebc,'cursors':[..._0x5707b6[_0x322ce2(0x294)]()][_0x322ce2(0x3ff)](_0xa096bb=>({..._0xa096bb,'color':_0x294426[_0xa096bb[_0x322ce2(0x12c)]]}))})));}return v['of']({'skeleton':null,'cursors':[]});}))[_0x2be3ef(0x17e)](({skeleton:_0x46983,cursors:_0x405cd1})=>{const _0x394b6c=_0x2be3ef;this[_0x394b6c(0x3c3)](),_0x46983&&this['_updateCollabCursors'](_0x46983,_0x405cd1);});}[_0x42f461(0x18d)](_0x2133d0,_0x4edbc1){const _0x3bc909=_0x42f461,_0x468f78=this[_0x3bc909(0x15e)]();if(_0x468f78==null)return;const {scene:_0x57e9d7,document:_0x1a554a}=_0x468f78,_0x32e990=_0x4edbc1[_0x3bc909(0x145)](_0xac944=>new wi(_0xac944,_0x57e9d7,_0x2133d0,_0x1a554a));this['_cursors']=_0x32e990;}[_0x42f461(0x3c3)](){const _0x311e62=_0x42f461;this[_0x311e62(0x1a2)][_0x311e62(0x375)](_0x13e623=>_0x13e623['dispose']()),this[_0x311e62(0x1a2)]=[];}[_0x42f461(0x15e)](){const _0x5cdd51=_0x42f461;return L['getDocObject'](this['_univerInstanceService'],this[_0x5cdd51(0x2ff)]);}};Se=Ni([o[_0x42f461(0x25d)](o[_0x42f461(0x43a)]['Steady'],Se),re(0x0,o[_0x42f461(0x1f3)](z)),re(0x1,o['IUniverInstanceService']),re(0x2,T[_0x42f461(0x18e)]),re(0x3,o[_0x42f461(0x1f3)](L['DocSkeletonManagerService'])),re(0x4,o[_0x42f461(0x1f3)](o[_0x42f461(0x2cf)]))],Se);var Ai=Object[_0x42f461(0x3c5)],ji=Object['getOwnPropertyDescriptor'],$i=(_0x5431d6,_0x36e27c,_0x1560d5,_0x1bcc44)=>{for(var _0x1b9ba4=_0x1bcc44>0x1?void 0x0:_0x1bcc44?ji(_0x36e27c,_0x1560d5):_0x36e27c,_0x52e0c2=_0x5431d6['length']-0x1,_0x39a23d;_0x52e0c2>=0x0;_0x52e0c2--)(_0x39a23d=_0x5431d6[_0x52e0c2])&&(_0x1b9ba4=(_0x1bcc44?_0x39a23d(_0x36e27c,_0x1560d5,_0x1b9ba4):_0x39a23d(_0x1b9ba4))||_0x1b9ba4);return _0x1bcc44&&_0x1b9ba4&&Ai(_0x36e27c,_0x1560d5,_0x1b9ba4),_0x1b9ba4;},we=(_0x175352,_0x16313e)=>(_0x599fe4,_0x34372c)=>_0x16313e(_0x599fe4,_0x34372c,_0x175352);let pe=class{constructor(_0x5b0aa1,_0x13c648,_0x3081dc){const _0x19cade=_0x42f461;this[_0x19cade(0x408)]=_0x5b0aa1,this[_0x19cade(0x1b5)]=_0x13c648,this[_0x19cade(0x24c)]=_0x3081dc,this[_0x19cade(0x464)]();}[_0x42f461(0x464)](){const _0x214d77=_0x42f461;this[_0x214d77(0x1b5)][_0x214d77(0x116)]({'priority':0x1,'interceptor':(_0x406798,_0x5b1b88)=>_0x5b1b88(_0x406798)[_0x214d77(0x285)](v[_0x214d77(0xf5)](async _0x34ff4f=>{const _0x30eba4=_0x214d77,_0x37c963=_0x34ff4f;if(_0x37c963['status']===0x191&&window['confirm'](this[_0x30eba4(0x24c)]['t'](_0x30eba4(0x106)))){const _0x3e0cf5=window[_0x30eba4(0x2e4)](window[_0x30eba4(0x1d9)][_0x30eba4(0x393)]);window[_0x30eba4(0x1d9)]['href']=this[_0x30eba4(0x391)]()+_0x30eba4(0x1bc)+_0x3e0cf5;}return _0x37c963;}))});}[_0x42f461(0x391)](){const _0x4451cc=_0x42f461;var _0x4383ce;return(_0x4383ce=this[_0x4451cc(0x408)]['getConfig'](St))!=null?_0x4383ce:qt;}};pe=$i([we(0x0,o[_0x42f461(0x398)]),we(0x1,o['Inject'](P[_0x42f461(0x2da)])),we(0x2,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)]))],pe);var Hi=Object[_0x42f461(0x3c5)],xi=Object[_0x42f461(0x1b1)],ki=(_0x3b76fd,_0x42ba12,_0x16eb06,_0x30f0db)=>{const _0x7c0ba7=_0x42f461;for(var _0x2f3b42=_0x30f0db>0x1?void 0x0:_0x30f0db?xi(_0x42ba12,_0x16eb06):_0x42ba12,_0x3b4c2e=_0x3b76fd[_0x7c0ba7(0x441)]-0x1,_0x38a74d;_0x3b4c2e>=0x0;_0x3b4c2e--)(_0x38a74d=_0x3b76fd[_0x3b4c2e])&&(_0x2f3b42=(_0x30f0db?_0x38a74d(_0x42ba12,_0x16eb06,_0x2f3b42):_0x38a74d(_0x2f3b42))||_0x2f3b42);return _0x30f0db&&_0x2f3b42&&Hi(_0x42ba12,_0x16eb06,_0x2f3b42),_0x2f3b42;},it=(_0x27de07,_0x48d354)=>(_0x45dd45,_0x5815dc)=>_0x48d354(_0x45dd45,_0x5815dc,_0x27de07);const Pt='AUTHZ_URL_KEY',Bi=_0x42f461(0x250);exports[_0x42f461(0x193)]=class extends o['Disposable']{constructor(_0x47c4c9,_0x5306e2){const _0x115014=_0x42f461;super(),this[_0x115014(0x413)]=_0x47c4c9,this['_configService']=_0x5306e2,this[_0x115014(0xf2)]();}[_0x42f461(0xf2)](){const _0x46c7d2=_0x42f461,_0x45b926=this;this[_0x46c7d2(0x2e2)](this[_0x46c7d2(0x413)][_0x46c7d2(0x116)]({'priority':0x3e7,'interceptor':P[_0x46c7d2(0x191)]({'isMatch'(_0xbfa394){const _0x33b790=_0x46c7d2;var _0x7fd075;if(_0xbfa394[_0x33b790(0x43f)]===_0x33b790(0x3de)&&((_0x7fd075=_0xbfa394[_0x33b790(0x10b)])!=null&&_0x7fd075[_0x33b790(0x37a)])){const {objectID:_0x33c991,objectType:_0x588ec1}=_0xbfa394[_0x33b790(0x10b)]['body']||{};if(!_0x33c991||_0x588ec1===void 0x0)return!0x1;const _0x2a19a0=_0x45b926['_getAPIPrefixPath']()+'/'+_0x588ec1+'/object/'+_0x33c991+_0x33b790(0x16c);if(_0xbfa394[_0x33b790(0x28a)]===_0x2a19a0)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3b8605){const _0x4b9c13=_0x46c7d2;var _0x5e0265;return(_0x5e0265=_0x3b8605[_0x4b9c13(0x10b)])==null?void 0x0:_0x5e0265[_0x4b9c13(0x37a)];},'mergeParamsToRequest'(_0x5e1a14,_0x42150d){const _0xce3a78=_0x46c7d2,_0x4c020b=_0x45b926[_0xce3a78(0x207)]()+'/-/object/-/batch_allowed',_0xfd5a75=_0x5e1a14[_0xce3a78(0x3fc)]((_0xa8655a,_0x5e4b87)=>{const _0x50bbd7=_0xce3a78,{unitID:_0x8ef638,objectID:_0x4cb766,objectType:_0x1a364b,actions:_0x13e357}=_0x5e4b87;return _0xa8655a[_0x8ef638]||(_0xa8655a[_0x8ef638]={}),_0xa8655a[_0x8ef638][_0x4cb766]||(_0xa8655a[_0x8ef638][_0x4cb766]={'objectID':_0x4cb766,'objectType':_0x1a364b,'actions':[]}),_0xa8655a[_0x8ef638][_0x4cb766][_0x50bbd7(0x42c)][_0x50bbd7(0x302)](..._0x13e357),_0xa8655a;},{}),_0x2b87c4=[];for(const _0x174ebd in _0xfd5a75)for(const _0x44057c in _0xfd5a75[_0x174ebd]){const {actions:_0x2c4e77,objectType:_0x3bc841}=_0xfd5a75[_0x174ebd][_0x44057c],_0x9fae9=[...new Set(_0x2c4e77)];_0x2b87c4[_0xce3a78(0x302)]({'unitID':_0x174ebd,'objectID':_0x44057c,'objectType':_0x3bc841,'actions':_0x9fae9});}return new P['HTTPRequest'](_0xce3a78(0x3de),_0x4c020b,{'headers':_0x42150d[_0xce3a78(0x195)],'withCredentials':_0x42150d['withCredentials'],'responseType':_0x42150d[_0xce3a78(0x412)],'body':{'requests':_0x2b87c4}});}},{'distributeResult'(_0x3b92c3,_0x46a806){const _0x48a8e5=_0x46c7d2,{objectActions:_0x489723}=_0x3b92c3;return _0x46a806[_0x48a8e5(0x145)](_0x3109eb=>{const _0x16f39f=_0x48a8e5,{unitID:_0x36c15f,objectID:_0x4adedd,actions:_0x39de0c}=_0x3109eb,_0x5789b5=_0x489723[_0x16f39f(0x3d5)](_0x1ef0fa=>_0x1ef0fa[_0x16f39f(0x33c)]===_0x36c15f&&_0x1ef0fa[_0x16f39f(0x30b)]===_0x4adedd),_0x53c2eb=_0x39de0c[_0x16f39f(0x145)](_0xa171be=>_0x5789b5==null?void 0x0:_0x5789b5[_0x16f39f(0x42c)]['find'](_0x48876b=>_0x48876b['action']===_0xa171be))[_0x16f39f(0x357)](_0x6a4c45=>!!_0x6a4c45);return{'config':_0x3109eb,'result':{'actions':_0x53c2eb,'error':_0x3b92c3[_0x16f39f(0x34d)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3190b3=_0x42f461;var _0x2bd4e;return(_0x2bd4e=this[_0x3190b3(0x408)][_0x3190b3(0x1b4)](Pt))!=null?_0x2bd4e:Bi;}async[_0x42f461(0x139)](_0x257739){const _0xd1c8b1=_0x42f461,_0x5b61a1=this[_0xd1c8b1(0x207)]()+'/'+_0x257739[_0xd1c8b1(0x3b6)]+_0xd1c8b1(0x180);return(await this[_0xd1c8b1(0x413)][_0xd1c8b1(0x42a)](_0x5b61a1,{'body':_0x257739}))['body'][_0xd1c8b1(0x30b)]||'';}async[_0x42f461(0x2bf)](_0x3b7f0f){const _0x4709df=_0x42f461,_0x5b4412=this[_0x4709df(0x207)]()+_0x4709df(0x30c);return(await this[_0x4709df(0x413)][_0x4709df(0x42a)](_0x5b4412,{'body':_0x3b7f0f}))[_0x4709df(0x37a)][_0x4709df(0x2d8)];}async['update'](_0x2efa4f){const _0x86de79=_0x42f461,_0x44d163=this['_getAPIPrefixPath']()+'/'+_0x2efa4f[_0x86de79(0x3b6)]+_0x86de79(0x249)+_0x2efa4f[_0x86de79(0x30b)];await this[_0x86de79(0x413)]['put'](_0x44d163,{'body':_0x2efa4f});}async[_0x42f461(0x1b6)](_0x220f14){const _0x1e5b9a=_0x42f461,_0x80a3b9=this[_0x1e5b9a(0x207)]()+'/'+_0x220f14[_0x1e5b9a(0x3b6)]+_0x1e5b9a(0x249)+_0x220f14[_0x1e5b9a(0x30b)]+_0x1e5b9a(0x16c);return(await this[_0x1e5b9a(0x413)]['post'](_0x80a3b9,{'body':_0x220f14}))[_0x1e5b9a(0x37a)][_0x1e5b9a(0x42c)];}async[_0x42f461(0x21a)](_0x1b0db2){const _0x11d6aa=_0x42f461,_0xa1a6f3=this[_0x11d6aa(0x207)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x11d6aa(0x42a)](_0xa1a6f3,{'body':{'requests':_0x1b0db2}}))[_0x11d6aa(0x37a)]['objectActions'];}async[_0x42f461(0x10c)](_0x54142d){const _0x41f4c2=_0x42f461,_0x28b638=this[_0x41f4c2(0x207)]()+'/'+_0x54142d[_0x41f4c2(0x3b6)]+_0x41f4c2(0x3a8),_0x214bb0=await this[_0x41f4c2(0x413)]['post'](_0x28b638,{'body':_0x54142d});return{'roles':_0x214bb0[_0x41f4c2(0x37a)]['roles'],'actions':_0x214bb0[_0x41f4c2(0x37a)]['actions']};}async[_0x42f461(0x27f)](_0x3d49cd){const _0x2a0914=_0x42f461,_0x5421a7=this[_0x2a0914(0x207)]()+'/collaborator';await this[_0x2a0914(0x413)][_0x2a0914(0x213)](_0x5421a7,{'params':{'collaboratorID':_0x3d49cd[_0x2a0914(0x1ac)],'objectID':_0x3d49cd[_0x2a0914(0x30b)],'unitID':_0x3d49cd[_0x2a0914(0x33c)]}});}async['updateCollaborator'](_0x46a3dc){const _0x36d0ba=_0x42f461,_0x27948e=this[_0x36d0ba(0x207)]()+_0x36d0ba(0x329);await this[_0x36d0ba(0x413)][_0x36d0ba(0x382)](_0x27948e,{'body':_0x46a3dc});}async['createCollaborator'](_0x420fbf){const _0x18e538=_0x42f461,_0x11697f=this[_0x18e538(0x207)]()+_0x18e538(0x329);await this[_0x18e538(0x413)]['post'](_0x11697f,{'body':_0x420fbf});}async[_0x42f461(0x2c3)](_0x575f8d){const _0x3b6f13=_0x42f461,_0x237f73=this[_0x3b6f13(0x207)]()+'/collaborator';return(await this['_HTTPService']['get'](_0x237f73,{'params':{'objectID':_0x575f8d['objectID'],'unitID':_0x575f8d['unitID']}}))['body'][_0x3b6f13(0x435)];}async[_0x42f461(0x3aa)](_0x699165){const _0x2113b7=_0x42f461,_0x2ffacd=this['_getAPIPrefixPath']()+_0x2113b7(0x329);await this[_0x2113b7(0x413)][_0x2113b7(0x349)](_0x2ffacd,{'body':_0x699165});}},exports[_0x42f461(0x193)]=ki([it(0x0,o[_0x42f461(0x1f3)](P['HTTPService'])),it(0x1,o[_0x42f461(0x1f3)](o[_0x42f461(0x398)]))],exports[_0x42f461(0x193)]);var Fi=Object[_0x42f461(0x3c5)],Vi=Object[_0x42f461(0x1b1)],Wi=(_0x50a46b,_0x1104cd,_0x3ca119,_0xbc327f)=>{const _0x517423=_0x42f461;for(var _0x5e97c4=_0xbc327f>0x1?void 0x0:_0xbc327f?Vi(_0x1104cd,_0x3ca119):_0x1104cd,_0x3cca41=_0x50a46b[_0x517423(0x441)]-0x1,_0x3444f6;_0x3cca41>=0x0;_0x3cca41--)(_0x3444f6=_0x50a46b[_0x3cca41])&&(_0x5e97c4=(_0xbc327f?_0x3444f6(_0x1104cd,_0x3ca119,_0x5e97c4):_0x3444f6(_0x5e97c4))||_0x5e97c4);return _0xbc327f&&_0x5e97c4&&Fi(_0x1104cd,_0x3ca119,_0x5e97c4),_0x5e97c4;},nt=(_0x3b0ddd,_0x5c9384)=>(_0x1e5670,_0x16ffce)=>_0x5c9384(_0x1e5670,_0x16ffce,_0x3b0ddd);const Gi=[_0x42f461(0x394),_0x42f461(0x308),_0x42f461(0x1db),_0x42f461(0x278),_0x42f461(0x327)],Yi=0x5*0x400*0x400,Ki=_0x42f461(0x2f8),Xi='/universer-api/stream/file/upload',qi='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Ji='/universer-api/file/{fileID}/sign-url';exports['ImageIoService']=class{constructor(_0x59edf5,_0xb4cb80){const _0x50f889=_0x42f461;u(this,_0x50f889(0x169),0x0),u(this,_0x50f889(0xd0),new v['Subject']()),u(this,_0x50f889(0x480),this['_change$']),u(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x59edf5,this[_0x50f889(0x408)]=_0xb4cb80);}['setWaitCount'](_0x2accdb){const _0x308372=_0x42f461;this[_0x308372(0x169)]=_0x2accdb,this[_0x308372(0xd0)]['next'](_0x2accdb);}[_0x42f461(0x265)](_0xbe2e03,_0x5ad346){const _0x33b5d9=_0x42f461;if(_0x5ad346===N['ImageSourceType'][_0x33b5d9(0x3af)]){const _0x2a6e83=new Image();return _0x2a6e83['src']=_0xbe2e03,_0x2a6e83;}return this[_0x33b5d9(0x231)]['get'](_0xbe2e03);}['addImageSourceCache'](_0x4e76f7,_0x2765b2,_0x1de647){const _0x5ec6a9=_0x42f461;_0x2765b2===N[_0x5ec6a9(0x338)]['BASE64']||_0x1de647==null||this[_0x5ec6a9(0x231)][_0x5ec6a9(0x1c4)](_0x4e76f7,_0x1de647);}async[_0x42f461(0x184)](_0x25494a){const _0x101b2b=_0x42f461;try{const _0x28707f=this[_0x101b2b(0x363)](this[_0x101b2b(0x143)](),''+_0x25494a),_0x41f96b=(await this['_httpService'][_0x101b2b(0xc0)](_0x28707f))[_0x101b2b(0x37a)];return _0x41f96b[_0x101b2b(0x34d)]&&_0x41f96b[_0x101b2b(0x34d)]['code']===vt['OK']?Promise[_0x101b2b(0x358)](_0x41f96b['url']):Promise[_0x101b2b(0x37c)](_0x41f96b['error']);}catch(_0x26646d){return Promise['reject'](_0x26646d);}}async[_0x42f461(0x381)](_0x115583){const _0x4b7847=_0x42f461;let _0x3ef09e='';if(!Gi[_0x4b7847(0x45a)](_0x115583[_0x4b7847(0x3b1)]))return this[_0x4b7847(0x21b)](),Promise[_0x4b7847(0x37c)](new Error(N[_0x4b7847(0x149)][_0x4b7847(0x29c)]));if(_0x115583['size']>Yi)return this['_decreaseWaiting'](),Promise[_0x4b7847(0x37c)](new Error(N[_0x4b7847(0x149)][_0x4b7847(0x366)]));try{const _0x420af6=new FormData();_0x420af6[_0x4b7847(0x384)](_0x4b7847(0x1d3),_0x115583);const _0x3ba9bc=this[_0x4b7847(0x1f7)]()+_0x4b7847(0x1cd)+_0x115583[_0x4b7847(0x19c)][_0x4b7847(0x252)](),_0x228782=await(await fetch(_0x3ba9bc,{'method':_0x4b7847(0x3de),'body':_0x420af6}))[_0x4b7847(0x291)]();if(typeof _0x228782[_0x4b7847(0x1c5)]!='string')return this['_decreaseWaiting'](),Promise[_0x4b7847(0x37c)](new Error(N[_0x4b7847(0x149)][_0x4b7847(0x426)]));_0x3ef09e=_0x228782['FileId'];}catch{return this[_0x4b7847(0x21b)](),Promise[_0x4b7847(0x37c)](new Error(N['ImageUploadStatusType'][_0x4b7847(0x426)]));}return new Promise((_0x3006ea,_0x3c4abd)=>{const _0x2826ea=_0x4b7847,_0x54d000=new FileReader();_0x54d000[_0x2826ea(0x26d)](_0x115583),_0x54d000[_0x2826ea(0x423)]=_0xa3f7d9=>{const _0x39515c=_0x2826ea;var _0x341249;const _0x5770da=(_0x341249=_0xa3f7d9['target'])==null?void 0x0:_0x341249[_0x39515c(0x419)];if(_0x5770da==null){this['_decreaseWaiting'](),_0x3c4abd(new Error(N[_0x39515c(0x149)][_0x39515c(0x426)]));return;}const _0x3d6dba=o[_0x39515c(0x11c)][_0x39515c(0x238)](0x6);_0x3006ea({'imageId':_0x3d6dba,'imageSourceType':N[_0x39515c(0x338)][_0x39515c(0x479)],'source':_0x3ef09e,'base64Cache':_0x5770da,'status':N['ImageUploadStatusType'][_0x39515c(0x3b9)]}),this[_0x39515c(0x21b)]();};});}[_0x42f461(0x1f7)](){const _0x3634aa=_0x42f461;var _0x16336e;return(_0x16336e=this[_0x3634aa(0x408)][_0x3634aa(0x1b4)](Ki))!=null?_0x16336e:Xi;}['_getSignURL'](){const _0x34c2b5=_0x42f461;var _0x52b709;return(_0x52b709=this[_0x34c2b5(0x408)][_0x34c2b5(0x1b4)](qi))!=null?_0x52b709:Ji;}['_replaceFileID'](_0x172565,_0x477f49){const _0x4e6dd1=_0x42f461;return _0x172565[_0x4e6dd1(0x128)]('{fileID}',_0x477f49);}['_decreaseWaiting'](){const _0x9183a9=_0x42f461;this[_0x9183a9(0x169)]-=0x1,this[_0x9183a9(0xd0)]['next'](this['_waitCount']);}},exports[_0x42f461(0x183)]=Wi([nt(0x0,o[_0x42f461(0x1f3)](P['HTTPService'])),nt(0x1,o[_0x42f461(0x398)])],exports[_0x42f461(0x183)]);var zi=Object[_0x42f461(0x3c5)],Zi=Object[_0x42f461(0x1b1)],Qi=(_0x4c49df,_0x5e413d,_0x46bf27,_0x22fddf)=>{const _0x4fcd20=_0x42f461;for(var _0x564402=_0x22fddf>0x1?void 0x0:_0x22fddf?Zi(_0x5e413d,_0x46bf27):_0x5e413d,_0x28851b=_0x4c49df[_0x4fcd20(0x441)]-0x1,_0x49480b;_0x28851b>=0x0;_0x28851b--)(_0x49480b=_0x4c49df[_0x28851b])&&(_0x564402=(_0x22fddf?_0x49480b(_0x5e413d,_0x46bf27,_0x564402):_0x49480b(_0x564402))||_0x564402);return _0x22fddf&&_0x564402&&zi(_0x5e413d,_0x46bf27,_0x564402),_0x564402;},oe=(_0x33b31d,_0xcedf12)=>(_0x208caa,_0x1745e5)=>_0xcedf12(_0x208caa,_0x1745e5,_0x33b31d);let ve=class extends o[_0x42f461(0x451)]{constructor(_0x1b1aa3,_0x1f3c73,_0x2e3a01,_0x5121e3,_0x256398){const _0x42e9dd=_0x42f461;super(),this[_0x42e9dd(0x16e)]=_0x1b1aa3,this[_0x42e9dd(0x3c1)]=_0x1f3c73,this['_permissionService']=_0x2e3a01,this[_0x42e9dd(0x311)]=_0x5121e3,this[_0x42e9dd(0x15c)]=_0x256398,this[_0x42e9dd(0x2c8)](),this['_initCloseConn']();}[_0x42f461(0x354)](){const _0x2e0f94=_0x42f461,_0x1adce1=async _0x5ed369=>{const _0x23e782=_0x527e;(await this[_0x23e782(0x311)]['requireSession'](_0x5ed369))[_0x23e782(0x35d)][_0x23e782(0x285)](C[_0x23e782(0x357)](_0x4fbb96=>_0x4fbb96['eventID']===_[_0x23e782(0x301)][_0x23e782(0xd2)]),C[_0x23e782(0x174)](this[_0x23e782(0x1b8)]))[_0x23e782(0x17e)](_0x3f4536=>{const _0x240890=_0x23e782,_0xa73735=_0x3f4536,{reason:_0x596073}=_0xa73735[_0x240890(0x407)];this[_0x240890(0x16e)][_0x240890(0xc0)](M[_0x240890(0x3f8)])['show']({'type':Z[_0x240890(0x2ad)]['Error'],'content':this['_localeService']['t'](_0x240890(0x288))+'('+_0x596073+')'}),this['_permissionService'][_0x240890(0x27b)](new p[(_0x240890(0x194))](_0x5ed369)['id'],!0x1),this[_0x240890(0x311)][_0x240890(0x470)](_0x5ed369);});};v['merge'](this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x2e0f94(0x3a7)][_0x2e0f94(0x23d)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x2e0f94(0x3a7)][_0x2e0f94(0x46d)]))['pipe'](C[_0x2e0f94(0x145)](_0x47b8d6=>_0x47b8d6[_0x2e0f94(0x2d9)]()),C[_0x2e0f94(0x357)](_0x3fa984=>!o['isInternalEditorID'](_0x3fa984)),C[_0x2e0f94(0x174)](this[_0x2e0f94(0x1b8)]))['subscribe'](_0x3f38bf=>{_0x1adce1(_0x3f38bf);});}[_0x42f461(0x2c8)](){const _0x2b914e=_0x42f461,_0x509bfd=async _0x1d91e9=>{const _0x14bd0f=_0x527e;(await this[_0x14bd0f(0x311)]['requireSession'](_0x1d91e9))[_0x14bd0f(0x35d)][_0x14bd0f(0x285)](C[_0x14bd0f(0x357)](_0x254765=>_0x254765[_0x14bd0f(0x35a)]===_[_0x14bd0f(0x301)][_0x14bd0f(0x293)]),C[_0x14bd0f(0x174)](this[_0x14bd0f(0x1b8)]))[_0x14bd0f(0x17e)](_0x3f62f4=>{const _0x2eea58=_0x14bd0f,_0x3b5f44=_0x3f62f4,{objectId:_0x59bf1d}=_0x3b5f44[_0x2eea58(0x407)];_0x59bf1d===_0x1d91e9&&this[_0x2eea58(0x16e)][_0x2eea58(0xc0)](J[_0x2eea58(0x34f)])[_0x2eea58(0x15f)](_0x1d91e9);});};v['merge'](this[_0x2b914e(0x3c1)][_0x2b914e(0x283)](o[_0x2b914e(0x3a7)][_0x2b914e(0x23d)]),this[_0x2b914e(0x3c1)]['getTypeOfUnitAdded$'](o[_0x2b914e(0x3a7)][_0x2b914e(0x46d)]))[_0x2b914e(0x285)](C['map'](_0x3006ed=>_0x3006ed[_0x2b914e(0x2d9)]()),C[_0x2b914e(0x357)](_0x206373=>!o[_0x2b914e(0x29e)](_0x206373)),C[_0x2b914e(0x174)](this[_0x2b914e(0x1b8)]))[_0x2b914e(0x17e)](_0x20fdd3=>{_0x509bfd(_0x20fdd3);});}};ve=Qi([o['OnLifecycle'](o['LifecycleStages'][_0x42f461(0x1df)],ve),oe(0x0,o[_0x42f461(0x1f3)](o[_0x42f461(0x13e)])),oe(0x1,o[_0x42f461(0x237)]),oe(0x2,o[_0x42f461(0x114)]),oe(0x3,o[_0x42f461(0x1f3)](exports[_0x42f461(0x1bd)])),oe(0x4,o[_0x42f461(0x1f3)](o[_0x42f461(0x465)]))],ve);var Ut=Object[_0x42f461(0x3c5)],en=Object[_0x42f461(0x1b1)],tn=(_0x184976,_0x24f1fa,_0x1a9979)=>_0x24f1fa in _0x184976?Ut(_0x184976,_0x24f1fa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a9979}):_0x184976[_0x24f1fa]=_0x1a9979,sn=(_0x50bdf4,_0x44cb21,_0x11f83f,_0x21118f)=>{const _0x3f7344=_0x42f461;for(var _0x19c15c=_0x21118f>0x1?void 0x0:_0x21118f?en(_0x44cb21,_0x11f83f):_0x44cb21,_0x58b016=_0x50bdf4[_0x3f7344(0x441)]-0x1,_0x1378d6;_0x58b016>=0x0;_0x58b016--)(_0x1378d6=_0x50bdf4[_0x58b016])&&(_0x19c15c=(_0x21118f?_0x1378d6(_0x44cb21,_0x11f83f,_0x19c15c):_0x1378d6(_0x19c15c))||_0x19c15c);return _0x21118f&&_0x19c15c&&Ut(_0x44cb21,_0x11f83f,_0x19c15c),_0x19c15c;},rt=(_0x44ae3b,_0x4f8a25)=>(_0x44ad87,_0xa0534b)=>_0x4f8a25(_0x44ad87,_0xa0534b,_0x44ae3b),nn=(_0x3d5f1c,_0x189787,_0x2be5f8)=>tn(_0x3d5f1c,_0x189787+'',_0x2be5f8);const rn=_0x42f461(0x43d);exports[_0x42f461(0xf3)]=class extends o[_0x42f461(0x11b)]{constructor(_0x48489f,_0x19d3e1,_0x51c099){const _0x47bba5=_0x42f461;super(),this[_0x47bba5(0x147)]=_0x48489f,this['_logService']=_0x19d3e1,this[_0x47bba5(0x16e)]=_0x51c099;}['onStarting'](_0x55e8be){const _0x54516a=_0x42f461;var _0x3367fe,_0x16ee6d,_0x4c907e,_0xca38e,_0x199336;_0x55e8be['has'](o['IUndoRedoService'])&&this[_0x54516a(0x313)]['error'](_0x54516a(0x411),_0x54516a(0x318));let _0x40b5e5=[[o[_0x54516a(0xcf)],{'useClass':Ae}],[exports['CollaborationSessionService']],[Fe],[P['HTTPService']],[We,{'useClass':Dt}],[W],[exports['LocalCacheService']],[P[_0x54516a(0x155)]],[me],[fe],[ge],[Be],[pe],[ke],[ve],[xe,{'useClass':(_0x16ee6d=(_0x3367fe=this[_0x54516a(0x147)])==null?void 0x0:_0x3367fe['socketService'])!=null?_0x16ee6d:exports[_0x54516a(0x12a)]}],[P['IHTTPImplementation'],{'useClass':P[_0x54516a(0xf4)]}],[o[_0x54516a(0x41d)],{'useClass':exports[_0x54516a(0x3ab)]}],[o[_0x54516a(0x1d2)],{'useClass':exports[_0x54516a(0x193)]}],[N[_0x54516a(0x473)],{'useClass':exports['ImageIoService']}],[exports['CollaborationController']],[exports[_0x54516a(0x3b3)]],[exports[_0x54516a(0x405)]],[de],[z]];(_0x4c907e=this[_0x54516a(0x147)])!=null&&_0x4c907e[_0x54516a(0x110)]&&_0x40b5e5[_0x54516a(0x302)]([Ee,{'useClass':ls}]),((_0xca38e=this[_0x54516a(0x147)])==null?void 0x0:_0xca38e[_0x54516a(0x189)])==null||this[_0x54516a(0x147)][_0x54516a(0x189)][_0x54516a(0x45a)](o[_0x54516a(0x3a7)]['UNIVER_SHEET'])?_0x40b5e5[_0x54516a(0x302)]([ue]):this[_0x54516a(0x147)][_0x54516a(0x189)]['includes'](o[_0x54516a(0x3a7)]['UNIVER_DOC'])&&_0x40b5e5['push']([Se]),_0x40b5e5=o[_0x54516a(0x20e)](_0x40b5e5,(_0x199336=this[_0x54516a(0x147)])==null?void 0x0:_0x199336[_0x54516a(0x3f0)]),_0x40b5e5[_0x54516a(0x375)](_0x46b922=>_0x55e8be['add'](_0x46b922)),_0x55e8be['get'](P['HTTPService'])[_0x54516a(0x116)]({'priority':0x14,'interceptor':P[_0x54516a(0x364)]({'maxParallel':0x6})}),this[_0x54516a(0x41b)]();}[_0x42f461(0x41b)](){const _0x4837f2=_0x42f461;var _0xe71b1a,_0x2c25a1;(_0xe71b1a=this['_config'])!=null&&_0xe71b1a[_0x4837f2(0x1a4)]||this[_0x4837f2(0x16e)][_0x4837f2(0xc0)](exports[_0x4837f2(0x3a0)])[_0x4837f2(0x1b3)](),(_0x2c25a1=this[_0x4837f2(0x147)])!=null&&_0x2c25a1[_0x4837f2(0x190)]&&this[_0x4837f2(0x16e)][_0x4837f2(0xc0)](pe);}},nn(exports[_0x42f461(0xf3)],_0x42f461(0x47e),rn),exports['UniverCollaborationClientPlugin']=sn([o['DependentOn'](_[_0x42f461(0x46e)]),rt(0x1,o[_0x42f461(0x218)]),rt(0x2,o[_0x42f461(0x1f3)](o['Injector']))],exports[_0x42f461(0xf3)]),exports['AUTHZ_URL_KEY']=Pt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=dt,exports[_0x42f461(0x36c)]=lt,exports['CollaborationStatus']=D,exports[_0x42f461(0x299)]=Ot,exports[_0x42f461(0x436)]=ke,exports[_0x42f461(0x3d8)]=ht,exports[_0x42f461(0x3e4)]=$e,exports[_0x42f461(0x340)]=xe,exports[_0x42f461(0x2bb)]=We,exports[_0x42f461(0x3c6)]=ut,exports[_0x42f461(0x22b)]=St,exports['SEND_CHANGESET_TIMEOUT_KEY']=ct,exports[_0x42f461(0x306)]=ot,exports['SNAPSHOT_URL_KEY']=at,exports[_0x42f461(0x437)]=V,exports['SheetCollabCursorShape']=Ct,exports['WebURLService']=Dt,exports[_0x42f461(0x17b)]=gt,exports[_0x42f461(0x46a)]=ft;
|